From 53fb7d2377bc76ecf56b74c6310c858ffa664796 Mon Sep 17 00:00:00 2001 From: incredincomp Date: Sun, 19 Jul 2026 02:46:18 -0700 Subject: [PATCH 1/4] Repair command and report reliability contracts --- dist/chunks/advancedCache.js | 2 +- dist/chunks/advancedCache.js.map | 2 +- dist/chunks/analysis.js | 4 +- dist/chunks/analysis.js.map | 2 +- dist/chunks/fileDateProviderImpl.js | 6 +- dist/chunks/fileDateProviderImpl.js.map | 2 +- dist/chunks/fileDateProviderImplExport.js | 6 +- dist/chunks/fileDateProviderImplExport.js.map | 2 +- dist/chunks/providerInit.js | 6 +- dist/chunks/providerInit.js.map | 2 +- dist/chunks/reporting.js | 79 ++-- dist/chunks/reporting.js.map | 6 +- dist/chunks/teamPersistence.js | 10 +- dist/chunks/teamPersistence.js.map | 2 +- dist/chunks/templates.js | 2 +- dist/chunks/templates.js.map | 2 +- dist/chunks/workspaceIntelligence.js | 4 +- dist/chunks/workspaceIntelligence.js.map | 2 +- dist/extension.js | 28 +- dist/extension.js.map | 6 +- dist/extension.web.js | 32 +- dist/extension.web.js.map | 6 +- dist/web-chunks/analysis.js | 4 +- dist/web-chunks/analysis.js.map | 2 +- dist/web-chunks/fileDateProviderImpl.js | 6 +- dist/web-chunks/fileDateProviderImpl.js.map | 2 +- dist/web-chunks/fileDateProviderImplExport.js | 6 +- .../fileDateProviderImplExport.js.map | 2 +- dist/web-chunks/providerInit.js | 6 +- dist/web-chunks/providerInit.js.map | 2 +- dist/web-chunks/teamPersistence.js | 10 +- dist/web-chunks/teamPersistence.js.map | 2 +- dist/web-chunks/workspaceIntelligence.js | 4 +- dist/web-chunks/workspaceIntelligence.js.map | 2 +- package.json | 1 + src/commands/coreCommands.js | 18 +- src/exportReporting.js | 435 ++++++++++-------- src/filesystem/FileSystemAdapter.js | 23 + src/reporting/reportContract.js | 121 +++++ tests/test-command-behavior.js | 5 + tests/test-report-contract.js | 39 ++ 41 files changed, 550 insertions(+), 353 deletions(-) create mode 100644 src/reporting/reportContract.js create mode 100644 tests/test-report-contract.js diff --git a/dist/chunks/advancedCache.js b/dist/chunks/advancedCache.js index cda4526..9c2207d 100644 --- a/dist/chunks/advancedCache.js +++ b/dist/chunks/advancedCache.js @@ -1 +1 @@ -var le=Object.create;var z=Object.defineProperty;var fe=Object.getOwnPropertyDescriptor;var me=Object.getOwnPropertyNames;var pe=Object.getPrototypeOf,de=Object.prototype.hasOwnProperty;var d=(s,e)=>()=>(e||s((e={exports:{}}).exports,e),e.exports);var ye=(s,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of me(e))!de.call(s,n)&&n!==t&&z(s,n,{get:()=>e[n],enumerable:!(i=fe(e,n))||i.enumerable});return s};var ge=(s,e,t)=>(t=s!=null?le(pe(s)):{},ye(e||!s||!s.__esModule?z(t,"default",{value:s,enumerable:!0}):t,s));var x=d((nt,O)=>{var g="__explorerDatesLogger",E=class{constructor(){this.p=null}d(e,t){if(this.p&&typeof this.p[e]=="function")try{return this.p[e](...t)}catch{}switch(e){case"debug":break;case"info":break;case"warn":break;case"error":break;default:break}}debug(...e){return this.d("debug",e)}info(...e){return this.d("info",e)}warn(...e){return this.d("warn",e)}error(...e){return this.d("error",e)}U(e){this.p=e}};function Ee(){return typeof global<"u"?(global[g]||(global[g]=new E),global[g]):typeof globalThis<"u"?(globalThis[g]||(globalThis[g]=new E),globalThis[g]):(T||(T=new E),T)}var R=class extends E{},T=null;O.exports={Logger:R,getLogger:Ee}});var M=d((rt,H)=>{var v=require("vscode");function _e(){try{let s=v?.env?.uiKind,e=v?.UIKind?.Web;return s!==void 0&&e!==void 0&&s===e}catch{return!1}}H.exports={isWebEnvironment:_e}});var I=d((exports,module)=>{var chunk=null;try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){try{chunk=dynamicRequire("../chunks/utils-shared-chunk")}catch{}try{chunk||(chunk=dynamicRequire("./chunks/utils-shared-chunk"))}catch{}try{chunk||(chunk=dynamicRequire("../chunks/path-utils-chunk"))}catch{}try{chunk||(chunk=dynamicRequire("./chunks/path-utils-chunk"))}catch{}}}catch{}if(chunk&&chunk.normalizePath)module.exports={normalizePath:chunk.normalizePath,getFileName:chunk.getFileName,getExtension:chunk.getExtension,getDirectory:chunk.getDirectory,joinPath:chunk.joinPath,getCacheKey:chunk.getCacheKey,getUriPath:chunk.getUriPath,getRelativePath:chunk.getRelativePath};else{let s=function(o=""){return o?o.replace(/\\/g,"/"):""},e=function(o=""){let u=s(o);return u?u.split("/").filter(Boolean):[]},t=function(o=""){let u=e(o);return u.length?u[u.length-1]:""},i=function(o=""){let u=t(o),f=u.lastIndexOf(".");return f<=0?"":u.substring(f).toLowerCase()},n=function(o=""){let u=s(o),f=u.lastIndexOf("/");return f===-1?"":u.substring(0,f)},r=function(...o){return s(o.filter(Boolean).join("/")).replace(/\/+/g,"/")},c=function(o=""){return s(o).toLowerCase()},l=function(o=""){if(!o)return"";if(typeof o=="string")return o;if(typeof o.fsPath=="string"&&o.fsPath.length>0)return o.fsPath;if(typeof o.path=="string"&&o.path.length>0)return o.path;if(typeof o.toString=="function")try{return o.toString(!0)}catch{return o.toString()}return String(o)},p=function(o="",u=""){let f=s(o),h=s(u);return f&&h.startsWith(f)?h.substring(f.length).replace(/^\/+/,""):h};normalizePath=s,getSegments=e,getFileName=t,getExtension=i,getDirectory=n,joinPath=r,getCacheKey=c,getUriPath=l,getRelativePath=p,module.exports={normalizePath:s,getFileName:t,getExtension:i,getDirectory:n,joinPath:r,getCacheKey:c,getUriPath:l,getRelativePath:p}}var normalizePath,getSegments,getFileName,getExtension,getDirectory,joinPath,getCacheKey,getUriPath,getRelativePath});var q=d((ot,W)=>{var A=class extends Error{constructor(e,t,i={}){super(t),this.code=e,this.context=i,this.name="ExtensionError"}},U={FILE_PERMISSION_DENIED:"FILE_PERMISSION_DENIED",WORKSPACE_TOO_LARGE:"WORKSPACE_TOO_LARGE",CHUNK_LOAD_FAILED:"CHUNK_LOAD_FAILED"};function be(s){if(!s)return!1;let e=s.code||s?.name;return["EACCES","EPERM","EROFS","NoPermissions"].includes(e)}var C=class extends A{constructor(e,t,i={}){let{recoverable:n=!0,context:r={}}=i;super(U.CHUNK_LOAD_FAILED,`Failed to load ${e}: ${t}`,{chunkName:e,recoverable:n,...r}),this.name="ChunkLoadError",this.chunkName=e,this.recoverable=n}};function Ae(s,e,t={}){let i=require("vscode"),{userFacing:n=!0}=t,r=e?.recoverable??!0;n&&!r&&i.window.showErrorMessage(`Explorer Dates: ${s} feature unavailable. Please reinstall or rebuild the extension.`)}W.exports={ExtensionError:A,ERROR_CODES:U,isPermissionError:be,ChunkLoadError:C,handleChunkFailure:Ae}});var G=d((ct,K)=>{var $="EXPLORER_DATES_FORCE_VSCODE_FS";function j(s,e=process.env){return String(e?.[s]||"")==="1"}function D(s){let e=s&&typeof s=="object"?s:null,t=String(e?.scheme||(typeof s=="string"&&/^[a-z][a-z0-9+.-]*:/i.test(s)?s.split(":",1)[0]:"file")).toLowerCase(),i=String(e?.authority||""),n=e?.path||e?.fsPath||(typeof s=="string"?s.replace(/^[a-z][a-z0-9+.-]*:\/\//i,""):"");return{scheme:t,authority:i,path:String(n||"")}}function De({uri:s,isWeb:e=!1,remoteName:t="",forceWorkspaceFs:i=j($)}={}){let n=D(s),r=n.scheme!=="file",c=!!e,l=!!t,p=!!(i||c||l||r);return{scheme:n.scheme,authority:n.authority,isFileScheme:!r,isVirtual:r,isBrowser:c,isRemote:l,forceWorkspaceFs:!!i,filesystem:p?"workspace.fs":"node.fs",provider:r?n.scheme==="github"||n.scheme==="vscode-vfs"?"github":"virtual":"filesystem"}}function B({uri:s,platform:e=process.platform,caseSensitive:t}={}){return typeof t=="boolean"?t:D(s).scheme!=="file"?!0:e!=="win32"}function Se(s,e={}){let t=D(s),i=t.path.replace(/\\/g,"/").replace(/\/+/g,"/"),n=`${t.scheme}://${t.authority}${i}`;return B({uri:s,...e})?n:n.toLowerCase()}function L(s){if(s instanceof Date){let e=s.getTime();return Number.isFinite(e)?e:null}if(typeof s=="number")return Number.isFinite(s)?s:null;if(typeof s=="string"&&s.trim()){let e=Date.parse(s);return Number.isFinite(e)?e:null}return null}function ke(s){if(!s||typeof s!="object")return null;let e=L(s.mtime),t=L(s.ctime);return{...s,mtimeMs:e,ctimeMs:t}}K.exports={FORCE_WORKSPACE_FS_ENV:$,envFlag:j,getUriParts:D,getEnvironmentContract:De,isCaseSensitive:B,resourceIdentity:Se,normalizeTimestamp:L,normalizeStat:ke}});var Z=d((ut,Y)=>{function we(){return typeof Date=="function"&&Date.now?Date.now():16409952e5}function X(s){return!!(s&&typeof s=="object"&&typeof s.getTime=="function")}function Te(s){if(X(s))return s;if(typeof s=="number")return new Date(s);if(typeof s=="string"){let e=Date.parse(s);return isNaN(e)?new Date:new Date(e)}return new Date}function y(s=""){return s?s.replace(/\\/g,"/"):""}function Re(s=""){let e=y(s);return e?e.split("/").filter(Boolean):[]}function V(s=""){let e=Re(s);return e.length?e[e.length-1]:""}function Ce(s=""){let e=V(s),t=e.lastIndexOf(".");return t<=0?"":e.substring(t).toLowerCase()}function Le(s=""){let e=y(s),t=e.lastIndexOf("/");return t===-1?"":e.substring(0,t)}function Ne(...s){return y(s.filter(Boolean).join("/")).replace(/\/+/g,"/")}function Fe(s=""){return y(s).toLowerCase()}function Pe(s=""){if(!s)return"";if(typeof s=="string")return s;if(typeof s.fsPath=="string"&&s.fsPath.length>0)return s.fsPath;if(typeof s.path=="string"&&s.path.length>0)return s.path;if(typeof s.toString=="function")try{return s.toString(!0)}catch{return s.toString()}return String(s)}function ze(s="",e=""){let t=y(s),i=y(e);return t&&i.startsWith(t)?i.substring(t.length).replace(/^\/+/,""):i}Y.exports={ensureDate:Te,isDateLike:X,getCurrentTimestamp:we,normalizePath:y,getFileName:V,getExtension:Ce,getDirectory:Le,joinPath:Ne,getCacheKey:Fe,getUriPath:Pe,getRelativePath:ze}});var J=d((exports,module)=>{var chunk=null;try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){try{chunk=dynamicRequire("../chunks/utils-shared-chunk")}catch{}try{chunk||(chunk=dynamicRequire("./chunks/utils-shared-chunk"))}catch{}try{chunk||(chunk=dynamicRequire("../chunks/date-helpers-chunk"))}catch{}try{chunk||(chunk=dynamicRequire("./chunks/date-helpers-chunk"))}catch{}}}catch{}if(chunk&&(chunk.ensureDate||chunk.isDateLike||chunk.getCurrentTimestamp))module.exports={ensureDate:chunk.ensureDate,isDateLike:chunk.isDateLike,getCurrentTimestamp:chunk.getCurrentTimestamp};else{let s=function(){return typeof Date=="function"&&Date.now?Date.now():16409952e5},e=function(i){return!!(i&&typeof i=="object"&&typeof i.getTime=="function")},t=function(i){if(e(i))return i;if(typeof i=="number")return new Date(i);if(typeof i=="string"){let n=Date.parse(i);return isNaN(n)?new Date:new Date(n)}return new Date};getCurrentTimestamp=s,isDateLike=e,ensureDate=t,module.exports={ensureDate:t,isDateLike:e,getCurrentTimestamp:s}}var getCurrentTimestamp,isDateLike,ensureDate});var ie=d((at,se)=>{var a=require("vscode"),{isWebEnvironment:Q}=M(),{normalizePath:Oe}=I(),{ExtensionError:xe,ERROR_CODES:ve,isPermissionError:He}=q(),{getEnvironmentContract:Me,normalizeStat:Ie,FORCE_WORKSPACE_FS_ENV:Ue}=G(),_;try{let s=Z();s&&(_=s.ensureDate)}catch{}_||(_=J().ensureDate);var ee=typeof process<"u"&&process.env?process.env:{},te=ee.VSCODE_WEB==="true"||Q(),m=null;if(!te)try{m=require("fs").promises}catch{m=null}var S=class{constructor(){this.isWeb=te||Q()}u(e){try{return Me({uri:this.n(e),isWeb:this.isWeb,remoteName:a.env?.remoteName,forceWorkspaceFs:ee[Ue]==="1"}).filesystem==="workspace.fs"}catch{return!1}}r(e){if(!e)return"";if(typeof e=="string")return e;if(e&&typeof e=="object"&&typeof e.fsPath=="string")return e.fsPath;if(e&&typeof e=="object"&&typeof e.path=="string")return e.path;if(typeof e=="object"){if(typeof e.fsPath=="string")return e.fsPath;if(typeof e.path=="string")return e.path}return String(e)}n(e){if(e&&typeof e=="object"&&typeof e.scheme=="string"&&typeof e.path=="string")return e;if(typeof e=="string"){let t=e.trim(),i=/^[a-zA-Z]:[\\/]/.test(t);if(/^[a-zA-Z][a-zA-Z0-9+.-]*:/.test(t)&&!i){let r=a.Uri.parse(t);if(r.scheme&&r.scheme!=="file")return r}return a.Uri.file(e)}if(e&&typeof e=="object"){if(e.uri&&e.uri!==e)try{return this.n(e.uri)}catch{}if(this.isWeb&&typeof e.scheme=="string"&&typeof e.path=="string")return a.Uri.from({scheme:e.scheme,authority:e.authority||"",path:e.path||"",query:e.query||"",fragment:e.fragment||""});if(typeof e.fsPath=="string"&&e.fsPath.length>0)return a.Uri.file(e.fsPath);if(typeof e.path=="string"&&e.path.length>0)return this.isWeb&&typeof e.scheme=="string"&&e.scheme!=="file"?a.Uri.from({scheme:e.scheme,authority:e.authority||"",path:e.path,query:e.query||"",fragment:e.fragment||""}):a.Uri.file(e.path);if(typeof e.href=="string"&&e.href.length>0)return a.Uri.parse(e.href);if(typeof e.scheme=="string")return a.Uri.from({scheme:e.scheme,authority:e.authority||"",path:e.path||e.fsPath||"",query:e.query||"",fragment:e.fragment||""});if(typeof e.toString=="function")try{let t=e.toString(!0);if(t&&t!=="[object Object]")return a.Uri.parse(t)}catch{let t=e.toString();if(t&&t!=="[object Object]")return a.Uri.parse(t)}}throw new Error(`Unsupported target type: ${typeof e}`)}async stat(e){let t=this.u(e);if(!this.isWeb&&m&&!t)return m.stat(this.r(e));let i=this.n(e),n=await a.workspace.fs.stat(i),r=Ie(n);return{...r,mtime:r.mtimeMs===null?_(n.mtime):new Date(r.mtimeMs),ctime:r.ctimeMs===null?_(n.ctime):new Date(r.ctimeMs),birthtime:r.ctimeMs===null?_(n.ctime):new Date(r.ctimeMs),isFile:()=>n.type===a.FileType.File,isDirectory:()=>n.type===a.FileType.Directory}}async readFile(e,t="utf8"){let i=this.u(e);if(!this.isWeb&&m&&!i)return m.readFile(this.r(e),t);let n=this.n(e),r=await a.workspace.fs.readFile(n);return t===null||t==="binary"?r:new TextDecoder(t).decode(r)}async writeFile(e,t,i="utf8"){let n=this.r(e);try{let r=this.u(e);if(!this.isWeb&&m&&!r)return m.writeFile(n,t,i);let c=this.n(e),l=typeof t=="string"?new TextEncoder().encode(t):t;await a.workspace.fs.writeFile(c,l)}catch(r){this.D("write file",n,r)}}async mkdir(e,t={recursive:!0}){let i=this.r(e);try{let n=this.u(e);if(!this.isWeb&&m&&!n)return m.mkdir(i,t);let r=this.n(e);await a.workspace.fs.createDirectory(r)}catch(n){this.D("create directory",i,n)}}async readdir(e,t={withFileTypes:!1}){let i=this.u(e);if(!this.isWeb&&m&&!i)return m.readdir(this.r(e),t);let n=this.n(e),r=await a.workspace.fs.readDirectory(n);return t.withFileTypes?r.map(([c,l])=>({name:c,isDirectory:()=>l===a.FileType.Directory,isFile:()=>l===a.FileType.File})):r.map(([c])=>c)}async delete(e,t={recursive:!1}){let i=this.u(e);if(!this.isWeb&&m&&!i){let r=this.r(e);return t.recursive?m.rm?m.rm(r,t):m.rmdir(r,t):m.unlink(r)}let n=this.n(e);await a.workspace.fs.delete(n,t)}async exists(e){try{return await this.stat(e),!0}catch{return!1}}async ensureDirectory(e){let t=Oe(this.r(e));await this.mkdir(t,{recursive:!0})}D(e,t,i){throw He(i)?new xe(ve.FILE_PERMISSION_DENIED,`Permission denied while attempting to ${e}`,{path:t,code:i.code}):i}},We=new S;se.exports={FileSystemAdapter:S,fileSystem:We}});var N=d((ht,re)=>{var b=typeof process<"u"&&process.env?process.env:{},qe=12e4,$e=1e4,je=1440*60*1e3,Be=2,Ke=["Ja","Fe","Mr","Ap","My","Jn","Jl","Au","Se","Oc","No","De"],Ge=Number(b.EXPLORER_DATES_DECORATION_POOL_SIZE||2048),Xe=Number(b.EXPLORER_DATES_FLYWEIGHT_CACHE_SIZE||4096),Ve=Number(b.EXPLORER_DATES_WORKSPACE_BALANCED_THRESHOLD||15e3),Ye=Number(b.EXPLORER_DATES_WORKSPACE_LARGE_THRESHOLD||25e4),ne=Number(b.EXPLORER_DATES_WORKSPACE_EXTREME_THRESHOLD||4e5),Ze=Number(b.EXPLORER_DATES_WORKSPACE_SCAN_MAX_RESULTS||Math.min(ne+1,50001)),Je={ADVANCED_CACHE:"explorerDates.advancedCache",ADVANCED_CACHE_METADATA:"explorerDates.advancedCacheMetadata",TEMPLATE_STORE:"explorerDates.templates",WEB_GIT_NOTICE:"explorerDates.webGitNotice"},Qe="explorerDatesChunks",et="__explorerDatesChunks";re.exports={DEFAULT_CACHE_TIMEOUT:qe,DEFAULT_MAX_CACHE_SIZE:$e,DEFAULT_PERSISTENT_CACHE_TTL:je,DEFAULT_DECORATION_POOL_SIZE:Ge,DEFAULT_FLYWEIGHT_CACHE_SIZE:Xe,MAX_BADGE_LENGTH:Be,MONTH_ABBREVIATIONS:Ke,WORKSPACE_SCALE_BALANCED_THRESHOLD:Ve,WORKSPACE_SCALE_LARGE_THRESHOLD:Ye,WORKSPACE_SCALE_EXTREME_THRESHOLD:ne,WORKSPACE_SCAN_MAX_RESULTS:Ze,GLOBAL_STATE_KEYS:Je,WEB_CHUNK_GLOBAL_KEY:Qe,LEGACY_WEB_CHUNK_GLOBAL_KEY:et}});var ce=d((lt,oe)=>{var{DEFAULT_PERSISTENT_CACHE_TTL:tt}=N();function k(s){return typeof s=="number"&&Number.isFinite(s)?s:typeof s=="string"&&s.trim()!==""&&!Number.isNaN(Number(s))?Number(s):NaN}function st(s,e,t){if(!s||typeof s!="object")return null;let i=s.timestamp??s.ts,n=s.lastAccess??s.la,r=s.ttl??s.tt,c=s.size??s.sz,l=k(i),p=k(n),o=k(r),u=k(c),f=s.tags??s.tg;if(f!==void 0&&!Array.isArray(f)||!Number.isFinite(l)||!Number.isFinite(p)||!Number.isFinite(o)||!Number.isFinite(u))return t.persistentRejected++,null;let h=Date.now(),w=10*365*24*60*60*1e3,P=365*24*60*60*1e3;if(o<=0||o>w||lh+P||ph+P||!Number.isFinite(u)||u<=0)return t.persistentRejected++,null;let he=Math.max(e*10,10*1024*1024);return u>he?(t.persistentRejected++,null):{timestamp:Number.isFinite(l)?l:Date.now(),lastAccess:Number.isFinite(p)?p:Date.now(),ttl:Number.isFinite(o)&&o>0?o:tt,size:Number.isFinite(u)?u:void 0,tags:Array.isArray(f)?f:void 0,version:s.version??s.v??1}}oe.exports={normalizePersistedMetadataStrict:st}});var ue=d((exports,module)=>{var vscode=require("vscode"),getLogger=()=>{try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let s=dynamicRequire("./chunks/logger-chunk");if(s&&typeof s.getLogger=="function")return getLogger=s.getLogger,getLogger()}}catch{}try{return getLogger=x().getLogger,getLogger()}catch{return getLogger=()=>({debug:(()=>{})?.bind(console)||console.log,info:(()=>{}).bind(console),warn:(()=>{}).bind(console),error:(()=>{}).bind(console)}),getLogger()}},{fileSystem}=ie(),{GLOBAL_STATE_KEYS,DEFAULT_PERSISTENT_CACHE_TTL}=N(),AdvancedCache=class{constructor(e){this._logger=getLogger(),this.W=e,this.e=new Map,this.t=50*1024*1024,this.o=0,this.i=!0,this.h=!1,this.s=e?.globalState||null,this.g=GLOBAL_STATE_KEYS.ADVANCED_CACHE,this.q=GLOBAL_STATE_KEYS.ADVANCED_CACHE_METADATA,this.T=fileSystem,this.l=null,this._metrics={memoryHits:0,memoryMisses:0,diskHits:0,diskMisses:0,evictions:0,persistentLoads:0,persistentSaves:0,persistentRejected:0},this.E=null,this._=null,this.c=!1,this.f=!1,this._logger.info("AdvancedCache initialized")}async initialize(){try{await this.S(),this.i&&await this.R(),this.C(),this._logger.info("Advanced cache system initialized",{persistentEnabled:this.i&&!!this.s,maxMemoryUsage:this.t,storage:this.s?"globalState":"memory-only"})}catch(e){this._logger.error("Failed to initialize cache system",e)}}async S(){let e=vscode.workspace.getConfiguration("explorerDates");this.i=e.get("persistentCache",!0),this.t=e.get("maxMemoryUsage",50)*1024*1024,this.h=e.get("strictPersistentCacheValidation",!1),this.L()}L(){this.l||(this.l=vscode.workspace.onDidChangeConfiguration(e=>{(e.affectsConfiguration("explorerDates.persistentCache")||e.affectsConfiguration("explorerDates.maxMemoryUsage")||e.affectsConfiguration("explorerDates.strictPersistentCacheValidation"))&&this.S()}))}k(e,t={}){let i=Date.now();return{value:e,size:t.size??this.N(e),ttl:t.ttl??DEFAULT_PERSISTENT_CACHE_TTL,tags:t.tags&&t.tags.length>0?[...t.tags]:void 0,version:t.version??1,timestamp:t.timestamp??i,lastAccess:t.lastAccess??i}}F(e){e.lastAccess=Date.now()}P(e){return{ts:e.timestamp,la:e.lastAccess,ttl:e.ttl,sz:e.size,tg:e.tags,v:e.version}}async z(e){if(!e)return null;if(typeof e!="object")return this.h?null:{timestamp:Date.now(),lastAccess:Date.now(),ttl:DEFAULT_PERSISTENT_CACHE_TTL,size:void 0,tags:void 0,version:1};if(this.h)try{return(await Promise.resolve().then(()=>ge(ce()))).normalizePersistedMetadataStrict(e,this.t,this._metrics,this._logger)}catch(h){this._logger.warn("Failed to load strict persistent validation module, falling back to tolerant parsing",h)}let t=h=>typeof h=="number"&&Number.isFinite(h)?h:typeof h=="string"&&h.trim()!==""&&!Number.isNaN(Number(h))?Number(h):NaN,i=e.timestamp??e.ts,n=e.lastAccess??e.la,r=e.ttl??e.tt,c=e.size??e.sz,l=t(i),p=t(n),o=t(r),u=t(c),f=e.tags??e.tg;return{timestamp:Number.isFinite(l)?l:Date.now(),lastAccess:Number.isFinite(p)?p:Date.now(),ttl:Number.isFinite(o)&&o>0?o:DEFAULT_PERSISTENT_CACHE_TTL,size:Number.isFinite(u)?u:void 0,tags:Array.isArray(f)?f:void 0,version:e.version??e.v??1}}async w(e){if(!e)return null;let t=await this.z(e.metadata||e.meta);return t?this.k(e.data??e.value,t):(this.h&&this._metrics.persistentRejected++,null)}O(e){return{data:e.value,metadata:this.P(e)}}async get(e){let t=this.e.get(e);if(t){if(this.m(t))return this._metrics.memoryHits++,this.F(t),t.value;this.a(e)}if(this._metrics.memoryMisses++,this.i){let i=await this.x(e);if(i)return typeof i.size=="number"&&i.size>this.t?i.size/Math.max(this.t,1)>4?(this._logger.debug(`Persistent entry ${e} is extremely oversized (size ${i.size}) exceeding maxMemoryUsage ${this.t}; skipping return`),this._metrics.persistentRejected++,this._metrics.diskMisses++,null):(this._logger.debug(`Persistent entry ${e} is oversized (size ${i.size}) exceeding maxMemoryUsage ${this.t}; returning value without loading into memory`),this._metrics.diskHits++,i.value):(this.b(e,i,{skipDirtyFlag:!0}),this._metrics.diskHits++,i.value)}return this._metrics.diskMisses++,null}async set(e,t,i={}){let n=this.k(t,{ttl:i.ttl,tags:i.tags,version:i.version});this.b(e,n),this.i&&this.H()}b(e,t,i={}){let{skipDirtyFlag:n=!1}=i;typeof t.size=="number"&&t.size>this.t&&this._logger.warn(`Entry ${e} size ${t.size} exceeds maxMemoryUsage ${this.t}; attempting eviction to make room`),this.o+(t.size||0)>this.t&&this.M(t.size),this.e.has(e)&&this.a(e),this.e.set(e,t),this.o+=t.size,n||(this.c=!0,this.f=!1),this._logger.debug(`Added to cache: ${e} (${t.size} bytes)`)}a(e){let t=this.e.get(e);t&&(this.e.delete(e),this.o-=t.size,this.c=!0,this.f=!1)}M(e){let t=Array.from(this.e.entries());t.sort((n,r)=>n[1].lastAccess-r[1].lastAccess);let i=0;for(let[n,r]of t)if(this.a(n),i+=r.size,this._metrics.evictions++,i>=e)break;this._logger.debug(`Evicted items to free ${i} bytes`)}m(e){return e?Date.now()-e.timestampthis.t){this._logger.debug(`Skipping loading entry ${n} into memory: size (${c.size}) exceeds maxMemoryUsage`),i++;continue}if(this.h&&(typeof c.size!="number"||!Number.isFinite(c.size))){this._metrics.persistentRejected++,i++;continue}this.b(n,c,{skipDirtyFlag:!0}),t++;continue}i++}this.c=!1,this._metrics.persistentLoads++,this._logger.info(`Loaded persistent cache: ${t} items (${i} expired/invalid)`)}catch(e){this._logger.error("Failed to load persistent cache from globalState",e)}}async A(){if(!(!this.i||!this.s)){if(this.f){this._logger.debug("Skipping persistent cache save (runtime reset requested)"),this.f=!1;return}if(!this.c){this._logger.debug("Persistent cache unchanged - skipping save");return}try{let e={};for(let[t,i]of this.e.entries())this.m(i)&&(e[t]=this.O(i));await this.s.update(this.g,e),this._metrics.persistentSaves++,this.c=!1,this._logger.debug(`Saved persistent cache: ${Object.keys(e).length} items`)}catch(e){this._logger.error("Failed to save persistent cache to globalState",e)}}}async x(e){if(!this.s)return null;let i=this.s.get(this.g,{})[e],n=await this.w(i);return n&&this.m(n)?n:null}H(){this.s&&(this.y&&clearTimeout(this.y),this.y=setTimeout(()=>{this.A()},5e3))}C(){this.E=setInterval(()=>{this.I()},300*1e3),this.s&&this.i&&(this._=setInterval(()=>{this.A()},600*1e3))}I(){let e=[];for(let[t,i]of this.e.entries())this.m(i)||e.push(t);for(let t of e)this.a(t);e.length>0&&this._logger.debug(`Cleaned up ${e.length} expired cache items`)}invalidateByTags(e){let t=[];for(let[i,n]of this.e.entries())n.tags&&n.tags.some(r=>e.includes(r))&&t.push(i);for(let i of t)this.a(i);this._logger.debug(`Invalidated ${t.length} items by tags:`,e)}invalidateByPattern(e){let t=[],i=new RegExp(e);for(let n of this.e.keys())i.test(n)&&t.push(n);for(let n of t)this.a(n);this._logger.debug(`Invalidated ${t.length} items by pattern: ${e}`)}clear(){this.e.clear(),this.o=0,this.c=!0,this._logger.info("Cache cleared")}resetRuntimeOnly(){this.e.clear(),this.o=0,this.c=!1,this.f=!0,this._logger.info("Runtime cache cleared (persistent snapshot preserved)")}getStats(){let e=this._metrics.memoryHits+this._metrics.memoryMisses>0?(this._metrics.memoryHits/(this._metrics.memoryHits+this._metrics.memoryMisses)*100).toFixed(2):"0",t=this._metrics.diskHits+this._metrics.diskMisses>0?(this._metrics.diskHits/(this._metrics.diskHits+this._metrics.diskMisses)*100).toFixed(2):"0";return{...this._metrics,memoryItems:this.e.size,memoryUsage:this.o,memoryUsagePercent:(this.o/this.t*100).toFixed(2),memoryHitRate:`${e}%`,diskHitRate:`${t}%`,persistentEnabled:this.i}}async dispose(){this.E&&clearInterval(this.E),this._&&clearInterval(this._),this.y&&clearTimeout(this.y),this.i&&this.s&&await this.A(),this.clear(),this.l&&(this.l.dispose(),this.l=null),this._logger.info("Advanced cache disposed",this.getStats())}};module.exports={AdvancedCache}});var{AdvancedCache:F}=ue();function ae(s){return new F(s)}module.exports={AdvancedCache:F,createAdvancedCache:ae,default:{AdvancedCache:F,createAdvancedCache:ae}}; +var le=Object.create;var z=Object.defineProperty;var fe=Object.getOwnPropertyDescriptor;var me=Object.getOwnPropertyNames;var pe=Object.getPrototypeOf,de=Object.prototype.hasOwnProperty;var d=(s,e)=>()=>(e||s((e={exports:{}}).exports,e),e.exports);var ye=(s,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of me(e))!de.call(s,n)&&n!==t&&z(s,n,{get:()=>e[n],enumerable:!(i=fe(e,n))||i.enumerable});return s};var ge=(s,e,t)=>(t=s!=null?le(pe(s)):{},ye(e||!s||!s.__esModule?z(t,"default",{value:s,enumerable:!0}):t,s));var x=d((nt,O)=>{var g="__explorerDatesLogger",E=class{constructor(){this.p=null}d(e,t){if(this.p&&typeof this.p[e]=="function")try{return this.p[e](...t)}catch{}switch(e){case"debug":break;case"info":break;case"warn":break;case"error":break;default:break}}debug(...e){return this.d("debug",e)}info(...e){return this.d("info",e)}warn(...e){return this.d("warn",e)}error(...e){return this.d("error",e)}W(e){this.p=e}};function Ee(){return typeof global<"u"?(global[g]||(global[g]=new E),global[g]):typeof globalThis<"u"?(globalThis[g]||(globalThis[g]=new E),globalThis[g]):(T||(T=new E),T)}var R=class extends E{},T=null;O.exports={Logger:R,getLogger:Ee}});var M=d((rt,H)=>{var v=require("vscode");function _e(){try{let s=v?.env?.uiKind,e=v?.UIKind?.Web;return s!==void 0&&e!==void 0&&s===e}catch{return!1}}H.exports={isWebEnvironment:_e}});var I=d((exports,module)=>{var chunk=null;try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){try{chunk=dynamicRequire("../chunks/utils-shared-chunk")}catch{}try{chunk||(chunk=dynamicRequire("./chunks/utils-shared-chunk"))}catch{}try{chunk||(chunk=dynamicRequire("../chunks/path-utils-chunk"))}catch{}try{chunk||(chunk=dynamicRequire("./chunks/path-utils-chunk"))}catch{}}}catch{}if(chunk&&chunk.normalizePath)module.exports={normalizePath:chunk.normalizePath,getFileName:chunk.getFileName,getExtension:chunk.getExtension,getDirectory:chunk.getDirectory,joinPath:chunk.joinPath,getCacheKey:chunk.getCacheKey,getUriPath:chunk.getUriPath,getRelativePath:chunk.getRelativePath};else{let s=function(o=""){return o?o.replace(/\\/g,"/"):""},e=function(o=""){let u=s(o);return u?u.split("/").filter(Boolean):[]},t=function(o=""){let u=e(o);return u.length?u[u.length-1]:""},i=function(o=""){let u=t(o),m=u.lastIndexOf(".");return m<=0?"":u.substring(m).toLowerCase()},n=function(o=""){let u=s(o),m=u.lastIndexOf("/");return m===-1?"":u.substring(0,m)},r=function(...o){return s(o.filter(Boolean).join("/")).replace(/\/+/g,"/")},c=function(o=""){return s(o).toLowerCase()},h=function(o=""){if(!o)return"";if(typeof o=="string")return o;if(typeof o.fsPath=="string"&&o.fsPath.length>0)return o.fsPath;if(typeof o.path=="string"&&o.path.length>0)return o.path;if(typeof o.toString=="function")try{return o.toString(!0)}catch{return o.toString()}return String(o)},p=function(o="",u=""){let m=s(o),l=s(u);return m&&l.startsWith(m)?l.substring(m.length).replace(/^\/+/,""):l};normalizePath=s,getSegments=e,getFileName=t,getExtension=i,getDirectory=n,joinPath=r,getCacheKey=c,getUriPath=h,getRelativePath=p,module.exports={normalizePath:s,getFileName:t,getExtension:i,getDirectory:n,joinPath:r,getCacheKey:c,getUriPath:h,getRelativePath:p}}var normalizePath,getSegments,getFileName,getExtension,getDirectory,joinPath,getCacheKey,getUriPath,getRelativePath});var q=d((ot,U)=>{var A=class extends Error{constructor(e,t,i={}){super(t),this.code=e,this.context=i,this.name="ExtensionError"}},W={FILE_PERMISSION_DENIED:"FILE_PERMISSION_DENIED",WORKSPACE_TOO_LARGE:"WORKSPACE_TOO_LARGE",CHUNK_LOAD_FAILED:"CHUNK_LOAD_FAILED"};function be(s){if(!s)return!1;let e=s.code||s?.name;return["EACCES","EPERM","EROFS","NoPermissions"].includes(e)}var C=class extends A{constructor(e,t,i={}){let{recoverable:n=!0,context:r={}}=i;super(W.CHUNK_LOAD_FAILED,`Failed to load ${e}: ${t}`,{chunkName:e,recoverable:n,...r}),this.name="ChunkLoadError",this.chunkName=e,this.recoverable=n}};function Ae(s,e,t={}){let i=require("vscode"),{userFacing:n=!0}=t,r=e?.recoverable??!0;n&&!r&&i.window.showErrorMessage(`Explorer Dates: ${s} feature unavailable. Please reinstall or rebuild the extension.`)}U.exports={ExtensionError:A,ERROR_CODES:W,isPermissionError:be,ChunkLoadError:C,handleChunkFailure:Ae}});var G=d((ct,K)=>{var $="EXPLORER_DATES_FORCE_VSCODE_FS";function j(s,e=process.env){return String(e?.[s]||"")==="1"}function k(s){let e=s&&typeof s=="object"?s:null,t=String(e?.scheme||(typeof s=="string"&&/^[a-z][a-z0-9+.-]*:/i.test(s)?s.split(":",1)[0]:"file")).toLowerCase(),i=String(e?.authority||""),n=e?.path||e?.fsPath||(typeof s=="string"?s.replace(/^[a-z][a-z0-9+.-]*:\/\//i,""):"");return{scheme:t,authority:i,path:String(n||"")}}function ke({uri:s,isWeb:e=!1,remoteName:t="",forceWorkspaceFs:i=j($)}={}){let n=k(s),r=n.scheme!=="file",c=!!e,h=!!t,p=!!(i||c||h||r);return{scheme:n.scheme,authority:n.authority,isFileScheme:!r,isVirtual:r,isBrowser:c,isRemote:h,forceWorkspaceFs:!!i,filesystem:p?"workspace.fs":"node.fs",provider:r?n.scheme==="github"||n.scheme==="vscode-vfs"?"github":"virtual":"filesystem"}}function B({uri:s,platform:e=process.platform,caseSensitive:t}={}){return typeof t=="boolean"?t:k(s).scheme!=="file"?!0:e!=="win32"}function De(s,e={}){let t=k(s),i=t.path.replace(/\\/g,"/").replace(/\/+/g,"/"),n=`${t.scheme}://${t.authority}${i}`;return B({uri:s,...e})?n:n.toLowerCase()}function L(s){if(s instanceof Date){let e=s.getTime();return Number.isFinite(e)?e:null}if(typeof s=="number")return Number.isFinite(s)?s:null;if(typeof s=="string"&&s.trim()){let e=Date.parse(s);return Number.isFinite(e)?e:null}return null}function Se(s){if(!s||typeof s!="object")return null;let e=L(s.mtime),t=L(s.ctime);return{...s,mtimeMs:e,ctimeMs:t}}K.exports={FORCE_WORKSPACE_FS_ENV:$,envFlag:j,getUriParts:k,getEnvironmentContract:ke,isCaseSensitive:B,resourceIdentity:De,normalizeTimestamp:L,normalizeStat:Se}});var Z=d((ut,Y)=>{function we(){return typeof Date=="function"&&Date.now?Date.now():16409952e5}function X(s){return!!(s&&typeof s=="object"&&typeof s.getTime=="function")}function Te(s){if(X(s))return s;if(typeof s=="number")return new Date(s);if(typeof s=="string"){let e=Date.parse(s);return isNaN(e)?new Date:new Date(e)}return new Date}function y(s=""){return s?s.replace(/\\/g,"/"):""}function Re(s=""){let e=y(s);return e?e.split("/").filter(Boolean):[]}function V(s=""){let e=Re(s);return e.length?e[e.length-1]:""}function Ce(s=""){let e=V(s),t=e.lastIndexOf(".");return t<=0?"":e.substring(t).toLowerCase()}function Le(s=""){let e=y(s),t=e.lastIndexOf("/");return t===-1?"":e.substring(0,t)}function Ne(...s){return y(s.filter(Boolean).join("/")).replace(/\/+/g,"/")}function Fe(s=""){return y(s).toLowerCase()}function Pe(s=""){if(!s)return"";if(typeof s=="string")return s;if(typeof s.fsPath=="string"&&s.fsPath.length>0)return s.fsPath;if(typeof s.path=="string"&&s.path.length>0)return s.path;if(typeof s.toString=="function")try{return s.toString(!0)}catch{return s.toString()}return String(s)}function ze(s="",e=""){let t=y(s),i=y(e);return t&&i.startsWith(t)?i.substring(t.length).replace(/^\/+/,""):i}Y.exports={ensureDate:Te,isDateLike:X,getCurrentTimestamp:we,normalizePath:y,getFileName:V,getExtension:Ce,getDirectory:Le,joinPath:Ne,getCacheKey:Fe,getUriPath:Pe,getRelativePath:ze}});var J=d((exports,module)=>{var chunk=null;try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){try{chunk=dynamicRequire("../chunks/utils-shared-chunk")}catch{}try{chunk||(chunk=dynamicRequire("./chunks/utils-shared-chunk"))}catch{}try{chunk||(chunk=dynamicRequire("../chunks/date-helpers-chunk"))}catch{}try{chunk||(chunk=dynamicRequire("./chunks/date-helpers-chunk"))}catch{}}}catch{}if(chunk&&(chunk.ensureDate||chunk.isDateLike||chunk.getCurrentTimestamp))module.exports={ensureDate:chunk.ensureDate,isDateLike:chunk.isDateLike,getCurrentTimestamp:chunk.getCurrentTimestamp};else{let s=function(){return typeof Date=="function"&&Date.now?Date.now():16409952e5},e=function(i){return!!(i&&typeof i=="object"&&typeof i.getTime=="function")},t=function(i){if(e(i))return i;if(typeof i=="number")return new Date(i);if(typeof i=="string"){let n=Date.parse(i);return isNaN(n)?new Date:new Date(n)}return new Date};getCurrentTimestamp=s,isDateLike=e,ensureDate=t,module.exports={ensureDate:t,isDateLike:e,getCurrentTimestamp:s}}var getCurrentTimestamp,isDateLike,ensureDate});var ie=d((at,se)=>{var a=require("vscode"),{isWebEnvironment:Q}=M(),{normalizePath:Oe}=I(),{ExtensionError:xe,ERROR_CODES:ve,isPermissionError:He}=q(),{getEnvironmentContract:Me,normalizeStat:Ie,FORCE_WORKSPACE_FS_ENV:We}=G(),_;try{let s=Z();s&&(_=s.ensureDate)}catch{}_||(_=J().ensureDate);var ee=typeof process<"u"&&process.env?process.env:{},te=ee.VSCODE_WEB==="true"||Q(),f=null;if(!te)try{f=require("fs").promises}catch{f=null}var D=class{constructor(){this.isWeb=te||Q()}o(e){try{return Me({uri:this.s(e),isWeb:this.isWeb,remoteName:a.env?.remoteName,forceWorkspaceFs:ee[We]==="1"}).filesystem==="workspace.fs"}catch{return!1}}n(e){if(!e)return"";if(typeof e=="string")return e;if(e&&typeof e=="object"&&typeof e.fsPath=="string")return e.fsPath;if(e&&typeof e=="object"&&typeof e.path=="string")return e.path;if(typeof e=="object"){if(typeof e.fsPath=="string")return e.fsPath;if(typeof e.path=="string")return e.path}return String(e)}s(e){if(e&&typeof e=="object"&&typeof e.scheme=="string"&&typeof e.path=="string")return e;if(typeof e=="string"){let t=e.trim(),i=/^[a-zA-Z]:[\\/]/.test(t);if(/^[a-zA-Z][a-zA-Z0-9+.-]*:/.test(t)&&!i){let r=a.Uri.parse(t);if(r.scheme&&r.scheme!=="file")return r}return a.Uri.file(e)}if(e&&typeof e=="object"){if(e.uri&&e.uri!==e)try{return this.s(e.uri)}catch{}if(this.isWeb&&typeof e.scheme=="string"&&typeof e.path=="string")return a.Uri.from({scheme:e.scheme,authority:e.authority||"",path:e.path||"",query:e.query||"",fragment:e.fragment||""});if(typeof e.fsPath=="string"&&e.fsPath.length>0)return a.Uri.file(e.fsPath);if(typeof e.path=="string"&&e.path.length>0)return this.isWeb&&typeof e.scheme=="string"&&e.scheme!=="file"?a.Uri.from({scheme:e.scheme,authority:e.authority||"",path:e.path,query:e.query||"",fragment:e.fragment||""}):a.Uri.file(e.path);if(typeof e.href=="string"&&e.href.length>0)return a.Uri.parse(e.href);if(typeof e.scheme=="string")return a.Uri.from({scheme:e.scheme,authority:e.authority||"",path:e.path||e.fsPath||"",query:e.query||"",fragment:e.fragment||""});if(typeof e.toString=="function")try{let t=e.toString(!0);if(t&&t!=="[object Object]")return a.Uri.parse(t)}catch{let t=e.toString();if(t&&t!=="[object Object]")return a.Uri.parse(t)}}throw new Error(`Unsupported target type: ${typeof e}`)}async stat(e){let t=this.o(e);if(!this.isWeb&&f&&!t)return f.stat(this.n(e));let i=this.s(e),n=await a.workspace.fs.stat(i),r=Ie(n);return{...r,mtime:r.mtimeMs===null?_(n.mtime):new Date(r.mtimeMs),ctime:r.ctimeMs===null?_(n.ctime):new Date(r.ctimeMs),birthtime:r.ctimeMs===null?_(n.ctime):new Date(r.ctimeMs),isFile:()=>n.type===a.FileType.File,isDirectory:()=>n.type===a.FileType.Directory}}async readFile(e,t="utf8"){let i=this.o(e);if(!this.isWeb&&f&&!i)return f.readFile(this.n(e),t);let n=this.s(e),r=await a.workspace.fs.readFile(n);return t===null||t==="binary"?r:new TextDecoder(t).decode(r)}async writeFile(e,t,i="utf8"){let n=this.n(e);try{let r=this.o(e);if(!this.isWeb&&f&&!r)return f.writeFile(n,t,i);let c=this.s(e),h=typeof t=="string"?new TextEncoder().encode(t):t;await a.workspace.fs.writeFile(c,h)}catch(r){this.g("write file",n,r)}}async rename(e,t,i={overwrite:!1}){let n=this.n(e),r=this.n(t);try{let c=this.o(e)||this.o(t);if(!this.isWeb&&f&&!c)return f.rename(n,r);if(typeof a.workspace.fs.rename=="function")await a.workspace.fs.rename(this.s(e),this.s(t),i);else if(this.s(e).scheme==="file"&&this.s(t).scheme==="file")await(f||require("fs").promises).rename(n,r);else throw new Error("The active filesystem provider cannot rename report output.")}catch(c){this.g("rename file",`${n} -> ${r}`,c)}}async mkdir(e,t={recursive:!0}){let i=this.n(e);try{let n=this.o(e);if(!this.isWeb&&f&&!n)return f.mkdir(i,t);let r=this.s(e);await a.workspace.fs.createDirectory(r)}catch(n){this.g("create directory",i,n)}}async readdir(e,t={withFileTypes:!1}){let i=this.o(e);if(!this.isWeb&&f&&!i)return f.readdir(this.n(e),t);let n=this.s(e),r=await a.workspace.fs.readDirectory(n);return t.withFileTypes?r.map(([c,h])=>({name:c,isDirectory:()=>h===a.FileType.Directory,isFile:()=>h===a.FileType.File})):r.map(([c])=>c)}async delete(e,t={recursive:!1}){let i=this.o(e);if(!this.isWeb&&f&&!i){let r=this.n(e);return t.recursive?f.rm?f.rm(r,t):f.rmdir(r,t):f.unlink(r)}let n=this.s(e);await a.workspace.fs.delete(n,t)}async exists(e){try{return await this.stat(e),!0}catch{return!1}}async ensureDirectory(e){let t=Oe(this.n(e));await this.mkdir(t,{recursive:!0})}g(e,t,i){throw He(i)?new xe(ve.FILE_PERMISSION_DENIED,`Permission denied while attempting to ${e}`,{path:t,code:i.code}):i}},Ue=new D;se.exports={FileSystemAdapter:D,fileSystem:Ue}});var N=d((ht,re)=>{var b=typeof process<"u"&&process.env?process.env:{},qe=12e4,$e=1e4,je=1440*60*1e3,Be=2,Ke=["Ja","Fe","Mr","Ap","My","Jn","Jl","Au","Se","Oc","No","De"],Ge=Number(b.EXPLORER_DATES_DECORATION_POOL_SIZE||2048),Xe=Number(b.EXPLORER_DATES_FLYWEIGHT_CACHE_SIZE||4096),Ve=Number(b.EXPLORER_DATES_WORKSPACE_BALANCED_THRESHOLD||15e3),Ye=Number(b.EXPLORER_DATES_WORKSPACE_LARGE_THRESHOLD||25e4),ne=Number(b.EXPLORER_DATES_WORKSPACE_EXTREME_THRESHOLD||4e5),Ze=Number(b.EXPLORER_DATES_WORKSPACE_SCAN_MAX_RESULTS||Math.min(ne+1,50001)),Je={ADVANCED_CACHE:"explorerDates.advancedCache",ADVANCED_CACHE_METADATA:"explorerDates.advancedCacheMetadata",TEMPLATE_STORE:"explorerDates.templates",WEB_GIT_NOTICE:"explorerDates.webGitNotice"},Qe="explorerDatesChunks",et="__explorerDatesChunks";re.exports={DEFAULT_CACHE_TIMEOUT:qe,DEFAULT_MAX_CACHE_SIZE:$e,DEFAULT_PERSISTENT_CACHE_TTL:je,DEFAULT_DECORATION_POOL_SIZE:Ge,DEFAULT_FLYWEIGHT_CACHE_SIZE:Xe,MAX_BADGE_LENGTH:Be,MONTH_ABBREVIATIONS:Ke,WORKSPACE_SCALE_BALANCED_THRESHOLD:Ve,WORKSPACE_SCALE_LARGE_THRESHOLD:Ye,WORKSPACE_SCALE_EXTREME_THRESHOLD:ne,WORKSPACE_SCAN_MAX_RESULTS:Ze,GLOBAL_STATE_KEYS:Je,WEB_CHUNK_GLOBAL_KEY:Qe,LEGACY_WEB_CHUNK_GLOBAL_KEY:et}});var ce=d((lt,oe)=>{var{DEFAULT_PERSISTENT_CACHE_TTL:tt}=N();function S(s){return typeof s=="number"&&Number.isFinite(s)?s:typeof s=="string"&&s.trim()!==""&&!Number.isNaN(Number(s))?Number(s):NaN}function st(s,e,t){if(!s||typeof s!="object")return null;let i=s.timestamp??s.ts,n=s.lastAccess??s.la,r=s.ttl??s.tt,c=s.size??s.sz,h=S(i),p=S(n),o=S(r),u=S(c),m=s.tags??s.tg;if(m!==void 0&&!Array.isArray(m)||!Number.isFinite(h)||!Number.isFinite(p)||!Number.isFinite(o)||!Number.isFinite(u))return t.persistentRejected++,null;let l=Date.now(),w=10*365*24*60*60*1e3,P=365*24*60*60*1e3;if(o<=0||o>w||hl+P||pl+P||!Number.isFinite(u)||u<=0)return t.persistentRejected++,null;let he=Math.max(e*10,10*1024*1024);return u>he?(t.persistentRejected++,null):{timestamp:Number.isFinite(h)?h:Date.now(),lastAccess:Number.isFinite(p)?p:Date.now(),ttl:Number.isFinite(o)&&o>0?o:tt,size:Number.isFinite(u)?u:void 0,tags:Array.isArray(m)?m:void 0,version:s.version??s.v??1}}oe.exports={normalizePersistedMetadataStrict:st}});var ue=d((exports,module)=>{var vscode=require("vscode"),getLogger=()=>{try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let s=dynamicRequire("./chunks/logger-chunk");if(s&&typeof s.getLogger=="function")return getLogger=s.getLogger,getLogger()}}catch{}try{return getLogger=x().getLogger,getLogger()}catch{return getLogger=()=>({debug:(()=>{})?.bind(console)||console.log,info:(()=>{}).bind(console),warn:(()=>{}).bind(console),error:(()=>{}).bind(console)}),getLogger()}},{fileSystem}=ie(),{GLOBAL_STATE_KEYS,DEFAULT_PERSISTENT_CACHE_TTL}=N(),AdvancedCache=class{constructor(e){this._logger=getLogger(),this.U=e,this.e=new Map,this.t=50*1024*1024,this.c=0,this.r=!0,this.h=!1,this.i=e?.globalState||null,this.E=GLOBAL_STATE_KEYS.ADVANCED_CACHE,this.q=GLOBAL_STATE_KEYS.ADVANCED_CACHE_METADATA,this.T=fileSystem,this.l=null,this._metrics={memoryHits:0,memoryMisses:0,diskHits:0,diskMisses:0,evictions:0,persistentLoads:0,persistentSaves:0,persistentRejected:0},this._=null,this.b=null,this.u=!1,this.f=!1,this._logger.info("AdvancedCache initialized")}async initialize(){try{await this.D(),this.r&&await this.R(),this.C(),this._logger.info("Advanced cache system initialized",{persistentEnabled:this.r&&!!this.i,maxMemoryUsage:this.t,storage:this.i?"globalState":"memory-only"})}catch(e){this._logger.error("Failed to initialize cache system",e)}}async D(){let e=vscode.workspace.getConfiguration("explorerDates");this.r=e.get("persistentCache",!0),this.t=e.get("maxMemoryUsage",50)*1024*1024,this.h=e.get("strictPersistentCacheValidation",!1),this.L()}L(){this.l||(this.l=vscode.workspace.onDidChangeConfiguration(e=>{(e.affectsConfiguration("explorerDates.persistentCache")||e.affectsConfiguration("explorerDates.maxMemoryUsage")||e.affectsConfiguration("explorerDates.strictPersistentCacheValidation"))&&this.D()}))}S(e,t={}){let i=Date.now();return{value:e,size:t.size??this.N(e),ttl:t.ttl??DEFAULT_PERSISTENT_CACHE_TTL,tags:t.tags&&t.tags.length>0?[...t.tags]:void 0,version:t.version??1,timestamp:t.timestamp??i,lastAccess:t.lastAccess??i}}F(e){e.lastAccess=Date.now()}P(e){return{ts:e.timestamp,la:e.lastAccess,ttl:e.ttl,sz:e.size,tg:e.tags,v:e.version}}async z(e){if(!e)return null;if(typeof e!="object")return this.h?null:{timestamp:Date.now(),lastAccess:Date.now(),ttl:DEFAULT_PERSISTENT_CACHE_TTL,size:void 0,tags:void 0,version:1};if(this.h)try{return(await Promise.resolve().then(()=>ge(ce()))).normalizePersistedMetadataStrict(e,this.t,this._metrics,this._logger)}catch(l){this._logger.warn("Failed to load strict persistent validation module, falling back to tolerant parsing",l)}let t=l=>typeof l=="number"&&Number.isFinite(l)?l:typeof l=="string"&&l.trim()!==""&&!Number.isNaN(Number(l))?Number(l):NaN,i=e.timestamp??e.ts,n=e.lastAccess??e.la,r=e.ttl??e.tt,c=e.size??e.sz,h=t(i),p=t(n),o=t(r),u=t(c),m=e.tags??e.tg;return{timestamp:Number.isFinite(h)?h:Date.now(),lastAccess:Number.isFinite(p)?p:Date.now(),ttl:Number.isFinite(o)&&o>0?o:DEFAULT_PERSISTENT_CACHE_TTL,size:Number.isFinite(u)?u:void 0,tags:Array.isArray(m)?m:void 0,version:e.version??e.v??1}}async w(e){if(!e)return null;let t=await this.z(e.metadata||e.meta);return t?this.S(e.data??e.value,t):(this.h&&this._metrics.persistentRejected++,null)}O(e){return{data:e.value,metadata:this.P(e)}}async get(e){let t=this.e.get(e);if(t){if(this.m(t))return this._metrics.memoryHits++,this.F(t),t.value;this.a(e)}if(this._metrics.memoryMisses++,this.r){let i=await this.x(e);if(i)return typeof i.size=="number"&&i.size>this.t?i.size/Math.max(this.t,1)>4?(this._logger.debug(`Persistent entry ${e} is extremely oversized (size ${i.size}) exceeding maxMemoryUsage ${this.t}; skipping return`),this._metrics.persistentRejected++,this._metrics.diskMisses++,null):(this._logger.debug(`Persistent entry ${e} is oversized (size ${i.size}) exceeding maxMemoryUsage ${this.t}; returning value without loading into memory`),this._metrics.diskHits++,i.value):(this.A(e,i,{skipDirtyFlag:!0}),this._metrics.diskHits++,i.value)}return this._metrics.diskMisses++,null}async set(e,t,i={}){let n=this.S(t,{ttl:i.ttl,tags:i.tags,version:i.version});this.A(e,n),this.r&&this.H()}A(e,t,i={}){let{skipDirtyFlag:n=!1}=i;typeof t.size=="number"&&t.size>this.t&&this._logger.warn(`Entry ${e} size ${t.size} exceeds maxMemoryUsage ${this.t}; attempting eviction to make room`),this.c+(t.size||0)>this.t&&this.M(t.size),this.e.has(e)&&this.a(e),this.e.set(e,t),this.c+=t.size,n||(this.u=!0,this.f=!1),this._logger.debug(`Added to cache: ${e} (${t.size} bytes)`)}a(e){let t=this.e.get(e);t&&(this.e.delete(e),this.c-=t.size,this.u=!0,this.f=!1)}M(e){let t=Array.from(this.e.entries());t.sort((n,r)=>n[1].lastAccess-r[1].lastAccess);let i=0;for(let[n,r]of t)if(this.a(n),i+=r.size,this._metrics.evictions++,i>=e)break;this._logger.debug(`Evicted items to free ${i} bytes`)}m(e){return e?Date.now()-e.timestampthis.t){this._logger.debug(`Skipping loading entry ${n} into memory: size (${c.size}) exceeds maxMemoryUsage`),i++;continue}if(this.h&&(typeof c.size!="number"||!Number.isFinite(c.size))){this._metrics.persistentRejected++,i++;continue}this.A(n,c,{skipDirtyFlag:!0}),t++;continue}i++}this.u=!1,this._metrics.persistentLoads++,this._logger.info(`Loaded persistent cache: ${t} items (${i} expired/invalid)`)}catch(e){this._logger.error("Failed to load persistent cache from globalState",e)}}async k(){if(!(!this.r||!this.i)){if(this.f){this._logger.debug("Skipping persistent cache save (runtime reset requested)"),this.f=!1;return}if(!this.u){this._logger.debug("Persistent cache unchanged - skipping save");return}try{let e={};for(let[t,i]of this.e.entries())this.m(i)&&(e[t]=this.O(i));await this.i.update(this.E,e),this._metrics.persistentSaves++,this.u=!1,this._logger.debug(`Saved persistent cache: ${Object.keys(e).length} items`)}catch(e){this._logger.error("Failed to save persistent cache to globalState",e)}}}async x(e){if(!this.i)return null;let i=this.i.get(this.E,{})[e],n=await this.w(i);return n&&this.m(n)?n:null}H(){this.i&&(this.y&&clearTimeout(this.y),this.y=setTimeout(()=>{this.k()},5e3))}C(){this._=setInterval(()=>{this.I()},300*1e3),this.i&&this.r&&(this.b=setInterval(()=>{this.k()},600*1e3))}I(){let e=[];for(let[t,i]of this.e.entries())this.m(i)||e.push(t);for(let t of e)this.a(t);e.length>0&&this._logger.debug(`Cleaned up ${e.length} expired cache items`)}invalidateByTags(e){let t=[];for(let[i,n]of this.e.entries())n.tags&&n.tags.some(r=>e.includes(r))&&t.push(i);for(let i of t)this.a(i);this._logger.debug(`Invalidated ${t.length} items by tags:`,e)}invalidateByPattern(e){let t=[],i=new RegExp(e);for(let n of this.e.keys())i.test(n)&&t.push(n);for(let n of t)this.a(n);this._logger.debug(`Invalidated ${t.length} items by pattern: ${e}`)}clear(){this.e.clear(),this.c=0,this.u=!0,this._logger.info("Cache cleared")}resetRuntimeOnly(){this.e.clear(),this.c=0,this.u=!1,this.f=!0,this._logger.info("Runtime cache cleared (persistent snapshot preserved)")}getStats(){let e=this._metrics.memoryHits+this._metrics.memoryMisses>0?(this._metrics.memoryHits/(this._metrics.memoryHits+this._metrics.memoryMisses)*100).toFixed(2):"0",t=this._metrics.diskHits+this._metrics.diskMisses>0?(this._metrics.diskHits/(this._metrics.diskHits+this._metrics.diskMisses)*100).toFixed(2):"0";return{...this._metrics,memoryItems:this.e.size,memoryUsage:this.c,memoryUsagePercent:(this.c/this.t*100).toFixed(2),memoryHitRate:`${e}%`,diskHitRate:`${t}%`,persistentEnabled:this.r}}async dispose(){this._&&clearInterval(this._),this.b&&clearInterval(this.b),this.y&&clearTimeout(this.y),this.r&&this.i&&await this.k(),this.clear(),this.l&&(this.l.dispose(),this.l=null),this._logger.info("Advanced cache disposed",this.getStats())}};module.exports={AdvancedCache}});var{AdvancedCache:F}=ue();function ae(s){return new F(s)}module.exports={AdvancedCache:F,createAdvancedCache:ae,default:{AdvancedCache:F,createAdvancedCache:ae}}; diff --git a/dist/chunks/advancedCache.js.map b/dist/chunks/advancedCache.js.map index 0a23a81..c55fdfd 100644 --- a/dist/chunks/advancedCache.js.map +++ b/dist/chunks/advancedCache.js.map @@ -1,6 +1,6 @@ { "version": 3, "sources": ["../../src/utils/logger.js", "../../src/utils/env.js", "../../src/utils/pathUtils.js", "../../src/utils/errors.js", "../../src/filesystem/environmentContract.js", "../../src/chunks/utils-shared-chunk.js", "../../src/utils/dateHelpers.js", "../../src/filesystem/FileSystemAdapter.js", "../../src/constants.js", "../../src/advancedCacheStrictValidation.js", "../../src/advancedCache.js", "../../src/chunks/advancedCache-chunk.js"], - "mappings": "26BAAA,qDAAAA,SAAAC,QAAA,CACA,IAAM,kBAAoB,wBAEpB,aAAN,KAAmB,CAHnB,MAGmB,6BACf,aAAc,CACV,KAAK,MAAQ,IACjB,CAEA,MAAM,O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AAW,IAC3B,kBAAmB,KAAK,uBAC5B,CACJ,CAKA,MAAM,SAAU,CAER,KAAK,kBACL,cAAc,KAAK,gBAAgB,EAEnC,KAAK,eACL,cAAc,KAAK,aAAa,EAEhC,KAAK,cACL,aAAa,KAAK,YAAY,EAI9B,KAAK,yBAA2B,KAAK,UACrC,MAAM,KAAK,qBAAqB,EAIpC,KAAK,MAAM,EACP,KAAK,wBACL,KAAK,sBAAsB,QAAQ,EACnC,KAAK,sBAAwB,MAGjC,KAAK,QAAQ,KAAK,0BAA2B,KAAK,SAAS,CAAC,CAChE,CACJ,EAEA,OAAO,QAAU,CAAE,aAAc,KClpBjC,GAAM,CAAE,cAAAC,cAAc,EAAI,wBAE1B,SAAS,oBAAoB,QAAS,CAClC,OAAO,IAAIA,eAAc,OAAO,CACpC,CAFS,kDAIT,OAAO,QAAU,CACb,cAAAA,eACA,oBACA,QAAS,CAAE,cAAAA,eAAe,mBAAoB,CAClD", "names": ["exports", "module", "getLogger", "exports", "module", "vscode", "normalizePath", "getSegments", "getFileName", "getExtension", "getDirectory", "joinPath", "getCacheKey", "getUriPath", "getRelativePath", "exports", "module", "vscode", "exports", "module", "exports", "module", "getCurrentTimestamp", "isDateLike", "ensureDate", "normalizePath", "getSegments", "getFileName", "getExtension", "getDirectory", "joinPath", "getCacheKey", "getUriPath", "getRelativePath", "getCurrentTimestamp", "isDateLike", "ensureDate", "exports", "module", "vscode", "normalizePath", "ensureDate", "fileSystem", "exports", "module", "DEFAULT_PERSISTENT_CACHE_TTL", "GLOBAL_STATE_KEYS", "exports", "module", "DEFAULT_PERSISTENT_CACHE_TTL", "chunk", "AdvancedCache"] } diff --git a/dist/chunks/analysis.js b/dist/chunks/analysis.js index 9205ef5..08e71b9 100644 --- a/dist/chunks/analysis.js +++ b/dist/chunks/analysis.js @@ -1,2 +1,2 @@ -var Ce=Object.create;var V=Object.defineProperty;var De=Object.getOwnPropertyDescriptor;var Ee=Object.getOwnPropertyNames;var Se=Object.getPrototypeOf,be=Object.prototype.hasOwnProperty;var y=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var ke=(t,e,o,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of Ee(e))!be.call(t,r)&&r!==o&&V(t,r,{get:()=>e[r],enumerable:!(n=De(e,r))||n.enumerable});return t};var Fe=(t,e,o)=>(o=t!=null?Ce(Se(t)):{},ke(e||!t||!t.__esModule?V(o,"default",{value:t,enumerable:!0}):o,t));var G=y((pt,z)=>{var $=require("vscode");function Te(){try{let t=$?.env?.uiKind,e=$?.UIKind?.Web;return t!==void 0&&e!==void 0&&t===e}catch{return!1}}z.exports={isWebEnvironment:Te}});var O=y((exports,module)=>{var chunk=null;try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){try{chunk=dynamicRequire("../chunks/utils-shared-chunk")}catch{}try{chunk||(chunk=dynamicRequire("./chunks/utils-shared-chunk"))}catch{}try{chunk||(chunk=dynamicRequire("../chunks/path-utils-chunk"))}catch{}try{chunk||(chunk=dynamicRequire("./chunks/path-utils-chunk"))}catch{}}}catch{}if(chunk&&chunk.normalizePath)module.exports={normalizePath:chunk.normalizePath,getFileName:chunk.getFileName,getExtension:chunk.getExtension,getDirectory:chunk.getDirectory,joinPath:chunk.joinPath,getCacheKey:chunk.getCacheKey,getUriPath:chunk.getUriPath,getRelativePath:chunk.getRelativePath};else{let t=function(l=""){return l?l.replace(/\\/g,"/"):""},e=function(l=""){let f=t(l);return f?f.split("/").filter(Boolean):[]},o=function(l=""){let f=e(l);return f.length?f[f.length-1]:""},n=function(l=""){let f=o(l),d=f.lastIndexOf(".");return d<=0?"":f.substring(d).toLowerCase()},r=function(l=""){let f=t(l),d=f.lastIndexOf("/");return d===-1?"":f.substring(0,d)},a=function(...l){return t(l.filter(Boolean).join("/")).replace(/\/+/g,"/")},i=function(l=""){return t(l).toLowerCase()},c=function(l=""){if(!l)return"";if(typeof l=="string")return l;if(typeof l.fsPath=="string"&&l.fsPath.length>0)return l.fsPath;if(typeof l.path=="string"&&l.path.length>0)return l.path;if(typeof l.toString=="function")try{return l.toString(!0)}catch{return l.toString()}return String(l)},h=function(l="",f=""){let d=t(l),w=t(f);return d&&w.startsWith(d)?w.substring(d.length).replace(/^\/+/,""):w};normalizePath=t,getSegments=e,getFileName=o,getExtension=n,getDirectory=r,joinPath=a,getCacheKey=i,getUriPath=c,getRelativePath=h,module.exports={normalizePath:t,getFileName:o,getExtension:n,getDirectory:r,joinPath:a,getCacheKey:i,getUriPath:c,getRelativePath:h}}var normalizePath,getSegments,getFileName,getExtension,getDirectory,joinPath,getCacheKey,getUriPath,getRelativePath});var X=y((mt,j)=>{var _=class extends Error{constructor(e,o,n={}){super(o),this.code=e,this.context=n,this.name="ExtensionError"}},B={FILE_PERMISSION_DENIED:"FILE_PERMISSION_DENIED",WORKSPACE_TOO_LARGE:"WORKSPACE_TOO_LARGE",CHUNK_LOAD_FAILED:"CHUNK_LOAD_FAILED"};function ve(t){if(!t)return!1;let e=t.code||t?.name;return["EACCES","EPERM","EROFS","NoPermissions"].includes(e)}var P=class extends _{constructor(e,o,n={}){let{recoverable:r=!0,context:a={}}=n;super(B.CHUNK_LOAD_FAILED,`Failed to load ${e}: ${o}`,{chunkName:e,recoverable:r,...a}),this.name="ChunkLoadError",this.chunkName=e,this.recoverable=r}};function Ae(t,e,o={}){let n=require("vscode"),{userFacing:r=!0}=o,a=e?.recoverable??!0;r&&!a&&n.window.showErrorMessage(`Explorer Dates: ${t} feature unavailable. Please reinstall or rebuild the extension.`)}j.exports={ExtensionError:_,ERROR_CODES:B,isPermissionError:ve,ChunkLoadError:P,handleChunkFailure:Ae}});var ee=y((gt,Q)=>{var Y="EXPLORER_DATES_FORCE_VSCODE_FS";function J(t,e=process.env){return String(e?.[t]||"")==="1"}function x(t){let e=t&&typeof t=="object"?t:null,o=String(e?.scheme||(typeof t=="string"&&/^[a-z][a-z0-9+.-]*:/i.test(t)?t.split(":",1)[0]:"file")).toLowerCase(),n=String(e?.authority||""),r=e?.path||e?.fsPath||(typeof t=="string"?t.replace(/^[a-z][a-z0-9+.-]*:\/\//i,""):"");return{scheme:o,authority:n,path:String(r||"")}}function Re({uri:t,isWeb:e=!1,remoteName:o="",forceWorkspaceFs:n=J(Y)}={}){let r=x(t),a=r.scheme!=="file",i=!!e,c=!!o,h=!!(n||i||c||a);return{scheme:r.scheme,authority:r.authority,isFileScheme:!a,isVirtual:a,isBrowser:i,isRemote:c,forceWorkspaceFs:!!n,filesystem:h?"workspace.fs":"node.fs",provider:a?r.scheme==="github"||r.scheme==="vscode-vfs"?"github":"virtual":"filesystem"}}function Z({uri:t,platform:e=process.platform,caseSensitive:o}={}){return typeof o=="boolean"?o:x(t).scheme!=="file"?!0:e!=="win32"}function _e(t,e={}){let o=x(t),n=o.path.replace(/\\/g,"/").replace(/\/+/g,"/"),r=`${o.scheme}://${o.authority}${n}`;return Z({uri:t,...e})?r:r.toLowerCase()}function M(t){if(t instanceof Date){let e=t.getTime();return Number.isFinite(e)?e:null}if(typeof t=="number")return Number.isFinite(t)?t:null;if(typeof t=="string"&&t.trim()){let e=Date.parse(t);return Number.isFinite(e)?e:null}return null}function xe(t){if(!t||typeof t!="object")return null;let e=M(t.mtime),o=M(t.ctime);return{...t,mtimeMs:e,ctimeMs:o}}Q.exports={FORCE_WORKSPACE_FS_ENV:Y,envFlag:J,getUriParts:x,getEnvironmentContract:Re,isCaseSensitive:Z,resourceIdentity:_e,normalizeTimestamp:M,normalizeStat:xe}});var W=y((yt,oe)=>{function Ne(){return typeof Date=="function"&&Date.now?Date.now():16409952e5}function te(t){return!!(t&&typeof t=="object"&&typeof t.getTime=="function")}function Ie(t){if(te(t))return t;if(typeof t=="number")return new Date(t);if(typeof t=="string"){let e=Date.parse(t);return isNaN(e)?new Date:new Date(e)}return new Date}function D(t=""){return t?t.replace(/\\/g,"/"):""}function Le(t=""){let e=D(t);return e?e.split("/").filter(Boolean):[]}function se(t=""){let e=Le(t);return e.length?e[e.length-1]:""}function Oe(t=""){let e=se(t),o=e.lastIndexOf(".");return o<=0?"":e.substring(o).toLowerCase()}function Pe(t=""){let e=D(t),o=e.lastIndexOf("/");return o===-1?"":e.substring(0,o)}function Me(...t){return D(t.filter(Boolean).join("/")).replace(/\/+/g,"/")}function We(t=""){return D(t).toLowerCase()}function qe(t=""){if(!t)return"";if(typeof t=="string")return t;if(typeof t.fsPath=="string"&&t.fsPath.length>0)return t.fsPath;if(typeof t.path=="string"&&t.path.length>0)return t.path;if(typeof t.toString=="function")try{return t.toString(!0)}catch{return t.toString()}return String(t)}function Ue(t="",e=""){let o=D(t),n=D(e);return o&&n.startsWith(o)?n.substring(o.length).replace(/^\/+/,""):n}oe.exports={ensureDate:Ie,isDateLike:te,getCurrentTimestamp:Ne,normalizePath:D,getFileName:se,getExtension:Oe,getDirectory:Pe,joinPath:Me,getCacheKey:We,getUriPath:qe,getRelativePath:Ue}});var q=y((exports,module)=>{var chunk=null;try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){try{chunk=dynamicRequire("../chunks/utils-shared-chunk")}catch{}try{chunk||(chunk=dynamicRequire("./chunks/utils-shared-chunk"))}catch{}try{chunk||(chunk=dynamicRequire("../chunks/date-helpers-chunk"))}catch{}try{chunk||(chunk=dynamicRequire("./chunks/date-helpers-chunk"))}catch{}}}catch{}if(chunk&&(chunk.ensureDate||chunk.isDateLike||chunk.getCurrentTimestamp))module.exports={ensureDate:chunk.ensureDate,isDateLike:chunk.isDateLike,getCurrentTimestamp:chunk.getCurrentTimestamp};else{let t=function(){return typeof Date=="function"&&Date.now?Date.now():16409952e5},e=function(n){return!!(n&&typeof n=="object"&&typeof n.getTime=="function")},o=function(n){if(e(n))return n;if(typeof n=="number")return new Date(n);if(typeof n=="string"){let r=Date.parse(n);return isNaN(r)?new Date:new Date(r)}return new Date};getCurrentTimestamp=t,isDateLike=e,ensureDate=o,module.exports={ensureDate:o,isDateLike:e,getCurrentTimestamp:t}}var getCurrentTimestamp,isDateLike,ensureDate});var ce=y((wt,ae)=>{var m=require("vscode"),{isWebEnvironment:ne}=G(),{normalizePath:Ke}=O(),{ExtensionError:He,ERROR_CODES:Ve,isPermissionError:$e}=X(),{getEnvironmentContract:ze,normalizeStat:Ge,FORCE_WORKSPACE_FS_ENV:Be}=ee(),S;try{let t=W();t&&(S=t.ensureDate)}catch{}S||(S=q().ensureDate);var re=typeof process<"u"&&process.env?process.env:{},ie=re.VSCODE_WEB==="true"||ne(),g=null;if(!ie)try{g=require("fs").promises}catch{g=null}var N=class{constructor(){this.isWeb=ie||ne()}o(e){try{return ze({uri:this.t(e),isWeb:this.isWeb,remoteName:m.env?.remoteName,forceWorkspaceFs:re[Be]==="1"}).filesystem==="workspace.fs"}catch{return!1}}s(e){if(!e)return"";if(typeof e=="string")return e;if(e&&typeof e=="object"&&typeof e.fsPath=="string")return e.fsPath;if(e&&typeof e=="object"&&typeof e.path=="string")return e.path;if(typeof e=="object"){if(typeof e.fsPath=="string")return e.fsPath;if(typeof e.path=="string")return e.path}return String(e)}t(e){if(e&&typeof e=="object"&&typeof e.scheme=="string"&&typeof e.path=="string")return e;if(typeof e=="string"){let o=e.trim(),n=/^[a-zA-Z]:[\\/]/.test(o);if(/^[a-zA-Z][a-zA-Z0-9+.-]*:/.test(o)&&!n){let a=m.Uri.parse(o);if(a.scheme&&a.scheme!=="file")return a}return m.Uri.file(e)}if(e&&typeof e=="object"){if(e.uri&&e.uri!==e)try{return this.t(e.uri)}catch{}if(this.isWeb&&typeof e.scheme=="string"&&typeof e.path=="string")return m.Uri.from({scheme:e.scheme,authority:e.authority||"",path:e.path||"",query:e.query||"",fragment:e.fragment||""});if(typeof e.fsPath=="string"&&e.fsPath.length>0)return m.Uri.file(e.fsPath);if(typeof e.path=="string"&&e.path.length>0)return this.isWeb&&typeof e.scheme=="string"&&e.scheme!=="file"?m.Uri.from({scheme:e.scheme,authority:e.authority||"",path:e.path,query:e.query||"",fragment:e.fragment||""}):m.Uri.file(e.path);if(typeof e.href=="string"&&e.href.length>0)return m.Uri.parse(e.href);if(typeof e.scheme=="string")return m.Uri.from({scheme:e.scheme,authority:e.authority||"",path:e.path||e.fsPath||"",query:e.query||"",fragment:e.fragment||""});if(typeof e.toString=="function")try{let o=e.toString(!0);if(o&&o!=="[object Object]")return m.Uri.parse(o)}catch{let o=e.toString();if(o&&o!=="[object Object]")return m.Uri.parse(o)}}throw new Error(`Unsupported target type: ${typeof e}`)}async stat(e){let o=this.o(e);if(!this.isWeb&&g&&!o)return g.stat(this.s(e));let n=this.t(e),r=await m.workspace.fs.stat(n),a=Ge(r);return{...a,mtime:a.mtimeMs===null?S(r.mtime):new Date(a.mtimeMs),ctime:a.ctimeMs===null?S(r.ctime):new Date(a.ctimeMs),birthtime:a.ctimeMs===null?S(r.ctime):new Date(a.ctimeMs),isFile:()=>r.type===m.FileType.File,isDirectory:()=>r.type===m.FileType.Directory}}async readFile(e,o="utf8"){let n=this.o(e);if(!this.isWeb&&g&&!n)return g.readFile(this.s(e),o);let r=this.t(e),a=await m.workspace.fs.readFile(r);return o===null||o==="binary"?a:new TextDecoder(o).decode(a)}async writeFile(e,o,n="utf8"){let r=this.s(e);try{let a=this.o(e);if(!this.isWeb&&g&&!a)return g.writeFile(r,o,n);let i=this.t(e),c=typeof o=="string"?new TextEncoder().encode(o):o;await m.workspace.fs.writeFile(i,c)}catch(a){this.l("write file",r,a)}}async mkdir(e,o={recursive:!0}){let n=this.s(e);try{let r=this.o(e);if(!this.isWeb&&g&&!r)return g.mkdir(n,o);let a=this.t(e);await m.workspace.fs.createDirectory(a)}catch(r){this.l("create directory",n,r)}}async readdir(e,o={withFileTypes:!1}){let n=this.o(e);if(!this.isWeb&&g&&!n)return g.readdir(this.s(e),o);let r=this.t(e),a=await m.workspace.fs.readDirectory(r);return o.withFileTypes?a.map(([i,c])=>({name:i,isDirectory:()=>c===m.FileType.Directory,isFile:()=>c===m.FileType.File})):a.map(([i])=>i)}async delete(e,o={recursive:!1}){let n=this.o(e);if(!this.isWeb&&g&&!n){let a=this.s(e);return o.recursive?g.rm?g.rm(a,o):g.rmdir(a,o):g.unlink(a)}let r=this.t(e);await m.workspace.fs.delete(r,o)}async exists(e){try{return await this.stat(e),!0}catch{return!1}}async ensureDirectory(e){let o=Ke(this.s(e));await this.mkdir(o,{recursive:!0})}l(e,o,n){throw $e(n)?new He(Ve.FILE_PERMISSION_DENIED,`Permission denied while attempting to ${e}`,{path:o,code:n.code}):n}},je=new N;ae.exports={FileSystemAdapter:N,fileSystem:je}});var T=y((Ct,le)=>{var b="__explorerDatesLogger",k=class{constructor(){this.r=null}i(e,o){if(this.r&&typeof this.r[e]=="function")try{return this.r[e](...o)}catch{}switch(e){case"debug":break;case"info":break;case"warn":break;case"error":break;default:break}}debug(...e){return this.i("debug",e)}info(...e){return this.i("info",e)}warn(...e){return this.i("warn",e)}error(...e){return this.i("error",e)}k(e){this.r=e}};function Xe(){return typeof global<"u"?(global[b]||(global[b]=new k),global[b]):typeof globalThis<"u"?(globalThis[b]||(globalThis[b]=new k),globalThis[b]):(U||(U=new k),U)}var K=class extends k{},U=null;le.exports={Logger:K,getLogger:Xe}});var de=y((Dt,he)=>{var F=typeof process<"u"&&process.env?process.env:{},Ye=12e4,Je=1e4,Ze=1440*60*1e3,Qe=2,et=["Ja","Fe","Mr","Ap","My","Jn","Jl","Au","Se","Oc","No","De"],tt=Number(F.EXPLORER_DATES_DECORATION_POOL_SIZE||2048),st=Number(F.EXPLORER_DATES_FLYWEIGHT_CACHE_SIZE||4096),ot=Number(F.EXPLORER_DATES_WORKSPACE_BALANCED_THRESHOLD||15e3),nt=Number(F.EXPLORER_DATES_WORKSPACE_LARGE_THRESHOLD||25e4),ue=Number(F.EXPLORER_DATES_WORKSPACE_EXTREME_THRESHOLD||4e5),rt=Number(F.EXPLORER_DATES_WORKSPACE_SCAN_MAX_RESULTS||Math.min(ue+1,50001)),it={ADVANCED_CACHE:"explorerDates.advancedCache",ADVANCED_CACHE_METADATA:"explorerDates.advancedCacheMetadata",TEMPLATE_STORE:"explorerDates.templates",WEB_GIT_NOTICE:"explorerDates.webGitNotice"},at="explorerDatesChunks",ct="__explorerDatesChunks";he.exports={DEFAULT_CACHE_TIMEOUT:Ye,DEFAULT_MAX_CACHE_SIZE:Je,DEFAULT_PERSISTENT_CACHE_TTL:Ze,DEFAULT_DECORATION_POOL_SIZE:tt,DEFAULT_FLYWEIGHT_CACHE_SIZE:st,MAX_BADGE_LENGTH:Qe,MONTH_ABBREVIATIONS:et,WORKSPACE_SCALE_BALANCED_THRESHOLD:ot,WORKSPACE_SCALE_LARGE_THRESHOLD:nt,WORKSPACE_SCALE_EXTREME_THRESHOLD:ue,WORKSPACE_SCAN_MAX_RESULTS:rt,GLOBAL_STATE_KEYS:it,WEB_CHUNK_GLOBAL_KEY:at,LEGACY_WEB_CHUNK_GLOBAL_KEY:ct}});var fe=y((exports,module)=>{var{getLogger}=T(),env=typeof process<"u"&&process.env?process.env:{};function createFallbackVscodeMinimal(){return{workspace:{workspaceFolders:[],getConfiguration:()=>({get:()=>{},async update(){},inspect:()=>({defaultValue:void 0,globalValue:void 0,workspaceValue:void 0,workspaceFolderValue:void 0})})},ConfigurationTarget:{Global:1,Workspace:2,WorkspaceFolder:3}}}function resolveVscodeMinimal(){try{return require("vscode")}catch{return createFallbackVscodeMinimal()}}var MinimalSettingsCoordinator=class{constructor(e={}){this.f=e.defaultSection||"explorerDates",this.a=new Map,this.u=new Map,this.F=Number(env.EXPLORER_DATES_LOCK_WAIT_WARN_MS||1e3),this._logger=getLogger()}p(e,o){let r=(this.a.get(e)||Promise.resolve()).then(()=>o()),a=r.catch(()=>{});return this.a.set(e,a),r.finally(()=>{this.a.get(e)===a&&this.a.delete(e)}),r}c(e,o){return resolveVscodeMinimal().workspace.getConfiguration(e||void 0,o)}n(e,o){let n=o||this.f;return n?e.startsWith(`${n}.`)?{section:n,key:e.slice(n.length+1),fullKey:e}:e.includes(".")?{section:void 0,key:e,fullKey:e}:{section:n,key:e,fullKey:`${n}.${e}`}:{section:void 0,key:e,fullKey:e}}async updateSetting(e,o,n={}){return this.p(this.n(e,n.section).fullKey,async()=>{let r=this.n(e,n.section),a=this.c(r.section,n.resource);try{let i=this.m(n.scope,n.resource);return await a.update(r.key,o,i),{key:r.fullKey,updated:!0}}catch(i){try{this._logger.warn(`Configuration update failed for ${r.fullKey}: ${i&&i.message}`)}catch{}return{key:r.fullKey,updated:!1,error:i}}})}async applySettings(e,o={}){let n=Array.isArray(e)?e:Object.entries(e).map(([i,c])=>({key:i,value:c})),r=[];for(let i of n)try{r.push(await this.updateSetting(i.key,i.value,o))}catch(c){r.push({key:this.n(i.key,o.section).fullKey,updated:!1,error:c})}let a=r.filter(i=>i&&i.error);if(a.length>0){let i=a.map(h=>`${h.key}: ${h.error&&h.error.message?h.error.message:String(h.error)}`),c=new Error(`Failed to apply ${a.length} setting(s): ${i.join("; ")}`);throw c.details=a,c}return r}m(e,o){return e&&e!=="auto"?this.g(e)||resolveVscodeMinimal().ConfigurationTarget.Workspace:o?resolveVscodeMinimal().ConfigurationTarget.WorkspaceFolder:resolveVscodeMinimal().workspace.workspaceFolders&&resolveVscodeMinimal().workspace.workspaceFolders.length>0?resolveVscodeMinimal().ConfigurationTarget.Workspace:resolveVscodeMinimal().ConfigurationTarget.Global}g(e){switch(e){case"user":return resolveVscodeMinimal().ConfigurationTarget.Global;case"workspace":return resolveVscodeMinimal().ConfigurationTarget.Workspace;case"workspaceFolder":return resolveVscodeMinimal().ConfigurationTarget.WorkspaceFolder;default:return}}getValue(e,o={}){let{section:n,resource:r}=o||{},a=this.n(e,n);return this.c(a.section,r).get(a.key)}inspect(e,o={}){let{section:n,resource:r}=o||{},a=this.n(e,n);return this.c(a.section,r).inspect(a.key)}async clearSetting(e,o={}){return this.updateSetting(e,void 0,o)}getLockWaitStats(){let e={};for(let[o,n]of this.u.entries())e[o]={...n};return e}resetLockWaitStats(){this.u.clear()}},cachedCoordinator=null;function getSettingsCoordinator(options){if(!cachedCoordinator||options&&options.forceNew){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let t=null;try{t=dynamicRequire("../chunks/settings-coordinator-impl-chunk")}catch{}try{t||(t=dynamicRequire("../chunks/settingsCoordinator-impl-chunk"))}catch{}if(t&&typeof t.createSettingsCoordinatorImpl=="function")return cachedCoordinator=t.createSettingsCoordinatorImpl(options),cachedCoordinator}}catch{}try{let{WEB_CHUNK_GLOBAL_KEY:t,LEGACY_WEB_CHUNK_GLOBAL_KEY:e}=de(),o=typeof globalThis<"u"&&(globalThis[t]||globalThis[e])||null;if(o&&o.settingsCoordinatorImpl&&typeof o.settingsCoordinatorImpl.createSettingsCoordinatorImpl=="function")return cachedCoordinator=o.settingsCoordinatorImpl.createSettingsCoordinatorImpl(options),cachedCoordinator}catch{}cachedCoordinator=new MinimalSettingsCoordinator(options)}return cachedCoordinator}module.exports={getSettingsCoordinator,MinimalSettingsCoordinator}});var pe=y((exports,module)=>{var vscode=require("vscode"),getLogger=()=>{try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let t=dynamicRequire("./chunks/logger-chunk");if(t&&typeof t.getLogger=="function")return getLogger=t.getLogger,getLogger()}}catch{}try{return getLogger=T().getLogger,getLogger()}catch{return getLogger=()=>({debug:(()=>{})?.bind(console)||console.log,info:(()=>{}).bind(console),warn:(()=>{}).bind(console),error:(()=>{}).bind(console)}),getLogger()}},DecorationDiagnostics=class{constructor(e){this._logger=getLogger(),this.e=e,this.T=[]}async runComprehensiveDiagnostics(){this._logger.info("\u{1F50D} Starting comprehensive decoration diagnostics...");let e={timestamp:new Date().toISOString(),vscodeVersion:vscode.version,extensionVersion:vscode.extensions.getExtension("incredincomp.explorer-dates")?.packageJSON?.version,tests:{}};return e.tests.vscodeSettings=await this.y(),e.tests.providerRegistration=await this.w(),e.tests.fileProcessing=await this.C(),e.tests.decorationCreation=await this.D(),e.tests.cacheAnalysis=await this.E(),e.tests.extensionConflicts=await this.S(),e.tests.uriPathIssues=await this.b(),this._logger.info("\u{1F50D} Comprehensive diagnostics completed",e),e}async y(){let e=vscode.workspace.getConfiguration("explorer"),o=vscode.workspace.getConfiguration("workbench"),n=vscode.workspace.getConfiguration("explorerDates"),r={"explorer.decorations.badges":e.get("decorations.badges"),"explorer.decorations.colors":e.get("decorations.colors"),"workbench.colorTheme":o.get("colorTheme"),"explorerDates.showDateDecorations":n.get("showDateDecorations"),"explorerDates.colorScheme":n.get("colorScheme"),"explorerDates.showGitInfo":n.get("showGitInfo")},a=[];return r["explorer.decorations.badges"]===!1&&a.push("CRITICAL: explorer.decorations.badges is disabled"),r["explorer.decorations.colors"]===!1&&a.push("WARNING: explorer.decorations.colors is disabled"),r["explorerDates.showDateDecorations"]===!1&&a.push("CRITICAL: explorerDates.showDateDecorations is disabled"),{status:a.length>0?"ISSUES_FOUND":"OK",settings:r,issues:a}}async w(){let e=[];if(!this.e)return e.push("CRITICAL: Decoration provider is null/undefined"),{status:"FAILED",issues:e};typeof this.e.provideFileDecoration!="function"&&e.push("CRITICAL: provideFileDecoration method missing"),this.e.onDidChangeFileDecorations||e.push("WARNING: onDidChangeFileDecorations event emitter missing");let o=vscode.Uri.file("/test/path");try{let n=await this.e.provideFileDecoration(o);this._logger.debug("Provider test call completed",{result:!!n})}catch(n){e.push(`ERROR: Provider test call failed: ${n.message}`)}return{status:e.length>0?"ISSUES_FOUND":"OK",providerActive:!!this.e,issues:e}}async C(){let e=vscode.workspace.workspaceFolders;if(!e||e.length===0)return{status:"NO_WORKSPACE",issues:["No workspace folders available"]};let o=[],n=[];try{let r=["package.json","README.md","extension.js","src/logger.js"];for(let a of r){let i=vscode.Uri.joinPath(e[0].uri,a);try{await vscode.workspace.fs.stat(i);let c=this.e.h?await this.e.h(i):!1,h=await this.e.provideFileDecoration(i);o.push({file:a,exists:!0,excluded:c,hasDecoration:!!h,badge:h?.badge,uri:i.toString()})}catch(c){o.push({file:a,exists:!1,error:c.message})}}}catch(r){n.push(`File processing test failed: ${r.message}`)}return{status:n.length>0?"ISSUES_FOUND":"OK",testFiles:o,issues:n}}async D(){let e=[],o=[];try{let r=new vscode.FileDecoration("test");e.push({name:"Simple decoration",success:!0,badge:r.badge})}catch(r){e.push({name:"Simple decoration",success:!1,error:r.message}),o.push("CRITICAL: Cannot create simple FileDecoration")}try{let r=new vscode.FileDecoration("test","Test tooltip");e.push({name:"Decoration with tooltip",success:!0,hasTooltip:!!(r&&r.tooltip)})}catch(r){e.push({name:"Decoration with tooltip",success:!1,error:r.message}),o.push("WARNING: Cannot create FileDecoration with tooltip")}try{let r=new vscode.FileDecoration("test","Test tooltip",new vscode.ThemeColor("charts.red"));e.push({name:"Decoration with color",success:!0,hasColor:!!r.color})}catch(r){e.push({name:"Decoration with color",success:!1,error:r.message}),o.push("WARNING: Cannot create FileDecoration with color")}let n=["1d","10m","2h","!!","\u25CF\u25CF","JA12","123456789"];for(let r of n)try{let a=new vscode.FileDecoration(r);e.push({name:`Badge format: ${r}`,success:!0,badge:a.badge,length:r.length})}catch(a){e.push({name:`Badge format: ${r}`,success:!1,error:a.message}),r.length<=8&&o.push(`WARNING: Valid badge format '${r}' failed`)}return{status:o.length>0?"ISSUES_FOUND":"OK",tests:e,issues:o}}async E(){let e={memoryCache:{size:this.e.v?.size||0,maxSize:this.e.A||0},advancedCache:{available:!!this.e._advancedCache,initialized:!1},metrics:this.e.getMetrics?this.e.getMetrics():null},o=[];return e.memoryCache.size>e.memoryCache.maxSize*.9&&o.push("WARNING: Memory cache is nearly full"),e.metrics&&e.metrics.cacheHits===0&&e.metrics.cacheMisses>10&&o.push("WARNING: Cache hit rate is 0% - potential cache key issues"),{status:o.length>0?"ISSUES_FOUND":"OK",cacheInfo:e,issues:o}}async S(){let e=vscode.extensions.all,o=[],n=[];for(let a of e){if(!a.isActive)continue;let i=a.packageJSON;i.contributes?.commands?.some(h=>h.command?.includes("decoration")||h.title?.includes("decoration")||h.title?.includes("badge")||h.title?.includes("explorer"))&&n.push({id:a.id,name:i.displayName||i.name,version:i.version}),["file-icons","vscode-icons","material-icon-theme","explorer-exclude","hide-files","file-watcher"].some(h=>a.id.includes(h))&&o.push({id:a.id,name:i.displayName||i.name,reason:"Known to potentially interfere with file decorations"})}let r=[];return n.length>1&&r.push(`WARNING: ${n.length} extensions might provide file decorations`),o.length>0&&r.push(`WARNING: ${o.length} potentially conflicting extensions detected`),{status:r.length>0?"ISSUES_FOUND":"OK",decorationExtensions:n,potentialConflicts:o,issues:r}}async b(){let e=vscode.workspace.workspaceFolders;if(!e||e.length===0)return{status:"NO_WORKSPACE",issues:["No workspace available for URI testing"]};let o=[],n=[],r=["package.json","src/logger.js","README.md",".gitignore"];for(let a of r){let i=vscode.Uri.joinPath(e[0].uri,a);o.push({path:a,scheme:i.scheme,fsPath:i.fsPath,authority:i.authority,valid:i.scheme==="file"&&i.fsPath.length>0}),i.scheme!=="file"&&n.push(`WARNING: Non-file URI scheme for ${a}: ${i.scheme}`),(i.fsPath.includes("\\\\")||i.fsPath.includes("//"))&&n.push(`WARNING: Potential path separator issues in ${a}`)}return{status:n.length>0?"ISSUES_FOUND":"OK",tests:o,issues:n}}};module.exports={DecorationDiagnostics}});var me=y((exports,module)=>{var vscode=require("vscode"),getFileName=p=>{try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let t=dynamicRequire("./chunks/path-utils-chunk");if(t&&typeof t.getFileName=="function")return getFileName=t.getFileName,getFileName(p)}}catch{}let s=String(p||""),normalized=s.replace(/\\/g,"/"),idx=normalized.lastIndexOf("/");return idx===-1?normalized:normalized.substring(idx+1)};async function testVSCodeDecorationRendering(){let t=T().getLogger();t.info("\u{1F3A8} Testing VS Code decoration rendering...");class e{constructor(){this.d=new vscode.EventEmitter,this.onDidChangeFileDecorations=this.d.event}provideFileDecoration(a){let i=getFileName(a.fsPath||a.path),c=new vscode.FileDecoration("TEST");return c.tooltip=`Test decoration for ${i}`,c.color=new vscode.ThemeColor("charts.red"),t.info(`\u{1F9EA} Test provider returning decoration for: ${i}`),c}}let o=new e,n=vscode.window.registerFileDecorationProvider(o);return t.info("\u{1F9EA} Test decoration provider registered"),setTimeout(()=>{o.d.fire(void 0),t.info("\u{1F504} Test decoration refresh triggered"),setTimeout(()=>{n.dispose(),t.info("\u{1F9EA} Test decoration provider disposed")},1e4)},1e3),"Test decoration provider registered for 10 seconds"}async function testFileDecorationAPI(){let t=T().getLogger();t.info("\u{1F527} Testing FileDecoration API...");let e=[];try{let n=new vscode.FileDecoration("MIN");e.push({name:"Minimal decoration",success:!0,badge:n.badge}),t.info("\u2705 Minimal decoration created successfully")}catch(n){e.push({name:"Minimal decoration",success:!1,error:n.message}),t.error("\u274C Minimal decoration failed:",n)}try{let n=new vscode.FileDecoration("FULL","Full decoration tooltip",new vscode.ThemeColor("charts.blue"));n.propagate=!1,e.push({name:"Full decoration",success:!0,badge:n.badge,hasTooltip:!!n.tooltip,hasColor:!!n.color,propagate:n.propagate}),t.info("\u2705 Full decoration created successfully")}catch(n){e.push({name:"Full decoration",success:!1,error:n.message}),t.error("\u274C Full decoration failed:",n)}let o=["charts.red","charts.blue","charts.green","charts.yellow","terminal.ansiRed","terminal.ansiGreen","terminal.ansiBlue","editorError.foreground","editorWarning.foreground","editorInfo.foreground"];for(let n of o)try{e.push({name:`ThemeColor: ${n}`,success:!0,colorId:n})}catch(r){e.push({name:`ThemeColor: ${n}`,success:!1,error:r.message}),t.error(`\u274C ThemeColor ${n} failed:`,r)}return e}module.exports={testVSCodeDecorationRendering,testFileDecorationAPI}});var ye=y((Et,ge)=>{var u=require("vscode"),{fileSystem:lt}=ce(),v,L,A;try{let t=W();t&&(v=t.getFileName,L=t.getRelativePath,A=t.ensureDate)}catch{}if(!v||!A){let t=O(),e=q();v=v||t.getFileName,L=L||t.getRelativePath,A=A||e.ensureDate}var{getSettingsCoordinator:ut}=fe();async function H(){return(await import("../utils/localization")).getLocalization()}var I=ut();function ht({context:t,fileDateProvider:e,logger:o,chunkLoader:n}){let r=[];async function a(){try{let i=await n.loadChunk("diagnostics");if(!i)throw new Error("Diagnostics chunk not available");return t&&i.ensureInitialized(t),{generateWorkspaceActivityHTML:i.generateWorkspaceActivityHTML,generatePerformanceAnalyticsHTML:i.generatePerformanceAnalyticsHTML,generateDiagnosticsHTML:i.generateDiagnosticsHTML,generateDiagnosticsWebview:i.generateDiagnosticsWebview}}catch(i){throw new Error(`Failed to load diagnostics generators: ${i.message}`)}}r.push(u.commands.registerCommand("explorerDates.showWorkspaceActivity",async()=>{let i;try{if(i=await H(),!u.workspace.getConfiguration("explorerDates").get("enableAnalysisCommands",!0)){u.window.showInformationMessage(i.getString("analysisCommandsDisabled"));return}let{generateWorkspaceActivityHTML:l}=await a(),f=u.window.createWebviewPanel("workspaceActivity","Workspace File Activity",u.ViewColumn.One,{enableScripts:!0});if(!u.workspace.workspaceFolders){u.window.showWarningMessage(i.getString("noWorkspaceFolderOpen"));return}let d=u.workspace.workspaceFolders[0],w=[],R=await u.workspace.findFiles("**/*","**/node_modules/**",100);for(let C of R)try{let E=await lt.stat(C);(typeof E.isFile!="function"||E.isFile())&&w.push({path:L(d.uri.fsPath||d.uri.path,C.fsPath||C.path),modified:A(E.mtime),size:E.size})}catch{}w.sort((C,E)=>E.modified.getTime()-C.modified.getTime()),f.webview.html=await l(w.slice(0,50)),o.info("Workspace activity panel opened")}catch(c){o.error("Failed to show workspace activity",c),u.window.showErrorMessage(i?.getString("failedToShowWorkspaceActivity",c.message)||`Failed to show workspace activity: ${c.message}`)}})),r.push(u.commands.registerCommand("explorerDates.showPerformanceAnalytics",async()=>{let i;try{i=await H();let{generatePerformanceAnalyticsHTML:c}=await a(),h=u.window.createWebviewPanel("performanceAnalytics","Explorer Dates Performance Analytics",u.ViewColumn.One,{enableScripts:!0}),l=e?e.getMetrics():{};h.webview.html=await c(l),o.info("Performance analytics panel opened")}catch(c){o.error("Failed to show performance analytics",c),u.window.showErrorMessage(i?.getString("failedToShowPerformanceAnalytics",c.message)||`Failed to show performance analytics: ${c.message}`)}})),r.push(u.commands.registerCommand("explorerDates.debugCache",async()=>{let i;try{if(i=await H(),e){let c=e.getMetrics(),h={"Cache Summary":{"Memory Cache Size":c.cacheSize,"Cache Hit Rate":c.cacheHitRate,"Total Hits":c.cacheHits,"Total Misses":c.cacheMisses,"Cache Timeout":`${c.cacheDebugging.cacheTimeout}ms`},"Advanced Cache":c.advancedCache||"Not available","Cache Namespace":c.cacheDebugging.cacheNamespace||"default","Sample Cache Keys":c.cacheDebugging.memoryCacheKeys||[]};u.window.showInformationMessage(`Cache Debug Info: -${JSON.stringify(h,null,2)}`,{modal:!0}),o.info("Cache debug info displayed",h)}}catch(c){o.error("Failed to show cache debug info",c),u.window.showErrorMessage(i?.getString("failedToShowCacheDebugInfo",c.message)||`Failed to show cache debug info: ${c.message}`)}})),r.push(u.commands.registerCommand("explorerDates.runDiagnostics",async()=>{try{let{generateDiagnosticsHTML:i}=await a(),c=u.workspace.getConfiguration("explorerDates"),h=u.window.activeTextEditor,l={"Extension Status":{"Provider Active":e?"Yes":"No","Decorations Enabled":c.get("showDateDecorations",!0)?"Yes":"No","VS Code Version":u.version,"Extension Version":t.extension.packageJSON.version}};if(h){let{uri:d}=h.document;d.scheme==="file"&&(l["Current File"]={"File Path":d.fsPath,"File Extension":v(d.fsPath||d.path).split(".").pop()||"No extension","Is Excluded":e?await e.h(d):"Unknown"})}if(l.Configuration={"Excluded Folders":c.get("excludedFolders",[]),"Excluded Patterns":c.get("excludedPatterns",[]),"Color Scheme":c.get("colorScheme","none"),"Cache Timeout":`${c.get("cacheTimeout",3e4)}ms`},e){let d=e.getMetrics();l.Performance={"Total Decorations":d.totalDecorations,"Cache Size":d.cacheSize,"Cache Hit Rate":d.cacheHitRate,Errors:d.errors},d.performanceTiming&&(l["Performance Timing"]={"Avg Git Blame (ms)":d.performanceTiming.avgGitBlameMs,"Avg File Stat (ms)":d.performanceTiming.avgFileStatMs,"Git Calls":d.performanceTiming.gitBlameCalls,"File Stat Calls":d.performanceTiming.fileStatCalls,"Total Git Time (ms)":d.performanceTiming.totalGitBlameTimeMs,"Total File Stat Time (ms)":d.performanceTiming.totalFileStatTimeMs})}let f=u.window.createWebviewPanel("explorerDatesDiagnostics","Explorer Dates Diagnostics",u.ViewColumn.One,{enableScripts:!0});f.webview.html=await i(l),o.info("Diagnostics panel opened",l)}catch(i){o.error("Failed to run diagnostics",i),u.window.showErrorMessage(`Failed to run diagnostics: ${i.message}`)}})),r.push(u.commands.registerCommand("explorerDates.testDecorations",async()=>{try{let{generateDiagnosticsWebview:i}=await a();o.info("\u{1F50D} Starting comprehensive decoration diagnostics...");let{DecorationDiagnostics:c}=pe(),l=await new c(e).runComprehensiveDiagnostics(),f=u.window.createWebviewPanel("decorationDiagnostics","Decoration Diagnostics - Root Cause Analysis",u.ViewColumn.One,{enableScripts:!0});f.webview.html=await i(l);let d=[],w=[];Object.values(l.tests).forEach(R=>{R.issues&&R.issues.forEach(C=>{C.startsWith("CRITICAL:")?d.push(C):C.startsWith("WARNING:")&&w.push(C)})}),d.length>0?u.window.showErrorMessage(`CRITICAL ISSUES FOUND: ${d.join(", ")}`):w.length>0?u.window.showWarningMessage(`Warnings found: ${w.length} potential issues detected. Check diagnostics panel.`):u.window.showInformationMessage("No critical issues found. Decorations should be working properly."),o.info("\u{1F50D} Comprehensive diagnostics completed",l)}catch(i){o.error("Failed to run comprehensive diagnostics",i),u.window.showErrorMessage(`Diagnostics failed: ${i.message}`)}})),r.push(u.commands.registerCommand("explorerDates.monitorDecorations",async()=>{if(!e){u.window.showErrorMessage("Decoration provider not available");return}e.startProviderCallMonitoring(),e.forceRefreshAllDecorations(),setTimeout(()=>{let i=e.getProviderCallStats(),c=`VS Code Decoration Requests: ${i.totalCalls} calls for ${i.uniqueFiles} files`;u.window.showInformationMessage(c),o.info("\u{1F50D} Decoration monitoring results:",i)},5e3),u.window.showInformationMessage("Started monitoring VS Code decoration requests. Results in 5 seconds...")})),r.push(u.commands.registerCommand("explorerDates.testVSCodeRendering",async()=>{try{let{testVSCodeDecorationRendering:i,testFileDecorationAPI:c}=me();o.info("\u{1F3A8} Testing VS Code decoration rendering system...");let h=await c();o.info("\u{1F527} FileDecoration API tests:",h);let l=await i();o.info("\u{1F3A8} Decoration rendering test:",l),u.window.showInformationMessage('VS Code decoration rendering test started. Check Output panel and Explorer for "TEST" badges on files.')}catch(i){o.error("Failed to test VS Code rendering:",i),u.window.showErrorMessage(`VS Code rendering test failed: ${i.message}`)}})),r.push(u.commands.registerCommand("explorerDates.quickFix",async()=>{try{let i=[];I.getValue("showDateDecorations")||i.push({issue:"Date decorations are disabled",description:"Enable date decorations",fix:async()=>I.updateSetting("showDateDecorations",!0,{scope:"user",reason:"quick-fix"})});let c=I.getValue("excludedPatterns")||[];if(c.includes("**/*")&&i.push({issue:"All files are excluded by pattern",description:"Remove overly broad exclusion pattern",fix:async()=>{let l=c.filter(f=>f!=="**/*");await I.updateSetting("excludedPatterns",l,{scope:"user",reason:"quick-fix"})}}),i.length===0){u.window.showInformationMessage("No common issues detected. Decorations should be working.");return}let h=await u.window.showQuickPick(i.map(l=>({label:l.description,description:l.issue,fix:l.fix})),{placeHolder:"Select an issue to fix automatically"});h&&(await h.fix(),u.window.showInformationMessage("Fixed! Try refreshing decorations now."),e&&(e.clearAllCaches(),e.refreshAll()))}catch(i){o.error("Failed to run quick fix",i),u.window.showErrorMessage(`Failed to run quick fix: ${i.message}`)}})),r.push(u.commands.registerCommand("explorerDates.showKeyboardShortcuts",async()=>{try{e?._accessibility?await e._accessibility.showKeyboardShortcutsHelp():u.window.showInformationMessage("Keyboard shortcuts: Ctrl+Shift+D (toggle), Ctrl+Shift+C (copy date), Ctrl+Shift+I (file details), Ctrl+Shift+R (refresh), Ctrl+Shift+A (workspace activity)"),o.info("Keyboard shortcuts help shown")}catch(i){o.error("Failed to show keyboard shortcuts help",i),u.window.showErrorMessage(`Failed to show keyboard shortcuts help: ${i.message}`)}})),r.forEach(i=>t.subscriptions.push(i))}ge.exports={registerAnalysisCommands:ht}});var we=ye();module.exports={...we,registerAnalysisCommands:we.registerAnalysisCommands}; +var Ce=Object.create;var $=Object.defineProperty;var De=Object.getOwnPropertyDescriptor;var Ee=Object.getOwnPropertyNames;var Se=Object.getPrototypeOf,be=Object.prototype.hasOwnProperty;var w=(o,e)=>()=>(e||o((e={exports:{}}).exports,e),e.exports);var ke=(o,e,t,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of Ee(e))!be.call(o,n)&&n!==t&&$(o,n,{get:()=>e[n],enumerable:!(r=De(e,n))||r.enumerable});return o};var Fe=(o,e,t)=>(t=o!=null?Ce(Se(o)):{},ke(e||!o||!o.__esModule?$(t,"default",{value:o,enumerable:!0}):t,o));var G=w((pt,z)=>{var V=require("vscode");function Te(){try{let o=V?.env?.uiKind,e=V?.UIKind?.Web;return o!==void 0&&e!==void 0&&o===e}catch{return!1}}z.exports={isWebEnvironment:Te}});var O=w((exports,module)=>{var chunk=null;try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){try{chunk=dynamicRequire("../chunks/utils-shared-chunk")}catch{}try{chunk||(chunk=dynamicRequire("./chunks/utils-shared-chunk"))}catch{}try{chunk||(chunk=dynamicRequire("../chunks/path-utils-chunk"))}catch{}try{chunk||(chunk=dynamicRequire("./chunks/path-utils-chunk"))}catch{}}}catch{}if(chunk&&chunk.normalizePath)module.exports={normalizePath:chunk.normalizePath,getFileName:chunk.getFileName,getExtension:chunk.getExtension,getDirectory:chunk.getDirectory,joinPath:chunk.joinPath,getCacheKey:chunk.getCacheKey,getUriPath:chunk.getUriPath,getRelativePath:chunk.getRelativePath};else{let o=function(l=""){return l?l.replace(/\\/g,"/"):""},e=function(l=""){let m=o(l);return m?m.split("/").filter(Boolean):[]},t=function(l=""){let m=e(l);return m.length?m[m.length-1]:""},r=function(l=""){let m=t(l),d=m.lastIndexOf(".");return d<=0?"":m.substring(d).toLowerCase()},n=function(l=""){let m=o(l),d=m.lastIndexOf("/");return d===-1?"":m.substring(0,d)},a=function(...l){return o(l.filter(Boolean).join("/")).replace(/\/+/g,"/")},i=function(l=""){return o(l).toLowerCase()},c=function(l=""){if(!l)return"";if(typeof l=="string")return l;if(typeof l.fsPath=="string"&&l.fsPath.length>0)return l.fsPath;if(typeof l.path=="string"&&l.path.length>0)return l.path;if(typeof l.toString=="function")try{return l.toString(!0)}catch{return l.toString()}return String(l)},h=function(l="",m=""){let d=o(l),y=o(m);return d&&y.startsWith(d)?y.substring(d.length).replace(/^\/+/,""):y};normalizePath=o,getSegments=e,getFileName=t,getExtension=r,getDirectory=n,joinPath=a,getCacheKey=i,getUriPath=c,getRelativePath=h,module.exports={normalizePath:o,getFileName:t,getExtension:r,getDirectory:n,joinPath:a,getCacheKey:i,getUriPath:c,getRelativePath:h}}var normalizePath,getSegments,getFileName,getExtension,getDirectory,joinPath,getCacheKey,getUriPath,getRelativePath});var X=w((mt,j)=>{var _=class extends Error{constructor(e,t,r={}){super(t),this.code=e,this.context=r,this.name="ExtensionError"}},B={FILE_PERMISSION_DENIED:"FILE_PERMISSION_DENIED",WORKSPACE_TOO_LARGE:"WORKSPACE_TOO_LARGE",CHUNK_LOAD_FAILED:"CHUNK_LOAD_FAILED"};function ve(o){if(!o)return!1;let e=o.code||o?.name;return["EACCES","EPERM","EROFS","NoPermissions"].includes(e)}var P=class extends _{constructor(e,t,r={}){let{recoverable:n=!0,context:a={}}=r;super(B.CHUNK_LOAD_FAILED,`Failed to load ${e}: ${t}`,{chunkName:e,recoverable:n,...a}),this.name="ChunkLoadError",this.chunkName=e,this.recoverable=n}};function Ae(o,e,t={}){let r=require("vscode"),{userFacing:n=!0}=t,a=e?.recoverable??!0;n&&!a&&r.window.showErrorMessage(`Explorer Dates: ${o} feature unavailable. Please reinstall or rebuild the extension.`)}j.exports={ExtensionError:_,ERROR_CODES:B,isPermissionError:ve,ChunkLoadError:P,handleChunkFailure:Ae}});var ee=w((gt,Q)=>{var Y="EXPLORER_DATES_FORCE_VSCODE_FS";function J(o,e=process.env){return String(e?.[o]||"")==="1"}function x(o){let e=o&&typeof o=="object"?o:null,t=String(e?.scheme||(typeof o=="string"&&/^[a-z][a-z0-9+.-]*:/i.test(o)?o.split(":",1)[0]:"file")).toLowerCase(),r=String(e?.authority||""),n=e?.path||e?.fsPath||(typeof o=="string"?o.replace(/^[a-z][a-z0-9+.-]*:\/\//i,""):"");return{scheme:t,authority:r,path:String(n||"")}}function Re({uri:o,isWeb:e=!1,remoteName:t="",forceWorkspaceFs:r=J(Y)}={}){let n=x(o),a=n.scheme!=="file",i=!!e,c=!!t,h=!!(r||i||c||a);return{scheme:n.scheme,authority:n.authority,isFileScheme:!a,isVirtual:a,isBrowser:i,isRemote:c,forceWorkspaceFs:!!r,filesystem:h?"workspace.fs":"node.fs",provider:a?n.scheme==="github"||n.scheme==="vscode-vfs"?"github":"virtual":"filesystem"}}function Z({uri:o,platform:e=process.platform,caseSensitive:t}={}){return typeof t=="boolean"?t:x(o).scheme!=="file"?!0:e!=="win32"}function _e(o,e={}){let t=x(o),r=t.path.replace(/\\/g,"/").replace(/\/+/g,"/"),n=`${t.scheme}://${t.authority}${r}`;return Z({uri:o,...e})?n:n.toLowerCase()}function M(o){if(o instanceof Date){let e=o.getTime();return Number.isFinite(e)?e:null}if(typeof o=="number")return Number.isFinite(o)?o:null;if(typeof o=="string"&&o.trim()){let e=Date.parse(o);return Number.isFinite(e)?e:null}return null}function xe(o){if(!o||typeof o!="object")return null;let e=M(o.mtime),t=M(o.ctime);return{...o,mtimeMs:e,ctimeMs:t}}Q.exports={FORCE_WORKSPACE_FS_ENV:Y,envFlag:J,getUriParts:x,getEnvironmentContract:Re,isCaseSensitive:Z,resourceIdentity:_e,normalizeTimestamp:M,normalizeStat:xe}});var W=w((wt,oe)=>{function Ne(){return typeof Date=="function"&&Date.now?Date.now():16409952e5}function te(o){return!!(o&&typeof o=="object"&&typeof o.getTime=="function")}function Ie(o){if(te(o))return o;if(typeof o=="number")return new Date(o);if(typeof o=="string"){let e=Date.parse(o);return isNaN(e)?new Date:new Date(e)}return new Date}function D(o=""){return o?o.replace(/\\/g,"/"):""}function Le(o=""){let e=D(o);return e?e.split("/").filter(Boolean):[]}function se(o=""){let e=Le(o);return e.length?e[e.length-1]:""}function Oe(o=""){let e=se(o),t=e.lastIndexOf(".");return t<=0?"":e.substring(t).toLowerCase()}function Pe(o=""){let e=D(o),t=e.lastIndexOf("/");return t===-1?"":e.substring(0,t)}function Me(...o){return D(o.filter(Boolean).join("/")).replace(/\/+/g,"/")}function We(o=""){return D(o).toLowerCase()}function qe(o=""){if(!o)return"";if(typeof o=="string")return o;if(typeof o.fsPath=="string"&&o.fsPath.length>0)return o.fsPath;if(typeof o.path=="string"&&o.path.length>0)return o.path;if(typeof o.toString=="function")try{return o.toString(!0)}catch{return o.toString()}return String(o)}function Ue(o="",e=""){let t=D(o),r=D(e);return t&&r.startsWith(t)?r.substring(t.length).replace(/^\/+/,""):r}oe.exports={ensureDate:Ie,isDateLike:te,getCurrentTimestamp:Ne,normalizePath:D,getFileName:se,getExtension:Oe,getDirectory:Pe,joinPath:Me,getCacheKey:We,getUriPath:qe,getRelativePath:Ue}});var q=w((exports,module)=>{var chunk=null;try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){try{chunk=dynamicRequire("../chunks/utils-shared-chunk")}catch{}try{chunk||(chunk=dynamicRequire("./chunks/utils-shared-chunk"))}catch{}try{chunk||(chunk=dynamicRequire("../chunks/date-helpers-chunk"))}catch{}try{chunk||(chunk=dynamicRequire("./chunks/date-helpers-chunk"))}catch{}}}catch{}if(chunk&&(chunk.ensureDate||chunk.isDateLike||chunk.getCurrentTimestamp))module.exports={ensureDate:chunk.ensureDate,isDateLike:chunk.isDateLike,getCurrentTimestamp:chunk.getCurrentTimestamp};else{let o=function(){return typeof Date=="function"&&Date.now?Date.now():16409952e5},e=function(r){return!!(r&&typeof r=="object"&&typeof r.getTime=="function")},t=function(r){if(e(r))return r;if(typeof r=="number")return new Date(r);if(typeof r=="string"){let n=Date.parse(r);return isNaN(n)?new Date:new Date(n)}return new Date};getCurrentTimestamp=o,isDateLike=e,ensureDate=t,module.exports={ensureDate:t,isDateLike:e,getCurrentTimestamp:o}}var getCurrentTimestamp,isDateLike,ensureDate});var ce=w((yt,ae)=>{var f=require("vscode"),{isWebEnvironment:re}=G(),{normalizePath:Ke}=O(),{ExtensionError:He,ERROR_CODES:$e,isPermissionError:Ve}=X(),{getEnvironmentContract:ze,normalizeStat:Ge,FORCE_WORKSPACE_FS_ENV:Be}=ee(),S;try{let o=W();o&&(S=o.ensureDate)}catch{}S||(S=q().ensureDate);var ne=typeof process<"u"&&process.env?process.env:{},ie=ne.VSCODE_WEB==="true"||re(),g=null;if(!ie)try{g=require("fs").promises}catch{g=null}var N=class{constructor(){this.isWeb=ie||re()}o(e){try{return ze({uri:this.t(e),isWeb:this.isWeb,remoteName:f.env?.remoteName,forceWorkspaceFs:ne[Be]==="1"}).filesystem==="workspace.fs"}catch{return!1}}s(e){if(!e)return"";if(typeof e=="string")return e;if(e&&typeof e=="object"&&typeof e.fsPath=="string")return e.fsPath;if(e&&typeof e=="object"&&typeof e.path=="string")return e.path;if(typeof e=="object"){if(typeof e.fsPath=="string")return e.fsPath;if(typeof e.path=="string")return e.path}return String(e)}t(e){if(e&&typeof e=="object"&&typeof e.scheme=="string"&&typeof e.path=="string")return e;if(typeof e=="string"){let t=e.trim(),r=/^[a-zA-Z]:[\\/]/.test(t);if(/^[a-zA-Z][a-zA-Z0-9+.-]*:/.test(t)&&!r){let a=f.Uri.parse(t);if(a.scheme&&a.scheme!=="file")return a}return f.Uri.file(e)}if(e&&typeof e=="object"){if(e.uri&&e.uri!==e)try{return this.t(e.uri)}catch{}if(this.isWeb&&typeof e.scheme=="string"&&typeof e.path=="string")return f.Uri.from({scheme:e.scheme,authority:e.authority||"",path:e.path||"",query:e.query||"",fragment:e.fragment||""});if(typeof e.fsPath=="string"&&e.fsPath.length>0)return f.Uri.file(e.fsPath);if(typeof e.path=="string"&&e.path.length>0)return this.isWeb&&typeof e.scheme=="string"&&e.scheme!=="file"?f.Uri.from({scheme:e.scheme,authority:e.authority||"",path:e.path,query:e.query||"",fragment:e.fragment||""}):f.Uri.file(e.path);if(typeof e.href=="string"&&e.href.length>0)return f.Uri.parse(e.href);if(typeof e.scheme=="string")return f.Uri.from({scheme:e.scheme,authority:e.authority||"",path:e.path||e.fsPath||"",query:e.query||"",fragment:e.fragment||""});if(typeof e.toString=="function")try{let t=e.toString(!0);if(t&&t!=="[object Object]")return f.Uri.parse(t)}catch{let t=e.toString();if(t&&t!=="[object Object]")return f.Uri.parse(t)}}throw new Error(`Unsupported target type: ${typeof e}`)}async stat(e){let t=this.o(e);if(!this.isWeb&&g&&!t)return g.stat(this.s(e));let r=this.t(e),n=await f.workspace.fs.stat(r),a=Ge(n);return{...a,mtime:a.mtimeMs===null?S(n.mtime):new Date(a.mtimeMs),ctime:a.ctimeMs===null?S(n.ctime):new Date(a.ctimeMs),birthtime:a.ctimeMs===null?S(n.ctime):new Date(a.ctimeMs),isFile:()=>n.type===f.FileType.File,isDirectory:()=>n.type===f.FileType.Directory}}async readFile(e,t="utf8"){let r=this.o(e);if(!this.isWeb&&g&&!r)return g.readFile(this.s(e),t);let n=this.t(e),a=await f.workspace.fs.readFile(n);return t===null||t==="binary"?a:new TextDecoder(t).decode(a)}async writeFile(e,t,r="utf8"){let n=this.s(e);try{let a=this.o(e);if(!this.isWeb&&g&&!a)return g.writeFile(n,t,r);let i=this.t(e),c=typeof t=="string"?new TextEncoder().encode(t):t;await f.workspace.fs.writeFile(i,c)}catch(a){this.c("write file",n,a)}}async rename(e,t,r={overwrite:!1}){let n=this.s(e),a=this.s(t);try{let i=this.o(e)||this.o(t);if(!this.isWeb&&g&&!i)return g.rename(n,a);if(typeof f.workspace.fs.rename=="function")await f.workspace.fs.rename(this.t(e),this.t(t),r);else if(this.t(e).scheme==="file"&&this.t(t).scheme==="file")await(g||require("fs").promises).rename(n,a);else throw new Error("The active filesystem provider cannot rename report output.")}catch(i){this.c("rename file",`${n} -> ${a}`,i)}}async mkdir(e,t={recursive:!0}){let r=this.s(e);try{let n=this.o(e);if(!this.isWeb&&g&&!n)return g.mkdir(r,t);let a=this.t(e);await f.workspace.fs.createDirectory(a)}catch(n){this.c("create directory",r,n)}}async readdir(e,t={withFileTypes:!1}){let r=this.o(e);if(!this.isWeb&&g&&!r)return g.readdir(this.s(e),t);let n=this.t(e),a=await f.workspace.fs.readDirectory(n);return t.withFileTypes?a.map(([i,c])=>({name:i,isDirectory:()=>c===f.FileType.Directory,isFile:()=>c===f.FileType.File})):a.map(([i])=>i)}async delete(e,t={recursive:!1}){let r=this.o(e);if(!this.isWeb&&g&&!r){let a=this.s(e);return t.recursive?g.rm?g.rm(a,t):g.rmdir(a,t):g.unlink(a)}let n=this.t(e);await f.workspace.fs.delete(n,t)}async exists(e){try{return await this.stat(e),!0}catch{return!1}}async ensureDirectory(e){let t=Ke(this.s(e));await this.mkdir(t,{recursive:!0})}c(e,t,r){throw Ve(r)?new He($e.FILE_PERMISSION_DENIED,`Permission denied while attempting to ${e}`,{path:t,code:r.code}):r}},je=new N;ae.exports={FileSystemAdapter:N,fileSystem:je}});var T=w((Ct,le)=>{var b="__explorerDatesLogger",k=class{constructor(){this.n=null}i(e,t){if(this.n&&typeof this.n[e]=="function")try{return this.n[e](...t)}catch{}switch(e){case"debug":break;case"info":break;case"warn":break;case"error":break;default:break}}debug(...e){return this.i("debug",e)}info(...e){return this.i("info",e)}warn(...e){return this.i("warn",e)}error(...e){return this.i("error",e)}k(e){this.n=e}};function Xe(){return typeof global<"u"?(global[b]||(global[b]=new k),global[b]):typeof globalThis<"u"?(globalThis[b]||(globalThis[b]=new k),globalThis[b]):(U||(U=new k),U)}var K=class extends k{},U=null;le.exports={Logger:K,getLogger:Xe}});var de=w((Dt,he)=>{var F=typeof process<"u"&&process.env?process.env:{},Ye=12e4,Je=1e4,Ze=1440*60*1e3,Qe=2,et=["Ja","Fe","Mr","Ap","My","Jn","Jl","Au","Se","Oc","No","De"],tt=Number(F.EXPLORER_DATES_DECORATION_POOL_SIZE||2048),st=Number(F.EXPLORER_DATES_FLYWEIGHT_CACHE_SIZE||4096),ot=Number(F.EXPLORER_DATES_WORKSPACE_BALANCED_THRESHOLD||15e3),rt=Number(F.EXPLORER_DATES_WORKSPACE_LARGE_THRESHOLD||25e4),ue=Number(F.EXPLORER_DATES_WORKSPACE_EXTREME_THRESHOLD||4e5),nt=Number(F.EXPLORER_DATES_WORKSPACE_SCAN_MAX_RESULTS||Math.min(ue+1,50001)),it={ADVANCED_CACHE:"explorerDates.advancedCache",ADVANCED_CACHE_METADATA:"explorerDates.advancedCacheMetadata",TEMPLATE_STORE:"explorerDates.templates",WEB_GIT_NOTICE:"explorerDates.webGitNotice"},at="explorerDatesChunks",ct="__explorerDatesChunks";he.exports={DEFAULT_CACHE_TIMEOUT:Ye,DEFAULT_MAX_CACHE_SIZE:Je,DEFAULT_PERSISTENT_CACHE_TTL:Ze,DEFAULT_DECORATION_POOL_SIZE:tt,DEFAULT_FLYWEIGHT_CACHE_SIZE:st,MAX_BADGE_LENGTH:Qe,MONTH_ABBREVIATIONS:et,WORKSPACE_SCALE_BALANCED_THRESHOLD:ot,WORKSPACE_SCALE_LARGE_THRESHOLD:rt,WORKSPACE_SCALE_EXTREME_THRESHOLD:ue,WORKSPACE_SCAN_MAX_RESULTS:nt,GLOBAL_STATE_KEYS:it,WEB_CHUNK_GLOBAL_KEY:at,LEGACY_WEB_CHUNK_GLOBAL_KEY:ct}});var fe=w((exports,module)=>{var{getLogger}=T(),env=typeof process<"u"&&process.env?process.env:{};function createFallbackVscodeMinimal(){return{workspace:{workspaceFolders:[],getConfiguration:()=>({get:()=>{},async update(){},inspect:()=>({defaultValue:void 0,globalValue:void 0,workspaceValue:void 0,workspaceFolderValue:void 0})})},ConfigurationTarget:{Global:1,Workspace:2,WorkspaceFolder:3}}}function resolveVscodeMinimal(){try{return require("vscode")}catch{return createFallbackVscodeMinimal()}}var MinimalSettingsCoordinator=class{constructor(e={}){this.f=e.defaultSection||"explorerDates",this.a=new Map,this.u=new Map,this.F=Number(env.EXPLORER_DATES_LOCK_WAIT_WARN_MS||1e3),this._logger=getLogger()}p(e,t){let n=(this.a.get(e)||Promise.resolve()).then(()=>t()),a=n.catch(()=>{});return this.a.set(e,a),n.finally(()=>{this.a.get(e)===a&&this.a.delete(e)}),n}l(e,t){return resolveVscodeMinimal().workspace.getConfiguration(e||void 0,t)}r(e,t){let r=t||this.f;return r?e.startsWith(`${r}.`)?{section:r,key:e.slice(r.length+1),fullKey:e}:e.includes(".")?{section:void 0,key:e,fullKey:e}:{section:r,key:e,fullKey:`${r}.${e}`}:{section:void 0,key:e,fullKey:e}}async updateSetting(e,t,r={}){return this.p(this.r(e,r.section).fullKey,async()=>{let n=this.r(e,r.section),a=this.l(n.section,r.resource);try{let i=this.m(r.scope,r.resource);return await a.update(n.key,t,i),{key:n.fullKey,updated:!0}}catch(i){try{this._logger.warn(`Configuration update failed for ${n.fullKey}: ${i&&i.message}`)}catch{}return{key:n.fullKey,updated:!1,error:i}}})}async applySettings(e,t={}){let r=Array.isArray(e)?e:Object.entries(e).map(([i,c])=>({key:i,value:c})),n=[];for(let i of r)try{n.push(await this.updateSetting(i.key,i.value,t))}catch(c){n.push({key:this.r(i.key,t.section).fullKey,updated:!1,error:c})}let a=n.filter(i=>i&&i.error);if(a.length>0){let i=a.map(h=>`${h.key}: ${h.error&&h.error.message?h.error.message:String(h.error)}`),c=new Error(`Failed to apply ${a.length} setting(s): ${i.join("; ")}`);throw c.details=a,c}return n}m(e,t){return e&&e!=="auto"?this.g(e)||resolveVscodeMinimal().ConfigurationTarget.Workspace:t?resolveVscodeMinimal().ConfigurationTarget.WorkspaceFolder:resolveVscodeMinimal().workspace.workspaceFolders&&resolveVscodeMinimal().workspace.workspaceFolders.length>0?resolveVscodeMinimal().ConfigurationTarget.Workspace:resolveVscodeMinimal().ConfigurationTarget.Global}g(e){switch(e){case"user":return resolveVscodeMinimal().ConfigurationTarget.Global;case"workspace":return resolveVscodeMinimal().ConfigurationTarget.Workspace;case"workspaceFolder":return resolveVscodeMinimal().ConfigurationTarget.WorkspaceFolder;default:return}}getValue(e,t={}){let{section:r,resource:n}=t||{},a=this.r(e,r);return this.l(a.section,n).get(a.key)}inspect(e,t={}){let{section:r,resource:n}=t||{},a=this.r(e,r);return this.l(a.section,n).inspect(a.key)}async clearSetting(e,t={}){return this.updateSetting(e,void 0,t)}getLockWaitStats(){let e={};for(let[t,r]of this.u.entries())e[t]={...r};return e}resetLockWaitStats(){this.u.clear()}},cachedCoordinator=null;function getSettingsCoordinator(options){if(!cachedCoordinator||options&&options.forceNew){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let o=null;try{o=dynamicRequire("../chunks/settings-coordinator-impl-chunk")}catch{}try{o||(o=dynamicRequire("../chunks/settingsCoordinator-impl-chunk"))}catch{}if(o&&typeof o.createSettingsCoordinatorImpl=="function")return cachedCoordinator=o.createSettingsCoordinatorImpl(options),cachedCoordinator}}catch{}try{let{WEB_CHUNK_GLOBAL_KEY:o,LEGACY_WEB_CHUNK_GLOBAL_KEY:e}=de(),t=typeof globalThis<"u"&&(globalThis[o]||globalThis[e])||null;if(t&&t.settingsCoordinatorImpl&&typeof t.settingsCoordinatorImpl.createSettingsCoordinatorImpl=="function")return cachedCoordinator=t.settingsCoordinatorImpl.createSettingsCoordinatorImpl(options),cachedCoordinator}catch{}cachedCoordinator=new MinimalSettingsCoordinator(options)}return cachedCoordinator}module.exports={getSettingsCoordinator,MinimalSettingsCoordinator}});var pe=w((exports,module)=>{var vscode=require("vscode"),getLogger=()=>{try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let o=dynamicRequire("./chunks/logger-chunk");if(o&&typeof o.getLogger=="function")return getLogger=o.getLogger,getLogger()}}catch{}try{return getLogger=T().getLogger,getLogger()}catch{return getLogger=()=>({debug:(()=>{})?.bind(console)||console.log,info:(()=>{}).bind(console),warn:(()=>{}).bind(console),error:(()=>{}).bind(console)}),getLogger()}},DecorationDiagnostics=class{constructor(e){this._logger=getLogger(),this.e=e,this.T=[]}async runComprehensiveDiagnostics(){this._logger.info("\u{1F50D} Starting comprehensive decoration diagnostics...");let e={timestamp:new Date().toISOString(),vscodeVersion:vscode.version,extensionVersion:vscode.extensions.getExtension("incredincomp.explorer-dates")?.packageJSON?.version,tests:{}};return e.tests.vscodeSettings=await this.w(),e.tests.providerRegistration=await this.y(),e.tests.fileProcessing=await this.C(),e.tests.decorationCreation=await this.D(),e.tests.cacheAnalysis=await this.E(),e.tests.extensionConflicts=await this.S(),e.tests.uriPathIssues=await this.b(),this._logger.info("\u{1F50D} Comprehensive diagnostics completed",e),e}async w(){let e=vscode.workspace.getConfiguration("explorer"),t=vscode.workspace.getConfiguration("workbench"),r=vscode.workspace.getConfiguration("explorerDates"),n={"explorer.decorations.badges":e.get("decorations.badges"),"explorer.decorations.colors":e.get("decorations.colors"),"workbench.colorTheme":t.get("colorTheme"),"explorerDates.showDateDecorations":r.get("showDateDecorations"),"explorerDates.colorScheme":r.get("colorScheme"),"explorerDates.showGitInfo":r.get("showGitInfo")},a=[];return n["explorer.decorations.badges"]===!1&&a.push("CRITICAL: explorer.decorations.badges is disabled"),n["explorer.decorations.colors"]===!1&&a.push("WARNING: explorer.decorations.colors is disabled"),n["explorerDates.showDateDecorations"]===!1&&a.push("CRITICAL: explorerDates.showDateDecorations is disabled"),{status:a.length>0?"ISSUES_FOUND":"OK",settings:n,issues:a}}async y(){let e=[];if(!this.e)return e.push("CRITICAL: Decoration provider is null/undefined"),{status:"FAILED",issues:e};typeof this.e.provideFileDecoration!="function"&&e.push("CRITICAL: provideFileDecoration method missing"),this.e.onDidChangeFileDecorations||e.push("WARNING: onDidChangeFileDecorations event emitter missing");let t=vscode.Uri.file("/test/path");try{let r=await this.e.provideFileDecoration(t);this._logger.debug("Provider test call completed",{result:!!r})}catch(r){e.push(`ERROR: Provider test call failed: ${r.message}`)}return{status:e.length>0?"ISSUES_FOUND":"OK",providerActive:!!this.e,issues:e}}async C(){let e=vscode.workspace.workspaceFolders;if(!e||e.length===0)return{status:"NO_WORKSPACE",issues:["No workspace folders available"]};let t=[],r=[];try{let n=["package.json","README.md","extension.js","src/logger.js"];for(let a of n){let i=vscode.Uri.joinPath(e[0].uri,a);try{await vscode.workspace.fs.stat(i);let c=this.e.h?await this.e.h(i):!1,h=await this.e.provideFileDecoration(i);t.push({file:a,exists:!0,excluded:c,hasDecoration:!!h,badge:h?.badge,uri:i.toString()})}catch(c){t.push({file:a,exists:!1,error:c.message})}}}catch(n){r.push(`File processing test failed: ${n.message}`)}return{status:r.length>0?"ISSUES_FOUND":"OK",testFiles:t,issues:r}}async D(){let e=[],t=[];try{let n=new vscode.FileDecoration("test");e.push({name:"Simple decoration",success:!0,badge:n.badge})}catch(n){e.push({name:"Simple decoration",success:!1,error:n.message}),t.push("CRITICAL: Cannot create simple FileDecoration")}try{let n=new vscode.FileDecoration("test","Test tooltip");e.push({name:"Decoration with tooltip",success:!0,hasTooltip:!!(n&&n.tooltip)})}catch(n){e.push({name:"Decoration with tooltip",success:!1,error:n.message}),t.push("WARNING: Cannot create FileDecoration with tooltip")}try{let n=new vscode.FileDecoration("test","Test tooltip",new vscode.ThemeColor("charts.red"));e.push({name:"Decoration with color",success:!0,hasColor:!!n.color})}catch(n){e.push({name:"Decoration with color",success:!1,error:n.message}),t.push("WARNING: Cannot create FileDecoration with color")}let r=["1d","10m","2h","!!","\u25CF\u25CF","JA12","123456789"];for(let n of r)try{let a=new vscode.FileDecoration(n);e.push({name:`Badge format: ${n}`,success:!0,badge:a.badge,length:n.length})}catch(a){e.push({name:`Badge format: ${n}`,success:!1,error:a.message}),n.length<=8&&t.push(`WARNING: Valid badge format '${n}' failed`)}return{status:t.length>0?"ISSUES_FOUND":"OK",tests:e,issues:t}}async E(){let e={memoryCache:{size:this.e.v?.size||0,maxSize:this.e.A||0},advancedCache:{available:!!this.e._advancedCache,initialized:!1},metrics:this.e.getMetrics?this.e.getMetrics():null},t=[];return e.memoryCache.size>e.memoryCache.maxSize*.9&&t.push("WARNING: Memory cache is nearly full"),e.metrics&&e.metrics.cacheHits===0&&e.metrics.cacheMisses>10&&t.push("WARNING: Cache hit rate is 0% - potential cache key issues"),{status:t.length>0?"ISSUES_FOUND":"OK",cacheInfo:e,issues:t}}async S(){let e=vscode.extensions.all,t=[],r=[];for(let a of e){if(!a.isActive)continue;let i=a.packageJSON;i.contributes?.commands?.some(h=>h.command?.includes("decoration")||h.title?.includes("decoration")||h.title?.includes("badge")||h.title?.includes("explorer"))&&r.push({id:a.id,name:i.displayName||i.name,version:i.version}),["file-icons","vscode-icons","material-icon-theme","explorer-exclude","hide-files","file-watcher"].some(h=>a.id.includes(h))&&t.push({id:a.id,name:i.displayName||i.name,reason:"Known to potentially interfere with file decorations"})}let n=[];return r.length>1&&n.push(`WARNING: ${r.length} extensions might provide file decorations`),t.length>0&&n.push(`WARNING: ${t.length} potentially conflicting extensions detected`),{status:n.length>0?"ISSUES_FOUND":"OK",decorationExtensions:r,potentialConflicts:t,issues:n}}async b(){let e=vscode.workspace.workspaceFolders;if(!e||e.length===0)return{status:"NO_WORKSPACE",issues:["No workspace available for URI testing"]};let t=[],r=[],n=["package.json","src/logger.js","README.md",".gitignore"];for(let a of n){let i=vscode.Uri.joinPath(e[0].uri,a);t.push({path:a,scheme:i.scheme,fsPath:i.fsPath,authority:i.authority,valid:i.scheme==="file"&&i.fsPath.length>0}),i.scheme!=="file"&&r.push(`WARNING: Non-file URI scheme for ${a}: ${i.scheme}`),(i.fsPath.includes("\\\\")||i.fsPath.includes("//"))&&r.push(`WARNING: Potential path separator issues in ${a}`)}return{status:r.length>0?"ISSUES_FOUND":"OK",tests:t,issues:r}}};module.exports={DecorationDiagnostics}});var me=w((exports,module)=>{var vscode=require("vscode"),getFileName=p=>{try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let o=dynamicRequire("./chunks/path-utils-chunk");if(o&&typeof o.getFileName=="function")return getFileName=o.getFileName,getFileName(p)}}catch{}let s=String(p||""),normalized=s.replace(/\\/g,"/"),idx=normalized.lastIndexOf("/");return idx===-1?normalized:normalized.substring(idx+1)};async function testVSCodeDecorationRendering(){let o=T().getLogger();o.info("\u{1F3A8} Testing VS Code decoration rendering...");class e{constructor(){this.d=new vscode.EventEmitter,this.onDidChangeFileDecorations=this.d.event}provideFileDecoration(a){let i=getFileName(a.fsPath||a.path),c=new vscode.FileDecoration("TEST");return c.tooltip=`Test decoration for ${i}`,c.color=new vscode.ThemeColor("charts.red"),o.info(`\u{1F9EA} Test provider returning decoration for: ${i}`),c}}let t=new e,r=vscode.window.registerFileDecorationProvider(t);return o.info("\u{1F9EA} Test decoration provider registered"),setTimeout(()=>{t.d.fire(void 0),o.info("\u{1F504} Test decoration refresh triggered"),setTimeout(()=>{r.dispose(),o.info("\u{1F9EA} Test decoration provider disposed")},1e4)},1e3),"Test decoration provider registered for 10 seconds"}async function testFileDecorationAPI(){let o=T().getLogger();o.info("\u{1F527} Testing FileDecoration API...");let e=[];try{let r=new vscode.FileDecoration("MIN");e.push({name:"Minimal decoration",success:!0,badge:r.badge}),o.info("\u2705 Minimal decoration created successfully")}catch(r){e.push({name:"Minimal decoration",success:!1,error:r.message}),o.error("\u274C Minimal decoration failed:",r)}try{let r=new vscode.FileDecoration("FULL","Full decoration tooltip",new vscode.ThemeColor("charts.blue"));r.propagate=!1,e.push({name:"Full decoration",success:!0,badge:r.badge,hasTooltip:!!r.tooltip,hasColor:!!r.color,propagate:r.propagate}),o.info("\u2705 Full decoration created successfully")}catch(r){e.push({name:"Full decoration",success:!1,error:r.message}),o.error("\u274C Full decoration failed:",r)}let t=["charts.red","charts.blue","charts.green","charts.yellow","terminal.ansiRed","terminal.ansiGreen","terminal.ansiBlue","editorError.foreground","editorWarning.foreground","editorInfo.foreground"];for(let r of t)try{e.push({name:`ThemeColor: ${r}`,success:!0,colorId:r})}catch(n){e.push({name:`ThemeColor: ${r}`,success:!1,error:n.message}),o.error(`\u274C ThemeColor ${r} failed:`,n)}return e}module.exports={testVSCodeDecorationRendering,testFileDecorationAPI}});var we=w((Et,ge)=>{var u=require("vscode"),{fileSystem:lt}=ce(),v,L,A;try{let o=W();o&&(v=o.getFileName,L=o.getRelativePath,A=o.ensureDate)}catch{}if(!v||!A){let o=O(),e=q();v=v||o.getFileName,L=L||o.getRelativePath,A=A||e.ensureDate}var{getSettingsCoordinator:ut}=fe();async function H(){return(await import("../utils/localization")).getLocalization()}var I=ut();function ht({context:o,fileDateProvider:e,logger:t,chunkLoader:r}){let n=[];async function a(){try{let i=await r.loadChunk("diagnostics");if(!i)throw new Error("Diagnostics chunk not available");return o&&i.ensureInitialized(o),{generateWorkspaceActivityHTML:i.generateWorkspaceActivityHTML,generatePerformanceAnalyticsHTML:i.generatePerformanceAnalyticsHTML,generateDiagnosticsHTML:i.generateDiagnosticsHTML,generateDiagnosticsWebview:i.generateDiagnosticsWebview}}catch(i){throw new Error(`Failed to load diagnostics generators: ${i.message}`)}}n.push(u.commands.registerCommand("explorerDates.showWorkspaceActivity",async()=>{let i;try{if(i=await H(),!u.workspace.getConfiguration("explorerDates").get("enableAnalysisCommands",!0)){u.window.showInformationMessage(i.getString("analysisCommandsDisabled"));return}let{generateWorkspaceActivityHTML:l}=await a(),m=u.window.createWebviewPanel("workspaceActivity","Workspace File Activity",u.ViewColumn.One,{enableScripts:!0});if(!u.workspace.workspaceFolders){u.window.showWarningMessage(i.getString("noWorkspaceFolderOpen"));return}let d=u.workspace.workspaceFolders[0],y=[],R=await u.workspace.findFiles("**/*","**/node_modules/**",100);for(let C of R)try{let E=await lt.stat(C);(typeof E.isFile!="function"||E.isFile())&&y.push({path:L(d.uri.fsPath||d.uri.path,C.fsPath||C.path),modified:A(E.mtime),size:E.size})}catch{}y.sort((C,E)=>E.modified.getTime()-C.modified.getTime()),m.webview.html=await l(y.slice(0,50)),t.info("Workspace activity panel opened")}catch(c){t.error("Failed to show workspace activity",c),u.window.showErrorMessage(i?.getString("failedToShowWorkspaceActivity",c.message)||`Failed to show workspace activity: ${c.message}`)}})),n.push(u.commands.registerCommand("explorerDates.showPerformanceAnalytics",async()=>{let i;try{i=await H();let{generatePerformanceAnalyticsHTML:c}=await a(),h=u.window.createWebviewPanel("performanceAnalytics","Explorer Dates Performance Analytics",u.ViewColumn.One,{enableScripts:!0}),l=e?e.getMetrics():{};h.webview.html=await c(l),t.info("Performance analytics panel opened")}catch(c){t.error("Failed to show performance analytics",c),u.window.showErrorMessage(i?.getString("failedToShowPerformanceAnalytics",c.message)||`Failed to show performance analytics: ${c.message}`)}})),n.push(u.commands.registerCommand("explorerDates.debugCache",async()=>{let i;try{if(i=await H(),e){let c=e.getMetrics(),h={"Cache Summary":{"Memory Cache Size":c.cacheSize,"Cache Hit Rate":c.cacheHitRate,"Total Hits":c.cacheHits,"Total Misses":c.cacheMisses,"Cache Timeout":`${c.cacheDebugging.cacheTimeout}ms`},"Advanced Cache":c.advancedCache||"Not available","Cache Namespace":c.cacheDebugging.cacheNamespace||"default","Sample Cache Keys":c.cacheDebugging.memoryCacheKeys||[]};u.window.showInformationMessage(`Cache Debug Info: +${JSON.stringify(h,null,2)}`,{modal:!0}),t.info("Cache debug info displayed",h)}}catch(c){t.error("Failed to show cache debug info",c),u.window.showErrorMessage(i?.getString("failedToShowCacheDebugInfo",c.message)||`Failed to show cache debug info: ${c.message}`)}})),n.push(u.commands.registerCommand("explorerDates.runDiagnostics",async()=>{try{let{generateDiagnosticsHTML:i}=await a(),c=u.workspace.getConfiguration("explorerDates"),h=u.window.activeTextEditor,l={"Extension Status":{"Provider Active":e?"Yes":"No","Decorations Enabled":c.get("showDateDecorations",!0)?"Yes":"No","VS Code Version":u.version,"Extension Version":o.extension.packageJSON.version}};if(h){let{uri:d}=h.document;d.scheme==="file"&&(l["Current File"]={"File Path":d.fsPath,"File Extension":v(d.fsPath||d.path).split(".").pop()||"No extension","Is Excluded":e?await e.h(d):"Unknown"})}if(l.Configuration={"Excluded Folders":c.get("excludedFolders",[]),"Excluded Patterns":c.get("excludedPatterns",[]),"Color Scheme":c.get("colorScheme","none"),"Cache Timeout":`${c.get("cacheTimeout",3e4)}ms`},e){let d=e.getMetrics();l.Performance={"Total Decorations":d.totalDecorations,"Cache Size":d.cacheSize,"Cache Hit Rate":d.cacheHitRate,Errors:d.errors},d.performanceTiming&&(l["Performance Timing"]={"Avg Git Blame (ms)":d.performanceTiming.avgGitBlameMs,"Avg File Stat (ms)":d.performanceTiming.avgFileStatMs,"Git Calls":d.performanceTiming.gitBlameCalls,"File Stat Calls":d.performanceTiming.fileStatCalls,"Total Git Time (ms)":d.performanceTiming.totalGitBlameTimeMs,"Total File Stat Time (ms)":d.performanceTiming.totalFileStatTimeMs})}let m=u.window.createWebviewPanel("explorerDatesDiagnostics","Explorer Dates Diagnostics",u.ViewColumn.One,{enableScripts:!0});m.webview.html=await i(l),t.info("Diagnostics panel opened",l)}catch(i){t.error("Failed to run diagnostics",i),u.window.showErrorMessage(`Failed to run diagnostics: ${i.message}`)}})),n.push(u.commands.registerCommand("explorerDates.testDecorations",async()=>{try{let{generateDiagnosticsWebview:i}=await a();t.info("\u{1F50D} Starting comprehensive decoration diagnostics...");let{DecorationDiagnostics:c}=pe(),l=await new c(e).runComprehensiveDiagnostics(),m=u.window.createWebviewPanel("decorationDiagnostics","Decoration Diagnostics - Root Cause Analysis",u.ViewColumn.One,{enableScripts:!0});m.webview.html=await i(l);let d=[],y=[];Object.values(l.tests).forEach(R=>{R.issues&&R.issues.forEach(C=>{C.startsWith("CRITICAL:")?d.push(C):C.startsWith("WARNING:")&&y.push(C)})}),d.length>0?u.window.showErrorMessage(`CRITICAL ISSUES FOUND: ${d.join(", ")}`):y.length>0?u.window.showWarningMessage(`Warnings found: ${y.length} potential issues detected. Check diagnostics panel.`):u.window.showInformationMessage("No critical issues found. Decorations should be working properly."),t.info("\u{1F50D} Comprehensive diagnostics completed",l)}catch(i){t.error("Failed to run comprehensive diagnostics",i),u.window.showErrorMessage(`Diagnostics failed: ${i.message}`)}})),n.push(u.commands.registerCommand("explorerDates.monitorDecorations",async()=>{if(!e){u.window.showErrorMessage("Decoration provider not available");return}e.startProviderCallMonitoring(),e.forceRefreshAllDecorations(),setTimeout(()=>{let i=e.getProviderCallStats(),c=`VS Code Decoration Requests: ${i.totalCalls} calls for ${i.uniqueFiles} files`;u.window.showInformationMessage(c),t.info("\u{1F50D} Decoration monitoring results:",i)},5e3),u.window.showInformationMessage("Started monitoring VS Code decoration requests. Results in 5 seconds...")})),n.push(u.commands.registerCommand("explorerDates.testVSCodeRendering",async()=>{try{let{testVSCodeDecorationRendering:i,testFileDecorationAPI:c}=me();t.info("\u{1F3A8} Testing VS Code decoration rendering system...");let h=await c();t.info("\u{1F527} FileDecoration API tests:",h);let l=await i();t.info("\u{1F3A8} Decoration rendering test:",l),u.window.showInformationMessage('VS Code decoration rendering test started. Check Output panel and Explorer for "TEST" badges on files.')}catch(i){t.error("Failed to test VS Code rendering:",i),u.window.showErrorMessage(`VS Code rendering test failed: ${i.message}`)}})),n.push(u.commands.registerCommand("explorerDates.quickFix",async()=>{try{let i=[];I.getValue("showDateDecorations")||i.push({issue:"Date decorations are disabled",description:"Enable date decorations",fix:async()=>I.updateSetting("showDateDecorations",!0,{scope:"user",reason:"quick-fix"})});let c=I.getValue("excludedPatterns")||[];if(c.includes("**/*")&&i.push({issue:"All files are excluded by pattern",description:"Remove overly broad exclusion pattern",fix:async()=>{let l=c.filter(m=>m!=="**/*");await I.updateSetting("excludedPatterns",l,{scope:"user",reason:"quick-fix"})}}),i.length===0){u.window.showInformationMessage("No common issues detected. Decorations should be working.");return}let h=await u.window.showQuickPick(i.map(l=>({label:l.description,description:l.issue,fix:l.fix})),{placeHolder:"Select an issue to fix automatically"});h&&(await h.fix(),u.window.showInformationMessage("Fixed! Try refreshing decorations now."),e&&(e.clearAllCaches(),e.refreshAll()))}catch(i){t.error("Failed to run quick fix",i),u.window.showErrorMessage(`Failed to run quick fix: ${i.message}`)}})),n.push(u.commands.registerCommand("explorerDates.showKeyboardShortcuts",async()=>{try{e?._accessibility?await e._accessibility.showKeyboardShortcutsHelp():u.window.showInformationMessage("Keyboard shortcuts: Ctrl+Shift+D (toggle), Ctrl+Shift+C (copy date), Ctrl+Shift+I (file details), Ctrl+Shift+R (refresh), Ctrl+Shift+A (workspace activity)"),t.info("Keyboard shortcuts help shown")}catch(i){t.error("Failed to show keyboard shortcuts help",i),u.window.showErrorMessage(`Failed to show keyboard shortcuts help: ${i.message}`)}})),n.forEach(i=>o.subscriptions.push(i))}ge.exports={registerAnalysisCommands:ht}});var ye=we();module.exports={...ye,registerAnalysisCommands:ye.registerAnalysisCommands}; diff --git a/dist/chunks/analysis.js.map b/dist/chunks/analysis.js.map index 45cd2cb..579f38e 100644 --- a/dist/chunks/analysis.js.map +++ b/dist/chunks/analysis.js.map @@ -1,6 +1,6 @@ { "version": 3, "sources": ["../../src/utils/env.js", "../../src/utils/pathUtils.js", "../../src/utils/errors.js", "../../src/filesystem/environmentContract.js", "../../src/chunks/utils-shared-chunk.js", "../../src/utils/dateHelpers.js", "../../src/filesystem/FileSystemAdapter.js", "../../src/utils/logger.js", "../../src/constants.js", "../../src/utils/settingsCoordinator.js", "../../src/decorationDiagnostics.js", "../../src/decorationTester.js", "../../src/commands/analysisCommands.js", "../../src/chunks/analysis-chunk.js"], - "mappings": "26BAAA,+CAAAA,SAAAC,QAAA,KAAMC,QAAS,QAAQ,QAAQ,EAE/B,SAAS,kBAAmB,CACxB,GAAI,CACA,IAAM,OAASA,SAAQ,KAAK,OACtB,QAAUA,SAAQ,QAAQ,IAChC,OAAO,SAAW,QAAa,UAAY,QAAa,SAAW,OACvE,MAAQ,CACJ,MAAO,EACX,CACJ,CARS,4CAUTD,QAAO,QAAU,CACb,gBACJ,KCdA,2EACA,IAAI,MAAQ,KACZ,GAAI,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AK,EAC7CA,QAAO,OAAO,iBAAiB,4BAA4B,MAAM,OAAO,EAAE,CAC9E,CACJ,CAAC,CAAC,EAEF,cAAc,KAAKA,QAAO,SAAS,gBAAgB,sCAAuC,SAAY,CAClG,GAAI,CACI,kBAAkB,eAClB,MAAM,iBAAiB,eAAe,0BAA0B,EAEhEA,QAAO,OAAO,uBACV,6JACJ,EAEJ,OAAO,KAAK,+BAA+B,CAC/C,OAAS,MAAO,CACZ,OAAO,MAAM,yCAA0C,KAAK,EAC5DA,QAAO,OAAO,iBAAiB,2CAA2C,MAAM,OAAO,EAAE,CAC7F,CACJ,CAAC,CAAC,EAEF,cAAc,QAAQ,YAAc,QAAQ,cAAc,KAAK,UAAU,CAAC,CAC9E,CAhXS,4DAkXTD,QAAO,QAAU,CACb,wBACJ,KC7YA,IAAM,iBAAmB,2BAEzB,OAAO,QAAU,CACb,GAAG,iBACH,yBAA0B,iBAAiB,wBAC/C", "names": ["exports", "module", "vscode", "normalizePath", "getSegments", "normalized", "getFileName", "getExtension", "getDirectory", "joinPath", "getCacheKey", "getUriPath", "getRelativePath", "exports", "module", "options", "vscode", "exports", "module", "env", "options", "exports", "module", "getCurrentTimestamp", "isDateLike", "ensureDate", "normalizePath", "getSegments", "normalized", "getFileName", "getExtension", "getDirectory", "joinPath", "getCacheKey", "getUriPath", "getRelativePath", "getCurrentTimestamp", "isDateLike", "ensureDate", "exports", "module", "vscode", "normalizePath", "ensureDate", "env", "normalized", "options", "exports", "module", "getLogger", "exports", "module", "env", "options", "p", "chunk", "chunk", "chunk", "exports", "module", "vscode", "getFileName", "getRelativePath", "ensureDate", "getSettingsCoordinator", "DecorationDiagnostics", "testVSCodeDecorationRendering", "testFileDecorationAPI", "p"] } diff --git a/dist/chunks/fileDateProviderImpl.js b/dist/chunks/fileDateProviderImpl.js index 9a7ebf5..8be37e3 100644 --- a/dist/chunks/fileDateProviderImpl.js +++ b/dist/chunks/fileDateProviderImpl.js @@ -1,4 +1,4 @@ -var jr=Object.create;var mt=Object.defineProperty;var Vr=Object.getOwnPropertyDescriptor;var Gr=Object.getOwnPropertyNames;var Xr=Object.getPrototypeOf,Yr=Object.prototype.hasOwnProperty;var _=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var Zr=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Gr(t))!Yr.call(e,i)&&i!==r&&mt(e,i,{get:()=>t[i],enumerable:!(n=Vr(t,i))||n.enumerable});return e};var R=(e,t,r)=>(r=e!=null?jr(Xr(e)):{},Zr(t||!e||!e.__esModule?mt(r,"default",{value:e,enumerable:!0}):r,e));var J=_((ua,yt)=>{var pt=require("vscode");function Jr(){try{let e=pt?.env?.uiKind,t=pt?.UIKind?.Web;return e!==void 0&&t!==void 0&&e===t}catch{return!1}}yt.exports={isWebEnvironment:Jr}});var ce=_((exports,module)=>{var chunk=null;try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){try{chunk=dynamicRequire("../chunks/utils-shared-chunk")}catch{}try{chunk||(chunk=dynamicRequire("./chunks/utils-shared-chunk"))}catch{}try{chunk||(chunk=dynamicRequire("../chunks/path-utils-chunk"))}catch{}try{chunk||(chunk=dynamicRequire("./chunks/path-utils-chunk"))}catch{}}}catch{}if(chunk&&chunk.normalizePath)module.exports={normalizePath:chunk.normalizePath,getFileName:chunk.getFileName,getExtension:chunk.getExtension,getDirectory:chunk.getDirectory,joinPath:chunk.joinPath,getCacheKey:chunk.getCacheKey,getUriPath:chunk.getUriPath,getRelativePath:chunk.getRelativePath};else{let e=function(u=""){return u?u.replace(/\\/g,"/"):""},t=function(u=""){let l=e(u);return l?l.split("/").filter(Boolean):[]},r=function(u=""){let l=t(u);return l.length?l[l.length-1]:""},n=function(u=""){let l=r(u),d=l.lastIndexOf(".");return d<=0?"":l.substring(d).toLowerCase()},i=function(u=""){let l=e(u),d=l.lastIndexOf("/");return d===-1?"":l.substring(0,d)},a=function(...u){return e(u.filter(Boolean).join("/")).replace(/\/+/g,"/")},o=function(u=""){return e(u).toLowerCase()},s=function(u=""){if(!u)return"";if(typeof u=="string")return u;if(typeof u.fsPath=="string"&&u.fsPath.length>0)return u.fsPath;if(typeof u.path=="string"&&u.path.length>0)return u.path;if(typeof u.toString=="function")try{return u.toString(!0)}catch{return u.toString()}return String(u)},c=function(u="",l=""){let d=e(u),h=e(l);return d&&h.startsWith(d)?h.substring(d.length).replace(/^\/+/,""):h};normalizePath=e,getSegments=t,getFileName=r,getExtension=n,getDirectory=i,joinPath=a,getCacheKey=o,getUriPath=s,getRelativePath=c,module.exports={normalizePath:e,getFileName:r,getExtension:n,getDirectory:i,joinPath:a,getCacheKey:o,getUriPath:s,getRelativePath:c}}var normalizePath,getSegments,getFileName,getExtension,getDirectory,joinPath,getCacheKey,getUriPath,getRelativePath});var Et=_((ha,_t)=>{var ye=class extends Error{constructor(t,r,n={}){super(r),this.code=t,this.context=n,this.name="ExtensionError"}},bt={FILE_PERMISSION_DENIED:"FILE_PERMISSION_DENIED",WORKSPACE_TOO_LARGE:"WORKSPACE_TOO_LARGE",CHUNK_LOAD_FAILED:"CHUNK_LOAD_FAILED"};function Qr(e){if(!e)return!1;let t=e.code||e?.name;return["EACCES","EPERM","EROFS","NoPermissions"].includes(t)}var ze=class extends ye{constructor(t,r,n={}){let{recoverable:i=!0,context:a={}}=n;super(bt.CHUNK_LOAD_FAILED,`Failed to load ${t}: ${r}`,{chunkName:t,recoverable:i,...a}),this.name="ChunkLoadError",this.chunkName=t,this.recoverable=i}};function en(e,t,r={}){let n=require("vscode"),{userFacing:i=!0}=r,a=t?.recoverable??!0;i&&!a&&n.window.showErrorMessage(`Explorer Dates: ${e} feature unavailable. Please reinstall or rebuild the extension.`)}_t.exports={ExtensionError:ye,ERROR_CODES:bt,isPermissionError:Qr,ChunkLoadError:ze,handleChunkFailure:en}});var He=_((da,Ct)=>{var wt="EXPLORER_DATES_FORCE_VSCODE_FS";function kt(e,t=process.env){return String(t?.[e]||"")==="1"}function be(e){let t=e&&typeof e=="object"?e:null,r=String(t?.scheme||(typeof e=="string"&&/^[a-z][a-z0-9+.-]*:/i.test(e)?e.split(":",1)[0]:"file")).toLowerCase(),n=String(t?.authority||""),i=t?.path||t?.fsPath||(typeof e=="string"?e.replace(/^[a-z][a-z0-9+.-]*:\/\//i,""):"");return{scheme:r,authority:n,path:String(i||"")}}function tn({uri:e,isWeb:t=!1,remoteName:r="",forceWorkspaceFs:n=kt(wt)}={}){let i=be(e),a=i.scheme!=="file",o=!!t,s=!!r,c=!!(n||o||s||a);return{scheme:i.scheme,authority:i.authority,isFileScheme:!a,isVirtual:a,isBrowser:o,isRemote:s,forceWorkspaceFs:!!n,filesystem:c?"workspace.fs":"node.fs",provider:a?i.scheme==="github"||i.scheme==="vscode-vfs"?"github":"virtual":"filesystem"}}function Dt({uri:e,platform:t=process.platform,caseSensitive:r}={}){return typeof r=="boolean"?r:be(e).scheme!=="file"?!0:t!=="win32"}function rn(e,t={}){let r=be(e),n=r.path.replace(/\\/g,"/").replace(/\/+/g,"/"),i=`${r.scheme}://${r.authority}${n}`;return Dt({uri:e,...t})?i:i.toLowerCase()}function Ue(e){if(e instanceof Date){let t=e.getTime();return Number.isFinite(t)?t:null}if(typeof e=="number")return Number.isFinite(e)?e:null;if(typeof e=="string"&&e.trim()){let t=Date.parse(e);return Number.isFinite(t)?t:null}return null}function nn(e){if(!e||typeof e!="object")return null;let t=Ue(e.mtime),r=Ue(e.ctime);return{...e,mtimeMs:t,ctimeMs:r}}Ct.exports={FORCE_WORKSPACE_FS_ENV:wt,envFlag:kt,getUriParts:be,getEnvironmentContract:tn,isCaseSensitive:Dt,resourceIdentity:rn,normalizeTimestamp:Ue,normalizeStat:nn}});var K=_((fa,vt)=>{function an(){return typeof Date=="function"&&Date.now?Date.now():16409952e5}function St(e){return!!(e&&typeof e=="object"&&typeof e.getTime=="function")}function on(e){if(St(e))return e;if(typeof e=="number")return new Date(e);if(typeof e=="string"){let t=Date.parse(e);return isNaN(t)?new Date:new Date(t)}return new Date}function B(e=""){return e?e.replace(/\\/g,"/"):""}function sn(e=""){let t=B(e);return t?t.split("/").filter(Boolean):[]}function Tt(e=""){let t=sn(e);return t.length?t[t.length-1]:""}function cn(e=""){let t=Tt(e),r=t.lastIndexOf(".");return r<=0?"":t.substring(r).toLowerCase()}function ln(e=""){let t=B(e),r=t.lastIndexOf("/");return r===-1?"":t.substring(0,r)}function un(...e){return B(e.filter(Boolean).join("/")).replace(/\/+/g,"/")}function hn(e=""){return B(e).toLowerCase()}function dn(e=""){if(!e)return"";if(typeof e=="string")return e;if(typeof e.fsPath=="string"&&e.fsPath.length>0)return e.fsPath;if(typeof e.path=="string"&&e.path.length>0)return e.path;if(typeof e.toString=="function")try{return e.toString(!0)}catch{return e.toString()}return String(e)}function fn(e="",t=""){let r=B(e),n=B(t);return r&&n.startsWith(r)?n.substring(r.length).replace(/^\/+/,""):n}vt.exports={ensureDate:on,isDateLike:St,getCurrentTimestamp:an,normalizePath:B,getFileName:Tt,getExtension:cn,getDirectory:ln,joinPath:un,getCacheKey:hn,getUriPath:dn,getRelativePath:fn}});var Ft=_((exports,module)=>{var chunk=null;try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){try{chunk=dynamicRequire("../chunks/utils-shared-chunk")}catch{}try{chunk||(chunk=dynamicRequire("./chunks/utils-shared-chunk"))}catch{}try{chunk||(chunk=dynamicRequire("../chunks/date-helpers-chunk"))}catch{}try{chunk||(chunk=dynamicRequire("./chunks/date-helpers-chunk"))}catch{}}}catch{}if(chunk&&(chunk.ensureDate||chunk.isDateLike||chunk.getCurrentTimestamp))module.exports={ensureDate:chunk.ensureDate,isDateLike:chunk.isDateLike,getCurrentTimestamp:chunk.getCurrentTimestamp};else{let e=function(){return typeof Date=="function"&&Date.now?Date.now():16409952e5},t=function(n){return!!(n&&typeof n=="object"&&typeof n.getTime=="function")},r=function(n){if(t(n))return n;if(typeof n=="number")return new Date(n);if(typeof n=="string"){let i=Date.parse(n);return isNaN(i)?new Date:new Date(i)}return new Date};getCurrentTimestamp=e,isDateLike=t,ensureDate=r,module.exports={ensureDate:r,isDateLike:t,getCurrentTimestamp:e}}var getCurrentTimestamp,isDateLike,ensureDate});var $e=_((ga,xt)=>{var S=require("vscode"),{isWebEnvironment:At}=J(),{normalizePath:gn}=ce(),{ExtensionError:mn,ERROR_CODES:pn,isPermissionError:yn}=Et(),{getEnvironmentContract:bn,normalizeStat:_n,FORCE_WORKSPACE_FS_ENV:En}=He(),Q;try{let e=K();e&&(Q=e.ensureDate)}catch{}Q||(Q=Ft().ensureDate);var Rt=typeof process<"u"&&process.env?process.env:{},Pt=Rt.VSCODE_WEB==="true"||At(),v=null;if(!Pt)try{v=require("fs").promises}catch{v=null}var _e=class{constructor(){this.isWeb=Pt||At()}j(t){try{return bn({uri:this.O(t),isWeb:this.isWeb,remoteName:S.env?.remoteName,forceWorkspaceFs:Rt[En]==="1"}).filesystem==="workspace.fs"}catch{return!1}}q(t){if(!t)return"";if(typeof t=="string")return t;if(t&&typeof t=="object"&&typeof t.fsPath=="string")return t.fsPath;if(t&&typeof t=="object"&&typeof t.path=="string")return t.path;if(typeof t=="object"){if(typeof t.fsPath=="string")return t.fsPath;if(typeof t.path=="string")return t.path}return String(t)}O(t){if(t&&typeof t=="object"&&typeof t.scheme=="string"&&typeof t.path=="string")return t;if(typeof t=="string"){let r=t.trim(),n=/^[a-zA-Z]:[\\/]/.test(r);if(/^[a-zA-Z][a-zA-Z0-9+.-]*:/.test(r)&&!n){let a=S.Uri.parse(r);if(a.scheme&&a.scheme!=="file")return a}return S.Uri.file(t)}if(t&&typeof t=="object"){if(t.uri&&t.uri!==t)try{return this.O(t.uri)}catch{}if(this.isWeb&&typeof t.scheme=="string"&&typeof t.path=="string")return S.Uri.from({scheme:t.scheme,authority:t.authority||"",path:t.path||"",query:t.query||"",fragment:t.fragment||""});if(typeof t.fsPath=="string"&&t.fsPath.length>0)return S.Uri.file(t.fsPath);if(typeof t.path=="string"&&t.path.length>0)return this.isWeb&&typeof t.scheme=="string"&&t.scheme!=="file"?S.Uri.from({scheme:t.scheme,authority:t.authority||"",path:t.path,query:t.query||"",fragment:t.fragment||""}):S.Uri.file(t.path);if(typeof t.href=="string"&&t.href.length>0)return S.Uri.parse(t.href);if(typeof t.scheme=="string")return S.Uri.from({scheme:t.scheme,authority:t.authority||"",path:t.path||t.fsPath||"",query:t.query||"",fragment:t.fragment||""});if(typeof t.toString=="function")try{let r=t.toString(!0);if(r&&r!=="[object Object]")return S.Uri.parse(r)}catch{let r=t.toString();if(r&&r!=="[object Object]")return S.Uri.parse(r)}}throw new Error(`Unsupported target type: ${typeof t}`)}async stat(t){let r=this.j(t);if(!this.isWeb&&v&&!r)return v.stat(this.q(t));let n=this.O(t),i=await S.workspace.fs.stat(n),a=_n(i);return{...a,mtime:a.mtimeMs===null?Q(i.mtime):new Date(a.mtimeMs),ctime:a.ctimeMs===null?Q(i.ctime):new Date(a.ctimeMs),birthtime:a.ctimeMs===null?Q(i.ctime):new Date(a.ctimeMs),isFile:()=>i.type===S.FileType.File,isDirectory:()=>i.type===S.FileType.Directory}}async readFile(t,r="utf8"){let n=this.j(t);if(!this.isWeb&&v&&!n)return v.readFile(this.q(t),r);let i=this.O(t),a=await S.workspace.fs.readFile(i);return r===null||r==="binary"?a:new TextDecoder(r).decode(a)}async writeFile(t,r,n="utf8"){let i=this.q(t);try{let a=this.j(t);if(!this.isWeb&&v&&!a)return v.writeFile(i,r,n);let o=this.O(t),s=typeof r=="string"?new TextEncoder().encode(r):r;await S.workspace.fs.writeFile(o,s)}catch(a){this.ht("write file",i,a)}}async mkdir(t,r={recursive:!0}){let n=this.q(t);try{let i=this.j(t);if(!this.isWeb&&v&&!i)return v.mkdir(n,r);let a=this.O(t);await S.workspace.fs.createDirectory(a)}catch(i){this.ht("create directory",n,i)}}async readdir(t,r={withFileTypes:!1}){let n=this.j(t);if(!this.isWeb&&v&&!n)return v.readdir(this.q(t),r);let i=this.O(t),a=await S.workspace.fs.readDirectory(i);return r.withFileTypes?a.map(([o,s])=>({name:o,isDirectory:()=>s===S.FileType.Directory,isFile:()=>s===S.FileType.File})):a.map(([o])=>o)}async delete(t,r={recursive:!1}){let n=this.j(t);if(!this.isWeb&&v&&!n){let a=this.q(t);return r.recursive?v.rm?v.rm(a,r):v.rmdir(a,r):v.unlink(a)}let i=this.O(t);await S.workspace.fs.delete(i,r)}async exists(t){try{return await this.stat(t),!0}catch{return!1}}async ensureDirectory(t){let r=gn(this.q(t));await this.mkdir(r,{recursive:!0})}ht(t,r,n){throw yn(n)?new mn(pn.FILE_PERMISSION_DENIED,`Permission denied while attempting to ${t}`,{path:r,code:n.code}):n}},wn=new _e;xt.exports={FileSystemAdapter:_e,fileSystem:wn}});var I=_((ma,It)=>{var ee=typeof process<"u"&&process.env?process.env:{},kn=12e4,Dn=1e4,Cn=1440*60*1e3,Sn=2,Tn=["Ja","Fe","Mr","Ap","My","Jn","Jl","Au","Se","Oc","No","De"],vn=Number(ee.EXPLORER_DATES_DECORATION_POOL_SIZE||2048),Fn=Number(ee.EXPLORER_DATES_FLYWEIGHT_CACHE_SIZE||4096),An=Number(ee.EXPLORER_DATES_WORKSPACE_BALANCED_THRESHOLD||15e3),Rn=Number(ee.EXPLORER_DATES_WORKSPACE_LARGE_THRESHOLD||25e4),Mt=Number(ee.EXPLORER_DATES_WORKSPACE_EXTREME_THRESHOLD||4e5),Pn=Number(ee.EXPLORER_DATES_WORKSPACE_SCAN_MAX_RESULTS||Math.min(Mt+1,50001)),xn={ADVANCED_CACHE:"explorerDates.advancedCache",ADVANCED_CACHE_METADATA:"explorerDates.advancedCacheMetadata",TEMPLATE_STORE:"explorerDates.templates",WEB_GIT_NOTICE:"explorerDates.webGitNotice"},Mn="explorerDatesChunks",In="__explorerDatesChunks";It.exports={DEFAULT_CACHE_TIMEOUT:kn,DEFAULT_MAX_CACHE_SIZE:Dn,DEFAULT_PERSISTENT_CACHE_TTL:Cn,DEFAULT_DECORATION_POOL_SIZE:vn,DEFAULT_FLYWEIGHT_CACHE_SIZE:Fn,MAX_BADGE_LENGTH:Sn,MONTH_ABBREVIATIONS:Tn,WORKSPACE_SCALE_BALANCED_THRESHOLD:An,WORKSPACE_SCALE_LARGE_THRESHOLD:Rn,WORKSPACE_SCALE_EXTREME_THRESHOLD:Mt,WORKSPACE_SCAN_MAX_RESULTS:Pn,GLOBAL_STATE_KEYS:xn,WEB_CHUNK_GLOBAL_KEY:Mn,LEGACY_WEB_CHUNK_GLOBAL_KEY:In}});var Be=_((pa,Lt)=>{var{MAX_BADGE_LENGTH:Wt}=I();function Wn(e=0,t="auto"){let r=typeof e=="number"&&!Number.isNaN(e)?e:0;if(t==="bytes")return`~${r}B`;let n=r/1024;if(t==="kb")return`~${n.toFixed(1)}K`;let i=n/1024;return t==="mb"?`~${i.toFixed(1)}M`:r<1024?`~${r}B`:n<1024?`~${Math.round(n)}K`:`~${i.toFixed(1)}M`}function Ln(e){if(e)return e.length>Wt?e.substring(0,Wt):e}Lt.exports={formatFileSize:Wn,trimBadge:Ln}});var q=_((ya,Ot)=>{var te="__explorerDatesLogger",re=class{constructor(){this.we=null}ke(t,r){if(this.we&&typeof this.we[t]=="function")try{return this.we[t](...r)}catch{}switch(t){case"debug":break;case"info":break;case"warn":break;case"error":break;default:break}}debug(...t){return this.ke("debug",t)}info(...t){return this.ke("info",t)}warn(...t){return this.ke("warn",t)}error(...t){return this.ke("error",t)}Zr(t){this.we=t}};function On(){return typeof global<"u"?(global[te]||(global[te]=new re),global[te]):typeof globalThis<"u"?(globalThis[te]||(globalThis[te]=new re),globalThis[te]):(Ke||(Ke=new re),Ke)}var je=class extends re{},Ke=null;Ot.exports={Logger:je,getLogger:On}});var Ve=_((exports,module)=>{var{getLogger}=q(),env=typeof process<"u"&&process.env?process.env:{};function createFallbackVscodeMinimal(){return{workspace:{workspaceFolders:[],getConfiguration:()=>({get:()=>{},async update(){},inspect:()=>({defaultValue:void 0,globalValue:void 0,workspaceValue:void 0,workspaceFolderValue:void 0})})},ConfigurationTarget:{Global:1,Workspace:2,WorkspaceFolder:3}}}function resolveVscodeMinimal(){try{return require("vscode")}catch{return createFallbackVscodeMinimal()}}var MinimalSettingsCoordinator=class{constructor(t={}){this.qt=t.defaultSection||"explorerDates",this.De=new Map,this.dt=new Map,this.Jr=Number(env.EXPLORER_DATES_LOCK_WAIT_WARN_MS||1e3),this._logger=getLogger()}zt(t,r){let i=(this.De.get(t)||Promise.resolve()).then(()=>r()),a=i.catch(()=>{});return this.De.set(t,a),i.finally(()=>{this.De.get(t)===a&&this.De.delete(t)}),i}ze(t,r){return resolveVscodeMinimal().workspace.getConfiguration(t||void 0,r)}se(t,r){let n=r||this.qt;return n?t.startsWith(`${n}.`)?{section:n,key:t.slice(n.length+1),fullKey:t}:t.includes(".")?{section:void 0,key:t,fullKey:t}:{section:n,key:t,fullKey:`${n}.${t}`}:{section:void 0,key:t,fullKey:t}}async updateSetting(t,r,n={}){return this.zt(this.se(t,n.section).fullKey,async()=>{let i=this.se(t,n.section),a=this.ze(i.section,n.resource);try{let o=this.Ut(n.scope,n.resource);return await a.update(i.key,r,o),{key:i.fullKey,updated:!0}}catch(o){try{this._logger.warn(`Configuration update failed for ${i.fullKey}: ${o&&o.message}`)}catch{}return{key:i.fullKey,updated:!1,error:o}}})}async applySettings(t,r={}){let n=Array.isArray(t)?t:Object.entries(t).map(([o,s])=>({key:o,value:s})),i=[];for(let o of n)try{i.push(await this.updateSetting(o.key,o.value,r))}catch(s){i.push({key:this.se(o.key,r.section).fullKey,updated:!1,error:s})}let a=i.filter(o=>o&&o.error);if(a.length>0){let o=a.map(c=>`${c.key}: ${c.error&&c.error.message?c.error.message:String(c.error)}`),s=new Error(`Failed to apply ${a.length} setting(s): ${o.join("; ")}`);throw s.details=a,s}return i}Ut(t,r){return t&&t!=="auto"?this.Ht(t)||resolveVscodeMinimal().ConfigurationTarget.Workspace:r?resolveVscodeMinimal().ConfigurationTarget.WorkspaceFolder:resolveVscodeMinimal().workspace.workspaceFolders&&resolveVscodeMinimal().workspace.workspaceFolders.length>0?resolveVscodeMinimal().ConfigurationTarget.Workspace:resolveVscodeMinimal().ConfigurationTarget.Global}Ht(t){switch(t){case"user":return resolveVscodeMinimal().ConfigurationTarget.Global;case"workspace":return resolveVscodeMinimal().ConfigurationTarget.Workspace;case"workspaceFolder":return resolveVscodeMinimal().ConfigurationTarget.WorkspaceFolder;default:return}}getValue(t,r={}){let{section:n,resource:i}=r||{},a=this.se(t,n);return this.ze(a.section,i).get(a.key)}inspect(t,r={}){let{section:n,resource:i}=r||{},a=this.se(t,n);return this.ze(a.section,i).inspect(a.key)}async clearSetting(t,r={}){return this.updateSetting(t,void 0,r)}getLockWaitStats(){let t={};for(let[r,n]of this.dt.entries())t[r]={...n};return t}resetLockWaitStats(){this.dt.clear()}},cachedCoordinator=null;function getSettingsCoordinator(options){if(!cachedCoordinator||options&&options.forceNew){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=null;try{e=dynamicRequire("../chunks/settings-coordinator-impl-chunk")}catch{}try{e||(e=dynamicRequire("../chunks/settingsCoordinator-impl-chunk"))}catch{}if(e&&typeof e.createSettingsCoordinatorImpl=="function")return cachedCoordinator=e.createSettingsCoordinatorImpl(options),cachedCoordinator}}catch{}try{let{WEB_CHUNK_GLOBAL_KEY:e,LEGACY_WEB_CHUNK_GLOBAL_KEY:t}=I(),r=typeof globalThis<"u"&&(globalThis[e]||globalThis[t])||null;if(r&&r.settingsCoordinatorImpl&&typeof r.settingsCoordinatorImpl.createSettingsCoordinatorImpl=="function")return cachedCoordinator=r.settingsCoordinatorImpl.createSettingsCoordinatorImpl(options),cachedCoordinator}catch{}cachedCoordinator=new MinimalSettingsCoordinator(options)}return cachedCoordinator}module.exports={getSettingsCoordinator,MinimalSettingsCoordinator}});var Ze=_((ba,Ut)=>{var{normalizePath:Ge,getUriPath:Nn}=ce(),{getLogger:qn}=q(),le=typeof process<"u"&&process.env?process.env:{},zn=qn(),ue=240,Xe=255,Nt=/[\x00-\x1f\x7f<>:"|?*]/g,Un=/[\x00-\x1f\x7f<>:"|?*]/,Hn=[/\.\./,/\.\.[\\/]/,/[\\/]\.\./,/^\.\.$/,/^\.\.[\\/]/,/[\\/]\.\.$/],qt=new Set(["CON","PRN","AUX","NUL","COM1","COM2","COM3","COM4","COM5","COM6","COM7","COM8","COM9","LPT1","LPT2","LPT3","LPT4","LPT5","LPT6","LPT7","LPT8","LPT9"]),zt=new Set([".exe",".scr",".bat",".cmd",".pif",".vbs",".js",".jar",".com",".msi",".dll",".dmg",".pkg",".deb",".rpm"]),$n=new Set([".js",".jsx",".ts",".tsx",".mjs",".cjs",".py",".rb",".rs",".go",".php",".java",".kt",".swift",".cs",".c",".cpp",".h",".hpp",".html",".css",".scss",".less",".json",".jsonc",".md",".mdx",".txt",".sh",".bash",".yml",".yaml"]),Bn=()=>le.EXPLORER_DATES_TEST_MODE==="1"||le.NODE_ENV==="test"||le.VSCODE_TEST==="1"?"test":le.EXPLORER_DATES_DEV_MODE==="1"||le.NODE_ENV==="development"?"development":"production",ne=class{static hasPathTraversal(t){let r=this.V(t);if(!r||typeof r!="string")return!1;let n=Ge(r);return Hn.some(i=>i.test(n))}static hasDangerousChars(t){let r=this.V(t);return!r||typeof r!="string"?!1:Un.test(r)}static isWindowsReservedName(t){if(!t||typeof t!="string")return!1;let r=t.split(".")[0].toUpperCase();return qt.has(r)}static isSuspiciousExtension(t,r={}){let{workspaceContext:n=!0}=r;if(!t||typeof t!="string")return!1;let i=t.toLowerCase(),a=i.startsWith(".")?i:`.${i}`;return n&&$n.has(a)?!1:zt.has(a)}static isPathTooLong(t){let r=this.V(t);return!r||typeof r!="string"?!1:r.length>ue}static isFilenameTooLong(t){return!t||typeof t!="string"?!1:t.length>Xe}static validatePath(t,r={}){let{allowSuspiciousExtensions:n=!1,allowWindowsReservedNames:i=!1,strictLength:a=!0,workspaceContext:o=!0}=r,s=this.V(t),c=[],u=[];if(!s||typeof s!="string")return{isValid:!1,path:s,issues:["Invalid or empty path"],warnings:[],isSafe:!1};this.hasPathTraversal(s)&&c.push("Path contains directory traversal attempts"),this.hasDangerousChars(s)&&c.push("Path contains dangerous characters"),a&&this.isPathTooLong(s)&&c.push(`Path exceeds maximum length (${ue})`);let l=s.split(/[/\\]/).pop()||"";a&&this.isFilenameTooLong(l)&&c.push(`Filename exceeds maximum length (${Xe})`),!i&&this.isWindowsReservedName(l)&&u.push("Filename is a Windows reserved name");let d=l.includes(".")?l.split(".").pop():"";return!n&&this.isSuspiciousExtension(d,{workspaceContext:o})&&u.push("File extension is potentially suspicious"),{isValid:c.length===0,path:s,filename:l,extension:d,issues:c,warnings:u,isSafe:c.length===0&&u.length===0}}static sanitizePath(t,r={}){let{replacementChar:n="_",preserveExtension:i=!0}=r,a=this.V(t);if(!a||typeof a!="string")return"";a=a.replace(/\x00/g,"");let o=a.startsWith("/"),s=Ge(a).split("/").filter(Boolean),c=[];for(let u of s){if(u===".."){c.length>0&&c.pop();continue}u!=="."&&c.push(u)}if(a=(o?"/":"")+c.join("/"),a=a.replace(Nt,n),i){let u=a.split("/"),l=u[u.length-1];if(l&&this.isWindowsReservedName(l)){let d=l.split(".");d[0]=d[0]+"_safe",u[u.length-1]=d.join("."),a=u.join("/")}}return a.length>ue&&(a=a.substring(0,ue),zn.warn("Path truncated due to length:",a)),a}static isWithinBoundaries(t,r=[]){let n=this.V(t);if(!n||!Array.isArray(r)||r.length===0)return!1;let i=n.split("/").filter(Boolean),a=[];for(let s of i)s===".."?a.length>0&&a.pop():s!=="."&&a.push(s);let o="/"+a.join("/");return r.some(s=>{let c=Ge(s);return o.startsWith(c)})}static validateRegexPattern(t){if(!t||typeof t!="string")return{isValid:!1,issue:"Invalid pattern"};let r=[/\([^)]*\+[^)]*\)\+/,/\([^)]*\*[^)]*\)\*/,/\([^)]*\+[^)]*\)\*/,/\([^)]*\*[^)]*\)\+/,/\+.*\*|{\d+,}.*\*/,/\([^|]*\|[^)]*\)\*/];for(let n of r)if(n.test(t))return{isValid:!1,issue:"Pattern may cause catastrophic backtracking (ReDoS)"};try{return new RegExp(t),{isValid:!0}}catch(n){return{isValid:!1,issue:`Invalid regex syntax: ${n.message}`}}}static V(t){if(!t)return"";if(typeof t=="string")return t;try{return Nn(t)}catch{return String(t)}}},Ye=class{static validateFileUri(t,r=[]){if(!t||typeof t!="object")return{isValid:!1,issue:"Invalid URI object"};if(t.scheme!=="file"&&t.scheme!=="vscode-vfs")return{isValid:!1,issue:`Unsupported URI scheme: ${t.scheme}`};let n=ne.validatePath(t);return n.isValid?r.length>0&&!ne.isWithinBoundaries(t,r)?{isValid:!1,issue:"Path is outside allowed workspace boundaries"}:{isValid:!0,warnings:n.warnings}:{isValid:!1,issue:`Path validation failed: ${n.issues.join(", ")}`}}static validateExclusionPatterns(t){if(!Array.isArray(t))return{isValid:!1,issue:"Patterns must be an array"};let r=[],n=[];for(let i of t){if(typeof i!="string"){n.push(`Invalid pattern type: ${typeof i}`);continue}let a=i.replace(/\./g,"\\.").replace(/\*/g,".*").replace(/\?/g,"."),o=ne.validateRegexPattern(a);r.push({pattern:i,isValid:o.isValid,issue:o.issue}),o.isValid||n.push(`Pattern "${i}": ${o.issue}`)}return{isValid:n.length===0,results:r,issues:n}}};Ut.exports={SecurityValidator:ne,SecureFileOperations:Ye,detectSecurityEnvironment:Bn,MAX_SAFE_PATH_LENGTH:ue,MAX_SAFE_FILENAME_LENGTH:Xe,DANGEROUS_PATH_CHARS:Nt,WINDOWS_RESERVED_NAMES:Array.from(qt),SUSPICIOUS_EXTENSIONS:Array.from(zt)}});var he=_((_a,Kt)=>{var $t=typeof process<"u"&&process.env?process.env:{},Ht="[ExplorerDates][WebDiag]",Je="__explorerDatesWebDiagnostics",Ee;function Kn(){try{let e=require("vscode");return e?.env?.uiKind===e?.UIKind?.Web}catch{return $t.VSCODE_WEB==="true"}}function P(){return Ee!==void 0||(Ee=$t.EXPLORER_DATES_WEB_DIAG==="1"||Kn()),Ee}function Bt(){return{enabled:P(),logs:[],logOnce:new Set,commandsRegistered:new Set,commandsInvoked:[],errors:[],chunkLoads:[],provider:{created:!1,registered:!1,hydrated:!1,decorationCalls:0,refreshCalls:0,lastEvent:null}}}var jn=Bt();function x(){return typeof globalThis<"u"?(globalThis[Je]||(globalThis[Je]=Bt()),globalThis[Je]):jn}function Vn(e){try{return JSON.stringify(e)}catch{return String(e)}}function W(e,t,r){if(!P())return;let n=x(),i={ts:new Date().toISOString(),level:e,message:t,meta:r||null};n.logs.push(i),n.logs.length>400&&n.logs.shift();let a=r?`${Ht} ${t} ${Vn(r)}`:`${Ht} ${t}`,o=console[e]||console.info;try{o(a)}catch{}}function Gn(e,t,r,n){if(!P())return;let i=x();i.logOnce.has(e)||(i.logOnce.add(e),W(t,r,n))}function Xn(e){if(!P())return;x().commandsRegistered.add(e),W("info","Command registered",{commandId:e})}function Yn(e){if(!P())return;x().commandsInvoked.push({commandId:e,ts:Date.now()}),W("info","Command invoked",{commandId:e})}function Zn(e,t,r){P()&&(t?W("info","Command completed",{commandId:e}):(W("error","Command failed",{commandId:e,error:r?.message,stack:r?.stack}),x().errors.push({commandId:e,error:r?.message,stack:r?.stack})))}function Jn(e,t,r){if(!P())return;x().chunkLoads.push({chunkName:e,stage:t,ts:Date.now(),error:r?r.message||String(r):null}),W(r?"warn":"info",`Chunk ${t}`,{chunkName:e,error:r?.message})}function Qn(e,t){if(!P())return;let r=x();r.provider.lastEvent={event:e,ts:Date.now(),meta:t||null},e==="created"&&(r.provider.created=!0),e==="registered"&&(r.provider.registered=!0),e==="hydrated"&&(r.provider.hydrated=!0),W("info",`Provider ${e}`,t)}function ei(){if(!P())return;let e=x();e.provider.decorationCalls+=1,e.provider.decorationCalls<=3&&W("info","Decoration request observed",{count:e.provider.decorationCalls})}function ti(){if(!P())return;let e=x();e.provider.refreshCalls+=1}Kt.exports={isWebDiagnosticsEnabled:P,getWebDiagnosticsState:x,diagLog:W,diagLogOnce:Gn,recordCommandRegistration:Xn,recordCommandInvocation:Yn,recordCommandResult:Zn,recordChunkEvent:Jn,recordProviderEvent:Qn,recordDecorationCall:ei,recordRefreshCall:ti}});var nt=_((Ea,Jt)=>{var we=require("vscode"),{normalizePath:tt,getRelativePath:ri}=ce(),{diagLogOnce:ni}=he(),{normalizeTimestamp:de,resourceIdentity:ii}=He(),ai={unknown:0,github:1,git:2,fs:3},et={low:1,medium:2,high:3};function L(e,t,r){try{return e?.get?e.get(t,r):r}catch{return r}}function oi(e){return{nowMinutes:Number(L(e,"freshnessBucketMinutesNow",60))||60,todayHours:Number(L(e,"freshnessBucketHoursToday",24))||24,twoDays:Number(L(e,"freshnessBucketDaysTwo",2))||2,oneWeek:Number(L(e,"freshnessBucketDaysWeek",7))||7}}function jt(e,t){if(!Number.isFinite(e)||e<0)return"unknown";let r=t.nowMinutes*60*1e3,n=t.todayHours*60*60*1e3,i=t.twoDays*24*60*60*1e3,a=t.oneWeek*24*60*60*1e3;return e<=r?"now":e<=n?"today":e<=i?"2d":e<=a?"1w":"stale"}function Vt(e){switch(e){case"now":return"now";case"today":return"today";case"2d":return"2d";case"1w":return"1w";case"stale":return"stale";default:return"unknown"}}function Gt(e){switch(e){case"fs":return"Filesystem";case"git":return"Git";case"github":return"GitHub";default:return"Unknown"}}function Xt(e){switch(e){case"now":return"!!";case"today":return"T";case"2d":return"2d";case"1w":return"1w";case"stale":return"~~";default:return"?"}}function si(e,t,r){let n=!!L(r,"freshnessShowUnknown",!0);if(e==="unknown"||t==="unknown")return n?"?":null;let i=Xt(e);return!i||i==="unknown"?n?"?":null:i}function ci(e){try{let t=de(e);return t===null?null:new Date(t).toISOString().replace("T"," ").replace("Z","")}catch{return null}}function li(e,t){if(!e)return;let r=L(t,"freshnessTooltipVerbosity","full"),n=L(t,"badge.sourceLabelMode","auto"),i=[],a=Vt(e.bucket),o=Gt(e.source);if(i.push(`Freshness: ${a}`),e.exactTimestamp){let u=ci(e.exactTimestamp);u&&i.push(`Exact time: ${u}`)}let s=e.source==="fs"&&e.confidence==="high";return(n==="always"||n!=="never"&&!s||n!=="never"&&r==="full")&&i.push(`Source: ${o}`),e.author&&i.push(`Author: ${e.author}`),e.message&&i.push(`Message: ${e.message}`),i.push(`Confidence: ${e.confidence}`),e.reason&&r==="full"&&i.push(`Reason: ${e.reason}`),i.join(` -`)}function ui(e,t,r){if(!Number.isFinite(t)||t<=0)return!1;let n=300*1e3;if(t>r+n)return!1;if(e==="file")return!0;let i=r-t,a=300*1e3,o=365*24*60*60*1e3*10;return!(io)}function rt({source:e,timestampMs:t,author:r,message:n,confidence:i,reason:a},o){if(!Number.isFinite(t))return{bucket:"unknown",source:e||"unknown",confidence:i||"low",reason:a||"no-timestamp"};let s=oi(o),c=Date.now()-t;return{bucket:jt(c,s),source:e,exactTimestamp:t,author:r||void 0,message:n||void 0,confidence:i,reason:a||void 0}}async function hi(e,t,r){let n=e?.scheme||"file",i=!!L(r,"freshnessAllowVirtualFs",!1);if(n!=="file"&&!i)return{freshness:null,reason:"fs-virtual-disabled"};let a=t?.mtimeMs??de(t?.mtime),o=Date.now();return Number.isFinite(a)?ui(n,a,o)?{freshness:rt({source:"fs",timestampMs:a,confidence:n==="file"?"high":"medium",reason:n==="file"?"fs-trust-high":"fs-trust-medium"},r),reason:null}:{freshness:null,reason:"fs-mtime-untrusted"}:{freshness:null,reason:"fs-mtime-missing"}}async function di(e,t,r){if(!t||typeof t.Ue!="function")return{freshness:null,reason:"git-provider-missing"};let n;try{n=await t.Ue(e)}catch(o){return{freshness:null,reason:`git-error:${o?.message||"unknown"}`}}let i=de(n?.timestampMs);return i===null||i<=0?{freshness:null,reason:n?.error||"git-no-timestamp"}:{freshness:rt({source:"git",timestampMs:i,author:n?.author||void 0,message:n?.message||void 0,confidence:"medium",reason:"git-recency"},r),reason:null}}function Yt(e){if(!e||(e.scheme||"")!=="github")return null;let n=tt(e.path||"").replace(/^\/+/,"").split("/").filter(Boolean);if(n.length<2)return null;let i=n[0],a=n[1],o=n.slice(2).join("/"),s=new URLSearchParams(e.query||""),c=s.get("ref")||s.get("branch")||"HEAD";return{owner:i,repo:a,filePath:o,ref:c}}function fi(e){let t=(e||"").indexOf("+");if(t===-1)return"HEAD";let r=e.slice(t+1);try{let n;if(typeof TextDecoder<"u"){let o=new Uint8Array(r.length/2);for(let s=0;s0)return a}catch{}return"HEAD"}function Zt(e){if(!e||e.scheme!=="vscode-vfs"||!String(e.authority||"").startsWith("github"))return null;let r=tt(e.path||"").replace(/^\/+/,"").split("/").filter(Boolean);if(r.length<2)return null;let n=r[0],i=r[1],a=r.slice(2).join("/"),o=fi(e.authority||"");return{owner:n,repo:i,filePath:a,ref:o}}function gi(e){try{let t=we.workspace.workspaceFolders||[];for(let r of t){let n=r?.uri?.scheme;if(n==="github"){let i=Yt(r.uri);if(!i)continue;let a=ri(r.uri.path||"",e?.path||"");return{...i,filePath:a}}if(n==="vscode-vfs"&&String(r?.uri?.authority||"").startsWith("github")){let i=Zt(r.uri);if(!i)continue;let o=tt(e?.path||"").replace(/^\/+/,"").split("/").filter(Boolean).slice(2).join("/");if(!o)continue;return{...i,filePath:o}}}}catch{}return null}async function mi(e,t){let r=Yt(e)||Zt(e)||gi(e);if(!r||!r.owner||!r.repo||!r.filePath)return{freshness:null,reason:"github-context-missing"};let n=`${r.owner}/${r.repo}@${r.ref}:${r.filePath}`,i=`https://api.github.com/repos/${r.owner}/${r.repo}/commits?path=${encodeURIComponent(r.filePath)}&sha=${encodeURIComponent(r.ref)}&per_page=1`,a={Accept:"application/vnd.github+json"};try{let y=we?.authentication&&typeof we.authentication.getSession=="function"?await we.authentication.getSession("github",["repo"],{createIfNone:!1}):null;y?.accessToken&&(a.Authorization=`Bearer ${y.accessToken}`)}catch{}if(typeof fetch!="function")return{freshness:null,reason:"github-fetch-unavailable"};let o;try{o=await fetch(i,{headers:a})}catch(y){return{freshness:null,reason:`github-fetch-error:${y?.message||"unknown"}`}}if(!o||!o.ok)return{freshness:null,reason:o?`github-http-${o.status}`:"github-no-response"};let s;try{s=await o.json()}catch{return{freshness:null,reason:"github-json-error"}}let c=Array.isArray(s)?s[0]:null,u=c?.commit||null,l=u?.author?.name||c?.author?.login||void 0,d=u?.message||void 0,h=de(u?.author?.date);return h===null?{freshness:null,reason:"github-no-timestamp"}:{freshness:rt({source:"github",timestampMs:h,author:l,message:d,confidence:"medium",reason:"github-commit"},t),reason:null,cacheKey:n}}function Qe(e,t){return!e||e==="auto"?!0:e==="unknown"?t==="unknown":e===t}async function pi({uri:e,stat:t,provider:r,config:n,workspaceKind:i}){let a=e?.scheme||"file",o=L(n,"freshnessSourcePolicy","auto"),s=[],c=Date.now();if(Qe(o,"fs")){let u=await hi(e,t,n);if(s.push({source:"fs",reason:u.reason||null}),u.freshness)return{...u.freshness,attempts:s}}if(Qe(o,"git")){let u=await di(e,r,n);if(s.push({source:"git",reason:u.reason||null}),u.freshness)return{...u.freshness,attempts:s}}if(Qe(o,"github")){let u=await mi(e,n);if(s.push({source:"github",reason:u.reason||null,cacheKey:u.cacheKey||null}),u.freshness)return{...u.freshness,attempts:s}}return ni("freshness-unknown","info","No trustworthy freshness source available",{scheme:a,workspaceKind:i||"unknown",attempts:s}),{bucket:"unknown",source:"unknown",confidence:"low",reason:"no-source",attempts:s,resolvedAt:c}}function yi(e,t){if(!e)return-1;if(!t)return 1;let r=et[e.confidence]||0,n=et[t.confidence]||0;if(r!==n)return r-n;let i=Number(e.exactTimestamp||0),a=Number(t.exactTimestamp||0);return i-a}Jt.exports={resolveFreshness:pi,formatBadge:si,formatTooltip:li,bucketFromAge:jt,formatBucketLabel:Vt,formatBadgeAge:Xt,formatSourceLabel:Gt,compareFreshness:yi,SOURCE_RANK:ai,CONFIDENCE_RANK:et,normalizeTimestamp:de,resourceIdentity:ii}});var er=_((wa,Qt)=>{var{normalizePath:bi}=ce(),ke="__root__",it=class{constructor(){this.g=new Map,this.P=new Map,this.o=0}get size(){return this.o}get bucketCount(){return this.g.size}clear(){this.g.clear(),this.P.clear(),this.o=0}get(t){if(!t)return;let r=this.P.get(t);if(!r)return;let n=this.g.get(r);if(!n){this.P.delete(t);return}return n.lastAccess=Date.now(),n.entries.get(t)}set(t,r,n={}){if(!t)return;let i=n.folderKey||this.$t(t),a=this.Bt(i),o=a.entries.has(t);a.entries.set(t,r),a.lastAccess=Date.now(),o||this.o++,this.P.set(t,i)}delete(t){if(!t)return!1;let r=this.P.get(t);if(!r)return!1;let n=this.g.get(r);if(!n)return this.P.delete(t),!1;let i=n.entries.delete(t);return i&&(this.o=Math.max(0,this.o-1),n.entries.size===0&&this.g.delete(r)),this.P.delete(t),i}*entries(){for(let t of this.g.values())yield*t.entries.entries()}*keys(){for(let t of this.g.values())yield*t.entries.keys()}*values(){for(let t of this.g.values())yield*t.entries.values()}[Symbol.iterator](){return this.entries()}enforceLimit(t=0,r){if(!t||this.o<=t)return 0;let n=Math.max(Math.floor(t*.2),this.o-t,1),i=0,a=Array.from(this.g.entries()).map(([o,s])=>({folderKey:o,bucket:s}));a.sort((o,s)=>(o.bucket.lastAccess||0)-(s.bucket.lastAccess||0));for(let{folderKey:o,bucket:s}of a){if(i>=n)break;if(!s.entries.size){this.g.delete(o);continue}let c=s.entries.size,u=n-i;if(c<=u){i+=this.Kt(o,s);continue}let l=Array.from(s.entries.entries());l.sort((h,g)=>(h[1].timestamp||0)-(g[1].timestamp||0));let d=Math.min(u,Math.max(1,Math.ceil(c*.5)));for(let h=0;h0&&r&&r.debug(`Hierarchical cache eviction removed ${i} entries (${this.o} remaining)`),i}Bt(t){return this.g.has(t)||this.g.set(t,{entries:new Map,lastAccess:Date.now()}),this.g.get(t)}Kt(t,r){if(!r)return 0;let n=r.entries.size;for(let i of r.entries.keys())this.P.delete(i);return this.g.delete(t),this.o=Math.max(0,this.o-n),n}$t(t){if(!t||typeof t!="string")return ke;let r=bi(t);if(!r)return ke;let n=r.lastIndexOf("/");return n===-1?ke:r.slice(0,n)||ke}};Qt.exports={HierarchicalDecorationCache:it}});var rr=_((ka,tr)=>{async function _i(e,t,r){try{if(e.G)return e._logger?.debug?.(`\u26A0\uFE0F Cache bypass enabled - recalculating decoration for: ${r}`),null;if(e._advancedCache)try{let i=await e._advancedCache.get(t);if(i)return e._metrics.cacheHits++,e._logger?.debug?.(`\u{1F9E0} Advanced cache hit for: ${r}`),i}catch(i){e._logger?.debug?.(`Advanced cache error: ${i.message}`)}if(!e.e||typeof e.e.get!="function")return e._logger?.debug?.("getCachedDecoration: no memory cache available, falling back"),null;let n=e.e.get(t);if(n){if(n.forceRefresh){try{e.e.delete(t)}catch{}e._logger?.debug?.(`\u{1F6AB} Memory cache bypassed (forced refresh) for: ${r}`)}else if(Date.now()-n.timestampe.l)try{e.e.enforceLimit(e.l,e._logger)}catch{}let a={decoration:r,timestamp:Date.now()};i&&(a.uri=i);try{e.e.set(t,a)}catch{}try{typeof e.ce=="function"&&e.ce()}catch(o){e._logger?.debug?.("monitorCachePressure from store failed",o)}if(e._advancedCache)try{await e._advancedCache.set(t,r,{ttl:e.C}),e._logger?.debug?.(`\u{1F9E0} Stored in advanced cache: ${n}`)}catch(o){e._logger?.debug?.(`Failed to store in advanced cache: ${o.message}`)}try{typeof e.le=="function"&&e.le()}catch(o){e._logger?.debug?.("maybeExtendCacheTimeout from store failed",o)}}catch(a){e._logger?.debug?.("storeDecorationInCache failed",a)}}function wi(){class e{constructor(){this.r=null,this.n=new Map,this.o=0,this.He=!1,this.hydrateInBackground()}get size(){return this.r?this.r.size:this.o}get bucketCount(){return this.r?this.r.bucketCount:0}clear(){if(this.r)return this.r.clear();this.n.clear(),this.o=0}get(r){return this.r?this.r.get(r):this.n.get(r)}set(r,n,i={}){if(this.r)return this.r.set(r,n,i);let a=this.n.has(r);this.n.set(r,n),a||this.o++}delete(r){if(this.r)return this.r.delete(r);let n=this.n.delete(r);return n&&(this.o=Math.max(0,this.o-1)),n}*entries(){if(this.r){yield*this.r.entries();return}yield*this.n.entries()}*keys(){if(this.r){yield*this.r.keys();return}yield*this.n.keys()}*values(){if(this.r){yield*this.r.values();return}yield*this.n.values()}[Symbol.iterator](){return this.entries()}enforceLimit(r=0,n){if(this.r)return this.r.enforceLimit(r,n);if(!r||this.o<=r)return 0;let i=0,o=Array.from(this.n.keys()).slice(0,Math.max(1,Math.ceil(this.o-r)));for(let s of o)this.n.delete(s),i++,this.o=Math.max(0,this.o-1);return i>0&&n&&n.debug(`LazyHierarchical cache eviction removed ${i} entries`),i}async jt(){if(!this.He){this.He=!0;try{let n=(await Promise.resolve().then(()=>R(er()))).HierarchicalDecorationCache;this.r=new n;for(let[i,a]of this.n.entries())this.r.set(i,a);this.n=null}catch{this.He=!1}}}hydrateInBackground(){this.jt().catch(()=>{})}}return new e}tr.exports={getCachedDecoration:_i,storeDecorationInCache:Ei,createLazyHierarchicalDecorationCache:wi}});var nr=_((Da,ki)=>{ki.exports={migrationDetailsTitle:"Explorer Dates - Settings Migration",migrationDetailsHeader:"Settings Migration",gitAttributionWarning:"Explorer Dates: Git attribution badges are unavailable on VS Code for Web. Time-based decorations remain available.",noOverridesToDocument:"No overrides to document.",overrideNotesHeader:"# Explorer Dates Override Notes\\n\\n",analysisCommandsDisabled:"Explorer Dates analysis commands are disabled. Shortcuts like Ctrl+Shift+M/H/A will not work until you enable explorerDates.enableAnalysisCommands.",analysisEnableNow:"Enable Now",analysisEnablePartially:"Enable partially succeeded. Update explorerDates.enableAnalysisCommands in remaining workspace folders manually.",analysisEnableFailed:"Enable failed: update explorerDates.enableAnalysisCommands in workspace settings.",workspaceTemplatesDisabled:"Workspace templates are disabled. Enable explorerDates.enableWorkspaceTemplates to use this command.",workspaceTemplatesDisabledSave:"Workspace templates are disabled. Enable explorerDates.enableWorkspaceTemplates to save templates.",enterTemplateName:"Enter template name",enterTemplateDescription:"Enter description (optional)",failedToOpenTemplateManager:"Failed to open template manager: {0}",failedToSaveTemplate:"Failed to save template: {0}",reportingDisabled:"Reporting features are disabled. Enable explorerDates.enableExportReporting to generate reports.",failedToGenerateReport:"Failed to generate report: {0}",apiDisabled:"Explorer Dates API is disabled via settings.",failedToShowApiInformation:"Failed to show API information: {0}",failedToShowWorkspaceActivity:"Failed to show workspace activity: {0}",failedToShowPerformanceAnalytics:"Failed to show performance analytics: {0}",failedToShowCacheDebugInfo:"Failed to show cache debug info: {0}",noWorkspaceFolderOpen:"No workspace folder open",now:"now",minutes:"m",hours:"h",days:"d",weeks:"w",months:"mo",years:"y",justNow:"just now",minutesAgo:"{0} minute(s) ago",hoursAgo:"{0} hour(s) ago",daysAgo:"{0} day(s) ago",lastModified:"Last modified",refreshSuccess:"Date decorations refreshed",activationError:"Explorer Dates failed to activate",errorAccessingFile:"Error accessing file for decoration",clearTelemetryPrompt:"This will permanently delete locally-stored telemetry events for Explorer Dates. This action cannot be undone. Proceed?",clearTelemetryConfirm:"Clear Telemetry",clearTelemetryCancel:"Cancel",reportFormatDisabled:'Report format "{0}" is disabled. Allowed formats: {1}',reportDownloadTriggered:"Report download triggered in browser",selectReportTimeRangePlaceholder:"Select report time range",selectReportFormatPlaceholder:"Select report format",cleanupNoDeprecated:"\u2139\uFE0F No deprecated settings found to clean up.",showMigrationHistoryNoHistory:"No migration history found.",resetConfirmation:"This will reset all Explorer Dates settings to their default values. Are you sure?",resetConfirm:"Reset Settings",resetCancel:"Cancel",resetSuccess:"\u2705 Reset {0} settings to defaults.",validateNoIssues:"\u2705 Configuration is valid - no issues found!",validateFoundIssues:"Found {0} configuration issue(s). Would you like to see details?",validateShowDetails:"Show Details",validateDismiss:"Dismiss",migrationNotificationMessage:"Explorer Dates updated {0} setting(s) for compatibility. Your configuration has been preserved.",migrationViewChanges:"View Changes",migrationOpenSettings:"Open Settings",deprecatedPrompt:"Explorer Dates found {0} deprecated setting(s). Would you like to remove them?",deprecatedClean:"Clean Up Now",deprecatedKeep:"Keep Old Settings",deprecatedAskLater:"Ask Later",showFileLocation:"Show File Location",teamConfigCorrupted:"Explorer Dates team configuration file appears to be corrupted. Please check the .explorer-dates-profiles.json file or restore from backup.",appliedFromTeamProfile:'Applied {0} Explorer Dates settings from team profile "{1}".',documentedOverrides:"Documented Explorer Dates overrides in .vscode/explorer-dates-overrides.md",teamConfigMissingProfile:"Team configuration is missing an active profile.",ephemeralStorageEnospc:"Explorer Dates team configuration could not be saved because the disk is full.",ephemeralStorageGeneric:"Explorer Dates team configuration could not be saved because the workspace is read-only or permissions are restricted.",ephemeralStorageSuffix:"Changes will be kept in memory until VS Code restarts, so they may be lost."}});var ir=_((Ca,Di)=>{Di.exports={migrationDetailsTitle:"Explorer Dates - Migraci\xF3n de configuraci\xF3n",migrationDetailsHeader:"Migraci\xF3n de configuraci\xF3n",gitAttributionWarning:"Explorer Dates: Las insignias de atribuci\xF3n de Git no est\xE1n disponibles en VS Code para la Web. Las decoraciones basadas en tiempo siguen disponibles.",noOverridesToDocument:"No hay anulaciones para documentar.",overrideNotesHeader:"# Notas de anulaci\xF3n de Explorer Dates\\n\\n",analysisCommandsDisabled:"Los comandos de an\xE1lisis de Explorer Dates est\xE1n deshabilitados. Atajos como Ctrl+Shift+M/H/A no funcionar\xE1n hasta que habilites explorerDates.enableAnalysisCommands.",analysisEnableNow:"Habilitar ahora",analysisEnablePartially:"La activaci\xF3n se complet\xF3 parcialmente. Actualiza explorerDates.enableAnalysisCommands manualmente en las carpetas de trabajo restantes.",analysisEnableFailed:"Error al habilitar: actualiza explorerDates.enableAnalysisCommands en la configuraci\xF3n del espacio de trabajo.",workspaceTemplatesDisabled:"Las plantillas de espacio de trabajo est\xE1n deshabilitadas. Habilita explorerDates.enableWorkspaceTemplates para usar este comando.",workspaceTemplatesDisabledSave:"Las plantillas de espacio de trabajo est\xE1n deshabilitadas. Habilita explorerDates.enableWorkspaceTemplates para guardar plantillas.",enterTemplateName:"Introduce el nombre de la plantilla",enterTemplateDescription:"Introduce la descripci\xF3n (opcional)",failedToOpenTemplateManager:"Error al abrir el administrador de plantillas: {0}",failedToSaveTemplate:"Error al guardar la plantilla: {0}",reportingDisabled:"Las funciones de informes est\xE1n deshabilitadas. Habilita explorerDates.enableExportReporting para generar informes.",failedToGenerateReport:"Error al generar el informe: {0}",apiDisabled:"La API de Explorer Dates est\xE1 deshabilitada mediante la configuraci\xF3n.",failedToShowApiInformation:"Error al mostrar la informaci\xF3n de la API: {0}",failedToShowWorkspaceActivity:"Error al mostrar la actividad del espacio de trabajo: {0}",failedToShowPerformanceAnalytics:"Error al mostrar los an\xE1lisis de rendimiento: {0}",failedToShowCacheDebugInfo:"Error al mostrar la informaci\xF3n de depuraci\xF3n de la cach\xE9: {0}",noWorkspaceFolderOpen:"No hay ninguna carpeta de espacio de trabajo abierta",now:"ahora",minutes:"m",hours:"h",days:"d",weeks:"sem",months:"mes",years:"a",justNow:"justo ahora",minutesAgo:"hace {0} minuto(s)",hoursAgo:"hace {0} hora(s)",daysAgo:"hace {0} d\xEDa(s)",lastModified:"\xDAltima modificaci\xF3n",refreshSuccess:"Decoraciones de fecha actualizadas",activationError:"Explorer Dates no se pudo activar",errorAccessingFile:"Error al acceder al archivo para la decoraci\xF3n",clearTelemetryPrompt:"Esto eliminar\xE1 permanentemente los eventos de telemetr\xEDa almacenados localmente para Explorer Dates. Esta acci\xF3n no se puede deshacer. \xBFContinuar?",clearTelemetryConfirm:"Borrar telemetr\xEDa",clearTelemetryCancel:"Cancelar",reportFormatDisabled:'El formato de informe "{0}" est\xE1 deshabilitado. Formatos permitidos: {1}',reportDownloadTriggered:"Descarga del informe iniciada en el navegador",selectReportTimeRangePlaceholder:"Seleccionar rango de tiempo del informe",selectReportFormatPlaceholder:"Seleccionar formato del informe",cleanupNoDeprecated:"\u2139\uFE0F No se encontraron configuraciones obsoletas para limpiar.",showMigrationHistoryNoHistory:"No se encontr\xF3 historial de migraci\xF3n.",resetConfirmation:"Esto restablecer\xE1 todas las configuraciones de Explorer Dates a sus valores predeterminados. \xBFEst\xE1s seguro?",resetConfirm:"Restablecer configuraciones",resetCancel:"Cancelar",resetSuccess:"\u2705 Se restablecieron {0} configuraciones a los valores predeterminados.",validateNoIssues:"\u2705 La configuraci\xF3n es v\xE1lida - no se encontraron problemas.",validateFoundIssues:"Se encontraron {0} problema(s) de configuraci\xF3n. \xBFDeseas ver los detalles?",validateShowDetails:"Mostrar detalles",validateDismiss:"Descartar",migrationNotificationMessage:"Explorer Dates actualiz\xF3 {0} configuraci\xF3n(es) por compatibilidad. Tu configuraci\xF3n se ha conservado.",migrationViewChanges:"Ver cambios",migrationOpenSettings:"Abrir configuraciones",deprecatedPrompt:"Explorer Dates encontr\xF3 {0} configuraci\xF3n(es) obsoleta(s). \xBFDeseas eliminarlas?",deprecatedClean:"Limpiar ahora",deprecatedKeep:"Mantener configuraciones antiguas",deprecatedAskLater:"Preguntar m\xE1s tarde",showFileLocation:"Mostrar ubicaci\xF3n del archivo",teamConfigCorrupted:"El archivo de configuraci\xF3n de equipo de Explorer Dates parece estar da\xF1ado. Verifica el archivo .explorer-dates-profiles.json o restaura desde una copia de seguridad.",appliedFromTeamProfile:'Se aplicaron {0} configuraciones de Explorer Dates desde el perfil de equipo "{1}".',documentedOverrides:"Se documentaron las anulaciones de Explorer Dates en .vscode/explorer-dates-overrides.md",teamConfigMissingProfile:"La configuraci\xF3n del equipo no tiene un perfil activo.",ephemeralStorageEnospc:"No se pudo guardar la configuraci\xF3n de equipo de Explorer Dates porque el disco est\xE1 lleno.",ephemeralStorageGeneric:"No se pudo guardar la configuraci\xF3n de equipo de Explorer Dates porque el espacio de trabajo es de solo lectura o los permisos est\xE1n restringidos.",ephemeralStorageSuffix:"Los cambios se mantendr\xE1n en memoria hasta que VS Code se reinicie, por lo que podr\xEDan perderse."}});var ar=_((Sa,Ci)=>{Ci.exports={migrationDetailsTitle:"Explorer Dates - Migration des param\xE8tres",migrationDetailsHeader:"Migration des param\xE8tres",gitAttributionWarning:"Explorer Dates : Les badges d\u2019attribution Git ne sont pas disponibles sur VS Code pour le Web. Les d\xE9corations bas\xE9es sur le temps restent disponibles.",noOverridesToDocument:"Aucune substitution \xE0 documenter.",overrideNotesHeader:"# Notes de substitution Explorer Dates\\n\\n",analysisCommandsDisabled:"Les commandes d\u2019analyse Explorer Dates sont d\xE9sactiv\xE9es. Les raccourcis comme Ctrl+Shift+M/H/A ne fonctionneront pas tant que vous n\u2019aurez pas activ\xE9 explorerDates.enableAnalysisCommands.",analysisEnableNow:"Activer maintenant",analysisEnablePartially:"L\u2019activation a partiellement r\xE9ussi. Mettez \xE0 jour explorerDates.enableAnalysisCommands manuellement dans les dossiers d\u2019espace de travail restants.",analysisEnableFailed:"\xC9chec de l\u2019activation : mettez \xE0 jour explorerDates.enableAnalysisCommands dans les param\xE8tres de l\u2019espace de travail.",workspaceTemplatesDisabled:"Les mod\xE8les d\u2019espace de travail sont d\xE9sactiv\xE9s. Activez explorerDates.enableWorkspaceTemplates pour utiliser cette commande.",workspaceTemplatesDisabledSave:"Les mod\xE8les d\u2019espace de travail sont d\xE9sactiv\xE9s. Activez explorerDates.enableWorkspaceTemplates pour enregistrer des mod\xE8les.",enterTemplateName:"Entrez le nom du mod\xE8le",enterTemplateDescription:"Entrez la description (facultatif)",failedToOpenTemplateManager:"Impossible d\u2019ouvrir le gestionnaire de mod\xE8les : {0}",failedToSaveTemplate:"Impossible d\u2019enregistrer le mod\xE8le : {0}",reportingDisabled:"Les fonctionnalit\xE9s de rapport sont d\xE9sactiv\xE9es. Activez explorerDates.enableExportReporting pour g\xE9n\xE9rer des rapports.",failedToGenerateReport:"Impossible de g\xE9n\xE9rer le rapport : {0}",apiDisabled:"L\u2019API Explorer Dates est d\xE9sactiv\xE9e via les param\xE8tres.",failedToShowApiInformation:"Impossible d\u2019afficher les informations de l\u2019API : {0}",failedToShowWorkspaceActivity:"Impossible d\u2019afficher l\u2019activit\xE9 de l\u2019espace de travail : {0}",failedToShowPerformanceAnalytics:"Impossible d\u2019afficher les analyses de performance : {0}",failedToShowCacheDebugInfo:"Impossible d\u2019afficher les informations de d\xE9bogage du cache : {0}",noWorkspaceFolderOpen:"Aucun dossier d\u2019espace de travail ouvert",now:"maintenant",minutes:"min",hours:"h",days:"j",weeks:"sem",months:"mois",years:"an",justNow:"\xE0 l\u2019instant",minutesAgo:"il y a {0} minute(s)",hoursAgo:"il y a {0} heure(s)",daysAgo:"il y a {0} jour(s)",lastModified:"Derni\xE8re modification",refreshSuccess:"D\xE9corations de date actualis\xE9es",activationError:"\xC9chec de l\u2019activation d\u2019Explorer Dates",errorAccessingFile:"Erreur lors de l\u2019acc\xE8s au fichier pour la d\xE9coration",clearTelemetryPrompt:"Cela supprimera d\xE9finitivement les \xE9v\xE9nements de t\xE9l\xE9m\xE9trie stock\xE9s localement pour Explorer Dates. Cette action est irr\xE9versible. Continuer ?",clearTelemetryConfirm:"Effacer la t\xE9l\xE9m\xE9trie",clearTelemetryCancel:"Annuler",reportFormatDisabled:'Le format de rapport "{0}" est d\xE9sactiv\xE9. Formats autoris\xE9s : {1}',reportDownloadTriggered:"T\xE9l\xE9chargement du rapport lanc\xE9 dans le navigateur",selectReportTimeRangePlaceholder:"S\xE9lectionner la p\xE9riode du rapport",selectReportFormatPlaceholder:"S\xE9lectionner le format du rapport",cleanupNoDeprecated:"\u2139\uFE0F Aucun param\xE8tre obsol\xE8te \xE0 nettoyer.",showMigrationHistoryNoHistory:"Aucun historique de migration trouv\xE9.",resetConfirmation:"Cela r\xE9initialisera tous les param\xE8tres Explorer Dates \xE0 leurs valeurs par d\xE9faut. \xCAtes-vous s\xFBr ?",resetConfirm:"R\xE9initialiser les param\xE8tres",resetCancel:"Annuler",resetSuccess:"\u2705 {0} param\xE8tres ont \xE9t\xE9 r\xE9initialis\xE9s aux valeurs par d\xE9faut.",validateNoIssues:"\u2705 La configuration est valide - aucun probl\xE8me d\xE9tect\xE9 !",validateFoundIssues:"{0} probl\xE8me(s) de configuration trouv\xE9(s). Voulez-vous voir les d\xE9tails ?",validateShowDetails:"Afficher les d\xE9tails",validateDismiss:"Ignorer",migrationNotificationMessage:"Explorer Dates a mis \xE0 jour {0} param\xE8tre(s) pour compatibilit\xE9. Votre configuration a \xE9t\xE9 conserv\xE9e.",migrationViewChanges:"Voir les modifications",migrationOpenSettings:"Ouvrir les param\xE8tres",deprecatedPrompt:"Explorer Dates a trouv\xE9 {0} param\xE8tre(s) obsol\xE8te(s). Voulez-vous les supprimer ?",deprecatedClean:"Nettoyer maintenant",deprecatedKeep:"Conserver les anciens param\xE8tres",deprecatedAskLater:"Demander plus tard",showFileLocation:"Afficher l\u2019emplacement du fichier",teamConfigCorrupted:"Le fichier de configuration d\u2019\xE9quipe Explorer Dates semble corrompu. V\xE9rifiez le fichier .explorer-dates-profiles.json ou restaurez-le depuis une sauvegarde.",appliedFromTeamProfile:'{0} param\xE8tres Explorer Dates appliqu\xE9s depuis le profil d\u2019\xE9quipe "{1}".',documentedOverrides:"Substitutions Explorer Dates document\xE9es dans .vscode/explorer-dates-overrides.md",teamConfigMissingProfile:"La configuration d\u2019\xE9quipe ne contient aucun profil actif.",ephemeralStorageEnospc:"Impossible d\u2019enregistrer la configuration d\u2019\xE9quipe Explorer Dates car le disque est plein.",ephemeralStorageGeneric:"Impossible d\u2019enregistrer la configuration d\u2019\xE9quipe Explorer Dates car l\u2019espace de travail est en lecture seule ou les permissions sont restreintes.",ephemeralStorageSuffix:"Les modifications seront conserv\xE9es en m\xE9moire jusqu\u2019au red\xE9marrage de VS Code et pourraient \xEAtre perdues."}});var or=_((Ta,Si)=>{Si.exports={migrationDetailsTitle:"Explorer Dates - Einstellungen migrieren",migrationDetailsHeader:"Einstellungen migrieren",gitAttributionWarning:"Explorer Dates: Git-Zuordnungsabzeichen sind in VS Code f\xFCr das Web nicht verf\xFCgbar. Zeitbasierte Hervorhebungen bleiben verf\xFCgbar.",noOverridesToDocument:"Keine \xDCberschreibungen zu dokumentieren.",overrideNotesHeader:"# Explorer Dates \xDCberschreibungsnotizen\\n\\n",analysisCommandsDisabled:"Die Analysebefehle von Explorer Dates sind deaktiviert. Tastenkombinationen wie Ctrl+Shift+M/H/A funktionieren nicht, bis explorerDates.enableAnalysisCommands aktiviert ist.",analysisEnableNow:"Jetzt aktivieren",analysisEnablePartially:"Die Aktivierung war teilweise erfolgreich. Aktualisieren Sie explorerDates.enableAnalysisCommands manuell in den verbleibenden Workspace-Ordnern.",analysisEnableFailed:"Aktivierung fehlgeschlagen: Aktualisieren Sie explorerDates.enableAnalysisCommands in den Workspace-Einstellungen.",workspaceTemplatesDisabled:"Workspace-Vorlagen sind deaktiviert. Aktivieren Sie explorerDates.enableWorkspaceTemplates, um diesen Befehl zu verwenden.",workspaceTemplatesDisabledSave:"Workspace-Vorlagen sind deaktiviert. Aktivieren Sie explorerDates.enableWorkspaceTemplates, um Vorlagen zu speichern.",enterTemplateName:"Vorlagenname eingeben",enterTemplateDescription:"Beschreibung eingeben (optional)",failedToOpenTemplateManager:"Fehler beim \xD6ffnen des Vorlagenmanagers: {0}",failedToSaveTemplate:"Fehler beim Speichern der Vorlage: {0}",reportingDisabled:"Berichtsfunktionen sind deaktiviert. Aktivieren Sie explorerDates.enableExportReporting, um Berichte zu erstellen.",failedToGenerateReport:"Fehler beim Erstellen des Berichts: {0}",apiDisabled:"Die Explorer Dates API ist in den Einstellungen deaktiviert.",failedToShowApiInformation:"Fehler beim Anzeigen der API-Informationen: {0}",failedToShowWorkspaceActivity:"Fehler beim Anzeigen der Workspace-Aktivit\xE4t: {0}",failedToShowPerformanceAnalytics:"Fehler beim Anzeigen der Leistungsanalysen: {0}",failedToShowCacheDebugInfo:"Fehler beim Anzeigen der Cache-Debug-Informationen: {0}",noWorkspaceFolderOpen:"Kein Workspace-Ordner ge\xF6ffnet",now:"jetzt",minutes:"Min",hours:"Std",days:"T",weeks:"W",months:"Mon",years:"J",justNow:"gerade eben",minutesAgo:"vor {0} Minute(n)",hoursAgo:"vor {0} Stunde(n)",daysAgo:"vor {0} Tag(en)",lastModified:"Zuletzt ge\xE4ndert",refreshSuccess:"Datumsdekorationen aktualisiert",activationError:"Explorer Dates konnte nicht aktiviert werden",errorAccessingFile:"Fehler beim Zugriff auf Datei f\xFCr Dekoration",clearTelemetryPrompt:"Dies l\xF6scht dauerhaft lokal gespeicherte Telemetrieereignisse f\xFCr Explorer Dates. Diese Aktion kann nicht r\xFCckg\xE4ngig gemacht werden. Fortfahren?",clearTelemetryConfirm:"Telemetrie l\xF6schen",clearTelemetryCancel:"Abbrechen",reportFormatDisabled:'Berichtsformat "{0}" ist deaktiviert. Zul\xE4ssige Formate: {1}',reportDownloadTriggered:"Bericht-Download im Browser gestartet",selectReportTimeRangePlaceholder:"Berichtszeitraum ausw\xE4hlen",selectReportFormatPlaceholder:"Berichtsformat ausw\xE4hlen",cleanupNoDeprecated:"\u2139\uFE0F Keine veralteten Einstellungen zum Bereinigen gefunden.",showMigrationHistoryNoHistory:"Kein Migrationsverlauf gefunden.",resetConfirmation:"Dies setzt alle Explorer Dates Einstellungen auf ihre Standardwerte zur\xFCck. Sind Sie sicher?",resetConfirm:"Einstellungen zur\xFCcksetzen",resetCancel:"Abbrechen",resetSuccess:"\u2705 {0} Einstellungen auf Standard zur\xFCckgesetzt.",validateNoIssues:"\u2705 Konfiguration ist g\xFCltig - keine Probleme gefunden!",validateFoundIssues:"{0} Konfigurationsproblem(e) gefunden. M\xF6chten Sie Details sehen?",validateShowDetails:"Details anzeigen",validateDismiss:"Verwerfen",migrationNotificationMessage:"Explorer Dates hat {0} Einstellung(en) zur Kompatibilit\xE4t aktualisiert. Ihre Konfiguration wurde beibehalten.",migrationViewChanges:"\xC4nderungen anzeigen",migrationOpenSettings:"Einstellungen \xF6ffnen",deprecatedPrompt:"Explorer Dates hat {0} veraltete Einstellung(en) gefunden. M\xF6chten Sie sie entfernen?",deprecatedClean:"Jetzt bereinigen",deprecatedKeep:"Alte Einstellungen behalten",deprecatedAskLater:"Sp\xE4ter fragen",showFileLocation:"Dateispeicherort anzeigen",teamConfigCorrupted:"Die Teamkonfigurationsdatei von Explorer Dates scheint besch\xE4digt zu sein. Bitte pr\xFCfen Sie die Datei .explorer-dates-profiles.json oder stellen Sie sie aus einem Backup wieder her.",appliedFromTeamProfile:'{0} Explorer Dates-Einstellungen aus dem Teamprofil "{1}" angewendet.',documentedOverrides:"Explorer Dates-\xDCberschreibungen in .vscode/explorer-dates-overrides.md dokumentiert",teamConfigMissingProfile:"Der Teamkonfiguration fehlt ein aktives Profil.",ephemeralStorageEnospc:"Die Teamkonfiguration von Explorer Dates konnte nicht gespeichert werden, da die Festplatte voll ist.",ephemeralStorageGeneric:"Die Teamkonfiguration von Explorer Dates konnte nicht gespeichert werden, da der Workspace schreibgesch\xFCtzt ist oder die Berechtigungen eingeschr\xE4nkt sind.",ephemeralStorageSuffix:"\xC4nderungen werden im Speicher behalten, bis VS Code neu startet, und k\xF6nnen verloren gehen."}});var sr=_((va,Ti)=>{Ti.exports={migrationDetailsTitle:"Explorer Dates - \u8A2D\u5B9A\u306E\u79FB\u884C",migrationDetailsHeader:"\u8A2D\u5B9A\u306E\u79FB\u884C",gitAttributionWarning:"Explorer Dates: Git \u306E\u5E30\u5C5E\u30D0\u30C3\u30B8\u306F VS Code for Web \u3067\u306F\u5229\u7528\u3067\u304D\u307E\u305B\u3093\u3002\u6642\u9593\u30D9\u30FC\u30B9\u306E\u88C5\u98FE\u306F\u5F15\u304D\u7D9A\u304D\u5229\u7528\u3067\u304D\u307E\u3059\u3002",noOverridesToDocument:"\u30C9\u30AD\u30E5\u30E1\u30F3\u30C8\u5316\u3059\u308B\u4E0A\u66F8\u304D\u306F\u3042\u308A\u307E\u305B\u3093\u3002",overrideNotesHeader:"# Explorer Dates \u4E0A\u66F8\u304D\u30E1\u30E2\\n\\n",analysisCommandsDisabled:"Explorer Dates \u306E\u5206\u6790\u30B3\u30DE\u30F3\u30C9\u306F\u7121\u52B9\u306B\u306A\u3063\u3066\u3044\u307E\u3059\u3002Ctrl+Shift+M/H/A \u306A\u3069\u306E\u30B7\u30E7\u30FC\u30C8\u30AB\u30C3\u30C8\u306F explorerDates.enableAnalysisCommands \u3092\u6709\u52B9\u306B\u3059\u308B\u307E\u3067\u6A5F\u80FD\u3057\u307E\u305B\u3093\u3002",analysisEnableNow:"\u4ECA\u3059\u3050\u6709\u52B9\u306B\u3059\u308B",analysisEnablePartially:"\u6709\u52B9\u5316\u306F\u4E00\u90E8\u6210\u529F\u3057\u307E\u3057\u305F\u3002\u6B8B\u308A\u306E\u30EF\u30FC\u30AF\u30B9\u30DA\u30FC\u30B9\u30D5\u30A9\u30EB\u30C0\u30FC\u3067 explorerDates.enableAnalysisCommands \u3092\u624B\u52D5\u3067\u66F4\u65B0\u3057\u3066\u304F\u3060\u3055\u3044\u3002",analysisEnableFailed:"\u6709\u52B9\u5316\u306B\u5931\u6557\u3057\u307E\u3057\u305F\uFF1A\u30EF\u30FC\u30AF\u30B9\u30DA\u30FC\u30B9\u8A2D\u5B9A\u3067 explorerDates.enableAnalysisCommands \u3092\u66F4\u65B0\u3057\u3066\u304F\u3060\u3055\u3044\u3002",workspaceTemplatesDisabled:"\u30EF\u30FC\u30AF\u30B9\u30DA\u30FC\u30B9\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8\u306F\u7121\u52B9\u306B\u306A\u3063\u3066\u3044\u307E\u3059\u3002\u3053\u306E\u30B3\u30DE\u30F3\u30C9\u3092\u4F7F\u7528\u3059\u308B\u306B\u306F explorerDates.enableWorkspaceTemplates \u3092\u6709\u52B9\u306B\u3057\u3066\u304F\u3060\u3055\u3044\u3002",workspaceTemplatesDisabledSave:"\u30EF\u30FC\u30AF\u30B9\u30DA\u30FC\u30B9\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8\u306F\u7121\u52B9\u306B\u306A\u3063\u3066\u3044\u307E\u3059\u3002\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8\u3092\u4FDD\u5B58\u3059\u308B\u306B\u306F explorerDates.enableWorkspaceTemplates \u3092\u6709\u52B9\u306B\u3057\u3066\u304F\u3060\u3055\u3044\u3002",enterTemplateName:"\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8\u540D\u3092\u5165\u529B",enterTemplateDescription:"\u8AAC\u660E\u3092\u5165\u529B\uFF08\u4EFB\u610F\uFF09",failedToOpenTemplateManager:"\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8\u30DE\u30CD\u30FC\u30B8\u30E3\u30FC\u3092\u958B\u3051\u307E\u305B\u3093\u3067\u3057\u305F: {0}",failedToSaveTemplate:"\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8\u306E\u4FDD\u5B58\u306B\u5931\u6557\u3057\u307E\u3057\u305F: {0}",reportingDisabled:"\u30EC\u30DD\u30FC\u30C8\u6A5F\u80FD\u306F\u7121\u52B9\u306B\u306A\u3063\u3066\u3044\u307E\u3059\u3002\u30EC\u30DD\u30FC\u30C8\u3092\u751F\u6210\u3059\u308B\u306B\u306F explorerDates.enableExportReporting \u3092\u6709\u52B9\u306B\u3057\u3066\u304F\u3060\u3055\u3044\u3002",failedToGenerateReport:"\u30EC\u30DD\u30FC\u30C8\u306E\u751F\u6210\u306B\u5931\u6557\u3057\u307E\u3057\u305F: {0}",apiDisabled:"Explorer Dates API \u306F\u8A2D\u5B9A\u3067\u7121\u52B9\u306B\u306A\u3063\u3066\u3044\u307E\u3059\u3002",failedToShowApiInformation:"API \u60C5\u5831\u306E\u8868\u793A\u306B\u5931\u6557\u3057\u307E\u3057\u305F: {0}",failedToShowWorkspaceActivity:"\u30EF\u30FC\u30AF\u30B9\u30DA\u30FC\u30B9\u306E\u30A2\u30AF\u30C6\u30A3\u30D3\u30C6\u30A3\u3092\u8868\u793A\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F: {0}",failedToShowPerformanceAnalytics:"\u30D1\u30D5\u30A9\u30FC\u30DE\u30F3\u30B9\u5206\u6790\u3092\u8868\u793A\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F: {0}",failedToShowCacheDebugInfo:"\u30AD\u30E3\u30C3\u30B7\u30E5\u306E\u30C7\u30D0\u30C3\u30B0\u60C5\u5831\u3092\u8868\u793A\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F: {0}",noWorkspaceFolderOpen:"\u30EF\u30FC\u30AF\u30B9\u30DA\u30FC\u30B9\u30D5\u30A9\u30EB\u30C0\u30FC\u304C\u958B\u304B\u308C\u3066\u3044\u307E\u305B\u3093",now:"\u4ECA",minutes:"\u5206",hours:"\u6642\u9593",days:"\u65E5",weeks:"\u9031",months:"\u304B\u6708",years:"\u5E74",justNow:"\u305F\u3063\u305F\u4ECA",minutesAgo:"{0} \u5206\u524D",hoursAgo:"{0} \u6642\u9593\u524D",daysAgo:"{0} \u65E5\u524D",lastModified:"\u6700\u7D42\u66F4\u65B0",refreshSuccess:"\u65E5\u4ED8\u88C5\u98FE\u3092\u66F4\u65B0\u3057\u307E\u3057\u305F",activationError:"Explorer Dates \u306E\u6709\u52B9\u5316\u306B\u5931\u6557\u3057\u307E\u3057\u305F",errorAccessingFile:"\u88C5\u98FE\u7528\u30D5\u30A1\u30A4\u30EB\u3078\u306E\u30A2\u30AF\u30BB\u30B9\u30A8\u30E9\u30FC",clearTelemetryPrompt:"Explorer Dates \u306E\u30ED\u30FC\u30AB\u30EB\u4FDD\u5B58\u30C6\u30EC\u30E1\u30C8\u30EA\u30A4\u30D9\u30F3\u30C8\u3092\u5B8C\u5168\u306B\u524A\u9664\u3057\u307E\u3059\u3002\u3053\u306E\u64CD\u4F5C\u306F\u5143\u306B\u623B\u305B\u307E\u305B\u3093\u3002\u7D9A\u884C\u3057\u307E\u3059\u304B\uFF1F",clearTelemetryConfirm:"\u30C6\u30EC\u30E1\u30C8\u30EA\u3092\u524A\u9664",clearTelemetryCancel:"\u30AD\u30E3\u30F3\u30BB\u30EB",reportFormatDisabled:"\u30EC\u30DD\u30FC\u30C8\u5F62\u5F0F\u300C{0}\u300D\u306F\u7121\u52B9\u3067\u3059\u3002\u8A31\u53EF\u3055\u308C\u3066\u3044\u308B\u5F62\u5F0F: {1}",reportDownloadTriggered:"\u30D6\u30E9\u30A6\u30B6\u3067\u30EC\u30DD\u30FC\u30C8\u306E\u30C0\u30A6\u30F3\u30ED\u30FC\u30C9\u3092\u958B\u59CB\u3057\u307E\u3057\u305F",selectReportTimeRangePlaceholder:"\u30EC\u30DD\u30FC\u30C8\u306E\u671F\u9593\u3092\u9078\u629E",selectReportFormatPlaceholder:"\u30EC\u30DD\u30FC\u30C8\u5F62\u5F0F\u3092\u9078\u629E",cleanupNoDeprecated:"\u2139\uFE0F \u30AF\u30EA\u30FC\u30F3\u30A2\u30C3\u30D7\u3059\u308B\u975E\u63A8\u5968\u8A2D\u5B9A\u306F\u3042\u308A\u307E\u305B\u3093\u3002",showMigrationHistoryNoHistory:"\u79FB\u884C\u5C65\u6B74\u304C\u898B\u3064\u304B\u308A\u307E\u305B\u3093\u3002",resetConfirmation:"Explorer Dates \u306E\u3059\u3079\u3066\u306E\u8A2D\u5B9A\u3092\u65E2\u5B9A\u5024\u306B\u30EA\u30BB\u30C3\u30C8\u3057\u307E\u3059\u3002\u3088\u308D\u3057\u3044\u3067\u3059\u304B\uFF1F",resetConfirm:"\u8A2D\u5B9A\u3092\u30EA\u30BB\u30C3\u30C8",resetCancel:"\u30AD\u30E3\u30F3\u30BB\u30EB",resetSuccess:"\u2705 {0} \u4EF6\u306E\u8A2D\u5B9A\u3092\u65E2\u5B9A\u5024\u306B\u30EA\u30BB\u30C3\u30C8\u3057\u307E\u3057\u305F\u3002",validateNoIssues:"\u2705 \u8A2D\u5B9A\u306F\u6709\u52B9\u3067\u3059 - \u554F\u984C\u306F\u898B\u3064\u304B\u308A\u307E\u305B\u3093\u3067\u3057\u305F\uFF01",validateFoundIssues:"{0} \u4EF6\u306E\u8A2D\u5B9A\u554F\u984C\u304C\u898B\u3064\u304B\u308A\u307E\u3057\u305F\u3002\u8A73\u7D30\u3092\u8868\u793A\u3057\u307E\u3059\u304B\uFF1F",validateShowDetails:"\u8A73\u7D30\u3092\u8868\u793A",validateDismiss:"\u9589\u3058\u308B",migrationNotificationMessage:"Explorer Dates \u306F\u4E92\u63DB\u6027\u306E\u305F\u3081\u306B {0} \u4EF6\u306E\u8A2D\u5B9A\u3092\u66F4\u65B0\u3057\u307E\u3057\u305F\u3002\u8A2D\u5B9A\u306F\u4FDD\u6301\u3055\u308C\u3066\u3044\u307E\u3059\u3002",migrationViewChanges:"\u5909\u66F4\u3092\u8868\u793A",migrationOpenSettings:"\u8A2D\u5B9A\u3092\u958B\u304F",deprecatedPrompt:"Explorer Dates \u306F {0} \u4EF6\u306E\u975E\u63A8\u5968\u8A2D\u5B9A\u3092\u691C\u51FA\u3057\u307E\u3057\u305F\u3002\u524A\u9664\u3057\u307E\u3059\u304B\uFF1F",deprecatedClean:"\u4ECA\u3059\u3050\u30AF\u30EA\u30FC\u30F3\u30A2\u30C3\u30D7",deprecatedKeep:"\u53E4\u3044\u8A2D\u5B9A\u3092\u4FDD\u6301",deprecatedAskLater:"\u5F8C\u3067\u78BA\u8A8D",showFileLocation:"\u30D5\u30A1\u30A4\u30EB\u306E\u5834\u6240\u3092\u8868\u793A",teamConfigCorrupted:"Explorer Dates \u306E\u30C1\u30FC\u30E0\u8A2D\u5B9A\u30D5\u30A1\u30A4\u30EB\u304C\u7834\u640D\u3057\u3066\u3044\u308B\u53EF\u80FD\u6027\u304C\u3042\u308A\u307E\u3059\u3002.explorer-dates-profiles.json \u3092\u78BA\u8A8D\u3059\u308B\u304B\u30D0\u30C3\u30AF\u30A2\u30C3\u30D7\u304B\u3089\u5FA9\u5143\u3057\u3066\u304F\u3060\u3055\u3044\u3002",appliedFromTeamProfile:"\u30C1\u30FC\u30E0\u30D7\u30ED\u30D5\u30A1\u30A4\u30EB\u300C{1}\u300D\u304B\u3089 {0} \u4EF6\u306E Explorer Dates \u8A2D\u5B9A\u3092\u9069\u7528\u3057\u307E\u3057\u305F\u3002",documentedOverrides:".vscode/explorer-dates-overrides.md \u306B Explorer Dates \u306E\u4E0A\u66F8\u304D\u3092\u8A18\u9332\u3057\u307E\u3057\u305F",teamConfigMissingProfile:"\u30C1\u30FC\u30E0\u8A2D\u5B9A\u306B\u30A2\u30AF\u30C6\u30A3\u30D6\u306A\u30D7\u30ED\u30D5\u30A1\u30A4\u30EB\u304C\u3042\u308A\u307E\u305B\u3093\u3002",ephemeralStorageEnospc:"\u30C7\u30A3\u30B9\u30AF\u5BB9\u91CF\u4E0D\u8DB3\u306E\u305F\u3081\u3001Explorer Dates \u306E\u30C1\u30FC\u30E0\u8A2D\u5B9A\u3092\u4FDD\u5B58\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002",ephemeralStorageGeneric:"\u30EF\u30FC\u30AF\u30B9\u30DA\u30FC\u30B9\u304C\u8AAD\u307F\u53D6\u308A\u5C02\u7528\u3001\u307E\u305F\u306F\u6A29\u9650\u304C\u5236\u9650\u3055\u308C\u3066\u3044\u308B\u305F\u3081\u3001Explorer Dates \u306E\u30C1\u30FC\u30E0\u8A2D\u5B9A\u3092\u4FDD\u5B58\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002",ephemeralStorageSuffix:"\u5909\u66F4\u306F VS Code \u304C\u518D\u8D77\u52D5\u3059\u308B\u307E\u3067\u30E1\u30E2\u30EA\u306B\u4FDD\u6301\u3055\u308C\u308B\u305F\u3081\u3001\u5931\u308F\u308C\u308B\u53EF\u80FD\u6027\u304C\u3042\u308A\u307E\u3059\u3002"}});var cr=_((Fa,vi)=>{vi.exports={migrationDetailsTitle:"Explorer Dates - \u8BBE\u7F6E\u8FC1\u79FB",migrationDetailsHeader:"\u8BBE\u7F6E\u8FC1\u79FB",gitAttributionWarning:"Explorer Dates\uFF1AGit \u5F52\u5C5E\u5FBD\u7AE0\u5728 VS Code Web \u7248\u4E2D\u4E0D\u53EF\u7528\u3002\u57FA\u4E8E\u65F6\u95F4\u7684\u88C5\u9970\u4ECD\u7136\u53EF\u7528\u3002",noOverridesToDocument:"\u6CA1\u6709\u9700\u8981\u8BB0\u5F55\u7684\u8986\u76D6\u9879\u3002",overrideNotesHeader:"# Explorer Dates \u8986\u76D6\u8BF4\u660E\\n\\n",analysisCommandsDisabled:"Explorer Dates \u5206\u6790\u547D\u4EE4\u5DF2\u7981\u7528\u3002\u5728\u542F\u7528 explorerDates.enableAnalysisCommands \u4E4B\u524D\uFF0CCtrl+Shift+M/H/A \u7B49\u5FEB\u6377\u952E\u5C06\u65E0\u6CD5\u4F7F\u7528\u3002",analysisEnableNow:"\u7ACB\u5373\u542F\u7528",analysisEnablePartially:"\u542F\u7528\u90E8\u5206\u6210\u529F\u3002\u8BF7\u5728\u5269\u4F59\u7684\u5DE5\u4F5C\u533A\u6587\u4EF6\u5939\u4E2D\u624B\u52A8\u66F4\u65B0 explorerDates.enableAnalysisCommands\u3002",analysisEnableFailed:"\u542F\u7528\u5931\u8D25\uFF1A\u8BF7\u5728\u5DE5\u4F5C\u533A\u8BBE\u7F6E\u4E2D\u66F4\u65B0 explorerDates.enableAnalysisCommands\u3002",workspaceTemplatesDisabled:"\u5DE5\u4F5C\u533A\u6A21\u677F\u5DF2\u7981\u7528\u3002\u542F\u7528 explorerDates.enableWorkspaceTemplates \u4EE5\u4F7F\u7528\u6B64\u547D\u4EE4\u3002",workspaceTemplatesDisabledSave:"\u5DE5\u4F5C\u533A\u6A21\u677F\u5DF2\u7981\u7528\u3002\u542F\u7528 explorerDates.enableWorkspaceTemplates \u4EE5\u4FDD\u5B58\u6A21\u677F\u3002",enterTemplateName:"\u8F93\u5165\u6A21\u677F\u540D\u79F0",enterTemplateDescription:"\u8F93\u5165\u63CF\u8FF0\uFF08\u53EF\u9009\uFF09",failedToOpenTemplateManager:"\u65E0\u6CD5\u6253\u5F00\u6A21\u677F\u7BA1\u7406\u5668\uFF1A{0}",failedToSaveTemplate:"\u4FDD\u5B58\u6A21\u677F\u5931\u8D25\uFF1A{0}",reportingDisabled:"\u62A5\u8868\u529F\u80FD\u5DF2\u7981\u7528\u3002\u542F\u7528 explorerDates.enableExportReporting \u4EE5\u751F\u6210\u62A5\u8868\u3002",failedToGenerateReport:"\u751F\u6210\u62A5\u8868\u5931\u8D25\uFF1A{0}",apiDisabled:"Explorer Dates API \u5DF2\u901A\u8FC7\u8BBE\u7F6E\u7981\u7528\u3002",failedToShowApiInformation:"\u663E\u793A API \u4FE1\u606F\u5931\u8D25\uFF1A{0}",failedToShowWorkspaceActivity:"\u663E\u793A\u5DE5\u4F5C\u533A\u6D3B\u52A8\u5931\u8D25\uFF1A{0}",failedToShowPerformanceAnalytics:"\u663E\u793A\u6027\u80FD\u5206\u6790\u5931\u8D25\uFF1A{0}",failedToShowCacheDebugInfo:"\u663E\u793A\u7F13\u5B58\u8C03\u8BD5\u4FE1\u606F\u5931\u8D25\uFF1A{0}",noWorkspaceFolderOpen:"\u672A\u6253\u5F00\u4EFB\u4F55\u5DE5\u4F5C\u533A\u6587\u4EF6\u5939",now:"\u73B0\u5728",minutes:"\u5206",hours:"\u5C0F\u65F6",days:"\u5929",weeks:"\u5468",months:"\u4E2A\u6708",years:"\u5E74",justNow:"\u521A\u521A",minutesAgo:"{0} \u5206\u949F\u524D",hoursAgo:"{0} \u5C0F\u65F6\u524D",daysAgo:"{0} \u5929\u524D",lastModified:"\u6700\u540E\u4FEE\u6539",refreshSuccess:"\u65E5\u671F\u88C5\u9970\u5DF2\u5237\u65B0",activationError:"Explorer Dates \u542F\u52A8\u5931\u8D25",errorAccessingFile:"\u8BBF\u95EE\u7528\u4E8E\u88C5\u9970\u7684\u6587\u4EF6\u65F6\u51FA\u9519",clearTelemetryPrompt:"\u8FD9\u5C06\u6C38\u4E45\u5220\u9664\u672C\u5730\u5B58\u50A8\u7684 Explorer Dates \u9065\u6D4B\u4E8B\u4EF6\u3002\u6B64\u64CD\u4F5C\u65E0\u6CD5\u64A4\u9500\u3002\u662F\u5426\u7EE7\u7EED\uFF1F",clearTelemetryConfirm:"\u6E05\u9664\u9065\u6D4B",clearTelemetryCancel:"\u53D6\u6D88",reportFormatDisabled:"\u62A5\u8868\u683C\u5F0F\u201C{0}\u201D\u5DF2\u7981\u7528\u3002\u5141\u8BB8\u7684\u683C\u5F0F\uFF1A{1}",reportDownloadTriggered:"\u5DF2\u5728\u6D4F\u89C8\u5668\u4E2D\u89E6\u53D1\u62A5\u8868\u4E0B\u8F7D",selectReportTimeRangePlaceholder:"\u9009\u62E9\u62A5\u8868\u65F6\u95F4\u8303\u56F4",selectReportFormatPlaceholder:"\u9009\u62E9\u62A5\u8868\u683C\u5F0F",cleanupNoDeprecated:"\u2139\uFE0F \u672A\u53D1\u73B0\u9700\u8981\u6E05\u7406\u7684\u5DF2\u5F03\u7528\u8BBE\u7F6E\u3002",showMigrationHistoryNoHistory:"\u672A\u627E\u5230\u8FC1\u79FB\u5386\u53F2\u3002",resetConfirmation:"\u8FD9\u5C06\u628A\u6240\u6709 Explorer Dates \u8BBE\u7F6E\u91CD\u7F6E\u4E3A\u9ED8\u8BA4\u503C\u3002\u786E\u5B9A\u5417\uFF1F",resetConfirm:"\u91CD\u7F6E\u8BBE\u7F6E",resetCancel:"\u53D6\u6D88",resetSuccess:"\u2705 \u5DF2\u5C06 {0} \u9879\u8BBE\u7F6E\u91CD\u7F6E\u4E3A\u9ED8\u8BA4\u503C\u3002",validateNoIssues:"\u2705 \u914D\u7F6E\u6709\u6548 - \u672A\u53D1\u73B0\u95EE\u9898\uFF01",validateFoundIssues:"\u53D1\u73B0 {0} \u4E2A\u914D\u7F6E\u95EE\u9898\u3002\u662F\u5426\u67E5\u770B\u8BE6\u7EC6\u4FE1\u606F\uFF1F",validateShowDetails:"\u663E\u793A\u8BE6\u7EC6\u4FE1\u606F",validateDismiss:"\u5173\u95ED",migrationNotificationMessage:"Explorer Dates \u4E3A\u517C\u5BB9\u6027\u66F4\u65B0\u4E86 {0} \u9879\u8BBE\u7F6E\u3002\u60A8\u7684\u914D\u7F6E\u5DF2\u4FDD\u7559\u3002",migrationViewChanges:"\u67E5\u770B\u66F4\u6539",migrationOpenSettings:"\u6253\u5F00\u8BBE\u7F6E",deprecatedPrompt:"Explorer Dates \u53D1\u73B0 {0} \u4E2A\u5DF2\u5F03\u7528\u8BBE\u7F6E\u3002\u662F\u5426\u5220\u9664\uFF1F",deprecatedClean:"\u7ACB\u5373\u6E05\u7406",deprecatedKeep:"\u4FDD\u7559\u65E7\u8BBE\u7F6E",deprecatedAskLater:"\u7A0D\u540E\u8BE2\u95EE",showFileLocation:"\u663E\u793A\u6587\u4EF6\u4F4D\u7F6E",teamConfigCorrupted:"Explorer Dates \u56E2\u961F\u914D\u7F6E\u6587\u4EF6\u4F3C\u4E4E\u5DF2\u635F\u574F\u3002\u8BF7\u68C0\u67E5 .explorer-dates-profiles.json \u6587\u4EF6\u6216\u4ECE\u5907\u4EFD\u6062\u590D\u3002",appliedFromTeamProfile:"\u5DF2\u4ECE\u56E2\u961F\u914D\u7F6E\u6587\u4EF6\u201C{1}\u201D\u5E94\u7528 {0} \u9879 Explorer Dates \u8BBE\u7F6E\u3002",documentedOverrides:"\u5DF2\u5728 .vscode/explorer-dates-overrides.md \u4E2D\u8BB0\u5F55 Explorer Dates \u8986\u76D6\u9879",teamConfigMissingProfile:"\u56E2\u961F\u914D\u7F6E\u7F3A\u5C11\u6D3B\u52A8\u914D\u7F6E\u6587\u4EF6\u3002",ephemeralStorageEnospc:"\u7531\u4E8E\u78C1\u76D8\u5DF2\u6EE1\uFF0C\u65E0\u6CD5\u4FDD\u5B58 Explorer Dates \u56E2\u961F\u914D\u7F6E\u3002",ephemeralStorageGeneric:"\u7531\u4E8E\u5DE5\u4F5C\u533A\u4E3A\u53EA\u8BFB\u6216\u6743\u9650\u53D7\u9650\uFF0C\u65E0\u6CD5\u4FDD\u5B58 Explorer Dates \u56E2\u961F\u914D\u7F6E\u3002",ephemeralStorageSuffix:"\u66F4\u6539\u5C06\u5728 VS Code \u91CD\u542F\u524D\u4FDD\u5B58\u5728\u5185\u5B58\u4E2D\uFF0C\u56E0\u6B64\u53EF\u80FD\u4F1A\u4E22\u5931\u3002"}});var ur=_((Aa,lr)=>{var j={};j.en=nr();j.es=ir();j.fr=ar();j.de=or();j.ja=sr();j.zh=cr();lr.exports=j});var at=_((Ra,hr)=>{var V=require("vscode"),z={en:{now:"now",minutes:"m",hours:"h",days:"d",weeks:"w",months:"mo",years:"y",justNow:"just now",minutesAgo:e=>`${e} minute${e!==1?"s":""} ago`,hoursAgo:e=>`${e} hour${e!==1?"s":""} ago`,yesterday:"yesterday",daysAgo:e=>`${e} day${e!==1?"s":""} ago`,lastModified:"Last modified",refreshSuccess:"Date decorations refreshed",activationError:"Explorer Dates failed to activate",errorAccessingFile:"Error accessing file for decoration",clearTelemetryPrompt:"This will permanently delete locally-stored telemetry events for Explorer Dates. This action cannot be undone. Proceed?",clearTelemetryConfirm:"Clear Telemetry",clearTelemetryCancel:"Cancel",clearTelemetrySuccess:"\u2705 Explorer Dates telemetry cleared.",migrateChecking:"Checking for settings that need migration...",migrateAllUpToDate:"\u2705 All settings are up to date!",migrateApplied:e=>`\u2705 Explorer Dates maintenance applied: ${e}.`,organizeSettingsResult:e=>`Explorer Dates settings organized: ${e}`,cleanupSuccess:"\u2705 Deprecated settings have been cleaned up!",reportFormatDisabled:(e,t)=>`Report format "${e}" is disabled. Allowed formats: ${t}`,reportSaved:e=>`Report saved to ${e}`,reportGenerateFailed:"Failed to generate report",reportDownloadTriggered:"Report download triggered in browser",selectReportTimeRangePlaceholder:"Select report time range",selectReportFormatPlaceholder:"Select report format",cleanupNoDeprecated:"\u2139\uFE0F No deprecated settings found to clean up.",showMigrationHistoryNoHistory:"No migration history found.",resetConfirmation:"This will reset all Explorer Dates settings to their default values. Are you sure?",migrationDetailsTitle:"Explorer Dates - Settings Migration",migrationDetailsHeader:"Settings Migration",gitAttributionWarning:"Explorer Dates: Git attribution badges are unavailable on VS Code for Web. Time-based decorations remain available.",noOverridesToDocument:"No overrides to document.",overrideNotesHeader:`# Explorer Dates Override Notes +var jr=Object.create;var mt=Object.defineProperty;var Vr=Object.getOwnPropertyDescriptor;var Gr=Object.getOwnPropertyNames;var Xr=Object.getPrototypeOf,Yr=Object.prototype.hasOwnProperty;var _=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var Zr=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Gr(t))!Yr.call(e,i)&&i!==r&&mt(e,i,{get:()=>t[i],enumerable:!(n=Vr(t,i))||n.enumerable});return e};var R=(e,t,r)=>(r=e!=null?jr(Xr(e)):{},Zr(t||!e||!e.__esModule?mt(r,"default",{value:e,enumerable:!0}):r,e));var J=_((ua,yt)=>{var pt=require("vscode");function Jr(){try{let e=pt?.env?.uiKind,t=pt?.UIKind?.Web;return e!==void 0&&t!==void 0&&e===t}catch{return!1}}yt.exports={isWebEnvironment:Jr}});var ce=_((exports,module)=>{var chunk=null;try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){try{chunk=dynamicRequire("../chunks/utils-shared-chunk")}catch{}try{chunk||(chunk=dynamicRequire("./chunks/utils-shared-chunk"))}catch{}try{chunk||(chunk=dynamicRequire("../chunks/path-utils-chunk"))}catch{}try{chunk||(chunk=dynamicRequire("./chunks/path-utils-chunk"))}catch{}}}catch{}if(chunk&&chunk.normalizePath)module.exports={normalizePath:chunk.normalizePath,getFileName:chunk.getFileName,getExtension:chunk.getExtension,getDirectory:chunk.getDirectory,joinPath:chunk.joinPath,getCacheKey:chunk.getCacheKey,getUriPath:chunk.getUriPath,getRelativePath:chunk.getRelativePath};else{let e=function(u=""){return u?u.replace(/\\/g,"/"):""},t=function(u=""){let l=e(u);return l?l.split("/").filter(Boolean):[]},r=function(u=""){let l=t(u);return l.length?l[l.length-1]:""},n=function(u=""){let l=r(u),d=l.lastIndexOf(".");return d<=0?"":l.substring(d).toLowerCase()},i=function(u=""){let l=e(u),d=l.lastIndexOf("/");return d===-1?"":l.substring(0,d)},a=function(...u){return e(u.filter(Boolean).join("/")).replace(/\/+/g,"/")},o=function(u=""){return e(u).toLowerCase()},s=function(u=""){if(!u)return"";if(typeof u=="string")return u;if(typeof u.fsPath=="string"&&u.fsPath.length>0)return u.fsPath;if(typeof u.path=="string"&&u.path.length>0)return u.path;if(typeof u.toString=="function")try{return u.toString(!0)}catch{return u.toString()}return String(u)},c=function(u="",l=""){let d=e(u),h=e(l);return d&&h.startsWith(d)?h.substring(d.length).replace(/^\/+/,""):h};normalizePath=e,getSegments=t,getFileName=r,getExtension=n,getDirectory=i,joinPath=a,getCacheKey=o,getUriPath=s,getRelativePath=c,module.exports={normalizePath:e,getFileName:r,getExtension:n,getDirectory:i,joinPath:a,getCacheKey:o,getUriPath:s,getRelativePath:c}}var normalizePath,getSegments,getFileName,getExtension,getDirectory,joinPath,getCacheKey,getUriPath,getRelativePath});var Et=_((ha,_t)=>{var ye=class extends Error{constructor(t,r,n={}){super(r),this.code=t,this.context=n,this.name="ExtensionError"}},bt={FILE_PERMISSION_DENIED:"FILE_PERMISSION_DENIED",WORKSPACE_TOO_LARGE:"WORKSPACE_TOO_LARGE",CHUNK_LOAD_FAILED:"CHUNK_LOAD_FAILED"};function Qr(e){if(!e)return!1;let t=e.code||e?.name;return["EACCES","EPERM","EROFS","NoPermissions"].includes(t)}var ze=class extends ye{constructor(t,r,n={}){let{recoverable:i=!0,context:a={}}=n;super(bt.CHUNK_LOAD_FAILED,`Failed to load ${t}: ${r}`,{chunkName:t,recoverable:i,...a}),this.name="ChunkLoadError",this.chunkName=t,this.recoverable=i}};function en(e,t,r={}){let n=require("vscode"),{userFacing:i=!0}=r,a=t?.recoverable??!0;i&&!a&&n.window.showErrorMessage(`Explorer Dates: ${e} feature unavailable. Please reinstall or rebuild the extension.`)}_t.exports={ExtensionError:ye,ERROR_CODES:bt,isPermissionError:Qr,ChunkLoadError:ze,handleChunkFailure:en}});var He=_((da,Ct)=>{var wt="EXPLORER_DATES_FORCE_VSCODE_FS";function kt(e,t=process.env){return String(t?.[e]||"")==="1"}function be(e){let t=e&&typeof e=="object"?e:null,r=String(t?.scheme||(typeof e=="string"&&/^[a-z][a-z0-9+.-]*:/i.test(e)?e.split(":",1)[0]:"file")).toLowerCase(),n=String(t?.authority||""),i=t?.path||t?.fsPath||(typeof e=="string"?e.replace(/^[a-z][a-z0-9+.-]*:\/\//i,""):"");return{scheme:r,authority:n,path:String(i||"")}}function tn({uri:e,isWeb:t=!1,remoteName:r="",forceWorkspaceFs:n=kt(wt)}={}){let i=be(e),a=i.scheme!=="file",o=!!t,s=!!r,c=!!(n||o||s||a);return{scheme:i.scheme,authority:i.authority,isFileScheme:!a,isVirtual:a,isBrowser:o,isRemote:s,forceWorkspaceFs:!!n,filesystem:c?"workspace.fs":"node.fs",provider:a?i.scheme==="github"||i.scheme==="vscode-vfs"?"github":"virtual":"filesystem"}}function Dt({uri:e,platform:t=process.platform,caseSensitive:r}={}){return typeof r=="boolean"?r:be(e).scheme!=="file"?!0:t!=="win32"}function rn(e,t={}){let r=be(e),n=r.path.replace(/\\/g,"/").replace(/\/+/g,"/"),i=`${r.scheme}://${r.authority}${n}`;return Dt({uri:e,...t})?i:i.toLowerCase()}function Ue(e){if(e instanceof Date){let t=e.getTime();return Number.isFinite(t)?t:null}if(typeof e=="number")return Number.isFinite(e)?e:null;if(typeof e=="string"&&e.trim()){let t=Date.parse(e);return Number.isFinite(t)?t:null}return null}function nn(e){if(!e||typeof e!="object")return null;let t=Ue(e.mtime),r=Ue(e.ctime);return{...e,mtimeMs:t,ctimeMs:r}}Ct.exports={FORCE_WORKSPACE_FS_ENV:wt,envFlag:kt,getUriParts:be,getEnvironmentContract:tn,isCaseSensitive:Dt,resourceIdentity:rn,normalizeTimestamp:Ue,normalizeStat:nn}});var K=_((fa,vt)=>{function an(){return typeof Date=="function"&&Date.now?Date.now():16409952e5}function St(e){return!!(e&&typeof e=="object"&&typeof e.getTime=="function")}function on(e){if(St(e))return e;if(typeof e=="number")return new Date(e);if(typeof e=="string"){let t=Date.parse(e);return isNaN(t)?new Date:new Date(t)}return new Date}function B(e=""){return e?e.replace(/\\/g,"/"):""}function sn(e=""){let t=B(e);return t?t.split("/").filter(Boolean):[]}function Tt(e=""){let t=sn(e);return t.length?t[t.length-1]:""}function cn(e=""){let t=Tt(e),r=t.lastIndexOf(".");return r<=0?"":t.substring(r).toLowerCase()}function ln(e=""){let t=B(e),r=t.lastIndexOf("/");return r===-1?"":t.substring(0,r)}function un(...e){return B(e.filter(Boolean).join("/")).replace(/\/+/g,"/")}function hn(e=""){return B(e).toLowerCase()}function dn(e=""){if(!e)return"";if(typeof e=="string")return e;if(typeof e.fsPath=="string"&&e.fsPath.length>0)return e.fsPath;if(typeof e.path=="string"&&e.path.length>0)return e.path;if(typeof e.toString=="function")try{return e.toString(!0)}catch{return e.toString()}return String(e)}function fn(e="",t=""){let r=B(e),n=B(t);return r&&n.startsWith(r)?n.substring(r.length).replace(/^\/+/,""):n}vt.exports={ensureDate:on,isDateLike:St,getCurrentTimestamp:an,normalizePath:B,getFileName:Tt,getExtension:cn,getDirectory:ln,joinPath:un,getCacheKey:hn,getUriPath:dn,getRelativePath:fn}});var Ft=_((exports,module)=>{var chunk=null;try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){try{chunk=dynamicRequire("../chunks/utils-shared-chunk")}catch{}try{chunk||(chunk=dynamicRequire("./chunks/utils-shared-chunk"))}catch{}try{chunk||(chunk=dynamicRequire("../chunks/date-helpers-chunk"))}catch{}try{chunk||(chunk=dynamicRequire("./chunks/date-helpers-chunk"))}catch{}}}catch{}if(chunk&&(chunk.ensureDate||chunk.isDateLike||chunk.getCurrentTimestamp))module.exports={ensureDate:chunk.ensureDate,isDateLike:chunk.isDateLike,getCurrentTimestamp:chunk.getCurrentTimestamp};else{let e=function(){return typeof Date=="function"&&Date.now?Date.now():16409952e5},t=function(n){return!!(n&&typeof n=="object"&&typeof n.getTime=="function")},r=function(n){if(t(n))return n;if(typeof n=="number")return new Date(n);if(typeof n=="string"){let i=Date.parse(n);return isNaN(i)?new Date:new Date(i)}return new Date};getCurrentTimestamp=e,isDateLike=t,ensureDate=r,module.exports={ensureDate:r,isDateLike:t,getCurrentTimestamp:e}}var getCurrentTimestamp,isDateLike,ensureDate});var $e=_((ga,xt)=>{var C=require("vscode"),{isWebEnvironment:At}=J(),{normalizePath:gn}=ce(),{ExtensionError:mn,ERROR_CODES:pn,isPermissionError:yn}=Et(),{getEnvironmentContract:bn,normalizeStat:_n,FORCE_WORKSPACE_FS_ENV:En}=He(),Q;try{let e=K();e&&(Q=e.ensureDate)}catch{}Q||(Q=Ft().ensureDate);var Rt=typeof process<"u"&&process.env?process.env:{},Pt=Rt.VSCODE_WEB==="true"||At(),T=null;if(!Pt)try{T=require("fs").promises}catch{T=null}var _e=class{constructor(){this.isWeb=Pt||At()}q(t){try{return bn({uri:this._(t),isWeb:this.isWeb,remoteName:C.env?.remoteName,forceWorkspaceFs:Rt[En]==="1"}).filesystem==="workspace.fs"}catch{return!1}}x(t){if(!t)return"";if(typeof t=="string")return t;if(t&&typeof t=="object"&&typeof t.fsPath=="string")return t.fsPath;if(t&&typeof t=="object"&&typeof t.path=="string")return t.path;if(typeof t=="object"){if(typeof t.fsPath=="string")return t.fsPath;if(typeof t.path=="string")return t.path}return String(t)}_(t){if(t&&typeof t=="object"&&typeof t.scheme=="string"&&typeof t.path=="string")return t;if(typeof t=="string"){let r=t.trim(),n=/^[a-zA-Z]:[\\/]/.test(r);if(/^[a-zA-Z][a-zA-Z0-9+.-]*:/.test(r)&&!n){let a=C.Uri.parse(r);if(a.scheme&&a.scheme!=="file")return a}return C.Uri.file(t)}if(t&&typeof t=="object"){if(t.uri&&t.uri!==t)try{return this._(t.uri)}catch{}if(this.isWeb&&typeof t.scheme=="string"&&typeof t.path=="string")return C.Uri.from({scheme:t.scheme,authority:t.authority||"",path:t.path||"",query:t.query||"",fragment:t.fragment||""});if(typeof t.fsPath=="string"&&t.fsPath.length>0)return C.Uri.file(t.fsPath);if(typeof t.path=="string"&&t.path.length>0)return this.isWeb&&typeof t.scheme=="string"&&t.scheme!=="file"?C.Uri.from({scheme:t.scheme,authority:t.authority||"",path:t.path,query:t.query||"",fragment:t.fragment||""}):C.Uri.file(t.path);if(typeof t.href=="string"&&t.href.length>0)return C.Uri.parse(t.href);if(typeof t.scheme=="string")return C.Uri.from({scheme:t.scheme,authority:t.authority||"",path:t.path||t.fsPath||"",query:t.query||"",fragment:t.fragment||""});if(typeof t.toString=="function")try{let r=t.toString(!0);if(r&&r!=="[object Object]")return C.Uri.parse(r)}catch{let r=t.toString();if(r&&r!=="[object Object]")return C.Uri.parse(r)}}throw new Error(`Unsupported target type: ${typeof t}`)}async stat(t){let r=this.q(t);if(!this.isWeb&&T&&!r)return T.stat(this.x(t));let n=this._(t),i=await C.workspace.fs.stat(n),a=_n(i);return{...a,mtime:a.mtimeMs===null?Q(i.mtime):new Date(a.mtimeMs),ctime:a.ctimeMs===null?Q(i.ctime):new Date(a.ctimeMs),birthtime:a.ctimeMs===null?Q(i.ctime):new Date(a.ctimeMs),isFile:()=>i.type===C.FileType.File,isDirectory:()=>i.type===C.FileType.Directory}}async readFile(t,r="utf8"){let n=this.q(t);if(!this.isWeb&&T&&!n)return T.readFile(this.x(t),r);let i=this._(t),a=await C.workspace.fs.readFile(i);return r===null||r==="binary"?a:new TextDecoder(r).decode(a)}async writeFile(t,r,n="utf8"){let i=this.x(t);try{let a=this.q(t);if(!this.isWeb&&T&&!a)return T.writeFile(i,r,n);let o=this._(t),s=typeof r=="string"?new TextEncoder().encode(r):r;await C.workspace.fs.writeFile(o,s)}catch(a){this.ze("write file",i,a)}}async rename(t,r,n={overwrite:!1}){let i=this.x(t),a=this.x(r);try{let o=this.q(t)||this.q(r);if(!this.isWeb&&T&&!o)return T.rename(i,a);if(typeof C.workspace.fs.rename=="function")await C.workspace.fs.rename(this._(t),this._(r),n);else if(this._(t).scheme==="file"&&this._(r).scheme==="file")await(T||require("fs").promises).rename(i,a);else throw new Error("The active filesystem provider cannot rename report output.")}catch(o){this.ze("rename file",`${i} -> ${a}`,o)}}async mkdir(t,r={recursive:!0}){let n=this.x(t);try{let i=this.q(t);if(!this.isWeb&&T&&!i)return T.mkdir(n,r);let a=this._(t);await C.workspace.fs.createDirectory(a)}catch(i){this.ze("create directory",n,i)}}async readdir(t,r={withFileTypes:!1}){let n=this.q(t);if(!this.isWeb&&T&&!n)return T.readdir(this.x(t),r);let i=this._(t),a=await C.workspace.fs.readDirectory(i);return r.withFileTypes?a.map(([o,s])=>({name:o,isDirectory:()=>s===C.FileType.Directory,isFile:()=>s===C.FileType.File})):a.map(([o])=>o)}async delete(t,r={recursive:!1}){let n=this.q(t);if(!this.isWeb&&T&&!n){let a=this.x(t);return r.recursive?T.rm?T.rm(a,r):T.rmdir(a,r):T.unlink(a)}let i=this._(t);await C.workspace.fs.delete(i,r)}async exists(t){try{return await this.stat(t),!0}catch{return!1}}async ensureDirectory(t){let r=gn(this.x(t));await this.mkdir(r,{recursive:!0})}ze(t,r,n){throw yn(n)?new mn(pn.FILE_PERMISSION_DENIED,`Permission denied while attempting to ${t}`,{path:r,code:n.code}):n}},wn=new _e;xt.exports={FileSystemAdapter:_e,fileSystem:wn}});var I=_((ma,It)=>{var ee=typeof process<"u"&&process.env?process.env:{},kn=12e4,Dn=1e4,Cn=1440*60*1e3,Sn=2,Tn=["Ja","Fe","Mr","Ap","My","Jn","Jl","Au","Se","Oc","No","De"],vn=Number(ee.EXPLORER_DATES_DECORATION_POOL_SIZE||2048),Fn=Number(ee.EXPLORER_DATES_FLYWEIGHT_CACHE_SIZE||4096),An=Number(ee.EXPLORER_DATES_WORKSPACE_BALANCED_THRESHOLD||15e3),Rn=Number(ee.EXPLORER_DATES_WORKSPACE_LARGE_THRESHOLD||25e4),Mt=Number(ee.EXPLORER_DATES_WORKSPACE_EXTREME_THRESHOLD||4e5),Pn=Number(ee.EXPLORER_DATES_WORKSPACE_SCAN_MAX_RESULTS||Math.min(Mt+1,50001)),xn={ADVANCED_CACHE:"explorerDates.advancedCache",ADVANCED_CACHE_METADATA:"explorerDates.advancedCacheMetadata",TEMPLATE_STORE:"explorerDates.templates",WEB_GIT_NOTICE:"explorerDates.webGitNotice"},Mn="explorerDatesChunks",In="__explorerDatesChunks";It.exports={DEFAULT_CACHE_TIMEOUT:kn,DEFAULT_MAX_CACHE_SIZE:Dn,DEFAULT_PERSISTENT_CACHE_TTL:Cn,DEFAULT_DECORATION_POOL_SIZE:vn,DEFAULT_FLYWEIGHT_CACHE_SIZE:Fn,MAX_BADGE_LENGTH:Sn,MONTH_ABBREVIATIONS:Tn,WORKSPACE_SCALE_BALANCED_THRESHOLD:An,WORKSPACE_SCALE_LARGE_THRESHOLD:Rn,WORKSPACE_SCALE_EXTREME_THRESHOLD:Mt,WORKSPACE_SCAN_MAX_RESULTS:Pn,GLOBAL_STATE_KEYS:xn,WEB_CHUNK_GLOBAL_KEY:Mn,LEGACY_WEB_CHUNK_GLOBAL_KEY:In}});var Be=_((pa,Lt)=>{var{MAX_BADGE_LENGTH:Wt}=I();function Wn(e=0,t="auto"){let r=typeof e=="number"&&!Number.isNaN(e)?e:0;if(t==="bytes")return`~${r}B`;let n=r/1024;if(t==="kb")return`~${n.toFixed(1)}K`;let i=n/1024;return t==="mb"?`~${i.toFixed(1)}M`:r<1024?`~${r}B`:n<1024?`~${Math.round(n)}K`:`~${i.toFixed(1)}M`}function Ln(e){if(e)return e.length>Wt?e.substring(0,Wt):e}Lt.exports={formatFileSize:Wn,trimBadge:Ln}});var q=_((ya,Ot)=>{var te="__explorerDatesLogger",re=class{constructor(){this.we=null}ke(t,r){if(this.we&&typeof this.we[t]=="function")try{return this.we[t](...r)}catch{}switch(t){case"debug":break;case"info":break;case"warn":break;case"error":break;default:break}}debug(...t){return this.ke("debug",t)}info(...t){return this.ke("info",t)}warn(...t){return this.ke("warn",t)}error(...t){return this.ke("error",t)}Zr(t){this.we=t}};function On(){return typeof global<"u"?(global[te]||(global[te]=new re),global[te]):typeof globalThis<"u"?(globalThis[te]||(globalThis[te]=new re),globalThis[te]):(Ke||(Ke=new re),Ke)}var je=class extends re{},Ke=null;Ot.exports={Logger:je,getLogger:On}});var Ve=_((exports,module)=>{var{getLogger}=q(),env=typeof process<"u"&&process.env?process.env:{};function createFallbackVscodeMinimal(){return{workspace:{workspaceFolders:[],getConfiguration:()=>({get:()=>{},async update(){},inspect:()=>({defaultValue:void 0,globalValue:void 0,workspaceValue:void 0,workspaceFolderValue:void 0})})},ConfigurationTarget:{Global:1,Workspace:2,WorkspaceFolder:3}}}function resolveVscodeMinimal(){try{return require("vscode")}catch{return createFallbackVscodeMinimal()}}var MinimalSettingsCoordinator=class{constructor(t={}){this.qt=t.defaultSection||"explorerDates",this.De=new Map,this.dt=new Map,this.Jr=Number(env.EXPLORER_DATES_LOCK_WAIT_WARN_MS||1e3),this._logger=getLogger()}zt(t,r){let i=(this.De.get(t)||Promise.resolve()).then(()=>r()),a=i.catch(()=>{});return this.De.set(t,a),i.finally(()=>{this.De.get(t)===a&&this.De.delete(t)}),i}Ue(t,r){return resolveVscodeMinimal().workspace.getConfiguration(t||void 0,r)}se(t,r){let n=r||this.qt;return n?t.startsWith(`${n}.`)?{section:n,key:t.slice(n.length+1),fullKey:t}:t.includes(".")?{section:void 0,key:t,fullKey:t}:{section:n,key:t,fullKey:`${n}.${t}`}:{section:void 0,key:t,fullKey:t}}async updateSetting(t,r,n={}){return this.zt(this.se(t,n.section).fullKey,async()=>{let i=this.se(t,n.section),a=this.Ue(i.section,n.resource);try{let o=this.Ut(n.scope,n.resource);return await a.update(i.key,r,o),{key:i.fullKey,updated:!0}}catch(o){try{this._logger.warn(`Configuration update failed for ${i.fullKey}: ${o&&o.message}`)}catch{}return{key:i.fullKey,updated:!1,error:o}}})}async applySettings(t,r={}){let n=Array.isArray(t)?t:Object.entries(t).map(([o,s])=>({key:o,value:s})),i=[];for(let o of n)try{i.push(await this.updateSetting(o.key,o.value,r))}catch(s){i.push({key:this.se(o.key,r.section).fullKey,updated:!1,error:s})}let a=i.filter(o=>o&&o.error);if(a.length>0){let o=a.map(c=>`${c.key}: ${c.error&&c.error.message?c.error.message:String(c.error)}`),s=new Error(`Failed to apply ${a.length} setting(s): ${o.join("; ")}`);throw s.details=a,s}return i}Ut(t,r){return t&&t!=="auto"?this.Ht(t)||resolveVscodeMinimal().ConfigurationTarget.Workspace:r?resolveVscodeMinimal().ConfigurationTarget.WorkspaceFolder:resolveVscodeMinimal().workspace.workspaceFolders&&resolveVscodeMinimal().workspace.workspaceFolders.length>0?resolveVscodeMinimal().ConfigurationTarget.Workspace:resolveVscodeMinimal().ConfigurationTarget.Global}Ht(t){switch(t){case"user":return resolveVscodeMinimal().ConfigurationTarget.Global;case"workspace":return resolveVscodeMinimal().ConfigurationTarget.Workspace;case"workspaceFolder":return resolveVscodeMinimal().ConfigurationTarget.WorkspaceFolder;default:return}}getValue(t,r={}){let{section:n,resource:i}=r||{},a=this.se(t,n);return this.Ue(a.section,i).get(a.key)}inspect(t,r={}){let{section:n,resource:i}=r||{},a=this.se(t,n);return this.Ue(a.section,i).inspect(a.key)}async clearSetting(t,r={}){return this.updateSetting(t,void 0,r)}getLockWaitStats(){let t={};for(let[r,n]of this.dt.entries())t[r]={...n};return t}resetLockWaitStats(){this.dt.clear()}},cachedCoordinator=null;function getSettingsCoordinator(options){if(!cachedCoordinator||options&&options.forceNew){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=null;try{e=dynamicRequire("../chunks/settings-coordinator-impl-chunk")}catch{}try{e||(e=dynamicRequire("../chunks/settingsCoordinator-impl-chunk"))}catch{}if(e&&typeof e.createSettingsCoordinatorImpl=="function")return cachedCoordinator=e.createSettingsCoordinatorImpl(options),cachedCoordinator}}catch{}try{let{WEB_CHUNK_GLOBAL_KEY:e,LEGACY_WEB_CHUNK_GLOBAL_KEY:t}=I(),r=typeof globalThis<"u"&&(globalThis[e]||globalThis[t])||null;if(r&&r.settingsCoordinatorImpl&&typeof r.settingsCoordinatorImpl.createSettingsCoordinatorImpl=="function")return cachedCoordinator=r.settingsCoordinatorImpl.createSettingsCoordinatorImpl(options),cachedCoordinator}catch{}cachedCoordinator=new MinimalSettingsCoordinator(options)}return cachedCoordinator}module.exports={getSettingsCoordinator,MinimalSettingsCoordinator}});var Ze=_((ba,Ut)=>{var{normalizePath:Ge,getUriPath:Nn}=ce(),{getLogger:qn}=q(),le=typeof process<"u"&&process.env?process.env:{},zn=qn(),ue=240,Xe=255,Nt=/[\x00-\x1f\x7f<>:"|?*]/g,Un=/[\x00-\x1f\x7f<>:"|?*]/,Hn=[/\.\./,/\.\.[\\/]/,/[\\/]\.\./,/^\.\.$/,/^\.\.[\\/]/,/[\\/]\.\.$/],qt=new Set(["CON","PRN","AUX","NUL","COM1","COM2","COM3","COM4","COM5","COM6","COM7","COM8","COM9","LPT1","LPT2","LPT3","LPT4","LPT5","LPT6","LPT7","LPT8","LPT9"]),zt=new Set([".exe",".scr",".bat",".cmd",".pif",".vbs",".js",".jar",".com",".msi",".dll",".dmg",".pkg",".deb",".rpm"]),$n=new Set([".js",".jsx",".ts",".tsx",".mjs",".cjs",".py",".rb",".rs",".go",".php",".java",".kt",".swift",".cs",".c",".cpp",".h",".hpp",".html",".css",".scss",".less",".json",".jsonc",".md",".mdx",".txt",".sh",".bash",".yml",".yaml"]),Bn=()=>le.EXPLORER_DATES_TEST_MODE==="1"||le.NODE_ENV==="test"||le.VSCODE_TEST==="1"?"test":le.EXPLORER_DATES_DEV_MODE==="1"||le.NODE_ENV==="development"?"development":"production",ne=class{static hasPathTraversal(t){let r=this.V(t);if(!r||typeof r!="string")return!1;let n=Ge(r);return Hn.some(i=>i.test(n))}static hasDangerousChars(t){let r=this.V(t);return!r||typeof r!="string"?!1:Un.test(r)}static isWindowsReservedName(t){if(!t||typeof t!="string")return!1;let r=t.split(".")[0].toUpperCase();return qt.has(r)}static isSuspiciousExtension(t,r={}){let{workspaceContext:n=!0}=r;if(!t||typeof t!="string")return!1;let i=t.toLowerCase(),a=i.startsWith(".")?i:`.${i}`;return n&&$n.has(a)?!1:zt.has(a)}static isPathTooLong(t){let r=this.V(t);return!r||typeof r!="string"?!1:r.length>ue}static isFilenameTooLong(t){return!t||typeof t!="string"?!1:t.length>Xe}static validatePath(t,r={}){let{allowSuspiciousExtensions:n=!1,allowWindowsReservedNames:i=!1,strictLength:a=!0,workspaceContext:o=!0}=r,s=this.V(t),c=[],u=[];if(!s||typeof s!="string")return{isValid:!1,path:s,issues:["Invalid or empty path"],warnings:[],isSafe:!1};this.hasPathTraversal(s)&&c.push("Path contains directory traversal attempts"),this.hasDangerousChars(s)&&c.push("Path contains dangerous characters"),a&&this.isPathTooLong(s)&&c.push(`Path exceeds maximum length (${ue})`);let l=s.split(/[/\\]/).pop()||"";a&&this.isFilenameTooLong(l)&&c.push(`Filename exceeds maximum length (${Xe})`),!i&&this.isWindowsReservedName(l)&&u.push("Filename is a Windows reserved name");let d=l.includes(".")?l.split(".").pop():"";return!n&&this.isSuspiciousExtension(d,{workspaceContext:o})&&u.push("File extension is potentially suspicious"),{isValid:c.length===0,path:s,filename:l,extension:d,issues:c,warnings:u,isSafe:c.length===0&&u.length===0}}static sanitizePath(t,r={}){let{replacementChar:n="_",preserveExtension:i=!0}=r,a=this.V(t);if(!a||typeof a!="string")return"";a=a.replace(/\x00/g,"");let o=a.startsWith("/"),s=Ge(a).split("/").filter(Boolean),c=[];for(let u of s){if(u===".."){c.length>0&&c.pop();continue}u!=="."&&c.push(u)}if(a=(o?"/":"")+c.join("/"),a=a.replace(Nt,n),i){let u=a.split("/"),l=u[u.length-1];if(l&&this.isWindowsReservedName(l)){let d=l.split(".");d[0]=d[0]+"_safe",u[u.length-1]=d.join("."),a=u.join("/")}}return a.length>ue&&(a=a.substring(0,ue),zn.warn("Path truncated due to length:",a)),a}static isWithinBoundaries(t,r=[]){let n=this.V(t);if(!n||!Array.isArray(r)||r.length===0)return!1;let i=n.split("/").filter(Boolean),a=[];for(let s of i)s===".."?a.length>0&&a.pop():s!=="."&&a.push(s);let o="/"+a.join("/");return r.some(s=>{let c=Ge(s);return o.startsWith(c)})}static validateRegexPattern(t){if(!t||typeof t!="string")return{isValid:!1,issue:"Invalid pattern"};let r=[/\([^)]*\+[^)]*\)\+/,/\([^)]*\*[^)]*\)\*/,/\([^)]*\+[^)]*\)\*/,/\([^)]*\*[^)]*\)\+/,/\+.*\*|{\d+,}.*\*/,/\([^|]*\|[^)]*\)\*/];for(let n of r)if(n.test(t))return{isValid:!1,issue:"Pattern may cause catastrophic backtracking (ReDoS)"};try{return new RegExp(t),{isValid:!0}}catch(n){return{isValid:!1,issue:`Invalid regex syntax: ${n.message}`}}}static V(t){if(!t)return"";if(typeof t=="string")return t;try{return Nn(t)}catch{return String(t)}}},Ye=class{static validateFileUri(t,r=[]){if(!t||typeof t!="object")return{isValid:!1,issue:"Invalid URI object"};if(t.scheme!=="file"&&t.scheme!=="vscode-vfs")return{isValid:!1,issue:`Unsupported URI scheme: ${t.scheme}`};let n=ne.validatePath(t);return n.isValid?r.length>0&&!ne.isWithinBoundaries(t,r)?{isValid:!1,issue:"Path is outside allowed workspace boundaries"}:{isValid:!0,warnings:n.warnings}:{isValid:!1,issue:`Path validation failed: ${n.issues.join(", ")}`}}static validateExclusionPatterns(t){if(!Array.isArray(t))return{isValid:!1,issue:"Patterns must be an array"};let r=[],n=[];for(let i of t){if(typeof i!="string"){n.push(`Invalid pattern type: ${typeof i}`);continue}let a=i.replace(/\./g,"\\.").replace(/\*/g,".*").replace(/\?/g,"."),o=ne.validateRegexPattern(a);r.push({pattern:i,isValid:o.isValid,issue:o.issue}),o.isValid||n.push(`Pattern "${i}": ${o.issue}`)}return{isValid:n.length===0,results:r,issues:n}}};Ut.exports={SecurityValidator:ne,SecureFileOperations:Ye,detectSecurityEnvironment:Bn,MAX_SAFE_PATH_LENGTH:ue,MAX_SAFE_FILENAME_LENGTH:Xe,DANGEROUS_PATH_CHARS:Nt,WINDOWS_RESERVED_NAMES:Array.from(qt),SUSPICIOUS_EXTENSIONS:Array.from(zt)}});var he=_((_a,Kt)=>{var $t=typeof process<"u"&&process.env?process.env:{},Ht="[ExplorerDates][WebDiag]",Je="__explorerDatesWebDiagnostics",Ee;function Kn(){try{let e=require("vscode");return e?.env?.uiKind===e?.UIKind?.Web}catch{return $t.VSCODE_WEB==="true"}}function P(){return Ee!==void 0||(Ee=$t.EXPLORER_DATES_WEB_DIAG==="1"||Kn()),Ee}function Bt(){return{enabled:P(),logs:[],logOnce:new Set,commandsRegistered:new Set,commandsInvoked:[],errors:[],chunkLoads:[],provider:{created:!1,registered:!1,hydrated:!1,decorationCalls:0,refreshCalls:0,lastEvent:null}}}var jn=Bt();function x(){return typeof globalThis<"u"?(globalThis[Je]||(globalThis[Je]=Bt()),globalThis[Je]):jn}function Vn(e){try{return JSON.stringify(e)}catch{return String(e)}}function W(e,t,r){if(!P())return;let n=x(),i={ts:new Date().toISOString(),level:e,message:t,meta:r||null};n.logs.push(i),n.logs.length>400&&n.logs.shift();let a=r?`${Ht} ${t} ${Vn(r)}`:`${Ht} ${t}`,o=console[e]||console.info;try{o(a)}catch{}}function Gn(e,t,r,n){if(!P())return;let i=x();i.logOnce.has(e)||(i.logOnce.add(e),W(t,r,n))}function Xn(e){if(!P())return;x().commandsRegistered.add(e),W("info","Command registered",{commandId:e})}function Yn(e){if(!P())return;x().commandsInvoked.push({commandId:e,ts:Date.now()}),W("info","Command invoked",{commandId:e})}function Zn(e,t,r){P()&&(t?W("info","Command completed",{commandId:e}):(W("error","Command failed",{commandId:e,error:r?.message,stack:r?.stack}),x().errors.push({commandId:e,error:r?.message,stack:r?.stack})))}function Jn(e,t,r){if(!P())return;x().chunkLoads.push({chunkName:e,stage:t,ts:Date.now(),error:r?r.message||String(r):null}),W(r?"warn":"info",`Chunk ${t}`,{chunkName:e,error:r?.message})}function Qn(e,t){if(!P())return;let r=x();r.provider.lastEvent={event:e,ts:Date.now(),meta:t||null},e==="created"&&(r.provider.created=!0),e==="registered"&&(r.provider.registered=!0),e==="hydrated"&&(r.provider.hydrated=!0),W("info",`Provider ${e}`,t)}function ei(){if(!P())return;let e=x();e.provider.decorationCalls+=1,e.provider.decorationCalls<=3&&W("info","Decoration request observed",{count:e.provider.decorationCalls})}function ti(){if(!P())return;let e=x();e.provider.refreshCalls+=1}Kt.exports={isWebDiagnosticsEnabled:P,getWebDiagnosticsState:x,diagLog:W,diagLogOnce:Gn,recordCommandRegistration:Xn,recordCommandInvocation:Yn,recordCommandResult:Zn,recordChunkEvent:Jn,recordProviderEvent:Qn,recordDecorationCall:ei,recordRefreshCall:ti}});var nt=_((Ea,Jt)=>{var we=require("vscode"),{normalizePath:tt,getRelativePath:ri}=ce(),{diagLogOnce:ni}=he(),{normalizeTimestamp:de,resourceIdentity:ii}=He(),ai={unknown:0,github:1,git:2,fs:3},et={low:1,medium:2,high:3};function L(e,t,r){try{return e?.get?e.get(t,r):r}catch{return r}}function oi(e){return{nowMinutes:Number(L(e,"freshnessBucketMinutesNow",60))||60,todayHours:Number(L(e,"freshnessBucketHoursToday",24))||24,twoDays:Number(L(e,"freshnessBucketDaysTwo",2))||2,oneWeek:Number(L(e,"freshnessBucketDaysWeek",7))||7}}function jt(e,t){if(!Number.isFinite(e)||e<0)return"unknown";let r=t.nowMinutes*60*1e3,n=t.todayHours*60*60*1e3,i=t.twoDays*24*60*60*1e3,a=t.oneWeek*24*60*60*1e3;return e<=r?"now":e<=n?"today":e<=i?"2d":e<=a?"1w":"stale"}function Vt(e){switch(e){case"now":return"now";case"today":return"today";case"2d":return"2d";case"1w":return"1w";case"stale":return"stale";default:return"unknown"}}function Gt(e){switch(e){case"fs":return"Filesystem";case"git":return"Git";case"github":return"GitHub";default:return"Unknown"}}function Xt(e){switch(e){case"now":return"!!";case"today":return"T";case"2d":return"2d";case"1w":return"1w";case"stale":return"~~";default:return"?"}}function si(e,t,r){let n=!!L(r,"freshnessShowUnknown",!0);if(e==="unknown"||t==="unknown")return n?"?":null;let i=Xt(e);return!i||i==="unknown"?n?"?":null:i}function ci(e){try{let t=de(e);return t===null?null:new Date(t).toISOString().replace("T"," ").replace("Z","")}catch{return null}}function li(e,t){if(!e)return;let r=L(t,"freshnessTooltipVerbosity","full"),n=L(t,"badge.sourceLabelMode","auto"),i=[],a=Vt(e.bucket),o=Gt(e.source);if(i.push(`Freshness: ${a}`),e.exactTimestamp){let u=ci(e.exactTimestamp);u&&i.push(`Exact time: ${u}`)}let s=e.source==="fs"&&e.confidence==="high";return(n==="always"||n!=="never"&&!s||n!=="never"&&r==="full")&&i.push(`Source: ${o}`),e.author&&i.push(`Author: ${e.author}`),e.message&&i.push(`Message: ${e.message}`),i.push(`Confidence: ${e.confidence}`),e.reason&&r==="full"&&i.push(`Reason: ${e.reason}`),i.join(` +`)}function ui(e,t,r){if(!Number.isFinite(t)||t<=0)return!1;let n=300*1e3;if(t>r+n)return!1;if(e==="file")return!0;let i=r-t,a=300*1e3,o=365*24*60*60*1e3*10;return!(io)}function rt({source:e,timestampMs:t,author:r,message:n,confidence:i,reason:a},o){if(!Number.isFinite(t))return{bucket:"unknown",source:e||"unknown",confidence:i||"low",reason:a||"no-timestamp"};let s=oi(o),c=Date.now()-t;return{bucket:jt(c,s),source:e,exactTimestamp:t,author:r||void 0,message:n||void 0,confidence:i,reason:a||void 0}}async function hi(e,t,r){let n=e?.scheme||"file",i=!!L(r,"freshnessAllowVirtualFs",!1);if(n!=="file"&&!i)return{freshness:null,reason:"fs-virtual-disabled"};let a=t?.mtimeMs??de(t?.mtime),o=Date.now();return Number.isFinite(a)?ui(n,a,o)?{freshness:rt({source:"fs",timestampMs:a,confidence:n==="file"?"high":"medium",reason:n==="file"?"fs-trust-high":"fs-trust-medium"},r),reason:null}:{freshness:null,reason:"fs-mtime-untrusted"}:{freshness:null,reason:"fs-mtime-missing"}}async function di(e,t,r){if(!t||typeof t.He!="function")return{freshness:null,reason:"git-provider-missing"};let n;try{n=await t.He(e)}catch(o){return{freshness:null,reason:`git-error:${o?.message||"unknown"}`}}let i=de(n?.timestampMs);return i===null||i<=0?{freshness:null,reason:n?.error||"git-no-timestamp"}:{freshness:rt({source:"git",timestampMs:i,author:n?.author||void 0,message:n?.message||void 0,confidence:"medium",reason:"git-recency"},r),reason:null}}function Yt(e){if(!e||(e.scheme||"")!=="github")return null;let n=tt(e.path||"").replace(/^\/+/,"").split("/").filter(Boolean);if(n.length<2)return null;let i=n[0],a=n[1],o=n.slice(2).join("/"),s=new URLSearchParams(e.query||""),c=s.get("ref")||s.get("branch")||"HEAD";return{owner:i,repo:a,filePath:o,ref:c}}function fi(e){let t=(e||"").indexOf("+");if(t===-1)return"HEAD";let r=e.slice(t+1);try{let n;if(typeof TextDecoder<"u"){let o=new Uint8Array(r.length/2);for(let s=0;s0)return a}catch{}return"HEAD"}function Zt(e){if(!e||e.scheme!=="vscode-vfs"||!String(e.authority||"").startsWith("github"))return null;let r=tt(e.path||"").replace(/^\/+/,"").split("/").filter(Boolean);if(r.length<2)return null;let n=r[0],i=r[1],a=r.slice(2).join("/"),o=fi(e.authority||"");return{owner:n,repo:i,filePath:a,ref:o}}function gi(e){try{let t=we.workspace.workspaceFolders||[];for(let r of t){let n=r?.uri?.scheme;if(n==="github"){let i=Yt(r.uri);if(!i)continue;let a=ri(r.uri.path||"",e?.path||"");return{...i,filePath:a}}if(n==="vscode-vfs"&&String(r?.uri?.authority||"").startsWith("github")){let i=Zt(r.uri);if(!i)continue;let o=tt(e?.path||"").replace(/^\/+/,"").split("/").filter(Boolean).slice(2).join("/");if(!o)continue;return{...i,filePath:o}}}}catch{}return null}async function mi(e,t){let r=Yt(e)||Zt(e)||gi(e);if(!r||!r.owner||!r.repo||!r.filePath)return{freshness:null,reason:"github-context-missing"};let n=`${r.owner}/${r.repo}@${r.ref}:${r.filePath}`,i=`https://api.github.com/repos/${r.owner}/${r.repo}/commits?path=${encodeURIComponent(r.filePath)}&sha=${encodeURIComponent(r.ref)}&per_page=1`,a={Accept:"application/vnd.github+json"};try{let y=we?.authentication&&typeof we.authentication.getSession=="function"?await we.authentication.getSession("github",["repo"],{createIfNone:!1}):null;y?.accessToken&&(a.Authorization=`Bearer ${y.accessToken}`)}catch{}if(typeof fetch!="function")return{freshness:null,reason:"github-fetch-unavailable"};let o;try{o=await fetch(i,{headers:a})}catch(y){return{freshness:null,reason:`github-fetch-error:${y?.message||"unknown"}`}}if(!o||!o.ok)return{freshness:null,reason:o?`github-http-${o.status}`:"github-no-response"};let s;try{s=await o.json()}catch{return{freshness:null,reason:"github-json-error"}}let c=Array.isArray(s)?s[0]:null,u=c?.commit||null,l=u?.author?.name||c?.author?.login||void 0,d=u?.message||void 0,h=de(u?.author?.date);return h===null?{freshness:null,reason:"github-no-timestamp"}:{freshness:rt({source:"github",timestampMs:h,author:l,message:d,confidence:"medium",reason:"github-commit"},t),reason:null,cacheKey:n}}function Qe(e,t){return!e||e==="auto"?!0:e==="unknown"?t==="unknown":e===t}async function pi({uri:e,stat:t,provider:r,config:n,workspaceKind:i}){let a=e?.scheme||"file",o=L(n,"freshnessSourcePolicy","auto"),s=[],c=Date.now();if(Qe(o,"fs")){let u=await hi(e,t,n);if(s.push({source:"fs",reason:u.reason||null}),u.freshness)return{...u.freshness,attempts:s}}if(Qe(o,"git")){let u=await di(e,r,n);if(s.push({source:"git",reason:u.reason||null}),u.freshness)return{...u.freshness,attempts:s}}if(Qe(o,"github")){let u=await mi(e,n);if(s.push({source:"github",reason:u.reason||null,cacheKey:u.cacheKey||null}),u.freshness)return{...u.freshness,attempts:s}}return ni("freshness-unknown","info","No trustworthy freshness source available",{scheme:a,workspaceKind:i||"unknown",attempts:s}),{bucket:"unknown",source:"unknown",confidence:"low",reason:"no-source",attempts:s,resolvedAt:c}}function yi(e,t){if(!e)return-1;if(!t)return 1;let r=et[e.confidence]||0,n=et[t.confidence]||0;if(r!==n)return r-n;let i=Number(e.exactTimestamp||0),a=Number(t.exactTimestamp||0);return i-a}Jt.exports={resolveFreshness:pi,formatBadge:si,formatTooltip:li,bucketFromAge:jt,formatBucketLabel:Vt,formatBadgeAge:Xt,formatSourceLabel:Gt,compareFreshness:yi,SOURCE_RANK:ai,CONFIDENCE_RANK:et,normalizeTimestamp:de,resourceIdentity:ii}});var er=_((wa,Qt)=>{var{normalizePath:bi}=ce(),ke="__root__",it=class{constructor(){this.g=new Map,this.M=new Map,this.o=0}get size(){return this.o}get bucketCount(){return this.g.size}clear(){this.g.clear(),this.M.clear(),this.o=0}get(t){if(!t)return;let r=this.M.get(t);if(!r)return;let n=this.g.get(r);if(!n){this.M.delete(t);return}return n.lastAccess=Date.now(),n.entries.get(t)}set(t,r,n={}){if(!t)return;let i=n.folderKey||this.$t(t),a=this.Bt(i),o=a.entries.has(t);a.entries.set(t,r),a.lastAccess=Date.now(),o||this.o++,this.M.set(t,i)}delete(t){if(!t)return!1;let r=this.M.get(t);if(!r)return!1;let n=this.g.get(r);if(!n)return this.M.delete(t),!1;let i=n.entries.delete(t);return i&&(this.o=Math.max(0,this.o-1),n.entries.size===0&&this.g.delete(r)),this.M.delete(t),i}*entries(){for(let t of this.g.values())yield*t.entries.entries()}*keys(){for(let t of this.g.values())yield*t.entries.keys()}*values(){for(let t of this.g.values())yield*t.entries.values()}[Symbol.iterator](){return this.entries()}enforceLimit(t=0,r){if(!t||this.o<=t)return 0;let n=Math.max(Math.floor(t*.2),this.o-t,1),i=0,a=Array.from(this.g.entries()).map(([o,s])=>({folderKey:o,bucket:s}));a.sort((o,s)=>(o.bucket.lastAccess||0)-(s.bucket.lastAccess||0));for(let{folderKey:o,bucket:s}of a){if(i>=n)break;if(!s.entries.size){this.g.delete(o);continue}let c=s.entries.size,u=n-i;if(c<=u){i+=this.Kt(o,s);continue}let l=Array.from(s.entries.entries());l.sort((h,g)=>(h[1].timestamp||0)-(g[1].timestamp||0));let d=Math.min(u,Math.max(1,Math.ceil(c*.5)));for(let h=0;h0&&r&&r.debug(`Hierarchical cache eviction removed ${i} entries (${this.o} remaining)`),i}Bt(t){return this.g.has(t)||this.g.set(t,{entries:new Map,lastAccess:Date.now()}),this.g.get(t)}Kt(t,r){if(!r)return 0;let n=r.entries.size;for(let i of r.entries.keys())this.M.delete(i);return this.g.delete(t),this.o=Math.max(0,this.o-n),n}$t(t){if(!t||typeof t!="string")return ke;let r=bi(t);if(!r)return ke;let n=r.lastIndexOf("/");return n===-1?ke:r.slice(0,n)||ke}};Qt.exports={HierarchicalDecorationCache:it}});var rr=_((ka,tr)=>{async function _i(e,t,r){try{if(e.G)return e._logger?.debug?.(`\u26A0\uFE0F Cache bypass enabled - recalculating decoration for: ${r}`),null;if(e._advancedCache)try{let i=await e._advancedCache.get(t);if(i)return e._metrics.cacheHits++,e._logger?.debug?.(`\u{1F9E0} Advanced cache hit for: ${r}`),i}catch(i){e._logger?.debug?.(`Advanced cache error: ${i.message}`)}if(!e.e||typeof e.e.get!="function")return e._logger?.debug?.("getCachedDecoration: no memory cache available, falling back"),null;let n=e.e.get(t);if(n){if(n.forceRefresh){try{e.e.delete(t)}catch{}e._logger?.debug?.(`\u{1F6AB} Memory cache bypassed (forced refresh) for: ${r}`)}else if(Date.now()-n.timestampe.l)try{e.e.enforceLimit(e.l,e._logger)}catch{}let a={decoration:r,timestamp:Date.now()};i&&(a.uri=i);try{e.e.set(t,a)}catch{}try{typeof e.ce=="function"&&e.ce()}catch(o){e._logger?.debug?.("monitorCachePressure from store failed",o)}if(e._advancedCache)try{await e._advancedCache.set(t,r,{ttl:e.S}),e._logger?.debug?.(`\u{1F9E0} Stored in advanced cache: ${n}`)}catch(o){e._logger?.debug?.(`Failed to store in advanced cache: ${o.message}`)}try{typeof e.le=="function"&&e.le()}catch(o){e._logger?.debug?.("maybeExtendCacheTimeout from store failed",o)}}catch(a){e._logger?.debug?.("storeDecorationInCache failed",a)}}function wi(){class e{constructor(){this.r=null,this.n=new Map,this.o=0,this.$e=!1,this.hydrateInBackground()}get size(){return this.r?this.r.size:this.o}get bucketCount(){return this.r?this.r.bucketCount:0}clear(){if(this.r)return this.r.clear();this.n.clear(),this.o=0}get(r){return this.r?this.r.get(r):this.n.get(r)}set(r,n,i={}){if(this.r)return this.r.set(r,n,i);let a=this.n.has(r);this.n.set(r,n),a||this.o++}delete(r){if(this.r)return this.r.delete(r);let n=this.n.delete(r);return n&&(this.o=Math.max(0,this.o-1)),n}*entries(){if(this.r){yield*this.r.entries();return}yield*this.n.entries()}*keys(){if(this.r){yield*this.r.keys();return}yield*this.n.keys()}*values(){if(this.r){yield*this.r.values();return}yield*this.n.values()}[Symbol.iterator](){return this.entries()}enforceLimit(r=0,n){if(this.r)return this.r.enforceLimit(r,n);if(!r||this.o<=r)return 0;let i=0,o=Array.from(this.n.keys()).slice(0,Math.max(1,Math.ceil(this.o-r)));for(let s of o)this.n.delete(s),i++,this.o=Math.max(0,this.o-1);return i>0&&n&&n.debug(`LazyHierarchical cache eviction removed ${i} entries`),i}async jt(){if(!this.$e){this.$e=!0;try{let n=(await Promise.resolve().then(()=>R(er()))).HierarchicalDecorationCache;this.r=new n;for(let[i,a]of this.n.entries())this.r.set(i,a);this.n=null}catch{this.$e=!1}}}hydrateInBackground(){this.jt().catch(()=>{})}}return new e}tr.exports={getCachedDecoration:_i,storeDecorationInCache:Ei,createLazyHierarchicalDecorationCache:wi}});var nr=_((Da,ki)=>{ki.exports={migrationDetailsTitle:"Explorer Dates - Settings Migration",migrationDetailsHeader:"Settings Migration",gitAttributionWarning:"Explorer Dates: Git attribution badges are unavailable on VS Code for Web. Time-based decorations remain available.",noOverridesToDocument:"No overrides to document.",overrideNotesHeader:"# Explorer Dates Override Notes\\n\\n",analysisCommandsDisabled:"Explorer Dates analysis commands are disabled. Shortcuts like Ctrl+Shift+M/H/A will not work until you enable explorerDates.enableAnalysisCommands.",analysisEnableNow:"Enable Now",analysisEnablePartially:"Enable partially succeeded. Update explorerDates.enableAnalysisCommands in remaining workspace folders manually.",analysisEnableFailed:"Enable failed: update explorerDates.enableAnalysisCommands in workspace settings.",workspaceTemplatesDisabled:"Workspace templates are disabled. Enable explorerDates.enableWorkspaceTemplates to use this command.",workspaceTemplatesDisabledSave:"Workspace templates are disabled. Enable explorerDates.enableWorkspaceTemplates to save templates.",enterTemplateName:"Enter template name",enterTemplateDescription:"Enter description (optional)",failedToOpenTemplateManager:"Failed to open template manager: {0}",failedToSaveTemplate:"Failed to save template: {0}",reportingDisabled:"Reporting features are disabled. Enable explorerDates.enableExportReporting to generate reports.",failedToGenerateReport:"Failed to generate report: {0}",apiDisabled:"Explorer Dates API is disabled via settings.",failedToShowApiInformation:"Failed to show API information: {0}",failedToShowWorkspaceActivity:"Failed to show workspace activity: {0}",failedToShowPerformanceAnalytics:"Failed to show performance analytics: {0}",failedToShowCacheDebugInfo:"Failed to show cache debug info: {0}",noWorkspaceFolderOpen:"No workspace folder open",now:"now",minutes:"m",hours:"h",days:"d",weeks:"w",months:"mo",years:"y",justNow:"just now",minutesAgo:"{0} minute(s) ago",hoursAgo:"{0} hour(s) ago",daysAgo:"{0} day(s) ago",lastModified:"Last modified",refreshSuccess:"Date decorations refreshed",activationError:"Explorer Dates failed to activate",errorAccessingFile:"Error accessing file for decoration",clearTelemetryPrompt:"This will permanently delete locally-stored telemetry events for Explorer Dates. This action cannot be undone. Proceed?",clearTelemetryConfirm:"Clear Telemetry",clearTelemetryCancel:"Cancel",reportFormatDisabled:'Report format "{0}" is disabled. Allowed formats: {1}',reportDownloadTriggered:"Report download triggered in browser",selectReportTimeRangePlaceholder:"Select report time range",selectReportFormatPlaceholder:"Select report format",cleanupNoDeprecated:"\u2139\uFE0F No deprecated settings found to clean up.",showMigrationHistoryNoHistory:"No migration history found.",resetConfirmation:"This will reset all Explorer Dates settings to their default values. Are you sure?",resetConfirm:"Reset Settings",resetCancel:"Cancel",resetSuccess:"\u2705 Reset {0} settings to defaults.",validateNoIssues:"\u2705 Configuration is valid - no issues found!",validateFoundIssues:"Found {0} configuration issue(s). Would you like to see details?",validateShowDetails:"Show Details",validateDismiss:"Dismiss",migrationNotificationMessage:"Explorer Dates updated {0} setting(s) for compatibility. Your configuration has been preserved.",migrationViewChanges:"View Changes",migrationOpenSettings:"Open Settings",deprecatedPrompt:"Explorer Dates found {0} deprecated setting(s). Would you like to remove them?",deprecatedClean:"Clean Up Now",deprecatedKeep:"Keep Old Settings",deprecatedAskLater:"Ask Later",showFileLocation:"Show File Location",teamConfigCorrupted:"Explorer Dates team configuration file appears to be corrupted. Please check the .explorer-dates-profiles.json file or restore from backup.",appliedFromTeamProfile:'Applied {0} Explorer Dates settings from team profile "{1}".',documentedOverrides:"Documented Explorer Dates overrides in .vscode/explorer-dates-overrides.md",teamConfigMissingProfile:"Team configuration is missing an active profile.",ephemeralStorageEnospc:"Explorer Dates team configuration could not be saved because the disk is full.",ephemeralStorageGeneric:"Explorer Dates team configuration could not be saved because the workspace is read-only or permissions are restricted.",ephemeralStorageSuffix:"Changes will be kept in memory until VS Code restarts, so they may be lost."}});var ir=_((Ca,Di)=>{Di.exports={migrationDetailsTitle:"Explorer Dates - Migraci\xF3n de configuraci\xF3n",migrationDetailsHeader:"Migraci\xF3n de configuraci\xF3n",gitAttributionWarning:"Explorer Dates: Las insignias de atribuci\xF3n de Git no est\xE1n disponibles en VS Code para la Web. Las decoraciones basadas en tiempo siguen disponibles.",noOverridesToDocument:"No hay anulaciones para documentar.",overrideNotesHeader:"# Notas de anulaci\xF3n de Explorer Dates\\n\\n",analysisCommandsDisabled:"Los comandos de an\xE1lisis de Explorer Dates est\xE1n deshabilitados. Atajos como Ctrl+Shift+M/H/A no funcionar\xE1n hasta que habilites explorerDates.enableAnalysisCommands.",analysisEnableNow:"Habilitar ahora",analysisEnablePartially:"La activaci\xF3n se complet\xF3 parcialmente. Actualiza explorerDates.enableAnalysisCommands manualmente en las carpetas de trabajo restantes.",analysisEnableFailed:"Error al habilitar: actualiza explorerDates.enableAnalysisCommands en la configuraci\xF3n del espacio de trabajo.",workspaceTemplatesDisabled:"Las plantillas de espacio de trabajo est\xE1n deshabilitadas. Habilita explorerDates.enableWorkspaceTemplates para usar este comando.",workspaceTemplatesDisabledSave:"Las plantillas de espacio de trabajo est\xE1n deshabilitadas. Habilita explorerDates.enableWorkspaceTemplates para guardar plantillas.",enterTemplateName:"Introduce el nombre de la plantilla",enterTemplateDescription:"Introduce la descripci\xF3n (opcional)",failedToOpenTemplateManager:"Error al abrir el administrador de plantillas: {0}",failedToSaveTemplate:"Error al guardar la plantilla: {0}",reportingDisabled:"Las funciones de informes est\xE1n deshabilitadas. Habilita explorerDates.enableExportReporting para generar informes.",failedToGenerateReport:"Error al generar el informe: {0}",apiDisabled:"La API de Explorer Dates est\xE1 deshabilitada mediante la configuraci\xF3n.",failedToShowApiInformation:"Error al mostrar la informaci\xF3n de la API: {0}",failedToShowWorkspaceActivity:"Error al mostrar la actividad del espacio de trabajo: {0}",failedToShowPerformanceAnalytics:"Error al mostrar los an\xE1lisis de rendimiento: {0}",failedToShowCacheDebugInfo:"Error al mostrar la informaci\xF3n de depuraci\xF3n de la cach\xE9: {0}",noWorkspaceFolderOpen:"No hay ninguna carpeta de espacio de trabajo abierta",now:"ahora",minutes:"m",hours:"h",days:"d",weeks:"sem",months:"mes",years:"a",justNow:"justo ahora",minutesAgo:"hace {0} minuto(s)",hoursAgo:"hace {0} hora(s)",daysAgo:"hace {0} d\xEDa(s)",lastModified:"\xDAltima modificaci\xF3n",refreshSuccess:"Decoraciones de fecha actualizadas",activationError:"Explorer Dates no se pudo activar",errorAccessingFile:"Error al acceder al archivo para la decoraci\xF3n",clearTelemetryPrompt:"Esto eliminar\xE1 permanentemente los eventos de telemetr\xEDa almacenados localmente para Explorer Dates. Esta acci\xF3n no se puede deshacer. \xBFContinuar?",clearTelemetryConfirm:"Borrar telemetr\xEDa",clearTelemetryCancel:"Cancelar",reportFormatDisabled:'El formato de informe "{0}" est\xE1 deshabilitado. Formatos permitidos: {1}',reportDownloadTriggered:"Descarga del informe iniciada en el navegador",selectReportTimeRangePlaceholder:"Seleccionar rango de tiempo del informe",selectReportFormatPlaceholder:"Seleccionar formato del informe",cleanupNoDeprecated:"\u2139\uFE0F No se encontraron configuraciones obsoletas para limpiar.",showMigrationHistoryNoHistory:"No se encontr\xF3 historial de migraci\xF3n.",resetConfirmation:"Esto restablecer\xE1 todas las configuraciones de Explorer Dates a sus valores predeterminados. \xBFEst\xE1s seguro?",resetConfirm:"Restablecer configuraciones",resetCancel:"Cancelar",resetSuccess:"\u2705 Se restablecieron {0} configuraciones a los valores predeterminados.",validateNoIssues:"\u2705 La configuraci\xF3n es v\xE1lida - no se encontraron problemas.",validateFoundIssues:"Se encontraron {0} problema(s) de configuraci\xF3n. \xBFDeseas ver los detalles?",validateShowDetails:"Mostrar detalles",validateDismiss:"Descartar",migrationNotificationMessage:"Explorer Dates actualiz\xF3 {0} configuraci\xF3n(es) por compatibilidad. Tu configuraci\xF3n se ha conservado.",migrationViewChanges:"Ver cambios",migrationOpenSettings:"Abrir configuraciones",deprecatedPrompt:"Explorer Dates encontr\xF3 {0} configuraci\xF3n(es) obsoleta(s). \xBFDeseas eliminarlas?",deprecatedClean:"Limpiar ahora",deprecatedKeep:"Mantener configuraciones antiguas",deprecatedAskLater:"Preguntar m\xE1s tarde",showFileLocation:"Mostrar ubicaci\xF3n del archivo",teamConfigCorrupted:"El archivo de configuraci\xF3n de equipo de Explorer Dates parece estar da\xF1ado. Verifica el archivo .explorer-dates-profiles.json o restaura desde una copia de seguridad.",appliedFromTeamProfile:'Se aplicaron {0} configuraciones de Explorer Dates desde el perfil de equipo "{1}".',documentedOverrides:"Se documentaron las anulaciones de Explorer Dates en .vscode/explorer-dates-overrides.md",teamConfigMissingProfile:"La configuraci\xF3n del equipo no tiene un perfil activo.",ephemeralStorageEnospc:"No se pudo guardar la configuraci\xF3n de equipo de Explorer Dates porque el disco est\xE1 lleno.",ephemeralStorageGeneric:"No se pudo guardar la configuraci\xF3n de equipo de Explorer Dates porque el espacio de trabajo es de solo lectura o los permisos est\xE1n restringidos.",ephemeralStorageSuffix:"Los cambios se mantendr\xE1n en memoria hasta que VS Code se reinicie, por lo que podr\xEDan perderse."}});var ar=_((Sa,Ci)=>{Ci.exports={migrationDetailsTitle:"Explorer Dates - Migration des param\xE8tres",migrationDetailsHeader:"Migration des param\xE8tres",gitAttributionWarning:"Explorer Dates : Les badges d\u2019attribution Git ne sont pas disponibles sur VS Code pour le Web. Les d\xE9corations bas\xE9es sur le temps restent disponibles.",noOverridesToDocument:"Aucune substitution \xE0 documenter.",overrideNotesHeader:"# Notes de substitution Explorer Dates\\n\\n",analysisCommandsDisabled:"Les commandes d\u2019analyse Explorer Dates sont d\xE9sactiv\xE9es. Les raccourcis comme Ctrl+Shift+M/H/A ne fonctionneront pas tant que vous n\u2019aurez pas activ\xE9 explorerDates.enableAnalysisCommands.",analysisEnableNow:"Activer maintenant",analysisEnablePartially:"L\u2019activation a partiellement r\xE9ussi. Mettez \xE0 jour explorerDates.enableAnalysisCommands manuellement dans les dossiers d\u2019espace de travail restants.",analysisEnableFailed:"\xC9chec de l\u2019activation : mettez \xE0 jour explorerDates.enableAnalysisCommands dans les param\xE8tres de l\u2019espace de travail.",workspaceTemplatesDisabled:"Les mod\xE8les d\u2019espace de travail sont d\xE9sactiv\xE9s. Activez explorerDates.enableWorkspaceTemplates pour utiliser cette commande.",workspaceTemplatesDisabledSave:"Les mod\xE8les d\u2019espace de travail sont d\xE9sactiv\xE9s. Activez explorerDates.enableWorkspaceTemplates pour enregistrer des mod\xE8les.",enterTemplateName:"Entrez le nom du mod\xE8le",enterTemplateDescription:"Entrez la description (facultatif)",failedToOpenTemplateManager:"Impossible d\u2019ouvrir le gestionnaire de mod\xE8les : {0}",failedToSaveTemplate:"Impossible d\u2019enregistrer le mod\xE8le : {0}",reportingDisabled:"Les fonctionnalit\xE9s de rapport sont d\xE9sactiv\xE9es. Activez explorerDates.enableExportReporting pour g\xE9n\xE9rer des rapports.",failedToGenerateReport:"Impossible de g\xE9n\xE9rer le rapport : {0}",apiDisabled:"L\u2019API Explorer Dates est d\xE9sactiv\xE9e via les param\xE8tres.",failedToShowApiInformation:"Impossible d\u2019afficher les informations de l\u2019API : {0}",failedToShowWorkspaceActivity:"Impossible d\u2019afficher l\u2019activit\xE9 de l\u2019espace de travail : {0}",failedToShowPerformanceAnalytics:"Impossible d\u2019afficher les analyses de performance : {0}",failedToShowCacheDebugInfo:"Impossible d\u2019afficher les informations de d\xE9bogage du cache : {0}",noWorkspaceFolderOpen:"Aucun dossier d\u2019espace de travail ouvert",now:"maintenant",minutes:"min",hours:"h",days:"j",weeks:"sem",months:"mois",years:"an",justNow:"\xE0 l\u2019instant",minutesAgo:"il y a {0} minute(s)",hoursAgo:"il y a {0} heure(s)",daysAgo:"il y a {0} jour(s)",lastModified:"Derni\xE8re modification",refreshSuccess:"D\xE9corations de date actualis\xE9es",activationError:"\xC9chec de l\u2019activation d\u2019Explorer Dates",errorAccessingFile:"Erreur lors de l\u2019acc\xE8s au fichier pour la d\xE9coration",clearTelemetryPrompt:"Cela supprimera d\xE9finitivement les \xE9v\xE9nements de t\xE9l\xE9m\xE9trie stock\xE9s localement pour Explorer Dates. Cette action est irr\xE9versible. Continuer ?",clearTelemetryConfirm:"Effacer la t\xE9l\xE9m\xE9trie",clearTelemetryCancel:"Annuler",reportFormatDisabled:'Le format de rapport "{0}" est d\xE9sactiv\xE9. Formats autoris\xE9s : {1}',reportDownloadTriggered:"T\xE9l\xE9chargement du rapport lanc\xE9 dans le navigateur",selectReportTimeRangePlaceholder:"S\xE9lectionner la p\xE9riode du rapport",selectReportFormatPlaceholder:"S\xE9lectionner le format du rapport",cleanupNoDeprecated:"\u2139\uFE0F Aucun param\xE8tre obsol\xE8te \xE0 nettoyer.",showMigrationHistoryNoHistory:"Aucun historique de migration trouv\xE9.",resetConfirmation:"Cela r\xE9initialisera tous les param\xE8tres Explorer Dates \xE0 leurs valeurs par d\xE9faut. \xCAtes-vous s\xFBr ?",resetConfirm:"R\xE9initialiser les param\xE8tres",resetCancel:"Annuler",resetSuccess:"\u2705 {0} param\xE8tres ont \xE9t\xE9 r\xE9initialis\xE9s aux valeurs par d\xE9faut.",validateNoIssues:"\u2705 La configuration est valide - aucun probl\xE8me d\xE9tect\xE9 !",validateFoundIssues:"{0} probl\xE8me(s) de configuration trouv\xE9(s). Voulez-vous voir les d\xE9tails ?",validateShowDetails:"Afficher les d\xE9tails",validateDismiss:"Ignorer",migrationNotificationMessage:"Explorer Dates a mis \xE0 jour {0} param\xE8tre(s) pour compatibilit\xE9. Votre configuration a \xE9t\xE9 conserv\xE9e.",migrationViewChanges:"Voir les modifications",migrationOpenSettings:"Ouvrir les param\xE8tres",deprecatedPrompt:"Explorer Dates a trouv\xE9 {0} param\xE8tre(s) obsol\xE8te(s). Voulez-vous les supprimer ?",deprecatedClean:"Nettoyer maintenant",deprecatedKeep:"Conserver les anciens param\xE8tres",deprecatedAskLater:"Demander plus tard",showFileLocation:"Afficher l\u2019emplacement du fichier",teamConfigCorrupted:"Le fichier de configuration d\u2019\xE9quipe Explorer Dates semble corrompu. V\xE9rifiez le fichier .explorer-dates-profiles.json ou restaurez-le depuis une sauvegarde.",appliedFromTeamProfile:'{0} param\xE8tres Explorer Dates appliqu\xE9s depuis le profil d\u2019\xE9quipe "{1}".',documentedOverrides:"Substitutions Explorer Dates document\xE9es dans .vscode/explorer-dates-overrides.md",teamConfigMissingProfile:"La configuration d\u2019\xE9quipe ne contient aucun profil actif.",ephemeralStorageEnospc:"Impossible d\u2019enregistrer la configuration d\u2019\xE9quipe Explorer Dates car le disque est plein.",ephemeralStorageGeneric:"Impossible d\u2019enregistrer la configuration d\u2019\xE9quipe Explorer Dates car l\u2019espace de travail est en lecture seule ou les permissions sont restreintes.",ephemeralStorageSuffix:"Les modifications seront conserv\xE9es en m\xE9moire jusqu\u2019au red\xE9marrage de VS Code et pourraient \xEAtre perdues."}});var or=_((Ta,Si)=>{Si.exports={migrationDetailsTitle:"Explorer Dates - Einstellungen migrieren",migrationDetailsHeader:"Einstellungen migrieren",gitAttributionWarning:"Explorer Dates: Git-Zuordnungsabzeichen sind in VS Code f\xFCr das Web nicht verf\xFCgbar. Zeitbasierte Hervorhebungen bleiben verf\xFCgbar.",noOverridesToDocument:"Keine \xDCberschreibungen zu dokumentieren.",overrideNotesHeader:"# Explorer Dates \xDCberschreibungsnotizen\\n\\n",analysisCommandsDisabled:"Die Analysebefehle von Explorer Dates sind deaktiviert. Tastenkombinationen wie Ctrl+Shift+M/H/A funktionieren nicht, bis explorerDates.enableAnalysisCommands aktiviert ist.",analysisEnableNow:"Jetzt aktivieren",analysisEnablePartially:"Die Aktivierung war teilweise erfolgreich. Aktualisieren Sie explorerDates.enableAnalysisCommands manuell in den verbleibenden Workspace-Ordnern.",analysisEnableFailed:"Aktivierung fehlgeschlagen: Aktualisieren Sie explorerDates.enableAnalysisCommands in den Workspace-Einstellungen.",workspaceTemplatesDisabled:"Workspace-Vorlagen sind deaktiviert. Aktivieren Sie explorerDates.enableWorkspaceTemplates, um diesen Befehl zu verwenden.",workspaceTemplatesDisabledSave:"Workspace-Vorlagen sind deaktiviert. Aktivieren Sie explorerDates.enableWorkspaceTemplates, um Vorlagen zu speichern.",enterTemplateName:"Vorlagenname eingeben",enterTemplateDescription:"Beschreibung eingeben (optional)",failedToOpenTemplateManager:"Fehler beim \xD6ffnen des Vorlagenmanagers: {0}",failedToSaveTemplate:"Fehler beim Speichern der Vorlage: {0}",reportingDisabled:"Berichtsfunktionen sind deaktiviert. Aktivieren Sie explorerDates.enableExportReporting, um Berichte zu erstellen.",failedToGenerateReport:"Fehler beim Erstellen des Berichts: {0}",apiDisabled:"Die Explorer Dates API ist in den Einstellungen deaktiviert.",failedToShowApiInformation:"Fehler beim Anzeigen der API-Informationen: {0}",failedToShowWorkspaceActivity:"Fehler beim Anzeigen der Workspace-Aktivit\xE4t: {0}",failedToShowPerformanceAnalytics:"Fehler beim Anzeigen der Leistungsanalysen: {0}",failedToShowCacheDebugInfo:"Fehler beim Anzeigen der Cache-Debug-Informationen: {0}",noWorkspaceFolderOpen:"Kein Workspace-Ordner ge\xF6ffnet",now:"jetzt",minutes:"Min",hours:"Std",days:"T",weeks:"W",months:"Mon",years:"J",justNow:"gerade eben",minutesAgo:"vor {0} Minute(n)",hoursAgo:"vor {0} Stunde(n)",daysAgo:"vor {0} Tag(en)",lastModified:"Zuletzt ge\xE4ndert",refreshSuccess:"Datumsdekorationen aktualisiert",activationError:"Explorer Dates konnte nicht aktiviert werden",errorAccessingFile:"Fehler beim Zugriff auf Datei f\xFCr Dekoration",clearTelemetryPrompt:"Dies l\xF6scht dauerhaft lokal gespeicherte Telemetrieereignisse f\xFCr Explorer Dates. Diese Aktion kann nicht r\xFCckg\xE4ngig gemacht werden. Fortfahren?",clearTelemetryConfirm:"Telemetrie l\xF6schen",clearTelemetryCancel:"Abbrechen",reportFormatDisabled:'Berichtsformat "{0}" ist deaktiviert. Zul\xE4ssige Formate: {1}',reportDownloadTriggered:"Bericht-Download im Browser gestartet",selectReportTimeRangePlaceholder:"Berichtszeitraum ausw\xE4hlen",selectReportFormatPlaceholder:"Berichtsformat ausw\xE4hlen",cleanupNoDeprecated:"\u2139\uFE0F Keine veralteten Einstellungen zum Bereinigen gefunden.",showMigrationHistoryNoHistory:"Kein Migrationsverlauf gefunden.",resetConfirmation:"Dies setzt alle Explorer Dates Einstellungen auf ihre Standardwerte zur\xFCck. Sind Sie sicher?",resetConfirm:"Einstellungen zur\xFCcksetzen",resetCancel:"Abbrechen",resetSuccess:"\u2705 {0} Einstellungen auf Standard zur\xFCckgesetzt.",validateNoIssues:"\u2705 Konfiguration ist g\xFCltig - keine Probleme gefunden!",validateFoundIssues:"{0} Konfigurationsproblem(e) gefunden. M\xF6chten Sie Details sehen?",validateShowDetails:"Details anzeigen",validateDismiss:"Verwerfen",migrationNotificationMessage:"Explorer Dates hat {0} Einstellung(en) zur Kompatibilit\xE4t aktualisiert. Ihre Konfiguration wurde beibehalten.",migrationViewChanges:"\xC4nderungen anzeigen",migrationOpenSettings:"Einstellungen \xF6ffnen",deprecatedPrompt:"Explorer Dates hat {0} veraltete Einstellung(en) gefunden. M\xF6chten Sie sie entfernen?",deprecatedClean:"Jetzt bereinigen",deprecatedKeep:"Alte Einstellungen behalten",deprecatedAskLater:"Sp\xE4ter fragen",showFileLocation:"Dateispeicherort anzeigen",teamConfigCorrupted:"Die Teamkonfigurationsdatei von Explorer Dates scheint besch\xE4digt zu sein. Bitte pr\xFCfen Sie die Datei .explorer-dates-profiles.json oder stellen Sie sie aus einem Backup wieder her.",appliedFromTeamProfile:'{0} Explorer Dates-Einstellungen aus dem Teamprofil "{1}" angewendet.',documentedOverrides:"Explorer Dates-\xDCberschreibungen in .vscode/explorer-dates-overrides.md dokumentiert",teamConfigMissingProfile:"Der Teamkonfiguration fehlt ein aktives Profil.",ephemeralStorageEnospc:"Die Teamkonfiguration von Explorer Dates konnte nicht gespeichert werden, da die Festplatte voll ist.",ephemeralStorageGeneric:"Die Teamkonfiguration von Explorer Dates konnte nicht gespeichert werden, da der Workspace schreibgesch\xFCtzt ist oder die Berechtigungen eingeschr\xE4nkt sind.",ephemeralStorageSuffix:"\xC4nderungen werden im Speicher behalten, bis VS Code neu startet, und k\xF6nnen verloren gehen."}});var sr=_((va,Ti)=>{Ti.exports={migrationDetailsTitle:"Explorer Dates - \u8A2D\u5B9A\u306E\u79FB\u884C",migrationDetailsHeader:"\u8A2D\u5B9A\u306E\u79FB\u884C",gitAttributionWarning:"Explorer Dates: Git \u306E\u5E30\u5C5E\u30D0\u30C3\u30B8\u306F VS Code for Web \u3067\u306F\u5229\u7528\u3067\u304D\u307E\u305B\u3093\u3002\u6642\u9593\u30D9\u30FC\u30B9\u306E\u88C5\u98FE\u306F\u5F15\u304D\u7D9A\u304D\u5229\u7528\u3067\u304D\u307E\u3059\u3002",noOverridesToDocument:"\u30C9\u30AD\u30E5\u30E1\u30F3\u30C8\u5316\u3059\u308B\u4E0A\u66F8\u304D\u306F\u3042\u308A\u307E\u305B\u3093\u3002",overrideNotesHeader:"# Explorer Dates \u4E0A\u66F8\u304D\u30E1\u30E2\\n\\n",analysisCommandsDisabled:"Explorer Dates \u306E\u5206\u6790\u30B3\u30DE\u30F3\u30C9\u306F\u7121\u52B9\u306B\u306A\u3063\u3066\u3044\u307E\u3059\u3002Ctrl+Shift+M/H/A \u306A\u3069\u306E\u30B7\u30E7\u30FC\u30C8\u30AB\u30C3\u30C8\u306F explorerDates.enableAnalysisCommands \u3092\u6709\u52B9\u306B\u3059\u308B\u307E\u3067\u6A5F\u80FD\u3057\u307E\u305B\u3093\u3002",analysisEnableNow:"\u4ECA\u3059\u3050\u6709\u52B9\u306B\u3059\u308B",analysisEnablePartially:"\u6709\u52B9\u5316\u306F\u4E00\u90E8\u6210\u529F\u3057\u307E\u3057\u305F\u3002\u6B8B\u308A\u306E\u30EF\u30FC\u30AF\u30B9\u30DA\u30FC\u30B9\u30D5\u30A9\u30EB\u30C0\u30FC\u3067 explorerDates.enableAnalysisCommands \u3092\u624B\u52D5\u3067\u66F4\u65B0\u3057\u3066\u304F\u3060\u3055\u3044\u3002",analysisEnableFailed:"\u6709\u52B9\u5316\u306B\u5931\u6557\u3057\u307E\u3057\u305F\uFF1A\u30EF\u30FC\u30AF\u30B9\u30DA\u30FC\u30B9\u8A2D\u5B9A\u3067 explorerDates.enableAnalysisCommands \u3092\u66F4\u65B0\u3057\u3066\u304F\u3060\u3055\u3044\u3002",workspaceTemplatesDisabled:"\u30EF\u30FC\u30AF\u30B9\u30DA\u30FC\u30B9\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8\u306F\u7121\u52B9\u306B\u306A\u3063\u3066\u3044\u307E\u3059\u3002\u3053\u306E\u30B3\u30DE\u30F3\u30C9\u3092\u4F7F\u7528\u3059\u308B\u306B\u306F explorerDates.enableWorkspaceTemplates \u3092\u6709\u52B9\u306B\u3057\u3066\u304F\u3060\u3055\u3044\u3002",workspaceTemplatesDisabledSave:"\u30EF\u30FC\u30AF\u30B9\u30DA\u30FC\u30B9\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8\u306F\u7121\u52B9\u306B\u306A\u3063\u3066\u3044\u307E\u3059\u3002\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8\u3092\u4FDD\u5B58\u3059\u308B\u306B\u306F explorerDates.enableWorkspaceTemplates \u3092\u6709\u52B9\u306B\u3057\u3066\u304F\u3060\u3055\u3044\u3002",enterTemplateName:"\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8\u540D\u3092\u5165\u529B",enterTemplateDescription:"\u8AAC\u660E\u3092\u5165\u529B\uFF08\u4EFB\u610F\uFF09",failedToOpenTemplateManager:"\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8\u30DE\u30CD\u30FC\u30B8\u30E3\u30FC\u3092\u958B\u3051\u307E\u305B\u3093\u3067\u3057\u305F: {0}",failedToSaveTemplate:"\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8\u306E\u4FDD\u5B58\u306B\u5931\u6557\u3057\u307E\u3057\u305F: {0}",reportingDisabled:"\u30EC\u30DD\u30FC\u30C8\u6A5F\u80FD\u306F\u7121\u52B9\u306B\u306A\u3063\u3066\u3044\u307E\u3059\u3002\u30EC\u30DD\u30FC\u30C8\u3092\u751F\u6210\u3059\u308B\u306B\u306F explorerDates.enableExportReporting \u3092\u6709\u52B9\u306B\u3057\u3066\u304F\u3060\u3055\u3044\u3002",failedToGenerateReport:"\u30EC\u30DD\u30FC\u30C8\u306E\u751F\u6210\u306B\u5931\u6557\u3057\u307E\u3057\u305F: {0}",apiDisabled:"Explorer Dates API \u306F\u8A2D\u5B9A\u3067\u7121\u52B9\u306B\u306A\u3063\u3066\u3044\u307E\u3059\u3002",failedToShowApiInformation:"API \u60C5\u5831\u306E\u8868\u793A\u306B\u5931\u6557\u3057\u307E\u3057\u305F: {0}",failedToShowWorkspaceActivity:"\u30EF\u30FC\u30AF\u30B9\u30DA\u30FC\u30B9\u306E\u30A2\u30AF\u30C6\u30A3\u30D3\u30C6\u30A3\u3092\u8868\u793A\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F: {0}",failedToShowPerformanceAnalytics:"\u30D1\u30D5\u30A9\u30FC\u30DE\u30F3\u30B9\u5206\u6790\u3092\u8868\u793A\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F: {0}",failedToShowCacheDebugInfo:"\u30AD\u30E3\u30C3\u30B7\u30E5\u306E\u30C7\u30D0\u30C3\u30B0\u60C5\u5831\u3092\u8868\u793A\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F: {0}",noWorkspaceFolderOpen:"\u30EF\u30FC\u30AF\u30B9\u30DA\u30FC\u30B9\u30D5\u30A9\u30EB\u30C0\u30FC\u304C\u958B\u304B\u308C\u3066\u3044\u307E\u305B\u3093",now:"\u4ECA",minutes:"\u5206",hours:"\u6642\u9593",days:"\u65E5",weeks:"\u9031",months:"\u304B\u6708",years:"\u5E74",justNow:"\u305F\u3063\u305F\u4ECA",minutesAgo:"{0} \u5206\u524D",hoursAgo:"{0} \u6642\u9593\u524D",daysAgo:"{0} \u65E5\u524D",lastModified:"\u6700\u7D42\u66F4\u65B0",refreshSuccess:"\u65E5\u4ED8\u88C5\u98FE\u3092\u66F4\u65B0\u3057\u307E\u3057\u305F",activationError:"Explorer Dates \u306E\u6709\u52B9\u5316\u306B\u5931\u6557\u3057\u307E\u3057\u305F",errorAccessingFile:"\u88C5\u98FE\u7528\u30D5\u30A1\u30A4\u30EB\u3078\u306E\u30A2\u30AF\u30BB\u30B9\u30A8\u30E9\u30FC",clearTelemetryPrompt:"Explorer Dates \u306E\u30ED\u30FC\u30AB\u30EB\u4FDD\u5B58\u30C6\u30EC\u30E1\u30C8\u30EA\u30A4\u30D9\u30F3\u30C8\u3092\u5B8C\u5168\u306B\u524A\u9664\u3057\u307E\u3059\u3002\u3053\u306E\u64CD\u4F5C\u306F\u5143\u306B\u623B\u305B\u307E\u305B\u3093\u3002\u7D9A\u884C\u3057\u307E\u3059\u304B\uFF1F",clearTelemetryConfirm:"\u30C6\u30EC\u30E1\u30C8\u30EA\u3092\u524A\u9664",clearTelemetryCancel:"\u30AD\u30E3\u30F3\u30BB\u30EB",reportFormatDisabled:"\u30EC\u30DD\u30FC\u30C8\u5F62\u5F0F\u300C{0}\u300D\u306F\u7121\u52B9\u3067\u3059\u3002\u8A31\u53EF\u3055\u308C\u3066\u3044\u308B\u5F62\u5F0F: {1}",reportDownloadTriggered:"\u30D6\u30E9\u30A6\u30B6\u3067\u30EC\u30DD\u30FC\u30C8\u306E\u30C0\u30A6\u30F3\u30ED\u30FC\u30C9\u3092\u958B\u59CB\u3057\u307E\u3057\u305F",selectReportTimeRangePlaceholder:"\u30EC\u30DD\u30FC\u30C8\u306E\u671F\u9593\u3092\u9078\u629E",selectReportFormatPlaceholder:"\u30EC\u30DD\u30FC\u30C8\u5F62\u5F0F\u3092\u9078\u629E",cleanupNoDeprecated:"\u2139\uFE0F \u30AF\u30EA\u30FC\u30F3\u30A2\u30C3\u30D7\u3059\u308B\u975E\u63A8\u5968\u8A2D\u5B9A\u306F\u3042\u308A\u307E\u305B\u3093\u3002",showMigrationHistoryNoHistory:"\u79FB\u884C\u5C65\u6B74\u304C\u898B\u3064\u304B\u308A\u307E\u305B\u3093\u3002",resetConfirmation:"Explorer Dates \u306E\u3059\u3079\u3066\u306E\u8A2D\u5B9A\u3092\u65E2\u5B9A\u5024\u306B\u30EA\u30BB\u30C3\u30C8\u3057\u307E\u3059\u3002\u3088\u308D\u3057\u3044\u3067\u3059\u304B\uFF1F",resetConfirm:"\u8A2D\u5B9A\u3092\u30EA\u30BB\u30C3\u30C8",resetCancel:"\u30AD\u30E3\u30F3\u30BB\u30EB",resetSuccess:"\u2705 {0} \u4EF6\u306E\u8A2D\u5B9A\u3092\u65E2\u5B9A\u5024\u306B\u30EA\u30BB\u30C3\u30C8\u3057\u307E\u3057\u305F\u3002",validateNoIssues:"\u2705 \u8A2D\u5B9A\u306F\u6709\u52B9\u3067\u3059 - \u554F\u984C\u306F\u898B\u3064\u304B\u308A\u307E\u305B\u3093\u3067\u3057\u305F\uFF01",validateFoundIssues:"{0} \u4EF6\u306E\u8A2D\u5B9A\u554F\u984C\u304C\u898B\u3064\u304B\u308A\u307E\u3057\u305F\u3002\u8A73\u7D30\u3092\u8868\u793A\u3057\u307E\u3059\u304B\uFF1F",validateShowDetails:"\u8A73\u7D30\u3092\u8868\u793A",validateDismiss:"\u9589\u3058\u308B",migrationNotificationMessage:"Explorer Dates \u306F\u4E92\u63DB\u6027\u306E\u305F\u3081\u306B {0} \u4EF6\u306E\u8A2D\u5B9A\u3092\u66F4\u65B0\u3057\u307E\u3057\u305F\u3002\u8A2D\u5B9A\u306F\u4FDD\u6301\u3055\u308C\u3066\u3044\u307E\u3059\u3002",migrationViewChanges:"\u5909\u66F4\u3092\u8868\u793A",migrationOpenSettings:"\u8A2D\u5B9A\u3092\u958B\u304F",deprecatedPrompt:"Explorer Dates \u306F {0} \u4EF6\u306E\u975E\u63A8\u5968\u8A2D\u5B9A\u3092\u691C\u51FA\u3057\u307E\u3057\u305F\u3002\u524A\u9664\u3057\u307E\u3059\u304B\uFF1F",deprecatedClean:"\u4ECA\u3059\u3050\u30AF\u30EA\u30FC\u30F3\u30A2\u30C3\u30D7",deprecatedKeep:"\u53E4\u3044\u8A2D\u5B9A\u3092\u4FDD\u6301",deprecatedAskLater:"\u5F8C\u3067\u78BA\u8A8D",showFileLocation:"\u30D5\u30A1\u30A4\u30EB\u306E\u5834\u6240\u3092\u8868\u793A",teamConfigCorrupted:"Explorer Dates \u306E\u30C1\u30FC\u30E0\u8A2D\u5B9A\u30D5\u30A1\u30A4\u30EB\u304C\u7834\u640D\u3057\u3066\u3044\u308B\u53EF\u80FD\u6027\u304C\u3042\u308A\u307E\u3059\u3002.explorer-dates-profiles.json \u3092\u78BA\u8A8D\u3059\u308B\u304B\u30D0\u30C3\u30AF\u30A2\u30C3\u30D7\u304B\u3089\u5FA9\u5143\u3057\u3066\u304F\u3060\u3055\u3044\u3002",appliedFromTeamProfile:"\u30C1\u30FC\u30E0\u30D7\u30ED\u30D5\u30A1\u30A4\u30EB\u300C{1}\u300D\u304B\u3089 {0} \u4EF6\u306E Explorer Dates \u8A2D\u5B9A\u3092\u9069\u7528\u3057\u307E\u3057\u305F\u3002",documentedOverrides:".vscode/explorer-dates-overrides.md \u306B Explorer Dates \u306E\u4E0A\u66F8\u304D\u3092\u8A18\u9332\u3057\u307E\u3057\u305F",teamConfigMissingProfile:"\u30C1\u30FC\u30E0\u8A2D\u5B9A\u306B\u30A2\u30AF\u30C6\u30A3\u30D6\u306A\u30D7\u30ED\u30D5\u30A1\u30A4\u30EB\u304C\u3042\u308A\u307E\u305B\u3093\u3002",ephemeralStorageEnospc:"\u30C7\u30A3\u30B9\u30AF\u5BB9\u91CF\u4E0D\u8DB3\u306E\u305F\u3081\u3001Explorer Dates \u306E\u30C1\u30FC\u30E0\u8A2D\u5B9A\u3092\u4FDD\u5B58\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002",ephemeralStorageGeneric:"\u30EF\u30FC\u30AF\u30B9\u30DA\u30FC\u30B9\u304C\u8AAD\u307F\u53D6\u308A\u5C02\u7528\u3001\u307E\u305F\u306F\u6A29\u9650\u304C\u5236\u9650\u3055\u308C\u3066\u3044\u308B\u305F\u3081\u3001Explorer Dates \u306E\u30C1\u30FC\u30E0\u8A2D\u5B9A\u3092\u4FDD\u5B58\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002",ephemeralStorageSuffix:"\u5909\u66F4\u306F VS Code \u304C\u518D\u8D77\u52D5\u3059\u308B\u307E\u3067\u30E1\u30E2\u30EA\u306B\u4FDD\u6301\u3055\u308C\u308B\u305F\u3081\u3001\u5931\u308F\u308C\u308B\u53EF\u80FD\u6027\u304C\u3042\u308A\u307E\u3059\u3002"}});var cr=_((Fa,vi)=>{vi.exports={migrationDetailsTitle:"Explorer Dates - \u8BBE\u7F6E\u8FC1\u79FB",migrationDetailsHeader:"\u8BBE\u7F6E\u8FC1\u79FB",gitAttributionWarning:"Explorer Dates\uFF1AGit \u5F52\u5C5E\u5FBD\u7AE0\u5728 VS Code Web \u7248\u4E2D\u4E0D\u53EF\u7528\u3002\u57FA\u4E8E\u65F6\u95F4\u7684\u88C5\u9970\u4ECD\u7136\u53EF\u7528\u3002",noOverridesToDocument:"\u6CA1\u6709\u9700\u8981\u8BB0\u5F55\u7684\u8986\u76D6\u9879\u3002",overrideNotesHeader:"# Explorer Dates \u8986\u76D6\u8BF4\u660E\\n\\n",analysisCommandsDisabled:"Explorer Dates \u5206\u6790\u547D\u4EE4\u5DF2\u7981\u7528\u3002\u5728\u542F\u7528 explorerDates.enableAnalysisCommands \u4E4B\u524D\uFF0CCtrl+Shift+M/H/A \u7B49\u5FEB\u6377\u952E\u5C06\u65E0\u6CD5\u4F7F\u7528\u3002",analysisEnableNow:"\u7ACB\u5373\u542F\u7528",analysisEnablePartially:"\u542F\u7528\u90E8\u5206\u6210\u529F\u3002\u8BF7\u5728\u5269\u4F59\u7684\u5DE5\u4F5C\u533A\u6587\u4EF6\u5939\u4E2D\u624B\u52A8\u66F4\u65B0 explorerDates.enableAnalysisCommands\u3002",analysisEnableFailed:"\u542F\u7528\u5931\u8D25\uFF1A\u8BF7\u5728\u5DE5\u4F5C\u533A\u8BBE\u7F6E\u4E2D\u66F4\u65B0 explorerDates.enableAnalysisCommands\u3002",workspaceTemplatesDisabled:"\u5DE5\u4F5C\u533A\u6A21\u677F\u5DF2\u7981\u7528\u3002\u542F\u7528 explorerDates.enableWorkspaceTemplates \u4EE5\u4F7F\u7528\u6B64\u547D\u4EE4\u3002",workspaceTemplatesDisabledSave:"\u5DE5\u4F5C\u533A\u6A21\u677F\u5DF2\u7981\u7528\u3002\u542F\u7528 explorerDates.enableWorkspaceTemplates \u4EE5\u4FDD\u5B58\u6A21\u677F\u3002",enterTemplateName:"\u8F93\u5165\u6A21\u677F\u540D\u79F0",enterTemplateDescription:"\u8F93\u5165\u63CF\u8FF0\uFF08\u53EF\u9009\uFF09",failedToOpenTemplateManager:"\u65E0\u6CD5\u6253\u5F00\u6A21\u677F\u7BA1\u7406\u5668\uFF1A{0}",failedToSaveTemplate:"\u4FDD\u5B58\u6A21\u677F\u5931\u8D25\uFF1A{0}",reportingDisabled:"\u62A5\u8868\u529F\u80FD\u5DF2\u7981\u7528\u3002\u542F\u7528 explorerDates.enableExportReporting \u4EE5\u751F\u6210\u62A5\u8868\u3002",failedToGenerateReport:"\u751F\u6210\u62A5\u8868\u5931\u8D25\uFF1A{0}",apiDisabled:"Explorer Dates API \u5DF2\u901A\u8FC7\u8BBE\u7F6E\u7981\u7528\u3002",failedToShowApiInformation:"\u663E\u793A API \u4FE1\u606F\u5931\u8D25\uFF1A{0}",failedToShowWorkspaceActivity:"\u663E\u793A\u5DE5\u4F5C\u533A\u6D3B\u52A8\u5931\u8D25\uFF1A{0}",failedToShowPerformanceAnalytics:"\u663E\u793A\u6027\u80FD\u5206\u6790\u5931\u8D25\uFF1A{0}",failedToShowCacheDebugInfo:"\u663E\u793A\u7F13\u5B58\u8C03\u8BD5\u4FE1\u606F\u5931\u8D25\uFF1A{0}",noWorkspaceFolderOpen:"\u672A\u6253\u5F00\u4EFB\u4F55\u5DE5\u4F5C\u533A\u6587\u4EF6\u5939",now:"\u73B0\u5728",minutes:"\u5206",hours:"\u5C0F\u65F6",days:"\u5929",weeks:"\u5468",months:"\u4E2A\u6708",years:"\u5E74",justNow:"\u521A\u521A",minutesAgo:"{0} \u5206\u949F\u524D",hoursAgo:"{0} \u5C0F\u65F6\u524D",daysAgo:"{0} \u5929\u524D",lastModified:"\u6700\u540E\u4FEE\u6539",refreshSuccess:"\u65E5\u671F\u88C5\u9970\u5DF2\u5237\u65B0",activationError:"Explorer Dates \u542F\u52A8\u5931\u8D25",errorAccessingFile:"\u8BBF\u95EE\u7528\u4E8E\u88C5\u9970\u7684\u6587\u4EF6\u65F6\u51FA\u9519",clearTelemetryPrompt:"\u8FD9\u5C06\u6C38\u4E45\u5220\u9664\u672C\u5730\u5B58\u50A8\u7684 Explorer Dates \u9065\u6D4B\u4E8B\u4EF6\u3002\u6B64\u64CD\u4F5C\u65E0\u6CD5\u64A4\u9500\u3002\u662F\u5426\u7EE7\u7EED\uFF1F",clearTelemetryConfirm:"\u6E05\u9664\u9065\u6D4B",clearTelemetryCancel:"\u53D6\u6D88",reportFormatDisabled:"\u62A5\u8868\u683C\u5F0F\u201C{0}\u201D\u5DF2\u7981\u7528\u3002\u5141\u8BB8\u7684\u683C\u5F0F\uFF1A{1}",reportDownloadTriggered:"\u5DF2\u5728\u6D4F\u89C8\u5668\u4E2D\u89E6\u53D1\u62A5\u8868\u4E0B\u8F7D",selectReportTimeRangePlaceholder:"\u9009\u62E9\u62A5\u8868\u65F6\u95F4\u8303\u56F4",selectReportFormatPlaceholder:"\u9009\u62E9\u62A5\u8868\u683C\u5F0F",cleanupNoDeprecated:"\u2139\uFE0F \u672A\u53D1\u73B0\u9700\u8981\u6E05\u7406\u7684\u5DF2\u5F03\u7528\u8BBE\u7F6E\u3002",showMigrationHistoryNoHistory:"\u672A\u627E\u5230\u8FC1\u79FB\u5386\u53F2\u3002",resetConfirmation:"\u8FD9\u5C06\u628A\u6240\u6709 Explorer Dates \u8BBE\u7F6E\u91CD\u7F6E\u4E3A\u9ED8\u8BA4\u503C\u3002\u786E\u5B9A\u5417\uFF1F",resetConfirm:"\u91CD\u7F6E\u8BBE\u7F6E",resetCancel:"\u53D6\u6D88",resetSuccess:"\u2705 \u5DF2\u5C06 {0} \u9879\u8BBE\u7F6E\u91CD\u7F6E\u4E3A\u9ED8\u8BA4\u503C\u3002",validateNoIssues:"\u2705 \u914D\u7F6E\u6709\u6548 - \u672A\u53D1\u73B0\u95EE\u9898\uFF01",validateFoundIssues:"\u53D1\u73B0 {0} \u4E2A\u914D\u7F6E\u95EE\u9898\u3002\u662F\u5426\u67E5\u770B\u8BE6\u7EC6\u4FE1\u606F\uFF1F",validateShowDetails:"\u663E\u793A\u8BE6\u7EC6\u4FE1\u606F",validateDismiss:"\u5173\u95ED",migrationNotificationMessage:"Explorer Dates \u4E3A\u517C\u5BB9\u6027\u66F4\u65B0\u4E86 {0} \u9879\u8BBE\u7F6E\u3002\u60A8\u7684\u914D\u7F6E\u5DF2\u4FDD\u7559\u3002",migrationViewChanges:"\u67E5\u770B\u66F4\u6539",migrationOpenSettings:"\u6253\u5F00\u8BBE\u7F6E",deprecatedPrompt:"Explorer Dates \u53D1\u73B0 {0} \u4E2A\u5DF2\u5F03\u7528\u8BBE\u7F6E\u3002\u662F\u5426\u5220\u9664\uFF1F",deprecatedClean:"\u7ACB\u5373\u6E05\u7406",deprecatedKeep:"\u4FDD\u7559\u65E7\u8BBE\u7F6E",deprecatedAskLater:"\u7A0D\u540E\u8BE2\u95EE",showFileLocation:"\u663E\u793A\u6587\u4EF6\u4F4D\u7F6E",teamConfigCorrupted:"Explorer Dates \u56E2\u961F\u914D\u7F6E\u6587\u4EF6\u4F3C\u4E4E\u5DF2\u635F\u574F\u3002\u8BF7\u68C0\u67E5 .explorer-dates-profiles.json \u6587\u4EF6\u6216\u4ECE\u5907\u4EFD\u6062\u590D\u3002",appliedFromTeamProfile:"\u5DF2\u4ECE\u56E2\u961F\u914D\u7F6E\u6587\u4EF6\u201C{1}\u201D\u5E94\u7528 {0} \u9879 Explorer Dates \u8BBE\u7F6E\u3002",documentedOverrides:"\u5DF2\u5728 .vscode/explorer-dates-overrides.md \u4E2D\u8BB0\u5F55 Explorer Dates \u8986\u76D6\u9879",teamConfigMissingProfile:"\u56E2\u961F\u914D\u7F6E\u7F3A\u5C11\u6D3B\u52A8\u914D\u7F6E\u6587\u4EF6\u3002",ephemeralStorageEnospc:"\u7531\u4E8E\u78C1\u76D8\u5DF2\u6EE1\uFF0C\u65E0\u6CD5\u4FDD\u5B58 Explorer Dates \u56E2\u961F\u914D\u7F6E\u3002",ephemeralStorageGeneric:"\u7531\u4E8E\u5DE5\u4F5C\u533A\u4E3A\u53EA\u8BFB\u6216\u6743\u9650\u53D7\u9650\uFF0C\u65E0\u6CD5\u4FDD\u5B58 Explorer Dates \u56E2\u961F\u914D\u7F6E\u3002",ephemeralStorageSuffix:"\u66F4\u6539\u5C06\u5728 VS Code \u91CD\u542F\u524D\u4FDD\u5B58\u5728\u5185\u5B58\u4E2D\uFF0C\u56E0\u6B64\u53EF\u80FD\u4F1A\u4E22\u5931\u3002"}});var ur=_((Aa,lr)=>{var j={};j.en=nr();j.es=ir();j.fr=ar();j.de=or();j.ja=sr();j.zh=cr();lr.exports=j});var at=_((Ra,hr)=>{var V=require("vscode"),z={en:{now:"now",minutes:"m",hours:"h",days:"d",weeks:"w",months:"mo",years:"y",justNow:"just now",minutesAgo:e=>`${e} minute${e!==1?"s":""} ago`,hoursAgo:e=>`${e} hour${e!==1?"s":""} ago`,yesterday:"yesterday",daysAgo:e=>`${e} day${e!==1?"s":""} ago`,lastModified:"Last modified",refreshSuccess:"Date decorations refreshed",activationError:"Explorer Dates failed to activate",errorAccessingFile:"Error accessing file for decoration",clearTelemetryPrompt:"This will permanently delete locally-stored telemetry events for Explorer Dates. This action cannot be undone. Proceed?",clearTelemetryConfirm:"Clear Telemetry",clearTelemetryCancel:"Cancel",clearTelemetrySuccess:"\u2705 Explorer Dates telemetry cleared.",migrateChecking:"Checking for settings that need migration...",migrateAllUpToDate:"\u2705 All settings are up to date!",migrateApplied:e=>`\u2705 Explorer Dates maintenance applied: ${e}.`,organizeSettingsResult:e=>`Explorer Dates settings organized: ${e}`,cleanupSuccess:"\u2705 Deprecated settings have been cleaned up!",reportFormatDisabled:(e,t)=>`Report format "${e}" is disabled. Allowed formats: ${t}`,reportSaved:e=>`Report saved to ${e}`,reportGenerateFailed:"Failed to generate report",reportDownloadTriggered:"Report download triggered in browser",selectReportTimeRangePlaceholder:"Select report time range",selectReportFormatPlaceholder:"Select report format",cleanupNoDeprecated:"\u2139\uFE0F No deprecated settings found to clean up.",showMigrationHistoryNoHistory:"No migration history found.",resetConfirmation:"This will reset all Explorer Dates settings to their default values. Are you sure?",migrationDetailsTitle:"Explorer Dates - Settings Migration",migrationDetailsHeader:"Settings Migration",gitAttributionWarning:"Explorer Dates: Git attribution badges are unavailable on VS Code for Web. Time-based decorations remain available.",noOverridesToDocument:"No overrides to document.",overrideNotesHeader:`# Explorer Dates Override Notes -`,analysisCommandsDisabled:"Explorer Dates analysis commands are disabled. Shortcuts like Ctrl+Shift+M/H/A will not work until you enable explorerDates.enableAnalysisCommands.",analysisEnableNow:"Enable Now",analysisEnablePartially:"Enable partially succeeded. Update explorerDates.enableAnalysisCommands in remaining workspace folders manually.",analysisEnableFailed:"Enable failed: update explorerDates.enableAnalysisCommands in workspace settings.",workspaceTemplatesDisabled:"Workspace templates are disabled. Enable explorerDates.enableWorkspaceTemplates to use this command.",workspaceTemplatesDisabledSave:"Workspace templates are disabled. Enable explorerDates.enableWorkspaceTemplates to save templates.",enterTemplateName:"Enter template name",enterTemplateDescription:"Enter description (optional)",failedToOpenTemplateManager:e=>`Failed to open template manager: ${e}`,failedToSaveTemplate:e=>`Failed to save template: ${e}`,reportingDisabled:"Reporting features are disabled. Enable explorerDates.enableExportReporting to generate reports.",failedToGenerateReport:e=>`Failed to generate report: ${e}`,apiDisabled:"Explorer Dates API is disabled via settings.",failedToShowApiInformation:e=>`Failed to show API information: ${e}`,failedToShowWorkspaceActivity:e=>`Failed to show workspace activity: ${e}`,failedToShowPerformanceAnalytics:e=>`Failed to show performance analytics: ${e}`,failedToShowCacheDebugInfo:e=>`Failed to show cache debug info: ${e}`,noWorkspaceFolderOpen:"No workspace folder open",resetConfirm:"Reset Settings",resetCancel:"Cancel",resetSuccess:e=>`\u2705 Reset ${e} settings to defaults.`,validateNoIssues:"\u2705 Configuration is valid - no issues found!",validateFoundIssues:e=>`Found ${e} configuration issue(s). Would you like to see details?`,validateShowDetails:"Show Details",validateDismiss:"Dismiss",migrationNotificationMessage:e=>`Explorer Dates updated ${e} setting(s) for compatibility. Your configuration has been preserved.`,migrationViewChanges:"View Changes",migrationOpenSettings:"Open Settings",deprecatedPrompt:e=>`Explorer Dates found ${e} deprecated setting(s). Would you like to remove them?`,deprecatedClean:"Clean Up Now",deprecatedKeep:"Keep Old Settings",deprecatedAskLater:"Ask Later",showFileLocation:"Show File Location",teamConfigCorrupted:"Explorer Dates team configuration file appears to be corrupted. Please check the .explorer-dates-profiles.json file or restore from backup.",appliedFromTeamProfile:(e,t)=>`Applied ${e} Explorer Dates settings from team profile "${t}".`,documentedOverrides:"Documented Explorer Dates overrides in .vscode/explorer-dates-overrides.md",teamConfigMissingProfile:"Team configuration is missing an active profile.",ephemeralStorageEnospc:"Explorer Dates team configuration could not be saved because the disk is full.",ephemeralStorageGeneric:"Explorer Dates team configuration could not be saved because the workspace is read-only or permissions are restricted.",ephemeralStorageSuffix:" Changes will be kept in memory until VS Code restarts, so they may be lost."}};try{let e=ur();if(e&&typeof e=="object")for(let[t,r]of Object.entries(e)){z[t]||(z[t]={});for(let[n,i]of Object.entries(r))typeof z[t][n]>"u"&&(z[t][n]=i)}}catch{}var De=class{constructor(){this.Ce="en",this.E=null,this.ft(),typeof V.workspace.onDidChangeConfiguration=="function"?this.E=V.workspace.onDidChangeConfiguration(t=>{t.affectsConfiguration("explorerDates.locale")&&this.ft()}):this.E=null}ft(){let r=V.workspace.getConfiguration("explorerDates").get("locale","auto");if(r==="auto"){let n=V&&V.env&&typeof V.env.language=="string"?V.env.language:"en";try{r=String(n||"en").split("-")[0]}catch{r="en"}}z[r]||(r="en"),this.Ce=r}getString(t,...r){let i=(z[this.Ce]||z.en)[t];return typeof i=="function"?i(...r):i||z.en[t]||t}getCurrentLocale(){return this.Ce}formatDate(t,r={}){try{return t.toLocaleDateString(this.Ce,r)}catch{return t.toLocaleDateString("en",r)}}dispose(){this.E&&(this.E.dispose(),this.E=null),fe===this&&(fe=null)}},fe=null;function Fi(){return fe||(fe=new De),fe}hr.exports={LocalizationManager:De,getLocalization:Fi}});var ot=_((Pa,dr)=>{function Ai(e){let t=require("vscode");function r(l,d,h,g,y,m){if(!e.Gt||!g)return m&&(m.misses++,m.allocations++),y();if(l.has(g))return m&&(m.hits++,m.reuses++),l.get(g);m&&(m.misses++,m.allocations++);let D=y();if(l.set(g,D),d.push(g),d.length>h){let E=d.shift();E&&l.delete(E)}return D}function n({formatType:l,diffMinutes:d,diffHours:h,diffDays:g,diffWeeks:y,diffMonths:m,date:D}){let E=(M,F=null)=>({value:M,key:F?`badge:${l||"default"}:${F}`:null});switch(l){case"relative-short":case"relative-long":return d<1?E("\u25CF\u25CF","just"):d<60?E(`${Math.min(d,99)}m`,`m:${Math.min(d,99)}`):h<24?E(`${Math.min(h,23)}h`,`h:${Math.min(h,23)}`):g<7?E(`${g}d`,`d:${g}`):y<4?E(`${y}w`,`w:${y}`):m<12?E(`${m}M`,`M:${m}`):E("1y","y:1");case"absolute-short":case"absolute-long":{let M=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],F=D.getDate(),X=`${M[D.getMonth()]}${F<10?"0"+F:F}`,w=[D.getMonth(),F];return l==="absolute-long"&&w.push(D.getFullYear()),E(X,`abs:${w.join("-")}`)}case"technical":return d<60?E(`${d}m`,`tech:m:${d}`):h<24?E(`${h}h`,`tech:h:${h}`):E(`${g}d`,`tech:d:${g}`);case"minimal":return h<1?E("\u2022\u2022","min:now"):h<24?E("\u25CB\u25CB","min:hours"):E("\u2500\u2500","min:days");default:return d<60?E(`${d}m`,`smart:m:${d}`):h<24?E(`${h}h`,`smart:h:${h}`):E(`${g}d`,`smart:d:${g}`)}}function i(l,d,h=null){let y=h!==null?h:new Date().getTime()-l.getTime();if(y<0)return e._logger.debug(`File has future modification time (diffMs: ${y}), treating as just modified`),"\u25CF\u25CF";let m=Math.floor(y/(1e3*60)),D=Math.floor(y/(1e3*60*60)),E=Math.floor(y/(1e3*60*60*24)),M=Math.floor(E/7),F=Math.floor(E/30),X=n({formatType:d,diffMinutes:m,diffHours:D,diffDays:E,diffWeeks:M,diffMonths:F,date:l});return r(e.x,e.Se,e.Xt,X.key,()=>X.value,e.Yt)}function a(l){if(!l)return"none";if(typeof l=="string")return l;if(l.id)return l.id;try{return JSON.stringify(l)}catch{return String(l)}}function o(l,d,h){let g=l||"",y=d||"",m=a(h);return`${g}::${m}::${y}`}function s({badge:l,tooltip:d,color:h}){if(!e.Zt){e.z.misses++,e.z.allocations++;let m=new t.FileDecoration(l||"??");return d&&(m.tooltip=d),h&&(m.color=h),m.propagate=!1,m}if(!l)return e.z.allocations++,new t.FileDecoration("??");let g=o(l,d,h);if(g&&e.c.has(g))return e.z.hits++,e.z.reuses++,e.c.get(g);let y=new t.FileDecoration(l);if(d&&(y.tooltip=d),h&&(y.color=h),y.propagate=!1,e.z.allocations++,g&&(e.c.set(g,y),e.H.push(g),e.H.length>e.Jt)){let m=e.H.shift();m&&m!==g&&e.c.delete(m)}return e.z.misses++,y}function c(l="unspecified"){e.c.size!==0&&(e.c.clear(),e.H.length=0,e._logger.debug(`\u{1F9FC} Cleared decoration pool (${l})`))}async function u({filePath:l,stat:d,gitBlame:h,shouldUseAccessibleTooltips:g,fileSizeFormat:y}){if(g){let D=e._accessibility?.getAccessibleTooltip?.(l,d.mtime,d.birthtime,d.size,h);if(D)return D}let m=[];try{let D=e.p.formatDate(d.mtime);if(m.push(`${D}`),y&&typeof d.size=="number"){let E=e.gt(d.size,y);m.push(E)}h&&h.author&&m.push(`Author: ${h.author}`)}catch(D){e._logger.debug("Tooltip builder failed",D)}return m.join(" \u2014 ")}return{acquireDecorationFromPool:s,clearDecorationPool:c,Qr:o,tn:a,Qt:i,rn:n,er:r,Te:u}}dr.exports={createDecorationLogic:Ai}});var Ce=_((exports,module)=>{function createDecorationProviderHelpers(provider){let vscode=require("vscode"),{diagLogOnce,diagLog,isWebDiagnosticsEnabled}=he(),{formatBadge,formatTooltip}=nt(),decorationDiagCount=0,maxDecorationDiag=20,CONTRIBUTED_CUSTOM_COLOR_TOKENS=new Set(["explorerDates.customColor.veryRecent","explorerDates.customColor.recent","explorerDates.customColor.old"]),isWebRuntime=(()=>{try{return vscode?.env?.uiKind===vscode?.UIKind?.Web}catch{return!1}})(),getFileName,getExtension,normalizePath,getUriPath,ensureDate;try{let e=K();e&&(getFileName=e.getFileName,getExtension=e.getExtension,normalizePath=e.normalizePath,getUriPath=e.getUriPath,ensureDate=e.ensureDate)}catch{}if(!getFileName||!ensureDate){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function")try{let e=dynamicRequire("../utils/pathUtils"),t=dynamicRequire("../utils/dateHelpers");getFileName=getFileName||e.getFileName,getExtension=getExtension||e.getExtension,normalizePath=normalizePath||e.normalizePath,getUriPath=getUriPath||e.getUriPath,ensureDate=ensureDate||t.ensureDate}catch{}}catch{}getFileName||(getFileName=e=>{let t=String(e||""),r=t.replace(/\\/g,"/").lastIndexOf("/");return r===-1?t:t.substring(r+1)}),getExtension||(getExtension=e=>{let t=String(e||""),r=t.lastIndexOf(".");return r<=0?"":t.substring(r).toLowerCase()}),normalizePath||(normalizePath=(e="")=>(e||"").toString().replace(/\\/g,"/")),getUriPath||(getUriPath=(e="")=>e?typeof e=="string"?e:e?.fsPath?e.fsPath:e?.path?e.path:String(e):""),ensureDate||(ensureDate=e=>e instanceof Date?e:typeof e=="number"?new Date(e):typeof e=="string"?isNaN(Date.parse(e))?new Date:new Date(Date.parse(e)):new Date)}async function provideDecoration(e,t){let r=!1,n=null,i,a=null,o=null,s=null,c=null,u=!1,l=null,d=null,h=null,g=null,y=null,m=null,D=!1,E=()=>isWebDiagnosticsEnabled&&isWebDiagnosticsEnabled()&&decorationDiagCount{let w=null;try{w=vscode.workspace.getConfiguration("explorerDates")}catch{w=null}let U=w?w.get("colorScheme","none"):"none",b=w?w.get("showDateDecorations",!0):!0,H=typeof provider._performanceMode=="boolean"?provider._performanceMode:w?w.get("performanceMode",!1):!1,oe=isWebRuntime&&w?!!w.get("webDiagnosticsBuiltinColors",!1):!1;return{isWeb:isWebRuntime,isCanary:!1,builtinColorFallbackActive:oe,colorScheme:U,effectiveColorScheme:U,showDateDecorations:b,performanceMode:H,featureLevel:provider.$,previewSettings:!!provider.X}},F=w=>{if(!E()||r)return;decorationDiagCount+=1,r=!0;let b={...M(),...w};!b.scheme&&n&&(b.scheme=n),b.effectiveColorScheme||(b.effectiveColorScheme=b.colorScheme),typeof b.hasColor>"u"&&(b.hasColor=!!b.color),typeof b.badge>"u"&&(b.badge=null),typeof b.propagate>"u"&&(b.propagate=null),typeof b.decorationKeys>"u"&&(b.decorationKeys=null),typeof b.nullReason>"u"&&(b.nullReason=null),typeof b.timestampSource>"u"&&(b.timestampSource="not-attempted"),typeof b.gitRecencyAvailable>"u"&&(b.gitRecencyAvailable=!1),typeof b.gitRecencyError>"u"&&(b.gitRecencyError=null),typeof b.resolvedTimestampMs>"u"&&(b.resolvedTimestampMs=null),typeof b.gitRepoMatched>"u"&&(b.gitRepoMatched=null),typeof b.gitPathAttempted>"u"&&(b.gitPathAttempted=null),b.themeTokenSource||(b.isCanary?b.themeTokenSource="canary":b.builtinColorFallbackActive?b.themeTokenSource="builtin-fallback":typeof b.color=="string"&&b.color.startsWith("explorerDates.")?b.themeTokenSource="custom-token":b.color?b.themeTokenSource="builtin-token":b.themeTokenSource=null),diagLog("info","Decoration return sample",b)},X=w=>{if(!(!E()||r))try{F(w)}catch{}};try{if(provider.$e){a="disposed";return}if(!e){a="no-uri";return}let w=e.fsPath||e.path||"";n=e.scheme||"file";let U=vscode.workspace.getConfiguration("explorerDates"),b=U.get("performanceMode",!1);if(b&&typeof b!="boolean")return a="invalid-performanceMode",null;if(w&&w.includes("\0"))return a="invalid-path",null;let H=getUriPath(e);if(!H){a="missing-path";return}let oe=provider.Be?provider.Be(H):getFileName(H)||H,ft=normalizePath(H),Ur=n||"file";if(typeof provider.Ke!="function"){diagLogOnce("decorations-fallback-provider","warn","Decoration fallback active (missing provider helpers)");try{let A=await provider._fileSystem.stat(e);if(!A){a="no-stat";return}let Y=A.mtime instanceof Date?A.mtime:A.mtime?new Date(A.mtime):null,Me=Y&&typeof Y.getTime=="function"?Y.getTime():NaN;if(!Number.isFinite(Me)){a="invalid-stat";return}let se=Date.now()-Y.getTime(),Ie=se<1440*60*1e3?"\u2022":se<10080*60*1e3?"\u25E6":"\xB7",We=`Modified: ${Y.toISOString()}`,me=new vscode.FileDecoration(Ie,We);return i=me,y=Ie,h=!1,g=null,m=me?.propagate,me}catch{a="fallback-error";return}}if(!provider.Ke(e,"provideFileDecoration")?.isValid){a="invalid-uri";return}if(await provider.tr(e)){a="excluded";return}return i=await provider.rr(w,async()=>{if(t?.isCancellationRequested||provider.$e){a=t?.isCancellationRequested?"cancelled":"disposed";return}let A=(k,pe)=>provider.X&&Object.prototype.hasOwnProperty.call(provider.X,k)?provider.X[k]:vscode.workspace.getConfiguration("explorerDates").get(k,pe);if(isWebRuntime&&A("webDiagnosticsCanary",!1)&&isWebDiagnosticsEnabled&&isWebDiagnosticsEnabled()&&decorationDiagCount=provider.ue;if(provider.ir>provider.ue*.8&&We){diagLogOnce("decorations-backpressure","warn","Decoration backpressure fallback active");let k=provider.ar(e,Date.now());return y=k?.badge||null,h=!!k?.color,g=k?.color&&k?.color.id?k.color.id:k?.color||null,m=k?.propagate,a="backpressure",k}provider.or(),provider._metrics.cacheMisses++;let N=null;if(!Me&&provider._workspaceIntelligence?.incrementalIndexer){let k=provider._workspaceIntelligence.incrementalIndexer.getIndexedStat(w);k&&(N=k)}let gt=Date.now();if(!N){try{N=await provider._fileSystem.stat(e)}catch(k){if(provider._metrics.fileStatTimeMs+=Date.now()-gt,provider._metrics.fileStatCalls++,provider.sr(k)){a="stat-not-found";return}if(Ur!=="file"){a="stat-failed";return}throw a="stat-failed",k}provider._workspaceIntelligence?.incrementalIndexer&&provider._workspaceIntelligence.incrementalIndexer.primeFromStat(e,N)}if(provider._metrics.fileStatTimeMs+=Date.now()-gt,provider._metrics.fileStatCalls++,!(typeof N.isFile=="function"?N.isFile():!0)){a="not-regular-file";return}u=!0;let T=null;try{typeof provider.pt=="function"&&(T=await provider.pt(e,N,{filePath:w,fileLabel:oe}))}catch(k){c={source:"unknown",gitAvailable:!1,gitError:k?.message?`resolver-error:${k.message}`:"resolver-error",repoMatched:null,pathAttempted:null}}if((!T||T.bucket==="unknown"||T.source==="unknown")&&!A("freshnessShowUnknown",!0)){a="freshness-unknown";return}let Le=A("colorScheme","none");provider._performanceMode&&Le!=="custom"&&(Le="none");let Hr=A("fileSizeFormat","auto"),Z=provider.yt,$r=Z&&typeof Z.Te=="function"?Z.Te:provider.Te,Br=Z&&typeof Z.acquireDecorationFromPool=="function"?Z.acquireDecorationFromPool:provider.cr,Oe=formatBadge(T?.bucket||"unknown",T?.source||"unknown",U,T?.confidence||"low");if(!Oe){a="badge-suppressed";return}let $=T?.exactTimestamp?provider.lr(new Date(T.exactTimestamp),Le,w):void 0,Kr=formatTooltip(T,U)||await $r({filePath:w,resourceUri:e,stat:N,badgeDetails:{},gitBlame:null,shouldUseAccessibleTooltips:!1,fileSizeFormat:Hr,isCodeFile:!1}),Ne=Br({badge:Oe,tooltip:Kr,color:$});return g=$&&typeof $=="object"&&"id"in $?$.id:$||null,h=!!$,y=String(Oe||""),m=Ne?.propagate,typeof g=="string"&&g.startsWith("explorerDates.customColor.")&&!CONTRIBUTED_CUSTOM_COLOR_TOKENS.has(g)&&diagLogOnce(`missing-custom-color-${g}`,"warn","Custom color token missing from contributes.colors",{colorId:g,knownTokens:Array.from(CONTRIBUTED_CUSTOM_COLOR_TOKENS)}),l=T?.exactTimestamp||null,c=c||{source:T?.source||"unknown",bucket:T?.bucket||"unknown",confidence:T?.confidence||"low",reason:T?.reason||null,attempts:T?.attempts||null,gitAvailable:T?.source==="git",gitError:null,repoMatched:null,pathAttempted:null},provider.ur(se,Ne,oe,e,T),Ne}),i}catch(w){o=w?.name||"Error",s=w?.message||String(w),a=a||"exception";return}finally{if(i){if(d==null)try{d=Object.keys(i||{})}catch{d=null}if(y==null&&typeof i.badge<"u"&&(y=i.badge),m==null&&typeof i.propagate<"u"&&(m=i.propagate),g==null&&typeof i.color<"u")try{g=i.color&&i.color.id?i.color.id:i.color}catch{g=i.color}h==null&&typeof g<"u"&&(h=!!g)}let w={uri:e?getFileName(getUriPath(e)||""):null,scheme:n,isCanary:D,badge:y,hasColor:h,color:g,propagate:m,decorationKeys:d,nullReason:i?null:a||"unknown",timestampSource:c?.source||(u?"none":"not-attempted"),gitRecencyAvailable:!!c?.gitAvailable,gitRecencyError:c?.gitError||null,resolvedTimestampMs:l,gitRepoMatched:c?.repoMatched??null,gitPathAttempted:c?.pathAttempted||null,freshnessBucket:c?.bucket||null,freshnessSource:c?.source||null,freshnessConfidence:c?.confidence||null,freshnessReason:c?.reason||null,freshnessAttempts:c?.attempts||null,exceptionName:o,exceptionMessage:s};X(w)}}return{provideDecoration}}module.exports={createDecorationProviderHelpers}});var st=_((xa,mr)=>{function fr(e){!e._allocationTelemetryEnabled||e._telemetryReportTimer||(e._telemetryReportTimer=setTimeout(()=>{e._telemetryReportTimer=null,gr(e),fr(e)},e._telemetryReportInterval))}function gr(e){let t=e.getMetrics().allocationTelemetry,r=t.decorationPool.allocations+t.badgeFlyweight.allocations+t.readableFlyweight.allocations,n=t.decorationPool.reuses+t.badgeFlyweight.reuses+t.readableFlyweight.reuses;(r>0||n>0)&&e._logger?.info?.("\u{1F9EE} Allocation telemetry report",{timestamp:new Date().toISOString(),pool:{allocations:t.decorationPool.allocations,reuses:t.decorationPool.reuses,reuseRate:t.decorationPool.reusePercent+"%"},badgeFlyweight:{allocations:t.badgeFlyweight.allocations,reuses:t.badgeFlyweight.reuses,reuseRate:t.badgeFlyweight.reusePercent+"%"},readableFlyweight:{allocations:t.readableFlyweight.allocations,reuses:t.readableFlyweight.reuses,reuseRate:t.readableFlyweight.reusePercent+"%"},summary:{totalAllocations:r,totalReuses:n,overallReuseRate:r+n>0?(n/(r+n)*100).toFixed(1)+"%":"0%"},decorationsProcessed:e._metrics.totalDecorations,cacheHitRate:e.getMetrics().cacheHitRate})}mr.exports={scheduleTelemetryReport:fr,reportAllocationTelemetry:gr}});var pr=_((exports,module)=>{var CHUNK_SIZES={onboarding:34,analysisCommands:23,exportReporting:17,extensionApi:15,workspaceTemplates:14,advancedCache:28,workspaceIntelligence:31,incrementalWorkers:19},BASE_BUNDLE_SIZE=99;function _getPresetDefinitionsSync(){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=dynamicRequire("./chunks/preset-definitions-chunk");if(e&&e.PRESET_DEFINITIONS)return e.PRESET_DEFINITIONS}}catch{}let FALLBACK_PRESET={minimal:{id:"minimal",name:"Minimal",description:"Lean setup that prioritizes responsiveness in large repos.",targetScenarios:["Large repos","Low resources","Minimal UI"],settings:{"explorerDates.performanceMode":!0,"explorerDates.showDateDecorations":!0}},balanced:{id:"balanced",name:"Balanced",description:"Default feature mix for most workspaces.",targetScenarios:["General development","Mixed workloads"],settings:{"explorerDates.enableOnboardingSystem":!0,"explorerDates.enableAnalysisCommands":!0,"explorerDates.performanceMode":!1,"explorerDates.dateDecorationFormat":"smart","explorerDates.colorScheme":"recency","explorerDates.badgePriority":"time"}},"web-development":{id:"web-development",name:"Web Development",description:"Optimized for frontend and full-stack web projects.",targetScenarios:["Web apps","Frontend teams"],settings:{"explorerDates.enableOnboardingSystem":!0,"explorerDates.dateDecorationFormat":"smart","explorerDates.colorScheme":"file-type","explorerDates.badgePriority":"time"}},enterprise:{id:"enterprise",name:"Enterprise",description:"Full feature set with reporting and integrations enabled.",targetScenarios:["Large teams","Governed environments"],settings:{"explorerDates.enableExportReporting":!0,"explorerDates.enableExtensionApi":!0,"explorerDates.dateDecorationFormat":"smart","explorerDates.colorScheme":"recency","explorerDates.badgePriority":"time"}},"data-science":{id:"data-science",name:"Data Science",description:"Insight-focused profile for data-heavy projects.",targetScenarios:["Data analysis","Research workflows"],settings:{"explorerDates.enableWorkspaceIntelligence":!0,"explorerDates.dateDecorationFormat":"iso-detailed","explorerDates.colorScheme":"recency","explorerDates.badgePriority":"time"}}};return FALLBACK_PRESET}var PRESET_DEFINITIONS=_getPresetDefinitionsSync(),RESTART_REQUIRED_SETTINGS=new Set(["enableOnboardingSystem","enableAnalysisCommands","enableExportReporting","enableExtensionApi","enableWorkspaceTemplates","enableAdvancedCache","enableWorkspaceIntelligence","enableIncrementalWorkers","performanceMode","smartFileWatching"]);function calculateBundleSize(e){let t=BASE_BUNDLE_SIZE;return e["explorerDates.enableOnboardingSystem"]&&(t+=CHUNK_SIZES.onboarding),e["explorerDates.enableAnalysisCommands"]&&(t+=CHUNK_SIZES.analysisCommands),e["explorerDates.enableExportReporting"]&&(t+=CHUNK_SIZES.exportReporting),e["explorerDates.enableExtensionApi"]&&(t+=CHUNK_SIZES.extensionApi),e["explorerDates.enableWorkspaceTemplates"]&&(t+=CHUNK_SIZES.workspaceTemplates),e["explorerDates.enableAdvancedCache"]&&(t+=CHUNK_SIZES.advancedCache),e["explorerDates.enableWorkspaceIntelligence"]&&(t+=CHUNK_SIZES.workspaceIntelligence),e["explorerDates.enableIncrementalWorkers"]&&(t+=CHUNK_SIZES.incrementalWorkers),t}function getDefaultPresetForProfile(e){let t=PRESET_DEFINITIONS;switch(e){case"minimal":case"extreme":return t.minimal||t.minimal;case"balanced":return t.balanced||t.balanced;case"web-development":return t["web-development"]||t["web-development"];case"data-science":return t["data-science"]||t["data-science"];case"enterprise":return t.enterprise||t.enterprise;default:return t.balanced||t.balanced}}module.exports={PRESET_DEFINITIONS,CHUNK_SIZES,BASE_BUNDLE_SIZE,RESTART_REQUIRED_SETTINGS,calculateBundleSize,getDefaultPresetForProfile}});var br=_((Ma,yr)=>{var Se={onboarding:"src/chunks/onboarding-chunk",onboardingAssets:"src/chunks/onboarding-assets-chunk",reporting:"src/chunks/reporting-chunk",templates:"src/chunks/templates-chunk",analysis:"src/chunks/analysis-chunk",diagnostics:"src/chunks/diagnostics-chunk",extensionApi:"src/chunks/extension-api-chunk",advancedCache:"src/chunks/advancedCache-chunk",batchProcessor:"src/chunks/batchProcessor-chunk",decorationsAdvanced:"src/chunks/decorations-advanced",decorationsStatic:"src/chunks/decorations-static",workspaceIntelligence:"src/chunks/workspaceIntelligence",decorationLogic:"src/chunks/decoration-logic-chunk",decorationProvide:"src/chunks/decoration-provide-chunk",decorationHelpers:"src/chunks/decoration-helpers-chunk",decorationBatch:"src/chunks/decoration-batch-chunk",decorationWorkspaceIntel:"src/chunks/decoration-workspace-intel-chunk",decorationTelemetry:"src/chunks/decoration-telemetry-chunk",decorationRefresh:"src/chunks/decoration-refresh-chunk",decorationMemory:"src/chunks/decoration-memory-chunk",decorationPool:"src/chunks/decoration-pool-chunk",providerInit:"src/chunks/provider-init-chunk",fileDateProviderImpl:"src/chunks/file-date-provider-impl",fileDateProviderImplExport:"src/chunks/file-date-provider-impl-export",utilsShared:"src/chunks/utils-shared-chunk",incrementalWorkers:"src/chunks/incrementalWorkers",incrementalIndexer:"src/chunks/incrementalIndexer-chunk",uiAdapters:"src/chunks/ui-adapters",gitInsights:"src/chunks/gitInsights-chunk",smartWatcherFallback:"src/chunks/smartWatcherFallback-chunk",runtimeManagement:"src/chunks/runtime-management",runtimeManagementHeavy:"src/chunks/runtime-management-heavy",teamPersistence:"src/chunks/team-persistence-chunk",teamPersistenceUI:"src/chunks/team-persistence-ui-chunk",teamPersistenceLogic:"src/chunks/team-persistence-logic-chunk",settingsCoordinatorImpl:"src/chunks/settings-coordinator-impl-chunk",logger:"src/chunks/logger-chunk",loggerImpl:"src/chunks/logger-impl-chunk"};function Ri(e){return Se[e]||null}function Pi(){return Object.keys(Se)}function xi(e){let t={};for(let[r,n]of Object.entries(Se))t[r]=()=>e(`./${n}`);return t}var Mi=new Set(["gitInsights","reporting","templates","advancedCache","runtimeManagementHeavy","incrementalWorkers"]);yr.exports={CHUNK_MAP:Se,WEB_EXCLUDED_CHUNKS:Mi,getChunkSourcePath:Ri,getAllChunkNames:Pi,generateDevLoaderMap:xi}});var G=_((exports,module)=>{var FEATURE_FLAGS_GLOBAL_KEY="__explorerDatesFeatureFlags";function registerFeatureFlagsGlobal(e){if(e)try{typeof globalThis<"u"&&(globalThis[FEATURE_FLAGS_GLOBAL_KEY]=e)}catch{}}function loadFeatureFlagsFallback(){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function")return dynamicRequire("../featureFlags")}catch{}return null}function getFeatureFlagsGlobal(){try{if(typeof globalThis<"u"&&globalThis[FEATURE_FLAGS_GLOBAL_KEY])return globalThis[FEATURE_FLAGS_GLOBAL_KEY]}catch{}return loadFeatureFlagsFallback()}module.exports={FEATURE_FLAGS_GLOBAL_KEY,registerFeatureFlagsGlobal,getFeatureFlagsGlobal}});var ge=_((exports,module)=>{var getLogger=()=>{try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=dynamicRequire("./chunks/logger-chunk");if(e&&typeof e.getLogger=="function")return getLogger=e.getLogger,getLogger()}}catch{}try{return getLogger=q().getLogger,getLogger()}catch{return getLogger=()=>({debug:(()=>{})?.bind(console)||console.log,info:(()=>{}).bind(console),warn:(()=>{}).bind(console),error:(()=>{}).bind(console)}),getLogger()}},{CHUNK_SIZES}=pr(),{getChunkSourcePath,getAllChunkNames}=br(),{registerFeatureFlagsGlobal}=G(),{isWebEnvironment}=J(),featureLogger=null,env=typeof process<"u"&&process.env?process.env:{},DEFAULT_CHUNK_TIMEOUT_MS=Number(env.EXPLORER_DATES_CHUNK_TIMEOUT||(env.NODE_ENV==="test"?1e3:5e3)),NETWORK_ERROR_CODES=new Set(["ENOTFOUND","ECONNRESET","ECONNREFUSED","EAI_AGAIN","ETIMEDOUT","EHOSTUNREACH"]),BUILT_CHUNK_CACHE=new Map,CHUNK_METHOD_ALIASES={reporting:"exportReporting",templates:"workspaceTemplates",analysis:"analysisCommands"},DEV_CHUNK_PATH_CACHE=new Map,LAST_FEATURE_FAILURES=new Map;function getDevChunkImportPath(e){if(DEV_CHUNK_PATH_CACHE.has(e))return DEV_CHUNK_PATH_CACHE.get(e);let t=getChunkSourcePath(e);if(!t)return DEV_CHUNK_PATH_CACHE.set(e,null),null;let r=t;return r.startsWith("src/")&&(r=r.slice(4)),r.startsWith("./")||(r=`./${r}`),DEV_CHUNK_PATH_CACHE.set(e,r),r}function resolveNodeDependencies(){if(nativeDepsResolved)return!!(nativePath&&nativeFs);if(nativeDepsResolved=!0,!isNodeLikeRuntime())return!1;try{nativePath=eval("require")("path"),nativeFs=eval("require")("fs")}catch{nativePath=null,nativeFs=null}return!!(nativePath&&nativeFs)}var nativeDepsResolved=!1,nativePath=null,nativeFs=null;function isWebRuntime(){try{return isWebEnvironment()?!0:typeof process<"u"&&process?.env?.VSCODE_WEB==="true"}catch{return!1}}function isNodeLikeRuntime(){return typeof process<"u"&&!!process.versions?.node&&!isWebRuntime()}function getChunkTimeoutMs(){return DEFAULT_CHUNK_TIMEOUT_MS>0?DEFAULT_CHUNK_TIMEOUT_MS:0}function logFeature(e,t,r){featureLogger||(featureLogger=getLogger());let n=featureLogger;typeof n[e]=="function"?n[e](t,r):n.info(t,r)}function logFeatureDisabled(e,t){logFeature("info","Feature disabled via configuration",{feature:e,savedKB:t&&CHUNK_SIZES[t]!==void 0?CHUNK_SIZES[t]:void 0})}function isLikelyNetworkIssue(e){if(!e)return!1;if(e.code&&NETWORK_ERROR_CODES.has(e.code))return!0;let t=(e.message||"").toLowerCase();return t.includes("network")||t.includes("fetch")||t.includes("timed out")}function runWithChunkTimeout(e,t){let r=getChunkTimeoutMs(),n=()=>{try{return Promise.resolve(e())}catch(i){return Promise.reject(i)}};return r?new Promise((i,a)=>{let o=!1,s=setTimeout(()=>{if(o)return;o=!0;let c=new Error(`Chunk "${t}" load timed out after ${r}ms`);c.code="CHUNK_TIMEOUT",a(c)},r);n().then(c=>{o||(o=!0,clearTimeout(s),i(c))}).catch(c=>{o||(o=!0,clearTimeout(s),a(c))})}):n()}function logResolverFailure(e,t){if(!t)return;let r={chunkName:e,error:t.message,code:t.code,networkIssue:isLikelyNetworkIssue(t),timedOut:t.code==="CHUNK_TIMEOUT"},n=r.networkIssue||r.timedOut?"warn":"error";logFeature(n,"Chunk resolver failed",r)}function tryLoadBuiltChunk(e){if(!e||!resolveNodeDependencies()||typeof nativeFs?.existsSync!="function")return null;if(BUILT_CHUNK_CACHE.has(e))return BUILT_CHUNK_CACHE.get(e);let t=[];typeof __dirname=="string"&&nativePath&&(t.push(nativePath.join(__dirname,"chunks",`${e}.js`)),t.push(nativePath.join(__dirname,"..","dist","chunks",`${e}.js`)));for(let r of t)try{if(!r||!nativeFs.existsSync(r))continue;let n=require(r),i=n?.default||n;return BUILT_CHUNK_CACHE.set(e,i||null),i&&logFeature("info","Loaded chunk via built artifact fallback",{chunkName:e,path:r}),i}catch(n){logFeature("warn","Built chunk fallback failed",{chunkName:e,path:r,error:n.message})}return BUILT_CHUNK_CACHE.set(e,null),null}function tryRequireDevChunk(e){if(isWebRuntime())return null;let t=getDevChunkImportPath(e);if(!t)return null;try{let r=require(t);return r?.default||r}catch(r){(r.code!=="MODULE_NOT_FOUND"||typeof r.message=="string"&&!r.message.includes(t))&&logFeature("debug","Dev chunk require failed",{chunkName:e,importPath:t,error:r.message})}return null}function tryRequireLocalBuiltChunk(e){if(isWebRuntime())return null;let t=`./chunks/${e}`;try{let r=require(t);return r?.default||r}catch(r){r.code==="MODULE_NOT_FOUND"||logFeature("debug","Local chunk require failed",{chunkName:e,importPath:t,error:r.message})}return null}function getSavingsKey(e){return e in CHUNK_SIZES?e:CHUNK_METHOD_ALIASES[e]||null}function announceChunkSavings(e){let t=getSavingsKey(e);if(!t)return;let r=CHUNK_SIZES[t];if(!r)return;let i=`\u{1F4BE} ${t===e||!e?t:`${t} (requested as "${e}")`} chunk unavailable - keeping the feature disabled is saving ~${r}KB`;logFeature("info","Chunk savings applied",{chunkName:t,requestedName:e,savedKB:r})}var getFeatureConfig=()=>{try{let t=require("vscode").workspace.getConfiguration("explorerDates"),r=isWebRuntime(),n=i=>r?!1:i;return{enableOnboarding:t.get("enableOnboardingSystem",!0),enableExportReporting:n(t.get("enableExportReporting",!0)),enableWorkspaceTemplates:n(t.get("enableWorkspaceTemplates",!0)),enableAnalysisCommands:t.get("enableAnalysisCommands",!0),enableAdvancedCache:n(t.get("enableAdvancedCache",!0)),enableWorkspaceIntelligence:n(t.get("enableWorkspaceIntelligence",!0)),enableIncrementalWorkers:n(t.get("enableIncrementalWorkers",!1)),enableGitInsights:n(t.get("enableGitInsights",!0)),enableExtensionApi:t.get("enableExtensionApi",!0)}}catch{let e=isWebRuntime(),t=r=>e?!1:r;return{enableOnboarding:!0,enableExportReporting:t(!0),enableWorkspaceTemplates:t(!0),enableAnalysisCommands:!0,enableAdvancedCache:t(!0),enableWorkspaceIntelligence:t(!0),enableIncrementalWorkers:t(!1),enableGitInsights:t(!0),enableExtensionApi:!0}}},featureLoaders=new Map,chunkResolver=null;function setFeatureChunkResolver(e){if(e&&typeof e!="function")throw new Error("Feature chunk resolver must be a function");chunkResolver=e||null}function registerFeatureLoader(e,t){if(typeof t!="function")throw new Error(`Feature loader for "${e}" must be a function`);featureLoaders.set(e,t)}function unregisterFeatureLoader(e){featureLoaders.delete(e)}function clearFeatureLoaders(){featureLoaders.clear()}async function loadFeatureModule(e){LAST_FEATURE_FAILURES.delete(e);let t=featureLoaders.get(e);if(!t&&chunkResolver&&(t=()=>chunkResolver(e)),!t)return logFeature("warn","No loader registered for feature",{feature:e}),null;try{return await runWithChunkTimeout(()=>t(),e)}catch(r){return LAST_FEATURE_FAILURES.set(e,r),logFeature("warn","Feature loader failed",{feature:e,error:r.message,code:r.code,networkIssue:isLikelyNetworkIssue(r)}),announceChunkSavings(e),null}}function getFeatureLoadFailure(e){return LAST_FEATURE_FAILURES.get(e)}function registerDefaultLoaders(){getAllChunkNames().forEach(t=>{featureLoaders.has(t)||registerFeatureLoader(t,createDefaultLoader(t))})}function createDefaultLoader(e){return async()=>{if(chunkResolver&&typeof chunkResolver=="function")try{let i=await runWithChunkTimeout(()=>chunkResolver(e),e);if(i)return i;logFeature("info","Chunk resolver returned no module",{chunkName:e})}catch(i){logResolverFailure(e,i)}let t=tryRequireDevChunk(e);if(t)return t;let r=tryRequireLocalBuiltChunk(e);if(r)return r;let n=tryLoadBuiltChunk(e);return n||(logFeature("warn","No built artifact available for chunk",{chunkName:e}),null)}}var featureFlags={async onboarding(){return getFeatureConfig().enableOnboarding?loadFeatureModule("onboarding"):(logFeatureDisabled("onboarding","onboarding"),null)},async exportReporting(){return getFeatureConfig().enableExportReporting?loadFeatureModule("reporting"):(logFeatureDisabled("exportReporting","exportReporting"),null)},async workspaceTemplates(){return getFeatureConfig().enableWorkspaceTemplates?loadFeatureModule("templates"):(logFeatureDisabled("workspaceTemplates","workspaceTemplates"),null)},async analysisCommands(){return getFeatureConfig().enableAnalysisCommands?loadFeatureModule("analysis"):(logFeatureDisabled("analysisCommands","analysisCommands"),null)},async advancedCache(){return getFeatureConfig().enableAdvancedCache?loadFeatureModule("advancedCache"):(logFeatureDisabled("advancedCache","advancedCache"),null)},async workspaceIntelligence(){return getFeatureConfig().enableWorkspaceIntelligence?loadFeatureModule("workspaceIntelligence"):(logFeatureDisabled("workspaceIntelligence","workspaceIntelligence"),null)},async incrementalWorkers(){return getFeatureConfig().enableIncrementalWorkers?loadFeatureModule("incrementalWorkers"):(logFeatureDisabled("incrementalWorkers","incrementalWorkers"),null)},async extensionApi(){return getFeatureConfig().enableExtensionApi?loadFeatureModule("extensionApi"):(logFeatureDisabled("extensionApi","extensionApi"),null)},async uiAdapters(){return loadFeatureModule("uiAdapters")},async batchProcessor(){return loadFeatureModule("batchProcessor")},async decorationsAdvanced(){return loadFeatureModule("decorationsAdvanced")},async decorationsProviderImpl(){return loadFeatureModule("decorationsProviderImpl")},async gitInsights(){return getFeatureConfig().enableGitInsights?loadFeatureModule("gitInsights"):(logFeatureDisabled("gitInsights","gitInsights"),null)},isEnabled(e){let t=getFeatureConfig();return{onboarding:t.enableOnboarding,exportReporting:t.enableExportReporting,workspaceTemplates:t.enableWorkspaceTemplates,analysisCommands:t.enableAnalysisCommands,advancedCache:t.enableAdvancedCache,workspaceIntelligence:t.enableWorkspaceIntelligence,incrementalWorkers:t.enableIncrementalWorkers,extensionApi:t.enableExtensionApi}[e]??!0},getEnabledFeatures(){let e=getFeatureConfig(),t=[];return e.enableOnboarding&&t.push("onboarding"),e.enableExportReporting&&t.push("exportReporting"),e.enableWorkspaceTemplates&&t.push("workspaceTemplates"),e.enableAnalysisCommands&&t.push("analysisCommands"),e.enableAdvancedCache&&t.push("advancedCache"),e.enableWorkspaceIntelligence&&t.push("workspaceIntelligence"),e.enableIncrementalWorkers&&t.push("incrementalWorkers"),e.enableExtensionApi&&t.push("extensionApi"),t},calculateSavings(){let e=getFeatureConfig(),t=0;return e.enableOnboarding||(t+=34),e.enableExportReporting||(t+=17),e.enableExtensionApi||(t+=15),e.enableWorkspaceTemplates||(t+=14),e.enableWorkspaceIntelligence||(t+=12),e.enableAnalysisCommands||(t+=8),e.enableAdvancedCache||(t+=5),t}};for(let[e,t]of Object.entries(CHUNK_METHOD_ALIASES))!featureFlags[e]&&typeof featureFlags[t]=="function"&&(featureFlags[e]=(...r)=>featureFlags[t](...r));function calculateSavings(e){e||(e=getFeatureConfig());let t=267,r=0;e.enableOnboarding||(r+=34),e.enableExportReporting||(r+=17),e.enableExtensionApi||(r+=15),e.enableWorkspaceTemplates||(r+=14),e.enableWorkspaceIntelligence||(r+=12),e.enableIncrementalWorkers||(r+=19),e.enableAnalysisCommands||(r+=8),e.enableAdvancedCache||(r+=5);let n=t-r,i=r>0?Math.round(r/t*100):0;return{baseSize:`${t}KB`,totalSavings:`${r}KB`,optimizedSize:`${n}KB`,percentage:i}}registerDefaultLoaders();var exportedFeatureFlags={...featureFlags,getFeatureConfig,calculateSavings,registerFeatureLoader,setFeatureChunkResolver,unregisterFeatureLoader,clearFeatureLoaders,loadFeatureModule,getFeatureLoadFailure,registerDefaultLoaders};registerFeatureFlagsGlobal(exportedFeatureFlags);module.exports=exportedFeatureFlags});var _r=_((exports,module)=>{var vscode=require("vscode"),getLogger=()=>{try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=dynamicRequire("./chunks/logger-chunk");if(e&&typeof e.getLogger=="function")return getLogger=e.getLogger,getLogger()}}catch{}try{return getLogger=q().getLogger,getLogger()}catch{return getLogger=()=>({debug:(()=>{})?.bind(console)||console.log,info:(()=>{}).bind(console),warn:(()=>{}).bind(console),error:(()=>{}).bind(console)}),getLogger()}},{fileSystem}=$e(),env=typeof process<"u"&&process.env?process.env:{},{formatFileSize}=Be(),getFileName=p=>{try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=null;try{e=dynamicRequire("../chunks/utils-shared-chunk")}catch{}try{e||(e=dynamicRequire("./chunks/utils-shared-chunk"))}catch{}try{e||(e=dynamicRequire("./chunks/path-utils-chunk"))}catch{}if(e&&typeof e.getFileName=="function")return getFileName=e.getFileName,getFileName(p)}}catch{}try{let t=String(p||"").replace(/\\/g,"/"),r=t.lastIndexOf("/");return r===-1?t:t.substring(r+1)}catch{return"unknown"}},getExtension=p=>{try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=null;try{e=dynamicRequire("../chunks/utils-shared-chunk")}catch{}try{e||(e=dynamicRequire("./chunks/utils-shared-chunk"))}catch{}try{e||(e=dynamicRequire("./chunks/path-utils-chunk"))}catch{}if(e&&typeof e.getExtension=="function")return getExtension=e.getExtension,getExtension(p)}}catch{}try{let e=String(p||""),t=e.lastIndexOf(".");return t<=0?"":e.substring(t).toLowerCase()}catch{return""}},buildCacheKey=p=>{try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=null;try{e=dynamicRequire("../chunks/utils-shared-chunk")}catch{}try{e||(e=dynamicRequire("./chunks/utils-shared-chunk"))}catch{}try{e||(e=dynamicRequire("./chunks/path-utils-chunk"))}catch{}if(e&&typeof e.getCacheKey=="function")return buildCacheKey=e.getCacheKey,buildCacheKey(p)}}catch{}return String(p||"").toLowerCase().replace(/\\/g,"/")},normalizePath=input=>{try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=null;try{e=dynamicRequire("../chunks/utils-shared-chunk")}catch{}try{e||(e=dynamicRequire("./chunks/utils-shared-chunk"))}catch{}try{e||(e=dynamicRequire("./chunks/path-utils-chunk"))}catch{}if(e&&typeof e.normalizePath=="function")return normalizePath=e.normalizePath,normalizePath(input)}}catch{}return String(input||"").replace(/\\/g,"/")},getUriPath=(target="")=>{try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=null;try{e=dynamicRequire("../chunks/utils-shared-chunk")}catch{}try{e||(e=dynamicRequire("./chunks/utils-shared-chunk"))}catch{}try{e||(e=dynamicRequire("./chunks/path-utils-chunk"))}catch{}if(e&&typeof e.getUriPath=="function")return getUriPath=e.getUriPath,getUriPath(target)}}catch{}if(!target)return"";if(typeof target=="string")return target;if(typeof target.fsPath=="string"&&target.fsPath.length>0)return target.fsPath;if(typeof target.path=="string"&&target.path.length>0)return target.path;if(typeof target.toString=="function")try{return target.toString(!0)}catch{return target.toString()}return String(target)},{DEFAULT_CACHE_TIMEOUT,DEFAULT_MAX_CACHE_SIZE,GLOBAL_STATE_KEYS,DEFAULT_DECORATION_POOL_SIZE,DEFAULT_FLYWEIGHT_CACHE_SIZE,WORKSPACE_SCALE_EXTREME_THRESHOLD}=I(),{isWebEnvironment}=J(),{getSettingsCoordinator}=Ve(),{SecurityValidator,SecureFileOperations,detectSecurityEnvironment}=Ze(),DISABLE_GIT_FEATURES=env.EXPLORER_DATES_DISABLE_GIT_FEATURES==="1",IS_WEB_ENV=isWebEnvironment()||env.VSCODE_WEB==="true",nodePath=null;try{IS_WEB_ENV||(nodePath=require("path"))}catch{nodePath=null}var pathCompat={basename:e=>{if(!e)return"";try{if(!IS_WEB_ENV)return require("path").basename(e)}catch{let t=e.replace(/\\/g,"/"),r=t.lastIndexOf("/");return r===-1?t:t.substring(r+1)}},dirname:e=>{if(!e)return".";try{if(!IS_WEB_ENV)return require("path").dirname(e)}catch{let t=e.replace(/\\/g,"/"),r=t.lastIndexOf("/");return r===-1?".":t.substring(0,r)}}};(async()=>{try{let t=await ge().decorationsStatic();t&&(t.basename&&t.dirname&&(pathCompat.basename=t.basename,pathCompat.dirname=t.dirname),t.describeFile&&(exports.Be=t.describeFile))}catch{}})();var CONFIG_DEFAULT_CACHE_TIMEOUT=3e4,CACHE_NAMESPACE_SEPARATOR="::",DEFAULT_DYNAMIC_WATCHER_LIMIT=Number(env.EXPLORER_DATES_MAX_DYNAMIC_WATCHERS||200),DEFAULT_WATCHER_INACTIVITY_MS=Number(env.EXPLORER_DATES_WATCHER_TTL_MS||600*1e3),DEFAULT_SMART_WATCHER_EXTENSIONS=["js","ts","json","md","py","java"],SMART_WATCHER_PRIORITY=new Map([["src",100],["lib",65],["test",30]]),WORKSPACE_SCAN_TIMEOUT_MS=Number(env.EXPLORER_DATES_WORKSPACE_SCAN_TIMEOUT||7e3),WORKSPACE_SCAN_TIMEOUT_FALLBACK_COUNT=WORKSPACE_SCALE_EXTREME_THRESHOLD,VIEWPORT_DEFAULT_WINDOW_MS=300*1e3,DEFAULT_VIEWPORT_HISTORY_LIMIT=Number(env.EXPLORER_DATES_VIEWPORT_HISTORY_LIMIT||400),FEATURE_LEVELS=["full","enhanced","standard","minimal"],DEFAULT_INDEXER_MAX_FILES=Math.max(100,Number(env.EXPLORER_DATES_INDEXER_MAX_FILES||2e3)),SECURITY_EXTRA_PATHS_ENV="EXPLORER_DATES_SECURITY_EXTRA_PATHS",DEFAULT_SECURITY_THROTTLE_MS=Number(env.EXPLORER_DATES_SECURITY_WARNING_THROTTLE_MS||5e3),SECURITY_WARNING_CACHE_LIMIT=Number(env.EXPLORER_DATES_SECURITY_WARNING_CACHE||500),DEFAULT_SECURITY_MAX_WARNINGS=Number(env.EXPLORER_DATES_SECURITY_MAX_WARNINGS_PER_FILE??1),describeFile=(e="")=>{try{let t=typeof e=="string"?e:getUriPath(e),r=normalizePath(t);return getFileName(r)||r||"unknown"}catch{return"unknown"}};(async()=>{try{let t=await ge().decorationsStatic();t&&typeof t.describeFile=="function"&&(describeFile=t.describeFile)}catch{}})();var LazyHierarchicalDecorationCache=class{constructor(){this.n=new Map}get size(){return this.n.size}get bucketCount(){return 0}clear(){this.n.clear()}get(t){return this.n.get(t)}set(t,r){this.n.set(t,r)}delete(t){return this.n.delete(t)}*entries(){yield*this.n.entries()}*keys(){yield*this.n.keys()}*values(){yield*this.n.values()}[Symbol.iterator](){return this.entries()}enforceLimit(){return 0}},FileDateDecorationProviderImpl=class{constructor(...args){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=dynamicRequire("./chunks/file-date-provider-impl");if(e&&typeof e.FileDateDecorationProviderImpl=="function")return new e.FileDateDecorationProviderImpl(...args);if(e&&typeof e.FileDateDecorationProvider=="function")return new e.FileDateDecorationProvider(...args)}}catch(e){}throw new Error("FileDateDecorationProvider implementation is not available in this environment")}},FileDateDecorationProvider=class{constructor(...args){let loaderError=null;try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function")try{let e=null;try{e=dynamicRequire("./chunks/file-date-provider-impl-export")}catch{}if(e){let r=e.FileDateDecorationProvider||e.FileDateDecorationProviderImpl||e.default;return typeof r=="function"?new r(...args):new FileDateDecorationProviderImpl(...args)}e=dynamicRequire("./chunks/file-date-provider-impl");let t=e&&(e.FileDateDecorationProvider||e.FileDateDecorationProviderImpl||e.default);if(typeof t=="function")return new t(...args)}catch(e){loaderError=e}try{let e=null;try{e=require.resolve("./chunks/file-date-provider-impl-export",{paths:[__dirname]})}catch{}e||(e=require.resolve("./chunks/file-date-provider-impl",{paths:[__dirname]}));let t=require(e),r=t&&(t.FileDateDecorationProvider||t.FileDateDecorationProviderImpl||t.default);if(e&&e.endsWith("file-date-provider-impl-export.js")&&!r)return new FileDateDecorationProviderImpl(...args);if(typeof r=="function")return new r(...args)}catch(e){loaderError=loaderError||e}}catch(e){loaderError=loaderError||e}if(loaderError&&loaderError.message){let e=`FileDateDecorationProvider implementation is unavailable: ${loaderError.message}`;throw new Error(e)}throw new Error("FileDateDecorationProvider implementation is unavailable")}};module.exports={FileDateDecorationProvider,FileDateDecorationProviderImpl}});var Er=_((exports,module)=>{try{require("vscode")}catch{}var env=typeof process<"u"&&process.env?process.env:{},diagLog=null,isWebDiagnosticsEnabled=()=>!1;try{let e=he();e&&(diagLog=e.diagLog,isWebDiagnosticsEnabled=e.isWebDiagnosticsEnabled||(()=>!1))}catch{}function isWebRuntime(){try{let{isWebEnvironment:e}=J();return e()}catch{return env.VSCODE_WEB==="true"}}function getWebChunkRegistry(){try{let{WEB_CHUNK_GLOBAL_KEY:e,LEGACY_WEB_CHUNK_GLOBAL_KEY:t}=I();if(typeof globalThis<"u")return globalThis[e]||globalThis[t]||null}catch{}return typeof globalThis<"u"&&(globalThis.explorerDatesChunks||globalThis.nn)||null}function resolveProviderModuleFromWebRegistry(){let e=getWebChunkRegistry();if(!e)return null;let t=[e.fileDateProviderImplExport,e.fileDateProviderImpl,e.fileDateProviderImplExport,e.fileDateProviderImpl,e["file-date-provider-impl-export"],e["file-date-provider-impl"]].filter(Boolean);return t.length>0?t[0]:null}function normalizeModuleExports(e){if(!e)return null;let t=e&&typeof e=="object"?e:{default:e},r=t&&typeof t=="object"&&t.default?t.default:null;return r&&typeof r=="object"?{...t,...r}:t}async function hydrateProviderOptionalSystems(e){try{try{let r=(await Promise.resolve().then(()=>R(at()))).getLocalization();e.p.getString=(...i)=>r.getString(...i),e.p.formatDate=(...i)=>r.formatDate(...i),e.p.getCurrentLocale=()=>r.getCurrentLocale();let n=e.p.dispose;e.p.dispose=()=>{try{r.dispose()}catch{}n()}}catch(t){e._logger?.debug("provider-init: localization hydrate failed",t)}try{let t=await Promise.resolve().then(()=>R(ot()));t&&typeof t.createDecorationLogic=="function"&&(e.yt=t.createDecorationLogic(e))}catch(t){e._logger?.debug("provider-init: preload decoration logic failed",t)}try{let t=await Promise.resolve().then(()=>R(Ce())),r=t&&(typeof t.createDecorationProviderHelpers=="function"?t.createDecorationProviderHelpers(e):t);e.hr=r}catch(t){e._logger?.debug("provider-init: preload decoration provider helpers failed",t)}try{let t=await e.Z();t&&typeof t.initializeAdvancedSystems=="function"&&await t.initializeAdvancedSystems(e)}catch(t){e._logger?.debug("provider-init: initializeAdvancedSystems failed",t)}try{let t=st();t&&typeof t.scheduleTelemetryReport=="function"&&e._allocationTelemetryEnabled&&t.scheduleTelemetryReport(e)}catch(t){e._logger?.debug("provider-init: scheduling telemetry failed",t)}}catch(t){try{e._logger?.debug("provider-init: hydration failed",t)}catch{}}}function createFileDateDecorationProvider(context){try{let ProviderClass=null,webRuntime=isWebRuntime();if(webRuntime){let e=getWebChunkRegistry(),t=[e?.fileDateProviderImplExport,e?.fileDateProviderImpl,e?.fileDateProviderImplExport,e?.fileDateProviderImpl,e?.["file-date-provider-impl-export"],e?.["file-date-provider-impl"]].filter(Boolean),r=t[0]||resolveProviderModuleFromWebRegistry();!e&&isWebDiagnosticsEnabled()?diagLog?.("warn","Provider registry missing in web runtime"):!r&&isWebDiagnosticsEnabled()&&diagLog?.("warn","Provider module missing from web registry",{hasRegistry:!!e,availableKeys:Object.keys(e||{}),candidateCount:t.length});let n=null;for(let i of t){let a=normalizeModuleExports(i),o=a&&(a.FileDateDecorationProvider||a.FileDateDecorationProviderImpl||a.default);if(o){n=o;break}isWebDiagnosticsEnabled()&&diagLog?.("warn","Provider exports missing expected class",{availableExportKeys:Object.keys(a||{})})}ProviderClass=n,!ProviderClass&&isWebDiagnosticsEnabled()&&t.length>0&&diagLog?.("warn","Provider class unresolved from registry entries",{candidateCount:t.length,availableRegistryKeys:Object.keys(e||{})})}try{if(!webRuntime){let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=null;try{e=dynamicRequire("./fileDateProviderImplExport")}catch{}if(!e)try{e=dynamicRequire("./fileDateProviderImpl")}catch{}ProviderClass=e&&(e.FileDateDecorationProvider||e.FileDateDecorationProviderImpl||e.default)}}}catch{}if(!ProviderClass&&!webRuntime){let{FileDateDecorationProvider:e}=_r();ProviderClass=e}if(!ProviderClass)return isWebDiagnosticsEnabled()&&diagLog?.("warn","Provider class unavailable",{webRuntime,registryKeys:Object.keys(getWebChunkRegistry()||{})}),null;let provider=new ProviderClass;return isWebDiagnosticsEnabled()&&diagLog?.("info","Provider class resolved",{className:ProviderClass?.name||"unknown"}),(async()=>{try{await provider.initializeAdvancedSystems(context)}catch(e){provider._logger?.debug("provider-init: provider factory init failed",e)}})(),{createFileDateDecorationProvider:()=>provider}}catch{return null}}module.exports={hydrateProviderOptionalSystems,createFileDateDecorationProvider}});var Tr=_((Ia,Sr)=>{var O=require("vscode"),{getLogger:Ii}=q(),{WORKSPACE_SCALE_BALANCED_THRESHOLD:wr,WORKSPACE_SCALE_LARGE_THRESHOLD:ve,WORKSPACE_SCALE_EXTREME_THRESHOLD:kr,WORKSPACE_SCAN_MAX_RESULTS:Dr}=I(),ct=Ii(),Te=null;function Cr(e){return e&&(e.fsPath||e.path)||null}function lt(e,t){let r=Cr(e);!r||typeof t!="number"||(Te={workspaceKey:r,fileCount:t,timestamp:Date.now()})}function ut(e){let t=Cr(e);return!t||!Te||Te.workspaceKey!==t?null:Te}function Wi(e,t="default"){if(!e)return`unknown-workspace-${t}`;let r=e.fsPath||e.path||"",n=r.split("/").pop()||"workspace",i=Math.abs(r.split("").reduce((o,s)=>(o=(o<<5)-o+s.charCodeAt(0),o&o),0)).toString(36).substr(0,8),a=Math.abs(t.split("").reduce((o,s)=>(o=(o<<5)-o+s.charCodeAt(0),o&o),0)).toString(36).substr(0,4);return`${n}-${i}-${a}`}async function Li(e){try{if(!e)return"unknown";let t=ut(e),r;t?r=t.fileCount:(r=(await O.workspace.findFiles("**/*",null,Dr)).length,lt(e,r));let n="small";r>=kr?n="extreme":r>=ve?n="large":r>=1e3&&(n="medium");let i=O.env.remoteName,a=O.env.uiKind===O.UIKind.Web,o=n==="medium"&&r>=wr&&ru.toLowerCase());if(c.includes("package.json")||c.includes("yarn.lock"))return"web-development";if(c.some(u=>u.endsWith(".ipynb"))||c.includes("requirements.txt"))return"data-science";if(c.includes("docker-compose.yml")||c.includes(".enterprise"))return"enterprise"}catch(s){ct.debug("Project type detection failed:",s)}return"full"}catch(t){return ct.error("Workspace profile detection failed:",t),"unknown"}}async function Oi(e){if(!e)return null;try{let t=ut(e),r;t?r=t.fileCount:(r=(await O.workspace.findFiles("**/*",null,Dr)).length,lt(e,r));let n="small";r>=kr?n="extreme":r>=ve?n="large":r>=1e3&&(n="medium");let i=!!O.env.remoteName,a=O.env.uiKind===O.UIKind.Web,o=a?"web":i?"remote":"local",s=n==="medium"&&r>=wr&&r{var vscode=require("vscode"),getFileName,getExtension,normalizePath,getUriPath,ensureDate;try{let e=K();e&&(getFileName=e.getFileName,getExtension=e.getExtension,normalizePath=e.normalizePath,getUriPath=e.getUriPath,ensureDate=e.ensureDate)}catch{}if(!getFileName||!ensureDate){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function")try{let e=dynamicRequire("../utils/pathUtils"),t=dynamicRequire("../utils/dateHelpers");getFileName=getFileName||e.getFileName,getExtension=getExtension||e.getExtension,normalizePath=normalizePath||e.normalizePath,getUriPath=getUriPath||e.getUriPath,ensureDate=ensureDate||t.ensureDate}catch{}}catch{}getFileName||(getFileName=e=>{let t=String(e||""),r=t.replace(/\\/g,"/").lastIndexOf("/");return r===-1?t:t.substring(r+1)}),getExtension||(getExtension=e=>{let t=String(e||""),r=t.lastIndexOf(".");return r<=0?"":t.substring(r).toLowerCase()}),normalizePath||(normalizePath=(e="")=>(e||"").toString().replace(/\\/g,"/")),getUriPath||(getUriPath=(e="")=>e?typeof e=="string"?e:e?.fsPath?e.fsPath:e?.path?e.path:String(e):""),ensureDate||(ensureDate=e=>e instanceof Date?e:typeof e=="number"?new Date(e):typeof e=="string"?isNaN(Date.parse(e))?new Date:new Date(Date.parse(e)):new Date)}var SMART_WATCHER_PRIORITY=new Map([["src",100],["lib",65],["test",30]]);async function performWorkspaceSizeCheck(e){let t=vscode.workspace.getConfiguration("explorerDates"),r=t.get("forceEnableForLargeWorkspaces",!1),n=t.get("performanceMode",!1),i=r||n,a=vscode.workspace.workspaceFolders;if(!a||a.length===0)return;e._logger.info("Checking workspace size for large workspace detection...");let o=await e.an(e._getIndexerMaxFiles()),s=!Array.isArray(o),c=s?e.WORKSPACE_SCAN_TIMEOUT_FALLBACK_COUNT:o.length;if(s){let l=e.WORKSPACE_SCAN_TIMEOUT_MS?`${e.WORKSPACE_SCAN_TIMEOUT_MS}ms`:"the configured timeout";e._logger.warn(`Workspace scan exceeded ${l}; defaulting to extreme scale`)}else{let l=`${e.WORKSPACE_SCALE_LARGE_THRESHOLD}+`;e._logger.info(`Workspace contains ${c>=e.WORKSPACE_SCALE_LARGE_THRESHOLD?l:c} files`)}let u=e.u;e.Ve=c,e.u=c>=e.WORKSPACE_SCALE_EXTREME_THRESHOLD?"extreme":c>=e.WORKSPACE_SCALE_LARGE_THRESHOLD?"large":"normal";try{let l=a[0]?.uri;Tr().setCachedWorkspaceMetrics(l,c)}catch(l){e._logger.debug("Unable to cache workspace file count",l)}u!==e.u&&e.J&&!e._performanceMode&&(e._logger.info(`Workspace scale changed ${u} -> ${e.u}; recalibrating watchers`),e.Q("workspace-scale-update")),e._batchProcessor&&typeof e._batchProcessor.setWorkspaceScale=="function"&&e._batchProcessor.setWorkspaceScale(e.u||"normal"),e.Ge(e.Xe(vscode.workspace.getConfiguration("explorerDates")),"workspace-scale-change"),i&&e._logger.debug("Large workspace prompt suppressed (force/performance mode), but scaling adjustments applied")}async function findWorkspaceFilesWithTimeout(e,t){let r=Number.isFinite(e.WORKSPACE_SCAN_TIMEOUT_MS)?e.WORKSPACE_SCAN_TIMEOUT_MS:0,n=vscode.workspace.findFiles("**/*",null,t);if(!r||r<=0)return n;try{return await new Promise((i,a)=>{let o=null,s=(c,u=!1)=>{o&&(clearTimeout(o),o=null),u?a(c):i(c)};o=setTimeout(()=>s(null),r),n.then(c=>s(c),c=>s(c,!0))})}catch(i){return e._logger.warn("Workspace scan failed, assuming large workspace",{error:i?.message||String(i)}),null}}async function _buildSmartWatcherTargets(e,t,r){let n=[],i=Math.max(1,r.maxPatterns),a=i,o=t.length;for(let s of t){if(a<=0)break;let c=Math.max(1,Math.floor(a/o)),u=new vscode.RelativePattern(s,"*.{md,mdx,json,jsonc,yml,yaml,ts,tsx,js,jsx}");if(n.push({pattern:u,label:`root:${s.name}`}),a-=1,a<=0)break;let l=Math.min(Math.max(c-1,0),a);if(l>0)try{let d=typeof e._fileSystem?.readdir=="function"?await e._fileSystem.readdir(s.uri||s.fsPath||s):[],h=(Array.isArray(d)?d:[]).filter(m=>m&&(typeof m.isDirectory=="function"?m.isDirectory():!0)).map(m=>typeof m=="string"?m:m.name||"").filter(Boolean).filter(m=>!["node_modules",".git","dist","build","out"].includes(m));e._logger?.debug&&e._logger.debug("smart-watcher: top-level dirs",{folder:s.name,dirs:h}),h.sort((m,D)=>(SMART_WATCHER_PRIORITY.get(D)||0)-(SMART_WATCHER_PRIORITY.get(m)||0));let y=h.slice(0,l).map(m=>({pattern:new vscode.RelativePattern(s,`${m}/**/*.{md,mdx,json,jsonc,yml,yaml,ts,tsx,js,jsx}`),label:`sub:${s.name}/${m}`})).slice(0,l);n.push(...y),a-=y.length}catch{}o-=1}return n.slice(0,i)}function _addExclusionValueToSet(e,t,r={}){if(!t)return;let{onlyRootSegment:n=!1}=r,i=typeof t=="string"?t:typeof t?.toString=="function"?t.toString():"";if(!i||typeof i!="string")return;let a=i.trim();if(!a)return;let s=a.replace(/\\/g,"/").replace(/\*\*/g,"").replace(/\*/g,"").split("/").map(c=>c.trim()).filter(Boolean);if(!s.length){if(a.includes("*")||a.includes("?"))return;e.add(a.toLowerCase());return}if(n){e.add(s[0].toLowerCase());return}for(let c of s)e.add(c.toLowerCase())}function registerWatcherHandlers(e,t,r="unknown"){t&&(t.onDidChange(n=>e.M(n,"change",r)),t.onDidCreate(n=>e.M(n,"create",r)),t.onDidDelete(n=>e.M(n,"delete",r)))}function dispatchWatcherEvent(e,t,r,n="unknown"){r==="delete"?e.clearDecoration(t):e.refreshDecoration(t),e._workspaceIntelligence?.incrementalIndexer&&e._workspaceIntelligence.incrementalIndexer.queueDelta(t,r),e.Ye&&e._logger.debug(`Watcher event processed (${r}) for ${e.describeFile(t)} via ${n}`)}module.exports={performWorkspaceSizeCheck,findWorkspaceFilesWithTimeout,B:_buildSmartWatcherTargets,on:_addExclusionValueToSet,registerWatcherHandlers,dispatchWatcherEvent}});var dt=_((exports,module)=>{var vscode=require("vscode"),{DEFAULT_DYNAMIC_WATCHER_LIMIT,DEFAULT_WATCHER_INACTIVITY_MS}=I(),proc=typeof process<"u"?process:null,env=proc?.env||{},normalizePath,getUriPath;try{let e=K();e&&(normalizePath=e.normalizePath,getUriPath=e.getUriPath)}catch{}if(!normalizePath){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function")try{let e=dynamicRequire("../utils/pathUtils");normalizePath=normalizePath||e.normalizePath,getUriPath=getUriPath||e.getUriPath}catch{}}catch(e){}normalizePath||(normalizePath=(e="")=>(e||"").toString().replace(/\\/g,"/")),getUriPath||(getUriPath=(e="")=>e?typeof e=="string"?e:e?.fsPath?e.fsPath:e?.path?e.path:String(e):"")}var{getLogger}=q(),nodePath=null;try{nodePath=require("path")}catch{}var WatcherManager=class{constructor(t){this.t=t,this._logger=t._logger||getLogger(),this.s=new Set,this.h=void 0,this.S=[],this.d=new Map,this.I=null,this._=t._||new Map,this._smartWatcherFallbackManager=t._smartWatcherFallbackManager||null,this.ee=null,this.K="none"}setupFileWatcher(t="initial"){if(this.t._performanceMode||this.t.k){let i=this.t.k?"provider disposed":"performance mode enabled";this._logger.debug(`Skipping file watcher setup (${t}) - ${i}`);return}this.h||(this.h={pending:!0});let r=++this.t.Ze;(async()=>{if(this.ee)try{await this.ee}catch(a){this._logger.debug("Previous watcher setup promise rejected",a)}let i=this.Fe(r,t);this.ee=i;try{await i}finally{this.ee===i&&(this.ee=null)}})().catch(i=>this._logger.error("Failed to configure file watchers",i))}async Fe(t,r){if(this.Ae(t))return;if(this.disposeFileWatchers({permanent:!1}),this.Ae(t))return this.Je("post-dispose");this.h={pending:!0};let n=vscode.workspace.workspaceFolders;if(!n||n.length===0){this._logger.debug("No workspace folders detected; skipping watcher setup"),this.K="none";return}if(this.t._isWeb){this._logger.info("File watchers are unavailable in web environments; skipping watcher setup"),this.K="none";return}let i=vscode.workspace.getConfiguration("explorerDates"),a=env.EXPLORER_DATES_DISABLE_SMART_WATCHERS==="1";this.t.J=!a&&i.get("smartFileWatching",!0),this.t._enableWatcherFallbacks=this.t.J&&i.get("enableSmartWatcherFallbacks","auto");let o=i.get("smartWatcherMaxPatterns",20),s=this.t.dr(i.get("smartWatcherExtensions",[])),c=this.t.gr(o);if(this.t.bt={maxPatterns:c,extensions:s},this.Ae(t))return this.Je("post-config");if(!this.t.J){this._logger.info("Smart file watching disabled; falling back to global watcher"),await this.Pe("disabled");return}let u=[];try{if(typeof this.t.B=="function")u=await this.t.B(n,this.t.bt);else try{let l=ht();if(l&&typeof l.B=="function")u=await l.B(this.t,n,this.t.bt);else throw new Error("_buildSmartWatcherTargets not implemented on provider or helper")}catch(l){throw l}}catch(l){this._logger.error("Smart watcher analysis failed, falling back to global watcher",l),await this.Pe("analysis-failed");return}if(this.Ae(t))return this.Je("post-analysis");if(!u||u.length===0){this._logger.warn("Smart watcher analysis yielded no targets; falling back to global watcher"),await this.Pe("no-targets");return}for(let l of u)try{let d=await this._t(l.pattern,l.label);d&&(this.he(d,l.label),this.s.add(d))}catch(d){this._logger.debug(`Failed to create watcher for pattern ${l.label}`,d)}if(this.s.size===0){this._logger.warn("Smart watcher setup produced zero watchers; using global fallback"),await this.Pe("no-watchers-created");return}this.h=this.s.values().next().value||void 0,this.K="smart",this._logger.info(`Smart file watching enabled (${this.s.size} base watcher${this.s.size===1?"":"s"})`,{reason:r,patterns:u.map(l=>l.label)}),this.mr()}Ae(t){return!!(this.t.k||this.t._performanceMode||typeof t=="number"&&t!==this.t.Ze)}Je(t="unknown"){let r=this.t._performanceMode||this.t.k;this.disposeFileWatchers({permanent:r}),this._logger.debug(`Watcher setup aborted (${t})`,{permanentAbort:r,disposed:this.t.k,performanceMode:this.t._performanceMode})}async Z(){try{let{getFeatureFlagsGlobal:t}=G(),r=t();return(r?await r.decorationsAdvanced():null)||null}catch(t){return this._logger.debug("Failed to load decorationsAdvanced chunk",t),null}}async _t(t,r="unknown"){try{let i=await this.Z();if(i?.createWatcherWithFallback)return await i.createWatcherWithFallback(this.t,t,r)}catch(i){this._logger.debug(`Advanced watcher chunk failed for ${r}`,i)}let n=()=>{let i=this.t._enableWatcherFallbacks;if(i===!1)return!1;if(i==="auto"||i===!0){let a=proc?.platform,o=env.WSL_DISTRO_NAME||env.WSLENV,s=vscode.env.remoteName,c=env.DOCKER_CONTAINER;return o||s||c||a==="android"}return!1};try{let i=vscode.workspace.createFileSystemWatcher(t);return this._logger.debug(`Native watcher created for ${r}`),i}catch(i){return this._logger.debug(`Native watcher failed for ${r}:`,i),n()?this.pr(t,r):null}}async pr(t,r){try{let n=await this.Z();if(n?.createFallbackWatcher)return await n.createFallbackWatcher(this.t,t,r)}catch(n){this._logger.warn(`Fallback watcher creation failed for ${r}:`,n)}try{if(!this._smartWatcherFallbackManager){let{getFeatureFlagsGlobal:n}=G(),i=n(),a=i?await i.loadFeatureModule("smartWatcherFallback"):null;if(a){let{SmartWatcherFallbackManager:o}=a;this._smartWatcherFallbackManager=new o({logger:this._logger}),await this._smartWatcherFallbackManager.initialize()}}if(this._smartWatcherFallbackManager){let i=await(await this._smartWatcherFallbackManager.getFallback()).createWatcherWithFallback(t);return this._logger.debug(`Fallback watcher created for ${r}`),i}}catch(n){this._logger.warn(`Fallback watcher creation failed for ${r}:`,n)}return null}async Pe(t="global-default"){this.Et();let r=await this._t("**/*",`global:${t}`);r?(this.he(r,`global:${t}`),this.s.add(r),this.h=r,this.K="global",this._logger.info(`Global watcher activated (${t})`)):this._logger.error(`Failed to create global watcher (${t})`)}he(t,r="unknown"){t&&(t.onDidChange(n=>this.M(n,"change",r)),t.onDidCreate(n=>this.M(n,"create",r)),t.onDidDelete(n=>this.M(n,"delete",r)))}M(t,r,n="unknown"){if(!t||t.scheme!=="file"||!this.t.Ke(t,`watcher:${r}`)?.isValid)return;let a=this.yr();if(a<=0){this.xe(t,r,n);return}let o=`${t.toString()}:${r}`,s=this._.get(o);s&&clearTimeout(s.timer);let c=setTimeout(()=>{this._.delete(o),this.xe(t,r,n)},a);this._.set(o,{timer:c,source:n})}xe(t,r,n){try{this.t.Me?.(t)}catch{}r==="delete"?this.t.clearDecoration(t):this.t.refreshDecoration(t),this.t._workspaceIntelligence?.incrementalIndexer&&this.t._workspaceIntelligence.incrementalIndexer.queueDelta(t,r),this.t.Ye&&this._logger.debug(`Watcher event processed (${r}) for ${this.t.Be(t)} via ${n}`)}yr(){if(this.t._performanceMode)return 0;switch(this.t.u){case"extreme":return 600;case"large":return 250;default:return 100}}handleWorkspaceFoldersChanged(t){let r=(t?.added||[]).map(a=>a.uri).filter(Boolean),n=(t?.removed||[]).map(a=>a.uri).filter(Boolean);if(r.length===0&&n.length===0)return;let i=async()=>{this._logger.info("Workspace folders changed",{added:r.length,removed:n.length}),await this.t.checkWorkspaceSize();try{this.t.clearAllCaches()}catch{}try{this.t.refreshAll()}catch{}if(!this.t._performanceMode&&(this.setupFileWatcher("workspace-change"),await this.t.wt().catch(a=>this._logger.debug("Failed to reconfigure progressive loading after workspace change",a)),this.t._workspaceIntelligence)){let a=(vscode.workspace.workspaceFolders||[]).map(o=>({uri:o.uri}));await this.t._workspaceIntelligence.onWorkspaceFoldersChanged({added:a,removed:n.map(o=>({uri:o}))})}};this.t.D&&clearTimeout(this.t.D),this.t.D=setTimeout(()=>{this.t.D=null,i().catch(a=>this._logger.debug("Workspace folder change handling failed",a))},250)}disposeFileWatchers(t={}){let r=t.permanent===!0;if(this.s?.size){for(let n of this.s)try{n.dispose()}catch(i){this._logger.debug("Failed to dispose file watcher",i)}this.s.clear()}this.h=r?null:void 0,this.Et(),this.kt(!0),this.br(),this.K="none"}br(){if(this._?.size){for(let t of this._.values())clearTimeout(t.timer);this._.clear()}}mr(){if(!this.t.J||this.S.length>0)return;let t=(n,i)=>{let a=this.t.fe(vscode.window,n,i);a&&this.S.push(a)},r=(n,i)=>{let a=this.t.fe(vscode.workspace,n,i);a&&this.S.push(a)};t("onDidChangeVisibleTextEditors",n=>{(n||[]).forEach(i=>this.ge(i?.document?.uri,"visible-editor"))}),t("onDidChangeActiveTextEditor",n=>{this.ge(n?.document?.uri,"active-editor")}),r("onDidOpenTextDocument",n=>{this.ge(n?.uri,"open-document")}),r("onDidSaveTextDocument",n=>{this.ge(n?.uri,"save-document")}),this._r(),this.Er()}Et(){if(this.S?.length){for(let t of this.S)try{t.dispose()}catch(r){this._logger.debug("Failed to dispose watcher listener",r)}this.S=[]}this.Dt()}sn(){if(this._smartWatcherFallbackManager){try{this._smartWatcherFallbackManager.dispose()}catch(t){this._logger.debug("Error disposing smart watcher fallback manager:",t)}this._smartWatcherFallbackManager=null}}_r(){(Array.isArray(vscode.window?.visibleTextEditors)?vscode.window.visibleTextEditors:[]).forEach(r=>this.ge(r?.document?.uri,"visible-seed"))}Er(){this.I||(this.I=setInterval(()=>this.kt(),DEFAULT_WATCHER_INACTIVITY_MS))}Dt(){this.I&&(clearInterval(this.I),this.I=null)}kt(t=!1){if(!this.d?.size)return;let r=Date.now()-DEFAULT_WATCHER_INACTIVITY_MS;for(let[n,i]of this.d.entries())if(t||i.lastUsed=DEFAULT_DYNAMIC_WATCHER_LIMIT&&this.wr();try{let o=new vscode.RelativePattern(i,"**/*"),s=vscode.workspace.createFileSystemWatcher(o),c=nodePath.basename(i)||"root";this.he(s,`dynamic:${r}:${c}`),this.d.set(i,{watcher:s,lastUsed:Date.now(),source:r})}catch(o){this._logger.debug(`Failed to create dynamic watcher for ${i}`,o)}}wr(){let t=null,r=Number.POSITIVE_INFINITY;for(let[n,i]of this.d.entries())i.lastUsed{function createViewportManager(provider){let vscode=require("vscode"),normalizePath,getUriPath;try{let e=K();e&&(normalizePath=e.normalizePath,getUriPath=e.getUriPath)}catch{}if(!normalizePath){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function")try{let e=dynamicRequire("../utils/pathUtils");normalizePath=normalizePath||e.normalizePath,getUriPath=getUriPath||e.getUriPath}catch{}}catch{}normalizePath||(normalizePath=(e="")=>(e||"").toString().replace(/\\/g,"/")),getUriPath||(getUriPath=(e="")=>e?typeof e=="string"?e:e?.fsPath?e.fsPath:e?.path?e.path:String(e):"")}class ViewportManager{constructor(){this.t=provider,this.w=new Set,this.y=new Map,this.T=[],this.me=provider.me||400,this.W=provider.W||300*1e3,this.Qe=Date.now()}cn(){if(this.T.length>0)return;let t=(n,i)=>{let a=this.fe(vscode.window,n,i);a&&this.T.push(a)},r=(n,i)=>{let a=this.fe(vscode.workspace,n,i);a&&this.T.push(a)};t("onDidChangeVisibleTextEditors",n=>this.Ct(n)),t("onDidChangeActiveTextEditor",n=>this.Y(n?.document?.uri,{reason:"active-editor"})),r("onDidOpenTextDocument",n=>this.Y(n?.uri,{reason:"open-document"})),r("onDidSaveTextDocument",n=>this.Y(n?.uri,{reason:"save-document"})),this.Ct(Array.isArray(vscode.window?.visibleTextEditors)?vscode.window.visibleTextEditors:[]),vscode.window?.activeTextEditor?.document?.uri&&this.Y(vscode.window.activeTextEditor.document.uri,{reason:"initial-active"})}kr(){if(this.T?.length){for(let t of this.T)try{t.dispose()}catch(r){this.t._logger.debug("Failed to dispose viewport listener",r)}this.T=[],this.w.clear(),this.y.clear()}}Ct(t){if(this.w.clear(),!Array.isArray(t))return;let r=Date.now();for(let n of t){let i=n?.document?.uri;if(!i||i.scheme!=="file")continue;let a=normalizePath(getUriPath(i));a&&(this.w.add(a),this.y.set(a,r))}this.et()}Y(t,r={}){if(!t||t.scheme!=="file")return;let n=normalizePath(getUriPath(t));if(!n)return;let i=Date.now();this.y.set(n,i),r.visible&&this.w.add(n),this.y.size>this.me?this.et(!0):i-this.Qe>this.W&&this.et()}et(t=!1){let r=Date.now(),n=r-this.W*2;for(let[i,a]of this.y.entries())(t||athis.me&&a{var getFileName,normalizePath,getUriPath;try{let e=K();e&&(getFileName=e.getFileName,normalizePath=e.normalizePath,getUriPath=e.getUriPath)}catch{}if(!getFileName){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function")try{let e=dynamicRequire("../utils/pathUtils");getFileName=getFileName||e.getFileName,normalizePath=normalizePath||e.normalizePath,getUriPath=getUriPath||e.getUriPath}catch{}}catch{}getFileName||(getFileName=e=>{let t=String(e||""),r=t.replace(/\\/g,"/").lastIndexOf("/");return r===-1?t:t.substring(r+1)}),normalizePath||(normalizePath=(e="")=>(e||"").toString().replace(/\\/g,"/")),getUriPath||(getUriPath=(e="")=>e?typeof e=="string"?e:e?.fsPath?e.fsPath:e?.path?e.path:String(e):"")}var VIEWPORT_DEFAULT_WINDOW_MS=300*1e3,VIEWPORT_STANDARD_WINDOW_MS=600*1e3,VIEWPORT_MINIMAL_WINDOW_MS=900*1e3,DEFAULT_SMART_WATCHER_EXTENSIONS=["ts","tsx","js","jsx","mjs","cjs","mts","cts","vue","py","go","rb","rs","java","kt","swift","cs","cpp","c","php","scala","sql","md","mdx","json","jsonc","yml","yaml","toml","ini","txt","html","css","scss"],SMART_WATCHER_PRIORITY=new Map([["src",100],["app",95],["apps",95],["packages",90],["services",85],["service",80],["client",75],["clients",70],["server",70],["servers",65],["lib",65],["libs",60],["api",60],["apis",60],["components",55],["modules",55],["feature",50],["features",50],["extensions",45],["scripts",45],["tools",45],["examples",40],["docs",35],["config",35],["test",30],["tests",30],["spec",30],["specs",30],["demo",25],["demos",25]]);function basename(e){if(!e)return"";try{return require("path").basename(e)}catch{let t=e.replace(/\\/g,"/"),r=t.lastIndexOf("/");return r===-1?t:t.substring(r+1)}}function dirname(e){if(!e)return".";try{return require("path").dirname(e)}catch{let t=e.replace(/\\/g,"/"),r=t.lastIndexOf("/");return r===-1?".":t.substring(0,r)}}function describeFile(e=""){try{let t=typeof e=="string"?e:getUriPath(e),r=normalizePath(t);return getFileName(r)||r||"unknown"}catch{return"unknown"}}function getNormalizedPathsFromEditors(e){let t=Date.now();if(!Array.isArray(e))return[];let r=[];for(let n of e){let i=n?.document?.uri;if(!i||i.scheme!=="file")continue;let a=normalizePath(getUriPath(i));a&&r.push({path:a,ts:t})}return r}function keysToTrimViewportHistory(e,t,r,n=!1,i=Date.now()){let a=i-t*2,o=[];for(let[s,c]of e)(n||cr&&c({value:d,key:h?`badge:${t||"default"}:${h}`:null});switch(t){case"relative-short":case"relative-long":return a<1?l("\u25CF\u25CF","just"):a<60?l(`${Math.min(a,99)}m`,`m:${Math.min(a,99)}`):o<24?l(`${Math.min(o,23)}h`,`h:${Math.min(o,23)}`):s<7?l(`${s}d`,`d:${s}`):c<4?l(`${c}w`,`w:${c}`):u<12?l(`${u}M`,`M:${u}`):l("1y","y:1");case"absolute-short":case"absolute-long":{let d=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],h=e instanceof Date?e.getDate():new Date(e).getDate(),g=`${d[e instanceof Date?e.getMonth():new Date(e).getMonth()]}${h<10?"0"+h:h}`,y=`abs:${e instanceof Date?e.getMonth():new Date(e).getMonth()}-${h}`;return l(g,y)}case"technical":return a<60?l(`${a}m`,`tech:m:${a}`):o<24?l(`${o}h`,`tech:h:${o}`):l(`${s}d`,`tech:d:${s}`);case"minimal":return o<1?l("\u2022\u2022","min:now"):o<24?l("\u25CB\u25CB","min:hours"):l("\u2500\u2500","min:days");default:return a<60?l(`${a}m`,`smart:m:${a}`):o<24?l(`${o}h`,`smart:h:${o}`):l(`${s}d`,`smart:d:${s}`)}}module.exports={VIEWPORT_DEFAULT_WINDOW_MS,VIEWPORT_STANDARD_WINDOW_MS,VIEWPORT_MINIMAL_WINDOW_MS,DEFAULT_SMART_WATCHER_EXTENSIONS,SMART_WATCHER_PRIORITY,FILE_TYPE_COLOR_MAP,COLOR_ENHANCEMENT_MAP,getFileTypeColorMap,getColorEnhancementMap,getNormalizedPathsFromEditors,keysToTrimViewportHistory,computeReadableDescriptor,formatDateBadge,basename,dirname,describeFile}});var Ar=_((exports,module)=>{var vscode=null;try{vscode=require("vscode")}catch{}var proc=typeof process<"u"?process:null,env=proc?.env||{},{getFeatureFlagsGlobal}=G(),featureFlags=getFeatureFlagsGlobal(),FEATURE_LEVELS=["full","enhanced","standard","minimal"];if(!featureFlags)throw new Error("Explorer Dates: feature flags bridge unavailable for decorationsAdvanced chunk");function tryLoadChunk(...names){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function")for(let e of names)try{let t=dynamicRequire(e);if(t)return t}catch{}}catch{}return null}async function loadBatchProcessorIfNeeded(provider){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=dynamicRequire("./decoration-batch-chunk");if(e&&typeof e.loadBatchProcessorIfNeeded=="function")return await e.loadBatchProcessorIfNeeded(provider)}}catch(e){provider._logger?.debug?.("Delegated loadBatchProcessorIfNeeded failed",e)}return provider._logger?.debug?.("BatchProcessor not available (fallback)"),null}async function deferPreloads(e){try{Promise.resolve().then(()=>R(vr())).then(t=>{try{e.tt=t.createViewportManager?.(e)||null}catch(r){e._logger?.debug?.("Failed to init viewport manager",r)}}).catch(t=>e._logger?.debug?.("Failed to load viewport manager chunk",t)),Promise.resolve().then(()=>R(at())).then(t=>{try{let r=t.getLocalization();e.p.getString=(...i)=>r.getString(...i),e.p.formatDate=(...i)=>r.formatDate(...i),e.p.getCurrentLocale=()=>r.getCurrentLocale();let n=e.p.dispose;e.p.dispose=()=>{try{r.dispose()}catch{}n()}}catch{}}).catch(()=>{}),Promise.resolve().then(()=>R(ot())).then(t=>{try{e.yt=t.createDecorationLogic?.(e)||null}catch(r){e._logger?.debug?.("Failed to initialize decoration logic chunk",r)}}).catch(t=>e._logger?.debug?.("Failed to load decoration logic chunk",t)),Promise.resolve().then(()=>R(Ce())).then(t=>{try{e.hr=t.createDecorationProviderHelpers?.(e)||null}catch(r){e._logger?.debug?.("Failed to initialize decoration provide chunk",r)}}).catch(t=>e._logger?.debug?.("Failed to load decoration provide chunk",t)),e._logger?.debug?.("Deferred preloads scheduled")}catch(t){e._logger?.debug?.("deferPreloads failed",t)}}async function getCachedDecoration(provider,cacheKey,fileLabel){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function")try{let e=dynamicRequire("./decoration-cache-chunk");if(e&&typeof e.getCachedDecoration=="function")return await e.getCachedDecoration(provider,cacheKey,fileLabel)}catch{}if(provider.G)return provider._logger?.debug?.(`\u26A0\uFE0F Cache bypass enabled - recalculating decoration for: ${fileLabel}`),null;if(provider._advancedCache)try{let e=await provider._advancedCache.get(cacheKey);if(e)return provider._metrics.cacheHits++,provider._logger?.debug?.(`\u{1F9E0} Advanced cache hit for: ${fileLabel}`),e}catch(e){provider._logger?.debug?.(`Advanced cache error: ${e.message}`)}if(!provider.e||typeof provider.e.get!="function")return provider._logger?.debug?.("getCachedDecoration: no memory cache available, falling back"),null;let memoryEntry=provider.e.get(cacheKey);if(memoryEntry){if(memoryEntry.forceRefresh){try{provider.e.delete(cacheKey)}catch{}provider._logger?.debug?.(`\u{1F6AB} Memory cache bypassed (forced refresh) for: ${fileLabel}`)}else if(Date.now()-memoryEntry.timestampprovider.l&&typeof provider.e.enforceLimit=="function"&&provider.e.enforceLimit(provider.l,provider._logger)}catch{}let cacheEntry={decoration,timestamp:Date.now()};resourceUri&&(cacheEntry.uri=resourceUri);try{provider.e.set(cacheKey,cacheEntry)}catch{}try{typeof provider.ce=="function"&&provider.ce()}catch(e){provider._logger?.debug?.("monitorCachePressure from store failed",e)}if(provider._advancedCache)try{await provider._advancedCache.set(cacheKey,decoration,{ttl:provider.C}),provider._logger?.debug?.(`\u{1F9E0} Stored in advanced cache: ${fileLabel}`)}catch(e){provider._logger?.debug?.(`Failed to store in advanced cache: ${e.message}`)}try{typeof provider.le=="function"&&provider.le()}catch(e){provider._logger?.debug?.("maybeExtendCacheTimeout from store failed",e)}}catch(e){provider._logger?.debug?.("storeDecorationInCache failed",e)}}function cancelProgressiveWarmupJobs(provider){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=dynamicRequire("./decoration-batch-chunk");if(e&&typeof e.cancelProgressiveWarmupJobs=="function")return e.cancelProgressiveWarmupJobs(provider)}}catch(e){provider._logger?.debug?.("Delegated cancelProgressiveWarmupJobs failed",e)}try{let e=provider._progressiveLoadingJobs;e&&typeof e.clear=="function"&&e.clear()}catch(e){provider._logger?.debug?.("Fallback cancel failed",e)}}async function applyProgressiveLoadingSetting(provider){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=dynamicRequire("./decoration-batch-chunk");if(e&&typeof e.applyProgressiveLoadingSetting=="function")return e.applyProgressiveLoadingSetting(provider)}}catch(e){provider._logger?.debug?.("Delegated applyProgressiveLoadingSetting failed",e)}provider._logger?.debug?.("applyProgressiveLoadingSetting fallback invoked (no batch chunk)")}async function initializeAdvancedSystems(e,t){try{if(e._extensionContext=t,e._isWeb&&await e._maybeWarnAboutGitLimitations?.(),e._performanceMode){e._logger?.info?.("Performance mode enabled - skipping advanced cache, batch processor, and progressive loading");return}let r=await featureFlags.advancedCache();if(r){let i=null;if(typeof r=="function")if(r.name==="createAdvancedCache")e._advancedCache=r(t),await e._advancedCache.initialize(),e._logger?.info?.("Advanced cache initialized via factory function");else try{e._advancedCache=new r(t),await e._advancedCache.initialize(),e._logger?.info?.("Advanced cache initialized via direct constructor")}catch(a){e._logger?.warn?.("Failed to instantiate AdvancedCache via direct constructor, disabling advanced cache:",a.message),e._advancedCache=null}else r.AdvancedCache?(i=r.AdvancedCache,e._advancedCache=new i(t),await e._advancedCache.initialize(),e._logger?.info?.("Advanced cache initialized via module property")):r.createAdvancedCache?(e._advancedCache=r.createAdvancedCache(t),await e._advancedCache.initialize(),e._logger?.info?.("Advanced cache initialized via module factory")):(e._logger?.warn?.("AdvancedCache module format not recognized, disabling advanced cache"),e._advancedCache=null)}else e._logger?.info?.("Advanced cache disabled by feature flag"),e._advancedCache=null;await applyProgressiveLoadingSetting(e),e._batchProcessor&&(e._batchProcessor.initialize(),e._logger?.info?.("Batch processor initialized"));try{let i=tryLoadChunk("./decoration-workspace-intel-chunk","./decorationWorkspaceIntel","./decorationWorkspaceIntel.js","./decoration-workspace-intel-chunk.js");i&&typeof i.initializeWorkspaceIntelligence=="function"?await i.initializeWorkspaceIntelligence(e,t):e._logger?.info?.("Workspace intelligence not initialized (no chunk)")}catch(i){e._logger?.warn?.("Delegated workspace intelligence initialization failed",i?.message||String(i)),e._workspaceIntelligence=null}vscode.workspace.getConfiguration("explorerDates").get("autoThemeAdaptation",!0)&&e._themeIntegration?.autoConfigureForTheme&&(await e._themeIntegration.autoConfigureForTheme(),e._logger?.info?.("Theme integration configured")),e._accessibility?.shouldEnhanceAccessibility?.()&&(await e._accessibility.applyAccessibilityRecommendations?.(),e._logger?.info?.("Accessibility recommendations applied")),e._allocationTelemetryEnabled&&(scheduleTelemetryReport(e),e._logger?.info?.("Allocation telemetry enabled - reports every",e._telemetryReportInterval,"ms")),e._logger?.info?.("Advanced systems initialized successfully")}catch(r){e._logger?.error?.("Failed to initialize advanced systems",r)}}function shouldUseFallbackWatcher(e){return e._enableWatcherFallbacks===!1?!1:e._enableWatcherFallbacks==="auto"||e._enableWatcherFallbacks===!0?isPlatformFallbackRequired():!1}function isPlatformFallbackRequired(){let e=proc?.platform,t=env.WSL_DISTRO_NAME||env.WSLENV,r=vscode.env.remoteName,n=env.DOCKER_CONTAINER;return t||r||n||e==="android"}async function createFallbackWatcher(e,t,r){try{if(!e._smartWatcherFallbackManager){let n=await featureFlags.loadFeatureModule("smartWatcherFallback");if(n){let{SmartWatcherFallbackManager:i}=n;e._smartWatcherFallbackManager=new i({logger:e._logger}),await e._smartWatcherFallbackManager.initialize()}}if(e._smartWatcherFallbackManager){let i=await(await e._smartWatcherFallbackManager.getFallback()).createWatcherWithFallback(t);return e._logger?.debug?.(`Fallback watcher created for ${r}`),i}}catch(n){e._logger?.warn?.(`Fallback watcher creation failed for ${r}:`,n)}return null}async function createWatcherWithFallback(e,t,r="unknown"){try{let n=vscode.workspace.createFileSystemWatcher(t);return e._logger?.debug?.(`Native watcher created for ${r}`),n}catch(n){if(e._logger?.debug?.(`Native watcher failed for ${r}:`,n),!shouldUseFallbackWatcher(e))throw n;return createFallbackWatcher(e,t,r)}}async function ensureWatcherManager(e){try{if(e.f)return e.f;try{let t=await Promise.resolve().then(()=>R(dt()));return e.f=t.createWatcherManager(e),e.f}catch(t){e._logger?.debug?.("Failed to load watcher manager chunk from advanced chunk",t)}}catch(t){e._logger?.debug?.("ensureWatcherManager failed",t)}return null}async function setupFileWatcher(e,t="initial"){try{let r=await ensureWatcherManager(e);if(r&&typeof r.setupFileWatcher=="function")return r.setupFileWatcher(t)}catch(r){e._logger?.debug?.("setupFileWatcher failed in advanced chunk",r)}try{let r=createWatcherWithFallback(e,"**/*",`global:${t}`);if(r)return e.s||(e.s=new Set),e.s.add(r),e._logger?.info?.("Global watcher activated (fallback)",{reason:t}),r}catch(r){e._logger?.debug?.("setupFileWatcher fallback failed",r)}return null}function registerWatcherHandlers(e,t,r="unknown"){try{let n=e.f||null;if(n&&typeof n.he=="function")return n.he(t,r)}catch(n){e._logger?.debug?.("Watcher manager register watcher handlers failed (advanced)",n)}try{if(!t)return;t.onDidChange(n=>e.M(n,"change",r)),t.onDidCreate(n=>e.M(n,"create",r)),t.onDidDelete(n=>e.M(n,"delete",r))}catch(n){e._logger?.debug?.("registerWatcherHandlers fallback failed",n)}}function dispatchWatcherEvent(e,t,r,n){try{let i=e.f||null;if(i&&typeof i.xe=="function")return i.xe(t,r,n)}catch(i){e._logger?.debug?.("Watcher manager dispatch watcher event failed (advanced)",i)}try{try{e.Me?.(t)}catch{}r==="delete"?e.clearDecoration(t):e.refreshDecoration(t),e._workspaceIntelligence?.incrementalIndexer&&e._workspaceIntelligence.incrementalIndexer.queueDelta(t,r),e.Ye&&e._logger?.debug?.(`Watcher event processed (${r}) for ${e.describeFile(t)} via ${n}`)}catch(i){e._logger?.debug?.("dispatchWatcherEvent fallback failed",i)}}function buildSummaryTooltip(e,{filePath:t,stat:r,badgeDetails:n}){try{let i=tryLoadChunk("./decoration-formatters-chunk","./decorationFormatters","./decoration-formatters-chunk.js","./decorationFormatters.js","./decoration-helpers-chunk","./decorationHelpers","./decoration-helpers","./decoration-helpers-chunk.js","./decorationHelpers.js");if(i&&typeof i.buildSummaryTooltip=="function")return i.buildSummaryTooltip(e,{filePath:t,stat:r,badgeDetails:n})}catch(i){e._logger?.debug?.("Delegated buildSummaryTooltip failed",i)}try{let i=[];n?.readableModified&&i.push(`Modified ${n.readableModified}`);let a=n?.fileSizeLabel||(r?.size?e.gt(r.size,"auto"):null);return a&&i.push(a),`${typeof e.describeFile=="function"?e.describeFile(t):t} \u2014 ${i.filter(Boolean).join(" \u2022 ")||e.Dr(r?.mtime||new Date)}`}catch(i){return e._logger?.debug?.("buildSummaryTooltip failed",i),`${typeof e.describeFile=="function"?e.describeFile(t):t} \u2014 ${e.Dr(r?.mtime||new Date)}`}}function formatDateReadable(e,t){try{let r=tryLoadChunk("./decoration-formatters-chunk","./decorationFormatters","./decoration-formatters-chunk.js","./decorationFormatters.js","./decoration-helpers-chunk","./decorationHelpers","./decoration-helpers","./decoration-helpers-chunk.js","./decorationHelpers.js");if(r&&typeof r.formatDateReadable=="function")return r.formatDateReadable(e,t)}catch(r){e._logger?.debug?.("Delegated formatDateReadable failed",r)}try{let r=new Date,n=r.getTime()-t.getTime(),i=Math.floor(n/(1e3*60)),a=Math.floor(n/(1e3*60*60)),o=Math.floor(n/(1e3*60*60*24)),s=e.ln(t,r,i,a,o);return s?e.er(e.L,e.Ie,e.Cr,s.key,s.factory,e.Sr):t.getFullYear()===r.getFullYear()?e.p.formatDate(t,{month:"short",day:"numeric"}):e.p.formatDate(t,{month:"short",day:"numeric",year:"numeric"})}catch(r){return e._logger?.debug?.("formatDateReadable failed",r),e.p.formatDate(t)}}async function getGitBlameInfo(e,t,r=null){if(env.DISABLE_GIT_FEATURES==="1"||e.un)return null;try{let n=await featureFlags.gitInsights();return!n||typeof n.getGitBlameInfo!="function"?null:await n.getGitBlameInfo(t,r)}catch(n){return e._logger?.warn?.("Git blame lookup failed",{filePath:t,message:n?.message||String(n)}),null}}async function findWorkspaceFilesWithTimeout(provider,maxResults){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=dynamicRequire("./workspace-scan-chunk");if(e&&typeof e.findWorkspaceFilesWithTimeout=="function")return e.findWorkspaceFilesWithTimeout(provider,maxResults)}}catch(e){provider._logger?.debug?.("Delegated findWorkspaceFilesWithTimeout failed",e)}try{return require("vscode").workspace.findFiles("**/*",null,maxResults)}catch(e){return provider._logger?.warn?.("Workspace scan fallback failed",e),null}}function startWorkspaceScanWatchdog(provider){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=dynamicRequire("./workspace-scan-chunk");if(e&&typeof e.startWorkspaceScanWatchdog=="function")return e.startWorkspaceScanWatchdog(provider)}}catch(e){provider._logger?.debug?.("Delegated startWorkspaceScanWatchdog failed",e)}return Promise.resolve()}function clearWorkspaceScanWatchdog(provider){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=dynamicRequire("./workspace-scan-chunk");if(e&&typeof e.clearWorkspaceScanWatchdog=="function")return e.clearWorkspaceScanWatchdog(provider)}}catch(e){provider._logger?.debug?.("Delegated clearWorkspaceScanWatchdog failed",e)}provider.te&&(clearTimeout(provider.te),provider.te=null)}async function performWorkspaceSizeCheck(provider){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=dynamicRequire("./workspace-scan-chunk");if(e&&typeof e.performWorkspaceSizeCheck=="function")return e.performWorkspaceSizeCheck(provider)}}catch(e){provider._logger?.debug?.("Delegated performWorkspaceSizeCheck failed",e)}try{let e=require("vscode"),t=e.workspace.workspaceFolders;if(!t||t.length===0)return;provider._logger?.info?.("Checking workspace size (fallback, fast)");let r=await(e.workspace.findFiles?e.workspace.findFiles("**/*",null,1e3):[]),n=Array.isArray(r)?r.length:0;provider.Ve=n,provider.u=n>1e5?"extreme":n>1e4?"large":"normal",provider.Ge(provider.Xe(),"workspace-scale-change-fallback")}catch(e){provider._logger?.debug?.("performWorkspaceSizeCheck fallback failed",e)}}function getInitials(e,t){try{let n=tryLoadChunk("./decoration-formatters-chunk","./decorationFormatters","./decoration-formatters-chunk.js","./decorationFormatters.js","./decoration-helpers-chunk","./decorationHelpers","./decoration-helpers","./decoration-helpers-chunk.js","./decorationHelpers.js");if(n&&typeof n.getInitials=="function")return n.getInitials(e,t)}catch(n){e._logger?.debug?.("Delegated getInitials failed",n)}if(e.pe&&typeof e.pe.getInitials=="function")return e.pe.getInitials(t);if(!t||typeof t!="string")return null;let r=t.trim().split(/\s+/).filter(Boolean);return r.length===0?null:r.length===1?r[0].substring(0,2).toUpperCase():(r[0][0]+(r[1][0]||"")).substring(0,2).toUpperCase()}function formatCompactSize(e,t){try{let r=tryLoadChunk("./decoration-formatters-chunk","./decorationFormatters","./decoration-formatters-chunk.js","./decorationFormatters.js","./decoration-helpers-chunk","./decorationHelpers","./decoration-helpers","./decoration-helpers-chunk.js","./decorationHelpers.js");if(r&&typeof r.formatCompactSize=="function")return r.formatCompactSize(e,t)}catch(r){e._logger?.debug?.("Delegated formatCompactSize failed",r)}try{if(typeof t!="number"||isNaN(t))return null;let r=["B","K","M","G","T"],n=0,i=t;for(;i>=1024&&n=2?s.slice(0,2):s}catch(r){return e._logger?.debug?.("formatCompactSize failed",r),null}}function formatFullDate(e,t){try{let r=tryLoadChunk("./decoration-formatters-chunk","./decorationFormatters","./decoration-formatters-chunk.js","./decorationFormatters.js","./decoration-helpers-chunk","./decorationHelpers","./decoration-helpers","./decoration-helpers-chunk.js","./decorationHelpers.js");if(r&&typeof r.formatFullDate=="function")return r.formatFullDate(e,t)}catch(r){e._logger?.debug?.("Delegated formatFullDate failed",r)}try{let r={year:"numeric",month:"long",day:"numeric",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:"short"};return t.toLocaleString("en-US",r)}catch(r){return e._logger?.debug?.("formatFullDate failed",r),t.toString()}}function scheduleTelemetryReport(e){try{let t=tryLoadChunk("./decoration-telemetry-chunk","./decorationTelemetry","./decorationTelemetry.js","./decoration-telemetry-chunk.js");if(t&&typeof t.scheduleTelemetryReport=="function")return t.scheduleTelemetryReport(e)}catch(t){e._logger?.debug?.("Delegated scheduleTelemetryReport failed",t)}!e._allocationTelemetryEnabled||e._telemetryReportTimer||(e._telemetryReportTimer=setTimeout(()=>{e._telemetryReportTimer=null,reportAllocationTelemetry(e),scheduleTelemetryReport(e)},e._telemetryReportInterval))}function reportAllocationTelemetry(e){try{let i=st();if(i&&typeof i.reportAllocationTelemetry=="function")return i.reportAllocationTelemetry(e)}catch(i){e._logger?.debug?.("Delegated reportAllocationTelemetry failed",i)}let t=e.getMetrics().allocationTelemetry,r=t.decorationPool.allocations+t.badgeFlyweight.allocations+t.readableFlyweight.allocations,n=t.decorationPool.reuses+t.badgeFlyweight.reuses+t.readableFlyweight.reuses;(r>0||n>0)&&e._logger?.info?.("\u{1F9EE} Allocation telemetry report",{timestamp:new Date().toISOString(),pool:{allocations:t.decorationPool.allocations,reuses:t.decorationPool.reuses,reuseRate:t.decorationPool.reusePercent+"%"},badgeFlyweight:{allocations:t.badgeFlyweight.allocations,reuses:t.badgeFlyweight.reuses,reuseRate:t.badgeFlyweight.reusePercent+"%"},readableFlyweight:{allocations:t.readableFlyweight.allocations,reuses:t.readableFlyweight.reuses,reuseRate:t.readableFlyweight.reusePercent+"%"},summary:{totalAllocations:r,totalReuses:n,overallReuseRate:r+n>0?(n/(r+n)*100).toFixed(1)+"%":"0%"},decorationsProcessed:e._metrics.totalDecorations,cacheHitRate:e.getMetrics().cacheHitRate})}function setupPeriodicRefresh(e){try{let t=vscode.workspace.getConfiguration("explorerDates"),r=t.get("badgeRefreshInterval",6e4),n=e.v||r;if(e.F=n,e._logger?.info?.(`Setting up periodic refresh with interval: ${e.F}ms`),e.a&&(clearInterval(e.a),e.a=null),e.i&&e.i.size){for(let i of e.i)clearTimeout(i);e.i.clear()}if(!t.get("showDateDecorations",!0)){e._logger?.info?.("Decorations disabled, skipping periodic refresh setup");return}e.a=setInterval(()=>{if(e.A){e._logger?.debug?.("Periodic refresh skipped - incremental refresh already running");return}e._logger?.debug?.("Periodic refresh triggered - scheduling incremental refresh"),scheduleIncrementalRefresh(e,"periodic")},e.F),e._logger?.info?.("Periodic refresh timer started")}catch(t){e._logger?.debug?.("Failed to setup periodic refresh",t)}}function cancelIncrementalRefreshTimers(provider){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=dynamicRequire("./decoration-refresh-chunk");if(e&&typeof e.cancelIncrementalRefreshTimers=="function")return e.cancelIncrementalRefreshTimers(provider)}}catch(e){provider._logger?.debug?.("Delegated cancelIncrementalRefreshTimers failed",e)}if(!(!provider.i||provider.i.size===0)){for(let e of provider.i)clearTimeout(e);provider.i.clear(),provider.A=!1}}function scheduleIncrementalRefresh(provider,reason="manual"){try{if(!provider.e||typeof provider.e.entries!="function"){provider._logger?.debug?.("scheduleIncrementalRefresh: missing or invalid memory cache, firing global refresh");try{provider.m.fire(void 0)}catch{}return}let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=dynamicRequire("./decoration-refresh-chunk");if(e&&typeof e.scheduleIncrementalRefresh=="function")return e.scheduleIncrementalRefresh(provider,reason)}}catch(e){provider._logger?.debug?.("Delegated scheduleIncrementalRefresh failed",e)}provider._logger?.debug?.("scheduleIncrementalRefresh fallback invoked");try{provider.m.fire(void 0)}catch{}}function markCacheEntryForRefresh(provider,cacheKey){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=dynamicRequire("./decoration-refresh-chunk");if(e&&typeof e.markCacheEntryForRefresh=="function")return e.markCacheEntryForRefresh(provider,cacheKey)}}catch(e){provider._logger?.debug?.("Delegated markCacheEntryForRefresh failed",e)}if(!cacheKey)return;if(!provider.e||typeof provider.e.get!="function")provider._logger?.debug?.("markCacheEntryForRefresh: no memory cache available, skipping");else{let e=provider.e.get(cacheKey);e&&Date.now()-e.timestamp>provider.C*.75&&(e.forceRefresh=!0)}if(provider._advancedCache)try{provider._advancedCache.invalidateByPattern(cacheKey.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"))}catch(e){provider._logger?.debug?.(`Could not invalidate advanced cache for ${cacheKey}: ${e.message}`)}function maybeShedWorkload(provider){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=dynamicRequire("./decoration-memory-chunk");if(e&&typeof e.maybeShedWorkload=="function")return e.maybeShedWorkload(provider)}}catch(e){provider._logger?.debug?.("Delegated maybeShedWorkload failed",e)}try{if(!provider.St||provider.Tt)return;let e=(()=>{try{return proc?.memoryUsage?proc.memoryUsage().heapUsed/1024/1024:0}catch{return 0}})();if(!e)return;if(!provider.ye){provider.ye=e,provider.re=0,provider.be=!1;return}let t=e-provider.ye;if(t>=provider.vt?(provider.re++,provider.re>=2&&!provider.be&&(provider.be=!0,provider._logger?.warn?.("Memory pressure warning (soft threshold exceeded twice)",{deltaMB:Number(t.toFixed(2)),baselineMB:provider.ye,heapMB:e,rssMB:(()=>{try{return proc?.memoryUsage?proc.memoryUsage().rss/1024/1024:0}catch{return 0}})(),cacheSize:provider.e.size,cacheLimit:provider.l}))):provider.re>0&&(provider.re=0,t=provider.Ft){provider.Tt=!0,provider.l=Math.min(provider.l,provider.Tr),provider.v=Math.max(provider.v||provider.F||provider.At,provider.At);let r=(()=>{try{return proc?.memoryUsage?proc.memoryUsage().rss/1024/1024:0}catch{return 0}})(),n={timestamp:new Date().toISOString(),deltaMB:Number(t.toFixed(2)),baselineMB:provider.ye,heapMB:e,rssMB:r,cacheSize:provider.e.size,maxCacheSize:provider.l,watcherStrategy:provider.K,staticWatchers:provider.s.size,dynamicWatchers:provider.d.size};provider.rt.push(n),provider.rt.length>10&&provider.rt.shift(),provider._logger?.warn?.(`Memory shedding activated (delta ${t.toFixed(2)} MB >= ${provider.Ft} MB); cache size capped at ${provider.l} and refresh interval stretched to ${provider.v}ms`,n),setupPeriodicRefresh(provider),provider.be=!1,provider.re=0}}catch(e){provider._logger?.debug?.("maybeShedWorkload failed",e)}}function monitorCachePressure(e){try{if(!e.l||e.l<=0)return;let t=e.e.size/e.l;t>=e.Rt?e.nt||(e.nt=!0,e._logger?.infoWithOptions?.({throttleKey:"cache-pressure",intervalMs:6e4},`Decoration cache usage is at ${(t*100).toFixed(1)}% of capacity`,{cacheSize:e.e.size,maxCacheSize:e.l})):t0&&e.e.clear();try{typeof e.vr=="function"&&e.vr(t)}catch{}e.x.size>0&&(e.x.clear(),e.Se.length=0),e.L.size>0&&(e.L.clear(),e.Ie.length=0),e._logger?.debug?.(`\u{1F9FD} Purged lightweight caches (${t})`)}catch(r){e._logger?.debug?.("purgeLightweightCaches failed",r)}}async function togglePerformanceMode(e,t,{reason:r="unspecified",refresh:n=!0}={}){if(t!==e._performanceMode){if(e._performanceMode=t,e._logger?.info?.(`Performance mode ${t?"enabled":"disabled"} (${r})`),t)e.at?.({permanent:!0}),e._logger?.info?.("File watchers disabled for performance mode"),e.a&&(clearInterval(e.a),e.a=null,e._logger?.info?.("Periodic refresh disabled for performance mode"));else{try{e.Q?.("performance-mode-toggle"),e._logger?.info?.("File watchers enabled (performance mode off)")}catch{}e.a||(e._e?.(),e._logger?.info?.("Periodic refresh enabled (performance mode off)"))}if(n)try{e.refreshAll?.({reason:"performance-mode-change"})}catch(i){e._logger?.debug?.("refreshAll after performance toggle failed",i)}if(t)e._workspaceIntelligence?.dispose&&(e._workspaceIntelligence.dispose(),e._workspaceIntelligence=null);else if(!e._workspaceIntelligence)try{let{getFeatureFlagsGlobal:i}=G(),a=i(),o=a?await a.workspaceIntelligence():null;if(o){let{WorkspaceIntelligenceManager:s}=o;e._workspaceIntelligence=new s(e._fileSystem),await e._workspaceIntelligence.initialize({batchProcessor:e._batchProcessor,enableProgressiveAnalysis:e._shouldEnableProgressiveAnalysis?.()});let c=require("vscode").workspace.workspaceFolders;c?.length&&await e._workspaceIntelligence.analyzeWorkspace(c,{maxFiles:e._getIndexerMaxFiles?.()})}}catch(i){e._logger?.debug?.("Workspace intelligence reinitialization failed after performance mode toggle",i)}}}function applyPerformanceProfile(e,t,r="unspecified"){try{let n=t?.level||e.$;e.hn=!1;let i=computeEffectivePerformanceMode(e);if(i!==e._performanceMode&&(e._logger?.debug?.("Auto performance mode update",{reason:r,featureLevel:n,workspaceScale:e.u,desiredPerformanceMode:i}),togglePerformanceMode(e,i,{reason:`${r}-auto`,refresh:!0}).catch(a=>e._logger?.debug?.("Failed to toggle performance mode automatically",a))),applyConcurrencyLimit(e,r),!e._performanceMode&&(e.u==="large"||e.u==="extreme")){let a={...e.R,applyBackgroundLimits:!0,backgroundTooltipMode:e.R?.backgroundTooltipMode==="rich"?"summary":e.R?.backgroundTooltipMode};e.R=a}if(!e._performanceMode){let a=getRefreshIntervalForScale(e),o=a!==null&&a!==e.v,s=a===null&&e.v!==null;o?(e.v=a,e._e?.()):s&&(e.v=null,e._e?.())}}catch(n){e._logger?.debug?.("applyPerformanceProfile failed",n)}}function getRefreshIntervalForScale(e){return e.u==="extreme"?6e5:e.u==="large"?18e4:null}function getSmartWatcherDefaults(){try{let e=Fr();return{DEFAULT_SMART_WATCHER_EXTENSIONS:e.DEFAULT_SMART_WATCHER_EXTENSIONS,SMART_WATCHER_PRIORITY:e.SMART_WATCHER_PRIORITY}}catch{return{DEFAULT_SMART_WATCHER_EXTENSIONS:["js","ts","json","md","py","java"],SMART_WATCHER_PRIORITY:new Map([["src",100],["lib",65],["test",30]])}}}function computeEffectivePerformanceMode(e){return e.Fr===!0?!0:e.Fr===!1?!1:e.u==="extreme"}function applyConcurrencyLimit(e,t="unspecified"){let r=e.ue,n=e.Ar?e.Ar():e.ot||8;e.ue=Math.max(1,Math.min(n,e.ot||8)),e._logger?.info?.(`Adjusted concurrency cap ${r} -> ${e.ue} (${t})`,{workspaceScale:e.u,performanceMode:e._performanceMode})}function _buildFeatureProfile(e,t="full"){let r=FEATURE_LEVELS.includes(t)?t:"full";switch(r){case"enhanced":return{level:r,enableGit:!0,enableProgressiveAnalysis:!0,applyBackgroundLimits:!1,backgroundTooltipMode:"rich",viewportWindowMs:6e4};case"standard":return{level:r,enableGit:!0,enableProgressiveAnalysis:!1,applyBackgroundLimits:!0,backgroundTooltipMode:"summary",viewportWindowMs:48e4};case"minimal":return{level:r,enableGit:!1,enableProgressiveAnalysis:!1,applyBackgroundLimits:!0,backgroundTooltipMode:"summary",viewportWindowMs:12e4};default:return{level:r,enableGit:!0,enableProgressiveAnalysis:!1,applyBackgroundLimits:!1,backgroundTooltipMode:"rich",viewportWindowMs:3e5}}}function applyFeatureLevel(e,t,r="unspecified"){if(!t)return!1;FEATURE_LEVELS.includes(t)||(t="full");let n=e.$!==t||!e.R;e.$=t;let i=n?_buildFeatureProfile(e,t):e.R||_buildFeatureProfile(e,t);return e.R=i,e.W=i.viewportWindowMs,n&&e._logger?.info?.(`Feature level set to "${t}" (${r})`,{viewportWindowMs:e.W,applyBackgroundLimits:i.applyBackgroundLimits,backgroundTooltipMode:i.backgroundTooltipMode}),e._performanceMode?e._logger?.info?.("Performance mode active - skipping feature profile application"):(i.applyBackgroundLimits&&e.dn?.(r),i.backgroundTooltipMode&&e._logger?.info?.("Configuring background tooltip behavior as part of feature profile",{mode:i.backgroundTooltipMode}),i.enableProgressiveAnalysis&&e._logger?.info?.("Progressive analysis enabled by feature profile")),n}function maybePurgeLightweightCaches(e){try{if(!e.it)return;if(e.Pt<=0){purgeLightweightCaches(e,"lightweight-interval");return}let t=e._metrics?.totalDecorations||0;t>0&&t%e.Pt===0&&purgeLightweightCaches(e,"lightweight-interval")}catch(t){e._logger?.debug?.("maybePurgeLightweightCaches failed",t)}}function _getFlyweightValueImpl(cache,order,limit,key,factory,statsTracker){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=dynamicRequire("./decoration-pool-chunk");if(e&&typeof e.xt=="function")return e.xt(cache,order,limit,key,factory,statsTracker)}}catch{}try{return factory()}catch{return null}}function acquireDecorationFromPoolImpl({badge,tooltip,color},createFileDecoration){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=dynamicRequire("./decoration-pool-chunk");if(e&&typeof e.acquireDecorationFromPoolImpl=="function")return e.acquireDecorationFromPoolImpl({badge,tooltip,color},createFileDecoration)}}catch{}return createFileDecoration(badge||"??")}function _trimFlyweightCacheToLimitImpl(cache,order,maxSize){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=dynamicRequire("./decoration-pool-chunk");if(e&&typeof e.Mt=="function")return e.Mt(cache,order,maxSize)}}catch{}}function clearDecorationPoolImpl(provider,reason="unspecified"){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=dynamicRequire("./decoration-pool-chunk");if(e&&typeof e.clearDecorationPoolImpl=="function")return e.clearDecorationPoolImpl(provider,reason)}}catch{}try{provider.c?.size&&(provider.c.clear(),provider.H.length=0)}catch{}}function checkMemoryPressure(e){try{let t=Date.now();if(e.st||(e.st=t),t-e.st<3e4)return;e.st=t;let r=e.e.size||0,n=1e4;r/n>.8&&(e._logger?.warn?.("\u{1F9E0} Memory pressure detected, performing cleanup",{cacheSize:r,maxSize:n}),purgeLightweightCaches(e,"memory-pressure"),e._metrics.cachePressureEvents=(e._metrics.cachePressureEvents||0)+1)}catch(t){e._logger?.debug?.("checkMemoryPressure failed",t)}}function createLazyHierarchicalDecorationCache(){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=dynamicRequire("./decoration-cache-chunk");if(e&&typeof e.createLazyHierarchicalDecorationCache=="function")return e.createLazyHierarchicalDecorationCache()}}catch{}class SimpleFallbackCache{constructor(){this.ne=new Map}get size(){return this.ne.size}clear(){this.ne.clear()}get(t){return this.ne.get(t)}set(t,r){this.ne.set(t,r)}delete(t){return this.ne.delete(t)}*entries(){yield*this.ne.entries()}hydrateInBackground(){}enforceLimit(){return 0}}return new SimpleFallbackCache}module.exports={applyProgressiveLoadingSetting,cancelProgressiveWarmupJobs,createFallbackWatcher,createWatcherWithFallback,initializeAdvancedSystems,loadBatchProcessorIfNeeded,reportAllocationTelemetry,scheduleTelemetryReport,setupPeriodicRefresh,scheduleIncrementalRefresh,cancelIncrementalRefreshTimers,markCacheEntryForRefresh,maybeShedWorkload,monitorCachePressure,purgeLightweightCaches,maybePurgeLightweightCaches,checkMemoryPressure,getCachedDecoration,storeDecorationInCache,buildSummaryTooltip,formatDateReadable,getGitBlameInfo,getInitials,formatCompactSize,formatFullDate,togglePerformanceMode,applyPerformanceProfile,getRefreshIntervalForScale,computeEffectivePerformanceMode,applyConcurrencyLimit,findWorkspaceFilesWithTimeout,startWorkspaceScanWatchdog,clearWorkspaceScanWatchdog,performWorkspaceSizeCheck,applyFeatureLevel,fn:_buildFeatureProfile,getSmartWatcherDefaults,createLazyHierarchicalDecorationCache,xt:_getFlyweightValueImpl,acquireDecorationFromPoolImpl,Mt:_trimFlyweightCacheToLimitImpl,clearDecorationPoolImpl,deferPreloads,ensureWatcherManager,setupFileWatcher,registerWatcherHandlers,dispatchWatcherEvent}}});var Ir=_((Wa,Mr)=>{function Ni(e){try{let t=(()=>{try{return require("vscode")}catch{return null}})(),r=t?t.workspace.getConfiguration("explorerDates"):{get:()=>6e4},n=r.get("badgeRefreshInterval",6e4),i=e.v||n;if(e.F=i,e._logger?.info?.(`Setting up periodic refresh with interval: ${e.F}ms`),e.a&&(clearInterval(e.a),e.a=null),e.i&&e.i.size){for(let a of e.i)clearTimeout(a);e.i.clear()}if(!r.get("showDateDecorations",!0)){e._logger?.info?.("Decorations disabled, skipping periodic refresh setup");return}e.a=setInterval(()=>{if(e.A){e._logger?.debug?.("Periodic refresh skipped - incremental refresh already running");return}e._logger?.debug?.("Periodic refresh triggered - scheduling incremental refresh"),Pr(e,"periodic")},e.F),e._logger?.info?.("Periodic refresh timer started")}catch(t){e._logger?.debug?.("Failed to setup periodic refresh",t)}}function Rr(e){if(!(!e.i||e.i.size===0)){for(let t of e.i)clearTimeout(t);e.i.clear(),e.A=!1}}function Pr(e,t="manual"){try{if(e.k){e._logger?.debug?.(`scheduleIncrementalRefresh called after dispose - ignoring (${t})`);return}if(e.ie){e._logger?.debug?.(`Incremental refresh (${t}) skipped - refresh already pending`);return}if(e.A&&(e._logger?.debug?.(`Incremental refresh (${t}) already in progress, cancelling pending timers and rescheduling`),Rr(e)),!e.e||typeof e.e.entries!="function"){e._logger?.debug?.("scheduleIncrementalRefresh: no memory cache available, firing global refresh");try{e.m.fire(void 0)}catch{}e.A=!1,e.ie=!1;return}let r=Array.from(e.e.entries());if(r.length===0){e._logger?.debug?.(`No cached decorations to refresh for ${t}, falling back to global refresh`),e.m.fire(void 0);return}let n=r.map(([c,u])=>{let l=u?.uri?u.uri:c?require("vscode").Uri.file(c):null;return l?{cacheKey:c,uri:l}:null}).filter(Boolean);if(n.length===0){e._logger?.debug?.(`Failed to resolve URIs for ${t} incremental refresh, firing global refresh`),e.m.fire(void 0);return}let i=40,a=Math.ceil(n.length/i),o=Math.min(4e3,Math.max(750,Math.floor(e.F*.25))),s=a>1?Math.max(25,Math.floor(o/a)):0;e.A=!0,e.ie=!0,e._logger?.debug?.(`Incremental refresh (${t}) scheduled for ${n.length} items in ${a} batches (spacing: ${s}ms)`);for(let c=0;c{try{if(e.k){e.i.delete(d),e.i.size||(e.A=!1,e.ie=!1);return}u.forEach(({cacheKey:h,uri:g})=>{xr(e,h),e.m.fire(g)})}finally{e.i.delete(d),e.i.size===0&&(e.A=!1,e.ie=!1,e._logger?.debug?.(`Incremental refresh (${t}) completed`))}},l);e.i.add(d)}}catch(r){e._logger?.debug?.("Failed to schedule incremental refresh",r)}}function xr(e,t){if(t){if(!e.e||typeof e.e.get!="function")e._logger?.debug?.("markCacheEntryForRefresh: no memory cache available, skipping");else{let r=e.e.get(t);if(r){let n=Date.now()-r.timestamp;n>e.C*.75?(r.forceRefresh=!0,e._logger?.debug?.(`Marked stale entry for refresh: ${t} (age: ${Math.round(n/1e3)}s)`)):e._logger?.debug?.(`Skipped refresh for fresh entry: ${t} (age: ${Math.round(n/1e3)}s)`)}}if(e._advancedCache)try{let r=t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e._advancedCache.invalidateByPattern(r)}catch(r){e._logger?.debug?.(`Could not invalidate advanced cache for ${t}: ${r.message}`)}}}Mr.exports={setupPeriodicRefresh:Ni,cancelIncrementalRefreshTimers:Rr,scheduleIncrementalRefresh:Pr,markCacheEntryForRefresh:xr}});var f=require("vscode"),{fileSystem:qi}=$e(),{formatFileSize:zi}=Be(),{getSettingsCoordinator:Ui}=Ve(),{SecurityValidator:La,SecureFileOperations:Oa,detectSecurityEnvironment:Hi}=Ze(),{DEFAULT_CACHE_TIMEOUT:Fe,DEFAULT_MAX_CACHE_SIZE:ie,GLOBAL_STATE_KEYS:Na,DEFAULT_DECORATION_POOL_SIZE:$i,DEFAULT_FLYWEIGHT_CACHE_SIZE:Wr,WORKSPACE_SCALE_EXTREME_THRESHOLD:qa}=I(),{isWebEnvironment:Bi}=J(),{isWebDiagnosticsEnabled:Lr,diagLogOnce:Ae,recordProviderEvent:Ki,recordDecorationCall:ji,recordRefreshCall:Vi}=he(),{resolveFreshness:Gi,compareFreshness:Xi,resourceIdentity:Or}=nt(),C=typeof process<"u"&&process.env?process.env:{},Yi=300*1e3,Zi=Number(C.EXPLORER_DATES_VIEWPORT_HISTORY_LIMIT||400),Nr=Number(C.EXPLORER_DATES_SECURITY_MAX_WARNINGS_PER_FILE??1),qr=["full","enhanced","standard","minimal"],zr=new Map([["src",100],["lib",65],["test",30]]);function Ji(){try{let e=f?.window?.activeColorTheme?.kind,t=e===f.ColorThemeKind.HighContrast,r=e===f.ColorThemeKind.Light;return t?{veryRecent:new f.ThemeColor("list.highlightForeground"),recent:new f.ThemeColor("list.warningForeground"),old:new f.ThemeColor("list.errorForeground"),javascript:new f.ThemeColor("list.highlightForeground"),css:new f.ThemeColor("list.warningForeground"),html:new f.ThemeColor("list.errorForeground"),json:new f.ThemeColor("list.highlightForeground"),markdown:new f.ThemeColor("list.warningForeground"),python:new f.ThemeColor("list.errorForeground"),subtle:new f.ThemeColor("list.highlightForeground"),muted:new f.ThemeColor("list.inactiveSelectionForeground"),emphasis:new f.ThemeColor("list.focusHighlightForeground")}:r?{veryRecent:new f.ThemeColor("list.highlightForeground"),recent:new f.ThemeColor("list.warningForeground"),old:new f.ThemeColor("list.errorForeground"),javascript:new f.ThemeColor("symbolIcon.functionForeground"),css:new f.ThemeColor("symbolIcon.colorForeground"),html:new f.ThemeColor("symbolIcon.snippetForeground"),json:new f.ThemeColor("symbolIcon.stringForeground"),markdown:new f.ThemeColor("symbolIcon.textForeground"),python:new f.ThemeColor("symbolIcon.classForeground"),subtle:new f.ThemeColor("list.inactiveSelectionForeground"),muted:new f.ThemeColor("list.deemphasizedForeground"),emphasis:new f.ThemeColor("list.highlightForeground")}:{veryRecent:new f.ThemeColor("list.highlightForeground"),recent:new f.ThemeColor("charts.yellow"),old:new f.ThemeColor("charts.red"),javascript:new f.ThemeColor("symbolIcon.functionForeground"),css:new f.ThemeColor("charts.purple"),html:new f.ThemeColor("charts.orange"),json:new f.ThemeColor("symbolIcon.stringForeground"),markdown:new f.ThemeColor("charts.yellow"),python:new f.ThemeColor("symbolIcon.classForeground"),subtle:new f.ThemeColor("list.inactiveSelectionForeground"),muted:new f.ThemeColor("list.deemphasizedForeground"),emphasis:new f.ThemeColor("list.highlightForeground")}}catch{return null}}function Qi(e,t){if(!t||!e)return null;let r=ta(e);return[".js",".ts",".jsx",".tsx",".mjs"].includes(r)?t.javascript:[".css",".scss",".sass",".less",".stylus"].includes(r)?t.css:[".html",".htm",".xml",".svg"].includes(r)?t.html:[".json",".yaml",".yml",".toml"].includes(r)?t.json:[".md",".markdown",".txt",".rst"].includes(r)?t.markdown:[".py",".pyx",".pyi"].includes(r)?t.python:null}var ea=e=>{try{let r=String(e||"").replace(/\\/g,"/"),n=r.lastIndexOf("/");return n===-1?r:r.substring(n+1)}catch{return"unknown"}},ta=e=>{try{let t=String(e||""),r=t.lastIndexOf(".");return r<=0?"":t.substring(r).toLowerCase()}catch{return""}},ra=e=>String(e||"").toLowerCase().replace(/\\/g,"/"),Re=e=>String(e||"").replace(/\\/g,"/"),ae=(e="")=>{if(!e)return"";if(typeof e=="string")return e;if(typeof e.fsPath=="string"&&e.fsPath.length>0)return e.fsPath;if(typeof e.path=="string"&&e.path.length>0)return e.path;if(typeof e.toString=="function")try{return e.toString(!0)}catch{return e.toString()}return String(e)},na=(e="")=>{try{let t=typeof e=="string"?e:ae(e),r=Re(t);return ea(r)||r||"unknown"}catch{return"unknown"}},Pe=class{constructor(){this.r=null,this.n=new Map,(async()=>{try{let t=await Promise.resolve().then(()=>R(rr()));if(t&&typeof t.createLazyHierarchicalDecorationCache=="function"){let r=t.createLazyHierarchicalDecorationCache();for(let[n,i]of this.n.entries())r.set(n,i);this.r=r,this.n=null}}catch{}})()}get size(){return this.r?this.r.size:this.n.size}get bucketCount(){return this.r?this.r.bucketCount:0}clear(){if(this.r)return this.r.clear();this.n.clear()}get(t){return this.r?this.r.get(t):this.n.get(t)}set(t,r,n={}){if(this.r)return this.r.set(t,r,n);this.n.set(t,r)}delete(t){return this.r?this.r.delete(t):this.n.delete(t)}*entries(){if(this.r){yield*this.r.entries();return}yield*this.n.entries()}*keys(){if(this.r){yield*this.r.keys();return}yield*this.n.keys()}*values(){if(this.r){yield*this.r.values();return}yield*this.n.values()}[Symbol.iterator](){return this.entries()}enforceLimit(t=0){if(this.r)return this.r.enforceLimit(t);if(!t||this.n.size<=t)return 0;let r=0,i=Array.from(this.n.keys()).slice(0,Math.max(1,Math.ceil(this.n.size-t)));for(let a of i)this.n.delete(a),r++;return r}},ia=C.VSCODE_WEB==="true",xe=class{Rr(){try{let t=typeof process<"u"&&typeof process.memoryUsage=="function"?process.memoryUsage():null,r=Number(t?.heapUsed);return Number.isFinite(r)&&r>=0?Number((r/1024/1024).toFixed(2)):0}catch{return 0}}gn(){try{let t=typeof process<"u"&&typeof process.memoryUsage=="function"?process.memoryUsage():null,r=Number(t?.rss);return Number.isFinite(r)&&r>=0?Number((r/1024/1024).toFixed(2)):0}catch{return 0}}constructor(){this.m=new f.EventEmitter,this.onDidChangeFileDecorations=this.m.event,this.e=new Pe,this.mn=new Map,this.ct=new Map,this.ve=[],this.ot=20,this.ue=this.ot,this.ir=0,this.$e=!1,this.pn=!1,this.c=new Map,this.H=[],this.z={hits:0,misses:0,allocations:0,reuses:0},this.Jt=$i,this.x=new Map,this.Se=[],this.Xt=Wr,this.Yt={hits:0,misses:0,allocations:0,reuses:0},this.L=new Map,this.Ie=[],this.Cr=Wr,this.Sr={hits:0,misses:0,allocations:0,reuses:0},this.Zt=C.EXPLORER_DATES_ENABLE_DECORATION_POOL!=="0",this.Gt=C.EXPLORER_DATES_ENABLE_FLYWEIGHTS!=="0",this.it=C.EXPLORER_DATES_LIGHTWEIGHT_MODE==="1",this._performanceMode=!1;try{let n=f.workspace.getConfiguration("explorerDates");this._performanceMode=!!n.get("performanceMode",this._performanceMode)}catch{}this.St=C.EXPLORER_DATES_MEMORY_SHEDDING==="1",this.Ft=Number(C.EXPLORER_DATES_MEMORY_SHED_THRESHOLD_MB||3),this.Tt=!1,this.ye=this.St?this.Rr():0,this.Tr=Number(C.EXPLORER_DATES_MEMORY_SHED_CACHE_LIMIT||1e3),this.At=Number(C.EXPLORER_DATES_MEMORY_SHED_REFRESH_MS||6e4),this.v=null,this.rt=[],this.vt=Number(C.EXPLORER_DATES_SOFT_HEAP_ALERT_MB||2),this.re=0,this.be=!1,this.Rt=Number(C.EXPLORER_DATES_CACHE_PRESSURE_RATIO||.7),this.nt=!1,this.F=null,this.a=null,this.i=new Set,this.A=!1,this.ie=!1,this.G=C.EXPLORER_DATES_FORCE_CACHE_BYPASS==="1",this.Pt=Number(C.EXPLORER_DATES_LIGHTWEIGHT_PURGE_INTERVAL||400),this._isWeb=ia||Bi(),Lr()&&(Ae("provider-impl-constructed","info","Provider implementation constructed",{isWeb:this._isWeb}),Ki("created",{source:"impl",isWeb:this._isWeb})),this.Pr=Fe*4,this.yn=this.Pr,this.bn=0,this.l=ie;try{let n=f.workspace.getConfiguration("explorerDates");this.C=Number(n.get("cacheTimeout",Fe))}catch{this.C=Fe}try{let n=f.workspace.getConfiguration("explorerDates");this.l=Number(n.get("maxCacheSize",ie))||ie}catch{this.l=ie}this._fileSystem=qi,this._n=!this._isWeb,this.En=!1,this.pe=null,this.wn=null,this.N=new Map,this.We=6e4,this.xr=1e3,this.b=new Map,this.Mr=Number(C.EXPLORER_DATES_FRESHNESS_CACHE_TTL_MS||6e4),this.Ir=Number(C.EXPLORER_DATES_FRESHNESS_CACHE_MAX||2e3),this.It=new Set;try{this.Wr=Math.random().toString(36).slice(2,8),this._logger.debug(`FileDateDecorationProvider created (id=${this.Wr})`)}catch{}this.Lr=null,this.kn=null,this.Or=null,this.Dn=null;let t=Ui(),r=t?.getValue&&t.getValue("enableTelemetry");this._allocationTelemetryEnabled=C.NODE_ENV==="development"||C.EXPLORER_DATES_TELEMETRY==="1"||r===!0,this._telemetryReportInterval=Number(C.EXPLORER_DATES_TELEMETRY_INTERVAL_MS||6e4),this._telemetryReportTimer=null,this.Nr=null,this.Cn=new Map,this.w=new Set,this.y=new Map,this.me=Zi,this.W=300*1e3,this.Qe=Date.now(),this.T=[],this.tt=null,this.Sn=null;try{let n=Array.isArray(f.window?.visibleTextEditors)?f.window.visibleTextEditors:[];for(let a of n){let o=a?.document?.uri?.fsPath||a?.document?.uri?.path||"";o&&this.w.add(String(o).replace(/\\/g,"/"))}let i=f.window?.activeTextEditor?.document?.uri;if(i){let a=i.fsPath||i.path||"";a&&this.w.add(String(a).replace(/\\/g,"/"))}}catch{}this.$="full",this.R=null,this._logger=q().getLogger(),this.p={getString:n=>n,formatDate:n=>n instanceof Date?n.toString():String(n),getCurrentLocale:()=>"en",dispose:()=>{}},this._metrics={totalDecorations:0,cacheHits:0,cacheMisses:0,fileStatTimeMs:0,fileStatCalls:0,gitBlameTimeMs:0,gitBlameCalls:0,viewportPriorityDecorations:0,viewportBackgroundDecorations:0},(async()=>{try{let n=await Promise.resolve().then(()=>R(Er()));n&&typeof n.hydrateProviderOptionalSystems=="function"&&await n.hydrateProviderOptionalSystems(this)}catch(n){this._logger.debug("Failed to run provider initialization chunk",n)}})(),this._workspaceIntelligence=null,this._batchProcessor=null,this._batchProcessorModule=null,this._progressiveLoadingJobs=new Set,this._progressiveLoadingEnabled=!1,this.ae=null,this.oe=null,this._advancedCache=null,this.E=null,this.s=new Set,this.h=void 0,this.d=new Map,this.S=[],this.I=null,this.J=!0,this._enableWatcherFallbacks="auto",this._smartWatcherFallbackManager=null,this.ee=null,this.K="none",this._=new Map,this.Wt=!1,this.Ee=[],this.Ve=null,this.u="unknown",this.Ye=C.EXPLORER_DATES_LOG_WATCHERS==="1",this.Tn=Hi(),this.Lt=!0,this.qr=[],this.zr=!0,this.vn=!1,this.Fn=!1,this.An=new Map,this.Rn=Number(C.EXPLORER_DATES_SECURITY_WARNING_THROTTLE_MS||5e3),this.Pn=Number.isFinite(Nr)?Math.max(0,Nr):1,this.Le=typeof f.workspace.onDidChangeWorkspaceFolders=="function"?f.workspace.onDidChangeWorkspaceFolders(n=>this.Ur(n)):null,this.D=null,this.xn=null,this.Mn=null,this.te=null,this.In=!1,this.Ze=0,this.k=!1,this._accessibility=null;try{let n=f.workspace.getConfiguration("explorerDates"),i=!!n.get("enableContextMenu",!0),a=!!n.get("showStatusBar",!1),o=!!n.get("showWelcomeOnStartup",!0),s=!!n.get("enableExtensionApi",!0);try{f.commands.executeCommand("setContext","explorerDates.enableContextMenu",i).catch(()=>{})}catch{}try{f.commands.executeCommand("setContext","explorerDates.showStatusBar",a).catch(()=>{})}catch{}try{f.commands.executeCommand("setContext","explorerDates.showWelcomeOnStartup",o).catch(()=>{})}catch{}try{f.commands.executeCommand("setContext","explorerDates.enableExtensionApi",s).catch(()=>{})}catch{}}catch(n){this._logger?.debug&&this._logger.debug("Failed to initialize UI contexts",n)}try{typeof f.workspace.onDidChangeConfiguration=="function"&&(this.E=f.workspace.onDidChangeConfiguration(n=>{try{if(!n||typeof n.affectsConfiguration!="function"||!n.affectsConfiguration("explorerDates"))return;let a=!!f.workspace.getConfiguration("explorerDates").get("performanceMode",!1);try{let o=this._performanceMode;this._performanceMode=a,a?(this.at?.({permanent:!0}),this.a&&(clearInterval(this.a),this.a=null)):!a&&o&&(this.Q?.("runtime-config-change"),this.a||this._e?.())}catch(o){this._logger?.debug?.("sync performance-mode toggle failed",o)}(async()=>{try{let o=await this.Z();o&&typeof o.togglePerformanceMode=="function"&&await o.togglePerformanceMode(this,a,{reason:"runtime-config-change",refresh:!0})}catch(o){this._logger?.debug?.("delegated togglePerformanceMode failed",o)}})();try{if(["explorerDates.enableContextMenu","explorerDates.showStatusBar","explorerDates.showWelcomeOnStartup","explorerDates.enableExtensionApi"].some(c=>n.affectsConfiguration&&n.affectsConfiguration(c)))try{let c=f.workspace.getConfiguration("explorerDates"),u=!!c.get("enableContextMenu",!0),l=!!c.get("showStatusBar",!1),d=!!c.get("showWelcomeOnStartup",!0),h=!!c.get("enableExtensionApi",!0);try{f.commands.executeCommand("setContext","explorerDates.enableContextMenu",u).catch(()=>{})}catch{}try{f.commands.executeCommand("setContext","explorerDates.showStatusBar",l).catch(()=>{})}catch{}try{f.commands.executeCommand("setContext","explorerDates.showWelcomeOnStartup",d).catch(()=>{})}catch{}try{f.commands.executeCommand("setContext","explorerDates.enableExtensionApi",h).catch(()=>{})}catch{}}catch(c){this._logger?.debug&&this._logger.debug("Failed to update UI contexts on config change",c)}}catch(o){this._logger?.debug&&this._logger.debug("Failed to evaluate UI-context update condition",o)}try{let o=f.workspace.getConfiguration("explorerDates");if(n.affectsConfiguration&&n.affectsConfiguration("explorerDates.cacheTimeout"))try{this.C=Number(o.get("cacheTimeout",Fe))}catch{}if(n.affectsConfiguration&&n.affectsConfiguration("explorerDates.maxCacheSize"))try{this.l=Number(o.get("maxCacheSize",ie))||ie}catch{}}catch(o){this._logger?.debug&&this._logger.debug("Failed to refresh runtime config values from settings",o)}(async()=>{try{if(n.affectsConfiguration&&n.affectsConfiguration("explorerDates.workspaceExclusionProfiles")&&this._workspaceIntelligence?.smartExclusion?.cleanupAllWorkspaceProfiles&&await this._workspaceIntelligence.smartExclusion.cleanupAllWorkspaceProfiles(),n.affectsConfiguration&&n.affectsConfiguration("explorerDates.showWelcomeOnStartup"))try{let o=!!f.workspace.getConfiguration("explorerDates").get("showWelcomeOnStartup",!0);this._extensionContext&&this._extensionContext.globalState&&typeof this._extensionContext.globalState.update=="function"&&await this._extensionContext.globalState.update("explorerDates.pendingWelcome",o)}catch(o){this._logger?.debug&&this._logger.debug("Failed to persist pending welcome flag",o)}}catch(o){this._logger?.debug&&this._logger.debug("Failed to run workspace exclusion cleanup after config change",o)}})()}catch(i){this._logger?.debug?.("configuration change handler failed",i)}}))}catch(n){this._logger?.debug?.("Failed to register configuration watcher",n)}try{this._performanceMode?(this.h=void 0,this.a=null):(this.Q?.("initial"),this._e?.())}catch(n){this._logger?.debug?.("initial watcher/refresh setup failed",n)}try{this.Hr?.()}catch{}}lt(){if(this.f)return this.f;try{let t=dt();t&&typeof t.createWatcherManager=="function"&&(this.f=t.createWatcherManager(this))}catch(t){this._logger?.debug?.("Failed to create watcher manager",t)}return this.f}Ur(t){try{let r=this.lt();if(r&&typeof r.handleWorkspaceFoldersChanged=="function"){r.handleWorkspaceFoldersChanged(t);return}let n=(t?.added||[]).map(a=>a.uri).filter(Boolean),i=(t?.removed||[]).map(a=>a.uri).filter(Boolean);if(n.length===0&&i.length===0)return;this.D&&clearTimeout(this.D),this.D=setTimeout(()=>{this.D=null,(async()=>{try{this._logger?.info&&this._logger.info("Workspace folders changed (provider fallback)",{added:n.length,removed:i.length}),await this.checkWorkspaceSize();try{this.clearAllCaches()}catch{}try{this.refreshAll()}catch{}if(this._performanceMode)return;this.Q?.("workspace-change");try{typeof this.wt=="function"&&await this.wt()}catch(a){this._logger?.debug&&this._logger.debug("Failed to reconfigure progressive loading after workspace change",a)}if(this._workspaceIntelligence&&typeof this._workspaceIntelligence.onWorkspaceFoldersChanged=="function"){let a=(f.workspace.workspaceFolders||[]).map(o=>({uri:o.uri}));await this._workspaceIntelligence.onWorkspaceFoldersChanged({added:a,removed:i.map(o=>({uri:o}))})}}catch(a){this._logger?.debug&&this._logger.debug("Workspace folder change handling failed",a)}})()},250)}catch(r){this._logger?.debug&&this._logger.debug("provider._handleWorkspaceFoldersChanged failed",r)}}dr(t=[]){try{if(!Array.isArray(t))return[];let r=new Set;return t.map(n=>String(n||"").replace(/^\./,"").toLowerCase().trim()).filter(n=>!!n).filter(n=>r.has(n)?!1:(r.add(n),!0))}catch{return[]}}gr(t){try{let r=Number(t||0);(!Number.isFinite(r)||r<=0)&&(r=20);let n=Number(C.EXPLORER_DATES_MAX_SMART_WATCHER_PATTERNS||200);return Math.max(1,Math.min(Math.floor(r),Math.max(1,n)))}catch{return 20}}async B(t,r={}){try{try{let s=ht();if(s&&typeof s.B=="function")return await s.B(this,t,r)}catch{}let n=[],i=Math.max(1,r&&r.maxPatterns||1),a=i,o=Array.isArray(t)?t.length:0;for(let s of t||[]){if(a<=0)break;let c=Math.max(1,Math.floor(a/Math.max(1,o))),u=new f.RelativePattern(s,"*.{md,mdx,json,jsonc,yml,yaml,ts,tsx,js,jsx}");if(n.push({pattern:u,label:`root:${s.name}`}),a-=1,a<=0)break;try{let l=typeof this._fileSystem?.readdir=="function"?await this._fileSystem.readdir(s.uri||s.fsPath||s):[],d=(Array.isArray(l)?l:[]).filter(h=>h&&(typeof h.isDirectory=="function"?h.isDirectory():!0)).map(h=>typeof h=="string"?h:h.name||"").filter(Boolean).filter(h=>!["node_modules",".git","dist","build","out"].includes(h));d.sort((h,g)=>(zr.get(g)||0)-(zr.get(h)||0));for(let h of d){if(a<=0)break;let g=new f.RelativePattern(s,`${h}/**/*.{md,mdx,json,jsonc,yml,yaml,ts,tsx,js,jsx}`);n.push({pattern:g,label:`sub:${s.name}/${h}`}),a-=1}}catch{}o-=1}return n.slice(0,i)}catch{return[]}}fe(t,r,n){try{if(!t||typeof r!="string"||typeof n!="function")return null;let i=t[r];if(typeof i=="function")try{return i.call(t,n)}catch{return null}return null}catch{return null}}_getIndexerMaxFiles(){try{return Math.max(100,Number(C.EXPLORER_DATES_INDEXER_MAX_FILES||2e3))}catch{return 2e3}}Q(t="initial"){try{if(this._performanceMode||this.k)return;this.h||(this.h={pending:!0});let r=this.lt();if(r&&typeof r.setupFileWatcher=="function")try{r.setupFileWatcher(t);return}catch(n){this._logger?.debug?.("WatcherManager.setupFileWatcher failed",n)}(async()=>{try{let n=await this.Z();n&&typeof n.setupFileWatcher=="function"&&await n.setupFileWatcher(this,t)}catch(n){this._logger?.debug?.("Fallback setupFileWatcher failed",n)}})()}catch(r){this._logger?.debug?.("provider._setupFileWatcher failed",r)}}async Fe(t,r){try{let n="manual",i=typeof t=="number"?t:typeof r=="number"?r:++this.Ze;typeof t=="string"&&(n=t);let a=this.lt();if(a&&typeof a.Fe=="function")return await a.Fe(i,n);this.Q(n);return}catch(n){this._logger?.debug&&this._logger.debug("provider._initializeSmartWatchers failed",n)}}at(t={}){try{let r=t&&t.permanent===!0;if(this.f&&typeof this.f.disposeFileWatchers=="function"){try{this.f.disposeFileWatchers({permanent:r})}catch(n){this._logger?.debug?.("watcherManager.disposeFileWatchers failed",n)}this.h=r?null:void 0}else this.s&&typeof this.s.forEach=="function"&&(this.s.forEach(n=>{try{n&&typeof n.dispose=="function"&&n.dispose()}catch{}}),this.s.clear()),this.h=r?null:void 0;if(this._&&this._.size){for(let n of this._.values())clearTimeout(n.timer);this._.clear()}}catch(r){this._logger?.debug?.("provider._disposeFileWatchers failed",r)}}_e(){try{let t=(()=>{try{return Ar()}catch{return null}})();if(t&&typeof t.setupPeriodicRefresh=="function")try{t.setupPeriodicRefresh(this);return}catch(a){this._logger?.debug?.("adv.setupPeriodicRefresh failed",a)}try{let a=Ir();if(a&&typeof a.setupPeriodicRefresh=="function"){a.setupPeriodicRefresh(this);return}}catch{}let r=f.workspace.getConfiguration("explorerDates"),n=r.get("badgeRefreshInterval",6e4),i=this.v||n;if(this.F=i,this.a&&(clearInterval(this.a),this.a=null),!r.get("showDateDecorations",!0))return;this.a=setInterval(()=>{try{try{this.m.fire(void 0)}catch{}}catch{}},this.F)}catch(t){this._logger?.debug?.("provider._setupPeriodicRefresh failed",t)}}async initializeAdvancedSystems(t){try{let n=await ge().decorationsAdvanced();if(n&&typeof n.initializeAdvancedSystems=="function")return n.initializeAdvancedSystems(this,t);this._logger.info&&this._logger.info("Advanced systems chunk unavailable - skipping advanced initialization")}catch(r){this._logger.error&&this._logger.error("Failed to initialize advanced systems",r)}}async checkWorkspaceSize(){try{let r=await ge().decorationsAdvanced();if(r&&typeof r.performWorkspaceSizeCheck=="function")return r.performWorkspaceSizeCheck(this)}catch(t){this._logger.debug&&this._logger.debug("Delegated checkWorkspaceSize failed",t)}try{let t=require("vscode"),r=await(t.workspace.findFiles?t.workspace.findFiles("**/*",null,100):[]),n=Array.isArray(r)?r.length:0;this.Ve=n;let{WORKSPACE_SCALE_LARGE_THRESHOLD:i,WORKSPACE_SCALE_EXTREME_THRESHOLD:a}=I();this.u=n>=a?"extreme":n>=i?"large":"normal";try{this.Ge(this.Xe(),"workspace-scale-change-fallback")}catch{}return}catch(t){this._logger.debug&&this._logger.debug("performWorkspaceSizeCheck fallback failed",t)}}async provideFileDecoration(t,r){try{await this.Ot&&this.Ot()}catch{}ji();try{if(this.U&&typeof this.U.provideDecoration=="function")try{let n=await this.U.provideDecoration(t,r);return n==null?n:typeof n!="object"?void 0:"badge"in n||"tooltip"in n||"color"in n?n:void 0}catch(n){this._logger?.debug&&this._logger.debug("Decoration helper threw",n);return}}catch(n){this._logger?.debug("Decoration provider helper failed",n)}try{if(this.Oe||(this.Oe=Promise.resolve().then(()=>Ce()).then(n=>{this.U=n.createDecorationProviderHelpers?n.createDecorationProviderHelpers(this):n}).finally(()=>{this.Oe=null})),this.Oe&&await this.Oe,this.U&&typeof this.U.provideDecoration=="function")try{let n=await this.U.provideDecoration(t,r);return n==null?n:typeof n!="object"?void 0:"badge"in n||"tooltip"in n||"color"in n?n:void 0}catch(n){this._logger?.debug&&this._logger.debug("Decoration helper threw",n);return}}catch(n){this._logger?.debug("Failed to load decoration provider chunk",n)}}Ke(t,r=""){try{if(!t)return{isValid:!1};let n=String(t.fsPath||t.path||"");return n?n.indexOf("\0")!==-1?{isValid:!1}:{isValid:!0}:{isValid:!1}}catch{return{isValid:!1}}}async tr(t){try{let r=String(t.fsPath||t.path||"");if(!r)return!1;let n=r.replace(/\\/g,"/");return["node_modules","/.git/","/dist/"].some(a=>n.includes(a))}catch{return!1}}async rr(t,r){try{return await r()}catch(n){throw n}}je(t){try{return String(t.fsPath||t.path||"").replace(/\\/g,"/")}catch{return String(t||"")}}Ot(){try{let t=require("vscode").workspace.getConfiguration("explorerDates"),r=t.get("security.allowTestPaths",!0),n=Array.isArray(t.get("security.allowedExtraPaths",[]))?t.get("security.allowedExtraPaths",[]):[],i=t.get("security.enableBoundaryEnforcement"),a=t.get("security.enforceWorkspaceBoundaries");this.zr=r!==!1;let o=(()=>{try{return require("path")}catch{return null}})(),s=(n||[]).filter(Boolean).map(c=>{try{return o?o.normalize(String(c)):String(c)}catch{return String(c)}});this.qr=s,typeof i=="boolean"?this.Lt=i:typeof a=="boolean"&&(this.Lt=a)}catch(t){this._logger?.debug&&this._logger.debug("Failed to ensure security configuration",t)}}async nr(t,r){try{if(this.G)return this._logger?.debug?.(`Cache bypass enabled - recalculating decoration for: ${r}`),null;if(this._advancedCache)try{let i=await this._advancedCache.get(t);if(i)return this._metrics.cacheHits++,this._logger?.debug?.(`Advanced cache hit for: ${r}`),i}catch(i){this._logger?.debug?.(`Advanced cache error: ${i.message}`)}if(!this.e||typeof this.e.get!="function")return null;let n=this.e.get(t);if(n){if(n.forceRefresh){try{this.e.delete(t)}catch{}this._logger?.debug?.(`Memory cache bypassed (forced refresh) for: ${r}`)}else if(Date.now()-n.timestamp{switch(o){case"enhanced":return{level:o,enableGit:!0,enableProgressiveAnalysis:!0,applyBackgroundLimits:!1,backgroundTooltipMode:"rich",viewportWindowMs:6e4,enableColors:!0};case"standard":return{level:o,enableGit:!0,enableProgressiveAnalysis:!1,applyBackgroundLimits:!0,backgroundTooltipMode:"summary",viewportWindowMs:48e4,enableColors:!0};case"minimal":return{level:o,enableGit:!1,enableProgressiveAnalysis:!1,applyBackgroundLimits:!0,backgroundTooltipMode:"summary",viewportWindowMs:12e4,enableColors:!1};default:return{level:"full",enableGit:!0,enableProgressiveAnalysis:!1,applyBackgroundLimits:!1,backgroundTooltipMode:"rich",viewportWindowMs:Yi,enableColors:!0}}},a=n?i(t):this.R||i(t);if(this.R=a,this.W=a.viewportWindowMs,n&&this._logger?.info?.(`Feature level set to "${t}" (${r})`,{viewportWindowMs:this.W,applyBackgroundLimits:a.applyBackgroundLimits,backgroundTooltipMode:a.backgroundTooltipMode}),this._performanceMode)return this._logger?.info&&this._logger.info("Performance mode active - skipping feature profile application"),n;try{a.applyBackgroundLimits&&typeof this.$r=="function"&&this.$r(r)}catch{}return n}catch(n){return this._logger?.debug&&this._logger.debug("Failed to apply feature level",n),!1}}mt(t){try{let r=Re(ae(t)||"");return this.w.has(r)||this.y.has(r)}catch{return!1}}Y(t,{reason:r="unknown",visible:n=!1}={}){try{let i=Re(ae(t)||""),a=Date.now();if(n)this.w.add(i);else for(this.y.set(i,a);this.y.size>(Number(this.me)||400);){let o=this.y.keys().next().value;if(!o)break;this.y.delete(o)}n?this._metrics.viewportPriorityDecorations=(this._metrics.viewportPriorityDecorations||0)+1:this._metrics.viewportBackgroundDecorations=(this._metrics.viewportBackgroundDecorations||0)+1}catch{}}or(){return!1}sr(t){return!!(t&&(t.code==="ENOENT"||/not found/i.test(t.message||"")))}async Z(){try{return this.ae?this.ae:this.oe?await this.oe:(this.oe=(async()=>{try{let{getFeatureFlagsGlobal:t}=G(),r=t(),n=r?await r.decorationsAdvanced():null;return this.ae=n||null,this.ae}catch(t){return this._logger?.debug&&this._logger.debug("Failed to load decorationsAdvanced chunk",t),this.ae=null,null}finally{this.oe=null}})(),await this.oe)}catch(t){try{this._logger?.debug&&this._logger.debug("provider._getDecorationsAdvancedChunk failed",t)}catch{}return null}}Qt(t,r,n){try{let i=Math.floor((Date.now()-t.getTime())/864e5);return i<=0?"\u2022":i<10?String(i):"\u2022"}catch{return"\u2022"}}gt(t,r="auto"){try{return zi(t,r)}catch{return`${t} bytes`}}lr(t,r,n){try{if(!r||r==="none")return;let i=(()=>{if(!this._isWeb)return!1;try{return!!f.workspace.getConfiguration("explorerDates").get("webDiagnosticsBuiltinColors",!1)}catch{return!1}})(),a=Date.now()-(t instanceof Date?t.getTime():new Date(t).getTime());if(i){let s=new f.ThemeColor("list.warningForeground"),c=new f.ThemeColor("list.deemphasizedForeground"),u=new f.ThemeColor("list.errorForeground");return Lr()&&Ae("web-builtin-color-fallback","info","Web builtin color fallback enabled"),r==="file-type"?s:r==="subtle"?c:a<36e5?s:a<864e5?c:u}if(r==="custom")return a<36e5?new f.ThemeColor("explorerDates.customColor.veryRecent"):a<864e5?new f.ThemeColor("explorerDates.customColor.recent"):new f.ThemeColor("explorerDates.customColor.old");if(r==="recency")return a<36e5?new f.ThemeColor("list.highlightForeground"):a<864e5?new f.ThemeColor("charts.yellow"):new f.ThemeColor("charts.red");let o=Ji();if(r==="file-type"||r==="adaptive"){let s=Qi(n,o);if(s)return s;if(r==="adaptive"&&o)return a<36e5?o.veryRecent:a<864e5?o.recent:o.old}return r==="subtle"&&o?a<36e5?o.subtle:a<6048e5?o.muted:o.emphasis:r==="vibrant"&&o?a<36e5?o.veryRecent:a<864e5?o.recent:o.old:void 0}catch{return}}Br(t){try{let r=t?.scheme||"file";return this._isWeb||r!=="file"}catch{return this._isWeb}}Kr(t){try{if(t?.toString)return t.toString(!0)}catch{}try{let r=t?.scheme||"file",n=t?.path||t?.fsPath||"";return`${r}://${n}`}catch{return String(t||"")}}jr(t,r){try{return`${Or(t,{platform:process.platform})}::${r||"auto"}`}catch{return String(t||"unknown")}}Vr(t){try{let r=this.b.get(t);return r?r.expiresAt&&r.expiresAt=this.Ir){let i=this.b.keys().next().value;i&&this.b.delete(i)}let n=this.b.get(t);if(n&&n.freshness&&Xi(n.freshness,r)>0)return;this.b.set(t,{freshness:r,expiresAt:Date.now()+this.Mr})}catch{}}Xr(t,r,n="auto"){try{let i=String(n||"auto").toLowerCase(),a=t||"unknown",o=`${i}:${a}`;if(this.It.has(o))return;this.It.add(o);let s=i==="git"||i==="github"?"warn":"debug";this._logger?.[s]?.("Freshness source unavailable, falling back to unknown",{reason:a,policy:i,uri:r?ae(r):null})}catch{}}ut(t=""){try{let r=String(t||"");r=r.replace(/\\/g,"/"),r=r.replace(/\/{2,}/g,"/"),r=r.replace(/^\/+/,"");try{r=decodeURIComponent(r)}catch{}return r}catch{return""}}Ne(t,r){try{if(this.N.size>=this.xr){let n=this.N.keys().next().value;n&&this.N.delete(n)}this.N.set(t,r)}catch{}}async Ue(t){let r=this.Kr(t),n=Date.now(),i=this.N.get(r);if(i&&i.expiresAt&&i.expiresAt>n)return i;let a={timestampMs:null,available:!1,error:null,expiresAt:n+this.We,repoMatched:null,pathAttempted:null};try{let o=f?.extensions?.getExtension?f.extensions.getExtension("vscode.git"):null;if(!o)return this._isWeb&&Ae("git-extension-unavailable-web","info","Git extension not available in web mode - timestamps will use fs.stat fallback"),a.error="git-extension-missing",this.Ne(r,a),a;if(!o.isActive&&typeof o.activate=="function")try{await o.activate()}catch{}let s=o.exports?.getAPI?.(1);if(!s)return a.error="git-api-unavailable",this.Ne(r,a),a;a.available=!0;let c=typeof s.getRepository=="function"?s.getRepository(t):null,u=t?.path||t?.fsPath||"",l=this.ut(u);if(!c&&Array.isArray(s.repositories)&&(c=s.repositories.find(E=>{let M=E?.rootUri?.path||E?.rootUri?.fsPath||"",F=this.ut(M);return F&&l&&l.startsWith(F)})||null),!c||typeof c.log!="function")return a.error="git-repo-unavailable",a.repoMatched=!1,a.expiresAt=n+Math.min(this.We,5e3),this.Ne(r,a),a;a.repoMatched=!0;let d=this.ut(c?.rootUri?.path||c?.rootUri?.fsPath||""),h=d&&l.startsWith(d)?l.slice(d.length).replace(/^\/+/,""):l;a.pathAttempted=h||l||"";let g=await c.log({maxEntries:1,path:a.pathAttempted}),y=Array.isArray(g)?g[0]:null,m=y?.commitDate||y?.authorDate||y?.date||y?.committerDate,D=m?new Date(m).getTime():null;a.author=y?.authorName||y?.author?.name||y?.author||null,a.message=y?.message||y?.subject||null,Number.isFinite(D)?a.timestampMs=D:(a.error="git-log-empty",a.expiresAt=n+Math.min(this.We,5e3))}catch(o){a.error=o?.message?`git-error:${o.message}`:"git-error",a.expiresAt=n+Math.min(this.We,5e3)}return this.Ne(r,a),a}async Wn(t,r){let n=r?.mtime?r.mtime instanceof Date?r.mtime:new Date(r.mtime):null,i=n&&typeof n.getTime=="function"?n.getTime():NaN,a=Number.isFinite(i)?n:null,o=t?.scheme||"file";if(!this.Br(t))return{timestamp:a,source:a?"fs-stat":"none",gitAvailable:!1,gitError:null,repoMatched:null,pathAttempted:null};let s;try{s=await this.Ue(t)}catch(u){s={timestampMs:null,available:!1,error:u?.message?`git-error:${u.message}`:"git-error",repoMatched:null,pathAttempted:null}}if(s?.timestampMs)return{timestamp:new Date(s.timestampMs),source:"git",gitAvailable:s.available,gitError:s.error,repoMatched:s.repoMatched,pathAttempted:s.pathAttempted};let c=a?"fs-stat":"none";if(a&&o!=="file"){let u=Date.now()-a.getTime();u>=0&&u<=6e4?c="fs-stat-suspect":this._isWeb&&u>6e4&&Ae("web-fs-stat-limitation","info","Web mode timestamps may reflect workspace open time, not actual file modification time. Git extension would provide accurate timestamps if available.")}return this._isWeb&&o!=="file"&&(s?.error||!s?.available)?{timestamp:null,source:"web-unknown",gitAvailable:!1,gitError:s?.error||null,repoMatched:s?.repoMatched??null,pathAttempted:s?.pathAttempted||null}:{timestamp:a,source:c,gitAvailable:s?.available||!1,gitError:s?.error||null,repoMatched:s?.repoMatched??null,pathAttempted:s?.pathAttempted||null}}async pt(t,r,n={}){let i=f.workspace.getConfiguration("explorerDates"),a=n.workspaceKind||(this._isWeb?"web":"desktop"),o=i.get("freshnessSourcePolicy","auto"),s=this.jr(t,o),c=this.Vr(s);if(c)return c;let u=await Gi({uri:t,stat:r,provider:this,config:i,workspaceKind:a});return this.Gr(s,u),u?.source==="unknown"&&this.Xr(u?.reason||"unknown",t,o),u}async Te(t={}){try{let r=t.stat?.mtime||t.stat?.birthtime||new Date;return`Modified: ${(r instanceof Date?r:new Date(r)).toISOString()}`}catch{return""}}clearAllCaches(){try{try{this.e&&typeof this.e.clear=="function"&&this.e.clear()}catch{}try{this.c&&typeof this.c.clear=="function"&&this.c.clear()}catch{}try{this.H&&(this.H.length=0)}catch{}try{this.x&&typeof this.x.clear=="function"&&this.x.clear()}catch{}try{this.Se&&(this.Se.length=0)}catch{}try{this.L&&typeof this.L.clear=="function"&&this.L.clear()}catch{}try{this.Ie&&(this.Ie.length=0)}catch{}try{this._advancedCache&&typeof this._advancedCache.clear=="function"&&this._advancedCache.clear()}catch{}try{this.N&&typeof this.N.clear=="function"&&this.N.clear()}catch{}try{this.b&&typeof this.b.clear=="function"&&this.b.clear()}catch{}}catch(t){this._logger?.debug&&this._logger.debug("clearAllCaches failed",t)}}Me(t){try{if(!this.b||this.b.size===0)return;let r=`${Or(t,{platform:process.platform})}::`;for(let n of this.b.keys())typeof n=="string"&&n.startsWith(r)&&this.b.delete(n)}catch{}}Yr(t={}){try{this.clearAllCaches()}catch{}try{this.refreshAll()}catch{}try{t?.head&&this._logger?.info&&this._logger.info("Git HEAD change detected; caches refreshed",{head:t.head})}catch{}}Hr(){this.Wt||(this.Wt=!0,(async()=>{try{let t=f?.extensions?.getExtension?f.extensions.getExtension("vscode.git"):null;if(!t)return;if(!t.isActive&&typeof t.activate=="function")try{await t.activate()}catch{}let r=t.exports?.getAPI?.(1);if(!r)return;let n=i=>{try{if(!i||!i.state||typeof i.state.onDidChange!="function")return;let a=i.state.HEAD?.commit||i.state.HEAD?.name||null,o=i.state.onDidChange(()=>{let s=i.state.HEAD?.commit||i.state.HEAD?.name||null;s!==a&&(a=s,this.Yr({repo:i,head:s}))});o&&this.Ee.push(o)}catch{}};if(Array.isArray(r.repositories)&&r.repositories.forEach(i=>n(i)),typeof r.onDidOpenRepository=="function"){let i=r.onDidOpenRepository(a=>n(a));i&&this.Ee.push(i)}}catch(t){this._logger?.debug?.("Failed to register git HEAD watcher",t)}})())}refreshAll(){try{this.m.fire(void 0),Vi()}catch(t){this._logger?.debug&&this._logger.debug("refreshAll failed",t)}}applyPreviewSettings(t){try{t&&typeof t=="object"?(this.X=t,this._logger?.info&&this._logger.info("Preview settings applied",t)):(this.X=null,this._logger?.info&&this._logger.info("Preview settings cleared"));try{this.clearAllCaches()}catch{}this.refreshAll()}catch(r){this._logger?.debug&&this._logger.debug("applyPreviewSettings failed",r)}}refreshDecoration(t){try{try{this.Me(t)}catch{}this.m.fire(t)}catch(r){this._logger?.debug&&this._logger.debug("refreshDecoration failed",r)}}clearDecoration(t){try{try{this.Me(t)}catch{}let r=t?typeof t=="string"?t:ae(t):"",n=this.je?this.je(t):ra(r);try{this.e&&typeof this.e.delete=="function"&&this.e.delete(n)}catch{}try{this._advancedCache&&typeof this._advancedCache.delete=="function"&&this._advancedCache.delete(n)}catch{}try{this.m.fire(t)}catch{}}catch(r){this._logger?.debug&&this._logger.debug("clearDecoration failed",r)}}cr({badge:t,tooltip:r,color:n}){try{let i=require("vscode"),a=new i.FileDecoration(String(t||""),r||void 0,n||void 0);try{n&&(a.color=n)}catch{}return a}catch{return{badge:t,tooltip:r,color:n}}}ur(t,r,n,i,a){try{if(this.G)return;if(!this.e||typeof this.e.set!="function"||typeof this.e.size!="number")try{this.e=new Pe}catch{}if(!this.e||typeof this.e.set!="function")return;if(typeof this.e.size=="number"&&this.e.size>this.l)try{this.e.enforceLimit(this.l)}catch{}let o={decoration:r,timestamp:Date.now()};a&&(o.freshness=a),i&&(o.uri=i);try{this.e.set(t,o)}catch{}try{typeof this.ce=="function"&&this.ce()}catch(s){this._logger?.debug?.("monitorCachePressure from store failed",s)}if(this._advancedCache)try{this._advancedCache.set(t,r,{ttl:this.C}),this._logger?.debug?.(`Stored in advanced cache: ${n}`)}catch(s){this._logger?.debug?.(`Failed to store in advanced cache: ${s.message}`)}try{typeof this.le=="function"&&this.le()}catch(s){this._logger?.debug?.("maybeExtendCacheTimeout from store failed",s)}}catch(o){this._logger?.debug?.("storeDecorationInCache failed",o)}}getMetrics(){let t={decorationPool:{allocations:0,reuses:0,reusePercent:"0%"},badgeFlyweight:{allocations:0,reuses:0,reusePercent:"0%"},readableFlyweight:{allocations:0,reuses:0,reusePercent:"0%"}},r=this._metrics?.cacheHits||0,n=this._metrics?.cacheMisses||0,i=r+n>0?(r/(r+n)*100).toFixed(2)+"%":"0.00%";return{totalDecorations:this._metrics?.totalDecorations||0,cacheSize:this.c&&this.c.size||0,cacheHits:r,cacheMisses:n,cacheHitRate:i,workspaceScale:this.u||"unknown",allocationTelemetry:t,performanceTiming:{avgGitBlameMs:this._metrics?.gitBlameCalls?(this._metrics.gitBlameTimeMs/this._metrics.gitBlameCalls).toFixed(1):"0.0",avgFileStatMs:this._metrics?.fileStatCalls?(this._metrics.fileStatTimeMs/this._metrics.fileStatCalls).toFixed(1):"0.0",gitBlameCalls:this._metrics?.gitBlameCalls||0,fileStatCalls:this._metrics?.fileStatCalls||0},cacheDebugging:{cacheNamespace:this.Nr}}}forceRefreshAllDecorations(){try{this._logger?.info&&this._logger.info("\u{1F504} Force refreshing ALL decorations...");try{this.e&&typeof this.e.clear=="function"&&this.e.clear()}catch{}try{this.c&&typeof this.c.clear=="function"&&this.c.clear()}catch{}try{this._advancedCache&&typeof this._advancedCache.clear=="function"&&this._advancedCache.clear()}catch{}try{this.m.fire(void 0)}catch{}this._logger?.info&&this._logger.info("\u{1F504} Triggered global decoration refresh")}catch(t){this._logger?.debug&&this._logger.debug("forceRefreshAllDecorations failed",t)}}startProviderCallMonitoring(){try{if(this.k){this._logger?.debug&&this._logger.debug("startProviderCallMonitoring called after dispose - no-op");return}if(this.Nt){this.Vt=0,this.Re=new Set,this._logger?.info&&this._logger.info("\u{1F4CA} Provider call monitoring restarted (counters reset)");return}this.Nt=!0,this.Vt=0,this.Re=new Set;let t=this.provideFileDecoration.bind(this);this.qe=t,this.provideFileDecoration=async(r,n)=>{try{this.Vt=(this.Vt||0)+1;let i=ae(r)||(r&&typeof r.toString=="function"?r.toString(!0):"unknown");this.Re.add(Re(i)),this._logger?.info&&this._logger.info(`\u{1F50D} Provider called ${this.Vt} times for: ${na(r||i)}`)}catch{}return t(r,n)},this._logger?.info&&this._logger.info("\u{1F4CA} Started provider call monitoring")}catch(t){this._logger?.debug&&this._logger.debug("startProviderCallMonitoring failed",t)}}getProviderCallStats(){try{return{totalCalls:this.Vt||0,uniqueFiles:this.Re?this.Re.size:0,calledFiles:this.Re?Array.from(this.Re):[]}}catch{return{totalCalls:0,uniqueFiles:0,calledFiles:[]}}}async dispose(){if(this.k)return;this.k=!0,this.$e=!0;try{this._telemetryReportTimer&&(clearTimeout(this._telemetryReportTimer),this._telemetryReportTimer=null)}catch{}try{this.a&&(clearInterval(this.a),this.a=null)}catch{}try{if(this.i&&this.i.size){for(let r of this.i)clearTimeout(r);this.i.clear()}this.A=!1,this.ie=!1}catch{}try{this.I&&(clearTimeout(this.I),this.I=null)}catch{}try{this.D&&(clearTimeout(this.D),this.D=null)}catch{}try{try{this.at({permanent:!0})}catch{}if(this.f&&typeof this.f.disposeFileWatchers=="function")try{this.f.disposeFileWatchers({permanent:!0})}catch{}this.f=null}catch{}try{this.te&&(clearTimeout(this.te),this.te=null)}catch{}try{this.m&&typeof this.m.dispose=="function"&&this.m.dispose()}catch{}try{if(Array.isArray(this.S)){for(let r of this.S)try{r.dispose&&r.dispose()}catch{}this.S.length=0}}catch{}try{if(Array.isArray(this.Ee)){for(let r of this.Ee)try{r.dispose&&r.dispose()}catch{}this.Ee.length=0}}catch{}try{if(Array.isArray(this.T)){for(let r of this.T)try{r.dispose&&r.dispose()}catch{}this.T.length=0}}catch{}let t=async r=>{try{r&&typeof r.dispose=="function"&&await r.dispose()}catch{}};await t(this._advancedCache),await t(this._batchProcessor),await t(this.tt),await t(this.pe),await t(this._workspaceIntelligence),await t(this._smartWatcherFallbackManager),await t(this.Lr),await t(this.Or);try{if(this.s&&typeof this.s.forEach=="function"&&(this.s.forEach(r=>{try{r&&typeof r.dispose=="function"&&r.dispose()}catch{}}),this.s.clear()),this.h&&typeof this.h.dispose=="function"){try{this.h.dispose()}catch{}this.h=void 0}this.d&&typeof this.d.forEach=="function"&&(this.d.forEach(r=>{try{r?.watcher?.dispose&&r.watcher.dispose()}catch{}}),this.d.clear())}catch{}try{this.e&&typeof this.e.clear=="function"&&this.e.clear()}catch{}try{this.c&&typeof this.c.clear=="function"&&this.c.clear()}catch{}try{this.x&&typeof this.x.clear=="function"&&this.x.clear()}catch{}try{this.L&&typeof this.L.clear=="function"&&this.L.clear()}catch{}try{this.ct&&this.ct.clear&&this.ct.clear()}catch{}try{this.ve&&this.ve.length&&(this.ve.length=0)}catch{}try{this._advancedCache=null,this._batchProcessor=null,this.tt=null,this.pe=null,this._workspaceIntelligence=null}catch{}try{this.Le&&typeof this.Le.dispose=="function"&&(this.Le.dispose(),this.Le=null)}catch{}try{this.E&&typeof this.E.dispose=="function"&&(this.E.dispose(),this.E=null)}catch{}try{if(this.qe&&typeof this.qe=="function"){try{this.provideFileDecoration=this.qe}catch{}this.qe=null,this.Nt=!1,this.Vt=0,this.Re=new Set}}catch{}try{this.ae=null,this.oe=null}catch{}this._logger?.info&&this._logger.info("FileDateDecorationProvider disposed")}};module.exports={FileDateDecorationProviderImpl:xe,FileDateDecorationProvider:xe}; +`,analysisCommandsDisabled:"Explorer Dates analysis commands are disabled. Shortcuts like Ctrl+Shift+M/H/A will not work until you enable explorerDates.enableAnalysisCommands.",analysisEnableNow:"Enable Now",analysisEnablePartially:"Enable partially succeeded. Update explorerDates.enableAnalysisCommands in remaining workspace folders manually.",analysisEnableFailed:"Enable failed: update explorerDates.enableAnalysisCommands in workspace settings.",workspaceTemplatesDisabled:"Workspace templates are disabled. Enable explorerDates.enableWorkspaceTemplates to use this command.",workspaceTemplatesDisabledSave:"Workspace templates are disabled. Enable explorerDates.enableWorkspaceTemplates to save templates.",enterTemplateName:"Enter template name",enterTemplateDescription:"Enter description (optional)",failedToOpenTemplateManager:e=>`Failed to open template manager: ${e}`,failedToSaveTemplate:e=>`Failed to save template: ${e}`,reportingDisabled:"Reporting features are disabled. Enable explorerDates.enableExportReporting to generate reports.",failedToGenerateReport:e=>`Failed to generate report: ${e}`,apiDisabled:"Explorer Dates API is disabled via settings.",failedToShowApiInformation:e=>`Failed to show API information: ${e}`,failedToShowWorkspaceActivity:e=>`Failed to show workspace activity: ${e}`,failedToShowPerformanceAnalytics:e=>`Failed to show performance analytics: ${e}`,failedToShowCacheDebugInfo:e=>`Failed to show cache debug info: ${e}`,noWorkspaceFolderOpen:"No workspace folder open",resetConfirm:"Reset Settings",resetCancel:"Cancel",resetSuccess:e=>`\u2705 Reset ${e} settings to defaults.`,validateNoIssues:"\u2705 Configuration is valid - no issues found!",validateFoundIssues:e=>`Found ${e} configuration issue(s). Would you like to see details?`,validateShowDetails:"Show Details",validateDismiss:"Dismiss",migrationNotificationMessage:e=>`Explorer Dates updated ${e} setting(s) for compatibility. Your configuration has been preserved.`,migrationViewChanges:"View Changes",migrationOpenSettings:"Open Settings",deprecatedPrompt:e=>`Explorer Dates found ${e} deprecated setting(s). Would you like to remove them?`,deprecatedClean:"Clean Up Now",deprecatedKeep:"Keep Old Settings",deprecatedAskLater:"Ask Later",showFileLocation:"Show File Location",teamConfigCorrupted:"Explorer Dates team configuration file appears to be corrupted. Please check the .explorer-dates-profiles.json file or restore from backup.",appliedFromTeamProfile:(e,t)=>`Applied ${e} Explorer Dates settings from team profile "${t}".`,documentedOverrides:"Documented Explorer Dates overrides in .vscode/explorer-dates-overrides.md",teamConfigMissingProfile:"Team configuration is missing an active profile.",ephemeralStorageEnospc:"Explorer Dates team configuration could not be saved because the disk is full.",ephemeralStorageGeneric:"Explorer Dates team configuration could not be saved because the workspace is read-only or permissions are restricted.",ephemeralStorageSuffix:" Changes will be kept in memory until VS Code restarts, so they may be lost."}};try{let e=ur();if(e&&typeof e=="object")for(let[t,r]of Object.entries(e)){z[t]||(z[t]={});for(let[n,i]of Object.entries(r))typeof z[t][n]>"u"&&(z[t][n]=i)}}catch{}var De=class{constructor(){this.Ce="en",this.w=null,this.ft(),typeof V.workspace.onDidChangeConfiguration=="function"?this.w=V.workspace.onDidChangeConfiguration(t=>{t.affectsConfiguration("explorerDates.locale")&&this.ft()}):this.w=null}ft(){let r=V.workspace.getConfiguration("explorerDates").get("locale","auto");if(r==="auto"){let n=V&&V.env&&typeof V.env.language=="string"?V.env.language:"en";try{r=String(n||"en").split("-")[0]}catch{r="en"}}z[r]||(r="en"),this.Ce=r}getString(t,...r){let i=(z[this.Ce]||z.en)[t];return typeof i=="function"?i(...r):i||z.en[t]||t}getCurrentLocale(){return this.Ce}formatDate(t,r={}){try{return t.toLocaleDateString(this.Ce,r)}catch{return t.toLocaleDateString("en",r)}}dispose(){this.w&&(this.w.dispose(),this.w=null),fe===this&&(fe=null)}},fe=null;function Fi(){return fe||(fe=new De),fe}hr.exports={LocalizationManager:De,getLocalization:Fi}});var ot=_((Pa,dr)=>{function Ai(e){let t=require("vscode");function r(l,d,h,g,y,m){if(!e.Gt||!g)return m&&(m.misses++,m.allocations++),y();if(l.has(g))return m&&(m.hits++,m.reuses++),l.get(g);m&&(m.misses++,m.allocations++);let D=y();if(l.set(g,D),d.push(g),d.length>h){let E=d.shift();E&&l.delete(E)}return D}function n({formatType:l,diffMinutes:d,diffHours:h,diffDays:g,diffWeeks:y,diffMonths:m,date:D}){let E=(M,F=null)=>({value:M,key:F?`badge:${l||"default"}:${F}`:null});switch(l){case"relative-short":case"relative-long":return d<1?E("\u25CF\u25CF","just"):d<60?E(`${Math.min(d,99)}m`,`m:${Math.min(d,99)}`):h<24?E(`${Math.min(h,23)}h`,`h:${Math.min(h,23)}`):g<7?E(`${g}d`,`d:${g}`):y<4?E(`${y}w`,`w:${y}`):m<12?E(`${m}M`,`M:${m}`):E("1y","y:1");case"absolute-short":case"absolute-long":{let M=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],F=D.getDate(),X=`${M[D.getMonth()]}${F<10?"0"+F:F}`,w=[D.getMonth(),F];return l==="absolute-long"&&w.push(D.getFullYear()),E(X,`abs:${w.join("-")}`)}case"technical":return d<60?E(`${d}m`,`tech:m:${d}`):h<24?E(`${h}h`,`tech:h:${h}`):E(`${g}d`,`tech:d:${g}`);case"minimal":return h<1?E("\u2022\u2022","min:now"):h<24?E("\u25CB\u25CB","min:hours"):E("\u2500\u2500","min:days");default:return d<60?E(`${d}m`,`smart:m:${d}`):h<24?E(`${h}h`,`smart:h:${h}`):E(`${g}d`,`smart:d:${g}`)}}function i(l,d,h=null){let y=h!==null?h:new Date().getTime()-l.getTime();if(y<0)return e._logger.debug(`File has future modification time (diffMs: ${y}), treating as just modified`),"\u25CF\u25CF";let m=Math.floor(y/(1e3*60)),D=Math.floor(y/(1e3*60*60)),E=Math.floor(y/(1e3*60*60*24)),M=Math.floor(E/7),F=Math.floor(E/30),X=n({formatType:d,diffMinutes:m,diffHours:D,diffDays:E,diffWeeks:M,diffMonths:F,date:l});return r(e.I,e.Se,e.Xt,X.key,()=>X.value,e.Yt)}function a(l){if(!l)return"none";if(typeof l=="string")return l;if(l.id)return l.id;try{return JSON.stringify(l)}catch{return String(l)}}function o(l,d,h){let g=l||"",y=d||"",m=a(h);return`${g}::${m}::${y}`}function s({badge:l,tooltip:d,color:h}){if(!e.Zt){e.H.misses++,e.H.allocations++;let m=new t.FileDecoration(l||"??");return d&&(m.tooltip=d),h&&(m.color=h),m.propagate=!1,m}if(!l)return e.H.allocations++,new t.FileDecoration("??");let g=o(l,d,h);if(g&&e.c.has(g))return e.H.hits++,e.H.reuses++,e.c.get(g);let y=new t.FileDecoration(l);if(d&&(y.tooltip=d),h&&(y.color=h),y.propagate=!1,e.H.allocations++,g&&(e.c.set(g,y),e.$.push(g),e.$.length>e.Jt)){let m=e.$.shift();m&&m!==g&&e.c.delete(m)}return e.H.misses++,y}function c(l="unspecified"){e.c.size!==0&&(e.c.clear(),e.$.length=0,e._logger.debug(`\u{1F9FC} Cleared decoration pool (${l})`))}async function u({filePath:l,stat:d,gitBlame:h,shouldUseAccessibleTooltips:g,fileSizeFormat:y}){if(g){let D=e._accessibility?.getAccessibleTooltip?.(l,d.mtime,d.birthtime,d.size,h);if(D)return D}let m=[];try{let D=e.p.formatDate(d.mtime);if(m.push(`${D}`),y&&typeof d.size=="number"){let E=e.gt(d.size,y);m.push(E)}h&&h.author&&m.push(`Author: ${h.author}`)}catch(D){e._logger.debug("Tooltip builder failed",D)}return m.join(" \u2014 ")}return{acquireDecorationFromPool:s,clearDecorationPool:c,Qr:o,tn:a,Qt:i,rn:n,er:r,Te:u}}dr.exports={createDecorationLogic:Ai}});var Ce=_((exports,module)=>{function createDecorationProviderHelpers(provider){let vscode=require("vscode"),{diagLogOnce,diagLog,isWebDiagnosticsEnabled}=he(),{formatBadge,formatTooltip}=nt(),decorationDiagCount=0,maxDecorationDiag=20,CONTRIBUTED_CUSTOM_COLOR_TOKENS=new Set(["explorerDates.customColor.veryRecent","explorerDates.customColor.recent","explorerDates.customColor.old"]),isWebRuntime=(()=>{try{return vscode?.env?.uiKind===vscode?.UIKind?.Web}catch{return!1}})(),getFileName,getExtension,normalizePath,getUriPath,ensureDate;try{let e=K();e&&(getFileName=e.getFileName,getExtension=e.getExtension,normalizePath=e.normalizePath,getUriPath=e.getUriPath,ensureDate=e.ensureDate)}catch{}if(!getFileName||!ensureDate){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function")try{let e=dynamicRequire("../utils/pathUtils"),t=dynamicRequire("../utils/dateHelpers");getFileName=getFileName||e.getFileName,getExtension=getExtension||e.getExtension,normalizePath=normalizePath||e.normalizePath,getUriPath=getUriPath||e.getUriPath,ensureDate=ensureDate||t.ensureDate}catch{}}catch{}getFileName||(getFileName=e=>{let t=String(e||""),r=t.replace(/\\/g,"/").lastIndexOf("/");return r===-1?t:t.substring(r+1)}),getExtension||(getExtension=e=>{let t=String(e||""),r=t.lastIndexOf(".");return r<=0?"":t.substring(r).toLowerCase()}),normalizePath||(normalizePath=(e="")=>(e||"").toString().replace(/\\/g,"/")),getUriPath||(getUriPath=(e="")=>e?typeof e=="string"?e:e?.fsPath?e.fsPath:e?.path?e.path:String(e):""),ensureDate||(ensureDate=e=>e instanceof Date?e:typeof e=="number"?new Date(e):typeof e=="string"?isNaN(Date.parse(e))?new Date:new Date(Date.parse(e)):new Date)}async function provideDecoration(e,t){let r=!1,n=null,i,a=null,o=null,s=null,c=null,u=!1,l=null,d=null,h=null,g=null,y=null,m=null,D=!1,E=()=>isWebDiagnosticsEnabled&&isWebDiagnosticsEnabled()&&decorationDiagCount{let w=null;try{w=vscode.workspace.getConfiguration("explorerDates")}catch{w=null}let U=w?w.get("colorScheme","none"):"none",b=w?w.get("showDateDecorations",!0):!0,H=typeof provider._performanceMode=="boolean"?provider._performanceMode:w?w.get("performanceMode",!1):!1,oe=isWebRuntime&&w?!!w.get("webDiagnosticsBuiltinColors",!1):!1;return{isWeb:isWebRuntime,isCanary:!1,builtinColorFallbackActive:oe,colorScheme:U,effectiveColorScheme:U,showDateDecorations:b,performanceMode:H,featureLevel:provider.B,previewSettings:!!provider.X}},F=w=>{if(!E()||r)return;decorationDiagCount+=1,r=!0;let b={...M(),...w};!b.scheme&&n&&(b.scheme=n),b.effectiveColorScheme||(b.effectiveColorScheme=b.colorScheme),typeof b.hasColor>"u"&&(b.hasColor=!!b.color),typeof b.badge>"u"&&(b.badge=null),typeof b.propagate>"u"&&(b.propagate=null),typeof b.decorationKeys>"u"&&(b.decorationKeys=null),typeof b.nullReason>"u"&&(b.nullReason=null),typeof b.timestampSource>"u"&&(b.timestampSource="not-attempted"),typeof b.gitRecencyAvailable>"u"&&(b.gitRecencyAvailable=!1),typeof b.gitRecencyError>"u"&&(b.gitRecencyError=null),typeof b.resolvedTimestampMs>"u"&&(b.resolvedTimestampMs=null),typeof b.gitRepoMatched>"u"&&(b.gitRepoMatched=null),typeof b.gitPathAttempted>"u"&&(b.gitPathAttempted=null),b.themeTokenSource||(b.isCanary?b.themeTokenSource="canary":b.builtinColorFallbackActive?b.themeTokenSource="builtin-fallback":typeof b.color=="string"&&b.color.startsWith("explorerDates.")?b.themeTokenSource="custom-token":b.color?b.themeTokenSource="builtin-token":b.themeTokenSource=null),diagLog("info","Decoration return sample",b)},X=w=>{if(!(!E()||r))try{F(w)}catch{}};try{if(provider.Be){a="disposed";return}if(!e){a="no-uri";return}let w=e.fsPath||e.path||"";n=e.scheme||"file";let U=vscode.workspace.getConfiguration("explorerDates"),b=U.get("performanceMode",!1);if(b&&typeof b!="boolean")return a="invalid-performanceMode",null;if(w&&w.includes("\0"))return a="invalid-path",null;let H=getUriPath(e);if(!H){a="missing-path";return}let oe=provider.Ke?provider.Ke(H):getFileName(H)||H,ft=normalizePath(H),Ur=n||"file";if(typeof provider.je!="function"){diagLogOnce("decorations-fallback-provider","warn","Decoration fallback active (missing provider helpers)");try{let A=await provider._fileSystem.stat(e);if(!A){a="no-stat";return}let Y=A.mtime instanceof Date?A.mtime:A.mtime?new Date(A.mtime):null,Me=Y&&typeof Y.getTime=="function"?Y.getTime():NaN;if(!Number.isFinite(Me)){a="invalid-stat";return}let se=Date.now()-Y.getTime(),Ie=se<1440*60*1e3?"\u2022":se<10080*60*1e3?"\u25E6":"\xB7",We=`Modified: ${Y.toISOString()}`,me=new vscode.FileDecoration(Ie,We);return i=me,y=Ie,h=!1,g=null,m=me?.propagate,me}catch{a="fallback-error";return}}if(!provider.je(e,"provideFileDecoration")?.isValid){a="invalid-uri";return}if(await provider.tr(e)){a="excluded";return}return i=await provider.rr(w,async()=>{if(t?.isCancellationRequested||provider.Be){a=t?.isCancellationRequested?"cancelled":"disposed";return}let A=(k,pe)=>provider.X&&Object.prototype.hasOwnProperty.call(provider.X,k)?provider.X[k]:vscode.workspace.getConfiguration("explorerDates").get(k,pe);if(isWebRuntime&&A("webDiagnosticsCanary",!1)&&isWebDiagnosticsEnabled&&isWebDiagnosticsEnabled()&&decorationDiagCount=provider.ue;if(provider.ir>provider.ue*.8&&We){diagLogOnce("decorations-backpressure","warn","Decoration backpressure fallback active");let k=provider.ar(e,Date.now());return y=k?.badge||null,h=!!k?.color,g=k?.color&&k?.color.id?k.color.id:k?.color||null,m=k?.propagate,a="backpressure",k}provider.or(),provider._metrics.cacheMisses++;let N=null;if(!Me&&provider._workspaceIntelligence?.incrementalIndexer){let k=provider._workspaceIntelligence.incrementalIndexer.getIndexedStat(w);k&&(N=k)}let gt=Date.now();if(!N){try{N=await provider._fileSystem.stat(e)}catch(k){if(provider._metrics.fileStatTimeMs+=Date.now()-gt,provider._metrics.fileStatCalls++,provider.sr(k)){a="stat-not-found";return}if(Ur!=="file"){a="stat-failed";return}throw a="stat-failed",k}provider._workspaceIntelligence?.incrementalIndexer&&provider._workspaceIntelligence.incrementalIndexer.primeFromStat(e,N)}if(provider._metrics.fileStatTimeMs+=Date.now()-gt,provider._metrics.fileStatCalls++,!(typeof N.isFile=="function"?N.isFile():!0)){a="not-regular-file";return}u=!0;let v=null;try{typeof provider.pt=="function"&&(v=await provider.pt(e,N,{filePath:w,fileLabel:oe}))}catch(k){c={source:"unknown",gitAvailable:!1,gitError:k?.message?`resolver-error:${k.message}`:"resolver-error",repoMatched:null,pathAttempted:null}}if((!v||v.bucket==="unknown"||v.source==="unknown")&&!A("freshnessShowUnknown",!0)){a="freshness-unknown";return}let Le=A("colorScheme","none");provider._performanceMode&&Le!=="custom"&&(Le="none");let Hr=A("fileSizeFormat","auto"),Z=provider.yt,$r=Z&&typeof Z.Te=="function"?Z.Te:provider.Te,Br=Z&&typeof Z.acquireDecorationFromPool=="function"?Z.acquireDecorationFromPool:provider.cr,Oe=formatBadge(v?.bucket||"unknown",v?.source||"unknown",U,v?.confidence||"low");if(!Oe){a="badge-suppressed";return}let $=v?.exactTimestamp?provider.lr(new Date(v.exactTimestamp),Le,w):void 0,Kr=formatTooltip(v,U)||await $r({filePath:w,resourceUri:e,stat:N,badgeDetails:{},gitBlame:null,shouldUseAccessibleTooltips:!1,fileSizeFormat:Hr,isCodeFile:!1}),Ne=Br({badge:Oe,tooltip:Kr,color:$});return g=$&&typeof $=="object"&&"id"in $?$.id:$||null,h=!!$,y=String(Oe||""),m=Ne?.propagate,typeof g=="string"&&g.startsWith("explorerDates.customColor.")&&!CONTRIBUTED_CUSTOM_COLOR_TOKENS.has(g)&&diagLogOnce(`missing-custom-color-${g}`,"warn","Custom color token missing from contributes.colors",{colorId:g,knownTokens:Array.from(CONTRIBUTED_CUSTOM_COLOR_TOKENS)}),l=v?.exactTimestamp||null,c=c||{source:v?.source||"unknown",bucket:v?.bucket||"unknown",confidence:v?.confidence||"low",reason:v?.reason||null,attempts:v?.attempts||null,gitAvailable:v?.source==="git",gitError:null,repoMatched:null,pathAttempted:null},provider.ur(se,Ne,oe,e,v),Ne}),i}catch(w){o=w?.name||"Error",s=w?.message||String(w),a=a||"exception";return}finally{if(i){if(d==null)try{d=Object.keys(i||{})}catch{d=null}if(y==null&&typeof i.badge<"u"&&(y=i.badge),m==null&&typeof i.propagate<"u"&&(m=i.propagate),g==null&&typeof i.color<"u")try{g=i.color&&i.color.id?i.color.id:i.color}catch{g=i.color}h==null&&typeof g<"u"&&(h=!!g)}let w={uri:e?getFileName(getUriPath(e)||""):null,scheme:n,isCanary:D,badge:y,hasColor:h,color:g,propagate:m,decorationKeys:d,nullReason:i?null:a||"unknown",timestampSource:c?.source||(u?"none":"not-attempted"),gitRecencyAvailable:!!c?.gitAvailable,gitRecencyError:c?.gitError||null,resolvedTimestampMs:l,gitRepoMatched:c?.repoMatched??null,gitPathAttempted:c?.pathAttempted||null,freshnessBucket:c?.bucket||null,freshnessSource:c?.source||null,freshnessConfidence:c?.confidence||null,freshnessReason:c?.reason||null,freshnessAttempts:c?.attempts||null,exceptionName:o,exceptionMessage:s};X(w)}}return{provideDecoration}}module.exports={createDecorationProviderHelpers}});var st=_((xa,mr)=>{function fr(e){!e._allocationTelemetryEnabled||e._telemetryReportTimer||(e._telemetryReportTimer=setTimeout(()=>{e._telemetryReportTimer=null,gr(e),fr(e)},e._telemetryReportInterval))}function gr(e){let t=e.getMetrics().allocationTelemetry,r=t.decorationPool.allocations+t.badgeFlyweight.allocations+t.readableFlyweight.allocations,n=t.decorationPool.reuses+t.badgeFlyweight.reuses+t.readableFlyweight.reuses;(r>0||n>0)&&e._logger?.info?.("\u{1F9EE} Allocation telemetry report",{timestamp:new Date().toISOString(),pool:{allocations:t.decorationPool.allocations,reuses:t.decorationPool.reuses,reuseRate:t.decorationPool.reusePercent+"%"},badgeFlyweight:{allocations:t.badgeFlyweight.allocations,reuses:t.badgeFlyweight.reuses,reuseRate:t.badgeFlyweight.reusePercent+"%"},readableFlyweight:{allocations:t.readableFlyweight.allocations,reuses:t.readableFlyweight.reuses,reuseRate:t.readableFlyweight.reusePercent+"%"},summary:{totalAllocations:r,totalReuses:n,overallReuseRate:r+n>0?(n/(r+n)*100).toFixed(1)+"%":"0%"},decorationsProcessed:e._metrics.totalDecorations,cacheHitRate:e.getMetrics().cacheHitRate})}mr.exports={scheduleTelemetryReport:fr,reportAllocationTelemetry:gr}});var pr=_((exports,module)=>{var CHUNK_SIZES={onboarding:34,analysisCommands:23,exportReporting:17,extensionApi:15,workspaceTemplates:14,advancedCache:28,workspaceIntelligence:31,incrementalWorkers:19},BASE_BUNDLE_SIZE=99;function _getPresetDefinitionsSync(){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=dynamicRequire("./chunks/preset-definitions-chunk");if(e&&e.PRESET_DEFINITIONS)return e.PRESET_DEFINITIONS}}catch{}let FALLBACK_PRESET={minimal:{id:"minimal",name:"Minimal",description:"Lean setup that prioritizes responsiveness in large repos.",targetScenarios:["Large repos","Low resources","Minimal UI"],settings:{"explorerDates.performanceMode":!0,"explorerDates.showDateDecorations":!0}},balanced:{id:"balanced",name:"Balanced",description:"Default feature mix for most workspaces.",targetScenarios:["General development","Mixed workloads"],settings:{"explorerDates.enableOnboardingSystem":!0,"explorerDates.enableAnalysisCommands":!0,"explorerDates.performanceMode":!1,"explorerDates.dateDecorationFormat":"smart","explorerDates.colorScheme":"recency","explorerDates.badgePriority":"time"}},"web-development":{id:"web-development",name:"Web Development",description:"Optimized for frontend and full-stack web projects.",targetScenarios:["Web apps","Frontend teams"],settings:{"explorerDates.enableOnboardingSystem":!0,"explorerDates.dateDecorationFormat":"smart","explorerDates.colorScheme":"file-type","explorerDates.badgePriority":"time"}},enterprise:{id:"enterprise",name:"Enterprise",description:"Full feature set with reporting and integrations enabled.",targetScenarios:["Large teams","Governed environments"],settings:{"explorerDates.enableExportReporting":!0,"explorerDates.enableExtensionApi":!0,"explorerDates.dateDecorationFormat":"smart","explorerDates.colorScheme":"recency","explorerDates.badgePriority":"time"}},"data-science":{id:"data-science",name:"Data Science",description:"Insight-focused profile for data-heavy projects.",targetScenarios:["Data analysis","Research workflows"],settings:{"explorerDates.enableWorkspaceIntelligence":!0,"explorerDates.dateDecorationFormat":"iso-detailed","explorerDates.colorScheme":"recency","explorerDates.badgePriority":"time"}}};return FALLBACK_PRESET}var PRESET_DEFINITIONS=_getPresetDefinitionsSync(),RESTART_REQUIRED_SETTINGS=new Set(["enableOnboardingSystem","enableAnalysisCommands","enableExportReporting","enableExtensionApi","enableWorkspaceTemplates","enableAdvancedCache","enableWorkspaceIntelligence","enableIncrementalWorkers","performanceMode","smartFileWatching"]);function calculateBundleSize(e){let t=BASE_BUNDLE_SIZE;return e["explorerDates.enableOnboardingSystem"]&&(t+=CHUNK_SIZES.onboarding),e["explorerDates.enableAnalysisCommands"]&&(t+=CHUNK_SIZES.analysisCommands),e["explorerDates.enableExportReporting"]&&(t+=CHUNK_SIZES.exportReporting),e["explorerDates.enableExtensionApi"]&&(t+=CHUNK_SIZES.extensionApi),e["explorerDates.enableWorkspaceTemplates"]&&(t+=CHUNK_SIZES.workspaceTemplates),e["explorerDates.enableAdvancedCache"]&&(t+=CHUNK_SIZES.advancedCache),e["explorerDates.enableWorkspaceIntelligence"]&&(t+=CHUNK_SIZES.workspaceIntelligence),e["explorerDates.enableIncrementalWorkers"]&&(t+=CHUNK_SIZES.incrementalWorkers),t}function getDefaultPresetForProfile(e){let t=PRESET_DEFINITIONS;switch(e){case"minimal":case"extreme":return t.minimal||t.minimal;case"balanced":return t.balanced||t.balanced;case"web-development":return t["web-development"]||t["web-development"];case"data-science":return t["data-science"]||t["data-science"];case"enterprise":return t.enterprise||t.enterprise;default:return t.balanced||t.balanced}}module.exports={PRESET_DEFINITIONS,CHUNK_SIZES,BASE_BUNDLE_SIZE,RESTART_REQUIRED_SETTINGS,calculateBundleSize,getDefaultPresetForProfile}});var br=_((Ma,yr)=>{var Se={onboarding:"src/chunks/onboarding-chunk",onboardingAssets:"src/chunks/onboarding-assets-chunk",reporting:"src/chunks/reporting-chunk",templates:"src/chunks/templates-chunk",analysis:"src/chunks/analysis-chunk",diagnostics:"src/chunks/diagnostics-chunk",extensionApi:"src/chunks/extension-api-chunk",advancedCache:"src/chunks/advancedCache-chunk",batchProcessor:"src/chunks/batchProcessor-chunk",decorationsAdvanced:"src/chunks/decorations-advanced",decorationsStatic:"src/chunks/decorations-static",workspaceIntelligence:"src/chunks/workspaceIntelligence",decorationLogic:"src/chunks/decoration-logic-chunk",decorationProvide:"src/chunks/decoration-provide-chunk",decorationHelpers:"src/chunks/decoration-helpers-chunk",decorationBatch:"src/chunks/decoration-batch-chunk",decorationWorkspaceIntel:"src/chunks/decoration-workspace-intel-chunk",decorationTelemetry:"src/chunks/decoration-telemetry-chunk",decorationRefresh:"src/chunks/decoration-refresh-chunk",decorationMemory:"src/chunks/decoration-memory-chunk",decorationPool:"src/chunks/decoration-pool-chunk",providerInit:"src/chunks/provider-init-chunk",fileDateProviderImpl:"src/chunks/file-date-provider-impl",fileDateProviderImplExport:"src/chunks/file-date-provider-impl-export",utilsShared:"src/chunks/utils-shared-chunk",incrementalWorkers:"src/chunks/incrementalWorkers",incrementalIndexer:"src/chunks/incrementalIndexer-chunk",uiAdapters:"src/chunks/ui-adapters",gitInsights:"src/chunks/gitInsights-chunk",smartWatcherFallback:"src/chunks/smartWatcherFallback-chunk",runtimeManagement:"src/chunks/runtime-management",runtimeManagementHeavy:"src/chunks/runtime-management-heavy",teamPersistence:"src/chunks/team-persistence-chunk",teamPersistenceUI:"src/chunks/team-persistence-ui-chunk",teamPersistenceLogic:"src/chunks/team-persistence-logic-chunk",settingsCoordinatorImpl:"src/chunks/settings-coordinator-impl-chunk",logger:"src/chunks/logger-chunk",loggerImpl:"src/chunks/logger-impl-chunk"};function Ri(e){return Se[e]||null}function Pi(){return Object.keys(Se)}function xi(e){let t={};for(let[r,n]of Object.entries(Se))t[r]=()=>e(`./${n}`);return t}var Mi=new Set(["gitInsights","reporting","templates","advancedCache","runtimeManagementHeavy","incrementalWorkers"]);yr.exports={CHUNK_MAP:Se,WEB_EXCLUDED_CHUNKS:Mi,getChunkSourcePath:Ri,getAllChunkNames:Pi,generateDevLoaderMap:xi}});var G=_((exports,module)=>{var FEATURE_FLAGS_GLOBAL_KEY="__explorerDatesFeatureFlags";function registerFeatureFlagsGlobal(e){if(e)try{typeof globalThis<"u"&&(globalThis[FEATURE_FLAGS_GLOBAL_KEY]=e)}catch{}}function loadFeatureFlagsFallback(){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function")return dynamicRequire("../featureFlags")}catch{}return null}function getFeatureFlagsGlobal(){try{if(typeof globalThis<"u"&&globalThis[FEATURE_FLAGS_GLOBAL_KEY])return globalThis[FEATURE_FLAGS_GLOBAL_KEY]}catch{}return loadFeatureFlagsFallback()}module.exports={FEATURE_FLAGS_GLOBAL_KEY,registerFeatureFlagsGlobal,getFeatureFlagsGlobal}});var ge=_((exports,module)=>{var getLogger=()=>{try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=dynamicRequire("./chunks/logger-chunk");if(e&&typeof e.getLogger=="function")return getLogger=e.getLogger,getLogger()}}catch{}try{return getLogger=q().getLogger,getLogger()}catch{return getLogger=()=>({debug:(()=>{})?.bind(console)||console.log,info:(()=>{}).bind(console),warn:(()=>{}).bind(console),error:(()=>{}).bind(console)}),getLogger()}},{CHUNK_SIZES}=pr(),{getChunkSourcePath,getAllChunkNames}=br(),{registerFeatureFlagsGlobal}=G(),{isWebEnvironment}=J(),featureLogger=null,env=typeof process<"u"&&process.env?process.env:{},DEFAULT_CHUNK_TIMEOUT_MS=Number(env.EXPLORER_DATES_CHUNK_TIMEOUT||(env.NODE_ENV==="test"?1e3:5e3)),NETWORK_ERROR_CODES=new Set(["ENOTFOUND","ECONNRESET","ECONNREFUSED","EAI_AGAIN","ETIMEDOUT","EHOSTUNREACH"]),BUILT_CHUNK_CACHE=new Map,CHUNK_METHOD_ALIASES={reporting:"exportReporting",templates:"workspaceTemplates",analysis:"analysisCommands"},DEV_CHUNK_PATH_CACHE=new Map,LAST_FEATURE_FAILURES=new Map;function getDevChunkImportPath(e){if(DEV_CHUNK_PATH_CACHE.has(e))return DEV_CHUNK_PATH_CACHE.get(e);let t=getChunkSourcePath(e);if(!t)return DEV_CHUNK_PATH_CACHE.set(e,null),null;let r=t;return r.startsWith("src/")&&(r=r.slice(4)),r.startsWith("./")||(r=`./${r}`),DEV_CHUNK_PATH_CACHE.set(e,r),r}function resolveNodeDependencies(){if(nativeDepsResolved)return!!(nativePath&&nativeFs);if(nativeDepsResolved=!0,!isNodeLikeRuntime())return!1;try{nativePath=eval("require")("path"),nativeFs=eval("require")("fs")}catch{nativePath=null,nativeFs=null}return!!(nativePath&&nativeFs)}var nativeDepsResolved=!1,nativePath=null,nativeFs=null;function isWebRuntime(){try{return isWebEnvironment()?!0:typeof process<"u"&&process?.env?.VSCODE_WEB==="true"}catch{return!1}}function isNodeLikeRuntime(){return typeof process<"u"&&!!process.versions?.node&&!isWebRuntime()}function getChunkTimeoutMs(){return DEFAULT_CHUNK_TIMEOUT_MS>0?DEFAULT_CHUNK_TIMEOUT_MS:0}function logFeature(e,t,r){featureLogger||(featureLogger=getLogger());let n=featureLogger;typeof n[e]=="function"?n[e](t,r):n.info(t,r)}function logFeatureDisabled(e,t){logFeature("info","Feature disabled via configuration",{feature:e,savedKB:t&&CHUNK_SIZES[t]!==void 0?CHUNK_SIZES[t]:void 0})}function isLikelyNetworkIssue(e){if(!e)return!1;if(e.code&&NETWORK_ERROR_CODES.has(e.code))return!0;let t=(e.message||"").toLowerCase();return t.includes("network")||t.includes("fetch")||t.includes("timed out")}function runWithChunkTimeout(e,t){let r=getChunkTimeoutMs(),n=()=>{try{return Promise.resolve(e())}catch(i){return Promise.reject(i)}};return r?new Promise((i,a)=>{let o=!1,s=setTimeout(()=>{if(o)return;o=!0;let c=new Error(`Chunk "${t}" load timed out after ${r}ms`);c.code="CHUNK_TIMEOUT",a(c)},r);n().then(c=>{o||(o=!0,clearTimeout(s),i(c))}).catch(c=>{o||(o=!0,clearTimeout(s),a(c))})}):n()}function logResolverFailure(e,t){if(!t)return;let r={chunkName:e,error:t.message,code:t.code,networkIssue:isLikelyNetworkIssue(t),timedOut:t.code==="CHUNK_TIMEOUT"},n=r.networkIssue||r.timedOut?"warn":"error";logFeature(n,"Chunk resolver failed",r)}function tryLoadBuiltChunk(e){if(!e||!resolveNodeDependencies()||typeof nativeFs?.existsSync!="function")return null;if(BUILT_CHUNK_CACHE.has(e))return BUILT_CHUNK_CACHE.get(e);let t=[];typeof __dirname=="string"&&nativePath&&(t.push(nativePath.join(__dirname,"chunks",`${e}.js`)),t.push(nativePath.join(__dirname,"..","dist","chunks",`${e}.js`)));for(let r of t)try{if(!r||!nativeFs.existsSync(r))continue;let n=require(r),i=n?.default||n;return BUILT_CHUNK_CACHE.set(e,i||null),i&&logFeature("info","Loaded chunk via built artifact fallback",{chunkName:e,path:r}),i}catch(n){logFeature("warn","Built chunk fallback failed",{chunkName:e,path:r,error:n.message})}return BUILT_CHUNK_CACHE.set(e,null),null}function tryRequireDevChunk(e){if(isWebRuntime())return null;let t=getDevChunkImportPath(e);if(!t)return null;try{let r=require(t);return r?.default||r}catch(r){(r.code!=="MODULE_NOT_FOUND"||typeof r.message=="string"&&!r.message.includes(t))&&logFeature("debug","Dev chunk require failed",{chunkName:e,importPath:t,error:r.message})}return null}function tryRequireLocalBuiltChunk(e){if(isWebRuntime())return null;let t=`./chunks/${e}`;try{let r=require(t);return r?.default||r}catch(r){r.code==="MODULE_NOT_FOUND"||logFeature("debug","Local chunk require failed",{chunkName:e,importPath:t,error:r.message})}return null}function getSavingsKey(e){return e in CHUNK_SIZES?e:CHUNK_METHOD_ALIASES[e]||null}function announceChunkSavings(e){let t=getSavingsKey(e);if(!t)return;let r=CHUNK_SIZES[t];if(!r)return;let i=`\u{1F4BE} ${t===e||!e?t:`${t} (requested as "${e}")`} chunk unavailable - keeping the feature disabled is saving ~${r}KB`;logFeature("info","Chunk savings applied",{chunkName:t,requestedName:e,savedKB:r})}var getFeatureConfig=()=>{try{let t=require("vscode").workspace.getConfiguration("explorerDates"),r=isWebRuntime(),n=i=>r?!1:i;return{enableOnboarding:t.get("enableOnboardingSystem",!0),enableExportReporting:n(t.get("enableExportReporting",!0)),enableWorkspaceTemplates:n(t.get("enableWorkspaceTemplates",!0)),enableAnalysisCommands:t.get("enableAnalysisCommands",!0),enableAdvancedCache:n(t.get("enableAdvancedCache",!0)),enableWorkspaceIntelligence:n(t.get("enableWorkspaceIntelligence",!0)),enableIncrementalWorkers:n(t.get("enableIncrementalWorkers",!1)),enableGitInsights:n(t.get("enableGitInsights",!0)),enableExtensionApi:t.get("enableExtensionApi",!0)}}catch{let e=isWebRuntime(),t=r=>e?!1:r;return{enableOnboarding:!0,enableExportReporting:t(!0),enableWorkspaceTemplates:t(!0),enableAnalysisCommands:!0,enableAdvancedCache:t(!0),enableWorkspaceIntelligence:t(!0),enableIncrementalWorkers:t(!1),enableGitInsights:t(!0),enableExtensionApi:!0}}},featureLoaders=new Map,chunkResolver=null;function setFeatureChunkResolver(e){if(e&&typeof e!="function")throw new Error("Feature chunk resolver must be a function");chunkResolver=e||null}function registerFeatureLoader(e,t){if(typeof t!="function")throw new Error(`Feature loader for "${e}" must be a function`);featureLoaders.set(e,t)}function unregisterFeatureLoader(e){featureLoaders.delete(e)}function clearFeatureLoaders(){featureLoaders.clear()}async function loadFeatureModule(e){LAST_FEATURE_FAILURES.delete(e);let t=featureLoaders.get(e);if(!t&&chunkResolver&&(t=()=>chunkResolver(e)),!t)return logFeature("warn","No loader registered for feature",{feature:e}),null;try{return await runWithChunkTimeout(()=>t(),e)}catch(r){return LAST_FEATURE_FAILURES.set(e,r),logFeature("warn","Feature loader failed",{feature:e,error:r.message,code:r.code,networkIssue:isLikelyNetworkIssue(r)}),announceChunkSavings(e),null}}function getFeatureLoadFailure(e){return LAST_FEATURE_FAILURES.get(e)}function registerDefaultLoaders(){getAllChunkNames().forEach(t=>{featureLoaders.has(t)||registerFeatureLoader(t,createDefaultLoader(t))})}function createDefaultLoader(e){return async()=>{if(chunkResolver&&typeof chunkResolver=="function")try{let i=await runWithChunkTimeout(()=>chunkResolver(e),e);if(i)return i;logFeature("info","Chunk resolver returned no module",{chunkName:e})}catch(i){logResolverFailure(e,i)}let t=tryRequireDevChunk(e);if(t)return t;let r=tryRequireLocalBuiltChunk(e);if(r)return r;let n=tryLoadBuiltChunk(e);return n||(logFeature("warn","No built artifact available for chunk",{chunkName:e}),null)}}var featureFlags={async onboarding(){return getFeatureConfig().enableOnboarding?loadFeatureModule("onboarding"):(logFeatureDisabled("onboarding","onboarding"),null)},async exportReporting(){return getFeatureConfig().enableExportReporting?loadFeatureModule("reporting"):(logFeatureDisabled("exportReporting","exportReporting"),null)},async workspaceTemplates(){return getFeatureConfig().enableWorkspaceTemplates?loadFeatureModule("templates"):(logFeatureDisabled("workspaceTemplates","workspaceTemplates"),null)},async analysisCommands(){return getFeatureConfig().enableAnalysisCommands?loadFeatureModule("analysis"):(logFeatureDisabled("analysisCommands","analysisCommands"),null)},async advancedCache(){return getFeatureConfig().enableAdvancedCache?loadFeatureModule("advancedCache"):(logFeatureDisabled("advancedCache","advancedCache"),null)},async workspaceIntelligence(){return getFeatureConfig().enableWorkspaceIntelligence?loadFeatureModule("workspaceIntelligence"):(logFeatureDisabled("workspaceIntelligence","workspaceIntelligence"),null)},async incrementalWorkers(){return getFeatureConfig().enableIncrementalWorkers?loadFeatureModule("incrementalWorkers"):(logFeatureDisabled("incrementalWorkers","incrementalWorkers"),null)},async extensionApi(){return getFeatureConfig().enableExtensionApi?loadFeatureModule("extensionApi"):(logFeatureDisabled("extensionApi","extensionApi"),null)},async uiAdapters(){return loadFeatureModule("uiAdapters")},async batchProcessor(){return loadFeatureModule("batchProcessor")},async decorationsAdvanced(){return loadFeatureModule("decorationsAdvanced")},async decorationsProviderImpl(){return loadFeatureModule("decorationsProviderImpl")},async gitInsights(){return getFeatureConfig().enableGitInsights?loadFeatureModule("gitInsights"):(logFeatureDisabled("gitInsights","gitInsights"),null)},isEnabled(e){let t=getFeatureConfig();return{onboarding:t.enableOnboarding,exportReporting:t.enableExportReporting,workspaceTemplates:t.enableWorkspaceTemplates,analysisCommands:t.enableAnalysisCommands,advancedCache:t.enableAdvancedCache,workspaceIntelligence:t.enableWorkspaceIntelligence,incrementalWorkers:t.enableIncrementalWorkers,extensionApi:t.enableExtensionApi}[e]??!0},getEnabledFeatures(){let e=getFeatureConfig(),t=[];return e.enableOnboarding&&t.push("onboarding"),e.enableExportReporting&&t.push("exportReporting"),e.enableWorkspaceTemplates&&t.push("workspaceTemplates"),e.enableAnalysisCommands&&t.push("analysisCommands"),e.enableAdvancedCache&&t.push("advancedCache"),e.enableWorkspaceIntelligence&&t.push("workspaceIntelligence"),e.enableIncrementalWorkers&&t.push("incrementalWorkers"),e.enableExtensionApi&&t.push("extensionApi"),t},calculateSavings(){let e=getFeatureConfig(),t=0;return e.enableOnboarding||(t+=34),e.enableExportReporting||(t+=17),e.enableExtensionApi||(t+=15),e.enableWorkspaceTemplates||(t+=14),e.enableWorkspaceIntelligence||(t+=12),e.enableAnalysisCommands||(t+=8),e.enableAdvancedCache||(t+=5),t}};for(let[e,t]of Object.entries(CHUNK_METHOD_ALIASES))!featureFlags[e]&&typeof featureFlags[t]=="function"&&(featureFlags[e]=(...r)=>featureFlags[t](...r));function calculateSavings(e){e||(e=getFeatureConfig());let t=267,r=0;e.enableOnboarding||(r+=34),e.enableExportReporting||(r+=17),e.enableExtensionApi||(r+=15),e.enableWorkspaceTemplates||(r+=14),e.enableWorkspaceIntelligence||(r+=12),e.enableIncrementalWorkers||(r+=19),e.enableAnalysisCommands||(r+=8),e.enableAdvancedCache||(r+=5);let n=t-r,i=r>0?Math.round(r/t*100):0;return{baseSize:`${t}KB`,totalSavings:`${r}KB`,optimizedSize:`${n}KB`,percentage:i}}registerDefaultLoaders();var exportedFeatureFlags={...featureFlags,getFeatureConfig,calculateSavings,registerFeatureLoader,setFeatureChunkResolver,unregisterFeatureLoader,clearFeatureLoaders,loadFeatureModule,getFeatureLoadFailure,registerDefaultLoaders};registerFeatureFlagsGlobal(exportedFeatureFlags);module.exports=exportedFeatureFlags});var _r=_((exports,module)=>{var vscode=require("vscode"),getLogger=()=>{try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=dynamicRequire("./chunks/logger-chunk");if(e&&typeof e.getLogger=="function")return getLogger=e.getLogger,getLogger()}}catch{}try{return getLogger=q().getLogger,getLogger()}catch{return getLogger=()=>({debug:(()=>{})?.bind(console)||console.log,info:(()=>{}).bind(console),warn:(()=>{}).bind(console),error:(()=>{}).bind(console)}),getLogger()}},{fileSystem}=$e(),env=typeof process<"u"&&process.env?process.env:{},{formatFileSize}=Be(),getFileName=p=>{try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=null;try{e=dynamicRequire("../chunks/utils-shared-chunk")}catch{}try{e||(e=dynamicRequire("./chunks/utils-shared-chunk"))}catch{}try{e||(e=dynamicRequire("./chunks/path-utils-chunk"))}catch{}if(e&&typeof e.getFileName=="function")return getFileName=e.getFileName,getFileName(p)}}catch{}try{let t=String(p||"").replace(/\\/g,"/"),r=t.lastIndexOf("/");return r===-1?t:t.substring(r+1)}catch{return"unknown"}},getExtension=p=>{try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=null;try{e=dynamicRequire("../chunks/utils-shared-chunk")}catch{}try{e||(e=dynamicRequire("./chunks/utils-shared-chunk"))}catch{}try{e||(e=dynamicRequire("./chunks/path-utils-chunk"))}catch{}if(e&&typeof e.getExtension=="function")return getExtension=e.getExtension,getExtension(p)}}catch{}try{let e=String(p||""),t=e.lastIndexOf(".");return t<=0?"":e.substring(t).toLowerCase()}catch{return""}},buildCacheKey=p=>{try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=null;try{e=dynamicRequire("../chunks/utils-shared-chunk")}catch{}try{e||(e=dynamicRequire("./chunks/utils-shared-chunk"))}catch{}try{e||(e=dynamicRequire("./chunks/path-utils-chunk"))}catch{}if(e&&typeof e.getCacheKey=="function")return buildCacheKey=e.getCacheKey,buildCacheKey(p)}}catch{}return String(p||"").toLowerCase().replace(/\\/g,"/")},normalizePath=input=>{try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=null;try{e=dynamicRequire("../chunks/utils-shared-chunk")}catch{}try{e||(e=dynamicRequire("./chunks/utils-shared-chunk"))}catch{}try{e||(e=dynamicRequire("./chunks/path-utils-chunk"))}catch{}if(e&&typeof e.normalizePath=="function")return normalizePath=e.normalizePath,normalizePath(input)}}catch{}return String(input||"").replace(/\\/g,"/")},getUriPath=(target="")=>{try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=null;try{e=dynamicRequire("../chunks/utils-shared-chunk")}catch{}try{e||(e=dynamicRequire("./chunks/utils-shared-chunk"))}catch{}try{e||(e=dynamicRequire("./chunks/path-utils-chunk"))}catch{}if(e&&typeof e.getUriPath=="function")return getUriPath=e.getUriPath,getUriPath(target)}}catch{}if(!target)return"";if(typeof target=="string")return target;if(typeof target.fsPath=="string"&&target.fsPath.length>0)return target.fsPath;if(typeof target.path=="string"&&target.path.length>0)return target.path;if(typeof target.toString=="function")try{return target.toString(!0)}catch{return target.toString()}return String(target)},{DEFAULT_CACHE_TIMEOUT,DEFAULT_MAX_CACHE_SIZE,GLOBAL_STATE_KEYS,DEFAULT_DECORATION_POOL_SIZE,DEFAULT_FLYWEIGHT_CACHE_SIZE,WORKSPACE_SCALE_EXTREME_THRESHOLD}=I(),{isWebEnvironment}=J(),{getSettingsCoordinator}=Ve(),{SecurityValidator,SecureFileOperations,detectSecurityEnvironment}=Ze(),DISABLE_GIT_FEATURES=env.EXPLORER_DATES_DISABLE_GIT_FEATURES==="1",IS_WEB_ENV=isWebEnvironment()||env.VSCODE_WEB==="true",nodePath=null;try{IS_WEB_ENV||(nodePath=require("path"))}catch{nodePath=null}var pathCompat={basename:e=>{if(!e)return"";try{if(!IS_WEB_ENV)return require("path").basename(e)}catch{let t=e.replace(/\\/g,"/"),r=t.lastIndexOf("/");return r===-1?t:t.substring(r+1)}},dirname:e=>{if(!e)return".";try{if(!IS_WEB_ENV)return require("path").dirname(e)}catch{let t=e.replace(/\\/g,"/"),r=t.lastIndexOf("/");return r===-1?".":t.substring(0,r)}}};(async()=>{try{let t=await ge().decorationsStatic();t&&(t.basename&&t.dirname&&(pathCompat.basename=t.basename,pathCompat.dirname=t.dirname),t.describeFile&&(exports.Ke=t.describeFile))}catch{}})();var CONFIG_DEFAULT_CACHE_TIMEOUT=3e4,CACHE_NAMESPACE_SEPARATOR="::",DEFAULT_DYNAMIC_WATCHER_LIMIT=Number(env.EXPLORER_DATES_MAX_DYNAMIC_WATCHERS||200),DEFAULT_WATCHER_INACTIVITY_MS=Number(env.EXPLORER_DATES_WATCHER_TTL_MS||600*1e3),DEFAULT_SMART_WATCHER_EXTENSIONS=["js","ts","json","md","py","java"],SMART_WATCHER_PRIORITY=new Map([["src",100],["lib",65],["test",30]]),WORKSPACE_SCAN_TIMEOUT_MS=Number(env.EXPLORER_DATES_WORKSPACE_SCAN_TIMEOUT||7e3),WORKSPACE_SCAN_TIMEOUT_FALLBACK_COUNT=WORKSPACE_SCALE_EXTREME_THRESHOLD,VIEWPORT_DEFAULT_WINDOW_MS=300*1e3,DEFAULT_VIEWPORT_HISTORY_LIMIT=Number(env.EXPLORER_DATES_VIEWPORT_HISTORY_LIMIT||400),FEATURE_LEVELS=["full","enhanced","standard","minimal"],DEFAULT_INDEXER_MAX_FILES=Math.max(100,Number(env.EXPLORER_DATES_INDEXER_MAX_FILES||2e3)),SECURITY_EXTRA_PATHS_ENV="EXPLORER_DATES_SECURITY_EXTRA_PATHS",DEFAULT_SECURITY_THROTTLE_MS=Number(env.EXPLORER_DATES_SECURITY_WARNING_THROTTLE_MS||5e3),SECURITY_WARNING_CACHE_LIMIT=Number(env.EXPLORER_DATES_SECURITY_WARNING_CACHE||500),DEFAULT_SECURITY_MAX_WARNINGS=Number(env.EXPLORER_DATES_SECURITY_MAX_WARNINGS_PER_FILE??1),describeFile=(e="")=>{try{let t=typeof e=="string"?e:getUriPath(e),r=normalizePath(t);return getFileName(r)||r||"unknown"}catch{return"unknown"}};(async()=>{try{let t=await ge().decorationsStatic();t&&typeof t.describeFile=="function"&&(describeFile=t.describeFile)}catch{}})();var LazyHierarchicalDecorationCache=class{constructor(){this.n=new Map}get size(){return this.n.size}get bucketCount(){return 0}clear(){this.n.clear()}get(t){return this.n.get(t)}set(t,r){this.n.set(t,r)}delete(t){return this.n.delete(t)}*entries(){yield*this.n.entries()}*keys(){yield*this.n.keys()}*values(){yield*this.n.values()}[Symbol.iterator](){return this.entries()}enforceLimit(){return 0}},FileDateDecorationProviderImpl=class{constructor(...args){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=dynamicRequire("./chunks/file-date-provider-impl");if(e&&typeof e.FileDateDecorationProviderImpl=="function")return new e.FileDateDecorationProviderImpl(...args);if(e&&typeof e.FileDateDecorationProvider=="function")return new e.FileDateDecorationProvider(...args)}}catch(e){}throw new Error("FileDateDecorationProvider implementation is not available in this environment")}},FileDateDecorationProvider=class{constructor(...args){let loaderError=null;try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function")try{let e=null;try{e=dynamicRequire("./chunks/file-date-provider-impl-export")}catch{}if(e){let r=e.FileDateDecorationProvider||e.FileDateDecorationProviderImpl||e.default;return typeof r=="function"?new r(...args):new FileDateDecorationProviderImpl(...args)}e=dynamicRequire("./chunks/file-date-provider-impl");let t=e&&(e.FileDateDecorationProvider||e.FileDateDecorationProviderImpl||e.default);if(typeof t=="function")return new t(...args)}catch(e){loaderError=e}try{let e=null;try{e=require.resolve("./chunks/file-date-provider-impl-export",{paths:[__dirname]})}catch{}e||(e=require.resolve("./chunks/file-date-provider-impl",{paths:[__dirname]}));let t=require(e),r=t&&(t.FileDateDecorationProvider||t.FileDateDecorationProviderImpl||t.default);if(e&&e.endsWith("file-date-provider-impl-export.js")&&!r)return new FileDateDecorationProviderImpl(...args);if(typeof r=="function")return new r(...args)}catch(e){loaderError=loaderError||e}}catch(e){loaderError=loaderError||e}if(loaderError&&loaderError.message){let e=`FileDateDecorationProvider implementation is unavailable: ${loaderError.message}`;throw new Error(e)}throw new Error("FileDateDecorationProvider implementation is unavailable")}};module.exports={FileDateDecorationProvider,FileDateDecorationProviderImpl}});var Er=_((exports,module)=>{try{require("vscode")}catch{}var env=typeof process<"u"&&process.env?process.env:{},diagLog=null,isWebDiagnosticsEnabled=()=>!1;try{let e=he();e&&(diagLog=e.diagLog,isWebDiagnosticsEnabled=e.isWebDiagnosticsEnabled||(()=>!1))}catch{}function isWebRuntime(){try{let{isWebEnvironment:e}=J();return e()}catch{return env.VSCODE_WEB==="true"}}function getWebChunkRegistry(){try{let{WEB_CHUNK_GLOBAL_KEY:e,LEGACY_WEB_CHUNK_GLOBAL_KEY:t}=I();if(typeof globalThis<"u")return globalThis[e]||globalThis[t]||null}catch{}return typeof globalThis<"u"&&(globalThis.explorerDatesChunks||globalThis.nn)||null}function resolveProviderModuleFromWebRegistry(){let e=getWebChunkRegistry();if(!e)return null;let t=[e.fileDateProviderImplExport,e.fileDateProviderImpl,e.fileDateProviderImplExport,e.fileDateProviderImpl,e["file-date-provider-impl-export"],e["file-date-provider-impl"]].filter(Boolean);return t.length>0?t[0]:null}function normalizeModuleExports(e){if(!e)return null;let t=e&&typeof e=="object"?e:{default:e},r=t&&typeof t=="object"&&t.default?t.default:null;return r&&typeof r=="object"?{...t,...r}:t}async function hydrateProviderOptionalSystems(e){try{try{let r=(await Promise.resolve().then(()=>R(at()))).getLocalization();e.p.getString=(...i)=>r.getString(...i),e.p.formatDate=(...i)=>r.formatDate(...i),e.p.getCurrentLocale=()=>r.getCurrentLocale();let n=e.p.dispose;e.p.dispose=()=>{try{r.dispose()}catch{}n()}}catch(t){e._logger?.debug("provider-init: localization hydrate failed",t)}try{let t=await Promise.resolve().then(()=>R(ot()));t&&typeof t.createDecorationLogic=="function"&&(e.yt=t.createDecorationLogic(e))}catch(t){e._logger?.debug("provider-init: preload decoration logic failed",t)}try{let t=await Promise.resolve().then(()=>R(Ce())),r=t&&(typeof t.createDecorationProviderHelpers=="function"?t.createDecorationProviderHelpers(e):t);e.hr=r}catch(t){e._logger?.debug("provider-init: preload decoration provider helpers failed",t)}try{let t=await e.Z();t&&typeof t.initializeAdvancedSystems=="function"&&await t.initializeAdvancedSystems(e)}catch(t){e._logger?.debug("provider-init: initializeAdvancedSystems failed",t)}try{let t=st();t&&typeof t.scheduleTelemetryReport=="function"&&e._allocationTelemetryEnabled&&t.scheduleTelemetryReport(e)}catch(t){e._logger?.debug("provider-init: scheduling telemetry failed",t)}}catch(t){try{e._logger?.debug("provider-init: hydration failed",t)}catch{}}}function createFileDateDecorationProvider(context){try{let ProviderClass=null,webRuntime=isWebRuntime();if(webRuntime){let e=getWebChunkRegistry(),t=[e?.fileDateProviderImplExport,e?.fileDateProviderImpl,e?.fileDateProviderImplExport,e?.fileDateProviderImpl,e?.["file-date-provider-impl-export"],e?.["file-date-provider-impl"]].filter(Boolean),r=t[0]||resolveProviderModuleFromWebRegistry();!e&&isWebDiagnosticsEnabled()?diagLog?.("warn","Provider registry missing in web runtime"):!r&&isWebDiagnosticsEnabled()&&diagLog?.("warn","Provider module missing from web registry",{hasRegistry:!!e,availableKeys:Object.keys(e||{}),candidateCount:t.length});let n=null;for(let i of t){let a=normalizeModuleExports(i),o=a&&(a.FileDateDecorationProvider||a.FileDateDecorationProviderImpl||a.default);if(o){n=o;break}isWebDiagnosticsEnabled()&&diagLog?.("warn","Provider exports missing expected class",{availableExportKeys:Object.keys(a||{})})}ProviderClass=n,!ProviderClass&&isWebDiagnosticsEnabled()&&t.length>0&&diagLog?.("warn","Provider class unresolved from registry entries",{candidateCount:t.length,availableRegistryKeys:Object.keys(e||{})})}try{if(!webRuntime){let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=null;try{e=dynamicRequire("./fileDateProviderImplExport")}catch{}if(!e)try{e=dynamicRequire("./fileDateProviderImpl")}catch{}ProviderClass=e&&(e.FileDateDecorationProvider||e.FileDateDecorationProviderImpl||e.default)}}}catch{}if(!ProviderClass&&!webRuntime){let{FileDateDecorationProvider:e}=_r();ProviderClass=e}if(!ProviderClass)return isWebDiagnosticsEnabled()&&diagLog?.("warn","Provider class unavailable",{webRuntime,registryKeys:Object.keys(getWebChunkRegistry()||{})}),null;let provider=new ProviderClass;return isWebDiagnosticsEnabled()&&diagLog?.("info","Provider class resolved",{className:ProviderClass?.name||"unknown"}),(async()=>{try{await provider.initializeAdvancedSystems(context)}catch(e){provider._logger?.debug("provider-init: provider factory init failed",e)}})(),{createFileDateDecorationProvider:()=>provider}}catch{return null}}module.exports={hydrateProviderOptionalSystems,createFileDateDecorationProvider}});var Tr=_((Ia,Sr)=>{var O=require("vscode"),{getLogger:Ii}=q(),{WORKSPACE_SCALE_BALANCED_THRESHOLD:wr,WORKSPACE_SCALE_LARGE_THRESHOLD:ve,WORKSPACE_SCALE_EXTREME_THRESHOLD:kr,WORKSPACE_SCAN_MAX_RESULTS:Dr}=I(),ct=Ii(),Te=null;function Cr(e){return e&&(e.fsPath||e.path)||null}function lt(e,t){let r=Cr(e);!r||typeof t!="number"||(Te={workspaceKey:r,fileCount:t,timestamp:Date.now()})}function ut(e){let t=Cr(e);return!t||!Te||Te.workspaceKey!==t?null:Te}function Wi(e,t="default"){if(!e)return`unknown-workspace-${t}`;let r=e.fsPath||e.path||"",n=r.split("/").pop()||"workspace",i=Math.abs(r.split("").reduce((o,s)=>(o=(o<<5)-o+s.charCodeAt(0),o&o),0)).toString(36).substr(0,8),a=Math.abs(t.split("").reduce((o,s)=>(o=(o<<5)-o+s.charCodeAt(0),o&o),0)).toString(36).substr(0,4);return`${n}-${i}-${a}`}async function Li(e){try{if(!e)return"unknown";let t=ut(e),r;t?r=t.fileCount:(r=(await O.workspace.findFiles("**/*",null,Dr)).length,lt(e,r));let n="small";r>=kr?n="extreme":r>=ve?n="large":r>=1e3&&(n="medium");let i=O.env.remoteName,a=O.env.uiKind===O.UIKind.Web,o=n==="medium"&&r>=wr&&ru.toLowerCase());if(c.includes("package.json")||c.includes("yarn.lock"))return"web-development";if(c.some(u=>u.endsWith(".ipynb"))||c.includes("requirements.txt"))return"data-science";if(c.includes("docker-compose.yml")||c.includes(".enterprise"))return"enterprise"}catch(s){ct.debug("Project type detection failed:",s)}return"full"}catch(t){return ct.error("Workspace profile detection failed:",t),"unknown"}}async function Oi(e){if(!e)return null;try{let t=ut(e),r;t?r=t.fileCount:(r=(await O.workspace.findFiles("**/*",null,Dr)).length,lt(e,r));let n="small";r>=kr?n="extreme":r>=ve?n="large":r>=1e3&&(n="medium");let i=!!O.env.remoteName,a=O.env.uiKind===O.UIKind.Web,o=a?"web":i?"remote":"local",s=n==="medium"&&r>=wr&&r{var vscode=require("vscode"),getFileName,getExtension,normalizePath,getUriPath,ensureDate;try{let e=K();e&&(getFileName=e.getFileName,getExtension=e.getExtension,normalizePath=e.normalizePath,getUriPath=e.getUriPath,ensureDate=e.ensureDate)}catch{}if(!getFileName||!ensureDate){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function")try{let e=dynamicRequire("../utils/pathUtils"),t=dynamicRequire("../utils/dateHelpers");getFileName=getFileName||e.getFileName,getExtension=getExtension||e.getExtension,normalizePath=normalizePath||e.normalizePath,getUriPath=getUriPath||e.getUriPath,ensureDate=ensureDate||t.ensureDate}catch{}}catch{}getFileName||(getFileName=e=>{let t=String(e||""),r=t.replace(/\\/g,"/").lastIndexOf("/");return r===-1?t:t.substring(r+1)}),getExtension||(getExtension=e=>{let t=String(e||""),r=t.lastIndexOf(".");return r<=0?"":t.substring(r).toLowerCase()}),normalizePath||(normalizePath=(e="")=>(e||"").toString().replace(/\\/g,"/")),getUriPath||(getUriPath=(e="")=>e?typeof e=="string"?e:e?.fsPath?e.fsPath:e?.path?e.path:String(e):""),ensureDate||(ensureDate=e=>e instanceof Date?e:typeof e=="number"?new Date(e):typeof e=="string"?isNaN(Date.parse(e))?new Date:new Date(Date.parse(e)):new Date)}var SMART_WATCHER_PRIORITY=new Map([["src",100],["lib",65],["test",30]]);async function performWorkspaceSizeCheck(e){let t=vscode.workspace.getConfiguration("explorerDates"),r=t.get("forceEnableForLargeWorkspaces",!1),n=t.get("performanceMode",!1),i=r||n,a=vscode.workspace.workspaceFolders;if(!a||a.length===0)return;e._logger.info("Checking workspace size for large workspace detection...");let o=await e.an(e._getIndexerMaxFiles()),s=!Array.isArray(o),c=s?e.WORKSPACE_SCAN_TIMEOUT_FALLBACK_COUNT:o.length;if(s){let l=e.WORKSPACE_SCAN_TIMEOUT_MS?`${e.WORKSPACE_SCAN_TIMEOUT_MS}ms`:"the configured timeout";e._logger.warn(`Workspace scan exceeded ${l}; defaulting to extreme scale`)}else{let l=`${e.WORKSPACE_SCALE_LARGE_THRESHOLD}+`;e._logger.info(`Workspace contains ${c>=e.WORKSPACE_SCALE_LARGE_THRESHOLD?l:c} files`)}let u=e.u;e.Ge=c,e.u=c>=e.WORKSPACE_SCALE_EXTREME_THRESHOLD?"extreme":c>=e.WORKSPACE_SCALE_LARGE_THRESHOLD?"large":"normal";try{let l=a[0]?.uri;Tr().setCachedWorkspaceMetrics(l,c)}catch(l){e._logger.debug("Unable to cache workspace file count",l)}u!==e.u&&e.J&&!e._performanceMode&&(e._logger.info(`Workspace scale changed ${u} -> ${e.u}; recalibrating watchers`),e.Q("workspace-scale-update")),e._batchProcessor&&typeof e._batchProcessor.setWorkspaceScale=="function"&&e._batchProcessor.setWorkspaceScale(e.u||"normal"),e.Xe(e.Ye(vscode.workspace.getConfiguration("explorerDates")),"workspace-scale-change"),i&&e._logger.debug("Large workspace prompt suppressed (force/performance mode), but scaling adjustments applied")}async function findWorkspaceFilesWithTimeout(e,t){let r=Number.isFinite(e.WORKSPACE_SCAN_TIMEOUT_MS)?e.WORKSPACE_SCAN_TIMEOUT_MS:0,n=vscode.workspace.findFiles("**/*",null,t);if(!r||r<=0)return n;try{return await new Promise((i,a)=>{let o=null,s=(c,u=!1)=>{o&&(clearTimeout(o),o=null),u?a(c):i(c)};o=setTimeout(()=>s(null),r),n.then(c=>s(c),c=>s(c,!0))})}catch(i){return e._logger.warn("Workspace scan failed, assuming large workspace",{error:i?.message||String(i)}),null}}async function _buildSmartWatcherTargets(e,t,r){let n=[],i=Math.max(1,r.maxPatterns),a=i,o=t.length;for(let s of t){if(a<=0)break;let c=Math.max(1,Math.floor(a/o)),u=new vscode.RelativePattern(s,"*.{md,mdx,json,jsonc,yml,yaml,ts,tsx,js,jsx}");if(n.push({pattern:u,label:`root:${s.name}`}),a-=1,a<=0)break;let l=Math.min(Math.max(c-1,0),a);if(l>0)try{let d=typeof e._fileSystem?.readdir=="function"?await e._fileSystem.readdir(s.uri||s.fsPath||s):[],h=(Array.isArray(d)?d:[]).filter(m=>m&&(typeof m.isDirectory=="function"?m.isDirectory():!0)).map(m=>typeof m=="string"?m:m.name||"").filter(Boolean).filter(m=>!["node_modules",".git","dist","build","out"].includes(m));e._logger?.debug&&e._logger.debug("smart-watcher: top-level dirs",{folder:s.name,dirs:h}),h.sort((m,D)=>(SMART_WATCHER_PRIORITY.get(D)||0)-(SMART_WATCHER_PRIORITY.get(m)||0));let y=h.slice(0,l).map(m=>({pattern:new vscode.RelativePattern(s,`${m}/**/*.{md,mdx,json,jsonc,yml,yaml,ts,tsx,js,jsx}`),label:`sub:${s.name}/${m}`})).slice(0,l);n.push(...y),a-=y.length}catch{}o-=1}return n.slice(0,i)}function _addExclusionValueToSet(e,t,r={}){if(!t)return;let{onlyRootSegment:n=!1}=r,i=typeof t=="string"?t:typeof t?.toString=="function"?t.toString():"";if(!i||typeof i!="string")return;let a=i.trim();if(!a)return;let s=a.replace(/\\/g,"/").replace(/\*\*/g,"").replace(/\*/g,"").split("/").map(c=>c.trim()).filter(Boolean);if(!s.length){if(a.includes("*")||a.includes("?"))return;e.add(a.toLowerCase());return}if(n){e.add(s[0].toLowerCase());return}for(let c of s)e.add(c.toLowerCase())}function registerWatcherHandlers(e,t,r="unknown"){t&&(t.onDidChange(n=>e.W(n,"change",r)),t.onDidCreate(n=>e.W(n,"create",r)),t.onDidDelete(n=>e.W(n,"delete",r)))}function dispatchWatcherEvent(e,t,r,n="unknown"){r==="delete"?e.clearDecoration(t):e.refreshDecoration(t),e._workspaceIntelligence?.incrementalIndexer&&e._workspaceIntelligence.incrementalIndexer.queueDelta(t,r),e.Ze&&e._logger.debug(`Watcher event processed (${r}) for ${e.describeFile(t)} via ${n}`)}module.exports={performWorkspaceSizeCheck,findWorkspaceFilesWithTimeout,K:_buildSmartWatcherTargets,on:_addExclusionValueToSet,registerWatcherHandlers,dispatchWatcherEvent}});var dt=_((exports,module)=>{var vscode=require("vscode"),{DEFAULT_DYNAMIC_WATCHER_LIMIT,DEFAULT_WATCHER_INACTIVITY_MS}=I(),proc=typeof process<"u"?process:null,env=proc?.env||{},normalizePath,getUriPath;try{let e=K();e&&(normalizePath=e.normalizePath,getUriPath=e.getUriPath)}catch{}if(!normalizePath){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function")try{let e=dynamicRequire("../utils/pathUtils");normalizePath=normalizePath||e.normalizePath,getUriPath=getUriPath||e.getUriPath}catch{}}catch(e){}normalizePath||(normalizePath=(e="")=>(e||"").toString().replace(/\\/g,"/")),getUriPath||(getUriPath=(e="")=>e?typeof e=="string"?e:e?.fsPath?e.fsPath:e?.path?e.path:String(e):"")}var{getLogger}=q(),nodePath=null;try{nodePath=require("path")}catch{}var WatcherManager=class{constructor(t){this.t=t,this._logger=t._logger||getLogger(),this.s=new Set,this.h=void 0,this.T=[],this.d=new Map,this.L=null,this.E=t.E||new Map,this._smartWatcherFallbackManager=t._smartWatcherFallbackManager||null,this.ee=null,this.j="none"}setupFileWatcher(t="initial"){if(this.t._performanceMode||this.t.D){let i=this.t.D?"provider disposed":"performance mode enabled";this._logger.debug(`Skipping file watcher setup (${t}) - ${i}`);return}this.h||(this.h={pending:!0});let r=++this.t.Je;(async()=>{if(this.ee)try{await this.ee}catch(a){this._logger.debug("Previous watcher setup promise rejected",a)}let i=this.Fe(r,t);this.ee=i;try{await i}finally{this.ee===i&&(this.ee=null)}})().catch(i=>this._logger.error("Failed to configure file watchers",i))}async Fe(t,r){if(this.Ae(t))return;if(this.disposeFileWatchers({permanent:!1}),this.Ae(t))return this.Qe("post-dispose");this.h={pending:!0};let n=vscode.workspace.workspaceFolders;if(!n||n.length===0){this._logger.debug("No workspace folders detected; skipping watcher setup"),this.j="none";return}if(this.t._isWeb){this._logger.info("File watchers are unavailable in web environments; skipping watcher setup"),this.j="none";return}let i=vscode.workspace.getConfiguration("explorerDates"),a=env.EXPLORER_DATES_DISABLE_SMART_WATCHERS==="1";this.t.J=!a&&i.get("smartFileWatching",!0),this.t._enableWatcherFallbacks=this.t.J&&i.get("enableSmartWatcherFallbacks","auto");let o=i.get("smartWatcherMaxPatterns",20),s=this.t.dr(i.get("smartWatcherExtensions",[])),c=this.t.gr(o);if(this.t.bt={maxPatterns:c,extensions:s},this.Ae(t))return this.Qe("post-config");if(!this.t.J){this._logger.info("Smart file watching disabled; falling back to global watcher"),await this.Pe("disabled");return}let u=[];try{if(typeof this.t.K=="function")u=await this.t.K(n,this.t.bt);else try{let l=ht();if(l&&typeof l.K=="function")u=await l.K(this.t,n,this.t.bt);else throw new Error("_buildSmartWatcherTargets not implemented on provider or helper")}catch(l){throw l}}catch(l){this._logger.error("Smart watcher analysis failed, falling back to global watcher",l),await this.Pe("analysis-failed");return}if(this.Ae(t))return this.Qe("post-analysis");if(!u||u.length===0){this._logger.warn("Smart watcher analysis yielded no targets; falling back to global watcher"),await this.Pe("no-targets");return}for(let l of u)try{let d=await this._t(l.pattern,l.label);d&&(this.he(d,l.label),this.s.add(d))}catch(d){this._logger.debug(`Failed to create watcher for pattern ${l.label}`,d)}if(this.s.size===0){this._logger.warn("Smart watcher setup produced zero watchers; using global fallback"),await this.Pe("no-watchers-created");return}this.h=this.s.values().next().value||void 0,this.j="smart",this._logger.info(`Smart file watching enabled (${this.s.size} base watcher${this.s.size===1?"":"s"})`,{reason:r,patterns:u.map(l=>l.label)}),this.mr()}Ae(t){return!!(this.t.D||this.t._performanceMode||typeof t=="number"&&t!==this.t.Je)}Qe(t="unknown"){let r=this.t._performanceMode||this.t.D;this.disposeFileWatchers({permanent:r}),this._logger.debug(`Watcher setup aborted (${t})`,{permanentAbort:r,disposed:this.t.D,performanceMode:this.t._performanceMode})}async Z(){try{let{getFeatureFlagsGlobal:t}=G(),r=t();return(r?await r.decorationsAdvanced():null)||null}catch(t){return this._logger.debug("Failed to load decorationsAdvanced chunk",t),null}}async _t(t,r="unknown"){try{let i=await this.Z();if(i?.createWatcherWithFallback)return await i.createWatcherWithFallback(this.t,t,r)}catch(i){this._logger.debug(`Advanced watcher chunk failed for ${r}`,i)}let n=()=>{let i=this.t._enableWatcherFallbacks;if(i===!1)return!1;if(i==="auto"||i===!0){let a=proc?.platform,o=env.WSL_DISTRO_NAME||env.WSLENV,s=vscode.env.remoteName,c=env.DOCKER_CONTAINER;return o||s||c||a==="android"}return!1};try{let i=vscode.workspace.createFileSystemWatcher(t);return this._logger.debug(`Native watcher created for ${r}`),i}catch(i){return this._logger.debug(`Native watcher failed for ${r}:`,i),n()?this.pr(t,r):null}}async pr(t,r){try{let n=await this.Z();if(n?.createFallbackWatcher)return await n.createFallbackWatcher(this.t,t,r)}catch(n){this._logger.warn(`Fallback watcher creation failed for ${r}:`,n)}try{if(!this._smartWatcherFallbackManager){let{getFeatureFlagsGlobal:n}=G(),i=n(),a=i?await i.loadFeatureModule("smartWatcherFallback"):null;if(a){let{SmartWatcherFallbackManager:o}=a;this._smartWatcherFallbackManager=new o({logger:this._logger}),await this._smartWatcherFallbackManager.initialize()}}if(this._smartWatcherFallbackManager){let i=await(await this._smartWatcherFallbackManager.getFallback()).createWatcherWithFallback(t);return this._logger.debug(`Fallback watcher created for ${r}`),i}}catch(n){this._logger.warn(`Fallback watcher creation failed for ${r}:`,n)}return null}async Pe(t="global-default"){this.Et();let r=await this._t("**/*",`global:${t}`);r?(this.he(r,`global:${t}`),this.s.add(r),this.h=r,this.j="global",this._logger.info(`Global watcher activated (${t})`)):this._logger.error(`Failed to create global watcher (${t})`)}he(t,r="unknown"){t&&(t.onDidChange(n=>this.W(n,"change",r)),t.onDidCreate(n=>this.W(n,"create",r)),t.onDidDelete(n=>this.W(n,"delete",r)))}W(t,r,n="unknown"){if(!t||t.scheme!=="file"||!this.t.je(t,`watcher:${r}`)?.isValid)return;let a=this.yr();if(a<=0){this.xe(t,r,n);return}let o=`${t.toString()}:${r}`,s=this.E.get(o);s&&clearTimeout(s.timer);let c=setTimeout(()=>{this.E.delete(o),this.xe(t,r,n)},a);this.E.set(o,{timer:c,source:n})}xe(t,r,n){try{this.t.Me?.(t)}catch{}r==="delete"?this.t.clearDecoration(t):this.t.refreshDecoration(t),this.t._workspaceIntelligence?.incrementalIndexer&&this.t._workspaceIntelligence.incrementalIndexer.queueDelta(t,r),this.t.Ze&&this._logger.debug(`Watcher event processed (${r}) for ${this.t.Ke(t)} via ${n}`)}yr(){if(this.t._performanceMode)return 0;switch(this.t.u){case"extreme":return 600;case"large":return 250;default:return 100}}handleWorkspaceFoldersChanged(t){let r=(t?.added||[]).map(a=>a.uri).filter(Boolean),n=(t?.removed||[]).map(a=>a.uri).filter(Boolean);if(r.length===0&&n.length===0)return;let i=async()=>{this._logger.info("Workspace folders changed",{added:r.length,removed:n.length}),await this.t.checkWorkspaceSize();try{this.t.clearAllCaches()}catch{}try{this.t.refreshAll()}catch{}if(!this.t._performanceMode&&(this.setupFileWatcher("workspace-change"),await this.t.wt().catch(a=>this._logger.debug("Failed to reconfigure progressive loading after workspace change",a)),this.t._workspaceIntelligence)){let a=(vscode.workspace.workspaceFolders||[]).map(o=>({uri:o.uri}));await this.t._workspaceIntelligence.onWorkspaceFoldersChanged({added:a,removed:n.map(o=>({uri:o}))})}};this.t.C&&clearTimeout(this.t.C),this.t.C=setTimeout(()=>{this.t.C=null,i().catch(a=>this._logger.debug("Workspace folder change handling failed",a))},250)}disposeFileWatchers(t={}){let r=t.permanent===!0;if(this.s?.size){for(let n of this.s)try{n.dispose()}catch(i){this._logger.debug("Failed to dispose file watcher",i)}this.s.clear()}this.h=r?null:void 0,this.Et(),this.kt(!0),this.br(),this.j="none"}br(){if(this.E?.size){for(let t of this.E.values())clearTimeout(t.timer);this.E.clear()}}mr(){if(!this.t.J||this.T.length>0)return;let t=(n,i)=>{let a=this.t.fe(vscode.window,n,i);a&&this.T.push(a)},r=(n,i)=>{let a=this.t.fe(vscode.workspace,n,i);a&&this.T.push(a)};t("onDidChangeVisibleTextEditors",n=>{(n||[]).forEach(i=>this.ge(i?.document?.uri,"visible-editor"))}),t("onDidChangeActiveTextEditor",n=>{this.ge(n?.document?.uri,"active-editor")}),r("onDidOpenTextDocument",n=>{this.ge(n?.uri,"open-document")}),r("onDidSaveTextDocument",n=>{this.ge(n?.uri,"save-document")}),this._r(),this.Er()}Et(){if(this.T?.length){for(let t of this.T)try{t.dispose()}catch(r){this._logger.debug("Failed to dispose watcher listener",r)}this.T=[]}this.Dt()}sn(){if(this._smartWatcherFallbackManager){try{this._smartWatcherFallbackManager.dispose()}catch(t){this._logger.debug("Error disposing smart watcher fallback manager:",t)}this._smartWatcherFallbackManager=null}}_r(){(Array.isArray(vscode.window?.visibleTextEditors)?vscode.window.visibleTextEditors:[]).forEach(r=>this.ge(r?.document?.uri,"visible-seed"))}Er(){this.L||(this.L=setInterval(()=>this.kt(),DEFAULT_WATCHER_INACTIVITY_MS))}Dt(){this.L&&(clearInterval(this.L),this.L=null)}kt(t=!1){if(!this.d?.size)return;let r=Date.now()-DEFAULT_WATCHER_INACTIVITY_MS;for(let[n,i]of this.d.entries())if(t||i.lastUsed=DEFAULT_DYNAMIC_WATCHER_LIMIT&&this.wr();try{let o=new vscode.RelativePattern(i,"**/*"),s=vscode.workspace.createFileSystemWatcher(o),c=nodePath.basename(i)||"root";this.he(s,`dynamic:${r}:${c}`),this.d.set(i,{watcher:s,lastUsed:Date.now(),source:r})}catch(o){this._logger.debug(`Failed to create dynamic watcher for ${i}`,o)}}wr(){let t=null,r=Number.POSITIVE_INFINITY;for(let[n,i]of this.d.entries())i.lastUsed{function createViewportManager(provider){let vscode=require("vscode"),normalizePath,getUriPath;try{let e=K();e&&(normalizePath=e.normalizePath,getUriPath=e.getUriPath)}catch{}if(!normalizePath){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function")try{let e=dynamicRequire("../utils/pathUtils");normalizePath=normalizePath||e.normalizePath,getUriPath=getUriPath||e.getUriPath}catch{}}catch{}normalizePath||(normalizePath=(e="")=>(e||"").toString().replace(/\\/g,"/")),getUriPath||(getUriPath=(e="")=>e?typeof e=="string"?e:e?.fsPath?e.fsPath:e?.path?e.path:String(e):"")}class ViewportManager{constructor(){this.t=provider,this.k=new Set,this.y=new Map,this.v=[],this.me=provider.me||400,this.O=provider.O||300*1e3,this.et=Date.now()}cn(){if(this.v.length>0)return;let t=(n,i)=>{let a=this.fe(vscode.window,n,i);a&&this.v.push(a)},r=(n,i)=>{let a=this.fe(vscode.workspace,n,i);a&&this.v.push(a)};t("onDidChangeVisibleTextEditors",n=>this.Ct(n)),t("onDidChangeActiveTextEditor",n=>this.Y(n?.document?.uri,{reason:"active-editor"})),r("onDidOpenTextDocument",n=>this.Y(n?.uri,{reason:"open-document"})),r("onDidSaveTextDocument",n=>this.Y(n?.uri,{reason:"save-document"})),this.Ct(Array.isArray(vscode.window?.visibleTextEditors)?vscode.window.visibleTextEditors:[]),vscode.window?.activeTextEditor?.document?.uri&&this.Y(vscode.window.activeTextEditor.document.uri,{reason:"initial-active"})}kr(){if(this.v?.length){for(let t of this.v)try{t.dispose()}catch(r){this.t._logger.debug("Failed to dispose viewport listener",r)}this.v=[],this.k.clear(),this.y.clear()}}Ct(t){if(this.k.clear(),!Array.isArray(t))return;let r=Date.now();for(let n of t){let i=n?.document?.uri;if(!i||i.scheme!=="file")continue;let a=normalizePath(getUriPath(i));a&&(this.k.add(a),this.y.set(a,r))}this.tt()}Y(t,r={}){if(!t||t.scheme!=="file")return;let n=normalizePath(getUriPath(t));if(!n)return;let i=Date.now();this.y.set(n,i),r.visible&&this.k.add(n),this.y.size>this.me?this.tt(!0):i-this.et>this.O&&this.tt()}tt(t=!1){let r=Date.now(),n=r-this.O*2;for(let[i,a]of this.y.entries())(t||athis.me&&a{var getFileName,normalizePath,getUriPath;try{let e=K();e&&(getFileName=e.getFileName,normalizePath=e.normalizePath,getUriPath=e.getUriPath)}catch{}if(!getFileName){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function")try{let e=dynamicRequire("../utils/pathUtils");getFileName=getFileName||e.getFileName,normalizePath=normalizePath||e.normalizePath,getUriPath=getUriPath||e.getUriPath}catch{}}catch{}getFileName||(getFileName=e=>{let t=String(e||""),r=t.replace(/\\/g,"/").lastIndexOf("/");return r===-1?t:t.substring(r+1)}),normalizePath||(normalizePath=(e="")=>(e||"").toString().replace(/\\/g,"/")),getUriPath||(getUriPath=(e="")=>e?typeof e=="string"?e:e?.fsPath?e.fsPath:e?.path?e.path:String(e):"")}var VIEWPORT_DEFAULT_WINDOW_MS=300*1e3,VIEWPORT_STANDARD_WINDOW_MS=600*1e3,VIEWPORT_MINIMAL_WINDOW_MS=900*1e3,DEFAULT_SMART_WATCHER_EXTENSIONS=["ts","tsx","js","jsx","mjs","cjs","mts","cts","vue","py","go","rb","rs","java","kt","swift","cs","cpp","c","php","scala","sql","md","mdx","json","jsonc","yml","yaml","toml","ini","txt","html","css","scss"],SMART_WATCHER_PRIORITY=new Map([["src",100],["app",95],["apps",95],["packages",90],["services",85],["service",80],["client",75],["clients",70],["server",70],["servers",65],["lib",65],["libs",60],["api",60],["apis",60],["components",55],["modules",55],["feature",50],["features",50],["extensions",45],["scripts",45],["tools",45],["examples",40],["docs",35],["config",35],["test",30],["tests",30],["spec",30],["specs",30],["demo",25],["demos",25]]);function basename(e){if(!e)return"";try{return require("path").basename(e)}catch{let t=e.replace(/\\/g,"/"),r=t.lastIndexOf("/");return r===-1?t:t.substring(r+1)}}function dirname(e){if(!e)return".";try{return require("path").dirname(e)}catch{let t=e.replace(/\\/g,"/"),r=t.lastIndexOf("/");return r===-1?".":t.substring(0,r)}}function describeFile(e=""){try{let t=typeof e=="string"?e:getUriPath(e),r=normalizePath(t);return getFileName(r)||r||"unknown"}catch{return"unknown"}}function getNormalizedPathsFromEditors(e){let t=Date.now();if(!Array.isArray(e))return[];let r=[];for(let n of e){let i=n?.document?.uri;if(!i||i.scheme!=="file")continue;let a=normalizePath(getUriPath(i));a&&r.push({path:a,ts:t})}return r}function keysToTrimViewportHistory(e,t,r,n=!1,i=Date.now()){let a=i-t*2,o=[];for(let[s,c]of e)(n||cr&&c({value:d,key:h?`badge:${t||"default"}:${h}`:null});switch(t){case"relative-short":case"relative-long":return a<1?l("\u25CF\u25CF","just"):a<60?l(`${Math.min(a,99)}m`,`m:${Math.min(a,99)}`):o<24?l(`${Math.min(o,23)}h`,`h:${Math.min(o,23)}`):s<7?l(`${s}d`,`d:${s}`):c<4?l(`${c}w`,`w:${c}`):u<12?l(`${u}M`,`M:${u}`):l("1y","y:1");case"absolute-short":case"absolute-long":{let d=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],h=e instanceof Date?e.getDate():new Date(e).getDate(),g=`${d[e instanceof Date?e.getMonth():new Date(e).getMonth()]}${h<10?"0"+h:h}`,y=`abs:${e instanceof Date?e.getMonth():new Date(e).getMonth()}-${h}`;return l(g,y)}case"technical":return a<60?l(`${a}m`,`tech:m:${a}`):o<24?l(`${o}h`,`tech:h:${o}`):l(`${s}d`,`tech:d:${s}`);case"minimal":return o<1?l("\u2022\u2022","min:now"):o<24?l("\u25CB\u25CB","min:hours"):l("\u2500\u2500","min:days");default:return a<60?l(`${a}m`,`smart:m:${a}`):o<24?l(`${o}h`,`smart:h:${o}`):l(`${s}d`,`smart:d:${s}`)}}module.exports={VIEWPORT_DEFAULT_WINDOW_MS,VIEWPORT_STANDARD_WINDOW_MS,VIEWPORT_MINIMAL_WINDOW_MS,DEFAULT_SMART_WATCHER_EXTENSIONS,SMART_WATCHER_PRIORITY,FILE_TYPE_COLOR_MAP,COLOR_ENHANCEMENT_MAP,getFileTypeColorMap,getColorEnhancementMap,getNormalizedPathsFromEditors,keysToTrimViewportHistory,computeReadableDescriptor,formatDateBadge,basename,dirname,describeFile}});var Ar=_((exports,module)=>{var vscode=null;try{vscode=require("vscode")}catch{}var proc=typeof process<"u"?process:null,env=proc?.env||{},{getFeatureFlagsGlobal}=G(),featureFlags=getFeatureFlagsGlobal(),FEATURE_LEVELS=["full","enhanced","standard","minimal"];if(!featureFlags)throw new Error("Explorer Dates: feature flags bridge unavailable for decorationsAdvanced chunk");function tryLoadChunk(...names){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function")for(let e of names)try{let t=dynamicRequire(e);if(t)return t}catch{}}catch{}return null}async function loadBatchProcessorIfNeeded(provider){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=dynamicRequire("./decoration-batch-chunk");if(e&&typeof e.loadBatchProcessorIfNeeded=="function")return await e.loadBatchProcessorIfNeeded(provider)}}catch(e){provider._logger?.debug?.("Delegated loadBatchProcessorIfNeeded failed",e)}return provider._logger?.debug?.("BatchProcessor not available (fallback)"),null}async function deferPreloads(e){try{Promise.resolve().then(()=>R(vr())).then(t=>{try{e.rt=t.createViewportManager?.(e)||null}catch(r){e._logger?.debug?.("Failed to init viewport manager",r)}}).catch(t=>e._logger?.debug?.("Failed to load viewport manager chunk",t)),Promise.resolve().then(()=>R(at())).then(t=>{try{let r=t.getLocalization();e.p.getString=(...i)=>r.getString(...i),e.p.formatDate=(...i)=>r.formatDate(...i),e.p.getCurrentLocale=()=>r.getCurrentLocale();let n=e.p.dispose;e.p.dispose=()=>{try{r.dispose()}catch{}n()}}catch{}}).catch(()=>{}),Promise.resolve().then(()=>R(ot())).then(t=>{try{e.yt=t.createDecorationLogic?.(e)||null}catch(r){e._logger?.debug?.("Failed to initialize decoration logic chunk",r)}}).catch(t=>e._logger?.debug?.("Failed to load decoration logic chunk",t)),Promise.resolve().then(()=>R(Ce())).then(t=>{try{e.hr=t.createDecorationProviderHelpers?.(e)||null}catch(r){e._logger?.debug?.("Failed to initialize decoration provide chunk",r)}}).catch(t=>e._logger?.debug?.("Failed to load decoration provide chunk",t)),e._logger?.debug?.("Deferred preloads scheduled")}catch(t){e._logger?.debug?.("deferPreloads failed",t)}}async function getCachedDecoration(provider,cacheKey,fileLabel){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function")try{let e=dynamicRequire("./decoration-cache-chunk");if(e&&typeof e.getCachedDecoration=="function")return await e.getCachedDecoration(provider,cacheKey,fileLabel)}catch{}if(provider.G)return provider._logger?.debug?.(`\u26A0\uFE0F Cache bypass enabled - recalculating decoration for: ${fileLabel}`),null;if(provider._advancedCache)try{let e=await provider._advancedCache.get(cacheKey);if(e)return provider._metrics.cacheHits++,provider._logger?.debug?.(`\u{1F9E0} Advanced cache hit for: ${fileLabel}`),e}catch(e){provider._logger?.debug?.(`Advanced cache error: ${e.message}`)}if(!provider.e||typeof provider.e.get!="function")return provider._logger?.debug?.("getCachedDecoration: no memory cache available, falling back"),null;let memoryEntry=provider.e.get(cacheKey);if(memoryEntry){if(memoryEntry.forceRefresh){try{provider.e.delete(cacheKey)}catch{}provider._logger?.debug?.(`\u{1F6AB} Memory cache bypassed (forced refresh) for: ${fileLabel}`)}else if(Date.now()-memoryEntry.timestampprovider.l&&typeof provider.e.enforceLimit=="function"&&provider.e.enforceLimit(provider.l,provider._logger)}catch{}let cacheEntry={decoration,timestamp:Date.now()};resourceUri&&(cacheEntry.uri=resourceUri);try{provider.e.set(cacheKey,cacheEntry)}catch{}try{typeof provider.ce=="function"&&provider.ce()}catch(e){provider._logger?.debug?.("monitorCachePressure from store failed",e)}if(provider._advancedCache)try{await provider._advancedCache.set(cacheKey,decoration,{ttl:provider.S}),provider._logger?.debug?.(`\u{1F9E0} Stored in advanced cache: ${fileLabel}`)}catch(e){provider._logger?.debug?.(`Failed to store in advanced cache: ${e.message}`)}try{typeof provider.le=="function"&&provider.le()}catch(e){provider._logger?.debug?.("maybeExtendCacheTimeout from store failed",e)}}catch(e){provider._logger?.debug?.("storeDecorationInCache failed",e)}}function cancelProgressiveWarmupJobs(provider){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=dynamicRequire("./decoration-batch-chunk");if(e&&typeof e.cancelProgressiveWarmupJobs=="function")return e.cancelProgressiveWarmupJobs(provider)}}catch(e){provider._logger?.debug?.("Delegated cancelProgressiveWarmupJobs failed",e)}try{let e=provider._progressiveLoadingJobs;e&&typeof e.clear=="function"&&e.clear()}catch(e){provider._logger?.debug?.("Fallback cancel failed",e)}}async function applyProgressiveLoadingSetting(provider){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=dynamicRequire("./decoration-batch-chunk");if(e&&typeof e.applyProgressiveLoadingSetting=="function")return e.applyProgressiveLoadingSetting(provider)}}catch(e){provider._logger?.debug?.("Delegated applyProgressiveLoadingSetting failed",e)}provider._logger?.debug?.("applyProgressiveLoadingSetting fallback invoked (no batch chunk)")}async function initializeAdvancedSystems(e,t){try{if(e._extensionContext=t,e._isWeb&&await e._maybeWarnAboutGitLimitations?.(),e._performanceMode){e._logger?.info?.("Performance mode enabled - skipping advanced cache, batch processor, and progressive loading");return}let r=await featureFlags.advancedCache();if(r){let i=null;if(typeof r=="function")if(r.name==="createAdvancedCache")e._advancedCache=r(t),await e._advancedCache.initialize(),e._logger?.info?.("Advanced cache initialized via factory function");else try{e._advancedCache=new r(t),await e._advancedCache.initialize(),e._logger?.info?.("Advanced cache initialized via direct constructor")}catch(a){e._logger?.warn?.("Failed to instantiate AdvancedCache via direct constructor, disabling advanced cache:",a.message),e._advancedCache=null}else r.AdvancedCache?(i=r.AdvancedCache,e._advancedCache=new i(t),await e._advancedCache.initialize(),e._logger?.info?.("Advanced cache initialized via module property")):r.createAdvancedCache?(e._advancedCache=r.createAdvancedCache(t),await e._advancedCache.initialize(),e._logger?.info?.("Advanced cache initialized via module factory")):(e._logger?.warn?.("AdvancedCache module format not recognized, disabling advanced cache"),e._advancedCache=null)}else e._logger?.info?.("Advanced cache disabled by feature flag"),e._advancedCache=null;await applyProgressiveLoadingSetting(e),e._batchProcessor&&(e._batchProcessor.initialize(),e._logger?.info?.("Batch processor initialized"));try{let i=tryLoadChunk("./decoration-workspace-intel-chunk","./decorationWorkspaceIntel","./decorationWorkspaceIntel.js","./decoration-workspace-intel-chunk.js");i&&typeof i.initializeWorkspaceIntelligence=="function"?await i.initializeWorkspaceIntelligence(e,t):e._logger?.info?.("Workspace intelligence not initialized (no chunk)")}catch(i){e._logger?.warn?.("Delegated workspace intelligence initialization failed",i?.message||String(i)),e._workspaceIntelligence=null}vscode.workspace.getConfiguration("explorerDates").get("autoThemeAdaptation",!0)&&e._themeIntegration?.autoConfigureForTheme&&(await e._themeIntegration.autoConfigureForTheme(),e._logger?.info?.("Theme integration configured")),e._accessibility?.shouldEnhanceAccessibility?.()&&(await e._accessibility.applyAccessibilityRecommendations?.(),e._logger?.info?.("Accessibility recommendations applied")),e._allocationTelemetryEnabled&&(scheduleTelemetryReport(e),e._logger?.info?.("Allocation telemetry enabled - reports every",e._telemetryReportInterval,"ms")),e._logger?.info?.("Advanced systems initialized successfully")}catch(r){e._logger?.error?.("Failed to initialize advanced systems",r)}}function shouldUseFallbackWatcher(e){return e._enableWatcherFallbacks===!1?!1:e._enableWatcherFallbacks==="auto"||e._enableWatcherFallbacks===!0?isPlatformFallbackRequired():!1}function isPlatformFallbackRequired(){let e=proc?.platform,t=env.WSL_DISTRO_NAME||env.WSLENV,r=vscode.env.remoteName,n=env.DOCKER_CONTAINER;return t||r||n||e==="android"}async function createFallbackWatcher(e,t,r){try{if(!e._smartWatcherFallbackManager){let n=await featureFlags.loadFeatureModule("smartWatcherFallback");if(n){let{SmartWatcherFallbackManager:i}=n;e._smartWatcherFallbackManager=new i({logger:e._logger}),await e._smartWatcherFallbackManager.initialize()}}if(e._smartWatcherFallbackManager){let i=await(await e._smartWatcherFallbackManager.getFallback()).createWatcherWithFallback(t);return e._logger?.debug?.(`Fallback watcher created for ${r}`),i}}catch(n){e._logger?.warn?.(`Fallback watcher creation failed for ${r}:`,n)}return null}async function createWatcherWithFallback(e,t,r="unknown"){try{let n=vscode.workspace.createFileSystemWatcher(t);return e._logger?.debug?.(`Native watcher created for ${r}`),n}catch(n){if(e._logger?.debug?.(`Native watcher failed for ${r}:`,n),!shouldUseFallbackWatcher(e))throw n;return createFallbackWatcher(e,t,r)}}async function ensureWatcherManager(e){try{if(e.f)return e.f;try{let t=await Promise.resolve().then(()=>R(dt()));return e.f=t.createWatcherManager(e),e.f}catch(t){e._logger?.debug?.("Failed to load watcher manager chunk from advanced chunk",t)}}catch(t){e._logger?.debug?.("ensureWatcherManager failed",t)}return null}async function setupFileWatcher(e,t="initial"){try{let r=await ensureWatcherManager(e);if(r&&typeof r.setupFileWatcher=="function")return r.setupFileWatcher(t)}catch(r){e._logger?.debug?.("setupFileWatcher failed in advanced chunk",r)}try{let r=createWatcherWithFallback(e,"**/*",`global:${t}`);if(r)return e.s||(e.s=new Set),e.s.add(r),e._logger?.info?.("Global watcher activated (fallback)",{reason:t}),r}catch(r){e._logger?.debug?.("setupFileWatcher fallback failed",r)}return null}function registerWatcherHandlers(e,t,r="unknown"){try{let n=e.f||null;if(n&&typeof n.he=="function")return n.he(t,r)}catch(n){e._logger?.debug?.("Watcher manager register watcher handlers failed (advanced)",n)}try{if(!t)return;t.onDidChange(n=>e.W(n,"change",r)),t.onDidCreate(n=>e.W(n,"create",r)),t.onDidDelete(n=>e.W(n,"delete",r))}catch(n){e._logger?.debug?.("registerWatcherHandlers fallback failed",n)}}function dispatchWatcherEvent(e,t,r,n){try{let i=e.f||null;if(i&&typeof i.xe=="function")return i.xe(t,r,n)}catch(i){e._logger?.debug?.("Watcher manager dispatch watcher event failed (advanced)",i)}try{try{e.Me?.(t)}catch{}r==="delete"?e.clearDecoration(t):e.refreshDecoration(t),e._workspaceIntelligence?.incrementalIndexer&&e._workspaceIntelligence.incrementalIndexer.queueDelta(t,r),e.Ze&&e._logger?.debug?.(`Watcher event processed (${r}) for ${e.describeFile(t)} via ${n}`)}catch(i){e._logger?.debug?.("dispatchWatcherEvent fallback failed",i)}}function buildSummaryTooltip(e,{filePath:t,stat:r,badgeDetails:n}){try{let i=tryLoadChunk("./decoration-formatters-chunk","./decorationFormatters","./decoration-formatters-chunk.js","./decorationFormatters.js","./decoration-helpers-chunk","./decorationHelpers","./decoration-helpers","./decoration-helpers-chunk.js","./decorationHelpers.js");if(i&&typeof i.buildSummaryTooltip=="function")return i.buildSummaryTooltip(e,{filePath:t,stat:r,badgeDetails:n})}catch(i){e._logger?.debug?.("Delegated buildSummaryTooltip failed",i)}try{let i=[];n?.readableModified&&i.push(`Modified ${n.readableModified}`);let a=n?.fileSizeLabel||(r?.size?e.gt(r.size,"auto"):null);return a&&i.push(a),`${typeof e.describeFile=="function"?e.describeFile(t):t} \u2014 ${i.filter(Boolean).join(" \u2022 ")||e.Dr(r?.mtime||new Date)}`}catch(i){return e._logger?.debug?.("buildSummaryTooltip failed",i),`${typeof e.describeFile=="function"?e.describeFile(t):t} \u2014 ${e.Dr(r?.mtime||new Date)}`}}function formatDateReadable(e,t){try{let r=tryLoadChunk("./decoration-formatters-chunk","./decorationFormatters","./decoration-formatters-chunk.js","./decorationFormatters.js","./decoration-helpers-chunk","./decorationHelpers","./decoration-helpers","./decoration-helpers-chunk.js","./decorationHelpers.js");if(r&&typeof r.formatDateReadable=="function")return r.formatDateReadable(e,t)}catch(r){e._logger?.debug?.("Delegated formatDateReadable failed",r)}try{let r=new Date,n=r.getTime()-t.getTime(),i=Math.floor(n/(1e3*60)),a=Math.floor(n/(1e3*60*60)),o=Math.floor(n/(1e3*60*60*24)),s=e.ln(t,r,i,a,o);return s?e.er(e.N,e.Ie,e.Cr,s.key,s.factory,e.Sr):t.getFullYear()===r.getFullYear()?e.p.formatDate(t,{month:"short",day:"numeric"}):e.p.formatDate(t,{month:"short",day:"numeric",year:"numeric"})}catch(r){return e._logger?.debug?.("formatDateReadable failed",r),e.p.formatDate(t)}}async function getGitBlameInfo(e,t,r=null){if(env.DISABLE_GIT_FEATURES==="1"||e.un)return null;try{let n=await featureFlags.gitInsights();return!n||typeof n.getGitBlameInfo!="function"?null:await n.getGitBlameInfo(t,r)}catch(n){return e._logger?.warn?.("Git blame lookup failed",{filePath:t,message:n?.message||String(n)}),null}}async function findWorkspaceFilesWithTimeout(provider,maxResults){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=dynamicRequire("./workspace-scan-chunk");if(e&&typeof e.findWorkspaceFilesWithTimeout=="function")return e.findWorkspaceFilesWithTimeout(provider,maxResults)}}catch(e){provider._logger?.debug?.("Delegated findWorkspaceFilesWithTimeout failed",e)}try{return require("vscode").workspace.findFiles("**/*",null,maxResults)}catch(e){return provider._logger?.warn?.("Workspace scan fallback failed",e),null}}function startWorkspaceScanWatchdog(provider){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=dynamicRequire("./workspace-scan-chunk");if(e&&typeof e.startWorkspaceScanWatchdog=="function")return e.startWorkspaceScanWatchdog(provider)}}catch(e){provider._logger?.debug?.("Delegated startWorkspaceScanWatchdog failed",e)}return Promise.resolve()}function clearWorkspaceScanWatchdog(provider){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=dynamicRequire("./workspace-scan-chunk");if(e&&typeof e.clearWorkspaceScanWatchdog=="function")return e.clearWorkspaceScanWatchdog(provider)}}catch(e){provider._logger?.debug?.("Delegated clearWorkspaceScanWatchdog failed",e)}provider.te&&(clearTimeout(provider.te),provider.te=null)}async function performWorkspaceSizeCheck(provider){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=dynamicRequire("./workspace-scan-chunk");if(e&&typeof e.performWorkspaceSizeCheck=="function")return e.performWorkspaceSizeCheck(provider)}}catch(e){provider._logger?.debug?.("Delegated performWorkspaceSizeCheck failed",e)}try{let e=require("vscode"),t=e.workspace.workspaceFolders;if(!t||t.length===0)return;provider._logger?.info?.("Checking workspace size (fallback, fast)");let r=await(e.workspace.findFiles?e.workspace.findFiles("**/*",null,1e3):[]),n=Array.isArray(r)?r.length:0;provider.Ge=n,provider.u=n>1e5?"extreme":n>1e4?"large":"normal",provider.Xe(provider.Ye(),"workspace-scale-change-fallback")}catch(e){provider._logger?.debug?.("performWorkspaceSizeCheck fallback failed",e)}}function getInitials(e,t){try{let n=tryLoadChunk("./decoration-formatters-chunk","./decorationFormatters","./decoration-formatters-chunk.js","./decorationFormatters.js","./decoration-helpers-chunk","./decorationHelpers","./decoration-helpers","./decoration-helpers-chunk.js","./decorationHelpers.js");if(n&&typeof n.getInitials=="function")return n.getInitials(e,t)}catch(n){e._logger?.debug?.("Delegated getInitials failed",n)}if(e.pe&&typeof e.pe.getInitials=="function")return e.pe.getInitials(t);if(!t||typeof t!="string")return null;let r=t.trim().split(/\s+/).filter(Boolean);return r.length===0?null:r.length===1?r[0].substring(0,2).toUpperCase():(r[0][0]+(r[1][0]||"")).substring(0,2).toUpperCase()}function formatCompactSize(e,t){try{let r=tryLoadChunk("./decoration-formatters-chunk","./decorationFormatters","./decoration-formatters-chunk.js","./decorationFormatters.js","./decoration-helpers-chunk","./decorationHelpers","./decoration-helpers","./decoration-helpers-chunk.js","./decorationHelpers.js");if(r&&typeof r.formatCompactSize=="function")return r.formatCompactSize(e,t)}catch(r){e._logger?.debug?.("Delegated formatCompactSize failed",r)}try{if(typeof t!="number"||isNaN(t))return null;let r=["B","K","M","G","T"],n=0,i=t;for(;i>=1024&&n=2?s.slice(0,2):s}catch(r){return e._logger?.debug?.("formatCompactSize failed",r),null}}function formatFullDate(e,t){try{let r=tryLoadChunk("./decoration-formatters-chunk","./decorationFormatters","./decoration-formatters-chunk.js","./decorationFormatters.js","./decoration-helpers-chunk","./decorationHelpers","./decoration-helpers","./decoration-helpers-chunk.js","./decorationHelpers.js");if(r&&typeof r.formatFullDate=="function")return r.formatFullDate(e,t)}catch(r){e._logger?.debug?.("Delegated formatFullDate failed",r)}try{let r={year:"numeric",month:"long",day:"numeric",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:"short"};return t.toLocaleString("en-US",r)}catch(r){return e._logger?.debug?.("formatFullDate failed",r),t.toString()}}function scheduleTelemetryReport(e){try{let t=tryLoadChunk("./decoration-telemetry-chunk","./decorationTelemetry","./decorationTelemetry.js","./decoration-telemetry-chunk.js");if(t&&typeof t.scheduleTelemetryReport=="function")return t.scheduleTelemetryReport(e)}catch(t){e._logger?.debug?.("Delegated scheduleTelemetryReport failed",t)}!e._allocationTelemetryEnabled||e._telemetryReportTimer||(e._telemetryReportTimer=setTimeout(()=>{e._telemetryReportTimer=null,reportAllocationTelemetry(e),scheduleTelemetryReport(e)},e._telemetryReportInterval))}function reportAllocationTelemetry(e){try{let i=st();if(i&&typeof i.reportAllocationTelemetry=="function")return i.reportAllocationTelemetry(e)}catch(i){e._logger?.debug?.("Delegated reportAllocationTelemetry failed",i)}let t=e.getMetrics().allocationTelemetry,r=t.decorationPool.allocations+t.badgeFlyweight.allocations+t.readableFlyweight.allocations,n=t.decorationPool.reuses+t.badgeFlyweight.reuses+t.readableFlyweight.reuses;(r>0||n>0)&&e._logger?.info?.("\u{1F9EE} Allocation telemetry report",{timestamp:new Date().toISOString(),pool:{allocations:t.decorationPool.allocations,reuses:t.decorationPool.reuses,reuseRate:t.decorationPool.reusePercent+"%"},badgeFlyweight:{allocations:t.badgeFlyweight.allocations,reuses:t.badgeFlyweight.reuses,reuseRate:t.badgeFlyweight.reusePercent+"%"},readableFlyweight:{allocations:t.readableFlyweight.allocations,reuses:t.readableFlyweight.reuses,reuseRate:t.readableFlyweight.reusePercent+"%"},summary:{totalAllocations:r,totalReuses:n,overallReuseRate:r+n>0?(n/(r+n)*100).toFixed(1)+"%":"0%"},decorationsProcessed:e._metrics.totalDecorations,cacheHitRate:e.getMetrics().cacheHitRate})}function setupPeriodicRefresh(e){try{let t=vscode.workspace.getConfiguration("explorerDates"),r=t.get("badgeRefreshInterval",6e4),n=e.F||r;if(e.A=n,e._logger?.info?.(`Setting up periodic refresh with interval: ${e.A}ms`),e.a&&(clearInterval(e.a),e.a=null),e.i&&e.i.size){for(let i of e.i)clearTimeout(i);e.i.clear()}if(!t.get("showDateDecorations",!0)){e._logger?.info?.("Decorations disabled, skipping periodic refresh setup");return}e.a=setInterval(()=>{if(e.R){e._logger?.debug?.("Periodic refresh skipped - incremental refresh already running");return}e._logger?.debug?.("Periodic refresh triggered - scheduling incremental refresh"),scheduleIncrementalRefresh(e,"periodic")},e.A),e._logger?.info?.("Periodic refresh timer started")}catch(t){e._logger?.debug?.("Failed to setup periodic refresh",t)}}function cancelIncrementalRefreshTimers(provider){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=dynamicRequire("./decoration-refresh-chunk");if(e&&typeof e.cancelIncrementalRefreshTimers=="function")return e.cancelIncrementalRefreshTimers(provider)}}catch(e){provider._logger?.debug?.("Delegated cancelIncrementalRefreshTimers failed",e)}if(!(!provider.i||provider.i.size===0)){for(let e of provider.i)clearTimeout(e);provider.i.clear(),provider.R=!1}}function scheduleIncrementalRefresh(provider,reason="manual"){try{if(!provider.e||typeof provider.e.entries!="function"){provider._logger?.debug?.("scheduleIncrementalRefresh: missing or invalid memory cache, firing global refresh");try{provider.m.fire(void 0)}catch{}return}let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=dynamicRequire("./decoration-refresh-chunk");if(e&&typeof e.scheduleIncrementalRefresh=="function")return e.scheduleIncrementalRefresh(provider,reason)}}catch(e){provider._logger?.debug?.("Delegated scheduleIncrementalRefresh failed",e)}provider._logger?.debug?.("scheduleIncrementalRefresh fallback invoked");try{provider.m.fire(void 0)}catch{}}function markCacheEntryForRefresh(provider,cacheKey){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=dynamicRequire("./decoration-refresh-chunk");if(e&&typeof e.markCacheEntryForRefresh=="function")return e.markCacheEntryForRefresh(provider,cacheKey)}}catch(e){provider._logger?.debug?.("Delegated markCacheEntryForRefresh failed",e)}if(!cacheKey)return;if(!provider.e||typeof provider.e.get!="function")provider._logger?.debug?.("markCacheEntryForRefresh: no memory cache available, skipping");else{let e=provider.e.get(cacheKey);e&&Date.now()-e.timestamp>provider.S*.75&&(e.forceRefresh=!0)}if(provider._advancedCache)try{provider._advancedCache.invalidateByPattern(cacheKey.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"))}catch(e){provider._logger?.debug?.(`Could not invalidate advanced cache for ${cacheKey}: ${e.message}`)}function maybeShedWorkload(provider){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=dynamicRequire("./decoration-memory-chunk");if(e&&typeof e.maybeShedWorkload=="function")return e.maybeShedWorkload(provider)}}catch(e){provider._logger?.debug?.("Delegated maybeShedWorkload failed",e)}try{if(!provider.St||provider.Tt)return;let e=(()=>{try{return proc?.memoryUsage?proc.memoryUsage().heapUsed/1024/1024:0}catch{return 0}})();if(!e)return;if(!provider.ye){provider.ye=e,provider.re=0,provider.be=!1;return}let t=e-provider.ye;if(t>=provider.vt?(provider.re++,provider.re>=2&&!provider.be&&(provider.be=!0,provider._logger?.warn?.("Memory pressure warning (soft threshold exceeded twice)",{deltaMB:Number(t.toFixed(2)),baselineMB:provider.ye,heapMB:e,rssMB:(()=>{try{return proc?.memoryUsage?proc.memoryUsage().rss/1024/1024:0}catch{return 0}})(),cacheSize:provider.e.size,cacheLimit:provider.l}))):provider.re>0&&(provider.re=0,t=provider.Ft){provider.Tt=!0,provider.l=Math.min(provider.l,provider.Tr),provider.F=Math.max(provider.F||provider.A||provider.At,provider.At);let r=(()=>{try{return proc?.memoryUsage?proc.memoryUsage().rss/1024/1024:0}catch{return 0}})(),n={timestamp:new Date().toISOString(),deltaMB:Number(t.toFixed(2)),baselineMB:provider.ye,heapMB:e,rssMB:r,cacheSize:provider.e.size,maxCacheSize:provider.l,watcherStrategy:provider.j,staticWatchers:provider.s.size,dynamicWatchers:provider.d.size};provider.nt.push(n),provider.nt.length>10&&provider.nt.shift(),provider._logger?.warn?.(`Memory shedding activated (delta ${t.toFixed(2)} MB >= ${provider.Ft} MB); cache size capped at ${provider.l} and refresh interval stretched to ${provider.F}ms`,n),setupPeriodicRefresh(provider),provider.be=!1,provider.re=0}}catch(e){provider._logger?.debug?.("maybeShedWorkload failed",e)}}function monitorCachePressure(e){try{if(!e.l||e.l<=0)return;let t=e.e.size/e.l;t>=e.Rt?e.it||(e.it=!0,e._logger?.infoWithOptions?.({throttleKey:"cache-pressure",intervalMs:6e4},`Decoration cache usage is at ${(t*100).toFixed(1)}% of capacity`,{cacheSize:e.e.size,maxCacheSize:e.l})):t0&&e.e.clear();try{typeof e.vr=="function"&&e.vr(t)}catch{}e.I.size>0&&(e.I.clear(),e.Se.length=0),e.N.size>0&&(e.N.clear(),e.Ie.length=0),e._logger?.debug?.(`\u{1F9FD} Purged lightweight caches (${t})`)}catch(r){e._logger?.debug?.("purgeLightweightCaches failed",r)}}async function togglePerformanceMode(e,t,{reason:r="unspecified",refresh:n=!0}={}){if(t!==e._performanceMode){if(e._performanceMode=t,e._logger?.info?.(`Performance mode ${t?"enabled":"disabled"} (${r})`),t)e.ot?.({permanent:!0}),e._logger?.info?.("File watchers disabled for performance mode"),e.a&&(clearInterval(e.a),e.a=null,e._logger?.info?.("Periodic refresh disabled for performance mode"));else{try{e.Q?.("performance-mode-toggle"),e._logger?.info?.("File watchers enabled (performance mode off)")}catch{}e.a||(e._e?.(),e._logger?.info?.("Periodic refresh enabled (performance mode off)"))}if(n)try{e.refreshAll?.({reason:"performance-mode-change"})}catch(i){e._logger?.debug?.("refreshAll after performance toggle failed",i)}if(t)e._workspaceIntelligence?.dispose&&(e._workspaceIntelligence.dispose(),e._workspaceIntelligence=null);else if(!e._workspaceIntelligence)try{let{getFeatureFlagsGlobal:i}=G(),a=i(),o=a?await a.workspaceIntelligence():null;if(o){let{WorkspaceIntelligenceManager:s}=o;e._workspaceIntelligence=new s(e._fileSystem),await e._workspaceIntelligence.initialize({batchProcessor:e._batchProcessor,enableProgressiveAnalysis:e._shouldEnableProgressiveAnalysis?.()});let c=require("vscode").workspace.workspaceFolders;c?.length&&await e._workspaceIntelligence.analyzeWorkspace(c,{maxFiles:e._getIndexerMaxFiles?.()})}}catch(i){e._logger?.debug?.("Workspace intelligence reinitialization failed after performance mode toggle",i)}}}function applyPerformanceProfile(e,t,r="unspecified"){try{let n=t?.level||e.B;e.hn=!1;let i=computeEffectivePerformanceMode(e);if(i!==e._performanceMode&&(e._logger?.debug?.("Auto performance mode update",{reason:r,featureLevel:n,workspaceScale:e.u,desiredPerformanceMode:i}),togglePerformanceMode(e,i,{reason:`${r}-auto`,refresh:!0}).catch(a=>e._logger?.debug?.("Failed to toggle performance mode automatically",a))),applyConcurrencyLimit(e,r),!e._performanceMode&&(e.u==="large"||e.u==="extreme")){let a={...e.P,applyBackgroundLimits:!0,backgroundTooltipMode:e.P?.backgroundTooltipMode==="rich"?"summary":e.P?.backgroundTooltipMode};e.P=a}if(!e._performanceMode){let a=getRefreshIntervalForScale(e),o=a!==null&&a!==e.F,s=a===null&&e.F!==null;o?(e.F=a,e._e?.()):s&&(e.F=null,e._e?.())}}catch(n){e._logger?.debug?.("applyPerformanceProfile failed",n)}}function getRefreshIntervalForScale(e){return e.u==="extreme"?6e5:e.u==="large"?18e4:null}function getSmartWatcherDefaults(){try{let e=Fr();return{DEFAULT_SMART_WATCHER_EXTENSIONS:e.DEFAULT_SMART_WATCHER_EXTENSIONS,SMART_WATCHER_PRIORITY:e.SMART_WATCHER_PRIORITY}}catch{return{DEFAULT_SMART_WATCHER_EXTENSIONS:["js","ts","json","md","py","java"],SMART_WATCHER_PRIORITY:new Map([["src",100],["lib",65],["test",30]])}}}function computeEffectivePerformanceMode(e){return e.Fr===!0?!0:e.Fr===!1?!1:e.u==="extreme"}function applyConcurrencyLimit(e,t="unspecified"){let r=e.ue,n=e.Ar?e.Ar():e.st||8;e.ue=Math.max(1,Math.min(n,e.st||8)),e._logger?.info?.(`Adjusted concurrency cap ${r} -> ${e.ue} (${t})`,{workspaceScale:e.u,performanceMode:e._performanceMode})}function _buildFeatureProfile(e,t="full"){let r=FEATURE_LEVELS.includes(t)?t:"full";switch(r){case"enhanced":return{level:r,enableGit:!0,enableProgressiveAnalysis:!0,applyBackgroundLimits:!1,backgroundTooltipMode:"rich",viewportWindowMs:6e4};case"standard":return{level:r,enableGit:!0,enableProgressiveAnalysis:!1,applyBackgroundLimits:!0,backgroundTooltipMode:"summary",viewportWindowMs:48e4};case"minimal":return{level:r,enableGit:!1,enableProgressiveAnalysis:!1,applyBackgroundLimits:!0,backgroundTooltipMode:"summary",viewportWindowMs:12e4};default:return{level:r,enableGit:!0,enableProgressiveAnalysis:!1,applyBackgroundLimits:!1,backgroundTooltipMode:"rich",viewportWindowMs:3e5}}}function applyFeatureLevel(e,t,r="unspecified"){if(!t)return!1;FEATURE_LEVELS.includes(t)||(t="full");let n=e.B!==t||!e.P;e.B=t;let i=n?_buildFeatureProfile(e,t):e.P||_buildFeatureProfile(e,t);return e.P=i,e.O=i.viewportWindowMs,n&&e._logger?.info?.(`Feature level set to "${t}" (${r})`,{viewportWindowMs:e.O,applyBackgroundLimits:i.applyBackgroundLimits,backgroundTooltipMode:i.backgroundTooltipMode}),e._performanceMode?e._logger?.info?.("Performance mode active - skipping feature profile application"):(i.applyBackgroundLimits&&e.dn?.(r),i.backgroundTooltipMode&&e._logger?.info?.("Configuring background tooltip behavior as part of feature profile",{mode:i.backgroundTooltipMode}),i.enableProgressiveAnalysis&&e._logger?.info?.("Progressive analysis enabled by feature profile")),n}function maybePurgeLightweightCaches(e){try{if(!e.at)return;if(e.Pt<=0){purgeLightweightCaches(e,"lightweight-interval");return}let t=e._metrics?.totalDecorations||0;t>0&&t%e.Pt===0&&purgeLightweightCaches(e,"lightweight-interval")}catch(t){e._logger?.debug?.("maybePurgeLightweightCaches failed",t)}}function _getFlyweightValueImpl(cache,order,limit,key,factory,statsTracker){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=dynamicRequire("./decoration-pool-chunk");if(e&&typeof e.xt=="function")return e.xt(cache,order,limit,key,factory,statsTracker)}}catch{}try{return factory()}catch{return null}}function acquireDecorationFromPoolImpl({badge,tooltip,color},createFileDecoration){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=dynamicRequire("./decoration-pool-chunk");if(e&&typeof e.acquireDecorationFromPoolImpl=="function")return e.acquireDecorationFromPoolImpl({badge,tooltip,color},createFileDecoration)}}catch{}return createFileDecoration(badge||"??")}function _trimFlyweightCacheToLimitImpl(cache,order,maxSize){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=dynamicRequire("./decoration-pool-chunk");if(e&&typeof e.Mt=="function")return e.Mt(cache,order,maxSize)}}catch{}}function clearDecorationPoolImpl(provider,reason="unspecified"){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=dynamicRequire("./decoration-pool-chunk");if(e&&typeof e.clearDecorationPoolImpl=="function")return e.clearDecorationPoolImpl(provider,reason)}}catch{}try{provider.c?.size&&(provider.c.clear(),provider.$.length=0)}catch{}}function checkMemoryPressure(e){try{let t=Date.now();if(e.ct||(e.ct=t),t-e.ct<3e4)return;e.ct=t;let r=e.e.size||0,n=1e4;r/n>.8&&(e._logger?.warn?.("\u{1F9E0} Memory pressure detected, performing cleanup",{cacheSize:r,maxSize:n}),purgeLightweightCaches(e,"memory-pressure"),e._metrics.cachePressureEvents=(e._metrics.cachePressureEvents||0)+1)}catch(t){e._logger?.debug?.("checkMemoryPressure failed",t)}}function createLazyHierarchicalDecorationCache(){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=dynamicRequire("./decoration-cache-chunk");if(e&&typeof e.createLazyHierarchicalDecorationCache=="function")return e.createLazyHierarchicalDecorationCache()}}catch{}class SimpleFallbackCache{constructor(){this.ne=new Map}get size(){return this.ne.size}clear(){this.ne.clear()}get(t){return this.ne.get(t)}set(t,r){this.ne.set(t,r)}delete(t){return this.ne.delete(t)}*entries(){yield*this.ne.entries()}hydrateInBackground(){}enforceLimit(){return 0}}return new SimpleFallbackCache}module.exports={applyProgressiveLoadingSetting,cancelProgressiveWarmupJobs,createFallbackWatcher,createWatcherWithFallback,initializeAdvancedSystems,loadBatchProcessorIfNeeded,reportAllocationTelemetry,scheduleTelemetryReport,setupPeriodicRefresh,scheduleIncrementalRefresh,cancelIncrementalRefreshTimers,markCacheEntryForRefresh,maybeShedWorkload,monitorCachePressure,purgeLightweightCaches,maybePurgeLightweightCaches,checkMemoryPressure,getCachedDecoration,storeDecorationInCache,buildSummaryTooltip,formatDateReadable,getGitBlameInfo,getInitials,formatCompactSize,formatFullDate,togglePerformanceMode,applyPerformanceProfile,getRefreshIntervalForScale,computeEffectivePerformanceMode,applyConcurrencyLimit,findWorkspaceFilesWithTimeout,startWorkspaceScanWatchdog,clearWorkspaceScanWatchdog,performWorkspaceSizeCheck,applyFeatureLevel,fn:_buildFeatureProfile,getSmartWatcherDefaults,createLazyHierarchicalDecorationCache,xt:_getFlyweightValueImpl,acquireDecorationFromPoolImpl,Mt:_trimFlyweightCacheToLimitImpl,clearDecorationPoolImpl,deferPreloads,ensureWatcherManager,setupFileWatcher,registerWatcherHandlers,dispatchWatcherEvent}}});var Ir=_((Wa,Mr)=>{function Ni(e){try{let t=(()=>{try{return require("vscode")}catch{return null}})(),r=t?t.workspace.getConfiguration("explorerDates"):{get:()=>6e4},n=r.get("badgeRefreshInterval",6e4),i=e.F||n;if(e.A=i,e._logger?.info?.(`Setting up periodic refresh with interval: ${e.A}ms`),e.a&&(clearInterval(e.a),e.a=null),e.i&&e.i.size){for(let a of e.i)clearTimeout(a);e.i.clear()}if(!r.get("showDateDecorations",!0)){e._logger?.info?.("Decorations disabled, skipping periodic refresh setup");return}e.a=setInterval(()=>{if(e.R){e._logger?.debug?.("Periodic refresh skipped - incremental refresh already running");return}e._logger?.debug?.("Periodic refresh triggered - scheduling incremental refresh"),Pr(e,"periodic")},e.A),e._logger?.info?.("Periodic refresh timer started")}catch(t){e._logger?.debug?.("Failed to setup periodic refresh",t)}}function Rr(e){if(!(!e.i||e.i.size===0)){for(let t of e.i)clearTimeout(t);e.i.clear(),e.R=!1}}function Pr(e,t="manual"){try{if(e.D){e._logger?.debug?.(`scheduleIncrementalRefresh called after dispose - ignoring (${t})`);return}if(e.ie){e._logger?.debug?.(`Incremental refresh (${t}) skipped - refresh already pending`);return}if(e.R&&(e._logger?.debug?.(`Incremental refresh (${t}) already in progress, cancelling pending timers and rescheduling`),Rr(e)),!e.e||typeof e.e.entries!="function"){e._logger?.debug?.("scheduleIncrementalRefresh: no memory cache available, firing global refresh");try{e.m.fire(void 0)}catch{}e.R=!1,e.ie=!1;return}let r=Array.from(e.e.entries());if(r.length===0){e._logger?.debug?.(`No cached decorations to refresh for ${t}, falling back to global refresh`),e.m.fire(void 0);return}let n=r.map(([c,u])=>{let l=u?.uri?u.uri:c?require("vscode").Uri.file(c):null;return l?{cacheKey:c,uri:l}:null}).filter(Boolean);if(n.length===0){e._logger?.debug?.(`Failed to resolve URIs for ${t} incremental refresh, firing global refresh`),e.m.fire(void 0);return}let i=40,a=Math.ceil(n.length/i),o=Math.min(4e3,Math.max(750,Math.floor(e.A*.25))),s=a>1?Math.max(25,Math.floor(o/a)):0;e.R=!0,e.ie=!0,e._logger?.debug?.(`Incremental refresh (${t}) scheduled for ${n.length} items in ${a} batches (spacing: ${s}ms)`);for(let c=0;c{try{if(e.D){e.i.delete(d),e.i.size||(e.R=!1,e.ie=!1);return}u.forEach(({cacheKey:h,uri:g})=>{xr(e,h),e.m.fire(g)})}finally{e.i.delete(d),e.i.size===0&&(e.R=!1,e.ie=!1,e._logger?.debug?.(`Incremental refresh (${t}) completed`))}},l);e.i.add(d)}}catch(r){e._logger?.debug?.("Failed to schedule incremental refresh",r)}}function xr(e,t){if(t){if(!e.e||typeof e.e.get!="function")e._logger?.debug?.("markCacheEntryForRefresh: no memory cache available, skipping");else{let r=e.e.get(t);if(r){let n=Date.now()-r.timestamp;n>e.S*.75?(r.forceRefresh=!0,e._logger?.debug?.(`Marked stale entry for refresh: ${t} (age: ${Math.round(n/1e3)}s)`)):e._logger?.debug?.(`Skipped refresh for fresh entry: ${t} (age: ${Math.round(n/1e3)}s)`)}}if(e._advancedCache)try{let r=t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e._advancedCache.invalidateByPattern(r)}catch(r){e._logger?.debug?.(`Could not invalidate advanced cache for ${t}: ${r.message}`)}}}Mr.exports={setupPeriodicRefresh:Ni,cancelIncrementalRefreshTimers:Rr,scheduleIncrementalRefresh:Pr,markCacheEntryForRefresh:xr}});var f=require("vscode"),{fileSystem:qi}=$e(),{formatFileSize:zi}=Be(),{getSettingsCoordinator:Ui}=Ve(),{SecurityValidator:La,SecureFileOperations:Oa,detectSecurityEnvironment:Hi}=Ze(),{DEFAULT_CACHE_TIMEOUT:Fe,DEFAULT_MAX_CACHE_SIZE:ie,GLOBAL_STATE_KEYS:Na,DEFAULT_DECORATION_POOL_SIZE:$i,DEFAULT_FLYWEIGHT_CACHE_SIZE:Wr,WORKSPACE_SCALE_EXTREME_THRESHOLD:qa}=I(),{isWebEnvironment:Bi}=J(),{isWebDiagnosticsEnabled:Lr,diagLogOnce:Ae,recordProviderEvent:Ki,recordDecorationCall:ji,recordRefreshCall:Vi}=he(),{resolveFreshness:Gi,compareFreshness:Xi,resourceIdentity:Or}=nt(),S=typeof process<"u"&&process.env?process.env:{},Yi=300*1e3,Zi=Number(S.EXPLORER_DATES_VIEWPORT_HISTORY_LIMIT||400),Nr=Number(S.EXPLORER_DATES_SECURITY_MAX_WARNINGS_PER_FILE??1),qr=["full","enhanced","standard","minimal"],zr=new Map([["src",100],["lib",65],["test",30]]);function Ji(){try{let e=f?.window?.activeColorTheme?.kind,t=e===f.ColorThemeKind.HighContrast,r=e===f.ColorThemeKind.Light;return t?{veryRecent:new f.ThemeColor("list.highlightForeground"),recent:new f.ThemeColor("list.warningForeground"),old:new f.ThemeColor("list.errorForeground"),javascript:new f.ThemeColor("list.highlightForeground"),css:new f.ThemeColor("list.warningForeground"),html:new f.ThemeColor("list.errorForeground"),json:new f.ThemeColor("list.highlightForeground"),markdown:new f.ThemeColor("list.warningForeground"),python:new f.ThemeColor("list.errorForeground"),subtle:new f.ThemeColor("list.highlightForeground"),muted:new f.ThemeColor("list.inactiveSelectionForeground"),emphasis:new f.ThemeColor("list.focusHighlightForeground")}:r?{veryRecent:new f.ThemeColor("list.highlightForeground"),recent:new f.ThemeColor("list.warningForeground"),old:new f.ThemeColor("list.errorForeground"),javascript:new f.ThemeColor("symbolIcon.functionForeground"),css:new f.ThemeColor("symbolIcon.colorForeground"),html:new f.ThemeColor("symbolIcon.snippetForeground"),json:new f.ThemeColor("symbolIcon.stringForeground"),markdown:new f.ThemeColor("symbolIcon.textForeground"),python:new f.ThemeColor("symbolIcon.classForeground"),subtle:new f.ThemeColor("list.inactiveSelectionForeground"),muted:new f.ThemeColor("list.deemphasizedForeground"),emphasis:new f.ThemeColor("list.highlightForeground")}:{veryRecent:new f.ThemeColor("list.highlightForeground"),recent:new f.ThemeColor("charts.yellow"),old:new f.ThemeColor("charts.red"),javascript:new f.ThemeColor("symbolIcon.functionForeground"),css:new f.ThemeColor("charts.purple"),html:new f.ThemeColor("charts.orange"),json:new f.ThemeColor("symbolIcon.stringForeground"),markdown:new f.ThemeColor("charts.yellow"),python:new f.ThemeColor("symbolIcon.classForeground"),subtle:new f.ThemeColor("list.inactiveSelectionForeground"),muted:new f.ThemeColor("list.deemphasizedForeground"),emphasis:new f.ThemeColor("list.highlightForeground")}}catch{return null}}function Qi(e,t){if(!t||!e)return null;let r=ta(e);return[".js",".ts",".jsx",".tsx",".mjs"].includes(r)?t.javascript:[".css",".scss",".sass",".less",".stylus"].includes(r)?t.css:[".html",".htm",".xml",".svg"].includes(r)?t.html:[".json",".yaml",".yml",".toml"].includes(r)?t.json:[".md",".markdown",".txt",".rst"].includes(r)?t.markdown:[".py",".pyx",".pyi"].includes(r)?t.python:null}var ea=e=>{try{let r=String(e||"").replace(/\\/g,"/"),n=r.lastIndexOf("/");return n===-1?r:r.substring(n+1)}catch{return"unknown"}},ta=e=>{try{let t=String(e||""),r=t.lastIndexOf(".");return r<=0?"":t.substring(r).toLowerCase()}catch{return""}},ra=e=>String(e||"").toLowerCase().replace(/\\/g,"/"),Re=e=>String(e||"").replace(/\\/g,"/"),ae=(e="")=>{if(!e)return"";if(typeof e=="string")return e;if(typeof e.fsPath=="string"&&e.fsPath.length>0)return e.fsPath;if(typeof e.path=="string"&&e.path.length>0)return e.path;if(typeof e.toString=="function")try{return e.toString(!0)}catch{return e.toString()}return String(e)},na=(e="")=>{try{let t=typeof e=="string"?e:ae(e),r=Re(t);return ea(r)||r||"unknown"}catch{return"unknown"}},Pe=class{constructor(){this.r=null,this.n=new Map,(async()=>{try{let t=await Promise.resolve().then(()=>R(rr()));if(t&&typeof t.createLazyHierarchicalDecorationCache=="function"){let r=t.createLazyHierarchicalDecorationCache();for(let[n,i]of this.n.entries())r.set(n,i);this.r=r,this.n=null}}catch{}})()}get size(){return this.r?this.r.size:this.n.size}get bucketCount(){return this.r?this.r.bucketCount:0}clear(){if(this.r)return this.r.clear();this.n.clear()}get(t){return this.r?this.r.get(t):this.n.get(t)}set(t,r,n={}){if(this.r)return this.r.set(t,r,n);this.n.set(t,r)}delete(t){return this.r?this.r.delete(t):this.n.delete(t)}*entries(){if(this.r){yield*this.r.entries();return}yield*this.n.entries()}*keys(){if(this.r){yield*this.r.keys();return}yield*this.n.keys()}*values(){if(this.r){yield*this.r.values();return}yield*this.n.values()}[Symbol.iterator](){return this.entries()}enforceLimit(t=0){if(this.r)return this.r.enforceLimit(t);if(!t||this.n.size<=t)return 0;let r=0,i=Array.from(this.n.keys()).slice(0,Math.max(1,Math.ceil(this.n.size-t)));for(let a of i)this.n.delete(a),r++;return r}},ia=S.VSCODE_WEB==="true",xe=class{Rr(){try{let t=typeof process<"u"&&typeof process.memoryUsage=="function"?process.memoryUsage():null,r=Number(t?.heapUsed);return Number.isFinite(r)&&r>=0?Number((r/1024/1024).toFixed(2)):0}catch{return 0}}gn(){try{let t=typeof process<"u"&&typeof process.memoryUsage=="function"?process.memoryUsage():null,r=Number(t?.rss);return Number.isFinite(r)&&r>=0?Number((r/1024/1024).toFixed(2)):0}catch{return 0}}constructor(){this.m=new f.EventEmitter,this.onDidChangeFileDecorations=this.m.event,this.e=new Pe,this.mn=new Map,this.lt=new Map,this.ve=[],this.st=20,this.ue=this.st,this.ir=0,this.Be=!1,this.pn=!1,this.c=new Map,this.$=[],this.H={hits:0,misses:0,allocations:0,reuses:0},this.Jt=$i,this.I=new Map,this.Se=[],this.Xt=Wr,this.Yt={hits:0,misses:0,allocations:0,reuses:0},this.N=new Map,this.Ie=[],this.Cr=Wr,this.Sr={hits:0,misses:0,allocations:0,reuses:0},this.Zt=S.EXPLORER_DATES_ENABLE_DECORATION_POOL!=="0",this.Gt=S.EXPLORER_DATES_ENABLE_FLYWEIGHTS!=="0",this.at=S.EXPLORER_DATES_LIGHTWEIGHT_MODE==="1",this._performanceMode=!1;try{let n=f.workspace.getConfiguration("explorerDates");this._performanceMode=!!n.get("performanceMode",this._performanceMode)}catch{}this.St=S.EXPLORER_DATES_MEMORY_SHEDDING==="1",this.Ft=Number(S.EXPLORER_DATES_MEMORY_SHED_THRESHOLD_MB||3),this.Tt=!1,this.ye=this.St?this.Rr():0,this.Tr=Number(S.EXPLORER_DATES_MEMORY_SHED_CACHE_LIMIT||1e3),this.At=Number(S.EXPLORER_DATES_MEMORY_SHED_REFRESH_MS||6e4),this.F=null,this.nt=[],this.vt=Number(S.EXPLORER_DATES_SOFT_HEAP_ALERT_MB||2),this.re=0,this.be=!1,this.Rt=Number(S.EXPLORER_DATES_CACHE_PRESSURE_RATIO||.7),this.it=!1,this.A=null,this.a=null,this.i=new Set,this.R=!1,this.ie=!1,this.G=S.EXPLORER_DATES_FORCE_CACHE_BYPASS==="1",this.Pt=Number(S.EXPLORER_DATES_LIGHTWEIGHT_PURGE_INTERVAL||400),this._isWeb=ia||Bi(),Lr()&&(Ae("provider-impl-constructed","info","Provider implementation constructed",{isWeb:this._isWeb}),Ki("created",{source:"impl",isWeb:this._isWeb})),this.Pr=Fe*4,this.yn=this.Pr,this.bn=0,this.l=ie;try{let n=f.workspace.getConfiguration("explorerDates");this.S=Number(n.get("cacheTimeout",Fe))}catch{this.S=Fe}try{let n=f.workspace.getConfiguration("explorerDates");this.l=Number(n.get("maxCacheSize",ie))||ie}catch{this.l=ie}this._fileSystem=qi,this._n=!this._isWeb,this.En=!1,this.pe=null,this.wn=null,this.z=new Map,this.We=6e4,this.xr=1e3,this.b=new Map,this.Mr=Number(S.EXPLORER_DATES_FRESHNESS_CACHE_TTL_MS||6e4),this.Ir=Number(S.EXPLORER_DATES_FRESHNESS_CACHE_MAX||2e3),this.It=new Set;try{this.Wr=Math.random().toString(36).slice(2,8),this._logger.debug(`FileDateDecorationProvider created (id=${this.Wr})`)}catch{}this.Lr=null,this.kn=null,this.Or=null,this.Dn=null;let t=Ui(),r=t?.getValue&&t.getValue("enableTelemetry");this._allocationTelemetryEnabled=S.NODE_ENV==="development"||S.EXPLORER_DATES_TELEMETRY==="1"||r===!0,this._telemetryReportInterval=Number(S.EXPLORER_DATES_TELEMETRY_INTERVAL_MS||6e4),this._telemetryReportTimer=null,this.Nr=null,this.Cn=new Map,this.k=new Set,this.y=new Map,this.me=Zi,this.O=300*1e3,this.et=Date.now(),this.v=[],this.rt=null,this.Sn=null;try{let n=Array.isArray(f.window?.visibleTextEditors)?f.window.visibleTextEditors:[];for(let a of n){let o=a?.document?.uri?.fsPath||a?.document?.uri?.path||"";o&&this.k.add(String(o).replace(/\\/g,"/"))}let i=f.window?.activeTextEditor?.document?.uri;if(i){let a=i.fsPath||i.path||"";a&&this.k.add(String(a).replace(/\\/g,"/"))}}catch{}this.B="full",this.P=null,this._logger=q().getLogger(),this.p={getString:n=>n,formatDate:n=>n instanceof Date?n.toString():String(n),getCurrentLocale:()=>"en",dispose:()=>{}},this._metrics={totalDecorations:0,cacheHits:0,cacheMisses:0,fileStatTimeMs:0,fileStatCalls:0,gitBlameTimeMs:0,gitBlameCalls:0,viewportPriorityDecorations:0,viewportBackgroundDecorations:0},(async()=>{try{let n=await Promise.resolve().then(()=>R(Er()));n&&typeof n.hydrateProviderOptionalSystems=="function"&&await n.hydrateProviderOptionalSystems(this)}catch(n){this._logger.debug("Failed to run provider initialization chunk",n)}})(),this._workspaceIntelligence=null,this._batchProcessor=null,this._batchProcessorModule=null,this._progressiveLoadingJobs=new Set,this._progressiveLoadingEnabled=!1,this.ae=null,this.oe=null,this._advancedCache=null,this.w=null,this.s=new Set,this.h=void 0,this.d=new Map,this.T=[],this.L=null,this.J=!0,this._enableWatcherFallbacks="auto",this._smartWatcherFallbackManager=null,this.ee=null,this.j="none",this.E=new Map,this.Wt=!1,this.Ee=[],this.Ge=null,this.u="unknown",this.Ze=S.EXPLORER_DATES_LOG_WATCHERS==="1",this.Tn=Hi(),this.Lt=!0,this.qr=[],this.zr=!0,this.vn=!1,this.Fn=!1,this.An=new Map,this.Rn=Number(S.EXPLORER_DATES_SECURITY_WARNING_THROTTLE_MS||5e3),this.Pn=Number.isFinite(Nr)?Math.max(0,Nr):1,this.Le=typeof f.workspace.onDidChangeWorkspaceFolders=="function"?f.workspace.onDidChangeWorkspaceFolders(n=>this.Ur(n)):null,this.C=null,this.xn=null,this.Mn=null,this.te=null,this.In=!1,this.Je=0,this.D=!1,this._accessibility=null;try{let n=f.workspace.getConfiguration("explorerDates"),i=!!n.get("enableContextMenu",!0),a=!!n.get("showStatusBar",!1),o=!!n.get("showWelcomeOnStartup",!0),s=!!n.get("enableExtensionApi",!0);try{f.commands.executeCommand("setContext","explorerDates.enableContextMenu",i).catch(()=>{})}catch{}try{f.commands.executeCommand("setContext","explorerDates.showStatusBar",a).catch(()=>{})}catch{}try{f.commands.executeCommand("setContext","explorerDates.showWelcomeOnStartup",o).catch(()=>{})}catch{}try{f.commands.executeCommand("setContext","explorerDates.enableExtensionApi",s).catch(()=>{})}catch{}}catch(n){this._logger?.debug&&this._logger.debug("Failed to initialize UI contexts",n)}try{typeof f.workspace.onDidChangeConfiguration=="function"&&(this.w=f.workspace.onDidChangeConfiguration(n=>{try{if(!n||typeof n.affectsConfiguration!="function"||!n.affectsConfiguration("explorerDates"))return;let a=!!f.workspace.getConfiguration("explorerDates").get("performanceMode",!1);try{let o=this._performanceMode;this._performanceMode=a,a?(this.ot?.({permanent:!0}),this.a&&(clearInterval(this.a),this.a=null)):!a&&o&&(this.Q?.("runtime-config-change"),this.a||this._e?.())}catch(o){this._logger?.debug?.("sync performance-mode toggle failed",o)}(async()=>{try{let o=await this.Z();o&&typeof o.togglePerformanceMode=="function"&&await o.togglePerformanceMode(this,a,{reason:"runtime-config-change",refresh:!0})}catch(o){this._logger?.debug?.("delegated togglePerformanceMode failed",o)}})();try{if(["explorerDates.enableContextMenu","explorerDates.showStatusBar","explorerDates.showWelcomeOnStartup","explorerDates.enableExtensionApi"].some(c=>n.affectsConfiguration&&n.affectsConfiguration(c)))try{let c=f.workspace.getConfiguration("explorerDates"),u=!!c.get("enableContextMenu",!0),l=!!c.get("showStatusBar",!1),d=!!c.get("showWelcomeOnStartup",!0),h=!!c.get("enableExtensionApi",!0);try{f.commands.executeCommand("setContext","explorerDates.enableContextMenu",u).catch(()=>{})}catch{}try{f.commands.executeCommand("setContext","explorerDates.showStatusBar",l).catch(()=>{})}catch{}try{f.commands.executeCommand("setContext","explorerDates.showWelcomeOnStartup",d).catch(()=>{})}catch{}try{f.commands.executeCommand("setContext","explorerDates.enableExtensionApi",h).catch(()=>{})}catch{}}catch(c){this._logger?.debug&&this._logger.debug("Failed to update UI contexts on config change",c)}}catch(o){this._logger?.debug&&this._logger.debug("Failed to evaluate UI-context update condition",o)}try{let o=f.workspace.getConfiguration("explorerDates");if(n.affectsConfiguration&&n.affectsConfiguration("explorerDates.cacheTimeout"))try{this.S=Number(o.get("cacheTimeout",Fe))}catch{}if(n.affectsConfiguration&&n.affectsConfiguration("explorerDates.maxCacheSize"))try{this.l=Number(o.get("maxCacheSize",ie))||ie}catch{}}catch(o){this._logger?.debug&&this._logger.debug("Failed to refresh runtime config values from settings",o)}(async()=>{try{if(n.affectsConfiguration&&n.affectsConfiguration("explorerDates.workspaceExclusionProfiles")&&this._workspaceIntelligence?.smartExclusion?.cleanupAllWorkspaceProfiles&&await this._workspaceIntelligence.smartExclusion.cleanupAllWorkspaceProfiles(),n.affectsConfiguration&&n.affectsConfiguration("explorerDates.showWelcomeOnStartup"))try{let o=!!f.workspace.getConfiguration("explorerDates").get("showWelcomeOnStartup",!0);this._extensionContext&&this._extensionContext.globalState&&typeof this._extensionContext.globalState.update=="function"&&await this._extensionContext.globalState.update("explorerDates.pendingWelcome",o)}catch(o){this._logger?.debug&&this._logger.debug("Failed to persist pending welcome flag",o)}}catch(o){this._logger?.debug&&this._logger.debug("Failed to run workspace exclusion cleanup after config change",o)}})()}catch(i){this._logger?.debug?.("configuration change handler failed",i)}}))}catch(n){this._logger?.debug?.("Failed to register configuration watcher",n)}try{this._performanceMode?(this.h=void 0,this.a=null):(this.Q?.("initial"),this._e?.())}catch(n){this._logger?.debug?.("initial watcher/refresh setup failed",n)}try{this.Hr?.()}catch{}}ut(){if(this.f)return this.f;try{let t=dt();t&&typeof t.createWatcherManager=="function"&&(this.f=t.createWatcherManager(this))}catch(t){this._logger?.debug?.("Failed to create watcher manager",t)}return this.f}Ur(t){try{let r=this.ut();if(r&&typeof r.handleWorkspaceFoldersChanged=="function"){r.handleWorkspaceFoldersChanged(t);return}let n=(t?.added||[]).map(a=>a.uri).filter(Boolean),i=(t?.removed||[]).map(a=>a.uri).filter(Boolean);if(n.length===0&&i.length===0)return;this.C&&clearTimeout(this.C),this.C=setTimeout(()=>{this.C=null,(async()=>{try{this._logger?.info&&this._logger.info("Workspace folders changed (provider fallback)",{added:n.length,removed:i.length}),await this.checkWorkspaceSize();try{this.clearAllCaches()}catch{}try{this.refreshAll()}catch{}if(this._performanceMode)return;this.Q?.("workspace-change");try{typeof this.wt=="function"&&await this.wt()}catch(a){this._logger?.debug&&this._logger.debug("Failed to reconfigure progressive loading after workspace change",a)}if(this._workspaceIntelligence&&typeof this._workspaceIntelligence.onWorkspaceFoldersChanged=="function"){let a=(f.workspace.workspaceFolders||[]).map(o=>({uri:o.uri}));await this._workspaceIntelligence.onWorkspaceFoldersChanged({added:a,removed:i.map(o=>({uri:o}))})}}catch(a){this._logger?.debug&&this._logger.debug("Workspace folder change handling failed",a)}})()},250)}catch(r){this._logger?.debug&&this._logger.debug("provider._handleWorkspaceFoldersChanged failed",r)}}dr(t=[]){try{if(!Array.isArray(t))return[];let r=new Set;return t.map(n=>String(n||"").replace(/^\./,"").toLowerCase().trim()).filter(n=>!!n).filter(n=>r.has(n)?!1:(r.add(n),!0))}catch{return[]}}gr(t){try{let r=Number(t||0);(!Number.isFinite(r)||r<=0)&&(r=20);let n=Number(S.EXPLORER_DATES_MAX_SMART_WATCHER_PATTERNS||200);return Math.max(1,Math.min(Math.floor(r),Math.max(1,n)))}catch{return 20}}async K(t,r={}){try{try{let s=ht();if(s&&typeof s.K=="function")return await s.K(this,t,r)}catch{}let n=[],i=Math.max(1,r&&r.maxPatterns||1),a=i,o=Array.isArray(t)?t.length:0;for(let s of t||[]){if(a<=0)break;let c=Math.max(1,Math.floor(a/Math.max(1,o))),u=new f.RelativePattern(s,"*.{md,mdx,json,jsonc,yml,yaml,ts,tsx,js,jsx}");if(n.push({pattern:u,label:`root:${s.name}`}),a-=1,a<=0)break;try{let l=typeof this._fileSystem?.readdir=="function"?await this._fileSystem.readdir(s.uri||s.fsPath||s):[],d=(Array.isArray(l)?l:[]).filter(h=>h&&(typeof h.isDirectory=="function"?h.isDirectory():!0)).map(h=>typeof h=="string"?h:h.name||"").filter(Boolean).filter(h=>!["node_modules",".git","dist","build","out"].includes(h));d.sort((h,g)=>(zr.get(g)||0)-(zr.get(h)||0));for(let h of d){if(a<=0)break;let g=new f.RelativePattern(s,`${h}/**/*.{md,mdx,json,jsonc,yml,yaml,ts,tsx,js,jsx}`);n.push({pattern:g,label:`sub:${s.name}/${h}`}),a-=1}}catch{}o-=1}return n.slice(0,i)}catch{return[]}}fe(t,r,n){try{if(!t||typeof r!="string"||typeof n!="function")return null;let i=t[r];if(typeof i=="function")try{return i.call(t,n)}catch{return null}return null}catch{return null}}_getIndexerMaxFiles(){try{return Math.max(100,Number(S.EXPLORER_DATES_INDEXER_MAX_FILES||2e3))}catch{return 2e3}}Q(t="initial"){try{if(this._performanceMode||this.D)return;this.h||(this.h={pending:!0});let r=this.ut();if(r&&typeof r.setupFileWatcher=="function")try{r.setupFileWatcher(t);return}catch(n){this._logger?.debug?.("WatcherManager.setupFileWatcher failed",n)}(async()=>{try{let n=await this.Z();n&&typeof n.setupFileWatcher=="function"&&await n.setupFileWatcher(this,t)}catch(n){this._logger?.debug?.("Fallback setupFileWatcher failed",n)}})()}catch(r){this._logger?.debug?.("provider._setupFileWatcher failed",r)}}async Fe(t,r){try{let n="manual",i=typeof t=="number"?t:typeof r=="number"?r:++this.Je;typeof t=="string"&&(n=t);let a=this.ut();if(a&&typeof a.Fe=="function")return await a.Fe(i,n);this.Q(n);return}catch(n){this._logger?.debug&&this._logger.debug("provider._initializeSmartWatchers failed",n)}}ot(t={}){try{let r=t&&t.permanent===!0;if(this.f&&typeof this.f.disposeFileWatchers=="function"){try{this.f.disposeFileWatchers({permanent:r})}catch(n){this._logger?.debug?.("watcherManager.disposeFileWatchers failed",n)}this.h=r?null:void 0}else this.s&&typeof this.s.forEach=="function"&&(this.s.forEach(n=>{try{n&&typeof n.dispose=="function"&&n.dispose()}catch{}}),this.s.clear()),this.h=r?null:void 0;if(this.E&&this.E.size){for(let n of this.E.values())clearTimeout(n.timer);this.E.clear()}}catch(r){this._logger?.debug?.("provider._disposeFileWatchers failed",r)}}_e(){try{let t=(()=>{try{return Ar()}catch{return null}})();if(t&&typeof t.setupPeriodicRefresh=="function")try{t.setupPeriodicRefresh(this);return}catch(a){this._logger?.debug?.("adv.setupPeriodicRefresh failed",a)}try{let a=Ir();if(a&&typeof a.setupPeriodicRefresh=="function"){a.setupPeriodicRefresh(this);return}}catch{}let r=f.workspace.getConfiguration("explorerDates"),n=r.get("badgeRefreshInterval",6e4),i=this.F||n;if(this.A=i,this.a&&(clearInterval(this.a),this.a=null),!r.get("showDateDecorations",!0))return;this.a=setInterval(()=>{try{try{this.m.fire(void 0)}catch{}}catch{}},this.A)}catch(t){this._logger?.debug?.("provider._setupPeriodicRefresh failed",t)}}async initializeAdvancedSystems(t){try{let n=await ge().decorationsAdvanced();if(n&&typeof n.initializeAdvancedSystems=="function")return n.initializeAdvancedSystems(this,t);this._logger.info&&this._logger.info("Advanced systems chunk unavailable - skipping advanced initialization")}catch(r){this._logger.error&&this._logger.error("Failed to initialize advanced systems",r)}}async checkWorkspaceSize(){try{let r=await ge().decorationsAdvanced();if(r&&typeof r.performWorkspaceSizeCheck=="function")return r.performWorkspaceSizeCheck(this)}catch(t){this._logger.debug&&this._logger.debug("Delegated checkWorkspaceSize failed",t)}try{let t=require("vscode"),r=await(t.workspace.findFiles?t.workspace.findFiles("**/*",null,100):[]),n=Array.isArray(r)?r.length:0;this.Ge=n;let{WORKSPACE_SCALE_LARGE_THRESHOLD:i,WORKSPACE_SCALE_EXTREME_THRESHOLD:a}=I();this.u=n>=a?"extreme":n>=i?"large":"normal";try{this.Xe(this.Ye(),"workspace-scale-change-fallback")}catch{}return}catch(t){this._logger.debug&&this._logger.debug("performWorkspaceSizeCheck fallback failed",t)}}async provideFileDecoration(t,r){try{await this.Ot&&this.Ot()}catch{}ji();try{if(this.U&&typeof this.U.provideDecoration=="function")try{let n=await this.U.provideDecoration(t,r);return n==null?n:typeof n!="object"?void 0:"badge"in n||"tooltip"in n||"color"in n?n:void 0}catch(n){this._logger?.debug&&this._logger.debug("Decoration helper threw",n);return}}catch(n){this._logger?.debug("Decoration provider helper failed",n)}try{if(this.Oe||(this.Oe=Promise.resolve().then(()=>Ce()).then(n=>{this.U=n.createDecorationProviderHelpers?n.createDecorationProviderHelpers(this):n}).finally(()=>{this.Oe=null})),this.Oe&&await this.Oe,this.U&&typeof this.U.provideDecoration=="function")try{let n=await this.U.provideDecoration(t,r);return n==null?n:typeof n!="object"?void 0:"badge"in n||"tooltip"in n||"color"in n?n:void 0}catch(n){this._logger?.debug&&this._logger.debug("Decoration helper threw",n);return}}catch(n){this._logger?.debug("Failed to load decoration provider chunk",n)}}je(t,r=""){try{if(!t)return{isValid:!1};let n=String(t.fsPath||t.path||"");return n?n.indexOf("\0")!==-1?{isValid:!1}:{isValid:!0}:{isValid:!1}}catch{return{isValid:!1}}}async tr(t){try{let r=String(t.fsPath||t.path||"");if(!r)return!1;let n=r.replace(/\\/g,"/");return["node_modules","/.git/","/dist/"].some(a=>n.includes(a))}catch{return!1}}async rr(t,r){try{return await r()}catch(n){throw n}}Ve(t){try{return String(t.fsPath||t.path||"").replace(/\\/g,"/")}catch{return String(t||"")}}Ot(){try{let t=require("vscode").workspace.getConfiguration("explorerDates"),r=t.get("security.allowTestPaths",!0),n=Array.isArray(t.get("security.allowedExtraPaths",[]))?t.get("security.allowedExtraPaths",[]):[],i=t.get("security.enableBoundaryEnforcement"),a=t.get("security.enforceWorkspaceBoundaries");this.zr=r!==!1;let o=(()=>{try{return require("path")}catch{return null}})(),s=(n||[]).filter(Boolean).map(c=>{try{return o?o.normalize(String(c)):String(c)}catch{return String(c)}});this.qr=s,typeof i=="boolean"?this.Lt=i:typeof a=="boolean"&&(this.Lt=a)}catch(t){this._logger?.debug&&this._logger.debug("Failed to ensure security configuration",t)}}async nr(t,r){try{if(this.G)return this._logger?.debug?.(`Cache bypass enabled - recalculating decoration for: ${r}`),null;if(this._advancedCache)try{let i=await this._advancedCache.get(t);if(i)return this._metrics.cacheHits++,this._logger?.debug?.(`Advanced cache hit for: ${r}`),i}catch(i){this._logger?.debug?.(`Advanced cache error: ${i.message}`)}if(!this.e||typeof this.e.get!="function")return null;let n=this.e.get(t);if(n){if(n.forceRefresh){try{this.e.delete(t)}catch{}this._logger?.debug?.(`Memory cache bypassed (forced refresh) for: ${r}`)}else if(Date.now()-n.timestamp{switch(o){case"enhanced":return{level:o,enableGit:!0,enableProgressiveAnalysis:!0,applyBackgroundLimits:!1,backgroundTooltipMode:"rich",viewportWindowMs:6e4,enableColors:!0};case"standard":return{level:o,enableGit:!0,enableProgressiveAnalysis:!1,applyBackgroundLimits:!0,backgroundTooltipMode:"summary",viewportWindowMs:48e4,enableColors:!0};case"minimal":return{level:o,enableGit:!1,enableProgressiveAnalysis:!1,applyBackgroundLimits:!0,backgroundTooltipMode:"summary",viewportWindowMs:12e4,enableColors:!1};default:return{level:"full",enableGit:!0,enableProgressiveAnalysis:!1,applyBackgroundLimits:!1,backgroundTooltipMode:"rich",viewportWindowMs:Yi,enableColors:!0}}},a=n?i(t):this.P||i(t);if(this.P=a,this.O=a.viewportWindowMs,n&&this._logger?.info?.(`Feature level set to "${t}" (${r})`,{viewportWindowMs:this.O,applyBackgroundLimits:a.applyBackgroundLimits,backgroundTooltipMode:a.backgroundTooltipMode}),this._performanceMode)return this._logger?.info&&this._logger.info("Performance mode active - skipping feature profile application"),n;try{a.applyBackgroundLimits&&typeof this.$r=="function"&&this.$r(r)}catch{}return n}catch(n){return this._logger?.debug&&this._logger.debug("Failed to apply feature level",n),!1}}mt(t){try{let r=Re(ae(t)||"");return this.k.has(r)||this.y.has(r)}catch{return!1}}Y(t,{reason:r="unknown",visible:n=!1}={}){try{let i=Re(ae(t)||""),a=Date.now();if(n)this.k.add(i);else for(this.y.set(i,a);this.y.size>(Number(this.me)||400);){let o=this.y.keys().next().value;if(!o)break;this.y.delete(o)}n?this._metrics.viewportPriorityDecorations=(this._metrics.viewportPriorityDecorations||0)+1:this._metrics.viewportBackgroundDecorations=(this._metrics.viewportBackgroundDecorations||0)+1}catch{}}or(){return!1}sr(t){return!!(t&&(t.code==="ENOENT"||/not found/i.test(t.message||"")))}async Z(){try{return this.ae?this.ae:this.oe?await this.oe:(this.oe=(async()=>{try{let{getFeatureFlagsGlobal:t}=G(),r=t(),n=r?await r.decorationsAdvanced():null;return this.ae=n||null,this.ae}catch(t){return this._logger?.debug&&this._logger.debug("Failed to load decorationsAdvanced chunk",t),this.ae=null,null}finally{this.oe=null}})(),await this.oe)}catch(t){try{this._logger?.debug&&this._logger.debug("provider._getDecorationsAdvancedChunk failed",t)}catch{}return null}}Qt(t,r,n){try{let i=Math.floor((Date.now()-t.getTime())/864e5);return i<=0?"\u2022":i<10?String(i):"\u2022"}catch{return"\u2022"}}gt(t,r="auto"){try{return zi(t,r)}catch{return`${t} bytes`}}lr(t,r,n){try{if(!r||r==="none")return;let i=(()=>{if(!this._isWeb)return!1;try{return!!f.workspace.getConfiguration("explorerDates").get("webDiagnosticsBuiltinColors",!1)}catch{return!1}})(),a=Date.now()-(t instanceof Date?t.getTime():new Date(t).getTime());if(i){let s=new f.ThemeColor("list.warningForeground"),c=new f.ThemeColor("list.deemphasizedForeground"),u=new f.ThemeColor("list.errorForeground");return Lr()&&Ae("web-builtin-color-fallback","info","Web builtin color fallback enabled"),r==="file-type"?s:r==="subtle"?c:a<36e5?s:a<864e5?c:u}if(r==="custom")return a<36e5?new f.ThemeColor("explorerDates.customColor.veryRecent"):a<864e5?new f.ThemeColor("explorerDates.customColor.recent"):new f.ThemeColor("explorerDates.customColor.old");if(r==="recency")return a<36e5?new f.ThemeColor("list.highlightForeground"):a<864e5?new f.ThemeColor("charts.yellow"):new f.ThemeColor("charts.red");let o=Ji();if(r==="file-type"||r==="adaptive"){let s=Qi(n,o);if(s)return s;if(r==="adaptive"&&o)return a<36e5?o.veryRecent:a<864e5?o.recent:o.old}return r==="subtle"&&o?a<36e5?o.subtle:a<6048e5?o.muted:o.emphasis:r==="vibrant"&&o?a<36e5?o.veryRecent:a<864e5?o.recent:o.old:void 0}catch{return}}Br(t){try{let r=t?.scheme||"file";return this._isWeb||r!=="file"}catch{return this._isWeb}}Kr(t){try{if(t?.toString)return t.toString(!0)}catch{}try{let r=t?.scheme||"file",n=t?.path||t?.fsPath||"";return`${r}://${n}`}catch{return String(t||"")}}jr(t,r){try{return`${Or(t,{platform:process.platform})}::${r||"auto"}`}catch{return String(t||"unknown")}}Vr(t){try{let r=this.b.get(t);return r?r.expiresAt&&r.expiresAt=this.Ir){let i=this.b.keys().next().value;i&&this.b.delete(i)}let n=this.b.get(t);if(n&&n.freshness&&Xi(n.freshness,r)>0)return;this.b.set(t,{freshness:r,expiresAt:Date.now()+this.Mr})}catch{}}Xr(t,r,n="auto"){try{let i=String(n||"auto").toLowerCase(),a=t||"unknown",o=`${i}:${a}`;if(this.It.has(o))return;this.It.add(o);let s=i==="git"||i==="github"?"warn":"debug";this._logger?.[s]?.("Freshness source unavailable, falling back to unknown",{reason:a,policy:i,uri:r?ae(r):null})}catch{}}ht(t=""){try{let r=String(t||"");r=r.replace(/\\/g,"/"),r=r.replace(/\/{2,}/g,"/"),r=r.replace(/^\/+/,"");try{r=decodeURIComponent(r)}catch{}return r}catch{return""}}Ne(t,r){try{if(this.z.size>=this.xr){let n=this.z.keys().next().value;n&&this.z.delete(n)}this.z.set(t,r)}catch{}}async He(t){let r=this.Kr(t),n=Date.now(),i=this.z.get(r);if(i&&i.expiresAt&&i.expiresAt>n)return i;let a={timestampMs:null,available:!1,error:null,expiresAt:n+this.We,repoMatched:null,pathAttempted:null};try{let o=f?.extensions?.getExtension?f.extensions.getExtension("vscode.git"):null;if(!o)return this._isWeb&&Ae("git-extension-unavailable-web","info","Git extension not available in web mode - timestamps will use fs.stat fallback"),a.error="git-extension-missing",this.Ne(r,a),a;if(!o.isActive&&typeof o.activate=="function")try{await o.activate()}catch{}let s=o.exports?.getAPI?.(1);if(!s)return a.error="git-api-unavailable",this.Ne(r,a),a;a.available=!0;let c=typeof s.getRepository=="function"?s.getRepository(t):null,u=t?.path||t?.fsPath||"",l=this.ht(u);if(!c&&Array.isArray(s.repositories)&&(c=s.repositories.find(E=>{let M=E?.rootUri?.path||E?.rootUri?.fsPath||"",F=this.ht(M);return F&&l&&l.startsWith(F)})||null),!c||typeof c.log!="function")return a.error="git-repo-unavailable",a.repoMatched=!1,a.expiresAt=n+Math.min(this.We,5e3),this.Ne(r,a),a;a.repoMatched=!0;let d=this.ht(c?.rootUri?.path||c?.rootUri?.fsPath||""),h=d&&l.startsWith(d)?l.slice(d.length).replace(/^\/+/,""):l;a.pathAttempted=h||l||"";let g=await c.log({maxEntries:1,path:a.pathAttempted}),y=Array.isArray(g)?g[0]:null,m=y?.commitDate||y?.authorDate||y?.date||y?.committerDate,D=m?new Date(m).getTime():null;a.author=y?.authorName||y?.author?.name||y?.author||null,a.message=y?.message||y?.subject||null,Number.isFinite(D)?a.timestampMs=D:(a.error="git-log-empty",a.expiresAt=n+Math.min(this.We,5e3))}catch(o){a.error=o?.message?`git-error:${o.message}`:"git-error",a.expiresAt=n+Math.min(this.We,5e3)}return this.Ne(r,a),a}async Wn(t,r){let n=r?.mtime?r.mtime instanceof Date?r.mtime:new Date(r.mtime):null,i=n&&typeof n.getTime=="function"?n.getTime():NaN,a=Number.isFinite(i)?n:null,o=t?.scheme||"file";if(!this.Br(t))return{timestamp:a,source:a?"fs-stat":"none",gitAvailable:!1,gitError:null,repoMatched:null,pathAttempted:null};let s;try{s=await this.He(t)}catch(u){s={timestampMs:null,available:!1,error:u?.message?`git-error:${u.message}`:"git-error",repoMatched:null,pathAttempted:null}}if(s?.timestampMs)return{timestamp:new Date(s.timestampMs),source:"git",gitAvailable:s.available,gitError:s.error,repoMatched:s.repoMatched,pathAttempted:s.pathAttempted};let c=a?"fs-stat":"none";if(a&&o!=="file"){let u=Date.now()-a.getTime();u>=0&&u<=6e4?c="fs-stat-suspect":this._isWeb&&u>6e4&&Ae("web-fs-stat-limitation","info","Web mode timestamps may reflect workspace open time, not actual file modification time. Git extension would provide accurate timestamps if available.")}return this._isWeb&&o!=="file"&&(s?.error||!s?.available)?{timestamp:null,source:"web-unknown",gitAvailable:!1,gitError:s?.error||null,repoMatched:s?.repoMatched??null,pathAttempted:s?.pathAttempted||null}:{timestamp:a,source:c,gitAvailable:s?.available||!1,gitError:s?.error||null,repoMatched:s?.repoMatched??null,pathAttempted:s?.pathAttempted||null}}async pt(t,r,n={}){let i=f.workspace.getConfiguration("explorerDates"),a=n.workspaceKind||(this._isWeb?"web":"desktop"),o=i.get("freshnessSourcePolicy","auto"),s=this.jr(t,o),c=this.Vr(s);if(c)return c;let u=await Gi({uri:t,stat:r,provider:this,config:i,workspaceKind:a});return this.Gr(s,u),u?.source==="unknown"&&this.Xr(u?.reason||"unknown",t,o),u}async Te(t={}){try{let r=t.stat?.mtime||t.stat?.birthtime||new Date;return`Modified: ${(r instanceof Date?r:new Date(r)).toISOString()}`}catch{return""}}clearAllCaches(){try{try{this.e&&typeof this.e.clear=="function"&&this.e.clear()}catch{}try{this.c&&typeof this.c.clear=="function"&&this.c.clear()}catch{}try{this.$&&(this.$.length=0)}catch{}try{this.I&&typeof this.I.clear=="function"&&this.I.clear()}catch{}try{this.Se&&(this.Se.length=0)}catch{}try{this.N&&typeof this.N.clear=="function"&&this.N.clear()}catch{}try{this.Ie&&(this.Ie.length=0)}catch{}try{this._advancedCache&&typeof this._advancedCache.clear=="function"&&this._advancedCache.clear()}catch{}try{this.z&&typeof this.z.clear=="function"&&this.z.clear()}catch{}try{this.b&&typeof this.b.clear=="function"&&this.b.clear()}catch{}}catch(t){this._logger?.debug&&this._logger.debug("clearAllCaches failed",t)}}Me(t){try{if(!this.b||this.b.size===0)return;let r=`${Or(t,{platform:process.platform})}::`;for(let n of this.b.keys())typeof n=="string"&&n.startsWith(r)&&this.b.delete(n)}catch{}}Yr(t={}){try{this.clearAllCaches()}catch{}try{this.refreshAll()}catch{}try{t?.head&&this._logger?.info&&this._logger.info("Git HEAD change detected; caches refreshed",{head:t.head})}catch{}}Hr(){this.Wt||(this.Wt=!0,(async()=>{try{let t=f?.extensions?.getExtension?f.extensions.getExtension("vscode.git"):null;if(!t)return;if(!t.isActive&&typeof t.activate=="function")try{await t.activate()}catch{}let r=t.exports?.getAPI?.(1);if(!r)return;let n=i=>{try{if(!i||!i.state||typeof i.state.onDidChange!="function")return;let a=i.state.HEAD?.commit||i.state.HEAD?.name||null,o=i.state.onDidChange(()=>{let s=i.state.HEAD?.commit||i.state.HEAD?.name||null;s!==a&&(a=s,this.Yr({repo:i,head:s}))});o&&this.Ee.push(o)}catch{}};if(Array.isArray(r.repositories)&&r.repositories.forEach(i=>n(i)),typeof r.onDidOpenRepository=="function"){let i=r.onDidOpenRepository(a=>n(a));i&&this.Ee.push(i)}}catch(t){this._logger?.debug?.("Failed to register git HEAD watcher",t)}})())}refreshAll(){try{this.m.fire(void 0),Vi()}catch(t){this._logger?.debug&&this._logger.debug("refreshAll failed",t)}}applyPreviewSettings(t){try{t&&typeof t=="object"?(this.X=t,this._logger?.info&&this._logger.info("Preview settings applied",t)):(this.X=null,this._logger?.info&&this._logger.info("Preview settings cleared"));try{this.clearAllCaches()}catch{}this.refreshAll()}catch(r){this._logger?.debug&&this._logger.debug("applyPreviewSettings failed",r)}}refreshDecoration(t){try{try{this.Me(t)}catch{}this.m.fire(t)}catch(r){this._logger?.debug&&this._logger.debug("refreshDecoration failed",r)}}clearDecoration(t){try{try{this.Me(t)}catch{}let r=t?typeof t=="string"?t:ae(t):"",n=this.Ve?this.Ve(t):ra(r);try{this.e&&typeof this.e.delete=="function"&&this.e.delete(n)}catch{}try{this._advancedCache&&typeof this._advancedCache.delete=="function"&&this._advancedCache.delete(n)}catch{}try{this.m.fire(t)}catch{}}catch(r){this._logger?.debug&&this._logger.debug("clearDecoration failed",r)}}cr({badge:t,tooltip:r,color:n}){try{let i=require("vscode"),a=new i.FileDecoration(String(t||""),r||void 0,n||void 0);try{n&&(a.color=n)}catch{}return a}catch{return{badge:t,tooltip:r,color:n}}}ur(t,r,n,i,a){try{if(this.G)return;if(!this.e||typeof this.e.set!="function"||typeof this.e.size!="number")try{this.e=new Pe}catch{}if(!this.e||typeof this.e.set!="function")return;if(typeof this.e.size=="number"&&this.e.size>this.l)try{this.e.enforceLimit(this.l)}catch{}let o={decoration:r,timestamp:Date.now()};a&&(o.freshness=a),i&&(o.uri=i);try{this.e.set(t,o)}catch{}try{typeof this.ce=="function"&&this.ce()}catch(s){this._logger?.debug?.("monitorCachePressure from store failed",s)}if(this._advancedCache)try{this._advancedCache.set(t,r,{ttl:this.S}),this._logger?.debug?.(`Stored in advanced cache: ${n}`)}catch(s){this._logger?.debug?.(`Failed to store in advanced cache: ${s.message}`)}try{typeof this.le=="function"&&this.le()}catch(s){this._logger?.debug?.("maybeExtendCacheTimeout from store failed",s)}}catch(o){this._logger?.debug?.("storeDecorationInCache failed",o)}}getMetrics(){let t={decorationPool:{allocations:0,reuses:0,reusePercent:"0%"},badgeFlyweight:{allocations:0,reuses:0,reusePercent:"0%"},readableFlyweight:{allocations:0,reuses:0,reusePercent:"0%"}},r=this._metrics?.cacheHits||0,n=this._metrics?.cacheMisses||0,i=r+n>0?(r/(r+n)*100).toFixed(2)+"%":"0.00%";return{totalDecorations:this._metrics?.totalDecorations||0,cacheSize:this.c&&this.c.size||0,cacheHits:r,cacheMisses:n,cacheHitRate:i,workspaceScale:this.u||"unknown",allocationTelemetry:t,performanceTiming:{avgGitBlameMs:this._metrics?.gitBlameCalls?(this._metrics.gitBlameTimeMs/this._metrics.gitBlameCalls).toFixed(1):"0.0",avgFileStatMs:this._metrics?.fileStatCalls?(this._metrics.fileStatTimeMs/this._metrics.fileStatCalls).toFixed(1):"0.0",gitBlameCalls:this._metrics?.gitBlameCalls||0,fileStatCalls:this._metrics?.fileStatCalls||0},cacheDebugging:{cacheNamespace:this.Nr}}}forceRefreshAllDecorations(){try{this._logger?.info&&this._logger.info("\u{1F504} Force refreshing ALL decorations...");try{this.e&&typeof this.e.clear=="function"&&this.e.clear()}catch{}try{this.c&&typeof this.c.clear=="function"&&this.c.clear()}catch{}try{this._advancedCache&&typeof this._advancedCache.clear=="function"&&this._advancedCache.clear()}catch{}try{this.m.fire(void 0)}catch{}this._logger?.info&&this._logger.info("\u{1F504} Triggered global decoration refresh")}catch(t){this._logger?.debug&&this._logger.debug("forceRefreshAllDecorations failed",t)}}startProviderCallMonitoring(){try{if(this.D){this._logger?.debug&&this._logger.debug("startProviderCallMonitoring called after dispose - no-op");return}if(this.Nt){this.Vt=0,this.Re=new Set,this._logger?.info&&this._logger.info("\u{1F4CA} Provider call monitoring restarted (counters reset)");return}this.Nt=!0,this.Vt=0,this.Re=new Set;let t=this.provideFileDecoration.bind(this);this.qe=t,this.provideFileDecoration=async(r,n)=>{try{this.Vt=(this.Vt||0)+1;let i=ae(r)||(r&&typeof r.toString=="function"?r.toString(!0):"unknown");this.Re.add(Re(i)),this._logger?.info&&this._logger.info(`\u{1F50D} Provider called ${this.Vt} times for: ${na(r||i)}`)}catch{}return t(r,n)},this._logger?.info&&this._logger.info("\u{1F4CA} Started provider call monitoring")}catch(t){this._logger?.debug&&this._logger.debug("startProviderCallMonitoring failed",t)}}getProviderCallStats(){try{return{totalCalls:this.Vt||0,uniqueFiles:this.Re?this.Re.size:0,calledFiles:this.Re?Array.from(this.Re):[]}}catch{return{totalCalls:0,uniqueFiles:0,calledFiles:[]}}}async dispose(){if(this.D)return;this.D=!0,this.Be=!0;try{this._telemetryReportTimer&&(clearTimeout(this._telemetryReportTimer),this._telemetryReportTimer=null)}catch{}try{this.a&&(clearInterval(this.a),this.a=null)}catch{}try{if(this.i&&this.i.size){for(let r of this.i)clearTimeout(r);this.i.clear()}this.R=!1,this.ie=!1}catch{}try{this.L&&(clearTimeout(this.L),this.L=null)}catch{}try{this.C&&(clearTimeout(this.C),this.C=null)}catch{}try{try{this.ot({permanent:!0})}catch{}if(this.f&&typeof this.f.disposeFileWatchers=="function")try{this.f.disposeFileWatchers({permanent:!0})}catch{}this.f=null}catch{}try{this.te&&(clearTimeout(this.te),this.te=null)}catch{}try{this.m&&typeof this.m.dispose=="function"&&this.m.dispose()}catch{}try{if(Array.isArray(this.T)){for(let r of this.T)try{r.dispose&&r.dispose()}catch{}this.T.length=0}}catch{}try{if(Array.isArray(this.Ee)){for(let r of this.Ee)try{r.dispose&&r.dispose()}catch{}this.Ee.length=0}}catch{}try{if(Array.isArray(this.v)){for(let r of this.v)try{r.dispose&&r.dispose()}catch{}this.v.length=0}}catch{}let t=async r=>{try{r&&typeof r.dispose=="function"&&await r.dispose()}catch{}};await t(this._advancedCache),await t(this._batchProcessor),await t(this.rt),await t(this.pe),await t(this._workspaceIntelligence),await t(this._smartWatcherFallbackManager),await t(this.Lr),await t(this.Or);try{if(this.s&&typeof this.s.forEach=="function"&&(this.s.forEach(r=>{try{r&&typeof r.dispose=="function"&&r.dispose()}catch{}}),this.s.clear()),this.h&&typeof this.h.dispose=="function"){try{this.h.dispose()}catch{}this.h=void 0}this.d&&typeof this.d.forEach=="function"&&(this.d.forEach(r=>{try{r?.watcher?.dispose&&r.watcher.dispose()}catch{}}),this.d.clear())}catch{}try{this.e&&typeof this.e.clear=="function"&&this.e.clear()}catch{}try{this.c&&typeof this.c.clear=="function"&&this.c.clear()}catch{}try{this.I&&typeof this.I.clear=="function"&&this.I.clear()}catch{}try{this.N&&typeof this.N.clear=="function"&&this.N.clear()}catch{}try{this.lt&&this.lt.clear&&this.lt.clear()}catch{}try{this.ve&&this.ve.length&&(this.ve.length=0)}catch{}try{this._advancedCache=null,this._batchProcessor=null,this.rt=null,this.pe=null,this._workspaceIntelligence=null}catch{}try{this.Le&&typeof this.Le.dispose=="function"&&(this.Le.dispose(),this.Le=null)}catch{}try{this.w&&typeof this.w.dispose=="function"&&(this.w.dispose(),this.w=null)}catch{}try{if(this.qe&&typeof this.qe=="function"){try{this.provideFileDecoration=this.qe}catch{}this.qe=null,this.Nt=!1,this.Vt=0,this.Re=new Set}}catch{}try{this.ae=null,this.oe=null}catch{}this._logger?.info&&this._logger.info("FileDateDecorationProvider disposed")}};module.exports={FileDateDecorationProviderImpl:xe,FileDateDecorationProvider:xe}; diff --git a/dist/chunks/fileDateProviderImpl.js.map b/dist/chunks/fileDateProviderImpl.js.map index 73a3e2e..47eb48c 100644 --- a/dist/chunks/fileDateProviderImpl.js.map +++ b/dist/chunks/fileDateProviderImpl.js.map @@ -1,6 +1,6 @@ { "version": 3, "sources": ["../../src/utils/env.js", "../../src/utils/pathUtils.js", "../../src/utils/errors.js", "../../src/filesystem/environmentContract.js", "../../src/chunks/utils-shared-chunk.js", "../../src/utils/dateHelpers.js", "../../src/filesystem/FileSystemAdapter.js", "../../src/constants.js", "../../src/utils/formatters.js", "../../src/utils/logger.js", "../../src/utils/settingsCoordinator.js", "../../src/utils/securityUtils.js", "../../src/utils/webDiagnostics.js", "../../src/utils/freshnessResolver.js", "../../src/utils/hierarchicalDecorationCache.js", "../../src/chunks/decoration-cache-chunk.js", "../../src/locales/en.json", "../../src/locales/es.json", "../../src/locales/fr.json", "../../src/locales/de.json", "../../src/locales/ja.json", "../../src/locales/zh.json", "../../src/locales/index.js", "../../src/chunks/localization-core.js", "../../src/chunks/decoration-logic-chunk.js", "../../src/chunks/decoration-provide-chunk.js", "../../src/chunks/decoration-telemetry-chunk.js", "../../src/presetDefinitions.js", "../../src/shared/chunkMap.js", "../../src/utils/featureFlagsBridge.js", "../../src/featureFlags.js", "../../src/fileDateDecorationProvider.js", "../../src/chunks/provider-init-chunk.js", "../../src/utils/workspaceDetection.js", "../../src/chunks/decoration-provider-impl-chunk.js", "../../src/chunks/watcher-manager-chunk.js", "../../src/chunks/viewport-manager-chunk.js", "../../src/chunks/decorations-static.js", "../../src/chunks/decorations-advanced.js", "../../src/chunks/decoration-refresh-chunk.js", "../../src/chunks/file-date-provider-impl.js"], - "mappings": "u7BAAA,+CAAAA,SAAAC,QAAA,KAAMC,QAAS,QAAQ,QAAQ,EAE/B,SAASC,mBAAmB,CACxB,GAAI,CACA,IAAM,OAASD,SAAQ,KAAK,OACtB,QAAUA,SAAQ,QAAQ,IAChC,OAAO,SAAW,QAAa,UAAY,QAAa,SAAW,OACvE,MAAQ,CACJ,MAAO,EACX,CACJ,CARS,OAAAC,kBAAA,oBAUTF,QAAO,QAAU,CACb,iBAAAE,iBACJ,KCdA,2EACA,IAAI,MAAQ,KACZ,GAAI,CACA,IAAM,eAAiB,OAAO,MAAS,WAAa,KAAK,SAAS,EAAI,KACtE,GAAI,OAAO,gBAAmB,WAAY,CACtC,GAAI,CAAE,MAAQ,eAAe,8BAA8B,CAAG,MAAQ,CAAe,CACrF,GAAI,CAAO,QAAO,MAAQ,eAAe,6BAA6B,EAAG,MAAQ,CAAe,CAEhG,GAAI,CAAO,QAAO,MAAQ,eAAe,4BAA4B,EAAG,MAAQ,CAAe,CAC/F,GAAI,CAAO,QAAO,MAAQ,eAAe,2BAA2B,EAAG,MAAQ,CAAe,CAClG,CACJ,MAAQ,CAAe,CAEvB,GAAI,OAAS,MAAM,cACf,OAAO,QAAU,CACb,cAAe,MAAM,cACrB,YAAa,MA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yB,IAAM,MAAY,CAAC,CAG/K,GAAI,CAAM,KAAK,0BAA4B,OAAO,KAAK,yBAAyB,SAAY,aAAc,KAAK,yBAAyB,QAAQ,EAAG,KAAK,yBAA2B,KAAQ,MAAY,CAAC,CACxM,GAAI,CAAM,KAAK,uBAAyB,OAAO,KAAK,sBAAsB,SAAY,aAAc,KAAK,sBAAsB,QAAQ,EAAG,KAAK,sBAAwB,KAAQ,MAAY,CAAC,CAG5L,GAAI,CACA,GAAI,KAAK,6BAA+B,OAAO,KAAK,6BAAgC,WAAY,CAC5F,GAAI,CAAE,KAAK,sBAAwB,KAAK,2BAA6B,MAAY,CAAe,CAChG,KAAK,4BAA8B,KACnC,KAAK,2BAA6B,GAClC,KAAK,GAAK,EACV,KAAK,GAAK,IAAI,GAClB,CACJ,MAAY,CAAe,CAG3B,GAAI,CAAE,KAAK,0BAA4B,KAAM,KAAK,iCAAmC,IAAM,MAAY,CAAe,CAEtH,KAAK,SAAS,MAAQ,KAAK,QAAQ,KAAK,qCAAqC,CACjF,CACJ,EAIA,OAAO,QAAU,CAAE,+BAAgCY,gCAAgC,2BAA4BA,+BAA+B", "names": ["exports", "module", "vscode", "isWebEnvironment", "normalizePath", "input", "getSegments", "getFileName", "getExtension", "getDirectory", "joinPath", "getCacheKey", "getUriPath", "target", "getRelativePath", "exports", "module", "context", "reason", "options", "vscode", "exports", "module", "env", "target", "resourceIdentity", "options", "exports", "module", "getCurrentTimestamp", "isDateLike", "ensureDate", "normalizePath", "input", "getSegments", "getFileName", "getExtension", "getDirectory", "joinPath", "getCacheKey", "getUriPath", "target", "getRelativePath", "getCurrentTimestamp", "isDateLike", "ensureDate", "exports", "module", "vscode", "isWebEnvironment", "normalizePath", "ensureDate", "env", "isWebBuild", "target", "options", "fileSystem", "exports", "module", "env", "DEFAULT_CACHE_TIMEOUT", "DEFAULT_MAX_CACHE_SIZE", "DEFAULT_DECORATION_POOL_SIZE", "DEFAULT_FLYWEIGHT_CACHE_SIZE", "WORKSPACE_SCALE_EXTREME_THRESHOLD", "GLOBAL_STATE_KEYS", "exports", "module", "formatFileSize", "badge", "exports", "module", "args", "getLogger", "options", "key", "p", "target", "chunk", "exports", "module", "normalizePath", "getUriPath", "getLogger", "env", "detectSecurityEnvironment", "SecurityValidator", "input", "options", "SecureFileOperations", "exports", "module", "env", "isWebRuntime", "vscode", "isWebDiagnosticsEnabled", "diagLog", "diagLogOnce", "key", "recordProviderEvent", "recordDecorationCall", "recordRefreshCall", "exports", "module", "vscode", "normalizePath", "getRelativePath", "diagLogOnce", "resourceIdentity", "key", "formatBadge", "formatTooltip", "reason", "provider", "cacheKey", "resolveFreshness", "compareFreshness", "exports", "module", "normalizePath", "cacheKey", "options", "maxSize", "key", "input", "exports", "module", "getCachedDecoration", "provider", "cacheKey", "fileLabel", "memoryEntry", "storeDecorationInCache", "decoration", "resourceUri", "cacheEntry", "createLazyHierarchicalDecorationCache", "LazyHierarchicalDecorationCache", "options", "maxSize", "exports", "module", "exports", "module", "exports", "module", "exports", "module", "exports", "module", "exports", "module", "exports", "module", "exports", "module", "vscode", "key", "args", "options", "exports", "module", "provider", "vscode", "cache", "order", "limit", "key", "factory", "statsTracker", "badge", "color", "tooltip", "decoration", "reason", "input", "fileLabel", "badge", "tooltip", "decoration", "key", "cacheKey", "color", "exports", "module", "scheduleTelemetryReport", "provider", "reportAllocationTelemetry", "chunk", "exports", "module", "getChunkSourcePath", "getAllChunkNames", "chunk", "factory", "module", "target", "args", "chunk", "input", "key", "isWebEnvironment", "provider", "args", "FileDateDecorationProvider", "exports", "module", "vscode", "getLogger", "WORKSPACE_SCALE_EXTREME_THRESHOLD", "key", "input", "provider", "maxResults", "options", "input", "provider", "reason", "target", "getFeatureFlagsGlobal", "chunk", "shouldUseFallbackWatcher", "key", "options", "input", "options", "key", "target", "input", "key", "p", "chunk", "provider", "args", "context", "reason", "vscode", "options", "getFeatureFlagsGlobal", "target", "maxSize", "exports", "module", "setupPeriodicRefresh", "provider", "vscode", "scheduleIncrementalRefresh", "cancelIncrementalRefreshTimers", "reason", "cacheKey", "chunk", "markCacheEntryForRefresh", "vscode", "fileSystem", "formatFileSize", "getSettingsCoordinator", "SecurityValidator", "SecureFileOperations", "detectSecurityEnvironment", "DEFAULT_CACHE_TIMEOUT", "DEFAULT_MAX_CACHE_SIZE", "GLOBAL_STATE_KEYS", "DEFAULT_DECORATION_POOL_SIZE", "DEFAULT_FLYWEIGHT_CACHE_SIZE", "WORKSPACE_SCALE_EXTREME_THRESHOLD", "isWebEnvironment", "isWebDiagnosticsEnabled", "diagLogOnce", "env", "VIEWPORT_DEFAULT_WINDOW_MS", "DEFAULT_VIEWPORT_HISTORY_LIMIT", "DEFAULT_SECURITY_MAX_WARNINGS", "FEATURE_LEVELS", "SMART_WATCHER_PRIORITY", "getExtension", "getFileName", "p", "buildCacheKey", "normalizePath", "input", "getUriPath", "target", "describeFile", "LazyHierarchicalDecorationCache", "chunk", "key", "options", "maxSize", "FileDateDecorationProviderImpl", "cfg", "reason", "context", "cacheKey", "fileLabel", "memoryEntry", "getFeatureFlagsGlobal", "rootPath", "badge", "tooltip", "color", "decoration", "cacheEntry"] } diff --git a/dist/chunks/fileDateProviderImplExport.js b/dist/chunks/fileDateProviderImplExport.js index d024a03..4ae9806 100644 --- a/dist/chunks/fileDateProviderImplExport.js +++ b/dist/chunks/fileDateProviderImplExport.js @@ -1,4 +1,4 @@ -var Yr=Object.create;var yt=Object.defineProperty;var Zr=Object.getOwnPropertyDescriptor;var Jr=Object.getOwnPropertyNames;var Qr=Object.getPrototypeOf,en=Object.prototype.hasOwnProperty;var _=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var tn=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Jr(t))!en.call(e,i)&&i!==r&&yt(e,i,{get:()=>t[i],enumerable:!(n=Zr(t,i))||n.enumerable});return e};var R=(e,t,r)=>(r=e!=null?Yr(Qr(e)):{},tn(t||!e||!e.__esModule?yt(r,"default",{value:e,enumerable:!0}):r,e));var J=_((ga,_t)=>{var bt=require("vscode");function rn(){try{let e=bt?.env?.uiKind,t=bt?.UIKind?.Web;return e!==void 0&&t!==void 0&&e===t}catch{return!1}}_t.exports={isWebEnvironment:rn}});var ce=_((exports,module)=>{var chunk=null;try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){try{chunk=dynamicRequire("../chunks/utils-shared-chunk")}catch{}try{chunk||(chunk=dynamicRequire("./chunks/utils-shared-chunk"))}catch{}try{chunk||(chunk=dynamicRequire("../chunks/path-utils-chunk"))}catch{}try{chunk||(chunk=dynamicRequire("./chunks/path-utils-chunk"))}catch{}}}catch{}if(chunk&&chunk.normalizePath)module.exports={normalizePath:chunk.normalizePath,getFileName:chunk.getFileName,getExtension:chunk.getExtension,getDirectory:chunk.getDirectory,joinPath:chunk.joinPath,getCacheKey:chunk.getCacheKey,getUriPath:chunk.getUriPath,getRelativePath:chunk.getRelativePath};else{let e=function(u=""){return u?u.replace(/\\/g,"/"):""},t=function(u=""){let l=e(u);return l?l.split("/").filter(Boolean):[]},r=function(u=""){let l=t(u);return l.length?l[l.length-1]:""},n=function(u=""){let l=r(u),d=l.lastIndexOf(".");return d<=0?"":l.substring(d).toLowerCase()},i=function(u=""){let l=e(u),d=l.lastIndexOf("/");return d===-1?"":l.substring(0,d)},a=function(...u){return e(u.filter(Boolean).join("/")).replace(/\/+/g,"/")},o=function(u=""){return e(u).toLowerCase()},s=function(u=""){if(!u)return"";if(typeof u=="string")return u;if(typeof u.fsPath=="string"&&u.fsPath.length>0)return u.fsPath;if(typeof u.path=="string"&&u.path.length>0)return u.path;if(typeof u.toString=="function")try{return u.toString(!0)}catch{return u.toString()}return String(u)},c=function(u="",l=""){let d=e(u),h=e(l);return d&&h.startsWith(d)?h.substring(d.length).replace(/^\/+/,""):h};normalizePath=e,getSegments=t,getFileName=r,getExtension=n,getDirectory=i,joinPath=a,getCacheKey=o,getUriPath=s,getRelativePath=c,module.exports={normalizePath:e,getFileName:r,getExtension:n,getDirectory:i,joinPath:a,getCacheKey:o,getUriPath:s,getRelativePath:c}}var normalizePath,getSegments,getFileName,getExtension,getDirectory,joinPath,getCacheKey,getUriPath,getRelativePath});var kt=_((ma,wt)=>{var ye=class extends Error{constructor(t,r,n={}){super(r),this.code=t,this.context=n,this.name="ExtensionError"}},Et={FILE_PERMISSION_DENIED:"FILE_PERMISSION_DENIED",WORKSPACE_TOO_LARGE:"WORKSPACE_TOO_LARGE",CHUNK_LOAD_FAILED:"CHUNK_LOAD_FAILED"};function nn(e){if(!e)return!1;let t=e.code||e?.name;return["EACCES","EPERM","EROFS","NoPermissions"].includes(t)}var Ue=class extends ye{constructor(t,r,n={}){let{recoverable:i=!0,context:a={}}=n;super(Et.CHUNK_LOAD_FAILED,`Failed to load ${t}: ${r}`,{chunkName:t,recoverable:i,...a}),this.name="ChunkLoadError",this.chunkName=t,this.recoverable=i}};function an(e,t,r={}){let n=require("vscode"),{userFacing:i=!0}=r,a=t?.recoverable??!0;i&&!a&&n.window.showErrorMessage(`Explorer Dates: ${e} feature unavailable. Please reinstall or rebuild the extension.`)}wt.exports={ExtensionError:ye,ERROR_CODES:Et,isPermissionError:nn,ChunkLoadError:Ue,handleChunkFailure:an}});var $e=_((pa,Tt)=>{var Dt="EXPLORER_DATES_FORCE_VSCODE_FS";function Ct(e,t=process.env){return String(t?.[e]||"")==="1"}function be(e){let t=e&&typeof e=="object"?e:null,r=String(t?.scheme||(typeof e=="string"&&/^[a-z][a-z0-9+.-]*:/i.test(e)?e.split(":",1)[0]:"file")).toLowerCase(),n=String(t?.authority||""),i=t?.path||t?.fsPath||(typeof e=="string"?e.replace(/^[a-z][a-z0-9+.-]*:\/\//i,""):"");return{scheme:r,authority:n,path:String(i||"")}}function on({uri:e,isWeb:t=!1,remoteName:r="",forceWorkspaceFs:n=Ct(Dt)}={}){let i=be(e),a=i.scheme!=="file",o=!!t,s=!!r,c=!!(n||o||s||a);return{scheme:i.scheme,authority:i.authority,isFileScheme:!a,isVirtual:a,isBrowser:o,isRemote:s,forceWorkspaceFs:!!n,filesystem:c?"workspace.fs":"node.fs",provider:a?i.scheme==="github"||i.scheme==="vscode-vfs"?"github":"virtual":"filesystem"}}function St({uri:e,platform:t=process.platform,caseSensitive:r}={}){return typeof r=="boolean"?r:be(e).scheme!=="file"?!0:t!=="win32"}function sn(e,t={}){let r=be(e),n=r.path.replace(/\\/g,"/").replace(/\/+/g,"/"),i=`${r.scheme}://${r.authority}${n}`;return St({uri:e,...t})?i:i.toLowerCase()}function He(e){if(e instanceof Date){let t=e.getTime();return Number.isFinite(t)?t:null}if(typeof e=="number")return Number.isFinite(e)?e:null;if(typeof e=="string"&&e.trim()){let t=Date.parse(e);return Number.isFinite(t)?t:null}return null}function cn(e){if(!e||typeof e!="object")return null;let t=He(e.mtime),r=He(e.ctime);return{...e,mtimeMs:t,ctimeMs:r}}Tt.exports={FORCE_WORKSPACE_FS_ENV:Dt,envFlag:Ct,getUriParts:be,getEnvironmentContract:on,isCaseSensitive:St,resourceIdentity:sn,normalizeTimestamp:He,normalizeStat:cn}});var K=_((ya,At)=>{function ln(){return typeof Date=="function"&&Date.now?Date.now():16409952e5}function vt(e){return!!(e&&typeof e=="object"&&typeof e.getTime=="function")}function un(e){if(vt(e))return e;if(typeof e=="number")return new Date(e);if(typeof e=="string"){let t=Date.parse(e);return isNaN(t)?new Date:new Date(t)}return new Date}function B(e=""){return e?e.replace(/\\/g,"/"):""}function hn(e=""){let t=B(e);return t?t.split("/").filter(Boolean):[]}function Ft(e=""){let t=hn(e);return t.length?t[t.length-1]:""}function dn(e=""){let t=Ft(e),r=t.lastIndexOf(".");return r<=0?"":t.substring(r).toLowerCase()}function fn(e=""){let t=B(e),r=t.lastIndexOf("/");return r===-1?"":t.substring(0,r)}function gn(...e){return B(e.filter(Boolean).join("/")).replace(/\/+/g,"/")}function mn(e=""){return B(e).toLowerCase()}function pn(e=""){if(!e)return"";if(typeof e=="string")return e;if(typeof e.fsPath=="string"&&e.fsPath.length>0)return e.fsPath;if(typeof e.path=="string"&&e.path.length>0)return e.path;if(typeof e.toString=="function")try{return e.toString(!0)}catch{return e.toString()}return String(e)}function yn(e="",t=""){let r=B(e),n=B(t);return r&&n.startsWith(r)?n.substring(r.length).replace(/^\/+/,""):n}At.exports={ensureDate:un,isDateLike:vt,getCurrentTimestamp:ln,normalizePath:B,getFileName:Ft,getExtension:dn,getDirectory:fn,joinPath:gn,getCacheKey:mn,getUriPath:pn,getRelativePath:yn}});var Rt=_((exports,module)=>{var chunk=null;try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){try{chunk=dynamicRequire("../chunks/utils-shared-chunk")}catch{}try{chunk||(chunk=dynamicRequire("./chunks/utils-shared-chunk"))}catch{}try{chunk||(chunk=dynamicRequire("../chunks/date-helpers-chunk"))}catch{}try{chunk||(chunk=dynamicRequire("./chunks/date-helpers-chunk"))}catch{}}}catch{}if(chunk&&(chunk.ensureDate||chunk.isDateLike||chunk.getCurrentTimestamp))module.exports={ensureDate:chunk.ensureDate,isDateLike:chunk.isDateLike,getCurrentTimestamp:chunk.getCurrentTimestamp};else{let e=function(){return typeof Date=="function"&&Date.now?Date.now():16409952e5},t=function(n){return!!(n&&typeof n=="object"&&typeof n.getTime=="function")},r=function(n){if(t(n))return n;if(typeof n=="number")return new Date(n);if(typeof n=="string"){let i=Date.parse(n);return isNaN(i)?new Date:new Date(i)}return new Date};getCurrentTimestamp=e,isDateLike=t,ensureDate=r,module.exports={ensureDate:r,isDateLike:t,getCurrentTimestamp:e}}var getCurrentTimestamp,isDateLike,ensureDate});var Be=_((ba,It)=>{var S=require("vscode"),{isWebEnvironment:Pt}=J(),{normalizePath:bn}=ce(),{ExtensionError:_n,ERROR_CODES:En,isPermissionError:wn}=kt(),{getEnvironmentContract:kn,normalizeStat:Dn,FORCE_WORKSPACE_FS_ENV:Cn}=$e(),Q;try{let e=K();e&&(Q=e.ensureDate)}catch{}Q||(Q=Rt().ensureDate);var xt=typeof process<"u"&&process.env?process.env:{},Mt=xt.VSCODE_WEB==="true"||Pt(),v=null;if(!Mt)try{v=require("fs").promises}catch{v=null}var _e=class{constructor(){this.isWeb=Mt||Pt()}j(t){try{return kn({uri:this.O(t),isWeb:this.isWeb,remoteName:S.env?.remoteName,forceWorkspaceFs:xt[Cn]==="1"}).filesystem==="workspace.fs"}catch{return!1}}q(t){if(!t)return"";if(typeof t=="string")return t;if(t&&typeof t=="object"&&typeof t.fsPath=="string")return t.fsPath;if(t&&typeof t=="object"&&typeof t.path=="string")return t.path;if(typeof t=="object"){if(typeof t.fsPath=="string")return t.fsPath;if(typeof t.path=="string")return t.path}return String(t)}O(t){if(t&&typeof t=="object"&&typeof t.scheme=="string"&&typeof t.path=="string")return t;if(typeof t=="string"){let r=t.trim(),n=/^[a-zA-Z]:[\\/]/.test(r);if(/^[a-zA-Z][a-zA-Z0-9+.-]*:/.test(r)&&!n){let a=S.Uri.parse(r);if(a.scheme&&a.scheme!=="file")return a}return S.Uri.file(t)}if(t&&typeof t=="object"){if(t.uri&&t.uri!==t)try{return this.O(t.uri)}catch{}if(this.isWeb&&typeof t.scheme=="string"&&typeof t.path=="string")return S.Uri.from({scheme:t.scheme,authority:t.authority||"",path:t.path||"",query:t.query||"",fragment:t.fragment||""});if(typeof t.fsPath=="string"&&t.fsPath.length>0)return S.Uri.file(t.fsPath);if(typeof t.path=="string"&&t.path.length>0)return this.isWeb&&typeof t.scheme=="string"&&t.scheme!=="file"?S.Uri.from({scheme:t.scheme,authority:t.authority||"",path:t.path,query:t.query||"",fragment:t.fragment||""}):S.Uri.file(t.path);if(typeof t.href=="string"&&t.href.length>0)return S.Uri.parse(t.href);if(typeof t.scheme=="string")return S.Uri.from({scheme:t.scheme,authority:t.authority||"",path:t.path||t.fsPath||"",query:t.query||"",fragment:t.fragment||""});if(typeof t.toString=="function")try{let r=t.toString(!0);if(r&&r!=="[object Object]")return S.Uri.parse(r)}catch{let r=t.toString();if(r&&r!=="[object Object]")return S.Uri.parse(r)}}throw new Error(`Unsupported target type: ${typeof t}`)}async stat(t){let r=this.j(t);if(!this.isWeb&&v&&!r)return v.stat(this.q(t));let n=this.O(t),i=await S.workspace.fs.stat(n),a=Dn(i);return{...a,mtime:a.mtimeMs===null?Q(i.mtime):new Date(a.mtimeMs),ctime:a.ctimeMs===null?Q(i.ctime):new Date(a.ctimeMs),birthtime:a.ctimeMs===null?Q(i.ctime):new Date(a.ctimeMs),isFile:()=>i.type===S.FileType.File,isDirectory:()=>i.type===S.FileType.Directory}}async readFile(t,r="utf8"){let n=this.j(t);if(!this.isWeb&&v&&!n)return v.readFile(this.q(t),r);let i=this.O(t),a=await S.workspace.fs.readFile(i);return r===null||r==="binary"?a:new TextDecoder(r).decode(a)}async writeFile(t,r,n="utf8"){let i=this.q(t);try{let a=this.j(t);if(!this.isWeb&&v&&!a)return v.writeFile(i,r,n);let o=this.O(t),s=typeof r=="string"?new TextEncoder().encode(r):r;await S.workspace.fs.writeFile(o,s)}catch(a){this.ht("write file",i,a)}}async mkdir(t,r={recursive:!0}){let n=this.q(t);try{let i=this.j(t);if(!this.isWeb&&v&&!i)return v.mkdir(n,r);let a=this.O(t);await S.workspace.fs.createDirectory(a)}catch(i){this.ht("create directory",n,i)}}async readdir(t,r={withFileTypes:!1}){let n=this.j(t);if(!this.isWeb&&v&&!n)return v.readdir(this.q(t),r);let i=this.O(t),a=await S.workspace.fs.readDirectory(i);return r.withFileTypes?a.map(([o,s])=>({name:o,isDirectory:()=>s===S.FileType.Directory,isFile:()=>s===S.FileType.File})):a.map(([o])=>o)}async delete(t,r={recursive:!1}){let n=this.j(t);if(!this.isWeb&&v&&!n){let a=this.q(t);return r.recursive?v.rm?v.rm(a,r):v.rmdir(a,r):v.unlink(a)}let i=this.O(t);await S.workspace.fs.delete(i,r)}async exists(t){try{return await this.stat(t),!0}catch{return!1}}async ensureDirectory(t){let r=bn(this.q(t));await this.mkdir(r,{recursive:!0})}ht(t,r,n){throw wn(n)?new _n(En.FILE_PERMISSION_DENIED,`Permission denied while attempting to ${t}`,{path:r,code:n.code}):n}},Sn=new _e;It.exports={FileSystemAdapter:_e,fileSystem:Sn}});var I=_((_a,Lt)=>{var ee=typeof process<"u"&&process.env?process.env:{},Tn=12e4,vn=1e4,Fn=1440*60*1e3,An=2,Rn=["Ja","Fe","Mr","Ap","My","Jn","Jl","Au","Se","Oc","No","De"],Pn=Number(ee.EXPLORER_DATES_DECORATION_POOL_SIZE||2048),xn=Number(ee.EXPLORER_DATES_FLYWEIGHT_CACHE_SIZE||4096),Mn=Number(ee.EXPLORER_DATES_WORKSPACE_BALANCED_THRESHOLD||15e3),In=Number(ee.EXPLORER_DATES_WORKSPACE_LARGE_THRESHOLD||25e4),Wt=Number(ee.EXPLORER_DATES_WORKSPACE_EXTREME_THRESHOLD||4e5),Wn=Number(ee.EXPLORER_DATES_WORKSPACE_SCAN_MAX_RESULTS||Math.min(Wt+1,50001)),Ln={ADVANCED_CACHE:"explorerDates.advancedCache",ADVANCED_CACHE_METADATA:"explorerDates.advancedCacheMetadata",TEMPLATE_STORE:"explorerDates.templates",WEB_GIT_NOTICE:"explorerDates.webGitNotice"},On="explorerDatesChunks",Nn="__explorerDatesChunks";Lt.exports={DEFAULT_CACHE_TIMEOUT:Tn,DEFAULT_MAX_CACHE_SIZE:vn,DEFAULT_PERSISTENT_CACHE_TTL:Fn,DEFAULT_DECORATION_POOL_SIZE:Pn,DEFAULT_FLYWEIGHT_CACHE_SIZE:xn,MAX_BADGE_LENGTH:An,MONTH_ABBREVIATIONS:Rn,WORKSPACE_SCALE_BALANCED_THRESHOLD:Mn,WORKSPACE_SCALE_LARGE_THRESHOLD:In,WORKSPACE_SCALE_EXTREME_THRESHOLD:Wt,WORKSPACE_SCAN_MAX_RESULTS:Wn,GLOBAL_STATE_KEYS:Ln,WEB_CHUNK_GLOBAL_KEY:On,LEGACY_WEB_CHUNK_GLOBAL_KEY:Nn}});var Ke=_((Ea,Nt)=>{var{MAX_BADGE_LENGTH:Ot}=I();function qn(e=0,t="auto"){let r=typeof e=="number"&&!Number.isNaN(e)?e:0;if(t==="bytes")return`~${r}B`;let n=r/1024;if(t==="kb")return`~${n.toFixed(1)}K`;let i=n/1024;return t==="mb"?`~${i.toFixed(1)}M`:r<1024?`~${r}B`:n<1024?`~${Math.round(n)}K`:`~${i.toFixed(1)}M`}function zn(e){if(e)return e.length>Ot?e.substring(0,Ot):e}Nt.exports={formatFileSize:qn,trimBadge:zn}});var q=_((wa,qt)=>{var te="__explorerDatesLogger",re=class{constructor(){this.we=null}ke(t,r){if(this.we&&typeof this.we[t]=="function")try{return this.we[t](...r)}catch{}switch(t){case"debug":break;case"info":break;case"warn":break;case"error":break;default:break}}debug(...t){return this.ke("debug",t)}info(...t){return this.ke("info",t)}warn(...t){return this.ke("warn",t)}error(...t){return this.ke("error",t)}Jr(t){this.we=t}};function Un(){return typeof global<"u"?(global[te]||(global[te]=new re),global[te]):typeof globalThis<"u"?(globalThis[te]||(globalThis[te]=new re),globalThis[te]):(je||(je=new re),je)}var Ve=class extends re{},je=null;qt.exports={Logger:Ve,getLogger:Un}});var Ge=_((exports,module)=>{var{getLogger}=q(),env=typeof process<"u"&&process.env?process.env:{};function createFallbackVscodeMinimal(){return{workspace:{workspaceFolders:[],getConfiguration:()=>({get:()=>{},async update(){},inspect:()=>({defaultValue:void 0,globalValue:void 0,workspaceValue:void 0,workspaceFolderValue:void 0})})},ConfigurationTarget:{Global:1,Workspace:2,WorkspaceFolder:3}}}function resolveVscodeMinimal(){try{return require("vscode")}catch{return createFallbackVscodeMinimal()}}var MinimalSettingsCoordinator=class{constructor(t={}){this.qt=t.defaultSection||"explorerDates",this.De=new Map,this.dt=new Map,this.Qr=Number(env.EXPLORER_DATES_LOCK_WAIT_WARN_MS||1e3),this._logger=getLogger()}zt(t,r){let i=(this.De.get(t)||Promise.resolve()).then(()=>r()),a=i.catch(()=>{});return this.De.set(t,a),i.finally(()=>{this.De.get(t)===a&&this.De.delete(t)}),i}ze(t,r){return resolveVscodeMinimal().workspace.getConfiguration(t||void 0,r)}se(t,r){let n=r||this.qt;return n?t.startsWith(`${n}.`)?{section:n,key:t.slice(n.length+1),fullKey:t}:t.includes(".")?{section:void 0,key:t,fullKey:t}:{section:n,key:t,fullKey:`${n}.${t}`}:{section:void 0,key:t,fullKey:t}}async updateSetting(t,r,n={}){return this.zt(this.se(t,n.section).fullKey,async()=>{let i=this.se(t,n.section),a=this.ze(i.section,n.resource);try{let o=this.Ut(n.scope,n.resource);return await a.update(i.key,r,o),{key:i.fullKey,updated:!0}}catch(o){try{this._logger.warn(`Configuration update failed for ${i.fullKey}: ${o&&o.message}`)}catch{}return{key:i.fullKey,updated:!1,error:o}}})}async applySettings(t,r={}){let n=Array.isArray(t)?t:Object.entries(t).map(([o,s])=>({key:o,value:s})),i=[];for(let o of n)try{i.push(await this.updateSetting(o.key,o.value,r))}catch(s){i.push({key:this.se(o.key,r.section).fullKey,updated:!1,error:s})}let a=i.filter(o=>o&&o.error);if(a.length>0){let o=a.map(c=>`${c.key}: ${c.error&&c.error.message?c.error.message:String(c.error)}`),s=new Error(`Failed to apply ${a.length} setting(s): ${o.join("; ")}`);throw s.details=a,s}return i}Ut(t,r){return t&&t!=="auto"?this.Ht(t)||resolveVscodeMinimal().ConfigurationTarget.Workspace:r?resolveVscodeMinimal().ConfigurationTarget.WorkspaceFolder:resolveVscodeMinimal().workspace.workspaceFolders&&resolveVscodeMinimal().workspace.workspaceFolders.length>0?resolveVscodeMinimal().ConfigurationTarget.Workspace:resolveVscodeMinimal().ConfigurationTarget.Global}Ht(t){switch(t){case"user":return resolveVscodeMinimal().ConfigurationTarget.Global;case"workspace":return resolveVscodeMinimal().ConfigurationTarget.Workspace;case"workspaceFolder":return resolveVscodeMinimal().ConfigurationTarget.WorkspaceFolder;default:return}}getValue(t,r={}){let{section:n,resource:i}=r||{},a=this.se(t,n);return this.ze(a.section,i).get(a.key)}inspect(t,r={}){let{section:n,resource:i}=r||{},a=this.se(t,n);return this.ze(a.section,i).inspect(a.key)}async clearSetting(t,r={}){return this.updateSetting(t,void 0,r)}getLockWaitStats(){let t={};for(let[r,n]of this.dt.entries())t[r]={...n};return t}resetLockWaitStats(){this.dt.clear()}},cachedCoordinator=null;function getSettingsCoordinator(options){if(!cachedCoordinator||options&&options.forceNew){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=null;try{e=dynamicRequire("../chunks/settings-coordinator-impl-chunk")}catch{}try{e||(e=dynamicRequire("../chunks/settingsCoordinator-impl-chunk"))}catch{}if(e&&typeof e.createSettingsCoordinatorImpl=="function")return cachedCoordinator=e.createSettingsCoordinatorImpl(options),cachedCoordinator}}catch{}try{let{WEB_CHUNK_GLOBAL_KEY:e,LEGACY_WEB_CHUNK_GLOBAL_KEY:t}=I(),r=typeof globalThis<"u"&&(globalThis[e]||globalThis[t])||null;if(r&&r.settingsCoordinatorImpl&&typeof r.settingsCoordinatorImpl.createSettingsCoordinatorImpl=="function")return cachedCoordinator=r.settingsCoordinatorImpl.createSettingsCoordinatorImpl(options),cachedCoordinator}catch{}cachedCoordinator=new MinimalSettingsCoordinator(options)}return cachedCoordinator}module.exports={getSettingsCoordinator,MinimalSettingsCoordinator}});var Je=_((ka,$t)=>{var{normalizePath:Xe,getUriPath:Hn}=ce(),{getLogger:$n}=q(),le=typeof process<"u"&&process.env?process.env:{},Bn=$n(),ue=240,Ye=255,zt=/[\x00-\x1f\x7f<>:"|?*]/g,Kn=/[\x00-\x1f\x7f<>:"|?*]/,jn=[/\.\./,/\.\.[\\/]/,/[\\/]\.\./,/^\.\.$/,/^\.\.[\\/]/,/[\\/]\.\.$/],Ut=new Set(["CON","PRN","AUX","NUL","COM1","COM2","COM3","COM4","COM5","COM6","COM7","COM8","COM9","LPT1","LPT2","LPT3","LPT4","LPT5","LPT6","LPT7","LPT8","LPT9"]),Ht=new Set([".exe",".scr",".bat",".cmd",".pif",".vbs",".js",".jar",".com",".msi",".dll",".dmg",".pkg",".deb",".rpm"]),Vn=new Set([".js",".jsx",".ts",".tsx",".mjs",".cjs",".py",".rb",".rs",".go",".php",".java",".kt",".swift",".cs",".c",".cpp",".h",".hpp",".html",".css",".scss",".less",".json",".jsonc",".md",".mdx",".txt",".sh",".bash",".yml",".yaml"]),Gn=()=>le.EXPLORER_DATES_TEST_MODE==="1"||le.NODE_ENV==="test"||le.VSCODE_TEST==="1"?"test":le.EXPLORER_DATES_DEV_MODE==="1"||le.NODE_ENV==="development"?"development":"production",ne=class{static hasPathTraversal(t){let r=this.V(t);if(!r||typeof r!="string")return!1;let n=Xe(r);return jn.some(i=>i.test(n))}static hasDangerousChars(t){let r=this.V(t);return!r||typeof r!="string"?!1:Kn.test(r)}static isWindowsReservedName(t){if(!t||typeof t!="string")return!1;let r=t.split(".")[0].toUpperCase();return Ut.has(r)}static isSuspiciousExtension(t,r={}){let{workspaceContext:n=!0}=r;if(!t||typeof t!="string")return!1;let i=t.toLowerCase(),a=i.startsWith(".")?i:`.${i}`;return n&&Vn.has(a)?!1:Ht.has(a)}static isPathTooLong(t){let r=this.V(t);return!r||typeof r!="string"?!1:r.length>ue}static isFilenameTooLong(t){return!t||typeof t!="string"?!1:t.length>Ye}static validatePath(t,r={}){let{allowSuspiciousExtensions:n=!1,allowWindowsReservedNames:i=!1,strictLength:a=!0,workspaceContext:o=!0}=r,s=this.V(t),c=[],u=[];if(!s||typeof s!="string")return{isValid:!1,path:s,issues:["Invalid or empty path"],warnings:[],isSafe:!1};this.hasPathTraversal(s)&&c.push("Path contains directory traversal attempts"),this.hasDangerousChars(s)&&c.push("Path contains dangerous characters"),a&&this.isPathTooLong(s)&&c.push(`Path exceeds maximum length (${ue})`);let l=s.split(/[/\\]/).pop()||"";a&&this.isFilenameTooLong(l)&&c.push(`Filename exceeds maximum length (${Ye})`),!i&&this.isWindowsReservedName(l)&&u.push("Filename is a Windows reserved name");let d=l.includes(".")?l.split(".").pop():"";return!n&&this.isSuspiciousExtension(d,{workspaceContext:o})&&u.push("File extension is potentially suspicious"),{isValid:c.length===0,path:s,filename:l,extension:d,issues:c,warnings:u,isSafe:c.length===0&&u.length===0}}static sanitizePath(t,r={}){let{replacementChar:n="_",preserveExtension:i=!0}=r,a=this.V(t);if(!a||typeof a!="string")return"";a=a.replace(/\x00/g,"");let o=a.startsWith("/"),s=Xe(a).split("/").filter(Boolean),c=[];for(let u of s){if(u===".."){c.length>0&&c.pop();continue}u!=="."&&c.push(u)}if(a=(o?"/":"")+c.join("/"),a=a.replace(zt,n),i){let u=a.split("/"),l=u[u.length-1];if(l&&this.isWindowsReservedName(l)){let d=l.split(".");d[0]=d[0]+"_safe",u[u.length-1]=d.join("."),a=u.join("/")}}return a.length>ue&&(a=a.substring(0,ue),Bn.warn("Path truncated due to length:",a)),a}static isWithinBoundaries(t,r=[]){let n=this.V(t);if(!n||!Array.isArray(r)||r.length===0)return!1;let i=n.split("/").filter(Boolean),a=[];for(let s of i)s===".."?a.length>0&&a.pop():s!=="."&&a.push(s);let o="/"+a.join("/");return r.some(s=>{let c=Xe(s);return o.startsWith(c)})}static validateRegexPattern(t){if(!t||typeof t!="string")return{isValid:!1,issue:"Invalid pattern"};let r=[/\([^)]*\+[^)]*\)\+/,/\([^)]*\*[^)]*\)\*/,/\([^)]*\+[^)]*\)\*/,/\([^)]*\*[^)]*\)\+/,/\+.*\*|{\d+,}.*\*/,/\([^|]*\|[^)]*\)\*/];for(let n of r)if(n.test(t))return{isValid:!1,issue:"Pattern may cause catastrophic backtracking (ReDoS)"};try{return new RegExp(t),{isValid:!0}}catch(n){return{isValid:!1,issue:`Invalid regex syntax: ${n.message}`}}}static V(t){if(!t)return"";if(typeof t=="string")return t;try{return Hn(t)}catch{return String(t)}}},Ze=class{static validateFileUri(t,r=[]){if(!t||typeof t!="object")return{isValid:!1,issue:"Invalid URI object"};if(t.scheme!=="file"&&t.scheme!=="vscode-vfs")return{isValid:!1,issue:`Unsupported URI scheme: ${t.scheme}`};let n=ne.validatePath(t);return n.isValid?r.length>0&&!ne.isWithinBoundaries(t,r)?{isValid:!1,issue:"Path is outside allowed workspace boundaries"}:{isValid:!0,warnings:n.warnings}:{isValid:!1,issue:`Path validation failed: ${n.issues.join(", ")}`}}static validateExclusionPatterns(t){if(!Array.isArray(t))return{isValid:!1,issue:"Patterns must be an array"};let r=[],n=[];for(let i of t){if(typeof i!="string"){n.push(`Invalid pattern type: ${typeof i}`);continue}let a=i.replace(/\./g,"\\.").replace(/\*/g,".*").replace(/\?/g,"."),o=ne.validateRegexPattern(a);r.push({pattern:i,isValid:o.isValid,issue:o.issue}),o.isValid||n.push(`Pattern "${i}": ${o.issue}`)}return{isValid:n.length===0,results:r,issues:n}}};$t.exports={SecurityValidator:ne,SecureFileOperations:Ze,detectSecurityEnvironment:Gn,MAX_SAFE_PATH_LENGTH:ue,MAX_SAFE_FILENAME_LENGTH:Ye,DANGEROUS_PATH_CHARS:zt,WINDOWS_RESERVED_NAMES:Array.from(Ut),SUSPICIOUS_EXTENSIONS:Array.from(Ht)}});var he=_((Da,Vt)=>{var Kt=typeof process<"u"&&process.env?process.env:{},Bt="[ExplorerDates][WebDiag]",Qe="__explorerDatesWebDiagnostics",Ee;function Xn(){try{let e=require("vscode");return e?.env?.uiKind===e?.UIKind?.Web}catch{return Kt.VSCODE_WEB==="true"}}function P(){return Ee!==void 0||(Ee=Kt.EXPLORER_DATES_WEB_DIAG==="1"||Xn()),Ee}function jt(){return{enabled:P(),logs:[],logOnce:new Set,commandsRegistered:new Set,commandsInvoked:[],errors:[],chunkLoads:[],provider:{created:!1,registered:!1,hydrated:!1,decorationCalls:0,refreshCalls:0,lastEvent:null}}}var Yn=jt();function x(){return typeof globalThis<"u"?(globalThis[Qe]||(globalThis[Qe]=jt()),globalThis[Qe]):Yn}function Zn(e){try{return JSON.stringify(e)}catch{return String(e)}}function W(e,t,r){if(!P())return;let n=x(),i={ts:new Date().toISOString(),level:e,message:t,meta:r||null};n.logs.push(i),n.logs.length>400&&n.logs.shift();let a=r?`${Bt} ${t} ${Zn(r)}`:`${Bt} ${t}`,o=console[e]||console.info;try{o(a)}catch{}}function Jn(e,t,r,n){if(!P())return;let i=x();i.logOnce.has(e)||(i.logOnce.add(e),W(t,r,n))}function Qn(e){if(!P())return;x().commandsRegistered.add(e),W("info","Command registered",{commandId:e})}function ei(e){if(!P())return;x().commandsInvoked.push({commandId:e,ts:Date.now()}),W("info","Command invoked",{commandId:e})}function ti(e,t,r){P()&&(t?W("info","Command completed",{commandId:e}):(W("error","Command failed",{commandId:e,error:r?.message,stack:r?.stack}),x().errors.push({commandId:e,error:r?.message,stack:r?.stack})))}function ri(e,t,r){if(!P())return;x().chunkLoads.push({chunkName:e,stage:t,ts:Date.now(),error:r?r.message||String(r):null}),W(r?"warn":"info",`Chunk ${t}`,{chunkName:e,error:r?.message})}function ni(e,t){if(!P())return;let r=x();r.provider.lastEvent={event:e,ts:Date.now(),meta:t||null},e==="created"&&(r.provider.created=!0),e==="registered"&&(r.provider.registered=!0),e==="hydrated"&&(r.provider.hydrated=!0),W("info",`Provider ${e}`,t)}function ii(){if(!P())return;let e=x();e.provider.decorationCalls+=1,e.provider.decorationCalls<=3&&W("info","Decoration request observed",{count:e.provider.decorationCalls})}function ai(){if(!P())return;let e=x();e.provider.refreshCalls+=1}Vt.exports={isWebDiagnosticsEnabled:P,getWebDiagnosticsState:x,diagLog:W,diagLogOnce:Jn,recordCommandRegistration:Qn,recordCommandInvocation:ei,recordCommandResult:ti,recordChunkEvent:ri,recordProviderEvent:ni,recordDecorationCall:ii,recordRefreshCall:ai}});var it=_((Ca,er)=>{var we=require("vscode"),{normalizePath:rt,getRelativePath:oi}=ce(),{diagLogOnce:si}=he(),{normalizeTimestamp:de,resourceIdentity:ci}=$e(),li={unknown:0,github:1,git:2,fs:3},tt={low:1,medium:2,high:3};function L(e,t,r){try{return e?.get?e.get(t,r):r}catch{return r}}function ui(e){return{nowMinutes:Number(L(e,"freshnessBucketMinutesNow",60))||60,todayHours:Number(L(e,"freshnessBucketHoursToday",24))||24,twoDays:Number(L(e,"freshnessBucketDaysTwo",2))||2,oneWeek:Number(L(e,"freshnessBucketDaysWeek",7))||7}}function Gt(e,t){if(!Number.isFinite(e)||e<0)return"unknown";let r=t.nowMinutes*60*1e3,n=t.todayHours*60*60*1e3,i=t.twoDays*24*60*60*1e3,a=t.oneWeek*24*60*60*1e3;return e<=r?"now":e<=n?"today":e<=i?"2d":e<=a?"1w":"stale"}function Xt(e){switch(e){case"now":return"now";case"today":return"today";case"2d":return"2d";case"1w":return"1w";case"stale":return"stale";default:return"unknown"}}function Yt(e){switch(e){case"fs":return"Filesystem";case"git":return"Git";case"github":return"GitHub";default:return"Unknown"}}function Zt(e){switch(e){case"now":return"!!";case"today":return"T";case"2d":return"2d";case"1w":return"1w";case"stale":return"~~";default:return"?"}}function hi(e,t,r){let n=!!L(r,"freshnessShowUnknown",!0);if(e==="unknown"||t==="unknown")return n?"?":null;let i=Zt(e);return!i||i==="unknown"?n?"?":null:i}function di(e){try{let t=de(e);return t===null?null:new Date(t).toISOString().replace("T"," ").replace("Z","")}catch{return null}}function fi(e,t){if(!e)return;let r=L(t,"freshnessTooltipVerbosity","full"),n=L(t,"badge.sourceLabelMode","auto"),i=[],a=Xt(e.bucket),o=Yt(e.source);if(i.push(`Freshness: ${a}`),e.exactTimestamp){let u=di(e.exactTimestamp);u&&i.push(`Exact time: ${u}`)}let s=e.source==="fs"&&e.confidence==="high";return(n==="always"||n!=="never"&&!s||n!=="never"&&r==="full")&&i.push(`Source: ${o}`),e.author&&i.push(`Author: ${e.author}`),e.message&&i.push(`Message: ${e.message}`),i.push(`Confidence: ${e.confidence}`),e.reason&&r==="full"&&i.push(`Reason: ${e.reason}`),i.join(` -`)}function gi(e,t,r){if(!Number.isFinite(t)||t<=0)return!1;let n=300*1e3;if(t>r+n)return!1;if(e==="file")return!0;let i=r-t,a=300*1e3,o=365*24*60*60*1e3*10;return!(io)}function nt({source:e,timestampMs:t,author:r,message:n,confidence:i,reason:a},o){if(!Number.isFinite(t))return{bucket:"unknown",source:e||"unknown",confidence:i||"low",reason:a||"no-timestamp"};let s=ui(o),c=Date.now()-t;return{bucket:Gt(c,s),source:e,exactTimestamp:t,author:r||void 0,message:n||void 0,confidence:i,reason:a||void 0}}async function mi(e,t,r){let n=e?.scheme||"file",i=!!L(r,"freshnessAllowVirtualFs",!1);if(n!=="file"&&!i)return{freshness:null,reason:"fs-virtual-disabled"};let a=t?.mtimeMs??de(t?.mtime),o=Date.now();return Number.isFinite(a)?gi(n,a,o)?{freshness:nt({source:"fs",timestampMs:a,confidence:n==="file"?"high":"medium",reason:n==="file"?"fs-trust-high":"fs-trust-medium"},r),reason:null}:{freshness:null,reason:"fs-mtime-untrusted"}:{freshness:null,reason:"fs-mtime-missing"}}async function pi(e,t,r){if(!t||typeof t.Ue!="function")return{freshness:null,reason:"git-provider-missing"};let n;try{n=await t.Ue(e)}catch(o){return{freshness:null,reason:`git-error:${o?.message||"unknown"}`}}let i=de(n?.timestampMs);return i===null||i<=0?{freshness:null,reason:n?.error||"git-no-timestamp"}:{freshness:nt({source:"git",timestampMs:i,author:n?.author||void 0,message:n?.message||void 0,confidence:"medium",reason:"git-recency"},r),reason:null}}function Jt(e){if(!e||(e.scheme||"")!=="github")return null;let n=rt(e.path||"").replace(/^\/+/,"").split("/").filter(Boolean);if(n.length<2)return null;let i=n[0],a=n[1],o=n.slice(2).join("/"),s=new URLSearchParams(e.query||""),c=s.get("ref")||s.get("branch")||"HEAD";return{owner:i,repo:a,filePath:o,ref:c}}function yi(e){let t=(e||"").indexOf("+");if(t===-1)return"HEAD";let r=e.slice(t+1);try{let n;if(typeof TextDecoder<"u"){let o=new Uint8Array(r.length/2);for(let s=0;s0)return a}catch{}return"HEAD"}function Qt(e){if(!e||e.scheme!=="vscode-vfs"||!String(e.authority||"").startsWith("github"))return null;let r=rt(e.path||"").replace(/^\/+/,"").split("/").filter(Boolean);if(r.length<2)return null;let n=r[0],i=r[1],a=r.slice(2).join("/"),o=yi(e.authority||"");return{owner:n,repo:i,filePath:a,ref:o}}function bi(e){try{let t=we.workspace.workspaceFolders||[];for(let r of t){let n=r?.uri?.scheme;if(n==="github"){let i=Jt(r.uri);if(!i)continue;let a=oi(r.uri.path||"",e?.path||"");return{...i,filePath:a}}if(n==="vscode-vfs"&&String(r?.uri?.authority||"").startsWith("github")){let i=Qt(r.uri);if(!i)continue;let o=rt(e?.path||"").replace(/^\/+/,"").split("/").filter(Boolean).slice(2).join("/");if(!o)continue;return{...i,filePath:o}}}}catch{}return null}async function _i(e,t){let r=Jt(e)||Qt(e)||bi(e);if(!r||!r.owner||!r.repo||!r.filePath)return{freshness:null,reason:"github-context-missing"};let n=`${r.owner}/${r.repo}@${r.ref}:${r.filePath}`,i=`https://api.github.com/repos/${r.owner}/${r.repo}/commits?path=${encodeURIComponent(r.filePath)}&sha=${encodeURIComponent(r.ref)}&per_page=1`,a={Accept:"application/vnd.github+json"};try{let y=we?.authentication&&typeof we.authentication.getSession=="function"?await we.authentication.getSession("github",["repo"],{createIfNone:!1}):null;y?.accessToken&&(a.Authorization=`Bearer ${y.accessToken}`)}catch{}if(typeof fetch!="function")return{freshness:null,reason:"github-fetch-unavailable"};let o;try{o=await fetch(i,{headers:a})}catch(y){return{freshness:null,reason:`github-fetch-error:${y?.message||"unknown"}`}}if(!o||!o.ok)return{freshness:null,reason:o?`github-http-${o.status}`:"github-no-response"};let s;try{s=await o.json()}catch{return{freshness:null,reason:"github-json-error"}}let c=Array.isArray(s)?s[0]:null,u=c?.commit||null,l=u?.author?.name||c?.author?.login||void 0,d=u?.message||void 0,h=de(u?.author?.date);return h===null?{freshness:null,reason:"github-no-timestamp"}:{freshness:nt({source:"github",timestampMs:h,author:l,message:d,confidence:"medium",reason:"github-commit"},t),reason:null,cacheKey:n}}function et(e,t){return!e||e==="auto"?!0:e==="unknown"?t==="unknown":e===t}async function Ei({uri:e,stat:t,provider:r,config:n,workspaceKind:i}){let a=e?.scheme||"file",o=L(n,"freshnessSourcePolicy","auto"),s=[],c=Date.now();if(et(o,"fs")){let u=await mi(e,t,n);if(s.push({source:"fs",reason:u.reason||null}),u.freshness)return{...u.freshness,attempts:s}}if(et(o,"git")){let u=await pi(e,r,n);if(s.push({source:"git",reason:u.reason||null}),u.freshness)return{...u.freshness,attempts:s}}if(et(o,"github")){let u=await _i(e,n);if(s.push({source:"github",reason:u.reason||null,cacheKey:u.cacheKey||null}),u.freshness)return{...u.freshness,attempts:s}}return si("freshness-unknown","info","No trustworthy freshness source available",{scheme:a,workspaceKind:i||"unknown",attempts:s}),{bucket:"unknown",source:"unknown",confidence:"low",reason:"no-source",attempts:s,resolvedAt:c}}function wi(e,t){if(!e)return-1;if(!t)return 1;let r=tt[e.confidence]||0,n=tt[t.confidence]||0;if(r!==n)return r-n;let i=Number(e.exactTimestamp||0),a=Number(t.exactTimestamp||0);return i-a}er.exports={resolveFreshness:Ei,formatBadge:hi,formatTooltip:fi,bucketFromAge:Gt,formatBucketLabel:Xt,formatBadgeAge:Zt,formatSourceLabel:Yt,compareFreshness:wi,SOURCE_RANK:li,CONFIDENCE_RANK:tt,normalizeTimestamp:de,resourceIdentity:ci}});var rr=_((Sa,tr)=>{var{normalizePath:ki}=ce(),ke="__root__",at=class{constructor(){this.g=new Map,this.P=new Map,this.o=0}get size(){return this.o}get bucketCount(){return this.g.size}clear(){this.g.clear(),this.P.clear(),this.o=0}get(t){if(!t)return;let r=this.P.get(t);if(!r)return;let n=this.g.get(r);if(!n){this.P.delete(t);return}return n.lastAccess=Date.now(),n.entries.get(t)}set(t,r,n={}){if(!t)return;let i=n.folderKey||this.$t(t),a=this.Bt(i),o=a.entries.has(t);a.entries.set(t,r),a.lastAccess=Date.now(),o||this.o++,this.P.set(t,i)}delete(t){if(!t)return!1;let r=this.P.get(t);if(!r)return!1;let n=this.g.get(r);if(!n)return this.P.delete(t),!1;let i=n.entries.delete(t);return i&&(this.o=Math.max(0,this.o-1),n.entries.size===0&&this.g.delete(r)),this.P.delete(t),i}*entries(){for(let t of this.g.values())yield*t.entries.entries()}*keys(){for(let t of this.g.values())yield*t.entries.keys()}*values(){for(let t of this.g.values())yield*t.entries.values()}[Symbol.iterator](){return this.entries()}enforceLimit(t=0,r){if(!t||this.o<=t)return 0;let n=Math.max(Math.floor(t*.2),this.o-t,1),i=0,a=Array.from(this.g.entries()).map(([o,s])=>({folderKey:o,bucket:s}));a.sort((o,s)=>(o.bucket.lastAccess||0)-(s.bucket.lastAccess||0));for(let{folderKey:o,bucket:s}of a){if(i>=n)break;if(!s.entries.size){this.g.delete(o);continue}let c=s.entries.size,u=n-i;if(c<=u){i+=this.Kt(o,s);continue}let l=Array.from(s.entries.entries());l.sort((h,g)=>(h[1].timestamp||0)-(g[1].timestamp||0));let d=Math.min(u,Math.max(1,Math.ceil(c*.5)));for(let h=0;h0&&r&&r.debug(`Hierarchical cache eviction removed ${i} entries (${this.o} remaining)`),i}Bt(t){return this.g.has(t)||this.g.set(t,{entries:new Map,lastAccess:Date.now()}),this.g.get(t)}Kt(t,r){if(!r)return 0;let n=r.entries.size;for(let i of r.entries.keys())this.P.delete(i);return this.g.delete(t),this.o=Math.max(0,this.o-n),n}$t(t){if(!t||typeof t!="string")return ke;let r=ki(t);if(!r)return ke;let n=r.lastIndexOf("/");return n===-1?ke:r.slice(0,n)||ke}};tr.exports={HierarchicalDecorationCache:at}});var ir=_((Ta,nr)=>{async function Di(e,t,r){try{if(e.G)return e._logger?.debug?.(`\u26A0\uFE0F Cache bypass enabled - recalculating decoration for: ${r}`),null;if(e._advancedCache)try{let i=await e._advancedCache.get(t);if(i)return e._metrics.cacheHits++,e._logger?.debug?.(`\u{1F9E0} Advanced cache hit for: ${r}`),i}catch(i){e._logger?.debug?.(`Advanced cache error: ${i.message}`)}if(!e.e||typeof e.e.get!="function")return e._logger?.debug?.("getCachedDecoration: no memory cache available, falling back"),null;let n=e.e.get(t);if(n){if(n.forceRefresh){try{e.e.delete(t)}catch{}e._logger?.debug?.(`\u{1F6AB} Memory cache bypassed (forced refresh) for: ${r}`)}else if(Date.now()-n.timestampe.l)try{e.e.enforceLimit(e.l,e._logger)}catch{}let a={decoration:r,timestamp:Date.now()};i&&(a.uri=i);try{e.e.set(t,a)}catch{}try{typeof e.ce=="function"&&e.ce()}catch(o){e._logger?.debug?.("monitorCachePressure from store failed",o)}if(e._advancedCache)try{await e._advancedCache.set(t,r,{ttl:e.C}),e._logger?.debug?.(`\u{1F9E0} Stored in advanced cache: ${n}`)}catch(o){e._logger?.debug?.(`Failed to store in advanced cache: ${o.message}`)}try{typeof e.le=="function"&&e.le()}catch(o){e._logger?.debug?.("maybeExtendCacheTimeout from store failed",o)}}catch(a){e._logger?.debug?.("storeDecorationInCache failed",a)}}function Si(){class e{constructor(){this.r=null,this.n=new Map,this.o=0,this.He=!1,this.hydrateInBackground()}get size(){return this.r?this.r.size:this.o}get bucketCount(){return this.r?this.r.bucketCount:0}clear(){if(this.r)return this.r.clear();this.n.clear(),this.o=0}get(r){return this.r?this.r.get(r):this.n.get(r)}set(r,n,i={}){if(this.r)return this.r.set(r,n,i);let a=this.n.has(r);this.n.set(r,n),a||this.o++}delete(r){if(this.r)return this.r.delete(r);let n=this.n.delete(r);return n&&(this.o=Math.max(0,this.o-1)),n}*entries(){if(this.r){yield*this.r.entries();return}yield*this.n.entries()}*keys(){if(this.r){yield*this.r.keys();return}yield*this.n.keys()}*values(){if(this.r){yield*this.r.values();return}yield*this.n.values()}[Symbol.iterator](){return this.entries()}enforceLimit(r=0,n){if(this.r)return this.r.enforceLimit(r,n);if(!r||this.o<=r)return 0;let i=0,o=Array.from(this.n.keys()).slice(0,Math.max(1,Math.ceil(this.o-r)));for(let s of o)this.n.delete(s),i++,this.o=Math.max(0,this.o-1);return i>0&&n&&n.debug(`LazyHierarchical cache eviction removed ${i} entries`),i}async jt(){if(!this.He){this.He=!0;try{let n=(await Promise.resolve().then(()=>R(rr()))).HierarchicalDecorationCache;this.r=new n;for(let[i,a]of this.n.entries())this.r.set(i,a);this.n=null}catch{this.He=!1}}}hydrateInBackground(){this.jt().catch(()=>{})}}return new e}nr.exports={getCachedDecoration:Di,storeDecorationInCache:Ci,createLazyHierarchicalDecorationCache:Si}});var ar=_((va,Ti)=>{Ti.exports={migrationDetailsTitle:"Explorer Dates - Settings Migration",migrationDetailsHeader:"Settings Migration",gitAttributionWarning:"Explorer Dates: Git attribution badges are unavailable on VS Code for Web. Time-based decorations remain available.",noOverridesToDocument:"No overrides to document.",overrideNotesHeader:"# Explorer Dates Override Notes\\n\\n",analysisCommandsDisabled:"Explorer Dates analysis commands are disabled. Shortcuts like Ctrl+Shift+M/H/A will not work until you enable explorerDates.enableAnalysisCommands.",analysisEnableNow:"Enable Now",analysisEnablePartially:"Enable partially succeeded. Update explorerDates.enableAnalysisCommands in remaining workspace folders manually.",analysisEnableFailed:"Enable failed: update explorerDates.enableAnalysisCommands in workspace settings.",workspaceTemplatesDisabled:"Workspace templates are disabled. Enable explorerDates.enableWorkspaceTemplates to use this command.",workspaceTemplatesDisabledSave:"Workspace templates are disabled. Enable explorerDates.enableWorkspaceTemplates to save templates.",enterTemplateName:"Enter template name",enterTemplateDescription:"Enter description (optional)",failedToOpenTemplateManager:"Failed to open template manager: {0}",failedToSaveTemplate:"Failed to save template: {0}",reportingDisabled:"Reporting features are disabled. Enable explorerDates.enableExportReporting to generate reports.",failedToGenerateReport:"Failed to generate report: {0}",apiDisabled:"Explorer Dates API is disabled via settings.",failedToShowApiInformation:"Failed to show API information: {0}",failedToShowWorkspaceActivity:"Failed to show workspace activity: {0}",failedToShowPerformanceAnalytics:"Failed to show performance analytics: {0}",failedToShowCacheDebugInfo:"Failed to show cache debug info: {0}",noWorkspaceFolderOpen:"No workspace folder open",now:"now",minutes:"m",hours:"h",days:"d",weeks:"w",months:"mo",years:"y",justNow:"just now",minutesAgo:"{0} minute(s) ago",hoursAgo:"{0} hour(s) ago",daysAgo:"{0} day(s) ago",lastModified:"Last modified",refreshSuccess:"Date decorations refreshed",activationError:"Explorer Dates failed to activate",errorAccessingFile:"Error accessing file for decoration",clearTelemetryPrompt:"This will permanently delete locally-stored telemetry events for Explorer Dates. This action cannot be undone. Proceed?",clearTelemetryConfirm:"Clear Telemetry",clearTelemetryCancel:"Cancel",reportFormatDisabled:'Report format "{0}" is disabled. Allowed formats: {1}',reportDownloadTriggered:"Report download triggered in browser",selectReportTimeRangePlaceholder:"Select report time range",selectReportFormatPlaceholder:"Select report format",cleanupNoDeprecated:"\u2139\uFE0F No deprecated settings found to clean up.",showMigrationHistoryNoHistory:"No migration history found.",resetConfirmation:"This will reset all Explorer Dates settings to their default values. Are you sure?",resetConfirm:"Reset Settings",resetCancel:"Cancel",resetSuccess:"\u2705 Reset {0} settings to defaults.",validateNoIssues:"\u2705 Configuration is valid - no issues found!",validateFoundIssues:"Found {0} configuration issue(s). Would you like to see details?",validateShowDetails:"Show Details",validateDismiss:"Dismiss",migrationNotificationMessage:"Explorer Dates updated {0} setting(s) for compatibility. Your configuration has been preserved.",migrationViewChanges:"View Changes",migrationOpenSettings:"Open Settings",deprecatedPrompt:"Explorer Dates found {0} deprecated setting(s). Would you like to remove them?",deprecatedClean:"Clean Up Now",deprecatedKeep:"Keep Old Settings",deprecatedAskLater:"Ask Later",showFileLocation:"Show File Location",teamConfigCorrupted:"Explorer Dates team configuration file appears to be corrupted. Please check the .explorer-dates-profiles.json file or restore from backup.",appliedFromTeamProfile:'Applied {0} Explorer Dates settings from team profile "{1}".',documentedOverrides:"Documented Explorer Dates overrides in .vscode/explorer-dates-overrides.md",teamConfigMissingProfile:"Team configuration is missing an active profile.",ephemeralStorageEnospc:"Explorer Dates team configuration could not be saved because the disk is full.",ephemeralStorageGeneric:"Explorer Dates team configuration could not be saved because the workspace is read-only or permissions are restricted.",ephemeralStorageSuffix:"Changes will be kept in memory until VS Code restarts, so they may be lost."}});var or=_((Fa,vi)=>{vi.exports={migrationDetailsTitle:"Explorer Dates - Migraci\xF3n de configuraci\xF3n",migrationDetailsHeader:"Migraci\xF3n de configuraci\xF3n",gitAttributionWarning:"Explorer Dates: Las insignias de atribuci\xF3n de Git no est\xE1n disponibles en VS Code para la Web. Las decoraciones basadas en tiempo siguen disponibles.",noOverridesToDocument:"No hay anulaciones para documentar.",overrideNotesHeader:"# Notas de anulaci\xF3n de Explorer Dates\\n\\n",analysisCommandsDisabled:"Los comandos de an\xE1lisis de Explorer Dates est\xE1n deshabilitados. Atajos como Ctrl+Shift+M/H/A no funcionar\xE1n hasta que habilites explorerDates.enableAnalysisCommands.",analysisEnableNow:"Habilitar ahora",analysisEnablePartially:"La activaci\xF3n se complet\xF3 parcialmente. Actualiza explorerDates.enableAnalysisCommands manualmente en las carpetas de trabajo restantes.",analysisEnableFailed:"Error al habilitar: actualiza explorerDates.enableAnalysisCommands en la configuraci\xF3n del espacio de trabajo.",workspaceTemplatesDisabled:"Las plantillas de espacio de trabajo est\xE1n deshabilitadas. Habilita explorerDates.enableWorkspaceTemplates para usar este comando.",workspaceTemplatesDisabledSave:"Las plantillas de espacio de trabajo est\xE1n deshabilitadas. Habilita explorerDates.enableWorkspaceTemplates para guardar plantillas.",enterTemplateName:"Introduce el nombre de la plantilla",enterTemplateDescription:"Introduce la descripci\xF3n (opcional)",failedToOpenTemplateManager:"Error al abrir el administrador de plantillas: {0}",failedToSaveTemplate:"Error al guardar la plantilla: {0}",reportingDisabled:"Las funciones de informes est\xE1n deshabilitadas. Habilita explorerDates.enableExportReporting para generar informes.",failedToGenerateReport:"Error al generar el informe: {0}",apiDisabled:"La API de Explorer Dates est\xE1 deshabilitada mediante la configuraci\xF3n.",failedToShowApiInformation:"Error al mostrar la informaci\xF3n de la API: {0}",failedToShowWorkspaceActivity:"Error al mostrar la actividad del espacio de trabajo: {0}",failedToShowPerformanceAnalytics:"Error al mostrar los an\xE1lisis de rendimiento: {0}",failedToShowCacheDebugInfo:"Error al mostrar la informaci\xF3n de depuraci\xF3n de la cach\xE9: {0}",noWorkspaceFolderOpen:"No hay ninguna carpeta de espacio de trabajo abierta",now:"ahora",minutes:"m",hours:"h",days:"d",weeks:"sem",months:"mes",years:"a",justNow:"justo ahora",minutesAgo:"hace {0} minuto(s)",hoursAgo:"hace {0} hora(s)",daysAgo:"hace {0} d\xEDa(s)",lastModified:"\xDAltima modificaci\xF3n",refreshSuccess:"Decoraciones de fecha actualizadas",activationError:"Explorer Dates no se pudo activar",errorAccessingFile:"Error al acceder al archivo para la decoraci\xF3n",clearTelemetryPrompt:"Esto eliminar\xE1 permanentemente los eventos de telemetr\xEDa almacenados localmente para Explorer Dates. Esta acci\xF3n no se puede deshacer. \xBFContinuar?",clearTelemetryConfirm:"Borrar telemetr\xEDa",clearTelemetryCancel:"Cancelar",reportFormatDisabled:'El formato de informe "{0}" est\xE1 deshabilitado. Formatos permitidos: {1}',reportDownloadTriggered:"Descarga del informe iniciada en el navegador",selectReportTimeRangePlaceholder:"Seleccionar rango de tiempo del informe",selectReportFormatPlaceholder:"Seleccionar formato del informe",cleanupNoDeprecated:"\u2139\uFE0F No se encontraron configuraciones obsoletas para limpiar.",showMigrationHistoryNoHistory:"No se encontr\xF3 historial de migraci\xF3n.",resetConfirmation:"Esto restablecer\xE1 todas las configuraciones de Explorer Dates a sus valores predeterminados. \xBFEst\xE1s seguro?",resetConfirm:"Restablecer configuraciones",resetCancel:"Cancelar",resetSuccess:"\u2705 Se restablecieron {0} configuraciones a los valores predeterminados.",validateNoIssues:"\u2705 La configuraci\xF3n es v\xE1lida - no se encontraron problemas.",validateFoundIssues:"Se encontraron {0} problema(s) de configuraci\xF3n. \xBFDeseas ver los detalles?",validateShowDetails:"Mostrar detalles",validateDismiss:"Descartar",migrationNotificationMessage:"Explorer Dates actualiz\xF3 {0} configuraci\xF3n(es) por compatibilidad. Tu configuraci\xF3n se ha conservado.",migrationViewChanges:"Ver cambios",migrationOpenSettings:"Abrir configuraciones",deprecatedPrompt:"Explorer Dates encontr\xF3 {0} configuraci\xF3n(es) obsoleta(s). \xBFDeseas eliminarlas?",deprecatedClean:"Limpiar ahora",deprecatedKeep:"Mantener configuraciones antiguas",deprecatedAskLater:"Preguntar m\xE1s tarde",showFileLocation:"Mostrar ubicaci\xF3n del archivo",teamConfigCorrupted:"El archivo de configuraci\xF3n de equipo de Explorer Dates parece estar da\xF1ado. Verifica el archivo .explorer-dates-profiles.json o restaura desde una copia de seguridad.",appliedFromTeamProfile:'Se aplicaron {0} configuraciones de Explorer Dates desde el perfil de equipo "{1}".',documentedOverrides:"Se documentaron las anulaciones de Explorer Dates en .vscode/explorer-dates-overrides.md",teamConfigMissingProfile:"La configuraci\xF3n del equipo no tiene un perfil activo.",ephemeralStorageEnospc:"No se pudo guardar la configuraci\xF3n de equipo de Explorer Dates porque el disco est\xE1 lleno.",ephemeralStorageGeneric:"No se pudo guardar la configuraci\xF3n de equipo de Explorer Dates porque el espacio de trabajo es de solo lectura o los permisos est\xE1n restringidos.",ephemeralStorageSuffix:"Los cambios se mantendr\xE1n en memoria hasta que VS Code se reinicie, por lo que podr\xEDan perderse."}});var sr=_((Aa,Fi)=>{Fi.exports={migrationDetailsTitle:"Explorer Dates - Migration des param\xE8tres",migrationDetailsHeader:"Migration des param\xE8tres",gitAttributionWarning:"Explorer Dates : Les badges d\u2019attribution Git ne sont pas disponibles sur VS Code pour le Web. Les d\xE9corations bas\xE9es sur le temps restent disponibles.",noOverridesToDocument:"Aucune substitution \xE0 documenter.",overrideNotesHeader:"# Notes de substitution Explorer Dates\\n\\n",analysisCommandsDisabled:"Les commandes d\u2019analyse Explorer Dates sont d\xE9sactiv\xE9es. Les raccourcis comme Ctrl+Shift+M/H/A ne fonctionneront pas tant que vous n\u2019aurez pas activ\xE9 explorerDates.enableAnalysisCommands.",analysisEnableNow:"Activer maintenant",analysisEnablePartially:"L\u2019activation a partiellement r\xE9ussi. Mettez \xE0 jour explorerDates.enableAnalysisCommands manuellement dans les dossiers d\u2019espace de travail restants.",analysisEnableFailed:"\xC9chec de l\u2019activation : mettez \xE0 jour explorerDates.enableAnalysisCommands dans les param\xE8tres de l\u2019espace de travail.",workspaceTemplatesDisabled:"Les mod\xE8les d\u2019espace de travail sont d\xE9sactiv\xE9s. Activez explorerDates.enableWorkspaceTemplates pour utiliser cette commande.",workspaceTemplatesDisabledSave:"Les mod\xE8les d\u2019espace de travail sont d\xE9sactiv\xE9s. Activez explorerDates.enableWorkspaceTemplates pour enregistrer des mod\xE8les.",enterTemplateName:"Entrez le nom du mod\xE8le",enterTemplateDescription:"Entrez la description (facultatif)",failedToOpenTemplateManager:"Impossible d\u2019ouvrir le gestionnaire de mod\xE8les : {0}",failedToSaveTemplate:"Impossible d\u2019enregistrer le mod\xE8le : {0}",reportingDisabled:"Les fonctionnalit\xE9s de rapport sont d\xE9sactiv\xE9es. Activez explorerDates.enableExportReporting pour g\xE9n\xE9rer des rapports.",failedToGenerateReport:"Impossible de g\xE9n\xE9rer le rapport : {0}",apiDisabled:"L\u2019API Explorer Dates est d\xE9sactiv\xE9e via les param\xE8tres.",failedToShowApiInformation:"Impossible d\u2019afficher les informations de l\u2019API : {0}",failedToShowWorkspaceActivity:"Impossible d\u2019afficher l\u2019activit\xE9 de l\u2019espace de travail : {0}",failedToShowPerformanceAnalytics:"Impossible d\u2019afficher les analyses de performance : {0}",failedToShowCacheDebugInfo:"Impossible d\u2019afficher les informations de d\xE9bogage du cache : {0}",noWorkspaceFolderOpen:"Aucun dossier d\u2019espace de travail ouvert",now:"maintenant",minutes:"min",hours:"h",days:"j",weeks:"sem",months:"mois",years:"an",justNow:"\xE0 l\u2019instant",minutesAgo:"il y a {0} minute(s)",hoursAgo:"il y a {0} heure(s)",daysAgo:"il y a {0} jour(s)",lastModified:"Derni\xE8re modification",refreshSuccess:"D\xE9corations de date actualis\xE9es",activationError:"\xC9chec de l\u2019activation d\u2019Explorer Dates",errorAccessingFile:"Erreur lors de l\u2019acc\xE8s au fichier pour la d\xE9coration",clearTelemetryPrompt:"Cela supprimera d\xE9finitivement les \xE9v\xE9nements de t\xE9l\xE9m\xE9trie stock\xE9s localement pour Explorer Dates. Cette action est irr\xE9versible. Continuer ?",clearTelemetryConfirm:"Effacer la t\xE9l\xE9m\xE9trie",clearTelemetryCancel:"Annuler",reportFormatDisabled:'Le format de rapport "{0}" est d\xE9sactiv\xE9. Formats autoris\xE9s : {1}',reportDownloadTriggered:"T\xE9l\xE9chargement du rapport lanc\xE9 dans le navigateur",selectReportTimeRangePlaceholder:"S\xE9lectionner la p\xE9riode du rapport",selectReportFormatPlaceholder:"S\xE9lectionner le format du rapport",cleanupNoDeprecated:"\u2139\uFE0F Aucun param\xE8tre obsol\xE8te \xE0 nettoyer.",showMigrationHistoryNoHistory:"Aucun historique de migration trouv\xE9.",resetConfirmation:"Cela r\xE9initialisera tous les param\xE8tres Explorer Dates \xE0 leurs valeurs par d\xE9faut. \xCAtes-vous s\xFBr ?",resetConfirm:"R\xE9initialiser les param\xE8tres",resetCancel:"Annuler",resetSuccess:"\u2705 {0} param\xE8tres ont \xE9t\xE9 r\xE9initialis\xE9s aux valeurs par d\xE9faut.",validateNoIssues:"\u2705 La configuration est valide - aucun probl\xE8me d\xE9tect\xE9 !",validateFoundIssues:"{0} probl\xE8me(s) de configuration trouv\xE9(s). Voulez-vous voir les d\xE9tails ?",validateShowDetails:"Afficher les d\xE9tails",validateDismiss:"Ignorer",migrationNotificationMessage:"Explorer Dates a mis \xE0 jour {0} param\xE8tre(s) pour compatibilit\xE9. Votre configuration a \xE9t\xE9 conserv\xE9e.",migrationViewChanges:"Voir les modifications",migrationOpenSettings:"Ouvrir les param\xE8tres",deprecatedPrompt:"Explorer Dates a trouv\xE9 {0} param\xE8tre(s) obsol\xE8te(s). Voulez-vous les supprimer ?",deprecatedClean:"Nettoyer maintenant",deprecatedKeep:"Conserver les anciens param\xE8tres",deprecatedAskLater:"Demander plus tard",showFileLocation:"Afficher l\u2019emplacement du fichier",teamConfigCorrupted:"Le fichier de configuration d\u2019\xE9quipe Explorer Dates semble corrompu. V\xE9rifiez le fichier .explorer-dates-profiles.json ou restaurez-le depuis une sauvegarde.",appliedFromTeamProfile:'{0} param\xE8tres Explorer Dates appliqu\xE9s depuis le profil d\u2019\xE9quipe "{1}".',documentedOverrides:"Substitutions Explorer Dates document\xE9es dans .vscode/explorer-dates-overrides.md",teamConfigMissingProfile:"La configuration d\u2019\xE9quipe ne contient aucun profil actif.",ephemeralStorageEnospc:"Impossible d\u2019enregistrer la configuration d\u2019\xE9quipe Explorer Dates car le disque est plein.",ephemeralStorageGeneric:"Impossible d\u2019enregistrer la configuration d\u2019\xE9quipe Explorer Dates car l\u2019espace de travail est en lecture seule ou les permissions sont restreintes.",ephemeralStorageSuffix:"Les modifications seront conserv\xE9es en m\xE9moire jusqu\u2019au red\xE9marrage de VS Code et pourraient \xEAtre perdues."}});var cr=_((Ra,Ai)=>{Ai.exports={migrationDetailsTitle:"Explorer Dates - Einstellungen migrieren",migrationDetailsHeader:"Einstellungen migrieren",gitAttributionWarning:"Explorer Dates: Git-Zuordnungsabzeichen sind in VS Code f\xFCr das Web nicht verf\xFCgbar. Zeitbasierte Hervorhebungen bleiben verf\xFCgbar.",noOverridesToDocument:"Keine \xDCberschreibungen zu dokumentieren.",overrideNotesHeader:"# Explorer Dates \xDCberschreibungsnotizen\\n\\n",analysisCommandsDisabled:"Die Analysebefehle von Explorer Dates sind deaktiviert. Tastenkombinationen wie Ctrl+Shift+M/H/A funktionieren nicht, bis explorerDates.enableAnalysisCommands aktiviert ist.",analysisEnableNow:"Jetzt aktivieren",analysisEnablePartially:"Die Aktivierung war teilweise erfolgreich. Aktualisieren Sie explorerDates.enableAnalysisCommands manuell in den verbleibenden Workspace-Ordnern.",analysisEnableFailed:"Aktivierung fehlgeschlagen: Aktualisieren Sie explorerDates.enableAnalysisCommands in den Workspace-Einstellungen.",workspaceTemplatesDisabled:"Workspace-Vorlagen sind deaktiviert. Aktivieren Sie explorerDates.enableWorkspaceTemplates, um diesen Befehl zu verwenden.",workspaceTemplatesDisabledSave:"Workspace-Vorlagen sind deaktiviert. Aktivieren Sie explorerDates.enableWorkspaceTemplates, um Vorlagen zu speichern.",enterTemplateName:"Vorlagenname eingeben",enterTemplateDescription:"Beschreibung eingeben (optional)",failedToOpenTemplateManager:"Fehler beim \xD6ffnen des Vorlagenmanagers: {0}",failedToSaveTemplate:"Fehler beim Speichern der Vorlage: {0}",reportingDisabled:"Berichtsfunktionen sind deaktiviert. Aktivieren Sie explorerDates.enableExportReporting, um Berichte zu erstellen.",failedToGenerateReport:"Fehler beim Erstellen des Berichts: {0}",apiDisabled:"Die Explorer Dates API ist in den Einstellungen deaktiviert.",failedToShowApiInformation:"Fehler beim Anzeigen der API-Informationen: {0}",failedToShowWorkspaceActivity:"Fehler beim Anzeigen der Workspace-Aktivit\xE4t: {0}",failedToShowPerformanceAnalytics:"Fehler beim Anzeigen der Leistungsanalysen: {0}",failedToShowCacheDebugInfo:"Fehler beim Anzeigen der Cache-Debug-Informationen: {0}",noWorkspaceFolderOpen:"Kein Workspace-Ordner ge\xF6ffnet",now:"jetzt",minutes:"Min",hours:"Std",days:"T",weeks:"W",months:"Mon",years:"J",justNow:"gerade eben",minutesAgo:"vor {0} Minute(n)",hoursAgo:"vor {0} Stunde(n)",daysAgo:"vor {0} Tag(en)",lastModified:"Zuletzt ge\xE4ndert",refreshSuccess:"Datumsdekorationen aktualisiert",activationError:"Explorer Dates konnte nicht aktiviert werden",errorAccessingFile:"Fehler beim Zugriff auf Datei f\xFCr Dekoration",clearTelemetryPrompt:"Dies l\xF6scht dauerhaft lokal gespeicherte Telemetrieereignisse f\xFCr Explorer Dates. Diese Aktion kann nicht r\xFCckg\xE4ngig gemacht werden. Fortfahren?",clearTelemetryConfirm:"Telemetrie l\xF6schen",clearTelemetryCancel:"Abbrechen",reportFormatDisabled:'Berichtsformat "{0}" ist deaktiviert. Zul\xE4ssige Formate: {1}',reportDownloadTriggered:"Bericht-Download im Browser gestartet",selectReportTimeRangePlaceholder:"Berichtszeitraum ausw\xE4hlen",selectReportFormatPlaceholder:"Berichtsformat ausw\xE4hlen",cleanupNoDeprecated:"\u2139\uFE0F Keine veralteten Einstellungen zum Bereinigen gefunden.",showMigrationHistoryNoHistory:"Kein Migrationsverlauf gefunden.",resetConfirmation:"Dies setzt alle Explorer Dates Einstellungen auf ihre Standardwerte zur\xFCck. Sind Sie sicher?",resetConfirm:"Einstellungen zur\xFCcksetzen",resetCancel:"Abbrechen",resetSuccess:"\u2705 {0} Einstellungen auf Standard zur\xFCckgesetzt.",validateNoIssues:"\u2705 Konfiguration ist g\xFCltig - keine Probleme gefunden!",validateFoundIssues:"{0} Konfigurationsproblem(e) gefunden. M\xF6chten Sie Details sehen?",validateShowDetails:"Details anzeigen",validateDismiss:"Verwerfen",migrationNotificationMessage:"Explorer Dates hat {0} Einstellung(en) zur Kompatibilit\xE4t aktualisiert. Ihre Konfiguration wurde beibehalten.",migrationViewChanges:"\xC4nderungen anzeigen",migrationOpenSettings:"Einstellungen \xF6ffnen",deprecatedPrompt:"Explorer Dates hat {0} veraltete Einstellung(en) gefunden. M\xF6chten Sie sie entfernen?",deprecatedClean:"Jetzt bereinigen",deprecatedKeep:"Alte Einstellungen behalten",deprecatedAskLater:"Sp\xE4ter fragen",showFileLocation:"Dateispeicherort anzeigen",teamConfigCorrupted:"Die Teamkonfigurationsdatei von Explorer Dates scheint besch\xE4digt zu sein. Bitte pr\xFCfen Sie die Datei .explorer-dates-profiles.json oder stellen Sie sie aus einem Backup wieder her.",appliedFromTeamProfile:'{0} Explorer Dates-Einstellungen aus dem Teamprofil "{1}" angewendet.',documentedOverrides:"Explorer Dates-\xDCberschreibungen in .vscode/explorer-dates-overrides.md dokumentiert",teamConfigMissingProfile:"Der Teamkonfiguration fehlt ein aktives Profil.",ephemeralStorageEnospc:"Die Teamkonfiguration von Explorer Dates konnte nicht gespeichert werden, da die Festplatte voll ist.",ephemeralStorageGeneric:"Die Teamkonfiguration von Explorer Dates konnte nicht gespeichert werden, da der Workspace schreibgesch\xFCtzt ist oder die Berechtigungen eingeschr\xE4nkt sind.",ephemeralStorageSuffix:"\xC4nderungen werden im Speicher behalten, bis VS Code neu startet, und k\xF6nnen verloren gehen."}});var lr=_((Pa,Ri)=>{Ri.exports={migrationDetailsTitle:"Explorer Dates - \u8A2D\u5B9A\u306E\u79FB\u884C",migrationDetailsHeader:"\u8A2D\u5B9A\u306E\u79FB\u884C",gitAttributionWarning:"Explorer Dates: Git \u306E\u5E30\u5C5E\u30D0\u30C3\u30B8\u306F VS Code for Web \u3067\u306F\u5229\u7528\u3067\u304D\u307E\u305B\u3093\u3002\u6642\u9593\u30D9\u30FC\u30B9\u306E\u88C5\u98FE\u306F\u5F15\u304D\u7D9A\u304D\u5229\u7528\u3067\u304D\u307E\u3059\u3002",noOverridesToDocument:"\u30C9\u30AD\u30E5\u30E1\u30F3\u30C8\u5316\u3059\u308B\u4E0A\u66F8\u304D\u306F\u3042\u308A\u307E\u305B\u3093\u3002",overrideNotesHeader:"# Explorer Dates \u4E0A\u66F8\u304D\u30E1\u30E2\\n\\n",analysisCommandsDisabled:"Explorer Dates \u306E\u5206\u6790\u30B3\u30DE\u30F3\u30C9\u306F\u7121\u52B9\u306B\u306A\u3063\u3066\u3044\u307E\u3059\u3002Ctrl+Shift+M/H/A \u306A\u3069\u306E\u30B7\u30E7\u30FC\u30C8\u30AB\u30C3\u30C8\u306F explorerDates.enableAnalysisCommands \u3092\u6709\u52B9\u306B\u3059\u308B\u307E\u3067\u6A5F\u80FD\u3057\u307E\u305B\u3093\u3002",analysisEnableNow:"\u4ECA\u3059\u3050\u6709\u52B9\u306B\u3059\u308B",analysisEnablePartially:"\u6709\u52B9\u5316\u306F\u4E00\u90E8\u6210\u529F\u3057\u307E\u3057\u305F\u3002\u6B8B\u308A\u306E\u30EF\u30FC\u30AF\u30B9\u30DA\u30FC\u30B9\u30D5\u30A9\u30EB\u30C0\u30FC\u3067 explorerDates.enableAnalysisCommands \u3092\u624B\u52D5\u3067\u66F4\u65B0\u3057\u3066\u304F\u3060\u3055\u3044\u3002",analysisEnableFailed:"\u6709\u52B9\u5316\u306B\u5931\u6557\u3057\u307E\u3057\u305F\uFF1A\u30EF\u30FC\u30AF\u30B9\u30DA\u30FC\u30B9\u8A2D\u5B9A\u3067 explorerDates.enableAnalysisCommands \u3092\u66F4\u65B0\u3057\u3066\u304F\u3060\u3055\u3044\u3002",workspaceTemplatesDisabled:"\u30EF\u30FC\u30AF\u30B9\u30DA\u30FC\u30B9\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8\u306F\u7121\u52B9\u306B\u306A\u3063\u3066\u3044\u307E\u3059\u3002\u3053\u306E\u30B3\u30DE\u30F3\u30C9\u3092\u4F7F\u7528\u3059\u308B\u306B\u306F explorerDates.enableWorkspaceTemplates \u3092\u6709\u52B9\u306B\u3057\u3066\u304F\u3060\u3055\u3044\u3002",workspaceTemplatesDisabledSave:"\u30EF\u30FC\u30AF\u30B9\u30DA\u30FC\u30B9\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8\u306F\u7121\u52B9\u306B\u306A\u3063\u3066\u3044\u307E\u3059\u3002\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8\u3092\u4FDD\u5B58\u3059\u308B\u306B\u306F explorerDates.enableWorkspaceTemplates \u3092\u6709\u52B9\u306B\u3057\u3066\u304F\u3060\u3055\u3044\u3002",enterTemplateName:"\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8\u540D\u3092\u5165\u529B",enterTemplateDescription:"\u8AAC\u660E\u3092\u5165\u529B\uFF08\u4EFB\u610F\uFF09",failedToOpenTemplateManager:"\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8\u30DE\u30CD\u30FC\u30B8\u30E3\u30FC\u3092\u958B\u3051\u307E\u305B\u3093\u3067\u3057\u305F: {0}",failedToSaveTemplate:"\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8\u306E\u4FDD\u5B58\u306B\u5931\u6557\u3057\u307E\u3057\u305F: {0}",reportingDisabled:"\u30EC\u30DD\u30FC\u30C8\u6A5F\u80FD\u306F\u7121\u52B9\u306B\u306A\u3063\u3066\u3044\u307E\u3059\u3002\u30EC\u30DD\u30FC\u30C8\u3092\u751F\u6210\u3059\u308B\u306B\u306F explorerDates.enableExportReporting \u3092\u6709\u52B9\u306B\u3057\u3066\u304F\u3060\u3055\u3044\u3002",failedToGenerateReport:"\u30EC\u30DD\u30FC\u30C8\u306E\u751F\u6210\u306B\u5931\u6557\u3057\u307E\u3057\u305F: {0}",apiDisabled:"Explorer Dates API \u306F\u8A2D\u5B9A\u3067\u7121\u52B9\u306B\u306A\u3063\u3066\u3044\u307E\u3059\u3002",failedToShowApiInformation:"API \u60C5\u5831\u306E\u8868\u793A\u306B\u5931\u6557\u3057\u307E\u3057\u305F: {0}",failedToShowWorkspaceActivity:"\u30EF\u30FC\u30AF\u30B9\u30DA\u30FC\u30B9\u306E\u30A2\u30AF\u30C6\u30A3\u30D3\u30C6\u30A3\u3092\u8868\u793A\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F: {0}",failedToShowPerformanceAnalytics:"\u30D1\u30D5\u30A9\u30FC\u30DE\u30F3\u30B9\u5206\u6790\u3092\u8868\u793A\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F: {0}",failedToShowCacheDebugInfo:"\u30AD\u30E3\u30C3\u30B7\u30E5\u306E\u30C7\u30D0\u30C3\u30B0\u60C5\u5831\u3092\u8868\u793A\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F: {0}",noWorkspaceFolderOpen:"\u30EF\u30FC\u30AF\u30B9\u30DA\u30FC\u30B9\u30D5\u30A9\u30EB\u30C0\u30FC\u304C\u958B\u304B\u308C\u3066\u3044\u307E\u305B\u3093",now:"\u4ECA",minutes:"\u5206",hours:"\u6642\u9593",days:"\u65E5",weeks:"\u9031",months:"\u304B\u6708",years:"\u5E74",justNow:"\u305F\u3063\u305F\u4ECA",minutesAgo:"{0} \u5206\u524D",hoursAgo:"{0} \u6642\u9593\u524D",daysAgo:"{0} \u65E5\u524D",lastModified:"\u6700\u7D42\u66F4\u65B0",refreshSuccess:"\u65E5\u4ED8\u88C5\u98FE\u3092\u66F4\u65B0\u3057\u307E\u3057\u305F",activationError:"Explorer Dates \u306E\u6709\u52B9\u5316\u306B\u5931\u6557\u3057\u307E\u3057\u305F",errorAccessingFile:"\u88C5\u98FE\u7528\u30D5\u30A1\u30A4\u30EB\u3078\u306E\u30A2\u30AF\u30BB\u30B9\u30A8\u30E9\u30FC",clearTelemetryPrompt:"Explorer Dates \u306E\u30ED\u30FC\u30AB\u30EB\u4FDD\u5B58\u30C6\u30EC\u30E1\u30C8\u30EA\u30A4\u30D9\u30F3\u30C8\u3092\u5B8C\u5168\u306B\u524A\u9664\u3057\u307E\u3059\u3002\u3053\u306E\u64CD\u4F5C\u306F\u5143\u306B\u623B\u305B\u307E\u305B\u3093\u3002\u7D9A\u884C\u3057\u307E\u3059\u304B\uFF1F",clearTelemetryConfirm:"\u30C6\u30EC\u30E1\u30C8\u30EA\u3092\u524A\u9664",clearTelemetryCancel:"\u30AD\u30E3\u30F3\u30BB\u30EB",reportFormatDisabled:"\u30EC\u30DD\u30FC\u30C8\u5F62\u5F0F\u300C{0}\u300D\u306F\u7121\u52B9\u3067\u3059\u3002\u8A31\u53EF\u3055\u308C\u3066\u3044\u308B\u5F62\u5F0F: {1}",reportDownloadTriggered:"\u30D6\u30E9\u30A6\u30B6\u3067\u30EC\u30DD\u30FC\u30C8\u306E\u30C0\u30A6\u30F3\u30ED\u30FC\u30C9\u3092\u958B\u59CB\u3057\u307E\u3057\u305F",selectReportTimeRangePlaceholder:"\u30EC\u30DD\u30FC\u30C8\u306E\u671F\u9593\u3092\u9078\u629E",selectReportFormatPlaceholder:"\u30EC\u30DD\u30FC\u30C8\u5F62\u5F0F\u3092\u9078\u629E",cleanupNoDeprecated:"\u2139\uFE0F \u30AF\u30EA\u30FC\u30F3\u30A2\u30C3\u30D7\u3059\u308B\u975E\u63A8\u5968\u8A2D\u5B9A\u306F\u3042\u308A\u307E\u305B\u3093\u3002",showMigrationHistoryNoHistory:"\u79FB\u884C\u5C65\u6B74\u304C\u898B\u3064\u304B\u308A\u307E\u305B\u3093\u3002",resetConfirmation:"Explorer Dates \u306E\u3059\u3079\u3066\u306E\u8A2D\u5B9A\u3092\u65E2\u5B9A\u5024\u306B\u30EA\u30BB\u30C3\u30C8\u3057\u307E\u3059\u3002\u3088\u308D\u3057\u3044\u3067\u3059\u304B\uFF1F",resetConfirm:"\u8A2D\u5B9A\u3092\u30EA\u30BB\u30C3\u30C8",resetCancel:"\u30AD\u30E3\u30F3\u30BB\u30EB",resetSuccess:"\u2705 {0} \u4EF6\u306E\u8A2D\u5B9A\u3092\u65E2\u5B9A\u5024\u306B\u30EA\u30BB\u30C3\u30C8\u3057\u307E\u3057\u305F\u3002",validateNoIssues:"\u2705 \u8A2D\u5B9A\u306F\u6709\u52B9\u3067\u3059 - \u554F\u984C\u306F\u898B\u3064\u304B\u308A\u307E\u305B\u3093\u3067\u3057\u305F\uFF01",validateFoundIssues:"{0} \u4EF6\u306E\u8A2D\u5B9A\u554F\u984C\u304C\u898B\u3064\u304B\u308A\u307E\u3057\u305F\u3002\u8A73\u7D30\u3092\u8868\u793A\u3057\u307E\u3059\u304B\uFF1F",validateShowDetails:"\u8A73\u7D30\u3092\u8868\u793A",validateDismiss:"\u9589\u3058\u308B",migrationNotificationMessage:"Explorer Dates \u306F\u4E92\u63DB\u6027\u306E\u305F\u3081\u306B {0} \u4EF6\u306E\u8A2D\u5B9A\u3092\u66F4\u65B0\u3057\u307E\u3057\u305F\u3002\u8A2D\u5B9A\u306F\u4FDD\u6301\u3055\u308C\u3066\u3044\u307E\u3059\u3002",migrationViewChanges:"\u5909\u66F4\u3092\u8868\u793A",migrationOpenSettings:"\u8A2D\u5B9A\u3092\u958B\u304F",deprecatedPrompt:"Explorer Dates \u306F {0} \u4EF6\u306E\u975E\u63A8\u5968\u8A2D\u5B9A\u3092\u691C\u51FA\u3057\u307E\u3057\u305F\u3002\u524A\u9664\u3057\u307E\u3059\u304B\uFF1F",deprecatedClean:"\u4ECA\u3059\u3050\u30AF\u30EA\u30FC\u30F3\u30A2\u30C3\u30D7",deprecatedKeep:"\u53E4\u3044\u8A2D\u5B9A\u3092\u4FDD\u6301",deprecatedAskLater:"\u5F8C\u3067\u78BA\u8A8D",showFileLocation:"\u30D5\u30A1\u30A4\u30EB\u306E\u5834\u6240\u3092\u8868\u793A",teamConfigCorrupted:"Explorer Dates \u306E\u30C1\u30FC\u30E0\u8A2D\u5B9A\u30D5\u30A1\u30A4\u30EB\u304C\u7834\u640D\u3057\u3066\u3044\u308B\u53EF\u80FD\u6027\u304C\u3042\u308A\u307E\u3059\u3002.explorer-dates-profiles.json \u3092\u78BA\u8A8D\u3059\u308B\u304B\u30D0\u30C3\u30AF\u30A2\u30C3\u30D7\u304B\u3089\u5FA9\u5143\u3057\u3066\u304F\u3060\u3055\u3044\u3002",appliedFromTeamProfile:"\u30C1\u30FC\u30E0\u30D7\u30ED\u30D5\u30A1\u30A4\u30EB\u300C{1}\u300D\u304B\u3089 {0} \u4EF6\u306E Explorer Dates \u8A2D\u5B9A\u3092\u9069\u7528\u3057\u307E\u3057\u305F\u3002",documentedOverrides:".vscode/explorer-dates-overrides.md \u306B Explorer Dates \u306E\u4E0A\u66F8\u304D\u3092\u8A18\u9332\u3057\u307E\u3057\u305F",teamConfigMissingProfile:"\u30C1\u30FC\u30E0\u8A2D\u5B9A\u306B\u30A2\u30AF\u30C6\u30A3\u30D6\u306A\u30D7\u30ED\u30D5\u30A1\u30A4\u30EB\u304C\u3042\u308A\u307E\u305B\u3093\u3002",ephemeralStorageEnospc:"\u30C7\u30A3\u30B9\u30AF\u5BB9\u91CF\u4E0D\u8DB3\u306E\u305F\u3081\u3001Explorer Dates \u306E\u30C1\u30FC\u30E0\u8A2D\u5B9A\u3092\u4FDD\u5B58\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002",ephemeralStorageGeneric:"\u30EF\u30FC\u30AF\u30B9\u30DA\u30FC\u30B9\u304C\u8AAD\u307F\u53D6\u308A\u5C02\u7528\u3001\u307E\u305F\u306F\u6A29\u9650\u304C\u5236\u9650\u3055\u308C\u3066\u3044\u308B\u305F\u3081\u3001Explorer Dates \u306E\u30C1\u30FC\u30E0\u8A2D\u5B9A\u3092\u4FDD\u5B58\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002",ephemeralStorageSuffix:"\u5909\u66F4\u306F VS Code \u304C\u518D\u8D77\u52D5\u3059\u308B\u307E\u3067\u30E1\u30E2\u30EA\u306B\u4FDD\u6301\u3055\u308C\u308B\u305F\u3081\u3001\u5931\u308F\u308C\u308B\u53EF\u80FD\u6027\u304C\u3042\u308A\u307E\u3059\u3002"}});var ur=_((xa,Pi)=>{Pi.exports={migrationDetailsTitle:"Explorer Dates - \u8BBE\u7F6E\u8FC1\u79FB",migrationDetailsHeader:"\u8BBE\u7F6E\u8FC1\u79FB",gitAttributionWarning:"Explorer Dates\uFF1AGit \u5F52\u5C5E\u5FBD\u7AE0\u5728 VS Code Web \u7248\u4E2D\u4E0D\u53EF\u7528\u3002\u57FA\u4E8E\u65F6\u95F4\u7684\u88C5\u9970\u4ECD\u7136\u53EF\u7528\u3002",noOverridesToDocument:"\u6CA1\u6709\u9700\u8981\u8BB0\u5F55\u7684\u8986\u76D6\u9879\u3002",overrideNotesHeader:"# Explorer Dates \u8986\u76D6\u8BF4\u660E\\n\\n",analysisCommandsDisabled:"Explorer Dates \u5206\u6790\u547D\u4EE4\u5DF2\u7981\u7528\u3002\u5728\u542F\u7528 explorerDates.enableAnalysisCommands \u4E4B\u524D\uFF0CCtrl+Shift+M/H/A \u7B49\u5FEB\u6377\u952E\u5C06\u65E0\u6CD5\u4F7F\u7528\u3002",analysisEnableNow:"\u7ACB\u5373\u542F\u7528",analysisEnablePartially:"\u542F\u7528\u90E8\u5206\u6210\u529F\u3002\u8BF7\u5728\u5269\u4F59\u7684\u5DE5\u4F5C\u533A\u6587\u4EF6\u5939\u4E2D\u624B\u52A8\u66F4\u65B0 explorerDates.enableAnalysisCommands\u3002",analysisEnableFailed:"\u542F\u7528\u5931\u8D25\uFF1A\u8BF7\u5728\u5DE5\u4F5C\u533A\u8BBE\u7F6E\u4E2D\u66F4\u65B0 explorerDates.enableAnalysisCommands\u3002",workspaceTemplatesDisabled:"\u5DE5\u4F5C\u533A\u6A21\u677F\u5DF2\u7981\u7528\u3002\u542F\u7528 explorerDates.enableWorkspaceTemplates \u4EE5\u4F7F\u7528\u6B64\u547D\u4EE4\u3002",workspaceTemplatesDisabledSave:"\u5DE5\u4F5C\u533A\u6A21\u677F\u5DF2\u7981\u7528\u3002\u542F\u7528 explorerDates.enableWorkspaceTemplates \u4EE5\u4FDD\u5B58\u6A21\u677F\u3002",enterTemplateName:"\u8F93\u5165\u6A21\u677F\u540D\u79F0",enterTemplateDescription:"\u8F93\u5165\u63CF\u8FF0\uFF08\u53EF\u9009\uFF09",failedToOpenTemplateManager:"\u65E0\u6CD5\u6253\u5F00\u6A21\u677F\u7BA1\u7406\u5668\uFF1A{0}",failedToSaveTemplate:"\u4FDD\u5B58\u6A21\u677F\u5931\u8D25\uFF1A{0}",reportingDisabled:"\u62A5\u8868\u529F\u80FD\u5DF2\u7981\u7528\u3002\u542F\u7528 explorerDates.enableExportReporting \u4EE5\u751F\u6210\u62A5\u8868\u3002",failedToGenerateReport:"\u751F\u6210\u62A5\u8868\u5931\u8D25\uFF1A{0}",apiDisabled:"Explorer Dates API \u5DF2\u901A\u8FC7\u8BBE\u7F6E\u7981\u7528\u3002",failedToShowApiInformation:"\u663E\u793A API \u4FE1\u606F\u5931\u8D25\uFF1A{0}",failedToShowWorkspaceActivity:"\u663E\u793A\u5DE5\u4F5C\u533A\u6D3B\u52A8\u5931\u8D25\uFF1A{0}",failedToShowPerformanceAnalytics:"\u663E\u793A\u6027\u80FD\u5206\u6790\u5931\u8D25\uFF1A{0}",failedToShowCacheDebugInfo:"\u663E\u793A\u7F13\u5B58\u8C03\u8BD5\u4FE1\u606F\u5931\u8D25\uFF1A{0}",noWorkspaceFolderOpen:"\u672A\u6253\u5F00\u4EFB\u4F55\u5DE5\u4F5C\u533A\u6587\u4EF6\u5939",now:"\u73B0\u5728",minutes:"\u5206",hours:"\u5C0F\u65F6",days:"\u5929",weeks:"\u5468",months:"\u4E2A\u6708",years:"\u5E74",justNow:"\u521A\u521A",minutesAgo:"{0} \u5206\u949F\u524D",hoursAgo:"{0} \u5C0F\u65F6\u524D",daysAgo:"{0} \u5929\u524D",lastModified:"\u6700\u540E\u4FEE\u6539",refreshSuccess:"\u65E5\u671F\u88C5\u9970\u5DF2\u5237\u65B0",activationError:"Explorer Dates \u542F\u52A8\u5931\u8D25",errorAccessingFile:"\u8BBF\u95EE\u7528\u4E8E\u88C5\u9970\u7684\u6587\u4EF6\u65F6\u51FA\u9519",clearTelemetryPrompt:"\u8FD9\u5C06\u6C38\u4E45\u5220\u9664\u672C\u5730\u5B58\u50A8\u7684 Explorer Dates \u9065\u6D4B\u4E8B\u4EF6\u3002\u6B64\u64CD\u4F5C\u65E0\u6CD5\u64A4\u9500\u3002\u662F\u5426\u7EE7\u7EED\uFF1F",clearTelemetryConfirm:"\u6E05\u9664\u9065\u6D4B",clearTelemetryCancel:"\u53D6\u6D88",reportFormatDisabled:"\u62A5\u8868\u683C\u5F0F\u201C{0}\u201D\u5DF2\u7981\u7528\u3002\u5141\u8BB8\u7684\u683C\u5F0F\uFF1A{1}",reportDownloadTriggered:"\u5DF2\u5728\u6D4F\u89C8\u5668\u4E2D\u89E6\u53D1\u62A5\u8868\u4E0B\u8F7D",selectReportTimeRangePlaceholder:"\u9009\u62E9\u62A5\u8868\u65F6\u95F4\u8303\u56F4",selectReportFormatPlaceholder:"\u9009\u62E9\u62A5\u8868\u683C\u5F0F",cleanupNoDeprecated:"\u2139\uFE0F \u672A\u53D1\u73B0\u9700\u8981\u6E05\u7406\u7684\u5DF2\u5F03\u7528\u8BBE\u7F6E\u3002",showMigrationHistoryNoHistory:"\u672A\u627E\u5230\u8FC1\u79FB\u5386\u53F2\u3002",resetConfirmation:"\u8FD9\u5C06\u628A\u6240\u6709 Explorer Dates \u8BBE\u7F6E\u91CD\u7F6E\u4E3A\u9ED8\u8BA4\u503C\u3002\u786E\u5B9A\u5417\uFF1F",resetConfirm:"\u91CD\u7F6E\u8BBE\u7F6E",resetCancel:"\u53D6\u6D88",resetSuccess:"\u2705 \u5DF2\u5C06 {0} \u9879\u8BBE\u7F6E\u91CD\u7F6E\u4E3A\u9ED8\u8BA4\u503C\u3002",validateNoIssues:"\u2705 \u914D\u7F6E\u6709\u6548 - \u672A\u53D1\u73B0\u95EE\u9898\uFF01",validateFoundIssues:"\u53D1\u73B0 {0} \u4E2A\u914D\u7F6E\u95EE\u9898\u3002\u662F\u5426\u67E5\u770B\u8BE6\u7EC6\u4FE1\u606F\uFF1F",validateShowDetails:"\u663E\u793A\u8BE6\u7EC6\u4FE1\u606F",validateDismiss:"\u5173\u95ED",migrationNotificationMessage:"Explorer Dates \u4E3A\u517C\u5BB9\u6027\u66F4\u65B0\u4E86 {0} \u9879\u8BBE\u7F6E\u3002\u60A8\u7684\u914D\u7F6E\u5DF2\u4FDD\u7559\u3002",migrationViewChanges:"\u67E5\u770B\u66F4\u6539",migrationOpenSettings:"\u6253\u5F00\u8BBE\u7F6E",deprecatedPrompt:"Explorer Dates \u53D1\u73B0 {0} \u4E2A\u5DF2\u5F03\u7528\u8BBE\u7F6E\u3002\u662F\u5426\u5220\u9664\uFF1F",deprecatedClean:"\u7ACB\u5373\u6E05\u7406",deprecatedKeep:"\u4FDD\u7559\u65E7\u8BBE\u7F6E",deprecatedAskLater:"\u7A0D\u540E\u8BE2\u95EE",showFileLocation:"\u663E\u793A\u6587\u4EF6\u4F4D\u7F6E",teamConfigCorrupted:"Explorer Dates \u56E2\u961F\u914D\u7F6E\u6587\u4EF6\u4F3C\u4E4E\u5DF2\u635F\u574F\u3002\u8BF7\u68C0\u67E5 .explorer-dates-profiles.json \u6587\u4EF6\u6216\u4ECE\u5907\u4EFD\u6062\u590D\u3002",appliedFromTeamProfile:"\u5DF2\u4ECE\u56E2\u961F\u914D\u7F6E\u6587\u4EF6\u201C{1}\u201D\u5E94\u7528 {0} \u9879 Explorer Dates \u8BBE\u7F6E\u3002",documentedOverrides:"\u5DF2\u5728 .vscode/explorer-dates-overrides.md \u4E2D\u8BB0\u5F55 Explorer Dates \u8986\u76D6\u9879",teamConfigMissingProfile:"\u56E2\u961F\u914D\u7F6E\u7F3A\u5C11\u6D3B\u52A8\u914D\u7F6E\u6587\u4EF6\u3002",ephemeralStorageEnospc:"\u7531\u4E8E\u78C1\u76D8\u5DF2\u6EE1\uFF0C\u65E0\u6CD5\u4FDD\u5B58 Explorer Dates \u56E2\u961F\u914D\u7F6E\u3002",ephemeralStorageGeneric:"\u7531\u4E8E\u5DE5\u4F5C\u533A\u4E3A\u53EA\u8BFB\u6216\u6743\u9650\u53D7\u9650\uFF0C\u65E0\u6CD5\u4FDD\u5B58 Explorer Dates \u56E2\u961F\u914D\u7F6E\u3002",ephemeralStorageSuffix:"\u66F4\u6539\u5C06\u5728 VS Code \u91CD\u542F\u524D\u4FDD\u5B58\u5728\u5185\u5B58\u4E2D\uFF0C\u56E0\u6B64\u53EF\u80FD\u4F1A\u4E22\u5931\u3002"}});var dr=_((Ma,hr)=>{var j={};j.en=ar();j.es=or();j.fr=sr();j.de=cr();j.ja=lr();j.zh=ur();hr.exports=j});var ot=_((Ia,fr)=>{var V=require("vscode"),z={en:{now:"now",minutes:"m",hours:"h",days:"d",weeks:"w",months:"mo",years:"y",justNow:"just now",minutesAgo:e=>`${e} minute${e!==1?"s":""} ago`,hoursAgo:e=>`${e} hour${e!==1?"s":""} ago`,yesterday:"yesterday",daysAgo:e=>`${e} day${e!==1?"s":""} ago`,lastModified:"Last modified",refreshSuccess:"Date decorations refreshed",activationError:"Explorer Dates failed to activate",errorAccessingFile:"Error accessing file for decoration",clearTelemetryPrompt:"This will permanently delete locally-stored telemetry events for Explorer Dates. This action cannot be undone. Proceed?",clearTelemetryConfirm:"Clear Telemetry",clearTelemetryCancel:"Cancel",clearTelemetrySuccess:"\u2705 Explorer Dates telemetry cleared.",migrateChecking:"Checking for settings that need migration...",migrateAllUpToDate:"\u2705 All settings are up to date!",migrateApplied:e=>`\u2705 Explorer Dates maintenance applied: ${e}.`,organizeSettingsResult:e=>`Explorer Dates settings organized: ${e}`,cleanupSuccess:"\u2705 Deprecated settings have been cleaned up!",reportFormatDisabled:(e,t)=>`Report format "${e}" is disabled. Allowed formats: ${t}`,reportSaved:e=>`Report saved to ${e}`,reportGenerateFailed:"Failed to generate report",reportDownloadTriggered:"Report download triggered in browser",selectReportTimeRangePlaceholder:"Select report time range",selectReportFormatPlaceholder:"Select report format",cleanupNoDeprecated:"\u2139\uFE0F No deprecated settings found to clean up.",showMigrationHistoryNoHistory:"No migration history found.",resetConfirmation:"This will reset all Explorer Dates settings to their default values. Are you sure?",migrationDetailsTitle:"Explorer Dates - Settings Migration",migrationDetailsHeader:"Settings Migration",gitAttributionWarning:"Explorer Dates: Git attribution badges are unavailable on VS Code for Web. Time-based decorations remain available.",noOverridesToDocument:"No overrides to document.",overrideNotesHeader:`# Explorer Dates Override Notes +var Yr=Object.create;var yt=Object.defineProperty;var Zr=Object.getOwnPropertyDescriptor;var Jr=Object.getOwnPropertyNames;var Qr=Object.getPrototypeOf,en=Object.prototype.hasOwnProperty;var _=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var tn=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Jr(t))!en.call(e,i)&&i!==r&&yt(e,i,{get:()=>t[i],enumerable:!(n=Zr(t,i))||n.enumerable});return e};var R=(e,t,r)=>(r=e!=null?Yr(Qr(e)):{},tn(t||!e||!e.__esModule?yt(r,"default",{value:e,enumerable:!0}):r,e));var J=_((ga,_t)=>{var bt=require("vscode");function rn(){try{let e=bt?.env?.uiKind,t=bt?.UIKind?.Web;return e!==void 0&&t!==void 0&&e===t}catch{return!1}}_t.exports={isWebEnvironment:rn}});var ce=_((exports,module)=>{var chunk=null;try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){try{chunk=dynamicRequire("../chunks/utils-shared-chunk")}catch{}try{chunk||(chunk=dynamicRequire("./chunks/utils-shared-chunk"))}catch{}try{chunk||(chunk=dynamicRequire("../chunks/path-utils-chunk"))}catch{}try{chunk||(chunk=dynamicRequire("./chunks/path-utils-chunk"))}catch{}}}catch{}if(chunk&&chunk.normalizePath)module.exports={normalizePath:chunk.normalizePath,getFileName:chunk.getFileName,getExtension:chunk.getExtension,getDirectory:chunk.getDirectory,joinPath:chunk.joinPath,getCacheKey:chunk.getCacheKey,getUriPath:chunk.getUriPath,getRelativePath:chunk.getRelativePath};else{let e=function(u=""){return u?u.replace(/\\/g,"/"):""},t=function(u=""){let l=e(u);return l?l.split("/").filter(Boolean):[]},r=function(u=""){let l=t(u);return l.length?l[l.length-1]:""},n=function(u=""){let l=r(u),d=l.lastIndexOf(".");return d<=0?"":l.substring(d).toLowerCase()},i=function(u=""){let l=e(u),d=l.lastIndexOf("/");return d===-1?"":l.substring(0,d)},a=function(...u){return e(u.filter(Boolean).join("/")).replace(/\/+/g,"/")},o=function(u=""){return e(u).toLowerCase()},s=function(u=""){if(!u)return"";if(typeof u=="string")return u;if(typeof u.fsPath=="string"&&u.fsPath.length>0)return u.fsPath;if(typeof u.path=="string"&&u.path.length>0)return u.path;if(typeof u.toString=="function")try{return u.toString(!0)}catch{return u.toString()}return String(u)},c=function(u="",l=""){let d=e(u),h=e(l);return d&&h.startsWith(d)?h.substring(d.length).replace(/^\/+/,""):h};normalizePath=e,getSegments=t,getFileName=r,getExtension=n,getDirectory=i,joinPath=a,getCacheKey=o,getUriPath=s,getRelativePath=c,module.exports={normalizePath:e,getFileName:r,getExtension:n,getDirectory:i,joinPath:a,getCacheKey:o,getUriPath:s,getRelativePath:c}}var normalizePath,getSegments,getFileName,getExtension,getDirectory,joinPath,getCacheKey,getUriPath,getRelativePath});var kt=_((ma,wt)=>{var ye=class extends Error{constructor(t,r,n={}){super(r),this.code=t,this.context=n,this.name="ExtensionError"}},Et={FILE_PERMISSION_DENIED:"FILE_PERMISSION_DENIED",WORKSPACE_TOO_LARGE:"WORKSPACE_TOO_LARGE",CHUNK_LOAD_FAILED:"CHUNK_LOAD_FAILED"};function nn(e){if(!e)return!1;let t=e.code||e?.name;return["EACCES","EPERM","EROFS","NoPermissions"].includes(t)}var Ue=class extends ye{constructor(t,r,n={}){let{recoverable:i=!0,context:a={}}=n;super(Et.CHUNK_LOAD_FAILED,`Failed to load ${t}: ${r}`,{chunkName:t,recoverable:i,...a}),this.name="ChunkLoadError",this.chunkName=t,this.recoverable=i}};function an(e,t,r={}){let n=require("vscode"),{userFacing:i=!0}=r,a=t?.recoverable??!0;i&&!a&&n.window.showErrorMessage(`Explorer Dates: ${e} feature unavailable. Please reinstall or rebuild the extension.`)}wt.exports={ExtensionError:ye,ERROR_CODES:Et,isPermissionError:nn,ChunkLoadError:Ue,handleChunkFailure:an}});var $e=_((pa,Tt)=>{var Dt="EXPLORER_DATES_FORCE_VSCODE_FS";function Ct(e,t=process.env){return String(t?.[e]||"")==="1"}function be(e){let t=e&&typeof e=="object"?e:null,r=String(t?.scheme||(typeof e=="string"&&/^[a-z][a-z0-9+.-]*:/i.test(e)?e.split(":",1)[0]:"file")).toLowerCase(),n=String(t?.authority||""),i=t?.path||t?.fsPath||(typeof e=="string"?e.replace(/^[a-z][a-z0-9+.-]*:\/\//i,""):"");return{scheme:r,authority:n,path:String(i||"")}}function on({uri:e,isWeb:t=!1,remoteName:r="",forceWorkspaceFs:n=Ct(Dt)}={}){let i=be(e),a=i.scheme!=="file",o=!!t,s=!!r,c=!!(n||o||s||a);return{scheme:i.scheme,authority:i.authority,isFileScheme:!a,isVirtual:a,isBrowser:o,isRemote:s,forceWorkspaceFs:!!n,filesystem:c?"workspace.fs":"node.fs",provider:a?i.scheme==="github"||i.scheme==="vscode-vfs"?"github":"virtual":"filesystem"}}function St({uri:e,platform:t=process.platform,caseSensitive:r}={}){return typeof r=="boolean"?r:be(e).scheme!=="file"?!0:t!=="win32"}function sn(e,t={}){let r=be(e),n=r.path.replace(/\\/g,"/").replace(/\/+/g,"/"),i=`${r.scheme}://${r.authority}${n}`;return St({uri:e,...t})?i:i.toLowerCase()}function He(e){if(e instanceof Date){let t=e.getTime();return Number.isFinite(t)?t:null}if(typeof e=="number")return Number.isFinite(e)?e:null;if(typeof e=="string"&&e.trim()){let t=Date.parse(e);return Number.isFinite(t)?t:null}return null}function cn(e){if(!e||typeof e!="object")return null;let t=He(e.mtime),r=He(e.ctime);return{...e,mtimeMs:t,ctimeMs:r}}Tt.exports={FORCE_WORKSPACE_FS_ENV:Dt,envFlag:Ct,getUriParts:be,getEnvironmentContract:on,isCaseSensitive:St,resourceIdentity:sn,normalizeTimestamp:He,normalizeStat:cn}});var K=_((ya,At)=>{function ln(){return typeof Date=="function"&&Date.now?Date.now():16409952e5}function vt(e){return!!(e&&typeof e=="object"&&typeof e.getTime=="function")}function un(e){if(vt(e))return e;if(typeof e=="number")return new Date(e);if(typeof e=="string"){let t=Date.parse(e);return isNaN(t)?new Date:new Date(t)}return new Date}function B(e=""){return e?e.replace(/\\/g,"/"):""}function hn(e=""){let t=B(e);return t?t.split("/").filter(Boolean):[]}function Ft(e=""){let t=hn(e);return t.length?t[t.length-1]:""}function dn(e=""){let t=Ft(e),r=t.lastIndexOf(".");return r<=0?"":t.substring(r).toLowerCase()}function fn(e=""){let t=B(e),r=t.lastIndexOf("/");return r===-1?"":t.substring(0,r)}function gn(...e){return B(e.filter(Boolean).join("/")).replace(/\/+/g,"/")}function mn(e=""){return B(e).toLowerCase()}function pn(e=""){if(!e)return"";if(typeof e=="string")return e;if(typeof e.fsPath=="string"&&e.fsPath.length>0)return e.fsPath;if(typeof e.path=="string"&&e.path.length>0)return e.path;if(typeof e.toString=="function")try{return e.toString(!0)}catch{return e.toString()}return String(e)}function yn(e="",t=""){let r=B(e),n=B(t);return r&&n.startsWith(r)?n.substring(r.length).replace(/^\/+/,""):n}At.exports={ensureDate:un,isDateLike:vt,getCurrentTimestamp:ln,normalizePath:B,getFileName:Ft,getExtension:dn,getDirectory:fn,joinPath:gn,getCacheKey:mn,getUriPath:pn,getRelativePath:yn}});var Rt=_((exports,module)=>{var chunk=null;try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){try{chunk=dynamicRequire("../chunks/utils-shared-chunk")}catch{}try{chunk||(chunk=dynamicRequire("./chunks/utils-shared-chunk"))}catch{}try{chunk||(chunk=dynamicRequire("../chunks/date-helpers-chunk"))}catch{}try{chunk||(chunk=dynamicRequire("./chunks/date-helpers-chunk"))}catch{}}}catch{}if(chunk&&(chunk.ensureDate||chunk.isDateLike||chunk.getCurrentTimestamp))module.exports={ensureDate:chunk.ensureDate,isDateLike:chunk.isDateLike,getCurrentTimestamp:chunk.getCurrentTimestamp};else{let e=function(){return typeof Date=="function"&&Date.now?Date.now():16409952e5},t=function(n){return!!(n&&typeof n=="object"&&typeof n.getTime=="function")},r=function(n){if(t(n))return n;if(typeof n=="number")return new Date(n);if(typeof n=="string"){let i=Date.parse(n);return isNaN(i)?new Date:new Date(i)}return new Date};getCurrentTimestamp=e,isDateLike=t,ensureDate=r,module.exports={ensureDate:r,isDateLike:t,getCurrentTimestamp:e}}var getCurrentTimestamp,isDateLike,ensureDate});var Be=_((ba,It)=>{var C=require("vscode"),{isWebEnvironment:Pt}=J(),{normalizePath:bn}=ce(),{ExtensionError:_n,ERROR_CODES:En,isPermissionError:wn}=kt(),{getEnvironmentContract:kn,normalizeStat:Dn,FORCE_WORKSPACE_FS_ENV:Cn}=$e(),Q;try{let e=K();e&&(Q=e.ensureDate)}catch{}Q||(Q=Rt().ensureDate);var xt=typeof process<"u"&&process.env?process.env:{},Mt=xt.VSCODE_WEB==="true"||Pt(),T=null;if(!Mt)try{T=require("fs").promises}catch{T=null}var _e=class{constructor(){this.isWeb=Mt||Pt()}q(t){try{return kn({uri:this._(t),isWeb:this.isWeb,remoteName:C.env?.remoteName,forceWorkspaceFs:xt[Cn]==="1"}).filesystem==="workspace.fs"}catch{return!1}}x(t){if(!t)return"";if(typeof t=="string")return t;if(t&&typeof t=="object"&&typeof t.fsPath=="string")return t.fsPath;if(t&&typeof t=="object"&&typeof t.path=="string")return t.path;if(typeof t=="object"){if(typeof t.fsPath=="string")return t.fsPath;if(typeof t.path=="string")return t.path}return String(t)}_(t){if(t&&typeof t=="object"&&typeof t.scheme=="string"&&typeof t.path=="string")return t;if(typeof t=="string"){let r=t.trim(),n=/^[a-zA-Z]:[\\/]/.test(r);if(/^[a-zA-Z][a-zA-Z0-9+.-]*:/.test(r)&&!n){let a=C.Uri.parse(r);if(a.scheme&&a.scheme!=="file")return a}return C.Uri.file(t)}if(t&&typeof t=="object"){if(t.uri&&t.uri!==t)try{return this._(t.uri)}catch{}if(this.isWeb&&typeof t.scheme=="string"&&typeof t.path=="string")return C.Uri.from({scheme:t.scheme,authority:t.authority||"",path:t.path||"",query:t.query||"",fragment:t.fragment||""});if(typeof t.fsPath=="string"&&t.fsPath.length>0)return C.Uri.file(t.fsPath);if(typeof t.path=="string"&&t.path.length>0)return this.isWeb&&typeof t.scheme=="string"&&t.scheme!=="file"?C.Uri.from({scheme:t.scheme,authority:t.authority||"",path:t.path,query:t.query||"",fragment:t.fragment||""}):C.Uri.file(t.path);if(typeof t.href=="string"&&t.href.length>0)return C.Uri.parse(t.href);if(typeof t.scheme=="string")return C.Uri.from({scheme:t.scheme,authority:t.authority||"",path:t.path||t.fsPath||"",query:t.query||"",fragment:t.fragment||""});if(typeof t.toString=="function")try{let r=t.toString(!0);if(r&&r!=="[object Object]")return C.Uri.parse(r)}catch{let r=t.toString();if(r&&r!=="[object Object]")return C.Uri.parse(r)}}throw new Error(`Unsupported target type: ${typeof t}`)}async stat(t){let r=this.q(t);if(!this.isWeb&&T&&!r)return T.stat(this.x(t));let n=this._(t),i=await C.workspace.fs.stat(n),a=Dn(i);return{...a,mtime:a.mtimeMs===null?Q(i.mtime):new Date(a.mtimeMs),ctime:a.ctimeMs===null?Q(i.ctime):new Date(a.ctimeMs),birthtime:a.ctimeMs===null?Q(i.ctime):new Date(a.ctimeMs),isFile:()=>i.type===C.FileType.File,isDirectory:()=>i.type===C.FileType.Directory}}async readFile(t,r="utf8"){let n=this.q(t);if(!this.isWeb&&T&&!n)return T.readFile(this.x(t),r);let i=this._(t),a=await C.workspace.fs.readFile(i);return r===null||r==="binary"?a:new TextDecoder(r).decode(a)}async writeFile(t,r,n="utf8"){let i=this.x(t);try{let a=this.q(t);if(!this.isWeb&&T&&!a)return T.writeFile(i,r,n);let o=this._(t),s=typeof r=="string"?new TextEncoder().encode(r):r;await C.workspace.fs.writeFile(o,s)}catch(a){this.ze("write file",i,a)}}async rename(t,r,n={overwrite:!1}){let i=this.x(t),a=this.x(r);try{let o=this.q(t)||this.q(r);if(!this.isWeb&&T&&!o)return T.rename(i,a);if(typeof C.workspace.fs.rename=="function")await C.workspace.fs.rename(this._(t),this._(r),n);else if(this._(t).scheme==="file"&&this._(r).scheme==="file")await(T||require("fs").promises).rename(i,a);else throw new Error("The active filesystem provider cannot rename report output.")}catch(o){this.ze("rename file",`${i} -> ${a}`,o)}}async mkdir(t,r={recursive:!0}){let n=this.x(t);try{let i=this.q(t);if(!this.isWeb&&T&&!i)return T.mkdir(n,r);let a=this._(t);await C.workspace.fs.createDirectory(a)}catch(i){this.ze("create directory",n,i)}}async readdir(t,r={withFileTypes:!1}){let n=this.q(t);if(!this.isWeb&&T&&!n)return T.readdir(this.x(t),r);let i=this._(t),a=await C.workspace.fs.readDirectory(i);return r.withFileTypes?a.map(([o,s])=>({name:o,isDirectory:()=>s===C.FileType.Directory,isFile:()=>s===C.FileType.File})):a.map(([o])=>o)}async delete(t,r={recursive:!1}){let n=this.q(t);if(!this.isWeb&&T&&!n){let a=this.x(t);return r.recursive?T.rm?T.rm(a,r):T.rmdir(a,r):T.unlink(a)}let i=this._(t);await C.workspace.fs.delete(i,r)}async exists(t){try{return await this.stat(t),!0}catch{return!1}}async ensureDirectory(t){let r=bn(this.x(t));await this.mkdir(r,{recursive:!0})}ze(t,r,n){throw wn(n)?new _n(En.FILE_PERMISSION_DENIED,`Permission denied while attempting to ${t}`,{path:r,code:n.code}):n}},Sn=new _e;It.exports={FileSystemAdapter:_e,fileSystem:Sn}});var I=_((_a,Lt)=>{var ee=typeof process<"u"&&process.env?process.env:{},Tn=12e4,vn=1e4,Fn=1440*60*1e3,An=2,Rn=["Ja","Fe","Mr","Ap","My","Jn","Jl","Au","Se","Oc","No","De"],Pn=Number(ee.EXPLORER_DATES_DECORATION_POOL_SIZE||2048),xn=Number(ee.EXPLORER_DATES_FLYWEIGHT_CACHE_SIZE||4096),Mn=Number(ee.EXPLORER_DATES_WORKSPACE_BALANCED_THRESHOLD||15e3),In=Number(ee.EXPLORER_DATES_WORKSPACE_LARGE_THRESHOLD||25e4),Wt=Number(ee.EXPLORER_DATES_WORKSPACE_EXTREME_THRESHOLD||4e5),Wn=Number(ee.EXPLORER_DATES_WORKSPACE_SCAN_MAX_RESULTS||Math.min(Wt+1,50001)),Ln={ADVANCED_CACHE:"explorerDates.advancedCache",ADVANCED_CACHE_METADATA:"explorerDates.advancedCacheMetadata",TEMPLATE_STORE:"explorerDates.templates",WEB_GIT_NOTICE:"explorerDates.webGitNotice"},On="explorerDatesChunks",Nn="__explorerDatesChunks";Lt.exports={DEFAULT_CACHE_TIMEOUT:Tn,DEFAULT_MAX_CACHE_SIZE:vn,DEFAULT_PERSISTENT_CACHE_TTL:Fn,DEFAULT_DECORATION_POOL_SIZE:Pn,DEFAULT_FLYWEIGHT_CACHE_SIZE:xn,MAX_BADGE_LENGTH:An,MONTH_ABBREVIATIONS:Rn,WORKSPACE_SCALE_BALANCED_THRESHOLD:Mn,WORKSPACE_SCALE_LARGE_THRESHOLD:In,WORKSPACE_SCALE_EXTREME_THRESHOLD:Wt,WORKSPACE_SCAN_MAX_RESULTS:Wn,GLOBAL_STATE_KEYS:Ln,WEB_CHUNK_GLOBAL_KEY:On,LEGACY_WEB_CHUNK_GLOBAL_KEY:Nn}});var Ke=_((Ea,Nt)=>{var{MAX_BADGE_LENGTH:Ot}=I();function qn(e=0,t="auto"){let r=typeof e=="number"&&!Number.isNaN(e)?e:0;if(t==="bytes")return`~${r}B`;let n=r/1024;if(t==="kb")return`~${n.toFixed(1)}K`;let i=n/1024;return t==="mb"?`~${i.toFixed(1)}M`:r<1024?`~${r}B`:n<1024?`~${Math.round(n)}K`:`~${i.toFixed(1)}M`}function zn(e){if(e)return e.length>Ot?e.substring(0,Ot):e}Nt.exports={formatFileSize:qn,trimBadge:zn}});var q=_((wa,qt)=>{var te="__explorerDatesLogger",re=class{constructor(){this.we=null}ke(t,r){if(this.we&&typeof this.we[t]=="function")try{return this.we[t](...r)}catch{}switch(t){case"debug":break;case"info":break;case"warn":break;case"error":break;default:break}}debug(...t){return this.ke("debug",t)}info(...t){return this.ke("info",t)}warn(...t){return this.ke("warn",t)}error(...t){return this.ke("error",t)}Jr(t){this.we=t}};function Un(){return typeof global<"u"?(global[te]||(global[te]=new re),global[te]):typeof globalThis<"u"?(globalThis[te]||(globalThis[te]=new re),globalThis[te]):(je||(je=new re),je)}var Ve=class extends re{},je=null;qt.exports={Logger:Ve,getLogger:Un}});var Ge=_((exports,module)=>{var{getLogger}=q(),env=typeof process<"u"&&process.env?process.env:{};function createFallbackVscodeMinimal(){return{workspace:{workspaceFolders:[],getConfiguration:()=>({get:()=>{},async update(){},inspect:()=>({defaultValue:void 0,globalValue:void 0,workspaceValue:void 0,workspaceFolderValue:void 0})})},ConfigurationTarget:{Global:1,Workspace:2,WorkspaceFolder:3}}}function resolveVscodeMinimal(){try{return require("vscode")}catch{return createFallbackVscodeMinimal()}}var MinimalSettingsCoordinator=class{constructor(t={}){this.qt=t.defaultSection||"explorerDates",this.De=new Map,this.dt=new Map,this.Qr=Number(env.EXPLORER_DATES_LOCK_WAIT_WARN_MS||1e3),this._logger=getLogger()}zt(t,r){let i=(this.De.get(t)||Promise.resolve()).then(()=>r()),a=i.catch(()=>{});return this.De.set(t,a),i.finally(()=>{this.De.get(t)===a&&this.De.delete(t)}),i}Ue(t,r){return resolveVscodeMinimal().workspace.getConfiguration(t||void 0,r)}se(t,r){let n=r||this.qt;return n?t.startsWith(`${n}.`)?{section:n,key:t.slice(n.length+1),fullKey:t}:t.includes(".")?{section:void 0,key:t,fullKey:t}:{section:n,key:t,fullKey:`${n}.${t}`}:{section:void 0,key:t,fullKey:t}}async updateSetting(t,r,n={}){return this.zt(this.se(t,n.section).fullKey,async()=>{let i=this.se(t,n.section),a=this.Ue(i.section,n.resource);try{let o=this.Ut(n.scope,n.resource);return await a.update(i.key,r,o),{key:i.fullKey,updated:!0}}catch(o){try{this._logger.warn(`Configuration update failed for ${i.fullKey}: ${o&&o.message}`)}catch{}return{key:i.fullKey,updated:!1,error:o}}})}async applySettings(t,r={}){let n=Array.isArray(t)?t:Object.entries(t).map(([o,s])=>({key:o,value:s})),i=[];for(let o of n)try{i.push(await this.updateSetting(o.key,o.value,r))}catch(s){i.push({key:this.se(o.key,r.section).fullKey,updated:!1,error:s})}let a=i.filter(o=>o&&o.error);if(a.length>0){let o=a.map(c=>`${c.key}: ${c.error&&c.error.message?c.error.message:String(c.error)}`),s=new Error(`Failed to apply ${a.length} setting(s): ${o.join("; ")}`);throw s.details=a,s}return i}Ut(t,r){return t&&t!=="auto"?this.Ht(t)||resolveVscodeMinimal().ConfigurationTarget.Workspace:r?resolveVscodeMinimal().ConfigurationTarget.WorkspaceFolder:resolveVscodeMinimal().workspace.workspaceFolders&&resolveVscodeMinimal().workspace.workspaceFolders.length>0?resolveVscodeMinimal().ConfigurationTarget.Workspace:resolveVscodeMinimal().ConfigurationTarget.Global}Ht(t){switch(t){case"user":return resolveVscodeMinimal().ConfigurationTarget.Global;case"workspace":return resolveVscodeMinimal().ConfigurationTarget.Workspace;case"workspaceFolder":return resolveVscodeMinimal().ConfigurationTarget.WorkspaceFolder;default:return}}getValue(t,r={}){let{section:n,resource:i}=r||{},a=this.se(t,n);return this.Ue(a.section,i).get(a.key)}inspect(t,r={}){let{section:n,resource:i}=r||{},a=this.se(t,n);return this.Ue(a.section,i).inspect(a.key)}async clearSetting(t,r={}){return this.updateSetting(t,void 0,r)}getLockWaitStats(){let t={};for(let[r,n]of this.dt.entries())t[r]={...n};return t}resetLockWaitStats(){this.dt.clear()}},cachedCoordinator=null;function getSettingsCoordinator(options){if(!cachedCoordinator||options&&options.forceNew){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=null;try{e=dynamicRequire("../chunks/settings-coordinator-impl-chunk")}catch{}try{e||(e=dynamicRequire("../chunks/settingsCoordinator-impl-chunk"))}catch{}if(e&&typeof e.createSettingsCoordinatorImpl=="function")return cachedCoordinator=e.createSettingsCoordinatorImpl(options),cachedCoordinator}}catch{}try{let{WEB_CHUNK_GLOBAL_KEY:e,LEGACY_WEB_CHUNK_GLOBAL_KEY:t}=I(),r=typeof globalThis<"u"&&(globalThis[e]||globalThis[t])||null;if(r&&r.settingsCoordinatorImpl&&typeof r.settingsCoordinatorImpl.createSettingsCoordinatorImpl=="function")return cachedCoordinator=r.settingsCoordinatorImpl.createSettingsCoordinatorImpl(options),cachedCoordinator}catch{}cachedCoordinator=new MinimalSettingsCoordinator(options)}return cachedCoordinator}module.exports={getSettingsCoordinator,MinimalSettingsCoordinator}});var Je=_((ka,$t)=>{var{normalizePath:Xe,getUriPath:Hn}=ce(),{getLogger:$n}=q(),le=typeof process<"u"&&process.env?process.env:{},Bn=$n(),ue=240,Ye=255,zt=/[\x00-\x1f\x7f<>:"|?*]/g,Kn=/[\x00-\x1f\x7f<>:"|?*]/,jn=[/\.\./,/\.\.[\\/]/,/[\\/]\.\./,/^\.\.$/,/^\.\.[\\/]/,/[\\/]\.\.$/],Ut=new Set(["CON","PRN","AUX","NUL","COM1","COM2","COM3","COM4","COM5","COM6","COM7","COM8","COM9","LPT1","LPT2","LPT3","LPT4","LPT5","LPT6","LPT7","LPT8","LPT9"]),Ht=new Set([".exe",".scr",".bat",".cmd",".pif",".vbs",".js",".jar",".com",".msi",".dll",".dmg",".pkg",".deb",".rpm"]),Vn=new Set([".js",".jsx",".ts",".tsx",".mjs",".cjs",".py",".rb",".rs",".go",".php",".java",".kt",".swift",".cs",".c",".cpp",".h",".hpp",".html",".css",".scss",".less",".json",".jsonc",".md",".mdx",".txt",".sh",".bash",".yml",".yaml"]),Gn=()=>le.EXPLORER_DATES_TEST_MODE==="1"||le.NODE_ENV==="test"||le.VSCODE_TEST==="1"?"test":le.EXPLORER_DATES_DEV_MODE==="1"||le.NODE_ENV==="development"?"development":"production",ne=class{static hasPathTraversal(t){let r=this.V(t);if(!r||typeof r!="string")return!1;let n=Xe(r);return jn.some(i=>i.test(n))}static hasDangerousChars(t){let r=this.V(t);return!r||typeof r!="string"?!1:Kn.test(r)}static isWindowsReservedName(t){if(!t||typeof t!="string")return!1;let r=t.split(".")[0].toUpperCase();return Ut.has(r)}static isSuspiciousExtension(t,r={}){let{workspaceContext:n=!0}=r;if(!t||typeof t!="string")return!1;let i=t.toLowerCase(),a=i.startsWith(".")?i:`.${i}`;return n&&Vn.has(a)?!1:Ht.has(a)}static isPathTooLong(t){let r=this.V(t);return!r||typeof r!="string"?!1:r.length>ue}static isFilenameTooLong(t){return!t||typeof t!="string"?!1:t.length>Ye}static validatePath(t,r={}){let{allowSuspiciousExtensions:n=!1,allowWindowsReservedNames:i=!1,strictLength:a=!0,workspaceContext:o=!0}=r,s=this.V(t),c=[],u=[];if(!s||typeof s!="string")return{isValid:!1,path:s,issues:["Invalid or empty path"],warnings:[],isSafe:!1};this.hasPathTraversal(s)&&c.push("Path contains directory traversal attempts"),this.hasDangerousChars(s)&&c.push("Path contains dangerous characters"),a&&this.isPathTooLong(s)&&c.push(`Path exceeds maximum length (${ue})`);let l=s.split(/[/\\]/).pop()||"";a&&this.isFilenameTooLong(l)&&c.push(`Filename exceeds maximum length (${Ye})`),!i&&this.isWindowsReservedName(l)&&u.push("Filename is a Windows reserved name");let d=l.includes(".")?l.split(".").pop():"";return!n&&this.isSuspiciousExtension(d,{workspaceContext:o})&&u.push("File extension is potentially suspicious"),{isValid:c.length===0,path:s,filename:l,extension:d,issues:c,warnings:u,isSafe:c.length===0&&u.length===0}}static sanitizePath(t,r={}){let{replacementChar:n="_",preserveExtension:i=!0}=r,a=this.V(t);if(!a||typeof a!="string")return"";a=a.replace(/\x00/g,"");let o=a.startsWith("/"),s=Xe(a).split("/").filter(Boolean),c=[];for(let u of s){if(u===".."){c.length>0&&c.pop();continue}u!=="."&&c.push(u)}if(a=(o?"/":"")+c.join("/"),a=a.replace(zt,n),i){let u=a.split("/"),l=u[u.length-1];if(l&&this.isWindowsReservedName(l)){let d=l.split(".");d[0]=d[0]+"_safe",u[u.length-1]=d.join("."),a=u.join("/")}}return a.length>ue&&(a=a.substring(0,ue),Bn.warn("Path truncated due to length:",a)),a}static isWithinBoundaries(t,r=[]){let n=this.V(t);if(!n||!Array.isArray(r)||r.length===0)return!1;let i=n.split("/").filter(Boolean),a=[];for(let s of i)s===".."?a.length>0&&a.pop():s!=="."&&a.push(s);let o="/"+a.join("/");return r.some(s=>{let c=Xe(s);return o.startsWith(c)})}static validateRegexPattern(t){if(!t||typeof t!="string")return{isValid:!1,issue:"Invalid pattern"};let r=[/\([^)]*\+[^)]*\)\+/,/\([^)]*\*[^)]*\)\*/,/\([^)]*\+[^)]*\)\*/,/\([^)]*\*[^)]*\)\+/,/\+.*\*|{\d+,}.*\*/,/\([^|]*\|[^)]*\)\*/];for(let n of r)if(n.test(t))return{isValid:!1,issue:"Pattern may cause catastrophic backtracking (ReDoS)"};try{return new RegExp(t),{isValid:!0}}catch(n){return{isValid:!1,issue:`Invalid regex syntax: ${n.message}`}}}static V(t){if(!t)return"";if(typeof t=="string")return t;try{return Hn(t)}catch{return String(t)}}},Ze=class{static validateFileUri(t,r=[]){if(!t||typeof t!="object")return{isValid:!1,issue:"Invalid URI object"};if(t.scheme!=="file"&&t.scheme!=="vscode-vfs")return{isValid:!1,issue:`Unsupported URI scheme: ${t.scheme}`};let n=ne.validatePath(t);return n.isValid?r.length>0&&!ne.isWithinBoundaries(t,r)?{isValid:!1,issue:"Path is outside allowed workspace boundaries"}:{isValid:!0,warnings:n.warnings}:{isValid:!1,issue:`Path validation failed: ${n.issues.join(", ")}`}}static validateExclusionPatterns(t){if(!Array.isArray(t))return{isValid:!1,issue:"Patterns must be an array"};let r=[],n=[];for(let i of t){if(typeof i!="string"){n.push(`Invalid pattern type: ${typeof i}`);continue}let a=i.replace(/\./g,"\\.").replace(/\*/g,".*").replace(/\?/g,"."),o=ne.validateRegexPattern(a);r.push({pattern:i,isValid:o.isValid,issue:o.issue}),o.isValid||n.push(`Pattern "${i}": ${o.issue}`)}return{isValid:n.length===0,results:r,issues:n}}};$t.exports={SecurityValidator:ne,SecureFileOperations:Ze,detectSecurityEnvironment:Gn,MAX_SAFE_PATH_LENGTH:ue,MAX_SAFE_FILENAME_LENGTH:Ye,DANGEROUS_PATH_CHARS:zt,WINDOWS_RESERVED_NAMES:Array.from(Ut),SUSPICIOUS_EXTENSIONS:Array.from(Ht)}});var he=_((Da,Vt)=>{var Kt=typeof process<"u"&&process.env?process.env:{},Bt="[ExplorerDates][WebDiag]",Qe="__explorerDatesWebDiagnostics",Ee;function Xn(){try{let e=require("vscode");return e?.env?.uiKind===e?.UIKind?.Web}catch{return Kt.VSCODE_WEB==="true"}}function P(){return Ee!==void 0||(Ee=Kt.EXPLORER_DATES_WEB_DIAG==="1"||Xn()),Ee}function jt(){return{enabled:P(),logs:[],logOnce:new Set,commandsRegistered:new Set,commandsInvoked:[],errors:[],chunkLoads:[],provider:{created:!1,registered:!1,hydrated:!1,decorationCalls:0,refreshCalls:0,lastEvent:null}}}var Yn=jt();function x(){return typeof globalThis<"u"?(globalThis[Qe]||(globalThis[Qe]=jt()),globalThis[Qe]):Yn}function Zn(e){try{return JSON.stringify(e)}catch{return String(e)}}function W(e,t,r){if(!P())return;let n=x(),i={ts:new Date().toISOString(),level:e,message:t,meta:r||null};n.logs.push(i),n.logs.length>400&&n.logs.shift();let a=r?`${Bt} ${t} ${Zn(r)}`:`${Bt} ${t}`,o=console[e]||console.info;try{o(a)}catch{}}function Jn(e,t,r,n){if(!P())return;let i=x();i.logOnce.has(e)||(i.logOnce.add(e),W(t,r,n))}function Qn(e){if(!P())return;x().commandsRegistered.add(e),W("info","Command registered",{commandId:e})}function ei(e){if(!P())return;x().commandsInvoked.push({commandId:e,ts:Date.now()}),W("info","Command invoked",{commandId:e})}function ti(e,t,r){P()&&(t?W("info","Command completed",{commandId:e}):(W("error","Command failed",{commandId:e,error:r?.message,stack:r?.stack}),x().errors.push({commandId:e,error:r?.message,stack:r?.stack})))}function ri(e,t,r){if(!P())return;x().chunkLoads.push({chunkName:e,stage:t,ts:Date.now(),error:r?r.message||String(r):null}),W(r?"warn":"info",`Chunk ${t}`,{chunkName:e,error:r?.message})}function ni(e,t){if(!P())return;let r=x();r.provider.lastEvent={event:e,ts:Date.now(),meta:t||null},e==="created"&&(r.provider.created=!0),e==="registered"&&(r.provider.registered=!0),e==="hydrated"&&(r.provider.hydrated=!0),W("info",`Provider ${e}`,t)}function ii(){if(!P())return;let e=x();e.provider.decorationCalls+=1,e.provider.decorationCalls<=3&&W("info","Decoration request observed",{count:e.provider.decorationCalls})}function ai(){if(!P())return;let e=x();e.provider.refreshCalls+=1}Vt.exports={isWebDiagnosticsEnabled:P,getWebDiagnosticsState:x,diagLog:W,diagLogOnce:Jn,recordCommandRegistration:Qn,recordCommandInvocation:ei,recordCommandResult:ti,recordChunkEvent:ri,recordProviderEvent:ni,recordDecorationCall:ii,recordRefreshCall:ai}});var it=_((Ca,er)=>{var we=require("vscode"),{normalizePath:rt,getRelativePath:oi}=ce(),{diagLogOnce:si}=he(),{normalizeTimestamp:de,resourceIdentity:ci}=$e(),li={unknown:0,github:1,git:2,fs:3},tt={low:1,medium:2,high:3};function L(e,t,r){try{return e?.get?e.get(t,r):r}catch{return r}}function ui(e){return{nowMinutes:Number(L(e,"freshnessBucketMinutesNow",60))||60,todayHours:Number(L(e,"freshnessBucketHoursToday",24))||24,twoDays:Number(L(e,"freshnessBucketDaysTwo",2))||2,oneWeek:Number(L(e,"freshnessBucketDaysWeek",7))||7}}function Gt(e,t){if(!Number.isFinite(e)||e<0)return"unknown";let r=t.nowMinutes*60*1e3,n=t.todayHours*60*60*1e3,i=t.twoDays*24*60*60*1e3,a=t.oneWeek*24*60*60*1e3;return e<=r?"now":e<=n?"today":e<=i?"2d":e<=a?"1w":"stale"}function Xt(e){switch(e){case"now":return"now";case"today":return"today";case"2d":return"2d";case"1w":return"1w";case"stale":return"stale";default:return"unknown"}}function Yt(e){switch(e){case"fs":return"Filesystem";case"git":return"Git";case"github":return"GitHub";default:return"Unknown"}}function Zt(e){switch(e){case"now":return"!!";case"today":return"T";case"2d":return"2d";case"1w":return"1w";case"stale":return"~~";default:return"?"}}function hi(e,t,r){let n=!!L(r,"freshnessShowUnknown",!0);if(e==="unknown"||t==="unknown")return n?"?":null;let i=Zt(e);return!i||i==="unknown"?n?"?":null:i}function di(e){try{let t=de(e);return t===null?null:new Date(t).toISOString().replace("T"," ").replace("Z","")}catch{return null}}function fi(e,t){if(!e)return;let r=L(t,"freshnessTooltipVerbosity","full"),n=L(t,"badge.sourceLabelMode","auto"),i=[],a=Xt(e.bucket),o=Yt(e.source);if(i.push(`Freshness: ${a}`),e.exactTimestamp){let u=di(e.exactTimestamp);u&&i.push(`Exact time: ${u}`)}let s=e.source==="fs"&&e.confidence==="high";return(n==="always"||n!=="never"&&!s||n!=="never"&&r==="full")&&i.push(`Source: ${o}`),e.author&&i.push(`Author: ${e.author}`),e.message&&i.push(`Message: ${e.message}`),i.push(`Confidence: ${e.confidence}`),e.reason&&r==="full"&&i.push(`Reason: ${e.reason}`),i.join(` +`)}function gi(e,t,r){if(!Number.isFinite(t)||t<=0)return!1;let n=300*1e3;if(t>r+n)return!1;if(e==="file")return!0;let i=r-t,a=300*1e3,o=365*24*60*60*1e3*10;return!(io)}function nt({source:e,timestampMs:t,author:r,message:n,confidence:i,reason:a},o){if(!Number.isFinite(t))return{bucket:"unknown",source:e||"unknown",confidence:i||"low",reason:a||"no-timestamp"};let s=ui(o),c=Date.now()-t;return{bucket:Gt(c,s),source:e,exactTimestamp:t,author:r||void 0,message:n||void 0,confidence:i,reason:a||void 0}}async function mi(e,t,r){let n=e?.scheme||"file",i=!!L(r,"freshnessAllowVirtualFs",!1);if(n!=="file"&&!i)return{freshness:null,reason:"fs-virtual-disabled"};let a=t?.mtimeMs??de(t?.mtime),o=Date.now();return Number.isFinite(a)?gi(n,a,o)?{freshness:nt({source:"fs",timestampMs:a,confidence:n==="file"?"high":"medium",reason:n==="file"?"fs-trust-high":"fs-trust-medium"},r),reason:null}:{freshness:null,reason:"fs-mtime-untrusted"}:{freshness:null,reason:"fs-mtime-missing"}}async function pi(e,t,r){if(!t||typeof t.He!="function")return{freshness:null,reason:"git-provider-missing"};let n;try{n=await t.He(e)}catch(o){return{freshness:null,reason:`git-error:${o?.message||"unknown"}`}}let i=de(n?.timestampMs);return i===null||i<=0?{freshness:null,reason:n?.error||"git-no-timestamp"}:{freshness:nt({source:"git",timestampMs:i,author:n?.author||void 0,message:n?.message||void 0,confidence:"medium",reason:"git-recency"},r),reason:null}}function Jt(e){if(!e||(e.scheme||"")!=="github")return null;let n=rt(e.path||"").replace(/^\/+/,"").split("/").filter(Boolean);if(n.length<2)return null;let i=n[0],a=n[1],o=n.slice(2).join("/"),s=new URLSearchParams(e.query||""),c=s.get("ref")||s.get("branch")||"HEAD";return{owner:i,repo:a,filePath:o,ref:c}}function yi(e){let t=(e||"").indexOf("+");if(t===-1)return"HEAD";let r=e.slice(t+1);try{let n;if(typeof TextDecoder<"u"){let o=new Uint8Array(r.length/2);for(let s=0;s0)return a}catch{}return"HEAD"}function Qt(e){if(!e||e.scheme!=="vscode-vfs"||!String(e.authority||"").startsWith("github"))return null;let r=rt(e.path||"").replace(/^\/+/,"").split("/").filter(Boolean);if(r.length<2)return null;let n=r[0],i=r[1],a=r.slice(2).join("/"),o=yi(e.authority||"");return{owner:n,repo:i,filePath:a,ref:o}}function bi(e){try{let t=we.workspace.workspaceFolders||[];for(let r of t){let n=r?.uri?.scheme;if(n==="github"){let i=Jt(r.uri);if(!i)continue;let a=oi(r.uri.path||"",e?.path||"");return{...i,filePath:a}}if(n==="vscode-vfs"&&String(r?.uri?.authority||"").startsWith("github")){let i=Qt(r.uri);if(!i)continue;let o=rt(e?.path||"").replace(/^\/+/,"").split("/").filter(Boolean).slice(2).join("/");if(!o)continue;return{...i,filePath:o}}}}catch{}return null}async function _i(e,t){let r=Jt(e)||Qt(e)||bi(e);if(!r||!r.owner||!r.repo||!r.filePath)return{freshness:null,reason:"github-context-missing"};let n=`${r.owner}/${r.repo}@${r.ref}:${r.filePath}`,i=`https://api.github.com/repos/${r.owner}/${r.repo}/commits?path=${encodeURIComponent(r.filePath)}&sha=${encodeURIComponent(r.ref)}&per_page=1`,a={Accept:"application/vnd.github+json"};try{let y=we?.authentication&&typeof we.authentication.getSession=="function"?await we.authentication.getSession("github",["repo"],{createIfNone:!1}):null;y?.accessToken&&(a.Authorization=`Bearer ${y.accessToken}`)}catch{}if(typeof fetch!="function")return{freshness:null,reason:"github-fetch-unavailable"};let o;try{o=await fetch(i,{headers:a})}catch(y){return{freshness:null,reason:`github-fetch-error:${y?.message||"unknown"}`}}if(!o||!o.ok)return{freshness:null,reason:o?`github-http-${o.status}`:"github-no-response"};let s;try{s=await o.json()}catch{return{freshness:null,reason:"github-json-error"}}let c=Array.isArray(s)?s[0]:null,u=c?.commit||null,l=u?.author?.name||c?.author?.login||void 0,d=u?.message||void 0,h=de(u?.author?.date);return h===null?{freshness:null,reason:"github-no-timestamp"}:{freshness:nt({source:"github",timestampMs:h,author:l,message:d,confidence:"medium",reason:"github-commit"},t),reason:null,cacheKey:n}}function et(e,t){return!e||e==="auto"?!0:e==="unknown"?t==="unknown":e===t}async function Ei({uri:e,stat:t,provider:r,config:n,workspaceKind:i}){let a=e?.scheme||"file",o=L(n,"freshnessSourcePolicy","auto"),s=[],c=Date.now();if(et(o,"fs")){let u=await mi(e,t,n);if(s.push({source:"fs",reason:u.reason||null}),u.freshness)return{...u.freshness,attempts:s}}if(et(o,"git")){let u=await pi(e,r,n);if(s.push({source:"git",reason:u.reason||null}),u.freshness)return{...u.freshness,attempts:s}}if(et(o,"github")){let u=await _i(e,n);if(s.push({source:"github",reason:u.reason||null,cacheKey:u.cacheKey||null}),u.freshness)return{...u.freshness,attempts:s}}return si("freshness-unknown","info","No trustworthy freshness source available",{scheme:a,workspaceKind:i||"unknown",attempts:s}),{bucket:"unknown",source:"unknown",confidence:"low",reason:"no-source",attempts:s,resolvedAt:c}}function wi(e,t){if(!e)return-1;if(!t)return 1;let r=tt[e.confidence]||0,n=tt[t.confidence]||0;if(r!==n)return r-n;let i=Number(e.exactTimestamp||0),a=Number(t.exactTimestamp||0);return i-a}er.exports={resolveFreshness:Ei,formatBadge:hi,formatTooltip:fi,bucketFromAge:Gt,formatBucketLabel:Xt,formatBadgeAge:Zt,formatSourceLabel:Yt,compareFreshness:wi,SOURCE_RANK:li,CONFIDENCE_RANK:tt,normalizeTimestamp:de,resourceIdentity:ci}});var rr=_((Sa,tr)=>{var{normalizePath:ki}=ce(),ke="__root__",at=class{constructor(){this.g=new Map,this.M=new Map,this.o=0}get size(){return this.o}get bucketCount(){return this.g.size}clear(){this.g.clear(),this.M.clear(),this.o=0}get(t){if(!t)return;let r=this.M.get(t);if(!r)return;let n=this.g.get(r);if(!n){this.M.delete(t);return}return n.lastAccess=Date.now(),n.entries.get(t)}set(t,r,n={}){if(!t)return;let i=n.folderKey||this.$t(t),a=this.Bt(i),o=a.entries.has(t);a.entries.set(t,r),a.lastAccess=Date.now(),o||this.o++,this.M.set(t,i)}delete(t){if(!t)return!1;let r=this.M.get(t);if(!r)return!1;let n=this.g.get(r);if(!n)return this.M.delete(t),!1;let i=n.entries.delete(t);return i&&(this.o=Math.max(0,this.o-1),n.entries.size===0&&this.g.delete(r)),this.M.delete(t),i}*entries(){for(let t of this.g.values())yield*t.entries.entries()}*keys(){for(let t of this.g.values())yield*t.entries.keys()}*values(){for(let t of this.g.values())yield*t.entries.values()}[Symbol.iterator](){return this.entries()}enforceLimit(t=0,r){if(!t||this.o<=t)return 0;let n=Math.max(Math.floor(t*.2),this.o-t,1),i=0,a=Array.from(this.g.entries()).map(([o,s])=>({folderKey:o,bucket:s}));a.sort((o,s)=>(o.bucket.lastAccess||0)-(s.bucket.lastAccess||0));for(let{folderKey:o,bucket:s}of a){if(i>=n)break;if(!s.entries.size){this.g.delete(o);continue}let c=s.entries.size,u=n-i;if(c<=u){i+=this.Kt(o,s);continue}let l=Array.from(s.entries.entries());l.sort((h,g)=>(h[1].timestamp||0)-(g[1].timestamp||0));let d=Math.min(u,Math.max(1,Math.ceil(c*.5)));for(let h=0;h0&&r&&r.debug(`Hierarchical cache eviction removed ${i} entries (${this.o} remaining)`),i}Bt(t){return this.g.has(t)||this.g.set(t,{entries:new Map,lastAccess:Date.now()}),this.g.get(t)}Kt(t,r){if(!r)return 0;let n=r.entries.size;for(let i of r.entries.keys())this.M.delete(i);return this.g.delete(t),this.o=Math.max(0,this.o-n),n}$t(t){if(!t||typeof t!="string")return ke;let r=ki(t);if(!r)return ke;let n=r.lastIndexOf("/");return n===-1?ke:r.slice(0,n)||ke}};tr.exports={HierarchicalDecorationCache:at}});var ir=_((Ta,nr)=>{async function Di(e,t,r){try{if(e.G)return e._logger?.debug?.(`\u26A0\uFE0F Cache bypass enabled - recalculating decoration for: ${r}`),null;if(e._advancedCache)try{let i=await e._advancedCache.get(t);if(i)return e._metrics.cacheHits++,e._logger?.debug?.(`\u{1F9E0} Advanced cache hit for: ${r}`),i}catch(i){e._logger?.debug?.(`Advanced cache error: ${i.message}`)}if(!e.e||typeof e.e.get!="function")return e._logger?.debug?.("getCachedDecoration: no memory cache available, falling back"),null;let n=e.e.get(t);if(n){if(n.forceRefresh){try{e.e.delete(t)}catch{}e._logger?.debug?.(`\u{1F6AB} Memory cache bypassed (forced refresh) for: ${r}`)}else if(Date.now()-n.timestampe.l)try{e.e.enforceLimit(e.l,e._logger)}catch{}let a={decoration:r,timestamp:Date.now()};i&&(a.uri=i);try{e.e.set(t,a)}catch{}try{typeof e.ce=="function"&&e.ce()}catch(o){e._logger?.debug?.("monitorCachePressure from store failed",o)}if(e._advancedCache)try{await e._advancedCache.set(t,r,{ttl:e.S}),e._logger?.debug?.(`\u{1F9E0} Stored in advanced cache: ${n}`)}catch(o){e._logger?.debug?.(`Failed to store in advanced cache: ${o.message}`)}try{typeof e.le=="function"&&e.le()}catch(o){e._logger?.debug?.("maybeExtendCacheTimeout from store failed",o)}}catch(a){e._logger?.debug?.("storeDecorationInCache failed",a)}}function Si(){class e{constructor(){this.r=null,this.n=new Map,this.o=0,this.$e=!1,this.hydrateInBackground()}get size(){return this.r?this.r.size:this.o}get bucketCount(){return this.r?this.r.bucketCount:0}clear(){if(this.r)return this.r.clear();this.n.clear(),this.o=0}get(r){return this.r?this.r.get(r):this.n.get(r)}set(r,n,i={}){if(this.r)return this.r.set(r,n,i);let a=this.n.has(r);this.n.set(r,n),a||this.o++}delete(r){if(this.r)return this.r.delete(r);let n=this.n.delete(r);return n&&(this.o=Math.max(0,this.o-1)),n}*entries(){if(this.r){yield*this.r.entries();return}yield*this.n.entries()}*keys(){if(this.r){yield*this.r.keys();return}yield*this.n.keys()}*values(){if(this.r){yield*this.r.values();return}yield*this.n.values()}[Symbol.iterator](){return this.entries()}enforceLimit(r=0,n){if(this.r)return this.r.enforceLimit(r,n);if(!r||this.o<=r)return 0;let i=0,o=Array.from(this.n.keys()).slice(0,Math.max(1,Math.ceil(this.o-r)));for(let s of o)this.n.delete(s),i++,this.o=Math.max(0,this.o-1);return i>0&&n&&n.debug(`LazyHierarchical cache eviction removed ${i} entries`),i}async jt(){if(!this.$e){this.$e=!0;try{let n=(await Promise.resolve().then(()=>R(rr()))).HierarchicalDecorationCache;this.r=new n;for(let[i,a]of this.n.entries())this.r.set(i,a);this.n=null}catch{this.$e=!1}}}hydrateInBackground(){this.jt().catch(()=>{})}}return new e}nr.exports={getCachedDecoration:Di,storeDecorationInCache:Ci,createLazyHierarchicalDecorationCache:Si}});var ar=_((va,Ti)=>{Ti.exports={migrationDetailsTitle:"Explorer Dates - Settings Migration",migrationDetailsHeader:"Settings Migration",gitAttributionWarning:"Explorer Dates: Git attribution badges are unavailable on VS Code for Web. Time-based decorations remain available.",noOverridesToDocument:"No overrides to document.",overrideNotesHeader:"# Explorer Dates Override Notes\\n\\n",analysisCommandsDisabled:"Explorer Dates analysis commands are disabled. Shortcuts like Ctrl+Shift+M/H/A will not work until you enable explorerDates.enableAnalysisCommands.",analysisEnableNow:"Enable Now",analysisEnablePartially:"Enable partially succeeded. Update explorerDates.enableAnalysisCommands in remaining workspace folders manually.",analysisEnableFailed:"Enable failed: update explorerDates.enableAnalysisCommands in workspace settings.",workspaceTemplatesDisabled:"Workspace templates are disabled. Enable explorerDates.enableWorkspaceTemplates to use this command.",workspaceTemplatesDisabledSave:"Workspace templates are disabled. Enable explorerDates.enableWorkspaceTemplates to save templates.",enterTemplateName:"Enter template name",enterTemplateDescription:"Enter description (optional)",failedToOpenTemplateManager:"Failed to open template manager: {0}",failedToSaveTemplate:"Failed to save template: {0}",reportingDisabled:"Reporting features are disabled. Enable explorerDates.enableExportReporting to generate reports.",failedToGenerateReport:"Failed to generate report: {0}",apiDisabled:"Explorer Dates API is disabled via settings.",failedToShowApiInformation:"Failed to show API information: {0}",failedToShowWorkspaceActivity:"Failed to show workspace activity: {0}",failedToShowPerformanceAnalytics:"Failed to show performance analytics: {0}",failedToShowCacheDebugInfo:"Failed to show cache debug info: {0}",noWorkspaceFolderOpen:"No workspace folder open",now:"now",minutes:"m",hours:"h",days:"d",weeks:"w",months:"mo",years:"y",justNow:"just now",minutesAgo:"{0} minute(s) ago",hoursAgo:"{0} hour(s) ago",daysAgo:"{0} day(s) ago",lastModified:"Last modified",refreshSuccess:"Date decorations refreshed",activationError:"Explorer Dates failed to activate",errorAccessingFile:"Error accessing file for decoration",clearTelemetryPrompt:"This will permanently delete locally-stored telemetry events for Explorer Dates. This action cannot be undone. Proceed?",clearTelemetryConfirm:"Clear Telemetry",clearTelemetryCancel:"Cancel",reportFormatDisabled:'Report format "{0}" is disabled. Allowed formats: {1}',reportDownloadTriggered:"Report download triggered in browser",selectReportTimeRangePlaceholder:"Select report time range",selectReportFormatPlaceholder:"Select report format",cleanupNoDeprecated:"\u2139\uFE0F No deprecated settings found to clean up.",showMigrationHistoryNoHistory:"No migration history found.",resetConfirmation:"This will reset all Explorer Dates settings to their default values. Are you sure?",resetConfirm:"Reset Settings",resetCancel:"Cancel",resetSuccess:"\u2705 Reset {0} settings to defaults.",validateNoIssues:"\u2705 Configuration is valid - no issues found!",validateFoundIssues:"Found {0} configuration issue(s). Would you like to see details?",validateShowDetails:"Show Details",validateDismiss:"Dismiss",migrationNotificationMessage:"Explorer Dates updated {0} setting(s) for compatibility. Your configuration has been preserved.",migrationViewChanges:"View Changes",migrationOpenSettings:"Open Settings",deprecatedPrompt:"Explorer Dates found {0} deprecated setting(s). Would you like to remove them?",deprecatedClean:"Clean Up Now",deprecatedKeep:"Keep Old Settings",deprecatedAskLater:"Ask Later",showFileLocation:"Show File Location",teamConfigCorrupted:"Explorer Dates team configuration file appears to be corrupted. Please check the .explorer-dates-profiles.json file or restore from backup.",appliedFromTeamProfile:'Applied {0} Explorer Dates settings from team profile "{1}".',documentedOverrides:"Documented Explorer Dates overrides in .vscode/explorer-dates-overrides.md",teamConfigMissingProfile:"Team configuration is missing an active profile.",ephemeralStorageEnospc:"Explorer Dates team configuration could not be saved because the disk is full.",ephemeralStorageGeneric:"Explorer Dates team configuration could not be saved because the workspace is read-only or permissions are restricted.",ephemeralStorageSuffix:"Changes will be kept in memory until VS Code restarts, so they may be lost."}});var or=_((Fa,vi)=>{vi.exports={migrationDetailsTitle:"Explorer Dates - Migraci\xF3n de configuraci\xF3n",migrationDetailsHeader:"Migraci\xF3n de configuraci\xF3n",gitAttributionWarning:"Explorer Dates: Las insignias de atribuci\xF3n de Git no est\xE1n disponibles en VS Code para la Web. Las decoraciones basadas en tiempo siguen disponibles.",noOverridesToDocument:"No hay anulaciones para documentar.",overrideNotesHeader:"# Notas de anulaci\xF3n de Explorer Dates\\n\\n",analysisCommandsDisabled:"Los comandos de an\xE1lisis de Explorer Dates est\xE1n deshabilitados. Atajos como Ctrl+Shift+M/H/A no funcionar\xE1n hasta que habilites explorerDates.enableAnalysisCommands.",analysisEnableNow:"Habilitar ahora",analysisEnablePartially:"La activaci\xF3n se complet\xF3 parcialmente. Actualiza explorerDates.enableAnalysisCommands manualmente en las carpetas de trabajo restantes.",analysisEnableFailed:"Error al habilitar: actualiza explorerDates.enableAnalysisCommands en la configuraci\xF3n del espacio de trabajo.",workspaceTemplatesDisabled:"Las plantillas de espacio de trabajo est\xE1n deshabilitadas. Habilita explorerDates.enableWorkspaceTemplates para usar este comando.",workspaceTemplatesDisabledSave:"Las plantillas de espacio de trabajo est\xE1n deshabilitadas. Habilita explorerDates.enableWorkspaceTemplates para guardar plantillas.",enterTemplateName:"Introduce el nombre de la plantilla",enterTemplateDescription:"Introduce la descripci\xF3n (opcional)",failedToOpenTemplateManager:"Error al abrir el administrador de plantillas: {0}",failedToSaveTemplate:"Error al guardar la plantilla: {0}",reportingDisabled:"Las funciones de informes est\xE1n deshabilitadas. Habilita explorerDates.enableExportReporting para generar informes.",failedToGenerateReport:"Error al generar el informe: {0}",apiDisabled:"La API de Explorer Dates est\xE1 deshabilitada mediante la configuraci\xF3n.",failedToShowApiInformation:"Error al mostrar la informaci\xF3n de la API: {0}",failedToShowWorkspaceActivity:"Error al mostrar la actividad del espacio de trabajo: {0}",failedToShowPerformanceAnalytics:"Error al mostrar los an\xE1lisis de rendimiento: {0}",failedToShowCacheDebugInfo:"Error al mostrar la informaci\xF3n de depuraci\xF3n de la cach\xE9: {0}",noWorkspaceFolderOpen:"No hay ninguna carpeta de espacio de trabajo abierta",now:"ahora",minutes:"m",hours:"h",days:"d",weeks:"sem",months:"mes",years:"a",justNow:"justo ahora",minutesAgo:"hace {0} minuto(s)",hoursAgo:"hace {0} hora(s)",daysAgo:"hace {0} d\xEDa(s)",lastModified:"\xDAltima modificaci\xF3n",refreshSuccess:"Decoraciones de fecha actualizadas",activationError:"Explorer Dates no se pudo activar",errorAccessingFile:"Error al acceder al archivo para la decoraci\xF3n",clearTelemetryPrompt:"Esto eliminar\xE1 permanentemente los eventos de telemetr\xEDa almacenados localmente para Explorer Dates. Esta acci\xF3n no se puede deshacer. \xBFContinuar?",clearTelemetryConfirm:"Borrar telemetr\xEDa",clearTelemetryCancel:"Cancelar",reportFormatDisabled:'El formato de informe "{0}" est\xE1 deshabilitado. Formatos permitidos: {1}',reportDownloadTriggered:"Descarga del informe iniciada en el navegador",selectReportTimeRangePlaceholder:"Seleccionar rango de tiempo del informe",selectReportFormatPlaceholder:"Seleccionar formato del informe",cleanupNoDeprecated:"\u2139\uFE0F No se encontraron configuraciones obsoletas para limpiar.",showMigrationHistoryNoHistory:"No se encontr\xF3 historial de migraci\xF3n.",resetConfirmation:"Esto restablecer\xE1 todas las configuraciones de Explorer Dates a sus valores predeterminados. \xBFEst\xE1s seguro?",resetConfirm:"Restablecer configuraciones",resetCancel:"Cancelar",resetSuccess:"\u2705 Se restablecieron {0} configuraciones a los valores predeterminados.",validateNoIssues:"\u2705 La configuraci\xF3n es v\xE1lida - no se encontraron problemas.",validateFoundIssues:"Se encontraron {0} problema(s) de configuraci\xF3n. \xBFDeseas ver los detalles?",validateShowDetails:"Mostrar detalles",validateDismiss:"Descartar",migrationNotificationMessage:"Explorer Dates actualiz\xF3 {0} configuraci\xF3n(es) por compatibilidad. Tu configuraci\xF3n se ha conservado.",migrationViewChanges:"Ver cambios",migrationOpenSettings:"Abrir configuraciones",deprecatedPrompt:"Explorer Dates encontr\xF3 {0} configuraci\xF3n(es) obsoleta(s). \xBFDeseas eliminarlas?",deprecatedClean:"Limpiar ahora",deprecatedKeep:"Mantener configuraciones antiguas",deprecatedAskLater:"Preguntar m\xE1s tarde",showFileLocation:"Mostrar ubicaci\xF3n del archivo",teamConfigCorrupted:"El archivo de configuraci\xF3n de equipo de Explorer Dates parece estar da\xF1ado. Verifica el archivo .explorer-dates-profiles.json o restaura desde una copia de seguridad.",appliedFromTeamProfile:'Se aplicaron {0} configuraciones de Explorer Dates desde el perfil de equipo "{1}".',documentedOverrides:"Se documentaron las anulaciones de Explorer Dates en .vscode/explorer-dates-overrides.md",teamConfigMissingProfile:"La configuraci\xF3n del equipo no tiene un perfil activo.",ephemeralStorageEnospc:"No se pudo guardar la configuraci\xF3n de equipo de Explorer Dates porque el disco est\xE1 lleno.",ephemeralStorageGeneric:"No se pudo guardar la configuraci\xF3n de equipo de Explorer Dates porque el espacio de trabajo es de solo lectura o los permisos est\xE1n restringidos.",ephemeralStorageSuffix:"Los cambios se mantendr\xE1n en memoria hasta que VS Code se reinicie, por lo que podr\xEDan perderse."}});var sr=_((Aa,Fi)=>{Fi.exports={migrationDetailsTitle:"Explorer Dates - Migration des param\xE8tres",migrationDetailsHeader:"Migration des param\xE8tres",gitAttributionWarning:"Explorer Dates : Les badges d\u2019attribution Git ne sont pas disponibles sur VS Code pour le Web. Les d\xE9corations bas\xE9es sur le temps restent disponibles.",noOverridesToDocument:"Aucune substitution \xE0 documenter.",overrideNotesHeader:"# Notes de substitution Explorer Dates\\n\\n",analysisCommandsDisabled:"Les commandes d\u2019analyse Explorer Dates sont d\xE9sactiv\xE9es. Les raccourcis comme Ctrl+Shift+M/H/A ne fonctionneront pas tant que vous n\u2019aurez pas activ\xE9 explorerDates.enableAnalysisCommands.",analysisEnableNow:"Activer maintenant",analysisEnablePartially:"L\u2019activation a partiellement r\xE9ussi. Mettez \xE0 jour explorerDates.enableAnalysisCommands manuellement dans les dossiers d\u2019espace de travail restants.",analysisEnableFailed:"\xC9chec de l\u2019activation : mettez \xE0 jour explorerDates.enableAnalysisCommands dans les param\xE8tres de l\u2019espace de travail.",workspaceTemplatesDisabled:"Les mod\xE8les d\u2019espace de travail sont d\xE9sactiv\xE9s. Activez explorerDates.enableWorkspaceTemplates pour utiliser cette commande.",workspaceTemplatesDisabledSave:"Les mod\xE8les d\u2019espace de travail sont d\xE9sactiv\xE9s. Activez explorerDates.enableWorkspaceTemplates pour enregistrer des mod\xE8les.",enterTemplateName:"Entrez le nom du mod\xE8le",enterTemplateDescription:"Entrez la description (facultatif)",failedToOpenTemplateManager:"Impossible d\u2019ouvrir le gestionnaire de mod\xE8les : {0}",failedToSaveTemplate:"Impossible d\u2019enregistrer le mod\xE8le : {0}",reportingDisabled:"Les fonctionnalit\xE9s de rapport sont d\xE9sactiv\xE9es. Activez explorerDates.enableExportReporting pour g\xE9n\xE9rer des rapports.",failedToGenerateReport:"Impossible de g\xE9n\xE9rer le rapport : {0}",apiDisabled:"L\u2019API Explorer Dates est d\xE9sactiv\xE9e via les param\xE8tres.",failedToShowApiInformation:"Impossible d\u2019afficher les informations de l\u2019API : {0}",failedToShowWorkspaceActivity:"Impossible d\u2019afficher l\u2019activit\xE9 de l\u2019espace de travail : {0}",failedToShowPerformanceAnalytics:"Impossible d\u2019afficher les analyses de performance : {0}",failedToShowCacheDebugInfo:"Impossible d\u2019afficher les informations de d\xE9bogage du cache : {0}",noWorkspaceFolderOpen:"Aucun dossier d\u2019espace de travail ouvert",now:"maintenant",minutes:"min",hours:"h",days:"j",weeks:"sem",months:"mois",years:"an",justNow:"\xE0 l\u2019instant",minutesAgo:"il y a {0} minute(s)",hoursAgo:"il y a {0} heure(s)",daysAgo:"il y a {0} jour(s)",lastModified:"Derni\xE8re modification",refreshSuccess:"D\xE9corations de date actualis\xE9es",activationError:"\xC9chec de l\u2019activation d\u2019Explorer Dates",errorAccessingFile:"Erreur lors de l\u2019acc\xE8s au fichier pour la d\xE9coration",clearTelemetryPrompt:"Cela supprimera d\xE9finitivement les \xE9v\xE9nements de t\xE9l\xE9m\xE9trie stock\xE9s localement pour Explorer Dates. Cette action est irr\xE9versible. Continuer ?",clearTelemetryConfirm:"Effacer la t\xE9l\xE9m\xE9trie",clearTelemetryCancel:"Annuler",reportFormatDisabled:'Le format de rapport "{0}" est d\xE9sactiv\xE9. Formats autoris\xE9s : {1}',reportDownloadTriggered:"T\xE9l\xE9chargement du rapport lanc\xE9 dans le navigateur",selectReportTimeRangePlaceholder:"S\xE9lectionner la p\xE9riode du rapport",selectReportFormatPlaceholder:"S\xE9lectionner le format du rapport",cleanupNoDeprecated:"\u2139\uFE0F Aucun param\xE8tre obsol\xE8te \xE0 nettoyer.",showMigrationHistoryNoHistory:"Aucun historique de migration trouv\xE9.",resetConfirmation:"Cela r\xE9initialisera tous les param\xE8tres Explorer Dates \xE0 leurs valeurs par d\xE9faut. \xCAtes-vous s\xFBr ?",resetConfirm:"R\xE9initialiser les param\xE8tres",resetCancel:"Annuler",resetSuccess:"\u2705 {0} param\xE8tres ont \xE9t\xE9 r\xE9initialis\xE9s aux valeurs par d\xE9faut.",validateNoIssues:"\u2705 La configuration est valide - aucun probl\xE8me d\xE9tect\xE9 !",validateFoundIssues:"{0} probl\xE8me(s) de configuration trouv\xE9(s). Voulez-vous voir les d\xE9tails ?",validateShowDetails:"Afficher les d\xE9tails",validateDismiss:"Ignorer",migrationNotificationMessage:"Explorer Dates a mis \xE0 jour {0} param\xE8tre(s) pour compatibilit\xE9. Votre configuration a \xE9t\xE9 conserv\xE9e.",migrationViewChanges:"Voir les modifications",migrationOpenSettings:"Ouvrir les param\xE8tres",deprecatedPrompt:"Explorer Dates a trouv\xE9 {0} param\xE8tre(s) obsol\xE8te(s). Voulez-vous les supprimer ?",deprecatedClean:"Nettoyer maintenant",deprecatedKeep:"Conserver les anciens param\xE8tres",deprecatedAskLater:"Demander plus tard",showFileLocation:"Afficher l\u2019emplacement du fichier",teamConfigCorrupted:"Le fichier de configuration d\u2019\xE9quipe Explorer Dates semble corrompu. V\xE9rifiez le fichier .explorer-dates-profiles.json ou restaurez-le depuis une sauvegarde.",appliedFromTeamProfile:'{0} param\xE8tres Explorer Dates appliqu\xE9s depuis le profil d\u2019\xE9quipe "{1}".',documentedOverrides:"Substitutions Explorer Dates document\xE9es dans .vscode/explorer-dates-overrides.md",teamConfigMissingProfile:"La configuration d\u2019\xE9quipe ne contient aucun profil actif.",ephemeralStorageEnospc:"Impossible d\u2019enregistrer la configuration d\u2019\xE9quipe Explorer Dates car le disque est plein.",ephemeralStorageGeneric:"Impossible d\u2019enregistrer la configuration d\u2019\xE9quipe Explorer Dates car l\u2019espace de travail est en lecture seule ou les permissions sont restreintes.",ephemeralStorageSuffix:"Les modifications seront conserv\xE9es en m\xE9moire jusqu\u2019au red\xE9marrage de VS Code et pourraient \xEAtre perdues."}});var cr=_((Ra,Ai)=>{Ai.exports={migrationDetailsTitle:"Explorer Dates - Einstellungen migrieren",migrationDetailsHeader:"Einstellungen migrieren",gitAttributionWarning:"Explorer Dates: Git-Zuordnungsabzeichen sind in VS Code f\xFCr das Web nicht verf\xFCgbar. Zeitbasierte Hervorhebungen bleiben verf\xFCgbar.",noOverridesToDocument:"Keine \xDCberschreibungen zu dokumentieren.",overrideNotesHeader:"# Explorer Dates \xDCberschreibungsnotizen\\n\\n",analysisCommandsDisabled:"Die Analysebefehle von Explorer Dates sind deaktiviert. Tastenkombinationen wie Ctrl+Shift+M/H/A funktionieren nicht, bis explorerDates.enableAnalysisCommands aktiviert ist.",analysisEnableNow:"Jetzt aktivieren",analysisEnablePartially:"Die Aktivierung war teilweise erfolgreich. Aktualisieren Sie explorerDates.enableAnalysisCommands manuell in den verbleibenden Workspace-Ordnern.",analysisEnableFailed:"Aktivierung fehlgeschlagen: Aktualisieren Sie explorerDates.enableAnalysisCommands in den Workspace-Einstellungen.",workspaceTemplatesDisabled:"Workspace-Vorlagen sind deaktiviert. Aktivieren Sie explorerDates.enableWorkspaceTemplates, um diesen Befehl zu verwenden.",workspaceTemplatesDisabledSave:"Workspace-Vorlagen sind deaktiviert. Aktivieren Sie explorerDates.enableWorkspaceTemplates, um Vorlagen zu speichern.",enterTemplateName:"Vorlagenname eingeben",enterTemplateDescription:"Beschreibung eingeben (optional)",failedToOpenTemplateManager:"Fehler beim \xD6ffnen des Vorlagenmanagers: {0}",failedToSaveTemplate:"Fehler beim Speichern der Vorlage: {0}",reportingDisabled:"Berichtsfunktionen sind deaktiviert. Aktivieren Sie explorerDates.enableExportReporting, um Berichte zu erstellen.",failedToGenerateReport:"Fehler beim Erstellen des Berichts: {0}",apiDisabled:"Die Explorer Dates API ist in den Einstellungen deaktiviert.",failedToShowApiInformation:"Fehler beim Anzeigen der API-Informationen: {0}",failedToShowWorkspaceActivity:"Fehler beim Anzeigen der Workspace-Aktivit\xE4t: {0}",failedToShowPerformanceAnalytics:"Fehler beim Anzeigen der Leistungsanalysen: {0}",failedToShowCacheDebugInfo:"Fehler beim Anzeigen der Cache-Debug-Informationen: {0}",noWorkspaceFolderOpen:"Kein Workspace-Ordner ge\xF6ffnet",now:"jetzt",minutes:"Min",hours:"Std",days:"T",weeks:"W",months:"Mon",years:"J",justNow:"gerade eben",minutesAgo:"vor {0} Minute(n)",hoursAgo:"vor {0} Stunde(n)",daysAgo:"vor {0} Tag(en)",lastModified:"Zuletzt ge\xE4ndert",refreshSuccess:"Datumsdekorationen aktualisiert",activationError:"Explorer Dates konnte nicht aktiviert werden",errorAccessingFile:"Fehler beim Zugriff auf Datei f\xFCr Dekoration",clearTelemetryPrompt:"Dies l\xF6scht dauerhaft lokal gespeicherte Telemetrieereignisse f\xFCr Explorer Dates. Diese Aktion kann nicht r\xFCckg\xE4ngig gemacht werden. Fortfahren?",clearTelemetryConfirm:"Telemetrie l\xF6schen",clearTelemetryCancel:"Abbrechen",reportFormatDisabled:'Berichtsformat "{0}" ist deaktiviert. Zul\xE4ssige Formate: {1}',reportDownloadTriggered:"Bericht-Download im Browser gestartet",selectReportTimeRangePlaceholder:"Berichtszeitraum ausw\xE4hlen",selectReportFormatPlaceholder:"Berichtsformat ausw\xE4hlen",cleanupNoDeprecated:"\u2139\uFE0F Keine veralteten Einstellungen zum Bereinigen gefunden.",showMigrationHistoryNoHistory:"Kein Migrationsverlauf gefunden.",resetConfirmation:"Dies setzt alle Explorer Dates Einstellungen auf ihre Standardwerte zur\xFCck. Sind Sie sicher?",resetConfirm:"Einstellungen zur\xFCcksetzen",resetCancel:"Abbrechen",resetSuccess:"\u2705 {0} Einstellungen auf Standard zur\xFCckgesetzt.",validateNoIssues:"\u2705 Konfiguration ist g\xFCltig - keine Probleme gefunden!",validateFoundIssues:"{0} Konfigurationsproblem(e) gefunden. M\xF6chten Sie Details sehen?",validateShowDetails:"Details anzeigen",validateDismiss:"Verwerfen",migrationNotificationMessage:"Explorer Dates hat {0} Einstellung(en) zur Kompatibilit\xE4t aktualisiert. Ihre Konfiguration wurde beibehalten.",migrationViewChanges:"\xC4nderungen anzeigen",migrationOpenSettings:"Einstellungen \xF6ffnen",deprecatedPrompt:"Explorer Dates hat {0} veraltete Einstellung(en) gefunden. M\xF6chten Sie sie entfernen?",deprecatedClean:"Jetzt bereinigen",deprecatedKeep:"Alte Einstellungen behalten",deprecatedAskLater:"Sp\xE4ter fragen",showFileLocation:"Dateispeicherort anzeigen",teamConfigCorrupted:"Die Teamkonfigurationsdatei von Explorer Dates scheint besch\xE4digt zu sein. Bitte pr\xFCfen Sie die Datei .explorer-dates-profiles.json oder stellen Sie sie aus einem Backup wieder her.",appliedFromTeamProfile:'{0} Explorer Dates-Einstellungen aus dem Teamprofil "{1}" angewendet.',documentedOverrides:"Explorer Dates-\xDCberschreibungen in .vscode/explorer-dates-overrides.md dokumentiert",teamConfigMissingProfile:"Der Teamkonfiguration fehlt ein aktives Profil.",ephemeralStorageEnospc:"Die Teamkonfiguration von Explorer Dates konnte nicht gespeichert werden, da die Festplatte voll ist.",ephemeralStorageGeneric:"Die Teamkonfiguration von Explorer Dates konnte nicht gespeichert werden, da der Workspace schreibgesch\xFCtzt ist oder die Berechtigungen eingeschr\xE4nkt sind.",ephemeralStorageSuffix:"\xC4nderungen werden im Speicher behalten, bis VS Code neu startet, und k\xF6nnen verloren gehen."}});var lr=_((Pa,Ri)=>{Ri.exports={migrationDetailsTitle:"Explorer Dates - \u8A2D\u5B9A\u306E\u79FB\u884C",migrationDetailsHeader:"\u8A2D\u5B9A\u306E\u79FB\u884C",gitAttributionWarning:"Explorer Dates: Git \u306E\u5E30\u5C5E\u30D0\u30C3\u30B8\u306F VS Code for Web \u3067\u306F\u5229\u7528\u3067\u304D\u307E\u305B\u3093\u3002\u6642\u9593\u30D9\u30FC\u30B9\u306E\u88C5\u98FE\u306F\u5F15\u304D\u7D9A\u304D\u5229\u7528\u3067\u304D\u307E\u3059\u3002",noOverridesToDocument:"\u30C9\u30AD\u30E5\u30E1\u30F3\u30C8\u5316\u3059\u308B\u4E0A\u66F8\u304D\u306F\u3042\u308A\u307E\u305B\u3093\u3002",overrideNotesHeader:"# Explorer Dates \u4E0A\u66F8\u304D\u30E1\u30E2\\n\\n",analysisCommandsDisabled:"Explorer Dates \u306E\u5206\u6790\u30B3\u30DE\u30F3\u30C9\u306F\u7121\u52B9\u306B\u306A\u3063\u3066\u3044\u307E\u3059\u3002Ctrl+Shift+M/H/A \u306A\u3069\u306E\u30B7\u30E7\u30FC\u30C8\u30AB\u30C3\u30C8\u306F explorerDates.enableAnalysisCommands \u3092\u6709\u52B9\u306B\u3059\u308B\u307E\u3067\u6A5F\u80FD\u3057\u307E\u305B\u3093\u3002",analysisEnableNow:"\u4ECA\u3059\u3050\u6709\u52B9\u306B\u3059\u308B",analysisEnablePartially:"\u6709\u52B9\u5316\u306F\u4E00\u90E8\u6210\u529F\u3057\u307E\u3057\u305F\u3002\u6B8B\u308A\u306E\u30EF\u30FC\u30AF\u30B9\u30DA\u30FC\u30B9\u30D5\u30A9\u30EB\u30C0\u30FC\u3067 explorerDates.enableAnalysisCommands \u3092\u624B\u52D5\u3067\u66F4\u65B0\u3057\u3066\u304F\u3060\u3055\u3044\u3002",analysisEnableFailed:"\u6709\u52B9\u5316\u306B\u5931\u6557\u3057\u307E\u3057\u305F\uFF1A\u30EF\u30FC\u30AF\u30B9\u30DA\u30FC\u30B9\u8A2D\u5B9A\u3067 explorerDates.enableAnalysisCommands \u3092\u66F4\u65B0\u3057\u3066\u304F\u3060\u3055\u3044\u3002",workspaceTemplatesDisabled:"\u30EF\u30FC\u30AF\u30B9\u30DA\u30FC\u30B9\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8\u306F\u7121\u52B9\u306B\u306A\u3063\u3066\u3044\u307E\u3059\u3002\u3053\u306E\u30B3\u30DE\u30F3\u30C9\u3092\u4F7F\u7528\u3059\u308B\u306B\u306F explorerDates.enableWorkspaceTemplates \u3092\u6709\u52B9\u306B\u3057\u3066\u304F\u3060\u3055\u3044\u3002",workspaceTemplatesDisabledSave:"\u30EF\u30FC\u30AF\u30B9\u30DA\u30FC\u30B9\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8\u306F\u7121\u52B9\u306B\u306A\u3063\u3066\u3044\u307E\u3059\u3002\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8\u3092\u4FDD\u5B58\u3059\u308B\u306B\u306F explorerDates.enableWorkspaceTemplates \u3092\u6709\u52B9\u306B\u3057\u3066\u304F\u3060\u3055\u3044\u3002",enterTemplateName:"\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8\u540D\u3092\u5165\u529B",enterTemplateDescription:"\u8AAC\u660E\u3092\u5165\u529B\uFF08\u4EFB\u610F\uFF09",failedToOpenTemplateManager:"\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8\u30DE\u30CD\u30FC\u30B8\u30E3\u30FC\u3092\u958B\u3051\u307E\u305B\u3093\u3067\u3057\u305F: {0}",failedToSaveTemplate:"\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8\u306E\u4FDD\u5B58\u306B\u5931\u6557\u3057\u307E\u3057\u305F: {0}",reportingDisabled:"\u30EC\u30DD\u30FC\u30C8\u6A5F\u80FD\u306F\u7121\u52B9\u306B\u306A\u3063\u3066\u3044\u307E\u3059\u3002\u30EC\u30DD\u30FC\u30C8\u3092\u751F\u6210\u3059\u308B\u306B\u306F explorerDates.enableExportReporting \u3092\u6709\u52B9\u306B\u3057\u3066\u304F\u3060\u3055\u3044\u3002",failedToGenerateReport:"\u30EC\u30DD\u30FC\u30C8\u306E\u751F\u6210\u306B\u5931\u6557\u3057\u307E\u3057\u305F: {0}",apiDisabled:"Explorer Dates API \u306F\u8A2D\u5B9A\u3067\u7121\u52B9\u306B\u306A\u3063\u3066\u3044\u307E\u3059\u3002",failedToShowApiInformation:"API \u60C5\u5831\u306E\u8868\u793A\u306B\u5931\u6557\u3057\u307E\u3057\u305F: {0}",failedToShowWorkspaceActivity:"\u30EF\u30FC\u30AF\u30B9\u30DA\u30FC\u30B9\u306E\u30A2\u30AF\u30C6\u30A3\u30D3\u30C6\u30A3\u3092\u8868\u793A\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F: {0}",failedToShowPerformanceAnalytics:"\u30D1\u30D5\u30A9\u30FC\u30DE\u30F3\u30B9\u5206\u6790\u3092\u8868\u793A\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F: {0}",failedToShowCacheDebugInfo:"\u30AD\u30E3\u30C3\u30B7\u30E5\u306E\u30C7\u30D0\u30C3\u30B0\u60C5\u5831\u3092\u8868\u793A\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F: {0}",noWorkspaceFolderOpen:"\u30EF\u30FC\u30AF\u30B9\u30DA\u30FC\u30B9\u30D5\u30A9\u30EB\u30C0\u30FC\u304C\u958B\u304B\u308C\u3066\u3044\u307E\u305B\u3093",now:"\u4ECA",minutes:"\u5206",hours:"\u6642\u9593",days:"\u65E5",weeks:"\u9031",months:"\u304B\u6708",years:"\u5E74",justNow:"\u305F\u3063\u305F\u4ECA",minutesAgo:"{0} \u5206\u524D",hoursAgo:"{0} \u6642\u9593\u524D",daysAgo:"{0} \u65E5\u524D",lastModified:"\u6700\u7D42\u66F4\u65B0",refreshSuccess:"\u65E5\u4ED8\u88C5\u98FE\u3092\u66F4\u65B0\u3057\u307E\u3057\u305F",activationError:"Explorer Dates \u306E\u6709\u52B9\u5316\u306B\u5931\u6557\u3057\u307E\u3057\u305F",errorAccessingFile:"\u88C5\u98FE\u7528\u30D5\u30A1\u30A4\u30EB\u3078\u306E\u30A2\u30AF\u30BB\u30B9\u30A8\u30E9\u30FC",clearTelemetryPrompt:"Explorer Dates \u306E\u30ED\u30FC\u30AB\u30EB\u4FDD\u5B58\u30C6\u30EC\u30E1\u30C8\u30EA\u30A4\u30D9\u30F3\u30C8\u3092\u5B8C\u5168\u306B\u524A\u9664\u3057\u307E\u3059\u3002\u3053\u306E\u64CD\u4F5C\u306F\u5143\u306B\u623B\u305B\u307E\u305B\u3093\u3002\u7D9A\u884C\u3057\u307E\u3059\u304B\uFF1F",clearTelemetryConfirm:"\u30C6\u30EC\u30E1\u30C8\u30EA\u3092\u524A\u9664",clearTelemetryCancel:"\u30AD\u30E3\u30F3\u30BB\u30EB",reportFormatDisabled:"\u30EC\u30DD\u30FC\u30C8\u5F62\u5F0F\u300C{0}\u300D\u306F\u7121\u52B9\u3067\u3059\u3002\u8A31\u53EF\u3055\u308C\u3066\u3044\u308B\u5F62\u5F0F: {1}",reportDownloadTriggered:"\u30D6\u30E9\u30A6\u30B6\u3067\u30EC\u30DD\u30FC\u30C8\u306E\u30C0\u30A6\u30F3\u30ED\u30FC\u30C9\u3092\u958B\u59CB\u3057\u307E\u3057\u305F",selectReportTimeRangePlaceholder:"\u30EC\u30DD\u30FC\u30C8\u306E\u671F\u9593\u3092\u9078\u629E",selectReportFormatPlaceholder:"\u30EC\u30DD\u30FC\u30C8\u5F62\u5F0F\u3092\u9078\u629E",cleanupNoDeprecated:"\u2139\uFE0F \u30AF\u30EA\u30FC\u30F3\u30A2\u30C3\u30D7\u3059\u308B\u975E\u63A8\u5968\u8A2D\u5B9A\u306F\u3042\u308A\u307E\u305B\u3093\u3002",showMigrationHistoryNoHistory:"\u79FB\u884C\u5C65\u6B74\u304C\u898B\u3064\u304B\u308A\u307E\u305B\u3093\u3002",resetConfirmation:"Explorer Dates \u306E\u3059\u3079\u3066\u306E\u8A2D\u5B9A\u3092\u65E2\u5B9A\u5024\u306B\u30EA\u30BB\u30C3\u30C8\u3057\u307E\u3059\u3002\u3088\u308D\u3057\u3044\u3067\u3059\u304B\uFF1F",resetConfirm:"\u8A2D\u5B9A\u3092\u30EA\u30BB\u30C3\u30C8",resetCancel:"\u30AD\u30E3\u30F3\u30BB\u30EB",resetSuccess:"\u2705 {0} \u4EF6\u306E\u8A2D\u5B9A\u3092\u65E2\u5B9A\u5024\u306B\u30EA\u30BB\u30C3\u30C8\u3057\u307E\u3057\u305F\u3002",validateNoIssues:"\u2705 \u8A2D\u5B9A\u306F\u6709\u52B9\u3067\u3059 - \u554F\u984C\u306F\u898B\u3064\u304B\u308A\u307E\u305B\u3093\u3067\u3057\u305F\uFF01",validateFoundIssues:"{0} \u4EF6\u306E\u8A2D\u5B9A\u554F\u984C\u304C\u898B\u3064\u304B\u308A\u307E\u3057\u305F\u3002\u8A73\u7D30\u3092\u8868\u793A\u3057\u307E\u3059\u304B\uFF1F",validateShowDetails:"\u8A73\u7D30\u3092\u8868\u793A",validateDismiss:"\u9589\u3058\u308B",migrationNotificationMessage:"Explorer Dates \u306F\u4E92\u63DB\u6027\u306E\u305F\u3081\u306B {0} \u4EF6\u306E\u8A2D\u5B9A\u3092\u66F4\u65B0\u3057\u307E\u3057\u305F\u3002\u8A2D\u5B9A\u306F\u4FDD\u6301\u3055\u308C\u3066\u3044\u307E\u3059\u3002",migrationViewChanges:"\u5909\u66F4\u3092\u8868\u793A",migrationOpenSettings:"\u8A2D\u5B9A\u3092\u958B\u304F",deprecatedPrompt:"Explorer Dates \u306F {0} \u4EF6\u306E\u975E\u63A8\u5968\u8A2D\u5B9A\u3092\u691C\u51FA\u3057\u307E\u3057\u305F\u3002\u524A\u9664\u3057\u307E\u3059\u304B\uFF1F",deprecatedClean:"\u4ECA\u3059\u3050\u30AF\u30EA\u30FC\u30F3\u30A2\u30C3\u30D7",deprecatedKeep:"\u53E4\u3044\u8A2D\u5B9A\u3092\u4FDD\u6301",deprecatedAskLater:"\u5F8C\u3067\u78BA\u8A8D",showFileLocation:"\u30D5\u30A1\u30A4\u30EB\u306E\u5834\u6240\u3092\u8868\u793A",teamConfigCorrupted:"Explorer Dates \u306E\u30C1\u30FC\u30E0\u8A2D\u5B9A\u30D5\u30A1\u30A4\u30EB\u304C\u7834\u640D\u3057\u3066\u3044\u308B\u53EF\u80FD\u6027\u304C\u3042\u308A\u307E\u3059\u3002.explorer-dates-profiles.json \u3092\u78BA\u8A8D\u3059\u308B\u304B\u30D0\u30C3\u30AF\u30A2\u30C3\u30D7\u304B\u3089\u5FA9\u5143\u3057\u3066\u304F\u3060\u3055\u3044\u3002",appliedFromTeamProfile:"\u30C1\u30FC\u30E0\u30D7\u30ED\u30D5\u30A1\u30A4\u30EB\u300C{1}\u300D\u304B\u3089 {0} \u4EF6\u306E Explorer Dates \u8A2D\u5B9A\u3092\u9069\u7528\u3057\u307E\u3057\u305F\u3002",documentedOverrides:".vscode/explorer-dates-overrides.md \u306B Explorer Dates \u306E\u4E0A\u66F8\u304D\u3092\u8A18\u9332\u3057\u307E\u3057\u305F",teamConfigMissingProfile:"\u30C1\u30FC\u30E0\u8A2D\u5B9A\u306B\u30A2\u30AF\u30C6\u30A3\u30D6\u306A\u30D7\u30ED\u30D5\u30A1\u30A4\u30EB\u304C\u3042\u308A\u307E\u305B\u3093\u3002",ephemeralStorageEnospc:"\u30C7\u30A3\u30B9\u30AF\u5BB9\u91CF\u4E0D\u8DB3\u306E\u305F\u3081\u3001Explorer Dates \u306E\u30C1\u30FC\u30E0\u8A2D\u5B9A\u3092\u4FDD\u5B58\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002",ephemeralStorageGeneric:"\u30EF\u30FC\u30AF\u30B9\u30DA\u30FC\u30B9\u304C\u8AAD\u307F\u53D6\u308A\u5C02\u7528\u3001\u307E\u305F\u306F\u6A29\u9650\u304C\u5236\u9650\u3055\u308C\u3066\u3044\u308B\u305F\u3081\u3001Explorer Dates \u306E\u30C1\u30FC\u30E0\u8A2D\u5B9A\u3092\u4FDD\u5B58\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002",ephemeralStorageSuffix:"\u5909\u66F4\u306F VS Code \u304C\u518D\u8D77\u52D5\u3059\u308B\u307E\u3067\u30E1\u30E2\u30EA\u306B\u4FDD\u6301\u3055\u308C\u308B\u305F\u3081\u3001\u5931\u308F\u308C\u308B\u53EF\u80FD\u6027\u304C\u3042\u308A\u307E\u3059\u3002"}});var ur=_((xa,Pi)=>{Pi.exports={migrationDetailsTitle:"Explorer Dates - \u8BBE\u7F6E\u8FC1\u79FB",migrationDetailsHeader:"\u8BBE\u7F6E\u8FC1\u79FB",gitAttributionWarning:"Explorer Dates\uFF1AGit \u5F52\u5C5E\u5FBD\u7AE0\u5728 VS Code Web \u7248\u4E2D\u4E0D\u53EF\u7528\u3002\u57FA\u4E8E\u65F6\u95F4\u7684\u88C5\u9970\u4ECD\u7136\u53EF\u7528\u3002",noOverridesToDocument:"\u6CA1\u6709\u9700\u8981\u8BB0\u5F55\u7684\u8986\u76D6\u9879\u3002",overrideNotesHeader:"# Explorer Dates \u8986\u76D6\u8BF4\u660E\\n\\n",analysisCommandsDisabled:"Explorer Dates \u5206\u6790\u547D\u4EE4\u5DF2\u7981\u7528\u3002\u5728\u542F\u7528 explorerDates.enableAnalysisCommands \u4E4B\u524D\uFF0CCtrl+Shift+M/H/A \u7B49\u5FEB\u6377\u952E\u5C06\u65E0\u6CD5\u4F7F\u7528\u3002",analysisEnableNow:"\u7ACB\u5373\u542F\u7528",analysisEnablePartially:"\u542F\u7528\u90E8\u5206\u6210\u529F\u3002\u8BF7\u5728\u5269\u4F59\u7684\u5DE5\u4F5C\u533A\u6587\u4EF6\u5939\u4E2D\u624B\u52A8\u66F4\u65B0 explorerDates.enableAnalysisCommands\u3002",analysisEnableFailed:"\u542F\u7528\u5931\u8D25\uFF1A\u8BF7\u5728\u5DE5\u4F5C\u533A\u8BBE\u7F6E\u4E2D\u66F4\u65B0 explorerDates.enableAnalysisCommands\u3002",workspaceTemplatesDisabled:"\u5DE5\u4F5C\u533A\u6A21\u677F\u5DF2\u7981\u7528\u3002\u542F\u7528 explorerDates.enableWorkspaceTemplates \u4EE5\u4F7F\u7528\u6B64\u547D\u4EE4\u3002",workspaceTemplatesDisabledSave:"\u5DE5\u4F5C\u533A\u6A21\u677F\u5DF2\u7981\u7528\u3002\u542F\u7528 explorerDates.enableWorkspaceTemplates \u4EE5\u4FDD\u5B58\u6A21\u677F\u3002",enterTemplateName:"\u8F93\u5165\u6A21\u677F\u540D\u79F0",enterTemplateDescription:"\u8F93\u5165\u63CF\u8FF0\uFF08\u53EF\u9009\uFF09",failedToOpenTemplateManager:"\u65E0\u6CD5\u6253\u5F00\u6A21\u677F\u7BA1\u7406\u5668\uFF1A{0}",failedToSaveTemplate:"\u4FDD\u5B58\u6A21\u677F\u5931\u8D25\uFF1A{0}",reportingDisabled:"\u62A5\u8868\u529F\u80FD\u5DF2\u7981\u7528\u3002\u542F\u7528 explorerDates.enableExportReporting \u4EE5\u751F\u6210\u62A5\u8868\u3002",failedToGenerateReport:"\u751F\u6210\u62A5\u8868\u5931\u8D25\uFF1A{0}",apiDisabled:"Explorer Dates API \u5DF2\u901A\u8FC7\u8BBE\u7F6E\u7981\u7528\u3002",failedToShowApiInformation:"\u663E\u793A API \u4FE1\u606F\u5931\u8D25\uFF1A{0}",failedToShowWorkspaceActivity:"\u663E\u793A\u5DE5\u4F5C\u533A\u6D3B\u52A8\u5931\u8D25\uFF1A{0}",failedToShowPerformanceAnalytics:"\u663E\u793A\u6027\u80FD\u5206\u6790\u5931\u8D25\uFF1A{0}",failedToShowCacheDebugInfo:"\u663E\u793A\u7F13\u5B58\u8C03\u8BD5\u4FE1\u606F\u5931\u8D25\uFF1A{0}",noWorkspaceFolderOpen:"\u672A\u6253\u5F00\u4EFB\u4F55\u5DE5\u4F5C\u533A\u6587\u4EF6\u5939",now:"\u73B0\u5728",minutes:"\u5206",hours:"\u5C0F\u65F6",days:"\u5929",weeks:"\u5468",months:"\u4E2A\u6708",years:"\u5E74",justNow:"\u521A\u521A",minutesAgo:"{0} \u5206\u949F\u524D",hoursAgo:"{0} \u5C0F\u65F6\u524D",daysAgo:"{0} \u5929\u524D",lastModified:"\u6700\u540E\u4FEE\u6539",refreshSuccess:"\u65E5\u671F\u88C5\u9970\u5DF2\u5237\u65B0",activationError:"Explorer Dates \u542F\u52A8\u5931\u8D25",errorAccessingFile:"\u8BBF\u95EE\u7528\u4E8E\u88C5\u9970\u7684\u6587\u4EF6\u65F6\u51FA\u9519",clearTelemetryPrompt:"\u8FD9\u5C06\u6C38\u4E45\u5220\u9664\u672C\u5730\u5B58\u50A8\u7684 Explorer Dates \u9065\u6D4B\u4E8B\u4EF6\u3002\u6B64\u64CD\u4F5C\u65E0\u6CD5\u64A4\u9500\u3002\u662F\u5426\u7EE7\u7EED\uFF1F",clearTelemetryConfirm:"\u6E05\u9664\u9065\u6D4B",clearTelemetryCancel:"\u53D6\u6D88",reportFormatDisabled:"\u62A5\u8868\u683C\u5F0F\u201C{0}\u201D\u5DF2\u7981\u7528\u3002\u5141\u8BB8\u7684\u683C\u5F0F\uFF1A{1}",reportDownloadTriggered:"\u5DF2\u5728\u6D4F\u89C8\u5668\u4E2D\u89E6\u53D1\u62A5\u8868\u4E0B\u8F7D",selectReportTimeRangePlaceholder:"\u9009\u62E9\u62A5\u8868\u65F6\u95F4\u8303\u56F4",selectReportFormatPlaceholder:"\u9009\u62E9\u62A5\u8868\u683C\u5F0F",cleanupNoDeprecated:"\u2139\uFE0F \u672A\u53D1\u73B0\u9700\u8981\u6E05\u7406\u7684\u5DF2\u5F03\u7528\u8BBE\u7F6E\u3002",showMigrationHistoryNoHistory:"\u672A\u627E\u5230\u8FC1\u79FB\u5386\u53F2\u3002",resetConfirmation:"\u8FD9\u5C06\u628A\u6240\u6709 Explorer Dates \u8BBE\u7F6E\u91CD\u7F6E\u4E3A\u9ED8\u8BA4\u503C\u3002\u786E\u5B9A\u5417\uFF1F",resetConfirm:"\u91CD\u7F6E\u8BBE\u7F6E",resetCancel:"\u53D6\u6D88",resetSuccess:"\u2705 \u5DF2\u5C06 {0} \u9879\u8BBE\u7F6E\u91CD\u7F6E\u4E3A\u9ED8\u8BA4\u503C\u3002",validateNoIssues:"\u2705 \u914D\u7F6E\u6709\u6548 - \u672A\u53D1\u73B0\u95EE\u9898\uFF01",validateFoundIssues:"\u53D1\u73B0 {0} \u4E2A\u914D\u7F6E\u95EE\u9898\u3002\u662F\u5426\u67E5\u770B\u8BE6\u7EC6\u4FE1\u606F\uFF1F",validateShowDetails:"\u663E\u793A\u8BE6\u7EC6\u4FE1\u606F",validateDismiss:"\u5173\u95ED",migrationNotificationMessage:"Explorer Dates \u4E3A\u517C\u5BB9\u6027\u66F4\u65B0\u4E86 {0} \u9879\u8BBE\u7F6E\u3002\u60A8\u7684\u914D\u7F6E\u5DF2\u4FDD\u7559\u3002",migrationViewChanges:"\u67E5\u770B\u66F4\u6539",migrationOpenSettings:"\u6253\u5F00\u8BBE\u7F6E",deprecatedPrompt:"Explorer Dates \u53D1\u73B0 {0} \u4E2A\u5DF2\u5F03\u7528\u8BBE\u7F6E\u3002\u662F\u5426\u5220\u9664\uFF1F",deprecatedClean:"\u7ACB\u5373\u6E05\u7406",deprecatedKeep:"\u4FDD\u7559\u65E7\u8BBE\u7F6E",deprecatedAskLater:"\u7A0D\u540E\u8BE2\u95EE",showFileLocation:"\u663E\u793A\u6587\u4EF6\u4F4D\u7F6E",teamConfigCorrupted:"Explorer Dates \u56E2\u961F\u914D\u7F6E\u6587\u4EF6\u4F3C\u4E4E\u5DF2\u635F\u574F\u3002\u8BF7\u68C0\u67E5 .explorer-dates-profiles.json \u6587\u4EF6\u6216\u4ECE\u5907\u4EFD\u6062\u590D\u3002",appliedFromTeamProfile:"\u5DF2\u4ECE\u56E2\u961F\u914D\u7F6E\u6587\u4EF6\u201C{1}\u201D\u5E94\u7528 {0} \u9879 Explorer Dates \u8BBE\u7F6E\u3002",documentedOverrides:"\u5DF2\u5728 .vscode/explorer-dates-overrides.md \u4E2D\u8BB0\u5F55 Explorer Dates \u8986\u76D6\u9879",teamConfigMissingProfile:"\u56E2\u961F\u914D\u7F6E\u7F3A\u5C11\u6D3B\u52A8\u914D\u7F6E\u6587\u4EF6\u3002",ephemeralStorageEnospc:"\u7531\u4E8E\u78C1\u76D8\u5DF2\u6EE1\uFF0C\u65E0\u6CD5\u4FDD\u5B58 Explorer Dates \u56E2\u961F\u914D\u7F6E\u3002",ephemeralStorageGeneric:"\u7531\u4E8E\u5DE5\u4F5C\u533A\u4E3A\u53EA\u8BFB\u6216\u6743\u9650\u53D7\u9650\uFF0C\u65E0\u6CD5\u4FDD\u5B58 Explorer Dates \u56E2\u961F\u914D\u7F6E\u3002",ephemeralStorageSuffix:"\u66F4\u6539\u5C06\u5728 VS Code \u91CD\u542F\u524D\u4FDD\u5B58\u5728\u5185\u5B58\u4E2D\uFF0C\u56E0\u6B64\u53EF\u80FD\u4F1A\u4E22\u5931\u3002"}});var dr=_((Ma,hr)=>{var j={};j.en=ar();j.es=or();j.fr=sr();j.de=cr();j.ja=lr();j.zh=ur();hr.exports=j});var ot=_((Ia,fr)=>{var V=require("vscode"),z={en:{now:"now",minutes:"m",hours:"h",days:"d",weeks:"w",months:"mo",years:"y",justNow:"just now",minutesAgo:e=>`${e} minute${e!==1?"s":""} ago`,hoursAgo:e=>`${e} hour${e!==1?"s":""} ago`,yesterday:"yesterday",daysAgo:e=>`${e} day${e!==1?"s":""} ago`,lastModified:"Last modified",refreshSuccess:"Date decorations refreshed",activationError:"Explorer Dates failed to activate",errorAccessingFile:"Error accessing file for decoration",clearTelemetryPrompt:"This will permanently delete locally-stored telemetry events for Explorer Dates. This action cannot be undone. Proceed?",clearTelemetryConfirm:"Clear Telemetry",clearTelemetryCancel:"Cancel",clearTelemetrySuccess:"\u2705 Explorer Dates telemetry cleared.",migrateChecking:"Checking for settings that need migration...",migrateAllUpToDate:"\u2705 All settings are up to date!",migrateApplied:e=>`\u2705 Explorer Dates maintenance applied: ${e}.`,organizeSettingsResult:e=>`Explorer Dates settings organized: ${e}`,cleanupSuccess:"\u2705 Deprecated settings have been cleaned up!",reportFormatDisabled:(e,t)=>`Report format "${e}" is disabled. Allowed formats: ${t}`,reportSaved:e=>`Report saved to ${e}`,reportGenerateFailed:"Failed to generate report",reportDownloadTriggered:"Report download triggered in browser",selectReportTimeRangePlaceholder:"Select report time range",selectReportFormatPlaceholder:"Select report format",cleanupNoDeprecated:"\u2139\uFE0F No deprecated settings found to clean up.",showMigrationHistoryNoHistory:"No migration history found.",resetConfirmation:"This will reset all Explorer Dates settings to their default values. Are you sure?",migrationDetailsTitle:"Explorer Dates - Settings Migration",migrationDetailsHeader:"Settings Migration",gitAttributionWarning:"Explorer Dates: Git attribution badges are unavailable on VS Code for Web. Time-based decorations remain available.",noOverridesToDocument:"No overrides to document.",overrideNotesHeader:`# Explorer Dates Override Notes -`,analysisCommandsDisabled:"Explorer Dates analysis commands are disabled. Shortcuts like Ctrl+Shift+M/H/A will not work until you enable explorerDates.enableAnalysisCommands.",analysisEnableNow:"Enable Now",analysisEnablePartially:"Enable partially succeeded. Update explorerDates.enableAnalysisCommands in remaining workspace folders manually.",analysisEnableFailed:"Enable failed: update explorerDates.enableAnalysisCommands in workspace settings.",workspaceTemplatesDisabled:"Workspace templates are disabled. Enable explorerDates.enableWorkspaceTemplates to use this command.",workspaceTemplatesDisabledSave:"Workspace templates are disabled. Enable explorerDates.enableWorkspaceTemplates to save templates.",enterTemplateName:"Enter template name",enterTemplateDescription:"Enter description (optional)",failedToOpenTemplateManager:e=>`Failed to open template manager: ${e}`,failedToSaveTemplate:e=>`Failed to save template: ${e}`,reportingDisabled:"Reporting features are disabled. Enable explorerDates.enableExportReporting to generate reports.",failedToGenerateReport:e=>`Failed to generate report: ${e}`,apiDisabled:"Explorer Dates API is disabled via settings.",failedToShowApiInformation:e=>`Failed to show API information: ${e}`,failedToShowWorkspaceActivity:e=>`Failed to show workspace activity: ${e}`,failedToShowPerformanceAnalytics:e=>`Failed to show performance analytics: ${e}`,failedToShowCacheDebugInfo:e=>`Failed to show cache debug info: ${e}`,noWorkspaceFolderOpen:"No workspace folder open",resetConfirm:"Reset Settings",resetCancel:"Cancel",resetSuccess:e=>`\u2705 Reset ${e} settings to defaults.`,validateNoIssues:"\u2705 Configuration is valid - no issues found!",validateFoundIssues:e=>`Found ${e} configuration issue(s). Would you like to see details?`,validateShowDetails:"Show Details",validateDismiss:"Dismiss",migrationNotificationMessage:e=>`Explorer Dates updated ${e} setting(s) for compatibility. Your configuration has been preserved.`,migrationViewChanges:"View Changes",migrationOpenSettings:"Open Settings",deprecatedPrompt:e=>`Explorer Dates found ${e} deprecated setting(s). Would you like to remove them?`,deprecatedClean:"Clean Up Now",deprecatedKeep:"Keep Old Settings",deprecatedAskLater:"Ask Later",showFileLocation:"Show File Location",teamConfigCorrupted:"Explorer Dates team configuration file appears to be corrupted. Please check the .explorer-dates-profiles.json file or restore from backup.",appliedFromTeamProfile:(e,t)=>`Applied ${e} Explorer Dates settings from team profile "${t}".`,documentedOverrides:"Documented Explorer Dates overrides in .vscode/explorer-dates-overrides.md",teamConfigMissingProfile:"Team configuration is missing an active profile.",ephemeralStorageEnospc:"Explorer Dates team configuration could not be saved because the disk is full.",ephemeralStorageGeneric:"Explorer Dates team configuration could not be saved because the workspace is read-only or permissions are restricted.",ephemeralStorageSuffix:" Changes will be kept in memory until VS Code restarts, so they may be lost."}};try{let e=dr();if(e&&typeof e=="object")for(let[t,r]of Object.entries(e)){z[t]||(z[t]={});for(let[n,i]of Object.entries(r))typeof z[t][n]>"u"&&(z[t][n]=i)}}catch{}var De=class{constructor(){this.Ce="en",this.E=null,this.ft(),typeof V.workspace.onDidChangeConfiguration=="function"?this.E=V.workspace.onDidChangeConfiguration(t=>{t.affectsConfiguration("explorerDates.locale")&&this.ft()}):this.E=null}ft(){let r=V.workspace.getConfiguration("explorerDates").get("locale","auto");if(r==="auto"){let n=V&&V.env&&typeof V.env.language=="string"?V.env.language:"en";try{r=String(n||"en").split("-")[0]}catch{r="en"}}z[r]||(r="en"),this.Ce=r}getString(t,...r){let i=(z[this.Ce]||z.en)[t];return typeof i=="function"?i(...r):i||z.en[t]||t}getCurrentLocale(){return this.Ce}formatDate(t,r={}){try{return t.toLocaleDateString(this.Ce,r)}catch{return t.toLocaleDateString("en",r)}}dispose(){this.E&&(this.E.dispose(),this.E=null),fe===this&&(fe=null)}},fe=null;function xi(){return fe||(fe=new De),fe}fr.exports={LocalizationManager:De,getLocalization:xi}});var st=_((Wa,gr)=>{function Mi(e){let t=require("vscode");function r(l,d,h,g,y,m){if(!e.Gt||!g)return m&&(m.misses++,m.allocations++),y();if(l.has(g))return m&&(m.hits++,m.reuses++),l.get(g);m&&(m.misses++,m.allocations++);let D=y();if(l.set(g,D),d.push(g),d.length>h){let E=d.shift();E&&l.delete(E)}return D}function n({formatType:l,diffMinutes:d,diffHours:h,diffDays:g,diffWeeks:y,diffMonths:m,date:D}){let E=(M,F=null)=>({value:M,key:F?`badge:${l||"default"}:${F}`:null});switch(l){case"relative-short":case"relative-long":return d<1?E("\u25CF\u25CF","just"):d<60?E(`${Math.min(d,99)}m`,`m:${Math.min(d,99)}`):h<24?E(`${Math.min(h,23)}h`,`h:${Math.min(h,23)}`):g<7?E(`${g}d`,`d:${g}`):y<4?E(`${y}w`,`w:${y}`):m<12?E(`${m}M`,`M:${m}`):E("1y","y:1");case"absolute-short":case"absolute-long":{let M=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],F=D.getDate(),X=`${M[D.getMonth()]}${F<10?"0"+F:F}`,w=[D.getMonth(),F];return l==="absolute-long"&&w.push(D.getFullYear()),E(X,`abs:${w.join("-")}`)}case"technical":return d<60?E(`${d}m`,`tech:m:${d}`):h<24?E(`${h}h`,`tech:h:${h}`):E(`${g}d`,`tech:d:${g}`);case"minimal":return h<1?E("\u2022\u2022","min:now"):h<24?E("\u25CB\u25CB","min:hours"):E("\u2500\u2500","min:days");default:return d<60?E(`${d}m`,`smart:m:${d}`):h<24?E(`${h}h`,`smart:h:${h}`):E(`${g}d`,`smart:d:${g}`)}}function i(l,d,h=null){let y=h!==null?h:new Date().getTime()-l.getTime();if(y<0)return e._logger.debug(`File has future modification time (diffMs: ${y}), treating as just modified`),"\u25CF\u25CF";let m=Math.floor(y/(1e3*60)),D=Math.floor(y/(1e3*60*60)),E=Math.floor(y/(1e3*60*60*24)),M=Math.floor(E/7),F=Math.floor(E/30),X=n({formatType:d,diffMinutes:m,diffHours:D,diffDays:E,diffWeeks:M,diffMonths:F,date:l});return r(e.x,e.Se,e.Xt,X.key,()=>X.value,e.Yt)}function a(l){if(!l)return"none";if(typeof l=="string")return l;if(l.id)return l.id;try{return JSON.stringify(l)}catch{return String(l)}}function o(l,d,h){let g=l||"",y=d||"",m=a(h);return`${g}::${m}::${y}`}function s({badge:l,tooltip:d,color:h}){if(!e.Zt){e.z.misses++,e.z.allocations++;let m=new t.FileDecoration(l||"??");return d&&(m.tooltip=d),h&&(m.color=h),m.propagate=!1,m}if(!l)return e.z.allocations++,new t.FileDecoration("??");let g=o(l,d,h);if(g&&e.c.has(g))return e.z.hits++,e.z.reuses++,e.c.get(g);let y=new t.FileDecoration(l);if(d&&(y.tooltip=d),h&&(y.color=h),y.propagate=!1,e.z.allocations++,g&&(e.c.set(g,y),e.H.push(g),e.H.length>e.Jt)){let m=e.H.shift();m&&m!==g&&e.c.delete(m)}return e.z.misses++,y}function c(l="unspecified"){e.c.size!==0&&(e.c.clear(),e.H.length=0,e._logger.debug(`\u{1F9FC} Cleared decoration pool (${l})`))}async function u({filePath:l,stat:d,gitBlame:h,shouldUseAccessibleTooltips:g,fileSizeFormat:y}){if(g){let D=e._accessibility?.getAccessibleTooltip?.(l,d.mtime,d.birthtime,d.size,h);if(D)return D}let m=[];try{let D=e.p.formatDate(d.mtime);if(m.push(`${D}`),y&&typeof d.size=="number"){let E=e.gt(d.size,y);m.push(E)}h&&h.author&&m.push(`Author: ${h.author}`)}catch(D){e._logger.debug("Tooltip builder failed",D)}return m.join(" \u2014 ")}return{acquireDecorationFromPool:s,clearDecorationPool:c,tn:o,rn:a,Qt:i,nn:n,er:r,Te:u}}gr.exports={createDecorationLogic:Mi}});var Ce=_((exports,module)=>{function createDecorationProviderHelpers(provider){let vscode=require("vscode"),{diagLogOnce,diagLog,isWebDiagnosticsEnabled}=he(),{formatBadge,formatTooltip}=it(),decorationDiagCount=0,maxDecorationDiag=20,CONTRIBUTED_CUSTOM_COLOR_TOKENS=new Set(["explorerDates.customColor.veryRecent","explorerDates.customColor.recent","explorerDates.customColor.old"]),isWebRuntime=(()=>{try{return vscode?.env?.uiKind===vscode?.UIKind?.Web}catch{return!1}})(),getFileName,getExtension,normalizePath,getUriPath,ensureDate;try{let e=K();e&&(getFileName=e.getFileName,getExtension=e.getExtension,normalizePath=e.normalizePath,getUriPath=e.getUriPath,ensureDate=e.ensureDate)}catch{}if(!getFileName||!ensureDate){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function")try{let e=dynamicRequire("../utils/pathUtils"),t=dynamicRequire("../utils/dateHelpers");getFileName=getFileName||e.getFileName,getExtension=getExtension||e.getExtension,normalizePath=normalizePath||e.normalizePath,getUriPath=getUriPath||e.getUriPath,ensureDate=ensureDate||t.ensureDate}catch{}}catch{}getFileName||(getFileName=e=>{let t=String(e||""),r=t.replace(/\\/g,"/").lastIndexOf("/");return r===-1?t:t.substring(r+1)}),getExtension||(getExtension=e=>{let t=String(e||""),r=t.lastIndexOf(".");return r<=0?"":t.substring(r).toLowerCase()}),normalizePath||(normalizePath=(e="")=>(e||"").toString().replace(/\\/g,"/")),getUriPath||(getUriPath=(e="")=>e?typeof e=="string"?e:e?.fsPath?e.fsPath:e?.path?e.path:String(e):""),ensureDate||(ensureDate=e=>e instanceof Date?e:typeof e=="number"?new Date(e):typeof e=="string"?isNaN(Date.parse(e))?new Date:new Date(Date.parse(e)):new Date)}async function provideDecoration(e,t){let r=!1,n=null,i,a=null,o=null,s=null,c=null,u=!1,l=null,d=null,h=null,g=null,y=null,m=null,D=!1,E=()=>isWebDiagnosticsEnabled&&isWebDiagnosticsEnabled()&&decorationDiagCount{let w=null;try{w=vscode.workspace.getConfiguration("explorerDates")}catch{w=null}let U=w?w.get("colorScheme","none"):"none",b=w?w.get("showDateDecorations",!0):!0,H=typeof provider._performanceMode=="boolean"?provider._performanceMode:w?w.get("performanceMode",!1):!1,oe=isWebRuntime&&w?!!w.get("webDiagnosticsBuiltinColors",!1):!1;return{isWeb:isWebRuntime,isCanary:!1,builtinColorFallbackActive:oe,colorScheme:U,effectiveColorScheme:U,showDateDecorations:b,performanceMode:H,featureLevel:provider.$,previewSettings:!!provider.X}},F=w=>{if(!E()||r)return;decorationDiagCount+=1,r=!0;let b={...M(),...w};!b.scheme&&n&&(b.scheme=n),b.effectiveColorScheme||(b.effectiveColorScheme=b.colorScheme),typeof b.hasColor>"u"&&(b.hasColor=!!b.color),typeof b.badge>"u"&&(b.badge=null),typeof b.propagate>"u"&&(b.propagate=null),typeof b.decorationKeys>"u"&&(b.decorationKeys=null),typeof b.nullReason>"u"&&(b.nullReason=null),typeof b.timestampSource>"u"&&(b.timestampSource="not-attempted"),typeof b.gitRecencyAvailable>"u"&&(b.gitRecencyAvailable=!1),typeof b.gitRecencyError>"u"&&(b.gitRecencyError=null),typeof b.resolvedTimestampMs>"u"&&(b.resolvedTimestampMs=null),typeof b.gitRepoMatched>"u"&&(b.gitRepoMatched=null),typeof b.gitPathAttempted>"u"&&(b.gitPathAttempted=null),b.themeTokenSource||(b.isCanary?b.themeTokenSource="canary":b.builtinColorFallbackActive?b.themeTokenSource="builtin-fallback":typeof b.color=="string"&&b.color.startsWith("explorerDates.")?b.themeTokenSource="custom-token":b.color?b.themeTokenSource="builtin-token":b.themeTokenSource=null),diagLog("info","Decoration return sample",b)},X=w=>{if(!(!E()||r))try{F(w)}catch{}};try{if(provider.$e){a="disposed";return}if(!e){a="no-uri";return}let w=e.fsPath||e.path||"";n=e.scheme||"file";let U=vscode.workspace.getConfiguration("explorerDates"),b=U.get("performanceMode",!1);if(b&&typeof b!="boolean")return a="invalid-performanceMode",null;if(w&&w.includes("\0"))return a="invalid-path",null;let H=getUriPath(e);if(!H){a="missing-path";return}let oe=provider.Be?provider.Be(H):getFileName(H)||H,mt=normalizePath(H),Kr=n||"file";if(typeof provider.Ke!="function"){diagLogOnce("decorations-fallback-provider","warn","Decoration fallback active (missing provider helpers)");try{let A=await provider._fileSystem.stat(e);if(!A){a="no-stat";return}let Y=A.mtime instanceof Date?A.mtime:A.mtime?new Date(A.mtime):null,Ie=Y&&typeof Y.getTime=="function"?Y.getTime():NaN;if(!Number.isFinite(Ie)){a="invalid-stat";return}let se=Date.now()-Y.getTime(),We=se<1440*60*1e3?"\u2022":se<10080*60*1e3?"\u25E6":"\xB7",Le=`Modified: ${Y.toISOString()}`,me=new vscode.FileDecoration(We,Le);return i=me,y=We,h=!1,g=null,m=me?.propagate,me}catch{a="fallback-error";return}}if(!provider.Ke(e,"provideFileDecoration")?.isValid){a="invalid-uri";return}if(await provider.tr(e)){a="excluded";return}return i=await provider.rr(w,async()=>{if(t?.isCancellationRequested||provider.$e){a=t?.isCancellationRequested?"cancelled":"disposed";return}let A=(k,pe)=>provider.X&&Object.prototype.hasOwnProperty.call(provider.X,k)?provider.X[k]:vscode.workspace.getConfiguration("explorerDates").get(k,pe);if(isWebRuntime&&A("webDiagnosticsCanary",!1)&&isWebDiagnosticsEnabled&&isWebDiagnosticsEnabled()&&decorationDiagCount=provider.ue;if(provider.ir>provider.ue*.8&&Le){diagLogOnce("decorations-backpressure","warn","Decoration backpressure fallback active");let k=provider.ar(e,Date.now());return y=k?.badge||null,h=!!k?.color,g=k?.color&&k?.color.id?k.color.id:k?.color||null,m=k?.propagate,a="backpressure",k}provider.or(),provider._metrics.cacheMisses++;let N=null;if(!Ie&&provider._workspaceIntelligence?.incrementalIndexer){let k=provider._workspaceIntelligence.incrementalIndexer.getIndexedStat(w);k&&(N=k)}let pt=Date.now();if(!N){try{N=await provider._fileSystem.stat(e)}catch(k){if(provider._metrics.fileStatTimeMs+=Date.now()-pt,provider._metrics.fileStatCalls++,provider.sr(k)){a="stat-not-found";return}if(Kr!=="file"){a="stat-failed";return}throw a="stat-failed",k}provider._workspaceIntelligence?.incrementalIndexer&&provider._workspaceIntelligence.incrementalIndexer.primeFromStat(e,N)}if(provider._metrics.fileStatTimeMs+=Date.now()-pt,provider._metrics.fileStatCalls++,!(typeof N.isFile=="function"?N.isFile():!0)){a="not-regular-file";return}u=!0;let T=null;try{typeof provider.pt=="function"&&(T=await provider.pt(e,N,{filePath:w,fileLabel:oe}))}catch(k){c={source:"unknown",gitAvailable:!1,gitError:k?.message?`resolver-error:${k.message}`:"resolver-error",repoMatched:null,pathAttempted:null}}if((!T||T.bucket==="unknown"||T.source==="unknown")&&!A("freshnessShowUnknown",!0)){a="freshness-unknown";return}let Oe=A("colorScheme","none");provider._performanceMode&&Oe!=="custom"&&(Oe="none");let jr=A("fileSizeFormat","auto"),Z=provider.yt,Vr=Z&&typeof Z.Te=="function"?Z.Te:provider.Te,Gr=Z&&typeof Z.acquireDecorationFromPool=="function"?Z.acquireDecorationFromPool:provider.cr,Ne=formatBadge(T?.bucket||"unknown",T?.source||"unknown",U,T?.confidence||"low");if(!Ne){a="badge-suppressed";return}let $=T?.exactTimestamp?provider.lr(new Date(T.exactTimestamp),Oe,w):void 0,Xr=formatTooltip(T,U)||await Vr({filePath:w,resourceUri:e,stat:N,badgeDetails:{},gitBlame:null,shouldUseAccessibleTooltips:!1,fileSizeFormat:jr,isCodeFile:!1}),qe=Gr({badge:Ne,tooltip:Xr,color:$});return g=$&&typeof $=="object"&&"id"in $?$.id:$||null,h=!!$,y=String(Ne||""),m=qe?.propagate,typeof g=="string"&&g.startsWith("explorerDates.customColor.")&&!CONTRIBUTED_CUSTOM_COLOR_TOKENS.has(g)&&diagLogOnce(`missing-custom-color-${g}`,"warn","Custom color token missing from contributes.colors",{colorId:g,knownTokens:Array.from(CONTRIBUTED_CUSTOM_COLOR_TOKENS)}),l=T?.exactTimestamp||null,c=c||{source:T?.source||"unknown",bucket:T?.bucket||"unknown",confidence:T?.confidence||"low",reason:T?.reason||null,attempts:T?.attempts||null,gitAvailable:T?.source==="git",gitError:null,repoMatched:null,pathAttempted:null},provider.ur(se,qe,oe,e,T),qe}),i}catch(w){o=w?.name||"Error",s=w?.message||String(w),a=a||"exception";return}finally{if(i){if(d==null)try{d=Object.keys(i||{})}catch{d=null}if(y==null&&typeof i.badge<"u"&&(y=i.badge),m==null&&typeof i.propagate<"u"&&(m=i.propagate),g==null&&typeof i.color<"u")try{g=i.color&&i.color.id?i.color.id:i.color}catch{g=i.color}h==null&&typeof g<"u"&&(h=!!g)}let w={uri:e?getFileName(getUriPath(e)||""):null,scheme:n,isCanary:D,badge:y,hasColor:h,color:g,propagate:m,decorationKeys:d,nullReason:i?null:a||"unknown",timestampSource:c?.source||(u?"none":"not-attempted"),gitRecencyAvailable:!!c?.gitAvailable,gitRecencyError:c?.gitError||null,resolvedTimestampMs:l,gitRepoMatched:c?.repoMatched??null,gitPathAttempted:c?.pathAttempted||null,freshnessBucket:c?.bucket||null,freshnessSource:c?.source||null,freshnessConfidence:c?.confidence||null,freshnessReason:c?.reason||null,freshnessAttempts:c?.attempts||null,exceptionName:o,exceptionMessage:s};X(w)}}return{provideDecoration}}module.exports={createDecorationProviderHelpers}});var ct=_((La,yr)=>{function mr(e){!e._allocationTelemetryEnabled||e._telemetryReportTimer||(e._telemetryReportTimer=setTimeout(()=>{e._telemetryReportTimer=null,pr(e),mr(e)},e._telemetryReportInterval))}function pr(e){let t=e.getMetrics().allocationTelemetry,r=t.decorationPool.allocations+t.badgeFlyweight.allocations+t.readableFlyweight.allocations,n=t.decorationPool.reuses+t.badgeFlyweight.reuses+t.readableFlyweight.reuses;(r>0||n>0)&&e._logger?.info?.("\u{1F9EE} Allocation telemetry report",{timestamp:new Date().toISOString(),pool:{allocations:t.decorationPool.allocations,reuses:t.decorationPool.reuses,reuseRate:t.decorationPool.reusePercent+"%"},badgeFlyweight:{allocations:t.badgeFlyweight.allocations,reuses:t.badgeFlyweight.reuses,reuseRate:t.badgeFlyweight.reusePercent+"%"},readableFlyweight:{allocations:t.readableFlyweight.allocations,reuses:t.readableFlyweight.reuses,reuseRate:t.readableFlyweight.reusePercent+"%"},summary:{totalAllocations:r,totalReuses:n,overallReuseRate:r+n>0?(n/(r+n)*100).toFixed(1)+"%":"0%"},decorationsProcessed:e._metrics.totalDecorations,cacheHitRate:e.getMetrics().cacheHitRate})}yr.exports={scheduleTelemetryReport:mr,reportAllocationTelemetry:pr}});var br=_((exports,module)=>{var CHUNK_SIZES={onboarding:34,analysisCommands:23,exportReporting:17,extensionApi:15,workspaceTemplates:14,advancedCache:28,workspaceIntelligence:31,incrementalWorkers:19},BASE_BUNDLE_SIZE=99;function _getPresetDefinitionsSync(){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=dynamicRequire("./chunks/preset-definitions-chunk");if(e&&e.PRESET_DEFINITIONS)return e.PRESET_DEFINITIONS}}catch{}let FALLBACK_PRESET={minimal:{id:"minimal",name:"Minimal",description:"Lean setup that prioritizes responsiveness in large repos.",targetScenarios:["Large repos","Low resources","Minimal UI"],settings:{"explorerDates.performanceMode":!0,"explorerDates.showDateDecorations":!0}},balanced:{id:"balanced",name:"Balanced",description:"Default feature mix for most workspaces.",targetScenarios:["General development","Mixed workloads"],settings:{"explorerDates.enableOnboardingSystem":!0,"explorerDates.enableAnalysisCommands":!0,"explorerDates.performanceMode":!1,"explorerDates.dateDecorationFormat":"smart","explorerDates.colorScheme":"recency","explorerDates.badgePriority":"time"}},"web-development":{id:"web-development",name:"Web Development",description:"Optimized for frontend and full-stack web projects.",targetScenarios:["Web apps","Frontend teams"],settings:{"explorerDates.enableOnboardingSystem":!0,"explorerDates.dateDecorationFormat":"smart","explorerDates.colorScheme":"file-type","explorerDates.badgePriority":"time"}},enterprise:{id:"enterprise",name:"Enterprise",description:"Full feature set with reporting and integrations enabled.",targetScenarios:["Large teams","Governed environments"],settings:{"explorerDates.enableExportReporting":!0,"explorerDates.enableExtensionApi":!0,"explorerDates.dateDecorationFormat":"smart","explorerDates.colorScheme":"recency","explorerDates.badgePriority":"time"}},"data-science":{id:"data-science",name:"Data Science",description:"Insight-focused profile for data-heavy projects.",targetScenarios:["Data analysis","Research workflows"],settings:{"explorerDates.enableWorkspaceIntelligence":!0,"explorerDates.dateDecorationFormat":"iso-detailed","explorerDates.colorScheme":"recency","explorerDates.badgePriority":"time"}}};return FALLBACK_PRESET}var PRESET_DEFINITIONS=_getPresetDefinitionsSync(),RESTART_REQUIRED_SETTINGS=new Set(["enableOnboardingSystem","enableAnalysisCommands","enableExportReporting","enableExtensionApi","enableWorkspaceTemplates","enableAdvancedCache","enableWorkspaceIntelligence","enableIncrementalWorkers","performanceMode","smartFileWatching"]);function calculateBundleSize(e){let t=BASE_BUNDLE_SIZE;return e["explorerDates.enableOnboardingSystem"]&&(t+=CHUNK_SIZES.onboarding),e["explorerDates.enableAnalysisCommands"]&&(t+=CHUNK_SIZES.analysisCommands),e["explorerDates.enableExportReporting"]&&(t+=CHUNK_SIZES.exportReporting),e["explorerDates.enableExtensionApi"]&&(t+=CHUNK_SIZES.extensionApi),e["explorerDates.enableWorkspaceTemplates"]&&(t+=CHUNK_SIZES.workspaceTemplates),e["explorerDates.enableAdvancedCache"]&&(t+=CHUNK_SIZES.advancedCache),e["explorerDates.enableWorkspaceIntelligence"]&&(t+=CHUNK_SIZES.workspaceIntelligence),e["explorerDates.enableIncrementalWorkers"]&&(t+=CHUNK_SIZES.incrementalWorkers),t}function getDefaultPresetForProfile(e){let t=PRESET_DEFINITIONS;switch(e){case"minimal":case"extreme":return t.minimal||t.minimal;case"balanced":return t.balanced||t.balanced;case"web-development":return t["web-development"]||t["web-development"];case"data-science":return t["data-science"]||t["data-science"];case"enterprise":return t.enterprise||t.enterprise;default:return t.balanced||t.balanced}}module.exports={PRESET_DEFINITIONS,CHUNK_SIZES,BASE_BUNDLE_SIZE,RESTART_REQUIRED_SETTINGS,calculateBundleSize,getDefaultPresetForProfile}});var Er=_((Oa,_r)=>{var Se={onboarding:"src/chunks/onboarding-chunk",onboardingAssets:"src/chunks/onboarding-assets-chunk",reporting:"src/chunks/reporting-chunk",templates:"src/chunks/templates-chunk",analysis:"src/chunks/analysis-chunk",diagnostics:"src/chunks/diagnostics-chunk",extensionApi:"src/chunks/extension-api-chunk",advancedCache:"src/chunks/advancedCache-chunk",batchProcessor:"src/chunks/batchProcessor-chunk",decorationsAdvanced:"src/chunks/decorations-advanced",decorationsStatic:"src/chunks/decorations-static",workspaceIntelligence:"src/chunks/workspaceIntelligence",decorationLogic:"src/chunks/decoration-logic-chunk",decorationProvide:"src/chunks/decoration-provide-chunk",decorationHelpers:"src/chunks/decoration-helpers-chunk",decorationBatch:"src/chunks/decoration-batch-chunk",decorationWorkspaceIntel:"src/chunks/decoration-workspace-intel-chunk",decorationTelemetry:"src/chunks/decoration-telemetry-chunk",decorationRefresh:"src/chunks/decoration-refresh-chunk",decorationMemory:"src/chunks/decoration-memory-chunk",decorationPool:"src/chunks/decoration-pool-chunk",providerInit:"src/chunks/provider-init-chunk",fileDateProviderImpl:"src/chunks/file-date-provider-impl",fileDateProviderImplExport:"src/chunks/file-date-provider-impl-export",utilsShared:"src/chunks/utils-shared-chunk",incrementalWorkers:"src/chunks/incrementalWorkers",incrementalIndexer:"src/chunks/incrementalIndexer-chunk",uiAdapters:"src/chunks/ui-adapters",gitInsights:"src/chunks/gitInsights-chunk",smartWatcherFallback:"src/chunks/smartWatcherFallback-chunk",runtimeManagement:"src/chunks/runtime-management",runtimeManagementHeavy:"src/chunks/runtime-management-heavy",teamPersistence:"src/chunks/team-persistence-chunk",teamPersistenceUI:"src/chunks/team-persistence-ui-chunk",teamPersistenceLogic:"src/chunks/team-persistence-logic-chunk",settingsCoordinatorImpl:"src/chunks/settings-coordinator-impl-chunk",logger:"src/chunks/logger-chunk",loggerImpl:"src/chunks/logger-impl-chunk"};function Ii(e){return Se[e]||null}function Wi(){return Object.keys(Se)}function Li(e){let t={};for(let[r,n]of Object.entries(Se))t[r]=()=>e(`./${n}`);return t}var Oi=new Set(["gitInsights","reporting","templates","advancedCache","runtimeManagementHeavy","incrementalWorkers"]);_r.exports={CHUNK_MAP:Se,WEB_EXCLUDED_CHUNKS:Oi,getChunkSourcePath:Ii,getAllChunkNames:Wi,generateDevLoaderMap:Li}});var G=_((exports,module)=>{var FEATURE_FLAGS_GLOBAL_KEY="__explorerDatesFeatureFlags";function registerFeatureFlagsGlobal(e){if(e)try{typeof globalThis<"u"&&(globalThis[FEATURE_FLAGS_GLOBAL_KEY]=e)}catch{}}function loadFeatureFlagsFallback(){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function")return dynamicRequire("../featureFlags")}catch{}return null}function getFeatureFlagsGlobal(){try{if(typeof globalThis<"u"&&globalThis[FEATURE_FLAGS_GLOBAL_KEY])return globalThis[FEATURE_FLAGS_GLOBAL_KEY]}catch{}return loadFeatureFlagsFallback()}module.exports={FEATURE_FLAGS_GLOBAL_KEY,registerFeatureFlagsGlobal,getFeatureFlagsGlobal}});var ge=_((exports,module)=>{var getLogger=()=>{try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=dynamicRequire("./chunks/logger-chunk");if(e&&typeof e.getLogger=="function")return getLogger=e.getLogger,getLogger()}}catch{}try{return getLogger=q().getLogger,getLogger()}catch{return getLogger=()=>({debug:(()=>{})?.bind(console)||console.log,info:(()=>{}).bind(console),warn:(()=>{}).bind(console),error:(()=>{}).bind(console)}),getLogger()}},{CHUNK_SIZES}=br(),{getChunkSourcePath,getAllChunkNames}=Er(),{registerFeatureFlagsGlobal}=G(),{isWebEnvironment}=J(),featureLogger=null,env=typeof process<"u"&&process.env?process.env:{},DEFAULT_CHUNK_TIMEOUT_MS=Number(env.EXPLORER_DATES_CHUNK_TIMEOUT||(env.NODE_ENV==="test"?1e3:5e3)),NETWORK_ERROR_CODES=new Set(["ENOTFOUND","ECONNRESET","ECONNREFUSED","EAI_AGAIN","ETIMEDOUT","EHOSTUNREACH"]),BUILT_CHUNK_CACHE=new Map,CHUNK_METHOD_ALIASES={reporting:"exportReporting",templates:"workspaceTemplates",analysis:"analysisCommands"},DEV_CHUNK_PATH_CACHE=new Map,LAST_FEATURE_FAILURES=new Map;function getDevChunkImportPath(e){if(DEV_CHUNK_PATH_CACHE.has(e))return DEV_CHUNK_PATH_CACHE.get(e);let t=getChunkSourcePath(e);if(!t)return DEV_CHUNK_PATH_CACHE.set(e,null),null;let r=t;return r.startsWith("src/")&&(r=r.slice(4)),r.startsWith("./")||(r=`./${r}`),DEV_CHUNK_PATH_CACHE.set(e,r),r}function resolveNodeDependencies(){if(nativeDepsResolved)return!!(nativePath&&nativeFs);if(nativeDepsResolved=!0,!isNodeLikeRuntime())return!1;try{nativePath=eval("require")("path"),nativeFs=eval("require")("fs")}catch{nativePath=null,nativeFs=null}return!!(nativePath&&nativeFs)}var nativeDepsResolved=!1,nativePath=null,nativeFs=null;function isWebRuntime(){try{return isWebEnvironment()?!0:typeof process<"u"&&process?.env?.VSCODE_WEB==="true"}catch{return!1}}function isNodeLikeRuntime(){return typeof process<"u"&&!!process.versions?.node&&!isWebRuntime()}function getChunkTimeoutMs(){return DEFAULT_CHUNK_TIMEOUT_MS>0?DEFAULT_CHUNK_TIMEOUT_MS:0}function logFeature(e,t,r){featureLogger||(featureLogger=getLogger());let n=featureLogger;typeof n[e]=="function"?n[e](t,r):n.info(t,r)}function logFeatureDisabled(e,t){logFeature("info","Feature disabled via configuration",{feature:e,savedKB:t&&CHUNK_SIZES[t]!==void 0?CHUNK_SIZES[t]:void 0})}function isLikelyNetworkIssue(e){if(!e)return!1;if(e.code&&NETWORK_ERROR_CODES.has(e.code))return!0;let t=(e.message||"").toLowerCase();return t.includes("network")||t.includes("fetch")||t.includes("timed out")}function runWithChunkTimeout(e,t){let r=getChunkTimeoutMs(),n=()=>{try{return Promise.resolve(e())}catch(i){return Promise.reject(i)}};return r?new Promise((i,a)=>{let o=!1,s=setTimeout(()=>{if(o)return;o=!0;let c=new Error(`Chunk "${t}" load timed out after ${r}ms`);c.code="CHUNK_TIMEOUT",a(c)},r);n().then(c=>{o||(o=!0,clearTimeout(s),i(c))}).catch(c=>{o||(o=!0,clearTimeout(s),a(c))})}):n()}function logResolverFailure(e,t){if(!t)return;let r={chunkName:e,error:t.message,code:t.code,networkIssue:isLikelyNetworkIssue(t),timedOut:t.code==="CHUNK_TIMEOUT"},n=r.networkIssue||r.timedOut?"warn":"error";logFeature(n,"Chunk resolver failed",r)}function tryLoadBuiltChunk(e){if(!e||!resolveNodeDependencies()||typeof nativeFs?.existsSync!="function")return null;if(BUILT_CHUNK_CACHE.has(e))return BUILT_CHUNK_CACHE.get(e);let t=[];typeof __dirname=="string"&&nativePath&&(t.push(nativePath.join(__dirname,"chunks",`${e}.js`)),t.push(nativePath.join(__dirname,"..","dist","chunks",`${e}.js`)));for(let r of t)try{if(!r||!nativeFs.existsSync(r))continue;let n=require(r),i=n?.default||n;return BUILT_CHUNK_CACHE.set(e,i||null),i&&logFeature("info","Loaded chunk via built artifact fallback",{chunkName:e,path:r}),i}catch(n){logFeature("warn","Built chunk fallback failed",{chunkName:e,path:r,error:n.message})}return BUILT_CHUNK_CACHE.set(e,null),null}function tryRequireDevChunk(e){if(isWebRuntime())return null;let t=getDevChunkImportPath(e);if(!t)return null;try{let r=require(t);return r?.default||r}catch(r){(r.code!=="MODULE_NOT_FOUND"||typeof r.message=="string"&&!r.message.includes(t))&&logFeature("debug","Dev chunk require failed",{chunkName:e,importPath:t,error:r.message})}return null}function tryRequireLocalBuiltChunk(e){if(isWebRuntime())return null;let t=`./chunks/${e}`;try{let r=require(t);return r?.default||r}catch(r){r.code==="MODULE_NOT_FOUND"||logFeature("debug","Local chunk require failed",{chunkName:e,importPath:t,error:r.message})}return null}function getSavingsKey(e){return e in CHUNK_SIZES?e:CHUNK_METHOD_ALIASES[e]||null}function announceChunkSavings(e){let t=getSavingsKey(e);if(!t)return;let r=CHUNK_SIZES[t];if(!r)return;let i=`\u{1F4BE} ${t===e||!e?t:`${t} (requested as "${e}")`} chunk unavailable - keeping the feature disabled is saving ~${r}KB`;logFeature("info","Chunk savings applied",{chunkName:t,requestedName:e,savedKB:r})}var getFeatureConfig=()=>{try{let t=require("vscode").workspace.getConfiguration("explorerDates"),r=isWebRuntime(),n=i=>r?!1:i;return{enableOnboarding:t.get("enableOnboardingSystem",!0),enableExportReporting:n(t.get("enableExportReporting",!0)),enableWorkspaceTemplates:n(t.get("enableWorkspaceTemplates",!0)),enableAnalysisCommands:t.get("enableAnalysisCommands",!0),enableAdvancedCache:n(t.get("enableAdvancedCache",!0)),enableWorkspaceIntelligence:n(t.get("enableWorkspaceIntelligence",!0)),enableIncrementalWorkers:n(t.get("enableIncrementalWorkers",!1)),enableGitInsights:n(t.get("enableGitInsights",!0)),enableExtensionApi:t.get("enableExtensionApi",!0)}}catch{let e=isWebRuntime(),t=r=>e?!1:r;return{enableOnboarding:!0,enableExportReporting:t(!0),enableWorkspaceTemplates:t(!0),enableAnalysisCommands:!0,enableAdvancedCache:t(!0),enableWorkspaceIntelligence:t(!0),enableIncrementalWorkers:t(!1),enableGitInsights:t(!0),enableExtensionApi:!0}}},featureLoaders=new Map,chunkResolver=null;function setFeatureChunkResolver(e){if(e&&typeof e!="function")throw new Error("Feature chunk resolver must be a function");chunkResolver=e||null}function registerFeatureLoader(e,t){if(typeof t!="function")throw new Error(`Feature loader for "${e}" must be a function`);featureLoaders.set(e,t)}function unregisterFeatureLoader(e){featureLoaders.delete(e)}function clearFeatureLoaders(){featureLoaders.clear()}async function loadFeatureModule(e){LAST_FEATURE_FAILURES.delete(e);let t=featureLoaders.get(e);if(!t&&chunkResolver&&(t=()=>chunkResolver(e)),!t)return logFeature("warn","No loader registered for feature",{feature:e}),null;try{return await runWithChunkTimeout(()=>t(),e)}catch(r){return LAST_FEATURE_FAILURES.set(e,r),logFeature("warn","Feature loader failed",{feature:e,error:r.message,code:r.code,networkIssue:isLikelyNetworkIssue(r)}),announceChunkSavings(e),null}}function getFeatureLoadFailure(e){return LAST_FEATURE_FAILURES.get(e)}function registerDefaultLoaders(){getAllChunkNames().forEach(t=>{featureLoaders.has(t)||registerFeatureLoader(t,createDefaultLoader(t))})}function createDefaultLoader(e){return async()=>{if(chunkResolver&&typeof chunkResolver=="function")try{let i=await runWithChunkTimeout(()=>chunkResolver(e),e);if(i)return i;logFeature("info","Chunk resolver returned no module",{chunkName:e})}catch(i){logResolverFailure(e,i)}let t=tryRequireDevChunk(e);if(t)return t;let r=tryRequireLocalBuiltChunk(e);if(r)return r;let n=tryLoadBuiltChunk(e);return n||(logFeature("warn","No built artifact available for chunk",{chunkName:e}),null)}}var featureFlags={async onboarding(){return getFeatureConfig().enableOnboarding?loadFeatureModule("onboarding"):(logFeatureDisabled("onboarding","onboarding"),null)},async exportReporting(){return getFeatureConfig().enableExportReporting?loadFeatureModule("reporting"):(logFeatureDisabled("exportReporting","exportReporting"),null)},async workspaceTemplates(){return getFeatureConfig().enableWorkspaceTemplates?loadFeatureModule("templates"):(logFeatureDisabled("workspaceTemplates","workspaceTemplates"),null)},async analysisCommands(){return getFeatureConfig().enableAnalysisCommands?loadFeatureModule("analysis"):(logFeatureDisabled("analysisCommands","analysisCommands"),null)},async advancedCache(){return getFeatureConfig().enableAdvancedCache?loadFeatureModule("advancedCache"):(logFeatureDisabled("advancedCache","advancedCache"),null)},async workspaceIntelligence(){return getFeatureConfig().enableWorkspaceIntelligence?loadFeatureModule("workspaceIntelligence"):(logFeatureDisabled("workspaceIntelligence","workspaceIntelligence"),null)},async incrementalWorkers(){return getFeatureConfig().enableIncrementalWorkers?loadFeatureModule("incrementalWorkers"):(logFeatureDisabled("incrementalWorkers","incrementalWorkers"),null)},async extensionApi(){return getFeatureConfig().enableExtensionApi?loadFeatureModule("extensionApi"):(logFeatureDisabled("extensionApi","extensionApi"),null)},async uiAdapters(){return loadFeatureModule("uiAdapters")},async batchProcessor(){return loadFeatureModule("batchProcessor")},async decorationsAdvanced(){return loadFeatureModule("decorationsAdvanced")},async decorationsProviderImpl(){return loadFeatureModule("decorationsProviderImpl")},async gitInsights(){return getFeatureConfig().enableGitInsights?loadFeatureModule("gitInsights"):(logFeatureDisabled("gitInsights","gitInsights"),null)},isEnabled(e){let t=getFeatureConfig();return{onboarding:t.enableOnboarding,exportReporting:t.enableExportReporting,workspaceTemplates:t.enableWorkspaceTemplates,analysisCommands:t.enableAnalysisCommands,advancedCache:t.enableAdvancedCache,workspaceIntelligence:t.enableWorkspaceIntelligence,incrementalWorkers:t.enableIncrementalWorkers,extensionApi:t.enableExtensionApi}[e]??!0},getEnabledFeatures(){let e=getFeatureConfig(),t=[];return e.enableOnboarding&&t.push("onboarding"),e.enableExportReporting&&t.push("exportReporting"),e.enableWorkspaceTemplates&&t.push("workspaceTemplates"),e.enableAnalysisCommands&&t.push("analysisCommands"),e.enableAdvancedCache&&t.push("advancedCache"),e.enableWorkspaceIntelligence&&t.push("workspaceIntelligence"),e.enableIncrementalWorkers&&t.push("incrementalWorkers"),e.enableExtensionApi&&t.push("extensionApi"),t},calculateSavings(){let e=getFeatureConfig(),t=0;return e.enableOnboarding||(t+=34),e.enableExportReporting||(t+=17),e.enableExtensionApi||(t+=15),e.enableWorkspaceTemplates||(t+=14),e.enableWorkspaceIntelligence||(t+=12),e.enableAnalysisCommands||(t+=8),e.enableAdvancedCache||(t+=5),t}};for(let[e,t]of Object.entries(CHUNK_METHOD_ALIASES))!featureFlags[e]&&typeof featureFlags[t]=="function"&&(featureFlags[e]=(...r)=>featureFlags[t](...r));function calculateSavings(e){e||(e=getFeatureConfig());let t=267,r=0;e.enableOnboarding||(r+=34),e.enableExportReporting||(r+=17),e.enableExtensionApi||(r+=15),e.enableWorkspaceTemplates||(r+=14),e.enableWorkspaceIntelligence||(r+=12),e.enableIncrementalWorkers||(r+=19),e.enableAnalysisCommands||(r+=8),e.enableAdvancedCache||(r+=5);let n=t-r,i=r>0?Math.round(r/t*100):0;return{baseSize:`${t}KB`,totalSavings:`${r}KB`,optimizedSize:`${n}KB`,percentage:i}}registerDefaultLoaders();var exportedFeatureFlags={...featureFlags,getFeatureConfig,calculateSavings,registerFeatureLoader,setFeatureChunkResolver,unregisterFeatureLoader,clearFeatureLoaders,loadFeatureModule,getFeatureLoadFailure,registerDefaultLoaders};registerFeatureFlagsGlobal(exportedFeatureFlags);module.exports=exportedFeatureFlags});var wr=_((exports,module)=>{var vscode=require("vscode"),getLogger=()=>{try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=dynamicRequire("./chunks/logger-chunk");if(e&&typeof e.getLogger=="function")return getLogger=e.getLogger,getLogger()}}catch{}try{return getLogger=q().getLogger,getLogger()}catch{return getLogger=()=>({debug:(()=>{})?.bind(console)||console.log,info:(()=>{}).bind(console),warn:(()=>{}).bind(console),error:(()=>{}).bind(console)}),getLogger()}},{fileSystem}=Be(),env=typeof process<"u"&&process.env?process.env:{},{formatFileSize}=Ke(),getFileName=p=>{try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=null;try{e=dynamicRequire("../chunks/utils-shared-chunk")}catch{}try{e||(e=dynamicRequire("./chunks/utils-shared-chunk"))}catch{}try{e||(e=dynamicRequire("./chunks/path-utils-chunk"))}catch{}if(e&&typeof e.getFileName=="function")return getFileName=e.getFileName,getFileName(p)}}catch{}try{let t=String(p||"").replace(/\\/g,"/"),r=t.lastIndexOf("/");return r===-1?t:t.substring(r+1)}catch{return"unknown"}},getExtension=p=>{try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=null;try{e=dynamicRequire("../chunks/utils-shared-chunk")}catch{}try{e||(e=dynamicRequire("./chunks/utils-shared-chunk"))}catch{}try{e||(e=dynamicRequire("./chunks/path-utils-chunk"))}catch{}if(e&&typeof e.getExtension=="function")return getExtension=e.getExtension,getExtension(p)}}catch{}try{let e=String(p||""),t=e.lastIndexOf(".");return t<=0?"":e.substring(t).toLowerCase()}catch{return""}},buildCacheKey=p=>{try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=null;try{e=dynamicRequire("../chunks/utils-shared-chunk")}catch{}try{e||(e=dynamicRequire("./chunks/utils-shared-chunk"))}catch{}try{e||(e=dynamicRequire("./chunks/path-utils-chunk"))}catch{}if(e&&typeof e.getCacheKey=="function")return buildCacheKey=e.getCacheKey,buildCacheKey(p)}}catch{}return String(p||"").toLowerCase().replace(/\\/g,"/")},normalizePath=input=>{try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=null;try{e=dynamicRequire("../chunks/utils-shared-chunk")}catch{}try{e||(e=dynamicRequire("./chunks/utils-shared-chunk"))}catch{}try{e||(e=dynamicRequire("./chunks/path-utils-chunk"))}catch{}if(e&&typeof e.normalizePath=="function")return normalizePath=e.normalizePath,normalizePath(input)}}catch{}return String(input||"").replace(/\\/g,"/")},getUriPath=(target="")=>{try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=null;try{e=dynamicRequire("../chunks/utils-shared-chunk")}catch{}try{e||(e=dynamicRequire("./chunks/utils-shared-chunk"))}catch{}try{e||(e=dynamicRequire("./chunks/path-utils-chunk"))}catch{}if(e&&typeof e.getUriPath=="function")return getUriPath=e.getUriPath,getUriPath(target)}}catch{}if(!target)return"";if(typeof target=="string")return target;if(typeof target.fsPath=="string"&&target.fsPath.length>0)return target.fsPath;if(typeof target.path=="string"&&target.path.length>0)return target.path;if(typeof target.toString=="function")try{return target.toString(!0)}catch{return target.toString()}return String(target)},{DEFAULT_CACHE_TIMEOUT,DEFAULT_MAX_CACHE_SIZE,GLOBAL_STATE_KEYS,DEFAULT_DECORATION_POOL_SIZE,DEFAULT_FLYWEIGHT_CACHE_SIZE,WORKSPACE_SCALE_EXTREME_THRESHOLD}=I(),{isWebEnvironment}=J(),{getSettingsCoordinator}=Ge(),{SecurityValidator,SecureFileOperations,detectSecurityEnvironment}=Je(),DISABLE_GIT_FEATURES=env.EXPLORER_DATES_DISABLE_GIT_FEATURES==="1",IS_WEB_ENV=isWebEnvironment()||env.VSCODE_WEB==="true",nodePath=null;try{IS_WEB_ENV||(nodePath=require("path"))}catch{nodePath=null}var pathCompat={basename:e=>{if(!e)return"";try{if(!IS_WEB_ENV)return require("path").basename(e)}catch{let t=e.replace(/\\/g,"/"),r=t.lastIndexOf("/");return r===-1?t:t.substring(r+1)}},dirname:e=>{if(!e)return".";try{if(!IS_WEB_ENV)return require("path").dirname(e)}catch{let t=e.replace(/\\/g,"/"),r=t.lastIndexOf("/");return r===-1?".":t.substring(0,r)}}};(async()=>{try{let t=await ge().decorationsStatic();t&&(t.basename&&t.dirname&&(pathCompat.basename=t.basename,pathCompat.dirname=t.dirname),t.describeFile&&(exports.Be=t.describeFile))}catch{}})();var CONFIG_DEFAULT_CACHE_TIMEOUT=3e4,CACHE_NAMESPACE_SEPARATOR="::",DEFAULT_DYNAMIC_WATCHER_LIMIT=Number(env.EXPLORER_DATES_MAX_DYNAMIC_WATCHERS||200),DEFAULT_WATCHER_INACTIVITY_MS=Number(env.EXPLORER_DATES_WATCHER_TTL_MS||600*1e3),DEFAULT_SMART_WATCHER_EXTENSIONS=["js","ts","json","md","py","java"],SMART_WATCHER_PRIORITY=new Map([["src",100],["lib",65],["test",30]]),WORKSPACE_SCAN_TIMEOUT_MS=Number(env.EXPLORER_DATES_WORKSPACE_SCAN_TIMEOUT||7e3),WORKSPACE_SCAN_TIMEOUT_FALLBACK_COUNT=WORKSPACE_SCALE_EXTREME_THRESHOLD,VIEWPORT_DEFAULT_WINDOW_MS=300*1e3,DEFAULT_VIEWPORT_HISTORY_LIMIT=Number(env.EXPLORER_DATES_VIEWPORT_HISTORY_LIMIT||400),FEATURE_LEVELS=["full","enhanced","standard","minimal"],DEFAULT_INDEXER_MAX_FILES=Math.max(100,Number(env.EXPLORER_DATES_INDEXER_MAX_FILES||2e3)),SECURITY_EXTRA_PATHS_ENV="EXPLORER_DATES_SECURITY_EXTRA_PATHS",DEFAULT_SECURITY_THROTTLE_MS=Number(env.EXPLORER_DATES_SECURITY_WARNING_THROTTLE_MS||5e3),SECURITY_WARNING_CACHE_LIMIT=Number(env.EXPLORER_DATES_SECURITY_WARNING_CACHE||500),DEFAULT_SECURITY_MAX_WARNINGS=Number(env.EXPLORER_DATES_SECURITY_MAX_WARNINGS_PER_FILE??1),describeFile=(e="")=>{try{let t=typeof e=="string"?e:getUriPath(e),r=normalizePath(t);return getFileName(r)||r||"unknown"}catch{return"unknown"}};(async()=>{try{let t=await ge().decorationsStatic();t&&typeof t.describeFile=="function"&&(describeFile=t.describeFile)}catch{}})();var LazyHierarchicalDecorationCache=class{constructor(){this.n=new Map}get size(){return this.n.size}get bucketCount(){return 0}clear(){this.n.clear()}get(t){return this.n.get(t)}set(t,r){this.n.set(t,r)}delete(t){return this.n.delete(t)}*entries(){yield*this.n.entries()}*keys(){yield*this.n.keys()}*values(){yield*this.n.values()}[Symbol.iterator](){return this.entries()}enforceLimit(){return 0}},FileDateDecorationProviderImpl=class{constructor(...args){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=dynamicRequire("./chunks/file-date-provider-impl");if(e&&typeof e.FileDateDecorationProviderImpl=="function")return new e.FileDateDecorationProviderImpl(...args);if(e&&typeof e.FileDateDecorationProvider=="function")return new e.FileDateDecorationProvider(...args)}}catch(e){}throw new Error("FileDateDecorationProvider implementation is not available in this environment")}},FileDateDecorationProvider=class{constructor(...args){let loaderError=null;try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function")try{let e=null;try{e=dynamicRequire("./chunks/file-date-provider-impl-export")}catch{}if(e){let r=e.FileDateDecorationProvider||e.FileDateDecorationProviderImpl||e.default;return typeof r=="function"?new r(...args):new FileDateDecorationProviderImpl(...args)}e=dynamicRequire("./chunks/file-date-provider-impl");let t=e&&(e.FileDateDecorationProvider||e.FileDateDecorationProviderImpl||e.default);if(typeof t=="function")return new t(...args)}catch(e){loaderError=e}try{let e=null;try{e=require.resolve("./chunks/file-date-provider-impl-export",{paths:[__dirname]})}catch{}e||(e=require.resolve("./chunks/file-date-provider-impl",{paths:[__dirname]}));let t=require(e),r=t&&(t.FileDateDecorationProvider||t.FileDateDecorationProviderImpl||t.default);if(e&&e.endsWith("file-date-provider-impl-export.js")&&!r)return new FileDateDecorationProviderImpl(...args);if(typeof r=="function")return new r(...args)}catch(e){loaderError=loaderError||e}}catch(e){loaderError=loaderError||e}if(loaderError&&loaderError.message){let e=`FileDateDecorationProvider implementation is unavailable: ${loaderError.message}`;throw new Error(e)}throw new Error("FileDateDecorationProvider implementation is unavailable")}};module.exports={FileDateDecorationProvider,FileDateDecorationProviderImpl}});var kr=_((exports,module)=>{try{require("vscode")}catch{}var env=typeof process<"u"&&process.env?process.env:{},diagLog=null,isWebDiagnosticsEnabled=()=>!1;try{let e=he();e&&(diagLog=e.diagLog,isWebDiagnosticsEnabled=e.isWebDiagnosticsEnabled||(()=>!1))}catch{}function isWebRuntime(){try{let{isWebEnvironment:e}=J();return e()}catch{return env.VSCODE_WEB==="true"}}function getWebChunkRegistry(){try{let{WEB_CHUNK_GLOBAL_KEY:e,LEGACY_WEB_CHUNK_GLOBAL_KEY:t}=I();if(typeof globalThis<"u")return globalThis[e]||globalThis[t]||null}catch{}return typeof globalThis<"u"&&(globalThis.explorerDatesChunks||globalThis.hr)||null}function resolveProviderModuleFromWebRegistry(){let e=getWebChunkRegistry();if(!e)return null;let t=[e.fileDateProviderImplExport,e.fileDateProviderImpl,e.fileDateProviderImplExport,e.fileDateProviderImpl,e["file-date-provider-impl-export"],e["file-date-provider-impl"]].filter(Boolean);return t.length>0?t[0]:null}function normalizeModuleExports(e){if(!e)return null;let t=e&&typeof e=="object"?e:{default:e},r=t&&typeof t=="object"&&t.default?t.default:null;return r&&typeof r=="object"?{...t,...r}:t}async function hydrateProviderOptionalSystems(e){try{try{let r=(await Promise.resolve().then(()=>R(ot()))).getLocalization();e.p.getString=(...i)=>r.getString(...i),e.p.formatDate=(...i)=>r.formatDate(...i),e.p.getCurrentLocale=()=>r.getCurrentLocale();let n=e.p.dispose;e.p.dispose=()=>{try{r.dispose()}catch{}n()}}catch(t){e._logger?.debug("provider-init: localization hydrate failed",t)}try{let t=await Promise.resolve().then(()=>R(st()));t&&typeof t.createDecorationLogic=="function"&&(e.yt=t.createDecorationLogic(e))}catch(t){e._logger?.debug("provider-init: preload decoration logic failed",t)}try{let t=await Promise.resolve().then(()=>R(Ce())),r=t&&(typeof t.createDecorationProviderHelpers=="function"?t.createDecorationProviderHelpers(e):t);e.dr=r}catch(t){e._logger?.debug("provider-init: preload decoration provider helpers failed",t)}try{let t=await e.Z();t&&typeof t.initializeAdvancedSystems=="function"&&await t.initializeAdvancedSystems(e)}catch(t){e._logger?.debug("provider-init: initializeAdvancedSystems failed",t)}try{let t=ct();t&&typeof t.scheduleTelemetryReport=="function"&&e._allocationTelemetryEnabled&&t.scheduleTelemetryReport(e)}catch(t){e._logger?.debug("provider-init: scheduling telemetry failed",t)}}catch(t){try{e._logger?.debug("provider-init: hydration failed",t)}catch{}}}function createFileDateDecorationProvider(context){try{let ProviderClass=null,webRuntime=isWebRuntime();if(webRuntime){let e=getWebChunkRegistry(),t=[e?.fileDateProviderImplExport,e?.fileDateProviderImpl,e?.fileDateProviderImplExport,e?.fileDateProviderImpl,e?.["file-date-provider-impl-export"],e?.["file-date-provider-impl"]].filter(Boolean),r=t[0]||resolveProviderModuleFromWebRegistry();!e&&isWebDiagnosticsEnabled()?diagLog?.("warn","Provider registry missing in web runtime"):!r&&isWebDiagnosticsEnabled()&&diagLog?.("warn","Provider module missing from web registry",{hasRegistry:!!e,availableKeys:Object.keys(e||{}),candidateCount:t.length});let n=null;for(let i of t){let a=normalizeModuleExports(i),o=a&&(a.FileDateDecorationProvider||a.FileDateDecorationProviderImpl||a.default);if(o){n=o;break}isWebDiagnosticsEnabled()&&diagLog?.("warn","Provider exports missing expected class",{availableExportKeys:Object.keys(a||{})})}ProviderClass=n,!ProviderClass&&isWebDiagnosticsEnabled()&&t.length>0&&diagLog?.("warn","Provider class unresolved from registry entries",{candidateCount:t.length,availableRegistryKeys:Object.keys(e||{})})}try{if(!webRuntime){let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=null;try{e=dynamicRequire("./fileDateProviderImplExport")}catch{}if(!e)try{e=dynamicRequire("./fileDateProviderImpl")}catch{}ProviderClass=e&&(e.FileDateDecorationProvider||e.FileDateDecorationProviderImpl||e.default)}}}catch{}if(!ProviderClass&&!webRuntime){let{FileDateDecorationProvider:e}=wr();ProviderClass=e}if(!ProviderClass)return isWebDiagnosticsEnabled()&&diagLog?.("warn","Provider class unavailable",{webRuntime,registryKeys:Object.keys(getWebChunkRegistry()||{})}),null;let provider=new ProviderClass;return isWebDiagnosticsEnabled()&&diagLog?.("info","Provider class resolved",{className:ProviderClass?.name||"unknown"}),(async()=>{try{await provider.initializeAdvancedSystems(context)}catch(e){provider._logger?.debug("provider-init: provider factory init failed",e)}})(),{createFileDateDecorationProvider:()=>provider}}catch{return null}}module.exports={hydrateProviderOptionalSystems,createFileDateDecorationProvider}});var Fr=_((Na,vr)=>{var O=require("vscode"),{getLogger:Ni}=q(),{WORKSPACE_SCALE_BALANCED_THRESHOLD:Dr,WORKSPACE_SCALE_LARGE_THRESHOLD:ve,WORKSPACE_SCALE_EXTREME_THRESHOLD:Cr,WORKSPACE_SCAN_MAX_RESULTS:Sr}=I(),lt=Ni(),Te=null;function Tr(e){return e&&(e.fsPath||e.path)||null}function ut(e,t){let r=Tr(e);!r||typeof t!="number"||(Te={workspaceKey:r,fileCount:t,timestamp:Date.now()})}function ht(e){let t=Tr(e);return!t||!Te||Te.workspaceKey!==t?null:Te}function qi(e,t="default"){if(!e)return`unknown-workspace-${t}`;let r=e.fsPath||e.path||"",n=r.split("/").pop()||"workspace",i=Math.abs(r.split("").reduce((o,s)=>(o=(o<<5)-o+s.charCodeAt(0),o&o),0)).toString(36).substr(0,8),a=Math.abs(t.split("").reduce((o,s)=>(o=(o<<5)-o+s.charCodeAt(0),o&o),0)).toString(36).substr(0,4);return`${n}-${i}-${a}`}async function zi(e){try{if(!e)return"unknown";let t=ht(e),r;t?r=t.fileCount:(r=(await O.workspace.findFiles("**/*",null,Sr)).length,ut(e,r));let n="small";r>=Cr?n="extreme":r>=ve?n="large":r>=1e3&&(n="medium");let i=O.env.remoteName,a=O.env.uiKind===O.UIKind.Web,o=n==="medium"&&r>=Dr&&ru.toLowerCase());if(c.includes("package.json")||c.includes("yarn.lock"))return"web-development";if(c.some(u=>u.endsWith(".ipynb"))||c.includes("requirements.txt"))return"data-science";if(c.includes("docker-compose.yml")||c.includes(".enterprise"))return"enterprise"}catch(s){lt.debug("Project type detection failed:",s)}return"full"}catch(t){return lt.error("Workspace profile detection failed:",t),"unknown"}}async function Ui(e){if(!e)return null;try{let t=ht(e),r;t?r=t.fileCount:(r=(await O.workspace.findFiles("**/*",null,Sr)).length,ut(e,r));let n="small";r>=Cr?n="extreme":r>=ve?n="large":r>=1e3&&(n="medium");let i=!!O.env.remoteName,a=O.env.uiKind===O.UIKind.Web,o=a?"web":i?"remote":"local",s=n==="medium"&&r>=Dr&&r{var vscode=require("vscode"),getFileName,getExtension,normalizePath,getUriPath,ensureDate;try{let e=K();e&&(getFileName=e.getFileName,getExtension=e.getExtension,normalizePath=e.normalizePath,getUriPath=e.getUriPath,ensureDate=e.ensureDate)}catch{}if(!getFileName||!ensureDate){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function")try{let e=dynamicRequire("../utils/pathUtils"),t=dynamicRequire("../utils/dateHelpers");getFileName=getFileName||e.getFileName,getExtension=getExtension||e.getExtension,normalizePath=normalizePath||e.normalizePath,getUriPath=getUriPath||e.getUriPath,ensureDate=ensureDate||t.ensureDate}catch{}}catch{}getFileName||(getFileName=e=>{let t=String(e||""),r=t.replace(/\\/g,"/").lastIndexOf("/");return r===-1?t:t.substring(r+1)}),getExtension||(getExtension=e=>{let t=String(e||""),r=t.lastIndexOf(".");return r<=0?"":t.substring(r).toLowerCase()}),normalizePath||(normalizePath=(e="")=>(e||"").toString().replace(/\\/g,"/")),getUriPath||(getUriPath=(e="")=>e?typeof e=="string"?e:e?.fsPath?e.fsPath:e?.path?e.path:String(e):""),ensureDate||(ensureDate=e=>e instanceof Date?e:typeof e=="number"?new Date(e):typeof e=="string"?isNaN(Date.parse(e))?new Date:new Date(Date.parse(e)):new Date)}var SMART_WATCHER_PRIORITY=new Map([["src",100],["lib",65],["test",30]]);async function performWorkspaceSizeCheck(e){let t=vscode.workspace.getConfiguration("explorerDates"),r=t.get("forceEnableForLargeWorkspaces",!1),n=t.get("performanceMode",!1),i=r||n,a=vscode.workspace.workspaceFolders;if(!a||a.length===0)return;e._logger.info("Checking workspace size for large workspace detection...");let o=await e.an(e._getIndexerMaxFiles()),s=!Array.isArray(o),c=s?e.WORKSPACE_SCAN_TIMEOUT_FALLBACK_COUNT:o.length;if(s){let l=e.WORKSPACE_SCAN_TIMEOUT_MS?`${e.WORKSPACE_SCAN_TIMEOUT_MS}ms`:"the configured timeout";e._logger.warn(`Workspace scan exceeded ${l}; defaulting to extreme scale`)}else{let l=`${e.WORKSPACE_SCALE_LARGE_THRESHOLD}+`;e._logger.info(`Workspace contains ${c>=e.WORKSPACE_SCALE_LARGE_THRESHOLD?l:c} files`)}let u=e.u;e.Ve=c,e.u=c>=e.WORKSPACE_SCALE_EXTREME_THRESHOLD?"extreme":c>=e.WORKSPACE_SCALE_LARGE_THRESHOLD?"large":"normal";try{let l=a[0]?.uri;Fr().setCachedWorkspaceMetrics(l,c)}catch(l){e._logger.debug("Unable to cache workspace file count",l)}u!==e.u&&e.J&&!e._performanceMode&&(e._logger.info(`Workspace scale changed ${u} -> ${e.u}; recalibrating watchers`),e.Q("workspace-scale-update")),e._batchProcessor&&typeof e._batchProcessor.setWorkspaceScale=="function"&&e._batchProcessor.setWorkspaceScale(e.u||"normal"),e.Ge(e.Xe(vscode.workspace.getConfiguration("explorerDates")),"workspace-scale-change"),i&&e._logger.debug("Large workspace prompt suppressed (force/performance mode), but scaling adjustments applied")}async function findWorkspaceFilesWithTimeout(e,t){let r=Number.isFinite(e.WORKSPACE_SCAN_TIMEOUT_MS)?e.WORKSPACE_SCAN_TIMEOUT_MS:0,n=vscode.workspace.findFiles("**/*",null,t);if(!r||r<=0)return n;try{return await new Promise((i,a)=>{let o=null,s=(c,u=!1)=>{o&&(clearTimeout(o),o=null),u?a(c):i(c)};o=setTimeout(()=>s(null),r),n.then(c=>s(c),c=>s(c,!0))})}catch(i){return e._logger.warn("Workspace scan failed, assuming large workspace",{error:i?.message||String(i)}),null}}async function _buildSmartWatcherTargets(e,t,r){let n=[],i=Math.max(1,r.maxPatterns),a=i,o=t.length;for(let s of t){if(a<=0)break;let c=Math.max(1,Math.floor(a/o)),u=new vscode.RelativePattern(s,"*.{md,mdx,json,jsonc,yml,yaml,ts,tsx,js,jsx}");if(n.push({pattern:u,label:`root:${s.name}`}),a-=1,a<=0)break;let l=Math.min(Math.max(c-1,0),a);if(l>0)try{let d=typeof e._fileSystem?.readdir=="function"?await e._fileSystem.readdir(s.uri||s.fsPath||s):[],h=(Array.isArray(d)?d:[]).filter(m=>m&&(typeof m.isDirectory=="function"?m.isDirectory():!0)).map(m=>typeof m=="string"?m:m.name||"").filter(Boolean).filter(m=>!["node_modules",".git","dist","build","out"].includes(m));e._logger?.debug&&e._logger.debug("smart-watcher: top-level dirs",{folder:s.name,dirs:h}),h.sort((m,D)=>(SMART_WATCHER_PRIORITY.get(D)||0)-(SMART_WATCHER_PRIORITY.get(m)||0));let y=h.slice(0,l).map(m=>({pattern:new vscode.RelativePattern(s,`${m}/**/*.{md,mdx,json,jsonc,yml,yaml,ts,tsx,js,jsx}`),label:`sub:${s.name}/${m}`})).slice(0,l);n.push(...y),a-=y.length}catch{}o-=1}return n.slice(0,i)}function _addExclusionValueToSet(e,t,r={}){if(!t)return;let{onlyRootSegment:n=!1}=r,i=typeof t=="string"?t:typeof t?.toString=="function"?t.toString():"";if(!i||typeof i!="string")return;let a=i.trim();if(!a)return;let s=a.replace(/\\/g,"/").replace(/\*\*/g,"").replace(/\*/g,"").split("/").map(c=>c.trim()).filter(Boolean);if(!s.length){if(a.includes("*")||a.includes("?"))return;e.add(a.toLowerCase());return}if(n){e.add(s[0].toLowerCase());return}for(let c of s)e.add(c.toLowerCase())}function registerWatcherHandlers(e,t,r="unknown"){t&&(t.onDidChange(n=>e.M(n,"change",r)),t.onDidCreate(n=>e.M(n,"create",r)),t.onDidDelete(n=>e.M(n,"delete",r)))}function dispatchWatcherEvent(e,t,r,n="unknown"){r==="delete"?e.clearDecoration(t):e.refreshDecoration(t),e._workspaceIntelligence?.incrementalIndexer&&e._workspaceIntelligence.incrementalIndexer.queueDelta(t,r),e.Ye&&e._logger.debug(`Watcher event processed (${r}) for ${e.describeFile(t)} via ${n}`)}module.exports={performWorkspaceSizeCheck,findWorkspaceFilesWithTimeout,B:_buildSmartWatcherTargets,on:_addExclusionValueToSet,registerWatcherHandlers,dispatchWatcherEvent}});var ft=_((exports,module)=>{var vscode=require("vscode"),{DEFAULT_DYNAMIC_WATCHER_LIMIT,DEFAULT_WATCHER_INACTIVITY_MS}=I(),proc=typeof process<"u"?process:null,env=proc?.env||{},normalizePath,getUriPath;try{let e=K();e&&(normalizePath=e.normalizePath,getUriPath=e.getUriPath)}catch{}if(!normalizePath){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function")try{let e=dynamicRequire("../utils/pathUtils");normalizePath=normalizePath||e.normalizePath,getUriPath=getUriPath||e.getUriPath}catch{}}catch(e){}normalizePath||(normalizePath=(e="")=>(e||"").toString().replace(/\\/g,"/")),getUriPath||(getUriPath=(e="")=>e?typeof e=="string"?e:e?.fsPath?e.fsPath:e?.path?e.path:String(e):"")}var{getLogger}=q(),nodePath=null;try{nodePath=require("path")}catch{}var WatcherManager=class{constructor(t){this.t=t,this._logger=t._logger||getLogger(),this.s=new Set,this.h=void 0,this.S=[],this.d=new Map,this.I=null,this._=t._||new Map,this._smartWatcherFallbackManager=t._smartWatcherFallbackManager||null,this.ee=null,this.K="none"}setupFileWatcher(t="initial"){if(this.t._performanceMode||this.t.k){let i=this.t.k?"provider disposed":"performance mode enabled";this._logger.debug(`Skipping file watcher setup (${t}) - ${i}`);return}this.h||(this.h={pending:!0});let r=++this.t.Ze;(async()=>{if(this.ee)try{await this.ee}catch(a){this._logger.debug("Previous watcher setup promise rejected",a)}let i=this.Fe(r,t);this.ee=i;try{await i}finally{this.ee===i&&(this.ee=null)}})().catch(i=>this._logger.error("Failed to configure file watchers",i))}async Fe(t,r){if(this.Ae(t))return;if(this.disposeFileWatchers({permanent:!1}),this.Ae(t))return this.Je("post-dispose");this.h={pending:!0};let n=vscode.workspace.workspaceFolders;if(!n||n.length===0){this._logger.debug("No workspace folders detected; skipping watcher setup"),this.K="none";return}if(this.t._isWeb){this._logger.info("File watchers are unavailable in web environments; skipping watcher setup"),this.K="none";return}let i=vscode.workspace.getConfiguration("explorerDates"),a=env.EXPLORER_DATES_DISABLE_SMART_WATCHERS==="1";this.t.J=!a&&i.get("smartFileWatching",!0),this.t._enableWatcherFallbacks=this.t.J&&i.get("enableSmartWatcherFallbacks","auto");let o=i.get("smartWatcherMaxPatterns",20),s=this.t.gr(i.get("smartWatcherExtensions",[])),c=this.t.mr(o);if(this.t.bt={maxPatterns:c,extensions:s},this.Ae(t))return this.Je("post-config");if(!this.t.J){this._logger.info("Smart file watching disabled; falling back to global watcher"),await this.Pe("disabled");return}let u=[];try{if(typeof this.t.B=="function")u=await this.t.B(n,this.t.bt);else try{let l=dt();if(l&&typeof l.B=="function")u=await l.B(this.t,n,this.t.bt);else throw new Error("_buildSmartWatcherTargets not implemented on provider or helper")}catch(l){throw l}}catch(l){this._logger.error("Smart watcher analysis failed, falling back to global watcher",l),await this.Pe("analysis-failed");return}if(this.Ae(t))return this.Je("post-analysis");if(!u||u.length===0){this._logger.warn("Smart watcher analysis yielded no targets; falling back to global watcher"),await this.Pe("no-targets");return}for(let l of u)try{let d=await this._t(l.pattern,l.label);d&&(this.he(d,l.label),this.s.add(d))}catch(d){this._logger.debug(`Failed to create watcher for pattern ${l.label}`,d)}if(this.s.size===0){this._logger.warn("Smart watcher setup produced zero watchers; using global fallback"),await this.Pe("no-watchers-created");return}this.h=this.s.values().next().value||void 0,this.K="smart",this._logger.info(`Smart file watching enabled (${this.s.size} base watcher${this.s.size===1?"":"s"})`,{reason:r,patterns:u.map(l=>l.label)}),this.pr()}Ae(t){return!!(this.t.k||this.t._performanceMode||typeof t=="number"&&t!==this.t.Ze)}Je(t="unknown"){let r=this.t._performanceMode||this.t.k;this.disposeFileWatchers({permanent:r}),this._logger.debug(`Watcher setup aborted (${t})`,{permanentAbort:r,disposed:this.t.k,performanceMode:this.t._performanceMode})}async Z(){try{let{getFeatureFlagsGlobal:t}=G(),r=t();return(r?await r.decorationsAdvanced():null)||null}catch(t){return this._logger.debug("Failed to load decorationsAdvanced chunk",t),null}}async _t(t,r="unknown"){try{let i=await this.Z();if(i?.createWatcherWithFallback)return await i.createWatcherWithFallback(this.t,t,r)}catch(i){this._logger.debug(`Advanced watcher chunk failed for ${r}`,i)}let n=()=>{let i=this.t._enableWatcherFallbacks;if(i===!1)return!1;if(i==="auto"||i===!0){let a=proc?.platform,o=env.WSL_DISTRO_NAME||env.WSLENV,s=vscode.env.remoteName,c=env.DOCKER_CONTAINER;return o||s||c||a==="android"}return!1};try{let i=vscode.workspace.createFileSystemWatcher(t);return this._logger.debug(`Native watcher created for ${r}`),i}catch(i){return this._logger.debug(`Native watcher failed for ${r}:`,i),n()?this.yr(t,r):null}}async yr(t,r){try{let n=await this.Z();if(n?.createFallbackWatcher)return await n.createFallbackWatcher(this.t,t,r)}catch(n){this._logger.warn(`Fallback watcher creation failed for ${r}:`,n)}try{if(!this._smartWatcherFallbackManager){let{getFeatureFlagsGlobal:n}=G(),i=n(),a=i?await i.loadFeatureModule("smartWatcherFallback"):null;if(a){let{SmartWatcherFallbackManager:o}=a;this._smartWatcherFallbackManager=new o({logger:this._logger}),await this._smartWatcherFallbackManager.initialize()}}if(this._smartWatcherFallbackManager){let i=await(await this._smartWatcherFallbackManager.getFallback()).createWatcherWithFallback(t);return this._logger.debug(`Fallback watcher created for ${r}`),i}}catch(n){this._logger.warn(`Fallback watcher creation failed for ${r}:`,n)}return null}async Pe(t="global-default"){this.Et();let r=await this._t("**/*",`global:${t}`);r?(this.he(r,`global:${t}`),this.s.add(r),this.h=r,this.K="global",this._logger.info(`Global watcher activated (${t})`)):this._logger.error(`Failed to create global watcher (${t})`)}he(t,r="unknown"){t&&(t.onDidChange(n=>this.M(n,"change",r)),t.onDidCreate(n=>this.M(n,"create",r)),t.onDidDelete(n=>this.M(n,"delete",r)))}M(t,r,n="unknown"){if(!t||t.scheme!=="file"||!this.t.Ke(t,`watcher:${r}`)?.isValid)return;let a=this.br();if(a<=0){this.xe(t,r,n);return}let o=`${t.toString()}:${r}`,s=this._.get(o);s&&clearTimeout(s.timer);let c=setTimeout(()=>{this._.delete(o),this.xe(t,r,n)},a);this._.set(o,{timer:c,source:n})}xe(t,r,n){try{this.t.Me?.(t)}catch{}r==="delete"?this.t.clearDecoration(t):this.t.refreshDecoration(t),this.t._workspaceIntelligence?.incrementalIndexer&&this.t._workspaceIntelligence.incrementalIndexer.queueDelta(t,r),this.t.Ye&&this._logger.debug(`Watcher event processed (${r}) for ${this.t.Be(t)} via ${n}`)}br(){if(this.t._performanceMode)return 0;switch(this.t.u){case"extreme":return 600;case"large":return 250;default:return 100}}handleWorkspaceFoldersChanged(t){let r=(t?.added||[]).map(a=>a.uri).filter(Boolean),n=(t?.removed||[]).map(a=>a.uri).filter(Boolean);if(r.length===0&&n.length===0)return;let i=async()=>{this._logger.info("Workspace folders changed",{added:r.length,removed:n.length}),await this.t.checkWorkspaceSize();try{this.t.clearAllCaches()}catch{}try{this.t.refreshAll()}catch{}if(!this.t._performanceMode&&(this.setupFileWatcher("workspace-change"),await this.t.wt().catch(a=>this._logger.debug("Failed to reconfigure progressive loading after workspace change",a)),this.t._workspaceIntelligence)){let a=(vscode.workspace.workspaceFolders||[]).map(o=>({uri:o.uri}));await this.t._workspaceIntelligence.onWorkspaceFoldersChanged({added:a,removed:n.map(o=>({uri:o}))})}};this.t.D&&clearTimeout(this.t.D),this.t.D=setTimeout(()=>{this.t.D=null,i().catch(a=>this._logger.debug("Workspace folder change handling failed",a))},250)}disposeFileWatchers(t={}){let r=t.permanent===!0;if(this.s?.size){for(let n of this.s)try{n.dispose()}catch(i){this._logger.debug("Failed to dispose file watcher",i)}this.s.clear()}this.h=r?null:void 0,this.Et(),this.kt(!0),this._r(),this.K="none"}_r(){if(this._?.size){for(let t of this._.values())clearTimeout(t.timer);this._.clear()}}pr(){if(!this.t.J||this.S.length>0)return;let t=(n,i)=>{let a=this.t.fe(vscode.window,n,i);a&&this.S.push(a)},r=(n,i)=>{let a=this.t.fe(vscode.workspace,n,i);a&&this.S.push(a)};t("onDidChangeVisibleTextEditors",n=>{(n||[]).forEach(i=>this.ge(i?.document?.uri,"visible-editor"))}),t("onDidChangeActiveTextEditor",n=>{this.ge(n?.document?.uri,"active-editor")}),r("onDidOpenTextDocument",n=>{this.ge(n?.uri,"open-document")}),r("onDidSaveTextDocument",n=>{this.ge(n?.uri,"save-document")}),this.Er(),this.wr()}Et(){if(this.S?.length){for(let t of this.S)try{t.dispose()}catch(r){this._logger.debug("Failed to dispose watcher listener",r)}this.S=[]}this.Dt()}sn(){if(this._smartWatcherFallbackManager){try{this._smartWatcherFallbackManager.dispose()}catch(t){this._logger.debug("Error disposing smart watcher fallback manager:",t)}this._smartWatcherFallbackManager=null}}Er(){(Array.isArray(vscode.window?.visibleTextEditors)?vscode.window.visibleTextEditors:[]).forEach(r=>this.ge(r?.document?.uri,"visible-seed"))}wr(){this.I||(this.I=setInterval(()=>this.kt(),DEFAULT_WATCHER_INACTIVITY_MS))}Dt(){this.I&&(clearInterval(this.I),this.I=null)}kt(t=!1){if(!this.d?.size)return;let r=Date.now()-DEFAULT_WATCHER_INACTIVITY_MS;for(let[n,i]of this.d.entries())if(t||i.lastUsed=DEFAULT_DYNAMIC_WATCHER_LIMIT&&this.kr();try{let o=new vscode.RelativePattern(i,"**/*"),s=vscode.workspace.createFileSystemWatcher(o),c=nodePath.basename(i)||"root";this.he(s,`dynamic:${r}:${c}`),this.d.set(i,{watcher:s,lastUsed:Date.now(),source:r})}catch(o){this._logger.debug(`Failed to create dynamic watcher for ${i}`,o)}}kr(){let t=null,r=Number.POSITIVE_INFINITY;for(let[n,i]of this.d.entries())i.lastUsed{function createViewportManager(provider){let vscode=require("vscode"),normalizePath,getUriPath;try{let e=K();e&&(normalizePath=e.normalizePath,getUriPath=e.getUriPath)}catch{}if(!normalizePath){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function")try{let e=dynamicRequire("../utils/pathUtils");normalizePath=normalizePath||e.normalizePath,getUriPath=getUriPath||e.getUriPath}catch{}}catch{}normalizePath||(normalizePath=(e="")=>(e||"").toString().replace(/\\/g,"/")),getUriPath||(getUriPath=(e="")=>e?typeof e=="string"?e:e?.fsPath?e.fsPath:e?.path?e.path:String(e):"")}class ViewportManager{constructor(){this.t=provider,this.w=new Set,this.y=new Map,this.T=[],this.me=provider.me||400,this.W=provider.W||300*1e3,this.Qe=Date.now()}cn(){if(this.T.length>0)return;let t=(n,i)=>{let a=this.fe(vscode.window,n,i);a&&this.T.push(a)},r=(n,i)=>{let a=this.fe(vscode.workspace,n,i);a&&this.T.push(a)};t("onDidChangeVisibleTextEditors",n=>this.Ct(n)),t("onDidChangeActiveTextEditor",n=>this.Y(n?.document?.uri,{reason:"active-editor"})),r("onDidOpenTextDocument",n=>this.Y(n?.uri,{reason:"open-document"})),r("onDidSaveTextDocument",n=>this.Y(n?.uri,{reason:"save-document"})),this.Ct(Array.isArray(vscode.window?.visibleTextEditors)?vscode.window.visibleTextEditors:[]),vscode.window?.activeTextEditor?.document?.uri&&this.Y(vscode.window.activeTextEditor.document.uri,{reason:"initial-active"})}Dr(){if(this.T?.length){for(let t of this.T)try{t.dispose()}catch(r){this.t._logger.debug("Failed to dispose viewport listener",r)}this.T=[],this.w.clear(),this.y.clear()}}Ct(t){if(this.w.clear(),!Array.isArray(t))return;let r=Date.now();for(let n of t){let i=n?.document?.uri;if(!i||i.scheme!=="file")continue;let a=normalizePath(getUriPath(i));a&&(this.w.add(a),this.y.set(a,r))}this.et()}Y(t,r={}){if(!t||t.scheme!=="file")return;let n=normalizePath(getUriPath(t));if(!n)return;let i=Date.now();this.y.set(n,i),r.visible&&this.w.add(n),this.y.size>this.me?this.et(!0):i-this.Qe>this.W&&this.et()}et(t=!1){let r=Date.now(),n=r-this.W*2;for(let[i,a]of this.y.entries())(t||athis.me&&a{var getFileName,normalizePath,getUriPath;try{let e=K();e&&(getFileName=e.getFileName,normalizePath=e.normalizePath,getUriPath=e.getUriPath)}catch{}if(!getFileName){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function")try{let e=dynamicRequire("../utils/pathUtils");getFileName=getFileName||e.getFileName,normalizePath=normalizePath||e.normalizePath,getUriPath=getUriPath||e.getUriPath}catch{}}catch{}getFileName||(getFileName=e=>{let t=String(e||""),r=t.replace(/\\/g,"/").lastIndexOf("/");return r===-1?t:t.substring(r+1)}),normalizePath||(normalizePath=(e="")=>(e||"").toString().replace(/\\/g,"/")),getUriPath||(getUriPath=(e="")=>e?typeof e=="string"?e:e?.fsPath?e.fsPath:e?.path?e.path:String(e):"")}var VIEWPORT_DEFAULT_WINDOW_MS=300*1e3,VIEWPORT_STANDARD_WINDOW_MS=600*1e3,VIEWPORT_MINIMAL_WINDOW_MS=900*1e3,DEFAULT_SMART_WATCHER_EXTENSIONS=["ts","tsx","js","jsx","mjs","cjs","mts","cts","vue","py","go","rb","rs","java","kt","swift","cs","cpp","c","php","scala","sql","md","mdx","json","jsonc","yml","yaml","toml","ini","txt","html","css","scss"],SMART_WATCHER_PRIORITY=new Map([["src",100],["app",95],["apps",95],["packages",90],["services",85],["service",80],["client",75],["clients",70],["server",70],["servers",65],["lib",65],["libs",60],["api",60],["apis",60],["components",55],["modules",55],["feature",50],["features",50],["extensions",45],["scripts",45],["tools",45],["examples",40],["docs",35],["config",35],["test",30],["tests",30],["spec",30],["specs",30],["demo",25],["demos",25]]);function basename(e){if(!e)return"";try{return require("path").basename(e)}catch{let t=e.replace(/\\/g,"/"),r=t.lastIndexOf("/");return r===-1?t:t.substring(r+1)}}function dirname(e){if(!e)return".";try{return require("path").dirname(e)}catch{let t=e.replace(/\\/g,"/"),r=t.lastIndexOf("/");return r===-1?".":t.substring(0,r)}}function describeFile(e=""){try{let t=typeof e=="string"?e:getUriPath(e),r=normalizePath(t);return getFileName(r)||r||"unknown"}catch{return"unknown"}}function getNormalizedPathsFromEditors(e){let t=Date.now();if(!Array.isArray(e))return[];let r=[];for(let n of e){let i=n?.document?.uri;if(!i||i.scheme!=="file")continue;let a=normalizePath(getUriPath(i));a&&r.push({path:a,ts:t})}return r}function keysToTrimViewportHistory(e,t,r,n=!1,i=Date.now()){let a=i-t*2,o=[];for(let[s,c]of e)(n||cr&&c({value:d,key:h?`badge:${t||"default"}:${h}`:null});switch(t){case"relative-short":case"relative-long":return a<1?l("\u25CF\u25CF","just"):a<60?l(`${Math.min(a,99)}m`,`m:${Math.min(a,99)}`):o<24?l(`${Math.min(o,23)}h`,`h:${Math.min(o,23)}`):s<7?l(`${s}d`,`d:${s}`):c<4?l(`${c}w`,`w:${c}`):u<12?l(`${u}M`,`M:${u}`):l("1y","y:1");case"absolute-short":case"absolute-long":{let d=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],h=e instanceof Date?e.getDate():new Date(e).getDate(),g=`${d[e instanceof Date?e.getMonth():new Date(e).getMonth()]}${h<10?"0"+h:h}`,y=`abs:${e instanceof Date?e.getMonth():new Date(e).getMonth()}-${h}`;return l(g,y)}case"technical":return a<60?l(`${a}m`,`tech:m:${a}`):o<24?l(`${o}h`,`tech:h:${o}`):l(`${s}d`,`tech:d:${s}`);case"minimal":return o<1?l("\u2022\u2022","min:now"):o<24?l("\u25CB\u25CB","min:hours"):l("\u2500\u2500","min:days");default:return a<60?l(`${a}m`,`smart:m:${a}`):o<24?l(`${o}h`,`smart:h:${o}`):l(`${s}d`,`smart:d:${s}`)}}module.exports={VIEWPORT_DEFAULT_WINDOW_MS,VIEWPORT_STANDARD_WINDOW_MS,VIEWPORT_MINIMAL_WINDOW_MS,DEFAULT_SMART_WATCHER_EXTENSIONS,SMART_WATCHER_PRIORITY,FILE_TYPE_COLOR_MAP,COLOR_ENHANCEMENT_MAP,getFileTypeColorMap,getColorEnhancementMap,getNormalizedPathsFromEditors,keysToTrimViewportHistory,computeReadableDescriptor,formatDateBadge,basename,dirname,describeFile}});var Pr=_((exports,module)=>{var vscode=null;try{vscode=require("vscode")}catch{}var proc=typeof process<"u"?process:null,env=proc?.env||{},{getFeatureFlagsGlobal}=G(),featureFlags=getFeatureFlagsGlobal(),FEATURE_LEVELS=["full","enhanced","standard","minimal"];if(!featureFlags)throw new Error("Explorer Dates: feature flags bridge unavailable for decorationsAdvanced chunk");function tryLoadChunk(...names){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function")for(let e of names)try{let t=dynamicRequire(e);if(t)return t}catch{}}catch{}return null}async function loadBatchProcessorIfNeeded(provider){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=dynamicRequire("./decoration-batch-chunk");if(e&&typeof e.loadBatchProcessorIfNeeded=="function")return await e.loadBatchProcessorIfNeeded(provider)}}catch(e){provider._logger?.debug?.("Delegated loadBatchProcessorIfNeeded failed",e)}return provider._logger?.debug?.("BatchProcessor not available (fallback)"),null}async function deferPreloads(e){try{Promise.resolve().then(()=>R(Ar())).then(t=>{try{e.tt=t.createViewportManager?.(e)||null}catch(r){e._logger?.debug?.("Failed to init viewport manager",r)}}).catch(t=>e._logger?.debug?.("Failed to load viewport manager chunk",t)),Promise.resolve().then(()=>R(ot())).then(t=>{try{let r=t.getLocalization();e.p.getString=(...i)=>r.getString(...i),e.p.formatDate=(...i)=>r.formatDate(...i),e.p.getCurrentLocale=()=>r.getCurrentLocale();let n=e.p.dispose;e.p.dispose=()=>{try{r.dispose()}catch{}n()}}catch{}}).catch(()=>{}),Promise.resolve().then(()=>R(st())).then(t=>{try{e.yt=t.createDecorationLogic?.(e)||null}catch(r){e._logger?.debug?.("Failed to initialize decoration logic chunk",r)}}).catch(t=>e._logger?.debug?.("Failed to load decoration logic chunk",t)),Promise.resolve().then(()=>R(Ce())).then(t=>{try{e.dr=t.createDecorationProviderHelpers?.(e)||null}catch(r){e._logger?.debug?.("Failed to initialize decoration provide chunk",r)}}).catch(t=>e._logger?.debug?.("Failed to load decoration provide chunk",t)),e._logger?.debug?.("Deferred preloads scheduled")}catch(t){e._logger?.debug?.("deferPreloads failed",t)}}async function getCachedDecoration(provider,cacheKey,fileLabel){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function")try{let e=dynamicRequire("./decoration-cache-chunk");if(e&&typeof e.getCachedDecoration=="function")return await e.getCachedDecoration(provider,cacheKey,fileLabel)}catch{}if(provider.G)return provider._logger?.debug?.(`\u26A0\uFE0F Cache bypass enabled - recalculating decoration for: ${fileLabel}`),null;if(provider._advancedCache)try{let e=await provider._advancedCache.get(cacheKey);if(e)return provider._metrics.cacheHits++,provider._logger?.debug?.(`\u{1F9E0} Advanced cache hit for: ${fileLabel}`),e}catch(e){provider._logger?.debug?.(`Advanced cache error: ${e.message}`)}if(!provider.e||typeof provider.e.get!="function")return provider._logger?.debug?.("getCachedDecoration: no memory cache available, falling back"),null;let memoryEntry=provider.e.get(cacheKey);if(memoryEntry){if(memoryEntry.forceRefresh){try{provider.e.delete(cacheKey)}catch{}provider._logger?.debug?.(`\u{1F6AB} Memory cache bypassed (forced refresh) for: ${fileLabel}`)}else if(Date.now()-memoryEntry.timestampprovider.l&&typeof provider.e.enforceLimit=="function"&&provider.e.enforceLimit(provider.l,provider._logger)}catch{}let cacheEntry={decoration,timestamp:Date.now()};resourceUri&&(cacheEntry.uri=resourceUri);try{provider.e.set(cacheKey,cacheEntry)}catch{}try{typeof provider.ce=="function"&&provider.ce()}catch(e){provider._logger?.debug?.("monitorCachePressure from store failed",e)}if(provider._advancedCache)try{await provider._advancedCache.set(cacheKey,decoration,{ttl:provider.C}),provider._logger?.debug?.(`\u{1F9E0} Stored in advanced cache: ${fileLabel}`)}catch(e){provider._logger?.debug?.(`Failed to store in advanced cache: ${e.message}`)}try{typeof provider.le=="function"&&provider.le()}catch(e){provider._logger?.debug?.("maybeExtendCacheTimeout from store failed",e)}}catch(e){provider._logger?.debug?.("storeDecorationInCache failed",e)}}function cancelProgressiveWarmupJobs(provider){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=dynamicRequire("./decoration-batch-chunk");if(e&&typeof e.cancelProgressiveWarmupJobs=="function")return e.cancelProgressiveWarmupJobs(provider)}}catch(e){provider._logger?.debug?.("Delegated cancelProgressiveWarmupJobs failed",e)}try{let e=provider._progressiveLoadingJobs;e&&typeof e.clear=="function"&&e.clear()}catch(e){provider._logger?.debug?.("Fallback cancel failed",e)}}async function applyProgressiveLoadingSetting(provider){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=dynamicRequire("./decoration-batch-chunk");if(e&&typeof e.applyProgressiveLoadingSetting=="function")return e.applyProgressiveLoadingSetting(provider)}}catch(e){provider._logger?.debug?.("Delegated applyProgressiveLoadingSetting failed",e)}provider._logger?.debug?.("applyProgressiveLoadingSetting fallback invoked (no batch chunk)")}async function initializeAdvancedSystems(e,t){try{if(e._extensionContext=t,e._isWeb&&await e._maybeWarnAboutGitLimitations?.(),e._performanceMode){e._logger?.info?.("Performance mode enabled - skipping advanced cache, batch processor, and progressive loading");return}let r=await featureFlags.advancedCache();if(r){let i=null;if(typeof r=="function")if(r.name==="createAdvancedCache")e._advancedCache=r(t),await e._advancedCache.initialize(),e._logger?.info?.("Advanced cache initialized via factory function");else try{e._advancedCache=new r(t),await e._advancedCache.initialize(),e._logger?.info?.("Advanced cache initialized via direct constructor")}catch(a){e._logger?.warn?.("Failed to instantiate AdvancedCache via direct constructor, disabling advanced cache:",a.message),e._advancedCache=null}else r.AdvancedCache?(i=r.AdvancedCache,e._advancedCache=new i(t),await e._advancedCache.initialize(),e._logger?.info?.("Advanced cache initialized via module property")):r.createAdvancedCache?(e._advancedCache=r.createAdvancedCache(t),await e._advancedCache.initialize(),e._logger?.info?.("Advanced cache initialized via module factory")):(e._logger?.warn?.("AdvancedCache module format not recognized, disabling advanced cache"),e._advancedCache=null)}else e._logger?.info?.("Advanced cache disabled by feature flag"),e._advancedCache=null;await applyProgressiveLoadingSetting(e),e._batchProcessor&&(e._batchProcessor.initialize(),e._logger?.info?.("Batch processor initialized"));try{let i=tryLoadChunk("./decoration-workspace-intel-chunk","./decorationWorkspaceIntel","./decorationWorkspaceIntel.js","./decoration-workspace-intel-chunk.js");i&&typeof i.initializeWorkspaceIntelligence=="function"?await i.initializeWorkspaceIntelligence(e,t):e._logger?.info?.("Workspace intelligence not initialized (no chunk)")}catch(i){e._logger?.warn?.("Delegated workspace intelligence initialization failed",i?.message||String(i)),e._workspaceIntelligence=null}vscode.workspace.getConfiguration("explorerDates").get("autoThemeAdaptation",!0)&&e._themeIntegration?.autoConfigureForTheme&&(await e._themeIntegration.autoConfigureForTheme(),e._logger?.info?.("Theme integration configured")),e._accessibility?.shouldEnhanceAccessibility?.()&&(await e._accessibility.applyAccessibilityRecommendations?.(),e._logger?.info?.("Accessibility recommendations applied")),e._allocationTelemetryEnabled&&(scheduleTelemetryReport(e),e._logger?.info?.("Allocation telemetry enabled - reports every",e._telemetryReportInterval,"ms")),e._logger?.info?.("Advanced systems initialized successfully")}catch(r){e._logger?.error?.("Failed to initialize advanced systems",r)}}function shouldUseFallbackWatcher(e){return e._enableWatcherFallbacks===!1?!1:e._enableWatcherFallbacks==="auto"||e._enableWatcherFallbacks===!0?isPlatformFallbackRequired():!1}function isPlatformFallbackRequired(){let e=proc?.platform,t=env.WSL_DISTRO_NAME||env.WSLENV,r=vscode.env.remoteName,n=env.DOCKER_CONTAINER;return t||r||n||e==="android"}async function createFallbackWatcher(e,t,r){try{if(!e._smartWatcherFallbackManager){let n=await featureFlags.loadFeatureModule("smartWatcherFallback");if(n){let{SmartWatcherFallbackManager:i}=n;e._smartWatcherFallbackManager=new i({logger:e._logger}),await e._smartWatcherFallbackManager.initialize()}}if(e._smartWatcherFallbackManager){let i=await(await e._smartWatcherFallbackManager.getFallback()).createWatcherWithFallback(t);return e._logger?.debug?.(`Fallback watcher created for ${r}`),i}}catch(n){e._logger?.warn?.(`Fallback watcher creation failed for ${r}:`,n)}return null}async function createWatcherWithFallback(e,t,r="unknown"){try{let n=vscode.workspace.createFileSystemWatcher(t);return e._logger?.debug?.(`Native watcher created for ${r}`),n}catch(n){if(e._logger?.debug?.(`Native watcher failed for ${r}:`,n),!shouldUseFallbackWatcher(e))throw n;return createFallbackWatcher(e,t,r)}}async function ensureWatcherManager(e){try{if(e.f)return e.f;try{let t=await Promise.resolve().then(()=>R(ft()));return e.f=t.createWatcherManager(e),e.f}catch(t){e._logger?.debug?.("Failed to load watcher manager chunk from advanced chunk",t)}}catch(t){e._logger?.debug?.("ensureWatcherManager failed",t)}return null}async function setupFileWatcher(e,t="initial"){try{let r=await ensureWatcherManager(e);if(r&&typeof r.setupFileWatcher=="function")return r.setupFileWatcher(t)}catch(r){e._logger?.debug?.("setupFileWatcher failed in advanced chunk",r)}try{let r=createWatcherWithFallback(e,"**/*",`global:${t}`);if(r)return e.s||(e.s=new Set),e.s.add(r),e._logger?.info?.("Global watcher activated (fallback)",{reason:t}),r}catch(r){e._logger?.debug?.("setupFileWatcher fallback failed",r)}return null}function registerWatcherHandlers(e,t,r="unknown"){try{let n=e.f||null;if(n&&typeof n.he=="function")return n.he(t,r)}catch(n){e._logger?.debug?.("Watcher manager register watcher handlers failed (advanced)",n)}try{if(!t)return;t.onDidChange(n=>e.M(n,"change",r)),t.onDidCreate(n=>e.M(n,"create",r)),t.onDidDelete(n=>e.M(n,"delete",r))}catch(n){e._logger?.debug?.("registerWatcherHandlers fallback failed",n)}}function dispatchWatcherEvent(e,t,r,n){try{let i=e.f||null;if(i&&typeof i.xe=="function")return i.xe(t,r,n)}catch(i){e._logger?.debug?.("Watcher manager dispatch watcher event failed (advanced)",i)}try{try{e.Me?.(t)}catch{}r==="delete"?e.clearDecoration(t):e.refreshDecoration(t),e._workspaceIntelligence?.incrementalIndexer&&e._workspaceIntelligence.incrementalIndexer.queueDelta(t,r),e.Ye&&e._logger?.debug?.(`Watcher event processed (${r}) for ${e.describeFile(t)} via ${n}`)}catch(i){e._logger?.debug?.("dispatchWatcherEvent fallback failed",i)}}function buildSummaryTooltip(e,{filePath:t,stat:r,badgeDetails:n}){try{let i=tryLoadChunk("./decoration-formatters-chunk","./decorationFormatters","./decoration-formatters-chunk.js","./decorationFormatters.js","./decoration-helpers-chunk","./decorationHelpers","./decoration-helpers","./decoration-helpers-chunk.js","./decorationHelpers.js");if(i&&typeof i.buildSummaryTooltip=="function")return i.buildSummaryTooltip(e,{filePath:t,stat:r,badgeDetails:n})}catch(i){e._logger?.debug?.("Delegated buildSummaryTooltip failed",i)}try{let i=[];n?.readableModified&&i.push(`Modified ${n.readableModified}`);let a=n?.fileSizeLabel||(r?.size?e.gt(r.size,"auto"):null);return a&&i.push(a),`${typeof e.describeFile=="function"?e.describeFile(t):t} \u2014 ${i.filter(Boolean).join(" \u2022 ")||e.Cr(r?.mtime||new Date)}`}catch(i){return e._logger?.debug?.("buildSummaryTooltip failed",i),`${typeof e.describeFile=="function"?e.describeFile(t):t} \u2014 ${e.Cr(r?.mtime||new Date)}`}}function formatDateReadable(e,t){try{let r=tryLoadChunk("./decoration-formatters-chunk","./decorationFormatters","./decoration-formatters-chunk.js","./decorationFormatters.js","./decoration-helpers-chunk","./decorationHelpers","./decoration-helpers","./decoration-helpers-chunk.js","./decorationHelpers.js");if(r&&typeof r.formatDateReadable=="function")return r.formatDateReadable(e,t)}catch(r){e._logger?.debug?.("Delegated formatDateReadable failed",r)}try{let r=new Date,n=r.getTime()-t.getTime(),i=Math.floor(n/(1e3*60)),a=Math.floor(n/(1e3*60*60)),o=Math.floor(n/(1e3*60*60*24)),s=e.ln(t,r,i,a,o);return s?e.er(e.L,e.Ie,e.Sr,s.key,s.factory,e.Tr):t.getFullYear()===r.getFullYear()?e.p.formatDate(t,{month:"short",day:"numeric"}):e.p.formatDate(t,{month:"short",day:"numeric",year:"numeric"})}catch(r){return e._logger?.debug?.("formatDateReadable failed",r),e.p.formatDate(t)}}async function getGitBlameInfo(e,t,r=null){if(env.DISABLE_GIT_FEATURES==="1"||e.un)return null;try{let n=await featureFlags.gitInsights();return!n||typeof n.getGitBlameInfo!="function"?null:await n.getGitBlameInfo(t,r)}catch(n){return e._logger?.warn?.("Git blame lookup failed",{filePath:t,message:n?.message||String(n)}),null}}async function findWorkspaceFilesWithTimeout(provider,maxResults){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=dynamicRequire("./workspace-scan-chunk");if(e&&typeof e.findWorkspaceFilesWithTimeout=="function")return e.findWorkspaceFilesWithTimeout(provider,maxResults)}}catch(e){provider._logger?.debug?.("Delegated findWorkspaceFilesWithTimeout failed",e)}try{return require("vscode").workspace.findFiles("**/*",null,maxResults)}catch(e){return provider._logger?.warn?.("Workspace scan fallback failed",e),null}}function startWorkspaceScanWatchdog(provider){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=dynamicRequire("./workspace-scan-chunk");if(e&&typeof e.startWorkspaceScanWatchdog=="function")return e.startWorkspaceScanWatchdog(provider)}}catch(e){provider._logger?.debug?.("Delegated startWorkspaceScanWatchdog failed",e)}return Promise.resolve()}function clearWorkspaceScanWatchdog(provider){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=dynamicRequire("./workspace-scan-chunk");if(e&&typeof e.clearWorkspaceScanWatchdog=="function")return e.clearWorkspaceScanWatchdog(provider)}}catch(e){provider._logger?.debug?.("Delegated clearWorkspaceScanWatchdog failed",e)}provider.te&&(clearTimeout(provider.te),provider.te=null)}async function performWorkspaceSizeCheck(provider){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=dynamicRequire("./workspace-scan-chunk");if(e&&typeof e.performWorkspaceSizeCheck=="function")return e.performWorkspaceSizeCheck(provider)}}catch(e){provider._logger?.debug?.("Delegated performWorkspaceSizeCheck failed",e)}try{let e=require("vscode"),t=e.workspace.workspaceFolders;if(!t||t.length===0)return;provider._logger?.info?.("Checking workspace size (fallback, fast)");let r=await(e.workspace.findFiles?e.workspace.findFiles("**/*",null,1e3):[]),n=Array.isArray(r)?r.length:0;provider.Ve=n,provider.u=n>1e5?"extreme":n>1e4?"large":"normal",provider.Ge(provider.Xe(),"workspace-scale-change-fallback")}catch(e){provider._logger?.debug?.("performWorkspaceSizeCheck fallback failed",e)}}function getInitials(e,t){try{let n=tryLoadChunk("./decoration-formatters-chunk","./decorationFormatters","./decoration-formatters-chunk.js","./decorationFormatters.js","./decoration-helpers-chunk","./decorationHelpers","./decoration-helpers","./decoration-helpers-chunk.js","./decorationHelpers.js");if(n&&typeof n.getInitials=="function")return n.getInitials(e,t)}catch(n){e._logger?.debug?.("Delegated getInitials failed",n)}if(e.pe&&typeof e.pe.getInitials=="function")return e.pe.getInitials(t);if(!t||typeof t!="string")return null;let r=t.trim().split(/\s+/).filter(Boolean);return r.length===0?null:r.length===1?r[0].substring(0,2).toUpperCase():(r[0][0]+(r[1][0]||"")).substring(0,2).toUpperCase()}function formatCompactSize(e,t){try{let r=tryLoadChunk("./decoration-formatters-chunk","./decorationFormatters","./decoration-formatters-chunk.js","./decorationFormatters.js","./decoration-helpers-chunk","./decorationHelpers","./decoration-helpers","./decoration-helpers-chunk.js","./decorationHelpers.js");if(r&&typeof r.formatCompactSize=="function")return r.formatCompactSize(e,t)}catch(r){e._logger?.debug?.("Delegated formatCompactSize failed",r)}try{if(typeof t!="number"||isNaN(t))return null;let r=["B","K","M","G","T"],n=0,i=t;for(;i>=1024&&n=2?s.slice(0,2):s}catch(r){return e._logger?.debug?.("formatCompactSize failed",r),null}}function formatFullDate(e,t){try{let r=tryLoadChunk("./decoration-formatters-chunk","./decorationFormatters","./decoration-formatters-chunk.js","./decorationFormatters.js","./decoration-helpers-chunk","./decorationHelpers","./decoration-helpers","./decoration-helpers-chunk.js","./decorationHelpers.js");if(r&&typeof r.formatFullDate=="function")return r.formatFullDate(e,t)}catch(r){e._logger?.debug?.("Delegated formatFullDate failed",r)}try{let r={year:"numeric",month:"long",day:"numeric",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:"short"};return t.toLocaleString("en-US",r)}catch(r){return e._logger?.debug?.("formatFullDate failed",r),t.toString()}}function scheduleTelemetryReport(e){try{let t=tryLoadChunk("./decoration-telemetry-chunk","./decorationTelemetry","./decorationTelemetry.js","./decoration-telemetry-chunk.js");if(t&&typeof t.scheduleTelemetryReport=="function")return t.scheduleTelemetryReport(e)}catch(t){e._logger?.debug?.("Delegated scheduleTelemetryReport failed",t)}!e._allocationTelemetryEnabled||e._telemetryReportTimer||(e._telemetryReportTimer=setTimeout(()=>{e._telemetryReportTimer=null,reportAllocationTelemetry(e),scheduleTelemetryReport(e)},e._telemetryReportInterval))}function reportAllocationTelemetry(e){try{let i=ct();if(i&&typeof i.reportAllocationTelemetry=="function")return i.reportAllocationTelemetry(e)}catch(i){e._logger?.debug?.("Delegated reportAllocationTelemetry failed",i)}let t=e.getMetrics().allocationTelemetry,r=t.decorationPool.allocations+t.badgeFlyweight.allocations+t.readableFlyweight.allocations,n=t.decorationPool.reuses+t.badgeFlyweight.reuses+t.readableFlyweight.reuses;(r>0||n>0)&&e._logger?.info?.("\u{1F9EE} Allocation telemetry report",{timestamp:new Date().toISOString(),pool:{allocations:t.decorationPool.allocations,reuses:t.decorationPool.reuses,reuseRate:t.decorationPool.reusePercent+"%"},badgeFlyweight:{allocations:t.badgeFlyweight.allocations,reuses:t.badgeFlyweight.reuses,reuseRate:t.badgeFlyweight.reusePercent+"%"},readableFlyweight:{allocations:t.readableFlyweight.allocations,reuses:t.readableFlyweight.reuses,reuseRate:t.readableFlyweight.reusePercent+"%"},summary:{totalAllocations:r,totalReuses:n,overallReuseRate:r+n>0?(n/(r+n)*100).toFixed(1)+"%":"0%"},decorationsProcessed:e._metrics.totalDecorations,cacheHitRate:e.getMetrics().cacheHitRate})}function setupPeriodicRefresh(e){try{let t=vscode.workspace.getConfiguration("explorerDates"),r=t.get("badgeRefreshInterval",6e4),n=e.v||r;if(e.F=n,e._logger?.info?.(`Setting up periodic refresh with interval: ${e.F}ms`),e.a&&(clearInterval(e.a),e.a=null),e.i&&e.i.size){for(let i of e.i)clearTimeout(i);e.i.clear()}if(!t.get("showDateDecorations",!0)){e._logger?.info?.("Decorations disabled, skipping periodic refresh setup");return}e.a=setInterval(()=>{if(e.A){e._logger?.debug?.("Periodic refresh skipped - incremental refresh already running");return}e._logger?.debug?.("Periodic refresh triggered - scheduling incremental refresh"),scheduleIncrementalRefresh(e,"periodic")},e.F),e._logger?.info?.("Periodic refresh timer started")}catch(t){e._logger?.debug?.("Failed to setup periodic refresh",t)}}function cancelIncrementalRefreshTimers(provider){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=dynamicRequire("./decoration-refresh-chunk");if(e&&typeof e.cancelIncrementalRefreshTimers=="function")return e.cancelIncrementalRefreshTimers(provider)}}catch(e){provider._logger?.debug?.("Delegated cancelIncrementalRefreshTimers failed",e)}if(!(!provider.i||provider.i.size===0)){for(let e of provider.i)clearTimeout(e);provider.i.clear(),provider.A=!1}}function scheduleIncrementalRefresh(provider,reason="manual"){try{if(!provider.e||typeof provider.e.entries!="function"){provider._logger?.debug?.("scheduleIncrementalRefresh: missing or invalid memory cache, firing global refresh");try{provider.m.fire(void 0)}catch{}return}let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=dynamicRequire("./decoration-refresh-chunk");if(e&&typeof e.scheduleIncrementalRefresh=="function")return e.scheduleIncrementalRefresh(provider,reason)}}catch(e){provider._logger?.debug?.("Delegated scheduleIncrementalRefresh failed",e)}provider._logger?.debug?.("scheduleIncrementalRefresh fallback invoked");try{provider.m.fire(void 0)}catch{}}function markCacheEntryForRefresh(provider,cacheKey){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=dynamicRequire("./decoration-refresh-chunk");if(e&&typeof e.markCacheEntryForRefresh=="function")return e.markCacheEntryForRefresh(provider,cacheKey)}}catch(e){provider._logger?.debug?.("Delegated markCacheEntryForRefresh failed",e)}if(!cacheKey)return;if(!provider.e||typeof provider.e.get!="function")provider._logger?.debug?.("markCacheEntryForRefresh: no memory cache available, skipping");else{let e=provider.e.get(cacheKey);e&&Date.now()-e.timestamp>provider.C*.75&&(e.forceRefresh=!0)}if(provider._advancedCache)try{provider._advancedCache.invalidateByPattern(cacheKey.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"))}catch(e){provider._logger?.debug?.(`Could not invalidate advanced cache for ${cacheKey}: ${e.message}`)}function maybeShedWorkload(provider){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=dynamicRequire("./decoration-memory-chunk");if(e&&typeof e.maybeShedWorkload=="function")return e.maybeShedWorkload(provider)}}catch(e){provider._logger?.debug?.("Delegated maybeShedWorkload failed",e)}try{if(!provider.St||provider.Tt)return;let e=(()=>{try{return proc?.memoryUsage?proc.memoryUsage().heapUsed/1024/1024:0}catch{return 0}})();if(!e)return;if(!provider.ye){provider.ye=e,provider.re=0,provider.be=!1;return}let t=e-provider.ye;if(t>=provider.vt?(provider.re++,provider.re>=2&&!provider.be&&(provider.be=!0,provider._logger?.warn?.("Memory pressure warning (soft threshold exceeded twice)",{deltaMB:Number(t.toFixed(2)),baselineMB:provider.ye,heapMB:e,rssMB:(()=>{try{return proc?.memoryUsage?proc.memoryUsage().rss/1024/1024:0}catch{return 0}})(),cacheSize:provider.e.size,cacheLimit:provider.l}))):provider.re>0&&(provider.re=0,t=provider.Ft){provider.Tt=!0,provider.l=Math.min(provider.l,provider.vr),provider.v=Math.max(provider.v||provider.F||provider.At,provider.At);let r=(()=>{try{return proc?.memoryUsage?proc.memoryUsage().rss/1024/1024:0}catch{return 0}})(),n={timestamp:new Date().toISOString(),deltaMB:Number(t.toFixed(2)),baselineMB:provider.ye,heapMB:e,rssMB:r,cacheSize:provider.e.size,maxCacheSize:provider.l,watcherStrategy:provider.K,staticWatchers:provider.s.size,dynamicWatchers:provider.d.size};provider.rt.push(n),provider.rt.length>10&&provider.rt.shift(),provider._logger?.warn?.(`Memory shedding activated (delta ${t.toFixed(2)} MB >= ${provider.Ft} MB); cache size capped at ${provider.l} and refresh interval stretched to ${provider.v}ms`,n),setupPeriodicRefresh(provider),provider.be=!1,provider.re=0}}catch(e){provider._logger?.debug?.("maybeShedWorkload failed",e)}}function monitorCachePressure(e){try{if(!e.l||e.l<=0)return;let t=e.e.size/e.l;t>=e.Rt?e.nt||(e.nt=!0,e._logger?.infoWithOptions?.({throttleKey:"cache-pressure",intervalMs:6e4},`Decoration cache usage is at ${(t*100).toFixed(1)}% of capacity`,{cacheSize:e.e.size,maxCacheSize:e.l})):t0&&e.e.clear();try{typeof e.Fr=="function"&&e.Fr(t)}catch{}e.x.size>0&&(e.x.clear(),e.Se.length=0),e.L.size>0&&(e.L.clear(),e.Ie.length=0),e._logger?.debug?.(`\u{1F9FD} Purged lightweight caches (${t})`)}catch(r){e._logger?.debug?.("purgeLightweightCaches failed",r)}}async function togglePerformanceMode(e,t,{reason:r="unspecified",refresh:n=!0}={}){if(t!==e._performanceMode){if(e._performanceMode=t,e._logger?.info?.(`Performance mode ${t?"enabled":"disabled"} (${r})`),t)e.at?.({permanent:!0}),e._logger?.info?.("File watchers disabled for performance mode"),e.a&&(clearInterval(e.a),e.a=null,e._logger?.info?.("Periodic refresh disabled for performance mode"));else{try{e.Q?.("performance-mode-toggle"),e._logger?.info?.("File watchers enabled (performance mode off)")}catch{}e.a||(e._e?.(),e._logger?.info?.("Periodic refresh enabled (performance mode off)"))}if(n)try{e.refreshAll?.({reason:"performance-mode-change"})}catch(i){e._logger?.debug?.("refreshAll after performance toggle failed",i)}if(t)e._workspaceIntelligence?.dispose&&(e._workspaceIntelligence.dispose(),e._workspaceIntelligence=null);else if(!e._workspaceIntelligence)try{let{getFeatureFlagsGlobal:i}=G(),a=i(),o=a?await a.workspaceIntelligence():null;if(o){let{WorkspaceIntelligenceManager:s}=o;e._workspaceIntelligence=new s(e._fileSystem),await e._workspaceIntelligence.initialize({batchProcessor:e._batchProcessor,enableProgressiveAnalysis:e._shouldEnableProgressiveAnalysis?.()});let c=require("vscode").workspace.workspaceFolders;c?.length&&await e._workspaceIntelligence.analyzeWorkspace(c,{maxFiles:e._getIndexerMaxFiles?.()})}}catch(i){e._logger?.debug?.("Workspace intelligence reinitialization failed after performance mode toggle",i)}}}function applyPerformanceProfile(e,t,r="unspecified"){try{let n=t?.level||e.$;e.hn=!1;let i=computeEffectivePerformanceMode(e);if(i!==e._performanceMode&&(e._logger?.debug?.("Auto performance mode update",{reason:r,featureLevel:n,workspaceScale:e.u,desiredPerformanceMode:i}),togglePerformanceMode(e,i,{reason:`${r}-auto`,refresh:!0}).catch(a=>e._logger?.debug?.("Failed to toggle performance mode automatically",a))),applyConcurrencyLimit(e,r),!e._performanceMode&&(e.u==="large"||e.u==="extreme")){let a={...e.R,applyBackgroundLimits:!0,backgroundTooltipMode:e.R?.backgroundTooltipMode==="rich"?"summary":e.R?.backgroundTooltipMode};e.R=a}if(!e._performanceMode){let a=getRefreshIntervalForScale(e),o=a!==null&&a!==e.v,s=a===null&&e.v!==null;o?(e.v=a,e._e?.()):s&&(e.v=null,e._e?.())}}catch(n){e._logger?.debug?.("applyPerformanceProfile failed",n)}}function getRefreshIntervalForScale(e){return e.u==="extreme"?6e5:e.u==="large"?18e4:null}function getSmartWatcherDefaults(){try{let e=Rr();return{DEFAULT_SMART_WATCHER_EXTENSIONS:e.DEFAULT_SMART_WATCHER_EXTENSIONS,SMART_WATCHER_PRIORITY:e.SMART_WATCHER_PRIORITY}}catch{return{DEFAULT_SMART_WATCHER_EXTENSIONS:["js","ts","json","md","py","java"],SMART_WATCHER_PRIORITY:new Map([["src",100],["lib",65],["test",30]])}}}function computeEffectivePerformanceMode(e){return e.Ar===!0?!0:e.Ar===!1?!1:e.u==="extreme"}function applyConcurrencyLimit(e,t="unspecified"){let r=e.ue,n=e.Rr?e.Rr():e.ot||8;e.ue=Math.max(1,Math.min(n,e.ot||8)),e._logger?.info?.(`Adjusted concurrency cap ${r} -> ${e.ue} (${t})`,{workspaceScale:e.u,performanceMode:e._performanceMode})}function _buildFeatureProfile(e,t="full"){let r=FEATURE_LEVELS.includes(t)?t:"full";switch(r){case"enhanced":return{level:r,enableGit:!0,enableProgressiveAnalysis:!0,applyBackgroundLimits:!1,backgroundTooltipMode:"rich",viewportWindowMs:6e4};case"standard":return{level:r,enableGit:!0,enableProgressiveAnalysis:!1,applyBackgroundLimits:!0,backgroundTooltipMode:"summary",viewportWindowMs:48e4};case"minimal":return{level:r,enableGit:!1,enableProgressiveAnalysis:!1,applyBackgroundLimits:!0,backgroundTooltipMode:"summary",viewportWindowMs:12e4};default:return{level:r,enableGit:!0,enableProgressiveAnalysis:!1,applyBackgroundLimits:!1,backgroundTooltipMode:"rich",viewportWindowMs:3e5}}}function applyFeatureLevel(e,t,r="unspecified"){if(!t)return!1;FEATURE_LEVELS.includes(t)||(t="full");let n=e.$!==t||!e.R;e.$=t;let i=n?_buildFeatureProfile(e,t):e.R||_buildFeatureProfile(e,t);return e.R=i,e.W=i.viewportWindowMs,n&&e._logger?.info?.(`Feature level set to "${t}" (${r})`,{viewportWindowMs:e.W,applyBackgroundLimits:i.applyBackgroundLimits,backgroundTooltipMode:i.backgroundTooltipMode}),e._performanceMode?e._logger?.info?.("Performance mode active - skipping feature profile application"):(i.applyBackgroundLimits&&e.dn?.(r),i.backgroundTooltipMode&&e._logger?.info?.("Configuring background tooltip behavior as part of feature profile",{mode:i.backgroundTooltipMode}),i.enableProgressiveAnalysis&&e._logger?.info?.("Progressive analysis enabled by feature profile")),n}function maybePurgeLightweightCaches(e){try{if(!e.it)return;if(e.Pt<=0){purgeLightweightCaches(e,"lightweight-interval");return}let t=e._metrics?.totalDecorations||0;t>0&&t%e.Pt===0&&purgeLightweightCaches(e,"lightweight-interval")}catch(t){e._logger?.debug?.("maybePurgeLightweightCaches failed",t)}}function _getFlyweightValueImpl(cache,order,limit,key,factory,statsTracker){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=dynamicRequire("./decoration-pool-chunk");if(e&&typeof e.xt=="function")return e.xt(cache,order,limit,key,factory,statsTracker)}}catch{}try{return factory()}catch{return null}}function acquireDecorationFromPoolImpl({badge,tooltip,color},createFileDecoration){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=dynamicRequire("./decoration-pool-chunk");if(e&&typeof e.acquireDecorationFromPoolImpl=="function")return e.acquireDecorationFromPoolImpl({badge,tooltip,color},createFileDecoration)}}catch{}return createFileDecoration(badge||"??")}function _trimFlyweightCacheToLimitImpl(cache,order,maxSize){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=dynamicRequire("./decoration-pool-chunk");if(e&&typeof e.Mt=="function")return e.Mt(cache,order,maxSize)}}catch{}}function clearDecorationPoolImpl(provider,reason="unspecified"){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=dynamicRequire("./decoration-pool-chunk");if(e&&typeof e.clearDecorationPoolImpl=="function")return e.clearDecorationPoolImpl(provider,reason)}}catch{}try{provider.c?.size&&(provider.c.clear(),provider.H.length=0)}catch{}}function checkMemoryPressure(e){try{let t=Date.now();if(e.st||(e.st=t),t-e.st<3e4)return;e.st=t;let r=e.e.size||0,n=1e4;r/n>.8&&(e._logger?.warn?.("\u{1F9E0} Memory pressure detected, performing cleanup",{cacheSize:r,maxSize:n}),purgeLightweightCaches(e,"memory-pressure"),e._metrics.cachePressureEvents=(e._metrics.cachePressureEvents||0)+1)}catch(t){e._logger?.debug?.("checkMemoryPressure failed",t)}}function createLazyHierarchicalDecorationCache(){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=dynamicRequire("./decoration-cache-chunk");if(e&&typeof e.createLazyHierarchicalDecorationCache=="function")return e.createLazyHierarchicalDecorationCache()}}catch{}class SimpleFallbackCache{constructor(){this.ne=new Map}get size(){return this.ne.size}clear(){this.ne.clear()}get(t){return this.ne.get(t)}set(t,r){this.ne.set(t,r)}delete(t){return this.ne.delete(t)}*entries(){yield*this.ne.entries()}hydrateInBackground(){}enforceLimit(){return 0}}return new SimpleFallbackCache}module.exports={applyProgressiveLoadingSetting,cancelProgressiveWarmupJobs,createFallbackWatcher,createWatcherWithFallback,initializeAdvancedSystems,loadBatchProcessorIfNeeded,reportAllocationTelemetry,scheduleTelemetryReport,setupPeriodicRefresh,scheduleIncrementalRefresh,cancelIncrementalRefreshTimers,markCacheEntryForRefresh,maybeShedWorkload,monitorCachePressure,purgeLightweightCaches,maybePurgeLightweightCaches,checkMemoryPressure,getCachedDecoration,storeDecorationInCache,buildSummaryTooltip,formatDateReadable,getGitBlameInfo,getInitials,formatCompactSize,formatFullDate,togglePerformanceMode,applyPerformanceProfile,getRefreshIntervalForScale,computeEffectivePerformanceMode,applyConcurrencyLimit,findWorkspaceFilesWithTimeout,startWorkspaceScanWatchdog,clearWorkspaceScanWatchdog,performWorkspaceSizeCheck,applyFeatureLevel,fn:_buildFeatureProfile,getSmartWatcherDefaults,createLazyHierarchicalDecorationCache,xt:_getFlyweightValueImpl,acquireDecorationFromPoolImpl,Mt:_trimFlyweightCacheToLimitImpl,clearDecorationPoolImpl,deferPreloads,ensureWatcherManager,setupFileWatcher,registerWatcherHandlers,dispatchWatcherEvent}}});var Lr=_((qa,Wr)=>{function Hi(e){try{let t=(()=>{try{return require("vscode")}catch{return null}})(),r=t?t.workspace.getConfiguration("explorerDates"):{get:()=>6e4},n=r.get("badgeRefreshInterval",6e4),i=e.v||n;if(e.F=i,e._logger?.info?.(`Setting up periodic refresh with interval: ${e.F}ms`),e.a&&(clearInterval(e.a),e.a=null),e.i&&e.i.size){for(let a of e.i)clearTimeout(a);e.i.clear()}if(!r.get("showDateDecorations",!0)){e._logger?.info?.("Decorations disabled, skipping periodic refresh setup");return}e.a=setInterval(()=>{if(e.A){e._logger?.debug?.("Periodic refresh skipped - incremental refresh already running");return}e._logger?.debug?.("Periodic refresh triggered - scheduling incremental refresh"),Mr(e,"periodic")},e.F),e._logger?.info?.("Periodic refresh timer started")}catch(t){e._logger?.debug?.("Failed to setup periodic refresh",t)}}function xr(e){if(!(!e.i||e.i.size===0)){for(let t of e.i)clearTimeout(t);e.i.clear(),e.A=!1}}function Mr(e,t="manual"){try{if(e.k){e._logger?.debug?.(`scheduleIncrementalRefresh called after dispose - ignoring (${t})`);return}if(e.ie){e._logger?.debug?.(`Incremental refresh (${t}) skipped - refresh already pending`);return}if(e.A&&(e._logger?.debug?.(`Incremental refresh (${t}) already in progress, cancelling pending timers and rescheduling`),xr(e)),!e.e||typeof e.e.entries!="function"){e._logger?.debug?.("scheduleIncrementalRefresh: no memory cache available, firing global refresh");try{e.m.fire(void 0)}catch{}e.A=!1,e.ie=!1;return}let r=Array.from(e.e.entries());if(r.length===0){e._logger?.debug?.(`No cached decorations to refresh for ${t}, falling back to global refresh`),e.m.fire(void 0);return}let n=r.map(([c,u])=>{let l=u?.uri?u.uri:c?require("vscode").Uri.file(c):null;return l?{cacheKey:c,uri:l}:null}).filter(Boolean);if(n.length===0){e._logger?.debug?.(`Failed to resolve URIs for ${t} incremental refresh, firing global refresh`),e.m.fire(void 0);return}let i=40,a=Math.ceil(n.length/i),o=Math.min(4e3,Math.max(750,Math.floor(e.F*.25))),s=a>1?Math.max(25,Math.floor(o/a)):0;e.A=!0,e.ie=!0,e._logger?.debug?.(`Incremental refresh (${t}) scheduled for ${n.length} items in ${a} batches (spacing: ${s}ms)`);for(let c=0;c{try{if(e.k){e.i.delete(d),e.i.size||(e.A=!1,e.ie=!1);return}u.forEach(({cacheKey:h,uri:g})=>{Ir(e,h),e.m.fire(g)})}finally{e.i.delete(d),e.i.size===0&&(e.A=!1,e.ie=!1,e._logger?.debug?.(`Incremental refresh (${t}) completed`))}},l);e.i.add(d)}}catch(r){e._logger?.debug?.("Failed to schedule incremental refresh",r)}}function Ir(e,t){if(t){if(!e.e||typeof e.e.get!="function")e._logger?.debug?.("markCacheEntryForRefresh: no memory cache available, skipping");else{let r=e.e.get(t);if(r){let n=Date.now()-r.timestamp;n>e.C*.75?(r.forceRefresh=!0,e._logger?.debug?.(`Marked stale entry for refresh: ${t} (age: ${Math.round(n/1e3)}s)`)):e._logger?.debug?.(`Skipped refresh for fresh entry: ${t} (age: ${Math.round(n/1e3)}s)`)}}if(e._advancedCache)try{let r=t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e._advancedCache.invalidateByPattern(r)}catch(r){e._logger?.debug?.(`Could not invalidate advanced cache for ${t}: ${r.message}`)}}}Wr.exports={setupPeriodicRefresh:Hi,cancelIncrementalRefreshTimers:xr,scheduleIncrementalRefresh:Mr,markCacheEntryForRefresh:Ir}});var Br=_((Ba,$r)=>{var f=require("vscode"),{fileSystem:$i}=Be(),{formatFileSize:Bi}=Ke(),{getSettingsCoordinator:Ki}=Ge(),{SecurityValidator:za,SecureFileOperations:Ua,detectSecurityEnvironment:ji}=Je(),{DEFAULT_CACHE_TIMEOUT:Fe,DEFAULT_MAX_CACHE_SIZE:ie,GLOBAL_STATE_KEYS:Ha,DEFAULT_DECORATION_POOL_SIZE:Vi,DEFAULT_FLYWEIGHT_CACHE_SIZE:Or,WORKSPACE_SCALE_EXTREME_THRESHOLD:$a}=I(),{isWebEnvironment:Gi}=J(),{isWebDiagnosticsEnabled:Nr,diagLogOnce:Ae,recordProviderEvent:Xi,recordDecorationCall:Yi,recordRefreshCall:Zi}=he(),{resolveFreshness:Ji,compareFreshness:Qi,resourceIdentity:qr}=it(),C=typeof process<"u"&&process.env?process.env:{},ea=300*1e3,ta=Number(C.EXPLORER_DATES_VIEWPORT_HISTORY_LIMIT||400),zr=Number(C.EXPLORER_DATES_SECURITY_MAX_WARNINGS_PER_FILE??1),Ur=["full","enhanced","standard","minimal"],Hr=new Map([["src",100],["lib",65],["test",30]]);function ra(){try{let e=f?.window?.activeColorTheme?.kind,t=e===f.ColorThemeKind.HighContrast,r=e===f.ColorThemeKind.Light;return t?{veryRecent:new f.ThemeColor("list.highlightForeground"),recent:new f.ThemeColor("list.warningForeground"),old:new f.ThemeColor("list.errorForeground"),javascript:new f.ThemeColor("list.highlightForeground"),css:new f.ThemeColor("list.warningForeground"),html:new f.ThemeColor("list.errorForeground"),json:new f.ThemeColor("list.highlightForeground"),markdown:new f.ThemeColor("list.warningForeground"),python:new f.ThemeColor("list.errorForeground"),subtle:new f.ThemeColor("list.highlightForeground"),muted:new f.ThemeColor("list.inactiveSelectionForeground"),emphasis:new f.ThemeColor("list.focusHighlightForeground")}:r?{veryRecent:new f.ThemeColor("list.highlightForeground"),recent:new f.ThemeColor("list.warningForeground"),old:new f.ThemeColor("list.errorForeground"),javascript:new f.ThemeColor("symbolIcon.functionForeground"),css:new f.ThemeColor("symbolIcon.colorForeground"),html:new f.ThemeColor("symbolIcon.snippetForeground"),json:new f.ThemeColor("symbolIcon.stringForeground"),markdown:new f.ThemeColor("symbolIcon.textForeground"),python:new f.ThemeColor("symbolIcon.classForeground"),subtle:new f.ThemeColor("list.inactiveSelectionForeground"),muted:new f.ThemeColor("list.deemphasizedForeground"),emphasis:new f.ThemeColor("list.highlightForeground")}:{veryRecent:new f.ThemeColor("list.highlightForeground"),recent:new f.ThemeColor("charts.yellow"),old:new f.ThemeColor("charts.red"),javascript:new f.ThemeColor("symbolIcon.functionForeground"),css:new f.ThemeColor("charts.purple"),html:new f.ThemeColor("charts.orange"),json:new f.ThemeColor("symbolIcon.stringForeground"),markdown:new f.ThemeColor("charts.yellow"),python:new f.ThemeColor("symbolIcon.classForeground"),subtle:new f.ThemeColor("list.inactiveSelectionForeground"),muted:new f.ThemeColor("list.deemphasizedForeground"),emphasis:new f.ThemeColor("list.highlightForeground")}}catch{return null}}function na(e,t){if(!t||!e)return null;let r=aa(e);return[".js",".ts",".jsx",".tsx",".mjs"].includes(r)?t.javascript:[".css",".scss",".sass",".less",".stylus"].includes(r)?t.css:[".html",".htm",".xml",".svg"].includes(r)?t.html:[".json",".yaml",".yml",".toml"].includes(r)?t.json:[".md",".markdown",".txt",".rst"].includes(r)?t.markdown:[".py",".pyx",".pyi"].includes(r)?t.python:null}var ia=e=>{try{let r=String(e||"").replace(/\\/g,"/"),n=r.lastIndexOf("/");return n===-1?r:r.substring(n+1)}catch{return"unknown"}},aa=e=>{try{let t=String(e||""),r=t.lastIndexOf(".");return r<=0?"":t.substring(r).toLowerCase()}catch{return""}},oa=e=>String(e||"").toLowerCase().replace(/\\/g,"/"),Re=e=>String(e||"").replace(/\\/g,"/"),ae=(e="")=>{if(!e)return"";if(typeof e=="string")return e;if(typeof e.fsPath=="string"&&e.fsPath.length>0)return e.fsPath;if(typeof e.path=="string"&&e.path.length>0)return e.path;if(typeof e.toString=="function")try{return e.toString(!0)}catch{return e.toString()}return String(e)},sa=(e="")=>{try{let t=typeof e=="string"?e:ae(e),r=Re(t);return ia(r)||r||"unknown"}catch{return"unknown"}},Pe=class{constructor(){this.r=null,this.n=new Map,(async()=>{try{let t=await Promise.resolve().then(()=>R(ir()));if(t&&typeof t.createLazyHierarchicalDecorationCache=="function"){let r=t.createLazyHierarchicalDecorationCache();for(let[n,i]of this.n.entries())r.set(n,i);this.r=r,this.n=null}}catch{}})()}get size(){return this.r?this.r.size:this.n.size}get bucketCount(){return this.r?this.r.bucketCount:0}clear(){if(this.r)return this.r.clear();this.n.clear()}get(t){return this.r?this.r.get(t):this.n.get(t)}set(t,r,n={}){if(this.r)return this.r.set(t,r,n);this.n.set(t,r)}delete(t){return this.r?this.r.delete(t):this.n.delete(t)}*entries(){if(this.r){yield*this.r.entries();return}yield*this.n.entries()}*keys(){if(this.r){yield*this.r.keys();return}yield*this.n.keys()}*values(){if(this.r){yield*this.r.values();return}yield*this.n.values()}[Symbol.iterator](){return this.entries()}enforceLimit(t=0){if(this.r)return this.r.enforceLimit(t);if(!t||this.n.size<=t)return 0;let r=0,i=Array.from(this.n.keys()).slice(0,Math.max(1,Math.ceil(this.n.size-t)));for(let a of i)this.n.delete(a),r++;return r}},ca=C.VSCODE_WEB==="true",xe=class{Pr(){try{let t=typeof process<"u"&&typeof process.memoryUsage=="function"?process.memoryUsage():null,r=Number(t?.heapUsed);return Number.isFinite(r)&&r>=0?Number((r/1024/1024).toFixed(2)):0}catch{return 0}}gn(){try{let t=typeof process<"u"&&typeof process.memoryUsage=="function"?process.memoryUsage():null,r=Number(t?.rss);return Number.isFinite(r)&&r>=0?Number((r/1024/1024).toFixed(2)):0}catch{return 0}}constructor(){this.m=new f.EventEmitter,this.onDidChangeFileDecorations=this.m.event,this.e=new Pe,this.mn=new Map,this.ct=new Map,this.ve=[],this.ot=20,this.ue=this.ot,this.ir=0,this.$e=!1,this.pn=!1,this.c=new Map,this.H=[],this.z={hits:0,misses:0,allocations:0,reuses:0},this.Jt=Vi,this.x=new Map,this.Se=[],this.Xt=Or,this.Yt={hits:0,misses:0,allocations:0,reuses:0},this.L=new Map,this.Ie=[],this.Sr=Or,this.Tr={hits:0,misses:0,allocations:0,reuses:0},this.Zt=C.EXPLORER_DATES_ENABLE_DECORATION_POOL!=="0",this.Gt=C.EXPLORER_DATES_ENABLE_FLYWEIGHTS!=="0",this.it=C.EXPLORER_DATES_LIGHTWEIGHT_MODE==="1",this._performanceMode=!1;try{let n=f.workspace.getConfiguration("explorerDates");this._performanceMode=!!n.get("performanceMode",this._performanceMode)}catch{}this.St=C.EXPLORER_DATES_MEMORY_SHEDDING==="1",this.Ft=Number(C.EXPLORER_DATES_MEMORY_SHED_THRESHOLD_MB||3),this.Tt=!1,this.ye=this.St?this.Pr():0,this.vr=Number(C.EXPLORER_DATES_MEMORY_SHED_CACHE_LIMIT||1e3),this.At=Number(C.EXPLORER_DATES_MEMORY_SHED_REFRESH_MS||6e4),this.v=null,this.rt=[],this.vt=Number(C.EXPLORER_DATES_SOFT_HEAP_ALERT_MB||2),this.re=0,this.be=!1,this.Rt=Number(C.EXPLORER_DATES_CACHE_PRESSURE_RATIO||.7),this.nt=!1,this.F=null,this.a=null,this.i=new Set,this.A=!1,this.ie=!1,this.G=C.EXPLORER_DATES_FORCE_CACHE_BYPASS==="1",this.Pt=Number(C.EXPLORER_DATES_LIGHTWEIGHT_PURGE_INTERVAL||400),this._isWeb=ca||Gi(),Nr()&&(Ae("provider-impl-constructed","info","Provider implementation constructed",{isWeb:this._isWeb}),Xi("created",{source:"impl",isWeb:this._isWeb})),this.xr=Fe*4,this.yn=this.xr,this.bn=0,this.l=ie;try{let n=f.workspace.getConfiguration("explorerDates");this.C=Number(n.get("cacheTimeout",Fe))}catch{this.C=Fe}try{let n=f.workspace.getConfiguration("explorerDates");this.l=Number(n.get("maxCacheSize",ie))||ie}catch{this.l=ie}this._fileSystem=$i,this._n=!this._isWeb,this.En=!1,this.pe=null,this.wn=null,this.N=new Map,this.We=6e4,this.Mr=1e3,this.b=new Map,this.Ir=Number(C.EXPLORER_DATES_FRESHNESS_CACHE_TTL_MS||6e4),this.Wr=Number(C.EXPLORER_DATES_FRESHNESS_CACHE_MAX||2e3),this.It=new Set;try{this.Lr=Math.random().toString(36).slice(2,8),this._logger.debug(`FileDateDecorationProvider created (id=${this.Lr})`)}catch{}this.Or=null,this.kn=null,this.Nr=null,this.Dn=null;let t=Ki(),r=t?.getValue&&t.getValue("enableTelemetry");this._allocationTelemetryEnabled=C.NODE_ENV==="development"||C.EXPLORER_DATES_TELEMETRY==="1"||r===!0,this._telemetryReportInterval=Number(C.EXPLORER_DATES_TELEMETRY_INTERVAL_MS||6e4),this._telemetryReportTimer=null,this.qr=null,this.Cn=new Map,this.w=new Set,this.y=new Map,this.me=ta,this.W=300*1e3,this.Qe=Date.now(),this.T=[],this.tt=null,this.Sn=null;try{let n=Array.isArray(f.window?.visibleTextEditors)?f.window.visibleTextEditors:[];for(let a of n){let o=a?.document?.uri?.fsPath||a?.document?.uri?.path||"";o&&this.w.add(String(o).replace(/\\/g,"/"))}let i=f.window?.activeTextEditor?.document?.uri;if(i){let a=i.fsPath||i.path||"";a&&this.w.add(String(a).replace(/\\/g,"/"))}}catch{}this.$="full",this.R=null,this._logger=q().getLogger(),this.p={getString:n=>n,formatDate:n=>n instanceof Date?n.toString():String(n),getCurrentLocale:()=>"en",dispose:()=>{}},this._metrics={totalDecorations:0,cacheHits:0,cacheMisses:0,fileStatTimeMs:0,fileStatCalls:0,gitBlameTimeMs:0,gitBlameCalls:0,viewportPriorityDecorations:0,viewportBackgroundDecorations:0},(async()=>{try{let n=await Promise.resolve().then(()=>R(kr()));n&&typeof n.hydrateProviderOptionalSystems=="function"&&await n.hydrateProviderOptionalSystems(this)}catch(n){this._logger.debug("Failed to run provider initialization chunk",n)}})(),this._workspaceIntelligence=null,this._batchProcessor=null,this._batchProcessorModule=null,this._progressiveLoadingJobs=new Set,this._progressiveLoadingEnabled=!1,this.ae=null,this.oe=null,this._advancedCache=null,this.E=null,this.s=new Set,this.h=void 0,this.d=new Map,this.S=[],this.I=null,this.J=!0,this._enableWatcherFallbacks="auto",this._smartWatcherFallbackManager=null,this.ee=null,this.K="none",this._=new Map,this.Wt=!1,this.Ee=[],this.Ve=null,this.u="unknown",this.Ye=C.EXPLORER_DATES_LOG_WATCHERS==="1",this.Tn=ji(),this.Lt=!0,this.zr=[],this.Ur=!0,this.vn=!1,this.Fn=!1,this.An=new Map,this.Rn=Number(C.EXPLORER_DATES_SECURITY_WARNING_THROTTLE_MS||5e3),this.Pn=Number.isFinite(zr)?Math.max(0,zr):1,this.Le=typeof f.workspace.onDidChangeWorkspaceFolders=="function"?f.workspace.onDidChangeWorkspaceFolders(n=>this.Hr(n)):null,this.D=null,this.xn=null,this.Mn=null,this.te=null,this.In=!1,this.Ze=0,this.k=!1,this._accessibility=null;try{let n=f.workspace.getConfiguration("explorerDates"),i=!!n.get("enableContextMenu",!0),a=!!n.get("showStatusBar",!1),o=!!n.get("showWelcomeOnStartup",!0),s=!!n.get("enableExtensionApi",!0);try{f.commands.executeCommand("setContext","explorerDates.enableContextMenu",i).catch(()=>{})}catch{}try{f.commands.executeCommand("setContext","explorerDates.showStatusBar",a).catch(()=>{})}catch{}try{f.commands.executeCommand("setContext","explorerDates.showWelcomeOnStartup",o).catch(()=>{})}catch{}try{f.commands.executeCommand("setContext","explorerDates.enableExtensionApi",s).catch(()=>{})}catch{}}catch(n){this._logger?.debug&&this._logger.debug("Failed to initialize UI contexts",n)}try{typeof f.workspace.onDidChangeConfiguration=="function"&&(this.E=f.workspace.onDidChangeConfiguration(n=>{try{if(!n||typeof n.affectsConfiguration!="function"||!n.affectsConfiguration("explorerDates"))return;let a=!!f.workspace.getConfiguration("explorerDates").get("performanceMode",!1);try{let o=this._performanceMode;this._performanceMode=a,a?(this.at?.({permanent:!0}),this.a&&(clearInterval(this.a),this.a=null)):!a&&o&&(this.Q?.("runtime-config-change"),this.a||this._e?.())}catch(o){this._logger?.debug?.("sync performance-mode toggle failed",o)}(async()=>{try{let o=await this.Z();o&&typeof o.togglePerformanceMode=="function"&&await o.togglePerformanceMode(this,a,{reason:"runtime-config-change",refresh:!0})}catch(o){this._logger?.debug?.("delegated togglePerformanceMode failed",o)}})();try{if(["explorerDates.enableContextMenu","explorerDates.showStatusBar","explorerDates.showWelcomeOnStartup","explorerDates.enableExtensionApi"].some(c=>n.affectsConfiguration&&n.affectsConfiguration(c)))try{let c=f.workspace.getConfiguration("explorerDates"),u=!!c.get("enableContextMenu",!0),l=!!c.get("showStatusBar",!1),d=!!c.get("showWelcomeOnStartup",!0),h=!!c.get("enableExtensionApi",!0);try{f.commands.executeCommand("setContext","explorerDates.enableContextMenu",u).catch(()=>{})}catch{}try{f.commands.executeCommand("setContext","explorerDates.showStatusBar",l).catch(()=>{})}catch{}try{f.commands.executeCommand("setContext","explorerDates.showWelcomeOnStartup",d).catch(()=>{})}catch{}try{f.commands.executeCommand("setContext","explorerDates.enableExtensionApi",h).catch(()=>{})}catch{}}catch(c){this._logger?.debug&&this._logger.debug("Failed to update UI contexts on config change",c)}}catch(o){this._logger?.debug&&this._logger.debug("Failed to evaluate UI-context update condition",o)}try{let o=f.workspace.getConfiguration("explorerDates");if(n.affectsConfiguration&&n.affectsConfiguration("explorerDates.cacheTimeout"))try{this.C=Number(o.get("cacheTimeout",Fe))}catch{}if(n.affectsConfiguration&&n.affectsConfiguration("explorerDates.maxCacheSize"))try{this.l=Number(o.get("maxCacheSize",ie))||ie}catch{}}catch(o){this._logger?.debug&&this._logger.debug("Failed to refresh runtime config values from settings",o)}(async()=>{try{if(n.affectsConfiguration&&n.affectsConfiguration("explorerDates.workspaceExclusionProfiles")&&this._workspaceIntelligence?.smartExclusion?.cleanupAllWorkspaceProfiles&&await this._workspaceIntelligence.smartExclusion.cleanupAllWorkspaceProfiles(),n.affectsConfiguration&&n.affectsConfiguration("explorerDates.showWelcomeOnStartup"))try{let o=!!f.workspace.getConfiguration("explorerDates").get("showWelcomeOnStartup",!0);this._extensionContext&&this._extensionContext.globalState&&typeof this._extensionContext.globalState.update=="function"&&await this._extensionContext.globalState.update("explorerDates.pendingWelcome",o)}catch(o){this._logger?.debug&&this._logger.debug("Failed to persist pending welcome flag",o)}}catch(o){this._logger?.debug&&this._logger.debug("Failed to run workspace exclusion cleanup after config change",o)}})()}catch(i){this._logger?.debug?.("configuration change handler failed",i)}}))}catch(n){this._logger?.debug?.("Failed to register configuration watcher",n)}try{this._performanceMode?(this.h=void 0,this.a=null):(this.Q?.("initial"),this._e?.())}catch(n){this._logger?.debug?.("initial watcher/refresh setup failed",n)}try{this.$r?.()}catch{}}lt(){if(this.f)return this.f;try{let t=ft();t&&typeof t.createWatcherManager=="function"&&(this.f=t.createWatcherManager(this))}catch(t){this._logger?.debug?.("Failed to create watcher manager",t)}return this.f}Hr(t){try{let r=this.lt();if(r&&typeof r.handleWorkspaceFoldersChanged=="function"){r.handleWorkspaceFoldersChanged(t);return}let n=(t?.added||[]).map(a=>a.uri).filter(Boolean),i=(t?.removed||[]).map(a=>a.uri).filter(Boolean);if(n.length===0&&i.length===0)return;this.D&&clearTimeout(this.D),this.D=setTimeout(()=>{this.D=null,(async()=>{try{this._logger?.info&&this._logger.info("Workspace folders changed (provider fallback)",{added:n.length,removed:i.length}),await this.checkWorkspaceSize();try{this.clearAllCaches()}catch{}try{this.refreshAll()}catch{}if(this._performanceMode)return;this.Q?.("workspace-change");try{typeof this.wt=="function"&&await this.wt()}catch(a){this._logger?.debug&&this._logger.debug("Failed to reconfigure progressive loading after workspace change",a)}if(this._workspaceIntelligence&&typeof this._workspaceIntelligence.onWorkspaceFoldersChanged=="function"){let a=(f.workspace.workspaceFolders||[]).map(o=>({uri:o.uri}));await this._workspaceIntelligence.onWorkspaceFoldersChanged({added:a,removed:i.map(o=>({uri:o}))})}}catch(a){this._logger?.debug&&this._logger.debug("Workspace folder change handling failed",a)}})()},250)}catch(r){this._logger?.debug&&this._logger.debug("provider._handleWorkspaceFoldersChanged failed",r)}}gr(t=[]){try{if(!Array.isArray(t))return[];let r=new Set;return t.map(n=>String(n||"").replace(/^\./,"").toLowerCase().trim()).filter(n=>!!n).filter(n=>r.has(n)?!1:(r.add(n),!0))}catch{return[]}}mr(t){try{let r=Number(t||0);(!Number.isFinite(r)||r<=0)&&(r=20);let n=Number(C.EXPLORER_DATES_MAX_SMART_WATCHER_PATTERNS||200);return Math.max(1,Math.min(Math.floor(r),Math.max(1,n)))}catch{return 20}}async B(t,r={}){try{try{let s=dt();if(s&&typeof s.B=="function")return await s.B(this,t,r)}catch{}let n=[],i=Math.max(1,r&&r.maxPatterns||1),a=i,o=Array.isArray(t)?t.length:0;for(let s of t||[]){if(a<=0)break;let c=Math.max(1,Math.floor(a/Math.max(1,o))),u=new f.RelativePattern(s,"*.{md,mdx,json,jsonc,yml,yaml,ts,tsx,js,jsx}");if(n.push({pattern:u,label:`root:${s.name}`}),a-=1,a<=0)break;try{let l=typeof this._fileSystem?.readdir=="function"?await this._fileSystem.readdir(s.uri||s.fsPath||s):[],d=(Array.isArray(l)?l:[]).filter(h=>h&&(typeof h.isDirectory=="function"?h.isDirectory():!0)).map(h=>typeof h=="string"?h:h.name||"").filter(Boolean).filter(h=>!["node_modules",".git","dist","build","out"].includes(h));d.sort((h,g)=>(Hr.get(g)||0)-(Hr.get(h)||0));for(let h of d){if(a<=0)break;let g=new f.RelativePattern(s,`${h}/**/*.{md,mdx,json,jsonc,yml,yaml,ts,tsx,js,jsx}`);n.push({pattern:g,label:`sub:${s.name}/${h}`}),a-=1}}catch{}o-=1}return n.slice(0,i)}catch{return[]}}fe(t,r,n){try{if(!t||typeof r!="string"||typeof n!="function")return null;let i=t[r];if(typeof i=="function")try{return i.call(t,n)}catch{return null}return null}catch{return null}}_getIndexerMaxFiles(){try{return Math.max(100,Number(C.EXPLORER_DATES_INDEXER_MAX_FILES||2e3))}catch{return 2e3}}Q(t="initial"){try{if(this._performanceMode||this.k)return;this.h||(this.h={pending:!0});let r=this.lt();if(r&&typeof r.setupFileWatcher=="function")try{r.setupFileWatcher(t);return}catch(n){this._logger?.debug?.("WatcherManager.setupFileWatcher failed",n)}(async()=>{try{let n=await this.Z();n&&typeof n.setupFileWatcher=="function"&&await n.setupFileWatcher(this,t)}catch(n){this._logger?.debug?.("Fallback setupFileWatcher failed",n)}})()}catch(r){this._logger?.debug?.("provider._setupFileWatcher failed",r)}}async Fe(t,r){try{let n="manual",i=typeof t=="number"?t:typeof r=="number"?r:++this.Ze;typeof t=="string"&&(n=t);let a=this.lt();if(a&&typeof a.Fe=="function")return await a.Fe(i,n);this.Q(n);return}catch(n){this._logger?.debug&&this._logger.debug("provider._initializeSmartWatchers failed",n)}}at(t={}){try{let r=t&&t.permanent===!0;if(this.f&&typeof this.f.disposeFileWatchers=="function"){try{this.f.disposeFileWatchers({permanent:r})}catch(n){this._logger?.debug?.("watcherManager.disposeFileWatchers failed",n)}this.h=r?null:void 0}else this.s&&typeof this.s.forEach=="function"&&(this.s.forEach(n=>{try{n&&typeof n.dispose=="function"&&n.dispose()}catch{}}),this.s.clear()),this.h=r?null:void 0;if(this._&&this._.size){for(let n of this._.values())clearTimeout(n.timer);this._.clear()}}catch(r){this._logger?.debug?.("provider._disposeFileWatchers failed",r)}}_e(){try{let t=(()=>{try{return Pr()}catch{return null}})();if(t&&typeof t.setupPeriodicRefresh=="function")try{t.setupPeriodicRefresh(this);return}catch(a){this._logger?.debug?.("adv.setupPeriodicRefresh failed",a)}try{let a=Lr();if(a&&typeof a.setupPeriodicRefresh=="function"){a.setupPeriodicRefresh(this);return}}catch{}let r=f.workspace.getConfiguration("explorerDates"),n=r.get("badgeRefreshInterval",6e4),i=this.v||n;if(this.F=i,this.a&&(clearInterval(this.a),this.a=null),!r.get("showDateDecorations",!0))return;this.a=setInterval(()=>{try{try{this.m.fire(void 0)}catch{}}catch{}},this.F)}catch(t){this._logger?.debug?.("provider._setupPeriodicRefresh failed",t)}}async initializeAdvancedSystems(t){try{let n=await ge().decorationsAdvanced();if(n&&typeof n.initializeAdvancedSystems=="function")return n.initializeAdvancedSystems(this,t);this._logger.info&&this._logger.info("Advanced systems chunk unavailable - skipping advanced initialization")}catch(r){this._logger.error&&this._logger.error("Failed to initialize advanced systems",r)}}async checkWorkspaceSize(){try{let r=await ge().decorationsAdvanced();if(r&&typeof r.performWorkspaceSizeCheck=="function")return r.performWorkspaceSizeCheck(this)}catch(t){this._logger.debug&&this._logger.debug("Delegated checkWorkspaceSize failed",t)}try{let t=require("vscode"),r=await(t.workspace.findFiles?t.workspace.findFiles("**/*",null,100):[]),n=Array.isArray(r)?r.length:0;this.Ve=n;let{WORKSPACE_SCALE_LARGE_THRESHOLD:i,WORKSPACE_SCALE_EXTREME_THRESHOLD:a}=I();this.u=n>=a?"extreme":n>=i?"large":"normal";try{this.Ge(this.Xe(),"workspace-scale-change-fallback")}catch{}return}catch(t){this._logger.debug&&this._logger.debug("performWorkspaceSizeCheck fallback failed",t)}}async provideFileDecoration(t,r){try{await this.Ot&&this.Ot()}catch{}Yi();try{if(this.U&&typeof this.U.provideDecoration=="function")try{let n=await this.U.provideDecoration(t,r);return n==null?n:typeof n!="object"?void 0:"badge"in n||"tooltip"in n||"color"in n?n:void 0}catch(n){this._logger?.debug&&this._logger.debug("Decoration helper threw",n);return}}catch(n){this._logger?.debug("Decoration provider helper failed",n)}try{if(this.Oe||(this.Oe=Promise.resolve().then(()=>Ce()).then(n=>{this.U=n.createDecorationProviderHelpers?n.createDecorationProviderHelpers(this):n}).finally(()=>{this.Oe=null})),this.Oe&&await this.Oe,this.U&&typeof this.U.provideDecoration=="function")try{let n=await this.U.provideDecoration(t,r);return n==null?n:typeof n!="object"?void 0:"badge"in n||"tooltip"in n||"color"in n?n:void 0}catch(n){this._logger?.debug&&this._logger.debug("Decoration helper threw",n);return}}catch(n){this._logger?.debug("Failed to load decoration provider chunk",n)}}Ke(t,r=""){try{if(!t)return{isValid:!1};let n=String(t.fsPath||t.path||"");return n?n.indexOf("\0")!==-1?{isValid:!1}:{isValid:!0}:{isValid:!1}}catch{return{isValid:!1}}}async tr(t){try{let r=String(t.fsPath||t.path||"");if(!r)return!1;let n=r.replace(/\\/g,"/");return["node_modules","/.git/","/dist/"].some(a=>n.includes(a))}catch{return!1}}async rr(t,r){try{return await r()}catch(n){throw n}}je(t){try{return String(t.fsPath||t.path||"").replace(/\\/g,"/")}catch{return String(t||"")}}Ot(){try{let t=require("vscode").workspace.getConfiguration("explorerDates"),r=t.get("security.allowTestPaths",!0),n=Array.isArray(t.get("security.allowedExtraPaths",[]))?t.get("security.allowedExtraPaths",[]):[],i=t.get("security.enableBoundaryEnforcement"),a=t.get("security.enforceWorkspaceBoundaries");this.Ur=r!==!1;let o=(()=>{try{return require("path")}catch{return null}})(),s=(n||[]).filter(Boolean).map(c=>{try{return o?o.normalize(String(c)):String(c)}catch{return String(c)}});this.zr=s,typeof i=="boolean"?this.Lt=i:typeof a=="boolean"&&(this.Lt=a)}catch(t){this._logger?.debug&&this._logger.debug("Failed to ensure security configuration",t)}}async nr(t,r){try{if(this.G)return this._logger?.debug?.(`Cache bypass enabled - recalculating decoration for: ${r}`),null;if(this._advancedCache)try{let i=await this._advancedCache.get(t);if(i)return this._metrics.cacheHits++,this._logger?.debug?.(`Advanced cache hit for: ${r}`),i}catch(i){this._logger?.debug?.(`Advanced cache error: ${i.message}`)}if(!this.e||typeof this.e.get!="function")return null;let n=this.e.get(t);if(n){if(n.forceRefresh){try{this.e.delete(t)}catch{}this._logger?.debug?.(`Memory cache bypassed (forced refresh) for: ${r}`)}else if(Date.now()-n.timestamp{switch(o){case"enhanced":return{level:o,enableGit:!0,enableProgressiveAnalysis:!0,applyBackgroundLimits:!1,backgroundTooltipMode:"rich",viewportWindowMs:6e4,enableColors:!0};case"standard":return{level:o,enableGit:!0,enableProgressiveAnalysis:!1,applyBackgroundLimits:!0,backgroundTooltipMode:"summary",viewportWindowMs:48e4,enableColors:!0};case"minimal":return{level:o,enableGit:!1,enableProgressiveAnalysis:!1,applyBackgroundLimits:!0,backgroundTooltipMode:"summary",viewportWindowMs:12e4,enableColors:!1};default:return{level:"full",enableGit:!0,enableProgressiveAnalysis:!1,applyBackgroundLimits:!1,backgroundTooltipMode:"rich",viewportWindowMs:ea,enableColors:!0}}},a=n?i(t):this.R||i(t);if(this.R=a,this.W=a.viewportWindowMs,n&&this._logger?.info?.(`Feature level set to "${t}" (${r})`,{viewportWindowMs:this.W,applyBackgroundLimits:a.applyBackgroundLimits,backgroundTooltipMode:a.backgroundTooltipMode}),this._performanceMode)return this._logger?.info&&this._logger.info("Performance mode active - skipping feature profile application"),n;try{a.applyBackgroundLimits&&typeof this.Br=="function"&&this.Br(r)}catch{}return n}catch(n){return this._logger?.debug&&this._logger.debug("Failed to apply feature level",n),!1}}mt(t){try{let r=Re(ae(t)||"");return this.w.has(r)||this.y.has(r)}catch{return!1}}Y(t,{reason:r="unknown",visible:n=!1}={}){try{let i=Re(ae(t)||""),a=Date.now();if(n)this.w.add(i);else for(this.y.set(i,a);this.y.size>(Number(this.me)||400);){let o=this.y.keys().next().value;if(!o)break;this.y.delete(o)}n?this._metrics.viewportPriorityDecorations=(this._metrics.viewportPriorityDecorations||0)+1:this._metrics.viewportBackgroundDecorations=(this._metrics.viewportBackgroundDecorations||0)+1}catch{}}or(){return!1}sr(t){return!!(t&&(t.code==="ENOENT"||/not found/i.test(t.message||"")))}async Z(){try{return this.ae?this.ae:this.oe?await this.oe:(this.oe=(async()=>{try{let{getFeatureFlagsGlobal:t}=G(),r=t(),n=r?await r.decorationsAdvanced():null;return this.ae=n||null,this.ae}catch(t){return this._logger?.debug&&this._logger.debug("Failed to load decorationsAdvanced chunk",t),this.ae=null,null}finally{this.oe=null}})(),await this.oe)}catch(t){try{this._logger?.debug&&this._logger.debug("provider._getDecorationsAdvancedChunk failed",t)}catch{}return null}}Qt(t,r,n){try{let i=Math.floor((Date.now()-t.getTime())/864e5);return i<=0?"\u2022":i<10?String(i):"\u2022"}catch{return"\u2022"}}gt(t,r="auto"){try{return Bi(t,r)}catch{return`${t} bytes`}}lr(t,r,n){try{if(!r||r==="none")return;let i=(()=>{if(!this._isWeb)return!1;try{return!!f.workspace.getConfiguration("explorerDates").get("webDiagnosticsBuiltinColors",!1)}catch{return!1}})(),a=Date.now()-(t instanceof Date?t.getTime():new Date(t).getTime());if(i){let s=new f.ThemeColor("list.warningForeground"),c=new f.ThemeColor("list.deemphasizedForeground"),u=new f.ThemeColor("list.errorForeground");return Nr()&&Ae("web-builtin-color-fallback","info","Web builtin color fallback enabled"),r==="file-type"?s:r==="subtle"?c:a<36e5?s:a<864e5?c:u}if(r==="custom")return a<36e5?new f.ThemeColor("explorerDates.customColor.veryRecent"):a<864e5?new f.ThemeColor("explorerDates.customColor.recent"):new f.ThemeColor("explorerDates.customColor.old");if(r==="recency")return a<36e5?new f.ThemeColor("list.highlightForeground"):a<864e5?new f.ThemeColor("charts.yellow"):new f.ThemeColor("charts.red");let o=ra();if(r==="file-type"||r==="adaptive"){let s=na(n,o);if(s)return s;if(r==="adaptive"&&o)return a<36e5?o.veryRecent:a<864e5?o.recent:o.old}return r==="subtle"&&o?a<36e5?o.subtle:a<6048e5?o.muted:o.emphasis:r==="vibrant"&&o?a<36e5?o.veryRecent:a<864e5?o.recent:o.old:void 0}catch{return}}Kr(t){try{let r=t?.scheme||"file";return this._isWeb||r!=="file"}catch{return this._isWeb}}jr(t){try{if(t?.toString)return t.toString(!0)}catch{}try{let r=t?.scheme||"file",n=t?.path||t?.fsPath||"";return`${r}://${n}`}catch{return String(t||"")}}Vr(t,r){try{return`${qr(t,{platform:process.platform})}::${r||"auto"}`}catch{return String(t||"unknown")}}Gr(t){try{let r=this.b.get(t);return r?r.expiresAt&&r.expiresAt=this.Wr){let i=this.b.keys().next().value;i&&this.b.delete(i)}let n=this.b.get(t);if(n&&n.freshness&&Qi(n.freshness,r)>0)return;this.b.set(t,{freshness:r,expiresAt:Date.now()+this.Ir})}catch{}}Yr(t,r,n="auto"){try{let i=String(n||"auto").toLowerCase(),a=t||"unknown",o=`${i}:${a}`;if(this.It.has(o))return;this.It.add(o);let s=i==="git"||i==="github"?"warn":"debug";this._logger?.[s]?.("Freshness source unavailable, falling back to unknown",{reason:a,policy:i,uri:r?ae(r):null})}catch{}}ut(t=""){try{let r=String(t||"");r=r.replace(/\\/g,"/"),r=r.replace(/\/{2,}/g,"/"),r=r.replace(/^\/+/,"");try{r=decodeURIComponent(r)}catch{}return r}catch{return""}}Ne(t,r){try{if(this.N.size>=this.Mr){let n=this.N.keys().next().value;n&&this.N.delete(n)}this.N.set(t,r)}catch{}}async Ue(t){let r=this.jr(t),n=Date.now(),i=this.N.get(r);if(i&&i.expiresAt&&i.expiresAt>n)return i;let a={timestampMs:null,available:!1,error:null,expiresAt:n+this.We,repoMatched:null,pathAttempted:null};try{let o=f?.extensions?.getExtension?f.extensions.getExtension("vscode.git"):null;if(!o)return this._isWeb&&Ae("git-extension-unavailable-web","info","Git extension not available in web mode - timestamps will use fs.stat fallback"),a.error="git-extension-missing",this.Ne(r,a),a;if(!o.isActive&&typeof o.activate=="function")try{await o.activate()}catch{}let s=o.exports?.getAPI?.(1);if(!s)return a.error="git-api-unavailable",this.Ne(r,a),a;a.available=!0;let c=typeof s.getRepository=="function"?s.getRepository(t):null,u=t?.path||t?.fsPath||"",l=this.ut(u);if(!c&&Array.isArray(s.repositories)&&(c=s.repositories.find(E=>{let M=E?.rootUri?.path||E?.rootUri?.fsPath||"",F=this.ut(M);return F&&l&&l.startsWith(F)})||null),!c||typeof c.log!="function")return a.error="git-repo-unavailable",a.repoMatched=!1,a.expiresAt=n+Math.min(this.We,5e3),this.Ne(r,a),a;a.repoMatched=!0;let d=this.ut(c?.rootUri?.path||c?.rootUri?.fsPath||""),h=d&&l.startsWith(d)?l.slice(d.length).replace(/^\/+/,""):l;a.pathAttempted=h||l||"";let g=await c.log({maxEntries:1,path:a.pathAttempted}),y=Array.isArray(g)?g[0]:null,m=y?.commitDate||y?.authorDate||y?.date||y?.committerDate,D=m?new Date(m).getTime():null;a.author=y?.authorName||y?.author?.name||y?.author||null,a.message=y?.message||y?.subject||null,Number.isFinite(D)?a.timestampMs=D:(a.error="git-log-empty",a.expiresAt=n+Math.min(this.We,5e3))}catch(o){a.error=o?.message?`git-error:${o.message}`:"git-error",a.expiresAt=n+Math.min(this.We,5e3)}return this.Ne(r,a),a}async Wn(t,r){let n=r?.mtime?r.mtime instanceof Date?r.mtime:new Date(r.mtime):null,i=n&&typeof n.getTime=="function"?n.getTime():NaN,a=Number.isFinite(i)?n:null,o=t?.scheme||"file";if(!this.Kr(t))return{timestamp:a,source:a?"fs-stat":"none",gitAvailable:!1,gitError:null,repoMatched:null,pathAttempted:null};let s;try{s=await this.Ue(t)}catch(u){s={timestampMs:null,available:!1,error:u?.message?`git-error:${u.message}`:"git-error",repoMatched:null,pathAttempted:null}}if(s?.timestampMs)return{timestamp:new Date(s.timestampMs),source:"git",gitAvailable:s.available,gitError:s.error,repoMatched:s.repoMatched,pathAttempted:s.pathAttempted};let c=a?"fs-stat":"none";if(a&&o!=="file"){let u=Date.now()-a.getTime();u>=0&&u<=6e4?c="fs-stat-suspect":this._isWeb&&u>6e4&&Ae("web-fs-stat-limitation","info","Web mode timestamps may reflect workspace open time, not actual file modification time. Git extension would provide accurate timestamps if available.")}return this._isWeb&&o!=="file"&&(s?.error||!s?.available)?{timestamp:null,source:"web-unknown",gitAvailable:!1,gitError:s?.error||null,repoMatched:s?.repoMatched??null,pathAttempted:s?.pathAttempted||null}:{timestamp:a,source:c,gitAvailable:s?.available||!1,gitError:s?.error||null,repoMatched:s?.repoMatched??null,pathAttempted:s?.pathAttempted||null}}async pt(t,r,n={}){let i=f.workspace.getConfiguration("explorerDates"),a=n.workspaceKind||(this._isWeb?"web":"desktop"),o=i.get("freshnessSourcePolicy","auto"),s=this.Vr(t,o),c=this.Gr(s);if(c)return c;let u=await Ji({uri:t,stat:r,provider:this,config:i,workspaceKind:a});return this.Xr(s,u),u?.source==="unknown"&&this.Yr(u?.reason||"unknown",t,o),u}async Te(t={}){try{let r=t.stat?.mtime||t.stat?.birthtime||new Date;return`Modified: ${(r instanceof Date?r:new Date(r)).toISOString()}`}catch{return""}}clearAllCaches(){try{try{this.e&&typeof this.e.clear=="function"&&this.e.clear()}catch{}try{this.c&&typeof this.c.clear=="function"&&this.c.clear()}catch{}try{this.H&&(this.H.length=0)}catch{}try{this.x&&typeof this.x.clear=="function"&&this.x.clear()}catch{}try{this.Se&&(this.Se.length=0)}catch{}try{this.L&&typeof this.L.clear=="function"&&this.L.clear()}catch{}try{this.Ie&&(this.Ie.length=0)}catch{}try{this._advancedCache&&typeof this._advancedCache.clear=="function"&&this._advancedCache.clear()}catch{}try{this.N&&typeof this.N.clear=="function"&&this.N.clear()}catch{}try{this.b&&typeof this.b.clear=="function"&&this.b.clear()}catch{}}catch(t){this._logger?.debug&&this._logger.debug("clearAllCaches failed",t)}}Me(t){try{if(!this.b||this.b.size===0)return;let r=`${qr(t,{platform:process.platform})}::`;for(let n of this.b.keys())typeof n=="string"&&n.startsWith(r)&&this.b.delete(n)}catch{}}Zr(t={}){try{this.clearAllCaches()}catch{}try{this.refreshAll()}catch{}try{t?.head&&this._logger?.info&&this._logger.info("Git HEAD change detected; caches refreshed",{head:t.head})}catch{}}$r(){this.Wt||(this.Wt=!0,(async()=>{try{let t=f?.extensions?.getExtension?f.extensions.getExtension("vscode.git"):null;if(!t)return;if(!t.isActive&&typeof t.activate=="function")try{await t.activate()}catch{}let r=t.exports?.getAPI?.(1);if(!r)return;let n=i=>{try{if(!i||!i.state||typeof i.state.onDidChange!="function")return;let a=i.state.HEAD?.commit||i.state.HEAD?.name||null,o=i.state.onDidChange(()=>{let s=i.state.HEAD?.commit||i.state.HEAD?.name||null;s!==a&&(a=s,this.Zr({repo:i,head:s}))});o&&this.Ee.push(o)}catch{}};if(Array.isArray(r.repositories)&&r.repositories.forEach(i=>n(i)),typeof r.onDidOpenRepository=="function"){let i=r.onDidOpenRepository(a=>n(a));i&&this.Ee.push(i)}}catch(t){this._logger?.debug?.("Failed to register git HEAD watcher",t)}})())}refreshAll(){try{this.m.fire(void 0),Zi()}catch(t){this._logger?.debug&&this._logger.debug("refreshAll failed",t)}}applyPreviewSettings(t){try{t&&typeof t=="object"?(this.X=t,this._logger?.info&&this._logger.info("Preview settings applied",t)):(this.X=null,this._logger?.info&&this._logger.info("Preview settings cleared"));try{this.clearAllCaches()}catch{}this.refreshAll()}catch(r){this._logger?.debug&&this._logger.debug("applyPreviewSettings failed",r)}}refreshDecoration(t){try{try{this.Me(t)}catch{}this.m.fire(t)}catch(r){this._logger?.debug&&this._logger.debug("refreshDecoration failed",r)}}clearDecoration(t){try{try{this.Me(t)}catch{}let r=t?typeof t=="string"?t:ae(t):"",n=this.je?this.je(t):oa(r);try{this.e&&typeof this.e.delete=="function"&&this.e.delete(n)}catch{}try{this._advancedCache&&typeof this._advancedCache.delete=="function"&&this._advancedCache.delete(n)}catch{}try{this.m.fire(t)}catch{}}catch(r){this._logger?.debug&&this._logger.debug("clearDecoration failed",r)}}cr({badge:t,tooltip:r,color:n}){try{let i=require("vscode"),a=new i.FileDecoration(String(t||""),r||void 0,n||void 0);try{n&&(a.color=n)}catch{}return a}catch{return{badge:t,tooltip:r,color:n}}}ur(t,r,n,i,a){try{if(this.G)return;if(!this.e||typeof this.e.set!="function"||typeof this.e.size!="number")try{this.e=new Pe}catch{}if(!this.e||typeof this.e.set!="function")return;if(typeof this.e.size=="number"&&this.e.size>this.l)try{this.e.enforceLimit(this.l)}catch{}let o={decoration:r,timestamp:Date.now()};a&&(o.freshness=a),i&&(o.uri=i);try{this.e.set(t,o)}catch{}try{typeof this.ce=="function"&&this.ce()}catch(s){this._logger?.debug?.("monitorCachePressure from store failed",s)}if(this._advancedCache)try{this._advancedCache.set(t,r,{ttl:this.C}),this._logger?.debug?.(`Stored in advanced cache: ${n}`)}catch(s){this._logger?.debug?.(`Failed to store in advanced cache: ${s.message}`)}try{typeof this.le=="function"&&this.le()}catch(s){this._logger?.debug?.("maybeExtendCacheTimeout from store failed",s)}}catch(o){this._logger?.debug?.("storeDecorationInCache failed",o)}}getMetrics(){let t={decorationPool:{allocations:0,reuses:0,reusePercent:"0%"},badgeFlyweight:{allocations:0,reuses:0,reusePercent:"0%"},readableFlyweight:{allocations:0,reuses:0,reusePercent:"0%"}},r=this._metrics?.cacheHits||0,n=this._metrics?.cacheMisses||0,i=r+n>0?(r/(r+n)*100).toFixed(2)+"%":"0.00%";return{totalDecorations:this._metrics?.totalDecorations||0,cacheSize:this.c&&this.c.size||0,cacheHits:r,cacheMisses:n,cacheHitRate:i,workspaceScale:this.u||"unknown",allocationTelemetry:t,performanceTiming:{avgGitBlameMs:this._metrics?.gitBlameCalls?(this._metrics.gitBlameTimeMs/this._metrics.gitBlameCalls).toFixed(1):"0.0",avgFileStatMs:this._metrics?.fileStatCalls?(this._metrics.fileStatTimeMs/this._metrics.fileStatCalls).toFixed(1):"0.0",gitBlameCalls:this._metrics?.gitBlameCalls||0,fileStatCalls:this._metrics?.fileStatCalls||0},cacheDebugging:{cacheNamespace:this.qr}}}forceRefreshAllDecorations(){try{this._logger?.info&&this._logger.info("\u{1F504} Force refreshing ALL decorations...");try{this.e&&typeof this.e.clear=="function"&&this.e.clear()}catch{}try{this.c&&typeof this.c.clear=="function"&&this.c.clear()}catch{}try{this._advancedCache&&typeof this._advancedCache.clear=="function"&&this._advancedCache.clear()}catch{}try{this.m.fire(void 0)}catch{}this._logger?.info&&this._logger.info("\u{1F504} Triggered global decoration refresh")}catch(t){this._logger?.debug&&this._logger.debug("forceRefreshAllDecorations failed",t)}}startProviderCallMonitoring(){try{if(this.k){this._logger?.debug&&this._logger.debug("startProviderCallMonitoring called after dispose - no-op");return}if(this.Nt){this.Vt=0,this.Re=new Set,this._logger?.info&&this._logger.info("\u{1F4CA} Provider call monitoring restarted (counters reset)");return}this.Nt=!0,this.Vt=0,this.Re=new Set;let t=this.provideFileDecoration.bind(this);this.qe=t,this.provideFileDecoration=async(r,n)=>{try{this.Vt=(this.Vt||0)+1;let i=ae(r)||(r&&typeof r.toString=="function"?r.toString(!0):"unknown");this.Re.add(Re(i)),this._logger?.info&&this._logger.info(`\u{1F50D} Provider called ${this.Vt} times for: ${sa(r||i)}`)}catch{}return t(r,n)},this._logger?.info&&this._logger.info("\u{1F4CA} Started provider call monitoring")}catch(t){this._logger?.debug&&this._logger.debug("startProviderCallMonitoring failed",t)}}getProviderCallStats(){try{return{totalCalls:this.Vt||0,uniqueFiles:this.Re?this.Re.size:0,calledFiles:this.Re?Array.from(this.Re):[]}}catch{return{totalCalls:0,uniqueFiles:0,calledFiles:[]}}}async dispose(){if(this.k)return;this.k=!0,this.$e=!0;try{this._telemetryReportTimer&&(clearTimeout(this._telemetryReportTimer),this._telemetryReportTimer=null)}catch{}try{this.a&&(clearInterval(this.a),this.a=null)}catch{}try{if(this.i&&this.i.size){for(let r of this.i)clearTimeout(r);this.i.clear()}this.A=!1,this.ie=!1}catch{}try{this.I&&(clearTimeout(this.I),this.I=null)}catch{}try{this.D&&(clearTimeout(this.D),this.D=null)}catch{}try{try{this.at({permanent:!0})}catch{}if(this.f&&typeof this.f.disposeFileWatchers=="function")try{this.f.disposeFileWatchers({permanent:!0})}catch{}this.f=null}catch{}try{this.te&&(clearTimeout(this.te),this.te=null)}catch{}try{this.m&&typeof this.m.dispose=="function"&&this.m.dispose()}catch{}try{if(Array.isArray(this.S)){for(let r of this.S)try{r.dispose&&r.dispose()}catch{}this.S.length=0}}catch{}try{if(Array.isArray(this.Ee)){for(let r of this.Ee)try{r.dispose&&r.dispose()}catch{}this.Ee.length=0}}catch{}try{if(Array.isArray(this.T)){for(let r of this.T)try{r.dispose&&r.dispose()}catch{}this.T.length=0}}catch{}let t=async r=>{try{r&&typeof r.dispose=="function"&&await r.dispose()}catch{}};await t(this._advancedCache),await t(this._batchProcessor),await t(this.tt),await t(this.pe),await t(this._workspaceIntelligence),await t(this._smartWatcherFallbackManager),await t(this.Or),await t(this.Nr);try{if(this.s&&typeof this.s.forEach=="function"&&(this.s.forEach(r=>{try{r&&typeof r.dispose=="function"&&r.dispose()}catch{}}),this.s.clear()),this.h&&typeof this.h.dispose=="function"){try{this.h.dispose()}catch{}this.h=void 0}this.d&&typeof this.d.forEach=="function"&&(this.d.forEach(r=>{try{r?.watcher?.dispose&&r.watcher.dispose()}catch{}}),this.d.clear())}catch{}try{this.e&&typeof this.e.clear=="function"&&this.e.clear()}catch{}try{this.c&&typeof this.c.clear=="function"&&this.c.clear()}catch{}try{this.x&&typeof this.x.clear=="function"&&this.x.clear()}catch{}try{this.L&&typeof this.L.clear=="function"&&this.L.clear()}catch{}try{this.ct&&this.ct.clear&&this.ct.clear()}catch{}try{this.ve&&this.ve.length&&(this.ve.length=0)}catch{}try{this._advancedCache=null,this._batchProcessor=null,this.tt=null,this.pe=null,this._workspaceIntelligence=null}catch{}try{this.Le&&typeof this.Le.dispose=="function"&&(this.Le.dispose(),this.Le=null)}catch{}try{this.E&&typeof this.E.dispose=="function"&&(this.E.dispose(),this.E=null)}catch{}try{if(this.qe&&typeof this.qe=="function"){try{this.provideFileDecoration=this.qe}catch{}this.qe=null,this.Nt=!1,this.Vt=0,this.Re=new Set}}catch{}try{this.ae=null,this.oe=null}catch{}this._logger?.info&&this._logger.info("FileDateDecorationProvider disposed")}};$r.exports={FileDateDecorationProviderImpl:xe,FileDateDecorationProvider:xe}});var Me=null;try{typeof require=="function"&&(Me=Br())}catch{}if(!Me&&typeof globalThis<"u"){let e=globalThis.explorerDatesChunks||globalThis.hr||null;e&&(Me=e.fileDateProviderImpl||e.fileDateProviderImpl||null)}var gt=Me||{};module.exports={FileDateDecorationProvider:gt.FileDateDecorationProvider,FileDateDecorationProviderImpl:gt.FileDateDecorationProviderImpl||gt.FileDateDecorationProvider}; +`,analysisCommandsDisabled:"Explorer Dates analysis commands are disabled. Shortcuts like Ctrl+Shift+M/H/A will not work until you enable explorerDates.enableAnalysisCommands.",analysisEnableNow:"Enable Now",analysisEnablePartially:"Enable partially succeeded. Update explorerDates.enableAnalysisCommands in remaining workspace folders manually.",analysisEnableFailed:"Enable failed: update explorerDates.enableAnalysisCommands in workspace settings.",workspaceTemplatesDisabled:"Workspace templates are disabled. Enable explorerDates.enableWorkspaceTemplates to use this command.",workspaceTemplatesDisabledSave:"Workspace templates are disabled. Enable explorerDates.enableWorkspaceTemplates to save templates.",enterTemplateName:"Enter template name",enterTemplateDescription:"Enter description (optional)",failedToOpenTemplateManager:e=>`Failed to open template manager: ${e}`,failedToSaveTemplate:e=>`Failed to save template: ${e}`,reportingDisabled:"Reporting features are disabled. Enable explorerDates.enableExportReporting to generate reports.",failedToGenerateReport:e=>`Failed to generate report: ${e}`,apiDisabled:"Explorer Dates API is disabled via settings.",failedToShowApiInformation:e=>`Failed to show API information: ${e}`,failedToShowWorkspaceActivity:e=>`Failed to show workspace activity: ${e}`,failedToShowPerformanceAnalytics:e=>`Failed to show performance analytics: ${e}`,failedToShowCacheDebugInfo:e=>`Failed to show cache debug info: ${e}`,noWorkspaceFolderOpen:"No workspace folder open",resetConfirm:"Reset Settings",resetCancel:"Cancel",resetSuccess:e=>`\u2705 Reset ${e} settings to defaults.`,validateNoIssues:"\u2705 Configuration is valid - no issues found!",validateFoundIssues:e=>`Found ${e} configuration issue(s). Would you like to see details?`,validateShowDetails:"Show Details",validateDismiss:"Dismiss",migrationNotificationMessage:e=>`Explorer Dates updated ${e} setting(s) for compatibility. Your configuration has been preserved.`,migrationViewChanges:"View Changes",migrationOpenSettings:"Open Settings",deprecatedPrompt:e=>`Explorer Dates found ${e} deprecated setting(s). Would you like to remove them?`,deprecatedClean:"Clean Up Now",deprecatedKeep:"Keep Old Settings",deprecatedAskLater:"Ask Later",showFileLocation:"Show File Location",teamConfigCorrupted:"Explorer Dates team configuration file appears to be corrupted. Please check the .explorer-dates-profiles.json file or restore from backup.",appliedFromTeamProfile:(e,t)=>`Applied ${e} Explorer Dates settings from team profile "${t}".`,documentedOverrides:"Documented Explorer Dates overrides in .vscode/explorer-dates-overrides.md",teamConfigMissingProfile:"Team configuration is missing an active profile.",ephemeralStorageEnospc:"Explorer Dates team configuration could not be saved because the disk is full.",ephemeralStorageGeneric:"Explorer Dates team configuration could not be saved because the workspace is read-only or permissions are restricted.",ephemeralStorageSuffix:" Changes will be kept in memory until VS Code restarts, so they may be lost."}};try{let e=dr();if(e&&typeof e=="object")for(let[t,r]of Object.entries(e)){z[t]||(z[t]={});for(let[n,i]of Object.entries(r))typeof z[t][n]>"u"&&(z[t][n]=i)}}catch{}var De=class{constructor(){this.Ce="en",this.w=null,this.ft(),typeof V.workspace.onDidChangeConfiguration=="function"?this.w=V.workspace.onDidChangeConfiguration(t=>{t.affectsConfiguration("explorerDates.locale")&&this.ft()}):this.w=null}ft(){let r=V.workspace.getConfiguration("explorerDates").get("locale","auto");if(r==="auto"){let n=V&&V.env&&typeof V.env.language=="string"?V.env.language:"en";try{r=String(n||"en").split("-")[0]}catch{r="en"}}z[r]||(r="en"),this.Ce=r}getString(t,...r){let i=(z[this.Ce]||z.en)[t];return typeof i=="function"?i(...r):i||z.en[t]||t}getCurrentLocale(){return this.Ce}formatDate(t,r={}){try{return t.toLocaleDateString(this.Ce,r)}catch{return t.toLocaleDateString("en",r)}}dispose(){this.w&&(this.w.dispose(),this.w=null),fe===this&&(fe=null)}},fe=null;function xi(){return fe||(fe=new De),fe}fr.exports={LocalizationManager:De,getLocalization:xi}});var st=_((Wa,gr)=>{function Mi(e){let t=require("vscode");function r(l,d,h,g,y,m){if(!e.Gt||!g)return m&&(m.misses++,m.allocations++),y();if(l.has(g))return m&&(m.hits++,m.reuses++),l.get(g);m&&(m.misses++,m.allocations++);let D=y();if(l.set(g,D),d.push(g),d.length>h){let E=d.shift();E&&l.delete(E)}return D}function n({formatType:l,diffMinutes:d,diffHours:h,diffDays:g,diffWeeks:y,diffMonths:m,date:D}){let E=(M,F=null)=>({value:M,key:F?`badge:${l||"default"}:${F}`:null});switch(l){case"relative-short":case"relative-long":return d<1?E("\u25CF\u25CF","just"):d<60?E(`${Math.min(d,99)}m`,`m:${Math.min(d,99)}`):h<24?E(`${Math.min(h,23)}h`,`h:${Math.min(h,23)}`):g<7?E(`${g}d`,`d:${g}`):y<4?E(`${y}w`,`w:${y}`):m<12?E(`${m}M`,`M:${m}`):E("1y","y:1");case"absolute-short":case"absolute-long":{let M=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],F=D.getDate(),X=`${M[D.getMonth()]}${F<10?"0"+F:F}`,w=[D.getMonth(),F];return l==="absolute-long"&&w.push(D.getFullYear()),E(X,`abs:${w.join("-")}`)}case"technical":return d<60?E(`${d}m`,`tech:m:${d}`):h<24?E(`${h}h`,`tech:h:${h}`):E(`${g}d`,`tech:d:${g}`);case"minimal":return h<1?E("\u2022\u2022","min:now"):h<24?E("\u25CB\u25CB","min:hours"):E("\u2500\u2500","min:days");default:return d<60?E(`${d}m`,`smart:m:${d}`):h<24?E(`${h}h`,`smart:h:${h}`):E(`${g}d`,`smart:d:${g}`)}}function i(l,d,h=null){let y=h!==null?h:new Date().getTime()-l.getTime();if(y<0)return e._logger.debug(`File has future modification time (diffMs: ${y}), treating as just modified`),"\u25CF\u25CF";let m=Math.floor(y/(1e3*60)),D=Math.floor(y/(1e3*60*60)),E=Math.floor(y/(1e3*60*60*24)),M=Math.floor(E/7),F=Math.floor(E/30),X=n({formatType:d,diffMinutes:m,diffHours:D,diffDays:E,diffWeeks:M,diffMonths:F,date:l});return r(e.I,e.Se,e.Xt,X.key,()=>X.value,e.Yt)}function a(l){if(!l)return"none";if(typeof l=="string")return l;if(l.id)return l.id;try{return JSON.stringify(l)}catch{return String(l)}}function o(l,d,h){let g=l||"",y=d||"",m=a(h);return`${g}::${m}::${y}`}function s({badge:l,tooltip:d,color:h}){if(!e.Zt){e.H.misses++,e.H.allocations++;let m=new t.FileDecoration(l||"??");return d&&(m.tooltip=d),h&&(m.color=h),m.propagate=!1,m}if(!l)return e.H.allocations++,new t.FileDecoration("??");let g=o(l,d,h);if(g&&e.c.has(g))return e.H.hits++,e.H.reuses++,e.c.get(g);let y=new t.FileDecoration(l);if(d&&(y.tooltip=d),h&&(y.color=h),y.propagate=!1,e.H.allocations++,g&&(e.c.set(g,y),e.$.push(g),e.$.length>e.Jt)){let m=e.$.shift();m&&m!==g&&e.c.delete(m)}return e.H.misses++,y}function c(l="unspecified"){e.c.size!==0&&(e.c.clear(),e.$.length=0,e._logger.debug(`\u{1F9FC} Cleared decoration pool (${l})`))}async function u({filePath:l,stat:d,gitBlame:h,shouldUseAccessibleTooltips:g,fileSizeFormat:y}){if(g){let D=e._accessibility?.getAccessibleTooltip?.(l,d.mtime,d.birthtime,d.size,h);if(D)return D}let m=[];try{let D=e.p.formatDate(d.mtime);if(m.push(`${D}`),y&&typeof d.size=="number"){let E=e.gt(d.size,y);m.push(E)}h&&h.author&&m.push(`Author: ${h.author}`)}catch(D){e._logger.debug("Tooltip builder failed",D)}return m.join(" \u2014 ")}return{acquireDecorationFromPool:s,clearDecorationPool:c,tn:o,rn:a,Qt:i,nn:n,er:r,Te:u}}gr.exports={createDecorationLogic:Mi}});var Ce=_((exports,module)=>{function createDecorationProviderHelpers(provider){let vscode=require("vscode"),{diagLogOnce,diagLog,isWebDiagnosticsEnabled}=he(),{formatBadge,formatTooltip}=it(),decorationDiagCount=0,maxDecorationDiag=20,CONTRIBUTED_CUSTOM_COLOR_TOKENS=new Set(["explorerDates.customColor.veryRecent","explorerDates.customColor.recent","explorerDates.customColor.old"]),isWebRuntime=(()=>{try{return vscode?.env?.uiKind===vscode?.UIKind?.Web}catch{return!1}})(),getFileName,getExtension,normalizePath,getUriPath,ensureDate;try{let e=K();e&&(getFileName=e.getFileName,getExtension=e.getExtension,normalizePath=e.normalizePath,getUriPath=e.getUriPath,ensureDate=e.ensureDate)}catch{}if(!getFileName||!ensureDate){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function")try{let e=dynamicRequire("../utils/pathUtils"),t=dynamicRequire("../utils/dateHelpers");getFileName=getFileName||e.getFileName,getExtension=getExtension||e.getExtension,normalizePath=normalizePath||e.normalizePath,getUriPath=getUriPath||e.getUriPath,ensureDate=ensureDate||t.ensureDate}catch{}}catch{}getFileName||(getFileName=e=>{let t=String(e||""),r=t.replace(/\\/g,"/").lastIndexOf("/");return r===-1?t:t.substring(r+1)}),getExtension||(getExtension=e=>{let t=String(e||""),r=t.lastIndexOf(".");return r<=0?"":t.substring(r).toLowerCase()}),normalizePath||(normalizePath=(e="")=>(e||"").toString().replace(/\\/g,"/")),getUriPath||(getUriPath=(e="")=>e?typeof e=="string"?e:e?.fsPath?e.fsPath:e?.path?e.path:String(e):""),ensureDate||(ensureDate=e=>e instanceof Date?e:typeof e=="number"?new Date(e):typeof e=="string"?isNaN(Date.parse(e))?new Date:new Date(Date.parse(e)):new Date)}async function provideDecoration(e,t){let r=!1,n=null,i,a=null,o=null,s=null,c=null,u=!1,l=null,d=null,h=null,g=null,y=null,m=null,D=!1,E=()=>isWebDiagnosticsEnabled&&isWebDiagnosticsEnabled()&&decorationDiagCount{let w=null;try{w=vscode.workspace.getConfiguration("explorerDates")}catch{w=null}let U=w?w.get("colorScheme","none"):"none",b=w?w.get("showDateDecorations",!0):!0,H=typeof provider._performanceMode=="boolean"?provider._performanceMode:w?w.get("performanceMode",!1):!1,oe=isWebRuntime&&w?!!w.get("webDiagnosticsBuiltinColors",!1):!1;return{isWeb:isWebRuntime,isCanary:!1,builtinColorFallbackActive:oe,colorScheme:U,effectiveColorScheme:U,showDateDecorations:b,performanceMode:H,featureLevel:provider.B,previewSettings:!!provider.X}},F=w=>{if(!E()||r)return;decorationDiagCount+=1,r=!0;let b={...M(),...w};!b.scheme&&n&&(b.scheme=n),b.effectiveColorScheme||(b.effectiveColorScheme=b.colorScheme),typeof b.hasColor>"u"&&(b.hasColor=!!b.color),typeof b.badge>"u"&&(b.badge=null),typeof b.propagate>"u"&&(b.propagate=null),typeof b.decorationKeys>"u"&&(b.decorationKeys=null),typeof b.nullReason>"u"&&(b.nullReason=null),typeof b.timestampSource>"u"&&(b.timestampSource="not-attempted"),typeof b.gitRecencyAvailable>"u"&&(b.gitRecencyAvailable=!1),typeof b.gitRecencyError>"u"&&(b.gitRecencyError=null),typeof b.resolvedTimestampMs>"u"&&(b.resolvedTimestampMs=null),typeof b.gitRepoMatched>"u"&&(b.gitRepoMatched=null),typeof b.gitPathAttempted>"u"&&(b.gitPathAttempted=null),b.themeTokenSource||(b.isCanary?b.themeTokenSource="canary":b.builtinColorFallbackActive?b.themeTokenSource="builtin-fallback":typeof b.color=="string"&&b.color.startsWith("explorerDates.")?b.themeTokenSource="custom-token":b.color?b.themeTokenSource="builtin-token":b.themeTokenSource=null),diagLog("info","Decoration return sample",b)},X=w=>{if(!(!E()||r))try{F(w)}catch{}};try{if(provider.Be){a="disposed";return}if(!e){a="no-uri";return}let w=e.fsPath||e.path||"";n=e.scheme||"file";let U=vscode.workspace.getConfiguration("explorerDates"),b=U.get("performanceMode",!1);if(b&&typeof b!="boolean")return a="invalid-performanceMode",null;if(w&&w.includes("\0"))return a="invalid-path",null;let H=getUriPath(e);if(!H){a="missing-path";return}let oe=provider.Ke?provider.Ke(H):getFileName(H)||H,mt=normalizePath(H),Kr=n||"file";if(typeof provider.je!="function"){diagLogOnce("decorations-fallback-provider","warn","Decoration fallback active (missing provider helpers)");try{let A=await provider._fileSystem.stat(e);if(!A){a="no-stat";return}let Y=A.mtime instanceof Date?A.mtime:A.mtime?new Date(A.mtime):null,Ie=Y&&typeof Y.getTime=="function"?Y.getTime():NaN;if(!Number.isFinite(Ie)){a="invalid-stat";return}let se=Date.now()-Y.getTime(),We=se<1440*60*1e3?"\u2022":se<10080*60*1e3?"\u25E6":"\xB7",Le=`Modified: ${Y.toISOString()}`,me=new vscode.FileDecoration(We,Le);return i=me,y=We,h=!1,g=null,m=me?.propagate,me}catch{a="fallback-error";return}}if(!provider.je(e,"provideFileDecoration")?.isValid){a="invalid-uri";return}if(await provider.tr(e)){a="excluded";return}return i=await provider.rr(w,async()=>{if(t?.isCancellationRequested||provider.Be){a=t?.isCancellationRequested?"cancelled":"disposed";return}let A=(k,pe)=>provider.X&&Object.prototype.hasOwnProperty.call(provider.X,k)?provider.X[k]:vscode.workspace.getConfiguration("explorerDates").get(k,pe);if(isWebRuntime&&A("webDiagnosticsCanary",!1)&&isWebDiagnosticsEnabled&&isWebDiagnosticsEnabled()&&decorationDiagCount=provider.ue;if(provider.ir>provider.ue*.8&&Le){diagLogOnce("decorations-backpressure","warn","Decoration backpressure fallback active");let k=provider.ar(e,Date.now());return y=k?.badge||null,h=!!k?.color,g=k?.color&&k?.color.id?k.color.id:k?.color||null,m=k?.propagate,a="backpressure",k}provider.or(),provider._metrics.cacheMisses++;let N=null;if(!Ie&&provider._workspaceIntelligence?.incrementalIndexer){let k=provider._workspaceIntelligence.incrementalIndexer.getIndexedStat(w);k&&(N=k)}let pt=Date.now();if(!N){try{N=await provider._fileSystem.stat(e)}catch(k){if(provider._metrics.fileStatTimeMs+=Date.now()-pt,provider._metrics.fileStatCalls++,provider.sr(k)){a="stat-not-found";return}if(Kr!=="file"){a="stat-failed";return}throw a="stat-failed",k}provider._workspaceIntelligence?.incrementalIndexer&&provider._workspaceIntelligence.incrementalIndexer.primeFromStat(e,N)}if(provider._metrics.fileStatTimeMs+=Date.now()-pt,provider._metrics.fileStatCalls++,!(typeof N.isFile=="function"?N.isFile():!0)){a="not-regular-file";return}u=!0;let v=null;try{typeof provider.pt=="function"&&(v=await provider.pt(e,N,{filePath:w,fileLabel:oe}))}catch(k){c={source:"unknown",gitAvailable:!1,gitError:k?.message?`resolver-error:${k.message}`:"resolver-error",repoMatched:null,pathAttempted:null}}if((!v||v.bucket==="unknown"||v.source==="unknown")&&!A("freshnessShowUnknown",!0)){a="freshness-unknown";return}let Oe=A("colorScheme","none");provider._performanceMode&&Oe!=="custom"&&(Oe="none");let jr=A("fileSizeFormat","auto"),Z=provider.yt,Vr=Z&&typeof Z.Te=="function"?Z.Te:provider.Te,Gr=Z&&typeof Z.acquireDecorationFromPool=="function"?Z.acquireDecorationFromPool:provider.cr,Ne=formatBadge(v?.bucket||"unknown",v?.source||"unknown",U,v?.confidence||"low");if(!Ne){a="badge-suppressed";return}let $=v?.exactTimestamp?provider.lr(new Date(v.exactTimestamp),Oe,w):void 0,Xr=formatTooltip(v,U)||await Vr({filePath:w,resourceUri:e,stat:N,badgeDetails:{},gitBlame:null,shouldUseAccessibleTooltips:!1,fileSizeFormat:jr,isCodeFile:!1}),qe=Gr({badge:Ne,tooltip:Xr,color:$});return g=$&&typeof $=="object"&&"id"in $?$.id:$||null,h=!!$,y=String(Ne||""),m=qe?.propagate,typeof g=="string"&&g.startsWith("explorerDates.customColor.")&&!CONTRIBUTED_CUSTOM_COLOR_TOKENS.has(g)&&diagLogOnce(`missing-custom-color-${g}`,"warn","Custom color token missing from contributes.colors",{colorId:g,knownTokens:Array.from(CONTRIBUTED_CUSTOM_COLOR_TOKENS)}),l=v?.exactTimestamp||null,c=c||{source:v?.source||"unknown",bucket:v?.bucket||"unknown",confidence:v?.confidence||"low",reason:v?.reason||null,attempts:v?.attempts||null,gitAvailable:v?.source==="git",gitError:null,repoMatched:null,pathAttempted:null},provider.ur(se,qe,oe,e,v),qe}),i}catch(w){o=w?.name||"Error",s=w?.message||String(w),a=a||"exception";return}finally{if(i){if(d==null)try{d=Object.keys(i||{})}catch{d=null}if(y==null&&typeof i.badge<"u"&&(y=i.badge),m==null&&typeof i.propagate<"u"&&(m=i.propagate),g==null&&typeof i.color<"u")try{g=i.color&&i.color.id?i.color.id:i.color}catch{g=i.color}h==null&&typeof g<"u"&&(h=!!g)}let w={uri:e?getFileName(getUriPath(e)||""):null,scheme:n,isCanary:D,badge:y,hasColor:h,color:g,propagate:m,decorationKeys:d,nullReason:i?null:a||"unknown",timestampSource:c?.source||(u?"none":"not-attempted"),gitRecencyAvailable:!!c?.gitAvailable,gitRecencyError:c?.gitError||null,resolvedTimestampMs:l,gitRepoMatched:c?.repoMatched??null,gitPathAttempted:c?.pathAttempted||null,freshnessBucket:c?.bucket||null,freshnessSource:c?.source||null,freshnessConfidence:c?.confidence||null,freshnessReason:c?.reason||null,freshnessAttempts:c?.attempts||null,exceptionName:o,exceptionMessage:s};X(w)}}return{provideDecoration}}module.exports={createDecorationProviderHelpers}});var ct=_((La,yr)=>{function mr(e){!e._allocationTelemetryEnabled||e._telemetryReportTimer||(e._telemetryReportTimer=setTimeout(()=>{e._telemetryReportTimer=null,pr(e),mr(e)},e._telemetryReportInterval))}function pr(e){let t=e.getMetrics().allocationTelemetry,r=t.decorationPool.allocations+t.badgeFlyweight.allocations+t.readableFlyweight.allocations,n=t.decorationPool.reuses+t.badgeFlyweight.reuses+t.readableFlyweight.reuses;(r>0||n>0)&&e._logger?.info?.("\u{1F9EE} Allocation telemetry report",{timestamp:new Date().toISOString(),pool:{allocations:t.decorationPool.allocations,reuses:t.decorationPool.reuses,reuseRate:t.decorationPool.reusePercent+"%"},badgeFlyweight:{allocations:t.badgeFlyweight.allocations,reuses:t.badgeFlyweight.reuses,reuseRate:t.badgeFlyweight.reusePercent+"%"},readableFlyweight:{allocations:t.readableFlyweight.allocations,reuses:t.readableFlyweight.reuses,reuseRate:t.readableFlyweight.reusePercent+"%"},summary:{totalAllocations:r,totalReuses:n,overallReuseRate:r+n>0?(n/(r+n)*100).toFixed(1)+"%":"0%"},decorationsProcessed:e._metrics.totalDecorations,cacheHitRate:e.getMetrics().cacheHitRate})}yr.exports={scheduleTelemetryReport:mr,reportAllocationTelemetry:pr}});var br=_((exports,module)=>{var CHUNK_SIZES={onboarding:34,analysisCommands:23,exportReporting:17,extensionApi:15,workspaceTemplates:14,advancedCache:28,workspaceIntelligence:31,incrementalWorkers:19},BASE_BUNDLE_SIZE=99;function _getPresetDefinitionsSync(){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=dynamicRequire("./chunks/preset-definitions-chunk");if(e&&e.PRESET_DEFINITIONS)return e.PRESET_DEFINITIONS}}catch{}let FALLBACK_PRESET={minimal:{id:"minimal",name:"Minimal",description:"Lean setup that prioritizes responsiveness in large repos.",targetScenarios:["Large repos","Low resources","Minimal UI"],settings:{"explorerDates.performanceMode":!0,"explorerDates.showDateDecorations":!0}},balanced:{id:"balanced",name:"Balanced",description:"Default feature mix for most workspaces.",targetScenarios:["General development","Mixed workloads"],settings:{"explorerDates.enableOnboardingSystem":!0,"explorerDates.enableAnalysisCommands":!0,"explorerDates.performanceMode":!1,"explorerDates.dateDecorationFormat":"smart","explorerDates.colorScheme":"recency","explorerDates.badgePriority":"time"}},"web-development":{id:"web-development",name:"Web Development",description:"Optimized for frontend and full-stack web projects.",targetScenarios:["Web apps","Frontend teams"],settings:{"explorerDates.enableOnboardingSystem":!0,"explorerDates.dateDecorationFormat":"smart","explorerDates.colorScheme":"file-type","explorerDates.badgePriority":"time"}},enterprise:{id:"enterprise",name:"Enterprise",description:"Full feature set with reporting and integrations enabled.",targetScenarios:["Large teams","Governed environments"],settings:{"explorerDates.enableExportReporting":!0,"explorerDates.enableExtensionApi":!0,"explorerDates.dateDecorationFormat":"smart","explorerDates.colorScheme":"recency","explorerDates.badgePriority":"time"}},"data-science":{id:"data-science",name:"Data Science",description:"Insight-focused profile for data-heavy projects.",targetScenarios:["Data analysis","Research workflows"],settings:{"explorerDates.enableWorkspaceIntelligence":!0,"explorerDates.dateDecorationFormat":"iso-detailed","explorerDates.colorScheme":"recency","explorerDates.badgePriority":"time"}}};return FALLBACK_PRESET}var PRESET_DEFINITIONS=_getPresetDefinitionsSync(),RESTART_REQUIRED_SETTINGS=new Set(["enableOnboardingSystem","enableAnalysisCommands","enableExportReporting","enableExtensionApi","enableWorkspaceTemplates","enableAdvancedCache","enableWorkspaceIntelligence","enableIncrementalWorkers","performanceMode","smartFileWatching"]);function calculateBundleSize(e){let t=BASE_BUNDLE_SIZE;return e["explorerDates.enableOnboardingSystem"]&&(t+=CHUNK_SIZES.onboarding),e["explorerDates.enableAnalysisCommands"]&&(t+=CHUNK_SIZES.analysisCommands),e["explorerDates.enableExportReporting"]&&(t+=CHUNK_SIZES.exportReporting),e["explorerDates.enableExtensionApi"]&&(t+=CHUNK_SIZES.extensionApi),e["explorerDates.enableWorkspaceTemplates"]&&(t+=CHUNK_SIZES.workspaceTemplates),e["explorerDates.enableAdvancedCache"]&&(t+=CHUNK_SIZES.advancedCache),e["explorerDates.enableWorkspaceIntelligence"]&&(t+=CHUNK_SIZES.workspaceIntelligence),e["explorerDates.enableIncrementalWorkers"]&&(t+=CHUNK_SIZES.incrementalWorkers),t}function getDefaultPresetForProfile(e){let t=PRESET_DEFINITIONS;switch(e){case"minimal":case"extreme":return t.minimal||t.minimal;case"balanced":return t.balanced||t.balanced;case"web-development":return t["web-development"]||t["web-development"];case"data-science":return t["data-science"]||t["data-science"];case"enterprise":return t.enterprise||t.enterprise;default:return t.balanced||t.balanced}}module.exports={PRESET_DEFINITIONS,CHUNK_SIZES,BASE_BUNDLE_SIZE,RESTART_REQUIRED_SETTINGS,calculateBundleSize,getDefaultPresetForProfile}});var Er=_((Oa,_r)=>{var Se={onboarding:"src/chunks/onboarding-chunk",onboardingAssets:"src/chunks/onboarding-assets-chunk",reporting:"src/chunks/reporting-chunk",templates:"src/chunks/templates-chunk",analysis:"src/chunks/analysis-chunk",diagnostics:"src/chunks/diagnostics-chunk",extensionApi:"src/chunks/extension-api-chunk",advancedCache:"src/chunks/advancedCache-chunk",batchProcessor:"src/chunks/batchProcessor-chunk",decorationsAdvanced:"src/chunks/decorations-advanced",decorationsStatic:"src/chunks/decorations-static",workspaceIntelligence:"src/chunks/workspaceIntelligence",decorationLogic:"src/chunks/decoration-logic-chunk",decorationProvide:"src/chunks/decoration-provide-chunk",decorationHelpers:"src/chunks/decoration-helpers-chunk",decorationBatch:"src/chunks/decoration-batch-chunk",decorationWorkspaceIntel:"src/chunks/decoration-workspace-intel-chunk",decorationTelemetry:"src/chunks/decoration-telemetry-chunk",decorationRefresh:"src/chunks/decoration-refresh-chunk",decorationMemory:"src/chunks/decoration-memory-chunk",decorationPool:"src/chunks/decoration-pool-chunk",providerInit:"src/chunks/provider-init-chunk",fileDateProviderImpl:"src/chunks/file-date-provider-impl",fileDateProviderImplExport:"src/chunks/file-date-provider-impl-export",utilsShared:"src/chunks/utils-shared-chunk",incrementalWorkers:"src/chunks/incrementalWorkers",incrementalIndexer:"src/chunks/incrementalIndexer-chunk",uiAdapters:"src/chunks/ui-adapters",gitInsights:"src/chunks/gitInsights-chunk",smartWatcherFallback:"src/chunks/smartWatcherFallback-chunk",runtimeManagement:"src/chunks/runtime-management",runtimeManagementHeavy:"src/chunks/runtime-management-heavy",teamPersistence:"src/chunks/team-persistence-chunk",teamPersistenceUI:"src/chunks/team-persistence-ui-chunk",teamPersistenceLogic:"src/chunks/team-persistence-logic-chunk",settingsCoordinatorImpl:"src/chunks/settings-coordinator-impl-chunk",logger:"src/chunks/logger-chunk",loggerImpl:"src/chunks/logger-impl-chunk"};function Ii(e){return Se[e]||null}function Wi(){return Object.keys(Se)}function Li(e){let t={};for(let[r,n]of Object.entries(Se))t[r]=()=>e(`./${n}`);return t}var Oi=new Set(["gitInsights","reporting","templates","advancedCache","runtimeManagementHeavy","incrementalWorkers"]);_r.exports={CHUNK_MAP:Se,WEB_EXCLUDED_CHUNKS:Oi,getChunkSourcePath:Ii,getAllChunkNames:Wi,generateDevLoaderMap:Li}});var G=_((exports,module)=>{var FEATURE_FLAGS_GLOBAL_KEY="__explorerDatesFeatureFlags";function registerFeatureFlagsGlobal(e){if(e)try{typeof globalThis<"u"&&(globalThis[FEATURE_FLAGS_GLOBAL_KEY]=e)}catch{}}function loadFeatureFlagsFallback(){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function")return dynamicRequire("../featureFlags")}catch{}return null}function getFeatureFlagsGlobal(){try{if(typeof globalThis<"u"&&globalThis[FEATURE_FLAGS_GLOBAL_KEY])return globalThis[FEATURE_FLAGS_GLOBAL_KEY]}catch{}return loadFeatureFlagsFallback()}module.exports={FEATURE_FLAGS_GLOBAL_KEY,registerFeatureFlagsGlobal,getFeatureFlagsGlobal}});var ge=_((exports,module)=>{var getLogger=()=>{try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=dynamicRequire("./chunks/logger-chunk");if(e&&typeof e.getLogger=="function")return getLogger=e.getLogger,getLogger()}}catch{}try{return getLogger=q().getLogger,getLogger()}catch{return getLogger=()=>({debug:(()=>{})?.bind(console)||console.log,info:(()=>{}).bind(console),warn:(()=>{}).bind(console),error:(()=>{}).bind(console)}),getLogger()}},{CHUNK_SIZES}=br(),{getChunkSourcePath,getAllChunkNames}=Er(),{registerFeatureFlagsGlobal}=G(),{isWebEnvironment}=J(),featureLogger=null,env=typeof process<"u"&&process.env?process.env:{},DEFAULT_CHUNK_TIMEOUT_MS=Number(env.EXPLORER_DATES_CHUNK_TIMEOUT||(env.NODE_ENV==="test"?1e3:5e3)),NETWORK_ERROR_CODES=new Set(["ENOTFOUND","ECONNRESET","ECONNREFUSED","EAI_AGAIN","ETIMEDOUT","EHOSTUNREACH"]),BUILT_CHUNK_CACHE=new Map,CHUNK_METHOD_ALIASES={reporting:"exportReporting",templates:"workspaceTemplates",analysis:"analysisCommands"},DEV_CHUNK_PATH_CACHE=new Map,LAST_FEATURE_FAILURES=new Map;function getDevChunkImportPath(e){if(DEV_CHUNK_PATH_CACHE.has(e))return DEV_CHUNK_PATH_CACHE.get(e);let t=getChunkSourcePath(e);if(!t)return DEV_CHUNK_PATH_CACHE.set(e,null),null;let r=t;return r.startsWith("src/")&&(r=r.slice(4)),r.startsWith("./")||(r=`./${r}`),DEV_CHUNK_PATH_CACHE.set(e,r),r}function resolveNodeDependencies(){if(nativeDepsResolved)return!!(nativePath&&nativeFs);if(nativeDepsResolved=!0,!isNodeLikeRuntime())return!1;try{nativePath=eval("require")("path"),nativeFs=eval("require")("fs")}catch{nativePath=null,nativeFs=null}return!!(nativePath&&nativeFs)}var nativeDepsResolved=!1,nativePath=null,nativeFs=null;function isWebRuntime(){try{return isWebEnvironment()?!0:typeof process<"u"&&process?.env?.VSCODE_WEB==="true"}catch{return!1}}function isNodeLikeRuntime(){return typeof process<"u"&&!!process.versions?.node&&!isWebRuntime()}function getChunkTimeoutMs(){return DEFAULT_CHUNK_TIMEOUT_MS>0?DEFAULT_CHUNK_TIMEOUT_MS:0}function logFeature(e,t,r){featureLogger||(featureLogger=getLogger());let n=featureLogger;typeof n[e]=="function"?n[e](t,r):n.info(t,r)}function logFeatureDisabled(e,t){logFeature("info","Feature disabled via configuration",{feature:e,savedKB:t&&CHUNK_SIZES[t]!==void 0?CHUNK_SIZES[t]:void 0})}function isLikelyNetworkIssue(e){if(!e)return!1;if(e.code&&NETWORK_ERROR_CODES.has(e.code))return!0;let t=(e.message||"").toLowerCase();return t.includes("network")||t.includes("fetch")||t.includes("timed out")}function runWithChunkTimeout(e,t){let r=getChunkTimeoutMs(),n=()=>{try{return Promise.resolve(e())}catch(i){return Promise.reject(i)}};return r?new Promise((i,a)=>{let o=!1,s=setTimeout(()=>{if(o)return;o=!0;let c=new Error(`Chunk "${t}" load timed out after ${r}ms`);c.code="CHUNK_TIMEOUT",a(c)},r);n().then(c=>{o||(o=!0,clearTimeout(s),i(c))}).catch(c=>{o||(o=!0,clearTimeout(s),a(c))})}):n()}function logResolverFailure(e,t){if(!t)return;let r={chunkName:e,error:t.message,code:t.code,networkIssue:isLikelyNetworkIssue(t),timedOut:t.code==="CHUNK_TIMEOUT"},n=r.networkIssue||r.timedOut?"warn":"error";logFeature(n,"Chunk resolver failed",r)}function tryLoadBuiltChunk(e){if(!e||!resolveNodeDependencies()||typeof nativeFs?.existsSync!="function")return null;if(BUILT_CHUNK_CACHE.has(e))return BUILT_CHUNK_CACHE.get(e);let t=[];typeof __dirname=="string"&&nativePath&&(t.push(nativePath.join(__dirname,"chunks",`${e}.js`)),t.push(nativePath.join(__dirname,"..","dist","chunks",`${e}.js`)));for(let r of t)try{if(!r||!nativeFs.existsSync(r))continue;let n=require(r),i=n?.default||n;return BUILT_CHUNK_CACHE.set(e,i||null),i&&logFeature("info","Loaded chunk via built artifact fallback",{chunkName:e,path:r}),i}catch(n){logFeature("warn","Built chunk fallback failed",{chunkName:e,path:r,error:n.message})}return BUILT_CHUNK_CACHE.set(e,null),null}function tryRequireDevChunk(e){if(isWebRuntime())return null;let t=getDevChunkImportPath(e);if(!t)return null;try{let r=require(t);return r?.default||r}catch(r){(r.code!=="MODULE_NOT_FOUND"||typeof r.message=="string"&&!r.message.includes(t))&&logFeature("debug","Dev chunk require failed",{chunkName:e,importPath:t,error:r.message})}return null}function tryRequireLocalBuiltChunk(e){if(isWebRuntime())return null;let t=`./chunks/${e}`;try{let r=require(t);return r?.default||r}catch(r){r.code==="MODULE_NOT_FOUND"||logFeature("debug","Local chunk require failed",{chunkName:e,importPath:t,error:r.message})}return null}function getSavingsKey(e){return e in CHUNK_SIZES?e:CHUNK_METHOD_ALIASES[e]||null}function announceChunkSavings(e){let t=getSavingsKey(e);if(!t)return;let r=CHUNK_SIZES[t];if(!r)return;let i=`\u{1F4BE} ${t===e||!e?t:`${t} (requested as "${e}")`} chunk unavailable - keeping the feature disabled is saving ~${r}KB`;logFeature("info","Chunk savings applied",{chunkName:t,requestedName:e,savedKB:r})}var getFeatureConfig=()=>{try{let t=require("vscode").workspace.getConfiguration("explorerDates"),r=isWebRuntime(),n=i=>r?!1:i;return{enableOnboarding:t.get("enableOnboardingSystem",!0),enableExportReporting:n(t.get("enableExportReporting",!0)),enableWorkspaceTemplates:n(t.get("enableWorkspaceTemplates",!0)),enableAnalysisCommands:t.get("enableAnalysisCommands",!0),enableAdvancedCache:n(t.get("enableAdvancedCache",!0)),enableWorkspaceIntelligence:n(t.get("enableWorkspaceIntelligence",!0)),enableIncrementalWorkers:n(t.get("enableIncrementalWorkers",!1)),enableGitInsights:n(t.get("enableGitInsights",!0)),enableExtensionApi:t.get("enableExtensionApi",!0)}}catch{let e=isWebRuntime(),t=r=>e?!1:r;return{enableOnboarding:!0,enableExportReporting:t(!0),enableWorkspaceTemplates:t(!0),enableAnalysisCommands:!0,enableAdvancedCache:t(!0),enableWorkspaceIntelligence:t(!0),enableIncrementalWorkers:t(!1),enableGitInsights:t(!0),enableExtensionApi:!0}}},featureLoaders=new Map,chunkResolver=null;function setFeatureChunkResolver(e){if(e&&typeof e!="function")throw new Error("Feature chunk resolver must be a function");chunkResolver=e||null}function registerFeatureLoader(e,t){if(typeof t!="function")throw new Error(`Feature loader for "${e}" must be a function`);featureLoaders.set(e,t)}function unregisterFeatureLoader(e){featureLoaders.delete(e)}function clearFeatureLoaders(){featureLoaders.clear()}async function loadFeatureModule(e){LAST_FEATURE_FAILURES.delete(e);let t=featureLoaders.get(e);if(!t&&chunkResolver&&(t=()=>chunkResolver(e)),!t)return logFeature("warn","No loader registered for feature",{feature:e}),null;try{return await runWithChunkTimeout(()=>t(),e)}catch(r){return LAST_FEATURE_FAILURES.set(e,r),logFeature("warn","Feature loader failed",{feature:e,error:r.message,code:r.code,networkIssue:isLikelyNetworkIssue(r)}),announceChunkSavings(e),null}}function getFeatureLoadFailure(e){return LAST_FEATURE_FAILURES.get(e)}function registerDefaultLoaders(){getAllChunkNames().forEach(t=>{featureLoaders.has(t)||registerFeatureLoader(t,createDefaultLoader(t))})}function createDefaultLoader(e){return async()=>{if(chunkResolver&&typeof chunkResolver=="function")try{let i=await runWithChunkTimeout(()=>chunkResolver(e),e);if(i)return i;logFeature("info","Chunk resolver returned no module",{chunkName:e})}catch(i){logResolverFailure(e,i)}let t=tryRequireDevChunk(e);if(t)return t;let r=tryRequireLocalBuiltChunk(e);if(r)return r;let n=tryLoadBuiltChunk(e);return n||(logFeature("warn","No built artifact available for chunk",{chunkName:e}),null)}}var featureFlags={async onboarding(){return getFeatureConfig().enableOnboarding?loadFeatureModule("onboarding"):(logFeatureDisabled("onboarding","onboarding"),null)},async exportReporting(){return getFeatureConfig().enableExportReporting?loadFeatureModule("reporting"):(logFeatureDisabled("exportReporting","exportReporting"),null)},async workspaceTemplates(){return getFeatureConfig().enableWorkspaceTemplates?loadFeatureModule("templates"):(logFeatureDisabled("workspaceTemplates","workspaceTemplates"),null)},async analysisCommands(){return getFeatureConfig().enableAnalysisCommands?loadFeatureModule("analysis"):(logFeatureDisabled("analysisCommands","analysisCommands"),null)},async advancedCache(){return getFeatureConfig().enableAdvancedCache?loadFeatureModule("advancedCache"):(logFeatureDisabled("advancedCache","advancedCache"),null)},async workspaceIntelligence(){return getFeatureConfig().enableWorkspaceIntelligence?loadFeatureModule("workspaceIntelligence"):(logFeatureDisabled("workspaceIntelligence","workspaceIntelligence"),null)},async incrementalWorkers(){return getFeatureConfig().enableIncrementalWorkers?loadFeatureModule("incrementalWorkers"):(logFeatureDisabled("incrementalWorkers","incrementalWorkers"),null)},async extensionApi(){return getFeatureConfig().enableExtensionApi?loadFeatureModule("extensionApi"):(logFeatureDisabled("extensionApi","extensionApi"),null)},async uiAdapters(){return loadFeatureModule("uiAdapters")},async batchProcessor(){return loadFeatureModule("batchProcessor")},async decorationsAdvanced(){return loadFeatureModule("decorationsAdvanced")},async decorationsProviderImpl(){return loadFeatureModule("decorationsProviderImpl")},async gitInsights(){return getFeatureConfig().enableGitInsights?loadFeatureModule("gitInsights"):(logFeatureDisabled("gitInsights","gitInsights"),null)},isEnabled(e){let t=getFeatureConfig();return{onboarding:t.enableOnboarding,exportReporting:t.enableExportReporting,workspaceTemplates:t.enableWorkspaceTemplates,analysisCommands:t.enableAnalysisCommands,advancedCache:t.enableAdvancedCache,workspaceIntelligence:t.enableWorkspaceIntelligence,incrementalWorkers:t.enableIncrementalWorkers,extensionApi:t.enableExtensionApi}[e]??!0},getEnabledFeatures(){let e=getFeatureConfig(),t=[];return e.enableOnboarding&&t.push("onboarding"),e.enableExportReporting&&t.push("exportReporting"),e.enableWorkspaceTemplates&&t.push("workspaceTemplates"),e.enableAnalysisCommands&&t.push("analysisCommands"),e.enableAdvancedCache&&t.push("advancedCache"),e.enableWorkspaceIntelligence&&t.push("workspaceIntelligence"),e.enableIncrementalWorkers&&t.push("incrementalWorkers"),e.enableExtensionApi&&t.push("extensionApi"),t},calculateSavings(){let e=getFeatureConfig(),t=0;return e.enableOnboarding||(t+=34),e.enableExportReporting||(t+=17),e.enableExtensionApi||(t+=15),e.enableWorkspaceTemplates||(t+=14),e.enableWorkspaceIntelligence||(t+=12),e.enableAnalysisCommands||(t+=8),e.enableAdvancedCache||(t+=5),t}};for(let[e,t]of Object.entries(CHUNK_METHOD_ALIASES))!featureFlags[e]&&typeof featureFlags[t]=="function"&&(featureFlags[e]=(...r)=>featureFlags[t](...r));function calculateSavings(e){e||(e=getFeatureConfig());let t=267,r=0;e.enableOnboarding||(r+=34),e.enableExportReporting||(r+=17),e.enableExtensionApi||(r+=15),e.enableWorkspaceTemplates||(r+=14),e.enableWorkspaceIntelligence||(r+=12),e.enableIncrementalWorkers||(r+=19),e.enableAnalysisCommands||(r+=8),e.enableAdvancedCache||(r+=5);let n=t-r,i=r>0?Math.round(r/t*100):0;return{baseSize:`${t}KB`,totalSavings:`${r}KB`,optimizedSize:`${n}KB`,percentage:i}}registerDefaultLoaders();var exportedFeatureFlags={...featureFlags,getFeatureConfig,calculateSavings,registerFeatureLoader,setFeatureChunkResolver,unregisterFeatureLoader,clearFeatureLoaders,loadFeatureModule,getFeatureLoadFailure,registerDefaultLoaders};registerFeatureFlagsGlobal(exportedFeatureFlags);module.exports=exportedFeatureFlags});var wr=_((exports,module)=>{var vscode=require("vscode"),getLogger=()=>{try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=dynamicRequire("./chunks/logger-chunk");if(e&&typeof e.getLogger=="function")return getLogger=e.getLogger,getLogger()}}catch{}try{return getLogger=q().getLogger,getLogger()}catch{return getLogger=()=>({debug:(()=>{})?.bind(console)||console.log,info:(()=>{}).bind(console),warn:(()=>{}).bind(console),error:(()=>{}).bind(console)}),getLogger()}},{fileSystem}=Be(),env=typeof process<"u"&&process.env?process.env:{},{formatFileSize}=Ke(),getFileName=p=>{try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=null;try{e=dynamicRequire("../chunks/utils-shared-chunk")}catch{}try{e||(e=dynamicRequire("./chunks/utils-shared-chunk"))}catch{}try{e||(e=dynamicRequire("./chunks/path-utils-chunk"))}catch{}if(e&&typeof e.getFileName=="function")return getFileName=e.getFileName,getFileName(p)}}catch{}try{let t=String(p||"").replace(/\\/g,"/"),r=t.lastIndexOf("/");return r===-1?t:t.substring(r+1)}catch{return"unknown"}},getExtension=p=>{try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=null;try{e=dynamicRequire("../chunks/utils-shared-chunk")}catch{}try{e||(e=dynamicRequire("./chunks/utils-shared-chunk"))}catch{}try{e||(e=dynamicRequire("./chunks/path-utils-chunk"))}catch{}if(e&&typeof e.getExtension=="function")return getExtension=e.getExtension,getExtension(p)}}catch{}try{let e=String(p||""),t=e.lastIndexOf(".");return t<=0?"":e.substring(t).toLowerCase()}catch{return""}},buildCacheKey=p=>{try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=null;try{e=dynamicRequire("../chunks/utils-shared-chunk")}catch{}try{e||(e=dynamicRequire("./chunks/utils-shared-chunk"))}catch{}try{e||(e=dynamicRequire("./chunks/path-utils-chunk"))}catch{}if(e&&typeof e.getCacheKey=="function")return buildCacheKey=e.getCacheKey,buildCacheKey(p)}}catch{}return String(p||"").toLowerCase().replace(/\\/g,"/")},normalizePath=input=>{try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=null;try{e=dynamicRequire("../chunks/utils-shared-chunk")}catch{}try{e||(e=dynamicRequire("./chunks/utils-shared-chunk"))}catch{}try{e||(e=dynamicRequire("./chunks/path-utils-chunk"))}catch{}if(e&&typeof e.normalizePath=="function")return normalizePath=e.normalizePath,normalizePath(input)}}catch{}return String(input||"").replace(/\\/g,"/")},getUriPath=(target="")=>{try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=null;try{e=dynamicRequire("../chunks/utils-shared-chunk")}catch{}try{e||(e=dynamicRequire("./chunks/utils-shared-chunk"))}catch{}try{e||(e=dynamicRequire("./chunks/path-utils-chunk"))}catch{}if(e&&typeof e.getUriPath=="function")return getUriPath=e.getUriPath,getUriPath(target)}}catch{}if(!target)return"";if(typeof target=="string")return target;if(typeof target.fsPath=="string"&&target.fsPath.length>0)return target.fsPath;if(typeof target.path=="string"&&target.path.length>0)return target.path;if(typeof target.toString=="function")try{return target.toString(!0)}catch{return target.toString()}return String(target)},{DEFAULT_CACHE_TIMEOUT,DEFAULT_MAX_CACHE_SIZE,GLOBAL_STATE_KEYS,DEFAULT_DECORATION_POOL_SIZE,DEFAULT_FLYWEIGHT_CACHE_SIZE,WORKSPACE_SCALE_EXTREME_THRESHOLD}=I(),{isWebEnvironment}=J(),{getSettingsCoordinator}=Ge(),{SecurityValidator,SecureFileOperations,detectSecurityEnvironment}=Je(),DISABLE_GIT_FEATURES=env.EXPLORER_DATES_DISABLE_GIT_FEATURES==="1",IS_WEB_ENV=isWebEnvironment()||env.VSCODE_WEB==="true",nodePath=null;try{IS_WEB_ENV||(nodePath=require("path"))}catch{nodePath=null}var pathCompat={basename:e=>{if(!e)return"";try{if(!IS_WEB_ENV)return require("path").basename(e)}catch{let t=e.replace(/\\/g,"/"),r=t.lastIndexOf("/");return r===-1?t:t.substring(r+1)}},dirname:e=>{if(!e)return".";try{if(!IS_WEB_ENV)return require("path").dirname(e)}catch{let t=e.replace(/\\/g,"/"),r=t.lastIndexOf("/");return r===-1?".":t.substring(0,r)}}};(async()=>{try{let t=await ge().decorationsStatic();t&&(t.basename&&t.dirname&&(pathCompat.basename=t.basename,pathCompat.dirname=t.dirname),t.describeFile&&(exports.Ke=t.describeFile))}catch{}})();var CONFIG_DEFAULT_CACHE_TIMEOUT=3e4,CACHE_NAMESPACE_SEPARATOR="::",DEFAULT_DYNAMIC_WATCHER_LIMIT=Number(env.EXPLORER_DATES_MAX_DYNAMIC_WATCHERS||200),DEFAULT_WATCHER_INACTIVITY_MS=Number(env.EXPLORER_DATES_WATCHER_TTL_MS||600*1e3),DEFAULT_SMART_WATCHER_EXTENSIONS=["js","ts","json","md","py","java"],SMART_WATCHER_PRIORITY=new Map([["src",100],["lib",65],["test",30]]),WORKSPACE_SCAN_TIMEOUT_MS=Number(env.EXPLORER_DATES_WORKSPACE_SCAN_TIMEOUT||7e3),WORKSPACE_SCAN_TIMEOUT_FALLBACK_COUNT=WORKSPACE_SCALE_EXTREME_THRESHOLD,VIEWPORT_DEFAULT_WINDOW_MS=300*1e3,DEFAULT_VIEWPORT_HISTORY_LIMIT=Number(env.EXPLORER_DATES_VIEWPORT_HISTORY_LIMIT||400),FEATURE_LEVELS=["full","enhanced","standard","minimal"],DEFAULT_INDEXER_MAX_FILES=Math.max(100,Number(env.EXPLORER_DATES_INDEXER_MAX_FILES||2e3)),SECURITY_EXTRA_PATHS_ENV="EXPLORER_DATES_SECURITY_EXTRA_PATHS",DEFAULT_SECURITY_THROTTLE_MS=Number(env.EXPLORER_DATES_SECURITY_WARNING_THROTTLE_MS||5e3),SECURITY_WARNING_CACHE_LIMIT=Number(env.EXPLORER_DATES_SECURITY_WARNING_CACHE||500),DEFAULT_SECURITY_MAX_WARNINGS=Number(env.EXPLORER_DATES_SECURITY_MAX_WARNINGS_PER_FILE??1),describeFile=(e="")=>{try{let t=typeof e=="string"?e:getUriPath(e),r=normalizePath(t);return getFileName(r)||r||"unknown"}catch{return"unknown"}};(async()=>{try{let t=await ge().decorationsStatic();t&&typeof t.describeFile=="function"&&(describeFile=t.describeFile)}catch{}})();var LazyHierarchicalDecorationCache=class{constructor(){this.n=new Map}get size(){return this.n.size}get bucketCount(){return 0}clear(){this.n.clear()}get(t){return this.n.get(t)}set(t,r){this.n.set(t,r)}delete(t){return this.n.delete(t)}*entries(){yield*this.n.entries()}*keys(){yield*this.n.keys()}*values(){yield*this.n.values()}[Symbol.iterator](){return this.entries()}enforceLimit(){return 0}},FileDateDecorationProviderImpl=class{constructor(...args){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=dynamicRequire("./chunks/file-date-provider-impl");if(e&&typeof e.FileDateDecorationProviderImpl=="function")return new e.FileDateDecorationProviderImpl(...args);if(e&&typeof e.FileDateDecorationProvider=="function")return new e.FileDateDecorationProvider(...args)}}catch(e){}throw new Error("FileDateDecorationProvider implementation is not available in this environment")}},FileDateDecorationProvider=class{constructor(...args){let loaderError=null;try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function")try{let e=null;try{e=dynamicRequire("./chunks/file-date-provider-impl-export")}catch{}if(e){let r=e.FileDateDecorationProvider||e.FileDateDecorationProviderImpl||e.default;return typeof r=="function"?new r(...args):new FileDateDecorationProviderImpl(...args)}e=dynamicRequire("./chunks/file-date-provider-impl");let t=e&&(e.FileDateDecorationProvider||e.FileDateDecorationProviderImpl||e.default);if(typeof t=="function")return new t(...args)}catch(e){loaderError=e}try{let e=null;try{e=require.resolve("./chunks/file-date-provider-impl-export",{paths:[__dirname]})}catch{}e||(e=require.resolve("./chunks/file-date-provider-impl",{paths:[__dirname]}));let t=require(e),r=t&&(t.FileDateDecorationProvider||t.FileDateDecorationProviderImpl||t.default);if(e&&e.endsWith("file-date-provider-impl-export.js")&&!r)return new FileDateDecorationProviderImpl(...args);if(typeof r=="function")return new r(...args)}catch(e){loaderError=loaderError||e}}catch(e){loaderError=loaderError||e}if(loaderError&&loaderError.message){let e=`FileDateDecorationProvider implementation is unavailable: ${loaderError.message}`;throw new Error(e)}throw new Error("FileDateDecorationProvider implementation is unavailable")}};module.exports={FileDateDecorationProvider,FileDateDecorationProviderImpl}});var kr=_((exports,module)=>{try{require("vscode")}catch{}var env=typeof process<"u"&&process.env?process.env:{},diagLog=null,isWebDiagnosticsEnabled=()=>!1;try{let e=he();e&&(diagLog=e.diagLog,isWebDiagnosticsEnabled=e.isWebDiagnosticsEnabled||(()=>!1))}catch{}function isWebRuntime(){try{let{isWebEnvironment:e}=J();return e()}catch{return env.VSCODE_WEB==="true"}}function getWebChunkRegistry(){try{let{WEB_CHUNK_GLOBAL_KEY:e,LEGACY_WEB_CHUNK_GLOBAL_KEY:t}=I();if(typeof globalThis<"u")return globalThis[e]||globalThis[t]||null}catch{}return typeof globalThis<"u"&&(globalThis.explorerDatesChunks||globalThis.hr)||null}function resolveProviderModuleFromWebRegistry(){let e=getWebChunkRegistry();if(!e)return null;let t=[e.fileDateProviderImplExport,e.fileDateProviderImpl,e.fileDateProviderImplExport,e.fileDateProviderImpl,e["file-date-provider-impl-export"],e["file-date-provider-impl"]].filter(Boolean);return t.length>0?t[0]:null}function normalizeModuleExports(e){if(!e)return null;let t=e&&typeof e=="object"?e:{default:e},r=t&&typeof t=="object"&&t.default?t.default:null;return r&&typeof r=="object"?{...t,...r}:t}async function hydrateProviderOptionalSystems(e){try{try{let r=(await Promise.resolve().then(()=>R(ot()))).getLocalization();e.p.getString=(...i)=>r.getString(...i),e.p.formatDate=(...i)=>r.formatDate(...i),e.p.getCurrentLocale=()=>r.getCurrentLocale();let n=e.p.dispose;e.p.dispose=()=>{try{r.dispose()}catch{}n()}}catch(t){e._logger?.debug("provider-init: localization hydrate failed",t)}try{let t=await Promise.resolve().then(()=>R(st()));t&&typeof t.createDecorationLogic=="function"&&(e.yt=t.createDecorationLogic(e))}catch(t){e._logger?.debug("provider-init: preload decoration logic failed",t)}try{let t=await Promise.resolve().then(()=>R(Ce())),r=t&&(typeof t.createDecorationProviderHelpers=="function"?t.createDecorationProviderHelpers(e):t);e.dr=r}catch(t){e._logger?.debug("provider-init: preload decoration provider helpers failed",t)}try{let t=await e.Z();t&&typeof t.initializeAdvancedSystems=="function"&&await t.initializeAdvancedSystems(e)}catch(t){e._logger?.debug("provider-init: initializeAdvancedSystems failed",t)}try{let t=ct();t&&typeof t.scheduleTelemetryReport=="function"&&e._allocationTelemetryEnabled&&t.scheduleTelemetryReport(e)}catch(t){e._logger?.debug("provider-init: scheduling telemetry failed",t)}}catch(t){try{e._logger?.debug("provider-init: hydration failed",t)}catch{}}}function createFileDateDecorationProvider(context){try{let ProviderClass=null,webRuntime=isWebRuntime();if(webRuntime){let e=getWebChunkRegistry(),t=[e?.fileDateProviderImplExport,e?.fileDateProviderImpl,e?.fileDateProviderImplExport,e?.fileDateProviderImpl,e?.["file-date-provider-impl-export"],e?.["file-date-provider-impl"]].filter(Boolean),r=t[0]||resolveProviderModuleFromWebRegistry();!e&&isWebDiagnosticsEnabled()?diagLog?.("warn","Provider registry missing in web runtime"):!r&&isWebDiagnosticsEnabled()&&diagLog?.("warn","Provider module missing from web registry",{hasRegistry:!!e,availableKeys:Object.keys(e||{}),candidateCount:t.length});let n=null;for(let i of t){let a=normalizeModuleExports(i),o=a&&(a.FileDateDecorationProvider||a.FileDateDecorationProviderImpl||a.default);if(o){n=o;break}isWebDiagnosticsEnabled()&&diagLog?.("warn","Provider exports missing expected class",{availableExportKeys:Object.keys(a||{})})}ProviderClass=n,!ProviderClass&&isWebDiagnosticsEnabled()&&t.length>0&&diagLog?.("warn","Provider class unresolved from registry entries",{candidateCount:t.length,availableRegistryKeys:Object.keys(e||{})})}try{if(!webRuntime){let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=null;try{e=dynamicRequire("./fileDateProviderImplExport")}catch{}if(!e)try{e=dynamicRequire("./fileDateProviderImpl")}catch{}ProviderClass=e&&(e.FileDateDecorationProvider||e.FileDateDecorationProviderImpl||e.default)}}}catch{}if(!ProviderClass&&!webRuntime){let{FileDateDecorationProvider:e}=wr();ProviderClass=e}if(!ProviderClass)return isWebDiagnosticsEnabled()&&diagLog?.("warn","Provider class unavailable",{webRuntime,registryKeys:Object.keys(getWebChunkRegistry()||{})}),null;let provider=new ProviderClass;return isWebDiagnosticsEnabled()&&diagLog?.("info","Provider class resolved",{className:ProviderClass?.name||"unknown"}),(async()=>{try{await provider.initializeAdvancedSystems(context)}catch(e){provider._logger?.debug("provider-init: provider factory init failed",e)}})(),{createFileDateDecorationProvider:()=>provider}}catch{return null}}module.exports={hydrateProviderOptionalSystems,createFileDateDecorationProvider}});var Fr=_((Na,vr)=>{var O=require("vscode"),{getLogger:Ni}=q(),{WORKSPACE_SCALE_BALANCED_THRESHOLD:Dr,WORKSPACE_SCALE_LARGE_THRESHOLD:ve,WORKSPACE_SCALE_EXTREME_THRESHOLD:Cr,WORKSPACE_SCAN_MAX_RESULTS:Sr}=I(),lt=Ni(),Te=null;function Tr(e){return e&&(e.fsPath||e.path)||null}function ut(e,t){let r=Tr(e);!r||typeof t!="number"||(Te={workspaceKey:r,fileCount:t,timestamp:Date.now()})}function ht(e){let t=Tr(e);return!t||!Te||Te.workspaceKey!==t?null:Te}function qi(e,t="default"){if(!e)return`unknown-workspace-${t}`;let r=e.fsPath||e.path||"",n=r.split("/").pop()||"workspace",i=Math.abs(r.split("").reduce((o,s)=>(o=(o<<5)-o+s.charCodeAt(0),o&o),0)).toString(36).substr(0,8),a=Math.abs(t.split("").reduce((o,s)=>(o=(o<<5)-o+s.charCodeAt(0),o&o),0)).toString(36).substr(0,4);return`${n}-${i}-${a}`}async function zi(e){try{if(!e)return"unknown";let t=ht(e),r;t?r=t.fileCount:(r=(await O.workspace.findFiles("**/*",null,Sr)).length,ut(e,r));let n="small";r>=Cr?n="extreme":r>=ve?n="large":r>=1e3&&(n="medium");let i=O.env.remoteName,a=O.env.uiKind===O.UIKind.Web,o=n==="medium"&&r>=Dr&&ru.toLowerCase());if(c.includes("package.json")||c.includes("yarn.lock"))return"web-development";if(c.some(u=>u.endsWith(".ipynb"))||c.includes("requirements.txt"))return"data-science";if(c.includes("docker-compose.yml")||c.includes(".enterprise"))return"enterprise"}catch(s){lt.debug("Project type detection failed:",s)}return"full"}catch(t){return lt.error("Workspace profile detection failed:",t),"unknown"}}async function Ui(e){if(!e)return null;try{let t=ht(e),r;t?r=t.fileCount:(r=(await O.workspace.findFiles("**/*",null,Sr)).length,ut(e,r));let n="small";r>=Cr?n="extreme":r>=ve?n="large":r>=1e3&&(n="medium");let i=!!O.env.remoteName,a=O.env.uiKind===O.UIKind.Web,o=a?"web":i?"remote":"local",s=n==="medium"&&r>=Dr&&r{var vscode=require("vscode"),getFileName,getExtension,normalizePath,getUriPath,ensureDate;try{let e=K();e&&(getFileName=e.getFileName,getExtension=e.getExtension,normalizePath=e.normalizePath,getUriPath=e.getUriPath,ensureDate=e.ensureDate)}catch{}if(!getFileName||!ensureDate){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function")try{let e=dynamicRequire("../utils/pathUtils"),t=dynamicRequire("../utils/dateHelpers");getFileName=getFileName||e.getFileName,getExtension=getExtension||e.getExtension,normalizePath=normalizePath||e.normalizePath,getUriPath=getUriPath||e.getUriPath,ensureDate=ensureDate||t.ensureDate}catch{}}catch{}getFileName||(getFileName=e=>{let t=String(e||""),r=t.replace(/\\/g,"/").lastIndexOf("/");return r===-1?t:t.substring(r+1)}),getExtension||(getExtension=e=>{let t=String(e||""),r=t.lastIndexOf(".");return r<=0?"":t.substring(r).toLowerCase()}),normalizePath||(normalizePath=(e="")=>(e||"").toString().replace(/\\/g,"/")),getUriPath||(getUriPath=(e="")=>e?typeof e=="string"?e:e?.fsPath?e.fsPath:e?.path?e.path:String(e):""),ensureDate||(ensureDate=e=>e instanceof Date?e:typeof e=="number"?new Date(e):typeof e=="string"?isNaN(Date.parse(e))?new Date:new Date(Date.parse(e)):new Date)}var SMART_WATCHER_PRIORITY=new Map([["src",100],["lib",65],["test",30]]);async function performWorkspaceSizeCheck(e){let t=vscode.workspace.getConfiguration("explorerDates"),r=t.get("forceEnableForLargeWorkspaces",!1),n=t.get("performanceMode",!1),i=r||n,a=vscode.workspace.workspaceFolders;if(!a||a.length===0)return;e._logger.info("Checking workspace size for large workspace detection...");let o=await e.an(e._getIndexerMaxFiles()),s=!Array.isArray(o),c=s?e.WORKSPACE_SCAN_TIMEOUT_FALLBACK_COUNT:o.length;if(s){let l=e.WORKSPACE_SCAN_TIMEOUT_MS?`${e.WORKSPACE_SCAN_TIMEOUT_MS}ms`:"the configured timeout";e._logger.warn(`Workspace scan exceeded ${l}; defaulting to extreme scale`)}else{let l=`${e.WORKSPACE_SCALE_LARGE_THRESHOLD}+`;e._logger.info(`Workspace contains ${c>=e.WORKSPACE_SCALE_LARGE_THRESHOLD?l:c} files`)}let u=e.u;e.Ge=c,e.u=c>=e.WORKSPACE_SCALE_EXTREME_THRESHOLD?"extreme":c>=e.WORKSPACE_SCALE_LARGE_THRESHOLD?"large":"normal";try{let l=a[0]?.uri;Fr().setCachedWorkspaceMetrics(l,c)}catch(l){e._logger.debug("Unable to cache workspace file count",l)}u!==e.u&&e.J&&!e._performanceMode&&(e._logger.info(`Workspace scale changed ${u} -> ${e.u}; recalibrating watchers`),e.Q("workspace-scale-update")),e._batchProcessor&&typeof e._batchProcessor.setWorkspaceScale=="function"&&e._batchProcessor.setWorkspaceScale(e.u||"normal"),e.Xe(e.Ye(vscode.workspace.getConfiguration("explorerDates")),"workspace-scale-change"),i&&e._logger.debug("Large workspace prompt suppressed (force/performance mode), but scaling adjustments applied")}async function findWorkspaceFilesWithTimeout(e,t){let r=Number.isFinite(e.WORKSPACE_SCAN_TIMEOUT_MS)?e.WORKSPACE_SCAN_TIMEOUT_MS:0,n=vscode.workspace.findFiles("**/*",null,t);if(!r||r<=0)return n;try{return await new Promise((i,a)=>{let o=null,s=(c,u=!1)=>{o&&(clearTimeout(o),o=null),u?a(c):i(c)};o=setTimeout(()=>s(null),r),n.then(c=>s(c),c=>s(c,!0))})}catch(i){return e._logger.warn("Workspace scan failed, assuming large workspace",{error:i?.message||String(i)}),null}}async function _buildSmartWatcherTargets(e,t,r){let n=[],i=Math.max(1,r.maxPatterns),a=i,o=t.length;for(let s of t){if(a<=0)break;let c=Math.max(1,Math.floor(a/o)),u=new vscode.RelativePattern(s,"*.{md,mdx,json,jsonc,yml,yaml,ts,tsx,js,jsx}");if(n.push({pattern:u,label:`root:${s.name}`}),a-=1,a<=0)break;let l=Math.min(Math.max(c-1,0),a);if(l>0)try{let d=typeof e._fileSystem?.readdir=="function"?await e._fileSystem.readdir(s.uri||s.fsPath||s):[],h=(Array.isArray(d)?d:[]).filter(m=>m&&(typeof m.isDirectory=="function"?m.isDirectory():!0)).map(m=>typeof m=="string"?m:m.name||"").filter(Boolean).filter(m=>!["node_modules",".git","dist","build","out"].includes(m));e._logger?.debug&&e._logger.debug("smart-watcher: top-level dirs",{folder:s.name,dirs:h}),h.sort((m,D)=>(SMART_WATCHER_PRIORITY.get(D)||0)-(SMART_WATCHER_PRIORITY.get(m)||0));let y=h.slice(0,l).map(m=>({pattern:new vscode.RelativePattern(s,`${m}/**/*.{md,mdx,json,jsonc,yml,yaml,ts,tsx,js,jsx}`),label:`sub:${s.name}/${m}`})).slice(0,l);n.push(...y),a-=y.length}catch{}o-=1}return n.slice(0,i)}function _addExclusionValueToSet(e,t,r={}){if(!t)return;let{onlyRootSegment:n=!1}=r,i=typeof t=="string"?t:typeof t?.toString=="function"?t.toString():"";if(!i||typeof i!="string")return;let a=i.trim();if(!a)return;let s=a.replace(/\\/g,"/").replace(/\*\*/g,"").replace(/\*/g,"").split("/").map(c=>c.trim()).filter(Boolean);if(!s.length){if(a.includes("*")||a.includes("?"))return;e.add(a.toLowerCase());return}if(n){e.add(s[0].toLowerCase());return}for(let c of s)e.add(c.toLowerCase())}function registerWatcherHandlers(e,t,r="unknown"){t&&(t.onDidChange(n=>e.W(n,"change",r)),t.onDidCreate(n=>e.W(n,"create",r)),t.onDidDelete(n=>e.W(n,"delete",r)))}function dispatchWatcherEvent(e,t,r,n="unknown"){r==="delete"?e.clearDecoration(t):e.refreshDecoration(t),e._workspaceIntelligence?.incrementalIndexer&&e._workspaceIntelligence.incrementalIndexer.queueDelta(t,r),e.Ze&&e._logger.debug(`Watcher event processed (${r}) for ${e.describeFile(t)} via ${n}`)}module.exports={performWorkspaceSizeCheck,findWorkspaceFilesWithTimeout,K:_buildSmartWatcherTargets,on:_addExclusionValueToSet,registerWatcherHandlers,dispatchWatcherEvent}});var ft=_((exports,module)=>{var vscode=require("vscode"),{DEFAULT_DYNAMIC_WATCHER_LIMIT,DEFAULT_WATCHER_INACTIVITY_MS}=I(),proc=typeof process<"u"?process:null,env=proc?.env||{},normalizePath,getUriPath;try{let e=K();e&&(normalizePath=e.normalizePath,getUriPath=e.getUriPath)}catch{}if(!normalizePath){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function")try{let e=dynamicRequire("../utils/pathUtils");normalizePath=normalizePath||e.normalizePath,getUriPath=getUriPath||e.getUriPath}catch{}}catch(e){}normalizePath||(normalizePath=(e="")=>(e||"").toString().replace(/\\/g,"/")),getUriPath||(getUriPath=(e="")=>e?typeof e=="string"?e:e?.fsPath?e.fsPath:e?.path?e.path:String(e):"")}var{getLogger}=q(),nodePath=null;try{nodePath=require("path")}catch{}var WatcherManager=class{constructor(t){this.t=t,this._logger=t._logger||getLogger(),this.s=new Set,this.h=void 0,this.T=[],this.d=new Map,this.L=null,this.E=t.E||new Map,this._smartWatcherFallbackManager=t._smartWatcherFallbackManager||null,this.ee=null,this.j="none"}setupFileWatcher(t="initial"){if(this.t._performanceMode||this.t.D){let i=this.t.D?"provider disposed":"performance mode enabled";this._logger.debug(`Skipping file watcher setup (${t}) - ${i}`);return}this.h||(this.h={pending:!0});let r=++this.t.Je;(async()=>{if(this.ee)try{await this.ee}catch(a){this._logger.debug("Previous watcher setup promise rejected",a)}let i=this.Fe(r,t);this.ee=i;try{await i}finally{this.ee===i&&(this.ee=null)}})().catch(i=>this._logger.error("Failed to configure file watchers",i))}async Fe(t,r){if(this.Ae(t))return;if(this.disposeFileWatchers({permanent:!1}),this.Ae(t))return this.Qe("post-dispose");this.h={pending:!0};let n=vscode.workspace.workspaceFolders;if(!n||n.length===0){this._logger.debug("No workspace folders detected; skipping watcher setup"),this.j="none";return}if(this.t._isWeb){this._logger.info("File watchers are unavailable in web environments; skipping watcher setup"),this.j="none";return}let i=vscode.workspace.getConfiguration("explorerDates"),a=env.EXPLORER_DATES_DISABLE_SMART_WATCHERS==="1";this.t.J=!a&&i.get("smartFileWatching",!0),this.t._enableWatcherFallbacks=this.t.J&&i.get("enableSmartWatcherFallbacks","auto");let o=i.get("smartWatcherMaxPatterns",20),s=this.t.gr(i.get("smartWatcherExtensions",[])),c=this.t.mr(o);if(this.t.bt={maxPatterns:c,extensions:s},this.Ae(t))return this.Qe("post-config");if(!this.t.J){this._logger.info("Smart file watching disabled; falling back to global watcher"),await this.Pe("disabled");return}let u=[];try{if(typeof this.t.K=="function")u=await this.t.K(n,this.t.bt);else try{let l=dt();if(l&&typeof l.K=="function")u=await l.K(this.t,n,this.t.bt);else throw new Error("_buildSmartWatcherTargets not implemented on provider or helper")}catch(l){throw l}}catch(l){this._logger.error("Smart watcher analysis failed, falling back to global watcher",l),await this.Pe("analysis-failed");return}if(this.Ae(t))return this.Qe("post-analysis");if(!u||u.length===0){this._logger.warn("Smart watcher analysis yielded no targets; falling back to global watcher"),await this.Pe("no-targets");return}for(let l of u)try{let d=await this._t(l.pattern,l.label);d&&(this.he(d,l.label),this.s.add(d))}catch(d){this._logger.debug(`Failed to create watcher for pattern ${l.label}`,d)}if(this.s.size===0){this._logger.warn("Smart watcher setup produced zero watchers; using global fallback"),await this.Pe("no-watchers-created");return}this.h=this.s.values().next().value||void 0,this.j="smart",this._logger.info(`Smart file watching enabled (${this.s.size} base watcher${this.s.size===1?"":"s"})`,{reason:r,patterns:u.map(l=>l.label)}),this.pr()}Ae(t){return!!(this.t.D||this.t._performanceMode||typeof t=="number"&&t!==this.t.Je)}Qe(t="unknown"){let r=this.t._performanceMode||this.t.D;this.disposeFileWatchers({permanent:r}),this._logger.debug(`Watcher setup aborted (${t})`,{permanentAbort:r,disposed:this.t.D,performanceMode:this.t._performanceMode})}async Z(){try{let{getFeatureFlagsGlobal:t}=G(),r=t();return(r?await r.decorationsAdvanced():null)||null}catch(t){return this._logger.debug("Failed to load decorationsAdvanced chunk",t),null}}async _t(t,r="unknown"){try{let i=await this.Z();if(i?.createWatcherWithFallback)return await i.createWatcherWithFallback(this.t,t,r)}catch(i){this._logger.debug(`Advanced watcher chunk failed for ${r}`,i)}let n=()=>{let i=this.t._enableWatcherFallbacks;if(i===!1)return!1;if(i==="auto"||i===!0){let a=proc?.platform,o=env.WSL_DISTRO_NAME||env.WSLENV,s=vscode.env.remoteName,c=env.DOCKER_CONTAINER;return o||s||c||a==="android"}return!1};try{let i=vscode.workspace.createFileSystemWatcher(t);return this._logger.debug(`Native watcher created for ${r}`),i}catch(i){return this._logger.debug(`Native watcher failed for ${r}:`,i),n()?this.yr(t,r):null}}async yr(t,r){try{let n=await this.Z();if(n?.createFallbackWatcher)return await n.createFallbackWatcher(this.t,t,r)}catch(n){this._logger.warn(`Fallback watcher creation failed for ${r}:`,n)}try{if(!this._smartWatcherFallbackManager){let{getFeatureFlagsGlobal:n}=G(),i=n(),a=i?await i.loadFeatureModule("smartWatcherFallback"):null;if(a){let{SmartWatcherFallbackManager:o}=a;this._smartWatcherFallbackManager=new o({logger:this._logger}),await this._smartWatcherFallbackManager.initialize()}}if(this._smartWatcherFallbackManager){let i=await(await this._smartWatcherFallbackManager.getFallback()).createWatcherWithFallback(t);return this._logger.debug(`Fallback watcher created for ${r}`),i}}catch(n){this._logger.warn(`Fallback watcher creation failed for ${r}:`,n)}return null}async Pe(t="global-default"){this.Et();let r=await this._t("**/*",`global:${t}`);r?(this.he(r,`global:${t}`),this.s.add(r),this.h=r,this.j="global",this._logger.info(`Global watcher activated (${t})`)):this._logger.error(`Failed to create global watcher (${t})`)}he(t,r="unknown"){t&&(t.onDidChange(n=>this.W(n,"change",r)),t.onDidCreate(n=>this.W(n,"create",r)),t.onDidDelete(n=>this.W(n,"delete",r)))}W(t,r,n="unknown"){if(!t||t.scheme!=="file"||!this.t.je(t,`watcher:${r}`)?.isValid)return;let a=this.br();if(a<=0){this.xe(t,r,n);return}let o=`${t.toString()}:${r}`,s=this.E.get(o);s&&clearTimeout(s.timer);let c=setTimeout(()=>{this.E.delete(o),this.xe(t,r,n)},a);this.E.set(o,{timer:c,source:n})}xe(t,r,n){try{this.t.Me?.(t)}catch{}r==="delete"?this.t.clearDecoration(t):this.t.refreshDecoration(t),this.t._workspaceIntelligence?.incrementalIndexer&&this.t._workspaceIntelligence.incrementalIndexer.queueDelta(t,r),this.t.Ze&&this._logger.debug(`Watcher event processed (${r}) for ${this.t.Ke(t)} via ${n}`)}br(){if(this.t._performanceMode)return 0;switch(this.t.u){case"extreme":return 600;case"large":return 250;default:return 100}}handleWorkspaceFoldersChanged(t){let r=(t?.added||[]).map(a=>a.uri).filter(Boolean),n=(t?.removed||[]).map(a=>a.uri).filter(Boolean);if(r.length===0&&n.length===0)return;let i=async()=>{this._logger.info("Workspace folders changed",{added:r.length,removed:n.length}),await this.t.checkWorkspaceSize();try{this.t.clearAllCaches()}catch{}try{this.t.refreshAll()}catch{}if(!this.t._performanceMode&&(this.setupFileWatcher("workspace-change"),await this.t.wt().catch(a=>this._logger.debug("Failed to reconfigure progressive loading after workspace change",a)),this.t._workspaceIntelligence)){let a=(vscode.workspace.workspaceFolders||[]).map(o=>({uri:o.uri}));await this.t._workspaceIntelligence.onWorkspaceFoldersChanged({added:a,removed:n.map(o=>({uri:o}))})}};this.t.C&&clearTimeout(this.t.C),this.t.C=setTimeout(()=>{this.t.C=null,i().catch(a=>this._logger.debug("Workspace folder change handling failed",a))},250)}disposeFileWatchers(t={}){let r=t.permanent===!0;if(this.s?.size){for(let n of this.s)try{n.dispose()}catch(i){this._logger.debug("Failed to dispose file watcher",i)}this.s.clear()}this.h=r?null:void 0,this.Et(),this.kt(!0),this._r(),this.j="none"}_r(){if(this.E?.size){for(let t of this.E.values())clearTimeout(t.timer);this.E.clear()}}pr(){if(!this.t.J||this.T.length>0)return;let t=(n,i)=>{let a=this.t.fe(vscode.window,n,i);a&&this.T.push(a)},r=(n,i)=>{let a=this.t.fe(vscode.workspace,n,i);a&&this.T.push(a)};t("onDidChangeVisibleTextEditors",n=>{(n||[]).forEach(i=>this.ge(i?.document?.uri,"visible-editor"))}),t("onDidChangeActiveTextEditor",n=>{this.ge(n?.document?.uri,"active-editor")}),r("onDidOpenTextDocument",n=>{this.ge(n?.uri,"open-document")}),r("onDidSaveTextDocument",n=>{this.ge(n?.uri,"save-document")}),this.Er(),this.wr()}Et(){if(this.T?.length){for(let t of this.T)try{t.dispose()}catch(r){this._logger.debug("Failed to dispose watcher listener",r)}this.T=[]}this.Dt()}sn(){if(this._smartWatcherFallbackManager){try{this._smartWatcherFallbackManager.dispose()}catch(t){this._logger.debug("Error disposing smart watcher fallback manager:",t)}this._smartWatcherFallbackManager=null}}Er(){(Array.isArray(vscode.window?.visibleTextEditors)?vscode.window.visibleTextEditors:[]).forEach(r=>this.ge(r?.document?.uri,"visible-seed"))}wr(){this.L||(this.L=setInterval(()=>this.kt(),DEFAULT_WATCHER_INACTIVITY_MS))}Dt(){this.L&&(clearInterval(this.L),this.L=null)}kt(t=!1){if(!this.d?.size)return;let r=Date.now()-DEFAULT_WATCHER_INACTIVITY_MS;for(let[n,i]of this.d.entries())if(t||i.lastUsed=DEFAULT_DYNAMIC_WATCHER_LIMIT&&this.kr();try{let o=new vscode.RelativePattern(i,"**/*"),s=vscode.workspace.createFileSystemWatcher(o),c=nodePath.basename(i)||"root";this.he(s,`dynamic:${r}:${c}`),this.d.set(i,{watcher:s,lastUsed:Date.now(),source:r})}catch(o){this._logger.debug(`Failed to create dynamic watcher for ${i}`,o)}}kr(){let t=null,r=Number.POSITIVE_INFINITY;for(let[n,i]of this.d.entries())i.lastUsed{function createViewportManager(provider){let vscode=require("vscode"),normalizePath,getUriPath;try{let e=K();e&&(normalizePath=e.normalizePath,getUriPath=e.getUriPath)}catch{}if(!normalizePath){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function")try{let e=dynamicRequire("../utils/pathUtils");normalizePath=normalizePath||e.normalizePath,getUriPath=getUriPath||e.getUriPath}catch{}}catch{}normalizePath||(normalizePath=(e="")=>(e||"").toString().replace(/\\/g,"/")),getUriPath||(getUriPath=(e="")=>e?typeof e=="string"?e:e?.fsPath?e.fsPath:e?.path?e.path:String(e):"")}class ViewportManager{constructor(){this.t=provider,this.k=new Set,this.y=new Map,this.v=[],this.me=provider.me||400,this.O=provider.O||300*1e3,this.et=Date.now()}cn(){if(this.v.length>0)return;let t=(n,i)=>{let a=this.fe(vscode.window,n,i);a&&this.v.push(a)},r=(n,i)=>{let a=this.fe(vscode.workspace,n,i);a&&this.v.push(a)};t("onDidChangeVisibleTextEditors",n=>this.Ct(n)),t("onDidChangeActiveTextEditor",n=>this.Y(n?.document?.uri,{reason:"active-editor"})),r("onDidOpenTextDocument",n=>this.Y(n?.uri,{reason:"open-document"})),r("onDidSaveTextDocument",n=>this.Y(n?.uri,{reason:"save-document"})),this.Ct(Array.isArray(vscode.window?.visibleTextEditors)?vscode.window.visibleTextEditors:[]),vscode.window?.activeTextEditor?.document?.uri&&this.Y(vscode.window.activeTextEditor.document.uri,{reason:"initial-active"})}Dr(){if(this.v?.length){for(let t of this.v)try{t.dispose()}catch(r){this.t._logger.debug("Failed to dispose viewport listener",r)}this.v=[],this.k.clear(),this.y.clear()}}Ct(t){if(this.k.clear(),!Array.isArray(t))return;let r=Date.now();for(let n of t){let i=n?.document?.uri;if(!i||i.scheme!=="file")continue;let a=normalizePath(getUriPath(i));a&&(this.k.add(a),this.y.set(a,r))}this.tt()}Y(t,r={}){if(!t||t.scheme!=="file")return;let n=normalizePath(getUriPath(t));if(!n)return;let i=Date.now();this.y.set(n,i),r.visible&&this.k.add(n),this.y.size>this.me?this.tt(!0):i-this.et>this.O&&this.tt()}tt(t=!1){let r=Date.now(),n=r-this.O*2;for(let[i,a]of this.y.entries())(t||athis.me&&a{var getFileName,normalizePath,getUriPath;try{let e=K();e&&(getFileName=e.getFileName,normalizePath=e.normalizePath,getUriPath=e.getUriPath)}catch{}if(!getFileName){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function")try{let e=dynamicRequire("../utils/pathUtils");getFileName=getFileName||e.getFileName,normalizePath=normalizePath||e.normalizePath,getUriPath=getUriPath||e.getUriPath}catch{}}catch{}getFileName||(getFileName=e=>{let t=String(e||""),r=t.replace(/\\/g,"/").lastIndexOf("/");return r===-1?t:t.substring(r+1)}),normalizePath||(normalizePath=(e="")=>(e||"").toString().replace(/\\/g,"/")),getUriPath||(getUriPath=(e="")=>e?typeof e=="string"?e:e?.fsPath?e.fsPath:e?.path?e.path:String(e):"")}var VIEWPORT_DEFAULT_WINDOW_MS=300*1e3,VIEWPORT_STANDARD_WINDOW_MS=600*1e3,VIEWPORT_MINIMAL_WINDOW_MS=900*1e3,DEFAULT_SMART_WATCHER_EXTENSIONS=["ts","tsx","js","jsx","mjs","cjs","mts","cts","vue","py","go","rb","rs","java","kt","swift","cs","cpp","c","php","scala","sql","md","mdx","json","jsonc","yml","yaml","toml","ini","txt","html","css","scss"],SMART_WATCHER_PRIORITY=new Map([["src",100],["app",95],["apps",95],["packages",90],["services",85],["service",80],["client",75],["clients",70],["server",70],["servers",65],["lib",65],["libs",60],["api",60],["apis",60],["components",55],["modules",55],["feature",50],["features",50],["extensions",45],["scripts",45],["tools",45],["examples",40],["docs",35],["config",35],["test",30],["tests",30],["spec",30],["specs",30],["demo",25],["demos",25]]);function basename(e){if(!e)return"";try{return require("path").basename(e)}catch{let t=e.replace(/\\/g,"/"),r=t.lastIndexOf("/");return r===-1?t:t.substring(r+1)}}function dirname(e){if(!e)return".";try{return require("path").dirname(e)}catch{let t=e.replace(/\\/g,"/"),r=t.lastIndexOf("/");return r===-1?".":t.substring(0,r)}}function describeFile(e=""){try{let t=typeof e=="string"?e:getUriPath(e),r=normalizePath(t);return getFileName(r)||r||"unknown"}catch{return"unknown"}}function getNormalizedPathsFromEditors(e){let t=Date.now();if(!Array.isArray(e))return[];let r=[];for(let n of e){let i=n?.document?.uri;if(!i||i.scheme!=="file")continue;let a=normalizePath(getUriPath(i));a&&r.push({path:a,ts:t})}return r}function keysToTrimViewportHistory(e,t,r,n=!1,i=Date.now()){let a=i-t*2,o=[];for(let[s,c]of e)(n||cr&&c({value:d,key:h?`badge:${t||"default"}:${h}`:null});switch(t){case"relative-short":case"relative-long":return a<1?l("\u25CF\u25CF","just"):a<60?l(`${Math.min(a,99)}m`,`m:${Math.min(a,99)}`):o<24?l(`${Math.min(o,23)}h`,`h:${Math.min(o,23)}`):s<7?l(`${s}d`,`d:${s}`):c<4?l(`${c}w`,`w:${c}`):u<12?l(`${u}M`,`M:${u}`):l("1y","y:1");case"absolute-short":case"absolute-long":{let d=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],h=e instanceof Date?e.getDate():new Date(e).getDate(),g=`${d[e instanceof Date?e.getMonth():new Date(e).getMonth()]}${h<10?"0"+h:h}`,y=`abs:${e instanceof Date?e.getMonth():new Date(e).getMonth()}-${h}`;return l(g,y)}case"technical":return a<60?l(`${a}m`,`tech:m:${a}`):o<24?l(`${o}h`,`tech:h:${o}`):l(`${s}d`,`tech:d:${s}`);case"minimal":return o<1?l("\u2022\u2022","min:now"):o<24?l("\u25CB\u25CB","min:hours"):l("\u2500\u2500","min:days");default:return a<60?l(`${a}m`,`smart:m:${a}`):o<24?l(`${o}h`,`smart:h:${o}`):l(`${s}d`,`smart:d:${s}`)}}module.exports={VIEWPORT_DEFAULT_WINDOW_MS,VIEWPORT_STANDARD_WINDOW_MS,VIEWPORT_MINIMAL_WINDOW_MS,DEFAULT_SMART_WATCHER_EXTENSIONS,SMART_WATCHER_PRIORITY,FILE_TYPE_COLOR_MAP,COLOR_ENHANCEMENT_MAP,getFileTypeColorMap,getColorEnhancementMap,getNormalizedPathsFromEditors,keysToTrimViewportHistory,computeReadableDescriptor,formatDateBadge,basename,dirname,describeFile}});var Pr=_((exports,module)=>{var vscode=null;try{vscode=require("vscode")}catch{}var proc=typeof process<"u"?process:null,env=proc?.env||{},{getFeatureFlagsGlobal}=G(),featureFlags=getFeatureFlagsGlobal(),FEATURE_LEVELS=["full","enhanced","standard","minimal"];if(!featureFlags)throw new Error("Explorer Dates: feature flags bridge unavailable for decorationsAdvanced chunk");function tryLoadChunk(...names){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function")for(let e of names)try{let t=dynamicRequire(e);if(t)return t}catch{}}catch{}return null}async function loadBatchProcessorIfNeeded(provider){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=dynamicRequire("./decoration-batch-chunk");if(e&&typeof e.loadBatchProcessorIfNeeded=="function")return await e.loadBatchProcessorIfNeeded(provider)}}catch(e){provider._logger?.debug?.("Delegated loadBatchProcessorIfNeeded failed",e)}return provider._logger?.debug?.("BatchProcessor not available (fallback)"),null}async function deferPreloads(e){try{Promise.resolve().then(()=>R(Ar())).then(t=>{try{e.rt=t.createViewportManager?.(e)||null}catch(r){e._logger?.debug?.("Failed to init viewport manager",r)}}).catch(t=>e._logger?.debug?.("Failed to load viewport manager chunk",t)),Promise.resolve().then(()=>R(ot())).then(t=>{try{let r=t.getLocalization();e.p.getString=(...i)=>r.getString(...i),e.p.formatDate=(...i)=>r.formatDate(...i),e.p.getCurrentLocale=()=>r.getCurrentLocale();let n=e.p.dispose;e.p.dispose=()=>{try{r.dispose()}catch{}n()}}catch{}}).catch(()=>{}),Promise.resolve().then(()=>R(st())).then(t=>{try{e.yt=t.createDecorationLogic?.(e)||null}catch(r){e._logger?.debug?.("Failed to initialize decoration logic chunk",r)}}).catch(t=>e._logger?.debug?.("Failed to load decoration logic chunk",t)),Promise.resolve().then(()=>R(Ce())).then(t=>{try{e.dr=t.createDecorationProviderHelpers?.(e)||null}catch(r){e._logger?.debug?.("Failed to initialize decoration provide chunk",r)}}).catch(t=>e._logger?.debug?.("Failed to load decoration provide chunk",t)),e._logger?.debug?.("Deferred preloads scheduled")}catch(t){e._logger?.debug?.("deferPreloads failed",t)}}async function getCachedDecoration(provider,cacheKey,fileLabel){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function")try{let e=dynamicRequire("./decoration-cache-chunk");if(e&&typeof e.getCachedDecoration=="function")return await e.getCachedDecoration(provider,cacheKey,fileLabel)}catch{}if(provider.G)return provider._logger?.debug?.(`\u26A0\uFE0F Cache bypass enabled - recalculating decoration for: ${fileLabel}`),null;if(provider._advancedCache)try{let e=await provider._advancedCache.get(cacheKey);if(e)return provider._metrics.cacheHits++,provider._logger?.debug?.(`\u{1F9E0} Advanced cache hit for: ${fileLabel}`),e}catch(e){provider._logger?.debug?.(`Advanced cache error: ${e.message}`)}if(!provider.e||typeof provider.e.get!="function")return provider._logger?.debug?.("getCachedDecoration: no memory cache available, falling back"),null;let memoryEntry=provider.e.get(cacheKey);if(memoryEntry){if(memoryEntry.forceRefresh){try{provider.e.delete(cacheKey)}catch{}provider._logger?.debug?.(`\u{1F6AB} Memory cache bypassed (forced refresh) for: ${fileLabel}`)}else if(Date.now()-memoryEntry.timestampprovider.l&&typeof provider.e.enforceLimit=="function"&&provider.e.enforceLimit(provider.l,provider._logger)}catch{}let cacheEntry={decoration,timestamp:Date.now()};resourceUri&&(cacheEntry.uri=resourceUri);try{provider.e.set(cacheKey,cacheEntry)}catch{}try{typeof provider.ce=="function"&&provider.ce()}catch(e){provider._logger?.debug?.("monitorCachePressure from store failed",e)}if(provider._advancedCache)try{await provider._advancedCache.set(cacheKey,decoration,{ttl:provider.S}),provider._logger?.debug?.(`\u{1F9E0} Stored in advanced cache: ${fileLabel}`)}catch(e){provider._logger?.debug?.(`Failed to store in advanced cache: ${e.message}`)}try{typeof provider.le=="function"&&provider.le()}catch(e){provider._logger?.debug?.("maybeExtendCacheTimeout from store failed",e)}}catch(e){provider._logger?.debug?.("storeDecorationInCache failed",e)}}function cancelProgressiveWarmupJobs(provider){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=dynamicRequire("./decoration-batch-chunk");if(e&&typeof e.cancelProgressiveWarmupJobs=="function")return e.cancelProgressiveWarmupJobs(provider)}}catch(e){provider._logger?.debug?.("Delegated cancelProgressiveWarmupJobs failed",e)}try{let e=provider._progressiveLoadingJobs;e&&typeof e.clear=="function"&&e.clear()}catch(e){provider._logger?.debug?.("Fallback cancel failed",e)}}async function applyProgressiveLoadingSetting(provider){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=dynamicRequire("./decoration-batch-chunk");if(e&&typeof e.applyProgressiveLoadingSetting=="function")return e.applyProgressiveLoadingSetting(provider)}}catch(e){provider._logger?.debug?.("Delegated applyProgressiveLoadingSetting failed",e)}provider._logger?.debug?.("applyProgressiveLoadingSetting fallback invoked (no batch chunk)")}async function initializeAdvancedSystems(e,t){try{if(e._extensionContext=t,e._isWeb&&await e._maybeWarnAboutGitLimitations?.(),e._performanceMode){e._logger?.info?.("Performance mode enabled - skipping advanced cache, batch processor, and progressive loading");return}let r=await featureFlags.advancedCache();if(r){let i=null;if(typeof r=="function")if(r.name==="createAdvancedCache")e._advancedCache=r(t),await e._advancedCache.initialize(),e._logger?.info?.("Advanced cache initialized via factory function");else try{e._advancedCache=new r(t),await e._advancedCache.initialize(),e._logger?.info?.("Advanced cache initialized via direct constructor")}catch(a){e._logger?.warn?.("Failed to instantiate AdvancedCache via direct constructor, disabling advanced cache:",a.message),e._advancedCache=null}else r.AdvancedCache?(i=r.AdvancedCache,e._advancedCache=new i(t),await e._advancedCache.initialize(),e._logger?.info?.("Advanced cache initialized via module property")):r.createAdvancedCache?(e._advancedCache=r.createAdvancedCache(t),await e._advancedCache.initialize(),e._logger?.info?.("Advanced cache initialized via module factory")):(e._logger?.warn?.("AdvancedCache module format not recognized, disabling advanced cache"),e._advancedCache=null)}else e._logger?.info?.("Advanced cache disabled by feature flag"),e._advancedCache=null;await applyProgressiveLoadingSetting(e),e._batchProcessor&&(e._batchProcessor.initialize(),e._logger?.info?.("Batch processor initialized"));try{let i=tryLoadChunk("./decoration-workspace-intel-chunk","./decorationWorkspaceIntel","./decorationWorkspaceIntel.js","./decoration-workspace-intel-chunk.js");i&&typeof i.initializeWorkspaceIntelligence=="function"?await i.initializeWorkspaceIntelligence(e,t):e._logger?.info?.("Workspace intelligence not initialized (no chunk)")}catch(i){e._logger?.warn?.("Delegated workspace intelligence initialization failed",i?.message||String(i)),e._workspaceIntelligence=null}vscode.workspace.getConfiguration("explorerDates").get("autoThemeAdaptation",!0)&&e._themeIntegration?.autoConfigureForTheme&&(await e._themeIntegration.autoConfigureForTheme(),e._logger?.info?.("Theme integration configured")),e._accessibility?.shouldEnhanceAccessibility?.()&&(await e._accessibility.applyAccessibilityRecommendations?.(),e._logger?.info?.("Accessibility recommendations applied")),e._allocationTelemetryEnabled&&(scheduleTelemetryReport(e),e._logger?.info?.("Allocation telemetry enabled - reports every",e._telemetryReportInterval,"ms")),e._logger?.info?.("Advanced systems initialized successfully")}catch(r){e._logger?.error?.("Failed to initialize advanced systems",r)}}function shouldUseFallbackWatcher(e){return e._enableWatcherFallbacks===!1?!1:e._enableWatcherFallbacks==="auto"||e._enableWatcherFallbacks===!0?isPlatformFallbackRequired():!1}function isPlatformFallbackRequired(){let e=proc?.platform,t=env.WSL_DISTRO_NAME||env.WSLENV,r=vscode.env.remoteName,n=env.DOCKER_CONTAINER;return t||r||n||e==="android"}async function createFallbackWatcher(e,t,r){try{if(!e._smartWatcherFallbackManager){let n=await featureFlags.loadFeatureModule("smartWatcherFallback");if(n){let{SmartWatcherFallbackManager:i}=n;e._smartWatcherFallbackManager=new i({logger:e._logger}),await e._smartWatcherFallbackManager.initialize()}}if(e._smartWatcherFallbackManager){let i=await(await e._smartWatcherFallbackManager.getFallback()).createWatcherWithFallback(t);return e._logger?.debug?.(`Fallback watcher created for ${r}`),i}}catch(n){e._logger?.warn?.(`Fallback watcher creation failed for ${r}:`,n)}return null}async function createWatcherWithFallback(e,t,r="unknown"){try{let n=vscode.workspace.createFileSystemWatcher(t);return e._logger?.debug?.(`Native watcher created for ${r}`),n}catch(n){if(e._logger?.debug?.(`Native watcher failed for ${r}:`,n),!shouldUseFallbackWatcher(e))throw n;return createFallbackWatcher(e,t,r)}}async function ensureWatcherManager(e){try{if(e.f)return e.f;try{let t=await Promise.resolve().then(()=>R(ft()));return e.f=t.createWatcherManager(e),e.f}catch(t){e._logger?.debug?.("Failed to load watcher manager chunk from advanced chunk",t)}}catch(t){e._logger?.debug?.("ensureWatcherManager failed",t)}return null}async function setupFileWatcher(e,t="initial"){try{let r=await ensureWatcherManager(e);if(r&&typeof r.setupFileWatcher=="function")return r.setupFileWatcher(t)}catch(r){e._logger?.debug?.("setupFileWatcher failed in advanced chunk",r)}try{let r=createWatcherWithFallback(e,"**/*",`global:${t}`);if(r)return e.s||(e.s=new Set),e.s.add(r),e._logger?.info?.("Global watcher activated (fallback)",{reason:t}),r}catch(r){e._logger?.debug?.("setupFileWatcher fallback failed",r)}return null}function registerWatcherHandlers(e,t,r="unknown"){try{let n=e.f||null;if(n&&typeof n.he=="function")return n.he(t,r)}catch(n){e._logger?.debug?.("Watcher manager register watcher handlers failed (advanced)",n)}try{if(!t)return;t.onDidChange(n=>e.W(n,"change",r)),t.onDidCreate(n=>e.W(n,"create",r)),t.onDidDelete(n=>e.W(n,"delete",r))}catch(n){e._logger?.debug?.("registerWatcherHandlers fallback failed",n)}}function dispatchWatcherEvent(e,t,r,n){try{let i=e.f||null;if(i&&typeof i.xe=="function")return i.xe(t,r,n)}catch(i){e._logger?.debug?.("Watcher manager dispatch watcher event failed (advanced)",i)}try{try{e.Me?.(t)}catch{}r==="delete"?e.clearDecoration(t):e.refreshDecoration(t),e._workspaceIntelligence?.incrementalIndexer&&e._workspaceIntelligence.incrementalIndexer.queueDelta(t,r),e.Ze&&e._logger?.debug?.(`Watcher event processed (${r}) for ${e.describeFile(t)} via ${n}`)}catch(i){e._logger?.debug?.("dispatchWatcherEvent fallback failed",i)}}function buildSummaryTooltip(e,{filePath:t,stat:r,badgeDetails:n}){try{let i=tryLoadChunk("./decoration-formatters-chunk","./decorationFormatters","./decoration-formatters-chunk.js","./decorationFormatters.js","./decoration-helpers-chunk","./decorationHelpers","./decoration-helpers","./decoration-helpers-chunk.js","./decorationHelpers.js");if(i&&typeof i.buildSummaryTooltip=="function")return i.buildSummaryTooltip(e,{filePath:t,stat:r,badgeDetails:n})}catch(i){e._logger?.debug?.("Delegated buildSummaryTooltip failed",i)}try{let i=[];n?.readableModified&&i.push(`Modified ${n.readableModified}`);let a=n?.fileSizeLabel||(r?.size?e.gt(r.size,"auto"):null);return a&&i.push(a),`${typeof e.describeFile=="function"?e.describeFile(t):t} \u2014 ${i.filter(Boolean).join(" \u2022 ")||e.Cr(r?.mtime||new Date)}`}catch(i){return e._logger?.debug?.("buildSummaryTooltip failed",i),`${typeof e.describeFile=="function"?e.describeFile(t):t} \u2014 ${e.Cr(r?.mtime||new Date)}`}}function formatDateReadable(e,t){try{let r=tryLoadChunk("./decoration-formatters-chunk","./decorationFormatters","./decoration-formatters-chunk.js","./decorationFormatters.js","./decoration-helpers-chunk","./decorationHelpers","./decoration-helpers","./decoration-helpers-chunk.js","./decorationHelpers.js");if(r&&typeof r.formatDateReadable=="function")return r.formatDateReadable(e,t)}catch(r){e._logger?.debug?.("Delegated formatDateReadable failed",r)}try{let r=new Date,n=r.getTime()-t.getTime(),i=Math.floor(n/(1e3*60)),a=Math.floor(n/(1e3*60*60)),o=Math.floor(n/(1e3*60*60*24)),s=e.ln(t,r,i,a,o);return s?e.er(e.N,e.Ie,e.Sr,s.key,s.factory,e.Tr):t.getFullYear()===r.getFullYear()?e.p.formatDate(t,{month:"short",day:"numeric"}):e.p.formatDate(t,{month:"short",day:"numeric",year:"numeric"})}catch(r){return e._logger?.debug?.("formatDateReadable failed",r),e.p.formatDate(t)}}async function getGitBlameInfo(e,t,r=null){if(env.DISABLE_GIT_FEATURES==="1"||e.un)return null;try{let n=await featureFlags.gitInsights();return!n||typeof n.getGitBlameInfo!="function"?null:await n.getGitBlameInfo(t,r)}catch(n){return e._logger?.warn?.("Git blame lookup failed",{filePath:t,message:n?.message||String(n)}),null}}async function findWorkspaceFilesWithTimeout(provider,maxResults){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=dynamicRequire("./workspace-scan-chunk");if(e&&typeof e.findWorkspaceFilesWithTimeout=="function")return e.findWorkspaceFilesWithTimeout(provider,maxResults)}}catch(e){provider._logger?.debug?.("Delegated findWorkspaceFilesWithTimeout failed",e)}try{return require("vscode").workspace.findFiles("**/*",null,maxResults)}catch(e){return provider._logger?.warn?.("Workspace scan fallback failed",e),null}}function startWorkspaceScanWatchdog(provider){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=dynamicRequire("./workspace-scan-chunk");if(e&&typeof e.startWorkspaceScanWatchdog=="function")return e.startWorkspaceScanWatchdog(provider)}}catch(e){provider._logger?.debug?.("Delegated startWorkspaceScanWatchdog failed",e)}return Promise.resolve()}function clearWorkspaceScanWatchdog(provider){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=dynamicRequire("./workspace-scan-chunk");if(e&&typeof e.clearWorkspaceScanWatchdog=="function")return e.clearWorkspaceScanWatchdog(provider)}}catch(e){provider._logger?.debug?.("Delegated clearWorkspaceScanWatchdog failed",e)}provider.te&&(clearTimeout(provider.te),provider.te=null)}async function performWorkspaceSizeCheck(provider){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=dynamicRequire("./workspace-scan-chunk");if(e&&typeof e.performWorkspaceSizeCheck=="function")return e.performWorkspaceSizeCheck(provider)}}catch(e){provider._logger?.debug?.("Delegated performWorkspaceSizeCheck failed",e)}try{let e=require("vscode"),t=e.workspace.workspaceFolders;if(!t||t.length===0)return;provider._logger?.info?.("Checking workspace size (fallback, fast)");let r=await(e.workspace.findFiles?e.workspace.findFiles("**/*",null,1e3):[]),n=Array.isArray(r)?r.length:0;provider.Ge=n,provider.u=n>1e5?"extreme":n>1e4?"large":"normal",provider.Xe(provider.Ye(),"workspace-scale-change-fallback")}catch(e){provider._logger?.debug?.("performWorkspaceSizeCheck fallback failed",e)}}function getInitials(e,t){try{let n=tryLoadChunk("./decoration-formatters-chunk","./decorationFormatters","./decoration-formatters-chunk.js","./decorationFormatters.js","./decoration-helpers-chunk","./decorationHelpers","./decoration-helpers","./decoration-helpers-chunk.js","./decorationHelpers.js");if(n&&typeof n.getInitials=="function")return n.getInitials(e,t)}catch(n){e._logger?.debug?.("Delegated getInitials failed",n)}if(e.pe&&typeof e.pe.getInitials=="function")return e.pe.getInitials(t);if(!t||typeof t!="string")return null;let r=t.trim().split(/\s+/).filter(Boolean);return r.length===0?null:r.length===1?r[0].substring(0,2).toUpperCase():(r[0][0]+(r[1][0]||"")).substring(0,2).toUpperCase()}function formatCompactSize(e,t){try{let r=tryLoadChunk("./decoration-formatters-chunk","./decorationFormatters","./decoration-formatters-chunk.js","./decorationFormatters.js","./decoration-helpers-chunk","./decorationHelpers","./decoration-helpers","./decoration-helpers-chunk.js","./decorationHelpers.js");if(r&&typeof r.formatCompactSize=="function")return r.formatCompactSize(e,t)}catch(r){e._logger?.debug?.("Delegated formatCompactSize failed",r)}try{if(typeof t!="number"||isNaN(t))return null;let r=["B","K","M","G","T"],n=0,i=t;for(;i>=1024&&n=2?s.slice(0,2):s}catch(r){return e._logger?.debug?.("formatCompactSize failed",r),null}}function formatFullDate(e,t){try{let r=tryLoadChunk("./decoration-formatters-chunk","./decorationFormatters","./decoration-formatters-chunk.js","./decorationFormatters.js","./decoration-helpers-chunk","./decorationHelpers","./decoration-helpers","./decoration-helpers-chunk.js","./decorationHelpers.js");if(r&&typeof r.formatFullDate=="function")return r.formatFullDate(e,t)}catch(r){e._logger?.debug?.("Delegated formatFullDate failed",r)}try{let r={year:"numeric",month:"long",day:"numeric",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:"short"};return t.toLocaleString("en-US",r)}catch(r){return e._logger?.debug?.("formatFullDate failed",r),t.toString()}}function scheduleTelemetryReport(e){try{let t=tryLoadChunk("./decoration-telemetry-chunk","./decorationTelemetry","./decorationTelemetry.js","./decoration-telemetry-chunk.js");if(t&&typeof t.scheduleTelemetryReport=="function")return t.scheduleTelemetryReport(e)}catch(t){e._logger?.debug?.("Delegated scheduleTelemetryReport failed",t)}!e._allocationTelemetryEnabled||e._telemetryReportTimer||(e._telemetryReportTimer=setTimeout(()=>{e._telemetryReportTimer=null,reportAllocationTelemetry(e),scheduleTelemetryReport(e)},e._telemetryReportInterval))}function reportAllocationTelemetry(e){try{let i=ct();if(i&&typeof i.reportAllocationTelemetry=="function")return i.reportAllocationTelemetry(e)}catch(i){e._logger?.debug?.("Delegated reportAllocationTelemetry failed",i)}let t=e.getMetrics().allocationTelemetry,r=t.decorationPool.allocations+t.badgeFlyweight.allocations+t.readableFlyweight.allocations,n=t.decorationPool.reuses+t.badgeFlyweight.reuses+t.readableFlyweight.reuses;(r>0||n>0)&&e._logger?.info?.("\u{1F9EE} Allocation telemetry report",{timestamp:new Date().toISOString(),pool:{allocations:t.decorationPool.allocations,reuses:t.decorationPool.reuses,reuseRate:t.decorationPool.reusePercent+"%"},badgeFlyweight:{allocations:t.badgeFlyweight.allocations,reuses:t.badgeFlyweight.reuses,reuseRate:t.badgeFlyweight.reusePercent+"%"},readableFlyweight:{allocations:t.readableFlyweight.allocations,reuses:t.readableFlyweight.reuses,reuseRate:t.readableFlyweight.reusePercent+"%"},summary:{totalAllocations:r,totalReuses:n,overallReuseRate:r+n>0?(n/(r+n)*100).toFixed(1)+"%":"0%"},decorationsProcessed:e._metrics.totalDecorations,cacheHitRate:e.getMetrics().cacheHitRate})}function setupPeriodicRefresh(e){try{let t=vscode.workspace.getConfiguration("explorerDates"),r=t.get("badgeRefreshInterval",6e4),n=e.F||r;if(e.A=n,e._logger?.info?.(`Setting up periodic refresh with interval: ${e.A}ms`),e.a&&(clearInterval(e.a),e.a=null),e.i&&e.i.size){for(let i of e.i)clearTimeout(i);e.i.clear()}if(!t.get("showDateDecorations",!0)){e._logger?.info?.("Decorations disabled, skipping periodic refresh setup");return}e.a=setInterval(()=>{if(e.R){e._logger?.debug?.("Periodic refresh skipped - incremental refresh already running");return}e._logger?.debug?.("Periodic refresh triggered - scheduling incremental refresh"),scheduleIncrementalRefresh(e,"periodic")},e.A),e._logger?.info?.("Periodic refresh timer started")}catch(t){e._logger?.debug?.("Failed to setup periodic refresh",t)}}function cancelIncrementalRefreshTimers(provider){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=dynamicRequire("./decoration-refresh-chunk");if(e&&typeof e.cancelIncrementalRefreshTimers=="function")return e.cancelIncrementalRefreshTimers(provider)}}catch(e){provider._logger?.debug?.("Delegated cancelIncrementalRefreshTimers failed",e)}if(!(!provider.i||provider.i.size===0)){for(let e of provider.i)clearTimeout(e);provider.i.clear(),provider.R=!1}}function scheduleIncrementalRefresh(provider,reason="manual"){try{if(!provider.e||typeof provider.e.entries!="function"){provider._logger?.debug?.("scheduleIncrementalRefresh: missing or invalid memory cache, firing global refresh");try{provider.m.fire(void 0)}catch{}return}let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=dynamicRequire("./decoration-refresh-chunk");if(e&&typeof e.scheduleIncrementalRefresh=="function")return e.scheduleIncrementalRefresh(provider,reason)}}catch(e){provider._logger?.debug?.("Delegated scheduleIncrementalRefresh failed",e)}provider._logger?.debug?.("scheduleIncrementalRefresh fallback invoked");try{provider.m.fire(void 0)}catch{}}function markCacheEntryForRefresh(provider,cacheKey){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=dynamicRequire("./decoration-refresh-chunk");if(e&&typeof e.markCacheEntryForRefresh=="function")return e.markCacheEntryForRefresh(provider,cacheKey)}}catch(e){provider._logger?.debug?.("Delegated markCacheEntryForRefresh failed",e)}if(!cacheKey)return;if(!provider.e||typeof provider.e.get!="function")provider._logger?.debug?.("markCacheEntryForRefresh: no memory cache available, skipping");else{let e=provider.e.get(cacheKey);e&&Date.now()-e.timestamp>provider.S*.75&&(e.forceRefresh=!0)}if(provider._advancedCache)try{provider._advancedCache.invalidateByPattern(cacheKey.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"))}catch(e){provider._logger?.debug?.(`Could not invalidate advanced cache for ${cacheKey}: ${e.message}`)}function maybeShedWorkload(provider){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=dynamicRequire("./decoration-memory-chunk");if(e&&typeof e.maybeShedWorkload=="function")return e.maybeShedWorkload(provider)}}catch(e){provider._logger?.debug?.("Delegated maybeShedWorkload failed",e)}try{if(!provider.St||provider.Tt)return;let e=(()=>{try{return proc?.memoryUsage?proc.memoryUsage().heapUsed/1024/1024:0}catch{return 0}})();if(!e)return;if(!provider.ye){provider.ye=e,provider.re=0,provider.be=!1;return}let t=e-provider.ye;if(t>=provider.vt?(provider.re++,provider.re>=2&&!provider.be&&(provider.be=!0,provider._logger?.warn?.("Memory pressure warning (soft threshold exceeded twice)",{deltaMB:Number(t.toFixed(2)),baselineMB:provider.ye,heapMB:e,rssMB:(()=>{try{return proc?.memoryUsage?proc.memoryUsage().rss/1024/1024:0}catch{return 0}})(),cacheSize:provider.e.size,cacheLimit:provider.l}))):provider.re>0&&(provider.re=0,t=provider.Ft){provider.Tt=!0,provider.l=Math.min(provider.l,provider.vr),provider.F=Math.max(provider.F||provider.A||provider.At,provider.At);let r=(()=>{try{return proc?.memoryUsage?proc.memoryUsage().rss/1024/1024:0}catch{return 0}})(),n={timestamp:new Date().toISOString(),deltaMB:Number(t.toFixed(2)),baselineMB:provider.ye,heapMB:e,rssMB:r,cacheSize:provider.e.size,maxCacheSize:provider.l,watcherStrategy:provider.j,staticWatchers:provider.s.size,dynamicWatchers:provider.d.size};provider.nt.push(n),provider.nt.length>10&&provider.nt.shift(),provider._logger?.warn?.(`Memory shedding activated (delta ${t.toFixed(2)} MB >= ${provider.Ft} MB); cache size capped at ${provider.l} and refresh interval stretched to ${provider.F}ms`,n),setupPeriodicRefresh(provider),provider.be=!1,provider.re=0}}catch(e){provider._logger?.debug?.("maybeShedWorkload failed",e)}}function monitorCachePressure(e){try{if(!e.l||e.l<=0)return;let t=e.e.size/e.l;t>=e.Rt?e.it||(e.it=!0,e._logger?.infoWithOptions?.({throttleKey:"cache-pressure",intervalMs:6e4},`Decoration cache usage is at ${(t*100).toFixed(1)}% of capacity`,{cacheSize:e.e.size,maxCacheSize:e.l})):t0&&e.e.clear();try{typeof e.Fr=="function"&&e.Fr(t)}catch{}e.I.size>0&&(e.I.clear(),e.Se.length=0),e.N.size>0&&(e.N.clear(),e.Ie.length=0),e._logger?.debug?.(`\u{1F9FD} Purged lightweight caches (${t})`)}catch(r){e._logger?.debug?.("purgeLightweightCaches failed",r)}}async function togglePerformanceMode(e,t,{reason:r="unspecified",refresh:n=!0}={}){if(t!==e._performanceMode){if(e._performanceMode=t,e._logger?.info?.(`Performance mode ${t?"enabled":"disabled"} (${r})`),t)e.ot?.({permanent:!0}),e._logger?.info?.("File watchers disabled for performance mode"),e.a&&(clearInterval(e.a),e.a=null,e._logger?.info?.("Periodic refresh disabled for performance mode"));else{try{e.Q?.("performance-mode-toggle"),e._logger?.info?.("File watchers enabled (performance mode off)")}catch{}e.a||(e._e?.(),e._logger?.info?.("Periodic refresh enabled (performance mode off)"))}if(n)try{e.refreshAll?.({reason:"performance-mode-change"})}catch(i){e._logger?.debug?.("refreshAll after performance toggle failed",i)}if(t)e._workspaceIntelligence?.dispose&&(e._workspaceIntelligence.dispose(),e._workspaceIntelligence=null);else if(!e._workspaceIntelligence)try{let{getFeatureFlagsGlobal:i}=G(),a=i(),o=a?await a.workspaceIntelligence():null;if(o){let{WorkspaceIntelligenceManager:s}=o;e._workspaceIntelligence=new s(e._fileSystem),await e._workspaceIntelligence.initialize({batchProcessor:e._batchProcessor,enableProgressiveAnalysis:e._shouldEnableProgressiveAnalysis?.()});let c=require("vscode").workspace.workspaceFolders;c?.length&&await e._workspaceIntelligence.analyzeWorkspace(c,{maxFiles:e._getIndexerMaxFiles?.()})}}catch(i){e._logger?.debug?.("Workspace intelligence reinitialization failed after performance mode toggle",i)}}}function applyPerformanceProfile(e,t,r="unspecified"){try{let n=t?.level||e.B;e.hn=!1;let i=computeEffectivePerformanceMode(e);if(i!==e._performanceMode&&(e._logger?.debug?.("Auto performance mode update",{reason:r,featureLevel:n,workspaceScale:e.u,desiredPerformanceMode:i}),togglePerformanceMode(e,i,{reason:`${r}-auto`,refresh:!0}).catch(a=>e._logger?.debug?.("Failed to toggle performance mode automatically",a))),applyConcurrencyLimit(e,r),!e._performanceMode&&(e.u==="large"||e.u==="extreme")){let a={...e.P,applyBackgroundLimits:!0,backgroundTooltipMode:e.P?.backgroundTooltipMode==="rich"?"summary":e.P?.backgroundTooltipMode};e.P=a}if(!e._performanceMode){let a=getRefreshIntervalForScale(e),o=a!==null&&a!==e.F,s=a===null&&e.F!==null;o?(e.F=a,e._e?.()):s&&(e.F=null,e._e?.())}}catch(n){e._logger?.debug?.("applyPerformanceProfile failed",n)}}function getRefreshIntervalForScale(e){return e.u==="extreme"?6e5:e.u==="large"?18e4:null}function getSmartWatcherDefaults(){try{let e=Rr();return{DEFAULT_SMART_WATCHER_EXTENSIONS:e.DEFAULT_SMART_WATCHER_EXTENSIONS,SMART_WATCHER_PRIORITY:e.SMART_WATCHER_PRIORITY}}catch{return{DEFAULT_SMART_WATCHER_EXTENSIONS:["js","ts","json","md","py","java"],SMART_WATCHER_PRIORITY:new Map([["src",100],["lib",65],["test",30]])}}}function computeEffectivePerformanceMode(e){return e.Ar===!0?!0:e.Ar===!1?!1:e.u==="extreme"}function applyConcurrencyLimit(e,t="unspecified"){let r=e.ue,n=e.Rr?e.Rr():e.st||8;e.ue=Math.max(1,Math.min(n,e.st||8)),e._logger?.info?.(`Adjusted concurrency cap ${r} -> ${e.ue} (${t})`,{workspaceScale:e.u,performanceMode:e._performanceMode})}function _buildFeatureProfile(e,t="full"){let r=FEATURE_LEVELS.includes(t)?t:"full";switch(r){case"enhanced":return{level:r,enableGit:!0,enableProgressiveAnalysis:!0,applyBackgroundLimits:!1,backgroundTooltipMode:"rich",viewportWindowMs:6e4};case"standard":return{level:r,enableGit:!0,enableProgressiveAnalysis:!1,applyBackgroundLimits:!0,backgroundTooltipMode:"summary",viewportWindowMs:48e4};case"minimal":return{level:r,enableGit:!1,enableProgressiveAnalysis:!1,applyBackgroundLimits:!0,backgroundTooltipMode:"summary",viewportWindowMs:12e4};default:return{level:r,enableGit:!0,enableProgressiveAnalysis:!1,applyBackgroundLimits:!1,backgroundTooltipMode:"rich",viewportWindowMs:3e5}}}function applyFeatureLevel(e,t,r="unspecified"){if(!t)return!1;FEATURE_LEVELS.includes(t)||(t="full");let n=e.B!==t||!e.P;e.B=t;let i=n?_buildFeatureProfile(e,t):e.P||_buildFeatureProfile(e,t);return e.P=i,e.O=i.viewportWindowMs,n&&e._logger?.info?.(`Feature level set to "${t}" (${r})`,{viewportWindowMs:e.O,applyBackgroundLimits:i.applyBackgroundLimits,backgroundTooltipMode:i.backgroundTooltipMode}),e._performanceMode?e._logger?.info?.("Performance mode active - skipping feature profile application"):(i.applyBackgroundLimits&&e.dn?.(r),i.backgroundTooltipMode&&e._logger?.info?.("Configuring background tooltip behavior as part of feature profile",{mode:i.backgroundTooltipMode}),i.enableProgressiveAnalysis&&e._logger?.info?.("Progressive analysis enabled by feature profile")),n}function maybePurgeLightweightCaches(e){try{if(!e.at)return;if(e.Pt<=0){purgeLightweightCaches(e,"lightweight-interval");return}let t=e._metrics?.totalDecorations||0;t>0&&t%e.Pt===0&&purgeLightweightCaches(e,"lightweight-interval")}catch(t){e._logger?.debug?.("maybePurgeLightweightCaches failed",t)}}function _getFlyweightValueImpl(cache,order,limit,key,factory,statsTracker){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=dynamicRequire("./decoration-pool-chunk");if(e&&typeof e.xt=="function")return e.xt(cache,order,limit,key,factory,statsTracker)}}catch{}try{return factory()}catch{return null}}function acquireDecorationFromPoolImpl({badge,tooltip,color},createFileDecoration){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=dynamicRequire("./decoration-pool-chunk");if(e&&typeof e.acquireDecorationFromPoolImpl=="function")return e.acquireDecorationFromPoolImpl({badge,tooltip,color},createFileDecoration)}}catch{}return createFileDecoration(badge||"??")}function _trimFlyweightCacheToLimitImpl(cache,order,maxSize){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=dynamicRequire("./decoration-pool-chunk");if(e&&typeof e.Mt=="function")return e.Mt(cache,order,maxSize)}}catch{}}function clearDecorationPoolImpl(provider,reason="unspecified"){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=dynamicRequire("./decoration-pool-chunk");if(e&&typeof e.clearDecorationPoolImpl=="function")return e.clearDecorationPoolImpl(provider,reason)}}catch{}try{provider.c?.size&&(provider.c.clear(),provider.$.length=0)}catch{}}function checkMemoryPressure(e){try{let t=Date.now();if(e.ct||(e.ct=t),t-e.ct<3e4)return;e.ct=t;let r=e.e.size||0,n=1e4;r/n>.8&&(e._logger?.warn?.("\u{1F9E0} Memory pressure detected, performing cleanup",{cacheSize:r,maxSize:n}),purgeLightweightCaches(e,"memory-pressure"),e._metrics.cachePressureEvents=(e._metrics.cachePressureEvents||0)+1)}catch(t){e._logger?.debug?.("checkMemoryPressure failed",t)}}function createLazyHierarchicalDecorationCache(){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=dynamicRequire("./decoration-cache-chunk");if(e&&typeof e.createLazyHierarchicalDecorationCache=="function")return e.createLazyHierarchicalDecorationCache()}}catch{}class SimpleFallbackCache{constructor(){this.ne=new Map}get size(){return this.ne.size}clear(){this.ne.clear()}get(t){return this.ne.get(t)}set(t,r){this.ne.set(t,r)}delete(t){return this.ne.delete(t)}*entries(){yield*this.ne.entries()}hydrateInBackground(){}enforceLimit(){return 0}}return new SimpleFallbackCache}module.exports={applyProgressiveLoadingSetting,cancelProgressiveWarmupJobs,createFallbackWatcher,createWatcherWithFallback,initializeAdvancedSystems,loadBatchProcessorIfNeeded,reportAllocationTelemetry,scheduleTelemetryReport,setupPeriodicRefresh,scheduleIncrementalRefresh,cancelIncrementalRefreshTimers,markCacheEntryForRefresh,maybeShedWorkload,monitorCachePressure,purgeLightweightCaches,maybePurgeLightweightCaches,checkMemoryPressure,getCachedDecoration,storeDecorationInCache,buildSummaryTooltip,formatDateReadable,getGitBlameInfo,getInitials,formatCompactSize,formatFullDate,togglePerformanceMode,applyPerformanceProfile,getRefreshIntervalForScale,computeEffectivePerformanceMode,applyConcurrencyLimit,findWorkspaceFilesWithTimeout,startWorkspaceScanWatchdog,clearWorkspaceScanWatchdog,performWorkspaceSizeCheck,applyFeatureLevel,fn:_buildFeatureProfile,getSmartWatcherDefaults,createLazyHierarchicalDecorationCache,xt:_getFlyweightValueImpl,acquireDecorationFromPoolImpl,Mt:_trimFlyweightCacheToLimitImpl,clearDecorationPoolImpl,deferPreloads,ensureWatcherManager,setupFileWatcher,registerWatcherHandlers,dispatchWatcherEvent}}});var Lr=_((qa,Wr)=>{function Hi(e){try{let t=(()=>{try{return require("vscode")}catch{return null}})(),r=t?t.workspace.getConfiguration("explorerDates"):{get:()=>6e4},n=r.get("badgeRefreshInterval",6e4),i=e.F||n;if(e.A=i,e._logger?.info?.(`Setting up periodic refresh with interval: ${e.A}ms`),e.a&&(clearInterval(e.a),e.a=null),e.i&&e.i.size){for(let a of e.i)clearTimeout(a);e.i.clear()}if(!r.get("showDateDecorations",!0)){e._logger?.info?.("Decorations disabled, skipping periodic refresh setup");return}e.a=setInterval(()=>{if(e.R){e._logger?.debug?.("Periodic refresh skipped - incremental refresh already running");return}e._logger?.debug?.("Periodic refresh triggered - scheduling incremental refresh"),Mr(e,"periodic")},e.A),e._logger?.info?.("Periodic refresh timer started")}catch(t){e._logger?.debug?.("Failed to setup periodic refresh",t)}}function xr(e){if(!(!e.i||e.i.size===0)){for(let t of e.i)clearTimeout(t);e.i.clear(),e.R=!1}}function Mr(e,t="manual"){try{if(e.D){e._logger?.debug?.(`scheduleIncrementalRefresh called after dispose - ignoring (${t})`);return}if(e.ie){e._logger?.debug?.(`Incremental refresh (${t}) skipped - refresh already pending`);return}if(e.R&&(e._logger?.debug?.(`Incremental refresh (${t}) already in progress, cancelling pending timers and rescheduling`),xr(e)),!e.e||typeof e.e.entries!="function"){e._logger?.debug?.("scheduleIncrementalRefresh: no memory cache available, firing global refresh");try{e.m.fire(void 0)}catch{}e.R=!1,e.ie=!1;return}let r=Array.from(e.e.entries());if(r.length===0){e._logger?.debug?.(`No cached decorations to refresh for ${t}, falling back to global refresh`),e.m.fire(void 0);return}let n=r.map(([c,u])=>{let l=u?.uri?u.uri:c?require("vscode").Uri.file(c):null;return l?{cacheKey:c,uri:l}:null}).filter(Boolean);if(n.length===0){e._logger?.debug?.(`Failed to resolve URIs for ${t} incremental refresh, firing global refresh`),e.m.fire(void 0);return}let i=40,a=Math.ceil(n.length/i),o=Math.min(4e3,Math.max(750,Math.floor(e.A*.25))),s=a>1?Math.max(25,Math.floor(o/a)):0;e.R=!0,e.ie=!0,e._logger?.debug?.(`Incremental refresh (${t}) scheduled for ${n.length} items in ${a} batches (spacing: ${s}ms)`);for(let c=0;c{try{if(e.D){e.i.delete(d),e.i.size||(e.R=!1,e.ie=!1);return}u.forEach(({cacheKey:h,uri:g})=>{Ir(e,h),e.m.fire(g)})}finally{e.i.delete(d),e.i.size===0&&(e.R=!1,e.ie=!1,e._logger?.debug?.(`Incremental refresh (${t}) completed`))}},l);e.i.add(d)}}catch(r){e._logger?.debug?.("Failed to schedule incremental refresh",r)}}function Ir(e,t){if(t){if(!e.e||typeof e.e.get!="function")e._logger?.debug?.("markCacheEntryForRefresh: no memory cache available, skipping");else{let r=e.e.get(t);if(r){let n=Date.now()-r.timestamp;n>e.S*.75?(r.forceRefresh=!0,e._logger?.debug?.(`Marked stale entry for refresh: ${t} (age: ${Math.round(n/1e3)}s)`)):e._logger?.debug?.(`Skipped refresh for fresh entry: ${t} (age: ${Math.round(n/1e3)}s)`)}}if(e._advancedCache)try{let r=t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e._advancedCache.invalidateByPattern(r)}catch(r){e._logger?.debug?.(`Could not invalidate advanced cache for ${t}: ${r.message}`)}}}Wr.exports={setupPeriodicRefresh:Hi,cancelIncrementalRefreshTimers:xr,scheduleIncrementalRefresh:Mr,markCacheEntryForRefresh:Ir}});var Br=_((Ba,$r)=>{var f=require("vscode"),{fileSystem:$i}=Be(),{formatFileSize:Bi}=Ke(),{getSettingsCoordinator:Ki}=Ge(),{SecurityValidator:za,SecureFileOperations:Ua,detectSecurityEnvironment:ji}=Je(),{DEFAULT_CACHE_TIMEOUT:Fe,DEFAULT_MAX_CACHE_SIZE:ie,GLOBAL_STATE_KEYS:Ha,DEFAULT_DECORATION_POOL_SIZE:Vi,DEFAULT_FLYWEIGHT_CACHE_SIZE:Or,WORKSPACE_SCALE_EXTREME_THRESHOLD:$a}=I(),{isWebEnvironment:Gi}=J(),{isWebDiagnosticsEnabled:Nr,diagLogOnce:Ae,recordProviderEvent:Xi,recordDecorationCall:Yi,recordRefreshCall:Zi}=he(),{resolveFreshness:Ji,compareFreshness:Qi,resourceIdentity:qr}=it(),S=typeof process<"u"&&process.env?process.env:{},ea=300*1e3,ta=Number(S.EXPLORER_DATES_VIEWPORT_HISTORY_LIMIT||400),zr=Number(S.EXPLORER_DATES_SECURITY_MAX_WARNINGS_PER_FILE??1),Ur=["full","enhanced","standard","minimal"],Hr=new Map([["src",100],["lib",65],["test",30]]);function ra(){try{let e=f?.window?.activeColorTheme?.kind,t=e===f.ColorThemeKind.HighContrast,r=e===f.ColorThemeKind.Light;return t?{veryRecent:new f.ThemeColor("list.highlightForeground"),recent:new f.ThemeColor("list.warningForeground"),old:new f.ThemeColor("list.errorForeground"),javascript:new f.ThemeColor("list.highlightForeground"),css:new f.ThemeColor("list.warningForeground"),html:new f.ThemeColor("list.errorForeground"),json:new f.ThemeColor("list.highlightForeground"),markdown:new f.ThemeColor("list.warningForeground"),python:new f.ThemeColor("list.errorForeground"),subtle:new f.ThemeColor("list.highlightForeground"),muted:new f.ThemeColor("list.inactiveSelectionForeground"),emphasis:new f.ThemeColor("list.focusHighlightForeground")}:r?{veryRecent:new f.ThemeColor("list.highlightForeground"),recent:new f.ThemeColor("list.warningForeground"),old:new f.ThemeColor("list.errorForeground"),javascript:new f.ThemeColor("symbolIcon.functionForeground"),css:new f.ThemeColor("symbolIcon.colorForeground"),html:new f.ThemeColor("symbolIcon.snippetForeground"),json:new f.ThemeColor("symbolIcon.stringForeground"),markdown:new f.ThemeColor("symbolIcon.textForeground"),python:new f.ThemeColor("symbolIcon.classForeground"),subtle:new f.ThemeColor("list.inactiveSelectionForeground"),muted:new f.ThemeColor("list.deemphasizedForeground"),emphasis:new f.ThemeColor("list.highlightForeground")}:{veryRecent:new f.ThemeColor("list.highlightForeground"),recent:new f.ThemeColor("charts.yellow"),old:new f.ThemeColor("charts.red"),javascript:new f.ThemeColor("symbolIcon.functionForeground"),css:new f.ThemeColor("charts.purple"),html:new f.ThemeColor("charts.orange"),json:new f.ThemeColor("symbolIcon.stringForeground"),markdown:new f.ThemeColor("charts.yellow"),python:new f.ThemeColor("symbolIcon.classForeground"),subtle:new f.ThemeColor("list.inactiveSelectionForeground"),muted:new f.ThemeColor("list.deemphasizedForeground"),emphasis:new f.ThemeColor("list.highlightForeground")}}catch{return null}}function na(e,t){if(!t||!e)return null;let r=aa(e);return[".js",".ts",".jsx",".tsx",".mjs"].includes(r)?t.javascript:[".css",".scss",".sass",".less",".stylus"].includes(r)?t.css:[".html",".htm",".xml",".svg"].includes(r)?t.html:[".json",".yaml",".yml",".toml"].includes(r)?t.json:[".md",".markdown",".txt",".rst"].includes(r)?t.markdown:[".py",".pyx",".pyi"].includes(r)?t.python:null}var ia=e=>{try{let r=String(e||"").replace(/\\/g,"/"),n=r.lastIndexOf("/");return n===-1?r:r.substring(n+1)}catch{return"unknown"}},aa=e=>{try{let t=String(e||""),r=t.lastIndexOf(".");return r<=0?"":t.substring(r).toLowerCase()}catch{return""}},oa=e=>String(e||"").toLowerCase().replace(/\\/g,"/"),Re=e=>String(e||"").replace(/\\/g,"/"),ae=(e="")=>{if(!e)return"";if(typeof e=="string")return e;if(typeof e.fsPath=="string"&&e.fsPath.length>0)return e.fsPath;if(typeof e.path=="string"&&e.path.length>0)return e.path;if(typeof e.toString=="function")try{return e.toString(!0)}catch{return e.toString()}return String(e)},sa=(e="")=>{try{let t=typeof e=="string"?e:ae(e),r=Re(t);return ia(r)||r||"unknown"}catch{return"unknown"}},Pe=class{constructor(){this.r=null,this.n=new Map,(async()=>{try{let t=await Promise.resolve().then(()=>R(ir()));if(t&&typeof t.createLazyHierarchicalDecorationCache=="function"){let r=t.createLazyHierarchicalDecorationCache();for(let[n,i]of this.n.entries())r.set(n,i);this.r=r,this.n=null}}catch{}})()}get size(){return this.r?this.r.size:this.n.size}get bucketCount(){return this.r?this.r.bucketCount:0}clear(){if(this.r)return this.r.clear();this.n.clear()}get(t){return this.r?this.r.get(t):this.n.get(t)}set(t,r,n={}){if(this.r)return this.r.set(t,r,n);this.n.set(t,r)}delete(t){return this.r?this.r.delete(t):this.n.delete(t)}*entries(){if(this.r){yield*this.r.entries();return}yield*this.n.entries()}*keys(){if(this.r){yield*this.r.keys();return}yield*this.n.keys()}*values(){if(this.r){yield*this.r.values();return}yield*this.n.values()}[Symbol.iterator](){return this.entries()}enforceLimit(t=0){if(this.r)return this.r.enforceLimit(t);if(!t||this.n.size<=t)return 0;let r=0,i=Array.from(this.n.keys()).slice(0,Math.max(1,Math.ceil(this.n.size-t)));for(let a of i)this.n.delete(a),r++;return r}},ca=S.VSCODE_WEB==="true",xe=class{Pr(){try{let t=typeof process<"u"&&typeof process.memoryUsage=="function"?process.memoryUsage():null,r=Number(t?.heapUsed);return Number.isFinite(r)&&r>=0?Number((r/1024/1024).toFixed(2)):0}catch{return 0}}gn(){try{let t=typeof process<"u"&&typeof process.memoryUsage=="function"?process.memoryUsage():null,r=Number(t?.rss);return Number.isFinite(r)&&r>=0?Number((r/1024/1024).toFixed(2)):0}catch{return 0}}constructor(){this.m=new f.EventEmitter,this.onDidChangeFileDecorations=this.m.event,this.e=new Pe,this.mn=new Map,this.lt=new Map,this.ve=[],this.st=20,this.ue=this.st,this.ir=0,this.Be=!1,this.pn=!1,this.c=new Map,this.$=[],this.H={hits:0,misses:0,allocations:0,reuses:0},this.Jt=Vi,this.I=new Map,this.Se=[],this.Xt=Or,this.Yt={hits:0,misses:0,allocations:0,reuses:0},this.N=new Map,this.Ie=[],this.Sr=Or,this.Tr={hits:0,misses:0,allocations:0,reuses:0},this.Zt=S.EXPLORER_DATES_ENABLE_DECORATION_POOL!=="0",this.Gt=S.EXPLORER_DATES_ENABLE_FLYWEIGHTS!=="0",this.at=S.EXPLORER_DATES_LIGHTWEIGHT_MODE==="1",this._performanceMode=!1;try{let n=f.workspace.getConfiguration("explorerDates");this._performanceMode=!!n.get("performanceMode",this._performanceMode)}catch{}this.St=S.EXPLORER_DATES_MEMORY_SHEDDING==="1",this.Ft=Number(S.EXPLORER_DATES_MEMORY_SHED_THRESHOLD_MB||3),this.Tt=!1,this.ye=this.St?this.Pr():0,this.vr=Number(S.EXPLORER_DATES_MEMORY_SHED_CACHE_LIMIT||1e3),this.At=Number(S.EXPLORER_DATES_MEMORY_SHED_REFRESH_MS||6e4),this.F=null,this.nt=[],this.vt=Number(S.EXPLORER_DATES_SOFT_HEAP_ALERT_MB||2),this.re=0,this.be=!1,this.Rt=Number(S.EXPLORER_DATES_CACHE_PRESSURE_RATIO||.7),this.it=!1,this.A=null,this.a=null,this.i=new Set,this.R=!1,this.ie=!1,this.G=S.EXPLORER_DATES_FORCE_CACHE_BYPASS==="1",this.Pt=Number(S.EXPLORER_DATES_LIGHTWEIGHT_PURGE_INTERVAL||400),this._isWeb=ca||Gi(),Nr()&&(Ae("provider-impl-constructed","info","Provider implementation constructed",{isWeb:this._isWeb}),Xi("created",{source:"impl",isWeb:this._isWeb})),this.xr=Fe*4,this.yn=this.xr,this.bn=0,this.l=ie;try{let n=f.workspace.getConfiguration("explorerDates");this.S=Number(n.get("cacheTimeout",Fe))}catch{this.S=Fe}try{let n=f.workspace.getConfiguration("explorerDates");this.l=Number(n.get("maxCacheSize",ie))||ie}catch{this.l=ie}this._fileSystem=$i,this._n=!this._isWeb,this.En=!1,this.pe=null,this.wn=null,this.z=new Map,this.We=6e4,this.Mr=1e3,this.b=new Map,this.Ir=Number(S.EXPLORER_DATES_FRESHNESS_CACHE_TTL_MS||6e4),this.Wr=Number(S.EXPLORER_DATES_FRESHNESS_CACHE_MAX||2e3),this.It=new Set;try{this.Lr=Math.random().toString(36).slice(2,8),this._logger.debug(`FileDateDecorationProvider created (id=${this.Lr})`)}catch{}this.Or=null,this.kn=null,this.Nr=null,this.Dn=null;let t=Ki(),r=t?.getValue&&t.getValue("enableTelemetry");this._allocationTelemetryEnabled=S.NODE_ENV==="development"||S.EXPLORER_DATES_TELEMETRY==="1"||r===!0,this._telemetryReportInterval=Number(S.EXPLORER_DATES_TELEMETRY_INTERVAL_MS||6e4),this._telemetryReportTimer=null,this.qr=null,this.Cn=new Map,this.k=new Set,this.y=new Map,this.me=ta,this.O=300*1e3,this.et=Date.now(),this.v=[],this.rt=null,this.Sn=null;try{let n=Array.isArray(f.window?.visibleTextEditors)?f.window.visibleTextEditors:[];for(let a of n){let o=a?.document?.uri?.fsPath||a?.document?.uri?.path||"";o&&this.k.add(String(o).replace(/\\/g,"/"))}let i=f.window?.activeTextEditor?.document?.uri;if(i){let a=i.fsPath||i.path||"";a&&this.k.add(String(a).replace(/\\/g,"/"))}}catch{}this.B="full",this.P=null,this._logger=q().getLogger(),this.p={getString:n=>n,formatDate:n=>n instanceof Date?n.toString():String(n),getCurrentLocale:()=>"en",dispose:()=>{}},this._metrics={totalDecorations:0,cacheHits:0,cacheMisses:0,fileStatTimeMs:0,fileStatCalls:0,gitBlameTimeMs:0,gitBlameCalls:0,viewportPriorityDecorations:0,viewportBackgroundDecorations:0},(async()=>{try{let n=await Promise.resolve().then(()=>R(kr()));n&&typeof n.hydrateProviderOptionalSystems=="function"&&await n.hydrateProviderOptionalSystems(this)}catch(n){this._logger.debug("Failed to run provider initialization chunk",n)}})(),this._workspaceIntelligence=null,this._batchProcessor=null,this._batchProcessorModule=null,this._progressiveLoadingJobs=new Set,this._progressiveLoadingEnabled=!1,this.ae=null,this.oe=null,this._advancedCache=null,this.w=null,this.s=new Set,this.h=void 0,this.d=new Map,this.T=[],this.L=null,this.J=!0,this._enableWatcherFallbacks="auto",this._smartWatcherFallbackManager=null,this.ee=null,this.j="none",this.E=new Map,this.Wt=!1,this.Ee=[],this.Ge=null,this.u="unknown",this.Ze=S.EXPLORER_DATES_LOG_WATCHERS==="1",this.Tn=ji(),this.Lt=!0,this.zr=[],this.Ur=!0,this.vn=!1,this.Fn=!1,this.An=new Map,this.Rn=Number(S.EXPLORER_DATES_SECURITY_WARNING_THROTTLE_MS||5e3),this.Pn=Number.isFinite(zr)?Math.max(0,zr):1,this.Le=typeof f.workspace.onDidChangeWorkspaceFolders=="function"?f.workspace.onDidChangeWorkspaceFolders(n=>this.Hr(n)):null,this.C=null,this.xn=null,this.Mn=null,this.te=null,this.In=!1,this.Je=0,this.D=!1,this._accessibility=null;try{let n=f.workspace.getConfiguration("explorerDates"),i=!!n.get("enableContextMenu",!0),a=!!n.get("showStatusBar",!1),o=!!n.get("showWelcomeOnStartup",!0),s=!!n.get("enableExtensionApi",!0);try{f.commands.executeCommand("setContext","explorerDates.enableContextMenu",i).catch(()=>{})}catch{}try{f.commands.executeCommand("setContext","explorerDates.showStatusBar",a).catch(()=>{})}catch{}try{f.commands.executeCommand("setContext","explorerDates.showWelcomeOnStartup",o).catch(()=>{})}catch{}try{f.commands.executeCommand("setContext","explorerDates.enableExtensionApi",s).catch(()=>{})}catch{}}catch(n){this._logger?.debug&&this._logger.debug("Failed to initialize UI contexts",n)}try{typeof f.workspace.onDidChangeConfiguration=="function"&&(this.w=f.workspace.onDidChangeConfiguration(n=>{try{if(!n||typeof n.affectsConfiguration!="function"||!n.affectsConfiguration("explorerDates"))return;let a=!!f.workspace.getConfiguration("explorerDates").get("performanceMode",!1);try{let o=this._performanceMode;this._performanceMode=a,a?(this.ot?.({permanent:!0}),this.a&&(clearInterval(this.a),this.a=null)):!a&&o&&(this.Q?.("runtime-config-change"),this.a||this._e?.())}catch(o){this._logger?.debug?.("sync performance-mode toggle failed",o)}(async()=>{try{let o=await this.Z();o&&typeof o.togglePerformanceMode=="function"&&await o.togglePerformanceMode(this,a,{reason:"runtime-config-change",refresh:!0})}catch(o){this._logger?.debug?.("delegated togglePerformanceMode failed",o)}})();try{if(["explorerDates.enableContextMenu","explorerDates.showStatusBar","explorerDates.showWelcomeOnStartup","explorerDates.enableExtensionApi"].some(c=>n.affectsConfiguration&&n.affectsConfiguration(c)))try{let c=f.workspace.getConfiguration("explorerDates"),u=!!c.get("enableContextMenu",!0),l=!!c.get("showStatusBar",!1),d=!!c.get("showWelcomeOnStartup",!0),h=!!c.get("enableExtensionApi",!0);try{f.commands.executeCommand("setContext","explorerDates.enableContextMenu",u).catch(()=>{})}catch{}try{f.commands.executeCommand("setContext","explorerDates.showStatusBar",l).catch(()=>{})}catch{}try{f.commands.executeCommand("setContext","explorerDates.showWelcomeOnStartup",d).catch(()=>{})}catch{}try{f.commands.executeCommand("setContext","explorerDates.enableExtensionApi",h).catch(()=>{})}catch{}}catch(c){this._logger?.debug&&this._logger.debug("Failed to update UI contexts on config change",c)}}catch(o){this._logger?.debug&&this._logger.debug("Failed to evaluate UI-context update condition",o)}try{let o=f.workspace.getConfiguration("explorerDates");if(n.affectsConfiguration&&n.affectsConfiguration("explorerDates.cacheTimeout"))try{this.S=Number(o.get("cacheTimeout",Fe))}catch{}if(n.affectsConfiguration&&n.affectsConfiguration("explorerDates.maxCacheSize"))try{this.l=Number(o.get("maxCacheSize",ie))||ie}catch{}}catch(o){this._logger?.debug&&this._logger.debug("Failed to refresh runtime config values from settings",o)}(async()=>{try{if(n.affectsConfiguration&&n.affectsConfiguration("explorerDates.workspaceExclusionProfiles")&&this._workspaceIntelligence?.smartExclusion?.cleanupAllWorkspaceProfiles&&await this._workspaceIntelligence.smartExclusion.cleanupAllWorkspaceProfiles(),n.affectsConfiguration&&n.affectsConfiguration("explorerDates.showWelcomeOnStartup"))try{let o=!!f.workspace.getConfiguration("explorerDates").get("showWelcomeOnStartup",!0);this._extensionContext&&this._extensionContext.globalState&&typeof this._extensionContext.globalState.update=="function"&&await this._extensionContext.globalState.update("explorerDates.pendingWelcome",o)}catch(o){this._logger?.debug&&this._logger.debug("Failed to persist pending welcome flag",o)}}catch(o){this._logger?.debug&&this._logger.debug("Failed to run workspace exclusion cleanup after config change",o)}})()}catch(i){this._logger?.debug?.("configuration change handler failed",i)}}))}catch(n){this._logger?.debug?.("Failed to register configuration watcher",n)}try{this._performanceMode?(this.h=void 0,this.a=null):(this.Q?.("initial"),this._e?.())}catch(n){this._logger?.debug?.("initial watcher/refresh setup failed",n)}try{this.$r?.()}catch{}}ut(){if(this.f)return this.f;try{let t=ft();t&&typeof t.createWatcherManager=="function"&&(this.f=t.createWatcherManager(this))}catch(t){this._logger?.debug?.("Failed to create watcher manager",t)}return this.f}Hr(t){try{let r=this.ut();if(r&&typeof r.handleWorkspaceFoldersChanged=="function"){r.handleWorkspaceFoldersChanged(t);return}let n=(t?.added||[]).map(a=>a.uri).filter(Boolean),i=(t?.removed||[]).map(a=>a.uri).filter(Boolean);if(n.length===0&&i.length===0)return;this.C&&clearTimeout(this.C),this.C=setTimeout(()=>{this.C=null,(async()=>{try{this._logger?.info&&this._logger.info("Workspace folders changed (provider fallback)",{added:n.length,removed:i.length}),await this.checkWorkspaceSize();try{this.clearAllCaches()}catch{}try{this.refreshAll()}catch{}if(this._performanceMode)return;this.Q?.("workspace-change");try{typeof this.wt=="function"&&await this.wt()}catch(a){this._logger?.debug&&this._logger.debug("Failed to reconfigure progressive loading after workspace change",a)}if(this._workspaceIntelligence&&typeof this._workspaceIntelligence.onWorkspaceFoldersChanged=="function"){let a=(f.workspace.workspaceFolders||[]).map(o=>({uri:o.uri}));await this._workspaceIntelligence.onWorkspaceFoldersChanged({added:a,removed:i.map(o=>({uri:o}))})}}catch(a){this._logger?.debug&&this._logger.debug("Workspace folder change handling failed",a)}})()},250)}catch(r){this._logger?.debug&&this._logger.debug("provider._handleWorkspaceFoldersChanged failed",r)}}gr(t=[]){try{if(!Array.isArray(t))return[];let r=new Set;return t.map(n=>String(n||"").replace(/^\./,"").toLowerCase().trim()).filter(n=>!!n).filter(n=>r.has(n)?!1:(r.add(n),!0))}catch{return[]}}mr(t){try{let r=Number(t||0);(!Number.isFinite(r)||r<=0)&&(r=20);let n=Number(S.EXPLORER_DATES_MAX_SMART_WATCHER_PATTERNS||200);return Math.max(1,Math.min(Math.floor(r),Math.max(1,n)))}catch{return 20}}async K(t,r={}){try{try{let s=dt();if(s&&typeof s.K=="function")return await s.K(this,t,r)}catch{}let n=[],i=Math.max(1,r&&r.maxPatterns||1),a=i,o=Array.isArray(t)?t.length:0;for(let s of t||[]){if(a<=0)break;let c=Math.max(1,Math.floor(a/Math.max(1,o))),u=new f.RelativePattern(s,"*.{md,mdx,json,jsonc,yml,yaml,ts,tsx,js,jsx}");if(n.push({pattern:u,label:`root:${s.name}`}),a-=1,a<=0)break;try{let l=typeof this._fileSystem?.readdir=="function"?await this._fileSystem.readdir(s.uri||s.fsPath||s):[],d=(Array.isArray(l)?l:[]).filter(h=>h&&(typeof h.isDirectory=="function"?h.isDirectory():!0)).map(h=>typeof h=="string"?h:h.name||"").filter(Boolean).filter(h=>!["node_modules",".git","dist","build","out"].includes(h));d.sort((h,g)=>(Hr.get(g)||0)-(Hr.get(h)||0));for(let h of d){if(a<=0)break;let g=new f.RelativePattern(s,`${h}/**/*.{md,mdx,json,jsonc,yml,yaml,ts,tsx,js,jsx}`);n.push({pattern:g,label:`sub:${s.name}/${h}`}),a-=1}}catch{}o-=1}return n.slice(0,i)}catch{return[]}}fe(t,r,n){try{if(!t||typeof r!="string"||typeof n!="function")return null;let i=t[r];if(typeof i=="function")try{return i.call(t,n)}catch{return null}return null}catch{return null}}_getIndexerMaxFiles(){try{return Math.max(100,Number(S.EXPLORER_DATES_INDEXER_MAX_FILES||2e3))}catch{return 2e3}}Q(t="initial"){try{if(this._performanceMode||this.D)return;this.h||(this.h={pending:!0});let r=this.ut();if(r&&typeof r.setupFileWatcher=="function")try{r.setupFileWatcher(t);return}catch(n){this._logger?.debug?.("WatcherManager.setupFileWatcher failed",n)}(async()=>{try{let n=await this.Z();n&&typeof n.setupFileWatcher=="function"&&await n.setupFileWatcher(this,t)}catch(n){this._logger?.debug?.("Fallback setupFileWatcher failed",n)}})()}catch(r){this._logger?.debug?.("provider._setupFileWatcher failed",r)}}async Fe(t,r){try{let n="manual",i=typeof t=="number"?t:typeof r=="number"?r:++this.Je;typeof t=="string"&&(n=t);let a=this.ut();if(a&&typeof a.Fe=="function")return await a.Fe(i,n);this.Q(n);return}catch(n){this._logger?.debug&&this._logger.debug("provider._initializeSmartWatchers failed",n)}}ot(t={}){try{let r=t&&t.permanent===!0;if(this.f&&typeof this.f.disposeFileWatchers=="function"){try{this.f.disposeFileWatchers({permanent:r})}catch(n){this._logger?.debug?.("watcherManager.disposeFileWatchers failed",n)}this.h=r?null:void 0}else this.s&&typeof this.s.forEach=="function"&&(this.s.forEach(n=>{try{n&&typeof n.dispose=="function"&&n.dispose()}catch{}}),this.s.clear()),this.h=r?null:void 0;if(this.E&&this.E.size){for(let n of this.E.values())clearTimeout(n.timer);this.E.clear()}}catch(r){this._logger?.debug?.("provider._disposeFileWatchers failed",r)}}_e(){try{let t=(()=>{try{return Pr()}catch{return null}})();if(t&&typeof t.setupPeriodicRefresh=="function")try{t.setupPeriodicRefresh(this);return}catch(a){this._logger?.debug?.("adv.setupPeriodicRefresh failed",a)}try{let a=Lr();if(a&&typeof a.setupPeriodicRefresh=="function"){a.setupPeriodicRefresh(this);return}}catch{}let r=f.workspace.getConfiguration("explorerDates"),n=r.get("badgeRefreshInterval",6e4),i=this.F||n;if(this.A=i,this.a&&(clearInterval(this.a),this.a=null),!r.get("showDateDecorations",!0))return;this.a=setInterval(()=>{try{try{this.m.fire(void 0)}catch{}}catch{}},this.A)}catch(t){this._logger?.debug?.("provider._setupPeriodicRefresh failed",t)}}async initializeAdvancedSystems(t){try{let n=await ge().decorationsAdvanced();if(n&&typeof n.initializeAdvancedSystems=="function")return n.initializeAdvancedSystems(this,t);this._logger.info&&this._logger.info("Advanced systems chunk unavailable - skipping advanced initialization")}catch(r){this._logger.error&&this._logger.error("Failed to initialize advanced systems",r)}}async checkWorkspaceSize(){try{let r=await ge().decorationsAdvanced();if(r&&typeof r.performWorkspaceSizeCheck=="function")return r.performWorkspaceSizeCheck(this)}catch(t){this._logger.debug&&this._logger.debug("Delegated checkWorkspaceSize failed",t)}try{let t=require("vscode"),r=await(t.workspace.findFiles?t.workspace.findFiles("**/*",null,100):[]),n=Array.isArray(r)?r.length:0;this.Ge=n;let{WORKSPACE_SCALE_LARGE_THRESHOLD:i,WORKSPACE_SCALE_EXTREME_THRESHOLD:a}=I();this.u=n>=a?"extreme":n>=i?"large":"normal";try{this.Xe(this.Ye(),"workspace-scale-change-fallback")}catch{}return}catch(t){this._logger.debug&&this._logger.debug("performWorkspaceSizeCheck fallback failed",t)}}async provideFileDecoration(t,r){try{await this.Ot&&this.Ot()}catch{}Yi();try{if(this.U&&typeof this.U.provideDecoration=="function")try{let n=await this.U.provideDecoration(t,r);return n==null?n:typeof n!="object"?void 0:"badge"in n||"tooltip"in n||"color"in n?n:void 0}catch(n){this._logger?.debug&&this._logger.debug("Decoration helper threw",n);return}}catch(n){this._logger?.debug("Decoration provider helper failed",n)}try{if(this.Oe||(this.Oe=Promise.resolve().then(()=>Ce()).then(n=>{this.U=n.createDecorationProviderHelpers?n.createDecorationProviderHelpers(this):n}).finally(()=>{this.Oe=null})),this.Oe&&await this.Oe,this.U&&typeof this.U.provideDecoration=="function")try{let n=await this.U.provideDecoration(t,r);return n==null?n:typeof n!="object"?void 0:"badge"in n||"tooltip"in n||"color"in n?n:void 0}catch(n){this._logger?.debug&&this._logger.debug("Decoration helper threw",n);return}}catch(n){this._logger?.debug("Failed to load decoration provider chunk",n)}}je(t,r=""){try{if(!t)return{isValid:!1};let n=String(t.fsPath||t.path||"");return n?n.indexOf("\0")!==-1?{isValid:!1}:{isValid:!0}:{isValid:!1}}catch{return{isValid:!1}}}async tr(t){try{let r=String(t.fsPath||t.path||"");if(!r)return!1;let n=r.replace(/\\/g,"/");return["node_modules","/.git/","/dist/"].some(a=>n.includes(a))}catch{return!1}}async rr(t,r){try{return await r()}catch(n){throw n}}Ve(t){try{return String(t.fsPath||t.path||"").replace(/\\/g,"/")}catch{return String(t||"")}}Ot(){try{let t=require("vscode").workspace.getConfiguration("explorerDates"),r=t.get("security.allowTestPaths",!0),n=Array.isArray(t.get("security.allowedExtraPaths",[]))?t.get("security.allowedExtraPaths",[]):[],i=t.get("security.enableBoundaryEnforcement"),a=t.get("security.enforceWorkspaceBoundaries");this.Ur=r!==!1;let o=(()=>{try{return require("path")}catch{return null}})(),s=(n||[]).filter(Boolean).map(c=>{try{return o?o.normalize(String(c)):String(c)}catch{return String(c)}});this.zr=s,typeof i=="boolean"?this.Lt=i:typeof a=="boolean"&&(this.Lt=a)}catch(t){this._logger?.debug&&this._logger.debug("Failed to ensure security configuration",t)}}async nr(t,r){try{if(this.G)return this._logger?.debug?.(`Cache bypass enabled - recalculating decoration for: ${r}`),null;if(this._advancedCache)try{let i=await this._advancedCache.get(t);if(i)return this._metrics.cacheHits++,this._logger?.debug?.(`Advanced cache hit for: ${r}`),i}catch(i){this._logger?.debug?.(`Advanced cache error: ${i.message}`)}if(!this.e||typeof this.e.get!="function")return null;let n=this.e.get(t);if(n){if(n.forceRefresh){try{this.e.delete(t)}catch{}this._logger?.debug?.(`Memory cache bypassed (forced refresh) for: ${r}`)}else if(Date.now()-n.timestamp{switch(o){case"enhanced":return{level:o,enableGit:!0,enableProgressiveAnalysis:!0,applyBackgroundLimits:!1,backgroundTooltipMode:"rich",viewportWindowMs:6e4,enableColors:!0};case"standard":return{level:o,enableGit:!0,enableProgressiveAnalysis:!1,applyBackgroundLimits:!0,backgroundTooltipMode:"summary",viewportWindowMs:48e4,enableColors:!0};case"minimal":return{level:o,enableGit:!1,enableProgressiveAnalysis:!1,applyBackgroundLimits:!0,backgroundTooltipMode:"summary",viewportWindowMs:12e4,enableColors:!1};default:return{level:"full",enableGit:!0,enableProgressiveAnalysis:!1,applyBackgroundLimits:!1,backgroundTooltipMode:"rich",viewportWindowMs:ea,enableColors:!0}}},a=n?i(t):this.P||i(t);if(this.P=a,this.O=a.viewportWindowMs,n&&this._logger?.info?.(`Feature level set to "${t}" (${r})`,{viewportWindowMs:this.O,applyBackgroundLimits:a.applyBackgroundLimits,backgroundTooltipMode:a.backgroundTooltipMode}),this._performanceMode)return this._logger?.info&&this._logger.info("Performance mode active - skipping feature profile application"),n;try{a.applyBackgroundLimits&&typeof this.Br=="function"&&this.Br(r)}catch{}return n}catch(n){return this._logger?.debug&&this._logger.debug("Failed to apply feature level",n),!1}}mt(t){try{let r=Re(ae(t)||"");return this.k.has(r)||this.y.has(r)}catch{return!1}}Y(t,{reason:r="unknown",visible:n=!1}={}){try{let i=Re(ae(t)||""),a=Date.now();if(n)this.k.add(i);else for(this.y.set(i,a);this.y.size>(Number(this.me)||400);){let o=this.y.keys().next().value;if(!o)break;this.y.delete(o)}n?this._metrics.viewportPriorityDecorations=(this._metrics.viewportPriorityDecorations||0)+1:this._metrics.viewportBackgroundDecorations=(this._metrics.viewportBackgroundDecorations||0)+1}catch{}}or(){return!1}sr(t){return!!(t&&(t.code==="ENOENT"||/not found/i.test(t.message||"")))}async Z(){try{return this.ae?this.ae:this.oe?await this.oe:(this.oe=(async()=>{try{let{getFeatureFlagsGlobal:t}=G(),r=t(),n=r?await r.decorationsAdvanced():null;return this.ae=n||null,this.ae}catch(t){return this._logger?.debug&&this._logger.debug("Failed to load decorationsAdvanced chunk",t),this.ae=null,null}finally{this.oe=null}})(),await this.oe)}catch(t){try{this._logger?.debug&&this._logger.debug("provider._getDecorationsAdvancedChunk failed",t)}catch{}return null}}Qt(t,r,n){try{let i=Math.floor((Date.now()-t.getTime())/864e5);return i<=0?"\u2022":i<10?String(i):"\u2022"}catch{return"\u2022"}}gt(t,r="auto"){try{return Bi(t,r)}catch{return`${t} bytes`}}lr(t,r,n){try{if(!r||r==="none")return;let i=(()=>{if(!this._isWeb)return!1;try{return!!f.workspace.getConfiguration("explorerDates").get("webDiagnosticsBuiltinColors",!1)}catch{return!1}})(),a=Date.now()-(t instanceof Date?t.getTime():new Date(t).getTime());if(i){let s=new f.ThemeColor("list.warningForeground"),c=new f.ThemeColor("list.deemphasizedForeground"),u=new f.ThemeColor("list.errorForeground");return Nr()&&Ae("web-builtin-color-fallback","info","Web builtin color fallback enabled"),r==="file-type"?s:r==="subtle"?c:a<36e5?s:a<864e5?c:u}if(r==="custom")return a<36e5?new f.ThemeColor("explorerDates.customColor.veryRecent"):a<864e5?new f.ThemeColor("explorerDates.customColor.recent"):new f.ThemeColor("explorerDates.customColor.old");if(r==="recency")return a<36e5?new f.ThemeColor("list.highlightForeground"):a<864e5?new f.ThemeColor("charts.yellow"):new f.ThemeColor("charts.red");let o=ra();if(r==="file-type"||r==="adaptive"){let s=na(n,o);if(s)return s;if(r==="adaptive"&&o)return a<36e5?o.veryRecent:a<864e5?o.recent:o.old}return r==="subtle"&&o?a<36e5?o.subtle:a<6048e5?o.muted:o.emphasis:r==="vibrant"&&o?a<36e5?o.veryRecent:a<864e5?o.recent:o.old:void 0}catch{return}}Kr(t){try{let r=t?.scheme||"file";return this._isWeb||r!=="file"}catch{return this._isWeb}}jr(t){try{if(t?.toString)return t.toString(!0)}catch{}try{let r=t?.scheme||"file",n=t?.path||t?.fsPath||"";return`${r}://${n}`}catch{return String(t||"")}}Vr(t,r){try{return`${qr(t,{platform:process.platform})}::${r||"auto"}`}catch{return String(t||"unknown")}}Gr(t){try{let r=this.b.get(t);return r?r.expiresAt&&r.expiresAt=this.Wr){let i=this.b.keys().next().value;i&&this.b.delete(i)}let n=this.b.get(t);if(n&&n.freshness&&Qi(n.freshness,r)>0)return;this.b.set(t,{freshness:r,expiresAt:Date.now()+this.Ir})}catch{}}Yr(t,r,n="auto"){try{let i=String(n||"auto").toLowerCase(),a=t||"unknown",o=`${i}:${a}`;if(this.It.has(o))return;this.It.add(o);let s=i==="git"||i==="github"?"warn":"debug";this._logger?.[s]?.("Freshness source unavailable, falling back to unknown",{reason:a,policy:i,uri:r?ae(r):null})}catch{}}ht(t=""){try{let r=String(t||"");r=r.replace(/\\/g,"/"),r=r.replace(/\/{2,}/g,"/"),r=r.replace(/^\/+/,"");try{r=decodeURIComponent(r)}catch{}return r}catch{return""}}Ne(t,r){try{if(this.z.size>=this.Mr){let n=this.z.keys().next().value;n&&this.z.delete(n)}this.z.set(t,r)}catch{}}async He(t){let r=this.jr(t),n=Date.now(),i=this.z.get(r);if(i&&i.expiresAt&&i.expiresAt>n)return i;let a={timestampMs:null,available:!1,error:null,expiresAt:n+this.We,repoMatched:null,pathAttempted:null};try{let o=f?.extensions?.getExtension?f.extensions.getExtension("vscode.git"):null;if(!o)return this._isWeb&&Ae("git-extension-unavailable-web","info","Git extension not available in web mode - timestamps will use fs.stat fallback"),a.error="git-extension-missing",this.Ne(r,a),a;if(!o.isActive&&typeof o.activate=="function")try{await o.activate()}catch{}let s=o.exports?.getAPI?.(1);if(!s)return a.error="git-api-unavailable",this.Ne(r,a),a;a.available=!0;let c=typeof s.getRepository=="function"?s.getRepository(t):null,u=t?.path||t?.fsPath||"",l=this.ht(u);if(!c&&Array.isArray(s.repositories)&&(c=s.repositories.find(E=>{let M=E?.rootUri?.path||E?.rootUri?.fsPath||"",F=this.ht(M);return F&&l&&l.startsWith(F)})||null),!c||typeof c.log!="function")return a.error="git-repo-unavailable",a.repoMatched=!1,a.expiresAt=n+Math.min(this.We,5e3),this.Ne(r,a),a;a.repoMatched=!0;let d=this.ht(c?.rootUri?.path||c?.rootUri?.fsPath||""),h=d&&l.startsWith(d)?l.slice(d.length).replace(/^\/+/,""):l;a.pathAttempted=h||l||"";let g=await c.log({maxEntries:1,path:a.pathAttempted}),y=Array.isArray(g)?g[0]:null,m=y?.commitDate||y?.authorDate||y?.date||y?.committerDate,D=m?new Date(m).getTime():null;a.author=y?.authorName||y?.author?.name||y?.author||null,a.message=y?.message||y?.subject||null,Number.isFinite(D)?a.timestampMs=D:(a.error="git-log-empty",a.expiresAt=n+Math.min(this.We,5e3))}catch(o){a.error=o?.message?`git-error:${o.message}`:"git-error",a.expiresAt=n+Math.min(this.We,5e3)}return this.Ne(r,a),a}async Wn(t,r){let n=r?.mtime?r.mtime instanceof Date?r.mtime:new Date(r.mtime):null,i=n&&typeof n.getTime=="function"?n.getTime():NaN,a=Number.isFinite(i)?n:null,o=t?.scheme||"file";if(!this.Kr(t))return{timestamp:a,source:a?"fs-stat":"none",gitAvailable:!1,gitError:null,repoMatched:null,pathAttempted:null};let s;try{s=await this.He(t)}catch(u){s={timestampMs:null,available:!1,error:u?.message?`git-error:${u.message}`:"git-error",repoMatched:null,pathAttempted:null}}if(s?.timestampMs)return{timestamp:new Date(s.timestampMs),source:"git",gitAvailable:s.available,gitError:s.error,repoMatched:s.repoMatched,pathAttempted:s.pathAttempted};let c=a?"fs-stat":"none";if(a&&o!=="file"){let u=Date.now()-a.getTime();u>=0&&u<=6e4?c="fs-stat-suspect":this._isWeb&&u>6e4&&Ae("web-fs-stat-limitation","info","Web mode timestamps may reflect workspace open time, not actual file modification time. Git extension would provide accurate timestamps if available.")}return this._isWeb&&o!=="file"&&(s?.error||!s?.available)?{timestamp:null,source:"web-unknown",gitAvailable:!1,gitError:s?.error||null,repoMatched:s?.repoMatched??null,pathAttempted:s?.pathAttempted||null}:{timestamp:a,source:c,gitAvailable:s?.available||!1,gitError:s?.error||null,repoMatched:s?.repoMatched??null,pathAttempted:s?.pathAttempted||null}}async pt(t,r,n={}){let i=f.workspace.getConfiguration("explorerDates"),a=n.workspaceKind||(this._isWeb?"web":"desktop"),o=i.get("freshnessSourcePolicy","auto"),s=this.Vr(t,o),c=this.Gr(s);if(c)return c;let u=await Ji({uri:t,stat:r,provider:this,config:i,workspaceKind:a});return this.Xr(s,u),u?.source==="unknown"&&this.Yr(u?.reason||"unknown",t,o),u}async Te(t={}){try{let r=t.stat?.mtime||t.stat?.birthtime||new Date;return`Modified: ${(r instanceof Date?r:new Date(r)).toISOString()}`}catch{return""}}clearAllCaches(){try{try{this.e&&typeof this.e.clear=="function"&&this.e.clear()}catch{}try{this.c&&typeof this.c.clear=="function"&&this.c.clear()}catch{}try{this.$&&(this.$.length=0)}catch{}try{this.I&&typeof this.I.clear=="function"&&this.I.clear()}catch{}try{this.Se&&(this.Se.length=0)}catch{}try{this.N&&typeof this.N.clear=="function"&&this.N.clear()}catch{}try{this.Ie&&(this.Ie.length=0)}catch{}try{this._advancedCache&&typeof this._advancedCache.clear=="function"&&this._advancedCache.clear()}catch{}try{this.z&&typeof this.z.clear=="function"&&this.z.clear()}catch{}try{this.b&&typeof this.b.clear=="function"&&this.b.clear()}catch{}}catch(t){this._logger?.debug&&this._logger.debug("clearAllCaches failed",t)}}Me(t){try{if(!this.b||this.b.size===0)return;let r=`${qr(t,{platform:process.platform})}::`;for(let n of this.b.keys())typeof n=="string"&&n.startsWith(r)&&this.b.delete(n)}catch{}}Zr(t={}){try{this.clearAllCaches()}catch{}try{this.refreshAll()}catch{}try{t?.head&&this._logger?.info&&this._logger.info("Git HEAD change detected; caches refreshed",{head:t.head})}catch{}}$r(){this.Wt||(this.Wt=!0,(async()=>{try{let t=f?.extensions?.getExtension?f.extensions.getExtension("vscode.git"):null;if(!t)return;if(!t.isActive&&typeof t.activate=="function")try{await t.activate()}catch{}let r=t.exports?.getAPI?.(1);if(!r)return;let n=i=>{try{if(!i||!i.state||typeof i.state.onDidChange!="function")return;let a=i.state.HEAD?.commit||i.state.HEAD?.name||null,o=i.state.onDidChange(()=>{let s=i.state.HEAD?.commit||i.state.HEAD?.name||null;s!==a&&(a=s,this.Zr({repo:i,head:s}))});o&&this.Ee.push(o)}catch{}};if(Array.isArray(r.repositories)&&r.repositories.forEach(i=>n(i)),typeof r.onDidOpenRepository=="function"){let i=r.onDidOpenRepository(a=>n(a));i&&this.Ee.push(i)}}catch(t){this._logger?.debug?.("Failed to register git HEAD watcher",t)}})())}refreshAll(){try{this.m.fire(void 0),Zi()}catch(t){this._logger?.debug&&this._logger.debug("refreshAll failed",t)}}applyPreviewSettings(t){try{t&&typeof t=="object"?(this.X=t,this._logger?.info&&this._logger.info("Preview settings applied",t)):(this.X=null,this._logger?.info&&this._logger.info("Preview settings cleared"));try{this.clearAllCaches()}catch{}this.refreshAll()}catch(r){this._logger?.debug&&this._logger.debug("applyPreviewSettings failed",r)}}refreshDecoration(t){try{try{this.Me(t)}catch{}this.m.fire(t)}catch(r){this._logger?.debug&&this._logger.debug("refreshDecoration failed",r)}}clearDecoration(t){try{try{this.Me(t)}catch{}let r=t?typeof t=="string"?t:ae(t):"",n=this.Ve?this.Ve(t):oa(r);try{this.e&&typeof this.e.delete=="function"&&this.e.delete(n)}catch{}try{this._advancedCache&&typeof this._advancedCache.delete=="function"&&this._advancedCache.delete(n)}catch{}try{this.m.fire(t)}catch{}}catch(r){this._logger?.debug&&this._logger.debug("clearDecoration failed",r)}}cr({badge:t,tooltip:r,color:n}){try{let i=require("vscode"),a=new i.FileDecoration(String(t||""),r||void 0,n||void 0);try{n&&(a.color=n)}catch{}return a}catch{return{badge:t,tooltip:r,color:n}}}ur(t,r,n,i,a){try{if(this.G)return;if(!this.e||typeof this.e.set!="function"||typeof this.e.size!="number")try{this.e=new Pe}catch{}if(!this.e||typeof this.e.set!="function")return;if(typeof this.e.size=="number"&&this.e.size>this.l)try{this.e.enforceLimit(this.l)}catch{}let o={decoration:r,timestamp:Date.now()};a&&(o.freshness=a),i&&(o.uri=i);try{this.e.set(t,o)}catch{}try{typeof this.ce=="function"&&this.ce()}catch(s){this._logger?.debug?.("monitorCachePressure from store failed",s)}if(this._advancedCache)try{this._advancedCache.set(t,r,{ttl:this.S}),this._logger?.debug?.(`Stored in advanced cache: ${n}`)}catch(s){this._logger?.debug?.(`Failed to store in advanced cache: ${s.message}`)}try{typeof this.le=="function"&&this.le()}catch(s){this._logger?.debug?.("maybeExtendCacheTimeout from store failed",s)}}catch(o){this._logger?.debug?.("storeDecorationInCache failed",o)}}getMetrics(){let t={decorationPool:{allocations:0,reuses:0,reusePercent:"0%"},badgeFlyweight:{allocations:0,reuses:0,reusePercent:"0%"},readableFlyweight:{allocations:0,reuses:0,reusePercent:"0%"}},r=this._metrics?.cacheHits||0,n=this._metrics?.cacheMisses||0,i=r+n>0?(r/(r+n)*100).toFixed(2)+"%":"0.00%";return{totalDecorations:this._metrics?.totalDecorations||0,cacheSize:this.c&&this.c.size||0,cacheHits:r,cacheMisses:n,cacheHitRate:i,workspaceScale:this.u||"unknown",allocationTelemetry:t,performanceTiming:{avgGitBlameMs:this._metrics?.gitBlameCalls?(this._metrics.gitBlameTimeMs/this._metrics.gitBlameCalls).toFixed(1):"0.0",avgFileStatMs:this._metrics?.fileStatCalls?(this._metrics.fileStatTimeMs/this._metrics.fileStatCalls).toFixed(1):"0.0",gitBlameCalls:this._metrics?.gitBlameCalls||0,fileStatCalls:this._metrics?.fileStatCalls||0},cacheDebugging:{cacheNamespace:this.qr}}}forceRefreshAllDecorations(){try{this._logger?.info&&this._logger.info("\u{1F504} Force refreshing ALL decorations...");try{this.e&&typeof this.e.clear=="function"&&this.e.clear()}catch{}try{this.c&&typeof this.c.clear=="function"&&this.c.clear()}catch{}try{this._advancedCache&&typeof this._advancedCache.clear=="function"&&this._advancedCache.clear()}catch{}try{this.m.fire(void 0)}catch{}this._logger?.info&&this._logger.info("\u{1F504} Triggered global decoration refresh")}catch(t){this._logger?.debug&&this._logger.debug("forceRefreshAllDecorations failed",t)}}startProviderCallMonitoring(){try{if(this.D){this._logger?.debug&&this._logger.debug("startProviderCallMonitoring called after dispose - no-op");return}if(this.Nt){this.Vt=0,this.Re=new Set,this._logger?.info&&this._logger.info("\u{1F4CA} Provider call monitoring restarted (counters reset)");return}this.Nt=!0,this.Vt=0,this.Re=new Set;let t=this.provideFileDecoration.bind(this);this.qe=t,this.provideFileDecoration=async(r,n)=>{try{this.Vt=(this.Vt||0)+1;let i=ae(r)||(r&&typeof r.toString=="function"?r.toString(!0):"unknown");this.Re.add(Re(i)),this._logger?.info&&this._logger.info(`\u{1F50D} Provider called ${this.Vt} times for: ${sa(r||i)}`)}catch{}return t(r,n)},this._logger?.info&&this._logger.info("\u{1F4CA} Started provider call monitoring")}catch(t){this._logger?.debug&&this._logger.debug("startProviderCallMonitoring failed",t)}}getProviderCallStats(){try{return{totalCalls:this.Vt||0,uniqueFiles:this.Re?this.Re.size:0,calledFiles:this.Re?Array.from(this.Re):[]}}catch{return{totalCalls:0,uniqueFiles:0,calledFiles:[]}}}async dispose(){if(this.D)return;this.D=!0,this.Be=!0;try{this._telemetryReportTimer&&(clearTimeout(this._telemetryReportTimer),this._telemetryReportTimer=null)}catch{}try{this.a&&(clearInterval(this.a),this.a=null)}catch{}try{if(this.i&&this.i.size){for(let r of this.i)clearTimeout(r);this.i.clear()}this.R=!1,this.ie=!1}catch{}try{this.L&&(clearTimeout(this.L),this.L=null)}catch{}try{this.C&&(clearTimeout(this.C),this.C=null)}catch{}try{try{this.ot({permanent:!0})}catch{}if(this.f&&typeof this.f.disposeFileWatchers=="function")try{this.f.disposeFileWatchers({permanent:!0})}catch{}this.f=null}catch{}try{this.te&&(clearTimeout(this.te),this.te=null)}catch{}try{this.m&&typeof this.m.dispose=="function"&&this.m.dispose()}catch{}try{if(Array.isArray(this.T)){for(let r of this.T)try{r.dispose&&r.dispose()}catch{}this.T.length=0}}catch{}try{if(Array.isArray(this.Ee)){for(let r of this.Ee)try{r.dispose&&r.dispose()}catch{}this.Ee.length=0}}catch{}try{if(Array.isArray(this.v)){for(let r of this.v)try{r.dispose&&r.dispose()}catch{}this.v.length=0}}catch{}let t=async r=>{try{r&&typeof r.dispose=="function"&&await r.dispose()}catch{}};await t(this._advancedCache),await t(this._batchProcessor),await t(this.rt),await t(this.pe),await t(this._workspaceIntelligence),await t(this._smartWatcherFallbackManager),await t(this.Or),await t(this.Nr);try{if(this.s&&typeof this.s.forEach=="function"&&(this.s.forEach(r=>{try{r&&typeof r.dispose=="function"&&r.dispose()}catch{}}),this.s.clear()),this.h&&typeof this.h.dispose=="function"){try{this.h.dispose()}catch{}this.h=void 0}this.d&&typeof this.d.forEach=="function"&&(this.d.forEach(r=>{try{r?.watcher?.dispose&&r.watcher.dispose()}catch{}}),this.d.clear())}catch{}try{this.e&&typeof this.e.clear=="function"&&this.e.clear()}catch{}try{this.c&&typeof this.c.clear=="function"&&this.c.clear()}catch{}try{this.I&&typeof this.I.clear=="function"&&this.I.clear()}catch{}try{this.N&&typeof this.N.clear=="function"&&this.N.clear()}catch{}try{this.lt&&this.lt.clear&&this.lt.clear()}catch{}try{this.ve&&this.ve.length&&(this.ve.length=0)}catch{}try{this._advancedCache=null,this._batchProcessor=null,this.rt=null,this.pe=null,this._workspaceIntelligence=null}catch{}try{this.Le&&typeof this.Le.dispose=="function"&&(this.Le.dispose(),this.Le=null)}catch{}try{this.w&&typeof this.w.dispose=="function"&&(this.w.dispose(),this.w=null)}catch{}try{if(this.qe&&typeof this.qe=="function"){try{this.provideFileDecoration=this.qe}catch{}this.qe=null,this.Nt=!1,this.Vt=0,this.Re=new Set}}catch{}try{this.ae=null,this.oe=null}catch{}this._logger?.info&&this._logger.info("FileDateDecorationProvider disposed")}};$r.exports={FileDateDecorationProviderImpl:xe,FileDateDecorationProvider:xe}});var Me=null;try{typeof require=="function"&&(Me=Br())}catch{}if(!Me&&typeof globalThis<"u"){let e=globalThis.explorerDatesChunks||globalThis.hr||null;e&&(Me=e.fileDateProviderImpl||e.fileDateProviderImpl||null)}var gt=Me||{};module.exports={FileDateDecorationProvider:gt.FileDateDecorationProvider,FileDateDecorationProviderImpl:gt.FileDateDecorationProviderImpl||gt.FileDateDecorationProvider}; diff --git a/dist/chunks/fileDateProviderImplExport.js.map b/dist/chunks/fileDateProviderImplExport.js.map index 7f54d74..50d5235 100644 --- a/dist/chunks/fileDateProviderImplExport.js.map +++ b/dist/chunks/fileDateProviderImplExport.js.map @@ -1,6 +1,6 @@ { "version": 3, "sources": ["../../src/utils/env.js", "../../src/utils/pathUtils.js", "../../src/utils/errors.js", "../../src/filesystem/environmentContract.js", "../../src/chunks/utils-shared-chunk.js", "../../src/utils/dateHelpers.js", "../../src/filesystem/FileSystemAdapter.js", "../../src/constants.js", "../../src/utils/formatters.js", "../../src/utils/logger.js", "../../src/utils/settingsCoordinator.js", "../../src/utils/securityUtils.js", "../../src/utils/webDiagnostics.js", "../../src/utils/freshnessResolver.js", "../../src/utils/hierarchicalDecorationCache.js", "../../src/chunks/decoration-cache-chunk.js", "../../src/locales/en.json", "../../src/locales/es.json", "../../src/locales/fr.json", "../../src/locales/de.json", "../../src/locales/ja.json", "../../src/locales/zh.json", "../../src/locales/index.js", "../../src/chunks/localization-core.js", "../../src/chunks/decoration-logic-chunk.js", "../../src/chunks/decoration-provide-chunk.js", "../../src/chunks/decoration-telemetry-chunk.js", "../../src/presetDefinitions.js", "../../src/shared/chunkMap.js", "../../src/utils/featureFlagsBridge.js", "../../src/featureFlags.js", "../../src/fileDateDecorationProvider.js", "../../src/chunks/provider-init-chunk.js", "../../src/utils/workspaceDetection.js", "../../src/chunks/decoration-provider-impl-chunk.js", "../../src/chunks/watcher-manager-chunk.js", "../../src/chunks/viewport-manager-chunk.js", "../../src/chunks/decorations-static.js", "../../src/chunks/decorations-advanced.js", "../../src/chunks/decoration-refresh-chunk.js", "../../src/chunks/file-date-provider-impl.js", "../../src/chunks/file-date-provider-impl-export.js"], - "mappings": "u7BAAA,+CAAAA,SAAAC,QAAA,KAAMC,QAAS,QAAQ,QAAQ,EAE/B,SAASC,mBAAmB,CACxB,GAAI,CACA,IAAM,OAASD,SAAQ,KAAK,OACtB,QAAUA,SAAQ,QAAQ,IAChC,OAAO,SAAW,QAAa,UAAY,QAAa,SAAW,OACvE,MAAQ,CACJ,MAAO,EACX,CACJ,CARS,OAAAC,kBAAA,oBAUTF,QAAO,QAAU,CACb,iBAAAE,iBACJ,KCdA,2EACA,IAAI,MAAQ,KACZ,GAAI,CACA,IAAM,eAAiB,OAAO,MAAS,WAAa,KAAK,SAAS,EAAI,KACtE,GAAI,OAAO,gBAAmB,WAAY,CACtC,GAAI,CAAE,MAAQ,eAAe,8BAA8B,CAAG,MAAQ,CAAe,CACrF,GAAI,CAAO,QAAO,MAAQ,eAAe,6BAA6B,EAAG,MAAQ,CAAe,CAEhG,GAAI,CAAO,QAAO,MAAQ,eA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KAAO,SAAS,sBAAwB,SAAS,sBAA2B,KAEpF,CACA,IAAM,SAAW,MAAQ,CAAC,EAC1B,OAAO,QAAU,CACb,2BAA4B,SAAS,2BACrC,+BAAgC,SAAS,gCAAkC,SAAS,0BACxF", "names": ["exports", "module", "vscode", "isWebEnvironment", "normalizePath", "input", "getSegments", "getFileName", "getExtension", "getDirectory", "joinPath", "getCacheKey", "getUriPath", "target", "getRelativePath", "exports", "module", "context", "reason", "options", "vscode", "exports", "module", "env", "target", "options", "exports", "module", "getCurrentTimestamp", "isDateLike", "ensureDate", "normalizePath", "input", "getSegments", "getFileName", "getExtension", "getDirectory", "joinPath", "getCacheKey", "getUriPath", "target", "getRelativePath", "getCurrentTimestamp", "isDateLike", "ensureDate", "exports", "module", "vscode", "isWebEnvironment", "normalizePath", "ensureDate", "env", "target", "options", "fileSystem", "exports", "module", "env", "DEFAULT_CACHE_TIMEOUT", "DEFAULT_MAX_CACHE_SIZE", "DEFAULT_DECORATION_POOL_SIZE", "DEFAULT_FLYWEIGHT_CACHE_SIZE", "WORKSPACE_SCALE_EXTREME_THRESHOLD", "GLOBAL_STATE_KEYS", "exports", "module", "formatFileSize", "badge", "exports", "module", "args", "impl", "getLogger", "options", "key", "p", "resolved", "target", "chunk", "exports", "module", "normalizePath", "getUriPath", "getLogger", "env", "detectSecurityEnvironment", "SecurityValidator", "input", "options", "SecureFileOperations", "exports", "module", "env", "isWebRuntime", "vscode", "isWebDiagnosticsEnabled", "diagLog", "diagLogOnce", "key", "exports", "module", "vscode", "normalizePath", "getRelativePath", "diagLogOnce", "key", "formatBadge", "formatTooltip", "reason", "provider", "cacheKey", "exports", "module", "normalizePath", "cacheKey", "options", "maxSize", "key", "input", "exports", "module", "getCachedDecoration", "provider", "cacheKey", "fileLabel", "memoryEntry", "storeDecorationInCache", "decoration", "resourceUri", "cacheEntry", "createLazyHierarchicalDecorationCache", "LazyHierarchicalDecorationCache", "options", "maxSize", "exports", "module", "exports", "module", "exports", "module", "exports", "module", "exports", "module", "exports", "module", "exports", "module", "exports", "module", "vscode", "key", "args", "options", "exports", "module", "provider", "vscode", "cache", "order", "limit", "key", "factory", "statsTracker", "badge", "color", "tooltip", "decoration", "reason", "input", "fileLabel", "badge", "tooltip", "decoration", "key", "cacheKey", "color", "exports", "module", "scheduleTelemetryReport", "provider", "reportAllocationTelemetry", "chunk", "exports", "module", "getChunkSourcePath", "getAllChunkNames", "chunk", "factory", "resolved", "module", "target", "args", "chunk", "input", "key", "resolved", "isWebEnvironment", "provider", "args", "resolved", "FileDateDecorationProvider", "exports", "module", "vscode", "getLogger", "WORKSPACE_SCALE_EXTREME_THRESHOLD", "key", "input", "provider", "maxResults", "options", "input", "provider", "reason", "target", "getFeatureFlagsGlobal", "chunk", "shouldUseFallbackWatcher", "key", "options", "input", "options", "key", "target", "input", "key", "p", "chunk", "provider", "args", "context", "reason", "vscode", "options", "getFeatureFlagsGlobal", "target", "maxSize", "exports", "module", "setupPeriodicRefresh", "provider", "vscode", "scheduleIncrementalRefresh", "cancelIncrementalRefreshTimers", "reason", "cacheKey", "chunk", "markCacheEntryForRefresh", "exports", "module", "vscode", "fileSystem", "formatFileSize", "getSettingsCoordinator", "SecurityValidator", "SecureFileOperations", "detectSecurityEnvironment", "DEFAULT_CACHE_TIMEOUT", "DEFAULT_MAX_CACHE_SIZE", "GLOBAL_STATE_KEYS", "DEFAULT_DECORATION_POOL_SIZE", "DEFAULT_FLYWEIGHT_CACHE_SIZE", "WORKSPACE_SCALE_EXTREME_THRESHOLD", "isWebEnvironment", "isWebDiagnosticsEnabled", "diagLogOnce", "env", "VIEWPORT_DEFAULT_WINDOW_MS", "DEFAULT_VIEWPORT_HISTORY_LIMIT", "DEFAULT_SECURITY_MAX_WARNINGS", "FEATURE_LEVELS", "SMART_WATCHER_PRIORITY", "getExtension", "getFileName", "p", "buildCacheKey", "normalizePath", "input", "getUriPath", "target", "describeFile", "LazyHierarchicalDecorationCache", "chunk", "key", "options", "maxSize", "FileDateDecorationProviderImpl", "cfg", "reason", "context", "cacheKey", "fileLabel", "memoryEntry", "getFeatureFlagsGlobal", "rootPath", "badge", "tooltip", "color", "decoration", "cacheEntry"] } diff --git a/dist/chunks/providerInit.js b/dist/chunks/providerInit.js index 03091d5..adbd39e 100644 --- a/dist/chunks/providerInit.js +++ b/dist/chunks/providerInit.js @@ -1,4 +1,4 @@ -var rr=Object.create;var qe=Object.defineProperty;var nr=Object.getOwnPropertyDescriptor;var or=Object.getOwnPropertyNames;var ir=Object.getPrototypeOf,ar=Object.prototype.hasOwnProperty;var E=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var sr=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of or(t))!ar.call(e,o)&&o!==r&&qe(e,o,{get:()=>t[o],enumerable:!(n=nr(t,o))||n.enumerable});return e};var Se=(e,t,r)=>(r=e!=null?rr(ir(e)):{},sr(t||!e||!e.__esModule?qe(r,"default",{value:e,enumerable:!0}):r,e));var se=E(($n,ze)=>{var Ke=typeof process<"u"&&process.env?process.env:{},He="[ExplorerDates][WebDiag]",Ce="__explorerDatesWebDiagnostics",ae;function lr(){try{let e=require("vscode");return e?.env?.uiKind===e?.UIKind?.Web}catch{return Ke.VSCODE_WEB==="true"}}function F(){return ae!==void 0||(ae=Ke.EXPLORER_DATES_WEB_DIAG==="1"||lr()),ae}function Be(){return{enabled:F(),logs:[],logOnce:new Set,commandsRegistered:new Set,commandsInvoked:[],errors:[],chunkLoads:[],provider:{created:!1,registered:!1,hydrated:!1,decorationCalls:0,refreshCalls:0,lastEvent:null}}}var cr=Be();function _(){return typeof globalThis<"u"?(globalThis[Ce]||(globalThis[Ce]=Be()),globalThis[Ce]):cr}function ur(e){try{return JSON.stringify(e)}catch{return String(e)}}function R(e,t,r){if(!F())return;let n=_(),o={ts:new Date().toISOString(),level:e,message:t,meta:r||null};n.logs.push(o),n.logs.length>400&&n.logs.shift();let i=r?`${He} ${t} ${ur(r)}`:`${He} ${t}`,a=console[e]||console.info;try{a(i)}catch{}}function dr(e,t,r,n){if(!F())return;let o=_();o.logOnce.has(e)||(o.logOnce.add(e),R(t,r,n))}function fr(e){if(!F())return;_().commandsRegistered.add(e),R("info","Command registered",{commandId:e})}function pr(e){if(!F())return;_().commandsInvoked.push({commandId:e,ts:Date.now()}),R("info","Command invoked",{commandId:e})}function mr(e,t,r){F()&&(t?R("info","Command completed",{commandId:e}):(R("error","Command failed",{commandId:e,error:r?.message,stack:r?.stack}),_().errors.push({commandId:e,error:r?.message,stack:r?.stack})))}function gr(e,t,r){if(!F())return;_().chunkLoads.push({chunkName:e,stage:t,ts:Date.now(),error:r?r.message||String(r):null}),R(r?"warn":"info",`Chunk ${t}`,{chunkName:e,error:r?.message})}function hr(e,t){if(!F())return;let r=_();r.provider.lastEvent={event:e,ts:Date.now(),meta:t||null},e==="created"&&(r.provider.created=!0),e==="registered"&&(r.provider.registered=!0),e==="hydrated"&&(r.provider.hydrated=!0),R("info",`Provider ${e}`,t)}function yr(){if(!F())return;let e=_();e.provider.decorationCalls+=1,e.provider.decorationCalls<=3&&R("info","Decoration request observed",{count:e.provider.decorationCalls})}function br(){if(!F())return;let e=_();e.provider.refreshCalls+=1}ze.exports={isWebDiagnosticsEnabled:F,getWebDiagnosticsState:_,diagLog:R,diagLogOnce:dr,recordCommandRegistration:fr,recordCommandInvocation:pr,recordCommandResult:mr,recordChunkEvent:gr,recordProviderEvent:hr,recordDecorationCall:yr,recordRefreshCall:br}});var Z=E((Vn,Ve)=>{var $e=require("vscode");function Er(){try{let e=$e?.env?.uiKind,t=$e?.UIKind?.Web;return e!==void 0&&t!==void 0&&e===t}catch{return!1}}Ve.exports={isWebEnvironment:Er}});var J=E((jn,Ge)=>{var z=typeof process<"u"&&process.env?process.env:{},Dr=12e4,vr=1e4,Sr=1440*60*1e3,Cr=2,kr=["Ja","Fe","Mr","Ap","My","Jn","Jl","Au","Se","Oc","No","De"],Tr=Number(z.EXPLORER_DATES_DECORATION_POOL_SIZE||2048),wr=Number(z.EXPLORER_DATES_FLYWEIGHT_CACHE_SIZE||4096),Ar=Number(z.EXPLORER_DATES_WORKSPACE_BALANCED_THRESHOLD||15e3),Fr=Number(z.EXPLORER_DATES_WORKSPACE_LARGE_THRESHOLD||25e4),je=Number(z.EXPLORER_DATES_WORKSPACE_EXTREME_THRESHOLD||4e5),_r=Number(z.EXPLORER_DATES_WORKSPACE_SCAN_MAX_RESULTS||Math.min(je+1,50001)),Rr={ADVANCED_CACHE:"explorerDates.advancedCache",ADVANCED_CACHE_METADATA:"explorerDates.advancedCacheMetadata",TEMPLATE_STORE:"explorerDates.templates",WEB_GIT_NOTICE:"explorerDates.webGitNotice"},xr="explorerDatesChunks",Pr="__explorerDatesChunks";Ge.exports={DEFAULT_CACHE_TIMEOUT:Dr,DEFAULT_MAX_CACHE_SIZE:vr,DEFAULT_PERSISTENT_CACHE_TTL:Sr,DEFAULT_DECORATION_POOL_SIZE:Tr,DEFAULT_FLYWEIGHT_CACHE_SIZE:wr,MAX_BADGE_LENGTH:Cr,MONTH_ABBREVIATIONS:kr,WORKSPACE_SCALE_BALANCED_THRESHOLD:Ar,WORKSPACE_SCALE_LARGE_THRESHOLD:Fr,WORKSPACE_SCALE_EXTREME_THRESHOLD:je,WORKSPACE_SCAN_MAX_RESULTS:_r,GLOBAL_STATE_KEYS:Rr,WEB_CHUNK_GLOBAL_KEY:xr,LEGACY_WEB_CHUNK_GLOBAL_KEY:Pr}});var Xe=E((Gn,Ir)=>{Ir.exports={migrationDetailsTitle:"Explorer Dates - Settings Migration",migrationDetailsHeader:"Settings Migration",gitAttributionWarning:"Explorer Dates: Git attribution badges are unavailable on VS Code for Web. Time-based decorations remain available.",noOverridesToDocument:"No overrides to document.",overrideNotesHeader:"# Explorer Dates Override Notes\\n\\n",analysisCommandsDisabled:"Explorer Dates analysis commands are disabled. Shortcuts like Ctrl+Shift+M/H/A will not work until you enable explorerDates.enableAnalysisCommands.",analysisEnableNow:"Enable Now",analysisEnablePartially:"Enable partially succeeded. Update explorerDates.enableAnalysisCommands in remaining workspace folders manually.",analysisEnableFailed:"Enable failed: update explorerDates.enableAnalysisCommands in workspace settings.",workspaceTemplatesDisabled:"Workspace templates are disabled. Enable explorerDates.enableWorkspaceTemplates to use this command.",workspaceTemplatesDisabledSave:"Workspace templates are disabled. Enable explorerDates.enableWorkspaceTemplates to save templates.",enterTemplateName:"Enter template name",enterTemplateDescription:"Enter description (optional)",failedToOpenTemplateManager:"Failed to open template manager: {0}",failedToSaveTemplate:"Failed to save template: {0}",reportingDisabled:"Reporting features are disabled. Enable explorerDates.enableExportReporting to generate reports.",failedToGenerateReport:"Failed to generate report: {0}",apiDisabled:"Explorer Dates API is disabled via settings.",failedToShowApiInformation:"Failed to show API information: {0}",failedToShowWorkspaceActivity:"Failed to show workspace activity: {0}",failedToShowPerformanceAnalytics:"Failed to show performance analytics: {0}",failedToShowCacheDebugInfo:"Failed to show cache debug info: {0}",noWorkspaceFolderOpen:"No workspace folder open",now:"now",minutes:"m",hours:"h",days:"d",weeks:"w",months:"mo",years:"y",justNow:"just now",minutesAgo:"{0} minute(s) ago",hoursAgo:"{0} hour(s) ago",daysAgo:"{0} day(s) ago",lastModified:"Last modified",refreshSuccess:"Date decorations refreshed",activationError:"Explorer Dates failed to activate",errorAccessingFile:"Error accessing file for decoration",clearTelemetryPrompt:"This will permanently delete locally-stored telemetry events for Explorer Dates. This action cannot be undone. Proceed?",clearTelemetryConfirm:"Clear Telemetry",clearTelemetryCancel:"Cancel",reportFormatDisabled:'Report format "{0}" is disabled. Allowed formats: {1}',reportDownloadTriggered:"Report download triggered in browser",selectReportTimeRangePlaceholder:"Select report time range",selectReportFormatPlaceholder:"Select report format",cleanupNoDeprecated:"\u2139\uFE0F No deprecated settings found to clean up.",showMigrationHistoryNoHistory:"No migration history found.",resetConfirmation:"This will reset all Explorer Dates settings to their default values. Are you sure?",resetConfirm:"Reset Settings",resetCancel:"Cancel",resetSuccess:"\u2705 Reset {0} settings to defaults.",validateNoIssues:"\u2705 Configuration is valid - no issues found!",validateFoundIssues:"Found {0} configuration issue(s). Would you like to see details?",validateShowDetails:"Show Details",validateDismiss:"Dismiss",migrationNotificationMessage:"Explorer Dates updated {0} setting(s) for compatibility. Your configuration has been preserved.",migrationViewChanges:"View Changes",migrationOpenSettings:"Open Settings",deprecatedPrompt:"Explorer Dates found {0} deprecated setting(s). Would you like to remove them?",deprecatedClean:"Clean Up Now",deprecatedKeep:"Keep Old Settings",deprecatedAskLater:"Ask Later",showFileLocation:"Show File Location",teamConfigCorrupted:"Explorer Dates team configuration file appears to be corrupted. Please check the .explorer-dates-profiles.json file or restore from backup.",appliedFromTeamProfile:'Applied {0} Explorer Dates settings from team profile "{1}".',documentedOverrides:"Documented Explorer Dates overrides in .vscode/explorer-dates-overrides.md",teamConfigMissingProfile:"Team configuration is missing an active profile.",ephemeralStorageEnospc:"Explorer Dates team configuration could not be saved because the disk is full.",ephemeralStorageGeneric:"Explorer Dates team configuration could not be saved because the workspace is read-only or permissions are restricted.",ephemeralStorageSuffix:"Changes will be kept in memory until VS Code restarts, so they may be lost."}});var Ye=E((Xn,Lr)=>{Lr.exports={migrationDetailsTitle:"Explorer Dates - Migraci\xF3n de configuraci\xF3n",migrationDetailsHeader:"Migraci\xF3n de configuraci\xF3n",gitAttributionWarning:"Explorer Dates: Las insignias de atribuci\xF3n de Git no est\xE1n disponibles en VS Code para la Web. Las decoraciones basadas en tiempo siguen disponibles.",noOverridesToDocument:"No hay anulaciones para documentar.",overrideNotesHeader:"# Notas de anulaci\xF3n de Explorer Dates\\n\\n",analysisCommandsDisabled:"Los comandos de an\xE1lisis de Explorer Dates est\xE1n deshabilitados. Atajos como Ctrl+Shift+M/H/A no funcionar\xE1n hasta que habilites explorerDates.enableAnalysisCommands.",analysisEnableNow:"Habilitar ahora",analysisEnablePartially:"La activaci\xF3n se complet\xF3 parcialmente. Actualiza explorerDates.enableAnalysisCommands manualmente en las carpetas de trabajo restantes.",analysisEnableFailed:"Error al habilitar: actualiza explorerDates.enableAnalysisCommands en la configuraci\xF3n del espacio de trabajo.",workspaceTemplatesDisabled:"Las plantillas de espacio de trabajo est\xE1n deshabilitadas. Habilita explorerDates.enableWorkspaceTemplates para usar este comando.",workspaceTemplatesDisabledSave:"Las plantillas de espacio de trabajo est\xE1n deshabilitadas. Habilita explorerDates.enableWorkspaceTemplates para guardar plantillas.",enterTemplateName:"Introduce el nombre de la plantilla",enterTemplateDescription:"Introduce la descripci\xF3n (opcional)",failedToOpenTemplateManager:"Error al abrir el administrador de plantillas: {0}",failedToSaveTemplate:"Error al guardar la plantilla: {0}",reportingDisabled:"Las funciones de informes est\xE1n deshabilitadas. Habilita explorerDates.enableExportReporting para generar informes.",failedToGenerateReport:"Error al generar el informe: {0}",apiDisabled:"La API de Explorer Dates est\xE1 deshabilitada mediante la configuraci\xF3n.",failedToShowApiInformation:"Error al mostrar la informaci\xF3n de la API: {0}",failedToShowWorkspaceActivity:"Error al mostrar la actividad del espacio de trabajo: {0}",failedToShowPerformanceAnalytics:"Error al mostrar los an\xE1lisis de rendimiento: {0}",failedToShowCacheDebugInfo:"Error al mostrar la informaci\xF3n de depuraci\xF3n de la cach\xE9: {0}",noWorkspaceFolderOpen:"No hay ninguna carpeta de espacio de trabajo abierta",now:"ahora",minutes:"m",hours:"h",days:"d",weeks:"sem",months:"mes",years:"a",justNow:"justo ahora",minutesAgo:"hace {0} minuto(s)",hoursAgo:"hace {0} hora(s)",daysAgo:"hace {0} d\xEDa(s)",lastModified:"\xDAltima modificaci\xF3n",refreshSuccess:"Decoraciones de fecha actualizadas",activationError:"Explorer Dates no se pudo activar",errorAccessingFile:"Error al acceder al archivo para la decoraci\xF3n",clearTelemetryPrompt:"Esto eliminar\xE1 permanentemente los eventos de telemetr\xEDa almacenados localmente para Explorer Dates. Esta acci\xF3n no se puede deshacer. \xBFContinuar?",clearTelemetryConfirm:"Borrar telemetr\xEDa",clearTelemetryCancel:"Cancelar",reportFormatDisabled:'El formato de informe "{0}" est\xE1 deshabilitado. Formatos permitidos: {1}',reportDownloadTriggered:"Descarga del informe iniciada en el navegador",selectReportTimeRangePlaceholder:"Seleccionar rango de tiempo del informe",selectReportFormatPlaceholder:"Seleccionar formato del informe",cleanupNoDeprecated:"\u2139\uFE0F No se encontraron configuraciones obsoletas para limpiar.",showMigrationHistoryNoHistory:"No se encontr\xF3 historial de migraci\xF3n.",resetConfirmation:"Esto restablecer\xE1 todas las configuraciones de Explorer Dates a sus valores predeterminados. \xBFEst\xE1s seguro?",resetConfirm:"Restablecer configuraciones",resetCancel:"Cancelar",resetSuccess:"\u2705 Se restablecieron {0} configuraciones a los valores predeterminados.",validateNoIssues:"\u2705 La configuraci\xF3n es v\xE1lida - no se encontraron problemas.",validateFoundIssues:"Se encontraron {0} problema(s) de configuraci\xF3n. \xBFDeseas ver los detalles?",validateShowDetails:"Mostrar detalles",validateDismiss:"Descartar",migrationNotificationMessage:"Explorer Dates actualiz\xF3 {0} configuraci\xF3n(es) por compatibilidad. Tu configuraci\xF3n se ha conservado.",migrationViewChanges:"Ver cambios",migrationOpenSettings:"Abrir configuraciones",deprecatedPrompt:"Explorer Dates encontr\xF3 {0} configuraci\xF3n(es) obsoleta(s). \xBFDeseas eliminarlas?",deprecatedClean:"Limpiar ahora",deprecatedKeep:"Mantener configuraciones antiguas",deprecatedAskLater:"Preguntar m\xE1s tarde",showFileLocation:"Mostrar ubicaci\xF3n del archivo",teamConfigCorrupted:"El archivo de configuraci\xF3n de equipo de Explorer Dates parece estar da\xF1ado. Verifica el archivo .explorer-dates-profiles.json o restaura desde una copia de seguridad.",appliedFromTeamProfile:'Se aplicaron {0} configuraciones de Explorer Dates desde el perfil de equipo "{1}".',documentedOverrides:"Se documentaron las anulaciones de Explorer Dates en .vscode/explorer-dates-overrides.md",teamConfigMissingProfile:"La configuraci\xF3n del equipo no tiene un perfil activo.",ephemeralStorageEnospc:"No se pudo guardar la configuraci\xF3n de equipo de Explorer Dates porque el disco est\xE1 lleno.",ephemeralStorageGeneric:"No se pudo guardar la configuraci\xF3n de equipo de Explorer Dates porque el espacio de trabajo es de solo lectura o los permisos est\xE1n restringidos.",ephemeralStorageSuffix:"Los cambios se mantendr\xE1n en memoria hasta que VS Code se reinicie, por lo que podr\xEDan perderse."}});var Ze=E((Yn,Nr)=>{Nr.exports={migrationDetailsTitle:"Explorer Dates - Migration des param\xE8tres",migrationDetailsHeader:"Migration des param\xE8tres",gitAttributionWarning:"Explorer Dates : Les badges d\u2019attribution Git ne sont pas disponibles sur VS Code pour le Web. Les d\xE9corations bas\xE9es sur le temps restent disponibles.",noOverridesToDocument:"Aucune substitution \xE0 documenter.",overrideNotesHeader:"# Notes de substitution Explorer Dates\\n\\n",analysisCommandsDisabled:"Les commandes d\u2019analyse Explorer Dates sont d\xE9sactiv\xE9es. Les raccourcis comme Ctrl+Shift+M/H/A ne fonctionneront pas tant que vous n\u2019aurez pas activ\xE9 explorerDates.enableAnalysisCommands.",analysisEnableNow:"Activer maintenant",analysisEnablePartially:"L\u2019activation a partiellement r\xE9ussi. Mettez \xE0 jour explorerDates.enableAnalysisCommands manuellement dans les dossiers d\u2019espace de travail restants.",analysisEnableFailed:"\xC9chec de l\u2019activation : mettez \xE0 jour explorerDates.enableAnalysisCommands dans les param\xE8tres de l\u2019espace de travail.",workspaceTemplatesDisabled:"Les mod\xE8les d\u2019espace de travail sont d\xE9sactiv\xE9s. Activez explorerDates.enableWorkspaceTemplates pour utiliser cette commande.",workspaceTemplatesDisabledSave:"Les mod\xE8les d\u2019espace de travail sont d\xE9sactiv\xE9s. Activez explorerDates.enableWorkspaceTemplates pour enregistrer des mod\xE8les.",enterTemplateName:"Entrez le nom du mod\xE8le",enterTemplateDescription:"Entrez la description (facultatif)",failedToOpenTemplateManager:"Impossible d\u2019ouvrir le gestionnaire de mod\xE8les : {0}",failedToSaveTemplate:"Impossible d\u2019enregistrer le mod\xE8le : {0}",reportingDisabled:"Les fonctionnalit\xE9s de rapport sont d\xE9sactiv\xE9es. Activez explorerDates.enableExportReporting pour g\xE9n\xE9rer des rapports.",failedToGenerateReport:"Impossible de g\xE9n\xE9rer le rapport : {0}",apiDisabled:"L\u2019API Explorer Dates est d\xE9sactiv\xE9e via les param\xE8tres.",failedToShowApiInformation:"Impossible d\u2019afficher les informations de l\u2019API : {0}",failedToShowWorkspaceActivity:"Impossible d\u2019afficher l\u2019activit\xE9 de l\u2019espace de travail : {0}",failedToShowPerformanceAnalytics:"Impossible d\u2019afficher les analyses de performance : {0}",failedToShowCacheDebugInfo:"Impossible d\u2019afficher les informations de d\xE9bogage du cache : {0}",noWorkspaceFolderOpen:"Aucun dossier d\u2019espace de travail ouvert",now:"maintenant",minutes:"min",hours:"h",days:"j",weeks:"sem",months:"mois",years:"an",justNow:"\xE0 l\u2019instant",minutesAgo:"il y a {0} minute(s)",hoursAgo:"il y a {0} heure(s)",daysAgo:"il y a {0} jour(s)",lastModified:"Derni\xE8re modification",refreshSuccess:"D\xE9corations de date actualis\xE9es",activationError:"\xC9chec de l\u2019activation d\u2019Explorer Dates",errorAccessingFile:"Erreur lors de l\u2019acc\xE8s au fichier pour la d\xE9coration",clearTelemetryPrompt:"Cela supprimera d\xE9finitivement les \xE9v\xE9nements de t\xE9l\xE9m\xE9trie stock\xE9s localement pour Explorer Dates. Cette action est irr\xE9versible. Continuer ?",clearTelemetryConfirm:"Effacer la t\xE9l\xE9m\xE9trie",clearTelemetryCancel:"Annuler",reportFormatDisabled:'Le format de rapport "{0}" est d\xE9sactiv\xE9. Formats autoris\xE9s : {1}',reportDownloadTriggered:"T\xE9l\xE9chargement du rapport lanc\xE9 dans le navigateur",selectReportTimeRangePlaceholder:"S\xE9lectionner la p\xE9riode du rapport",selectReportFormatPlaceholder:"S\xE9lectionner le format du rapport",cleanupNoDeprecated:"\u2139\uFE0F Aucun param\xE8tre obsol\xE8te \xE0 nettoyer.",showMigrationHistoryNoHistory:"Aucun historique de migration trouv\xE9.",resetConfirmation:"Cela r\xE9initialisera tous les param\xE8tres Explorer Dates \xE0 leurs valeurs par d\xE9faut. \xCAtes-vous s\xFBr ?",resetConfirm:"R\xE9initialiser les param\xE8tres",resetCancel:"Annuler",resetSuccess:"\u2705 {0} param\xE8tres ont \xE9t\xE9 r\xE9initialis\xE9s aux valeurs par d\xE9faut.",validateNoIssues:"\u2705 La configuration est valide - aucun probl\xE8me d\xE9tect\xE9 !",validateFoundIssues:"{0} probl\xE8me(s) de configuration trouv\xE9(s). Voulez-vous voir les d\xE9tails ?",validateShowDetails:"Afficher les d\xE9tails",validateDismiss:"Ignorer",migrationNotificationMessage:"Explorer Dates a mis \xE0 jour {0} param\xE8tre(s) pour compatibilit\xE9. Votre configuration a \xE9t\xE9 conserv\xE9e.",migrationViewChanges:"Voir les modifications",migrationOpenSettings:"Ouvrir les param\xE8tres",deprecatedPrompt:"Explorer Dates a trouv\xE9 {0} param\xE8tre(s) obsol\xE8te(s). Voulez-vous les supprimer ?",deprecatedClean:"Nettoyer maintenant",deprecatedKeep:"Conserver les anciens param\xE8tres",deprecatedAskLater:"Demander plus tard",showFileLocation:"Afficher l\u2019emplacement du fichier",teamConfigCorrupted:"Le fichier de configuration d\u2019\xE9quipe Explorer Dates semble corrompu. V\xE9rifiez le fichier .explorer-dates-profiles.json ou restaurez-le depuis une sauvegarde.",appliedFromTeamProfile:'{0} param\xE8tres Explorer Dates appliqu\xE9s depuis le profil d\u2019\xE9quipe "{1}".',documentedOverrides:"Substitutions Explorer Dates document\xE9es dans .vscode/explorer-dates-overrides.md",teamConfigMissingProfile:"La configuration d\u2019\xE9quipe ne contient aucun profil actif.",ephemeralStorageEnospc:"Impossible d\u2019enregistrer la configuration d\u2019\xE9quipe Explorer Dates car le disque est plein.",ephemeralStorageGeneric:"Impossible d\u2019enregistrer la configuration d\u2019\xE9quipe Explorer Dates car l\u2019espace de travail est en lecture seule ou les permissions sont restreintes.",ephemeralStorageSuffix:"Les modifications seront conserv\xE9es en m\xE9moire jusqu\u2019au red\xE9marrage de VS Code et pourraient \xEAtre perdues."}});var Je=E((Zn,Or)=>{Or.exports={migrationDetailsTitle:"Explorer Dates - Einstellungen migrieren",migrationDetailsHeader:"Einstellungen migrieren",gitAttributionWarning:"Explorer Dates: Git-Zuordnungsabzeichen sind in VS Code f\xFCr das Web nicht verf\xFCgbar. Zeitbasierte Hervorhebungen bleiben verf\xFCgbar.",noOverridesToDocument:"Keine \xDCberschreibungen zu dokumentieren.",overrideNotesHeader:"# Explorer Dates \xDCberschreibungsnotizen\\n\\n",analysisCommandsDisabled:"Die Analysebefehle von Explorer Dates sind deaktiviert. Tastenkombinationen wie Ctrl+Shift+M/H/A funktionieren nicht, bis explorerDates.enableAnalysisCommands aktiviert ist.",analysisEnableNow:"Jetzt aktivieren",analysisEnablePartially:"Die Aktivierung war teilweise erfolgreich. Aktualisieren Sie explorerDates.enableAnalysisCommands manuell in den verbleibenden Workspace-Ordnern.",analysisEnableFailed:"Aktivierung fehlgeschlagen: Aktualisieren Sie explorerDates.enableAnalysisCommands in den Workspace-Einstellungen.",workspaceTemplatesDisabled:"Workspace-Vorlagen sind deaktiviert. Aktivieren Sie explorerDates.enableWorkspaceTemplates, um diesen Befehl zu verwenden.",workspaceTemplatesDisabledSave:"Workspace-Vorlagen sind deaktiviert. Aktivieren Sie explorerDates.enableWorkspaceTemplates, um Vorlagen zu speichern.",enterTemplateName:"Vorlagenname eingeben",enterTemplateDescription:"Beschreibung eingeben (optional)",failedToOpenTemplateManager:"Fehler beim \xD6ffnen des Vorlagenmanagers: {0}",failedToSaveTemplate:"Fehler beim Speichern der Vorlage: {0}",reportingDisabled:"Berichtsfunktionen sind deaktiviert. Aktivieren Sie explorerDates.enableExportReporting, um Berichte zu erstellen.",failedToGenerateReport:"Fehler beim Erstellen des Berichts: {0}",apiDisabled:"Die Explorer Dates API ist in den Einstellungen deaktiviert.",failedToShowApiInformation:"Fehler beim Anzeigen der API-Informationen: {0}",failedToShowWorkspaceActivity:"Fehler beim Anzeigen der Workspace-Aktivit\xE4t: {0}",failedToShowPerformanceAnalytics:"Fehler beim Anzeigen der Leistungsanalysen: {0}",failedToShowCacheDebugInfo:"Fehler beim Anzeigen der Cache-Debug-Informationen: {0}",noWorkspaceFolderOpen:"Kein Workspace-Ordner ge\xF6ffnet",now:"jetzt",minutes:"Min",hours:"Std",days:"T",weeks:"W",months:"Mon",years:"J",justNow:"gerade eben",minutesAgo:"vor {0} Minute(n)",hoursAgo:"vor {0} Stunde(n)",daysAgo:"vor {0} Tag(en)",lastModified:"Zuletzt ge\xE4ndert",refreshSuccess:"Datumsdekorationen aktualisiert",activationError:"Explorer Dates konnte nicht aktiviert werden",errorAccessingFile:"Fehler beim Zugriff auf Datei f\xFCr Dekoration",clearTelemetryPrompt:"Dies l\xF6scht dauerhaft lokal gespeicherte Telemetrieereignisse f\xFCr Explorer Dates. Diese Aktion kann nicht r\xFCckg\xE4ngig gemacht werden. Fortfahren?",clearTelemetryConfirm:"Telemetrie l\xF6schen",clearTelemetryCancel:"Abbrechen",reportFormatDisabled:'Berichtsformat "{0}" ist deaktiviert. Zul\xE4ssige Formate: {1}',reportDownloadTriggered:"Bericht-Download im Browser gestartet",selectReportTimeRangePlaceholder:"Berichtszeitraum ausw\xE4hlen",selectReportFormatPlaceholder:"Berichtsformat ausw\xE4hlen",cleanupNoDeprecated:"\u2139\uFE0F Keine veralteten Einstellungen zum Bereinigen gefunden.",showMigrationHistoryNoHistory:"Kein Migrationsverlauf gefunden.",resetConfirmation:"Dies setzt alle Explorer Dates Einstellungen auf ihre Standardwerte zur\xFCck. Sind Sie sicher?",resetConfirm:"Einstellungen zur\xFCcksetzen",resetCancel:"Abbrechen",resetSuccess:"\u2705 {0} Einstellungen auf Standard zur\xFCckgesetzt.",validateNoIssues:"\u2705 Konfiguration ist g\xFCltig - keine Probleme gefunden!",validateFoundIssues:"{0} Konfigurationsproblem(e) gefunden. M\xF6chten Sie Details sehen?",validateShowDetails:"Details anzeigen",validateDismiss:"Verwerfen",migrationNotificationMessage:"Explorer Dates hat {0} Einstellung(en) zur Kompatibilit\xE4t aktualisiert. Ihre Konfiguration wurde beibehalten.",migrationViewChanges:"\xC4nderungen anzeigen",migrationOpenSettings:"Einstellungen \xF6ffnen",deprecatedPrompt:"Explorer Dates hat {0} veraltete Einstellung(en) gefunden. M\xF6chten Sie sie entfernen?",deprecatedClean:"Jetzt bereinigen",deprecatedKeep:"Alte Einstellungen behalten",deprecatedAskLater:"Sp\xE4ter fragen",showFileLocation:"Dateispeicherort anzeigen",teamConfigCorrupted:"Die Teamkonfigurationsdatei von Explorer Dates scheint besch\xE4digt zu sein. Bitte pr\xFCfen Sie die Datei .explorer-dates-profiles.json oder stellen Sie sie aus einem Backup wieder her.",appliedFromTeamProfile:'{0} Explorer Dates-Einstellungen aus dem Teamprofil "{1}" angewendet.',documentedOverrides:"Explorer Dates-\xDCberschreibungen in .vscode/explorer-dates-overrides.md dokumentiert",teamConfigMissingProfile:"Der Teamkonfiguration fehlt ein aktives Profil.",ephemeralStorageEnospc:"Die Teamkonfiguration von Explorer Dates konnte nicht gespeichert werden, da die Festplatte voll ist.",ephemeralStorageGeneric:"Die Teamkonfiguration von Explorer Dates konnte nicht gespeichert werden, da der Workspace schreibgesch\xFCtzt ist oder die Berechtigungen eingeschr\xE4nkt sind.",ephemeralStorageSuffix:"\xC4nderungen werden im Speicher behalten, bis VS Code neu startet, und k\xF6nnen verloren gehen."}});var Qe=E((Jn,Wr)=>{Wr.exports={migrationDetailsTitle:"Explorer Dates - \u8A2D\u5B9A\u306E\u79FB\u884C",migrationDetailsHeader:"\u8A2D\u5B9A\u306E\u79FB\u884C",gitAttributionWarning:"Explorer Dates: Git \u306E\u5E30\u5C5E\u30D0\u30C3\u30B8\u306F VS Code for Web \u3067\u306F\u5229\u7528\u3067\u304D\u307E\u305B\u3093\u3002\u6642\u9593\u30D9\u30FC\u30B9\u306E\u88C5\u98FE\u306F\u5F15\u304D\u7D9A\u304D\u5229\u7528\u3067\u304D\u307E\u3059\u3002",noOverridesToDocument:"\u30C9\u30AD\u30E5\u30E1\u30F3\u30C8\u5316\u3059\u308B\u4E0A\u66F8\u304D\u306F\u3042\u308A\u307E\u305B\u3093\u3002",overrideNotesHeader:"# Explorer Dates \u4E0A\u66F8\u304D\u30E1\u30E2\\n\\n",analysisCommandsDisabled:"Explorer Dates \u306E\u5206\u6790\u30B3\u30DE\u30F3\u30C9\u306F\u7121\u52B9\u306B\u306A\u3063\u3066\u3044\u307E\u3059\u3002Ctrl+Shift+M/H/A \u306A\u3069\u306E\u30B7\u30E7\u30FC\u30C8\u30AB\u30C3\u30C8\u306F explorerDates.enableAnalysisCommands \u3092\u6709\u52B9\u306B\u3059\u308B\u307E\u3067\u6A5F\u80FD\u3057\u307E\u305B\u3093\u3002",analysisEnableNow:"\u4ECA\u3059\u3050\u6709\u52B9\u306B\u3059\u308B",analysisEnablePartially:"\u6709\u52B9\u5316\u306F\u4E00\u90E8\u6210\u529F\u3057\u307E\u3057\u305F\u3002\u6B8B\u308A\u306E\u30EF\u30FC\u30AF\u30B9\u30DA\u30FC\u30B9\u30D5\u30A9\u30EB\u30C0\u30FC\u3067 explorerDates.enableAnalysisCommands \u3092\u624B\u52D5\u3067\u66F4\u65B0\u3057\u3066\u304F\u3060\u3055\u3044\u3002",analysisEnableFailed:"\u6709\u52B9\u5316\u306B\u5931\u6557\u3057\u307E\u3057\u305F\uFF1A\u30EF\u30FC\u30AF\u30B9\u30DA\u30FC\u30B9\u8A2D\u5B9A\u3067 explorerDates.enableAnalysisCommands \u3092\u66F4\u65B0\u3057\u3066\u304F\u3060\u3055\u3044\u3002",workspaceTemplatesDisabled:"\u30EF\u30FC\u30AF\u30B9\u30DA\u30FC\u30B9\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8\u306F\u7121\u52B9\u306B\u306A\u3063\u3066\u3044\u307E\u3059\u3002\u3053\u306E\u30B3\u30DE\u30F3\u30C9\u3092\u4F7F\u7528\u3059\u308B\u306B\u306F explorerDates.enableWorkspaceTemplates \u3092\u6709\u52B9\u306B\u3057\u3066\u304F\u3060\u3055\u3044\u3002",workspaceTemplatesDisabledSave:"\u30EF\u30FC\u30AF\u30B9\u30DA\u30FC\u30B9\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8\u306F\u7121\u52B9\u306B\u306A\u3063\u3066\u3044\u307E\u3059\u3002\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8\u3092\u4FDD\u5B58\u3059\u308B\u306B\u306F explorerDates.enableWorkspaceTemplates \u3092\u6709\u52B9\u306B\u3057\u3066\u304F\u3060\u3055\u3044\u3002",enterTemplateName:"\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8\u540D\u3092\u5165\u529B",enterTemplateDescription:"\u8AAC\u660E\u3092\u5165\u529B\uFF08\u4EFB\u610F\uFF09",failedToOpenTemplateManager:"\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8\u30DE\u30CD\u30FC\u30B8\u30E3\u30FC\u3092\u958B\u3051\u307E\u305B\u3093\u3067\u3057\u305F: {0}",failedToSaveTemplate:"\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8\u306E\u4FDD\u5B58\u306B\u5931\u6557\u3057\u307E\u3057\u305F: {0}",reportingDisabled:"\u30EC\u30DD\u30FC\u30C8\u6A5F\u80FD\u306F\u7121\u52B9\u306B\u306A\u3063\u3066\u3044\u307E\u3059\u3002\u30EC\u30DD\u30FC\u30C8\u3092\u751F\u6210\u3059\u308B\u306B\u306F explorerDates.enableExportReporting \u3092\u6709\u52B9\u306B\u3057\u3066\u304F\u3060\u3055\u3044\u3002",failedToGenerateReport:"\u30EC\u30DD\u30FC\u30C8\u306E\u751F\u6210\u306B\u5931\u6557\u3057\u307E\u3057\u305F: {0}",apiDisabled:"Explorer Dates API \u306F\u8A2D\u5B9A\u3067\u7121\u52B9\u306B\u306A\u3063\u3066\u3044\u307E\u3059\u3002",failedToShowApiInformation:"API \u60C5\u5831\u306E\u8868\u793A\u306B\u5931\u6557\u3057\u307E\u3057\u305F: {0}",failedToShowWorkspaceActivity:"\u30EF\u30FC\u30AF\u30B9\u30DA\u30FC\u30B9\u306E\u30A2\u30AF\u30C6\u30A3\u30D3\u30C6\u30A3\u3092\u8868\u793A\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F: {0}",failedToShowPerformanceAnalytics:"\u30D1\u30D5\u30A9\u30FC\u30DE\u30F3\u30B9\u5206\u6790\u3092\u8868\u793A\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F: {0}",failedToShowCacheDebugInfo:"\u30AD\u30E3\u30C3\u30B7\u30E5\u306E\u30C7\u30D0\u30C3\u30B0\u60C5\u5831\u3092\u8868\u793A\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F: {0}",noWorkspaceFolderOpen:"\u30EF\u30FC\u30AF\u30B9\u30DA\u30FC\u30B9\u30D5\u30A9\u30EB\u30C0\u30FC\u304C\u958B\u304B\u308C\u3066\u3044\u307E\u305B\u3093",now:"\u4ECA",minutes:"\u5206",hours:"\u6642\u9593",days:"\u65E5",weeks:"\u9031",months:"\u304B\u6708",years:"\u5E74",justNow:"\u305F\u3063\u305F\u4ECA",minutesAgo:"{0} \u5206\u524D",hoursAgo:"{0} \u6642\u9593\u524D",daysAgo:"{0} \u65E5\u524D",lastModified:"\u6700\u7D42\u66F4\u65B0",refreshSuccess:"\u65E5\u4ED8\u88C5\u98FE\u3092\u66F4\u65B0\u3057\u307E\u3057\u305F",activationError:"Explorer Dates \u306E\u6709\u52B9\u5316\u306B\u5931\u6557\u3057\u307E\u3057\u305F",errorAccessingFile:"\u88C5\u98FE\u7528\u30D5\u30A1\u30A4\u30EB\u3078\u306E\u30A2\u30AF\u30BB\u30B9\u30A8\u30E9\u30FC",clearTelemetryPrompt:"Explorer Dates \u306E\u30ED\u30FC\u30AB\u30EB\u4FDD\u5B58\u30C6\u30EC\u30E1\u30C8\u30EA\u30A4\u30D9\u30F3\u30C8\u3092\u5B8C\u5168\u306B\u524A\u9664\u3057\u307E\u3059\u3002\u3053\u306E\u64CD\u4F5C\u306F\u5143\u306B\u623B\u305B\u307E\u305B\u3093\u3002\u7D9A\u884C\u3057\u307E\u3059\u304B\uFF1F",clearTelemetryConfirm:"\u30C6\u30EC\u30E1\u30C8\u30EA\u3092\u524A\u9664",clearTelemetryCancel:"\u30AD\u30E3\u30F3\u30BB\u30EB",reportFormatDisabled:"\u30EC\u30DD\u30FC\u30C8\u5F62\u5F0F\u300C{0}\u300D\u306F\u7121\u52B9\u3067\u3059\u3002\u8A31\u53EF\u3055\u308C\u3066\u3044\u308B\u5F62\u5F0F: {1}",reportDownloadTriggered:"\u30D6\u30E9\u30A6\u30B6\u3067\u30EC\u30DD\u30FC\u30C8\u306E\u30C0\u30A6\u30F3\u30ED\u30FC\u30C9\u3092\u958B\u59CB\u3057\u307E\u3057\u305F",selectReportTimeRangePlaceholder:"\u30EC\u30DD\u30FC\u30C8\u306E\u671F\u9593\u3092\u9078\u629E",selectReportFormatPlaceholder:"\u30EC\u30DD\u30FC\u30C8\u5F62\u5F0F\u3092\u9078\u629E",cleanupNoDeprecated:"\u2139\uFE0F \u30AF\u30EA\u30FC\u30F3\u30A2\u30C3\u30D7\u3059\u308B\u975E\u63A8\u5968\u8A2D\u5B9A\u306F\u3042\u308A\u307E\u305B\u3093\u3002",showMigrationHistoryNoHistory:"\u79FB\u884C\u5C65\u6B74\u304C\u898B\u3064\u304B\u308A\u307E\u305B\u3093\u3002",resetConfirmation:"Explorer Dates \u306E\u3059\u3079\u3066\u306E\u8A2D\u5B9A\u3092\u65E2\u5B9A\u5024\u306B\u30EA\u30BB\u30C3\u30C8\u3057\u307E\u3059\u3002\u3088\u308D\u3057\u3044\u3067\u3059\u304B\uFF1F",resetConfirm:"\u8A2D\u5B9A\u3092\u30EA\u30BB\u30C3\u30C8",resetCancel:"\u30AD\u30E3\u30F3\u30BB\u30EB",resetSuccess:"\u2705 {0} \u4EF6\u306E\u8A2D\u5B9A\u3092\u65E2\u5B9A\u5024\u306B\u30EA\u30BB\u30C3\u30C8\u3057\u307E\u3057\u305F\u3002",validateNoIssues:"\u2705 \u8A2D\u5B9A\u306F\u6709\u52B9\u3067\u3059 - \u554F\u984C\u306F\u898B\u3064\u304B\u308A\u307E\u305B\u3093\u3067\u3057\u305F\uFF01",validateFoundIssues:"{0} \u4EF6\u306E\u8A2D\u5B9A\u554F\u984C\u304C\u898B\u3064\u304B\u308A\u307E\u3057\u305F\u3002\u8A73\u7D30\u3092\u8868\u793A\u3057\u307E\u3059\u304B\uFF1F",validateShowDetails:"\u8A73\u7D30\u3092\u8868\u793A",validateDismiss:"\u9589\u3058\u308B",migrationNotificationMessage:"Explorer Dates \u306F\u4E92\u63DB\u6027\u306E\u305F\u3081\u306B {0} \u4EF6\u306E\u8A2D\u5B9A\u3092\u66F4\u65B0\u3057\u307E\u3057\u305F\u3002\u8A2D\u5B9A\u306F\u4FDD\u6301\u3055\u308C\u3066\u3044\u307E\u3059\u3002",migrationViewChanges:"\u5909\u66F4\u3092\u8868\u793A",migrationOpenSettings:"\u8A2D\u5B9A\u3092\u958B\u304F",deprecatedPrompt:"Explorer Dates \u306F {0} \u4EF6\u306E\u975E\u63A8\u5968\u8A2D\u5B9A\u3092\u691C\u51FA\u3057\u307E\u3057\u305F\u3002\u524A\u9664\u3057\u307E\u3059\u304B\uFF1F",deprecatedClean:"\u4ECA\u3059\u3050\u30AF\u30EA\u30FC\u30F3\u30A2\u30C3\u30D7",deprecatedKeep:"\u53E4\u3044\u8A2D\u5B9A\u3092\u4FDD\u6301",deprecatedAskLater:"\u5F8C\u3067\u78BA\u8A8D",showFileLocation:"\u30D5\u30A1\u30A4\u30EB\u306E\u5834\u6240\u3092\u8868\u793A",teamConfigCorrupted:"Explorer Dates \u306E\u30C1\u30FC\u30E0\u8A2D\u5B9A\u30D5\u30A1\u30A4\u30EB\u304C\u7834\u640D\u3057\u3066\u3044\u308B\u53EF\u80FD\u6027\u304C\u3042\u308A\u307E\u3059\u3002.explorer-dates-profiles.json \u3092\u78BA\u8A8D\u3059\u308B\u304B\u30D0\u30C3\u30AF\u30A2\u30C3\u30D7\u304B\u3089\u5FA9\u5143\u3057\u3066\u304F\u3060\u3055\u3044\u3002",appliedFromTeamProfile:"\u30C1\u30FC\u30E0\u30D7\u30ED\u30D5\u30A1\u30A4\u30EB\u300C{1}\u300D\u304B\u3089 {0} \u4EF6\u306E Explorer Dates \u8A2D\u5B9A\u3092\u9069\u7528\u3057\u307E\u3057\u305F\u3002",documentedOverrides:".vscode/explorer-dates-overrides.md \u306B Explorer Dates \u306E\u4E0A\u66F8\u304D\u3092\u8A18\u9332\u3057\u307E\u3057\u305F",teamConfigMissingProfile:"\u30C1\u30FC\u30E0\u8A2D\u5B9A\u306B\u30A2\u30AF\u30C6\u30A3\u30D6\u306A\u30D7\u30ED\u30D5\u30A1\u30A4\u30EB\u304C\u3042\u308A\u307E\u305B\u3093\u3002",ephemeralStorageEnospc:"\u30C7\u30A3\u30B9\u30AF\u5BB9\u91CF\u4E0D\u8DB3\u306E\u305F\u3081\u3001Explorer Dates \u306E\u30C1\u30FC\u30E0\u8A2D\u5B9A\u3092\u4FDD\u5B58\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002",ephemeralStorageGeneric:"\u30EF\u30FC\u30AF\u30B9\u30DA\u30FC\u30B9\u304C\u8AAD\u307F\u53D6\u308A\u5C02\u7528\u3001\u307E\u305F\u306F\u6A29\u9650\u304C\u5236\u9650\u3055\u308C\u3066\u3044\u308B\u305F\u3081\u3001Explorer Dates \u306E\u30C1\u30FC\u30E0\u8A2D\u5B9A\u3092\u4FDD\u5B58\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002",ephemeralStorageSuffix:"\u5909\u66F4\u306F VS Code \u304C\u518D\u8D77\u52D5\u3059\u308B\u307E\u3067\u30E1\u30E2\u30EA\u306B\u4FDD\u6301\u3055\u308C\u308B\u305F\u3081\u3001\u5931\u308F\u308C\u308B\u53EF\u80FD\u6027\u304C\u3042\u308A\u307E\u3059\u3002"}});var et=E((Qn,Mr)=>{Mr.exports={migrationDetailsTitle:"Explorer Dates - \u8BBE\u7F6E\u8FC1\u79FB",migrationDetailsHeader:"\u8BBE\u7F6E\u8FC1\u79FB",gitAttributionWarning:"Explorer Dates\uFF1AGit \u5F52\u5C5E\u5FBD\u7AE0\u5728 VS Code Web \u7248\u4E2D\u4E0D\u53EF\u7528\u3002\u57FA\u4E8E\u65F6\u95F4\u7684\u88C5\u9970\u4ECD\u7136\u53EF\u7528\u3002",noOverridesToDocument:"\u6CA1\u6709\u9700\u8981\u8BB0\u5F55\u7684\u8986\u76D6\u9879\u3002",overrideNotesHeader:"# Explorer Dates \u8986\u76D6\u8BF4\u660E\\n\\n",analysisCommandsDisabled:"Explorer Dates \u5206\u6790\u547D\u4EE4\u5DF2\u7981\u7528\u3002\u5728\u542F\u7528 explorerDates.enableAnalysisCommands \u4E4B\u524D\uFF0CCtrl+Shift+M/H/A \u7B49\u5FEB\u6377\u952E\u5C06\u65E0\u6CD5\u4F7F\u7528\u3002",analysisEnableNow:"\u7ACB\u5373\u542F\u7528",analysisEnablePartially:"\u542F\u7528\u90E8\u5206\u6210\u529F\u3002\u8BF7\u5728\u5269\u4F59\u7684\u5DE5\u4F5C\u533A\u6587\u4EF6\u5939\u4E2D\u624B\u52A8\u66F4\u65B0 explorerDates.enableAnalysisCommands\u3002",analysisEnableFailed:"\u542F\u7528\u5931\u8D25\uFF1A\u8BF7\u5728\u5DE5\u4F5C\u533A\u8BBE\u7F6E\u4E2D\u66F4\u65B0 explorerDates.enableAnalysisCommands\u3002",workspaceTemplatesDisabled:"\u5DE5\u4F5C\u533A\u6A21\u677F\u5DF2\u7981\u7528\u3002\u542F\u7528 explorerDates.enableWorkspaceTemplates \u4EE5\u4F7F\u7528\u6B64\u547D\u4EE4\u3002",workspaceTemplatesDisabledSave:"\u5DE5\u4F5C\u533A\u6A21\u677F\u5DF2\u7981\u7528\u3002\u542F\u7528 explorerDates.enableWorkspaceTemplates \u4EE5\u4FDD\u5B58\u6A21\u677F\u3002",enterTemplateName:"\u8F93\u5165\u6A21\u677F\u540D\u79F0",enterTemplateDescription:"\u8F93\u5165\u63CF\u8FF0\uFF08\u53EF\u9009\uFF09",failedToOpenTemplateManager:"\u65E0\u6CD5\u6253\u5F00\u6A21\u677F\u7BA1\u7406\u5668\uFF1A{0}",failedToSaveTemplate:"\u4FDD\u5B58\u6A21\u677F\u5931\u8D25\uFF1A{0}",reportingDisabled:"\u62A5\u8868\u529F\u80FD\u5DF2\u7981\u7528\u3002\u542F\u7528 explorerDates.enableExportReporting \u4EE5\u751F\u6210\u62A5\u8868\u3002",failedToGenerateReport:"\u751F\u6210\u62A5\u8868\u5931\u8D25\uFF1A{0}",apiDisabled:"Explorer Dates API \u5DF2\u901A\u8FC7\u8BBE\u7F6E\u7981\u7528\u3002",failedToShowApiInformation:"\u663E\u793A API \u4FE1\u606F\u5931\u8D25\uFF1A{0}",failedToShowWorkspaceActivity:"\u663E\u793A\u5DE5\u4F5C\u533A\u6D3B\u52A8\u5931\u8D25\uFF1A{0}",failedToShowPerformanceAnalytics:"\u663E\u793A\u6027\u80FD\u5206\u6790\u5931\u8D25\uFF1A{0}",failedToShowCacheDebugInfo:"\u663E\u793A\u7F13\u5B58\u8C03\u8BD5\u4FE1\u606F\u5931\u8D25\uFF1A{0}",noWorkspaceFolderOpen:"\u672A\u6253\u5F00\u4EFB\u4F55\u5DE5\u4F5C\u533A\u6587\u4EF6\u5939",now:"\u73B0\u5728",minutes:"\u5206",hours:"\u5C0F\u65F6",days:"\u5929",weeks:"\u5468",months:"\u4E2A\u6708",years:"\u5E74",justNow:"\u521A\u521A",minutesAgo:"{0} \u5206\u949F\u524D",hoursAgo:"{0} \u5C0F\u65F6\u524D",daysAgo:"{0} \u5929\u524D",lastModified:"\u6700\u540E\u4FEE\u6539",refreshSuccess:"\u65E5\u671F\u88C5\u9970\u5DF2\u5237\u65B0",activationError:"Explorer Dates \u542F\u52A8\u5931\u8D25",errorAccessingFile:"\u8BBF\u95EE\u7528\u4E8E\u88C5\u9970\u7684\u6587\u4EF6\u65F6\u51FA\u9519",clearTelemetryPrompt:"\u8FD9\u5C06\u6C38\u4E45\u5220\u9664\u672C\u5730\u5B58\u50A8\u7684 Explorer Dates \u9065\u6D4B\u4E8B\u4EF6\u3002\u6B64\u64CD\u4F5C\u65E0\u6CD5\u64A4\u9500\u3002\u662F\u5426\u7EE7\u7EED\uFF1F",clearTelemetryConfirm:"\u6E05\u9664\u9065\u6D4B",clearTelemetryCancel:"\u53D6\u6D88",reportFormatDisabled:"\u62A5\u8868\u683C\u5F0F\u201C{0}\u201D\u5DF2\u7981\u7528\u3002\u5141\u8BB8\u7684\u683C\u5F0F\uFF1A{1}",reportDownloadTriggered:"\u5DF2\u5728\u6D4F\u89C8\u5668\u4E2D\u89E6\u53D1\u62A5\u8868\u4E0B\u8F7D",selectReportTimeRangePlaceholder:"\u9009\u62E9\u62A5\u8868\u65F6\u95F4\u8303\u56F4",selectReportFormatPlaceholder:"\u9009\u62E9\u62A5\u8868\u683C\u5F0F",cleanupNoDeprecated:"\u2139\uFE0F \u672A\u53D1\u73B0\u9700\u8981\u6E05\u7406\u7684\u5DF2\u5F03\u7528\u8BBE\u7F6E\u3002",showMigrationHistoryNoHistory:"\u672A\u627E\u5230\u8FC1\u79FB\u5386\u53F2\u3002",resetConfirmation:"\u8FD9\u5C06\u628A\u6240\u6709 Explorer Dates \u8BBE\u7F6E\u91CD\u7F6E\u4E3A\u9ED8\u8BA4\u503C\u3002\u786E\u5B9A\u5417\uFF1F",resetConfirm:"\u91CD\u7F6E\u8BBE\u7F6E",resetCancel:"\u53D6\u6D88",resetSuccess:"\u2705 \u5DF2\u5C06 {0} \u9879\u8BBE\u7F6E\u91CD\u7F6E\u4E3A\u9ED8\u8BA4\u503C\u3002",validateNoIssues:"\u2705 \u914D\u7F6E\u6709\u6548 - \u672A\u53D1\u73B0\u95EE\u9898\uFF01",validateFoundIssues:"\u53D1\u73B0 {0} \u4E2A\u914D\u7F6E\u95EE\u9898\u3002\u662F\u5426\u67E5\u770B\u8BE6\u7EC6\u4FE1\u606F\uFF1F",validateShowDetails:"\u663E\u793A\u8BE6\u7EC6\u4FE1\u606F",validateDismiss:"\u5173\u95ED",migrationNotificationMessage:"Explorer Dates \u4E3A\u517C\u5BB9\u6027\u66F4\u65B0\u4E86 {0} \u9879\u8BBE\u7F6E\u3002\u60A8\u7684\u914D\u7F6E\u5DF2\u4FDD\u7559\u3002",migrationViewChanges:"\u67E5\u770B\u66F4\u6539",migrationOpenSettings:"\u6253\u5F00\u8BBE\u7F6E",deprecatedPrompt:"Explorer Dates \u53D1\u73B0 {0} \u4E2A\u5DF2\u5F03\u7528\u8BBE\u7F6E\u3002\u662F\u5426\u5220\u9664\uFF1F",deprecatedClean:"\u7ACB\u5373\u6E05\u7406",deprecatedKeep:"\u4FDD\u7559\u65E7\u8BBE\u7F6E",deprecatedAskLater:"\u7A0D\u540E\u8BE2\u95EE",showFileLocation:"\u663E\u793A\u6587\u4EF6\u4F4D\u7F6E",teamConfigCorrupted:"Explorer Dates \u56E2\u961F\u914D\u7F6E\u6587\u4EF6\u4F3C\u4E4E\u5DF2\u635F\u574F\u3002\u8BF7\u68C0\u67E5 .explorer-dates-profiles.json \u6587\u4EF6\u6216\u4ECE\u5907\u4EFD\u6062\u590D\u3002",appliedFromTeamProfile:"\u5DF2\u4ECE\u56E2\u961F\u914D\u7F6E\u6587\u4EF6\u201C{1}\u201D\u5E94\u7528 {0} \u9879 Explorer Dates \u8BBE\u7F6E\u3002",documentedOverrides:"\u5DF2\u5728 .vscode/explorer-dates-overrides.md \u4E2D\u8BB0\u5F55 Explorer Dates \u8986\u76D6\u9879",teamConfigMissingProfile:"\u56E2\u961F\u914D\u7F6E\u7F3A\u5C11\u6D3B\u52A8\u914D\u7F6E\u6587\u4EF6\u3002",ephemeralStorageEnospc:"\u7531\u4E8E\u78C1\u76D8\u5DF2\u6EE1\uFF0C\u65E0\u6CD5\u4FDD\u5B58 Explorer Dates \u56E2\u961F\u914D\u7F6E\u3002",ephemeralStorageGeneric:"\u7531\u4E8E\u5DE5\u4F5C\u533A\u4E3A\u53EA\u8BFB\u6216\u6743\u9650\u53D7\u9650\uFF0C\u65E0\u6CD5\u4FDD\u5B58 Explorer Dates \u56E2\u961F\u914D\u7F6E\u3002",ephemeralStorageSuffix:"\u66F4\u6539\u5C06\u5728 VS Code \u91CD\u542F\u524D\u4FDD\u5B58\u5728\u5185\u5B58\u4E2D\uFF0C\u56E0\u6B64\u53EF\u80FD\u4F1A\u4E22\u5931\u3002"}});var rt=E((eo,tt)=>{var M={};M.en=Xe();M.es=Ye();M.fr=Ze();M.de=Je();M.ja=Qe();M.zh=et();tt.exports=M});var ot=E((to,nt)=>{var U=require("vscode"),I={en:{now:"now",minutes:"m",hours:"h",days:"d",weeks:"w",months:"mo",years:"y",justNow:"just now",minutesAgo:e=>`${e} minute${e!==1?"s":""} ago`,hoursAgo:e=>`${e} hour${e!==1?"s":""} ago`,yesterday:"yesterday",daysAgo:e=>`${e} day${e!==1?"s":""} ago`,lastModified:"Last modified",refreshSuccess:"Date decorations refreshed",activationError:"Explorer Dates failed to activate",errorAccessingFile:"Error accessing file for decoration",clearTelemetryPrompt:"This will permanently delete locally-stored telemetry events for Explorer Dates. This action cannot be undone. Proceed?",clearTelemetryConfirm:"Clear Telemetry",clearTelemetryCancel:"Cancel",clearTelemetrySuccess:"\u2705 Explorer Dates telemetry cleared.",migrateChecking:"Checking for settings that need migration...",migrateAllUpToDate:"\u2705 All settings are up to date!",migrateApplied:e=>`\u2705 Explorer Dates maintenance applied: ${e}.`,organizeSettingsResult:e=>`Explorer Dates settings organized: ${e}`,cleanupSuccess:"\u2705 Deprecated settings have been cleaned up!",reportFormatDisabled:(e,t)=>`Report format "${e}" is disabled. Allowed formats: ${t}`,reportSaved:e=>`Report saved to ${e}`,reportGenerateFailed:"Failed to generate report",reportDownloadTriggered:"Report download triggered in browser",selectReportTimeRangePlaceholder:"Select report time range",selectReportFormatPlaceholder:"Select report format",cleanupNoDeprecated:"\u2139\uFE0F No deprecated settings found to clean up.",showMigrationHistoryNoHistory:"No migration history found.",resetConfirmation:"This will reset all Explorer Dates settings to their default values. Are you sure?",migrationDetailsTitle:"Explorer Dates - Settings Migration",migrationDetailsHeader:"Settings Migration",gitAttributionWarning:"Explorer Dates: Git attribution badges are unavailable on VS Code for Web. Time-based decorations remain available.",noOverridesToDocument:"No overrides to document.",overrideNotesHeader:`# Explorer Dates Override Notes +var rr=Object.create;var qe=Object.defineProperty;var nr=Object.getOwnPropertyDescriptor;var or=Object.getOwnPropertyNames;var ir=Object.getPrototypeOf,ar=Object.prototype.hasOwnProperty;var E=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var sr=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of or(t))!ar.call(e,o)&&o!==r&&qe(e,o,{get:()=>t[o],enumerable:!(n=nr(t,o))||n.enumerable});return e};var Se=(e,t,r)=>(r=e!=null?rr(ir(e)):{},sr(t||!e||!e.__esModule?qe(r,"default",{value:e,enumerable:!0}):r,e));var se=E((zn,$e)=>{var Ke=typeof process<"u"&&process.env?process.env:{},He="[ExplorerDates][WebDiag]",Ce="__explorerDatesWebDiagnostics",ae;function lr(){try{let e=require("vscode");return e?.env?.uiKind===e?.UIKind?.Web}catch{return Ke.VSCODE_WEB==="true"}}function F(){return ae!==void 0||(ae=Ke.EXPLORER_DATES_WEB_DIAG==="1"||lr()),ae}function Be(){return{enabled:F(),logs:[],logOnce:new Set,commandsRegistered:new Set,commandsInvoked:[],errors:[],chunkLoads:[],provider:{created:!1,registered:!1,hydrated:!1,decorationCalls:0,refreshCalls:0,lastEvent:null}}}var cr=Be();function _(){return typeof globalThis<"u"?(globalThis[Ce]||(globalThis[Ce]=Be()),globalThis[Ce]):cr}function ur(e){try{return JSON.stringify(e)}catch{return String(e)}}function R(e,t,r){if(!F())return;let n=_(),o={ts:new Date().toISOString(),level:e,message:t,meta:r||null};n.logs.push(o),n.logs.length>400&&n.logs.shift();let i=r?`${He} ${t} ${ur(r)}`:`${He} ${t}`,a=console[e]||console.info;try{a(i)}catch{}}function dr(e,t,r,n){if(!F())return;let o=_();o.logOnce.has(e)||(o.logOnce.add(e),R(t,r,n))}function fr(e){if(!F())return;_().commandsRegistered.add(e),R("info","Command registered",{commandId:e})}function pr(e){if(!F())return;_().commandsInvoked.push({commandId:e,ts:Date.now()}),R("info","Command invoked",{commandId:e})}function mr(e,t,r){F()&&(t?R("info","Command completed",{commandId:e}):(R("error","Command failed",{commandId:e,error:r?.message,stack:r?.stack}),_().errors.push({commandId:e,error:r?.message,stack:r?.stack})))}function gr(e,t,r){if(!F())return;_().chunkLoads.push({chunkName:e,stage:t,ts:Date.now(),error:r?r.message||String(r):null}),R(r?"warn":"info",`Chunk ${t}`,{chunkName:e,error:r?.message})}function hr(e,t){if(!F())return;let r=_();r.provider.lastEvent={event:e,ts:Date.now(),meta:t||null},e==="created"&&(r.provider.created=!0),e==="registered"&&(r.provider.registered=!0),e==="hydrated"&&(r.provider.hydrated=!0),R("info",`Provider ${e}`,t)}function yr(){if(!F())return;let e=_();e.provider.decorationCalls+=1,e.provider.decorationCalls<=3&&R("info","Decoration request observed",{count:e.provider.decorationCalls})}function br(){if(!F())return;let e=_();e.provider.refreshCalls+=1}$e.exports={isWebDiagnosticsEnabled:F,getWebDiagnosticsState:_,diagLog:R,diagLogOnce:dr,recordCommandRegistration:fr,recordCommandInvocation:pr,recordCommandResult:mr,recordChunkEvent:gr,recordProviderEvent:hr,recordDecorationCall:yr,recordRefreshCall:br}});var Z=E((Vn,Ve)=>{var ze=require("vscode");function Er(){try{let e=ze?.env?.uiKind,t=ze?.UIKind?.Web;return e!==void 0&&t!==void 0&&e===t}catch{return!1}}Ve.exports={isWebEnvironment:Er}});var J=E((jn,Ge)=>{var $=typeof process<"u"&&process.env?process.env:{},Dr=12e4,vr=1e4,Sr=1440*60*1e3,Cr=2,kr=["Ja","Fe","Mr","Ap","My","Jn","Jl","Au","Se","Oc","No","De"],wr=Number($.EXPLORER_DATES_DECORATION_POOL_SIZE||2048),Tr=Number($.EXPLORER_DATES_FLYWEIGHT_CACHE_SIZE||4096),Ar=Number($.EXPLORER_DATES_WORKSPACE_BALANCED_THRESHOLD||15e3),Fr=Number($.EXPLORER_DATES_WORKSPACE_LARGE_THRESHOLD||25e4),je=Number($.EXPLORER_DATES_WORKSPACE_EXTREME_THRESHOLD||4e5),_r=Number($.EXPLORER_DATES_WORKSPACE_SCAN_MAX_RESULTS||Math.min(je+1,50001)),Rr={ADVANCED_CACHE:"explorerDates.advancedCache",ADVANCED_CACHE_METADATA:"explorerDates.advancedCacheMetadata",TEMPLATE_STORE:"explorerDates.templates",WEB_GIT_NOTICE:"explorerDates.webGitNotice"},xr="explorerDatesChunks",Pr="__explorerDatesChunks";Ge.exports={DEFAULT_CACHE_TIMEOUT:Dr,DEFAULT_MAX_CACHE_SIZE:vr,DEFAULT_PERSISTENT_CACHE_TTL:Sr,DEFAULT_DECORATION_POOL_SIZE:wr,DEFAULT_FLYWEIGHT_CACHE_SIZE:Tr,MAX_BADGE_LENGTH:Cr,MONTH_ABBREVIATIONS:kr,WORKSPACE_SCALE_BALANCED_THRESHOLD:Ar,WORKSPACE_SCALE_LARGE_THRESHOLD:Fr,WORKSPACE_SCALE_EXTREME_THRESHOLD:je,WORKSPACE_SCAN_MAX_RESULTS:_r,GLOBAL_STATE_KEYS:Rr,WEB_CHUNK_GLOBAL_KEY:xr,LEGACY_WEB_CHUNK_GLOBAL_KEY:Pr}});var Xe=E((Gn,Ir)=>{Ir.exports={migrationDetailsTitle:"Explorer Dates - Settings Migration",migrationDetailsHeader:"Settings Migration",gitAttributionWarning:"Explorer Dates: Git attribution badges are unavailable on VS Code for Web. Time-based decorations remain available.",noOverridesToDocument:"No overrides to document.",overrideNotesHeader:"# Explorer Dates Override Notes\\n\\n",analysisCommandsDisabled:"Explorer Dates analysis commands are disabled. Shortcuts like Ctrl+Shift+M/H/A will not work until you enable explorerDates.enableAnalysisCommands.",analysisEnableNow:"Enable Now",analysisEnablePartially:"Enable partially succeeded. Update explorerDates.enableAnalysisCommands in remaining workspace folders manually.",analysisEnableFailed:"Enable failed: update explorerDates.enableAnalysisCommands in workspace settings.",workspaceTemplatesDisabled:"Workspace templates are disabled. Enable explorerDates.enableWorkspaceTemplates to use this command.",workspaceTemplatesDisabledSave:"Workspace templates are disabled. Enable explorerDates.enableWorkspaceTemplates to save templates.",enterTemplateName:"Enter template name",enterTemplateDescription:"Enter description (optional)",failedToOpenTemplateManager:"Failed to open template manager: {0}",failedToSaveTemplate:"Failed to save template: {0}",reportingDisabled:"Reporting features are disabled. Enable explorerDates.enableExportReporting to generate reports.",failedToGenerateReport:"Failed to generate report: {0}",apiDisabled:"Explorer Dates API is disabled via settings.",failedToShowApiInformation:"Failed to show API information: {0}",failedToShowWorkspaceActivity:"Failed to show workspace activity: {0}",failedToShowPerformanceAnalytics:"Failed to show performance analytics: {0}",failedToShowCacheDebugInfo:"Failed to show cache debug info: {0}",noWorkspaceFolderOpen:"No workspace folder open",now:"now",minutes:"m",hours:"h",days:"d",weeks:"w",months:"mo",years:"y",justNow:"just now",minutesAgo:"{0} minute(s) ago",hoursAgo:"{0} hour(s) ago",daysAgo:"{0} day(s) ago",lastModified:"Last modified",refreshSuccess:"Date decorations refreshed",activationError:"Explorer Dates failed to activate",errorAccessingFile:"Error accessing file for decoration",clearTelemetryPrompt:"This will permanently delete locally-stored telemetry events for Explorer Dates. This action cannot be undone. Proceed?",clearTelemetryConfirm:"Clear Telemetry",clearTelemetryCancel:"Cancel",reportFormatDisabled:'Report format "{0}" is disabled. Allowed formats: {1}',reportDownloadTriggered:"Report download triggered in browser",selectReportTimeRangePlaceholder:"Select report time range",selectReportFormatPlaceholder:"Select report format",cleanupNoDeprecated:"\u2139\uFE0F No deprecated settings found to clean up.",showMigrationHistoryNoHistory:"No migration history found.",resetConfirmation:"This will reset all Explorer Dates settings to their default values. Are you sure?",resetConfirm:"Reset Settings",resetCancel:"Cancel",resetSuccess:"\u2705 Reset {0} settings to defaults.",validateNoIssues:"\u2705 Configuration is valid - no issues found!",validateFoundIssues:"Found {0} configuration issue(s). Would you like to see details?",validateShowDetails:"Show Details",validateDismiss:"Dismiss",migrationNotificationMessage:"Explorer Dates updated {0} setting(s) for compatibility. Your configuration has been preserved.",migrationViewChanges:"View Changes",migrationOpenSettings:"Open Settings",deprecatedPrompt:"Explorer Dates found {0} deprecated setting(s). Would you like to remove them?",deprecatedClean:"Clean Up Now",deprecatedKeep:"Keep Old Settings",deprecatedAskLater:"Ask Later",showFileLocation:"Show File Location",teamConfigCorrupted:"Explorer Dates team configuration file appears to be corrupted. Please check the .explorer-dates-profiles.json file or restore from backup.",appliedFromTeamProfile:'Applied {0} Explorer Dates settings from team profile "{1}".',documentedOverrides:"Documented Explorer Dates overrides in .vscode/explorer-dates-overrides.md",teamConfigMissingProfile:"Team configuration is missing an active profile.",ephemeralStorageEnospc:"Explorer Dates team configuration could not be saved because the disk is full.",ephemeralStorageGeneric:"Explorer Dates team configuration could not be saved because the workspace is read-only or permissions are restricted.",ephemeralStorageSuffix:"Changes will be kept in memory until VS Code restarts, so they may be lost."}});var Ye=E((Xn,Lr)=>{Lr.exports={migrationDetailsTitle:"Explorer Dates - Migraci\xF3n de configuraci\xF3n",migrationDetailsHeader:"Migraci\xF3n de configuraci\xF3n",gitAttributionWarning:"Explorer Dates: Las insignias de atribuci\xF3n de Git no est\xE1n disponibles en VS Code para la Web. Las decoraciones basadas en tiempo siguen disponibles.",noOverridesToDocument:"No hay anulaciones para documentar.",overrideNotesHeader:"# Notas de anulaci\xF3n de Explorer Dates\\n\\n",analysisCommandsDisabled:"Los comandos de an\xE1lisis de Explorer Dates est\xE1n deshabilitados. Atajos como Ctrl+Shift+M/H/A no funcionar\xE1n hasta que habilites explorerDates.enableAnalysisCommands.",analysisEnableNow:"Habilitar ahora",analysisEnablePartially:"La activaci\xF3n se complet\xF3 parcialmente. Actualiza explorerDates.enableAnalysisCommands manualmente en las carpetas de trabajo restantes.",analysisEnableFailed:"Error al habilitar: actualiza explorerDates.enableAnalysisCommands en la configuraci\xF3n del espacio de trabajo.",workspaceTemplatesDisabled:"Las plantillas de espacio de trabajo est\xE1n deshabilitadas. Habilita explorerDates.enableWorkspaceTemplates para usar este comando.",workspaceTemplatesDisabledSave:"Las plantillas de espacio de trabajo est\xE1n deshabilitadas. Habilita explorerDates.enableWorkspaceTemplates para guardar plantillas.",enterTemplateName:"Introduce el nombre de la plantilla",enterTemplateDescription:"Introduce la descripci\xF3n (opcional)",failedToOpenTemplateManager:"Error al abrir el administrador de plantillas: {0}",failedToSaveTemplate:"Error al guardar la plantilla: {0}",reportingDisabled:"Las funciones de informes est\xE1n deshabilitadas. Habilita explorerDates.enableExportReporting para generar informes.",failedToGenerateReport:"Error al generar el informe: {0}",apiDisabled:"La API de Explorer Dates est\xE1 deshabilitada mediante la configuraci\xF3n.",failedToShowApiInformation:"Error al mostrar la informaci\xF3n de la API: {0}",failedToShowWorkspaceActivity:"Error al mostrar la actividad del espacio de trabajo: {0}",failedToShowPerformanceAnalytics:"Error al mostrar los an\xE1lisis de rendimiento: {0}",failedToShowCacheDebugInfo:"Error al mostrar la informaci\xF3n de depuraci\xF3n de la cach\xE9: {0}",noWorkspaceFolderOpen:"No hay ninguna carpeta de espacio de trabajo abierta",now:"ahora",minutes:"m",hours:"h",days:"d",weeks:"sem",months:"mes",years:"a",justNow:"justo ahora",minutesAgo:"hace {0} minuto(s)",hoursAgo:"hace {0} hora(s)",daysAgo:"hace {0} d\xEDa(s)",lastModified:"\xDAltima modificaci\xF3n",refreshSuccess:"Decoraciones de fecha actualizadas",activationError:"Explorer Dates no se pudo activar",errorAccessingFile:"Error al acceder al archivo para la decoraci\xF3n",clearTelemetryPrompt:"Esto eliminar\xE1 permanentemente los eventos de telemetr\xEDa almacenados localmente para Explorer Dates. Esta acci\xF3n no se puede deshacer. \xBFContinuar?",clearTelemetryConfirm:"Borrar telemetr\xEDa",clearTelemetryCancel:"Cancelar",reportFormatDisabled:'El formato de informe "{0}" est\xE1 deshabilitado. Formatos permitidos: {1}',reportDownloadTriggered:"Descarga del informe iniciada en el navegador",selectReportTimeRangePlaceholder:"Seleccionar rango de tiempo del informe",selectReportFormatPlaceholder:"Seleccionar formato del informe",cleanupNoDeprecated:"\u2139\uFE0F No se encontraron configuraciones obsoletas para limpiar.",showMigrationHistoryNoHistory:"No se encontr\xF3 historial de migraci\xF3n.",resetConfirmation:"Esto restablecer\xE1 todas las configuraciones de Explorer Dates a sus valores predeterminados. \xBFEst\xE1s seguro?",resetConfirm:"Restablecer configuraciones",resetCancel:"Cancelar",resetSuccess:"\u2705 Se restablecieron {0} configuraciones a los valores predeterminados.",validateNoIssues:"\u2705 La configuraci\xF3n es v\xE1lida - no se encontraron problemas.",validateFoundIssues:"Se encontraron {0} problema(s) de configuraci\xF3n. \xBFDeseas ver los detalles?",validateShowDetails:"Mostrar detalles",validateDismiss:"Descartar",migrationNotificationMessage:"Explorer Dates actualiz\xF3 {0} configuraci\xF3n(es) por compatibilidad. Tu configuraci\xF3n se ha conservado.",migrationViewChanges:"Ver cambios",migrationOpenSettings:"Abrir configuraciones",deprecatedPrompt:"Explorer Dates encontr\xF3 {0} configuraci\xF3n(es) obsoleta(s). \xBFDeseas eliminarlas?",deprecatedClean:"Limpiar ahora",deprecatedKeep:"Mantener configuraciones antiguas",deprecatedAskLater:"Preguntar m\xE1s tarde",showFileLocation:"Mostrar ubicaci\xF3n del archivo",teamConfigCorrupted:"El archivo de configuraci\xF3n de equipo de Explorer Dates parece estar da\xF1ado. Verifica el archivo .explorer-dates-profiles.json o restaura desde una copia de seguridad.",appliedFromTeamProfile:'Se aplicaron {0} configuraciones de Explorer Dates desde el perfil de equipo "{1}".',documentedOverrides:"Se documentaron las anulaciones de Explorer Dates en .vscode/explorer-dates-overrides.md",teamConfigMissingProfile:"La configuraci\xF3n del equipo no tiene un perfil activo.",ephemeralStorageEnospc:"No se pudo guardar la configuraci\xF3n de equipo de Explorer Dates porque el disco est\xE1 lleno.",ephemeralStorageGeneric:"No se pudo guardar la configuraci\xF3n de equipo de Explorer Dates porque el espacio de trabajo es de solo lectura o los permisos est\xE1n restringidos.",ephemeralStorageSuffix:"Los cambios se mantendr\xE1n en memoria hasta que VS Code se reinicie, por lo que podr\xEDan perderse."}});var Ze=E((Yn,Nr)=>{Nr.exports={migrationDetailsTitle:"Explorer Dates - Migration des param\xE8tres",migrationDetailsHeader:"Migration des param\xE8tres",gitAttributionWarning:"Explorer Dates : Les badges d\u2019attribution Git ne sont pas disponibles sur VS Code pour le Web. Les d\xE9corations bas\xE9es sur le temps restent disponibles.",noOverridesToDocument:"Aucune substitution \xE0 documenter.",overrideNotesHeader:"# Notes de substitution Explorer Dates\\n\\n",analysisCommandsDisabled:"Les commandes d\u2019analyse Explorer Dates sont d\xE9sactiv\xE9es. Les raccourcis comme Ctrl+Shift+M/H/A ne fonctionneront pas tant que vous n\u2019aurez pas activ\xE9 explorerDates.enableAnalysisCommands.",analysisEnableNow:"Activer maintenant",analysisEnablePartially:"L\u2019activation a partiellement r\xE9ussi. Mettez \xE0 jour explorerDates.enableAnalysisCommands manuellement dans les dossiers d\u2019espace de travail restants.",analysisEnableFailed:"\xC9chec de l\u2019activation : mettez \xE0 jour explorerDates.enableAnalysisCommands dans les param\xE8tres de l\u2019espace de travail.",workspaceTemplatesDisabled:"Les mod\xE8les d\u2019espace de travail sont d\xE9sactiv\xE9s. Activez explorerDates.enableWorkspaceTemplates pour utiliser cette commande.",workspaceTemplatesDisabledSave:"Les mod\xE8les d\u2019espace de travail sont d\xE9sactiv\xE9s. Activez explorerDates.enableWorkspaceTemplates pour enregistrer des mod\xE8les.",enterTemplateName:"Entrez le nom du mod\xE8le",enterTemplateDescription:"Entrez la description (facultatif)",failedToOpenTemplateManager:"Impossible d\u2019ouvrir le gestionnaire de mod\xE8les : {0}",failedToSaveTemplate:"Impossible d\u2019enregistrer le mod\xE8le : {0}",reportingDisabled:"Les fonctionnalit\xE9s de rapport sont d\xE9sactiv\xE9es. Activez explorerDates.enableExportReporting pour g\xE9n\xE9rer des rapports.",failedToGenerateReport:"Impossible de g\xE9n\xE9rer le rapport : {0}",apiDisabled:"L\u2019API Explorer Dates est d\xE9sactiv\xE9e via les param\xE8tres.",failedToShowApiInformation:"Impossible d\u2019afficher les informations de l\u2019API : {0}",failedToShowWorkspaceActivity:"Impossible d\u2019afficher l\u2019activit\xE9 de l\u2019espace de travail : {0}",failedToShowPerformanceAnalytics:"Impossible d\u2019afficher les analyses de performance : {0}",failedToShowCacheDebugInfo:"Impossible d\u2019afficher les informations de d\xE9bogage du cache : {0}",noWorkspaceFolderOpen:"Aucun dossier d\u2019espace de travail ouvert",now:"maintenant",minutes:"min",hours:"h",days:"j",weeks:"sem",months:"mois",years:"an",justNow:"\xE0 l\u2019instant",minutesAgo:"il y a {0} minute(s)",hoursAgo:"il y a {0} heure(s)",daysAgo:"il y a {0} jour(s)",lastModified:"Derni\xE8re modification",refreshSuccess:"D\xE9corations de date actualis\xE9es",activationError:"\xC9chec de l\u2019activation d\u2019Explorer Dates",errorAccessingFile:"Erreur lors de l\u2019acc\xE8s au fichier pour la d\xE9coration",clearTelemetryPrompt:"Cela supprimera d\xE9finitivement les \xE9v\xE9nements de t\xE9l\xE9m\xE9trie stock\xE9s localement pour Explorer Dates. Cette action est irr\xE9versible. Continuer ?",clearTelemetryConfirm:"Effacer la t\xE9l\xE9m\xE9trie",clearTelemetryCancel:"Annuler",reportFormatDisabled:'Le format de rapport "{0}" est d\xE9sactiv\xE9. Formats autoris\xE9s : {1}',reportDownloadTriggered:"T\xE9l\xE9chargement du rapport lanc\xE9 dans le navigateur",selectReportTimeRangePlaceholder:"S\xE9lectionner la p\xE9riode du rapport",selectReportFormatPlaceholder:"S\xE9lectionner le format du rapport",cleanupNoDeprecated:"\u2139\uFE0F Aucun param\xE8tre obsol\xE8te \xE0 nettoyer.",showMigrationHistoryNoHistory:"Aucun historique de migration trouv\xE9.",resetConfirmation:"Cela r\xE9initialisera tous les param\xE8tres Explorer Dates \xE0 leurs valeurs par d\xE9faut. \xCAtes-vous s\xFBr ?",resetConfirm:"R\xE9initialiser les param\xE8tres",resetCancel:"Annuler",resetSuccess:"\u2705 {0} param\xE8tres ont \xE9t\xE9 r\xE9initialis\xE9s aux valeurs par d\xE9faut.",validateNoIssues:"\u2705 La configuration est valide - aucun probl\xE8me d\xE9tect\xE9 !",validateFoundIssues:"{0} probl\xE8me(s) de configuration trouv\xE9(s). Voulez-vous voir les d\xE9tails ?",validateShowDetails:"Afficher les d\xE9tails",validateDismiss:"Ignorer",migrationNotificationMessage:"Explorer Dates a mis \xE0 jour {0} param\xE8tre(s) pour compatibilit\xE9. Votre configuration a \xE9t\xE9 conserv\xE9e.",migrationViewChanges:"Voir les modifications",migrationOpenSettings:"Ouvrir les param\xE8tres",deprecatedPrompt:"Explorer Dates a trouv\xE9 {0} param\xE8tre(s) obsol\xE8te(s). Voulez-vous les supprimer ?",deprecatedClean:"Nettoyer maintenant",deprecatedKeep:"Conserver les anciens param\xE8tres",deprecatedAskLater:"Demander plus tard",showFileLocation:"Afficher l\u2019emplacement du fichier",teamConfigCorrupted:"Le fichier de configuration d\u2019\xE9quipe Explorer Dates semble corrompu. V\xE9rifiez le fichier .explorer-dates-profiles.json ou restaurez-le depuis une sauvegarde.",appliedFromTeamProfile:'{0} param\xE8tres Explorer Dates appliqu\xE9s depuis le profil d\u2019\xE9quipe "{1}".',documentedOverrides:"Substitutions Explorer Dates document\xE9es dans .vscode/explorer-dates-overrides.md",teamConfigMissingProfile:"La configuration d\u2019\xE9quipe ne contient aucun profil actif.",ephemeralStorageEnospc:"Impossible d\u2019enregistrer la configuration d\u2019\xE9quipe Explorer Dates car le disque est plein.",ephemeralStorageGeneric:"Impossible d\u2019enregistrer la configuration d\u2019\xE9quipe Explorer Dates car l\u2019espace de travail est en lecture seule ou les permissions sont restreintes.",ephemeralStorageSuffix:"Les modifications seront conserv\xE9es en m\xE9moire jusqu\u2019au red\xE9marrage de VS Code et pourraient \xEAtre perdues."}});var Je=E((Zn,Or)=>{Or.exports={migrationDetailsTitle:"Explorer Dates - Einstellungen migrieren",migrationDetailsHeader:"Einstellungen migrieren",gitAttributionWarning:"Explorer Dates: Git-Zuordnungsabzeichen sind in VS Code f\xFCr das Web nicht verf\xFCgbar. Zeitbasierte Hervorhebungen bleiben verf\xFCgbar.",noOverridesToDocument:"Keine \xDCberschreibungen zu dokumentieren.",overrideNotesHeader:"# Explorer Dates \xDCberschreibungsnotizen\\n\\n",analysisCommandsDisabled:"Die Analysebefehle von Explorer Dates sind deaktiviert. Tastenkombinationen wie Ctrl+Shift+M/H/A funktionieren nicht, bis explorerDates.enableAnalysisCommands aktiviert ist.",analysisEnableNow:"Jetzt aktivieren",analysisEnablePartially:"Die Aktivierung war teilweise erfolgreich. Aktualisieren Sie explorerDates.enableAnalysisCommands manuell in den verbleibenden Workspace-Ordnern.",analysisEnableFailed:"Aktivierung fehlgeschlagen: Aktualisieren Sie explorerDates.enableAnalysisCommands in den Workspace-Einstellungen.",workspaceTemplatesDisabled:"Workspace-Vorlagen sind deaktiviert. Aktivieren Sie explorerDates.enableWorkspaceTemplates, um diesen Befehl zu verwenden.",workspaceTemplatesDisabledSave:"Workspace-Vorlagen sind deaktiviert. Aktivieren Sie explorerDates.enableWorkspaceTemplates, um Vorlagen zu speichern.",enterTemplateName:"Vorlagenname eingeben",enterTemplateDescription:"Beschreibung eingeben (optional)",failedToOpenTemplateManager:"Fehler beim \xD6ffnen des Vorlagenmanagers: {0}",failedToSaveTemplate:"Fehler beim Speichern der Vorlage: {0}",reportingDisabled:"Berichtsfunktionen sind deaktiviert. Aktivieren Sie explorerDates.enableExportReporting, um Berichte zu erstellen.",failedToGenerateReport:"Fehler beim Erstellen des Berichts: {0}",apiDisabled:"Die Explorer Dates API ist in den Einstellungen deaktiviert.",failedToShowApiInformation:"Fehler beim Anzeigen der API-Informationen: {0}",failedToShowWorkspaceActivity:"Fehler beim Anzeigen der Workspace-Aktivit\xE4t: {0}",failedToShowPerformanceAnalytics:"Fehler beim Anzeigen der Leistungsanalysen: {0}",failedToShowCacheDebugInfo:"Fehler beim Anzeigen der Cache-Debug-Informationen: {0}",noWorkspaceFolderOpen:"Kein Workspace-Ordner ge\xF6ffnet",now:"jetzt",minutes:"Min",hours:"Std",days:"T",weeks:"W",months:"Mon",years:"J",justNow:"gerade eben",minutesAgo:"vor {0} Minute(n)",hoursAgo:"vor {0} Stunde(n)",daysAgo:"vor {0} Tag(en)",lastModified:"Zuletzt ge\xE4ndert",refreshSuccess:"Datumsdekorationen aktualisiert",activationError:"Explorer Dates konnte nicht aktiviert werden",errorAccessingFile:"Fehler beim Zugriff auf Datei f\xFCr Dekoration",clearTelemetryPrompt:"Dies l\xF6scht dauerhaft lokal gespeicherte Telemetrieereignisse f\xFCr Explorer Dates. Diese Aktion kann nicht r\xFCckg\xE4ngig gemacht werden. Fortfahren?",clearTelemetryConfirm:"Telemetrie l\xF6schen",clearTelemetryCancel:"Abbrechen",reportFormatDisabled:'Berichtsformat "{0}" ist deaktiviert. Zul\xE4ssige Formate: {1}',reportDownloadTriggered:"Bericht-Download im Browser gestartet",selectReportTimeRangePlaceholder:"Berichtszeitraum ausw\xE4hlen",selectReportFormatPlaceholder:"Berichtsformat ausw\xE4hlen",cleanupNoDeprecated:"\u2139\uFE0F Keine veralteten Einstellungen zum Bereinigen gefunden.",showMigrationHistoryNoHistory:"Kein Migrationsverlauf gefunden.",resetConfirmation:"Dies setzt alle Explorer Dates Einstellungen auf ihre Standardwerte zur\xFCck. Sind Sie sicher?",resetConfirm:"Einstellungen zur\xFCcksetzen",resetCancel:"Abbrechen",resetSuccess:"\u2705 {0} Einstellungen auf Standard zur\xFCckgesetzt.",validateNoIssues:"\u2705 Konfiguration ist g\xFCltig - keine Probleme gefunden!",validateFoundIssues:"{0} Konfigurationsproblem(e) gefunden. M\xF6chten Sie Details sehen?",validateShowDetails:"Details anzeigen",validateDismiss:"Verwerfen",migrationNotificationMessage:"Explorer Dates hat {0} Einstellung(en) zur Kompatibilit\xE4t aktualisiert. Ihre Konfiguration wurde beibehalten.",migrationViewChanges:"\xC4nderungen anzeigen",migrationOpenSettings:"Einstellungen \xF6ffnen",deprecatedPrompt:"Explorer Dates hat {0} veraltete Einstellung(en) gefunden. M\xF6chten Sie sie entfernen?",deprecatedClean:"Jetzt bereinigen",deprecatedKeep:"Alte Einstellungen behalten",deprecatedAskLater:"Sp\xE4ter fragen",showFileLocation:"Dateispeicherort anzeigen",teamConfigCorrupted:"Die Teamkonfigurationsdatei von Explorer Dates scheint besch\xE4digt zu sein. Bitte pr\xFCfen Sie die Datei .explorer-dates-profiles.json oder stellen Sie sie aus einem Backup wieder her.",appliedFromTeamProfile:'{0} Explorer Dates-Einstellungen aus dem Teamprofil "{1}" angewendet.',documentedOverrides:"Explorer Dates-\xDCberschreibungen in .vscode/explorer-dates-overrides.md dokumentiert",teamConfigMissingProfile:"Der Teamkonfiguration fehlt ein aktives Profil.",ephemeralStorageEnospc:"Die Teamkonfiguration von Explorer Dates konnte nicht gespeichert werden, da die Festplatte voll ist.",ephemeralStorageGeneric:"Die Teamkonfiguration von Explorer Dates konnte nicht gespeichert werden, da der Workspace schreibgesch\xFCtzt ist oder die Berechtigungen eingeschr\xE4nkt sind.",ephemeralStorageSuffix:"\xC4nderungen werden im Speicher behalten, bis VS Code neu startet, und k\xF6nnen verloren gehen."}});var Qe=E((Jn,Wr)=>{Wr.exports={migrationDetailsTitle:"Explorer Dates - \u8A2D\u5B9A\u306E\u79FB\u884C",migrationDetailsHeader:"\u8A2D\u5B9A\u306E\u79FB\u884C",gitAttributionWarning:"Explorer Dates: Git \u306E\u5E30\u5C5E\u30D0\u30C3\u30B8\u306F VS Code for Web \u3067\u306F\u5229\u7528\u3067\u304D\u307E\u305B\u3093\u3002\u6642\u9593\u30D9\u30FC\u30B9\u306E\u88C5\u98FE\u306F\u5F15\u304D\u7D9A\u304D\u5229\u7528\u3067\u304D\u307E\u3059\u3002",noOverridesToDocument:"\u30C9\u30AD\u30E5\u30E1\u30F3\u30C8\u5316\u3059\u308B\u4E0A\u66F8\u304D\u306F\u3042\u308A\u307E\u305B\u3093\u3002",overrideNotesHeader:"# Explorer Dates \u4E0A\u66F8\u304D\u30E1\u30E2\\n\\n",analysisCommandsDisabled:"Explorer Dates \u306E\u5206\u6790\u30B3\u30DE\u30F3\u30C9\u306F\u7121\u52B9\u306B\u306A\u3063\u3066\u3044\u307E\u3059\u3002Ctrl+Shift+M/H/A \u306A\u3069\u306E\u30B7\u30E7\u30FC\u30C8\u30AB\u30C3\u30C8\u306F explorerDates.enableAnalysisCommands \u3092\u6709\u52B9\u306B\u3059\u308B\u307E\u3067\u6A5F\u80FD\u3057\u307E\u305B\u3093\u3002",analysisEnableNow:"\u4ECA\u3059\u3050\u6709\u52B9\u306B\u3059\u308B",analysisEnablePartially:"\u6709\u52B9\u5316\u306F\u4E00\u90E8\u6210\u529F\u3057\u307E\u3057\u305F\u3002\u6B8B\u308A\u306E\u30EF\u30FC\u30AF\u30B9\u30DA\u30FC\u30B9\u30D5\u30A9\u30EB\u30C0\u30FC\u3067 explorerDates.enableAnalysisCommands \u3092\u624B\u52D5\u3067\u66F4\u65B0\u3057\u3066\u304F\u3060\u3055\u3044\u3002",analysisEnableFailed:"\u6709\u52B9\u5316\u306B\u5931\u6557\u3057\u307E\u3057\u305F\uFF1A\u30EF\u30FC\u30AF\u30B9\u30DA\u30FC\u30B9\u8A2D\u5B9A\u3067 explorerDates.enableAnalysisCommands \u3092\u66F4\u65B0\u3057\u3066\u304F\u3060\u3055\u3044\u3002",workspaceTemplatesDisabled:"\u30EF\u30FC\u30AF\u30B9\u30DA\u30FC\u30B9\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8\u306F\u7121\u52B9\u306B\u306A\u3063\u3066\u3044\u307E\u3059\u3002\u3053\u306E\u30B3\u30DE\u30F3\u30C9\u3092\u4F7F\u7528\u3059\u308B\u306B\u306F explorerDates.enableWorkspaceTemplates \u3092\u6709\u52B9\u306B\u3057\u3066\u304F\u3060\u3055\u3044\u3002",workspaceTemplatesDisabledSave:"\u30EF\u30FC\u30AF\u30B9\u30DA\u30FC\u30B9\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8\u306F\u7121\u52B9\u306B\u306A\u3063\u3066\u3044\u307E\u3059\u3002\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8\u3092\u4FDD\u5B58\u3059\u308B\u306B\u306F explorerDates.enableWorkspaceTemplates \u3092\u6709\u52B9\u306B\u3057\u3066\u304F\u3060\u3055\u3044\u3002",enterTemplateName:"\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8\u540D\u3092\u5165\u529B",enterTemplateDescription:"\u8AAC\u660E\u3092\u5165\u529B\uFF08\u4EFB\u610F\uFF09",failedToOpenTemplateManager:"\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8\u30DE\u30CD\u30FC\u30B8\u30E3\u30FC\u3092\u958B\u3051\u307E\u305B\u3093\u3067\u3057\u305F: {0}",failedToSaveTemplate:"\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8\u306E\u4FDD\u5B58\u306B\u5931\u6557\u3057\u307E\u3057\u305F: {0}",reportingDisabled:"\u30EC\u30DD\u30FC\u30C8\u6A5F\u80FD\u306F\u7121\u52B9\u306B\u306A\u3063\u3066\u3044\u307E\u3059\u3002\u30EC\u30DD\u30FC\u30C8\u3092\u751F\u6210\u3059\u308B\u306B\u306F explorerDates.enableExportReporting \u3092\u6709\u52B9\u306B\u3057\u3066\u304F\u3060\u3055\u3044\u3002",failedToGenerateReport:"\u30EC\u30DD\u30FC\u30C8\u306E\u751F\u6210\u306B\u5931\u6557\u3057\u307E\u3057\u305F: {0}",apiDisabled:"Explorer Dates API \u306F\u8A2D\u5B9A\u3067\u7121\u52B9\u306B\u306A\u3063\u3066\u3044\u307E\u3059\u3002",failedToShowApiInformation:"API \u60C5\u5831\u306E\u8868\u793A\u306B\u5931\u6557\u3057\u307E\u3057\u305F: {0}",failedToShowWorkspaceActivity:"\u30EF\u30FC\u30AF\u30B9\u30DA\u30FC\u30B9\u306E\u30A2\u30AF\u30C6\u30A3\u30D3\u30C6\u30A3\u3092\u8868\u793A\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F: {0}",failedToShowPerformanceAnalytics:"\u30D1\u30D5\u30A9\u30FC\u30DE\u30F3\u30B9\u5206\u6790\u3092\u8868\u793A\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F: {0}",failedToShowCacheDebugInfo:"\u30AD\u30E3\u30C3\u30B7\u30E5\u306E\u30C7\u30D0\u30C3\u30B0\u60C5\u5831\u3092\u8868\u793A\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F: {0}",noWorkspaceFolderOpen:"\u30EF\u30FC\u30AF\u30B9\u30DA\u30FC\u30B9\u30D5\u30A9\u30EB\u30C0\u30FC\u304C\u958B\u304B\u308C\u3066\u3044\u307E\u305B\u3093",now:"\u4ECA",minutes:"\u5206",hours:"\u6642\u9593",days:"\u65E5",weeks:"\u9031",months:"\u304B\u6708",years:"\u5E74",justNow:"\u305F\u3063\u305F\u4ECA",minutesAgo:"{0} \u5206\u524D",hoursAgo:"{0} \u6642\u9593\u524D",daysAgo:"{0} \u65E5\u524D",lastModified:"\u6700\u7D42\u66F4\u65B0",refreshSuccess:"\u65E5\u4ED8\u88C5\u98FE\u3092\u66F4\u65B0\u3057\u307E\u3057\u305F",activationError:"Explorer Dates \u306E\u6709\u52B9\u5316\u306B\u5931\u6557\u3057\u307E\u3057\u305F",errorAccessingFile:"\u88C5\u98FE\u7528\u30D5\u30A1\u30A4\u30EB\u3078\u306E\u30A2\u30AF\u30BB\u30B9\u30A8\u30E9\u30FC",clearTelemetryPrompt:"Explorer Dates \u306E\u30ED\u30FC\u30AB\u30EB\u4FDD\u5B58\u30C6\u30EC\u30E1\u30C8\u30EA\u30A4\u30D9\u30F3\u30C8\u3092\u5B8C\u5168\u306B\u524A\u9664\u3057\u307E\u3059\u3002\u3053\u306E\u64CD\u4F5C\u306F\u5143\u306B\u623B\u305B\u307E\u305B\u3093\u3002\u7D9A\u884C\u3057\u307E\u3059\u304B\uFF1F",clearTelemetryConfirm:"\u30C6\u30EC\u30E1\u30C8\u30EA\u3092\u524A\u9664",clearTelemetryCancel:"\u30AD\u30E3\u30F3\u30BB\u30EB",reportFormatDisabled:"\u30EC\u30DD\u30FC\u30C8\u5F62\u5F0F\u300C{0}\u300D\u306F\u7121\u52B9\u3067\u3059\u3002\u8A31\u53EF\u3055\u308C\u3066\u3044\u308B\u5F62\u5F0F: {1}",reportDownloadTriggered:"\u30D6\u30E9\u30A6\u30B6\u3067\u30EC\u30DD\u30FC\u30C8\u306E\u30C0\u30A6\u30F3\u30ED\u30FC\u30C9\u3092\u958B\u59CB\u3057\u307E\u3057\u305F",selectReportTimeRangePlaceholder:"\u30EC\u30DD\u30FC\u30C8\u306E\u671F\u9593\u3092\u9078\u629E",selectReportFormatPlaceholder:"\u30EC\u30DD\u30FC\u30C8\u5F62\u5F0F\u3092\u9078\u629E",cleanupNoDeprecated:"\u2139\uFE0F \u30AF\u30EA\u30FC\u30F3\u30A2\u30C3\u30D7\u3059\u308B\u975E\u63A8\u5968\u8A2D\u5B9A\u306F\u3042\u308A\u307E\u305B\u3093\u3002",showMigrationHistoryNoHistory:"\u79FB\u884C\u5C65\u6B74\u304C\u898B\u3064\u304B\u308A\u307E\u305B\u3093\u3002",resetConfirmation:"Explorer Dates \u306E\u3059\u3079\u3066\u306E\u8A2D\u5B9A\u3092\u65E2\u5B9A\u5024\u306B\u30EA\u30BB\u30C3\u30C8\u3057\u307E\u3059\u3002\u3088\u308D\u3057\u3044\u3067\u3059\u304B\uFF1F",resetConfirm:"\u8A2D\u5B9A\u3092\u30EA\u30BB\u30C3\u30C8",resetCancel:"\u30AD\u30E3\u30F3\u30BB\u30EB",resetSuccess:"\u2705 {0} \u4EF6\u306E\u8A2D\u5B9A\u3092\u65E2\u5B9A\u5024\u306B\u30EA\u30BB\u30C3\u30C8\u3057\u307E\u3057\u305F\u3002",validateNoIssues:"\u2705 \u8A2D\u5B9A\u306F\u6709\u52B9\u3067\u3059 - \u554F\u984C\u306F\u898B\u3064\u304B\u308A\u307E\u305B\u3093\u3067\u3057\u305F\uFF01",validateFoundIssues:"{0} \u4EF6\u306E\u8A2D\u5B9A\u554F\u984C\u304C\u898B\u3064\u304B\u308A\u307E\u3057\u305F\u3002\u8A73\u7D30\u3092\u8868\u793A\u3057\u307E\u3059\u304B\uFF1F",validateShowDetails:"\u8A73\u7D30\u3092\u8868\u793A",validateDismiss:"\u9589\u3058\u308B",migrationNotificationMessage:"Explorer Dates \u306F\u4E92\u63DB\u6027\u306E\u305F\u3081\u306B {0} \u4EF6\u306E\u8A2D\u5B9A\u3092\u66F4\u65B0\u3057\u307E\u3057\u305F\u3002\u8A2D\u5B9A\u306F\u4FDD\u6301\u3055\u308C\u3066\u3044\u307E\u3059\u3002",migrationViewChanges:"\u5909\u66F4\u3092\u8868\u793A",migrationOpenSettings:"\u8A2D\u5B9A\u3092\u958B\u304F",deprecatedPrompt:"Explorer Dates \u306F {0} \u4EF6\u306E\u975E\u63A8\u5968\u8A2D\u5B9A\u3092\u691C\u51FA\u3057\u307E\u3057\u305F\u3002\u524A\u9664\u3057\u307E\u3059\u304B\uFF1F",deprecatedClean:"\u4ECA\u3059\u3050\u30AF\u30EA\u30FC\u30F3\u30A2\u30C3\u30D7",deprecatedKeep:"\u53E4\u3044\u8A2D\u5B9A\u3092\u4FDD\u6301",deprecatedAskLater:"\u5F8C\u3067\u78BA\u8A8D",showFileLocation:"\u30D5\u30A1\u30A4\u30EB\u306E\u5834\u6240\u3092\u8868\u793A",teamConfigCorrupted:"Explorer Dates \u306E\u30C1\u30FC\u30E0\u8A2D\u5B9A\u30D5\u30A1\u30A4\u30EB\u304C\u7834\u640D\u3057\u3066\u3044\u308B\u53EF\u80FD\u6027\u304C\u3042\u308A\u307E\u3059\u3002.explorer-dates-profiles.json \u3092\u78BA\u8A8D\u3059\u308B\u304B\u30D0\u30C3\u30AF\u30A2\u30C3\u30D7\u304B\u3089\u5FA9\u5143\u3057\u3066\u304F\u3060\u3055\u3044\u3002",appliedFromTeamProfile:"\u30C1\u30FC\u30E0\u30D7\u30ED\u30D5\u30A1\u30A4\u30EB\u300C{1}\u300D\u304B\u3089 {0} \u4EF6\u306E Explorer Dates \u8A2D\u5B9A\u3092\u9069\u7528\u3057\u307E\u3057\u305F\u3002",documentedOverrides:".vscode/explorer-dates-overrides.md \u306B Explorer Dates \u306E\u4E0A\u66F8\u304D\u3092\u8A18\u9332\u3057\u307E\u3057\u305F",teamConfigMissingProfile:"\u30C1\u30FC\u30E0\u8A2D\u5B9A\u306B\u30A2\u30AF\u30C6\u30A3\u30D6\u306A\u30D7\u30ED\u30D5\u30A1\u30A4\u30EB\u304C\u3042\u308A\u307E\u305B\u3093\u3002",ephemeralStorageEnospc:"\u30C7\u30A3\u30B9\u30AF\u5BB9\u91CF\u4E0D\u8DB3\u306E\u305F\u3081\u3001Explorer Dates \u306E\u30C1\u30FC\u30E0\u8A2D\u5B9A\u3092\u4FDD\u5B58\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002",ephemeralStorageGeneric:"\u30EF\u30FC\u30AF\u30B9\u30DA\u30FC\u30B9\u304C\u8AAD\u307F\u53D6\u308A\u5C02\u7528\u3001\u307E\u305F\u306F\u6A29\u9650\u304C\u5236\u9650\u3055\u308C\u3066\u3044\u308B\u305F\u3081\u3001Explorer Dates \u306E\u30C1\u30FC\u30E0\u8A2D\u5B9A\u3092\u4FDD\u5B58\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002",ephemeralStorageSuffix:"\u5909\u66F4\u306F VS Code \u304C\u518D\u8D77\u52D5\u3059\u308B\u307E\u3067\u30E1\u30E2\u30EA\u306B\u4FDD\u6301\u3055\u308C\u308B\u305F\u3081\u3001\u5931\u308F\u308C\u308B\u53EF\u80FD\u6027\u304C\u3042\u308A\u307E\u3059\u3002"}});var et=E((Qn,Mr)=>{Mr.exports={migrationDetailsTitle:"Explorer Dates - \u8BBE\u7F6E\u8FC1\u79FB",migrationDetailsHeader:"\u8BBE\u7F6E\u8FC1\u79FB",gitAttributionWarning:"Explorer Dates\uFF1AGit \u5F52\u5C5E\u5FBD\u7AE0\u5728 VS Code Web \u7248\u4E2D\u4E0D\u53EF\u7528\u3002\u57FA\u4E8E\u65F6\u95F4\u7684\u88C5\u9970\u4ECD\u7136\u53EF\u7528\u3002",noOverridesToDocument:"\u6CA1\u6709\u9700\u8981\u8BB0\u5F55\u7684\u8986\u76D6\u9879\u3002",overrideNotesHeader:"# Explorer Dates \u8986\u76D6\u8BF4\u660E\\n\\n",analysisCommandsDisabled:"Explorer Dates \u5206\u6790\u547D\u4EE4\u5DF2\u7981\u7528\u3002\u5728\u542F\u7528 explorerDates.enableAnalysisCommands \u4E4B\u524D\uFF0CCtrl+Shift+M/H/A \u7B49\u5FEB\u6377\u952E\u5C06\u65E0\u6CD5\u4F7F\u7528\u3002",analysisEnableNow:"\u7ACB\u5373\u542F\u7528",analysisEnablePartially:"\u542F\u7528\u90E8\u5206\u6210\u529F\u3002\u8BF7\u5728\u5269\u4F59\u7684\u5DE5\u4F5C\u533A\u6587\u4EF6\u5939\u4E2D\u624B\u52A8\u66F4\u65B0 explorerDates.enableAnalysisCommands\u3002",analysisEnableFailed:"\u542F\u7528\u5931\u8D25\uFF1A\u8BF7\u5728\u5DE5\u4F5C\u533A\u8BBE\u7F6E\u4E2D\u66F4\u65B0 explorerDates.enableAnalysisCommands\u3002",workspaceTemplatesDisabled:"\u5DE5\u4F5C\u533A\u6A21\u677F\u5DF2\u7981\u7528\u3002\u542F\u7528 explorerDates.enableWorkspaceTemplates \u4EE5\u4F7F\u7528\u6B64\u547D\u4EE4\u3002",workspaceTemplatesDisabledSave:"\u5DE5\u4F5C\u533A\u6A21\u677F\u5DF2\u7981\u7528\u3002\u542F\u7528 explorerDates.enableWorkspaceTemplates \u4EE5\u4FDD\u5B58\u6A21\u677F\u3002",enterTemplateName:"\u8F93\u5165\u6A21\u677F\u540D\u79F0",enterTemplateDescription:"\u8F93\u5165\u63CF\u8FF0\uFF08\u53EF\u9009\uFF09",failedToOpenTemplateManager:"\u65E0\u6CD5\u6253\u5F00\u6A21\u677F\u7BA1\u7406\u5668\uFF1A{0}",failedToSaveTemplate:"\u4FDD\u5B58\u6A21\u677F\u5931\u8D25\uFF1A{0}",reportingDisabled:"\u62A5\u8868\u529F\u80FD\u5DF2\u7981\u7528\u3002\u542F\u7528 explorerDates.enableExportReporting \u4EE5\u751F\u6210\u62A5\u8868\u3002",failedToGenerateReport:"\u751F\u6210\u62A5\u8868\u5931\u8D25\uFF1A{0}",apiDisabled:"Explorer Dates API \u5DF2\u901A\u8FC7\u8BBE\u7F6E\u7981\u7528\u3002",failedToShowApiInformation:"\u663E\u793A API \u4FE1\u606F\u5931\u8D25\uFF1A{0}",failedToShowWorkspaceActivity:"\u663E\u793A\u5DE5\u4F5C\u533A\u6D3B\u52A8\u5931\u8D25\uFF1A{0}",failedToShowPerformanceAnalytics:"\u663E\u793A\u6027\u80FD\u5206\u6790\u5931\u8D25\uFF1A{0}",failedToShowCacheDebugInfo:"\u663E\u793A\u7F13\u5B58\u8C03\u8BD5\u4FE1\u606F\u5931\u8D25\uFF1A{0}",noWorkspaceFolderOpen:"\u672A\u6253\u5F00\u4EFB\u4F55\u5DE5\u4F5C\u533A\u6587\u4EF6\u5939",now:"\u73B0\u5728",minutes:"\u5206",hours:"\u5C0F\u65F6",days:"\u5929",weeks:"\u5468",months:"\u4E2A\u6708",years:"\u5E74",justNow:"\u521A\u521A",minutesAgo:"{0} \u5206\u949F\u524D",hoursAgo:"{0} \u5C0F\u65F6\u524D",daysAgo:"{0} \u5929\u524D",lastModified:"\u6700\u540E\u4FEE\u6539",refreshSuccess:"\u65E5\u671F\u88C5\u9970\u5DF2\u5237\u65B0",activationError:"Explorer Dates \u542F\u52A8\u5931\u8D25",errorAccessingFile:"\u8BBF\u95EE\u7528\u4E8E\u88C5\u9970\u7684\u6587\u4EF6\u65F6\u51FA\u9519",clearTelemetryPrompt:"\u8FD9\u5C06\u6C38\u4E45\u5220\u9664\u672C\u5730\u5B58\u50A8\u7684 Explorer Dates \u9065\u6D4B\u4E8B\u4EF6\u3002\u6B64\u64CD\u4F5C\u65E0\u6CD5\u64A4\u9500\u3002\u662F\u5426\u7EE7\u7EED\uFF1F",clearTelemetryConfirm:"\u6E05\u9664\u9065\u6D4B",clearTelemetryCancel:"\u53D6\u6D88",reportFormatDisabled:"\u62A5\u8868\u683C\u5F0F\u201C{0}\u201D\u5DF2\u7981\u7528\u3002\u5141\u8BB8\u7684\u683C\u5F0F\uFF1A{1}",reportDownloadTriggered:"\u5DF2\u5728\u6D4F\u89C8\u5668\u4E2D\u89E6\u53D1\u62A5\u8868\u4E0B\u8F7D",selectReportTimeRangePlaceholder:"\u9009\u62E9\u62A5\u8868\u65F6\u95F4\u8303\u56F4",selectReportFormatPlaceholder:"\u9009\u62E9\u62A5\u8868\u683C\u5F0F",cleanupNoDeprecated:"\u2139\uFE0F \u672A\u53D1\u73B0\u9700\u8981\u6E05\u7406\u7684\u5DF2\u5F03\u7528\u8BBE\u7F6E\u3002",showMigrationHistoryNoHistory:"\u672A\u627E\u5230\u8FC1\u79FB\u5386\u53F2\u3002",resetConfirmation:"\u8FD9\u5C06\u628A\u6240\u6709 Explorer Dates \u8BBE\u7F6E\u91CD\u7F6E\u4E3A\u9ED8\u8BA4\u503C\u3002\u786E\u5B9A\u5417\uFF1F",resetConfirm:"\u91CD\u7F6E\u8BBE\u7F6E",resetCancel:"\u53D6\u6D88",resetSuccess:"\u2705 \u5DF2\u5C06 {0} \u9879\u8BBE\u7F6E\u91CD\u7F6E\u4E3A\u9ED8\u8BA4\u503C\u3002",validateNoIssues:"\u2705 \u914D\u7F6E\u6709\u6548 - \u672A\u53D1\u73B0\u95EE\u9898\uFF01",validateFoundIssues:"\u53D1\u73B0 {0} \u4E2A\u914D\u7F6E\u95EE\u9898\u3002\u662F\u5426\u67E5\u770B\u8BE6\u7EC6\u4FE1\u606F\uFF1F",validateShowDetails:"\u663E\u793A\u8BE6\u7EC6\u4FE1\u606F",validateDismiss:"\u5173\u95ED",migrationNotificationMessage:"Explorer Dates \u4E3A\u517C\u5BB9\u6027\u66F4\u65B0\u4E86 {0} \u9879\u8BBE\u7F6E\u3002\u60A8\u7684\u914D\u7F6E\u5DF2\u4FDD\u7559\u3002",migrationViewChanges:"\u67E5\u770B\u66F4\u6539",migrationOpenSettings:"\u6253\u5F00\u8BBE\u7F6E",deprecatedPrompt:"Explorer Dates \u53D1\u73B0 {0} \u4E2A\u5DF2\u5F03\u7528\u8BBE\u7F6E\u3002\u662F\u5426\u5220\u9664\uFF1F",deprecatedClean:"\u7ACB\u5373\u6E05\u7406",deprecatedKeep:"\u4FDD\u7559\u65E7\u8BBE\u7F6E",deprecatedAskLater:"\u7A0D\u540E\u8BE2\u95EE",showFileLocation:"\u663E\u793A\u6587\u4EF6\u4F4D\u7F6E",teamConfigCorrupted:"Explorer Dates \u56E2\u961F\u914D\u7F6E\u6587\u4EF6\u4F3C\u4E4E\u5DF2\u635F\u574F\u3002\u8BF7\u68C0\u67E5 .explorer-dates-profiles.json \u6587\u4EF6\u6216\u4ECE\u5907\u4EFD\u6062\u590D\u3002",appliedFromTeamProfile:"\u5DF2\u4ECE\u56E2\u961F\u914D\u7F6E\u6587\u4EF6\u201C{1}\u201D\u5E94\u7528 {0} \u9879 Explorer Dates \u8BBE\u7F6E\u3002",documentedOverrides:"\u5DF2\u5728 .vscode/explorer-dates-overrides.md \u4E2D\u8BB0\u5F55 Explorer Dates \u8986\u76D6\u9879",teamConfigMissingProfile:"\u56E2\u961F\u914D\u7F6E\u7F3A\u5C11\u6D3B\u52A8\u914D\u7F6E\u6587\u4EF6\u3002",ephemeralStorageEnospc:"\u7531\u4E8E\u78C1\u76D8\u5DF2\u6EE1\uFF0C\u65E0\u6CD5\u4FDD\u5B58 Explorer Dates \u56E2\u961F\u914D\u7F6E\u3002",ephemeralStorageGeneric:"\u7531\u4E8E\u5DE5\u4F5C\u533A\u4E3A\u53EA\u8BFB\u6216\u6743\u9650\u53D7\u9650\uFF0C\u65E0\u6CD5\u4FDD\u5B58 Explorer Dates \u56E2\u961F\u914D\u7F6E\u3002",ephemeralStorageSuffix:"\u66F4\u6539\u5C06\u5728 VS Code \u91CD\u542F\u524D\u4FDD\u5B58\u5728\u5185\u5B58\u4E2D\uFF0C\u56E0\u6B64\u53EF\u80FD\u4F1A\u4E22\u5931\u3002"}});var rt=E((eo,tt)=>{var M={};M.en=Xe();M.es=Ye();M.fr=Ze();M.de=Je();M.ja=Qe();M.zh=et();tt.exports=M});var ot=E((to,nt)=>{var U=require("vscode"),I={en:{now:"now",minutes:"m",hours:"h",days:"d",weeks:"w",months:"mo",years:"y",justNow:"just now",minutesAgo:e=>`${e} minute${e!==1?"s":""} ago`,hoursAgo:e=>`${e} hour${e!==1?"s":""} ago`,yesterday:"yesterday",daysAgo:e=>`${e} day${e!==1?"s":""} ago`,lastModified:"Last modified",refreshSuccess:"Date decorations refreshed",activationError:"Explorer Dates failed to activate",errorAccessingFile:"Error accessing file for decoration",clearTelemetryPrompt:"This will permanently delete locally-stored telemetry events for Explorer Dates. This action cannot be undone. Proceed?",clearTelemetryConfirm:"Clear Telemetry",clearTelemetryCancel:"Cancel",clearTelemetrySuccess:"\u2705 Explorer Dates telemetry cleared.",migrateChecking:"Checking for settings that need migration...",migrateAllUpToDate:"\u2705 All settings are up to date!",migrateApplied:e=>`\u2705 Explorer Dates maintenance applied: ${e}.`,organizeSettingsResult:e=>`Explorer Dates settings organized: ${e}`,cleanupSuccess:"\u2705 Deprecated settings have been cleaned up!",reportFormatDisabled:(e,t)=>`Report format "${e}" is disabled. Allowed formats: ${t}`,reportSaved:e=>`Report saved to ${e}`,reportGenerateFailed:"Failed to generate report",reportDownloadTriggered:"Report download triggered in browser",selectReportTimeRangePlaceholder:"Select report time range",selectReportFormatPlaceholder:"Select report format",cleanupNoDeprecated:"\u2139\uFE0F No deprecated settings found to clean up.",showMigrationHistoryNoHistory:"No migration history found.",resetConfirmation:"This will reset all Explorer Dates settings to their default values. Are you sure?",migrationDetailsTitle:"Explorer Dates - Settings Migration",migrationDetailsHeader:"Settings Migration",gitAttributionWarning:"Explorer Dates: Git attribution badges are unavailable on VS Code for Web. Time-based decorations remain available.",noOverridesToDocument:"No overrides to document.",overrideNotesHeader:`# Explorer Dates Override Notes -`,analysisCommandsDisabled:"Explorer Dates analysis commands are disabled. Shortcuts like Ctrl+Shift+M/H/A will not work until you enable explorerDates.enableAnalysisCommands.",analysisEnableNow:"Enable Now",analysisEnablePartially:"Enable partially succeeded. Update explorerDates.enableAnalysisCommands in remaining workspace folders manually.",analysisEnableFailed:"Enable failed: update explorerDates.enableAnalysisCommands in workspace settings.",workspaceTemplatesDisabled:"Workspace templates are disabled. Enable explorerDates.enableWorkspaceTemplates to use this command.",workspaceTemplatesDisabledSave:"Workspace templates are disabled. Enable explorerDates.enableWorkspaceTemplates to save templates.",enterTemplateName:"Enter template name",enterTemplateDescription:"Enter description (optional)",failedToOpenTemplateManager:e=>`Failed to open template manager: ${e}`,failedToSaveTemplate:e=>`Failed to save template: ${e}`,reportingDisabled:"Reporting features are disabled. Enable explorerDates.enableExportReporting to generate reports.",failedToGenerateReport:e=>`Failed to generate report: ${e}`,apiDisabled:"Explorer Dates API is disabled via settings.",failedToShowApiInformation:e=>`Failed to show API information: ${e}`,failedToShowWorkspaceActivity:e=>`Failed to show workspace activity: ${e}`,failedToShowPerformanceAnalytics:e=>`Failed to show performance analytics: ${e}`,failedToShowCacheDebugInfo:e=>`Failed to show cache debug info: ${e}`,noWorkspaceFolderOpen:"No workspace folder open",resetConfirm:"Reset Settings",resetCancel:"Cancel",resetSuccess:e=>`\u2705 Reset ${e} settings to defaults.`,validateNoIssues:"\u2705 Configuration is valid - no issues found!",validateFoundIssues:e=>`Found ${e} configuration issue(s). Would you like to see details?`,validateShowDetails:"Show Details",validateDismiss:"Dismiss",migrationNotificationMessage:e=>`Explorer Dates updated ${e} setting(s) for compatibility. Your configuration has been preserved.`,migrationViewChanges:"View Changes",migrationOpenSettings:"Open Settings",deprecatedPrompt:e=>`Explorer Dates found ${e} deprecated setting(s). Would you like to remove them?`,deprecatedClean:"Clean Up Now",deprecatedKeep:"Keep Old Settings",deprecatedAskLater:"Ask Later",showFileLocation:"Show File Location",teamConfigCorrupted:"Explorer Dates team configuration file appears to be corrupted. Please check the .explorer-dates-profiles.json file or restore from backup.",appliedFromTeamProfile:(e,t)=>`Applied ${e} Explorer Dates settings from team profile "${t}".`,documentedOverrides:"Documented Explorer Dates overrides in .vscode/explorer-dates-overrides.md",teamConfigMissingProfile:"Team configuration is missing an active profile.",ephemeralStorageEnospc:"Explorer Dates team configuration could not be saved because the disk is full.",ephemeralStorageGeneric:"Explorer Dates team configuration could not be saved because the workspace is read-only or permissions are restricted.",ephemeralStorageSuffix:" Changes will be kept in memory until VS Code restarts, so they may be lost."}};try{let e=rt();if(e&&typeof e=="object")for(let[t,r]of Object.entries(e)){I[t]||(I[t]={});for(let[n,o]of Object.entries(r))typeof I[t][n]>"u"&&(I[t][n]=o)}}catch{}var le=class{constructor(){this.u="en",this.a=null,this.b(),typeof U.workspace.onDidChangeConfiguration=="function"?this.a=U.workspace.onDidChangeConfiguration(t=>{t.affectsConfiguration("explorerDates.locale")&&this.b()}):this.a=null}b(){let r=U.workspace.getConfiguration("explorerDates").get("locale","auto");if(r==="auto"){let n=U&&U.env&&typeof U.env.language=="string"?U.env.language:"en";try{r=String(n||"en").split("-")[0]}catch{r="en"}}I[r]||(r="en"),this.u=r}getString(t,...r){let o=(I[this.u]||I.en)[t];return typeof o=="function"?o(...r):o||I.en[t]||t}getCurrentLocale(){return this.u}formatDate(t,r={}){try{return t.toLocaleDateString(this.u,r)}catch{return t.toLocaleDateString("en",r)}}dispose(){this.a&&(this.a.dispose(),this.a=null),Q===this&&(Q=null)}},Q=null;function Ur(){return Q||(Q=new le),Q}nt.exports={LocalizationManager:le,getLocalization:Ur}});var at=E((ro,it)=>{function qr(e){let t=require("vscode");function r(c,d,f,g,y,h){if(!e.P||!g)return h&&(h.misses++,h.allocations++),y();if(c.has(g))return h&&(h.hits++,h.reuses++),c.get(g);h&&(h.misses++,h.allocations++);let C=y();if(c.set(g,C),d.push(g),d.length>f){let D=d.shift();D&&c.delete(D)}return C}function n({formatType:c,diffMinutes:d,diffHours:f,diffDays:g,diffWeeks:y,diffMonths:h,date:C}){let D=(L,w=null)=>({value:L,key:w?`badge:${c||"default"}:${w}`:null});switch(c){case"relative-short":case"relative-long":return d<1?D("\u25CF\u25CF","just"):d<60?D(`${Math.min(d,99)}m`,`m:${Math.min(d,99)}`):f<24?D(`${Math.min(f,23)}h`,`h:${Math.min(f,23)}`):g<7?D(`${g}d`,`d:${g}`):y<4?D(`${y}w`,`w:${y}`):h<12?D(`${h}M`,`M:${h}`):D("1y","y:1");case"absolute-short":case"absolute-long":{let L=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],w=C.getDate(),H=`${L[C.getMonth()]}${w<10?"0"+w:w}`,b=[C.getMonth(),w];return c==="absolute-long"&&b.push(C.getFullYear()),D(H,`abs:${b.join("-")}`)}case"technical":return d<60?D(`${d}m`,`tech:m:${d}`):f<24?D(`${f}h`,`tech:h:${f}`):D(`${g}d`,`tech:d:${g}`);case"minimal":return f<1?D("\u2022\u2022","min:now"):f<24?D("\u25CB\u25CB","min:hours"):D("\u2500\u2500","min:days");default:return d<60?D(`${d}m`,`smart:m:${d}`):f<24?D(`${f}h`,`smart:h:${f}`):D(`${g}d`,`smart:d:${g}`)}}function o(c,d,f=null){let y=f!==null?f:new Date().getTime()-c.getTime();if(y<0)return e._logger.debug(`File has future modification time (diffMs: ${y}), treating as just modified`),"\u25CF\u25CF";let h=Math.floor(y/(1e3*60)),C=Math.floor(y/(1e3*60*60)),D=Math.floor(y/(1e3*60*60*24)),L=Math.floor(D/7),w=Math.floor(D/30),H=n({formatType:d,diffMinutes:h,diffHours:C,diffDays:D,diffWeeks:L,diffMonths:w,date:c});return r(e.I,e.L,e.N,H.key,()=>H.value,e.O)}function i(c){if(!c)return"none";if(typeof c=="string")return c;if(c.id)return c.id;try{return JSON.stringify(c)}catch{return String(c)}}function a(c,d,f){let g=c||"",y=d||"",h=i(f);return`${g}::${h}::${y}`}function l({badge:c,tooltip:d,color:f}){if(!e.W){e.n.misses++,e.n.allocations++;let h=new t.FileDecoration(c||"??");return d&&(h.tooltip=d),f&&(h.color=f),h.propagate=!1,h}if(!c)return e.n.allocations++,new t.FileDecoration("??");let g=a(c,d,f);if(g&&e.s.has(g))return e.n.hits++,e.n.reuses++,e.s.get(g);let y=new t.FileDecoration(c);if(d&&(y.tooltip=d),f&&(y.color=f),y.propagate=!1,e.n.allocations++,g&&(e.s.set(g,y),e.g.push(g),e.g.length>e.M)){let h=e.g.shift();h&&h!==g&&e.s.delete(h)}return e.n.misses++,y}function u(c="unspecified"){e.s.size!==0&&(e.s.clear(),e.g.length=0,e._logger.debug(`\u{1F9FC} Cleared decoration pool (${c})`))}async function s({filePath:c,stat:d,gitBlame:f,shouldUseAccessibleTooltips:g,fileSizeFormat:y}){if(g){let C=e._accessibility?.getAccessibleTooltip?.(c,d.mtime,d.birthtime,d.size,f);if(C)return C}let h=[];try{let C=e.l.formatDate(d.mtime);if(h.push(`${C}`),y&&typeof d.size=="number"){let D=e.U(d.size,y);h.push(D)}f&&f.author&&h.push(`Author: ${f.author}`)}catch(C){e._logger.debug("Tooltip builder failed",C)}return h.join(" \u2014 ")}return{acquireDecorationFromPool:l,clearDecorationPool:u,q:a,H:i,K:o,B:n,z:r,h:s}}it.exports={createDecorationLogic:qr}});var ce=E((exports,module)=>{var chunk=null;try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){try{chunk=dynamicRequire("../chunks/utils-shared-chunk")}catch{}try{chunk||(chunk=dynamicRequire("./chunks/utils-shared-chunk"))}catch{}try{chunk||(chunk=dynamicRequire("../chunks/path-utils-chunk"))}catch{}try{chunk||(chunk=dynamicRequire("./chunks/path-utils-chunk"))}catch{}}}catch{}if(chunk&&chunk.normalizePath)module.exports={normalizePath:chunk.normalizePath,getFileName:chunk.getFileName,getExtension:chunk.getExtension,getDirectory:chunk.getDirectory,joinPath:chunk.joinPath,getCacheKey:chunk.getCacheKey,getUriPath:chunk.getUriPath,getRelativePath:chunk.getRelativePath};else{let e=function(s=""){return s?s.replace(/\\/g,"/"):""},t=function(s=""){let c=e(s);return c?c.split("/").filter(Boolean):[]},r=function(s=""){let c=t(s);return c.length?c[c.length-1]:""},n=function(s=""){let c=r(s),d=c.lastIndexOf(".");return d<=0?"":c.substring(d).toLowerCase()},o=function(s=""){let c=e(s),d=c.lastIndexOf("/");return d===-1?"":c.substring(0,d)},i=function(...s){return e(s.filter(Boolean).join("/")).replace(/\/+/g,"/")},a=function(s=""){return e(s).toLowerCase()},l=function(s=""){if(!s)return"";if(typeof s=="string")return s;if(typeof s.fsPath=="string"&&s.fsPath.length>0)return s.fsPath;if(typeof s.path=="string"&&s.path.length>0)return s.path;if(typeof s.toString=="function")try{return s.toString(!0)}catch{return s.toString()}return String(s)},u=function(s="",c=""){let d=e(s),f=e(c);return d&&f.startsWith(d)?f.substring(d.length).replace(/^\/+/,""):f};normalizePath=e,getSegments=t,getFileName=r,getExtension=n,getDirectory=o,joinPath=i,getCacheKey=a,getUriPath=l,getRelativePath=u,module.exports={normalizePath:e,getFileName:r,getExtension:n,getDirectory:o,joinPath:i,getCacheKey:a,getUriPath:l,getRelativePath:u}}var normalizePath,getSegments,getFileName,getExtension,getDirectory,joinPath,getCacheKey,getUriPath,getRelativePath});var Te=E((no,ut)=>{var st="EXPLORER_DATES_FORCE_VSCODE_FS";function lt(e,t=process.env){return String(t?.[e]||"")==="1"}function ue(e){let t=e&&typeof e=="object"?e:null,r=String(t?.scheme||(typeof e=="string"&&/^[a-z][a-z0-9+.-]*:/i.test(e)?e.split(":",1)[0]:"file")).toLowerCase(),n=String(t?.authority||""),o=t?.path||t?.fsPath||(typeof e=="string"?e.replace(/^[a-z][a-z0-9+.-]*:\/\//i,""):"");return{scheme:r,authority:n,path:String(o||"")}}function Hr({uri:e,isWeb:t=!1,remoteName:r="",forceWorkspaceFs:n=lt(st)}={}){let o=ue(e),i=o.scheme!=="file",a=!!t,l=!!r,u=!!(n||a||l||i);return{scheme:o.scheme,authority:o.authority,isFileScheme:!i,isVirtual:i,isBrowser:a,isRemote:l,forceWorkspaceFs:!!n,filesystem:u?"workspace.fs":"node.fs",provider:i?o.scheme==="github"||o.scheme==="vscode-vfs"?"github":"virtual":"filesystem"}}function ct({uri:e,platform:t=process.platform,caseSensitive:r}={}){return typeof r=="boolean"?r:ue(e).scheme!=="file"?!0:t!=="win32"}function Kr(e,t={}){let r=ue(e),n=r.path.replace(/\\/g,"/").replace(/\/+/g,"/"),o=`${r.scheme}://${r.authority}${n}`;return ct({uri:e,...t})?o:o.toLowerCase()}function ke(e){if(e instanceof Date){let t=e.getTime();return Number.isFinite(t)?t:null}if(typeof e=="number")return Number.isFinite(e)?e:null;if(typeof e=="string"&&e.trim()){let t=Date.parse(e);return Number.isFinite(t)?t:null}return null}function Br(e){if(!e||typeof e!="object")return null;let t=ke(e.mtime),r=ke(e.ctime);return{...e,mtimeMs:t,ctimeMs:r}}ut.exports={FORCE_WORKSPACE_FS_ENV:st,envFlag:lt,getUriParts:ue,getEnvironmentContract:Hr,isCaseSensitive:ct,resourceIdentity:Kr,normalizeTimestamp:ke,normalizeStat:Br}});var bt=E((oo,yt)=>{var de=require("vscode"),{normalizePath:Fe,getRelativePath:zr}=ce(),{diagLogOnce:$r}=se(),{normalizeTimestamp:ee,resourceIdentity:Vr}=Te(),jr={unknown:0,github:1,git:2,fs:3},Ae={low:1,medium:2,high:3};function x(e,t,r){try{return e?.get?e.get(t,r):r}catch{return r}}function Gr(e){return{nowMinutes:Number(x(e,"freshnessBucketMinutesNow",60))||60,todayHours:Number(x(e,"freshnessBucketHoursToday",24))||24,twoDays:Number(x(e,"freshnessBucketDaysTwo",2))||2,oneWeek:Number(x(e,"freshnessBucketDaysWeek",7))||7}}function dt(e,t){if(!Number.isFinite(e)||e<0)return"unknown";let r=t.nowMinutes*60*1e3,n=t.todayHours*60*60*1e3,o=t.twoDays*24*60*60*1e3,i=t.oneWeek*24*60*60*1e3;return e<=r?"now":e<=n?"today":e<=o?"2d":e<=i?"1w":"stale"}function ft(e){switch(e){case"now":return"now";case"today":return"today";case"2d":return"2d";case"1w":return"1w";case"stale":return"stale";default:return"unknown"}}function pt(e){switch(e){case"fs":return"Filesystem";case"git":return"Git";case"github":return"GitHub";default:return"Unknown"}}function mt(e){switch(e){case"now":return"!!";case"today":return"T";case"2d":return"2d";case"1w":return"1w";case"stale":return"~~";default:return"?"}}function Xr(e,t,r){let n=!!x(r,"freshnessShowUnknown",!0);if(e==="unknown"||t==="unknown")return n?"?":null;let o=mt(e);return!o||o==="unknown"?n?"?":null:o}function Yr(e){try{let t=ee(e);return t===null?null:new Date(t).toISOString().replace("T"," ").replace("Z","")}catch{return null}}function Zr(e,t){if(!e)return;let r=x(t,"freshnessTooltipVerbosity","full"),n=x(t,"badge.sourceLabelMode","auto"),o=[],i=ft(e.bucket),a=pt(e.source);if(o.push(`Freshness: ${i}`),e.exactTimestamp){let s=Yr(e.exactTimestamp);s&&o.push(`Exact time: ${s}`)}let l=e.source==="fs"&&e.confidence==="high";return(n==="always"||n!=="never"&&!l||n!=="never"&&r==="full")&&o.push(`Source: ${a}`),e.author&&o.push(`Author: ${e.author}`),e.message&&o.push(`Message: ${e.message}`),o.push(`Confidence: ${e.confidence}`),e.reason&&r==="full"&&o.push(`Reason: ${e.reason}`),o.join(` -`)}function Jr(e,t,r){if(!Number.isFinite(t)||t<=0)return!1;let n=300*1e3;if(t>r+n)return!1;if(e==="file")return!0;let o=r-t,i=300*1e3,a=365*24*60*60*1e3*10;return!(oa)}function _e({source:e,timestampMs:t,author:r,message:n,confidence:o,reason:i},a){if(!Number.isFinite(t))return{bucket:"unknown",source:e||"unknown",confidence:o||"low",reason:i||"no-timestamp"};let l=Gr(a),u=Date.now()-t;return{bucket:dt(u,l),source:e,exactTimestamp:t,author:r||void 0,message:n||void 0,confidence:o,reason:i||void 0}}async function Qr(e,t,r){let n=e?.scheme||"file",o=!!x(r,"freshnessAllowVirtualFs",!1);if(n!=="file"&&!o)return{freshness:null,reason:"fs-virtual-disabled"};let i=t?.mtimeMs??ee(t?.mtime),a=Date.now();return Number.isFinite(i)?Jr(n,i,a)?{freshness:_e({source:"fs",timestampMs:i,confidence:n==="file"?"high":"medium",reason:n==="file"?"fs-trust-high":"fs-trust-medium"},r),reason:null}:{freshness:null,reason:"fs-mtime-untrusted"}:{freshness:null,reason:"fs-mtime-missing"}}async function en(e,t,r){if(!t||typeof t.S!="function")return{freshness:null,reason:"git-provider-missing"};let n;try{n=await t.S(e)}catch(a){return{freshness:null,reason:`git-error:${a?.message||"unknown"}`}}let o=ee(n?.timestampMs);return o===null||o<=0?{freshness:null,reason:n?.error||"git-no-timestamp"}:{freshness:_e({source:"git",timestampMs:o,author:n?.author||void 0,message:n?.message||void 0,confidence:"medium",reason:"git-recency"},r),reason:null}}function gt(e){if(!e||(e.scheme||"")!=="github")return null;let n=Fe(e.path||"").replace(/^\/+/,"").split("/").filter(Boolean);if(n.length<2)return null;let o=n[0],i=n[1],a=n.slice(2).join("/"),l=new URLSearchParams(e.query||""),u=l.get("ref")||l.get("branch")||"HEAD";return{owner:o,repo:i,filePath:a,ref:u}}function tn(e){let t=(e||"").indexOf("+");if(t===-1)return"HEAD";let r=e.slice(t+1);try{let n;if(typeof TextDecoder<"u"){let a=new Uint8Array(r.length/2);for(let l=0;l0)return i}catch{}return"HEAD"}function ht(e){if(!e||e.scheme!=="vscode-vfs"||!String(e.authority||"").startsWith("github"))return null;let r=Fe(e.path||"").replace(/^\/+/,"").split("/").filter(Boolean);if(r.length<2)return null;let n=r[0],o=r[1],i=r.slice(2).join("/"),a=tn(e.authority||"");return{owner:n,repo:o,filePath:i,ref:a}}function rn(e){try{let t=de.workspace.workspaceFolders||[];for(let r of t){let n=r?.uri?.scheme;if(n==="github"){let o=gt(r.uri);if(!o)continue;let i=zr(r.uri.path||"",e?.path||"");return{...o,filePath:i}}if(n==="vscode-vfs"&&String(r?.uri?.authority||"").startsWith("github")){let o=ht(r.uri);if(!o)continue;let a=Fe(e?.path||"").replace(/^\/+/,"").split("/").filter(Boolean).slice(2).join("/");if(!a)continue;return{...o,filePath:a}}}}catch{}return null}async function nn(e,t){let r=gt(e)||ht(e)||rn(e);if(!r||!r.owner||!r.repo||!r.filePath)return{freshness:null,reason:"github-context-missing"};let n=`${r.owner}/${r.repo}@${r.ref}:${r.filePath}`,o=`https://api.github.com/repos/${r.owner}/${r.repo}/commits?path=${encodeURIComponent(r.filePath)}&sha=${encodeURIComponent(r.ref)}&per_page=1`,i={Accept:"application/vnd.github+json"};try{let y=de?.authentication&&typeof de.authentication.getSession=="function"?await de.authentication.getSession("github",["repo"],{createIfNone:!1}):null;y?.accessToken&&(i.Authorization=`Bearer ${y.accessToken}`)}catch{}if(typeof fetch!="function")return{freshness:null,reason:"github-fetch-unavailable"};let a;try{a=await fetch(o,{headers:i})}catch(y){return{freshness:null,reason:`github-fetch-error:${y?.message||"unknown"}`}}if(!a||!a.ok)return{freshness:null,reason:a?`github-http-${a.status}`:"github-no-response"};let l;try{l=await a.json()}catch{return{freshness:null,reason:"github-json-error"}}let u=Array.isArray(l)?l[0]:null,s=u?.commit||null,c=s?.author?.name||u?.author?.login||void 0,d=s?.message||void 0,f=ee(s?.author?.date);return f===null?{freshness:null,reason:"github-no-timestamp"}:{freshness:_e({source:"github",timestampMs:f,author:c,message:d,confidence:"medium",reason:"github-commit"},t),reason:null,cacheKey:n}}function we(e,t){return!e||e==="auto"?!0:e==="unknown"?t==="unknown":e===t}async function on({uri:e,stat:t,provider:r,config:n,workspaceKind:o}){let i=e?.scheme||"file",a=x(n,"freshnessSourcePolicy","auto"),l=[],u=Date.now();if(we(a,"fs")){let s=await Qr(e,t,n);if(l.push({source:"fs",reason:s.reason||null}),s.freshness)return{...s.freshness,attempts:l}}if(we(a,"git")){let s=await en(e,r,n);if(l.push({source:"git",reason:s.reason||null}),s.freshness)return{...s.freshness,attempts:l}}if(we(a,"github")){let s=await nn(e,n);if(l.push({source:"github",reason:s.reason||null,cacheKey:s.cacheKey||null}),s.freshness)return{...s.freshness,attempts:l}}return $r("freshness-unknown","info","No trustworthy freshness source available",{scheme:i,workspaceKind:o||"unknown",attempts:l}),{bucket:"unknown",source:"unknown",confidence:"low",reason:"no-source",attempts:l,resolvedAt:u}}function an(e,t){if(!e)return-1;if(!t)return 1;let r=Ae[e.confidence]||0,n=Ae[t.confidence]||0;if(r!==n)return r-n;let o=Number(e.exactTimestamp||0),i=Number(t.exactTimestamp||0);return o-i}yt.exports={resolveFreshness:on,formatBadge:Xr,formatTooltip:Zr,bucketFromAge:dt,formatBucketLabel:ft,formatBadgeAge:mt,formatSourceLabel:pt,compareFreshness:an,SOURCE_RANK:jr,CONFIDENCE_RANK:Ae,normalizeTimestamp:ee,resourceIdentity:Vr}});var Re=E((io,vt)=>{function sn(){return typeof Date=="function"&&Date.now?Date.now():16409952e5}function Et(e){return!!(e&&typeof e=="object"&&typeof e.getTime=="function")}function ln(e){if(Et(e))return e;if(typeof e=="number")return new Date(e);if(typeof e=="string"){let t=Date.parse(e);return isNaN(t)?new Date:new Date(t)}return new Date}function q(e=""){return e?e.replace(/\\/g,"/"):""}function cn(e=""){let t=q(e);return t?t.split("/").filter(Boolean):[]}function Dt(e=""){let t=cn(e);return t.length?t[t.length-1]:""}function un(e=""){let t=Dt(e),r=t.lastIndexOf(".");return r<=0?"":t.substring(r).toLowerCase()}function dn(e=""){let t=q(e),r=t.lastIndexOf("/");return r===-1?"":t.substring(0,r)}function fn(...e){return q(e.filter(Boolean).join("/")).replace(/\/+/g,"/")}function pn(e=""){return q(e).toLowerCase()}function mn(e=""){if(!e)return"";if(typeof e=="string")return e;if(typeof e.fsPath=="string"&&e.fsPath.length>0)return e.fsPath;if(typeof e.path=="string"&&e.path.length>0)return e.path;if(typeof e.toString=="function")try{return e.toString(!0)}catch{return e.toString()}return String(e)}function gn(e="",t=""){let r=q(e),n=q(t);return r&&n.startsWith(r)?n.substring(r.length).replace(/^\/+/,""):n}vt.exports={ensureDate:ln,isDateLike:Et,getCurrentTimestamp:sn,normalizePath:q,getFileName:Dt,getExtension:un,getDirectory:dn,joinPath:fn,getCacheKey:pn,getUriPath:mn,getRelativePath:gn}});var St=E((exports,module)=>{function createDecorationProviderHelpers(provider){let vscode=require("vscode"),{diagLogOnce,diagLog,isWebDiagnosticsEnabled}=se(),{formatBadge,formatTooltip}=bt(),decorationDiagCount=0,maxDecorationDiag=20,CONTRIBUTED_CUSTOM_COLOR_TOKENS=new Set(["explorerDates.customColor.veryRecent","explorerDates.customColor.recent","explorerDates.customColor.old"]),isWebRuntime=(()=>{try{return vscode?.env?.uiKind===vscode?.UIKind?.Web}catch{return!1}})(),getFileName,getExtension,normalizePath,getUriPath,ensureDate;try{let e=Re();e&&(getFileName=e.getFileName,getExtension=e.getExtension,normalizePath=e.normalizePath,getUriPath=e.getUriPath,ensureDate=e.ensureDate)}catch{}if(!getFileName||!ensureDate){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function")try{let e=dynamicRequire("../utils/pathUtils"),t=dynamicRequire("../utils/dateHelpers");getFileName=getFileName||e.getFileName,getExtension=getExtension||e.getExtension,normalizePath=normalizePath||e.normalizePath,getUriPath=getUriPath||e.getUriPath,ensureDate=ensureDate||t.ensureDate}catch{}}catch{}getFileName||(getFileName=e=>{let t=String(e||""),r=t.replace(/\\/g,"/").lastIndexOf("/");return r===-1?t:t.substring(r+1)}),getExtension||(getExtension=e=>{let t=String(e||""),r=t.lastIndexOf(".");return r<=0?"":t.substring(r).toLowerCase()}),normalizePath||(normalizePath=(e="")=>(e||"").toString().replace(/\\/g,"/")),getUriPath||(getUriPath=(e="")=>e?typeof e=="string"?e:e?.fsPath?e.fsPath:e?.path?e.path:String(e):""),ensureDate||(ensureDate=e=>e instanceof Date?e:typeof e=="number"?new Date(e):typeof e=="string"?isNaN(Date.parse(e))?new Date:new Date(Date.parse(e)):new Date)}async function provideDecoration(e,t){let r=!1,n=null,o,i=null,a=null,l=null,u=null,s=!1,c=null,d=null,f=null,g=null,y=null,h=null,C=!1,D=()=>isWebDiagnosticsEnabled&&isWebDiagnosticsEnabled()&&decorationDiagCount{let b=null;try{b=vscode.workspace.getConfiguration("explorerDates")}catch{b=null}let N=b?b.get("colorScheme","none"):"none",m=b?b.get("showDateDecorations",!0):!0,O=typeof provider._performanceMode=="boolean"?provider._performanceMode:b?b.get("performanceMode",!1):!1,X=isWebRuntime&&b?!!b.get("webDiagnosticsBuiltinColors",!1):!1;return{isWeb:isWebRuntime,isCanary:!1,builtinColorFallbackActive:X,colorScheme:N,effectiveColorScheme:N,showDateDecorations:m,performanceMode:O,featureLevel:provider.$,previewSettings:!!provider.d}},w=b=>{if(!D()||r)return;decorationDiagCount+=1,r=!0;let m={...L(),...b};!m.scheme&&n&&(m.scheme=n),m.effectiveColorScheme||(m.effectiveColorScheme=m.colorScheme),typeof m.hasColor>"u"&&(m.hasColor=!!m.color),typeof m.badge>"u"&&(m.badge=null),typeof m.propagate>"u"&&(m.propagate=null),typeof m.decorationKeys>"u"&&(m.decorationKeys=null),typeof m.nullReason>"u"&&(m.nullReason=null),typeof m.timestampSource>"u"&&(m.timestampSource="not-attempted"),typeof m.gitRecencyAvailable>"u"&&(m.gitRecencyAvailable=!1),typeof m.gitRecencyError>"u"&&(m.gitRecencyError=null),typeof m.resolvedTimestampMs>"u"&&(m.resolvedTimestampMs=null),typeof m.gitRepoMatched>"u"&&(m.gitRepoMatched=null),typeof m.gitPathAttempted>"u"&&(m.gitPathAttempted=null),m.themeTokenSource||(m.isCanary?m.themeTokenSource="canary":m.builtinColorFallbackActive?m.themeTokenSource="builtin-fallback":typeof m.color=="string"&&m.color.startsWith("explorerDates.")?m.themeTokenSource="custom-token":m.color?m.themeTokenSource="builtin-token":m.themeTokenSource=null),diagLog("info","Decoration return sample",m)},H=b=>{if(!(!D()||r))try{w(b)}catch{}};try{if(provider.C){i="disposed";return}if(!e){i="no-uri";return}let b=e.fsPath||e.path||"";n=e.scheme||"file";let N=vscode.workspace.getConfiguration("explorerDates"),m=N.get("performanceMode",!1);if(m&&typeof m!="boolean")return i="invalid-performanceMode",null;if(b&&b.includes("\0"))return i="invalid-path",null;let O=getUriPath(e);if(!O){i="missing-path";return}let X=provider.E?provider.E(O):getFileName(O)||O,Me=normalizePath(O),Zt=n||"file";if(typeof provider.k!="function"){diagLogOnce("decorations-fallback-provider","warn","Decoration fallback active (missing provider helpers)");try{let A=await provider._fileSystem.stat(e);if(!A){i="no-stat";return}let K=A.mtime instanceof Date?A.mtime:A.mtime?new Date(A.mtime):null,ge=K&&typeof K.getTime=="function"?K.getTime():NaN;if(!Number.isFinite(ge)){i="invalid-stat";return}let Y=Date.now()-K.getTime(),he=Y<1440*60*1e3?"\u2022":Y<10080*60*1e3?"\u25E6":"\xB7",ye=`Modified: ${K.toISOString()}`,oe=new vscode.FileDecoration(he,ye);return o=oe,y=he,f=!1,g=null,h=oe?.propagate,oe}catch{i="fallback-error";return}}if(!provider.k(e,"provideFileDecoration")?.isValid){i="invalid-uri";return}if(await provider.V(e)){i="excluded";return}return o=await provider.j(b,async()=>{if(t?.isCancellationRequested||provider.C){i=t?.isCancellationRequested?"cancelled":"disposed";return}let A=(v,ie)=>provider.d&&Object.prototype.hasOwnProperty.call(provider.d,v)?provider.d[v]:vscode.workspace.getConfiguration("explorerDates").get(v,ie);if(isWebRuntime&&A("webDiagnosticsCanary",!1)&&isWebDiagnosticsEnabled&&isWebDiagnosticsEnabled()&&decorationDiagCount=provider.T;if(provider.ee>provider.T*.8&&ye){diagLogOnce("decorations-backpressure","warn","Decoration backpressure fallback active");let v=provider.te(e,Date.now());return y=v?.badge||null,f=!!v?.color,g=v?.color&&v?.color.id?v.color.id:v?.color||null,h=v?.propagate,i="backpressure",v}provider.re(),provider._metrics.cacheMisses++;let P=null;if(!ge&&provider._workspaceIntelligence?.incrementalIndexer){let v=provider._workspaceIntelligence.incrementalIndexer.getIndexedStat(b);v&&(P=v)}let Ue=Date.now();if(!P){try{P=await provider._fileSystem.stat(e)}catch(v){if(provider._metrics.fileStatTimeMs+=Date.now()-Ue,provider._metrics.fileStatCalls++,provider.ne(v)){i="stat-not-found";return}if(Zt!=="file"){i="stat-failed";return}throw i="stat-failed",v}provider._workspaceIntelligence?.incrementalIndexer&&provider._workspaceIntelligence.incrementalIndexer.primeFromStat(e,P)}if(provider._metrics.fileStatTimeMs+=Date.now()-Ue,provider._metrics.fileStatCalls++,!(typeof P.isFile=="function"?P.isFile():!0)){i="not-regular-file";return}s=!0;let k=null;try{typeof provider.w=="function"&&(k=await provider.w(e,P,{filePath:b,fileLabel:X}))}catch(v){u={source:"unknown",gitAvailable:!1,gitError:v?.message?`resolver-error:${v.message}`:"resolver-error",repoMatched:null,pathAttempted:null}}if((!k||k.bucket==="unknown"||k.source==="unknown")&&!A("freshnessShowUnknown",!0)){i="freshness-unknown";return}let be=A("colorScheme","none");provider._performanceMode&&be!=="custom"&&(be="none");let Jt=A("fileSizeFormat","auto"),B=provider.A,Qt=B&&typeof B.h=="function"?B.h:provider.h,er=B&&typeof B.acquireDecorationFromPool=="function"?B.acquireDecorationFromPool:provider.oe,Ee=formatBadge(k?.bucket||"unknown",k?.source||"unknown",N,k?.confidence||"low");if(!Ee){i="badge-suppressed";return}let W=k?.exactTimestamp?provider.ie(new Date(k.exactTimestamp),be,b):void 0,tr=formatTooltip(k,N)||await Qt({filePath:b,resourceUri:e,stat:P,badgeDetails:{},gitBlame:null,shouldUseAccessibleTooltips:!1,fileSizeFormat:Jt,isCodeFile:!1}),De=er({badge:Ee,tooltip:tr,color:W});return g=W&&typeof W=="object"&&"id"in W?W.id:W||null,f=!!W,y=String(Ee||""),h=De?.propagate,typeof g=="string"&&g.startsWith("explorerDates.customColor.")&&!CONTRIBUTED_CUSTOM_COLOR_TOKENS.has(g)&&diagLogOnce(`missing-custom-color-${g}`,"warn","Custom color token missing from contributes.colors",{colorId:g,knownTokens:Array.from(CONTRIBUTED_CUSTOM_COLOR_TOKENS)}),c=k?.exactTimestamp||null,u=u||{source:k?.source||"unknown",bucket:k?.bucket||"unknown",confidence:k?.confidence||"low",reason:k?.reason||null,attempts:k?.attempts||null,gitAvailable:k?.source==="git",gitError:null,repoMatched:null,pathAttempted:null},provider.ae(Y,De,X,e,k),De}),o}catch(b){a=b?.name||"Error",l=b?.message||String(b),i=i||"exception";return}finally{if(o){if(d==null)try{d=Object.keys(o||{})}catch{d=null}if(y==null&&typeof o.badge<"u"&&(y=o.badge),h==null&&typeof o.propagate<"u"&&(h=o.propagate),g==null&&typeof o.color<"u")try{g=o.color&&o.color.id?o.color.id:o.color}catch{g=o.color}f==null&&typeof g<"u"&&(f=!!g)}let b={uri:e?getFileName(getUriPath(e)||""):null,scheme:n,isCanary:C,badge:y,hasColor:f,color:g,propagate:h,decorationKeys:d,nullReason:o?null:i||"unknown",timestampSource:u?.source||(s?"none":"not-attempted"),gitRecencyAvailable:!!u?.gitAvailable,gitRecencyError:u?.gitError||null,resolvedTimestampMs:c,gitRepoMatched:u?.repoMatched??null,gitPathAttempted:u?.pathAttempted||null,freshnessBucket:u?.bucket||null,freshnessSource:u?.source||null,freshnessConfidence:u?.confidence||null,freshnessReason:u?.reason||null,freshnessAttempts:u?.attempts||null,exceptionName:a,exceptionMessage:l};H(b)}}return{provideDecoration}}module.exports={createDecorationProviderHelpers}});var wt=E((ao,Tt)=>{function Ct(e){!e._allocationTelemetryEnabled||e._telemetryReportTimer||(e._telemetryReportTimer=setTimeout(()=>{e._telemetryReportTimer=null,kt(e),Ct(e)},e._telemetryReportInterval))}function kt(e){let t=e.getMetrics().allocationTelemetry,r=t.decorationPool.allocations+t.badgeFlyweight.allocations+t.readableFlyweight.allocations,n=t.decorationPool.reuses+t.badgeFlyweight.reuses+t.readableFlyweight.reuses;(r>0||n>0)&&e._logger?.info?.("\u{1F9EE} Allocation telemetry report",{timestamp:new Date().toISOString(),pool:{allocations:t.decorationPool.allocations,reuses:t.decorationPool.reuses,reuseRate:t.decorationPool.reusePercent+"%"},badgeFlyweight:{allocations:t.badgeFlyweight.allocations,reuses:t.badgeFlyweight.reuses,reuseRate:t.badgeFlyweight.reusePercent+"%"},readableFlyweight:{allocations:t.readableFlyweight.allocations,reuses:t.readableFlyweight.reuses,reuseRate:t.readableFlyweight.reusePercent+"%"},summary:{totalAllocations:r,totalReuses:n,overallReuseRate:r+n>0?(n/(r+n)*100).toFixed(1)+"%":"0%"},decorationsProcessed:e._metrics.totalDecorations,cacheHitRate:e.getMetrics().cacheHitRate})}Tt.exports={scheduleTelemetryReport:Ct,reportAllocationTelemetry:kt}});var te=E((so,At)=>{var $="__explorerDatesLogger",V=class{constructor(){this.f=null}p(t,r){if(this.f&&typeof this.f[t]=="function")try{return this.f[t](...r)}catch{}switch(t){case"debug":break;case"info":break;case"warn":break;case"error":break;default:break}}debug(...t){return this.p("debug",t)}info(...t){return this.p("info",t)}warn(...t){return this.p("warn",t)}error(...t){return this.p("error",t)}se(t){this.f=t}};function hn(){return typeof global<"u"?(global[$]||(global[$]=new V),global[$]):typeof globalThis<"u"?(globalThis[$]||(globalThis[$]=new V),globalThis[$]):(xe||(xe=new V),xe)}var Pe=class extends V{},xe=null;At.exports={Logger:Pe,getLogger:hn}});var Rt=E((lo,_t)=>{var fe=class extends Error{constructor(t,r,n={}){super(r),this.code=t,this.context=n,this.name="ExtensionError"}},Ft={FILE_PERMISSION_DENIED:"FILE_PERMISSION_DENIED",WORKSPACE_TOO_LARGE:"WORKSPACE_TOO_LARGE",CHUNK_LOAD_FAILED:"CHUNK_LOAD_FAILED"};function yn(e){if(!e)return!1;let t=e.code||e?.name;return["EACCES","EPERM","EROFS","NoPermissions"].includes(t)}var Ie=class extends fe{constructor(t,r,n={}){let{recoverable:o=!0,context:i={}}=n;super(Ft.CHUNK_LOAD_FAILED,`Failed to load ${t}: ${r}`,{chunkName:t,recoverable:o,...i}),this.name="ChunkLoadError",this.chunkName=t,this.recoverable=o}};function bn(e,t,r={}){let n=require("vscode"),{userFacing:o=!0}=r,i=t?.recoverable??!0;o&&!i&&n.window.showErrorMessage(`Explorer Dates: ${e} feature unavailable. Please reinstall or rebuild the extension.`)}_t.exports={ExtensionError:fe,ERROR_CODES:Ft,isPermissionError:yn,ChunkLoadError:Ie,handleChunkFailure:bn}});var xt=E((exports,module)=>{var chunk=null;try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){try{chunk=dynamicRequire("../chunks/utils-shared-chunk")}catch{}try{chunk||(chunk=dynamicRequire("./chunks/utils-shared-chunk"))}catch{}try{chunk||(chunk=dynamicRequire("../chunks/date-helpers-chunk"))}catch{}try{chunk||(chunk=dynamicRequire("./chunks/date-helpers-chunk"))}catch{}}}catch{}if(chunk&&(chunk.ensureDate||chunk.isDateLike||chunk.getCurrentTimestamp))module.exports={ensureDate:chunk.ensureDate,isDateLike:chunk.isDateLike,getCurrentTimestamp:chunk.getCurrentTimestamp};else{let e=function(){return typeof Date=="function"&&Date.now?Date.now():16409952e5},t=function(n){return!!(n&&typeof n=="object"&&typeof n.getTime=="function")},r=function(n){if(t(n))return n;if(typeof n=="number")return new Date(n);if(typeof n=="string"){let o=Date.parse(n);return isNaN(o)?new Date:new Date(o)}return new Date};getCurrentTimestamp=e,isDateLike=t,ensureDate=r,module.exports={ensureDate:r,isDateLike:t,getCurrentTimestamp:e}}var getCurrentTimestamp,isDateLike,ensureDate});var Ot=E((co,Nt)=>{var S=require("vscode"),{isWebEnvironment:Pt}=Z(),{normalizePath:En}=ce(),{ExtensionError:Dn,ERROR_CODES:vn,isPermissionError:Sn}=Rt(),{getEnvironmentContract:Cn,normalizeStat:kn,FORCE_WORKSPACE_FS_ENV:Tn}=Te(),j;try{let e=Re();e&&(j=e.ensureDate)}catch{}j||(j=xt().ensureDate);var It=typeof process<"u"&&process.env?process.env:{},Lt=It.VSCODE_WEB==="true"||Pt(),T=null;if(!Lt)try{T=require("fs").promises}catch{T=null}var pe=class{constructor(){this.isWeb=Lt||Pt()}o(t){try{return Cn({uri:this.e(t),isWeb:this.isWeb,remoteName:S.env?.remoteName,forceWorkspaceFs:It[Tn]==="1"}).filesystem==="workspace.fs"}catch{return!1}}r(t){if(!t)return"";if(typeof t=="string")return t;if(t&&typeof t=="object"&&typeof t.fsPath=="string")return t.fsPath;if(t&&typeof t=="object"&&typeof t.path=="string")return t.path;if(typeof t=="object"){if(typeof t.fsPath=="string")return t.fsPath;if(typeof t.path=="string")return t.path}return String(t)}e(t){if(t&&typeof t=="object"&&typeof t.scheme=="string"&&typeof t.path=="string")return t;if(typeof t=="string"){let r=t.trim(),n=/^[a-zA-Z]:[\\/]/.test(r);if(/^[a-zA-Z][a-zA-Z0-9+.-]*:/.test(r)&&!n){let i=S.Uri.parse(r);if(i.scheme&&i.scheme!=="file")return i}return S.Uri.file(t)}if(t&&typeof t=="object"){if(t.uri&&t.uri!==t)try{return this.e(t.uri)}catch{}if(this.isWeb&&typeof t.scheme=="string"&&typeof t.path=="string")return S.Uri.from({scheme:t.scheme,authority:t.authority||"",path:t.path||"",query:t.query||"",fragment:t.fragment||""});if(typeof t.fsPath=="string"&&t.fsPath.length>0)return S.Uri.file(t.fsPath);if(typeof t.path=="string"&&t.path.length>0)return this.isWeb&&typeof t.scheme=="string"&&t.scheme!=="file"?S.Uri.from({scheme:t.scheme,authority:t.authority||"",path:t.path,query:t.query||"",fragment:t.fragment||""}):S.Uri.file(t.path);if(typeof t.href=="string"&&t.href.length>0)return S.Uri.parse(t.href);if(typeof t.scheme=="string")return S.Uri.from({scheme:t.scheme,authority:t.authority||"",path:t.path||t.fsPath||"",query:t.query||"",fragment:t.fragment||""});if(typeof t.toString=="function")try{let r=t.toString(!0);if(r&&r!=="[object Object]")return S.Uri.parse(r)}catch{let r=t.toString();if(r&&r!=="[object Object]")return S.Uri.parse(r)}}throw new Error(`Unsupported target type: ${typeof t}`)}async stat(t){let r=this.o(t);if(!this.isWeb&&T&&!r)return T.stat(this.r(t));let n=this.e(t),o=await S.workspace.fs.stat(n),i=kn(o);return{...i,mtime:i.mtimeMs===null?j(o.mtime):new Date(i.mtimeMs),ctime:i.ctimeMs===null?j(o.ctime):new Date(i.ctimeMs),birthtime:i.ctimeMs===null?j(o.ctime):new Date(i.ctimeMs),isFile:()=>o.type===S.FileType.File,isDirectory:()=>o.type===S.FileType.Directory}}async readFile(t,r="utf8"){let n=this.o(t);if(!this.isWeb&&T&&!n)return T.readFile(this.r(t),r);let o=this.e(t),i=await S.workspace.fs.readFile(o);return r===null||r==="binary"?i:new TextDecoder(r).decode(i)}async writeFile(t,r,n="utf8"){let o=this.r(t);try{let i=this.o(t);if(!this.isWeb&&T&&!i)return T.writeFile(o,r,n);let a=this.e(t),l=typeof r=="string"?new TextEncoder().encode(r):r;await S.workspace.fs.writeFile(a,l)}catch(i){this.D("write file",o,i)}}async mkdir(t,r={recursive:!0}){let n=this.r(t);try{let o=this.o(t);if(!this.isWeb&&T&&!o)return T.mkdir(n,r);let i=this.e(t);await S.workspace.fs.createDirectory(i)}catch(o){this.D("create directory",n,o)}}async readdir(t,r={withFileTypes:!1}){let n=this.o(t);if(!this.isWeb&&T&&!n)return T.readdir(this.r(t),r);let o=this.e(t),i=await S.workspace.fs.readDirectory(o);return r.withFileTypes?i.map(([a,l])=>({name:a,isDirectory:()=>l===S.FileType.Directory,isFile:()=>l===S.FileType.File})):i.map(([a])=>a)}async delete(t,r={recursive:!1}){let n=this.o(t);if(!this.isWeb&&T&&!n){let i=this.r(t);return r.recursive?T.rm?T.rm(i,r):T.rmdir(i,r):T.unlink(i)}let o=this.e(t);await S.workspace.fs.delete(o,r)}async exists(t){try{return await this.stat(t),!0}catch{return!1}}async ensureDirectory(t){let r=En(this.r(t));await this.mkdir(r,{recursive:!0})}D(t,r,n){throw Sn(n)?new Dn(vn.FILE_PERMISSION_DENIED,`Permission denied while attempting to ${t}`,{path:r,code:n.code}):n}},wn=new pe;Nt.exports={FileSystemAdapter:pe,fileSystem:wn}});var Ut=E((uo,Mt)=>{var{MAX_BADGE_LENGTH:Wt}=J();function An(e=0,t="auto"){let r=typeof e=="number"&&!Number.isNaN(e)?e:0;if(t==="bytes")return`~${r}B`;let n=r/1024;if(t==="kb")return`~${n.toFixed(1)}K`;let o=n/1024;return t==="mb"?`~${o.toFixed(1)}M`:r<1024?`~${r}B`:n<1024?`~${Math.round(n)}K`:`~${o.toFixed(1)}M`}function Fn(e){if(e)return e.length>Wt?e.substring(0,Wt):e}Mt.exports={formatFileSize:An,trimBadge:Fn}});var qt=E((exports,module)=>{var{getLogger}=te(),env=typeof process<"u"&&process.env?process.env:{};function createFallbackVscodeMinimal(){return{workspace:{workspaceFolders:[],getConfiguration:()=>({get:()=>{},async update(){},inspect:()=>({defaultValue:void 0,globalValue:void 0,workspaceValue:void 0,workspaceFolderValue:void 0})})},ConfigurationTarget:{Global:1,Workspace:2,WorkspaceFolder:3}}}function resolveVscodeMinimal(){try{return require("vscode")}catch{return createFallbackVscodeMinimal()}}var MinimalSettingsCoordinator=class{constructor(t={}){this.F=t.defaultSection||"explorerDates",this.m=new Map,this.v=new Map,this.le=Number(env.EXPLORER_DATES_LOCK_WAIT_WARN_MS||1e3),this._logger=getLogger()}_(t,r){let o=(this.m.get(t)||Promise.resolve()).then(()=>r()),i=o.catch(()=>{});return this.m.set(t,i),o.finally(()=>{this.m.get(t)===i&&this.m.delete(t)}),o}y(t,r){return resolveVscodeMinimal().workspace.getConfiguration(t||void 0,r)}c(t,r){let n=r||this.F;return n?t.startsWith(`${n}.`)?{section:n,key:t.slice(n.length+1),fullKey:t}:t.includes(".")?{section:void 0,key:t,fullKey:t}:{section:n,key:t,fullKey:`${n}.${t}`}:{section:void 0,key:t,fullKey:t}}async updateSetting(t,r,n={}){return this._(this.c(t,n.section).fullKey,async()=>{let o=this.c(t,n.section),i=this.y(o.section,n.resource);try{let a=this.R(n.scope,n.resource);return await i.update(o.key,r,a),{key:o.fullKey,updated:!0}}catch(a){try{this._logger.warn(`Configuration update failed for ${o.fullKey}: ${a&&a.message}`)}catch{}return{key:o.fullKey,updated:!1,error:a}}})}async applySettings(t,r={}){let n=Array.isArray(t)?t:Object.entries(t).map(([a,l])=>({key:a,value:l})),o=[];for(let a of n)try{o.push(await this.updateSetting(a.key,a.value,r))}catch(l){o.push({key:this.c(a.key,r.section).fullKey,updated:!1,error:l})}let i=o.filter(a=>a&&a.error);if(i.length>0){let a=i.map(u=>`${u.key}: ${u.error&&u.error.message?u.error.message:String(u.error)}`),l=new Error(`Failed to apply ${i.length} setting(s): ${a.join("; ")}`);throw l.details=i,l}return o}R(t,r){return t&&t!=="auto"?this.x(t)||resolveVscodeMinimal().ConfigurationTarget.Workspace:r?resolveVscodeMinimal().ConfigurationTarget.WorkspaceFolder:resolveVscodeMinimal().workspace.workspaceFolders&&resolveVscodeMinimal().workspace.workspaceFolders.length>0?resolveVscodeMinimal().ConfigurationTarget.Workspace:resolveVscodeMinimal().ConfigurationTarget.Global}x(t){switch(t){case"user":return resolveVscodeMinimal().ConfigurationTarget.Global;case"workspace":return resolveVscodeMinimal().ConfigurationTarget.Workspace;case"workspaceFolder":return resolveVscodeMinimal().ConfigurationTarget.WorkspaceFolder;default:return}}getValue(t,r={}){let{section:n,resource:o}=r||{},i=this.c(t,n);return this.y(i.section,o).get(i.key)}inspect(t,r={}){let{section:n,resource:o}=r||{},i=this.c(t,n);return this.y(i.section,o).inspect(i.key)}async clearSetting(t,r={}){return this.updateSetting(t,void 0,r)}getLockWaitStats(){let t={};for(let[r,n]of this.v.entries())t[r]={...n};return t}resetLockWaitStats(){this.v.clear()}},cachedCoordinator=null;function getSettingsCoordinator(options){if(!cachedCoordinator||options&&options.forceNew){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=null;try{e=dynamicRequire("../chunks/settings-coordinator-impl-chunk")}catch{}try{e||(e=dynamicRequire("../chunks/settingsCoordinator-impl-chunk"))}catch{}if(e&&typeof e.createSettingsCoordinatorImpl=="function")return cachedCoordinator=e.createSettingsCoordinatorImpl(options),cachedCoordinator}}catch{}try{let{WEB_CHUNK_GLOBAL_KEY:e,LEGACY_WEB_CHUNK_GLOBAL_KEY:t}=J(),r=typeof globalThis<"u"&&(globalThis[e]||globalThis[t])||null;if(r&&r.settingsCoordinatorImpl&&typeof r.settingsCoordinatorImpl.createSettingsCoordinatorImpl=="function")return cachedCoordinator=r.settingsCoordinatorImpl.createSettingsCoordinatorImpl(options),cachedCoordinator}catch{}cachedCoordinator=new MinimalSettingsCoordinator(options)}return cachedCoordinator}module.exports={getSettingsCoordinator,MinimalSettingsCoordinator}});var $t=E((fo,zt)=>{var{normalizePath:Le,getUriPath:_n}=ce(),{getLogger:Rn}=te(),re=typeof process<"u"&&process.env?process.env:{},xn=Rn(),ne=240,Ne=255,Ht=/[\x00-\x1f\x7f<>:"|?*]/g,Pn=/[\x00-\x1f\x7f<>:"|?*]/,In=[/\.\./,/\.\.[\\/]/,/[\\/]\.\./,/^\.\.$/,/^\.\.[\\/]/,/[\\/]\.\.$/],Kt=new Set(["CON","PRN","AUX","NUL","COM1","COM2","COM3","COM4","COM5","COM6","COM7","COM8","COM9","LPT1","LPT2","LPT3","LPT4","LPT5","LPT6","LPT7","LPT8","LPT9"]),Bt=new Set([".exe",".scr",".bat",".cmd",".pif",".vbs",".js",".jar",".com",".msi",".dll",".dmg",".pkg",".deb",".rpm"]),Ln=new Set([".js",".jsx",".ts",".tsx",".mjs",".cjs",".py",".rb",".rs",".go",".php",".java",".kt",".swift",".cs",".c",".cpp",".h",".hpp",".html",".css",".scss",".less",".json",".jsonc",".md",".mdx",".txt",".sh",".bash",".yml",".yaml"]),Nn=()=>re.EXPLORER_DATES_TEST_MODE==="1"||re.NODE_ENV==="test"||re.VSCODE_TEST==="1"?"test":re.EXPLORER_DATES_DEV_MODE==="1"||re.NODE_ENV==="development"?"development":"production",G=class{static hasPathTraversal(t){let r=this.i(t);if(!r||typeof r!="string")return!1;let n=Le(r);return In.some(o=>o.test(n))}static hasDangerousChars(t){let r=this.i(t);return!r||typeof r!="string"?!1:Pn.test(r)}static isWindowsReservedName(t){if(!t||typeof t!="string")return!1;let r=t.split(".")[0].toUpperCase();return Kt.has(r)}static isSuspiciousExtension(t,r={}){let{workspaceContext:n=!0}=r;if(!t||typeof t!="string")return!1;let o=t.toLowerCase(),i=o.startsWith(".")?o:`.${o}`;return n&&Ln.has(i)?!1:Bt.has(i)}static isPathTooLong(t){let r=this.i(t);return!r||typeof r!="string"?!1:r.length>ne}static isFilenameTooLong(t){return!t||typeof t!="string"?!1:t.length>Ne}static validatePath(t,r={}){let{allowSuspiciousExtensions:n=!1,allowWindowsReservedNames:o=!1,strictLength:i=!0,workspaceContext:a=!0}=r,l=this.i(t),u=[],s=[];if(!l||typeof l!="string")return{isValid:!1,path:l,issues:["Invalid or empty path"],warnings:[],isSafe:!1};this.hasPathTraversal(l)&&u.push("Path contains directory traversal attempts"),this.hasDangerousChars(l)&&u.push("Path contains dangerous characters"),i&&this.isPathTooLong(l)&&u.push(`Path exceeds maximum length (${ne})`);let c=l.split(/[/\\]/).pop()||"";i&&this.isFilenameTooLong(c)&&u.push(`Filename exceeds maximum length (${Ne})`),!o&&this.isWindowsReservedName(c)&&s.push("Filename is a Windows reserved name");let d=c.includes(".")?c.split(".").pop():"";return!n&&this.isSuspiciousExtension(d,{workspaceContext:a})&&s.push("File extension is potentially suspicious"),{isValid:u.length===0,path:l,filename:c,extension:d,issues:u,warnings:s,isSafe:u.length===0&&s.length===0}}static sanitizePath(t,r={}){let{replacementChar:n="_",preserveExtension:o=!0}=r,i=this.i(t);if(!i||typeof i!="string")return"";i=i.replace(/\x00/g,"");let a=i.startsWith("/"),l=Le(i).split("/").filter(Boolean),u=[];for(let s of l){if(s===".."){u.length>0&&u.pop();continue}s!=="."&&u.push(s)}if(i=(a?"/":"")+u.join("/"),i=i.replace(Ht,n),o){let s=i.split("/"),c=s[s.length-1];if(c&&this.isWindowsReservedName(c)){let d=c.split(".");d[0]=d[0]+"_safe",s[s.length-1]=d.join("."),i=s.join("/")}}return i.length>ne&&(i=i.substring(0,ne),xn.warn("Path truncated due to length:",i)),i}static isWithinBoundaries(t,r=[]){let n=this.i(t);if(!n||!Array.isArray(r)||r.length===0)return!1;let o=n.split("/").filter(Boolean),i=[];for(let l of o)l===".."?i.length>0&&i.pop():l!=="."&&i.push(l);let a="/"+i.join("/");return r.some(l=>{let u=Le(l);return a.startsWith(u)})}static validateRegexPattern(t){if(!t||typeof t!="string")return{isValid:!1,issue:"Invalid pattern"};let r=[/\([^)]*\+[^)]*\)\+/,/\([^)]*\*[^)]*\)\*/,/\([^)]*\+[^)]*\)\*/,/\([^)]*\*[^)]*\)\+/,/\+.*\*|{\d+,}.*\*/,/\([^|]*\|[^)]*\)\*/];for(let n of r)if(n.test(t))return{isValid:!1,issue:"Pattern may cause catastrophic backtracking (ReDoS)"};try{return new RegExp(t),{isValid:!0}}catch(n){return{isValid:!1,issue:`Invalid regex syntax: ${n.message}`}}}static i(t){if(!t)return"";if(typeof t=="string")return t;try{return _n(t)}catch{return String(t)}}},Oe=class{static validateFileUri(t,r=[]){if(!t||typeof t!="object")return{isValid:!1,issue:"Invalid URI object"};if(t.scheme!=="file"&&t.scheme!=="vscode-vfs")return{isValid:!1,issue:`Unsupported URI scheme: ${t.scheme}`};let n=G.validatePath(t);return n.isValid?r.length>0&&!G.isWithinBoundaries(t,r)?{isValid:!1,issue:"Path is outside allowed workspace boundaries"}:{isValid:!0,warnings:n.warnings}:{isValid:!1,issue:`Path validation failed: ${n.issues.join(", ")}`}}static validateExclusionPatterns(t){if(!Array.isArray(t))return{isValid:!1,issue:"Patterns must be an array"};let r=[],n=[];for(let o of t){if(typeof o!="string"){n.push(`Invalid pattern type: ${typeof o}`);continue}let i=o.replace(/\./g,"\\.").replace(/\*/g,".*").replace(/\?/g,"."),a=G.validateRegexPattern(i);r.push({pattern:o,isValid:a.isValid,issue:a.issue}),a.isValid||n.push(`Pattern "${o}": ${a.issue}`)}return{isValid:n.length===0,results:r,issues:n}}};zt.exports={SecurityValidator:G,SecureFileOperations:Oe,detectSecurityEnvironment:Nn,MAX_SAFE_PATH_LENGTH:ne,MAX_SAFE_FILENAME_LENGTH:Ne,DANGEROUS_PATH_CHARS:Ht,WINDOWS_RESERVED_NAMES:Array.from(Kt),SUSPICIOUS_EXTENSIONS:Array.from(Bt)}});var Vt=E((exports,module)=>{var CHUNK_SIZES={onboarding:34,analysisCommands:23,exportReporting:17,extensionApi:15,workspaceTemplates:14,advancedCache:28,workspaceIntelligence:31,incrementalWorkers:19},BASE_BUNDLE_SIZE=99;function _getPresetDefinitionsSync(){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=dynamicRequire("./chunks/preset-definitions-chunk");if(e&&e.PRESET_DEFINITIONS)return e.PRESET_DEFINITIONS}}catch{}let FALLBACK_PRESET={minimal:{id:"minimal",name:"Minimal",description:"Lean setup that prioritizes responsiveness in large repos.",targetScenarios:["Large repos","Low resources","Minimal UI"],settings:{"explorerDates.performanceMode":!0,"explorerDates.showDateDecorations":!0}},balanced:{id:"balanced",name:"Balanced",description:"Default feature mix for most workspaces.",targetScenarios:["General development","Mixed workloads"],settings:{"explorerDates.enableOnboardingSystem":!0,"explorerDates.enableAnalysisCommands":!0,"explorerDates.performanceMode":!1,"explorerDates.dateDecorationFormat":"smart","explorerDates.colorScheme":"recency","explorerDates.badgePriority":"time"}},"web-development":{id:"web-development",name:"Web Development",description:"Optimized for frontend and full-stack web projects.",targetScenarios:["Web apps","Frontend teams"],settings:{"explorerDates.enableOnboardingSystem":!0,"explorerDates.dateDecorationFormat":"smart","explorerDates.colorScheme":"file-type","explorerDates.badgePriority":"time"}},enterprise:{id:"enterprise",name:"Enterprise",description:"Full feature set with reporting and integrations enabled.",targetScenarios:["Large teams","Governed environments"],settings:{"explorerDates.enableExportReporting":!0,"explorerDates.enableExtensionApi":!0,"explorerDates.dateDecorationFormat":"smart","explorerDates.colorScheme":"recency","explorerDates.badgePriority":"time"}},"data-science":{id:"data-science",name:"Data Science",description:"Insight-focused profile for data-heavy projects.",targetScenarios:["Data analysis","Research workflows"],settings:{"explorerDates.enableWorkspaceIntelligence":!0,"explorerDates.dateDecorationFormat":"iso-detailed","explorerDates.colorScheme":"recency","explorerDates.badgePriority":"time"}}};return FALLBACK_PRESET}var PRESET_DEFINITIONS=_getPresetDefinitionsSync(),RESTART_REQUIRED_SETTINGS=new Set(["enableOnboardingSystem","enableAnalysisCommands","enableExportReporting","enableExtensionApi","enableWorkspaceTemplates","enableAdvancedCache","enableWorkspaceIntelligence","enableIncrementalWorkers","performanceMode","smartFileWatching"]);function calculateBundleSize(e){let t=BASE_BUNDLE_SIZE;return e["explorerDates.enableOnboardingSystem"]&&(t+=CHUNK_SIZES.onboarding),e["explorerDates.enableAnalysisCommands"]&&(t+=CHUNK_SIZES.analysisCommands),e["explorerDates.enableExportReporting"]&&(t+=CHUNK_SIZES.exportReporting),e["explorerDates.enableExtensionApi"]&&(t+=CHUNK_SIZES.extensionApi),e["explorerDates.enableWorkspaceTemplates"]&&(t+=CHUNK_SIZES.workspaceTemplates),e["explorerDates.enableAdvancedCache"]&&(t+=CHUNK_SIZES.advancedCache),e["explorerDates.enableWorkspaceIntelligence"]&&(t+=CHUNK_SIZES.workspaceIntelligence),e["explorerDates.enableIncrementalWorkers"]&&(t+=CHUNK_SIZES.incrementalWorkers),t}function getDefaultPresetForProfile(e){let t=PRESET_DEFINITIONS;switch(e){case"minimal":case"extreme":return t.minimal||t.minimal;case"balanced":return t.balanced||t.balanced;case"web-development":return t["web-development"]||t["web-development"];case"data-science":return t["data-science"]||t["data-science"];case"enterprise":return t.enterprise||t.enterprise;default:return t.balanced||t.balanced}}module.exports={PRESET_DEFINITIONS,CHUNK_SIZES,BASE_BUNDLE_SIZE,RESTART_REQUIRED_SETTINGS,calculateBundleSize,getDefaultPresetForProfile}});var Gt=E((po,jt)=>{var me={onboarding:"src/chunks/onboarding-chunk",onboardingAssets:"src/chunks/onboarding-assets-chunk",reporting:"src/chunks/reporting-chunk",templates:"src/chunks/templates-chunk",analysis:"src/chunks/analysis-chunk",diagnostics:"src/chunks/diagnostics-chunk",extensionApi:"src/chunks/extension-api-chunk",advancedCache:"src/chunks/advancedCache-chunk",batchProcessor:"src/chunks/batchProcessor-chunk",decorationsAdvanced:"src/chunks/decorations-advanced",decorationsStatic:"src/chunks/decorations-static",workspaceIntelligence:"src/chunks/workspaceIntelligence",decorationLogic:"src/chunks/decoration-logic-chunk",decorationProvide:"src/chunks/decoration-provide-chunk",decorationHelpers:"src/chunks/decoration-helpers-chunk",decorationBatch:"src/chunks/decoration-batch-chunk",decorationWorkspaceIntel:"src/chunks/decoration-workspace-intel-chunk",decorationTelemetry:"src/chunks/decoration-telemetry-chunk",decorationRefresh:"src/chunks/decoration-refresh-chunk",decorationMemory:"src/chunks/decoration-memory-chunk",decorationPool:"src/chunks/decoration-pool-chunk",providerInit:"src/chunks/provider-init-chunk",fileDateProviderImpl:"src/chunks/file-date-provider-impl",fileDateProviderImplExport:"src/chunks/file-date-provider-impl-export",utilsShared:"src/chunks/utils-shared-chunk",incrementalWorkers:"src/chunks/incrementalWorkers",incrementalIndexer:"src/chunks/incrementalIndexer-chunk",uiAdapters:"src/chunks/ui-adapters",gitInsights:"src/chunks/gitInsights-chunk",smartWatcherFallback:"src/chunks/smartWatcherFallback-chunk",runtimeManagement:"src/chunks/runtime-management",runtimeManagementHeavy:"src/chunks/runtime-management-heavy",teamPersistence:"src/chunks/team-persistence-chunk",teamPersistenceUI:"src/chunks/team-persistence-ui-chunk",teamPersistenceLogic:"src/chunks/team-persistence-logic-chunk",settingsCoordinatorImpl:"src/chunks/settings-coordinator-impl-chunk",logger:"src/chunks/logger-chunk",loggerImpl:"src/chunks/logger-impl-chunk"};function On(e){return me[e]||null}function Wn(){return Object.keys(me)}function Mn(e){let t={};for(let[r,n]of Object.entries(me))t[r]=()=>e(`./${n}`);return t}var Un=new Set(["gitInsights","reporting","templates","advancedCache","runtimeManagementHeavy","incrementalWorkers"]);jt.exports={CHUNK_MAP:me,WEB_EXCLUDED_CHUNKS:Un,getChunkSourcePath:On,getAllChunkNames:Wn,generateDevLoaderMap:Mn}});var Xt=E((exports,module)=>{var FEATURE_FLAGS_GLOBAL_KEY="__explorerDatesFeatureFlags";function registerFeatureFlagsGlobal(e){if(e)try{typeof globalThis<"u"&&(globalThis[FEATURE_FLAGS_GLOBAL_KEY]=e)}catch{}}function loadFeatureFlagsFallback(){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function")return dynamicRequire("../featureFlags")}catch{}return null}function getFeatureFlagsGlobal(){try{if(typeof globalThis<"u"&&globalThis[FEATURE_FLAGS_GLOBAL_KEY])return globalThis[FEATURE_FLAGS_GLOBAL_KEY]}catch{}return loadFeatureFlagsFallback()}module.exports={FEATURE_FLAGS_GLOBAL_KEY,registerFeatureFlagsGlobal,getFeatureFlagsGlobal}});var We=E((exports,module)=>{var getLogger=()=>{try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=dynamicRequire("./chunks/logger-chunk");if(e&&typeof e.getLogger=="function")return getLogger=e.getLogger,getLogger()}}catch{}try{return getLogger=te().getLogger,getLogger()}catch{return getLogger=()=>({debug:(()=>{})?.bind(console)||console.log,info:(()=>{}).bind(console),warn:(()=>{}).bind(console),error:(()=>{}).bind(console)}),getLogger()}},{CHUNK_SIZES}=Vt(),{getChunkSourcePath,getAllChunkNames}=Gt(),{registerFeatureFlagsGlobal}=Xt(),{isWebEnvironment}=Z(),featureLogger=null,env=typeof process<"u"&&process.env?process.env:{},DEFAULT_CHUNK_TIMEOUT_MS=Number(env.EXPLORER_DATES_CHUNK_TIMEOUT||(env.NODE_ENV==="test"?1e3:5e3)),NETWORK_ERROR_CODES=new Set(["ENOTFOUND","ECONNRESET","ECONNREFUSED","EAI_AGAIN","ETIMEDOUT","EHOSTUNREACH"]),BUILT_CHUNK_CACHE=new Map,CHUNK_METHOD_ALIASES={reporting:"exportReporting",templates:"workspaceTemplates",analysis:"analysisCommands"},DEV_CHUNK_PATH_CACHE=new Map,LAST_FEATURE_FAILURES=new Map;function getDevChunkImportPath(e){if(DEV_CHUNK_PATH_CACHE.has(e))return DEV_CHUNK_PATH_CACHE.get(e);let t=getChunkSourcePath(e);if(!t)return DEV_CHUNK_PATH_CACHE.set(e,null),null;let r=t;return r.startsWith("src/")&&(r=r.slice(4)),r.startsWith("./")||(r=`./${r}`),DEV_CHUNK_PATH_CACHE.set(e,r),r}function resolveNodeDependencies(){if(nativeDepsResolved)return!!(nativePath&&nativeFs);if(nativeDepsResolved=!0,!isNodeLikeRuntime())return!1;try{nativePath=eval("require")("path"),nativeFs=eval("require")("fs")}catch{nativePath=null,nativeFs=null}return!!(nativePath&&nativeFs)}var nativeDepsResolved=!1,nativePath=null,nativeFs=null;function isWebRuntime(){try{return isWebEnvironment()?!0:typeof process<"u"&&process?.env?.VSCODE_WEB==="true"}catch{return!1}}function isNodeLikeRuntime(){return typeof process<"u"&&!!process.versions?.node&&!isWebRuntime()}function getChunkTimeoutMs(){return DEFAULT_CHUNK_TIMEOUT_MS>0?DEFAULT_CHUNK_TIMEOUT_MS:0}function logFeature(e,t,r){featureLogger||(featureLogger=getLogger());let n=featureLogger;typeof n[e]=="function"?n[e](t,r):n.info(t,r)}function logFeatureDisabled(e,t){logFeature("info","Feature disabled via configuration",{feature:e,savedKB:t&&CHUNK_SIZES[t]!==void 0?CHUNK_SIZES[t]:void 0})}function isLikelyNetworkIssue(e){if(!e)return!1;if(e.code&&NETWORK_ERROR_CODES.has(e.code))return!0;let t=(e.message||"").toLowerCase();return t.includes("network")||t.includes("fetch")||t.includes("timed out")}function runWithChunkTimeout(e,t){let r=getChunkTimeoutMs(),n=()=>{try{return Promise.resolve(e())}catch(o){return Promise.reject(o)}};return r?new Promise((o,i)=>{let a=!1,l=setTimeout(()=>{if(a)return;a=!0;let u=new Error(`Chunk "${t}" load timed out after ${r}ms`);u.code="CHUNK_TIMEOUT",i(u)},r);n().then(u=>{a||(a=!0,clearTimeout(l),o(u))}).catch(u=>{a||(a=!0,clearTimeout(l),i(u))})}):n()}function logResolverFailure(e,t){if(!t)return;let r={chunkName:e,error:t.message,code:t.code,networkIssue:isLikelyNetworkIssue(t),timedOut:t.code==="CHUNK_TIMEOUT"},n=r.networkIssue||r.timedOut?"warn":"error";logFeature(n,"Chunk resolver failed",r)}function tryLoadBuiltChunk(e){if(!e||!resolveNodeDependencies()||typeof nativeFs?.existsSync!="function")return null;if(BUILT_CHUNK_CACHE.has(e))return BUILT_CHUNK_CACHE.get(e);let t=[];typeof __dirname=="string"&&nativePath&&(t.push(nativePath.join(__dirname,"chunks",`${e}.js`)),t.push(nativePath.join(__dirname,"..","dist","chunks",`${e}.js`)));for(let r of t)try{if(!r||!nativeFs.existsSync(r))continue;let n=require(r),o=n?.default||n;return BUILT_CHUNK_CACHE.set(e,o||null),o&&logFeature("info","Loaded chunk via built artifact fallback",{chunkName:e,path:r}),o}catch(n){logFeature("warn","Built chunk fallback failed",{chunkName:e,path:r,error:n.message})}return BUILT_CHUNK_CACHE.set(e,null),null}function tryRequireDevChunk(e){if(isWebRuntime())return null;let t=getDevChunkImportPath(e);if(!t)return null;try{let r=require(t);return r?.default||r}catch(r){(r.code!=="MODULE_NOT_FOUND"||typeof r.message=="string"&&!r.message.includes(t))&&logFeature("debug","Dev chunk require failed",{chunkName:e,importPath:t,error:r.message})}return null}function tryRequireLocalBuiltChunk(e){if(isWebRuntime())return null;let t=`./chunks/${e}`;try{let r=require(t);return r?.default||r}catch(r){r.code==="MODULE_NOT_FOUND"||logFeature("debug","Local chunk require failed",{chunkName:e,importPath:t,error:r.message})}return null}function getSavingsKey(e){return e in CHUNK_SIZES?e:CHUNK_METHOD_ALIASES[e]||null}function announceChunkSavings(e){let t=getSavingsKey(e);if(!t)return;let r=CHUNK_SIZES[t];if(!r)return;let o=`\u{1F4BE} ${t===e||!e?t:`${t} (requested as "${e}")`} chunk unavailable - keeping the feature disabled is saving ~${r}KB`;logFeature("info","Chunk savings applied",{chunkName:t,requestedName:e,savedKB:r})}var getFeatureConfig=()=>{try{let t=require("vscode").workspace.getConfiguration("explorerDates"),r=isWebRuntime(),n=o=>r?!1:o;return{enableOnboarding:t.get("enableOnboardingSystem",!0),enableExportReporting:n(t.get("enableExportReporting",!0)),enableWorkspaceTemplates:n(t.get("enableWorkspaceTemplates",!0)),enableAnalysisCommands:t.get("enableAnalysisCommands",!0),enableAdvancedCache:n(t.get("enableAdvancedCache",!0)),enableWorkspaceIntelligence:n(t.get("enableWorkspaceIntelligence",!0)),enableIncrementalWorkers:n(t.get("enableIncrementalWorkers",!1)),enableGitInsights:n(t.get("enableGitInsights",!0)),enableExtensionApi:t.get("enableExtensionApi",!0)}}catch{let e=isWebRuntime(),t=r=>e?!1:r;return{enableOnboarding:!0,enableExportReporting:t(!0),enableWorkspaceTemplates:t(!0),enableAnalysisCommands:!0,enableAdvancedCache:t(!0),enableWorkspaceIntelligence:t(!0),enableIncrementalWorkers:t(!1),enableGitInsights:t(!0),enableExtensionApi:!0}}},featureLoaders=new Map,chunkResolver=null;function setFeatureChunkResolver(e){if(e&&typeof e!="function")throw new Error("Feature chunk resolver must be a function");chunkResolver=e||null}function registerFeatureLoader(e,t){if(typeof t!="function")throw new Error(`Feature loader for "${e}" must be a function`);featureLoaders.set(e,t)}function unregisterFeatureLoader(e){featureLoaders.delete(e)}function clearFeatureLoaders(){featureLoaders.clear()}async function loadFeatureModule(e){LAST_FEATURE_FAILURES.delete(e);let t=featureLoaders.get(e);if(!t&&chunkResolver&&(t=()=>chunkResolver(e)),!t)return logFeature("warn","No loader registered for feature",{feature:e}),null;try{return await runWithChunkTimeout(()=>t(),e)}catch(r){return LAST_FEATURE_FAILURES.set(e,r),logFeature("warn","Feature loader failed",{feature:e,error:r.message,code:r.code,networkIssue:isLikelyNetworkIssue(r)}),announceChunkSavings(e),null}}function getFeatureLoadFailure(e){return LAST_FEATURE_FAILURES.get(e)}function registerDefaultLoaders(){getAllChunkNames().forEach(t=>{featureLoaders.has(t)||registerFeatureLoader(t,createDefaultLoader(t))})}function createDefaultLoader(e){return async()=>{if(chunkResolver&&typeof chunkResolver=="function")try{let o=await runWithChunkTimeout(()=>chunkResolver(e),e);if(o)return o;logFeature("info","Chunk resolver returned no module",{chunkName:e})}catch(o){logResolverFailure(e,o)}let t=tryRequireDevChunk(e);if(t)return t;let r=tryRequireLocalBuiltChunk(e);if(r)return r;let n=tryLoadBuiltChunk(e);return n||(logFeature("warn","No built artifact available for chunk",{chunkName:e}),null)}}var featureFlags={async onboarding(){return getFeatureConfig().enableOnboarding?loadFeatureModule("onboarding"):(logFeatureDisabled("onboarding","onboarding"),null)},async exportReporting(){return getFeatureConfig().enableExportReporting?loadFeatureModule("reporting"):(logFeatureDisabled("exportReporting","exportReporting"),null)},async workspaceTemplates(){return getFeatureConfig().enableWorkspaceTemplates?loadFeatureModule("templates"):(logFeatureDisabled("workspaceTemplates","workspaceTemplates"),null)},async analysisCommands(){return getFeatureConfig().enableAnalysisCommands?loadFeatureModule("analysis"):(logFeatureDisabled("analysisCommands","analysisCommands"),null)},async advancedCache(){return getFeatureConfig().enableAdvancedCache?loadFeatureModule("advancedCache"):(logFeatureDisabled("advancedCache","advancedCache"),null)},async workspaceIntelligence(){return getFeatureConfig().enableWorkspaceIntelligence?loadFeatureModule("workspaceIntelligence"):(logFeatureDisabled("workspaceIntelligence","workspaceIntelligence"),null)},async incrementalWorkers(){return getFeatureConfig().enableIncrementalWorkers?loadFeatureModule("incrementalWorkers"):(logFeatureDisabled("incrementalWorkers","incrementalWorkers"),null)},async extensionApi(){return getFeatureConfig().enableExtensionApi?loadFeatureModule("extensionApi"):(logFeatureDisabled("extensionApi","extensionApi"),null)},async uiAdapters(){return loadFeatureModule("uiAdapters")},async batchProcessor(){return loadFeatureModule("batchProcessor")},async decorationsAdvanced(){return loadFeatureModule("decorationsAdvanced")},async decorationsProviderImpl(){return loadFeatureModule("decorationsProviderImpl")},async gitInsights(){return getFeatureConfig().enableGitInsights?loadFeatureModule("gitInsights"):(logFeatureDisabled("gitInsights","gitInsights"),null)},isEnabled(e){let t=getFeatureConfig();return{onboarding:t.enableOnboarding,exportReporting:t.enableExportReporting,workspaceTemplates:t.enableWorkspaceTemplates,analysisCommands:t.enableAnalysisCommands,advancedCache:t.enableAdvancedCache,workspaceIntelligence:t.enableWorkspaceIntelligence,incrementalWorkers:t.enableIncrementalWorkers,extensionApi:t.enableExtensionApi}[e]??!0},getEnabledFeatures(){let e=getFeatureConfig(),t=[];return e.enableOnboarding&&t.push("onboarding"),e.enableExportReporting&&t.push("exportReporting"),e.enableWorkspaceTemplates&&t.push("workspaceTemplates"),e.enableAnalysisCommands&&t.push("analysisCommands"),e.enableAdvancedCache&&t.push("advancedCache"),e.enableWorkspaceIntelligence&&t.push("workspaceIntelligence"),e.enableIncrementalWorkers&&t.push("incrementalWorkers"),e.enableExtensionApi&&t.push("extensionApi"),t},calculateSavings(){let e=getFeatureConfig(),t=0;return e.enableOnboarding||(t+=34),e.enableExportReporting||(t+=17),e.enableExtensionApi||(t+=15),e.enableWorkspaceTemplates||(t+=14),e.enableWorkspaceIntelligence||(t+=12),e.enableAnalysisCommands||(t+=8),e.enableAdvancedCache||(t+=5),t}};for(let[e,t]of Object.entries(CHUNK_METHOD_ALIASES))!featureFlags[e]&&typeof featureFlags[t]=="function"&&(featureFlags[e]=(...r)=>featureFlags[t](...r));function calculateSavings(e){e||(e=getFeatureConfig());let t=267,r=0;e.enableOnboarding||(r+=34),e.enableExportReporting||(r+=17),e.enableExtensionApi||(r+=15),e.enableWorkspaceTemplates||(r+=14),e.enableWorkspaceIntelligence||(r+=12),e.enableIncrementalWorkers||(r+=19),e.enableAnalysisCommands||(r+=8),e.enableAdvancedCache||(r+=5);let n=t-r,o=r>0?Math.round(r/t*100):0;return{baseSize:`${t}KB`,totalSavings:`${r}KB`,optimizedSize:`${n}KB`,percentage:o}}registerDefaultLoaders();var exportedFeatureFlags={...featureFlags,getFeatureConfig,calculateSavings,registerFeatureLoader,setFeatureChunkResolver,unregisterFeatureLoader,clearFeatureLoaders,loadFeatureModule,getFeatureLoadFailure,registerDefaultLoaders};registerFeatureFlagsGlobal(exportedFeatureFlags);module.exports=exportedFeatureFlags});var Yt=E((exports,module)=>{var vscode=require("vscode"),getLogger=()=>{try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=dynamicRequire("./chunks/logger-chunk");if(e&&typeof e.getLogger=="function")return getLogger=e.getLogger,getLogger()}}catch{}try{return getLogger=te().getLogger,getLogger()}catch{return getLogger=()=>({debug:(()=>{})?.bind(console)||console.log,info:(()=>{}).bind(console),warn:(()=>{}).bind(console),error:(()=>{}).bind(console)}),getLogger()}},{fileSystem}=Ot(),env=typeof process<"u"&&process.env?process.env:{},{formatFileSize}=Ut(),getFileName=p=>{try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=null;try{e=dynamicRequire("../chunks/utils-shared-chunk")}catch{}try{e||(e=dynamicRequire("./chunks/utils-shared-chunk"))}catch{}try{e||(e=dynamicRequire("./chunks/path-utils-chunk"))}catch{}if(e&&typeof e.getFileName=="function")return getFileName=e.getFileName,getFileName(p)}}catch{}try{let t=String(p||"").replace(/\\/g,"/"),r=t.lastIndexOf("/");return r===-1?t:t.substring(r+1)}catch{return"unknown"}},getExtension=p=>{try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=null;try{e=dynamicRequire("../chunks/utils-shared-chunk")}catch{}try{e||(e=dynamicRequire("./chunks/utils-shared-chunk"))}catch{}try{e||(e=dynamicRequire("./chunks/path-utils-chunk"))}catch{}if(e&&typeof e.getExtension=="function")return getExtension=e.getExtension,getExtension(p)}}catch{}try{let e=String(p||""),t=e.lastIndexOf(".");return t<=0?"":e.substring(t).toLowerCase()}catch{return""}},buildCacheKey=p=>{try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=null;try{e=dynamicRequire("../chunks/utils-shared-chunk")}catch{}try{e||(e=dynamicRequire("./chunks/utils-shared-chunk"))}catch{}try{e||(e=dynamicRequire("./chunks/path-utils-chunk"))}catch{}if(e&&typeof e.getCacheKey=="function")return buildCacheKey=e.getCacheKey,buildCacheKey(p)}}catch{}return String(p||"").toLowerCase().replace(/\\/g,"/")},normalizePath=input=>{try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=null;try{e=dynamicRequire("../chunks/utils-shared-chunk")}catch{}try{e||(e=dynamicRequire("./chunks/utils-shared-chunk"))}catch{}try{e||(e=dynamicRequire("./chunks/path-utils-chunk"))}catch{}if(e&&typeof e.normalizePath=="function")return normalizePath=e.normalizePath,normalizePath(input)}}catch{}return String(input||"").replace(/\\/g,"/")},getUriPath=(target="")=>{try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=null;try{e=dynamicRequire("../chunks/utils-shared-chunk")}catch{}try{e||(e=dynamicRequire("./chunks/utils-shared-chunk"))}catch{}try{e||(e=dynamicRequire("./chunks/path-utils-chunk"))}catch{}if(e&&typeof e.getUriPath=="function")return getUriPath=e.getUriPath,getUriPath(target)}}catch{}if(!target)return"";if(typeof target=="string")return target;if(typeof target.fsPath=="string"&&target.fsPath.length>0)return target.fsPath;if(typeof target.path=="string"&&target.path.length>0)return target.path;if(typeof target.toString=="function")try{return target.toString(!0)}catch{return target.toString()}return String(target)},{DEFAULT_CACHE_TIMEOUT,DEFAULT_MAX_CACHE_SIZE,GLOBAL_STATE_KEYS,DEFAULT_DECORATION_POOL_SIZE,DEFAULT_FLYWEIGHT_CACHE_SIZE,WORKSPACE_SCALE_EXTREME_THRESHOLD}=J(),{isWebEnvironment}=Z(),{getSettingsCoordinator}=qt(),{SecurityValidator,SecureFileOperations,detectSecurityEnvironment}=$t(),DISABLE_GIT_FEATURES=env.EXPLORER_DATES_DISABLE_GIT_FEATURES==="1",IS_WEB_ENV=isWebEnvironment()||env.VSCODE_WEB==="true",nodePath=null;try{IS_WEB_ENV||(nodePath=require("path"))}catch{nodePath=null}var pathCompat={basename:e=>{if(!e)return"";try{if(!IS_WEB_ENV)return require("path").basename(e)}catch{let t=e.replace(/\\/g,"/"),r=t.lastIndexOf("/");return r===-1?t:t.substring(r+1)}},dirname:e=>{if(!e)return".";try{if(!IS_WEB_ENV)return require("path").dirname(e)}catch{let t=e.replace(/\\/g,"/"),r=t.lastIndexOf("/");return r===-1?".":t.substring(0,r)}}};(async()=>{try{let t=await We().decorationsStatic();t&&(t.basename&&t.dirname&&(pathCompat.basename=t.basename,pathCompat.dirname=t.dirname),t.describeFile&&(exports.E=t.describeFile))}catch{}})();var CONFIG_DEFAULT_CACHE_TIMEOUT=3e4,CACHE_NAMESPACE_SEPARATOR="::",DEFAULT_DYNAMIC_WATCHER_LIMIT=Number(env.EXPLORER_DATES_MAX_DYNAMIC_WATCHERS||200),DEFAULT_WATCHER_INACTIVITY_MS=Number(env.EXPLORER_DATES_WATCHER_TTL_MS||600*1e3),DEFAULT_SMART_WATCHER_EXTENSIONS=["js","ts","json","md","py","java"],SMART_WATCHER_PRIORITY=new Map([["src",100],["lib",65],["test",30]]),WORKSPACE_SCAN_TIMEOUT_MS=Number(env.EXPLORER_DATES_WORKSPACE_SCAN_TIMEOUT||7e3),WORKSPACE_SCAN_TIMEOUT_FALLBACK_COUNT=WORKSPACE_SCALE_EXTREME_THRESHOLD,VIEWPORT_DEFAULT_WINDOW_MS=300*1e3,DEFAULT_VIEWPORT_HISTORY_LIMIT=Number(env.EXPLORER_DATES_VIEWPORT_HISTORY_LIMIT||400),FEATURE_LEVELS=["full","enhanced","standard","minimal"],DEFAULT_INDEXER_MAX_FILES=Math.max(100,Number(env.EXPLORER_DATES_INDEXER_MAX_FILES||2e3)),SECURITY_EXTRA_PATHS_ENV="EXPLORER_DATES_SECURITY_EXTRA_PATHS",DEFAULT_SECURITY_THROTTLE_MS=Number(env.EXPLORER_DATES_SECURITY_WARNING_THROTTLE_MS||5e3),SECURITY_WARNING_CACHE_LIMIT=Number(env.EXPLORER_DATES_SECURITY_WARNING_CACHE||500),DEFAULT_SECURITY_MAX_WARNINGS=Number(env.EXPLORER_DATES_SECURITY_MAX_WARNINGS_PER_FILE??1),describeFile=(e="")=>{try{let t=typeof e=="string"?e:getUriPath(e),r=normalizePath(t);return getFileName(r)||r||"unknown"}catch{return"unknown"}};(async()=>{try{let t=await We().decorationsStatic();t&&typeof t.describeFile=="function"&&(describeFile=t.describeFile)}catch{}})();var LazyHierarchicalDecorationCache=class{constructor(){this.t=new Map}get size(){return this.t.size}get bucketCount(){return 0}clear(){this.t.clear()}get(t){return this.t.get(t)}set(t,r){this.t.set(t,r)}delete(t){return this.t.delete(t)}*entries(){yield*this.t.entries()}*keys(){yield*this.t.keys()}*values(){yield*this.t.values()}[Symbol.iterator](){return this.entries()}enforceLimit(){return 0}},FileDateDecorationProviderImpl=class{constructor(...args){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=dynamicRequire("./chunks/file-date-provider-impl");if(e&&typeof e.FileDateDecorationProviderImpl=="function")return new e.FileDateDecorationProviderImpl(...args);if(e&&typeof e.FileDateDecorationProvider=="function")return new e.FileDateDecorationProvider(...args)}}catch(e){}throw new Error("FileDateDecorationProvider implementation is not available in this environment")}},FileDateDecorationProvider=class{constructor(...args){let loaderError=null;try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function")try{let e=null;try{e=dynamicRequire("./chunks/file-date-provider-impl-export")}catch{}if(e){let r=e.FileDateDecorationProvider||e.FileDateDecorationProviderImpl||e.default;return typeof r=="function"?new r(...args):new FileDateDecorationProviderImpl(...args)}e=dynamicRequire("./chunks/file-date-provider-impl");let t=e&&(e.FileDateDecorationProvider||e.FileDateDecorationProviderImpl||e.default);if(typeof t=="function")return new t(...args)}catch(e){loaderError=e}try{let e=null;try{e=require.resolve("./chunks/file-date-provider-impl-export",{paths:[__dirname]})}catch{}e||(e=require.resolve("./chunks/file-date-provider-impl",{paths:[__dirname]}));let t=require(e),r=t&&(t.FileDateDecorationProvider||t.FileDateDecorationProviderImpl||t.default);if(e&&e.endsWith("file-date-provider-impl-export.js")&&!r)return new FileDateDecorationProviderImpl(...args);if(typeof r=="function")return new r(...args)}catch(e){loaderError=loaderError||e}}catch(e){loaderError=loaderError||e}if(loaderError&&loaderError.message){let e=`FileDateDecorationProvider implementation is unavailable: ${loaderError.message}`;throw new Error(e)}throw new Error("FileDateDecorationProvider implementation is unavailable")}};module.exports={FileDateDecorationProvider,FileDateDecorationProviderImpl}});try{require("vscode")}catch{}var env=typeof process<"u"&&process.env?process.env:{},diagLog=null,isWebDiagnosticsEnabled=()=>!1;try{let e=se();e&&(diagLog=e.diagLog,isWebDiagnosticsEnabled=e.isWebDiagnosticsEnabled||(()=>!1))}catch{}function isWebRuntime(){try{let{isWebEnvironment:e}=Z();return e()}catch{return env.VSCODE_WEB==="true"}}function getWebChunkRegistry(){try{let{WEB_CHUNK_GLOBAL_KEY:e,LEGACY_WEB_CHUNK_GLOBAL_KEY:t}=J();if(typeof globalThis<"u")return globalThis[e]||globalThis[t]||null}catch{}return typeof globalThis<"u"&&(globalThis.explorerDatesChunks||globalThis.ce)||null}function resolveProviderModuleFromWebRegistry(){let e=getWebChunkRegistry();if(!e)return null;let t=[e.fileDateProviderImplExport,e.fileDateProviderImpl,e.fileDateProviderImplExport,e.fileDateProviderImpl,e["file-date-provider-impl-export"],e["file-date-provider-impl"]].filter(Boolean);return t.length>0?t[0]:null}function normalizeModuleExports(e){if(!e)return null;let t=e&&typeof e=="object"?e:{default:e},r=t&&typeof t=="object"&&t.default?t.default:null;return r&&typeof r=="object"?{...t,...r}:t}async function hydrateProviderOptionalSystems(e){try{try{let r=(await Promise.resolve().then(()=>Se(ot()))).getLocalization();e.l.getString=(...o)=>r.getString(...o),e.l.formatDate=(...o)=>r.formatDate(...o),e.l.getCurrentLocale=()=>r.getCurrentLocale();let n=e.l.dispose;e.l.dispose=()=>{try{r.dispose()}catch{}n()}}catch(t){e._logger?.debug("provider-init: localization hydrate failed",t)}try{let t=await Promise.resolve().then(()=>Se(at()));t&&typeof t.createDecorationLogic=="function"&&(e.A=t.createDecorationLogic(e))}catch(t){e._logger?.debug("provider-init: preload decoration logic failed",t)}try{let t=await Promise.resolve().then(()=>Se(St())),r=t&&(typeof t.createDecorationProviderHelpers=="function"?t.createDecorationProviderHelpers(e):t);e.ue=r}catch(t){e._logger?.debug("provider-init: preload decoration provider helpers failed",t)}try{let t=await e.fe();t&&typeof t.initializeAdvancedSystems=="function"&&await t.initializeAdvancedSystems(e)}catch(t){e._logger?.debug("provider-init: initializeAdvancedSystems failed",t)}try{let t=wt();t&&typeof t.scheduleTelemetryReport=="function"&&e._allocationTelemetryEnabled&&t.scheduleTelemetryReport(e)}catch(t){e._logger?.debug("provider-init: scheduling telemetry failed",t)}}catch(t){try{e._logger?.debug("provider-init: hydration failed",t)}catch{}}}function createFileDateDecorationProvider(context){try{let ProviderClass=null,webRuntime=isWebRuntime();if(webRuntime){let e=getWebChunkRegistry(),t=[e?.fileDateProviderImplExport,e?.fileDateProviderImpl,e?.fileDateProviderImplExport,e?.fileDateProviderImpl,e?.["file-date-provider-impl-export"],e?.["file-date-provider-impl"]].filter(Boolean),r=t[0]||resolveProviderModuleFromWebRegistry();!e&&isWebDiagnosticsEnabled()?diagLog?.("warn","Provider registry missing in web runtime"):!r&&isWebDiagnosticsEnabled()&&diagLog?.("warn","Provider module missing from web registry",{hasRegistry:!!e,availableKeys:Object.keys(e||{}),candidateCount:t.length});let n=null;for(let o of t){let i=normalizeModuleExports(o),a=i&&(i.FileDateDecorationProvider||i.FileDateDecorationProviderImpl||i.default);if(a){n=a;break}isWebDiagnosticsEnabled()&&diagLog?.("warn","Provider exports missing expected class",{availableExportKeys:Object.keys(i||{})})}ProviderClass=n,!ProviderClass&&isWebDiagnosticsEnabled()&&t.length>0&&diagLog?.("warn","Provider class unresolved from registry entries",{candidateCount:t.length,availableRegistryKeys:Object.keys(e||{})})}try{if(!webRuntime){let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=null;try{e=dynamicRequire("./fileDateProviderImplExport")}catch{}if(!e)try{e=dynamicRequire("./fileDateProviderImpl")}catch{}ProviderClass=e&&(e.FileDateDecorationProvider||e.FileDateDecorationProviderImpl||e.default)}}}catch{}if(!ProviderClass&&!webRuntime){let{FileDateDecorationProvider:e}=Yt();ProviderClass=e}if(!ProviderClass)return isWebDiagnosticsEnabled()&&diagLog?.("warn","Provider class unavailable",{webRuntime,registryKeys:Object.keys(getWebChunkRegistry()||{})}),null;let provider=new ProviderClass;return isWebDiagnosticsEnabled()&&diagLog?.("info","Provider class resolved",{className:ProviderClass?.name||"unknown"}),(async()=>{try{await provider.initializeAdvancedSystems(context)}catch(e){provider._logger?.debug("provider-init: provider factory init failed",e)}})(),{createFileDateDecorationProvider:()=>provider}}catch{return null}}module.exports={hydrateProviderOptionalSystems,createFileDateDecorationProvider}; +`,analysisCommandsDisabled:"Explorer Dates analysis commands are disabled. Shortcuts like Ctrl+Shift+M/H/A will not work until you enable explorerDates.enableAnalysisCommands.",analysisEnableNow:"Enable Now",analysisEnablePartially:"Enable partially succeeded. Update explorerDates.enableAnalysisCommands in remaining workspace folders manually.",analysisEnableFailed:"Enable failed: update explorerDates.enableAnalysisCommands in workspace settings.",workspaceTemplatesDisabled:"Workspace templates are disabled. Enable explorerDates.enableWorkspaceTemplates to use this command.",workspaceTemplatesDisabledSave:"Workspace templates are disabled. Enable explorerDates.enableWorkspaceTemplates to save templates.",enterTemplateName:"Enter template name",enterTemplateDescription:"Enter description (optional)",failedToOpenTemplateManager:e=>`Failed to open template manager: ${e}`,failedToSaveTemplate:e=>`Failed to save template: ${e}`,reportingDisabled:"Reporting features are disabled. Enable explorerDates.enableExportReporting to generate reports.",failedToGenerateReport:e=>`Failed to generate report: ${e}`,apiDisabled:"Explorer Dates API is disabled via settings.",failedToShowApiInformation:e=>`Failed to show API information: ${e}`,failedToShowWorkspaceActivity:e=>`Failed to show workspace activity: ${e}`,failedToShowPerformanceAnalytics:e=>`Failed to show performance analytics: ${e}`,failedToShowCacheDebugInfo:e=>`Failed to show cache debug info: ${e}`,noWorkspaceFolderOpen:"No workspace folder open",resetConfirm:"Reset Settings",resetCancel:"Cancel",resetSuccess:e=>`\u2705 Reset ${e} settings to defaults.`,validateNoIssues:"\u2705 Configuration is valid - no issues found!",validateFoundIssues:e=>`Found ${e} configuration issue(s). Would you like to see details?`,validateShowDetails:"Show Details",validateDismiss:"Dismiss",migrationNotificationMessage:e=>`Explorer Dates updated ${e} setting(s) for compatibility. Your configuration has been preserved.`,migrationViewChanges:"View Changes",migrationOpenSettings:"Open Settings",deprecatedPrompt:e=>`Explorer Dates found ${e} deprecated setting(s). Would you like to remove them?`,deprecatedClean:"Clean Up Now",deprecatedKeep:"Keep Old Settings",deprecatedAskLater:"Ask Later",showFileLocation:"Show File Location",teamConfigCorrupted:"Explorer Dates team configuration file appears to be corrupted. Please check the .explorer-dates-profiles.json file or restore from backup.",appliedFromTeamProfile:(e,t)=>`Applied ${e} Explorer Dates settings from team profile "${t}".`,documentedOverrides:"Documented Explorer Dates overrides in .vscode/explorer-dates-overrides.md",teamConfigMissingProfile:"Team configuration is missing an active profile.",ephemeralStorageEnospc:"Explorer Dates team configuration could not be saved because the disk is full.",ephemeralStorageGeneric:"Explorer Dates team configuration could not be saved because the workspace is read-only or permissions are restricted.",ephemeralStorageSuffix:" Changes will be kept in memory until VS Code restarts, so they may be lost."}};try{let e=rt();if(e&&typeof e=="object")for(let[t,r]of Object.entries(e)){I[t]||(I[t]={});for(let[n,o]of Object.entries(r))typeof I[t][n]>"u"&&(I[t][n]=o)}}catch{}var le=class{constructor(){this.u="en",this.a=null,this.E(),typeof U.workspace.onDidChangeConfiguration=="function"?this.a=U.workspace.onDidChangeConfiguration(t=>{t.affectsConfiguration("explorerDates.locale")&&this.E()}):this.a=null}E(){let r=U.workspace.getConfiguration("explorerDates").get("locale","auto");if(r==="auto"){let n=U&&U.env&&typeof U.env.language=="string"?U.env.language:"en";try{r=String(n||"en").split("-")[0]}catch{r="en"}}I[r]||(r="en"),this.u=r}getString(t,...r){let o=(I[this.u]||I.en)[t];return typeof o=="function"?o(...r):o||I.en[t]||t}getCurrentLocale(){return this.u}formatDate(t,r={}){try{return t.toLocaleDateString(this.u,r)}catch{return t.toLocaleDateString("en",r)}}dispose(){this.a&&(this.a.dispose(),this.a=null),Q===this&&(Q=null)}},Q=null;function Ur(){return Q||(Q=new le),Q}nt.exports={LocalizationManager:le,getLocalization:Ur}});var at=E((ro,it)=>{function qr(e){let t=require("vscode");function r(c,d,f,g,y,h){if(!e.P||!g)return h&&(h.misses++,h.allocations++),y();if(c.has(g))return h&&(h.hits++,h.reuses++),c.get(g);h&&(h.misses++,h.allocations++);let k=y();if(c.set(g,k),d.push(g),d.length>f){let D=d.shift();D&&c.delete(D)}return k}function n({formatType:c,diffMinutes:d,diffHours:f,diffDays:g,diffWeeks:y,diffMonths:h,date:k}){let D=(L,T=null)=>({value:L,key:T?`badge:${c||"default"}:${T}`:null});switch(c){case"relative-short":case"relative-long":return d<1?D("\u25CF\u25CF","just"):d<60?D(`${Math.min(d,99)}m`,`m:${Math.min(d,99)}`):f<24?D(`${Math.min(f,23)}h`,`h:${Math.min(f,23)}`):g<7?D(`${g}d`,`d:${g}`):y<4?D(`${y}w`,`w:${y}`):h<12?D(`${h}M`,`M:${h}`):D("1y","y:1");case"absolute-short":case"absolute-long":{let L=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],T=k.getDate(),H=`${L[k.getMonth()]}${T<10?"0"+T:T}`,b=[k.getMonth(),T];return c==="absolute-long"&&b.push(k.getFullYear()),D(H,`abs:${b.join("-")}`)}case"technical":return d<60?D(`${d}m`,`tech:m:${d}`):f<24?D(`${f}h`,`tech:h:${f}`):D(`${g}d`,`tech:d:${g}`);case"minimal":return f<1?D("\u2022\u2022","min:now"):f<24?D("\u25CB\u25CB","min:hours"):D("\u2500\u2500","min:days");default:return d<60?D(`${d}m`,`smart:m:${d}`):f<24?D(`${f}h`,`smart:h:${f}`):D(`${g}d`,`smart:d:${g}`)}}function o(c,d,f=null){let y=f!==null?f:new Date().getTime()-c.getTime();if(y<0)return e._logger.debug(`File has future modification time (diffMs: ${y}), treating as just modified`),"\u25CF\u25CF";let h=Math.floor(y/(1e3*60)),k=Math.floor(y/(1e3*60*60)),D=Math.floor(y/(1e3*60*60*24)),L=Math.floor(D/7),T=Math.floor(D/30),H=n({formatType:d,diffMinutes:h,diffHours:k,diffDays:D,diffWeeks:L,diffMonths:T,date:c});return r(e.I,e.L,e.N,H.key,()=>H.value,e.O)}function i(c){if(!c)return"none";if(typeof c=="string")return c;if(c.id)return c.id;try{return JSON.stringify(c)}catch{return String(c)}}function a(c,d,f){let g=c||"",y=d||"",h=i(f);return`${g}::${h}::${y}`}function s({badge:c,tooltip:d,color:f}){if(!e.W){e.o.misses++,e.o.allocations++;let h=new t.FileDecoration(c||"??");return d&&(h.tooltip=d),f&&(h.color=f),h.propagate=!1,h}if(!c)return e.o.allocations++,new t.FileDecoration("??");let g=a(c,d,f);if(g&&e.s.has(g))return e.o.hits++,e.o.reuses++,e.s.get(g);let y=new t.FileDecoration(c);if(d&&(y.tooltip=d),f&&(y.color=f),y.propagate=!1,e.o.allocations++,g&&(e.s.set(g,y),e.g.push(g),e.g.length>e.M)){let h=e.g.shift();h&&h!==g&&e.s.delete(h)}return e.o.misses++,y}function u(c="unspecified"){e.s.size!==0&&(e.s.clear(),e.g.length=0,e._logger.debug(`\u{1F9FC} Cleared decoration pool (${c})`))}async function l({filePath:c,stat:d,gitBlame:f,shouldUseAccessibleTooltips:g,fileSizeFormat:y}){if(g){let k=e._accessibility?.getAccessibleTooltip?.(c,d.mtime,d.birthtime,d.size,f);if(k)return k}let h=[];try{let k=e.l.formatDate(d.mtime);if(h.push(`${k}`),y&&typeof d.size=="number"){let D=e.U(d.size,y);h.push(D)}f&&f.author&&h.push(`Author: ${f.author}`)}catch(k){e._logger.debug("Tooltip builder failed",k)}return h.join(" \u2014 ")}return{acquireDecorationFromPool:s,clearDecorationPool:u,q:a,H:i,K:o,B:n,$:r,h:l}}it.exports={createDecorationLogic:qr}});var ce=E((exports,module)=>{var chunk=null;try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){try{chunk=dynamicRequire("../chunks/utils-shared-chunk")}catch{}try{chunk||(chunk=dynamicRequire("./chunks/utils-shared-chunk"))}catch{}try{chunk||(chunk=dynamicRequire("../chunks/path-utils-chunk"))}catch{}try{chunk||(chunk=dynamicRequire("./chunks/path-utils-chunk"))}catch{}}}catch{}if(chunk&&chunk.normalizePath)module.exports={normalizePath:chunk.normalizePath,getFileName:chunk.getFileName,getExtension:chunk.getExtension,getDirectory:chunk.getDirectory,joinPath:chunk.joinPath,getCacheKey:chunk.getCacheKey,getUriPath:chunk.getUriPath,getRelativePath:chunk.getRelativePath};else{let e=function(l=""){return l?l.replace(/\\/g,"/"):""},t=function(l=""){let c=e(l);return c?c.split("/").filter(Boolean):[]},r=function(l=""){let c=t(l);return c.length?c[c.length-1]:""},n=function(l=""){let c=r(l),d=c.lastIndexOf(".");return d<=0?"":c.substring(d).toLowerCase()},o=function(l=""){let c=e(l),d=c.lastIndexOf("/");return d===-1?"":c.substring(0,d)},i=function(...l){return e(l.filter(Boolean).join("/")).replace(/\/+/g,"/")},a=function(l=""){return e(l).toLowerCase()},s=function(l=""){if(!l)return"";if(typeof l=="string")return l;if(typeof l.fsPath=="string"&&l.fsPath.length>0)return l.fsPath;if(typeof l.path=="string"&&l.path.length>0)return l.path;if(typeof l.toString=="function")try{return l.toString(!0)}catch{return l.toString()}return String(l)},u=function(l="",c=""){let d=e(l),f=e(c);return d&&f.startsWith(d)?f.substring(d.length).replace(/^\/+/,""):f};normalizePath=e,getSegments=t,getFileName=r,getExtension=n,getDirectory=o,joinPath=i,getCacheKey=a,getUriPath=s,getRelativePath=u,module.exports={normalizePath:e,getFileName:r,getExtension:n,getDirectory:o,joinPath:i,getCacheKey:a,getUriPath:s,getRelativePath:u}}var normalizePath,getSegments,getFileName,getExtension,getDirectory,joinPath,getCacheKey,getUriPath,getRelativePath});var we=E((no,ut)=>{var st="EXPLORER_DATES_FORCE_VSCODE_FS";function lt(e,t=process.env){return String(t?.[e]||"")==="1"}function ue(e){let t=e&&typeof e=="object"?e:null,r=String(t?.scheme||(typeof e=="string"&&/^[a-z][a-z0-9+.-]*:/i.test(e)?e.split(":",1)[0]:"file")).toLowerCase(),n=String(t?.authority||""),o=t?.path||t?.fsPath||(typeof e=="string"?e.replace(/^[a-z][a-z0-9+.-]*:\/\//i,""):"");return{scheme:r,authority:n,path:String(o||"")}}function Hr({uri:e,isWeb:t=!1,remoteName:r="",forceWorkspaceFs:n=lt(st)}={}){let o=ue(e),i=o.scheme!=="file",a=!!t,s=!!r,u=!!(n||a||s||i);return{scheme:o.scheme,authority:o.authority,isFileScheme:!i,isVirtual:i,isBrowser:a,isRemote:s,forceWorkspaceFs:!!n,filesystem:u?"workspace.fs":"node.fs",provider:i?o.scheme==="github"||o.scheme==="vscode-vfs"?"github":"virtual":"filesystem"}}function ct({uri:e,platform:t=process.platform,caseSensitive:r}={}){return typeof r=="boolean"?r:ue(e).scheme!=="file"?!0:t!=="win32"}function Kr(e,t={}){let r=ue(e),n=r.path.replace(/\\/g,"/").replace(/\/+/g,"/"),o=`${r.scheme}://${r.authority}${n}`;return ct({uri:e,...t})?o:o.toLowerCase()}function ke(e){if(e instanceof Date){let t=e.getTime();return Number.isFinite(t)?t:null}if(typeof e=="number")return Number.isFinite(e)?e:null;if(typeof e=="string"&&e.trim()){let t=Date.parse(e);return Number.isFinite(t)?t:null}return null}function Br(e){if(!e||typeof e!="object")return null;let t=ke(e.mtime),r=ke(e.ctime);return{...e,mtimeMs:t,ctimeMs:r}}ut.exports={FORCE_WORKSPACE_FS_ENV:st,envFlag:lt,getUriParts:ue,getEnvironmentContract:Hr,isCaseSensitive:ct,resourceIdentity:Kr,normalizeTimestamp:ke,normalizeStat:Br}});var bt=E((oo,yt)=>{var de=require("vscode"),{normalizePath:Fe,getRelativePath:$r}=ce(),{diagLogOnce:zr}=se(),{normalizeTimestamp:ee,resourceIdentity:Vr}=we(),jr={unknown:0,github:1,git:2,fs:3},Ae={low:1,medium:2,high:3};function x(e,t,r){try{return e?.get?e.get(t,r):r}catch{return r}}function Gr(e){return{nowMinutes:Number(x(e,"freshnessBucketMinutesNow",60))||60,todayHours:Number(x(e,"freshnessBucketHoursToday",24))||24,twoDays:Number(x(e,"freshnessBucketDaysTwo",2))||2,oneWeek:Number(x(e,"freshnessBucketDaysWeek",7))||7}}function dt(e,t){if(!Number.isFinite(e)||e<0)return"unknown";let r=t.nowMinutes*60*1e3,n=t.todayHours*60*60*1e3,o=t.twoDays*24*60*60*1e3,i=t.oneWeek*24*60*60*1e3;return e<=r?"now":e<=n?"today":e<=o?"2d":e<=i?"1w":"stale"}function ft(e){switch(e){case"now":return"now";case"today":return"today";case"2d":return"2d";case"1w":return"1w";case"stale":return"stale";default:return"unknown"}}function pt(e){switch(e){case"fs":return"Filesystem";case"git":return"Git";case"github":return"GitHub";default:return"Unknown"}}function mt(e){switch(e){case"now":return"!!";case"today":return"T";case"2d":return"2d";case"1w":return"1w";case"stale":return"~~";default:return"?"}}function Xr(e,t,r){let n=!!x(r,"freshnessShowUnknown",!0);if(e==="unknown"||t==="unknown")return n?"?":null;let o=mt(e);return!o||o==="unknown"?n?"?":null:o}function Yr(e){try{let t=ee(e);return t===null?null:new Date(t).toISOString().replace("T"," ").replace("Z","")}catch{return null}}function Zr(e,t){if(!e)return;let r=x(t,"freshnessTooltipVerbosity","full"),n=x(t,"badge.sourceLabelMode","auto"),o=[],i=ft(e.bucket),a=pt(e.source);if(o.push(`Freshness: ${i}`),e.exactTimestamp){let l=Yr(e.exactTimestamp);l&&o.push(`Exact time: ${l}`)}let s=e.source==="fs"&&e.confidence==="high";return(n==="always"||n!=="never"&&!s||n!=="never"&&r==="full")&&o.push(`Source: ${a}`),e.author&&o.push(`Author: ${e.author}`),e.message&&o.push(`Message: ${e.message}`),o.push(`Confidence: ${e.confidence}`),e.reason&&r==="full"&&o.push(`Reason: ${e.reason}`),o.join(` +`)}function Jr(e,t,r){if(!Number.isFinite(t)||t<=0)return!1;let n=300*1e3;if(t>r+n)return!1;if(e==="file")return!0;let o=r-t,i=300*1e3,a=365*24*60*60*1e3*10;return!(oa)}function _e({source:e,timestampMs:t,author:r,message:n,confidence:o,reason:i},a){if(!Number.isFinite(t))return{bucket:"unknown",source:e||"unknown",confidence:o||"low",reason:i||"no-timestamp"};let s=Gr(a),u=Date.now()-t;return{bucket:dt(u,s),source:e,exactTimestamp:t,author:r||void 0,message:n||void 0,confidence:o,reason:i||void 0}}async function Qr(e,t,r){let n=e?.scheme||"file",o=!!x(r,"freshnessAllowVirtualFs",!1);if(n!=="file"&&!o)return{freshness:null,reason:"fs-virtual-disabled"};let i=t?.mtimeMs??ee(t?.mtime),a=Date.now();return Number.isFinite(i)?Jr(n,i,a)?{freshness:_e({source:"fs",timestampMs:i,confidence:n==="file"?"high":"medium",reason:n==="file"?"fs-trust-high":"fs-trust-medium"},r),reason:null}:{freshness:null,reason:"fs-mtime-untrusted"}:{freshness:null,reason:"fs-mtime-missing"}}async function en(e,t,r){if(!t||typeof t.S!="function")return{freshness:null,reason:"git-provider-missing"};let n;try{n=await t.S(e)}catch(a){return{freshness:null,reason:`git-error:${a?.message||"unknown"}`}}let o=ee(n?.timestampMs);return o===null||o<=0?{freshness:null,reason:n?.error||"git-no-timestamp"}:{freshness:_e({source:"git",timestampMs:o,author:n?.author||void 0,message:n?.message||void 0,confidence:"medium",reason:"git-recency"},r),reason:null}}function gt(e){if(!e||(e.scheme||"")!=="github")return null;let n=Fe(e.path||"").replace(/^\/+/,"").split("/").filter(Boolean);if(n.length<2)return null;let o=n[0],i=n[1],a=n.slice(2).join("/"),s=new URLSearchParams(e.query||""),u=s.get("ref")||s.get("branch")||"HEAD";return{owner:o,repo:i,filePath:a,ref:u}}function tn(e){let t=(e||"").indexOf("+");if(t===-1)return"HEAD";let r=e.slice(t+1);try{let n;if(typeof TextDecoder<"u"){let a=new Uint8Array(r.length/2);for(let s=0;s0)return i}catch{}return"HEAD"}function ht(e){if(!e||e.scheme!=="vscode-vfs"||!String(e.authority||"").startsWith("github"))return null;let r=Fe(e.path||"").replace(/^\/+/,"").split("/").filter(Boolean);if(r.length<2)return null;let n=r[0],o=r[1],i=r.slice(2).join("/"),a=tn(e.authority||"");return{owner:n,repo:o,filePath:i,ref:a}}function rn(e){try{let t=de.workspace.workspaceFolders||[];for(let r of t){let n=r?.uri?.scheme;if(n==="github"){let o=gt(r.uri);if(!o)continue;let i=$r(r.uri.path||"",e?.path||"");return{...o,filePath:i}}if(n==="vscode-vfs"&&String(r?.uri?.authority||"").startsWith("github")){let o=ht(r.uri);if(!o)continue;let a=Fe(e?.path||"").replace(/^\/+/,"").split("/").filter(Boolean).slice(2).join("/");if(!a)continue;return{...o,filePath:a}}}}catch{}return null}async function nn(e,t){let r=gt(e)||ht(e)||rn(e);if(!r||!r.owner||!r.repo||!r.filePath)return{freshness:null,reason:"github-context-missing"};let n=`${r.owner}/${r.repo}@${r.ref}:${r.filePath}`,o=`https://api.github.com/repos/${r.owner}/${r.repo}/commits?path=${encodeURIComponent(r.filePath)}&sha=${encodeURIComponent(r.ref)}&per_page=1`,i={Accept:"application/vnd.github+json"};try{let y=de?.authentication&&typeof de.authentication.getSession=="function"?await de.authentication.getSession("github",["repo"],{createIfNone:!1}):null;y?.accessToken&&(i.Authorization=`Bearer ${y.accessToken}`)}catch{}if(typeof fetch!="function")return{freshness:null,reason:"github-fetch-unavailable"};let a;try{a=await fetch(o,{headers:i})}catch(y){return{freshness:null,reason:`github-fetch-error:${y?.message||"unknown"}`}}if(!a||!a.ok)return{freshness:null,reason:a?`github-http-${a.status}`:"github-no-response"};let s;try{s=await a.json()}catch{return{freshness:null,reason:"github-json-error"}}let u=Array.isArray(s)?s[0]:null,l=u?.commit||null,c=l?.author?.name||u?.author?.login||void 0,d=l?.message||void 0,f=ee(l?.author?.date);return f===null?{freshness:null,reason:"github-no-timestamp"}:{freshness:_e({source:"github",timestampMs:f,author:c,message:d,confidence:"medium",reason:"github-commit"},t),reason:null,cacheKey:n}}function Te(e,t){return!e||e==="auto"?!0:e==="unknown"?t==="unknown":e===t}async function on({uri:e,stat:t,provider:r,config:n,workspaceKind:o}){let i=e?.scheme||"file",a=x(n,"freshnessSourcePolicy","auto"),s=[],u=Date.now();if(Te(a,"fs")){let l=await Qr(e,t,n);if(s.push({source:"fs",reason:l.reason||null}),l.freshness)return{...l.freshness,attempts:s}}if(Te(a,"git")){let l=await en(e,r,n);if(s.push({source:"git",reason:l.reason||null}),l.freshness)return{...l.freshness,attempts:s}}if(Te(a,"github")){let l=await nn(e,n);if(s.push({source:"github",reason:l.reason||null,cacheKey:l.cacheKey||null}),l.freshness)return{...l.freshness,attempts:s}}return zr("freshness-unknown","info","No trustworthy freshness source available",{scheme:i,workspaceKind:o||"unknown",attempts:s}),{bucket:"unknown",source:"unknown",confidence:"low",reason:"no-source",attempts:s,resolvedAt:u}}function an(e,t){if(!e)return-1;if(!t)return 1;let r=Ae[e.confidence]||0,n=Ae[t.confidence]||0;if(r!==n)return r-n;let o=Number(e.exactTimestamp||0),i=Number(t.exactTimestamp||0);return o-i}yt.exports={resolveFreshness:on,formatBadge:Xr,formatTooltip:Zr,bucketFromAge:dt,formatBucketLabel:ft,formatBadgeAge:mt,formatSourceLabel:pt,compareFreshness:an,SOURCE_RANK:jr,CONFIDENCE_RANK:Ae,normalizeTimestamp:ee,resourceIdentity:Vr}});var Re=E((io,vt)=>{function sn(){return typeof Date=="function"&&Date.now?Date.now():16409952e5}function Et(e){return!!(e&&typeof e=="object"&&typeof e.getTime=="function")}function ln(e){if(Et(e))return e;if(typeof e=="number")return new Date(e);if(typeof e=="string"){let t=Date.parse(e);return isNaN(t)?new Date:new Date(t)}return new Date}function q(e=""){return e?e.replace(/\\/g,"/"):""}function cn(e=""){let t=q(e);return t?t.split("/").filter(Boolean):[]}function Dt(e=""){let t=cn(e);return t.length?t[t.length-1]:""}function un(e=""){let t=Dt(e),r=t.lastIndexOf(".");return r<=0?"":t.substring(r).toLowerCase()}function dn(e=""){let t=q(e),r=t.lastIndexOf("/");return r===-1?"":t.substring(0,r)}function fn(...e){return q(e.filter(Boolean).join("/")).replace(/\/+/g,"/")}function pn(e=""){return q(e).toLowerCase()}function mn(e=""){if(!e)return"";if(typeof e=="string")return e;if(typeof e.fsPath=="string"&&e.fsPath.length>0)return e.fsPath;if(typeof e.path=="string"&&e.path.length>0)return e.path;if(typeof e.toString=="function")try{return e.toString(!0)}catch{return e.toString()}return String(e)}function gn(e="",t=""){let r=q(e),n=q(t);return r&&n.startsWith(r)?n.substring(r.length).replace(/^\/+/,""):n}vt.exports={ensureDate:ln,isDateLike:Et,getCurrentTimestamp:sn,normalizePath:q,getFileName:Dt,getExtension:un,getDirectory:dn,joinPath:fn,getCacheKey:pn,getUriPath:mn,getRelativePath:gn}});var St=E((exports,module)=>{function createDecorationProviderHelpers(provider){let vscode=require("vscode"),{diagLogOnce,diagLog,isWebDiagnosticsEnabled}=se(),{formatBadge,formatTooltip}=bt(),decorationDiagCount=0,maxDecorationDiag=20,CONTRIBUTED_CUSTOM_COLOR_TOKENS=new Set(["explorerDates.customColor.veryRecent","explorerDates.customColor.recent","explorerDates.customColor.old"]),isWebRuntime=(()=>{try{return vscode?.env?.uiKind===vscode?.UIKind?.Web}catch{return!1}})(),getFileName,getExtension,normalizePath,getUriPath,ensureDate;try{let e=Re();e&&(getFileName=e.getFileName,getExtension=e.getExtension,normalizePath=e.normalizePath,getUriPath=e.getUriPath,ensureDate=e.ensureDate)}catch{}if(!getFileName||!ensureDate){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function")try{let e=dynamicRequire("../utils/pathUtils"),t=dynamicRequire("../utils/dateHelpers");getFileName=getFileName||e.getFileName,getExtension=getExtension||e.getExtension,normalizePath=normalizePath||e.normalizePath,getUriPath=getUriPath||e.getUriPath,ensureDate=ensureDate||t.ensureDate}catch{}}catch{}getFileName||(getFileName=e=>{let t=String(e||""),r=t.replace(/\\/g,"/").lastIndexOf("/");return r===-1?t:t.substring(r+1)}),getExtension||(getExtension=e=>{let t=String(e||""),r=t.lastIndexOf(".");return r<=0?"":t.substring(r).toLowerCase()}),normalizePath||(normalizePath=(e="")=>(e||"").toString().replace(/\\/g,"/")),getUriPath||(getUriPath=(e="")=>e?typeof e=="string"?e:e?.fsPath?e.fsPath:e?.path?e.path:String(e):""),ensureDate||(ensureDate=e=>e instanceof Date?e:typeof e=="number"?new Date(e):typeof e=="string"?isNaN(Date.parse(e))?new Date:new Date(Date.parse(e)):new Date)}async function provideDecoration(e,t){let r=!1,n=null,o,i=null,a=null,s=null,u=null,l=!1,c=null,d=null,f=null,g=null,y=null,h=null,k=!1,D=()=>isWebDiagnosticsEnabled&&isWebDiagnosticsEnabled()&&decorationDiagCount{let b=null;try{b=vscode.workspace.getConfiguration("explorerDates")}catch{b=null}let N=b?b.get("colorScheme","none"):"none",m=b?b.get("showDateDecorations",!0):!0,O=typeof provider._performanceMode=="boolean"?provider._performanceMode:b?b.get("performanceMode",!1):!1,X=isWebRuntime&&b?!!b.get("webDiagnosticsBuiltinColors",!1):!1;return{isWeb:isWebRuntime,isCanary:!1,builtinColorFallbackActive:X,colorScheme:N,effectiveColorScheme:N,showDateDecorations:m,performanceMode:O,featureLevel:provider.z,previewSettings:!!provider.d}},T=b=>{if(!D()||r)return;decorationDiagCount+=1,r=!0;let m={...L(),...b};!m.scheme&&n&&(m.scheme=n),m.effectiveColorScheme||(m.effectiveColorScheme=m.colorScheme),typeof m.hasColor>"u"&&(m.hasColor=!!m.color),typeof m.badge>"u"&&(m.badge=null),typeof m.propagate>"u"&&(m.propagate=null),typeof m.decorationKeys>"u"&&(m.decorationKeys=null),typeof m.nullReason>"u"&&(m.nullReason=null),typeof m.timestampSource>"u"&&(m.timestampSource="not-attempted"),typeof m.gitRecencyAvailable>"u"&&(m.gitRecencyAvailable=!1),typeof m.gitRecencyError>"u"&&(m.gitRecencyError=null),typeof m.resolvedTimestampMs>"u"&&(m.resolvedTimestampMs=null),typeof m.gitRepoMatched>"u"&&(m.gitRepoMatched=null),typeof m.gitPathAttempted>"u"&&(m.gitPathAttempted=null),m.themeTokenSource||(m.isCanary?m.themeTokenSource="canary":m.builtinColorFallbackActive?m.themeTokenSource="builtin-fallback":typeof m.color=="string"&&m.color.startsWith("explorerDates.")?m.themeTokenSource="custom-token":m.color?m.themeTokenSource="builtin-token":m.themeTokenSource=null),diagLog("info","Decoration return sample",m)},H=b=>{if(!(!D()||r))try{T(b)}catch{}};try{if(provider.C){i="disposed";return}if(!e){i="no-uri";return}let b=e.fsPath||e.path||"";n=e.scheme||"file";let N=vscode.workspace.getConfiguration("explorerDates"),m=N.get("performanceMode",!1);if(m&&typeof m!="boolean")return i="invalid-performanceMode",null;if(b&&b.includes("\0"))return i="invalid-path",null;let O=getUriPath(e);if(!O){i="missing-path";return}let X=provider.D?provider.D(O):getFileName(O)||O,Me=normalizePath(O),Zt=n||"file";if(typeof provider.k!="function"){diagLogOnce("decorations-fallback-provider","warn","Decoration fallback active (missing provider helpers)");try{let A=await provider._fileSystem.stat(e);if(!A){i="no-stat";return}let K=A.mtime instanceof Date?A.mtime:A.mtime?new Date(A.mtime):null,ge=K&&typeof K.getTime=="function"?K.getTime():NaN;if(!Number.isFinite(ge)){i="invalid-stat";return}let Y=Date.now()-K.getTime(),he=Y<1440*60*1e3?"\u2022":Y<10080*60*1e3?"\u25E6":"\xB7",ye=`Modified: ${K.toISOString()}`,oe=new vscode.FileDecoration(he,ye);return o=oe,y=he,f=!1,g=null,h=oe?.propagate,oe}catch{i="fallback-error";return}}if(!provider.k(e,"provideFileDecoration")?.isValid){i="invalid-uri";return}if(await provider.V(e)){i="excluded";return}return o=await provider.j(b,async()=>{if(t?.isCancellationRequested||provider.C){i=t?.isCancellationRequested?"cancelled":"disposed";return}let A=(v,ie)=>provider.d&&Object.prototype.hasOwnProperty.call(provider.d,v)?provider.d[v]:vscode.workspace.getConfiguration("explorerDates").get(v,ie);if(isWebRuntime&&A("webDiagnosticsCanary",!1)&&isWebDiagnosticsEnabled&&isWebDiagnosticsEnabled()&&decorationDiagCount=provider.w;if(provider.ee>provider.w*.8&&ye){diagLogOnce("decorations-backpressure","warn","Decoration backpressure fallback active");let v=provider.te(e,Date.now());return y=v?.badge||null,f=!!v?.color,g=v?.color&&v?.color.id?v.color.id:v?.color||null,h=v?.propagate,i="backpressure",v}provider.re(),provider._metrics.cacheMisses++;let P=null;if(!ge&&provider._workspaceIntelligence?.incrementalIndexer){let v=provider._workspaceIntelligence.incrementalIndexer.getIndexedStat(b);v&&(P=v)}let Ue=Date.now();if(!P){try{P=await provider._fileSystem.stat(e)}catch(v){if(provider._metrics.fileStatTimeMs+=Date.now()-Ue,provider._metrics.fileStatCalls++,provider.ne(v)){i="stat-not-found";return}if(Zt!=="file"){i="stat-failed";return}throw i="stat-failed",v}provider._workspaceIntelligence?.incrementalIndexer&&provider._workspaceIntelligence.incrementalIndexer.primeFromStat(e,P)}if(provider._metrics.fileStatTimeMs+=Date.now()-Ue,provider._metrics.fileStatCalls++,!(typeof P.isFile=="function"?P.isFile():!0)){i="not-regular-file";return}l=!0;let w=null;try{typeof provider.T=="function"&&(w=await provider.T(e,P,{filePath:b,fileLabel:X}))}catch(v){u={source:"unknown",gitAvailable:!1,gitError:v?.message?`resolver-error:${v.message}`:"resolver-error",repoMatched:null,pathAttempted:null}}if((!w||w.bucket==="unknown"||w.source==="unknown")&&!A("freshnessShowUnknown",!0)){i="freshness-unknown";return}let be=A("colorScheme","none");provider._performanceMode&&be!=="custom"&&(be="none");let Jt=A("fileSizeFormat","auto"),B=provider.A,Qt=B&&typeof B.h=="function"?B.h:provider.h,er=B&&typeof B.acquireDecorationFromPool=="function"?B.acquireDecorationFromPool:provider.oe,Ee=formatBadge(w?.bucket||"unknown",w?.source||"unknown",N,w?.confidence||"low");if(!Ee){i="badge-suppressed";return}let W=w?.exactTimestamp?provider.ie(new Date(w.exactTimestamp),be,b):void 0,tr=formatTooltip(w,N)||await Qt({filePath:b,resourceUri:e,stat:P,badgeDetails:{},gitBlame:null,shouldUseAccessibleTooltips:!1,fileSizeFormat:Jt,isCodeFile:!1}),De=er({badge:Ee,tooltip:tr,color:W});return g=W&&typeof W=="object"&&"id"in W?W.id:W||null,f=!!W,y=String(Ee||""),h=De?.propagate,typeof g=="string"&&g.startsWith("explorerDates.customColor.")&&!CONTRIBUTED_CUSTOM_COLOR_TOKENS.has(g)&&diagLogOnce(`missing-custom-color-${g}`,"warn","Custom color token missing from contributes.colors",{colorId:g,knownTokens:Array.from(CONTRIBUTED_CUSTOM_COLOR_TOKENS)}),c=w?.exactTimestamp||null,u=u||{source:w?.source||"unknown",bucket:w?.bucket||"unknown",confidence:w?.confidence||"low",reason:w?.reason||null,attempts:w?.attempts||null,gitAvailable:w?.source==="git",gitError:null,repoMatched:null,pathAttempted:null},provider.ae(Y,De,X,e,w),De}),o}catch(b){a=b?.name||"Error",s=b?.message||String(b),i=i||"exception";return}finally{if(o){if(d==null)try{d=Object.keys(o||{})}catch{d=null}if(y==null&&typeof o.badge<"u"&&(y=o.badge),h==null&&typeof o.propagate<"u"&&(h=o.propagate),g==null&&typeof o.color<"u")try{g=o.color&&o.color.id?o.color.id:o.color}catch{g=o.color}f==null&&typeof g<"u"&&(f=!!g)}let b={uri:e?getFileName(getUriPath(e)||""):null,scheme:n,isCanary:k,badge:y,hasColor:f,color:g,propagate:h,decorationKeys:d,nullReason:o?null:i||"unknown",timestampSource:u?.source||(l?"none":"not-attempted"),gitRecencyAvailable:!!u?.gitAvailable,gitRecencyError:u?.gitError||null,resolvedTimestampMs:c,gitRepoMatched:u?.repoMatched??null,gitPathAttempted:u?.pathAttempted||null,freshnessBucket:u?.bucket||null,freshnessSource:u?.source||null,freshnessConfidence:u?.confidence||null,freshnessReason:u?.reason||null,freshnessAttempts:u?.attempts||null,exceptionName:a,exceptionMessage:s};H(b)}}return{provideDecoration}}module.exports={createDecorationProviderHelpers}});var Tt=E((ao,wt)=>{function Ct(e){!e._allocationTelemetryEnabled||e._telemetryReportTimer||(e._telemetryReportTimer=setTimeout(()=>{e._telemetryReportTimer=null,kt(e),Ct(e)},e._telemetryReportInterval))}function kt(e){let t=e.getMetrics().allocationTelemetry,r=t.decorationPool.allocations+t.badgeFlyweight.allocations+t.readableFlyweight.allocations,n=t.decorationPool.reuses+t.badgeFlyweight.reuses+t.readableFlyweight.reuses;(r>0||n>0)&&e._logger?.info?.("\u{1F9EE} Allocation telemetry report",{timestamp:new Date().toISOString(),pool:{allocations:t.decorationPool.allocations,reuses:t.decorationPool.reuses,reuseRate:t.decorationPool.reusePercent+"%"},badgeFlyweight:{allocations:t.badgeFlyweight.allocations,reuses:t.badgeFlyweight.reuses,reuseRate:t.badgeFlyweight.reusePercent+"%"},readableFlyweight:{allocations:t.readableFlyweight.allocations,reuses:t.readableFlyweight.reuses,reuseRate:t.readableFlyweight.reusePercent+"%"},summary:{totalAllocations:r,totalReuses:n,overallReuseRate:r+n>0?(n/(r+n)*100).toFixed(1)+"%":"0%"},decorationsProcessed:e._metrics.totalDecorations,cacheHitRate:e.getMetrics().cacheHitRate})}wt.exports={scheduleTelemetryReport:Ct,reportAllocationTelemetry:kt}});var te=E((so,At)=>{var z="__explorerDatesLogger",V=class{constructor(){this.f=null}p(t,r){if(this.f&&typeof this.f[t]=="function")try{return this.f[t](...r)}catch{}switch(t){case"debug":break;case"info":break;case"warn":break;case"error":break;default:break}}debug(...t){return this.p("debug",t)}info(...t){return this.p("info",t)}warn(...t){return this.p("warn",t)}error(...t){return this.p("error",t)}se(t){this.f=t}};function hn(){return typeof global<"u"?(global[z]||(global[z]=new V),global[z]):typeof globalThis<"u"?(globalThis[z]||(globalThis[z]=new V),globalThis[z]):(xe||(xe=new V),xe)}var Pe=class extends V{},xe=null;At.exports={Logger:Pe,getLogger:hn}});var Rt=E((lo,_t)=>{var fe=class extends Error{constructor(t,r,n={}){super(r),this.code=t,this.context=n,this.name="ExtensionError"}},Ft={FILE_PERMISSION_DENIED:"FILE_PERMISSION_DENIED",WORKSPACE_TOO_LARGE:"WORKSPACE_TOO_LARGE",CHUNK_LOAD_FAILED:"CHUNK_LOAD_FAILED"};function yn(e){if(!e)return!1;let t=e.code||e?.name;return["EACCES","EPERM","EROFS","NoPermissions"].includes(t)}var Ie=class extends fe{constructor(t,r,n={}){let{recoverable:o=!0,context:i={}}=n;super(Ft.CHUNK_LOAD_FAILED,`Failed to load ${t}: ${r}`,{chunkName:t,recoverable:o,...i}),this.name="ChunkLoadError",this.chunkName=t,this.recoverable=o}};function bn(e,t,r={}){let n=require("vscode"),{userFacing:o=!0}=r,i=t?.recoverable??!0;o&&!i&&n.window.showErrorMessage(`Explorer Dates: ${e} feature unavailable. Please reinstall or rebuild the extension.`)}_t.exports={ExtensionError:fe,ERROR_CODES:Ft,isPermissionError:yn,ChunkLoadError:Ie,handleChunkFailure:bn}});var xt=E((exports,module)=>{var chunk=null;try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){try{chunk=dynamicRequire("../chunks/utils-shared-chunk")}catch{}try{chunk||(chunk=dynamicRequire("./chunks/utils-shared-chunk"))}catch{}try{chunk||(chunk=dynamicRequire("../chunks/date-helpers-chunk"))}catch{}try{chunk||(chunk=dynamicRequire("./chunks/date-helpers-chunk"))}catch{}}}catch{}if(chunk&&(chunk.ensureDate||chunk.isDateLike||chunk.getCurrentTimestamp))module.exports={ensureDate:chunk.ensureDate,isDateLike:chunk.isDateLike,getCurrentTimestamp:chunk.getCurrentTimestamp};else{let e=function(){return typeof Date=="function"&&Date.now?Date.now():16409952e5},t=function(n){return!!(n&&typeof n=="object"&&typeof n.getTime=="function")},r=function(n){if(t(n))return n;if(typeof n=="number")return new Date(n);if(typeof n=="string"){let o=Date.parse(n);return isNaN(o)?new Date:new Date(o)}return new Date};getCurrentTimestamp=e,isDateLike=t,ensureDate=r,module.exports={ensureDate:r,isDateLike:t,getCurrentTimestamp:e}}var getCurrentTimestamp,isDateLike,ensureDate});var Ot=E((co,Nt)=>{var S=require("vscode"),{isWebEnvironment:Pt}=Z(),{normalizePath:En}=ce(),{ExtensionError:Dn,ERROR_CODES:vn,isPermissionError:Sn}=Rt(),{getEnvironmentContract:Cn,normalizeStat:kn,FORCE_WORKSPACE_FS_ENV:wn}=we(),j;try{let e=Re();e&&(j=e.ensureDate)}catch{}j||(j=xt().ensureDate);var It=typeof process<"u"&&process.env?process.env:{},Lt=It.VSCODE_WEB==="true"||Pt(),C=null;if(!Lt)try{C=require("fs").promises}catch{C=null}var pe=class{constructor(){this.isWeb=Lt||Pt()}r(t){try{return Cn({uri:this.e(t),isWeb:this.isWeb,remoteName:S.env?.remoteName,forceWorkspaceFs:It[wn]==="1"}).filesystem==="workspace.fs"}catch{return!1}}t(t){if(!t)return"";if(typeof t=="string")return t;if(t&&typeof t=="object"&&typeof t.fsPath=="string")return t.fsPath;if(t&&typeof t=="object"&&typeof t.path=="string")return t.path;if(typeof t=="object"){if(typeof t.fsPath=="string")return t.fsPath;if(typeof t.path=="string")return t.path}return String(t)}e(t){if(t&&typeof t=="object"&&typeof t.scheme=="string"&&typeof t.path=="string")return t;if(typeof t=="string"){let r=t.trim(),n=/^[a-zA-Z]:[\\/]/.test(r);if(/^[a-zA-Z][a-zA-Z0-9+.-]*:/.test(r)&&!n){let i=S.Uri.parse(r);if(i.scheme&&i.scheme!=="file")return i}return S.Uri.file(t)}if(t&&typeof t=="object"){if(t.uri&&t.uri!==t)try{return this.e(t.uri)}catch{}if(this.isWeb&&typeof t.scheme=="string"&&typeof t.path=="string")return S.Uri.from({scheme:t.scheme,authority:t.authority||"",path:t.path||"",query:t.query||"",fragment:t.fragment||""});if(typeof t.fsPath=="string"&&t.fsPath.length>0)return S.Uri.file(t.fsPath);if(typeof t.path=="string"&&t.path.length>0)return this.isWeb&&typeof t.scheme=="string"&&t.scheme!=="file"?S.Uri.from({scheme:t.scheme,authority:t.authority||"",path:t.path,query:t.query||"",fragment:t.fragment||""}):S.Uri.file(t.path);if(typeof t.href=="string"&&t.href.length>0)return S.Uri.parse(t.href);if(typeof t.scheme=="string")return S.Uri.from({scheme:t.scheme,authority:t.authority||"",path:t.path||t.fsPath||"",query:t.query||"",fragment:t.fragment||""});if(typeof t.toString=="function")try{let r=t.toString(!0);if(r&&r!=="[object Object]")return S.Uri.parse(r)}catch{let r=t.toString();if(r&&r!=="[object Object]")return S.Uri.parse(r)}}throw new Error(`Unsupported target type: ${typeof t}`)}async stat(t){let r=this.r(t);if(!this.isWeb&&C&&!r)return C.stat(this.t(t));let n=this.e(t),o=await S.workspace.fs.stat(n),i=kn(o);return{...i,mtime:i.mtimeMs===null?j(o.mtime):new Date(i.mtimeMs),ctime:i.ctimeMs===null?j(o.ctime):new Date(i.ctimeMs),birthtime:i.ctimeMs===null?j(o.ctime):new Date(i.ctimeMs),isFile:()=>o.type===S.FileType.File,isDirectory:()=>o.type===S.FileType.Directory}}async readFile(t,r="utf8"){let n=this.r(t);if(!this.isWeb&&C&&!n)return C.readFile(this.t(t),r);let o=this.e(t),i=await S.workspace.fs.readFile(o);return r===null||r==="binary"?i:new TextDecoder(r).decode(i)}async writeFile(t,r,n="utf8"){let o=this.t(t);try{let i=this.r(t);if(!this.isWeb&&C&&!i)return C.writeFile(o,r,n);let a=this.e(t),s=typeof r=="string"?new TextEncoder().encode(r):r;await S.workspace.fs.writeFile(a,s)}catch(i){this.y("write file",o,i)}}async rename(t,r,n={overwrite:!1}){let o=this.t(t),i=this.t(r);try{let a=this.r(t)||this.r(r);if(!this.isWeb&&C&&!a)return C.rename(o,i);if(typeof S.workspace.fs.rename=="function")await S.workspace.fs.rename(this.e(t),this.e(r),n);else if(this.e(t).scheme==="file"&&this.e(r).scheme==="file")await(C||require("fs").promises).rename(o,i);else throw new Error("The active filesystem provider cannot rename report output.")}catch(a){this.y("rename file",`${o} -> ${i}`,a)}}async mkdir(t,r={recursive:!0}){let n=this.t(t);try{let o=this.r(t);if(!this.isWeb&&C&&!o)return C.mkdir(n,r);let i=this.e(t);await S.workspace.fs.createDirectory(i)}catch(o){this.y("create directory",n,o)}}async readdir(t,r={withFileTypes:!1}){let n=this.r(t);if(!this.isWeb&&C&&!n)return C.readdir(this.t(t),r);let o=this.e(t),i=await S.workspace.fs.readDirectory(o);return r.withFileTypes?i.map(([a,s])=>({name:a,isDirectory:()=>s===S.FileType.Directory,isFile:()=>s===S.FileType.File})):i.map(([a])=>a)}async delete(t,r={recursive:!1}){let n=this.r(t);if(!this.isWeb&&C&&!n){let i=this.t(t);return r.recursive?C.rm?C.rm(i,r):C.rmdir(i,r):C.unlink(i)}let o=this.e(t);await S.workspace.fs.delete(o,r)}async exists(t){try{return await this.stat(t),!0}catch{return!1}}async ensureDirectory(t){let r=En(this.t(t));await this.mkdir(r,{recursive:!0})}y(t,r,n){throw Sn(n)?new Dn(vn.FILE_PERMISSION_DENIED,`Permission denied while attempting to ${t}`,{path:r,code:n.code}):n}},Tn=new pe;Nt.exports={FileSystemAdapter:pe,fileSystem:Tn}});var Ut=E((uo,Mt)=>{var{MAX_BADGE_LENGTH:Wt}=J();function An(e=0,t="auto"){let r=typeof e=="number"&&!Number.isNaN(e)?e:0;if(t==="bytes")return`~${r}B`;let n=r/1024;if(t==="kb")return`~${n.toFixed(1)}K`;let o=n/1024;return t==="mb"?`~${o.toFixed(1)}M`:r<1024?`~${r}B`:n<1024?`~${Math.round(n)}K`:`~${o.toFixed(1)}M`}function Fn(e){if(e)return e.length>Wt?e.substring(0,Wt):e}Mt.exports={formatFileSize:An,trimBadge:Fn}});var qt=E((exports,module)=>{var{getLogger}=te(),env=typeof process<"u"&&process.env?process.env:{};function createFallbackVscodeMinimal(){return{workspace:{workspaceFolders:[],getConfiguration:()=>({get:()=>{},async update(){},inspect:()=>({defaultValue:void 0,globalValue:void 0,workspaceValue:void 0,workspaceFolderValue:void 0})})},ConfigurationTarget:{Global:1,Workspace:2,WorkspaceFolder:3}}}function resolveVscodeMinimal(){try{return require("vscode")}catch{return createFallbackVscodeMinimal()}}var MinimalSettingsCoordinator=class{constructor(t={}){this.F=t.defaultSection||"explorerDates",this.m=new Map,this.v=new Map,this.le=Number(env.EXPLORER_DATES_LOCK_WAIT_WARN_MS||1e3),this._logger=getLogger()}_(t,r){let o=(this.m.get(t)||Promise.resolve()).then(()=>r()),i=o.catch(()=>{});return this.m.set(t,i),o.finally(()=>{this.m.get(t)===i&&this.m.delete(t)}),o}b(t,r){return resolveVscodeMinimal().workspace.getConfiguration(t||void 0,r)}c(t,r){let n=r||this.F;return n?t.startsWith(`${n}.`)?{section:n,key:t.slice(n.length+1),fullKey:t}:t.includes(".")?{section:void 0,key:t,fullKey:t}:{section:n,key:t,fullKey:`${n}.${t}`}:{section:void 0,key:t,fullKey:t}}async updateSetting(t,r,n={}){return this._(this.c(t,n.section).fullKey,async()=>{let o=this.c(t,n.section),i=this.b(o.section,n.resource);try{let a=this.R(n.scope,n.resource);return await i.update(o.key,r,a),{key:o.fullKey,updated:!0}}catch(a){try{this._logger.warn(`Configuration update failed for ${o.fullKey}: ${a&&a.message}`)}catch{}return{key:o.fullKey,updated:!1,error:a}}})}async applySettings(t,r={}){let n=Array.isArray(t)?t:Object.entries(t).map(([a,s])=>({key:a,value:s})),o=[];for(let a of n)try{o.push(await this.updateSetting(a.key,a.value,r))}catch(s){o.push({key:this.c(a.key,r.section).fullKey,updated:!1,error:s})}let i=o.filter(a=>a&&a.error);if(i.length>0){let a=i.map(u=>`${u.key}: ${u.error&&u.error.message?u.error.message:String(u.error)}`),s=new Error(`Failed to apply ${i.length} setting(s): ${a.join("; ")}`);throw s.details=i,s}return o}R(t,r){return t&&t!=="auto"?this.x(t)||resolveVscodeMinimal().ConfigurationTarget.Workspace:r?resolveVscodeMinimal().ConfigurationTarget.WorkspaceFolder:resolveVscodeMinimal().workspace.workspaceFolders&&resolveVscodeMinimal().workspace.workspaceFolders.length>0?resolveVscodeMinimal().ConfigurationTarget.Workspace:resolveVscodeMinimal().ConfigurationTarget.Global}x(t){switch(t){case"user":return resolveVscodeMinimal().ConfigurationTarget.Global;case"workspace":return resolveVscodeMinimal().ConfigurationTarget.Workspace;case"workspaceFolder":return resolveVscodeMinimal().ConfigurationTarget.WorkspaceFolder;default:return}}getValue(t,r={}){let{section:n,resource:o}=r||{},i=this.c(t,n);return this.b(i.section,o).get(i.key)}inspect(t,r={}){let{section:n,resource:o}=r||{},i=this.c(t,n);return this.b(i.section,o).inspect(i.key)}async clearSetting(t,r={}){return this.updateSetting(t,void 0,r)}getLockWaitStats(){let t={};for(let[r,n]of this.v.entries())t[r]={...n};return t}resetLockWaitStats(){this.v.clear()}},cachedCoordinator=null;function getSettingsCoordinator(options){if(!cachedCoordinator||options&&options.forceNew){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=null;try{e=dynamicRequire("../chunks/settings-coordinator-impl-chunk")}catch{}try{e||(e=dynamicRequire("../chunks/settingsCoordinator-impl-chunk"))}catch{}if(e&&typeof e.createSettingsCoordinatorImpl=="function")return cachedCoordinator=e.createSettingsCoordinatorImpl(options),cachedCoordinator}}catch{}try{let{WEB_CHUNK_GLOBAL_KEY:e,LEGACY_WEB_CHUNK_GLOBAL_KEY:t}=J(),r=typeof globalThis<"u"&&(globalThis[e]||globalThis[t])||null;if(r&&r.settingsCoordinatorImpl&&typeof r.settingsCoordinatorImpl.createSettingsCoordinatorImpl=="function")return cachedCoordinator=r.settingsCoordinatorImpl.createSettingsCoordinatorImpl(options),cachedCoordinator}catch{}cachedCoordinator=new MinimalSettingsCoordinator(options)}return cachedCoordinator}module.exports={getSettingsCoordinator,MinimalSettingsCoordinator}});var zt=E((fo,$t)=>{var{normalizePath:Le,getUriPath:_n}=ce(),{getLogger:Rn}=te(),re=typeof process<"u"&&process.env?process.env:{},xn=Rn(),ne=240,Ne=255,Ht=/[\x00-\x1f\x7f<>:"|?*]/g,Pn=/[\x00-\x1f\x7f<>:"|?*]/,In=[/\.\./,/\.\.[\\/]/,/[\\/]\.\./,/^\.\.$/,/^\.\.[\\/]/,/[\\/]\.\.$/],Kt=new Set(["CON","PRN","AUX","NUL","COM1","COM2","COM3","COM4","COM5","COM6","COM7","COM8","COM9","LPT1","LPT2","LPT3","LPT4","LPT5","LPT6","LPT7","LPT8","LPT9"]),Bt=new Set([".exe",".scr",".bat",".cmd",".pif",".vbs",".js",".jar",".com",".msi",".dll",".dmg",".pkg",".deb",".rpm"]),Ln=new Set([".js",".jsx",".ts",".tsx",".mjs",".cjs",".py",".rb",".rs",".go",".php",".java",".kt",".swift",".cs",".c",".cpp",".h",".hpp",".html",".css",".scss",".less",".json",".jsonc",".md",".mdx",".txt",".sh",".bash",".yml",".yaml"]),Nn=()=>re.EXPLORER_DATES_TEST_MODE==="1"||re.NODE_ENV==="test"||re.VSCODE_TEST==="1"?"test":re.EXPLORER_DATES_DEV_MODE==="1"||re.NODE_ENV==="development"?"development":"production",G=class{static hasPathTraversal(t){let r=this.i(t);if(!r||typeof r!="string")return!1;let n=Le(r);return In.some(o=>o.test(n))}static hasDangerousChars(t){let r=this.i(t);return!r||typeof r!="string"?!1:Pn.test(r)}static isWindowsReservedName(t){if(!t||typeof t!="string")return!1;let r=t.split(".")[0].toUpperCase();return Kt.has(r)}static isSuspiciousExtension(t,r={}){let{workspaceContext:n=!0}=r;if(!t||typeof t!="string")return!1;let o=t.toLowerCase(),i=o.startsWith(".")?o:`.${o}`;return n&&Ln.has(i)?!1:Bt.has(i)}static isPathTooLong(t){let r=this.i(t);return!r||typeof r!="string"?!1:r.length>ne}static isFilenameTooLong(t){return!t||typeof t!="string"?!1:t.length>Ne}static validatePath(t,r={}){let{allowSuspiciousExtensions:n=!1,allowWindowsReservedNames:o=!1,strictLength:i=!0,workspaceContext:a=!0}=r,s=this.i(t),u=[],l=[];if(!s||typeof s!="string")return{isValid:!1,path:s,issues:["Invalid or empty path"],warnings:[],isSafe:!1};this.hasPathTraversal(s)&&u.push("Path contains directory traversal attempts"),this.hasDangerousChars(s)&&u.push("Path contains dangerous characters"),i&&this.isPathTooLong(s)&&u.push(`Path exceeds maximum length (${ne})`);let c=s.split(/[/\\]/).pop()||"";i&&this.isFilenameTooLong(c)&&u.push(`Filename exceeds maximum length (${Ne})`),!o&&this.isWindowsReservedName(c)&&l.push("Filename is a Windows reserved name");let d=c.includes(".")?c.split(".").pop():"";return!n&&this.isSuspiciousExtension(d,{workspaceContext:a})&&l.push("File extension is potentially suspicious"),{isValid:u.length===0,path:s,filename:c,extension:d,issues:u,warnings:l,isSafe:u.length===0&&l.length===0}}static sanitizePath(t,r={}){let{replacementChar:n="_",preserveExtension:o=!0}=r,i=this.i(t);if(!i||typeof i!="string")return"";i=i.replace(/\x00/g,"");let a=i.startsWith("/"),s=Le(i).split("/").filter(Boolean),u=[];for(let l of s){if(l===".."){u.length>0&&u.pop();continue}l!=="."&&u.push(l)}if(i=(a?"/":"")+u.join("/"),i=i.replace(Ht,n),o){let l=i.split("/"),c=l[l.length-1];if(c&&this.isWindowsReservedName(c)){let d=c.split(".");d[0]=d[0]+"_safe",l[l.length-1]=d.join("."),i=l.join("/")}}return i.length>ne&&(i=i.substring(0,ne),xn.warn("Path truncated due to length:",i)),i}static isWithinBoundaries(t,r=[]){let n=this.i(t);if(!n||!Array.isArray(r)||r.length===0)return!1;let o=n.split("/").filter(Boolean),i=[];for(let s of o)s===".."?i.length>0&&i.pop():s!=="."&&i.push(s);let a="/"+i.join("/");return r.some(s=>{let u=Le(s);return a.startsWith(u)})}static validateRegexPattern(t){if(!t||typeof t!="string")return{isValid:!1,issue:"Invalid pattern"};let r=[/\([^)]*\+[^)]*\)\+/,/\([^)]*\*[^)]*\)\*/,/\([^)]*\+[^)]*\)\*/,/\([^)]*\*[^)]*\)\+/,/\+.*\*|{\d+,}.*\*/,/\([^|]*\|[^)]*\)\*/];for(let n of r)if(n.test(t))return{isValid:!1,issue:"Pattern may cause catastrophic backtracking (ReDoS)"};try{return new RegExp(t),{isValid:!0}}catch(n){return{isValid:!1,issue:`Invalid regex syntax: ${n.message}`}}}static i(t){if(!t)return"";if(typeof t=="string")return t;try{return _n(t)}catch{return String(t)}}},Oe=class{static validateFileUri(t,r=[]){if(!t||typeof t!="object")return{isValid:!1,issue:"Invalid URI object"};if(t.scheme!=="file"&&t.scheme!=="vscode-vfs")return{isValid:!1,issue:`Unsupported URI scheme: ${t.scheme}`};let n=G.validatePath(t);return n.isValid?r.length>0&&!G.isWithinBoundaries(t,r)?{isValid:!1,issue:"Path is outside allowed workspace boundaries"}:{isValid:!0,warnings:n.warnings}:{isValid:!1,issue:`Path validation failed: ${n.issues.join(", ")}`}}static validateExclusionPatterns(t){if(!Array.isArray(t))return{isValid:!1,issue:"Patterns must be an array"};let r=[],n=[];for(let o of t){if(typeof o!="string"){n.push(`Invalid pattern type: ${typeof o}`);continue}let i=o.replace(/\./g,"\\.").replace(/\*/g,".*").replace(/\?/g,"."),a=G.validateRegexPattern(i);r.push({pattern:o,isValid:a.isValid,issue:a.issue}),a.isValid||n.push(`Pattern "${o}": ${a.issue}`)}return{isValid:n.length===0,results:r,issues:n}}};$t.exports={SecurityValidator:G,SecureFileOperations:Oe,detectSecurityEnvironment:Nn,MAX_SAFE_PATH_LENGTH:ne,MAX_SAFE_FILENAME_LENGTH:Ne,DANGEROUS_PATH_CHARS:Ht,WINDOWS_RESERVED_NAMES:Array.from(Kt),SUSPICIOUS_EXTENSIONS:Array.from(Bt)}});var Vt=E((exports,module)=>{var CHUNK_SIZES={onboarding:34,analysisCommands:23,exportReporting:17,extensionApi:15,workspaceTemplates:14,advancedCache:28,workspaceIntelligence:31,incrementalWorkers:19},BASE_BUNDLE_SIZE=99;function _getPresetDefinitionsSync(){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=dynamicRequire("./chunks/preset-definitions-chunk");if(e&&e.PRESET_DEFINITIONS)return e.PRESET_DEFINITIONS}}catch{}let FALLBACK_PRESET={minimal:{id:"minimal",name:"Minimal",description:"Lean setup that prioritizes responsiveness in large repos.",targetScenarios:["Large repos","Low resources","Minimal UI"],settings:{"explorerDates.performanceMode":!0,"explorerDates.showDateDecorations":!0}},balanced:{id:"balanced",name:"Balanced",description:"Default feature mix for most workspaces.",targetScenarios:["General development","Mixed workloads"],settings:{"explorerDates.enableOnboardingSystem":!0,"explorerDates.enableAnalysisCommands":!0,"explorerDates.performanceMode":!1,"explorerDates.dateDecorationFormat":"smart","explorerDates.colorScheme":"recency","explorerDates.badgePriority":"time"}},"web-development":{id:"web-development",name:"Web Development",description:"Optimized for frontend and full-stack web projects.",targetScenarios:["Web apps","Frontend teams"],settings:{"explorerDates.enableOnboardingSystem":!0,"explorerDates.dateDecorationFormat":"smart","explorerDates.colorScheme":"file-type","explorerDates.badgePriority":"time"}},enterprise:{id:"enterprise",name:"Enterprise",description:"Full feature set with reporting and integrations enabled.",targetScenarios:["Large teams","Governed environments"],settings:{"explorerDates.enableExportReporting":!0,"explorerDates.enableExtensionApi":!0,"explorerDates.dateDecorationFormat":"smart","explorerDates.colorScheme":"recency","explorerDates.badgePriority":"time"}},"data-science":{id:"data-science",name:"Data Science",description:"Insight-focused profile for data-heavy projects.",targetScenarios:["Data analysis","Research workflows"],settings:{"explorerDates.enableWorkspaceIntelligence":!0,"explorerDates.dateDecorationFormat":"iso-detailed","explorerDates.colorScheme":"recency","explorerDates.badgePriority":"time"}}};return FALLBACK_PRESET}var PRESET_DEFINITIONS=_getPresetDefinitionsSync(),RESTART_REQUIRED_SETTINGS=new Set(["enableOnboardingSystem","enableAnalysisCommands","enableExportReporting","enableExtensionApi","enableWorkspaceTemplates","enableAdvancedCache","enableWorkspaceIntelligence","enableIncrementalWorkers","performanceMode","smartFileWatching"]);function calculateBundleSize(e){let t=BASE_BUNDLE_SIZE;return e["explorerDates.enableOnboardingSystem"]&&(t+=CHUNK_SIZES.onboarding),e["explorerDates.enableAnalysisCommands"]&&(t+=CHUNK_SIZES.analysisCommands),e["explorerDates.enableExportReporting"]&&(t+=CHUNK_SIZES.exportReporting),e["explorerDates.enableExtensionApi"]&&(t+=CHUNK_SIZES.extensionApi),e["explorerDates.enableWorkspaceTemplates"]&&(t+=CHUNK_SIZES.workspaceTemplates),e["explorerDates.enableAdvancedCache"]&&(t+=CHUNK_SIZES.advancedCache),e["explorerDates.enableWorkspaceIntelligence"]&&(t+=CHUNK_SIZES.workspaceIntelligence),e["explorerDates.enableIncrementalWorkers"]&&(t+=CHUNK_SIZES.incrementalWorkers),t}function getDefaultPresetForProfile(e){let t=PRESET_DEFINITIONS;switch(e){case"minimal":case"extreme":return t.minimal||t.minimal;case"balanced":return t.balanced||t.balanced;case"web-development":return t["web-development"]||t["web-development"];case"data-science":return t["data-science"]||t["data-science"];case"enterprise":return t.enterprise||t.enterprise;default:return t.balanced||t.balanced}}module.exports={PRESET_DEFINITIONS,CHUNK_SIZES,BASE_BUNDLE_SIZE,RESTART_REQUIRED_SETTINGS,calculateBundleSize,getDefaultPresetForProfile}});var Gt=E((po,jt)=>{var me={onboarding:"src/chunks/onboarding-chunk",onboardingAssets:"src/chunks/onboarding-assets-chunk",reporting:"src/chunks/reporting-chunk",templates:"src/chunks/templates-chunk",analysis:"src/chunks/analysis-chunk",diagnostics:"src/chunks/diagnostics-chunk",extensionApi:"src/chunks/extension-api-chunk",advancedCache:"src/chunks/advancedCache-chunk",batchProcessor:"src/chunks/batchProcessor-chunk",decorationsAdvanced:"src/chunks/decorations-advanced",decorationsStatic:"src/chunks/decorations-static",workspaceIntelligence:"src/chunks/workspaceIntelligence",decorationLogic:"src/chunks/decoration-logic-chunk",decorationProvide:"src/chunks/decoration-provide-chunk",decorationHelpers:"src/chunks/decoration-helpers-chunk",decorationBatch:"src/chunks/decoration-batch-chunk",decorationWorkspaceIntel:"src/chunks/decoration-workspace-intel-chunk",decorationTelemetry:"src/chunks/decoration-telemetry-chunk",decorationRefresh:"src/chunks/decoration-refresh-chunk",decorationMemory:"src/chunks/decoration-memory-chunk",decorationPool:"src/chunks/decoration-pool-chunk",providerInit:"src/chunks/provider-init-chunk",fileDateProviderImpl:"src/chunks/file-date-provider-impl",fileDateProviderImplExport:"src/chunks/file-date-provider-impl-export",utilsShared:"src/chunks/utils-shared-chunk",incrementalWorkers:"src/chunks/incrementalWorkers",incrementalIndexer:"src/chunks/incrementalIndexer-chunk",uiAdapters:"src/chunks/ui-adapters",gitInsights:"src/chunks/gitInsights-chunk",smartWatcherFallback:"src/chunks/smartWatcherFallback-chunk",runtimeManagement:"src/chunks/runtime-management",runtimeManagementHeavy:"src/chunks/runtime-management-heavy",teamPersistence:"src/chunks/team-persistence-chunk",teamPersistenceUI:"src/chunks/team-persistence-ui-chunk",teamPersistenceLogic:"src/chunks/team-persistence-logic-chunk",settingsCoordinatorImpl:"src/chunks/settings-coordinator-impl-chunk",logger:"src/chunks/logger-chunk",loggerImpl:"src/chunks/logger-impl-chunk"};function On(e){return me[e]||null}function Wn(){return Object.keys(me)}function Mn(e){let t={};for(let[r,n]of Object.entries(me))t[r]=()=>e(`./${n}`);return t}var Un=new Set(["gitInsights","reporting","templates","advancedCache","runtimeManagementHeavy","incrementalWorkers"]);jt.exports={CHUNK_MAP:me,WEB_EXCLUDED_CHUNKS:Un,getChunkSourcePath:On,getAllChunkNames:Wn,generateDevLoaderMap:Mn}});var Xt=E((exports,module)=>{var FEATURE_FLAGS_GLOBAL_KEY="__explorerDatesFeatureFlags";function registerFeatureFlagsGlobal(e){if(e)try{typeof globalThis<"u"&&(globalThis[FEATURE_FLAGS_GLOBAL_KEY]=e)}catch{}}function loadFeatureFlagsFallback(){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function")return dynamicRequire("../featureFlags")}catch{}return null}function getFeatureFlagsGlobal(){try{if(typeof globalThis<"u"&&globalThis[FEATURE_FLAGS_GLOBAL_KEY])return globalThis[FEATURE_FLAGS_GLOBAL_KEY]}catch{}return loadFeatureFlagsFallback()}module.exports={FEATURE_FLAGS_GLOBAL_KEY,registerFeatureFlagsGlobal,getFeatureFlagsGlobal}});var We=E((exports,module)=>{var getLogger=()=>{try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=dynamicRequire("./chunks/logger-chunk");if(e&&typeof e.getLogger=="function")return getLogger=e.getLogger,getLogger()}}catch{}try{return getLogger=te().getLogger,getLogger()}catch{return getLogger=()=>({debug:(()=>{})?.bind(console)||console.log,info:(()=>{}).bind(console),warn:(()=>{}).bind(console),error:(()=>{}).bind(console)}),getLogger()}},{CHUNK_SIZES}=Vt(),{getChunkSourcePath,getAllChunkNames}=Gt(),{registerFeatureFlagsGlobal}=Xt(),{isWebEnvironment}=Z(),featureLogger=null,env=typeof process<"u"&&process.env?process.env:{},DEFAULT_CHUNK_TIMEOUT_MS=Number(env.EXPLORER_DATES_CHUNK_TIMEOUT||(env.NODE_ENV==="test"?1e3:5e3)),NETWORK_ERROR_CODES=new Set(["ENOTFOUND","ECONNRESET","ECONNREFUSED","EAI_AGAIN","ETIMEDOUT","EHOSTUNREACH"]),BUILT_CHUNK_CACHE=new Map,CHUNK_METHOD_ALIASES={reporting:"exportReporting",templates:"workspaceTemplates",analysis:"analysisCommands"},DEV_CHUNK_PATH_CACHE=new Map,LAST_FEATURE_FAILURES=new Map;function getDevChunkImportPath(e){if(DEV_CHUNK_PATH_CACHE.has(e))return DEV_CHUNK_PATH_CACHE.get(e);let t=getChunkSourcePath(e);if(!t)return DEV_CHUNK_PATH_CACHE.set(e,null),null;let r=t;return r.startsWith("src/")&&(r=r.slice(4)),r.startsWith("./")||(r=`./${r}`),DEV_CHUNK_PATH_CACHE.set(e,r),r}function resolveNodeDependencies(){if(nativeDepsResolved)return!!(nativePath&&nativeFs);if(nativeDepsResolved=!0,!isNodeLikeRuntime())return!1;try{nativePath=eval("require")("path"),nativeFs=eval("require")("fs")}catch{nativePath=null,nativeFs=null}return!!(nativePath&&nativeFs)}var nativeDepsResolved=!1,nativePath=null,nativeFs=null;function isWebRuntime(){try{return isWebEnvironment()?!0:typeof process<"u"&&process?.env?.VSCODE_WEB==="true"}catch{return!1}}function isNodeLikeRuntime(){return typeof process<"u"&&!!process.versions?.node&&!isWebRuntime()}function getChunkTimeoutMs(){return DEFAULT_CHUNK_TIMEOUT_MS>0?DEFAULT_CHUNK_TIMEOUT_MS:0}function logFeature(e,t,r){featureLogger||(featureLogger=getLogger());let n=featureLogger;typeof n[e]=="function"?n[e](t,r):n.info(t,r)}function logFeatureDisabled(e,t){logFeature("info","Feature disabled via configuration",{feature:e,savedKB:t&&CHUNK_SIZES[t]!==void 0?CHUNK_SIZES[t]:void 0})}function isLikelyNetworkIssue(e){if(!e)return!1;if(e.code&&NETWORK_ERROR_CODES.has(e.code))return!0;let t=(e.message||"").toLowerCase();return t.includes("network")||t.includes("fetch")||t.includes("timed out")}function runWithChunkTimeout(e,t){let r=getChunkTimeoutMs(),n=()=>{try{return Promise.resolve(e())}catch(o){return Promise.reject(o)}};return r?new Promise((o,i)=>{let a=!1,s=setTimeout(()=>{if(a)return;a=!0;let u=new Error(`Chunk "${t}" load timed out after ${r}ms`);u.code="CHUNK_TIMEOUT",i(u)},r);n().then(u=>{a||(a=!0,clearTimeout(s),o(u))}).catch(u=>{a||(a=!0,clearTimeout(s),i(u))})}):n()}function logResolverFailure(e,t){if(!t)return;let r={chunkName:e,error:t.message,code:t.code,networkIssue:isLikelyNetworkIssue(t),timedOut:t.code==="CHUNK_TIMEOUT"},n=r.networkIssue||r.timedOut?"warn":"error";logFeature(n,"Chunk resolver failed",r)}function tryLoadBuiltChunk(e){if(!e||!resolveNodeDependencies()||typeof nativeFs?.existsSync!="function")return null;if(BUILT_CHUNK_CACHE.has(e))return BUILT_CHUNK_CACHE.get(e);let t=[];typeof __dirname=="string"&&nativePath&&(t.push(nativePath.join(__dirname,"chunks",`${e}.js`)),t.push(nativePath.join(__dirname,"..","dist","chunks",`${e}.js`)));for(let r of t)try{if(!r||!nativeFs.existsSync(r))continue;let n=require(r),o=n?.default||n;return BUILT_CHUNK_CACHE.set(e,o||null),o&&logFeature("info","Loaded chunk via built artifact fallback",{chunkName:e,path:r}),o}catch(n){logFeature("warn","Built chunk fallback failed",{chunkName:e,path:r,error:n.message})}return BUILT_CHUNK_CACHE.set(e,null),null}function tryRequireDevChunk(e){if(isWebRuntime())return null;let t=getDevChunkImportPath(e);if(!t)return null;try{let r=require(t);return r?.default||r}catch(r){(r.code!=="MODULE_NOT_FOUND"||typeof r.message=="string"&&!r.message.includes(t))&&logFeature("debug","Dev chunk require failed",{chunkName:e,importPath:t,error:r.message})}return null}function tryRequireLocalBuiltChunk(e){if(isWebRuntime())return null;let t=`./chunks/${e}`;try{let r=require(t);return r?.default||r}catch(r){r.code==="MODULE_NOT_FOUND"||logFeature("debug","Local chunk require failed",{chunkName:e,importPath:t,error:r.message})}return null}function getSavingsKey(e){return e in CHUNK_SIZES?e:CHUNK_METHOD_ALIASES[e]||null}function announceChunkSavings(e){let t=getSavingsKey(e);if(!t)return;let r=CHUNK_SIZES[t];if(!r)return;let o=`\u{1F4BE} ${t===e||!e?t:`${t} (requested as "${e}")`} chunk unavailable - keeping the feature disabled is saving ~${r}KB`;logFeature("info","Chunk savings applied",{chunkName:t,requestedName:e,savedKB:r})}var getFeatureConfig=()=>{try{let t=require("vscode").workspace.getConfiguration("explorerDates"),r=isWebRuntime(),n=o=>r?!1:o;return{enableOnboarding:t.get("enableOnboardingSystem",!0),enableExportReporting:n(t.get("enableExportReporting",!0)),enableWorkspaceTemplates:n(t.get("enableWorkspaceTemplates",!0)),enableAnalysisCommands:t.get("enableAnalysisCommands",!0),enableAdvancedCache:n(t.get("enableAdvancedCache",!0)),enableWorkspaceIntelligence:n(t.get("enableWorkspaceIntelligence",!0)),enableIncrementalWorkers:n(t.get("enableIncrementalWorkers",!1)),enableGitInsights:n(t.get("enableGitInsights",!0)),enableExtensionApi:t.get("enableExtensionApi",!0)}}catch{let e=isWebRuntime(),t=r=>e?!1:r;return{enableOnboarding:!0,enableExportReporting:t(!0),enableWorkspaceTemplates:t(!0),enableAnalysisCommands:!0,enableAdvancedCache:t(!0),enableWorkspaceIntelligence:t(!0),enableIncrementalWorkers:t(!1),enableGitInsights:t(!0),enableExtensionApi:!0}}},featureLoaders=new Map,chunkResolver=null;function setFeatureChunkResolver(e){if(e&&typeof e!="function")throw new Error("Feature chunk resolver must be a function");chunkResolver=e||null}function registerFeatureLoader(e,t){if(typeof t!="function")throw new Error(`Feature loader for "${e}" must be a function`);featureLoaders.set(e,t)}function unregisterFeatureLoader(e){featureLoaders.delete(e)}function clearFeatureLoaders(){featureLoaders.clear()}async function loadFeatureModule(e){LAST_FEATURE_FAILURES.delete(e);let t=featureLoaders.get(e);if(!t&&chunkResolver&&(t=()=>chunkResolver(e)),!t)return logFeature("warn","No loader registered for feature",{feature:e}),null;try{return await runWithChunkTimeout(()=>t(),e)}catch(r){return LAST_FEATURE_FAILURES.set(e,r),logFeature("warn","Feature loader failed",{feature:e,error:r.message,code:r.code,networkIssue:isLikelyNetworkIssue(r)}),announceChunkSavings(e),null}}function getFeatureLoadFailure(e){return LAST_FEATURE_FAILURES.get(e)}function registerDefaultLoaders(){getAllChunkNames().forEach(t=>{featureLoaders.has(t)||registerFeatureLoader(t,createDefaultLoader(t))})}function createDefaultLoader(e){return async()=>{if(chunkResolver&&typeof chunkResolver=="function")try{let o=await runWithChunkTimeout(()=>chunkResolver(e),e);if(o)return o;logFeature("info","Chunk resolver returned no module",{chunkName:e})}catch(o){logResolverFailure(e,o)}let t=tryRequireDevChunk(e);if(t)return t;let r=tryRequireLocalBuiltChunk(e);if(r)return r;let n=tryLoadBuiltChunk(e);return n||(logFeature("warn","No built artifact available for chunk",{chunkName:e}),null)}}var featureFlags={async onboarding(){return getFeatureConfig().enableOnboarding?loadFeatureModule("onboarding"):(logFeatureDisabled("onboarding","onboarding"),null)},async exportReporting(){return getFeatureConfig().enableExportReporting?loadFeatureModule("reporting"):(logFeatureDisabled("exportReporting","exportReporting"),null)},async workspaceTemplates(){return getFeatureConfig().enableWorkspaceTemplates?loadFeatureModule("templates"):(logFeatureDisabled("workspaceTemplates","workspaceTemplates"),null)},async analysisCommands(){return getFeatureConfig().enableAnalysisCommands?loadFeatureModule("analysis"):(logFeatureDisabled("analysisCommands","analysisCommands"),null)},async advancedCache(){return getFeatureConfig().enableAdvancedCache?loadFeatureModule("advancedCache"):(logFeatureDisabled("advancedCache","advancedCache"),null)},async workspaceIntelligence(){return getFeatureConfig().enableWorkspaceIntelligence?loadFeatureModule("workspaceIntelligence"):(logFeatureDisabled("workspaceIntelligence","workspaceIntelligence"),null)},async incrementalWorkers(){return getFeatureConfig().enableIncrementalWorkers?loadFeatureModule("incrementalWorkers"):(logFeatureDisabled("incrementalWorkers","incrementalWorkers"),null)},async extensionApi(){return getFeatureConfig().enableExtensionApi?loadFeatureModule("extensionApi"):(logFeatureDisabled("extensionApi","extensionApi"),null)},async uiAdapters(){return loadFeatureModule("uiAdapters")},async batchProcessor(){return loadFeatureModule("batchProcessor")},async decorationsAdvanced(){return loadFeatureModule("decorationsAdvanced")},async decorationsProviderImpl(){return loadFeatureModule("decorationsProviderImpl")},async gitInsights(){return getFeatureConfig().enableGitInsights?loadFeatureModule("gitInsights"):(logFeatureDisabled("gitInsights","gitInsights"),null)},isEnabled(e){let t=getFeatureConfig();return{onboarding:t.enableOnboarding,exportReporting:t.enableExportReporting,workspaceTemplates:t.enableWorkspaceTemplates,analysisCommands:t.enableAnalysisCommands,advancedCache:t.enableAdvancedCache,workspaceIntelligence:t.enableWorkspaceIntelligence,incrementalWorkers:t.enableIncrementalWorkers,extensionApi:t.enableExtensionApi}[e]??!0},getEnabledFeatures(){let e=getFeatureConfig(),t=[];return e.enableOnboarding&&t.push("onboarding"),e.enableExportReporting&&t.push("exportReporting"),e.enableWorkspaceTemplates&&t.push("workspaceTemplates"),e.enableAnalysisCommands&&t.push("analysisCommands"),e.enableAdvancedCache&&t.push("advancedCache"),e.enableWorkspaceIntelligence&&t.push("workspaceIntelligence"),e.enableIncrementalWorkers&&t.push("incrementalWorkers"),e.enableExtensionApi&&t.push("extensionApi"),t},calculateSavings(){let e=getFeatureConfig(),t=0;return e.enableOnboarding||(t+=34),e.enableExportReporting||(t+=17),e.enableExtensionApi||(t+=15),e.enableWorkspaceTemplates||(t+=14),e.enableWorkspaceIntelligence||(t+=12),e.enableAnalysisCommands||(t+=8),e.enableAdvancedCache||(t+=5),t}};for(let[e,t]of Object.entries(CHUNK_METHOD_ALIASES))!featureFlags[e]&&typeof featureFlags[t]=="function"&&(featureFlags[e]=(...r)=>featureFlags[t](...r));function calculateSavings(e){e||(e=getFeatureConfig());let t=267,r=0;e.enableOnboarding||(r+=34),e.enableExportReporting||(r+=17),e.enableExtensionApi||(r+=15),e.enableWorkspaceTemplates||(r+=14),e.enableWorkspaceIntelligence||(r+=12),e.enableIncrementalWorkers||(r+=19),e.enableAnalysisCommands||(r+=8),e.enableAdvancedCache||(r+=5);let n=t-r,o=r>0?Math.round(r/t*100):0;return{baseSize:`${t}KB`,totalSavings:`${r}KB`,optimizedSize:`${n}KB`,percentage:o}}registerDefaultLoaders();var exportedFeatureFlags={...featureFlags,getFeatureConfig,calculateSavings,registerFeatureLoader,setFeatureChunkResolver,unregisterFeatureLoader,clearFeatureLoaders,loadFeatureModule,getFeatureLoadFailure,registerDefaultLoaders};registerFeatureFlagsGlobal(exportedFeatureFlags);module.exports=exportedFeatureFlags});var Yt=E((exports,module)=>{var vscode=require("vscode"),getLogger=()=>{try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=dynamicRequire("./chunks/logger-chunk");if(e&&typeof e.getLogger=="function")return getLogger=e.getLogger,getLogger()}}catch{}try{return getLogger=te().getLogger,getLogger()}catch{return getLogger=()=>({debug:(()=>{})?.bind(console)||console.log,info:(()=>{}).bind(console),warn:(()=>{}).bind(console),error:(()=>{}).bind(console)}),getLogger()}},{fileSystem}=Ot(),env=typeof process<"u"&&process.env?process.env:{},{formatFileSize}=Ut(),getFileName=p=>{try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=null;try{e=dynamicRequire("../chunks/utils-shared-chunk")}catch{}try{e||(e=dynamicRequire("./chunks/utils-shared-chunk"))}catch{}try{e||(e=dynamicRequire("./chunks/path-utils-chunk"))}catch{}if(e&&typeof e.getFileName=="function")return getFileName=e.getFileName,getFileName(p)}}catch{}try{let t=String(p||"").replace(/\\/g,"/"),r=t.lastIndexOf("/");return r===-1?t:t.substring(r+1)}catch{return"unknown"}},getExtension=p=>{try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=null;try{e=dynamicRequire("../chunks/utils-shared-chunk")}catch{}try{e||(e=dynamicRequire("./chunks/utils-shared-chunk"))}catch{}try{e||(e=dynamicRequire("./chunks/path-utils-chunk"))}catch{}if(e&&typeof e.getExtension=="function")return getExtension=e.getExtension,getExtension(p)}}catch{}try{let e=String(p||""),t=e.lastIndexOf(".");return t<=0?"":e.substring(t).toLowerCase()}catch{return""}},buildCacheKey=p=>{try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=null;try{e=dynamicRequire("../chunks/utils-shared-chunk")}catch{}try{e||(e=dynamicRequire("./chunks/utils-shared-chunk"))}catch{}try{e||(e=dynamicRequire("./chunks/path-utils-chunk"))}catch{}if(e&&typeof e.getCacheKey=="function")return buildCacheKey=e.getCacheKey,buildCacheKey(p)}}catch{}return String(p||"").toLowerCase().replace(/\\/g,"/")},normalizePath=input=>{try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=null;try{e=dynamicRequire("../chunks/utils-shared-chunk")}catch{}try{e||(e=dynamicRequire("./chunks/utils-shared-chunk"))}catch{}try{e||(e=dynamicRequire("./chunks/path-utils-chunk"))}catch{}if(e&&typeof e.normalizePath=="function")return normalizePath=e.normalizePath,normalizePath(input)}}catch{}return String(input||"").replace(/\\/g,"/")},getUriPath=(target="")=>{try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=null;try{e=dynamicRequire("../chunks/utils-shared-chunk")}catch{}try{e||(e=dynamicRequire("./chunks/utils-shared-chunk"))}catch{}try{e||(e=dynamicRequire("./chunks/path-utils-chunk"))}catch{}if(e&&typeof e.getUriPath=="function")return getUriPath=e.getUriPath,getUriPath(target)}}catch{}if(!target)return"";if(typeof target=="string")return target;if(typeof target.fsPath=="string"&&target.fsPath.length>0)return target.fsPath;if(typeof target.path=="string"&&target.path.length>0)return target.path;if(typeof target.toString=="function")try{return target.toString(!0)}catch{return target.toString()}return String(target)},{DEFAULT_CACHE_TIMEOUT,DEFAULT_MAX_CACHE_SIZE,GLOBAL_STATE_KEYS,DEFAULT_DECORATION_POOL_SIZE,DEFAULT_FLYWEIGHT_CACHE_SIZE,WORKSPACE_SCALE_EXTREME_THRESHOLD}=J(),{isWebEnvironment}=Z(),{getSettingsCoordinator}=qt(),{SecurityValidator,SecureFileOperations,detectSecurityEnvironment}=zt(),DISABLE_GIT_FEATURES=env.EXPLORER_DATES_DISABLE_GIT_FEATURES==="1",IS_WEB_ENV=isWebEnvironment()||env.VSCODE_WEB==="true",nodePath=null;try{IS_WEB_ENV||(nodePath=require("path"))}catch{nodePath=null}var pathCompat={basename:e=>{if(!e)return"";try{if(!IS_WEB_ENV)return require("path").basename(e)}catch{let t=e.replace(/\\/g,"/"),r=t.lastIndexOf("/");return r===-1?t:t.substring(r+1)}},dirname:e=>{if(!e)return".";try{if(!IS_WEB_ENV)return require("path").dirname(e)}catch{let t=e.replace(/\\/g,"/"),r=t.lastIndexOf("/");return r===-1?".":t.substring(0,r)}}};(async()=>{try{let t=await We().decorationsStatic();t&&(t.basename&&t.dirname&&(pathCompat.basename=t.basename,pathCompat.dirname=t.dirname),t.describeFile&&(exports.D=t.describeFile))}catch{}})();var CONFIG_DEFAULT_CACHE_TIMEOUT=3e4,CACHE_NAMESPACE_SEPARATOR="::",DEFAULT_DYNAMIC_WATCHER_LIMIT=Number(env.EXPLORER_DATES_MAX_DYNAMIC_WATCHERS||200),DEFAULT_WATCHER_INACTIVITY_MS=Number(env.EXPLORER_DATES_WATCHER_TTL_MS||600*1e3),DEFAULT_SMART_WATCHER_EXTENSIONS=["js","ts","json","md","py","java"],SMART_WATCHER_PRIORITY=new Map([["src",100],["lib",65],["test",30]]),WORKSPACE_SCAN_TIMEOUT_MS=Number(env.EXPLORER_DATES_WORKSPACE_SCAN_TIMEOUT||7e3),WORKSPACE_SCAN_TIMEOUT_FALLBACK_COUNT=WORKSPACE_SCALE_EXTREME_THRESHOLD,VIEWPORT_DEFAULT_WINDOW_MS=300*1e3,DEFAULT_VIEWPORT_HISTORY_LIMIT=Number(env.EXPLORER_DATES_VIEWPORT_HISTORY_LIMIT||400),FEATURE_LEVELS=["full","enhanced","standard","minimal"],DEFAULT_INDEXER_MAX_FILES=Math.max(100,Number(env.EXPLORER_DATES_INDEXER_MAX_FILES||2e3)),SECURITY_EXTRA_PATHS_ENV="EXPLORER_DATES_SECURITY_EXTRA_PATHS",DEFAULT_SECURITY_THROTTLE_MS=Number(env.EXPLORER_DATES_SECURITY_WARNING_THROTTLE_MS||5e3),SECURITY_WARNING_CACHE_LIMIT=Number(env.EXPLORER_DATES_SECURITY_WARNING_CACHE||500),DEFAULT_SECURITY_MAX_WARNINGS=Number(env.EXPLORER_DATES_SECURITY_MAX_WARNINGS_PER_FILE??1),describeFile=(e="")=>{try{let t=typeof e=="string"?e:getUriPath(e),r=normalizePath(t);return getFileName(r)||r||"unknown"}catch{return"unknown"}};(async()=>{try{let t=await We().decorationsStatic();t&&typeof t.describeFile=="function"&&(describeFile=t.describeFile)}catch{}})();var LazyHierarchicalDecorationCache=class{constructor(){this.n=new Map}get size(){return this.n.size}get bucketCount(){return 0}clear(){this.n.clear()}get(t){return this.n.get(t)}set(t,r){this.n.set(t,r)}delete(t){return this.n.delete(t)}*entries(){yield*this.n.entries()}*keys(){yield*this.n.keys()}*values(){yield*this.n.values()}[Symbol.iterator](){return this.entries()}enforceLimit(){return 0}},FileDateDecorationProviderImpl=class{constructor(...args){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=dynamicRequire("./chunks/file-date-provider-impl");if(e&&typeof e.FileDateDecorationProviderImpl=="function")return new e.FileDateDecorationProviderImpl(...args);if(e&&typeof e.FileDateDecorationProvider=="function")return new e.FileDateDecorationProvider(...args)}}catch(e){}throw new Error("FileDateDecorationProvider implementation is not available in this environment")}},FileDateDecorationProvider=class{constructor(...args){let loaderError=null;try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function")try{let e=null;try{e=dynamicRequire("./chunks/file-date-provider-impl-export")}catch{}if(e){let r=e.FileDateDecorationProvider||e.FileDateDecorationProviderImpl||e.default;return typeof r=="function"?new r(...args):new FileDateDecorationProviderImpl(...args)}e=dynamicRequire("./chunks/file-date-provider-impl");let t=e&&(e.FileDateDecorationProvider||e.FileDateDecorationProviderImpl||e.default);if(typeof t=="function")return new t(...args)}catch(e){loaderError=e}try{let e=null;try{e=require.resolve("./chunks/file-date-provider-impl-export",{paths:[__dirname]})}catch{}e||(e=require.resolve("./chunks/file-date-provider-impl",{paths:[__dirname]}));let t=require(e),r=t&&(t.FileDateDecorationProvider||t.FileDateDecorationProviderImpl||t.default);if(e&&e.endsWith("file-date-provider-impl-export.js")&&!r)return new FileDateDecorationProviderImpl(...args);if(typeof r=="function")return new r(...args)}catch(e){loaderError=loaderError||e}}catch(e){loaderError=loaderError||e}if(loaderError&&loaderError.message){let e=`FileDateDecorationProvider implementation is unavailable: ${loaderError.message}`;throw new Error(e)}throw new Error("FileDateDecorationProvider implementation is unavailable")}};module.exports={FileDateDecorationProvider,FileDateDecorationProviderImpl}});try{require("vscode")}catch{}var env=typeof process<"u"&&process.env?process.env:{},diagLog=null,isWebDiagnosticsEnabled=()=>!1;try{let e=se();e&&(diagLog=e.diagLog,isWebDiagnosticsEnabled=e.isWebDiagnosticsEnabled||(()=>!1))}catch{}function isWebRuntime(){try{let{isWebEnvironment:e}=Z();return e()}catch{return env.VSCODE_WEB==="true"}}function getWebChunkRegistry(){try{let{WEB_CHUNK_GLOBAL_KEY:e,LEGACY_WEB_CHUNK_GLOBAL_KEY:t}=J();if(typeof globalThis<"u")return globalThis[e]||globalThis[t]||null}catch{}return typeof globalThis<"u"&&(globalThis.explorerDatesChunks||globalThis.ce)||null}function resolveProviderModuleFromWebRegistry(){let e=getWebChunkRegistry();if(!e)return null;let t=[e.fileDateProviderImplExport,e.fileDateProviderImpl,e.fileDateProviderImplExport,e.fileDateProviderImpl,e["file-date-provider-impl-export"],e["file-date-provider-impl"]].filter(Boolean);return t.length>0?t[0]:null}function normalizeModuleExports(e){if(!e)return null;let t=e&&typeof e=="object"?e:{default:e},r=t&&typeof t=="object"&&t.default?t.default:null;return r&&typeof r=="object"?{...t,...r}:t}async function hydrateProviderOptionalSystems(e){try{try{let r=(await Promise.resolve().then(()=>Se(ot()))).getLocalization();e.l.getString=(...o)=>r.getString(...o),e.l.formatDate=(...o)=>r.formatDate(...o),e.l.getCurrentLocale=()=>r.getCurrentLocale();let n=e.l.dispose;e.l.dispose=()=>{try{r.dispose()}catch{}n()}}catch(t){e._logger?.debug("provider-init: localization hydrate failed",t)}try{let t=await Promise.resolve().then(()=>Se(at()));t&&typeof t.createDecorationLogic=="function"&&(e.A=t.createDecorationLogic(e))}catch(t){e._logger?.debug("provider-init: preload decoration logic failed",t)}try{let t=await Promise.resolve().then(()=>Se(St())),r=t&&(typeof t.createDecorationProviderHelpers=="function"?t.createDecorationProviderHelpers(e):t);e.ue=r}catch(t){e._logger?.debug("provider-init: preload decoration provider helpers failed",t)}try{let t=await e.fe();t&&typeof t.initializeAdvancedSystems=="function"&&await t.initializeAdvancedSystems(e)}catch(t){e._logger?.debug("provider-init: initializeAdvancedSystems failed",t)}try{let t=Tt();t&&typeof t.scheduleTelemetryReport=="function"&&e._allocationTelemetryEnabled&&t.scheduleTelemetryReport(e)}catch(t){e._logger?.debug("provider-init: scheduling telemetry failed",t)}}catch(t){try{e._logger?.debug("provider-init: hydration failed",t)}catch{}}}function createFileDateDecorationProvider(context){try{let ProviderClass=null,webRuntime=isWebRuntime();if(webRuntime){let e=getWebChunkRegistry(),t=[e?.fileDateProviderImplExport,e?.fileDateProviderImpl,e?.fileDateProviderImplExport,e?.fileDateProviderImpl,e?.["file-date-provider-impl-export"],e?.["file-date-provider-impl"]].filter(Boolean),r=t[0]||resolveProviderModuleFromWebRegistry();!e&&isWebDiagnosticsEnabled()?diagLog?.("warn","Provider registry missing in web runtime"):!r&&isWebDiagnosticsEnabled()&&diagLog?.("warn","Provider module missing from web registry",{hasRegistry:!!e,availableKeys:Object.keys(e||{}),candidateCount:t.length});let n=null;for(let o of t){let i=normalizeModuleExports(o),a=i&&(i.FileDateDecorationProvider||i.FileDateDecorationProviderImpl||i.default);if(a){n=a;break}isWebDiagnosticsEnabled()&&diagLog?.("warn","Provider exports missing expected class",{availableExportKeys:Object.keys(i||{})})}ProviderClass=n,!ProviderClass&&isWebDiagnosticsEnabled()&&t.length>0&&diagLog?.("warn","Provider class unresolved from registry entries",{candidateCount:t.length,availableRegistryKeys:Object.keys(e||{})})}try{if(!webRuntime){let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=null;try{e=dynamicRequire("./fileDateProviderImplExport")}catch{}if(!e)try{e=dynamicRequire("./fileDateProviderImpl")}catch{}ProviderClass=e&&(e.FileDateDecorationProvider||e.FileDateDecorationProviderImpl||e.default)}}}catch{}if(!ProviderClass&&!webRuntime){let{FileDateDecorationProvider:e}=Yt();ProviderClass=e}if(!ProviderClass)return isWebDiagnosticsEnabled()&&diagLog?.("warn","Provider class unavailable",{webRuntime,registryKeys:Object.keys(getWebChunkRegistry()||{})}),null;let provider=new ProviderClass;return isWebDiagnosticsEnabled()&&diagLog?.("info","Provider class resolved",{className:ProviderClass?.name||"unknown"}),(async()=>{try{await provider.initializeAdvancedSystems(context)}catch(e){provider._logger?.debug("provider-init: provider factory init failed",e)}})(),{createFileDateDecorationProvider:()=>provider}}catch{return null}}module.exports={hydrateProviderOptionalSystems,createFileDateDecorationProvider}; diff --git a/dist/chunks/providerInit.js.map b/dist/chunks/providerInit.js.map index f67b6a6..5212c81 100644 --- a/dist/chunks/providerInit.js.map +++ b/dist/chunks/providerInit.js.map @@ -1,6 +1,6 @@ { "version": 3, "sources": ["../../src/utils/webDiagnostics.js", "../../src/utils/env.js", "../../src/constants.js", "../../src/locales/en.json", "../../src/locales/es.json", "../../src/locales/fr.json", "../../src/locales/de.json", "../../src/locales/ja.json", "../../src/locales/zh.json", "../../src/locales/index.js", "../../src/chunks/localization-core.js", "../../src/chunks/decoration-logic-chunk.js", "../../src/utils/pathUtils.js", "../../src/filesystem/environmentContract.js", "../../src/utils/freshnessResolver.js", "../../src/chunks/utils-shared-chunk.js", "../../src/chunks/decoration-provide-chunk.js", "../../src/chunks/decoration-telemetry-chunk.js", "../../src/utils/logger.js", "../../src/utils/errors.js", "../../src/utils/dateHelpers.js", "../../src/filesystem/FileSystemAdapter.js", "../../src/utils/formatters.js", "../../src/utils/settingsCoordinator.js", "../../src/utils/securityUtils.js", "../../src/presetDefinitions.js", "../../src/shared/chunkMap.js", "../../src/utils/featureFlagsBrid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,SACZ,CAAC,eAAiB,wBAAwB,GAAK,iBAAiB,OAAS,GACzE,UAAU,OAAQ,kDAAmD,CACjE,eAAgB,iBAAiB,OACjC,sBAAuB,OAAO,KAAK,UAAY,CAAC,CAAC,CACrD,CAAC,CAET,CACA,GAAI,CACA,GAAI,CAAC,WAAY,CACb,IAAM,eAAiB,OAAO,MAAS,WAAa,KAAK,SAAS,EAAI,KACtE,GAAI,OAAO,gBAAmB,WAAY,CAC1C,IAAI,IAAM,KACV,GAAI,CAAE,IAAM,eAAe,8BAA8B,CAAG,MAAQ,CAAe,CACnF,GAAI,CAAC,IACD,GAAI,CAAE,IAAM,eAAe,wBAAwB,CAAG,MAAQ,CAAe,CAEjF,cAAgB,MAAQ,IAAI,4BAA8B,IAAI,gCAAkC,IAAI,QACpG,CACJ,CACJ,MAAQ,CAAe,CAGvB,GAAI,CAAC,eAAiB,CAAC,WAAY,CAC/B,GAAM,CAAE,2BAAAE,2BAA2B,EAAI,qCACvC,cAAgBA,2BACpB,CAEA,GAAI,CAAC,cACD,OAAI,wBAAwB,GACxB,UAAU,OAAQ,6BAA8B,CAC5C,WACA,aAAc,OAAO,KAAK,oBAAoB,GAAK,CAAC,CAAC,CACzD,CAAC,EAEE,KAGX,IAAM,SAAW,IAAI,cACrB,OAAI,wBAAwB,GACxB,UAAU,OAAQ,0BAA2B,CAAE,UAAW,eAAe,MAAQ,SAAU,CAAC,GAG/F,SAAY,CACT,GAAI,CAAE,MAAM,SAAS,0BAA0B,OAAO,CAAG,OAAS,EAAG,CAAE,SAAS,SAAS,MAAM,8CAA+C,CAAC,CAAG,CACtJ,GAAG,EACI,CAAE,iCAAkC,WAAM,SAAN,mCAAe,CAC9D,MAAQ,CAEJ,OAAO,IACX,CACJ,CA1FS,4EA4FT,OAAO,QAAU,CACb,+BACA,gCACJ", "names": ["exports", "module", "env", "isWebRuntime", "vscode", "isWebDiagnosticsEnabled", "diagLog", "diagLogOnce", "exports", "module", "vscode", "isWebEnvironment", "exports", "module", "env", "DEFAULT_CACHE_TIMEOUT", "DEFAULT_MAX_CACHE_SIZE", "DEFAULT_DECORATION_POOL_SIZE", "DEFAULT_FLYWEIGHT_CACHE_SIZE", "WORKSPACE_SCALE_EXTREME_THRESHOLD", "GLOBAL_STATE_KEYS", "exports", "module", "exports", "module", "exports", "module", "exports", "module", "exports", "module", "exports", "module", "exports", "module", "exports", "module", "vscode", "args", "options", "exports", "module", "provider", "vscode", "decoration", "normalizePath", "input", "getSegments", "getFileName", "getExtension", "getDirectory", "joinPath", "getCacheKey", "getUriPath", "target", "getRelativePath", "exports", "module", "env", "target", "options", "exports", "module", "vscode", "normalizePath", "getRelativePath", "diagLogOnce", "formatBadge", "formatTooltip", "provider", "exports", "module", "getCurrentTimestamp", "isDateLike", "ensureDate", "normalizePath", "input", "getSegments", "getFileName", "getExtension", "getDirectory", "joinPath", "getCacheKey", "getUriPath", "target", "getRelativePath", "input", "exports", "module", "provider", "exports", "module", "args", "getLogger", "exports", "module", "context", "options", "vscode", "getCurrentTimestamp", "isDateLike", "ensureDate", "exports", "module", "vscode", "isWebEnvironment", "normalizePath", "ensureDate", "env", "target", "options", "fileSystem", "exports", "module", "formatFileSize", "options", "p", "target", "chunk", "exports", "module", "normalizePath", "getUriPath", "getLogger", "env", "detectSecurityEnvironment", "SecurityValidator", "input", "options", "SecureFileOperations", "chunk", "exports", "module", "getChunkSourcePath", "getAllChunkNames", "chunk", "module", "target", "args", "chunk", "input", "isWebEnvironment", "provider", "args", "FileDateDecorationProvider"] } diff --git a/dist/chunks/reporting.js b/dist/chunks/reporting.js index 281a604..5e1acb7 100644 --- a/dist/chunks/reporting.js +++ b/dist/chunks/reporting.js @@ -1,87 +1,62 @@ -var m=(s,t)=>()=>(t||s((t={exports:{}}).exports,t),t.exports);var R=m((Tt,C)=>{var g="__explorerDatesLogger",w=class{constructor(){this.u=null}f(t,e){if(this.u&&typeof this.u[t]=="function")try{return this.u[t](...e)}catch{}switch(t){case"debug":break;case"info":break;case"warn":break;case"error":break;default:break}}debug(...t){return this.f("debug",t)}info(...t){return this.f("info",t)}warn(...t){return this.f("warn",t)}error(...t){return this.f("error",t)}_(t){this.u=t}};function Q(){return typeof global<"u"?(global[g]||(global[g]=new w),global[g]):typeof globalThis<"u"?(globalThis[g]||(globalThis[g]=new w),globalThis[g]):(E||(E=new w),E)}var T=class extends w{},E=null;C.exports={Logger:T,getLogger:Q}});var _=m((St,L)=>{var P=require("vscode");function tt(){try{let s=P?.env?.uiKind,t=P?.UIKind?.Web;return s!==void 0&&t!==void 0&&s===t}catch{return!1}}L.exports={isWebEnvironment:tt}});var M=m((exports,module)=>{var chunk=null;try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){try{chunk=dynamicRequire("../chunks/utils-shared-chunk")}catch{}try{chunk||(chunk=dynamicRequire("./chunks/utils-shared-chunk"))}catch{}try{chunk||(chunk=dynamicRequire("../chunks/path-utils-chunk"))}catch{}try{chunk||(chunk=dynamicRequire("./chunks/path-utils-chunk"))}catch{}}}catch{}if(chunk&&chunk.normalizePath)module.exports={normalizePath:chunk.normalizePath,getFileName:chunk.getFileName,getExtension:chunk.getExtension,getDirectory:chunk.getDirectory,joinPath:chunk.joinPath,getCacheKey:chunk.getCacheKey,getUriPath:chunk.getUriPath,getRelativePath:chunk.getRelativePath};else{let s=function(o=""){return o?o.replace(/\\/g,"/"):""},t=function(o=""){let l=s(o);return l?l.split("/").filter(Boolean):[]},e=function(o=""){let l=t(o);return l.length?l[l.length-1]:""},i=function(o=""){let l=e(o),d=l.lastIndexOf(".");return d<=0?"":l.substring(d).toLowerCase()},r=function(o=""){let l=s(o),d=l.lastIndexOf("/");return d===-1?"":l.substring(0,d)},n=function(...o){return s(o.filter(Boolean).join("/")).replace(/\/+/g,"/")},a=function(o=""){return s(o).toLowerCase()},c=function(o=""){if(!o)return"";if(typeof o=="string")return o;if(typeof o.fsPath=="string"&&o.fsPath.length>0)return o.fsPath;if(typeof o.path=="string"&&o.path.length>0)return o.path;if(typeof o.toString=="function")try{return o.toString(!0)}catch{return o.toString()}return String(o)},h=function(o="",l=""){let d=s(o),p=s(l);return d&&p.startsWith(d)?p.substring(d.length).replace(/^\/+/,""):p};normalizePath=s,getSegments=t,getFileName=e,getExtension=i,getDirectory=r,joinPath=n,getCacheKey=a,getUriPath=c,getRelativePath=h,module.exports={normalizePath:s,getFileName:e,getExtension:i,getDirectory:r,joinPath:n,getCacheKey:a,getUriPath:c,getRelativePath:h}}var normalizePath,getSegments,getFileName,getExtension,getDirectory,joinPath,getCacheKey,getUriPath,getRelativePath});var $=m((At,I)=>{var F=class extends Error{constructor(t,e,i={}){super(e),this.code=t,this.context=i,this.name="ExtensionError"}},z={FILE_PERMISSION_DENIED:"FILE_PERMISSION_DENIED",WORKSPACE_TOO_LARGE:"WORKSPACE_TOO_LARGE",CHUNK_LOAD_FAILED:"CHUNK_LOAD_FAILED"};function et(s){if(!s)return!1;let t=s.code||s?.name;return["EACCES","EPERM","EROFS","NoPermissions"].includes(t)}var S=class extends F{constructor(t,e,i={}){let{recoverable:r=!0,context:n={}}=i;super(z.CHUNK_LOAD_FAILED,`Failed to load ${t}: ${e}`,{chunkName:t,recoverable:r,...n}),this.name="ChunkLoadError",this.chunkName=t,this.recoverable=r}};function it(s,t,e={}){let i=require("vscode"),{userFacing:r=!0}=e,n=t?.recoverable??!0;r&&!n&&i.window.showErrorMessage(`Explorer Dates: ${s} feature unavailable. Please reinstall or rebuild the extension.`)}I.exports={ExtensionError:F,ERROR_CODES:z,isPermissionError:et,ChunkLoadError:S,handleChunkFailure:it}});var q=m((xt,W)=>{var O="EXPLORER_DATES_FORCE_VSCODE_FS";function j(s,t=process.env){return String(t?.[s]||"")==="1"}function k(s){let t=s&&typeof s=="object"?s:null,e=String(t?.scheme||(typeof s=="string"&&/^[a-z][a-z0-9+.-]*:/i.test(s)?s.split(":",1)[0]:"file")).toLowerCase(),i=String(t?.authority||""),r=t?.path||t?.fsPath||(typeof s=="string"?s.replace(/^[a-z][a-z0-9+.-]*:\/\//i,""):"");return{scheme:e,authority:i,path:String(r||"")}}function rt({uri:s,isWeb:t=!1,remoteName:e="",forceWorkspaceFs:i=j(O)}={}){let r=k(s),n=r.scheme!=="file",a=!!t,c=!!e,h=!!(i||a||c||n);return{scheme:r.scheme,authority:r.authority,isFileScheme:!n,isVirtual:n,isBrowser:a,isRemote:c,forceWorkspaceFs:!!i,filesystem:h?"workspace.fs":"node.fs",provider:n?r.scheme==="github"||r.scheme==="vscode-vfs"?"github":"virtual":"filesystem"}}function U({uri:s,platform:t=process.platform,caseSensitive:e}={}){return typeof e=="boolean"?e:k(s).scheme!=="file"?!0:t!=="win32"}function st(s,t={}){let e=k(s),i=e.path.replace(/\\/g,"/").replace(/\/+/g,"/"),r=`${e.scheme}://${e.authority}${i}`;return U({uri:s,...t})?r:r.toLowerCase()}function A(s){if(s instanceof Date){let t=s.getTime();return Number.isFinite(t)?t:null}if(typeof s=="number")return Number.isFinite(s)?s:null;if(typeof s=="string"&&s.trim()){let t=Date.parse(s);return Number.isFinite(t)?t:null}return null}function nt(s){if(!s||typeof s!="object")return null;let t=A(s.mtime),e=A(s.ctime);return{...s,mtimeMs:t,ctimeMs:e}}W.exports={FORCE_WORKSPACE_FS_ENV:O,envFlag:j,getUriParts:k,getEnvironmentContract:rt,isCaseSensitive:U,resourceIdentity:st,normalizeTimestamp:A,normalizeStat:nt}});var x=m((bt,K)=>{function ot(){return typeof Date=="function"&&Date.now?Date.now():16409952e5}function N(s){return!!(s&&typeof s=="object"&&typeof s.getTime=="function")}function at(s){if(N(s))return s;if(typeof s=="number")return new Date(s);if(typeof s=="string"){let t=Date.parse(s);return isNaN(t)?new Date:new Date(t)}return new Date}function y(s=""){return s?s.replace(/\\/g,"/"):""}function ct(s=""){let t=y(s);return t?t.split("/").filter(Boolean):[]}function B(s=""){let t=ct(s);return t.length?t[t.length-1]:""}function lt(s=""){let t=B(s),e=t.lastIndexOf(".");return e<=0?"":t.substring(e).toLowerCase()}function ht(s=""){let t=y(s),e=t.lastIndexOf("/");return e===-1?"":t.substring(0,e)}function ut(...s){return y(s.filter(Boolean).join("/")).replace(/\/+/g,"/")}function ft(s=""){return y(s).toLowerCase()}function dt(s=""){if(!s)return"";if(typeof s=="string")return s;if(typeof s.fsPath=="string"&&s.fsPath.length>0)return s.fsPath;if(typeof s.path=="string"&&s.path.length>0)return s.path;if(typeof s.toString=="function")try{return s.toString(!0)}catch{return s.toString()}return String(s)}function pt(s="",t=""){let e=y(s),i=y(t);return e&&i.startsWith(e)?i.substring(e.length).replace(/^\/+/,""):i}K.exports={ensureDate:at,isDateLike:N,getCurrentTimestamp:ot,normalizePath:y,getFileName:B,getExtension:lt,getDirectory:ht,joinPath:ut,getCacheKey:ft,getUriPath:dt,getRelativePath:pt}});var b=m((exports,module)=>{var chunk=null;try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){try{chunk=dynamicRequire("../chunks/utils-shared-chunk")}catch{}try{chunk||(chunk=dynamicRequire("./chunks/utils-shared-chunk"))}catch{}try{chunk||(chunk=dynamicRequire("../chunks/date-helpers-chunk"))}catch{}try{chunk||(chunk=dynamicRequire("./chunks/date-helpers-chunk"))}catch{}}}catch{}if(chunk&&(chunk.ensureDate||chunk.isDateLike||chunk.getCurrentTimestamp))module.exports={ensureDate:chunk.ensureDate,isDateLike:chunk.isDateLike,getCurrentTimestamp:chunk.getCurrentTimestamp};else{let s=function(){return typeof Date=="function"&&Date.now?Date.now():16409952e5},t=function(i){return!!(i&&typeof i=="object"&&typeof i.getTime=="function")},e=function(i){if(t(i))return i;if(typeof i=="number")return new Date(i);if(typeof i=="string"){let r=Date.parse(i);return isNaN(r)?new Date:new Date(r)}return new Date};getCurrentTimestamp=s,isDateLike=t,ensureDate=e,module.exports={ensureDate:e,isDateLike:t,getCurrentTimestamp:s}}var getCurrentTimestamp,isDateLike,ensureDate});var Y=m((Ct,V)=>{var u=require("vscode"),{isWebEnvironment:X}=_(),{normalizePath:mt}=M(),{ExtensionError:yt,ERROR_CODES:gt,isPermissionError:wt}=$(),{getEnvironmentContract:Dt,normalizeStat:Ft,FORCE_WORKSPACE_FS_ENV:kt}=q(),D;try{let s=x();s&&(D=s.ensureDate)}catch{}D||(D=b().ensureDate);var H=typeof process<"u"&&process.env?process.env:{},G=H.VSCODE_WEB==="true"||X(),f=null;if(!G)try{f=require("fs").promises}catch{f=null}var v=class{constructor(){this.isWeb=G||X()}s(t){try{return Dt({uri:this.e(t),isWeb:this.isWeb,remoteName:u.env?.remoteName,forceWorkspaceFs:H[kt]==="1"}).filesystem==="workspace.fs"}catch{return!1}}i(t){if(!t)return"";if(typeof t=="string")return t;if(t&&typeof t=="object"&&typeof t.fsPath=="string")return t.fsPath;if(t&&typeof t=="object"&&typeof t.path=="string")return t.path;if(typeof t=="object"){if(typeof t.fsPath=="string")return t.fsPath;if(typeof t.path=="string")return t.path}return String(t)}e(t){if(t&&typeof t=="object"&&typeof t.scheme=="string"&&typeof t.path=="string")return t;if(typeof t=="string"){let e=t.trim(),i=/^[a-zA-Z]:[\\/]/.test(e);if(/^[a-zA-Z][a-zA-Z0-9+.-]*:/.test(e)&&!i){let n=u.Uri.parse(e);if(n.scheme&&n.scheme!=="file")return n}return u.Uri.file(t)}if(t&&typeof t=="object"){if(t.uri&&t.uri!==t)try{return this.e(t.uri)}catch{}if(this.isWeb&&typeof t.scheme=="string"&&typeof t.path=="string")return u.Uri.from({scheme:t.scheme,authority:t.authority||"",path:t.path||"",query:t.query||"",fragment:t.fragment||""});if(typeof t.fsPath=="string"&&t.fsPath.length>0)return u.Uri.file(t.fsPath);if(typeof t.path=="string"&&t.path.length>0)return this.isWeb&&typeof t.scheme=="string"&&t.scheme!=="file"?u.Uri.from({scheme:t.scheme,authority:t.authority||"",path:t.path,query:t.query||"",fragment:t.fragment||""}):u.Uri.file(t.path);if(typeof t.href=="string"&&t.href.length>0)return u.Uri.parse(t.href);if(typeof t.scheme=="string")return u.Uri.from({scheme:t.scheme,authority:t.authority||"",path:t.path||t.fsPath||"",query:t.query||"",fragment:t.fragment||""});if(typeof t.toString=="function")try{let e=t.toString(!0);if(e&&e!=="[object Object]")return u.Uri.parse(e)}catch{let e=t.toString();if(e&&e!=="[object Object]")return u.Uri.parse(e)}}throw new Error(`Unsupported target type: ${typeof t}`)}async stat(t){let e=this.s(t);if(!this.isWeb&&f&&!e)return f.stat(this.i(t));let i=this.e(t),r=await u.workspace.fs.stat(i),n=Ft(r);return{...n,mtime:n.mtimeMs===null?D(r.mtime):new Date(n.mtimeMs),ctime:n.ctimeMs===null?D(r.ctime):new Date(n.ctimeMs),birthtime:n.ctimeMs===null?D(r.ctime):new Date(n.ctimeMs),isFile:()=>r.type===u.FileType.File,isDirectory:()=>r.type===u.FileType.Directory}}async readFile(t,e="utf8"){let i=this.s(t);if(!this.isWeb&&f&&!i)return f.readFile(this.i(t),e);let r=this.e(t),n=await u.workspace.fs.readFile(r);return e===null||e==="binary"?n:new TextDecoder(e).decode(n)}async writeFile(t,e,i="utf8"){let r=this.i(t);try{let n=this.s(t);if(!this.isWeb&&f&&!n)return f.writeFile(r,e,i);let a=this.e(t),c=typeof e=="string"?new TextEncoder().encode(e):e;await u.workspace.fs.writeFile(a,c)}catch(n){this.g("write file",r,n)}}async mkdir(t,e={recursive:!0}){let i=this.i(t);try{let r=this.s(t);if(!this.isWeb&&f&&!r)return f.mkdir(i,e);let n=this.e(t);await u.workspace.fs.createDirectory(n)}catch(r){this.g("create directory",i,r)}}async readdir(t,e={withFileTypes:!1}){let i=this.s(t);if(!this.isWeb&&f&&!i)return f.readdir(this.i(t),e);let r=this.e(t),n=await u.workspace.fs.readDirectory(r);return e.withFileTypes?n.map(([a,c])=>({name:a,isDirectory:()=>c===u.FileType.Directory,isFile:()=>c===u.FileType.File})):n.map(([a])=>a)}async delete(t,e={recursive:!1}){let i=this.s(t);if(!this.isWeb&&f&&!i){let n=this.i(t);return e.recursive?f.rm?f.rm(n,e):f.rmdir(n,e):f.unlink(n)}let r=this.e(t);await u.workspace.fs.delete(r,e)}async exists(t){try{return await this.stat(t),!0}catch{return!1}}async ensureDirectory(t){let e=mt(this.i(t));await this.mkdir(e,{recursive:!0})}g(t,e,i){throw wt(i)?new yt(gt.FILE_PERMISSION_DENIED,`Permission denied while attempting to ${t}`,{path:e,code:i.code}):i}},vt=new v;V.exports={FileSystemAdapter:v,fileSystem:vt}});var Z=m((exports,module)=>{var vscode=require("vscode"),{getLogger}=R(),{fileSystem}=Y(),getExtension=filePath=>{try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let s=dynamicRequire("./chunks/path-utils-chunk");if(s&&typeof s.getExtension=="function")return getExtension=s.getExtension,getExtension(filePath)}}catch{}try{let s=String(filePath||""),t=s.lastIndexOf(".");return t<=0?"":s.substring(t).toLowerCase()}catch{return""}},normalizePath=input=>{try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let s=dynamicRequire("./chunks/path-utils-chunk");if(s&&typeof s.normalizePath=="function")return normalizePath=s.normalizePath,normalizePath(input)}}catch{}return String(input||"").replace(/\\/g,"/")},ensureDate;try{let s=x();s&&(ensureDate=s.ensureDate)}catch{}ensureDate||(ensureDate=b().ensureDate);var{getLocalization}=require("./utils/localization"),l10n=getLocalization(),logger=getLogger(),env=typeof process<"u"&&process.env?process.env:{},isWeb=env.VSCODE_WEB==="true",DEFAULT_EXCLUDED_FOLDERS=["node_modules",".git","dist","build","out",".vscode-test"],DEFAULT_EXCLUDED_PATTERNS=["**/*.tmp","**/*.log","**/.git/**","**/node_modules/**"],DEFAULT_MAX_TRACKED_FILES=3e3,MAX_TRACK_HISTORY_PER_FILE=100,MAX_TRACKED_FILES_LIMIT=2e4,ExportReportingManager=class{constructor(){this.fileActivityCache=new Map,this.t=new Map,this.allowedFormats=["json","csv","html","markdown"],this.activityTrackingDays=30,this.activityCutoffMs=null,this.timeTrackingIntegration="none",this.maxTrackedActivityFiles=DEFAULT_MAX_TRACKED_FILES,this.excludedFolders=[...DEFAULT_EXCLUDED_FOLDERS],this.excludedPatterns=[...DEFAULT_EXCLUDED_PATTERNS],this.w=[],this.n=null,this.a=null,this.d=[],this.c=[],this.r=new Map,this.S=Number(env.EXPLORER_DATES_USER_ACTIVITY_TTL_MS||300*1e3),this.o={user:0,watcher:0},this.A=env.EXPLORER_DATES_LIGHTWEIGHT_MODE==="1",this.l=!1,this.D(),this.x(),this.initialize()}D(){try{let t=vscode.workspace.getConfiguration("explorerDates"),e=t.get("reportFormats",["json","html"]),i=["json","csv","html","markdown"];this.allowedFormats=Array.from(new Set([...e,...i]));let r=t.get("activityTrackingDays",30);this.activityTrackingDays=Math.max(1,Math.min(365,r)),this.activityCutoffMs=this.activityTrackingDays*24*60*60*1e3,this.timeTrackingIntegration=t.get("timeTrackingIntegration","none"),this.maxTrackedActivityFiles=this.b(t.get("maxTrackedActivityFiles",DEFAULT_MAX_TRACKED_FILES)),this.excludedFolders=t.get("excludedFolders",DEFAULT_EXCLUDED_FOLDERS)||DEFAULT_EXCLUDED_FOLDERS,this.excludedPatterns=t.get("excludedPatterns",DEFAULT_EXCLUDED_PATTERNS)||DEFAULT_EXCLUDED_PATTERNS,this.w=this.excludedPatterns.map(n=>this.C(n)).filter(Boolean)}catch(t){logger.error("Failed to load reporting configuration",t)}}x(){this.n&&this.n.dispose(),this.n=vscode.workspace.onDidChangeConfiguration(t=>{(t.affectsConfiguration("explorerDates.reportFormats")||t.affectsConfiguration("explorerDates.activityTrackingDays")||t.affectsConfiguration("explorerDates.timeTrackingIntegration")||t.affectsConfiguration("explorerDates.maxTrackedActivityFiles")||t.affectsConfiguration("explorerDates.excludedFolders")||t.affectsConfiguration("explorerDates.excludedPatterns")||t.affectsConfiguration("explorerDates.performanceMode"))&&(this.D(),this.F(),logger.info("Reporting configuration updated",{allowedFormats:this.allowedFormats,activityTrackingDays:this.activityTrackingDays,timeTrackingIntegration:this.timeTrackingIntegration,maxTrackedActivityFiles:this.maxTrackedActivityFiles}))})}async initialize(){try{if(this.k()){this.l=!0,this.p(),this.m(),logger.info("Export & Reporting Manager initialized (activity tracking suppressed by performance/lightweight mode)");return}this.l=!1,this.y(),this.F(),logger.info("Export & Reporting Manager initialized")}catch(t){logger.error("Failed to initialize Export & Reporting Manager:",t)}}startFileWatcher(){if(this.a||this.maxTrackedActivityFiles===0||isWeb){this.maxTrackedActivityFiles===0&&logger.info("File activity tracking disabled (maxTrackedActivityFiles=0)"),isWeb&&logger.info("Skipping file activity watcher in web environment");return}let t=vscode.workspace.createFileSystemWatcher("**/*");this.a=t,this.d=[t.onDidChange(e=>this.recordFileActivity(e,"modified",{source:"watcher"})),t.onDidCreate(e=>this.recordFileActivity(e,"created",{source:"watcher"})),t.onDidDelete(e=>this.recordFileActivity(e,"deleted",{source:"watcher"}))]}m(){if(this.d.length){for(let t of this.d)try{t.dispose()}catch{}this.d=[]}if(this.a){try{this.a.dispose()}catch{}this.a=null}}F(){let t=this.k();if(t||this.maxTrackedActivityFiles<=0||isWeb){this.l=t||this.maxTrackedActivityFiles<=0||isWeb,this.m(),this.p(),this.fileActivityCache.clear(),this.t.clear();return}this.l&&(this.l=!1,this.y()),this.y(),this.startFileWatcher(),this.v()}recordFileActivity(t,e,i={}){try{let r=i.source||"system";if(this.maxTrackedActivityFiles===0)return;let n=t?.fsPath||t?.path;if(!n)return;let a=this.h(n);if(!a||!this.R(a))return;let c=this.fileActivityCache.get(a);c?c.path=n:(c={path:n,activities:[]},this.fileActivityCache.set(a,c));let h=new Date;c.activities.push({action:e,timestamp:h,path:n,source:r}),r==="user"&&this.E(a,h.getTime()),this.o[r]===void 0&&(this.o[r]=0),this.o[r]++,this.P(a,c),this.L(a,h.getTime())}catch(r){logger.error("Failed to record file activity:",r)}}P(t,e){let i=e?.activities;if(!(!i||i.length===0)){if(this.activityCutoffMs){let r=Date.now()-this.activityCutoffMs;for(;i.length&&i[0].timestamp.getTime()MAX_TRACK_HISTORY_PER_FILE&&i.splice(0,i.length-MAX_TRACK_HISTORY_PER_FILE),i.length===0&&(this.fileActivityCache.delete(t),this.t.delete(t))}}async generateFileModificationReport(t={}){try{let{format:e="json",timeRange:i="all",includeDeleted:r=!1,outputPath:n=null}=t;if(!this.allowedFormats.includes(e)){let h=l10n.getString("reportFormatDisabled",e,this.allowedFormats.join(", "));return vscode.window.showWarningMessage(h),logger.warn(h),null}let a=await this.collectFileData(i,r),c=await this.formatReport(a,e);return n&&(await this.saveReport(c,n),vscode.window.showInformationMessage(l10n.getString("reportSaved",n))),c}catch(e){return logger.error("Failed to generate file modification report:",e),vscode.window.showErrorMessage(l10n.getString("reportGenerateFailed")),null}}async collectFileData(t,e){let i=[],r=vscode.workspace.workspaceFolders;if(!r)return{files:[],summary:this.createSummary([])};for(let a of r){let c=await this.scanWorkspaceFolder(a.uri,t,e);i.push(...c)}let n=this.createSummary(i);return n.integrationTarget=this.timeTrackingIntegration,n.activityTrackingDays=this.activityTrackingDays,{generatedAt:new Date().toISOString(),workspace:r.map(a=>a.uri.fsPath),timeRange:t,files:i,summary:n}}async scanWorkspaceFolder(t,e,i){let r=[],a=vscode.workspace.getConfiguration("explorerDates").get("excludedPatterns",[]);try{let c=await vscode.workspace.fs.readDirectory(t);for(let[h,o]of c){let l=vscode.Uri.joinPath(t,h),d=vscode.workspace.asRelativePath(l);if(!this.isExcluded(d,a)){if(o===vscode.FileType.File){let p=await this.getFileData(l,e);p&&r.push(p)}else if(o===vscode.FileType.Directory){let p=await this.scanWorkspaceFolder(l,e,i);r.push(...p)}}}if(i&&t.fsPath){let h=this.getDeletedFiles(t.fsPath,e);r.push(...h)}}catch(c){logger.error(`Failed to scan folder ${t.fsPath||t.path}:`,c)}return r}async getFileData(t,e){try{let i=await vscode.workspace.fs.stat(t),r=vscode.workspace.asRelativePath(t),n=t.fsPath||t.path,a=this.h(n),c=this.fileActivityCache.get(a),h=c?.activities||[],o=this.filterActivitiesByTimeRange(h,e);return{path:r,fullPath:c?.path||n,size:i.size,created:ensureDate(i.ctime),modified:ensureDate(i.mtime),type:this.getFileType(r),extension:getExtension(r),activities:o,activityCount:o.length,lastActivity:o.length>0?o[o.length-1].timestamp:ensureDate(i.mtime)}}catch(i){return logger.error(`Failed to get file data for ${t.fsPath||t.path}:`,i),null}}filterActivitiesByTimeRange(t,e){let i=t;if(e!=="all"){let r=new Date,n;switch(e){case"24h":n=new Date(r-1440*60*1e3);break;case"7d":n=new Date(r-10080*60*1e3);break;case"30d":n=new Date(r-720*60*60*1e3);break;case"90d":n=new Date(r-2160*60*60*1e3);break;default:n=null}n&&(i=i.filter(a=>a.timestamp>=n))}if(this.activityCutoffMs){let r=new Date(Date.now()-this.activityCutoffMs);i=i.filter(n=>n.timestamp>=r)}return i}getDeletedFiles(t,e){if(!t)return[];let i=[],r=t?this.h(t):"";for(let[n,a]of this.fileActivityCache.entries()){if(!a?.activities||a.activities.length===0||r&&!n.startsWith(r))continue;let c=a.activities.filter(o=>o.action==="deleted"),h=this.filterActivitiesByTimeRange(c,e);h.length>0&&i.push({path:vscode.workspace.asRelativePath(a.path||n),fullPath:a.path||n,size:0,created:null,modified:null,type:"deleted",extension:getExtension(a.path||n),activities:h,activityCount:h.length,lastActivity:h[h.length-1].timestamp})}return i}createSummary(t){let e={totalFiles:t.length,totalSize:t.reduce((r,n)=>r+(n.size||0),0),fileTypes:{},activityByDay:{},mostActiveFiles:[],recentlyModified:[],largestFiles:[],oldestFiles:[],activitySourceBreakdown:{user:this.o.user||0,watcher:this.o.watcher||0}};t.forEach(r=>{let n=r.type||"unknown";e.fileTypes[n]=(e.fileTypes[n]||0)+1});let i=new Date(Date.now()-this.activityTrackingDays*24*60*60*1e3);return t.forEach(r=>{r.activities.forEach(n=>{if(n.timestamp>=i){let a=n.timestamp.toISOString().split("T")[0];e.activityByDay[a]=(e.activityByDay[a]||0)+1}})}),e.mostActiveFiles=t.sort((r,n)=>n.activityCount-r.activityCount).slice(0,10).map(r=>({path:r.path,activityCount:r.activityCount,lastActivity:r.lastActivity})),e.recentlyModified=t.filter(r=>r.modified).sort((r,n)=>n.modified-r.modified).slice(0,20).map(r=>({path:r.path,modified:r.modified,size:r.size})),e.largestFiles=t.sort((r,n)=>(n.size||0)-(r.size||0)).slice(0,10).map(r=>({path:r.path,size:r.size,modified:r.modified})),e.oldestFiles=t.filter(r=>r.modified).sort((r,n)=>r.modified-n.modified).slice(0,10).map(r=>({path:r.path,modified:r.modified,size:r.size})),e}async formatReport(t,e){switch(e.toLowerCase()){case"json":return JSON.stringify(t,null,2);case"csv":return this.formatAsCSV(t);case"html":return this.formatAsHTML(t);case"markdown":return this.formatAsMarkdown(t);default:throw new Error(`Unsupported format: ${e}`)}}formatAsCSV(t){let e=["Path,Size,Created,Modified,Type,Extension,ActivityCount,LastActivity"];return t.files.forEach(i=>{e.push([i.path,i.size||0,i.created?i.created.toISOString():"",i.modified?i.modified.toISOString():"",i.type,i.extension,i.activityCount,i.lastActivity?i.lastActivity.toISOString():""].join(","))}),e.join(` -`)}formatAsHTML(t){return` +var g=(i,e)=>()=>(e||i((e={exports:{}}).exports,e),e.exports);var N=g((dt,$)=>{var T="__explorerDatesLogger",k=class{constructor(){this.f=null}d(e,t){if(this.f&&typeof this.f[e]=="function")try{return this.f[e](...t)}catch{}switch(e){case"debug":break;case"info":break;case"warn":break;case"error":break;default:break}}debug(...e){return this.d("debug",e)}info(...e){return this.d("info",e)}warn(...e){return this.d("warn",e)}error(...e){return this.d("error",e)}U(e){this.f=e}};function ve(){return typeof global<"u"?(global[T]||(global[T]=new k),global[T]):typeof globalThis<"u"?(globalThis[T]||(globalThis[T]=new k),globalThis[T]):(x||(x=new k),x)}var P=class extends k{},x=null;$.exports={Logger:P,getLogger:ve}});var j=g((mt,W)=>{var U=require("vscode");function Se(){try{let i=U?.env?.uiKind,e=U?.UIKind?.Web;return i!==void 0&&e!==void 0&&i===e}catch{return!1}}W.exports={isWebEnvironment:Se}});var q=g((exports,module)=>{var chunk=null;try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){try{chunk=dynamicRequire("../chunks/utils-shared-chunk")}catch{}try{chunk||(chunk=dynamicRequire("./chunks/utils-shared-chunk"))}catch{}try{chunk||(chunk=dynamicRequire("../chunks/path-utils-chunk"))}catch{}try{chunk||(chunk=dynamicRequire("./chunks/path-utils-chunk"))}catch{}}}catch{}if(chunk&&chunk.normalizePath)module.exports={normalizePath:chunk.normalizePath,getFileName:chunk.getFileName,getExtension:chunk.getExtension,getDirectory:chunk.getDirectory,joinPath:chunk.joinPath,getCacheKey:chunk.getCacheKey,getUriPath:chunk.getUriPath,getRelativePath:chunk.getRelativePath};else{let i=function(c=""){return c?c.replace(/\\/g,"/"):""},e=function(c=""){let u=i(c);return u?u.split("/").filter(Boolean):[]},t=function(c=""){let u=e(c);return u.length?u[u.length-1]:""},r=function(c=""){let u=t(c),h=u.lastIndexOf(".");return h<=0?"":u.substring(h).toLowerCase()},n=function(c=""){let u=i(c),h=u.lastIndexOf("/");return h===-1?"":u.substring(0,h)},s=function(...c){return i(c.filter(Boolean).join("/")).replace(/\/+/g,"/")},o=function(c=""){return i(c).toLowerCase()},l=function(c=""){if(!c)return"";if(typeof c=="string")return c;if(typeof c.fsPath=="string"&&c.fsPath.length>0)return c.fsPath;if(typeof c.path=="string"&&c.path.length>0)return c.path;if(typeof c.toString=="function")try{return c.toString(!0)}catch{return c.toString()}return String(c)},a=function(c="",u=""){let h=i(c),m=i(u);return h&&m.startsWith(h)?m.substring(h.length).replace(/^\/+/,""):m};normalizePath=i,getSegments=e,getFileName=t,getExtension=r,getDirectory=n,joinPath=s,getCacheKey=o,getUriPath=l,getRelativePath=a,module.exports={normalizePath:i,getFileName:t,getExtension:r,getDirectory:n,joinPath:s,getCacheKey:o,getUriPath:l,getRelativePath:a}}var normalizePath,getSegments,getFileName,getExtension,getDirectory,joinPath,getCacheKey,getUriPath,getRelativePath});var K=g((pt,B)=>{var _=class extends Error{constructor(e,t,r={}){super(t),this.code=e,this.context=r,this.name="ExtensionError"}},H={FILE_PERMISSION_DENIED:"FILE_PERMISSION_DENIED",WORKSPACE_TOO_LARGE:"WORKSPACE_TOO_LARGE",CHUNK_LOAD_FAILED:"CHUNK_LOAD_FAILED"};function Fe(i){if(!i)return!1;let e=i.code||i?.name;return["EACCES","EPERM","EROFS","NoPermissions"].includes(e)}var L=class extends _{constructor(e,t,r={}){let{recoverable:n=!0,context:s={}}=r;super(H.CHUNK_LOAD_FAILED,`Failed to load ${e}: ${t}`,{chunkName:e,recoverable:n,...s}),this.name="ChunkLoadError",this.chunkName=e,this.recoverable=n}};function Te(i,e,t={}){let r=require("vscode"),{userFacing:n=!0}=t,s=e?.recoverable??!0;n&&!s&&r.window.showErrorMessage(`Explorer Dates: ${i} feature unavailable. Please reinstall or rebuild the extension.`)}B.exports={ExtensionError:_,ERROR_CODES:H,isPermissionError:Fe,ChunkLoadError:L,handleChunkFailure:Te}});var Z=g((gt,Y)=>{var X="EXPLORER_DATES_FORCE_VSCODE_FS";function G(i,e=process.env){return String(e?.[i]||"")==="1"}function b(i){let e=i&&typeof i=="object"?i:null,t=String(e?.scheme||(typeof i=="string"&&/^[a-z][a-z0-9+.-]*:/i.test(i)?i.split(":",1)[0]:"file")).toLowerCase(),r=String(e?.authority||""),n=e?.path||e?.fsPath||(typeof i=="string"?i.replace(/^[a-z][a-z0-9+.-]*:\/\//i,""):"");return{scheme:t,authority:r,path:String(n||"")}}function ke({uri:i,isWeb:e=!1,remoteName:t="",forceWorkspaceFs:r=G(X)}={}){let n=b(i),s=n.scheme!=="file",o=!!e,l=!!t,a=!!(r||o||l||s);return{scheme:n.scheme,authority:n.authority,isFileScheme:!s,isVirtual:s,isBrowser:o,isRemote:l,forceWorkspaceFs:!!r,filesystem:a?"workspace.fs":"node.fs",provider:s?n.scheme==="github"||n.scheme==="vscode-vfs"?"github":"virtual":"filesystem"}}function V({uri:i,platform:e=process.platform,caseSensitive:t}={}){return typeof t=="boolean"?t:b(i).scheme!=="file"?!0:e!=="win32"}function Ae(i,e={}){let t=b(i),r=t.path.replace(/\\/g,"/").replace(/\/+/g,"/"),n=`${t.scheme}://${t.authority}${r}`;return V({uri:i,...e})?n:n.toLowerCase()}function O(i){if(i instanceof Date){let e=i.getTime();return Number.isFinite(e)?e:null}if(typeof i=="number")return Number.isFinite(i)?i:null;if(typeof i=="string"&&i.trim()){let e=Date.parse(i);return Number.isFinite(e)?e:null}return null}function Re(i){if(!i||typeof i!="object")return null;let e=O(i.mtime),t=O(i.ctime);return{...i,mtimeMs:e,ctimeMs:t}}Y.exports={FORCE_WORKSPACE_FS_ENV:X,envFlag:G,getUriParts:b,getEnvironmentContract:ke,isCaseSensitive:V,resourceIdentity:Ae,normalizeTimestamp:O,normalizeStat:Re}});var M=g((yt,ee)=>{function _e(){return typeof Date=="function"&&Date.now?Date.now():16409952e5}function J(i){return!!(i&&typeof i=="object"&&typeof i.getTime=="function")}function be(i){if(J(i))return i;if(typeof i=="number")return new Date(i);if(typeof i=="string"){let e=Date.parse(i);return isNaN(e)?new Date:new Date(e)}return new Date}function S(i=""){return i?i.replace(/\\/g,"/"):""}function Ce(i=""){let e=S(i);return e?e.split("/").filter(Boolean):[]}function Q(i=""){let e=Ce(i);return e.length?e[e.length-1]:""}function xe(i=""){let e=Q(i),t=e.lastIndexOf(".");return t<=0?"":e.substring(t).toLowerCase()}function Pe(i=""){let e=S(i),t=e.lastIndexOf("/");return t===-1?"":e.substring(0,t)}function Le(...i){return S(i.filter(Boolean).join("/")).replace(/\/+/g,"/")}function Oe(i=""){return S(i).toLowerCase()}function Me(i=""){if(!i)return"";if(typeof i=="string")return i;if(typeof i.fsPath=="string"&&i.fsPath.length>0)return i.fsPath;if(typeof i.path=="string"&&i.path.length>0)return i.path;if(typeof i.toString=="function")try{return i.toString(!0)}catch{return i.toString()}return String(i)}function Ie(i="",e=""){let t=S(i),r=S(e);return t&&r.startsWith(t)?r.substring(t.length).replace(/^\/+/,""):r}ee.exports={ensureDate:be,isDateLike:J,getCurrentTimestamp:_e,normalizePath:S,getFileName:Q,getExtension:xe,getDirectory:Pe,joinPath:Le,getCacheKey:Oe,getUriPath:Me,getRelativePath:Ie}});var I=g((exports,module)=>{var chunk=null;try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){try{chunk=dynamicRequire("../chunks/utils-shared-chunk")}catch{}try{chunk||(chunk=dynamicRequire("./chunks/utils-shared-chunk"))}catch{}try{chunk||(chunk=dynamicRequire("../chunks/date-helpers-chunk"))}catch{}try{chunk||(chunk=dynamicRequire("./chunks/date-helpers-chunk"))}catch{}}}catch{}if(chunk&&(chunk.ensureDate||chunk.isDateLike||chunk.getCurrentTimestamp))module.exports={ensureDate:chunk.ensureDate,isDateLike:chunk.isDateLike,getCurrentTimestamp:chunk.getCurrentTimestamp};else{let i=function(){return typeof Date=="function"&&Date.now?Date.now():16409952e5},e=function(r){return!!(r&&typeof r=="object"&&typeof r.getTime=="function")},t=function(r){if(e(r))return r;if(typeof r=="number")return new Date(r);if(typeof r=="string"){let n=Date.parse(r);return isNaN(n)?new Date:new Date(n)}return new Date};getCurrentTimestamp=i,isDateLike=e,ensureDate=t,module.exports={ensureDate:t,isDateLike:e,getCurrentTimestamp:i}}var getCurrentTimestamp,isDateLike,ensureDate});var se=g((Et,ne)=>{var f=require("vscode"),{isWebEnvironment:te}=j(),{normalizePath:ze}=q(),{ExtensionError:$e,ERROR_CODES:Ne,isPermissionError:Ue}=K(),{getEnvironmentContract:We,normalizeStat:je,FORCE_WORKSPACE_FS_ENV:qe}=Z(),A;try{let i=M();i&&(A=i.ensureDate)}catch{}A||(A=I().ensureDate);var ie=typeof process<"u"&&process.env?process.env:{},re=ie.VSCODE_WEB==="true"||te(),d=null;if(!re)try{d=require("fs").promises}catch{d=null}var C=class{constructor(){this.isWeb=re||te()}r(e){try{return We({uri:this.e(e),isWeb:this.isWeb,remoteName:f.env?.remoteName,forceWorkspaceFs:ie[qe]==="1"}).filesystem==="workspace.fs"}catch{return!1}}i(e){if(!e)return"";if(typeof e=="string")return e;if(e&&typeof e=="object"&&typeof e.fsPath=="string")return e.fsPath;if(e&&typeof e=="object"&&typeof e.path=="string")return e.path;if(typeof e=="object"){if(typeof e.fsPath=="string")return e.fsPath;if(typeof e.path=="string")return e.path}return String(e)}e(e){if(e&&typeof e=="object"&&typeof e.scheme=="string"&&typeof e.path=="string")return e;if(typeof e=="string"){let t=e.trim(),r=/^[a-zA-Z]:[\\/]/.test(t);if(/^[a-zA-Z][a-zA-Z0-9+.-]*:/.test(t)&&!r){let s=f.Uri.parse(t);if(s.scheme&&s.scheme!=="file")return s}return f.Uri.file(e)}if(e&&typeof e=="object"){if(e.uri&&e.uri!==e)try{return this.e(e.uri)}catch{}if(this.isWeb&&typeof e.scheme=="string"&&typeof e.path=="string")return f.Uri.from({scheme:e.scheme,authority:e.authority||"",path:e.path||"",query:e.query||"",fragment:e.fragment||""});if(typeof e.fsPath=="string"&&e.fsPath.length>0)return f.Uri.file(e.fsPath);if(typeof e.path=="string"&&e.path.length>0)return this.isWeb&&typeof e.scheme=="string"&&e.scheme!=="file"?f.Uri.from({scheme:e.scheme,authority:e.authority||"",path:e.path,query:e.query||"",fragment:e.fragment||""}):f.Uri.file(e.path);if(typeof e.href=="string"&&e.href.length>0)return f.Uri.parse(e.href);if(typeof e.scheme=="string")return f.Uri.from({scheme:e.scheme,authority:e.authority||"",path:e.path||e.fsPath||"",query:e.query||"",fragment:e.fragment||""});if(typeof e.toString=="function")try{let t=e.toString(!0);if(t&&t!=="[object Object]")return f.Uri.parse(t)}catch{let t=e.toString();if(t&&t!=="[object Object]")return f.Uri.parse(t)}}throw new Error(`Unsupported target type: ${typeof e}`)}async stat(e){let t=this.r(e);if(!this.isWeb&&d&&!t)return d.stat(this.i(e));let r=this.e(e),n=await f.workspace.fs.stat(r),s=je(n);return{...s,mtime:s.mtimeMs===null?A(n.mtime):new Date(s.mtimeMs),ctime:s.ctimeMs===null?A(n.ctime):new Date(s.ctimeMs),birthtime:s.ctimeMs===null?A(n.ctime):new Date(s.ctimeMs),isFile:()=>n.type===f.FileType.File,isDirectory:()=>n.type===f.FileType.Directory}}async readFile(e,t="utf8"){let r=this.r(e);if(!this.isWeb&&d&&!r)return d.readFile(this.i(e),t);let n=this.e(e),s=await f.workspace.fs.readFile(n);return t===null||t==="binary"?s:new TextDecoder(t).decode(s)}async writeFile(e,t,r="utf8"){let n=this.i(e);try{let s=this.r(e);if(!this.isWeb&&d&&!s)return d.writeFile(n,t,r);let o=this.e(e),l=typeof t=="string"?new TextEncoder().encode(t):t;await f.workspace.fs.writeFile(o,l)}catch(s){this.g("write file",n,s)}}async rename(e,t,r={overwrite:!1}){let n=this.i(e),s=this.i(t);try{let o=this.r(e)||this.r(t);if(!this.isWeb&&d&&!o)return d.rename(n,s);if(typeof f.workspace.fs.rename=="function")await f.workspace.fs.rename(this.e(e),this.e(t),r);else if(this.e(e).scheme==="file"&&this.e(t).scheme==="file")await(d||require("fs").promises).rename(n,s);else throw new Error("The active filesystem provider cannot rename report output.")}catch(o){this.g("rename file",`${n} -> ${s}`,o)}}async mkdir(e,t={recursive:!0}){let r=this.i(e);try{let n=this.r(e);if(!this.isWeb&&d&&!n)return d.mkdir(r,t);let s=this.e(e);await f.workspace.fs.createDirectory(s)}catch(n){this.g("create directory",r,n)}}async readdir(e,t={withFileTypes:!1}){let r=this.r(e);if(!this.isWeb&&d&&!r)return d.readdir(this.i(e),t);let n=this.e(e),s=await f.workspace.fs.readDirectory(n);return t.withFileTypes?s.map(([o,l])=>({name:o,isDirectory:()=>l===f.FileType.Directory,isFile:()=>l===f.FileType.File})):s.map(([o])=>o)}async delete(e,t={recursive:!1}){let r=this.r(e);if(!this.isWeb&&d&&!r){let s=this.i(e);return t.recursive?d.rm?d.rm(s,t):d.rmdir(s,t):d.unlink(s)}let n=this.e(e);await f.workspace.fs.delete(n,t)}async exists(e){try{return await this.stat(e),!0}catch{return!1}}async ensureDirectory(e){let t=ze(this.i(e));await this.mkdir(t,{recursive:!0})}g(e,t,r){throw Ue(r)?new $e(Ne.FILE_PERMISSION_DENIED,`Permission denied while attempting to ${e}`,{path:t,code:r.code}):r}},He=new C;ne.exports={FileSystemAdapter:C,fileSystem:He}});var ce=g((wt,ae)=>{var R=typeof process<"u"&&process.env?process.env:{},Be=12e4,Ke=1e4,Xe=1440*60*1e3,Ge=2,Ve=["Ja","Fe","Mr","Ap","My","Jn","Jl","Au","Se","Oc","No","De"],Ye=Number(R.EXPLORER_DATES_DECORATION_POOL_SIZE||2048),Ze=Number(R.EXPLORER_DATES_FLYWEIGHT_CACHE_SIZE||4096),Je=Number(R.EXPLORER_DATES_WORKSPACE_BALANCED_THRESHOLD||15e3),Qe=Number(R.EXPLORER_DATES_WORKSPACE_LARGE_THRESHOLD||25e4),oe=Number(R.EXPLORER_DATES_WORKSPACE_EXTREME_THRESHOLD||4e5),et=Number(R.EXPLORER_DATES_WORKSPACE_SCAN_MAX_RESULTS||Math.min(oe+1,50001)),tt={ADVANCED_CACHE:"explorerDates.advancedCache",ADVANCED_CACHE_METADATA:"explorerDates.advancedCacheMetadata",TEMPLATE_STORE:"explorerDates.templates",WEB_GIT_NOTICE:"explorerDates.webGitNotice"},it="explorerDatesChunks",rt="__explorerDatesChunks";ae.exports={DEFAULT_CACHE_TIMEOUT:Be,DEFAULT_MAX_CACHE_SIZE:Ke,DEFAULT_PERSISTENT_CACHE_TTL:Xe,DEFAULT_DECORATION_POOL_SIZE:Ye,DEFAULT_FLYWEIGHT_CACHE_SIZE:Ze,MAX_BADGE_LENGTH:Ge,MONTH_ABBREVIATIONS:Ve,WORKSPACE_SCALE_BALANCED_THRESHOLD:Je,WORKSPACE_SCALE_LARGE_THRESHOLD:Qe,WORKSPACE_SCALE_EXTREME_THRESHOLD:oe,WORKSPACE_SCAN_MAX_RESULTS:et,GLOBAL_STATE_KEYS:tt,WEB_CHUNK_GLOBAL_KEY:it,LEGACY_WEB_CHUNK_GLOBAL_KEY:rt}});var he=g((Dt,ue)=>{var{MAX_BADGE_LENGTH:le}=ce();function nt(i=0,e="auto"){let t=typeof i=="number"&&!Number.isNaN(i)?i:0;if(e==="bytes")return`~${t}B`;let r=t/1024;if(e==="kb")return`~${r.toFixed(1)}K`;let n=r/1024;return e==="mb"?`~${n.toFixed(1)}M`:t<1024?`~${t}B`:r<1024?`~${Math.round(r)}K`:`~${n.toFixed(1)}M`}function st(i){if(i)return i.length>le?i.substring(0,le):i}ue.exports={formatFileSize:nt,trimBadge:st}});var Ee=g((vt,ye)=>{var fe=[".git","node_modules","dist","build","out",".vite",".vscode-test","test-results","playwright-report","coverage"],de=["24h","7d","30d","90d","all"];function y(i=""){return String(i||"").replace(/\\/g,"/").replace(/\/+/g,"/").replace(/^\.\//,"")}function me(i){return i==="full"||i==="all"?"all":de.includes(i)?i:"all"}function pe(i,e=Date.now()){let t=me(i);if(t==="all")return null;let r=t==="24h"?24:Number.parseInt(t,10)*24;return e-r*60*60*1e3}function w(i){if(i instanceof Date)return Number.isFinite(i.getTime())?i:null;if(typeof i=="number"&&Number.isFinite(i)){let e=new Date(i<1e12?i*1e3:i);return Number.isFinite(e.getTime())?e:null}if(typeof i=="string"&&i.trim()){let e=new Date(i);return Number.isFinite(e.getTime())?e:null}return null}function ot(i={}){let e=Number.isFinite(Number(i.size))&&Number(i.size)>=0?Number(i.size):null,t=w(i.mtime??i.mtimeMs),r=w(i.birthtime??i.ctime??i.ctimeMs);return{size:e,modified:t,created:r}}function at(i){let t=y(i).replace(/^\*\*\//,"").replace(/\/\*\*$/,"").replace(/[.+^${}()|[\]\\]/g,"\\$&").replace(/\*\*/g,".*").replace(/\*/g,"[^/]*").replace(/\?/g,"[^/]");try{return new RegExp(`(^|/)${t}($|/)`,"i")}catch{return null}}function ct(i={}){let e=new Set([...fe,...i.excludedSegments||[]].map(r=>y(r).replace(/^\/+|\/+$/g,"").toLowerCase()).filter(Boolean)),t=(i.excludedPatterns||[]).map(at).filter(Boolean);return{excludedSegments:[...e],isExcluded(r=""){let n=y(r);return n.split("/").filter(Boolean).some(o=>e.has(o.toLowerCase()))?!0:t.some(o=>o.test(n))},shouldDescend(r=""){return!this.isExcluded(r,!0)}}}function lt(i){let e=w(i?.timestamp);return e?`${e.toISOString()}|${i.action||"modified"}|${i.source||"unknown"}`:null}function ut(i,e,t){let r=w(i),n=pe(e,t);return!!(r&&(n===null||r.getTime()>=n))}function ge(i){return[...i].sort((e,t)=>{let r=w(e.lastActivity||e.modified)?.getTime()||0;return(w(t.lastActivity||t.modified)?.getTime()||0)-r||y(e.path).localeCompare(y(t.path))})}function ht(i){let e={filesystem:0,user:0,watcher:0,git:0,unavailable:0},t={},r={};for(let a of i){t[a.type||"unknown"]=(t[a.type||"unknown"]||0)+1;for(let c of a.evidence||[]){e[c.source]=(e[c.source]||0)+1;let u=w(c.timestamp);u&&(r[u.toISOString().slice(0,10)]=(r[u.toISOString().slice(0,10)]||0)+1)}a.activityUnavailable&&e.unavailable++}let n=ge(i),s=[...i].filter(a=>Number.isFinite(a.activityCount)&&a.activityCount>0).sort((a,c)=>c.activityCount-a.activityCount||y(a.path).localeCompare(y(c.path))),o=[...i].sort((a,c)=>(c.size||0)-(a.size||0)||y(a.path).localeCompare(y(c.path))),l=[...i].filter(a=>w(a.modified)).sort((a,c)=>w(a.modified).getTime()-w(c.modified).getTime()||y(a.path).localeCompare(y(c.path)));return{totalFiles:i.length,totalSize:i.reduce((a,c)=>a+(c.size||0),0),fileTypes:t,activityByDay:r,mostActiveFiles:s.slice(0,10).map(a=>({path:a.path,activityCount:a.activityCount,lastActivity:a.lastActivity})),recentlyModified:n.slice(0,20).map(a=>({path:a.path,modified:a.modified,size:a.size})),largestFiles:o.slice(0,10).map(a=>({path:a.path,size:a.size,modified:a.modified})),oldestFiles:l.slice(0,10).map(a=>({path:a.path,modified:a.modified,size:a.size})),activitySourceBreakdown:e}}ye.exports={REPORT_SCHEMA_VERSION:2,DEFAULT_EXCLUDED_SEGMENTS:fe,REPORT_TIME_RANGES:de,normalizePath:y,normalizeTimeRange:me,rangeStart:pe,validDate:w,normalizeStat:ot,createInclusionPolicy:ct,activityKey:lt,inRange:ut,sortFiles:ge,createSummary:ht}});var we=g((exports,module)=>{var vscode=require("vscode"),{getLogger}=N(),{fileSystem}=se(),getExtension=filePath=>{try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let i=dynamicRequire("./chunks/path-utils-chunk");if(i&&typeof i.getExtension=="function")return getExtension=i.getExtension,getExtension(filePath)}}catch{}try{let i=String(filePath||""),e=i.lastIndexOf(".");return e<=0?"":i.substring(e).toLowerCase()}catch{return""}},normalizePath=input=>{try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let i=dynamicRequire("./chunks/path-utils-chunk");if(i&&typeof i.normalizePath=="function")return normalizePath=i.normalizePath,normalizePath(input)}}catch{}return String(input||"").replace(/\\/g,"/")},ensureDate;try{let i=M();i&&(ensureDate=i.ensureDate)}catch{}ensureDate||(ensureDate=I().ensureDate);var{getLocalization}=require("./utils/localization"),{formatFileSize}=he(),{REPORT_SCHEMA_VERSION,DEFAULT_EXCLUDED_SEGMENTS,normalizePath:normalizeReportPath,normalizeTimeRange,rangeStart,normalizeStat,createInclusionPolicy,inRange,sortFiles,createSummary,validDate}=Ee(),l10n=getLocalization(),logger=getLogger(),env=typeof process<"u"&&process.env?process.env:{},isWeb=env.VSCODE_WEB==="true",DEFAULT_EXCLUDED_FOLDERS=DEFAULT_EXCLUDED_SEGMENTS,DEFAULT_EXCLUDED_PATTERNS=["**/*.tmp","**/*.log"],DEFAULT_MAX_TRACKED_FILES=3e3,MAX_TRACK_HISTORY_PER_FILE=100,MAX_TRACKED_FILES_LIMIT=2e4,ExportReportingManager=class{constructor(){this.fileActivityCache=new Map,this.t=new Map,this.allowedFormats=["json","html"],this.activityTrackingDays=30,this.activityCutoffMs=null,this.timeTrackingIntegration="none",this.maxTrackedActivityFiles=DEFAULT_MAX_TRACKED_FILES,this.excludedFolders=[...DEFAULT_EXCLUDED_FOLDERS],this.excludedPatterns=[...DEFAULT_EXCLUDED_PATTERNS],this.S=[],this.o=null,this.c=null,this.m=[],this.l=[],this.s=new Map,this.x=Number(env.EXPLORER_DATES_USER_ACTIVITY_TTL_MS||300*1e3),this.p={user:0,watcher:0},this.P=env.EXPLORER_DATES_LIGHTWEIGHT_MODE==="1",this.u=!1,this.n=null,this.y=createInclusionPolicy(),this.F(),this.L(),this.initialize()}F(){try{let e=vscode.workspace.getConfiguration("explorerDates"),t=e.get("reportFormats",["json","html"]),r=new Set(["json","csv","html","markdown"]);this.allowedFormats=Array.from(new Set((Array.isArray(t)?t:[]).map(l=>String(l).toLowerCase()).filter(l=>r.has(l)))),this.allowedFormats.length===0&&(this.allowedFormats=["json"]);let n=e.get("activityTrackingDays",30);this.activityTrackingDays=Math.max(1,Math.min(365,n)),this.activityCutoffMs=this.activityTrackingDays*24*60*60*1e3,this.timeTrackingIntegration=e.get("timeTrackingIntegration","none"),this.maxTrackedActivityFiles=this.O(e.get("maxTrackedActivityFiles",DEFAULT_MAX_TRACKED_FILES)),this.excludedFolders=e.get("excludedFolders",DEFAULT_EXCLUDED_FOLDERS)||DEFAULT_EXCLUDED_FOLDERS,this.excludedPatterns=e.get("excludedPatterns",DEFAULT_EXCLUDED_PATTERNS)||DEFAULT_EXCLUDED_PATTERNS,this.S=this.excludedPatterns.map(l=>this.T(l)).filter(Boolean);let s=vscode.workspace.getConfiguration("files").get("exclude",{})||{},o=Object.keys(s).filter(l=>s[l]!==!1);this.y=createInclusionPolicy({excludedSegments:this.excludedFolders,excludedPatterns:[...this.excludedPatterns,...o]})}catch(e){logger.error("Failed to load reporting configuration",e)}}L(){this.o&&this.o.dispose(),this.o=vscode.workspace.onDidChangeConfiguration(e=>{(e.affectsConfiguration("explorerDates.reportFormats")||e.affectsConfiguration("explorerDates.activityTrackingDays")||e.affectsConfiguration("explorerDates.timeTrackingIntegration")||e.affectsConfiguration("explorerDates.maxTrackedActivityFiles")||e.affectsConfiguration("explorerDates.excludedFolders")||e.affectsConfiguration("explorerDates.excludedPatterns")||e.affectsConfiguration("explorerDates.performanceMode"))&&(this.F(),this.k(),logger.info("Reporting configuration updated",{allowedFormats:this.allowedFormats,activityTrackingDays:this.activityTrackingDays,timeTrackingIntegration:this.timeTrackingIntegration,maxTrackedActivityFiles:this.maxTrackedActivityFiles}))})}async initialize(){try{if(this.A()){this.u=!0,this.E(),this.w(),logger.info("Export & Reporting Manager initialized (activity tracking suppressed by performance/lightweight mode)");return}this.u=!1,this.D(),this.k(),logger.info("Export & Reporting Manager initialized")}catch(e){logger.error("Failed to initialize Export & Reporting Manager:",e)}}startFileWatcher(){if(this.c||this.maxTrackedActivityFiles===0||isWeb){this.maxTrackedActivityFiles===0&&logger.info("File activity tracking disabled (maxTrackedActivityFiles=0)"),isWeb&&logger.info("Skipping file activity watcher in web environment");return}let e=vscode.workspace.createFileSystemWatcher("**/*");this.c=e,this.m=[e.onDidChange(t=>this.recordFileActivity(t,"modified",{source:"watcher"})),e.onDidCreate(t=>this.recordFileActivity(t,"created",{source:"watcher"})),e.onDidDelete(t=>this.recordFileActivity(t,"deleted",{source:"watcher"}))]}w(){if(this.m.length){for(let e of this.m)try{e.dispose()}catch{}this.m=[]}if(this.c){try{this.c.dispose()}catch{}this.c=null}}k(){let e=this.A();if(e||this.maxTrackedActivityFiles<=0||isWeb){this.u=e||this.maxTrackedActivityFiles<=0||isWeb,this.w(),this.E(),this.fileActivityCache.clear(),this.t.clear();return}this.u&&(this.u=!1,this.D()),this.D(),this.startFileWatcher(),this.R()}recordFileActivity(e,t,r={}){try{let n=r.source||"system";if(this.maxTrackedActivityFiles===0)return;let s=e?.fsPath||e?.path;if(!s)return;let o=this.a(s);if(!o||!this.M(o))return;let l=this.fileActivityCache.get(o);l?l.path=s:(l={path:s,activities:[]},this.fileActivityCache.set(o,l));let a=new Date;l.activities.push({action:t,timestamp:a,path:s,source:n}),n==="user"&&this._(o,a.getTime()),this.p[n]===void 0&&(this.p[n]=0),this.p[n]++,this.I(o,l),this.z(o,a.getTime())}catch(n){logger.error("Failed to record file activity:",n)}}I(e,t){let r=t?.activities;if(!(!r||r.length===0)){if(this.activityCutoffMs){let n=Date.now()-this.activityCutoffMs;for(;r.length&&r[0].timestamp.getTime()MAX_TRACK_HISTORY_PER_FILE&&r.splice(0,r.length-MAX_TRACK_HISTORY_PER_FILE),r.length===0&&(this.fileActivityCache.delete(e),this.t.delete(e))}}async generateFileModificationReport(e={}){if(this.n)return vscode.window.showInformationMessage("Explorer Dates is already generating a report. Please wait for it to finish."),null;let t=this.b(e);this.n=t;try{return await t}finally{this.n===t&&(this.n=null)}}async b(e={}){try{let{format:t="json",timeRange:r="all",includeDeleted:n=!1,outputPath:s=null,progress:o=null,cancellationToken:l=null}=e,a=normalizeTimeRange(r);if(!this.allowedFormats.includes(t)){let h=l10n.getString("reportFormatDisabled",t,this.allowedFormats.join(", "));return vscode.window.showWarningMessage(h),logger.warn(h),null}let c=await this.collectFileData(a,n,{progress:o,cancellationToken:l}),u=await this.formatReport(c,t);if(s){await this.saveReport(u,s,{cancellationToken:l});let h=s instanceof vscode.Uri?s.fsPath||s.path:s,m=await vscode.window.showInformationMessage(`Report saved to ${h}`,"Open Report","Reveal in File Explorer");m==="Open Report"&&await vscode.commands.executeCommand("vscode.open",s instanceof vscode.Uri?s:vscode.Uri.file(s)),m==="Reveal in File Explorer"&&await vscode.commands.executeCommand("revealFileInOS",s instanceof vscode.Uri?s:vscode.Uri.file(s))}return u}catch(t){return logger.error("Failed to generate file modification report:",t),t?.code==="REPORT_CANCELLED"||vscode.window.showErrorMessage(`Failed to generate report${e.outputPath?` for ${e.outputPath}`:""}: ${t?.message||"unknown error"}`),null}}async collectFileData(e,t,r={}){let n=[],s=vscode.workspace.workspaceFolders;if(!s)return{schemaVersion:REPORT_SCHEMA_VERSION,files:[],summary:createSummary([]),timeRange:normalizeTimeRange(e)};this.v(r.progress,"Preparing workspace roots",0);let o=await this.collectGitEvidence(s,e,r);for(let a of s){let c=await this.scanWorkspaceFolder(a.uri,e,t,{...r,gitEvidence:o,workspaceName:a.name});n.push(...c)}let l=createSummary(n);return l.integrationTarget=this.timeTrackingIntegration,l.activityTrackingDays=this.activityTrackingDays,{schemaVersion:REPORT_SCHEMA_VERSION,generatedAt:new Date().toISOString(),workspace:s.map(a=>a.uri.fsPath),workspaceName:s.map(a=>a.name).join(", "),timeRange:normalizeTimeRange(e),files:sortFiles(n),summary:l}}async scanWorkspaceFolder(e,t,r,n={}){let s=[];try{this.h(n.cancellationToken),this.v(n.progress,"Scanning files");let o=await vscode.workspace.fs.readDirectory(e);for(let[l,a]of o){let c=vscode.Uri.joinPath(e,l),u=vscode.workspace.asRelativePath(c);if(!this.y.isExcluded(u)){if(a===vscode.FileType.File){let h=await this.getFileData(c,t,n);h&&s.push(h)}else if(a===vscode.FileType.Directory){let h=await this.scanWorkspaceFolder(c,t,r,n);s.push(...h)}}}if(r&&e.fsPath){let l=this.getDeletedFiles(e.fsPath,t);s.push(...l)}}catch(o){logger.error(`Failed to scan folder ${e.fsPath||e.path}:`,o)}return s}async getFileData(e,t,r={}){try{this.h(r.cancellationToken);let n=await vscode.workspace.fs.stat(e),s=vscode.workspace.asRelativePath(e),o=e.fsPath||e.path,l=this.a(o),a=this.fileActivityCache.get(l),c=Date.now(),u=normalizeStat(n),h=(a?.activities||[]).filter(p=>inRange(p.timestamp,t,c)),m=[],F=new Set,E=p=>{let D=validDate(p.timestamp);if(!D)return;let z=`${D.toISOString()}|${p.action||"modified"}`;F.has(z)||(F.add(z),m.push({...p,timestamp:D}))};for(let p of h)E(p);inRange(u.modified,t,c)&&E({action:"modified",source:"filesystem",timestamp:u.modified});for(let p of r.gitEvidence?.get(l)||[])inRange(p.timestamp,t,c)&&E(p);if(normalizeTimeRange(t)!=="all"&&m.length===0)return null;m.sort((p,D)=>p.timestamp-D.timestamp);let v=m.length?m[m.length-1].timestamp:u.modified;return{path:s,fullPath:a?.path||o,size:u.size,created:u.created,modified:u.modified,type:this.getFileType(s),extension:getExtension(s),activities:m,evidence:m,activityCount:m.length,activityUnavailable:!1,lastActivity:v}}catch(n){return logger.error(`Failed to get file data for ${e.fsPath||e.path}:`,n),null}}h(e){if(e?.isCancellationRequested){let t=new Error("Report generation was cancelled.");throw t.code="REPORT_CANCELLED",t}}v(e,t,r){typeof e=="function"&&e(t,r)}async collectGitEvidence(e,t,r={}){let n=new Map;if(isWeb)return n;let s;try{s=require("child_process").execFile}catch{return n}let o=new Set;for(let l of e){this.h(r.cancellationToken);let a=l.uri.fsPath;if(!a)continue;let c=await new Promise(E=>s("git",["-C",a,"rev-parse","--show-toplevel"],{timeout:3e3},(v,p)=>E(v?null:p.trim())));if(!c||o.has(c))continue;o.add(c),this.v(r.progress,"Collecting Git activity");let u=rangeStart(t),h=["-C",c,"log","--all","--name-only","--format=%ct"];u!==null&&h.push(`--since=${new Date(u).toISOString()}`);let m=await new Promise(E=>s("git",h,{timeout:1e4,maxBuffer:8*1024*1024},(v,p)=>E(v?"":p))),F=null;for(let E of String(m).split(/\r?\n/)){if(/^\d+$/.test(E.trim())){F=new Date(Number(E.trim())*1e3);continue}let v=normalizeReportPath(E.trim());if(!v||!F)continue;let p=normalizeReportPath(require("path").join(c,v)),D=this.a(p);n.has(D)||n.set(D,[]),n.get(D).push({action:"modified",source:"git",timestamp:F})}}return n}filterActivitiesByTimeRange(e,t){let r=e;if(t!=="all"){let n=new Date,s;switch(t){case"24h":s=new Date(n-1440*60*1e3);break;case"7d":s=new Date(n-10080*60*1e3);break;case"30d":s=new Date(n-720*60*60*1e3);break;case"90d":s=new Date(n-2160*60*60*1e3);break;default:s=null}s&&(r=r.filter(o=>o.timestamp>=s))}if(this.activityCutoffMs){let n=new Date(Date.now()-this.activityCutoffMs);r=r.filter(s=>s.timestamp>=n)}return r}getDeletedFiles(e,t){if(!e)return[];let r=[],n=e?this.a(e):"";for(let[s,o]of this.fileActivityCache.entries()){if(!o?.activities||o.activities.length===0||n&&!s.startsWith(n))continue;let l=o.activities.filter(c=>c.action==="deleted"),a=this.filterActivitiesByTimeRange(l,t);a.length>0&&r.push({path:vscode.workspace.asRelativePath(o.path||s),fullPath:o.path||s,size:0,created:null,modified:null,type:"deleted",extension:getExtension(o.path||s),activities:a,activityCount:a.length,lastActivity:a[a.length-1].timestamp})}return r}createSummary(e){return createSummary(e)}async formatReport(e,t){switch(t.toLowerCase()){case"json":return JSON.stringify(e,null,2);case"csv":return this.formatAsCSV(e);case"html":return this.formatAsHTML(e);case"markdown":return this.formatAsMarkdown(e);default:throw new Error(`Unsupported format: ${t}`)}}formatAsCSV(e){let t=n=>{let s=n==null?"":String(n);return/^[=+\-@]/.test(s)&&(s=`'${s}`),/[",\r\n]/.test(s)?`"${s.replace(/"/g,'""')}"`:s},r=["Path,Size,Created,Modified,Type,Extension,ActivityCount,ActivitySources,LastActivity"];for(let n of e.files)r.push([n.path,n.size,validDate(n.created)?.toISOString(),validDate(n.modified)?.toISOString(),n.type,n.extension,n.activityCount,(n.evidence||[]).map(s=>s.source).join("|"),validDate(n.lastActivity)?.toISOString()].map(t).join(","));return r.join(` +`)}formatAsHTML(e){let t=o=>String(o??"").replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'"),r=o=>validDate(o)?.toLocaleString()||"Unavailable",n=e.files.map(o=>`${t(o.path)}${t(this.formatFileSize(o.size||0))}${t(r(o.modified))}${t(o.type)}${t(o.activityCount)}${t((o.evidence||[]).map(l=>l.source).join(", ")||"Unavailable")}`).join(""),s=e.summary.mostActiveFiles.length?e.summary.mostActiveFiles.map(o=>`${t(o.path)}${t(o.activityCount)}${t(r(o.lastActivity))}`).join(""):'No known activity evidence in this range.';return` - File Modification Report + + Explorer Dates File Report -

File Modification Report

-

Generated: ${new Date(t.generatedAt).toLocaleString()}

- -
-

Summary

-

Total Files: ${t.summary.totalFiles}

-

Total Size: ${this.formatFileSize(t.summary.totalSize)}

-

Time Range: ${t.timeRange}

-
- -

File Types

- - - ${Object.entries(t.summary.fileTypes).map(([e,i])=>``).join("")} -
TypeCount
${e}${i}
- -

Most Active Files

- - - ${t.summary.mostActiveFiles.map(e=>``).join("")} -
PathActivity CountLast Activity
${e.path}${e.activityCount}${new Date(e.lastActivity).toLocaleString()}
- -

All Files

- - - ${t.files.map(e=>` - - - - - - `).join("")} -
PathSizeModifiedTypeActivity Count
${e.path}${this.formatFileSize(e.size||0)}${e.modified?new Date(e.modified).toLocaleString():"N/A"}${e.type}${e.activityCount}
+
Explorer Dates

Explorer Dates File Report

Schema ${t(e.schemaVersion)} \xB7 Generated ${t(r(e.generatedAt))}
+

Workspace: ${t(e.workspaceName||e.workspace?.join(", "))} \xB7 Selected range: ${t(e.timeRange)}

+
${t(e.summary.totalFiles)}Included files
${t(this.formatFileSize(e.summary.totalSize))}Total size
${t(e.summary.mostActiveFiles.length)}Known active files
${t(Object.values(e.summary.activitySourceBreakdown||{}).reduce((o,l)=>o+l,0))}Evidence events
+

Most Active Files

${s}
PathActivity countLast activity
+
All Files (${t(e.files.length)})
${n}
PathSizeModifiedTypeActivity countSources
-`}formatAsMarkdown(t){return`# File Modification Report +`}formatAsMarkdown(e){let t=r=>String(r??"").replace(/\r?\n/g,"
").replace(/\|/g,"\\|");return`# Explorer Dates File Report -**Generated:** ${new Date(t.generatedAt).toLocaleString()} -**Time Range:** ${t.timeRange} +**Schema:** ${t(e.schemaVersion)}
+**Generated:** ${t(validDate(e.generatedAt)?.toISOString())}
+**Workspace:** ${t(e.workspaceName||e.workspace?.join(", "))}
+**Time Range:** ${t(e.timeRange)} ## Summary -- **Total Files:** ${t.summary.totalFiles} -- **Total Size:** ${this.formatFileSize(t.summary.totalSize)} +- **Total Files:** ${e.summary.totalFiles} +- **Total Size:** ${this.formatFileSize(e.summary.totalSize)} ## File Types | Type | Count | |------|-------| -${Object.entries(t.summary.fileTypes).map(([e,i])=>`| ${e} | ${i} |`).join(` +${Object.entries(e.summary.fileTypes).map(([r,n])=>`| ${t(r)} | ${n} |`).join(` `)} ## Most Active Files | Path | Activity Count | Last Activity | |------|----------------|---------------| -${t.summary.mostActiveFiles.map(e=>`| ${e.path} | ${e.activityCount} | ${new Date(e.lastActivity).toLocaleString()} |`).join(` +${e.summary.mostActiveFiles.map(r=>`| ${t(r.path)} | ${r.activityCount} | ${t(validDate(r.lastActivity)?.toISOString())} |`).join(` `)} ## Recently Modified Files | Path | Modified | Size | |------|----------|------| -${t.summary.recentlyModified.map(e=>`| ${e.path} | ${new Date(e.modified).toLocaleString()} | ${this.formatFileSize(e.size)} |`).join(` +${e.summary.recentlyModified.map(r=>`| ${t(r.path)} | ${t(validDate(r.modified)?.toISOString())} | ${this.formatFileSize(r.size)} |`).join(` `)} ## All Files | Path | Size | Modified | Type | Activities | |------|------|----------|------|------------| -${t.files.map(e=>`| ${e.path} | ${this.formatFileSize(e.size||0)} | ${e.modified?new Date(e.modified).toLocaleString():"N/A"} | ${e.type} | ${e.activityCount} |`).join(` +${e.files.map(r=>`| ${t(r.path)} | ${this.formatFileSize(r.size||0)} | ${t(validDate(r.modified)?.toISOString()||"Unavailable")} | ${t(r.type)} | ${r.activityCount} |`).join(` `)} -`}async saveReport(t,e){try{if(isWeb){let r=encodeURIComponent(t);await vscode.env.openExternal(vscode.Uri.parse(`data:text/plain;charset=utf-8,${r}`)),vscode.window.showInformationMessage(l10n.getString("reportDownloadTriggered"));return}let i=e instanceof vscode.Uri?e:vscode.Uri.file(e);await fileSystem.writeFile(i,t,"utf8"),logger.info(`Report saved to ${i.fsPath||i.path}`)}catch(i){throw logger.error("Failed to save report:",i),i}}async exportToTimeTrackingTools(t={}){try{let{tool:e="generic",timeRange:i="7d"}=t,r=await this.collectFileData(i,!1);return this.formatForTimeTracking(r,e)}catch(e){return logger.error("Failed to export to time tracking tools:",e),null}}formatForTimeTracking(t,e){let i=[];switch(t.files.forEach(r=>{r.activities.forEach(n=>{i.push({file:r.path,action:n.action,timestamp:n.timestamp,duration:this.estimateSessionDuration(n),project:this.extractProjectName(r.path)})})}),e){case"toggl":return this.formatForToggl(i);case"clockify":return this.formatForClockify(i);default:return i}}formatForToggl(t){return t.map(e=>({description:`${e.action}: ${e.file}`,start:e.timestamp.toISOString(),duration:e.duration*60,project:e.project,tags:[e.action,this.getFileType(e.file)]}))}formatForClockify(t){return t.map(e=>({description:`${e.action}: ${e.file}`,start:e.timestamp.toISOString(),end:new Date(e.timestamp.getTime()+e.duration*60*1e3).toISOString(),project:e.project,tags:[e.action,this.getFileType(e.file)]}))}estimateSessionDuration(t){switch(t.action){case"created":return 15;case"modified":return 5;case"deleted":return 1;default:return 5}}extractProjectName(t){return normalizePath(t).split("/")[0]||"Unknown Project"}getFileType(t){let e=getExtension(t);return{".js":"javascript",".ts":"typescript",".py":"python",".java":"java",".cpp":"cpp",".html":"html",".css":"css",".md":"markdown",".json":"json",".xml":"xml",".txt":"text"}[e]||"other"}isExcluded(t,e){return e.some(i=>new RegExp(i.replace(/\*/g,".*")).test(t))}formatFileSize(t){if(t===0)return"0 B";let e=1024,i=["B","KB","MB","GB"],r=Math.floor(Math.log(t)/Math.log(e));return parseFloat((t/Math.pow(e,r)).toFixed(1))+" "+i[r]}async showReportDialog(){try{let t={"\u{1F4CA} Generate Full Report":"full","\u{1F4C5} Last 24 Hours":"24h","\u{1F4C5} Last 7 Days":"7d","\u{1F4C5} Last 30 Days":"30d","\u{1F4C5} Last 90 Days":"90d"},e=await vscode.window.showQuickPick(Object.keys(t),{placeHolder:l10n.getString("selectReportTimeRangePlaceholder")});if(!e)return;let i=t[e],r=["JSON","CSV","HTML","Markdown"],n=await vscode.window.showQuickPick(r,{placeHolder:l10n.getString("selectReportFormatPlaceholder")});if(!n)return;let a=await vscode.window.showSaveDialog({defaultUri:vscode.Uri.file(`file-report.${n.toLowerCase()}`),filters:{[n]:[n.toLowerCase()]}});if(!a)return;await this.generateFileModificationReport({format:n.toLowerCase(),timeRange:i,outputPath:a.fsPath})}catch(t){logger.error("Failed to show report dialog:",t),vscode.window.showErrorMessage("Failed to generate report")}}dispose(){this.n&&(this.n.dispose(),this.n=null),this.m(),this.p(),this.fileActivityCache.clear(),this.t.clear(),this.r.clear(),this.o={user:0,watcher:0},logger.info("Export & Reporting Manager disposed")}h(t=""){let e=normalizePath(t||"").trim();return e?e.toLowerCase():""}R(t){if(!t)return!1;for(let e of this.excludedFolders){if(!e)continue;let i=e.replace(/^\/+|\/+$/g,"").toLowerCase();if(!i)continue;let r=`/${i}`;if(t.includes(`${r}/`)||t.endsWith(r))return!1}return!this.w.some(e=>e.test(t))}C(t){if(!t||typeof t!="string")return null;let e=t.replace(/([.+^${}()|[\]\\])/g,"\\$1").replace(/\\\*\\\*/g,".*").replace(/\\\*/g,"[^/]*").replace(/\\\?/g,".");try{return new RegExp(e,"i")}catch{return null}}L(t,e){t&&(this.t.has(t)&&this.t.delete(t),this.t.set(t,e),this.v())}v(){if(this.maxTrackedActivityFiles<=0){this.fileActivityCache.clear(),this.t.clear();return}for(;this.t.size>this.maxTrackedActivityFiles;){let t=this.t.keys().next();if(t.done)break;let e=t.value;this.t.delete(e),this.fileActivityCache.delete(e)}}b(t){let e=Number(t);return Number.isFinite(e)?e<=0?0:Math.min(Math.max(Math.floor(e),500),MAX_TRACKED_FILES_LIMIT):DEFAULT_MAX_TRACKED_FILES}k(){return vscode.workspace.getConfiguration("explorerDates").get("performanceMode",!1)||this.A}y(){if(this.c.length>0)return;let t=vscode.workspace||{},e=(o,l)=>typeof o!="function"?null:o.call(t,l),i=[],r=e(t.onDidSaveTextDocument,o=>{this.recordFileActivity(o.uri,"modified",{source:"user"})});r&&i.push(r);let n=e(t.onDidChangeTextDocument,o=>{let l=o?.document;if(!l)return;let d=this.h(l.uri.fsPath||l.uri.path||"");d&&this.E(d,Date.now())});n&&i.push(n);let a=e(t.onDidCreateFiles,o=>{o?.files?.forEach(l=>this.recordFileActivity(l,"created",{source:"user"}))});a&&i.push(a);let c=e(t.onDidDeleteFiles,o=>{o?.files?.forEach(l=>this.recordFileActivity(l,"deleted",{source:"user"}))});c&&i.push(c);let h=e(t.onDidRenameFiles,o=>{o?.files?.forEach(l=>{this.recordFileActivity(l.oldUri,"deleted",{source:"user"}),this.recordFileActivity(l.newUri,"created",{source:"user"})})});h&&i.push(h),i.length>0&&(this.c=i)}p(){if(this.c.length){for(let t of this.c)try{t.dispose()}catch{}this.c=[],this.r.clear()}}E(t,e){t&&(this.T(),this.r.set(t,e||Date.now()))}T(){if(!this.r.size)return;let t=Date.now();for(let[e,i]of this.r.entries())t-i>this.S&&this.r.delete(e)}M(t){return this.T(),this.r.has(t)?!0:!!(Array.isArray(vscode.workspace?.textDocuments)?vscode.workspace.textDocuments:[]).find(r=>(r?.uri?this.h(r.uri.fsPath||r.uri.path):"")===t)}};module.exports={ExportReportingManager}});var{ExportReportingManager:J}=Z();module.exports={ExportReportingManager:J,createExportReportingManager:s=>new J(s)}; +`}async saveReport(e,t,r={}){try{if(isWeb){let a=encodeURIComponent(e);await vscode.env.openExternal(vscode.Uri.parse(`data:text/plain;charset=utf-8,${a}`)),vscode.window.showInformationMessage(l10n.getString("reportDownloadTriggered"));return}let n=t instanceof vscode.Uri?t:vscode.Uri.file(t);this.h(r.cancellationToken);let o=`${n.fsPath||n.path}.tmp-${process.pid}-${Date.now()}`;await fileSystem.writeFile(o,e,"utf8"),this.h(r.cancellationToken),await fileSystem.rename(o,n,{overwrite:!0});let l=await fileSystem.stat(n);if(!Number.isFinite(Number(l.size))||Number(l.size)<=0)throw new Error("The saved report is empty or could not be verified.");logger.info(`Report saved to ${n.fsPath||n.path}`)}catch(n){throw logger.error("Failed to save report:",n),n}}async exportToTimeTrackingTools(e={}){try{let{tool:t="generic",timeRange:r="7d"}=e,n=await this.collectFileData(r,!1);return this.formatForTimeTracking(n,t)}catch(t){return logger.error("Failed to export to time tracking tools:",t),null}}formatForTimeTracking(e,t){let r=[];switch(e.files.forEach(n=>{n.activities.forEach(s=>{r.push({file:n.path,action:s.action,timestamp:s.timestamp,duration:this.estimateSessionDuration(s),project:this.extractProjectName(n.path)})})}),t){case"toggl":return this.formatForToggl(r);case"clockify":return this.formatForClockify(r);default:return r}}formatForToggl(e){return e.map(t=>({description:`${t.action}: ${t.file}`,start:t.timestamp.toISOString(),duration:t.duration*60,project:t.project,tags:[t.action,this.getFileType(t.file)]}))}formatForClockify(e){return e.map(t=>({description:`${t.action}: ${t.file}`,start:t.timestamp.toISOString(),end:new Date(t.timestamp.getTime()+t.duration*60*1e3).toISOString(),project:t.project,tags:[t.action,this.getFileType(t.file)]}))}estimateSessionDuration(e){switch(e.action){case"created":return 15;case"modified":return 5;case"deleted":return 1;default:return 5}}extractProjectName(e){return normalizePath(e).split("/")[0]||"Unknown Project"}getFileType(e){let t=getExtension(e);return{".js":"javascript",".ts":"typescript",".py":"python",".java":"java",".cpp":"cpp",".html":"html",".css":"css",".md":"markdown",".json":"json",".xml":"xml",".txt":"text"}[t]||"other"}isExcluded(e,t){return this.y.isExcluded(e)||(t||[]).some(r=>{let n=this.T(r);return n?n.test(normalizeReportPath(e)):!1})}formatFileSize(e){let t=formatFileSize(e,"auto");return t.startsWith("~")?t.slice(1):t}$(){try{let e=require("fs"),t=require("path"),n=[t.join(__dirname,"..","icons","explorer-dates.png"),t.join(__dirname,"..","..","icons","explorer-dates.png")].find(s=>e.existsSync(s));return n?e.readFileSync(n).toString("base64"):""}catch{return""}}async showReportDialog(){if(this.n)return vscode.window.showInformationMessage("Explorer Dates is already generating a report. Please wait for it to finish."),null;let e=this.N();this.n=e;try{return await e}finally{this.n===e&&(this.n=null)}}async N(){try{let e={"\u{1F4CA} Generate Full Report":"full","\u{1F4C5} Last 24 Hours":"24h","\u{1F4C5} Last 7 Days":"7d","\u{1F4C5} Last 30 Days":"30d","\u{1F4C5} Last 90 Days":"90d"},t=await vscode.window.showQuickPick(Object.keys(e),{placeHolder:l10n.getString("selectReportTimeRangePlaceholder")});if(!t)return;let r=e[t],n=this.allowedFormats.map(a=>a.toUpperCase()==="MARKDOWN"?"Markdown":a.toUpperCase()),s=await vscode.window.showQuickPick(n,{placeHolder:l10n.getString("selectReportFormatPlaceholder")});if(!s)return;let o=await vscode.window.showSaveDialog({defaultUri:vscode.Uri.file(`explorer-dates-report-${new Date().toISOString().replace(/[:.]/g,"-")}.${s.toLowerCase()}`),filters:{[s]:[s.toLowerCase()]}});if(!o)return;let l=async a=>this.b({format:s.toLowerCase(),timeRange:r,outputPath:o,progress:a.report?(c,u)=>a.report({message:c,increment:u}):null,cancellationToken:a.token});return await vscode.window.withProgress({location:vscode.ProgressLocation?.Notification||15,title:"Generating Explorer Dates report",cancellable:!0},l)}catch(e){logger.error("Failed to show report dialog:",e),vscode.window.showErrorMessage("Failed to generate report")}}dispose(){this.o&&(this.o.dispose(),this.o=null),this.w(),this.E(),this.fileActivityCache.clear(),this.t.clear(),this.s.clear(),this.p={user:0,watcher:0},logger.info("Export & Reporting Manager disposed")}a(e=""){let t=normalizePath(e||"").trim();return t?t.toLowerCase():""}M(e){if(!e)return!1;for(let t of this.excludedFolders){if(!t)continue;let r=t.replace(/^\/+|\/+$/g,"").toLowerCase();if(!r)continue;let n=`/${r}`;if(e.includes(`${n}/`)||e.endsWith(n))return!1}return!this.S.some(t=>t.test(e))}T(e){if(!e||typeof e!="string")return null;let t=e.replace(/([.+^${}()|[\]\\])/g,"\\$1").replace(/\\\*\\\*/g,".*").replace(/\\\*/g,"[^/]*").replace(/\\\?/g,".");try{return new RegExp(t,"i")}catch{return null}}z(e,t){e&&(this.t.has(e)&&this.t.delete(e),this.t.set(e,t),this.R())}R(){if(this.maxTrackedActivityFiles<=0){this.fileActivityCache.clear(),this.t.clear();return}for(;this.t.size>this.maxTrackedActivityFiles;){let e=this.t.keys().next();if(e.done)break;let t=e.value;this.t.delete(t),this.fileActivityCache.delete(t)}}O(e){let t=Number(e);return Number.isFinite(t)?t<=0?0:Math.min(Math.max(Math.floor(t),500),MAX_TRACKED_FILES_LIMIT):DEFAULT_MAX_TRACKED_FILES}A(){return vscode.workspace.getConfiguration("explorerDates").get("performanceMode",!1)||this.P}D(){if(this.l.length>0)return;let e=vscode.workspace||{},t=(c,u)=>typeof c!="function"?null:c.call(e,u),r=[],n=t(e.onDidSaveTextDocument,c=>{this.recordFileActivity(c.uri,"modified",{source:"user"})});n&&r.push(n);let s=t(e.onDidChangeTextDocument,c=>{let u=c?.document;if(!u)return;let h=this.a(u.uri.fsPath||u.uri.path||"");h&&this._(h,Date.now())});s&&r.push(s);let o=t(e.onDidCreateFiles,c=>{c?.files?.forEach(u=>this.recordFileActivity(u,"created",{source:"user"}))});o&&r.push(o);let l=t(e.onDidDeleteFiles,c=>{c?.files?.forEach(u=>this.recordFileActivity(u,"deleted",{source:"user"}))});l&&r.push(l);let a=t(e.onDidRenameFiles,c=>{c?.files?.forEach(u=>{this.recordFileActivity(u.oldUri,"deleted",{source:"user"}),this.recordFileActivity(u.newUri,"created",{source:"user"})})});a&&r.push(a),r.length>0&&(this.l=r)}E(){if(this.l.length){for(let e of this.l)try{e.dispose()}catch{}this.l=[],this.s.clear()}}_(e,t){e&&(this.C(),this.s.set(e,t||Date.now()))}C(){if(!this.s.size)return;let e=Date.now();for(let[t,r]of this.s.entries())e-r>this.x&&this.s.delete(t)}W(e){return this.C(),this.s.has(e)?!0:!!(Array.isArray(vscode.workspace?.textDocuments)?vscode.workspace.textDocuments:[]).find(n=>(n?.uri?this.a(n.uri.fsPath||n.uri.path):"")===e)}};module.exports={ExportReportingManager}});var{ExportReportingManager:De}=we();module.exports={ExportReportingManager:De,createExportReportingManager:i=>new De(i)}; diff --git a/dist/chunks/reporting.js.map b/dist/chunks/reporting.js.map index 8220232..61720ea 100644 --- a/dist/chunks/reporting.js.map +++ b/dist/chunks/reporting.js.map @@ -1,6 +1,6 @@ { "version": 3, - "sources": ["../../src/utils/logger.js", "../../src/utils/env.js", "../../src/utils/pathUtils.js", "../../src/utils/errors.js", "../../src/filesystem/environmentContract.js", "../../src/chunks/utils-shared-chunk.js", "../../src/utils/dateHelpers.js", "../../src/filesystem/FileSystemAdapter.js", "../../src/exportReporting.js", "../../src/chunks/repor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K,yBAC1B,GAAI,CACA,WAAW,QAAQ,CACvB,MAAQ,CAER,CAEJ,KAAK,yBAA2B,CAAC,EACjC,KAAK,uBAAuB,MAAM,EACtC,CAEA,2BAA2B,eAAgB,YAAa,CAC/C,iBAGL,KAAK,+BAA+B,EACpC,KAAK,uBAAuB,IAAI,eAAgB,aAAe,KAAK,IAAI,CAAC,EAC7E,CAEA,gCAAiC,CAC7B,GAAI,CAAC,KAAK,uBAAuB,KAC7B,OAEJ,IAAM,IAAM,KAAK,IAAI,EACrB,OAAW,CAAC,IAAK,EAAE,IAAK,KAAK,uBAAuB,QAAQ,EACpD,IAAM,GAAK,KAAK,uBAChB,KAAK,uBAAuB,OAAO,GAAG,CAGlD,CAEA,0BAA0B,eAAgB,CAEtC,OADA,KAAK,+BAA+B,EAChC,KAAK,uBAAuB,IAAI,cAAc,EACvC,GAOJ,GALe,MAAM,QAAQ,OAAO,WAAW,aAAa,EAAI,OAAO,UAAU,cAAgB,CAAC,GAC3E,KAAM,MAChB,KAAK,IAAM,KAAK,cAAc,IAAI,IAAI,QAAU,IAAI,IAAI,IAAI,EAAI,MAC7D,cACtB,CAEL,CACJ,EAEA,OAAO,QAAU,CAAE,sBAAuB,KCvhC1C,GAAM,CAAE,uBAAAC,uBAAuB,EAAI,0BAEnC,OAAO,QAAU,CACb,uBAAAA,wBACA,6BAA8B,OAAC,SAAY,IAAIA,wBAAuB,OAAO,EAA/C,+BAClC", - "names": ["exports", "module", "getLogger", "exports", "module", "vscode", "normalizePath", "input", "getSegments", "getFileName", "getExtension", "getDirectory", "joinPath", "getCacheKey", "getUriPath", "getRelativePath", "exports", "module", "vscode", "exports", "module", "env", "isWeb", "exports", "module", "getCurrentTimestamp", "isDateLike", "ensureDate", "normalizePath", "input", "getSegments", "getFileName", "getExtension", "getDirectory", "joinPath", "getCacheKey", "getUriPath", "getRelativePath", "getCurrentTimestamp", "isDateLike", "ensureDate", "exports", "module", "vscode", "normalizePath", "ensureDate", "env", "fileSystem", "chunk", "filePath", "ExportReportingManager"] + "sources": ["../../src/utils/logger.js", "../../src/utils/env.js", "../../src/utils/pathUtils.js", "../../src/utils/errors.js", "../../src/filesystem/environmentContract.js", "../../src/chunks/utils-shared-chunk.js", "../../src/utils/dateHelpers.js", "../../src/filesystem/FileSystemAdapter.js", "../../src/constants.js", "../../src/utils/formatters.js", "../../src/reporting/reportContract.js", "../../src/exportReporting.js", "../../src/chunks/reporting-chunk.js"], + "mappings": "+RAAA,qDAAAA,SAAAC,QAAA,CACA,IAAM,kBAAoB,wBAEpB,aAAN,KAAmB,CAHnB,MAGmB,6BACf,aAAc,CACV,KAAK,MAAQ,IACjB,CAEA,MAAM,OAAQ,KAAM,CAChB,GAAI,KAAK,OAAS,OAAO,KAAK,MAAM,MAAM,GAAM,WAC5C,GAAI,CAAE,OAAO,KAAK,MAAM,MAAM,EAAE,GAAG,IAAI,CAAG,MAAQ,CAAe,CAErE,OAAQ,OAAQ,CACZ,IAAK,QAAa,OAAO,QAAQ,OAAU,WAAY,QAAQ,MAAM,GAAG,IAAI,EAAQ,QAAQ,IAAI,GAAG,IAAI,EAAG,MAC1G,IAAK,OAAQ,QAAQ,IAAI,GAAG,IAAI,EAAG,MACnC,IAAK,OAAQ,QAAQ,KAAK,GAAG,IAAI,EAAG,MACpC,IAAK,QAAS,QAAQ,MAAM,GAAG,IAAI,EAAG,MACtC,QAAS,QAAQ,IAAI,GAAG,IAAI,EAAG,KACnC,CACJ,CAEA,SAAS,KAAM,CAAE,OAAO,KAAK,MAAM,QAAS,IAAI,CAAG,CACnD,QAAQ,KAAM,CAAE,OAAO,KAAK,MAAM,OAAQ,IAAI,CAAG,CACjD,QAAQ,KAAM,CAAE,OAAO,KAAK,MAAM,OAAQ,IAAI,CAAG,CACjD,SAAS,KAAM,CAAE,OAAO,KAAK,MAAM,QAAS,IAAI,CAAG,CAGnD,SAAS,KAAM,CAAE,KAAK,MAAQ,IAAM,CACxC,EAEA,SAASC,YAAY,CACjB,OAAI,OAAO,OA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O,CAAC,EACnE,KAAK,mBAAmB,MAAM,OAAQ,UAAW,CAAE,OAAQ,MAAO,CAAC,CACvE,CAAC,CACL,CAAC,EACG,kBACA,YAAY,KAAK,gBAAgB,EAEjC,YAAY,OAAS,IACrB,KAAK,yBAA2B,YAExC,CAEA,+BAAgC,CAC5B,GAAK,KAAK,yBAAyB,OAGnC,SAAW,cAAc,KAAK,yBAC1B,GAAI,CACA,WAAW,QAAQ,CACvB,MAAQ,CAER,CAEJ,KAAK,yBAA2B,CAAC,EACjC,KAAK,uBAAuB,MAAM,EACtC,CAEA,2BAA2B,eAAgB,YAAa,CAC/C,iBAGL,KAAK,+BAA+B,EACpC,KAAK,uBAAuB,IAAI,eAAgB,aAAe,KAAK,IAAI,CAAC,EAC7E,CAEA,gCAAiC,CAC7B,GAAI,CAAC,KAAK,uBAAuB,KAC7B,OAEJ,IAAM,IAAM,KAAK,IAAI,EACrB,OAAW,CAAC,IAAK,EAAE,IAAK,KAAK,uBAAuB,QAAQ,EACpD,IAAM,GAAK,KAAK,uBAChB,KAAK,uBAAuB,OAAO,GAAG,CAGlD,CAEA,0BAA0B,eAAgB,CAEtC,OADA,KAAK,+BAA+B,EAChC,KAAK,uBAAuB,IAAI,cAAc,EACvC,GAOJ,GALe,MAAM,QAAQ,OAAO,WAAW,aAAa,EAAI,OAAO,UAAU,cAAgB,CAAC,GAC3E,KAAM,MAChB,KAAK,IAAM,KAAK,cAAc,IAAI,IAAI,QAAU,IAAI,IAAI,IAAI,EAAI,MAC7D,cACtB,CAEL,CACJ,EAEA,OAAO,QAAU,CAAE,sBAAuB,KCljC1C,GAAM,CAAE,uBAAAC,uBAAuB,EAAI,0BAEnC,OAAO,QAAU,CACb,uBAAAA,wBACA,6BAA8B,OAAC,SAAY,IAAIA,wBAAuB,OAAO,EAA/C,+BAClC", + "names": ["exports", "module", "getLogger", "exports", "module", "vscode", "normalizePath", "input", "getSegments", "getFileName", "getExtension", "getDirectory", "joinPath", "getCacheKey", "getUriPath", "getRelativePath", "exports", "module", "vscode", "exports", "module", "env", "isWeb", "normalizeStat", "exports", "module", "getCurrentTimestamp", "isDateLike", "ensureDate", "normalizePath", "input", "getSegments", "getFileName", "getExtension", "getDirectory", "joinPath", "getCacheKey", "getUriPath", "getRelativePath", "getCurrentTimestamp", "isDateLike", "ensureDate", "exports", "module", "vscode", "normalizePath", "normalizeStat", "ensureDate", "env", "fileSystem", "exports", "module", "env", "exports", "module", "formatFileSize", "exports", "module", "DEFAULT_EXCLUDED_SEGMENTS", "normalizePath", "normalizeTimeRange", "rangeStart", "validDate", "normalizeStat", "createInclusionPolicy", "inRange", "sortFiles", "createSummary", "chunk", "filePath", "ExportReportingManager"] } diff --git a/dist/chunks/teamPersistence.js b/dist/chunks/teamPersistence.js index a729e20..263a1a5 100644 --- a/dist/chunks/teamPersistence.js +++ b/dist/chunks/teamPersistence.js @@ -1,8 +1,8 @@ -var he=Object.create;var N=Object.defineProperty;var me=Object.getOwnPropertyDescriptor;var ye=Object.getOwnPropertyNames;var we=Object.getPrototypeOf,be=Object.prototype.hasOwnProperty;var d=(r,e)=>()=>(e||r((e={exports:{}}).exports,e),e.exports);var Ee=(r,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of ye(e))!be.call(r,o)&&o!==t&&N(r,o,{get:()=>e[o],enumerable:!(n=me(e,o))||n.enumerable});return r};var C=(r,e,t)=>(t=r!=null?he(we(r)):{},Ee(e||!r||!r.__esModule?N(t,"default",{value:r,enumerable:!0}):t,r));var w=d((st,F)=>{var m="__explorerDatesLogger",y=class{constructor(){this.e=null}h(e,t){if(this.e&&typeof this.e[e]=="function")try{return this.e[e](...t)}catch{}switch(e){case"debug":break;case"info":break;case"warn":break;case"error":break;default:break}}debug(...e){return this.h("debug",e)}info(...e){return this.h("info",e)}warn(...e){return this.h("warn",e)}error(...e){return this.h("error",e)}Q(e){this.e=e}};function Se(){return typeof global<"u"?(global[m]||(global[m]=new y),global[m]):typeof globalThis<"u"?(globalThis[m]||(globalThis[m]=new y),globalThis[m]):(A||(A=new y),A)}var P=class extends y{},A=null;F.exports={Logger:P,getLogger:Se}});var M=d((at,j)=>{var W=require("vscode");function Ce(){try{let r=W?.env?.uiKind,e=W?.UIKind?.Web;return r!==void 0&&e!==void 0&&r===e}catch{return!1}}j.exports={isWebEnvironment:Ce}});var $=d((exports,module)=>{var chunk=null;try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){try{chunk=dynamicRequire("../chunks/utils-shared-chunk")}catch{}try{chunk||(chunk=dynamicRequire("./chunks/utils-shared-chunk"))}catch{}try{chunk||(chunk=dynamicRequire("../chunks/path-utils-chunk"))}catch{}try{chunk||(chunk=dynamicRequire("./chunks/path-utils-chunk"))}catch{}}}catch{}if(chunk&&chunk.normalizePath)module.exports={normalizePath:chunk.normalizePath,getFileName:chunk.getFileName,getExtension:chunk.getExtension,getDirectory:chunk.getDirectory,joinPath:chunk.joinPath,getCacheKey:chunk.getCacheKey,getUriPath:chunk.getUriPath,getRelativePath:chunk.getRelativePath};else{let r=function(c=""){return c?c.replace(/\\/g,"/"):""},e=function(c=""){let f=r(c);return f?f.split("/").filter(Boolean):[]},t=function(c=""){let f=e(c);return f.length?f[f.length-1]:""},n=function(c=""){let f=t(c),p=f.lastIndexOf(".");return p<=0?"":f.substring(p).toLowerCase()},o=function(c=""){let f=r(c),p=f.lastIndexOf("/");return p===-1?"":f.substring(0,p)},i=function(...c){return r(c.filter(Boolean).join("/")).replace(/\/+/g,"/")},s=function(c=""){return r(c).toLowerCase()},a=function(c=""){if(!c)return"";if(typeof c=="string")return c;if(typeof c.fsPath=="string"&&c.fsPath.length>0)return c.fsPath;if(typeof c.path=="string"&&c.path.length>0)return c.path;if(typeof c.toString=="function")try{return c.toString(!0)}catch{return c.toString()}return String(c)},l=function(c="",f=""){let p=r(c),v=r(f);return p&&v.startsWith(p)?v.substring(p.length).replace(/^\/+/,""):v};normalizePath=r,getSegments=e,getFileName=t,getExtension=n,getDirectory=o,joinPath=i,getCacheKey=s,getUriPath=a,getRelativePath=l,module.exports={normalizePath:r,getFileName:t,getExtension:n,getDirectory:o,joinPath:i,getCacheKey:s,getUriPath:a,getRelativePath:l}}var normalizePath,getSegments,getFileName,getExtension,getDirectory,joinPath,getCacheKey,getUriPath,getRelativePath});var K=d((ct,q)=>{var T=class extends Error{constructor(e,t,n={}){super(t),this.code=e,this.context=n,this.name="ExtensionError"}},U={FILE_PERMISSION_DENIED:"FILE_PERMISSION_DENIED",WORKSPACE_TOO_LARGE:"WORKSPACE_TOO_LARGE",CHUNK_LOAD_FAILED:"CHUNK_LOAD_FAILED"};function ke(r){if(!r)return!1;let e=r.code||r?.name;return["EACCES","EPERM","EROFS","NoPermissions"].includes(e)}var R=class extends T{constructor(e,t,n={}){let{recoverable:o=!0,context:i={}}=n;super(U.CHUNK_LOAD_FAILED,`Failed to load ${e}: ${t}`,{chunkName:e,recoverable:o,...i}),this.name="ChunkLoadError",this.chunkName=e,this.recoverable=o}};function De(r,e,t={}){let n=require("vscode"),{userFacing:o=!0}=t,i=e?.recoverable??!0;o&&!i&&n.window.showErrorMessage(`Explorer Dates: ${r} feature unavailable. Please reinstall or rebuild the extension.`)}q.exports={ExtensionError:T,ERROR_CODES:U,isPermissionError:ke,ChunkLoadError:R,handleChunkFailure:De}});var G=d((lt,z)=>{var H="EXPLORER_DATES_FORCE_VSCODE_FS";function V(r,e=process.env){return String(e?.[r]||"")==="1"}function x(r){let e=r&&typeof r=="object"?r:null,t=String(e?.scheme||(typeof r=="string"&&/^[a-z][a-z0-9+.-]*:/i.test(r)?r.split(":",1)[0]:"file")).toLowerCase(),n=String(e?.authority||""),o=e?.path||e?.fsPath||(typeof r=="string"?r.replace(/^[a-z][a-z0-9+.-]*:\/\//i,""):"");return{scheme:t,authority:n,path:String(o||"")}}function ve({uri:r,isWeb:e=!1,remoteName:t="",forceWorkspaceFs:n=V(H)}={}){let o=x(r),i=o.scheme!=="file",s=!!e,a=!!t,l=!!(n||s||a||i);return{scheme:o.scheme,authority:o.authority,isFileScheme:!i,isVirtual:i,isBrowser:s,isRemote:a,forceWorkspaceFs:!!n,filesystem:l?"workspace.fs":"node.fs",provider:i?o.scheme==="github"||o.scheme==="vscode-vfs"?"github":"virtual":"filesystem"}}function B({uri:r,platform:e=process.platform,caseSensitive:t}={}){return typeof t=="boolean"?t:x(r).scheme!=="file"?!0:e!=="win32"}function Te(r,e={}){let t=x(r),n=t.path.replace(/\\/g,"/").replace(/\/+/g,"/"),o=`${t.scheme}://${t.authority}${n}`;return B({uri:r,...e})?o:o.toLowerCase()}function L(r){if(r instanceof Date){let e=r.getTime();return Number.isFinite(e)?e:null}if(typeof r=="number")return Number.isFinite(r)?r:null;if(typeof r=="string"&&r.trim()){let e=Date.parse(r);return Number.isFinite(e)?e:null}return null}function xe(r){if(!r||typeof r!="object")return null;let e=L(r.mtime),t=L(r.ctime);return{...r,mtimeMs:e,ctimeMs:t}}z.exports={FORCE_WORKSPACE_FS_ENV:H,envFlag:V,getUriParts:x,getEnvironmentContract:ve,isCaseSensitive:B,resourceIdentity:Te,normalizeTimestamp:L,normalizeStat:xe}});var X=d((ut,Y)=>{function _e(){return typeof Date=="function"&&Date.now?Date.now():16409952e5}function Z(r){return!!(r&&typeof r=="object"&&typeof r.getTime=="function")}function Oe(r){if(Z(r))return r;if(typeof r=="number")return new Date(r);if(typeof r=="string"){let e=Date.parse(r);return isNaN(e)?new Date:new Date(e)}return new Date}function h(r=""){return r?r.replace(/\\/g,"/"):""}function Ae(r=""){let e=h(r);return e?e.split("/").filter(Boolean):[]}function J(r=""){let e=Ae(r);return e.length?e[e.length-1]:""}function Pe(r=""){let e=J(r),t=e.lastIndexOf(".");return t<=0?"":e.substring(t).toLowerCase()}function Re(r=""){let e=h(r),t=e.lastIndexOf("/");return t===-1?"":e.substring(0,t)}function Le(...r){return h(r.filter(Boolean).join("/")).replace(/\/+/g,"/")}function Ie(r=""){return h(r).toLowerCase()}function Ne(r=""){if(!r)return"";if(typeof r=="string")return r;if(typeof r.fsPath=="string"&&r.fsPath.length>0)return r.fsPath;if(typeof r.path=="string"&&r.path.length>0)return r.path;if(typeof r.toString=="function")try{return r.toString(!0)}catch{return r.toString()}return String(r)}function Fe(r="",e=""){let t=h(r),n=h(e);return t&&n.startsWith(t)?n.substring(t.length).replace(/^\/+/,""):n}Y.exports={ensureDate:Oe,isDateLike:Z,getCurrentTimestamp:_e,normalizePath:h,getFileName:J,getExtension:Pe,getDirectory:Re,joinPath:Le,getCacheKey:Ie,getUriPath:Ne,getRelativePath:Fe}});var Q=d((exports,module)=>{var chunk=null;try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){try{chunk=dynamicRequire("../chunks/utils-shared-chunk")}catch{}try{chunk||(chunk=dynamicRequire("./chunks/utils-shared-chunk"))}catch{}try{chunk||(chunk=dynamicRequire("../chunks/date-helpers-chunk"))}catch{}try{chunk||(chunk=dynamicRequire("./chunks/date-helpers-chunk"))}catch{}}}catch{}if(chunk&&(chunk.ensureDate||chunk.isDateLike||chunk.getCurrentTimestamp))module.exports={ensureDate:chunk.ensureDate,isDateLike:chunk.isDateLike,getCurrentTimestamp:chunk.getCurrentTimestamp};else{let r=function(){return typeof Date=="function"&&Date.now?Date.now():16409952e5},e=function(n){return!!(n&&typeof n=="object"&&typeof n.getTime=="function")},t=function(n){if(e(n))return n;if(typeof n=="number")return new Date(n);if(typeof n=="string"){let o=Date.parse(n);return isNaN(o)?new Date:new Date(o)}return new Date};getCurrentTimestamp=r,isDateLike=e,ensureDate=t,module.exports={ensureDate:t,isDateLike:e,getCurrentTimestamp:r}}var getCurrentTimestamp,isDateLike,ensureDate});var oe=d((ft,ne)=>{var u=require("vscode"),{isWebEnvironment:ee}=M(),{normalizePath:We}=$(),{ExtensionError:je,ERROR_CODES:Me,isPermissionError:$e}=K(),{getEnvironmentContract:Ue,normalizeStat:qe,FORCE_WORKSPACE_FS_ENV:Ke}=G(),b;try{let r=X();r&&(b=r.ensureDate)}catch{}b||(b=Q().ensureDate);var te=typeof process<"u"&&process.env?process.env:{},re=te.VSCODE_WEB==="true"||ee(),g=null;if(!re)try{g=require("fs").promises}catch{g=null}var _=class{constructor(){this.isWeb=re||ee()}a(e){try{return Ue({uri:this.r(e),isWeb:this.isWeb,remoteName:u.env?.remoteName,forceWorkspaceFs:te[Ke]==="1"}).filesystem==="workspace.fs"}catch{return!1}}o(e){if(!e)return"";if(typeof e=="string")return e;if(e&&typeof e=="object"&&typeof e.fsPath=="string")return e.fsPath;if(e&&typeof e=="object"&&typeof e.path=="string")return e.path;if(typeof e=="object"){if(typeof e.fsPath=="string")return e.fsPath;if(typeof e.path=="string")return e.path}return String(e)}r(e){if(e&&typeof e=="object"&&typeof e.scheme=="string"&&typeof e.path=="string")return e;if(typeof e=="string"){let t=e.trim(),n=/^[a-zA-Z]:[\\/]/.test(t);if(/^[a-zA-Z][a-zA-Z0-9+.-]*:/.test(t)&&!n){let i=u.Uri.parse(t);if(i.scheme&&i.scheme!=="file")return i}return u.Uri.file(e)}if(e&&typeof e=="object"){if(e.uri&&e.uri!==e)try{return this.r(e.uri)}catch{}if(this.isWeb&&typeof e.scheme=="string"&&typeof e.path=="string")return u.Uri.from({scheme:e.scheme,authority:e.authority||"",path:e.path||"",query:e.query||"",fragment:e.fragment||""});if(typeof e.fsPath=="string"&&e.fsPath.length>0)return u.Uri.file(e.fsPath);if(typeof e.path=="string"&&e.path.length>0)return this.isWeb&&typeof e.scheme=="string"&&e.scheme!=="file"?u.Uri.from({scheme:e.scheme,authority:e.authority||"",path:e.path,query:e.query||"",fragment:e.fragment||""}):u.Uri.file(e.path);if(typeof e.href=="string"&&e.href.length>0)return u.Uri.parse(e.href);if(typeof e.scheme=="string")return u.Uri.from({scheme:e.scheme,authority:e.authority||"",path:e.path||e.fsPath||"",query:e.query||"",fragment:e.fragment||""});if(typeof e.toString=="function")try{let t=e.toString(!0);if(t&&t!=="[object Object]")return u.Uri.parse(t)}catch{let t=e.toString();if(t&&t!=="[object Object]")return u.Uri.parse(t)}}throw new Error(`Unsupported target type: ${typeof e}`)}async stat(e){let t=this.a(e);if(!this.isWeb&&g&&!t)return g.stat(this.o(e));let n=this.r(e),o=await u.workspace.fs.stat(n),i=qe(o);return{...i,mtime:i.mtimeMs===null?b(o.mtime):new Date(i.mtimeMs),ctime:i.ctimeMs===null?b(o.ctime):new Date(i.ctimeMs),birthtime:i.ctimeMs===null?b(o.ctime):new Date(i.ctimeMs),isFile:()=>o.type===u.FileType.File,isDirectory:()=>o.type===u.FileType.Directory}}async readFile(e,t="utf8"){let n=this.a(e);if(!this.isWeb&&g&&!n)return g.readFile(this.o(e),t);let o=this.r(e),i=await u.workspace.fs.readFile(o);return t===null||t==="binary"?i:new TextDecoder(t).decode(i)}async writeFile(e,t,n="utf8"){let o=this.o(e);try{let i=this.a(e);if(!this.isWeb&&g&&!i)return g.writeFile(o,t,n);let s=this.r(e),a=typeof t=="string"?new TextEncoder().encode(t):t;await u.workspace.fs.writeFile(s,a)}catch(i){this.T("write file",o,i)}}async mkdir(e,t={recursive:!0}){let n=this.o(e);try{let o=this.a(e);if(!this.isWeb&&g&&!o)return g.mkdir(n,t);let i=this.r(e);await u.workspace.fs.createDirectory(i)}catch(o){this.T("create directory",n,o)}}async readdir(e,t={withFileTypes:!1}){let n=this.a(e);if(!this.isWeb&&g&&!n)return g.readdir(this.o(e),t);let o=this.r(e),i=await u.workspace.fs.readDirectory(o);return t.withFileTypes?i.map(([s,a])=>({name:s,isDirectory:()=>a===u.FileType.Directory,isFile:()=>a===u.FileType.File})):i.map(([s])=>s)}async delete(e,t={recursive:!1}){let n=this.a(e);if(!this.isWeb&&g&&!n){let i=this.o(e);return t.recursive?g.rm?g.rm(i,t):g.rmdir(i,t):g.unlink(i)}let o=this.r(e);await u.workspace.fs.delete(o,t)}async exists(e){try{return await this.stat(e),!0}catch{return!1}}async ensureDirectory(e){let t=We(this.o(e));await this.mkdir(t,{recursive:!0})}T(e,t,n){throw $e(n)?new je(Me.FILE_PERMISSION_DENIED,`Permission denied while attempting to ${e}`,{path:t,code:n.code}):n}},He=new _;ne.exports={FileSystemAdapter:_,fileSystem:He}});var I=d((exports,module)=>{var CHUNK_SIZES={onboarding:34,analysisCommands:23,exportReporting:17,extensionApi:15,workspaceTemplates:14,advancedCache:28,workspaceIntelligence:31,incrementalWorkers:19},BASE_BUNDLE_SIZE=99;function _getPresetDefinitionsSync(){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let r=dynamicRequire("./chunks/preset-definitions-chunk");if(r&&r.PRESET_DEFINITIONS)return r.PRESET_DEFINITIONS}}catch{}let FALLBACK_PRESET={minimal:{id:"minimal",name:"Minimal",description:"Lean setup that prioritizes responsiveness in large repos.",targetScenarios:["Large repos","Low resources","Minimal UI"],settings:{"explorerDates.performanceMode":!0,"explorerDates.showDateDecorations":!0}},balanced:{id:"balanced",name:"Balanced",description:"Default feature mix for most workspaces.",targetScenarios:["General development","Mixed workloads"],settings:{"explorerDates.enableOnboardingSystem":!0,"explorerDates.enableAnalysisCommands":!0,"explorerDates.performanceMode":!1,"explorerDates.dateDecorationFormat":"smart","explorerDates.colorScheme":"recency","explorerDates.badgePriority":"time"}},"web-development":{id:"web-development",name:"Web Development",description:"Optimized for frontend and full-stack web projects.",targetScenarios:["Web apps","Frontend teams"],settings:{"explorerDates.enableOnboardingSystem":!0,"explorerDates.dateDecorationFormat":"smart","explorerDates.colorScheme":"file-type","explorerDates.badgePriority":"time"}},enterprise:{id:"enterprise",name:"Enterprise",description:"Full feature set with reporting and integrations enabled.",targetScenarios:["Large teams","Governed environments"],settings:{"explorerDates.enableExportReporting":!0,"explorerDates.enableExtensionApi":!0,"explorerDates.dateDecorationFormat":"smart","explorerDates.colorScheme":"recency","explorerDates.badgePriority":"time"}},"data-science":{id:"data-science",name:"Data Science",description:"Insight-focused profile for data-heavy projects.",targetScenarios:["Data analysis","Research workflows"],settings:{"explorerDates.enableWorkspaceIntelligence":!0,"explorerDates.dateDecorationFormat":"iso-detailed","explorerDates.colorScheme":"recency","explorerDates.badgePriority":"time"}}};return FALLBACK_PRESET}var PRESET_DEFINITIONS=_getPresetDefinitionsSync(),RESTART_REQUIRED_SETTINGS=new Set(["enableOnboardingSystem","enableAnalysisCommands","enableExportReporting","enableExtensionApi","enableWorkspaceTemplates","enableAdvancedCache","enableWorkspaceIntelligence","enableIncrementalWorkers","performanceMode","smartFileWatching"]);function calculateBundleSize(r){let e=BASE_BUNDLE_SIZE;return r["explorerDates.enableOnboardingSystem"]&&(e+=CHUNK_SIZES.onboarding),r["explorerDates.enableAnalysisCommands"]&&(e+=CHUNK_SIZES.analysisCommands),r["explorerDates.enableExportReporting"]&&(e+=CHUNK_SIZES.exportReporting),r["explorerDates.enableExtensionApi"]&&(e+=CHUNK_SIZES.extensionApi),r["explorerDates.enableWorkspaceTemplates"]&&(e+=CHUNK_SIZES.workspaceTemplates),r["explorerDates.enableAdvancedCache"]&&(e+=CHUNK_SIZES.advancedCache),r["explorerDates.enableWorkspaceIntelligence"]&&(e+=CHUNK_SIZES.workspaceIntelligence),r["explorerDates.enableIncrementalWorkers"]&&(e+=CHUNK_SIZES.incrementalWorkers),e}function getDefaultPresetForProfile(r){let e=PRESET_DEFINITIONS;switch(r){case"minimal":case"extreme":return e.minimal||e.minimal;case"balanced":return e.balanced||e.balanced;case"web-development":return e["web-development"]||e["web-development"];case"data-science":return e["data-science"]||e["data-science"];case"enterprise":return e.enterprise||e.enterprise;default:return e.balanced||e.balanced}}module.exports={PRESET_DEFINITIONS,CHUNK_SIZES,BASE_BUNDLE_SIZE,RESTART_REQUIRED_SETTINGS,calculateBundleSize,getDefaultPresetForProfile}});var ae=d((dt,se)=>{var E=typeof process<"u"&&process.env?process.env:{},Ve=12e4,Be=1e4,ze=1440*60*1e3,Ge=2,Ze=["Ja","Fe","Mr","Ap","My","Jn","Jl","Au","Se","Oc","No","De"],Je=Number(E.EXPLORER_DATES_DECORATION_POOL_SIZE||2048),Ye=Number(E.EXPLORER_DATES_FLYWEIGHT_CACHE_SIZE||4096),Xe=Number(E.EXPLORER_DATES_WORKSPACE_BALANCED_THRESHOLD||15e3),Qe=Number(E.EXPLORER_DATES_WORKSPACE_LARGE_THRESHOLD||25e4),ie=Number(E.EXPLORER_DATES_WORKSPACE_EXTREME_THRESHOLD||4e5),et=Number(E.EXPLORER_DATES_WORKSPACE_SCAN_MAX_RESULTS||Math.min(ie+1,50001)),tt={ADVANCED_CACHE:"explorerDates.advancedCache",ADVANCED_CACHE_METADATA:"explorerDates.advancedCacheMetadata",TEMPLATE_STORE:"explorerDates.templates",WEB_GIT_NOTICE:"explorerDates.webGitNotice"},rt="explorerDatesChunks",nt="__explorerDatesChunks";se.exports={DEFAULT_CACHE_TIMEOUT:Ve,DEFAULT_MAX_CACHE_SIZE:Be,DEFAULT_PERSISTENT_CACHE_TTL:ze,DEFAULT_DECORATION_POOL_SIZE:Je,DEFAULT_FLYWEIGHT_CACHE_SIZE:Ye,MAX_BADGE_LENGTH:Ge,MONTH_ABBREVIATIONS:Ze,WORKSPACE_SCALE_BALANCED_THRESHOLD:Xe,WORKSPACE_SCALE_LARGE_THRESHOLD:Qe,WORKSPACE_SCALE_EXTREME_THRESHOLD:ie,WORKSPACE_SCAN_MAX_RESULTS:et,GLOBAL_STATE_KEYS:tt,WEB_CHUNK_GLOBAL_KEY:rt,LEGACY_WEB_CHUNK_GLOBAL_KEY:nt}});var ce=d((exports,module)=>{var{getLogger}=w(),env=typeof process<"u"&&process.env?process.env:{};function createFallbackVscodeMinimal(){return{workspace:{workspaceFolders:[],getConfiguration:()=>({get:()=>{},async update(){},inspect:()=>({defaultValue:void 0,globalValue:void 0,workspaceValue:void 0,workspaceFolderValue:void 0})})},ConfigurationTarget:{Global:1,Workspace:2,WorkspaceFolder:3}}}function resolveVscodeMinimal(){try{return require("vscode")}catch{return createFallbackVscodeMinimal()}}var MinimalSettingsCoordinator=class{constructor(e={}){this.M=e.defaultSection||"explorerDates",this.m=new Map,this.x=new Map,this.ee=Number(env.EXPLORER_DATES_LOCK_WAIT_WARN_MS||1e3),this._logger=getLogger()}$(e,t){let o=(this.m.get(e)||Promise.resolve()).then(()=>t()),i=o.catch(()=>{});return this.m.set(e,i),o.finally(()=>{this.m.get(e)===i&&this.m.delete(e)}),o}E(e,t){return resolveVscodeMinimal().workspace.getConfiguration(e||void 0,t)}u(e,t){let n=t||this.M;return n?e.startsWith(`${n}.`)?{section:n,key:e.slice(n.length+1),fullKey:e}:e.includes(".")?{section:void 0,key:e,fullKey:e}:{section:n,key:e,fullKey:`${n}.${e}`}:{section:void 0,key:e,fullKey:e}}async updateSetting(e,t,n={}){return this.$(this.u(e,n.section).fullKey,async()=>{let o=this.u(e,n.section),i=this.E(o.section,n.resource);try{let s=this.U(n.scope,n.resource);return await i.update(o.key,t,s),{key:o.fullKey,updated:!0}}catch(s){try{this._logger.warn(`Configuration update failed for ${o.fullKey}: ${s&&s.message}`)}catch{}return{key:o.fullKey,updated:!1,error:s}}})}async applySettings(e,t={}){let n=Array.isArray(e)?e:Object.entries(e).map(([s,a])=>({key:s,value:a})),o=[];for(let s of n)try{o.push(await this.updateSetting(s.key,s.value,t))}catch(a){o.push({key:this.u(s.key,t.section).fullKey,updated:!1,error:a})}let i=o.filter(s=>s&&s.error);if(i.length>0){let s=i.map(l=>`${l.key}: ${l.error&&l.error.message?l.error.message:String(l.error)}`),a=new Error(`Failed to apply ${i.length} setting(s): ${s.join("; ")}`);throw a.details=i,a}return o}U(e,t){return e&&e!=="auto"?this.q(e)||resolveVscodeMinimal().ConfigurationTarget.Workspace:t?resolveVscodeMinimal().ConfigurationTarget.WorkspaceFolder:resolveVscodeMinimal().workspace.workspaceFolders&&resolveVscodeMinimal().workspace.workspaceFolders.length>0?resolveVscodeMinimal().ConfigurationTarget.Workspace:resolveVscodeMinimal().ConfigurationTarget.Global}q(e){switch(e){case"user":return resolveVscodeMinimal().ConfigurationTarget.Global;case"workspace":return resolveVscodeMinimal().ConfigurationTarget.Workspace;case"workspaceFolder":return resolveVscodeMinimal().ConfigurationTarget.WorkspaceFolder;default:return}}getValue(e,t={}){let{section:n,resource:o}=t||{},i=this.u(e,n);return this.E(i.section,o).get(i.key)}inspect(e,t={}){let{section:n,resource:o}=t||{},i=this.u(e,n);return this.E(i.section,o).inspect(i.key)}async clearSetting(e,t={}){return this.updateSetting(e,void 0,t)}getLockWaitStats(){let e={};for(let[t,n]of this.x.entries())e[t]={...n};return e}resetLockWaitStats(){this.x.clear()}},cachedCoordinator=null;function getSettingsCoordinator(options){if(!cachedCoordinator||options&&options.forceNew){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let r=null;try{r=dynamicRequire("../chunks/settings-coordinator-impl-chunk")}catch{}try{r||(r=dynamicRequire("../chunks/settingsCoordinator-impl-chunk"))}catch{}if(r&&typeof r.createSettingsCoordinatorImpl=="function")return cachedCoordinator=r.createSettingsCoordinatorImpl(options),cachedCoordinator}}catch{}try{let{WEB_CHUNK_GLOBAL_KEY:r,LEGACY_WEB_CHUNK_GLOBAL_KEY:e}=ae(),t=typeof globalThis<"u"&&(globalThis[r]||globalThis[e])||null;if(t&&t.settingsCoordinatorImpl&&typeof t.settingsCoordinatorImpl.createSettingsCoordinatorImpl=="function")return cachedCoordinator=t.settingsCoordinatorImpl.createSettingsCoordinatorImpl(options),cachedCoordinator}catch{}cachedCoordinator=new MinimalSettingsCoordinator(options)}return cachedCoordinator}module.exports={getSettingsCoordinator,MinimalSettingsCoordinator}});var le=d((exports,module)=>{var vscode=require("vscode"),getLogger=()=>{try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let r=dynamicRequire("./chunks/logger-chunk");if(r&&typeof r.getLogger=="function")return getLogger=r.getLogger,getLogger()}}catch{}try{return getLogger=w().getLogger,getLogger()}catch{return getLogger=()=>({debug:(()=>{})?.bind(console)||console.log,info:(()=>{}).bind(console),warn:(()=>{}).bind(console),error:(()=>{}).bind(console)}),getLogger()}},{getLocalization}=require("./utils/localization"),l10n=getLocalization(),logger=getLogger();async function showTeamConflictWarning(r,e){let t=e.length,n=l10n.getString("teamConflictsFound",t);switch(await vscode.window.showWarningMessage(n,l10n.getString("showDetails"),l10n.getString("useTeamConfig"),l10n.getString("keepMySettings"))){case"Show Details":return showConflictDetails(r,e);case"Use Team Config":return applyTeamConfiguration(r);case"Keep My Settings":return documentUserOverrides(r,e)}}async function showConflictDetails(r,e){try{let t=e.map(o=>({label:`${o.key}`,description:`${o.impact} | ${o.chunkEffect||"no chunk effect"}`,detail:`Team: ${JSON.stringify(o.teamValue)} -You: ${JSON.stringify(o.userValue)}`})),n=await vscode.window.showQuickPick(t,{placeHolder:l10n.getString("reviewConflictsPlaceholder")});return{chosen:!!n,choice:n}}catch(t){throw logger.error("Failed to show conflict details",t),t}}async function applyTeamConfiguration(r){try{let e=r.f;if(!e)return{applied:0};let t=r.y(e),n=e.profiles?.[t];if(!n||!n.settings)return{applied:0};let o=Object.keys(n.settings||{});for(let i of o){let s=n.settings[i];try{await r._(i,s)}catch(a){logger.warn("Failed to apply team setting during applyTeamConfiguration:",a)}}return vscode.window.showInformationMessage(l10n.getString("appliedFromTeamProfile",o.length,t||"unknown")),{applied:o.length}}catch(e){throw logger.error("applyTeamConfiguration failed:",e),e}}async function documentUserOverrides(r,e){return typeof r.O=="function"?r.O(e):(vscode.window.showInformationMessage(l10n.getString("documentedOverrides")),{documented:!0})}module.exports={showTeamConflictWarning,showConflictDetails,applyTeamConfiguration,documentUserOverrides}});var fe=d((gt,ue)=>{var O=le();ue.exports={showTeamConflictWarning:O.showTeamConflictWarning,showConflictDetails:O.showConflictDetails,applyTeamConfiguration:O.applyTeamConfiguration,documentUserOverrides:O.documentUserOverrides}});var k=d((exports,module)=>{var vscode=require("vscode"),getLogger=()=>{try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let r=dynamicRequire("./chunks/logger-chunk");if(r&&typeof r.getLogger=="function")return getLogger=r.getLogger,getLogger()}}catch{}try{return getLogger=w().getLogger,getLogger()}catch{return getLogger=()=>({debug:(()=>{})?.bind(console)||console.log,info:(()=>{}).bind(console),warn:(()=>{}).bind(console),error:(()=>{}).bind(console)}),getLogger()}},{CHUNK_SIZES}=I(),logger=getLogger();function _valuesEqual(r,e){if(r===e)return!0;if(typeof r=="object"&&typeof e=="object")try{return JSON.stringify(r)===JSON.stringify(e)}catch{return!1}return!1}async function detectConfigConflicts(r,e){let t=r.y(e);if(!t)return[];let n=e.profiles?.[t];if(!n||!n.settings)return[];let o=vscode.workspace.getConfiguration(),i=[];for(let[s,a]of Object.entries(n.settings)){let l=o.inspect(s);if(!l||!(l.workspaceValue!==void 0||l.globalValue!==void 0))continue;let f=l.workspaceValue!==void 0?l.workspaceValue:l.globalValue;if(_valuesEqual(f,a))continue;let p={key:s,profileId:t,teamValue:a,userValue:f,source:l.workspaceValue!==void 0?"workspace":"global",impact:_calculateImpact(s,a,f),chunkEffect:_describeChunkEffect(s,a)};i.push(p)}return i.sort((s,a)=>{let l={high:3,medium:2,low:1};return(l[a.impact]||0)-(l[s.impact]||0)}),logger.debug("Detected team configuration conflicts",{conflictCount:i.length}),i}function _calculateImpact(r,e,t){return{"explorerDates.enableOnboardingSystem":"onboarding","explorerDates.enableAnalysisCommands":"analysisCommands","explorerDates.enableExportReporting":"exportReporting","explorerDates.enableExtensionApi":"extensionApi","explorerDates.enableWorkspaceTemplates":"workspaceTemplates","explorerDates.enableAdvancedCache":"advancedCache","explorerDates.enableWorkspaceIntelligence":"workspaceIntelligence","explorerDates.enableIncrementalWorkers":"incrementalWorkers"}[r]?typeof e=="boolean"?"high":"medium":typeof e=="boolean"&&typeof t=="boolean"?"medium":"low"}function _describeChunkEffect(r,e){let t={"explorerDates.enableOnboardingSystem":"onboarding","explorerDates.enableAnalysisCommands":"analysisCommands","explorerDates.enableExportReporting":"exportReporting","explorerDates.enableExtensionApi":"extensionApi","explorerDates.enableWorkspaceTemplates":"workspaceTemplates","explorerDates.enableAdvancedCache":"advancedCache","explorerDates.enableWorkspaceIntelligence":"workspaceIntelligence","explorerDates.enableIncrementalWorkers":"incrementalWorkers"},n={onboarding:"Onboarding System",analysisCommands:"Analysis Commands",exportReporting:"Export Reporting",extensionApi:"Extension API",workspaceTemplates:"Workspace Templates",advancedCache:"Advanced Cache",workspaceIntelligence:"Workspace Intelligence",incrementalWorkers:"Incremental Workers"},o=t[r];if(!o)return null;let i=n[o]||o,s=CHUNK_SIZES[o]||0;return`${i} chunk will be ${e?"enabled":"disabled"}${s?` (${s}KB)`:""}`}function validateSettings(r){if(!r||typeof r!="object")throw new Error("Settings must be a valid object");let e=new Set(Object.keys({"explorerDates.enableOnboardingSystem":1,"explorerDates.enableAnalysisCommands":1,"explorerDates.enableExportReporting":1,"explorerDates.enableExtensionApi":1,"explorerDates.enableWorkspaceTemplates":1,"explorerDates.enableAdvancedCache":1,"explorerDates.enableWorkspaceIntelligence":1,"explorerDates.enableIncrementalWorkers":1})),t=new Set(["explorerDates.dateFormat","explorerDates.showFileAge","explorerDates.colorizeByAge","explorerDates.excludePatterns","explorerDates.maxCacheSize","explorerDates.refreshInterval"]),n=new Set([...e,...t]),o=[],i=[];for(let s of Object.keys(r))n.has(s)||(s.startsWith("explorerDates.")?i.push(s):o.push(s));if(o.length>0)throw new Error(`Invalid settings detected: ${o.join(", ")}. Settings must start with 'explorerDates.'`);i.length>0&&logger.warn("Unrecognized Explorer Dates settings in team profile",{keys:i});for(let[s,a]of Object.entries(r))validateSettingValue(s,a)}function validateSettingValue(r,e){if(new Set(["explorerDates.enableOnboardingSystem","explorerDates.enableAnalysisCommands","explorerDates.enableExportReporting","explorerDates.enableExtensionApi","explorerDates.enableWorkspaceTemplates","explorerDates.enableAdvancedCache","explorerDates.enableWorkspaceIntelligence","explorerDates.enableIncrementalWorkers","explorerDates.showFileAge","explorerDates.colorizeByAge"]).has(r)&&typeof e!="boolean")throw new Error(`Setting '${r}' must be a boolean value, got ${typeof e}`);if(r==="explorerDates.dateFormat"&&(typeof e!="string"||e.trim().length===0))throw new Error(`Setting '${r}' must be a non-empty string`);if(r==="explorerDates.excludePatterns"){if(!Array.isArray(e))throw new Error(`Setting '${r}' must be an array of patterns`);for(let o of e)if(typeof o!="string")throw new Error(`Exclude pattern must be a string, got ${typeof o}`)}if(new Set(["explorerDates.maxCacheSize","explorerDates.refreshInterval"]).has(r)&&(typeof e!="number"||e<0))throw new Error(`Setting '${r}' must be a non-negative number, got ${e}`)}function _convertToYamlLike(r,e=0){let t=" ".repeat(e);return Array.isArray(r)?r.map(n=>`${t}- ${_convertToYamlLike(n,e+1).trim()}`).join(` +var he=Object.create;var N=Object.defineProperty;var me=Object.getOwnPropertyDescriptor;var ye=Object.getOwnPropertyNames;var we=Object.getPrototypeOf,be=Object.prototype.hasOwnProperty;var g=(r,e)=>()=>(e||r((e={exports:{}}).exports,e),e.exports);var Ee=(r,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of ye(e))!be.call(r,o)&&o!==t&&N(r,o,{get:()=>e[o],enumerable:!(n=me(e,o))||n.enumerable});return r};var C=(r,e,t)=>(t=r!=null?he(we(r)):{},Ee(e||!r||!r.__esModule?N(t,"default",{value:r,enumerable:!0}):t,r));var w=g((st,F)=>{var m="__explorerDatesLogger",y=class{constructor(){this.e=null}h(e,t){if(this.e&&typeof this.e[e]=="function")try{return this.e[e](...t)}catch{}switch(e){case"debug":break;case"info":break;case"warn":break;case"error":break;default:break}}debug(...e){return this.h("debug",e)}info(...e){return this.h("info",e)}warn(...e){return this.h("warn",e)}error(...e){return this.h("error",e)}Q(e){this.e=e}};function Se(){return typeof global<"u"?(global[m]||(global[m]=new y),global[m]):typeof globalThis<"u"?(globalThis[m]||(globalThis[m]=new y),globalThis[m]):(P||(P=new y),P)}var A=class extends y{},P=null;F.exports={Logger:A,getLogger:Se}});var M=g((at,j)=>{var W=require("vscode");function Ce(){try{let r=W?.env?.uiKind,e=W?.UIKind?.Web;return r!==void 0&&e!==void 0&&r===e}catch{return!1}}j.exports={isWebEnvironment:Ce}});var $=g((exports,module)=>{var chunk=null;try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){try{chunk=dynamicRequire("../chunks/utils-shared-chunk")}catch{}try{chunk||(chunk=dynamicRequire("./chunks/utils-shared-chunk"))}catch{}try{chunk||(chunk=dynamicRequire("../chunks/path-utils-chunk"))}catch{}try{chunk||(chunk=dynamicRequire("./chunks/path-utils-chunk"))}catch{}}}catch{}if(chunk&&chunk.normalizePath)module.exports={normalizePath:chunk.normalizePath,getFileName:chunk.getFileName,getExtension:chunk.getExtension,getDirectory:chunk.getDirectory,joinPath:chunk.joinPath,getCacheKey:chunk.getCacheKey,getUriPath:chunk.getUriPath,getRelativePath:chunk.getRelativePath};else{let r=function(c=""){return c?c.replace(/\\/g,"/"):""},e=function(c=""){let d=r(c);return d?d.split("/").filter(Boolean):[]},t=function(c=""){let d=e(c);return d.length?d[d.length-1]:""},n=function(c=""){let d=t(c),p=d.lastIndexOf(".");return p<=0?"":d.substring(p).toLowerCase()},o=function(c=""){let d=r(c),p=d.lastIndexOf("/");return p===-1?"":d.substring(0,p)},i=function(...c){return r(c.filter(Boolean).join("/")).replace(/\/+/g,"/")},s=function(c=""){return r(c).toLowerCase()},a=function(c=""){if(!c)return"";if(typeof c=="string")return c;if(typeof c.fsPath=="string"&&c.fsPath.length>0)return c.fsPath;if(typeof c.path=="string"&&c.path.length>0)return c.path;if(typeof c.toString=="function")try{return c.toString(!0)}catch{return c.toString()}return String(c)},l=function(c="",d=""){let p=r(c),v=r(d);return p&&v.startsWith(p)?v.substring(p.length).replace(/^\/+/,""):v};normalizePath=r,getSegments=e,getFileName=t,getExtension=n,getDirectory=o,joinPath=i,getCacheKey=s,getUriPath=a,getRelativePath=l,module.exports={normalizePath:r,getFileName:t,getExtension:n,getDirectory:o,joinPath:i,getCacheKey:s,getUriPath:a,getRelativePath:l}}var normalizePath,getSegments,getFileName,getExtension,getDirectory,joinPath,getCacheKey,getUriPath,getRelativePath});var K=g((ct,U)=>{var T=class extends Error{constructor(e,t,n={}){super(t),this.code=e,this.context=n,this.name="ExtensionError"}},q={FILE_PERMISSION_DENIED:"FILE_PERMISSION_DENIED",WORKSPACE_TOO_LARGE:"WORKSPACE_TOO_LARGE",CHUNK_LOAD_FAILED:"CHUNK_LOAD_FAILED"};function ke(r){if(!r)return!1;let e=r.code||r?.name;return["EACCES","EPERM","EROFS","NoPermissions"].includes(e)}var R=class extends T{constructor(e,t,n={}){let{recoverable:o=!0,context:i={}}=n;super(q.CHUNK_LOAD_FAILED,`Failed to load ${e}: ${t}`,{chunkName:e,recoverable:o,...i}),this.name="ChunkLoadError",this.chunkName=e,this.recoverable=o}};function De(r,e,t={}){let n=require("vscode"),{userFacing:o=!0}=t,i=e?.recoverable??!0;o&&!i&&n.window.showErrorMessage(`Explorer Dates: ${r} feature unavailable. Please reinstall or rebuild the extension.`)}U.exports={ExtensionError:T,ERROR_CODES:q,isPermissionError:ke,ChunkLoadError:R,handleChunkFailure:De}});var G=g((lt,z)=>{var H="EXPLORER_DATES_FORCE_VSCODE_FS";function V(r,e=process.env){return String(e?.[r]||"")==="1"}function x(r){let e=r&&typeof r=="object"?r:null,t=String(e?.scheme||(typeof r=="string"&&/^[a-z][a-z0-9+.-]*:/i.test(r)?r.split(":",1)[0]:"file")).toLowerCase(),n=String(e?.authority||""),o=e?.path||e?.fsPath||(typeof r=="string"?r.replace(/^[a-z][a-z0-9+.-]*:\/\//i,""):"");return{scheme:t,authority:n,path:String(o||"")}}function ve({uri:r,isWeb:e=!1,remoteName:t="",forceWorkspaceFs:n=V(H)}={}){let o=x(r),i=o.scheme!=="file",s=!!e,a=!!t,l=!!(n||s||a||i);return{scheme:o.scheme,authority:o.authority,isFileScheme:!i,isVirtual:i,isBrowser:s,isRemote:a,forceWorkspaceFs:!!n,filesystem:l?"workspace.fs":"node.fs",provider:i?o.scheme==="github"||o.scheme==="vscode-vfs"?"github":"virtual":"filesystem"}}function B({uri:r,platform:e=process.platform,caseSensitive:t}={}){return typeof t=="boolean"?t:x(r).scheme!=="file"?!0:e!=="win32"}function Te(r,e={}){let t=x(r),n=t.path.replace(/\\/g,"/").replace(/\/+/g,"/"),o=`${t.scheme}://${t.authority}${n}`;return B({uri:r,...e})?o:o.toLowerCase()}function L(r){if(r instanceof Date){let e=r.getTime();return Number.isFinite(e)?e:null}if(typeof r=="number")return Number.isFinite(r)?r:null;if(typeof r=="string"&&r.trim()){let e=Date.parse(r);return Number.isFinite(e)?e:null}return null}function xe(r){if(!r||typeof r!="object")return null;let e=L(r.mtime),t=L(r.ctime);return{...r,mtimeMs:e,ctimeMs:t}}z.exports={FORCE_WORKSPACE_FS_ENV:H,envFlag:V,getUriParts:x,getEnvironmentContract:ve,isCaseSensitive:B,resourceIdentity:Te,normalizeTimestamp:L,normalizeStat:xe}});var X=g((ut,Y)=>{function _e(){return typeof Date=="function"&&Date.now?Date.now():16409952e5}function Z(r){return!!(r&&typeof r=="object"&&typeof r.getTime=="function")}function Oe(r){if(Z(r))return r;if(typeof r=="number")return new Date(r);if(typeof r=="string"){let e=Date.parse(r);return isNaN(e)?new Date:new Date(e)}return new Date}function h(r=""){return r?r.replace(/\\/g,"/"):""}function Pe(r=""){let e=h(r);return e?e.split("/").filter(Boolean):[]}function J(r=""){let e=Pe(r);return e.length?e[e.length-1]:""}function Ae(r=""){let e=J(r),t=e.lastIndexOf(".");return t<=0?"":e.substring(t).toLowerCase()}function Re(r=""){let e=h(r),t=e.lastIndexOf("/");return t===-1?"":e.substring(0,t)}function Le(...r){return h(r.filter(Boolean).join("/")).replace(/\/+/g,"/")}function Ie(r=""){return h(r).toLowerCase()}function Ne(r=""){if(!r)return"";if(typeof r=="string")return r;if(typeof r.fsPath=="string"&&r.fsPath.length>0)return r.fsPath;if(typeof r.path=="string"&&r.path.length>0)return r.path;if(typeof r.toString=="function")try{return r.toString(!0)}catch{return r.toString()}return String(r)}function Fe(r="",e=""){let t=h(r),n=h(e);return t&&n.startsWith(t)?n.substring(t.length).replace(/^\/+/,""):n}Y.exports={ensureDate:Oe,isDateLike:Z,getCurrentTimestamp:_e,normalizePath:h,getFileName:J,getExtension:Ae,getDirectory:Re,joinPath:Le,getCacheKey:Ie,getUriPath:Ne,getRelativePath:Fe}});var Q=g((exports,module)=>{var chunk=null;try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){try{chunk=dynamicRequire("../chunks/utils-shared-chunk")}catch{}try{chunk||(chunk=dynamicRequire("./chunks/utils-shared-chunk"))}catch{}try{chunk||(chunk=dynamicRequire("../chunks/date-helpers-chunk"))}catch{}try{chunk||(chunk=dynamicRequire("./chunks/date-helpers-chunk"))}catch{}}}catch{}if(chunk&&(chunk.ensureDate||chunk.isDateLike||chunk.getCurrentTimestamp))module.exports={ensureDate:chunk.ensureDate,isDateLike:chunk.isDateLike,getCurrentTimestamp:chunk.getCurrentTimestamp};else{let r=function(){return typeof Date=="function"&&Date.now?Date.now():16409952e5},e=function(n){return!!(n&&typeof n=="object"&&typeof n.getTime=="function")},t=function(n){if(e(n))return n;if(typeof n=="number")return new Date(n);if(typeof n=="string"){let o=Date.parse(n);return isNaN(o)?new Date:new Date(o)}return new Date};getCurrentTimestamp=r,isDateLike=e,ensureDate=t,module.exports={ensureDate:t,isDateLike:e,getCurrentTimestamp:r}}var getCurrentTimestamp,isDateLike,ensureDate});var oe=g((ft,ne)=>{var u=require("vscode"),{isWebEnvironment:ee}=M(),{normalizePath:We}=$(),{ExtensionError:je,ERROR_CODES:Me,isPermissionError:$e}=K(),{getEnvironmentContract:qe,normalizeStat:Ue,FORCE_WORKSPACE_FS_ENV:Ke}=G(),b;try{let r=X();r&&(b=r.ensureDate)}catch{}b||(b=Q().ensureDate);var te=typeof process<"u"&&process.env?process.env:{},re=te.VSCODE_WEB==="true"||ee(),f=null;if(!re)try{f=require("fs").promises}catch{f=null}var _=class{constructor(){this.isWeb=re||ee()}o(e){try{return qe({uri:this.t(e),isWeb:this.isWeb,remoteName:u.env?.remoteName,forceWorkspaceFs:te[Ke]==="1"}).filesystem==="workspace.fs"}catch{return!1}}r(e){if(!e)return"";if(typeof e=="string")return e;if(e&&typeof e=="object"&&typeof e.fsPath=="string")return e.fsPath;if(e&&typeof e=="object"&&typeof e.path=="string")return e.path;if(typeof e=="object"){if(typeof e.fsPath=="string")return e.fsPath;if(typeof e.path=="string")return e.path}return String(e)}t(e){if(e&&typeof e=="object"&&typeof e.scheme=="string"&&typeof e.path=="string")return e;if(typeof e=="string"){let t=e.trim(),n=/^[a-zA-Z]:[\\/]/.test(t);if(/^[a-zA-Z][a-zA-Z0-9+.-]*:/.test(t)&&!n){let i=u.Uri.parse(t);if(i.scheme&&i.scheme!=="file")return i}return u.Uri.file(e)}if(e&&typeof e=="object"){if(e.uri&&e.uri!==e)try{return this.t(e.uri)}catch{}if(this.isWeb&&typeof e.scheme=="string"&&typeof e.path=="string")return u.Uri.from({scheme:e.scheme,authority:e.authority||"",path:e.path||"",query:e.query||"",fragment:e.fragment||""});if(typeof e.fsPath=="string"&&e.fsPath.length>0)return u.Uri.file(e.fsPath);if(typeof e.path=="string"&&e.path.length>0)return this.isWeb&&typeof e.scheme=="string"&&e.scheme!=="file"?u.Uri.from({scheme:e.scheme,authority:e.authority||"",path:e.path,query:e.query||"",fragment:e.fragment||""}):u.Uri.file(e.path);if(typeof e.href=="string"&&e.href.length>0)return u.Uri.parse(e.href);if(typeof e.scheme=="string")return u.Uri.from({scheme:e.scheme,authority:e.authority||"",path:e.path||e.fsPath||"",query:e.query||"",fragment:e.fragment||""});if(typeof e.toString=="function")try{let t=e.toString(!0);if(t&&t!=="[object Object]")return u.Uri.parse(t)}catch{let t=e.toString();if(t&&t!=="[object Object]")return u.Uri.parse(t)}}throw new Error(`Unsupported target type: ${typeof e}`)}async stat(e){let t=this.o(e);if(!this.isWeb&&f&&!t)return f.stat(this.r(e));let n=this.t(e),o=await u.workspace.fs.stat(n),i=Ue(o);return{...i,mtime:i.mtimeMs===null?b(o.mtime):new Date(i.mtimeMs),ctime:i.ctimeMs===null?b(o.ctime):new Date(i.ctimeMs),birthtime:i.ctimeMs===null?b(o.ctime):new Date(i.ctimeMs),isFile:()=>o.type===u.FileType.File,isDirectory:()=>o.type===u.FileType.Directory}}async readFile(e,t="utf8"){let n=this.o(e);if(!this.isWeb&&f&&!n)return f.readFile(this.r(e),t);let o=this.t(e),i=await u.workspace.fs.readFile(o);return t===null||t==="binary"?i:new TextDecoder(t).decode(i)}async writeFile(e,t,n="utf8"){let o=this.r(e);try{let i=this.o(e);if(!this.isWeb&&f&&!i)return f.writeFile(o,t,n);let s=this.t(e),a=typeof t=="string"?new TextEncoder().encode(t):t;await u.workspace.fs.writeFile(s,a)}catch(i){this.E("write file",o,i)}}async rename(e,t,n={overwrite:!1}){let o=this.r(e),i=this.r(t);try{let s=this.o(e)||this.o(t);if(!this.isWeb&&f&&!s)return f.rename(o,i);if(typeof u.workspace.fs.rename=="function")await u.workspace.fs.rename(this.t(e),this.t(t),n);else if(this.t(e).scheme==="file"&&this.t(t).scheme==="file")await(f||require("fs").promises).rename(o,i);else throw new Error("The active filesystem provider cannot rename report output.")}catch(s){this.E("rename file",`${o} -> ${i}`,s)}}async mkdir(e,t={recursive:!0}){let n=this.r(e);try{let o=this.o(e);if(!this.isWeb&&f&&!o)return f.mkdir(n,t);let i=this.t(e);await u.workspace.fs.createDirectory(i)}catch(o){this.E("create directory",n,o)}}async readdir(e,t={withFileTypes:!1}){let n=this.o(e);if(!this.isWeb&&f&&!n)return f.readdir(this.r(e),t);let o=this.t(e),i=await u.workspace.fs.readDirectory(o);return t.withFileTypes?i.map(([s,a])=>({name:s,isDirectory:()=>a===u.FileType.Directory,isFile:()=>a===u.FileType.File})):i.map(([s])=>s)}async delete(e,t={recursive:!1}){let n=this.o(e);if(!this.isWeb&&f&&!n){let i=this.r(e);return t.recursive?f.rm?f.rm(i,t):f.rmdir(i,t):f.unlink(i)}let o=this.t(e);await u.workspace.fs.delete(o,t)}async exists(e){try{return await this.stat(e),!0}catch{return!1}}async ensureDirectory(e){let t=We(this.r(e));await this.mkdir(t,{recursive:!0})}E(e,t,n){throw $e(n)?new je(Me.FILE_PERMISSION_DENIED,`Permission denied while attempting to ${e}`,{path:t,code:n.code}):n}},He=new _;ne.exports={FileSystemAdapter:_,fileSystem:He}});var I=g((exports,module)=>{var CHUNK_SIZES={onboarding:34,analysisCommands:23,exportReporting:17,extensionApi:15,workspaceTemplates:14,advancedCache:28,workspaceIntelligence:31,incrementalWorkers:19},BASE_BUNDLE_SIZE=99;function _getPresetDefinitionsSync(){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let r=dynamicRequire("./chunks/preset-definitions-chunk");if(r&&r.PRESET_DEFINITIONS)return r.PRESET_DEFINITIONS}}catch{}let FALLBACK_PRESET={minimal:{id:"minimal",name:"Minimal",description:"Lean setup that prioritizes responsiveness in large repos.",targetScenarios:["Large repos","Low resources","Minimal UI"],settings:{"explorerDates.performanceMode":!0,"explorerDates.showDateDecorations":!0}},balanced:{id:"balanced",name:"Balanced",description:"Default feature mix for most workspaces.",targetScenarios:["General development","Mixed workloads"],settings:{"explorerDates.enableOnboardingSystem":!0,"explorerDates.enableAnalysisCommands":!0,"explorerDates.performanceMode":!1,"explorerDates.dateDecorationFormat":"smart","explorerDates.colorScheme":"recency","explorerDates.badgePriority":"time"}},"web-development":{id:"web-development",name:"Web Development",description:"Optimized for frontend and full-stack web projects.",targetScenarios:["Web apps","Frontend teams"],settings:{"explorerDates.enableOnboardingSystem":!0,"explorerDates.dateDecorationFormat":"smart","explorerDates.colorScheme":"file-type","explorerDates.badgePriority":"time"}},enterprise:{id:"enterprise",name:"Enterprise",description:"Full feature set with reporting and integrations enabled.",targetScenarios:["Large teams","Governed environments"],settings:{"explorerDates.enableExportReporting":!0,"explorerDates.enableExtensionApi":!0,"explorerDates.dateDecorationFormat":"smart","explorerDates.colorScheme":"recency","explorerDates.badgePriority":"time"}},"data-science":{id:"data-science",name:"Data Science",description:"Insight-focused profile for data-heavy projects.",targetScenarios:["Data analysis","Research workflows"],settings:{"explorerDates.enableWorkspaceIntelligence":!0,"explorerDates.dateDecorationFormat":"iso-detailed","explorerDates.colorScheme":"recency","explorerDates.badgePriority":"time"}}};return FALLBACK_PRESET}var PRESET_DEFINITIONS=_getPresetDefinitionsSync(),RESTART_REQUIRED_SETTINGS=new Set(["enableOnboardingSystem","enableAnalysisCommands","enableExportReporting","enableExtensionApi","enableWorkspaceTemplates","enableAdvancedCache","enableWorkspaceIntelligence","enableIncrementalWorkers","performanceMode","smartFileWatching"]);function calculateBundleSize(r){let e=BASE_BUNDLE_SIZE;return r["explorerDates.enableOnboardingSystem"]&&(e+=CHUNK_SIZES.onboarding),r["explorerDates.enableAnalysisCommands"]&&(e+=CHUNK_SIZES.analysisCommands),r["explorerDates.enableExportReporting"]&&(e+=CHUNK_SIZES.exportReporting),r["explorerDates.enableExtensionApi"]&&(e+=CHUNK_SIZES.extensionApi),r["explorerDates.enableWorkspaceTemplates"]&&(e+=CHUNK_SIZES.workspaceTemplates),r["explorerDates.enableAdvancedCache"]&&(e+=CHUNK_SIZES.advancedCache),r["explorerDates.enableWorkspaceIntelligence"]&&(e+=CHUNK_SIZES.workspaceIntelligence),r["explorerDates.enableIncrementalWorkers"]&&(e+=CHUNK_SIZES.incrementalWorkers),e}function getDefaultPresetForProfile(r){let e=PRESET_DEFINITIONS;switch(r){case"minimal":case"extreme":return e.minimal||e.minimal;case"balanced":return e.balanced||e.balanced;case"web-development":return e["web-development"]||e["web-development"];case"data-science":return e["data-science"]||e["data-science"];case"enterprise":return e.enterprise||e.enterprise;default:return e.balanced||e.balanced}}module.exports={PRESET_DEFINITIONS,CHUNK_SIZES,BASE_BUNDLE_SIZE,RESTART_REQUIRED_SETTINGS,calculateBundleSize,getDefaultPresetForProfile}});var ae=g((dt,se)=>{var E=typeof process<"u"&&process.env?process.env:{},Ve=12e4,Be=1e4,ze=1440*60*1e3,Ge=2,Ze=["Ja","Fe","Mr","Ap","My","Jn","Jl","Au","Se","Oc","No","De"],Je=Number(E.EXPLORER_DATES_DECORATION_POOL_SIZE||2048),Ye=Number(E.EXPLORER_DATES_FLYWEIGHT_CACHE_SIZE||4096),Xe=Number(E.EXPLORER_DATES_WORKSPACE_BALANCED_THRESHOLD||15e3),Qe=Number(E.EXPLORER_DATES_WORKSPACE_LARGE_THRESHOLD||25e4),ie=Number(E.EXPLORER_DATES_WORKSPACE_EXTREME_THRESHOLD||4e5),et=Number(E.EXPLORER_DATES_WORKSPACE_SCAN_MAX_RESULTS||Math.min(ie+1,50001)),tt={ADVANCED_CACHE:"explorerDates.advancedCache",ADVANCED_CACHE_METADATA:"explorerDates.advancedCacheMetadata",TEMPLATE_STORE:"explorerDates.templates",WEB_GIT_NOTICE:"explorerDates.webGitNotice"},rt="explorerDatesChunks",nt="__explorerDatesChunks";se.exports={DEFAULT_CACHE_TIMEOUT:Ve,DEFAULT_MAX_CACHE_SIZE:Be,DEFAULT_PERSISTENT_CACHE_TTL:ze,DEFAULT_DECORATION_POOL_SIZE:Je,DEFAULT_FLYWEIGHT_CACHE_SIZE:Ye,MAX_BADGE_LENGTH:Ge,MONTH_ABBREVIATIONS:Ze,WORKSPACE_SCALE_BALANCED_THRESHOLD:Xe,WORKSPACE_SCALE_LARGE_THRESHOLD:Qe,WORKSPACE_SCALE_EXTREME_THRESHOLD:ie,WORKSPACE_SCAN_MAX_RESULTS:et,GLOBAL_STATE_KEYS:tt,WEB_CHUNK_GLOBAL_KEY:rt,LEGACY_WEB_CHUNK_GLOBAL_KEY:nt}});var ce=g((exports,module)=>{var{getLogger}=w(),env=typeof process<"u"&&process.env?process.env:{};function createFallbackVscodeMinimal(){return{workspace:{workspaceFolders:[],getConfiguration:()=>({get:()=>{},async update(){},inspect:()=>({defaultValue:void 0,globalValue:void 0,workspaceValue:void 0,workspaceFolderValue:void 0})})},ConfigurationTarget:{Global:1,Workspace:2,WorkspaceFolder:3}}}function resolveVscodeMinimal(){try{return require("vscode")}catch{return createFallbackVscodeMinimal()}}var MinimalSettingsCoordinator=class{constructor(e={}){this.M=e.defaultSection||"explorerDates",this.m=new Map,this.x=new Map,this.ee=Number(env.EXPLORER_DATES_LOCK_WAIT_WARN_MS||1e3),this._logger=getLogger()}$(e,t){let o=(this.m.get(e)||Promise.resolve()).then(()=>t()),i=o.catch(()=>{});return this.m.set(e,i),o.finally(()=>{this.m.get(e)===i&&this.m.delete(e)}),o}S(e,t){return resolveVscodeMinimal().workspace.getConfiguration(e||void 0,t)}u(e,t){let n=t||this.M;return n?e.startsWith(`${n}.`)?{section:n,key:e.slice(n.length+1),fullKey:e}:e.includes(".")?{section:void 0,key:e,fullKey:e}:{section:n,key:e,fullKey:`${n}.${e}`}:{section:void 0,key:e,fullKey:e}}async updateSetting(e,t,n={}){return this.$(this.u(e,n.section).fullKey,async()=>{let o=this.u(e,n.section),i=this.S(o.section,n.resource);try{let s=this.q(n.scope,n.resource);return await i.update(o.key,t,s),{key:o.fullKey,updated:!0}}catch(s){try{this._logger.warn(`Configuration update failed for ${o.fullKey}: ${s&&s.message}`)}catch{}return{key:o.fullKey,updated:!1,error:s}}})}async applySettings(e,t={}){let n=Array.isArray(e)?e:Object.entries(e).map(([s,a])=>({key:s,value:a})),o=[];for(let s of n)try{o.push(await this.updateSetting(s.key,s.value,t))}catch(a){o.push({key:this.u(s.key,t.section).fullKey,updated:!1,error:a})}let i=o.filter(s=>s&&s.error);if(i.length>0){let s=i.map(l=>`${l.key}: ${l.error&&l.error.message?l.error.message:String(l.error)}`),a=new Error(`Failed to apply ${i.length} setting(s): ${s.join("; ")}`);throw a.details=i,a}return o}q(e,t){return e&&e!=="auto"?this.U(e)||resolveVscodeMinimal().ConfigurationTarget.Workspace:t?resolveVscodeMinimal().ConfigurationTarget.WorkspaceFolder:resolveVscodeMinimal().workspace.workspaceFolders&&resolveVscodeMinimal().workspace.workspaceFolders.length>0?resolveVscodeMinimal().ConfigurationTarget.Workspace:resolveVscodeMinimal().ConfigurationTarget.Global}U(e){switch(e){case"user":return resolveVscodeMinimal().ConfigurationTarget.Global;case"workspace":return resolveVscodeMinimal().ConfigurationTarget.Workspace;case"workspaceFolder":return resolveVscodeMinimal().ConfigurationTarget.WorkspaceFolder;default:return}}getValue(e,t={}){let{section:n,resource:o}=t||{},i=this.u(e,n);return this.S(i.section,o).get(i.key)}inspect(e,t={}){let{section:n,resource:o}=t||{},i=this.u(e,n);return this.S(i.section,o).inspect(i.key)}async clearSetting(e,t={}){return this.updateSetting(e,void 0,t)}getLockWaitStats(){let e={};for(let[t,n]of this.x.entries())e[t]={...n};return e}resetLockWaitStats(){this.x.clear()}},cachedCoordinator=null;function getSettingsCoordinator(options){if(!cachedCoordinator||options&&options.forceNew){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let r=null;try{r=dynamicRequire("../chunks/settings-coordinator-impl-chunk")}catch{}try{r||(r=dynamicRequire("../chunks/settingsCoordinator-impl-chunk"))}catch{}if(r&&typeof r.createSettingsCoordinatorImpl=="function")return cachedCoordinator=r.createSettingsCoordinatorImpl(options),cachedCoordinator}}catch{}try{let{WEB_CHUNK_GLOBAL_KEY:r,LEGACY_WEB_CHUNK_GLOBAL_KEY:e}=ae(),t=typeof globalThis<"u"&&(globalThis[r]||globalThis[e])||null;if(t&&t.settingsCoordinatorImpl&&typeof t.settingsCoordinatorImpl.createSettingsCoordinatorImpl=="function")return cachedCoordinator=t.settingsCoordinatorImpl.createSettingsCoordinatorImpl(options),cachedCoordinator}catch{}cachedCoordinator=new MinimalSettingsCoordinator(options)}return cachedCoordinator}module.exports={getSettingsCoordinator,MinimalSettingsCoordinator}});var le=g((exports,module)=>{var vscode=require("vscode"),getLogger=()=>{try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let r=dynamicRequire("./chunks/logger-chunk");if(r&&typeof r.getLogger=="function")return getLogger=r.getLogger,getLogger()}}catch{}try{return getLogger=w().getLogger,getLogger()}catch{return getLogger=()=>({debug:(()=>{})?.bind(console)||console.log,info:(()=>{}).bind(console),warn:(()=>{}).bind(console),error:(()=>{}).bind(console)}),getLogger()}},{getLocalization}=require("./utils/localization"),l10n=getLocalization(),logger=getLogger();async function showTeamConflictWarning(r,e){let t=e.length,n=l10n.getString("teamConflictsFound",t);switch(await vscode.window.showWarningMessage(n,l10n.getString("showDetails"),l10n.getString("useTeamConfig"),l10n.getString("keepMySettings"))){case"Show Details":return showConflictDetails(r,e);case"Use Team Config":return applyTeamConfiguration(r);case"Keep My Settings":return documentUserOverrides(r,e)}}async function showConflictDetails(r,e){try{let t=e.map(o=>({label:`${o.key}`,description:`${o.impact} | ${o.chunkEffect||"no chunk effect"}`,detail:`Team: ${JSON.stringify(o.teamValue)} +You: ${JSON.stringify(o.userValue)}`})),n=await vscode.window.showQuickPick(t,{placeHolder:l10n.getString("reviewConflictsPlaceholder")});return{chosen:!!n,choice:n}}catch(t){throw logger.error("Failed to show conflict details",t),t}}async function applyTeamConfiguration(r){try{let e=r.f;if(!e)return{applied:0};let t=r.y(e),n=e.profiles?.[t];if(!n||!n.settings)return{applied:0};let o=Object.keys(n.settings||{});for(let i of o){let s=n.settings[i];try{await r._(i,s)}catch(a){logger.warn("Failed to apply team setting during applyTeamConfiguration:",a)}}return vscode.window.showInformationMessage(l10n.getString("appliedFromTeamProfile",o.length,t||"unknown")),{applied:o.length}}catch(e){throw logger.error("applyTeamConfiguration failed:",e),e}}async function documentUserOverrides(r,e){return typeof r.O=="function"?r.O(e):(vscode.window.showInformationMessage(l10n.getString("documentedOverrides")),{documented:!0})}module.exports={showTeamConflictWarning,showConflictDetails,applyTeamConfiguration,documentUserOverrides}});var fe=g((gt,ue)=>{var O=le();ue.exports={showTeamConflictWarning:O.showTeamConflictWarning,showConflictDetails:O.showConflictDetails,applyTeamConfiguration:O.applyTeamConfiguration,documentUserOverrides:O.documentUserOverrides}});var k=g((exports,module)=>{var vscode=require("vscode"),getLogger=()=>{try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let r=dynamicRequire("./chunks/logger-chunk");if(r&&typeof r.getLogger=="function")return getLogger=r.getLogger,getLogger()}}catch{}try{return getLogger=w().getLogger,getLogger()}catch{return getLogger=()=>({debug:(()=>{})?.bind(console)||console.log,info:(()=>{}).bind(console),warn:(()=>{}).bind(console),error:(()=>{}).bind(console)}),getLogger()}},{CHUNK_SIZES}=I(),logger=getLogger();function _valuesEqual(r,e){if(r===e)return!0;if(typeof r=="object"&&typeof e=="object")try{return JSON.stringify(r)===JSON.stringify(e)}catch{return!1}return!1}async function detectConfigConflicts(r,e){let t=r.y(e);if(!t)return[];let n=e.profiles?.[t];if(!n||!n.settings)return[];let o=vscode.workspace.getConfiguration(),i=[];for(let[s,a]of Object.entries(n.settings)){let l=o.inspect(s);if(!l||!(l.workspaceValue!==void 0||l.globalValue!==void 0))continue;let d=l.workspaceValue!==void 0?l.workspaceValue:l.globalValue;if(_valuesEqual(d,a))continue;let p={key:s,profileId:t,teamValue:a,userValue:d,source:l.workspaceValue!==void 0?"workspace":"global",impact:_calculateImpact(s,a,d),chunkEffect:_describeChunkEffect(s,a)};i.push(p)}return i.sort((s,a)=>{let l={high:3,medium:2,low:1};return(l[a.impact]||0)-(l[s.impact]||0)}),logger.debug("Detected team configuration conflicts",{conflictCount:i.length}),i}function _calculateImpact(r,e,t){return{"explorerDates.enableOnboardingSystem":"onboarding","explorerDates.enableAnalysisCommands":"analysisCommands","explorerDates.enableExportReporting":"exportReporting","explorerDates.enableExtensionApi":"extensionApi","explorerDates.enableWorkspaceTemplates":"workspaceTemplates","explorerDates.enableAdvancedCache":"advancedCache","explorerDates.enableWorkspaceIntelligence":"workspaceIntelligence","explorerDates.enableIncrementalWorkers":"incrementalWorkers"}[r]?typeof e=="boolean"?"high":"medium":typeof e=="boolean"&&typeof t=="boolean"?"medium":"low"}function _describeChunkEffect(r,e){let t={"explorerDates.enableOnboardingSystem":"onboarding","explorerDates.enableAnalysisCommands":"analysisCommands","explorerDates.enableExportReporting":"exportReporting","explorerDates.enableExtensionApi":"extensionApi","explorerDates.enableWorkspaceTemplates":"workspaceTemplates","explorerDates.enableAdvancedCache":"advancedCache","explorerDates.enableWorkspaceIntelligence":"workspaceIntelligence","explorerDates.enableIncrementalWorkers":"incrementalWorkers"},n={onboarding:"Onboarding System",analysisCommands:"Analysis Commands",exportReporting:"Export Reporting",extensionApi:"Extension API",workspaceTemplates:"Workspace Templates",advancedCache:"Advanced Cache",workspaceIntelligence:"Workspace Intelligence",incrementalWorkers:"Incremental Workers"},o=t[r];if(!o)return null;let i=n[o]||o,s=CHUNK_SIZES[o]||0;return`${i} chunk will be ${e?"enabled":"disabled"}${s?` (${s}KB)`:""}`}function validateSettings(r){if(!r||typeof r!="object")throw new Error("Settings must be a valid object");let e=new Set(Object.keys({"explorerDates.enableOnboardingSystem":1,"explorerDates.enableAnalysisCommands":1,"explorerDates.enableExportReporting":1,"explorerDates.enableExtensionApi":1,"explorerDates.enableWorkspaceTemplates":1,"explorerDates.enableAdvancedCache":1,"explorerDates.enableWorkspaceIntelligence":1,"explorerDates.enableIncrementalWorkers":1})),t=new Set(["explorerDates.dateFormat","explorerDates.showFileAge","explorerDates.colorizeByAge","explorerDates.excludePatterns","explorerDates.maxCacheSize","explorerDates.refreshInterval"]),n=new Set([...e,...t]),o=[],i=[];for(let s of Object.keys(r))n.has(s)||(s.startsWith("explorerDates.")?i.push(s):o.push(s));if(o.length>0)throw new Error(`Invalid settings detected: ${o.join(", ")}. Settings must start with 'explorerDates.'`);i.length>0&&logger.warn("Unrecognized Explorer Dates settings in team profile",{keys:i});for(let[s,a]of Object.entries(r))validateSettingValue(s,a)}function validateSettingValue(r,e){if(new Set(["explorerDates.enableOnboardingSystem","explorerDates.enableAnalysisCommands","explorerDates.enableExportReporting","explorerDates.enableExtensionApi","explorerDates.enableWorkspaceTemplates","explorerDates.enableAdvancedCache","explorerDates.enableWorkspaceIntelligence","explorerDates.enableIncrementalWorkers","explorerDates.showFileAge","explorerDates.colorizeByAge"]).has(r)&&typeof e!="boolean")throw new Error(`Setting '${r}' must be a boolean value, got ${typeof e}`);if(r==="explorerDates.dateFormat"&&(typeof e!="string"||e.trim().length===0))throw new Error(`Setting '${r}' must be a non-empty string`);if(r==="explorerDates.excludePatterns"){if(!Array.isArray(e))throw new Error(`Setting '${r}' must be an array of patterns`);for(let o of e)if(typeof o!="string")throw new Error(`Exclude pattern must be a string, got ${typeof o}`)}if(new Set(["explorerDates.maxCacheSize","explorerDates.refreshInterval"]).has(r)&&(typeof e!="number"||e<0))throw new Error(`Setting '${r}' must be a non-negative number, got ${e}`)}function _convertToYamlLike(r,e=0){let t=" ".repeat(e);return Array.isArray(r)?r.map(n=>`${t}- ${_convertToYamlLike(n,e+1).trim()}`).join(` `):typeof r=="object"&&r!==null?Object.entries(r).map(([n,o])=>typeof o=="object"?`${t}${n}: ${_convertToYamlLike(o,e+1)}`:`${t}${n}: ${typeof o=="string"?o:JSON.stringify(o)}`).join(` `):`${t}${String(r)}`}function _convertToCsv(r){let e=[];e.push("Profile ID,Profile Name,Setting Key,Setting Value,Description");for(let[t,n]of Object.entries(r.profiles)){let o=n.name||t,i=n.description||"";if(n.settings&&Object.keys(n.settings).length>0)for(let[s,a]of Object.entries(n.settings)){let l=[t,o,s,typeof a=="string"?a:JSON.stringify(a),i].map(c=>`"${String(c).replace(/"/g,'""')}"`).join(",");e.push(l)}else{let s=[t,o,"","",i].map(a=>`"${String(a).replace(/"/g,'""')}"`).join(",");e.push(s)}}return e.join(` -`)}function _convertFromVSCodeSettings(r){if(!r||typeof r!="object")return{version:"1.0.0",defaultProfile:"imported",profiles:{imported:{name:"imported",settings:{}}}};let e={};for(let[n,o]of Object.entries(r))typeof n=="string"&&n.startsWith("explorerDates.")&&(e[n]=o);return{version:"1.0.0",defaultProfile:"imported",profiles:{imported:{name:"imported",settings:e}},metadata:{}}}function _validateImportedData(r){if(!r||typeof r!="object")throw new Error("Imported data must be a valid object");if(!r.profiles||typeof r.profiles!="object")throw new Error("Imported data must contain a profiles object");if(Object.keys(r.profiles).length===0)throw new Error("Imported data must contain at least one profile");for(let[t,n]of Object.entries(r.profiles)){if(!n||typeof n!="object")throw new Error(`Profile '${t}' is invalid`);if(!n.name||typeof n.name!="string")throw new Error(`Profile '${t}' must have a valid name`);if(n.settings)try{validateSettings(n.settings)}catch(o){throw new Error(`Profile '${t}' has invalid settings: ${o.message}`)}}}async function exportTeamConfiguration(r,e="json",t={}){let n=r.f;if(!n)throw new Error("No team configuration is currently loaded");let{includeMetadata:o=!0,prettify:i=!0}=t,s={...n};switch(o||(delete s.metadata,s.profiles=Object.fromEntries(Object.entries(s.profiles).map(([a,l])=>{let c={...l};return delete c.metadata,[a,c]}))),e.toLowerCase()){case"json":return JSON.stringify(s,null,i?2:0);case"yaml":return _convertToYamlLike(s);default:throw new Error(`Unsupported export format: ${e}`)}}async function importTeamConfiguration(r,e,t="json",n={}){let{validate:o=!0,merge:i=!1}=n,s;try{switch(t.toLowerCase()){case"json":s=JSON.parse(e);break;case"vscode-settings":let a=JSON.parse(e);s=_convertFromVSCodeSettings(a);break;default:throw new Error(`Unsupported import format: ${t}`)}}catch(a){throw new Error(`Failed to parse ${t} data: ${a.message}`)}if(o&&_validateImportedData(s),i){let a=await r.loadTeamProfiles(!0)||{};s.profiles={...a,...s.profiles}}return await r.saveTeamProfiles(s.profiles),logger.info("Imported team configuration",{format:t,profileCount:Object.keys(s.profiles).length,merge:i}),s}module.exports={detectConfigConflicts,validateSettings,validateSettingValue,A:_convertToYamlLike,P:_convertToCsv,importTeamConfiguration,R:_convertFromVSCodeSettings,K:_validateImportedData,exportTeamConfiguration}});var S=d((pt,de)=>{var D=k();de.exports={detectConfigConflicts:D.detectConfigConflicts,validateSettings:D.validateSettings,validateSettingValue:D.validateSettingValue,exportTeamConfiguration:D.exportTeamConfiguration,importTeamConfiguration:D.importTeamConfiguration}});var ge=d((exports,module)=>{var vscode=require("vscode"),getLogger=()=>{try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let r=dynamicRequire("./chunks/logger-chunk");if(r&&typeof r.getLogger=="function")return getLogger=r.getLogger,getLogger()}}catch{}try{return getLogger=w().getLogger,getLogger()}catch{return getLogger=()=>({debug:(()=>{})?.bind(console)||console.log,info:(()=>{}).bind(console),warn:(()=>{}).bind(console),error:(()=>{}).bind(console)}),getLogger()}},{fileSystem}=oe(),{CHUNK_SIZES}=I(),{getSettingsCoordinator}=ce(),{getLocalization}=require("./utils/localization"),l10n=getLocalization(),logger=getLogger(),TEAM_CONFIG_SCHEMA_VERSION="1.0.0",FEATURE_CHUNK_MAP={"explorerDates.enableOnboardingSystem":"onboarding","explorerDates.enableAnalysisCommands":"analysisCommands","explorerDates.enableExportReporting":"exportReporting","explorerDates.enableExtensionApi":"extensionApi","explorerDates.enableWorkspaceTemplates":"workspaceTemplates","explorerDates.enableAdvancedCache":"advancedCache","explorerDates.enableWorkspaceIntelligence":"workspaceIntelligence","explorerDates.enableIncrementalWorkers":"incrementalWorkers"},CHUNK_LABELS={onboarding:"Onboarding System",analysisCommands:"Analysis Commands",exportReporting:"Export Reporting",extensionApi:"Extension API",workspaceTemplates:"Workspace Templates",advancedCache:"Advanced Cache",workspaceIntelligence:"Workspace Intelligence",incrementalWorkers:"Incremental Workers"},TeamConfigPersistenceManager=class{constructor(e){this.S=e,this.i=fileSystem,this.d=".explorer-dates-profiles.json",this.f=null,this.C=null,this.k=null,this.s=new Map,this.n=new Set,this.t=null,this.c=null,this.H=getSettingsCoordinator(),logger.info("Team persistence manager initialized with full functionality")}async validateTeamConfiguration(){try{let e=vscode.workspace.workspaceFolders?.[0]?.uri;if(!e)return{valid:!0,conflicts:[],hasTeamConfig:!1};let t=vscode.Uri.joinPath(e,this.d);if(!await(this.l&&typeof this.l.g=="function"?this.l.g:this.g).call(this,t))return logger.debug("No team configuration file found"),{valid:!0,conflicts:[],hasTeamConfig:!1};let i=await this.L(t);if(!i)return{valid:!0,conflicts:[],hasTeamConfig:!1};let s=await this.V(i);return s.length>0&&await this.I(s),{valid:s.length===0,conflicts:s,hasTeamConfig:!0,teamConfig:i}}catch(e){return logger.error("Team configuration validation failed:",e),{valid:!0,conflicts:[],error:e.message}}}async I(e){let t=await Promise.resolve().then(()=>C(fe()));return(t?.default||t).showTeamConflictWarning(this,e)}async L(e){try{let t=this.p(e),n;if(this.s.has(t))n=this.s.get(t),logger.debug("Loaded team configuration from ephemeral storage");else{let i;try{i=await this.i.readFile(e,"utf8")}catch(s){if(s?.code==="ENOENT")return logger.debug("Team configuration file not found on disk"),null;throw s}if(typeof i=="string"&&i.trim().startsWith("// virtual content"))return logger.debug("Team configuration file placeholder detected (treated as missing)"),null;try{n=JSON.parse(i)}catch{throw new Error("Team configuration file is not valid JSON.")}}let o=this.B(n);return o.version!==TEAM_CONFIG_SCHEMA_VERSION&&logger.warn(`Team configuration schema mismatch. Expected ${TEAM_CONFIG_SCHEMA_VERSION}, received ${o.version}`),this.f=o,this.C=e,this.k=this.y(o),logger.debug("Loaded team configuration",{profileCount:Object.keys(o.profiles||{}).length}),o}catch(t){if(t?.code==="ENOENT")return logger.debug("Team configuration file not found during load"),null;throw logger.error("Failed to load team configuration:",t),t}}async V(e){try{let t=await Promise.resolve().then(()=>C(S())),n=t?.default||t;if(n&&typeof n.detectConfigConflicts=="function")return n.detectConfigConflicts(this,e)}catch(t){logger.debug("Delegated conflict detection unavailable, falling back (no conflicts):",t?.message||t)}return[]}async saveTeamProfiles(e){let t=vscode.workspace.workspaceFolders?.[0]?.uri;if(!t)throw new Error("No workspace folders available for team profiles");let n=vscode.Uri.joinPath(t,this.d),o=Object.keys(e),i={version:TEAM_CONFIG_SCHEMA_VERSION,createdAt:new Date().toISOString(),defaultProfile:o[0]||null,profiles:e,metadata:{extensionVersion:this.z(),vscodeVersion:vscode.version}};try{await this.i.ensureDirectory(t)}catch(s){if(!this.N(s))throw s;logger.warn("Workspace directory is not writable; continuing with ephemeral storage",{code:s.code}),this.F(s)}try{return await this.G(n,i),this.f=i,this.C=n,this.k=this.y(i),logger.info("Saved team profiles",{profileCount:Object.keys(e).length}),n}catch(s){throw logger.error("Failed to save team profiles:",s),new Error(`Failed to save team profiles: ${s.message}`)}}async loadTeamProfiles(e=!1){try{let t=vscode.workspace.workspaceFolders?.[0]?.uri;if(!t)return{};let n=vscode.Uri.joinPath(t,this.d),o=await this.L(n);return o&&o.profiles?o.profiles:{}}catch(t){return logger.debug("loadTeamProfiles failed",t),{}}}async listTeamProfiles(){let e=await this.loadTeamProfiles(!0)||{};return Object.keys(e).map(t=>Object.assign({id:t},e[t]))}async hasTeamConfiguration(){try{let e=vscode.workspace.workspaceFolders?.[0]?.uri;if(!e)return!1;let t=vscode.Uri.joinPath(e,this.d),n=this.p(t);return this.s.has(n)?!0:await this.g(t)}catch(e){return logger.debug("hasTeamConfiguration check failed",e?.message||e),!1}}async createTeamProfile(e,t){let n=await this.loadTeamProfiles()||{};return n[e]=Object.assign({id:e},t,{metadata:{createdAt:new Date().toISOString()}}),await this.saveTeamProfiles(n),n[e]}async updateTeamProfile(e,t){let n=await this.loadTeamProfiles()||{};if(!n[e])throw new Error(`Profile not found: ${e}`);return n[e]=Object.assign({},n[e],t,{metadata:Object.assign({},n[e].metadata||{},{updatedAt:new Date().toISOString()})}),await this.saveTeamProfiles(n),n[e]}async deleteTeamProfile(e){let t=await this.loadTeamProfiles()||{};return t[e]?(delete t[e],await this.saveTeamProfiles(t),!0):!1}async resolveConflictsAutomatically(e=[],t="team-wins"){let n=0;for(let o of e||[]){let i=o.key||o.settingKey||o.setting||o.name,s=o.teamValue??o.value??o.settingValue;if(i)try{t==="team-wins"?(await this._(i,s),n++):t==="user-wins"&&n++}catch(a){logger.debug("resolveConflictsAutomatically failed for",i,a?.message||a)}}return{resolved:n}}async O(e){if(!e||e.length===0){vscode.window.showInformationMessage(l10n.getString("noOverridesToDocument"));return}let t=this.Z();if(!t){logger.warn("Cannot document overrides without a workspace.");return}let n=vscode.Uri.joinPath(t,".vscode"),o=vscode.Uri.joinPath(n,"explorer-dates-overrides.md");await this.i.ensureDirectory(n);let i="";await this.g(o)?(i=await this.i.readFile(o,"utf8"),i.includes(l10n.getString("overrideNotesHeader").trim())||(i=`${l10n.getString("overrideNotesHeader")}${i.trimStart()}`)):i=l10n.getString("overrideNotesHeader");let s=this.J(e);await this.i.writeFile(o,`${i}${s} -`,"utf8"),vscode.window.showInformationMessage(l10n.getString("documentedOverrides"))}async g(e){let t=this.p(e);if(this.s.has(t))return!0;try{return await this.i.stat(e),!0}catch{return!1}}z(){try{return vscode.extensions.getExtension("your.extension-id")?.packageJSON?.version||"unknown"}catch{return"unknown"}}y(e){if(!e?.profiles)return null;let{activeProfile:t,defaultProfile:n,profiles:o}=e;return t&&o[t]?t:n&&o[n]?n:Object.keys(o)[0]||null}te(e,t){if(e===t)return!0;if(typeof e=="object"&&typeof t=="object")try{return JSON.stringify(e)===JSON.stringify(t)}catch{return!1}return!1}w(e){if(e===void 0)return"undefined";if(e===null)return"null";if(typeof e=="object")try{return JSON.stringify(e)}catch{return"[object]"}return String(e)}re(e,t,n){return FEATURE_CHUNK_MAP[e]?typeof t=="boolean"?"high":"medium":typeof t=="boolean"&&typeof n=="boolean"?"medium":"low"}ne(e,t){let n=FEATURE_CHUNK_MAP[e];if(!n)return null;let o=CHUNK_LABELS[n]||n,i=CHUNK_SIZES[n]||0;return`${o} chunk will be ${t?"enabled":"disabled"}${i?` (${i}KB)`:""}`}async _(e,t){await this.H.updateSetting(e,t,{scope:"workspace",reason:"team-conflict-resolution"})}Z(){return vscode.workspace.workspaceFolders?.[0]?.uri??null}J(e){let t=[`## ${new Date().toISOString()}`,"","| Setting | Team Value | Your Value | Impact | Notes |","| --- | --- | --- | --- | --- |"];for(let n of e){let o=[];n.chunkEffect&&o.push(n.chunkEffect);let i=n.reason||n.overrideReason;i&&o.push(`Reason: ${i}`);let s=n.userChoice||n.choice;s&&o.push(`User choice: ${s}`);let a=o.length>0?o.join(" \u2022 "):"n/a";t.push(`| \`${n.key}\` | ${this.w(n.teamValue)} | ${this.w(n.userValue)} | ${n.impact} | ${a} |`)}t.push("");for(let n of e){t.push(`## Setting: ${n.key}`),t.push(`- Team value: ${this.w(n.teamValue)}`),t.push(`- Your value: ${this.w(n.userValue)}`),(n.userChoice||n.choice)&&t.push(`- User choice: ${n.userChoice||n.choice}`);let o=n.reason||n.overrideReason;o&&t.push(`- Reason: ${o}`),n.chunkEffect&&t.push(`- Chunk impact: ${n.chunkEffect}`),t.push("")}return t.push(""),t.join(` -`)}B(e){if(!e||typeof e!="object")throw new Error("Team configuration file is empty or invalid.");let{profiles:t}=e;if(!t||typeof t!="object"||Object.keys(t).length===0)throw new Error("Team configuration must include at least one profile.");let n={};for(let[o,i]of Object.entries(t)){if(!i||typeof i!="object")continue;let s=typeof i.settings=="object"?i.settings:{};n[o]={id:o,name:i.name||o,description:i.description||"",priority:i.priority||"normal",chunks:Array.isArray(i.chunks)?i.chunks:[],settings:s,metadata:i.metadata||{}}}if(Object.keys(n).length===0)throw new Error("Team configuration profiles are malformed.");return{version:e.version||TEAM_CONFIG_SCHEMA_VERSION,defaultProfile:e.defaultProfile||Object.keys(n)[0],activeProfile:e.activeProfile,profiles:n,metadata:e.metadata||{},createdAt:e.createdAt||null,updatedAt:e.updatedAt||null}}D(e){let t=S();return(t?.default||t).validateSettings(e)}W(e,t){let n=S();return(n?.default||n).validateSettingValue(e,t)}async exportTeamConfiguration(e="json",t={}){let n=await Promise.resolve().then(()=>C(S()));return(n?.default||n).exportTeamConfiguration(this,e,t)}async importTeamConfiguration(e,t="json",n={}){let o=await Promise.resolve().then(()=>C(S()));return(o?.default||o).importTeamConfiguration(this,e,t,n)}startTeamConfigWatcher(){this.t&&this.t.dispose();let e=vscode.workspace.workspaceFolders?.[0]?.uri;if(!e){logger.warn("Cannot start team config watcher without workspace");return}let t=new vscode.RelativePattern(e,this.d);this.t=vscode.workspace.createFileSystemWatcher(t),this.t.onDidCreate(async n=>{logger.info("Team configuration file created, revalidating"),await this.v(n,"created")}),this.t.onDidChange(async n=>{logger.info("Team configuration file changed, revalidating"),await this.v(n,"changed")}),this.t.onDidDelete(async n=>{logger.info("Team configuration file deleted"),await this.v(n,"deleted")}),logger.info("Started team configuration file watcher")}stopTeamConfigWatcher(){this.t&&(this.t.dispose(),this.t=null,logger.info("Stopped team configuration file watcher"))}async v(e,t){try{if(t==="deleted"){this.f=null,this.C=null,this.k=null,vscode.window.showInformationMessage(l10n.getString("teamConfigRemoved"),l10n.getString("understood"));return}this.c&&clearTimeout(this.c),this.c=setTimeout(async()=>{try{let n=await this.validateTeamConfiguration();n.hasTeamConfig&&n.conflicts.length>0?vscode.window.showInformationMessage(l10n.getString("teamConfigUpdatedWithConflicts",n.conflicts.length),l10n.getString("reviewConflictsLabel"),l10n.getString("ignoreLabel")).then(o=>{o===l10n.getString("reviewConflictsLabel")&&this.I(n.conflicts)}):n.hasTeamConfig&&vscode.window.showInformationMessage(l10n.getString("teamConfigUpdatedSuccess"),l10n.getString("understood"))}catch(n){logger.error("Failed to handle team config change",n),vscode.window.showErrorMessage(`Explorer Dates team configuration update failed: ${n.message}`)}},1e3)}catch(n){logger.error("Error handling team config change",n)}}A(e){return k().A(e)}P(e){return k().P(e)}R(e){return k().R(e)}K(e){if(!e||typeof e!="object")throw new Error("Imported data must be a valid object");if(!e.profiles||typeof e.profiles!="object")throw new Error("Imported data must contain a profiles object");let t=Object.keys(e.profiles).length;if(t===0)throw new Error("Imported data must contain at least one profile");for(let[n,o]of Object.entries(e.profiles)){if(!o||typeof o!="object")throw new Error(`Profile '${n}' is invalid`);if(!o.name||typeof o.name!="string")throw new Error(`Profile '${n}' must have a valid name`);if(o.settings)try{this.D(o.settings)}catch(i){throw new Error(`Profile '${n}' has invalid settings: ${i.message}`)}}logger.info("Validated imported team configuration",{profileCount:t})}dispose(){this.stopTeamConfigWatcher(),this.c&&(clearTimeout(this.c),this.c=null),this.s.clear(),logger.info("Team persistence manager disposed")}p(e){return e?typeof e=="string"?e:e.fsPath||e.path||String(e):""}N(e){return e?new Set(["EACCES","EPERM","EROFS","ENOSPC"]).has(e.code):!1}F(e){let t=e?.code||"generic";if(this.n.has(t))return;if(this.n.add(t),this.l&&this.l.n&&this.l.n!==this.n)try{this.l.n.add(t)}catch{}let n=e?.code,o;n==="ENOSPC"?o=l10n.getString("ephemeralStorageEnospc"):o=l10n.getString("ephemeralStorageGeneric"),vscode.window.showWarningMessage(`${o}${l10n.getString("ephemeralStorageSuffix")}`,l10n.getString("understood"))}async G(e,t){let n=JSON.stringify(t,null,2);try{await this.i.writeFile(e,n,"utf8"),this.s.delete(this.p(e)),this.Y()}catch(o){if(this.N(o)){let i=JSON.parse(n);this.s.set(this.p(e),i),logger.warn("Stored team configuration in ephemeral memory due to filesystem restriction",{code:o.code}),this.F(o);return}throw o.code==="ENOSPC"?vscode.window.showErrorMessage("Explorer Dates team configuration cannot be saved - disk is full. Free up some space and try again.","Understood"):(o.code==="EACCES"||o.code==="EPERM")&&vscode.window.showErrorMessage("Explorer Dates team configuration cannot be saved due to insufficient permissions. Contact your administrator to enable write access.","Understood"),o}}Y(){this.n.size!==0&&(this.n.clear(),logger.debug("Filesystem write succeeded after restriction; warning prompts reset"))}};module.exports={TeamConfigPersistenceManager}});var pe=d((exports,module)=>{var getLogger=()=>{try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let r=dynamicRequire("./chunks/logger-chunk");if(r&&typeof r.getLogger=="function")return getLogger=r.getLogger,getLogger()}}catch{}try{return getLogger=w().getLogger,getLogger()}catch{return getLogger=()=>({debug:(()=>{})?.bind(console)||console.log,info:(()=>{}).bind(console),warn:(()=>{}).bind(console),error:(()=>{}).bind(console)}),getLogger()}},logger=getLogger(),TeamConfigPersistenceManager=class{constructor(r){return this.S=r,this.e=null,this.b=null,new Proxy(this,{get:(e,t)=>t==="dispose"?e.dispose.bind(e):t==="_isLazyProxy"?!0:t in e?e[t]:async(...n)=>{let o=await e.X(),i=o[t];if(typeof i!="function")throw new Error(`TeamConfigPersistenceManager implementation missing method: ${String(t)}`);let s=Object.create(o);try{for(let a of Object.getOwnPropertyNames(e))s[a]=e[a]}catch{}return i.apply(s,n)},set:(e,t,n)=>{try{if(typeof t=="string"&&t.startsWith("_"),e[t]=n,e.e)try{e.e[t]=n,typeof t=="string"&&t.startsWith("_")}catch{}}catch{}return!0}})}async X(){return this.e?this.e:(this.b||(this.b=(async()=>{let mod=null;try{mod=await Promise.resolve().then(()=>C(ge())),mod=mod&&mod.default?mod.default:mod}catch(importErr){try{let dynamicRequire=typeof eval=="function"?eval("require"):require;mod=dynamicRequire("./teamConfigPersistence.impl.js")}catch(r){throw importErr.message=`Failed to load teamConfigPersistence.impl (import error: ${importErr.message}; require error: ${r.message})`,importErr}}this.e=new mod.TeamConfigPersistenceManager(this.S);try{Object.defineProperty(this.e,"__proxy",{value:this,configurable:!0,enumerable:!1,writable:!0})}catch{}try{for(let r of Object.getOwnPropertyNames(this.e))r in this||(this[r]=this.e[r])}catch(r){logger.debug("Failed to mirror impl properties to proxy target",r?.message||r)}return this.e})()),this.b)}j(){if(this.e)return this.e;try{let dynamicRequire=typeof eval=="function"?eval("require"):require,mod=dynamicRequire("./teamConfigPersistence.impl.js");this.e=new mod.TeamConfigPersistenceManager(this.S);try{Object.defineProperty(this.e,"__proxy",{value:this,configurable:!0,enumerable:!1,writable:!0})}catch{}try{for(let r of Object.getOwnPropertyNames(this.e))r in this||(this[r]=this.e[r])}catch(r){logger.debug("Failed to copy impl properties to proxy target (sync)",r?.message||r)}return this.e}catch(r){throw r}}D(r){return this.j().D(r)}W(r,e){return this.j().W(r,e)}dispose(){if(this.e&&typeof this.e.dispose=="function")try{this.e.dispose()}catch(r){logger.warn("Error disposing team persistence impl",r)}this.e=null,this.b=null}};module.exports={TeamConfigPersistenceManager}});var{TeamConfigPersistenceManager:ot}=pe();module.exports={createTeamPersistenceManager:r=>{let e=null;function t(){return e||(e=new ot(r),e)}return{async validateTeamConfiguration(){return t().validateTeamConfiguration()},async saveTeamProfiles(n){return t().saveTeamProfiles(n)},async loadTeamProfiles(n=!1){return t().loadTeamProfiles(n)},async hasTeamConfiguration(){return t().hasTeamConfiguration()},async createTeamProfile(n,o){return t().createTeamProfile(n,o)},async validateTeamConfigurationAndNotify(){return t().validateTeamConfiguration()},dispose(){if(e&&typeof e.dispose=="function")try{e.dispose()}catch{}e=null}}}}; +`)}function _convertFromVSCodeSettings(r){if(!r||typeof r!="object")return{version:"1.0.0",defaultProfile:"imported",profiles:{imported:{name:"imported",settings:{}}}};let e={};for(let[n,o]of Object.entries(r))typeof n=="string"&&n.startsWith("explorerDates.")&&(e[n]=o);return{version:"1.0.0",defaultProfile:"imported",profiles:{imported:{name:"imported",settings:e}},metadata:{}}}function _validateImportedData(r){if(!r||typeof r!="object")throw new Error("Imported data must be a valid object");if(!r.profiles||typeof r.profiles!="object")throw new Error("Imported data must contain a profiles object");if(Object.keys(r.profiles).length===0)throw new Error("Imported data must contain at least one profile");for(let[t,n]of Object.entries(r.profiles)){if(!n||typeof n!="object")throw new Error(`Profile '${t}' is invalid`);if(!n.name||typeof n.name!="string")throw new Error(`Profile '${t}' must have a valid name`);if(n.settings)try{validateSettings(n.settings)}catch(o){throw new Error(`Profile '${t}' has invalid settings: ${o.message}`)}}}async function exportTeamConfiguration(r,e="json",t={}){let n=r.f;if(!n)throw new Error("No team configuration is currently loaded");let{includeMetadata:o=!0,prettify:i=!0}=t,s={...n};switch(o||(delete s.metadata,s.profiles=Object.fromEntries(Object.entries(s.profiles).map(([a,l])=>{let c={...l};return delete c.metadata,[a,c]}))),e.toLowerCase()){case"json":return JSON.stringify(s,null,i?2:0);case"yaml":return _convertToYamlLike(s);default:throw new Error(`Unsupported export format: ${e}`)}}async function importTeamConfiguration(r,e,t="json",n={}){let{validate:o=!0,merge:i=!1}=n,s;try{switch(t.toLowerCase()){case"json":s=JSON.parse(e);break;case"vscode-settings":let a=JSON.parse(e);s=_convertFromVSCodeSettings(a);break;default:throw new Error(`Unsupported import format: ${t}`)}}catch(a){throw new Error(`Failed to parse ${t} data: ${a.message}`)}if(o&&_validateImportedData(s),i){let a=await r.loadTeamProfiles(!0)||{};s.profiles={...a,...s.profiles}}return await r.saveTeamProfiles(s.profiles),logger.info("Imported team configuration",{format:t,profileCount:Object.keys(s.profiles).length,merge:i}),s}module.exports={detectConfigConflicts,validateSettings,validateSettingValue,P:_convertToYamlLike,A:_convertToCsv,importTeamConfiguration,R:_convertFromVSCodeSettings,K:_validateImportedData,exportTeamConfiguration}});var S=g((pt,de)=>{var D=k();de.exports={detectConfigConflicts:D.detectConfigConflicts,validateSettings:D.validateSettings,validateSettingValue:D.validateSettingValue,exportTeamConfiguration:D.exportTeamConfiguration,importTeamConfiguration:D.importTeamConfiguration}});var ge=g((exports,module)=>{var vscode=require("vscode"),getLogger=()=>{try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let r=dynamicRequire("./chunks/logger-chunk");if(r&&typeof r.getLogger=="function")return getLogger=r.getLogger,getLogger()}}catch{}try{return getLogger=w().getLogger,getLogger()}catch{return getLogger=()=>({debug:(()=>{})?.bind(console)||console.log,info:(()=>{}).bind(console),warn:(()=>{}).bind(console),error:(()=>{}).bind(console)}),getLogger()}},{fileSystem}=oe(),{CHUNK_SIZES}=I(),{getSettingsCoordinator}=ce(),{getLocalization}=require("./utils/localization"),l10n=getLocalization(),logger=getLogger(),TEAM_CONFIG_SCHEMA_VERSION="1.0.0",FEATURE_CHUNK_MAP={"explorerDates.enableOnboardingSystem":"onboarding","explorerDates.enableAnalysisCommands":"analysisCommands","explorerDates.enableExportReporting":"exportReporting","explorerDates.enableExtensionApi":"extensionApi","explorerDates.enableWorkspaceTemplates":"workspaceTemplates","explorerDates.enableAdvancedCache":"advancedCache","explorerDates.enableWorkspaceIntelligence":"workspaceIntelligence","explorerDates.enableIncrementalWorkers":"incrementalWorkers"},CHUNK_LABELS={onboarding:"Onboarding System",analysisCommands:"Analysis Commands",exportReporting:"Export Reporting",extensionApi:"Extension API",workspaceTemplates:"Workspace Templates",advancedCache:"Advanced Cache",workspaceIntelligence:"Workspace Intelligence",incrementalWorkers:"Incremental Workers"},TeamConfigPersistenceManager=class{constructor(e){this.C=e,this.s=fileSystem,this.d=".explorer-dates-profiles.json",this.f=null,this.k=null,this.D=null,this.a=new Map,this.i=new Set,this.n=null,this.c=null,this.H=getSettingsCoordinator(),logger.info("Team persistence manager initialized with full functionality")}async validateTeamConfiguration(){try{let e=vscode.workspace.workspaceFolders?.[0]?.uri;if(!e)return{valid:!0,conflicts:[],hasTeamConfig:!1};let t=vscode.Uri.joinPath(e,this.d);if(!await(this.l&&typeof this.l.g=="function"?this.l.g:this.g).call(this,t))return logger.debug("No team configuration file found"),{valid:!0,conflicts:[],hasTeamConfig:!1};let i=await this.L(t);if(!i)return{valid:!0,conflicts:[],hasTeamConfig:!1};let s=await this.V(i);return s.length>0&&await this.I(s),{valid:s.length===0,conflicts:s,hasTeamConfig:!0,teamConfig:i}}catch(e){return logger.error("Team configuration validation failed:",e),{valid:!0,conflicts:[],error:e.message}}}async I(e){let t=await Promise.resolve().then(()=>C(fe()));return(t?.default||t).showTeamConflictWarning(this,e)}async L(e){try{let t=this.p(e),n;if(this.a.has(t))n=this.a.get(t),logger.debug("Loaded team configuration from ephemeral storage");else{let i;try{i=await this.s.readFile(e,"utf8")}catch(s){if(s?.code==="ENOENT")return logger.debug("Team configuration file not found on disk"),null;throw s}if(typeof i=="string"&&i.trim().startsWith("// virtual content"))return logger.debug("Team configuration file placeholder detected (treated as missing)"),null;try{n=JSON.parse(i)}catch{throw new Error("Team configuration file is not valid JSON.")}}let o=this.B(n);return o.version!==TEAM_CONFIG_SCHEMA_VERSION&&logger.warn(`Team configuration schema mismatch. Expected ${TEAM_CONFIG_SCHEMA_VERSION}, received ${o.version}`),this.f=o,this.k=e,this.D=this.y(o),logger.debug("Loaded team configuration",{profileCount:Object.keys(o.profiles||{}).length}),o}catch(t){if(t?.code==="ENOENT")return logger.debug("Team configuration file not found during load"),null;throw logger.error("Failed to load team configuration:",t),t}}async V(e){try{let t=await Promise.resolve().then(()=>C(S())),n=t?.default||t;if(n&&typeof n.detectConfigConflicts=="function")return n.detectConfigConflicts(this,e)}catch(t){logger.debug("Delegated conflict detection unavailable, falling back (no conflicts):",t?.message||t)}return[]}async saveTeamProfiles(e){let t=vscode.workspace.workspaceFolders?.[0]?.uri;if(!t)throw new Error("No workspace folders available for team profiles");let n=vscode.Uri.joinPath(t,this.d),o=Object.keys(e),i={version:TEAM_CONFIG_SCHEMA_VERSION,createdAt:new Date().toISOString(),defaultProfile:o[0]||null,profiles:e,metadata:{extensionVersion:this.z(),vscodeVersion:vscode.version}};try{await this.s.ensureDirectory(t)}catch(s){if(!this.N(s))throw s;logger.warn("Workspace directory is not writable; continuing with ephemeral storage",{code:s.code}),this.F(s)}try{return await this.G(n,i),this.f=i,this.k=n,this.D=this.y(i),logger.info("Saved team profiles",{profileCount:Object.keys(e).length}),n}catch(s){throw logger.error("Failed to save team profiles:",s),new Error(`Failed to save team profiles: ${s.message}`)}}async loadTeamProfiles(e=!1){try{let t=vscode.workspace.workspaceFolders?.[0]?.uri;if(!t)return{};let n=vscode.Uri.joinPath(t,this.d),o=await this.L(n);return o&&o.profiles?o.profiles:{}}catch(t){return logger.debug("loadTeamProfiles failed",t),{}}}async listTeamProfiles(){let e=await this.loadTeamProfiles(!0)||{};return Object.keys(e).map(t=>Object.assign({id:t},e[t]))}async hasTeamConfiguration(){try{let e=vscode.workspace.workspaceFolders?.[0]?.uri;if(!e)return!1;let t=vscode.Uri.joinPath(e,this.d),n=this.p(t);return this.a.has(n)?!0:await this.g(t)}catch(e){return logger.debug("hasTeamConfiguration check failed",e?.message||e),!1}}async createTeamProfile(e,t){let n=await this.loadTeamProfiles()||{};return n[e]=Object.assign({id:e},t,{metadata:{createdAt:new Date().toISOString()}}),await this.saveTeamProfiles(n),n[e]}async updateTeamProfile(e,t){let n=await this.loadTeamProfiles()||{};if(!n[e])throw new Error(`Profile not found: ${e}`);return n[e]=Object.assign({},n[e],t,{metadata:Object.assign({},n[e].metadata||{},{updatedAt:new Date().toISOString()})}),await this.saveTeamProfiles(n),n[e]}async deleteTeamProfile(e){let t=await this.loadTeamProfiles()||{};return t[e]?(delete t[e],await this.saveTeamProfiles(t),!0):!1}async resolveConflictsAutomatically(e=[],t="team-wins"){let n=0;for(let o of e||[]){let i=o.key||o.settingKey||o.setting||o.name,s=o.teamValue??o.value??o.settingValue;if(i)try{t==="team-wins"?(await this._(i,s),n++):t==="user-wins"&&n++}catch(a){logger.debug("resolveConflictsAutomatically failed for",i,a?.message||a)}}return{resolved:n}}async O(e){if(!e||e.length===0){vscode.window.showInformationMessage(l10n.getString("noOverridesToDocument"));return}let t=this.Z();if(!t){logger.warn("Cannot document overrides without a workspace.");return}let n=vscode.Uri.joinPath(t,".vscode"),o=vscode.Uri.joinPath(n,"explorer-dates-overrides.md");await this.s.ensureDirectory(n);let i="";await this.g(o)?(i=await this.s.readFile(o,"utf8"),i.includes(l10n.getString("overrideNotesHeader").trim())||(i=`${l10n.getString("overrideNotesHeader")}${i.trimStart()}`)):i=l10n.getString("overrideNotesHeader");let s=this.J(e);await this.s.writeFile(o,`${i}${s} +`,"utf8"),vscode.window.showInformationMessage(l10n.getString("documentedOverrides"))}async g(e){let t=this.p(e);if(this.a.has(t))return!0;try{return await this.s.stat(e),!0}catch{return!1}}z(){try{return vscode.extensions.getExtension("your.extension-id")?.packageJSON?.version||"unknown"}catch{return"unknown"}}y(e){if(!e?.profiles)return null;let{activeProfile:t,defaultProfile:n,profiles:o}=e;return t&&o[t]?t:n&&o[n]?n:Object.keys(o)[0]||null}te(e,t){if(e===t)return!0;if(typeof e=="object"&&typeof t=="object")try{return JSON.stringify(e)===JSON.stringify(t)}catch{return!1}return!1}w(e){if(e===void 0)return"undefined";if(e===null)return"null";if(typeof e=="object")try{return JSON.stringify(e)}catch{return"[object]"}return String(e)}re(e,t,n){return FEATURE_CHUNK_MAP[e]?typeof t=="boolean"?"high":"medium":typeof t=="boolean"&&typeof n=="boolean"?"medium":"low"}ne(e,t){let n=FEATURE_CHUNK_MAP[e];if(!n)return null;let o=CHUNK_LABELS[n]||n,i=CHUNK_SIZES[n]||0;return`${o} chunk will be ${t?"enabled":"disabled"}${i?` (${i}KB)`:""}`}async _(e,t){await this.H.updateSetting(e,t,{scope:"workspace",reason:"team-conflict-resolution"})}Z(){return vscode.workspace.workspaceFolders?.[0]?.uri??null}J(e){let t=[`## ${new Date().toISOString()}`,"","| Setting | Team Value | Your Value | Impact | Notes |","| --- | --- | --- | --- | --- |"];for(let n of e){let o=[];n.chunkEffect&&o.push(n.chunkEffect);let i=n.reason||n.overrideReason;i&&o.push(`Reason: ${i}`);let s=n.userChoice||n.choice;s&&o.push(`User choice: ${s}`);let a=o.length>0?o.join(" \u2022 "):"n/a";t.push(`| \`${n.key}\` | ${this.w(n.teamValue)} | ${this.w(n.userValue)} | ${n.impact} | ${a} |`)}t.push("");for(let n of e){t.push(`## Setting: ${n.key}`),t.push(`- Team value: ${this.w(n.teamValue)}`),t.push(`- Your value: ${this.w(n.userValue)}`),(n.userChoice||n.choice)&&t.push(`- User choice: ${n.userChoice||n.choice}`);let o=n.reason||n.overrideReason;o&&t.push(`- Reason: ${o}`),n.chunkEffect&&t.push(`- Chunk impact: ${n.chunkEffect}`),t.push("")}return t.push(""),t.join(` +`)}B(e){if(!e||typeof e!="object")throw new Error("Team configuration file is empty or invalid.");let{profiles:t}=e;if(!t||typeof t!="object"||Object.keys(t).length===0)throw new Error("Team configuration must include at least one profile.");let n={};for(let[o,i]of Object.entries(t)){if(!i||typeof i!="object")continue;let s=typeof i.settings=="object"?i.settings:{};n[o]={id:o,name:i.name||o,description:i.description||"",priority:i.priority||"normal",chunks:Array.isArray(i.chunks)?i.chunks:[],settings:s,metadata:i.metadata||{}}}if(Object.keys(n).length===0)throw new Error("Team configuration profiles are malformed.");return{version:e.version||TEAM_CONFIG_SCHEMA_VERSION,defaultProfile:e.defaultProfile||Object.keys(n)[0],activeProfile:e.activeProfile,profiles:n,metadata:e.metadata||{},createdAt:e.createdAt||null,updatedAt:e.updatedAt||null}}v(e){let t=S();return(t?.default||t).validateSettings(e)}W(e,t){let n=S();return(n?.default||n).validateSettingValue(e,t)}async exportTeamConfiguration(e="json",t={}){let n=await Promise.resolve().then(()=>C(S()));return(n?.default||n).exportTeamConfiguration(this,e,t)}async importTeamConfiguration(e,t="json",n={}){let o=await Promise.resolve().then(()=>C(S()));return(o?.default||o).importTeamConfiguration(this,e,t,n)}startTeamConfigWatcher(){this.n&&this.n.dispose();let e=vscode.workspace.workspaceFolders?.[0]?.uri;if(!e){logger.warn("Cannot start team config watcher without workspace");return}let t=new vscode.RelativePattern(e,this.d);this.n=vscode.workspace.createFileSystemWatcher(t),this.n.onDidCreate(async n=>{logger.info("Team configuration file created, revalidating"),await this.T(n,"created")}),this.n.onDidChange(async n=>{logger.info("Team configuration file changed, revalidating"),await this.T(n,"changed")}),this.n.onDidDelete(async n=>{logger.info("Team configuration file deleted"),await this.T(n,"deleted")}),logger.info("Started team configuration file watcher")}stopTeamConfigWatcher(){this.n&&(this.n.dispose(),this.n=null,logger.info("Stopped team configuration file watcher"))}async T(e,t){try{if(t==="deleted"){this.f=null,this.k=null,this.D=null,vscode.window.showInformationMessage(l10n.getString("teamConfigRemoved"),l10n.getString("understood"));return}this.c&&clearTimeout(this.c),this.c=setTimeout(async()=>{try{let n=await this.validateTeamConfiguration();n.hasTeamConfig&&n.conflicts.length>0?vscode.window.showInformationMessage(l10n.getString("teamConfigUpdatedWithConflicts",n.conflicts.length),l10n.getString("reviewConflictsLabel"),l10n.getString("ignoreLabel")).then(o=>{o===l10n.getString("reviewConflictsLabel")&&this.I(n.conflicts)}):n.hasTeamConfig&&vscode.window.showInformationMessage(l10n.getString("teamConfigUpdatedSuccess"),l10n.getString("understood"))}catch(n){logger.error("Failed to handle team config change",n),vscode.window.showErrorMessage(`Explorer Dates team configuration update failed: ${n.message}`)}},1e3)}catch(n){logger.error("Error handling team config change",n)}}P(e){return k().P(e)}A(e){return k().A(e)}R(e){return k().R(e)}K(e){if(!e||typeof e!="object")throw new Error("Imported data must be a valid object");if(!e.profiles||typeof e.profiles!="object")throw new Error("Imported data must contain a profiles object");let t=Object.keys(e.profiles).length;if(t===0)throw new Error("Imported data must contain at least one profile");for(let[n,o]of Object.entries(e.profiles)){if(!o||typeof o!="object")throw new Error(`Profile '${n}' is invalid`);if(!o.name||typeof o.name!="string")throw new Error(`Profile '${n}' must have a valid name`);if(o.settings)try{this.v(o.settings)}catch(i){throw new Error(`Profile '${n}' has invalid settings: ${i.message}`)}}logger.info("Validated imported team configuration",{profileCount:t})}dispose(){this.stopTeamConfigWatcher(),this.c&&(clearTimeout(this.c),this.c=null),this.a.clear(),logger.info("Team persistence manager disposed")}p(e){return e?typeof e=="string"?e:e.fsPath||e.path||String(e):""}N(e){return e?new Set(["EACCES","EPERM","EROFS","ENOSPC"]).has(e.code):!1}F(e){let t=e?.code||"generic";if(this.i.has(t))return;if(this.i.add(t),this.l&&this.l.i&&this.l.i!==this.i)try{this.l.i.add(t)}catch{}let n=e?.code,o;n==="ENOSPC"?o=l10n.getString("ephemeralStorageEnospc"):o=l10n.getString("ephemeralStorageGeneric"),vscode.window.showWarningMessage(`${o}${l10n.getString("ephemeralStorageSuffix")}`,l10n.getString("understood"))}async G(e,t){let n=JSON.stringify(t,null,2);try{await this.s.writeFile(e,n,"utf8"),this.a.delete(this.p(e)),this.Y()}catch(o){if(this.N(o)){let i=JSON.parse(n);this.a.set(this.p(e),i),logger.warn("Stored team configuration in ephemeral memory due to filesystem restriction",{code:o.code}),this.F(o);return}throw o.code==="ENOSPC"?vscode.window.showErrorMessage("Explorer Dates team configuration cannot be saved - disk is full. Free up some space and try again.","Understood"):(o.code==="EACCES"||o.code==="EPERM")&&vscode.window.showErrorMessage("Explorer Dates team configuration cannot be saved due to insufficient permissions. Contact your administrator to enable write access.","Understood"),o}}Y(){this.i.size!==0&&(this.i.clear(),logger.debug("Filesystem write succeeded after restriction; warning prompts reset"))}};module.exports={TeamConfigPersistenceManager}});var pe=g((exports,module)=>{var getLogger=()=>{try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let r=dynamicRequire("./chunks/logger-chunk");if(r&&typeof r.getLogger=="function")return getLogger=r.getLogger,getLogger()}}catch{}try{return getLogger=w().getLogger,getLogger()}catch{return getLogger=()=>({debug:(()=>{})?.bind(console)||console.log,info:(()=>{}).bind(console),warn:(()=>{}).bind(console),error:(()=>{}).bind(console)}),getLogger()}},logger=getLogger(),TeamConfigPersistenceManager=class{constructor(r){return this.C=r,this.e=null,this.b=null,new Proxy(this,{get:(e,t)=>t==="dispose"?e.dispose.bind(e):t==="_isLazyProxy"?!0:t in e?e[t]:async(...n)=>{let o=await e.X(),i=o[t];if(typeof i!="function")throw new Error(`TeamConfigPersistenceManager implementation missing method: ${String(t)}`);let s=Object.create(o);try{for(let a of Object.getOwnPropertyNames(e))s[a]=e[a]}catch{}return i.apply(s,n)},set:(e,t,n)=>{try{if(typeof t=="string"&&t.startsWith("_"),e[t]=n,e.e)try{e.e[t]=n,typeof t=="string"&&t.startsWith("_")}catch{}}catch{}return!0}})}async X(){return this.e?this.e:(this.b||(this.b=(async()=>{let mod=null;try{mod=await Promise.resolve().then(()=>C(ge())),mod=mod&&mod.default?mod.default:mod}catch(importErr){try{let dynamicRequire=typeof eval=="function"?eval("require"):require;mod=dynamicRequire("./teamConfigPersistence.impl.js")}catch(r){throw importErr.message=`Failed to load teamConfigPersistence.impl (import error: ${importErr.message}; require error: ${r.message})`,importErr}}this.e=new mod.TeamConfigPersistenceManager(this.C);try{Object.defineProperty(this.e,"__proxy",{value:this,configurable:!0,enumerable:!1,writable:!0})}catch{}try{for(let r of Object.getOwnPropertyNames(this.e))r in this||(this[r]=this.e[r])}catch(r){logger.debug("Failed to mirror impl properties to proxy target",r?.message||r)}return this.e})()),this.b)}j(){if(this.e)return this.e;try{let dynamicRequire=typeof eval=="function"?eval("require"):require,mod=dynamicRequire("./teamConfigPersistence.impl.js");this.e=new mod.TeamConfigPersistenceManager(this.C);try{Object.defineProperty(this.e,"__proxy",{value:this,configurable:!0,enumerable:!1,writable:!0})}catch{}try{for(let r of Object.getOwnPropertyNames(this.e))r in this||(this[r]=this.e[r])}catch(r){logger.debug("Failed to copy impl properties to proxy target (sync)",r?.message||r)}return this.e}catch(r){throw r}}v(r){return this.j().v(r)}W(r,e){return this.j().W(r,e)}dispose(){if(this.e&&typeof this.e.dispose=="function")try{this.e.dispose()}catch(r){logger.warn("Error disposing team persistence impl",r)}this.e=null,this.b=null}};module.exports={TeamConfigPersistenceManager}});var{TeamConfigPersistenceManager:ot}=pe();module.exports={createTeamPersistenceManager:r=>{let e=null;function t(){return e||(e=new ot(r),e)}return{async validateTeamConfiguration(){return t().validateTeamConfiguration()},async saveTeamProfiles(n){return t().saveTeamProfiles(n)},async loadTeamProfiles(n=!1){return t().loadTeamProfiles(n)},async hasTeamConfiguration(){return t().hasTeamConfiguration()},async createTeamProfile(n,o){return t().createTeamProfile(n,o)},async validateTeamConfigurationAndNotify(){return t().validateTeamConfiguration()},dispose(){if(e&&typeof e.dispose=="function")try{e.dispose()}catch{}e=null}}}}; diff --git a/dist/chunks/teamPersistence.js.map b/dist/chunks/teamPersistence.js.map index b091a74..04b1c25 100644 --- a/dist/chunks/teamPersistence.js.map +++ b/dist/chunks/teamPersistence.js.map @@ -1,6 +1,6 @@ { "version": 3, "sources": ["../../src/utils/logger.js", "../../src/utils/env.js", "../../src/utils/pathUtils.js", "../../src/utils/errors.js", "../../src/filesystem/environmentContract.js", "../../src/chunks/utils-shared-chunk.js", "../../src/utils/dateHelpers.js", "../../src/filesystem/FileSystemAdapter.js", "../../src/presetDefinitions.js", "../../src/constants.js", "../../src/utils/settingsCoordinator.js", "../../src/teamConfigPersistence.ui.js", "../../src/chunks/team-persistence-ui-chunk.js", "../../src/teamConfigPersistence.logic.js", "../../src/chunks/team-persistence-logic-chunk.js", "../../src/teamConfigPersistence.impl.js", "../../src/teamConfigPersistence.proxy.js", "../../src/chunks/team-persistence-chunk.js"], - "mappings": "u7BAAA,qDAAAA,SAAAC,QAAA,CACA,IAAM,kBAAoB,wBAEpB,aAAN,KAAmB,CAHnB,MAGmB,6BACf,aAAc,CACV,KAAK,MAAQ,IACjB,CAEA,MAAM,OAAQ,KAAM,CAChB,GAAI,KAAK,OAAS,OAAO,KAAK,MAAM,MAAM,GAAM,WAC5C,GAAI,CAAE,OAAO,KAAK,MAAM,MAAM,EAAE,GAAG,IAAI,CAAG,MAAQ,CAAe,CAErE,OAAQ,OAAQ,CACZ,IAAK,QAAa,OAAO,QAAQ,OAAU,WAAY,QAAQ,MAAM,GAAG,IAAI,EAAQ,QAAQ,IAAI,GAAG,IAAI,EAAG,MAC1G,IAAK,OAAQ,QAAQ,IAAI,GAAG,IAAI,EAAG,MACnC,IAAK,OAAQ,QAAQ,KAAK,GAAG,IAAI,EAAG,MACpC,IAAK,QAAS,QAAQ,MAAM,GAAG,IAAI,EAAG,MACtC,QAAS,QAAQ,IAAI,GAAG,IAAI,EAAG,KACnC,CACJ,CAEA,SAAS,KAAM,CAAE,OAAO,KAAK,MAAM,QAAS,IAAI,CAAG,CACnD,QAAQ,KAAM,CAAE,OAAO,KAAK,MAAM,OAAQ,IAAI,CAAG,CACjD,QAAQ,KAAM,CAAE,OAAO,KAAK,MAAM,OAAQ,IAAI,CAAG,CACjD,SAAS,KAAM,CAAE,OAAO,KAAK,MAAM,QAAS,IAAI,CAAG,CAGnD,SAAS,KAAM,CAAE,KAAK,MAAQ,IAAM,CACxC,EAEA,SAASC,YAAY,CACjB,OAAI,OAAO,OAAW,KACb,OAAO,iBAAiB,IAAG,OAAO,iBAAiB,EAAI,IAAI,cACzD,OAAO,iBAAiB,GAE/B,OAAO,WAAe,KACjB,WAAW,i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C,OADU,cAAc,EACf,kBAAkB,UAAW,WAAW,CACrD,EAEA,MAAM,oCAAqC,CAEvC,OADU,cAAc,EACf,0BAA0B,CACvC,EAEA,SAAU,CACN,GAAI,UAAY,OAAO,SAAS,SAAY,WACxC,GAAI,CAAE,SAAS,QAAQ,CAAG,MAAQ,CAA8B,CAEpE,SAAW,IACf,CACJ,CACJ,EA/C8B,+BAgDlC", "names": ["exports", "module", "getLogger", "exports", "module", "vscode", "normalizePath", "getSegments", "getFileName", "getExtension", "getDirectory", "joinPath", "getCacheKey", "getUriPath", "getRelativePath", "exports", "module", "options", "vscode", "exports", "module", "env", "options", "exports", "module", "getCurrentTimestamp", "isDateLike", "ensureDate", "normalizePath", "getSegments", "getFileName", "getExtension", "getDirectory", "joinPath", "getCacheKey", "getUriPath", "getRelativePath", "getCurrentTimestamp", "isDateLike", "ensureDate", "exports", "module", "vscode", "normalizePath", "ensureDate", "env", "options", "fileSystem", "chunk", "exports", "module", "env", "options", "chunk", "chunk", "exports", "module", "chunk", "FEATURE_CHUNK_MAP", "CHUNK_LABELS", "options", "exports", "module", "chunk", "options", "chunk", "TeamConfigPersistenceManager"] } diff --git a/dist/chunks/templates.js b/dist/chunks/templates.js index e9da819..5d92267 100644 --- a/dist/chunks/templates.js +++ b/dist/chunks/templates.js @@ -1,4 +1,4 @@ -var ue=Object.create;var O=Object.defineProperty;var pe=Object.getOwnPropertyDescriptor;var de=Object.getOwnPropertyNames;var he=Object.getPrototypeOf,fe=Object.prototype.hasOwnProperty;var f=(r,e)=>()=>(e||r((e={exports:{}}).exports,e),e.exports);var me=(r,e,t,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of de(e))!fe.call(r,n)&&n!==t&&O(r,n,{get:()=>e[n],enumerable:!(o=pe(e,n))||o.enumerable});return r};var R=(r,e,t)=>(t=r!=null?ue(he(r)):{},me(e||!r||!r.__esModule?O(t,"default",{value:r,enumerable:!0}):t,r));var _=f((tt,P)=>{var g="__explorerDatesLogger",y=class{constructor(){this.i=null}a(e,t){if(this.i&&typeof this.i[e]=="function")try{return this.i[e](...t)}catch{}switch(e){case"debug":break;case"info":break;case"warn":break;case"error":break;default:break}}debug(...e){return this.a("debug",e)}info(...e){return this.a("info",e)}warn(...e){return this.a("warn",e)}error(...e){return this.a("error",e)}D(e){this.i=e}};function ge(){return typeof global<"u"?(global[g]||(global[g]=new y),global[g]):typeof globalThis<"u"?(globalThis[g]||(globalThis[g]=new y),globalThis[g]):(S||(S=new y),S)}var x=class extends y{},S=null;P.exports={Logger:x,getLogger:ge}});var $=f((rt,I)=>{var W=require("vscode");function ye(){try{let r=W?.env?.uiKind,e=W?.UIKind?.Web;return r!==void 0&&e!==void 0&&r===e}catch{return!1}}I.exports={isWebEnvironment:ye}});var N=f((exports,module)=>{var chunk=null;try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){try{chunk=dynamicRequire("../chunks/utils-shared-chunk")}catch{}try{chunk||(chunk=dynamicRequire("./chunks/utils-shared-chunk"))}catch{}try{chunk||(chunk=dynamicRequire("../chunks/path-utils-chunk"))}catch{}try{chunk||(chunk=dynamicRequire("./chunks/path-utils-chunk"))}catch{}}}catch{}if(chunk&&chunk.normalizePath)module.exports={normalizePath:chunk.normalizePath,getFileName:chunk.getFileName,getExtension:chunk.getExtension,getDirectory:chunk.getDirectory,joinPath:chunk.joinPath,getCacheKey:chunk.getCacheKey,getUriPath:chunk.getUriPath,getRelativePath:chunk.getRelativePath};else{let r=function(a=""){return a?a.replace(/\\/g,"/"):""},e=function(a=""){let c=r(a);return c?c.split("/").filter(Boolean):[]},t=function(a=""){let c=e(a);return c.length?c[c.length-1]:""},o=function(a=""){let c=t(a),p=c.lastIndexOf(".");return p<=0?"":c.substring(p).toLowerCase()},n=function(a=""){let c=r(a),p=c.lastIndexOf("/");return p===-1?"":c.substring(0,p)},s=function(...a){return r(a.filter(Boolean).join("/")).replace(/\/+/g,"/")},i=function(a=""){return r(a).toLowerCase()},u=function(a=""){if(!a)return"";if(typeof a=="string")return a;if(typeof a.fsPath=="string"&&a.fsPath.length>0)return a.fsPath;if(typeof a.path=="string"&&a.path.length>0)return a.path;if(typeof a.toString=="function")try{return a.toString(!0)}catch{return a.toString()}return String(a)},h=function(a="",c=""){let p=r(a),D=r(c);return p&&D.startsWith(p)?D.substring(p.length).replace(/^\/+/,""):D};normalizePath=r,getSegments=e,getFileName=t,getExtension=o,getDirectory=n,joinPath=s,getCacheKey=i,getUriPath=u,getRelativePath=h,module.exports={normalizePath:r,getFileName:t,getExtension:o,getDirectory:n,joinPath:s,getCacheKey:i,getUriPath:u,getRelativePath:h}}var normalizePath,getSegments,getFileName,getExtension,getDirectory,joinPath,getCacheKey,getUriPath,getRelativePath});var U=f((ot,K)=>{var v=class extends Error{constructor(e,t,o={}){super(t),this.code=e,this.context=o,this.name="ExtensionError"}},q={FILE_PERMISSION_DENIED:"FILE_PERMISSION_DENIED",WORKSPACE_TOO_LARGE:"WORKSPACE_TOO_LARGE",CHUNK_LOAD_FAILED:"CHUNK_LOAD_FAILED"};function we(r){if(!r)return!1;let e=r.code||r?.name;return["EACCES","EPERM","EROFS","NoPermissions"].includes(e)}var A=class extends v{constructor(e,t,o={}){let{recoverable:n=!0,context:s={}}=o;super(q.CHUNK_LOAD_FAILED,`Failed to load ${e}: ${t}`,{chunkName:e,recoverable:n,...s}),this.name="ChunkLoadError",this.chunkName=e,this.recoverable=n}};function be(r,e,t={}){let o=require("vscode"),{userFacing:n=!0}=t,s=e?.recoverable??!0;n&&!s&&o.window.showErrorMessage(`Explorer Dates: ${r} feature unavailable. Please reinstall or rebuild the extension.`)}K.exports={ExtensionError:v,ERROR_CODES:q,isPermissionError:we,ChunkLoadError:A,handleChunkFailure:be}});var V=f((nt,j)=>{var z="EXPLORER_DATES_FORCE_VSCODE_FS";function B(r,e=process.env){return String(e?.[r]||"")==="1"}function T(r){let e=r&&typeof r=="object"?r:null,t=String(e?.scheme||(typeof r=="string"&&/^[a-z][a-z0-9+.-]*:/i.test(r)?r.split(":",1)[0]:"file")).toLowerCase(),o=String(e?.authority||""),n=e?.path||e?.fsPath||(typeof r=="string"?r.replace(/^[a-z][a-z0-9+.-]*:\/\//i,""):"");return{scheme:t,authority:o,path:String(n||"")}}function Ee({uri:r,isWeb:e=!1,remoteName:t="",forceWorkspaceFs:o=B(z)}={}){let n=T(r),s=n.scheme!=="file",i=!!e,u=!!t,h=!!(o||i||u||s);return{scheme:n.scheme,authority:n.authority,isFileScheme:!s,isVirtual:s,isBrowser:i,isRemote:u,forceWorkspaceFs:!!o,filesystem:h?"workspace.fs":"node.fs",provider:s?n.scheme==="github"||n.scheme==="vscode-vfs"?"github":"virtual":"filesystem"}}function H({uri:r,platform:e=process.platform,caseSensitive:t}={}){return typeof t=="boolean"?t:T(r).scheme!=="file"?!0:e!=="win32"}function De(r,e={}){let t=T(r),o=t.path.replace(/\\/g,"/").replace(/\/+/g,"/"),n=`${t.scheme}://${t.authority}${o}`;return H({uri:r,...e})?n:n.toLowerCase()}function L(r){if(r instanceof Date){let e=r.getTime();return Number.isFinite(e)?e:null}if(typeof r=="number")return Number.isFinite(r)?r:null;if(typeof r=="string"&&r.trim()){let e=Date.parse(r);return Number.isFinite(e)?e:null}return null}function ve(r){if(!r||typeof r!="object")return null;let e=L(r.mtime),t=L(r.ctime);return{...r,mtimeMs:e,ctimeMs:t}}j.exports={FORCE_WORKSPACE_FS_ENV:z,envFlag:B,getUriParts:T,getEnvironmentContract:Ee,isCaseSensitive:H,resourceIdentity:De,normalizeTimestamp:L,normalizeStat:ve}});var J=f((st,Y)=>{function Te(){return typeof Date=="function"&&Date.now?Date.now():16409952e5}function G(r){return!!(r&&typeof r=="object"&&typeof r.getTime=="function")}function ke(r){if(G(r))return r;if(typeof r=="number")return new Date(r);if(typeof r=="string"){let e=Date.parse(r);return isNaN(e)?new Date:new Date(e)}return new Date}function m(r=""){return r?r.replace(/\\/g,"/"):""}function Ce(r=""){let e=m(r);return e?e.split("/").filter(Boolean):[]}function X(r=""){let e=Ce(r);return e.length?e[e.length-1]:""}function Se(r=""){let e=X(r),t=e.lastIndexOf(".");return t<=0?"":e.substring(t).toLowerCase()}function xe(r=""){let e=m(r),t=e.lastIndexOf("/");return t===-1?"":e.substring(0,t)}function _e(...r){return m(r.filter(Boolean).join("/")).replace(/\/+/g,"/")}function Ae(r=""){return m(r).toLowerCase()}function Le(r=""){if(!r)return"";if(typeof r=="string")return r;if(typeof r.fsPath=="string"&&r.fsPath.length>0)return r.fsPath;if(typeof r.path=="string"&&r.path.length>0)return r.path;if(typeof r.toString=="function")try{return r.toString(!0)}catch{return r.toString()}return String(r)}function Fe(r="",e=""){let t=m(r),o=m(e);return t&&o.startsWith(t)?o.substring(t.length).replace(/^\/+/,""):o}Y.exports={ensureDate:ke,isDateLike:G,getCurrentTimestamp:Te,normalizePath:m,getFileName:X,getExtension:Se,getDirectory:xe,joinPath:_e,getCacheKey:Ae,getUriPath:Le,getRelativePath:Fe}});var Z=f((exports,module)=>{var chunk=null;try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){try{chunk=dynamicRequire("../chunks/utils-shared-chunk")}catch{}try{chunk||(chunk=dynamicRequire("./chunks/utils-shared-chunk"))}catch{}try{chunk||(chunk=dynamicRequire("../chunks/date-helpers-chunk"))}catch{}try{chunk||(chunk=dynamicRequire("./chunks/date-helpers-chunk"))}catch{}}}catch{}if(chunk&&(chunk.ensureDate||chunk.isDateLike||chunk.getCurrentTimestamp))module.exports={ensureDate:chunk.ensureDate,isDateLike:chunk.isDateLike,getCurrentTimestamp:chunk.getCurrentTimestamp};else{let r=function(){return typeof Date=="function"&&Date.now?Date.now():16409952e5},e=function(o){return!!(o&&typeof o=="object"&&typeof o.getTime=="function")},t=function(o){if(e(o))return o;if(typeof o=="number")return new Date(o);if(typeof o=="string"){let n=Date.parse(o);return isNaN(n)?new Date:new Date(n)}return new Date};getCurrentTimestamp=r,isDateLike=e,ensureDate=t,module.exports={ensureDate:t,isDateLike:e,getCurrentTimestamp:r}}var getCurrentTimestamp,isDateLike,ensureDate});var oe=f((it,re)=>{var l=require("vscode"),{isWebEnvironment:Q}=$(),{normalizePath:Me}=N(),{ExtensionError:Oe,ERROR_CODES:Re,isPermissionError:Pe}=U(),{getEnvironmentContract:We,normalizeStat:Ie,FORCE_WORKSPACE_FS_ENV:$e}=V(),w;try{let r=J();r&&(w=r.ensureDate)}catch{}w||(w=Z().ensureDate);var ee=typeof process<"u"&&process.env?process.env:{},te=ee.VSCODE_WEB==="true"||Q(),d=null;if(!te)try{d=require("fs").promises}catch{d=null}var k=class{constructor(){this.isWeb=te||Q()}r(e){try{return We({uri:this.e(e),isWeb:this.isWeb,remoteName:l.env?.remoteName,forceWorkspaceFs:ee[$e]==="1"}).filesystem==="workspace.fs"}catch{return!1}}t(e){if(!e)return"";if(typeof e=="string")return e;if(e&&typeof e=="object"&&typeof e.fsPath=="string")return e.fsPath;if(e&&typeof e=="object"&&typeof e.path=="string")return e.path;if(typeof e=="object"){if(typeof e.fsPath=="string")return e.fsPath;if(typeof e.path=="string")return e.path}return String(e)}e(e){if(e&&typeof e=="object"&&typeof e.scheme=="string"&&typeof e.path=="string")return e;if(typeof e=="string"){let t=e.trim(),o=/^[a-zA-Z]:[\\/]/.test(t);if(/^[a-zA-Z][a-zA-Z0-9+.-]*:/.test(t)&&!o){let s=l.Uri.parse(t);if(s.scheme&&s.scheme!=="file")return s}return l.Uri.file(e)}if(e&&typeof e=="object"){if(e.uri&&e.uri!==e)try{return this.e(e.uri)}catch{}if(this.isWeb&&typeof e.scheme=="string"&&typeof e.path=="string")return l.Uri.from({scheme:e.scheme,authority:e.authority||"",path:e.path||"",query:e.query||"",fragment:e.fragment||""});if(typeof e.fsPath=="string"&&e.fsPath.length>0)return l.Uri.file(e.fsPath);if(typeof e.path=="string"&&e.path.length>0)return this.isWeb&&typeof e.scheme=="string"&&e.scheme!=="file"?l.Uri.from({scheme:e.scheme,authority:e.authority||"",path:e.path,query:e.query||"",fragment:e.fragment||""}):l.Uri.file(e.path);if(typeof e.href=="string"&&e.href.length>0)return l.Uri.parse(e.href);if(typeof e.scheme=="string")return l.Uri.from({scheme:e.scheme,authority:e.authority||"",path:e.path||e.fsPath||"",query:e.query||"",fragment:e.fragment||""});if(typeof e.toString=="function")try{let t=e.toString(!0);if(t&&t!=="[object Object]")return l.Uri.parse(t)}catch{let t=e.toString();if(t&&t!=="[object Object]")return l.Uri.parse(t)}}throw new Error(`Unsupported target type: ${typeof e}`)}async stat(e){let t=this.r(e);if(!this.isWeb&&d&&!t)return d.stat(this.t(e));let o=this.e(e),n=await l.workspace.fs.stat(o),s=Ie(n);return{...s,mtime:s.mtimeMs===null?w(n.mtime):new Date(s.mtimeMs),ctime:s.ctimeMs===null?w(n.ctime):new Date(s.ctimeMs),birthtime:s.ctimeMs===null?w(n.ctime):new Date(s.ctimeMs),isFile:()=>n.type===l.FileType.File,isDirectory:()=>n.type===l.FileType.Directory}}async readFile(e,t="utf8"){let o=this.r(e);if(!this.isWeb&&d&&!o)return d.readFile(this.t(e),t);let n=this.e(e),s=await l.workspace.fs.readFile(n);return t===null||t==="binary"?s:new TextDecoder(t).decode(s)}async writeFile(e,t,o="utf8"){let n=this.t(e);try{let s=this.r(e);if(!this.isWeb&&d&&!s)return d.writeFile(n,t,o);let i=this.e(e),u=typeof t=="string"?new TextEncoder().encode(t):t;await l.workspace.fs.writeFile(i,u)}catch(s){this.d("write file",n,s)}}async mkdir(e,t={recursive:!0}){let o=this.t(e);try{let n=this.r(e);if(!this.isWeb&&d&&!n)return d.mkdir(o,t);let s=this.e(e);await l.workspace.fs.createDirectory(s)}catch(n){this.d("create directory",o,n)}}async readdir(e,t={withFileTypes:!1}){let o=this.r(e);if(!this.isWeb&&d&&!o)return d.readdir(this.t(e),t);let n=this.e(e),s=await l.workspace.fs.readDirectory(n);return t.withFileTypes?s.map(([i,u])=>({name:i,isDirectory:()=>u===l.FileType.Directory,isFile:()=>u===l.FileType.File})):s.map(([i])=>i)}async delete(e,t={recursive:!1}){let o=this.r(e);if(!this.isWeb&&d&&!o){let s=this.t(e);return t.recursive?d.rm?d.rm(s,t):d.rmdir(s,t):d.unlink(s)}let n=this.e(e);await l.workspace.fs.delete(n,t)}async exists(e){try{return await this.stat(e),!0}catch{return!1}}async ensureDirectory(e){let t=Me(this.t(e));await this.mkdir(t,{recursive:!0})}d(e,t,o){throw Pe(o)?new Oe(Re.FILE_PERMISSION_DENIED,`Permission denied while attempting to ${e}`,{path:t,code:o.code}):o}},Ne=new k;re.exports={FileSystemAdapter:k,fileSystem:Ne}});var F=f((at,se)=>{var b=typeof process<"u"&&process.env?process.env:{},qe=12e4,Ke=1e4,Ue=1440*60*1e3,ze=2,Be=["Ja","Fe","Mr","Ap","My","Jn","Jl","Au","Se","Oc","No","De"],He=Number(b.EXPLORER_DATES_DECORATION_POOL_SIZE||2048),je=Number(b.EXPLORER_DATES_FLYWEIGHT_CACHE_SIZE||4096),Ve=Number(b.EXPLORER_DATES_WORKSPACE_BALANCED_THRESHOLD||15e3),Ge=Number(b.EXPLORER_DATES_WORKSPACE_LARGE_THRESHOLD||25e4),ne=Number(b.EXPLORER_DATES_WORKSPACE_EXTREME_THRESHOLD||4e5),Xe=Number(b.EXPLORER_DATES_WORKSPACE_SCAN_MAX_RESULTS||Math.min(ne+1,50001)),Ye={ADVANCED_CACHE:"explorerDates.advancedCache",ADVANCED_CACHE_METADATA:"explorerDates.advancedCacheMetadata",TEMPLATE_STORE:"explorerDates.templates",WEB_GIT_NOTICE:"explorerDates.webGitNotice"},Je="explorerDatesChunks",Ze="__explorerDatesChunks";se.exports={DEFAULT_CACHE_TIMEOUT:qe,DEFAULT_MAX_CACHE_SIZE:Ke,DEFAULT_PERSISTENT_CACHE_TTL:Ue,DEFAULT_DECORATION_POOL_SIZE:He,DEFAULT_FLYWEIGHT_CACHE_SIZE:je,MAX_BADGE_LENGTH:ze,MONTH_ABBREVIATIONS:Be,WORKSPACE_SCALE_BALANCED_THRESHOLD:Ve,WORKSPACE_SCALE_LARGE_THRESHOLD:Ge,WORKSPACE_SCALE_EXTREME_THRESHOLD:ne,WORKSPACE_SCAN_MAX_RESULTS:Xe,GLOBAL_STATE_KEYS:Ye,WEB_CHUNK_GLOBAL_KEY:Je,LEGACY_WEB_CHUNK_GLOBAL_KEY:Ze}});var ie=f((exports,module)=>{var{getLogger}=_(),env=typeof process<"u"&&process.env?process.env:{};function createFallbackVscodeMinimal(){return{workspace:{workspaceFolders:[],getConfiguration:()=>({get:()=>{},async update(){},inspect:()=>({defaultValue:void 0,globalValue:void 0,workspaceValue:void 0,workspaceFolderValue:void 0})})},ConfigurationTarget:{Global:1,Workspace:2,WorkspaceFolder:3}}}function resolveVscodeMinimal(){try{return require("vscode")}catch{return createFallbackVscodeMinimal()}}var MinimalSettingsCoordinator=class{constructor(e={}){this.g=e.defaultSection||"explorerDates",this.c=new Map,this.h=new Map,this.v=Number(env.EXPLORER_DATES_LOCK_WAIT_WARN_MS||1e3),this._logger=getLogger()}y(e,t){let n=(this.c.get(e)||Promise.resolve()).then(()=>t()),s=n.catch(()=>{});return this.c.set(e,s),n.finally(()=>{this.c.get(e)===s&&this.c.delete(e)}),n}u(e,t){return resolveVscodeMinimal().workspace.getConfiguration(e||void 0,t)}o(e,t){let o=t||this.g;return o?e.startsWith(`${o}.`)?{section:o,key:e.slice(o.length+1),fullKey:e}:e.includes(".")?{section:void 0,key:e,fullKey:e}:{section:o,key:e,fullKey:`${o}.${e}`}:{section:void 0,key:e,fullKey:e}}async updateSetting(e,t,o={}){return this.y(this.o(e,o.section).fullKey,async()=>{let n=this.o(e,o.section),s=this.u(n.section,o.resource);try{let i=this.w(o.scope,o.resource);return await s.update(n.key,t,i),{key:n.fullKey,updated:!0}}catch(i){try{this._logger.warn(`Configuration update failed for ${n.fullKey}: ${i&&i.message}`)}catch{}return{key:n.fullKey,updated:!1,error:i}}})}async applySettings(e,t={}){let o=Array.isArray(e)?e:Object.entries(e).map(([i,u])=>({key:i,value:u})),n=[];for(let i of o)try{n.push(await this.updateSetting(i.key,i.value,t))}catch(u){n.push({key:this.o(i.key,t.section).fullKey,updated:!1,error:u})}let s=n.filter(i=>i&&i.error);if(s.length>0){let i=s.map(h=>`${h.key}: ${h.error&&h.error.message?h.error.message:String(h.error)}`),u=new Error(`Failed to apply ${s.length} setting(s): ${i.join("; ")}`);throw u.details=s,u}return n}w(e,t){return e&&e!=="auto"?this.b(e)||resolveVscodeMinimal().ConfigurationTarget.Workspace:t?resolveVscodeMinimal().ConfigurationTarget.WorkspaceFolder:resolveVscodeMinimal().workspace.workspaceFolders&&resolveVscodeMinimal().workspace.workspaceFolders.length>0?resolveVscodeMinimal().ConfigurationTarget.Workspace:resolveVscodeMinimal().ConfigurationTarget.Global}b(e){switch(e){case"user":return resolveVscodeMinimal().ConfigurationTarget.Global;case"workspace":return resolveVscodeMinimal().ConfigurationTarget.Workspace;case"workspaceFolder":return resolveVscodeMinimal().ConfigurationTarget.WorkspaceFolder;default:return}}getValue(e,t={}){let{section:o,resource:n}=t||{},s=this.o(e,o);return this.u(s.section,n).get(s.key)}inspect(e,t={}){let{section:o,resource:n}=t||{},s=this.o(e,o);return this.u(s.section,n).inspect(s.key)}async clearSetting(e,t={}){return this.updateSetting(e,void 0,t)}getLockWaitStats(){let e={};for(let[t,o]of this.h.entries())e[t]={...o};return e}resetLockWaitStats(){this.h.clear()}},cachedCoordinator=null;function getSettingsCoordinator(options){if(!cachedCoordinator||options&&options.forceNew){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let r=null;try{r=dynamicRequire("../chunks/settings-coordinator-impl-chunk")}catch{}try{r||(r=dynamicRequire("../chunks/settingsCoordinator-impl-chunk"))}catch{}if(r&&typeof r.createSettingsCoordinatorImpl=="function")return cachedCoordinator=r.createSettingsCoordinatorImpl(options),cachedCoordinator}}catch{}try{let{WEB_CHUNK_GLOBAL_KEY:r,LEGACY_WEB_CHUNK_GLOBAL_KEY:e}=F(),t=typeof globalThis<"u"&&(globalThis[r]||globalThis[e])||null;if(t&&t.settingsCoordinatorImpl&&typeof t.settingsCoordinatorImpl.createSettingsCoordinatorImpl=="function")return cachedCoordinator=t.settingsCoordinatorImpl.createSettingsCoordinatorImpl(options),cachedCoordinator}catch{}cachedCoordinator=new MinimalSettingsCoordinator(options)}return cachedCoordinator}module.exports={getSettingsCoordinator,MinimalSettingsCoordinator}});var M=f((exports,module)=>{var vscode=require("vscode"),getLogger=()=>{try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let r=dynamicRequire("./chunks/logger-chunk");if(r&&typeof r.getLogger=="function")return getLogger=r.getLogger,getLogger()}}catch{}try{return getLogger=_().getLogger,getLogger()}catch{return getLogger=()=>({debug:(()=>{})?.bind(console)||console.log,info:(()=>{}).bind(console),warn:(()=>{}).bind(console),error:(()=>{}).bind(console)}),getLogger()}},{fileSystem}=oe(),{GLOBAL_STATE_KEYS}=F(),{getSettingsCoordinator}=ie(),logger=getLogger(),WorkspaceTemplatesManager=class{constructor(e){this.T=e,this.l=e?.globalState||null,this.f=GLOBAL_STATE_KEYS.TEMPLATE_STORE,this.n=fileSystem,this.E=getSettingsCoordinator(),this.templatesPath=null,this.builtInTemplates=this.getBuiltInTemplates(),logger.info("Workspace Templates Manager initialized")}s(){return this.l?this.l.get(this.f,{}):{}}async p(e){if(!this.l)throw new Error("Template storage unavailable");await this.l.update(this.f,e)}m(e){return this.builtInTemplates[e]?this.builtInTemplates[e]:this.s()[e]}getBuiltInTemplates(){return{"web-development":{name:"Web Development",description:"Optimized for web projects with focus on source files",settings:{"explorerDates.showDateDecorations":!0,"explorerDates.dateDecorationFormat":"relative-short","explorerDates.colorScheme":"file-type","explorerDates.showFileSize":!0,"explorerDates.fadeOldFiles":!0,"explorerDates.fadeThreshold":14,"explorerDates.excludedPatterns":["**/node_modules/**","**/dist/**","**/build/**","**/.next/**","**/coverage/**"],"explorerDates.enableContextMenu":!0,"explorerDates.showGitInfo":"author"}},"data-science":{name:"Data Science",description:"Focused on notebooks and data files with detailed timestamps",settings:{"explorerDates.showDateDecorations":!0,"explorerDates.dateDecorationFormat":"absolute-long","explorerDates.colorScheme":"none","explorerDates.showFileSize":!0,"explorerDates.showGitInfo":"none","explorerDates.highContrastMode":!1,"explorerDates.excludedPatterns":["**/__pycache__/**","**/.ipynb_checkpoints/**","**/data/raw/**"],"explorerDates.badgePriority":"size"}},documentation:{name:"Documentation",description:"Clean display for documentation projects",settings:{"explorerDates.showDateDecorations":!0,"explorerDates.dateDecorationFormat":"smart","explorerDates.colorScheme":"subtle","explorerDates.showFileSize":!1,"explorerDates.excludedPatterns":["**/node_modules/**","**/.git/**"],"explorerDates.fadeOldFiles":!1,"explorerDates.enableContextMenu":!1}},enterprise:{name:"Enterprise",description:"Full feature set with Git integration and analytics",settings:{"explorerDates.showDateDecorations":!0,"explorerDates.dateDecorationFormat":"smart","explorerDates.colorScheme":"recency","explorerDates.showFileSize":!0,"explorerDates.showGitInfo":"author","explorerDates.enableContextMenu":!0,"explorerDates.showStatusBar":!0,"explorerDates.smartExclusions":!0,"explorerDates.progressiveLoading":!0,"explorerDates.persistentCache":!0,"explorerDates.enableExportReporting":!0}},minimal:{name:"Minimal",description:"Clean, distraction-free setup",settings:{"explorerDates.showDateDecorations":!0,"explorerDates.dateDecorationFormat":"relative-short","explorerDates.colorScheme":"none","explorerDates.showFileSize":!1,"explorerDates.badgePriority":"time","explorerDates.enableContextMenu":!1,"explorerDates.progressiveLoading":!1}}}}async saveCurrentConfiguration(e,t=""){try{let o=vscode.workspace.getConfiguration("explorerDates"),n={},s=o.inspect();if(s)for(let[c,p]of Object.entries(s))p&&typeof p=="object"&&"workspaceValue"in p?n[`explorerDates.${c}`]=p.workspaceValue:p&&typeof p=="object"&&"globalValue"in p&&(n[`explorerDates.${c}`]=p.globalValue);let i={name:e,description:t,createdAt:new Date().toISOString(),version:"1.0.0",settings:n},u=e.toLowerCase().replace(/[^a-z0-9-]/g,"-"),h=this.s();h[u]=i,await this.p(h);let a=o.get("templateSyncPath","");if(a&&!this.n.isWeb)try{let c=`${a.replace(/[/\\]?$/,"")}/${u}.json`;await this.n.writeFile(c,JSON.stringify(i,null,2)),logger.info(`Synced template to ${c}`)}catch(c){logger.warn("Failed to sync template to disk path",c)}return vscode.window.showInformationMessage(`Template "${e}" saved successfully!`),logger.info(`Saved workspace template: ${e}`),!0}catch(o){return logger.error("Failed to save template:",o),vscode.window.showErrorMessage(`Failed to save template: ${o.message}`),!1}}async loadTemplate(e){try{let t=this.m(e);if(!t)throw new Error(`Template "${e}" not found`);let n=(await this.E.applySettings(t.settings,{scope:"workspace",reason:`apply-template:${e}`})).filter(i=>i.updated).length,s=n>0?`Template "${t.name}" applied with ${n} setting${n===1?"":"s"} updated.`:`Template "${t.name}" already matched your workspace.`;return vscode.window.showInformationMessage(s),logger.info(`Applied workspace template: ${t.name}`,{changedCount:n}),!0}catch(t){return logger.error("Failed to load template:",t),vscode.window.showErrorMessage(`Failed to load template: ${t.message}`),!1}}async getAvailableTemplates(){let e=[];for(let[t,o]of Object.entries(this.builtInTemplates))e.push({id:t,name:o.name,description:o.description,type:"built-in",createdAt:null});try{let t=this.s();for(let[o,n]of Object.entries(t))e.push({id:o,name:n.name,description:n.description,type:"custom",createdAt:n.createdAt})}catch(t){logger.error("Failed to load custom templates:",t)}return e}async deleteTemplate(e){try{if(this.builtInTemplates[e])return vscode.window.showErrorMessage("Cannot delete built-in templates"),!1;let t=this.s();if(!t[e])throw new Error(`Template "${e}" not found`);return delete t[e],await this.p(t),vscode.window.showInformationMessage(`Template "${e}" deleted successfully!`),logger.info(`Deleted workspace template: ${e}`),!0}catch(t){return logger.error("Failed to delete template:",t),vscode.window.showErrorMessage(`Failed to delete template: ${t.message}`),!1}}async exportTemplate(e,t){try{let o=this.m(e);if(!o)throw new Error(`Template "${e}" not found`);let n=JSON.stringify(o,null,2);if(this.n.isWeb){let i=encodeURIComponent(n);return await vscode.env.openExternal(vscode.Uri.parse(`data:application/json;charset=utf-8,${i}`)),vscode.window.showInformationMessage("Template download triggered in browser"),!0}let s=t instanceof vscode.Uri?t.fsPath:t;return await this.n.writeFile(s,n),vscode.window.showInformationMessage(`Template exported to ${s}`),logger.info(`Exported template ${e} to ${s}`),!0}catch(o){return logger.error("Failed to export template:",o),vscode.window.showErrorMessage(`Failed to export template: ${o.message}`),!1}}async importTemplate(e){try{let t=e instanceof vscode.Uri?e:vscode.Uri.file(e),o=await this.n.readFile(t,"utf8"),n=JSON.parse(o);if(!n.name||!n.settings)throw new Error("Invalid template format");let s=n.name.toLowerCase().replace(/[^a-z0-9-]/g,"-"),i=this.s();return i[s]=n,await this.p(i),vscode.window.showInformationMessage(`Template "${n.name}" imported successfully!`),logger.info(`Imported template: ${n.name}`),!0}catch(t){return logger.error("Failed to import template:",t),vscode.window.showErrorMessage(`Failed to import template: ${t.message}`),!1}}async showTemplateManager(){try{let e=await this.getAvailableTemplates(),t=vscode.window.createWebviewPanel("templateManager","Explorer Dates - Template Manager",vscode.ViewColumn.One,{enableScripts:!0,retainContextWhenHidden:!0});t.webview.html=this.getTemplateManagerHtml(e),t.webview.onDidReceiveMessage(async o=>{switch(o.command){case"loadTemplate":await this.loadTemplate(o.templateId);break;case"deleteTemplate":{await this.deleteTemplate(o.templateId);let n=await this.getAvailableTemplates();t.webview.postMessage({command:"refreshTemplates",templates:n});break}case"exportTemplate":{let n=await vscode.window.showSaveDialog({defaultUri:vscode.Uri.file(`${o.templateId}.json`),filters:{JSON:["json"]}});n&&await this.exportTemplate(o.templateId,n);break}case"saveConfig":{await this.saveCurrentConfiguration(o.name,o.description);let n=await this.getAvailableTemplates();t.webview.postMessage({command:"refreshTemplates",templates:n});break}case"importTemplate":{let n=await vscode.window.showOpenDialog({canSelectMany:!1,filters:{JSON:["json"]}});if(n&&n[0]){await this.importTemplate(n[0]);let s=await this.getAvailableTemplates();t.webview.postMessage({command:"refreshTemplates",templates:s})}break}}}),logger.info("Template Manager opened")}catch(e){logger.error("Failed to show template manager:",e),vscode.window.showErrorMessage("Failed to open Template Manager")}}getTemplateManagerHtml(e){return` +var ue=Object.create;var O=Object.defineProperty;var pe=Object.getOwnPropertyDescriptor;var de=Object.getOwnPropertyNames;var he=Object.getPrototypeOf,fe=Object.prototype.hasOwnProperty;var f=(r,e)=>()=>(e||r((e={exports:{}}).exports,e),e.exports);var me=(r,e,t,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of de(e))!fe.call(r,n)&&n!==t&&O(r,n,{get:()=>e[n],enumerable:!(o=pe(e,n))||o.enumerable});return r};var R=(r,e,t)=>(t=r!=null?ue(he(r)):{},me(e||!r||!r.__esModule?O(t,"default",{value:r,enumerable:!0}):t,r));var _=f((tt,P)=>{var g="__explorerDatesLogger",y=class{constructor(){this.i=null}a(e,t){if(this.i&&typeof this.i[e]=="function")try{return this.i[e](...t)}catch{}switch(e){case"debug":break;case"info":break;case"warn":break;case"error":break;default:break}}debug(...e){return this.a("debug",e)}info(...e){return this.a("info",e)}warn(...e){return this.a("warn",e)}error(...e){return this.a("error",e)}D(e){this.i=e}};function ge(){return typeof global<"u"?(global[g]||(global[g]=new y),global[g]):typeof globalThis<"u"?(globalThis[g]||(globalThis[g]=new y),globalThis[g]):(S||(S=new y),S)}var x=class extends y{},S=null;P.exports={Logger:x,getLogger:ge}});var $=f((rt,I)=>{var W=require("vscode");function ye(){try{let r=W?.env?.uiKind,e=W?.UIKind?.Web;return r!==void 0&&e!==void 0&&r===e}catch{return!1}}I.exports={isWebEnvironment:ye}});var N=f((exports,module)=>{var chunk=null;try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){try{chunk=dynamicRequire("../chunks/utils-shared-chunk")}catch{}try{chunk||(chunk=dynamicRequire("./chunks/utils-shared-chunk"))}catch{}try{chunk||(chunk=dynamicRequire("../chunks/path-utils-chunk"))}catch{}try{chunk||(chunk=dynamicRequire("./chunks/path-utils-chunk"))}catch{}}}catch{}if(chunk&&chunk.normalizePath)module.exports={normalizePath:chunk.normalizePath,getFileName:chunk.getFileName,getExtension:chunk.getExtension,getDirectory:chunk.getDirectory,joinPath:chunk.joinPath,getCacheKey:chunk.getCacheKey,getUriPath:chunk.getUriPath,getRelativePath:chunk.getRelativePath};else{let r=function(a=""){return a?a.replace(/\\/g,"/"):""},e=function(a=""){let l=r(a);return l?l.split("/").filter(Boolean):[]},t=function(a=""){let l=e(a);return l.length?l[l.length-1]:""},o=function(a=""){let l=t(a),d=l.lastIndexOf(".");return d<=0?"":l.substring(d).toLowerCase()},n=function(a=""){let l=r(a),d=l.lastIndexOf("/");return d===-1?"":l.substring(0,d)},s=function(...a){return r(a.filter(Boolean).join("/")).replace(/\/+/g,"/")},i=function(a=""){return r(a).toLowerCase()},u=function(a=""){if(!a)return"";if(typeof a=="string")return a;if(typeof a.fsPath=="string"&&a.fsPath.length>0)return a.fsPath;if(typeof a.path=="string"&&a.path.length>0)return a.path;if(typeof a.toString=="function")try{return a.toString(!0)}catch{return a.toString()}return String(a)},h=function(a="",l=""){let d=r(a),D=r(l);return d&&D.startsWith(d)?D.substring(d.length).replace(/^\/+/,""):D};normalizePath=r,getSegments=e,getFileName=t,getExtension=o,getDirectory=n,joinPath=s,getCacheKey=i,getUriPath=u,getRelativePath=h,module.exports={normalizePath:r,getFileName:t,getExtension:o,getDirectory:n,joinPath:s,getCacheKey:i,getUriPath:u,getRelativePath:h}}var normalizePath,getSegments,getFileName,getExtension,getDirectory,joinPath,getCacheKey,getUriPath,getRelativePath});var U=f((ot,K)=>{var v=class extends Error{constructor(e,t,o={}){super(t),this.code=e,this.context=o,this.name="ExtensionError"}},q={FILE_PERMISSION_DENIED:"FILE_PERMISSION_DENIED",WORKSPACE_TOO_LARGE:"WORKSPACE_TOO_LARGE",CHUNK_LOAD_FAILED:"CHUNK_LOAD_FAILED"};function we(r){if(!r)return!1;let e=r.code||r?.name;return["EACCES","EPERM","EROFS","NoPermissions"].includes(e)}var A=class extends v{constructor(e,t,o={}){let{recoverable:n=!0,context:s={}}=o;super(q.CHUNK_LOAD_FAILED,`Failed to load ${e}: ${t}`,{chunkName:e,recoverable:n,...s}),this.name="ChunkLoadError",this.chunkName=e,this.recoverable=n}};function be(r,e,t={}){let o=require("vscode"),{userFacing:n=!0}=t,s=e?.recoverable??!0;n&&!s&&o.window.showErrorMessage(`Explorer Dates: ${r} feature unavailable. Please reinstall or rebuild the extension.`)}K.exports={ExtensionError:v,ERROR_CODES:q,isPermissionError:we,ChunkLoadError:A,handleChunkFailure:be}});var V=f((nt,j)=>{var z="EXPLORER_DATES_FORCE_VSCODE_FS";function B(r,e=process.env){return String(e?.[r]||"")==="1"}function T(r){let e=r&&typeof r=="object"?r:null,t=String(e?.scheme||(typeof r=="string"&&/^[a-z][a-z0-9+.-]*:/i.test(r)?r.split(":",1)[0]:"file")).toLowerCase(),o=String(e?.authority||""),n=e?.path||e?.fsPath||(typeof r=="string"?r.replace(/^[a-z][a-z0-9+.-]*:\/\//i,""):"");return{scheme:t,authority:o,path:String(n||"")}}function Ee({uri:r,isWeb:e=!1,remoteName:t="",forceWorkspaceFs:o=B(z)}={}){let n=T(r),s=n.scheme!=="file",i=!!e,u=!!t,h=!!(o||i||u||s);return{scheme:n.scheme,authority:n.authority,isFileScheme:!s,isVirtual:s,isBrowser:i,isRemote:u,forceWorkspaceFs:!!o,filesystem:h?"workspace.fs":"node.fs",provider:s?n.scheme==="github"||n.scheme==="vscode-vfs"?"github":"virtual":"filesystem"}}function H({uri:r,platform:e=process.platform,caseSensitive:t}={}){return typeof t=="boolean"?t:T(r).scheme!=="file"?!0:e!=="win32"}function De(r,e={}){let t=T(r),o=t.path.replace(/\\/g,"/").replace(/\/+/g,"/"),n=`${t.scheme}://${t.authority}${o}`;return H({uri:r,...e})?n:n.toLowerCase()}function F(r){if(r instanceof Date){let e=r.getTime();return Number.isFinite(e)?e:null}if(typeof r=="number")return Number.isFinite(r)?r:null;if(typeof r=="string"&&r.trim()){let e=Date.parse(r);return Number.isFinite(e)?e:null}return null}function ve(r){if(!r||typeof r!="object")return null;let e=F(r.mtime),t=F(r.ctime);return{...r,mtimeMs:e,ctimeMs:t}}j.exports={FORCE_WORKSPACE_FS_ENV:z,envFlag:B,getUriParts:T,getEnvironmentContract:Ee,isCaseSensitive:H,resourceIdentity:De,normalizeTimestamp:F,normalizeStat:ve}});var J=f((st,Y)=>{function Te(){return typeof Date=="function"&&Date.now?Date.now():16409952e5}function G(r){return!!(r&&typeof r=="object"&&typeof r.getTime=="function")}function ke(r){if(G(r))return r;if(typeof r=="number")return new Date(r);if(typeof r=="string"){let e=Date.parse(r);return isNaN(e)?new Date:new Date(e)}return new Date}function m(r=""){return r?r.replace(/\\/g,"/"):""}function Ce(r=""){let e=m(r);return e?e.split("/").filter(Boolean):[]}function X(r=""){let e=Ce(r);return e.length?e[e.length-1]:""}function Se(r=""){let e=X(r),t=e.lastIndexOf(".");return t<=0?"":e.substring(t).toLowerCase()}function xe(r=""){let e=m(r),t=e.lastIndexOf("/");return t===-1?"":e.substring(0,t)}function _e(...r){return m(r.filter(Boolean).join("/")).replace(/\/+/g,"/")}function Ae(r=""){return m(r).toLowerCase()}function Fe(r=""){if(!r)return"";if(typeof r=="string")return r;if(typeof r.fsPath=="string"&&r.fsPath.length>0)return r.fsPath;if(typeof r.path=="string"&&r.path.length>0)return r.path;if(typeof r.toString=="function")try{return r.toString(!0)}catch{return r.toString()}return String(r)}function Le(r="",e=""){let t=m(r),o=m(e);return t&&o.startsWith(t)?o.substring(t.length).replace(/^\/+/,""):o}Y.exports={ensureDate:ke,isDateLike:G,getCurrentTimestamp:Te,normalizePath:m,getFileName:X,getExtension:Se,getDirectory:xe,joinPath:_e,getCacheKey:Ae,getUriPath:Fe,getRelativePath:Le}});var Z=f((exports,module)=>{var chunk=null;try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){try{chunk=dynamicRequire("../chunks/utils-shared-chunk")}catch{}try{chunk||(chunk=dynamicRequire("./chunks/utils-shared-chunk"))}catch{}try{chunk||(chunk=dynamicRequire("../chunks/date-helpers-chunk"))}catch{}try{chunk||(chunk=dynamicRequire("./chunks/date-helpers-chunk"))}catch{}}}catch{}if(chunk&&(chunk.ensureDate||chunk.isDateLike||chunk.getCurrentTimestamp))module.exports={ensureDate:chunk.ensureDate,isDateLike:chunk.isDateLike,getCurrentTimestamp:chunk.getCurrentTimestamp};else{let r=function(){return typeof Date=="function"&&Date.now?Date.now():16409952e5},e=function(o){return!!(o&&typeof o=="object"&&typeof o.getTime=="function")},t=function(o){if(e(o))return o;if(typeof o=="number")return new Date(o);if(typeof o=="string"){let n=Date.parse(o);return isNaN(n)?new Date:new Date(n)}return new Date};getCurrentTimestamp=r,isDateLike=e,ensureDate=t,module.exports={ensureDate:t,isDateLike:e,getCurrentTimestamp:r}}var getCurrentTimestamp,isDateLike,ensureDate});var oe=f((it,re)=>{var c=require("vscode"),{isWebEnvironment:Q}=$(),{normalizePath:Me}=N(),{ExtensionError:Oe,ERROR_CODES:Re,isPermissionError:Pe}=U(),{getEnvironmentContract:We,normalizeStat:Ie,FORCE_WORKSPACE_FS_ENV:$e}=V(),w;try{let r=J();r&&(w=r.ensureDate)}catch{}w||(w=Z().ensureDate);var ee=typeof process<"u"&&process.env?process.env:{},te=ee.VSCODE_WEB==="true"||Q(),p=null;if(!te)try{p=require("fs").promises}catch{p=null}var k=class{constructor(){this.isWeb=te||Q()}r(e){try{return We({uri:this.e(e),isWeb:this.isWeb,remoteName:c.env?.remoteName,forceWorkspaceFs:ee[$e]==="1"}).filesystem==="workspace.fs"}catch{return!1}}t(e){if(!e)return"";if(typeof e=="string")return e;if(e&&typeof e=="object"&&typeof e.fsPath=="string")return e.fsPath;if(e&&typeof e=="object"&&typeof e.path=="string")return e.path;if(typeof e=="object"){if(typeof e.fsPath=="string")return e.fsPath;if(typeof e.path=="string")return e.path}return String(e)}e(e){if(e&&typeof e=="object"&&typeof e.scheme=="string"&&typeof e.path=="string")return e;if(typeof e=="string"){let t=e.trim(),o=/^[a-zA-Z]:[\\/]/.test(t);if(/^[a-zA-Z][a-zA-Z0-9+.-]*:/.test(t)&&!o){let s=c.Uri.parse(t);if(s.scheme&&s.scheme!=="file")return s}return c.Uri.file(e)}if(e&&typeof e=="object"){if(e.uri&&e.uri!==e)try{return this.e(e.uri)}catch{}if(this.isWeb&&typeof e.scheme=="string"&&typeof e.path=="string")return c.Uri.from({scheme:e.scheme,authority:e.authority||"",path:e.path||"",query:e.query||"",fragment:e.fragment||""});if(typeof e.fsPath=="string"&&e.fsPath.length>0)return c.Uri.file(e.fsPath);if(typeof e.path=="string"&&e.path.length>0)return this.isWeb&&typeof e.scheme=="string"&&e.scheme!=="file"?c.Uri.from({scheme:e.scheme,authority:e.authority||"",path:e.path,query:e.query||"",fragment:e.fragment||""}):c.Uri.file(e.path);if(typeof e.href=="string"&&e.href.length>0)return c.Uri.parse(e.href);if(typeof e.scheme=="string")return c.Uri.from({scheme:e.scheme,authority:e.authority||"",path:e.path||e.fsPath||"",query:e.query||"",fragment:e.fragment||""});if(typeof e.toString=="function")try{let t=e.toString(!0);if(t&&t!=="[object Object]")return c.Uri.parse(t)}catch{let t=e.toString();if(t&&t!=="[object Object]")return c.Uri.parse(t)}}throw new Error(`Unsupported target type: ${typeof e}`)}async stat(e){let t=this.r(e);if(!this.isWeb&&p&&!t)return p.stat(this.t(e));let o=this.e(e),n=await c.workspace.fs.stat(o),s=Ie(n);return{...s,mtime:s.mtimeMs===null?w(n.mtime):new Date(s.mtimeMs),ctime:s.ctimeMs===null?w(n.ctime):new Date(s.ctimeMs),birthtime:s.ctimeMs===null?w(n.ctime):new Date(s.ctimeMs),isFile:()=>n.type===c.FileType.File,isDirectory:()=>n.type===c.FileType.Directory}}async readFile(e,t="utf8"){let o=this.r(e);if(!this.isWeb&&p&&!o)return p.readFile(this.t(e),t);let n=this.e(e),s=await c.workspace.fs.readFile(n);return t===null||t==="binary"?s:new TextDecoder(t).decode(s)}async writeFile(e,t,o="utf8"){let n=this.t(e);try{let s=this.r(e);if(!this.isWeb&&p&&!s)return p.writeFile(n,t,o);let i=this.e(e),u=typeof t=="string"?new TextEncoder().encode(t):t;await c.workspace.fs.writeFile(i,u)}catch(s){this.u("write file",n,s)}}async rename(e,t,o={overwrite:!1}){let n=this.t(e),s=this.t(t);try{let i=this.r(e)||this.r(t);if(!this.isWeb&&p&&!i)return p.rename(n,s);if(typeof c.workspace.fs.rename=="function")await c.workspace.fs.rename(this.e(e),this.e(t),o);else if(this.e(e).scheme==="file"&&this.e(t).scheme==="file")await(p||require("fs").promises).rename(n,s);else throw new Error("The active filesystem provider cannot rename report output.")}catch(i){this.u("rename file",`${n} -> ${s}`,i)}}async mkdir(e,t={recursive:!0}){let o=this.t(e);try{let n=this.r(e);if(!this.isWeb&&p&&!n)return p.mkdir(o,t);let s=this.e(e);await c.workspace.fs.createDirectory(s)}catch(n){this.u("create directory",o,n)}}async readdir(e,t={withFileTypes:!1}){let o=this.r(e);if(!this.isWeb&&p&&!o)return p.readdir(this.t(e),t);let n=this.e(e),s=await c.workspace.fs.readDirectory(n);return t.withFileTypes?s.map(([i,u])=>({name:i,isDirectory:()=>u===c.FileType.Directory,isFile:()=>u===c.FileType.File})):s.map(([i])=>i)}async delete(e,t={recursive:!1}){let o=this.r(e);if(!this.isWeb&&p&&!o){let s=this.t(e);return t.recursive?p.rm?p.rm(s,t):p.rmdir(s,t):p.unlink(s)}let n=this.e(e);await c.workspace.fs.delete(n,t)}async exists(e){try{return await this.stat(e),!0}catch{return!1}}async ensureDirectory(e){let t=Me(this.t(e));await this.mkdir(t,{recursive:!0})}u(e,t,o){throw Pe(o)?new Oe(Re.FILE_PERMISSION_DENIED,`Permission denied while attempting to ${e}`,{path:t,code:o.code}):o}},Ne=new k;re.exports={FileSystemAdapter:k,fileSystem:Ne}});var L=f((at,se)=>{var b=typeof process<"u"&&process.env?process.env:{},qe=12e4,Ke=1e4,Ue=1440*60*1e3,ze=2,Be=["Ja","Fe","Mr","Ap","My","Jn","Jl","Au","Se","Oc","No","De"],He=Number(b.EXPLORER_DATES_DECORATION_POOL_SIZE||2048),je=Number(b.EXPLORER_DATES_FLYWEIGHT_CACHE_SIZE||4096),Ve=Number(b.EXPLORER_DATES_WORKSPACE_BALANCED_THRESHOLD||15e3),Ge=Number(b.EXPLORER_DATES_WORKSPACE_LARGE_THRESHOLD||25e4),ne=Number(b.EXPLORER_DATES_WORKSPACE_EXTREME_THRESHOLD||4e5),Xe=Number(b.EXPLORER_DATES_WORKSPACE_SCAN_MAX_RESULTS||Math.min(ne+1,50001)),Ye={ADVANCED_CACHE:"explorerDates.advancedCache",ADVANCED_CACHE_METADATA:"explorerDates.advancedCacheMetadata",TEMPLATE_STORE:"explorerDates.templates",WEB_GIT_NOTICE:"explorerDates.webGitNotice"},Je="explorerDatesChunks",Ze="__explorerDatesChunks";se.exports={DEFAULT_CACHE_TIMEOUT:qe,DEFAULT_MAX_CACHE_SIZE:Ke,DEFAULT_PERSISTENT_CACHE_TTL:Ue,DEFAULT_DECORATION_POOL_SIZE:He,DEFAULT_FLYWEIGHT_CACHE_SIZE:je,MAX_BADGE_LENGTH:ze,MONTH_ABBREVIATIONS:Be,WORKSPACE_SCALE_BALANCED_THRESHOLD:Ve,WORKSPACE_SCALE_LARGE_THRESHOLD:Ge,WORKSPACE_SCALE_EXTREME_THRESHOLD:ne,WORKSPACE_SCAN_MAX_RESULTS:Xe,GLOBAL_STATE_KEYS:Ye,WEB_CHUNK_GLOBAL_KEY:Je,LEGACY_WEB_CHUNK_GLOBAL_KEY:Ze}});var ie=f((exports,module)=>{var{getLogger}=_(),env=typeof process<"u"&&process.env?process.env:{};function createFallbackVscodeMinimal(){return{workspace:{workspaceFolders:[],getConfiguration:()=>({get:()=>{},async update(){},inspect:()=>({defaultValue:void 0,globalValue:void 0,workspaceValue:void 0,workspaceFolderValue:void 0})})},ConfigurationTarget:{Global:1,Workspace:2,WorkspaceFolder:3}}}function resolveVscodeMinimal(){try{return require("vscode")}catch{return createFallbackVscodeMinimal()}}var MinimalSettingsCoordinator=class{constructor(e={}){this.g=e.defaultSection||"explorerDates",this.c=new Map,this.h=new Map,this.v=Number(env.EXPLORER_DATES_LOCK_WAIT_WARN_MS||1e3),this._logger=getLogger()}y(e,t){let n=(this.c.get(e)||Promise.resolve()).then(()=>t()),s=n.catch(()=>{});return this.c.set(e,s),n.finally(()=>{this.c.get(e)===s&&this.c.delete(e)}),n}p(e,t){return resolveVscodeMinimal().workspace.getConfiguration(e||void 0,t)}o(e,t){let o=t||this.g;return o?e.startsWith(`${o}.`)?{section:o,key:e.slice(o.length+1),fullKey:e}:e.includes(".")?{section:void 0,key:e,fullKey:e}:{section:o,key:e,fullKey:`${o}.${e}`}:{section:void 0,key:e,fullKey:e}}async updateSetting(e,t,o={}){return this.y(this.o(e,o.section).fullKey,async()=>{let n=this.o(e,o.section),s=this.p(n.section,o.resource);try{let i=this.w(o.scope,o.resource);return await s.update(n.key,t,i),{key:n.fullKey,updated:!0}}catch(i){try{this._logger.warn(`Configuration update failed for ${n.fullKey}: ${i&&i.message}`)}catch{}return{key:n.fullKey,updated:!1,error:i}}})}async applySettings(e,t={}){let o=Array.isArray(e)?e:Object.entries(e).map(([i,u])=>({key:i,value:u})),n=[];for(let i of o)try{n.push(await this.updateSetting(i.key,i.value,t))}catch(u){n.push({key:this.o(i.key,t.section).fullKey,updated:!1,error:u})}let s=n.filter(i=>i&&i.error);if(s.length>0){let i=s.map(h=>`${h.key}: ${h.error&&h.error.message?h.error.message:String(h.error)}`),u=new Error(`Failed to apply ${s.length} setting(s): ${i.join("; ")}`);throw u.details=s,u}return n}w(e,t){return e&&e!=="auto"?this.b(e)||resolveVscodeMinimal().ConfigurationTarget.Workspace:t?resolveVscodeMinimal().ConfigurationTarget.WorkspaceFolder:resolveVscodeMinimal().workspace.workspaceFolders&&resolveVscodeMinimal().workspace.workspaceFolders.length>0?resolveVscodeMinimal().ConfigurationTarget.Workspace:resolveVscodeMinimal().ConfigurationTarget.Global}b(e){switch(e){case"user":return resolveVscodeMinimal().ConfigurationTarget.Global;case"workspace":return resolveVscodeMinimal().ConfigurationTarget.Workspace;case"workspaceFolder":return resolveVscodeMinimal().ConfigurationTarget.WorkspaceFolder;default:return}}getValue(e,t={}){let{section:o,resource:n}=t||{},s=this.o(e,o);return this.p(s.section,n).get(s.key)}inspect(e,t={}){let{section:o,resource:n}=t||{},s=this.o(e,o);return this.p(s.section,n).inspect(s.key)}async clearSetting(e,t={}){return this.updateSetting(e,void 0,t)}getLockWaitStats(){let e={};for(let[t,o]of this.h.entries())e[t]={...o};return e}resetLockWaitStats(){this.h.clear()}},cachedCoordinator=null;function getSettingsCoordinator(options){if(!cachedCoordinator||options&&options.forceNew){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let r=null;try{r=dynamicRequire("../chunks/settings-coordinator-impl-chunk")}catch{}try{r||(r=dynamicRequire("../chunks/settingsCoordinator-impl-chunk"))}catch{}if(r&&typeof r.createSettingsCoordinatorImpl=="function")return cachedCoordinator=r.createSettingsCoordinatorImpl(options),cachedCoordinator}}catch{}try{let{WEB_CHUNK_GLOBAL_KEY:r,LEGACY_WEB_CHUNK_GLOBAL_KEY:e}=L(),t=typeof globalThis<"u"&&(globalThis[r]||globalThis[e])||null;if(t&&t.settingsCoordinatorImpl&&typeof t.settingsCoordinatorImpl.createSettingsCoordinatorImpl=="function")return cachedCoordinator=t.settingsCoordinatorImpl.createSettingsCoordinatorImpl(options),cachedCoordinator}catch{}cachedCoordinator=new MinimalSettingsCoordinator(options)}return cachedCoordinator}module.exports={getSettingsCoordinator,MinimalSettingsCoordinator}});var M=f((exports,module)=>{var vscode=require("vscode"),getLogger=()=>{try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let r=dynamicRequire("./chunks/logger-chunk");if(r&&typeof r.getLogger=="function")return getLogger=r.getLogger,getLogger()}}catch{}try{return getLogger=_().getLogger,getLogger()}catch{return getLogger=()=>({debug:(()=>{})?.bind(console)||console.log,info:(()=>{}).bind(console),warn:(()=>{}).bind(console),error:(()=>{}).bind(console)}),getLogger()}},{fileSystem}=oe(),{GLOBAL_STATE_KEYS}=L(),{getSettingsCoordinator}=ie(),logger=getLogger(),WorkspaceTemplatesManager=class{constructor(e){this.T=e,this.l=e?.globalState||null,this.f=GLOBAL_STATE_KEYS.TEMPLATE_STORE,this.n=fileSystem,this.E=getSettingsCoordinator(),this.templatesPath=null,this.builtInTemplates=this.getBuiltInTemplates(),logger.info("Workspace Templates Manager initialized")}s(){return this.l?this.l.get(this.f,{}):{}}async d(e){if(!this.l)throw new Error("Template storage unavailable");await this.l.update(this.f,e)}m(e){return this.builtInTemplates[e]?this.builtInTemplates[e]:this.s()[e]}getBuiltInTemplates(){return{"web-development":{name:"Web Development",description:"Optimized for web projects with focus on source files",settings:{"explorerDates.showDateDecorations":!0,"explorerDates.dateDecorationFormat":"relative-short","explorerDates.colorScheme":"file-type","explorerDates.showFileSize":!0,"explorerDates.fadeOldFiles":!0,"explorerDates.fadeThreshold":14,"explorerDates.excludedPatterns":["**/node_modules/**","**/dist/**","**/build/**","**/.next/**","**/coverage/**"],"explorerDates.enableContextMenu":!0,"explorerDates.showGitInfo":"author"}},"data-science":{name:"Data Science",description:"Focused on notebooks and data files with detailed timestamps",settings:{"explorerDates.showDateDecorations":!0,"explorerDates.dateDecorationFormat":"absolute-long","explorerDates.colorScheme":"none","explorerDates.showFileSize":!0,"explorerDates.showGitInfo":"none","explorerDates.highContrastMode":!1,"explorerDates.excludedPatterns":["**/__pycache__/**","**/.ipynb_checkpoints/**","**/data/raw/**"],"explorerDates.badgePriority":"size"}},documentation:{name:"Documentation",description:"Clean display for documentation projects",settings:{"explorerDates.showDateDecorations":!0,"explorerDates.dateDecorationFormat":"smart","explorerDates.colorScheme":"subtle","explorerDates.showFileSize":!1,"explorerDates.excludedPatterns":["**/node_modules/**","**/.git/**"],"explorerDates.fadeOldFiles":!1,"explorerDates.enableContextMenu":!1}},enterprise:{name:"Enterprise",description:"Full feature set with Git integration and analytics",settings:{"explorerDates.showDateDecorations":!0,"explorerDates.dateDecorationFormat":"smart","explorerDates.colorScheme":"recency","explorerDates.showFileSize":!0,"explorerDates.showGitInfo":"author","explorerDates.enableContextMenu":!0,"explorerDates.showStatusBar":!0,"explorerDates.smartExclusions":!0,"explorerDates.progressiveLoading":!0,"explorerDates.persistentCache":!0,"explorerDates.enableExportReporting":!0}},minimal:{name:"Minimal",description:"Clean, distraction-free setup",settings:{"explorerDates.showDateDecorations":!0,"explorerDates.dateDecorationFormat":"relative-short","explorerDates.colorScheme":"none","explorerDates.showFileSize":!1,"explorerDates.badgePriority":"time","explorerDates.enableContextMenu":!1,"explorerDates.progressiveLoading":!1}}}}async saveCurrentConfiguration(e,t=""){try{let o=vscode.workspace.getConfiguration("explorerDates"),n={},s=o.inspect();if(s)for(let[l,d]of Object.entries(s))d&&typeof d=="object"&&"workspaceValue"in d?n[`explorerDates.${l}`]=d.workspaceValue:d&&typeof d=="object"&&"globalValue"in d&&(n[`explorerDates.${l}`]=d.globalValue);let i={name:e,description:t,createdAt:new Date().toISOString(),version:"1.0.0",settings:n},u=e.toLowerCase().replace(/[^a-z0-9-]/g,"-"),h=this.s();h[u]=i,await this.d(h);let a=o.get("templateSyncPath","");if(a&&!this.n.isWeb)try{let l=`${a.replace(/[/\\]?$/,"")}/${u}.json`;await this.n.writeFile(l,JSON.stringify(i,null,2)),logger.info(`Synced template to ${l}`)}catch(l){logger.warn("Failed to sync template to disk path",l)}return vscode.window.showInformationMessage(`Template "${e}" saved successfully!`),logger.info(`Saved workspace template: ${e}`),!0}catch(o){return logger.error("Failed to save template:",o),vscode.window.showErrorMessage(`Failed to save template: ${o.message}`),!1}}async loadTemplate(e){try{let t=this.m(e);if(!t)throw new Error(`Template "${e}" not found`);let n=(await this.E.applySettings(t.settings,{scope:"workspace",reason:`apply-template:${e}`})).filter(i=>i.updated).length,s=n>0?`Template "${t.name}" applied with ${n} setting${n===1?"":"s"} updated.`:`Template "${t.name}" already matched your workspace.`;return vscode.window.showInformationMessage(s),logger.info(`Applied workspace template: ${t.name}`,{changedCount:n}),!0}catch(t){return logger.error("Failed to load template:",t),vscode.window.showErrorMessage(`Failed to load template: ${t.message}`),!1}}async getAvailableTemplates(){let e=[];for(let[t,o]of Object.entries(this.builtInTemplates))e.push({id:t,name:o.name,description:o.description,type:"built-in",createdAt:null});try{let t=this.s();for(let[o,n]of Object.entries(t))e.push({id:o,name:n.name,description:n.description,type:"custom",createdAt:n.createdAt})}catch(t){logger.error("Failed to load custom templates:",t)}return e}async deleteTemplate(e){try{if(this.builtInTemplates[e])return vscode.window.showErrorMessage("Cannot delete built-in templates"),!1;let t=this.s();if(!t[e])throw new Error(`Template "${e}" not found`);return delete t[e],await this.d(t),vscode.window.showInformationMessage(`Template "${e}" deleted successfully!`),logger.info(`Deleted workspace template: ${e}`),!0}catch(t){return logger.error("Failed to delete template:",t),vscode.window.showErrorMessage(`Failed to delete template: ${t.message}`),!1}}async exportTemplate(e,t){try{let o=this.m(e);if(!o)throw new Error(`Template "${e}" not found`);let n=JSON.stringify(o,null,2);if(this.n.isWeb){let i=encodeURIComponent(n);return await vscode.env.openExternal(vscode.Uri.parse(`data:application/json;charset=utf-8,${i}`)),vscode.window.showInformationMessage("Template download triggered in browser"),!0}let s=t instanceof vscode.Uri?t.fsPath:t;return await this.n.writeFile(s,n),vscode.window.showInformationMessage(`Template exported to ${s}`),logger.info(`Exported template ${e} to ${s}`),!0}catch(o){return logger.error("Failed to export template:",o),vscode.window.showErrorMessage(`Failed to export template: ${o.message}`),!1}}async importTemplate(e){try{let t=e instanceof vscode.Uri?e:vscode.Uri.file(e),o=await this.n.readFile(t,"utf8"),n=JSON.parse(o);if(!n.name||!n.settings)throw new Error("Invalid template format");let s=n.name.toLowerCase().replace(/[^a-z0-9-]/g,"-"),i=this.s();return i[s]=n,await this.d(i),vscode.window.showInformationMessage(`Template "${n.name}" imported successfully!`),logger.info(`Imported template: ${n.name}`),!0}catch(t){return logger.error("Failed to import template:",t),vscode.window.showErrorMessage(`Failed to import template: ${t.message}`),!1}}async showTemplateManager(){try{let e=await this.getAvailableTemplates(),t=vscode.window.createWebviewPanel("templateManager","Explorer Dates - Template Manager",vscode.ViewColumn.One,{enableScripts:!0,retainContextWhenHidden:!0});t.webview.html=this.getTemplateManagerHtml(e),t.webview.onDidReceiveMessage(async o=>{switch(o.command){case"loadTemplate":await this.loadTemplate(o.templateId);break;case"deleteTemplate":{await this.deleteTemplate(o.templateId);let n=await this.getAvailableTemplates();t.webview.postMessage({command:"refreshTemplates",templates:n});break}case"exportTemplate":{let n=await vscode.window.showSaveDialog({defaultUri:vscode.Uri.file(`${o.templateId}.json`),filters:{JSON:["json"]}});n&&await this.exportTemplate(o.templateId,n);break}case"saveConfig":{await this.saveCurrentConfiguration(o.name,o.description);let n=await this.getAvailableTemplates();t.webview.postMessage({command:"refreshTemplates",templates:n});break}case"importTemplate":{let n=await vscode.window.showOpenDialog({canSelectMany:!1,filters:{JSON:["json"]}});if(n&&n[0]){await this.importTemplate(n[0]);let s=await this.getAvailableTemplates();t.webview.postMessage({command:"refreshTemplates",templates:s})}break}}}),logger.info("Template Manager opened")}catch(e){logger.error("Failed to show template manager:",e),vscode.window.showErrorMessage("Failed to open Template Manager")}}getTemplateManagerHtml(e){return` diff --git a/dist/chunks/templates.js.map b/dist/chunks/templates.js.map index 1669bae..2765676 100644 --- a/dist/chunks/templates.js.map +++ b/dist/chunks/templates.js.map @@ -1,6 +1,6 @@ { "version": 3, "sources": ["../../src/utils/logger.js", "../../src/utils/env.js", "../../src/utils/pathUtils.js", "../../src/utils/errors.js", "../../src/filesystem/environmentContract.js", "../../src/chunks/utils-shared-chunk.js", "../../src/utils/dateHelpers.js", "../../src/filesystem/FileSystemAdapter.js", "../../src/constants.js", "../../src/utils/settingsCoordinator.js", "../../src/workspaceTemplates.js", "../../src/chunks/templates-logic-chunk.js", "../../src/chunks/templates-chunk.js"], - "mappings": "26BA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,KAEvC,eAAe,uBAAwB,CACnC,GAAI,EAAAA,4BAA6B,kCACjC,GAAI,CACA,IAAMC,OAAQ,KAAM,sEACpBD,2BAA4BC,OAAM,0BAClC,iCAAmCA,OAAM,+BAC7C,MAAQ,CACJ,GAAI,CAEAD,4BADY,KAAM,oEACc,0BAChC,iCAAmC,OAAC,SAAY,IAAIA,2BAA0B,OAAO,EAAlD,mCACvC,OAAS,EAAG,CACR,MAAM,CACV,CACJ,CACJ,CAfe,sDAiBf,OAAO,QAAU,CACb,0BAAAA,2BACA,gCAAiC,aAAO,UACpC,MAAM,sBAAsB,EACrB,iCAAiC,OAAO,GAFlB,kCAIrC", "names": ["exports", "module", "getLogger", "exports", "module", "vscode", "normalizePath", "getSegments", "getFileName", "getExtension", "getDirectory", "joinPath", "getCacheKey", "getUriPath", "getRelativePath", "exports", "module", "options", "vscode", "exports", "module", "env", "options", "exports", "module", "getCurrentTimestamp", "isDateLike", "ensureDate", "normalizePath", "getSegments", "getFileName", "getExtension", "getDirectory", "joinPath", "getCacheKey", "getUriPath", "getRelativePath", "getCurrentTimestamp", "isDateLike", "ensureDate", "exports", "module", "vscode", "normalizePath", "ensureDate", "env", "options", "fileSystem", "exports", "module", "env", "GLOBAL_STATE_KEYS", "options", "chunk", "chunk", "exports", "module", "WorkspaceTemplatesManager", "WorkspaceTemplatesManager", "chunk"] } diff --git a/dist/chunks/workspaceIntelligence.js b/dist/chunks/workspaceIntelligence.js index cc52bcf..c697a77 100644 --- a/dist/chunks/workspaceIntelligence.js +++ b/dist/chunks/workspaceIntelligence.js @@ -1,4 +1,4 @@ -var ze=Object.create;var te=Object.defineProperty;var Ke=Object.getOwnPropertyDescriptor;var Ue=Object.getOwnPropertyNames;var He=Object.getPrototypeOf,Be=Object.prototype.hasOwnProperty;var d=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var $e=(t,e,r,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of Ue(e))!Be.call(t,i)&&i!==r&&te(t,i,{get:()=>e[i],enumerable:!(s=Ke(e,i))||s.enumerable});return t};var k=(t,e,r)=>(r=t!=null?ze(He(t)):{},$e(e||!t||!t.__esModule?te(r,"default",{value:t,enumerable:!0}):r,t));var E=d((Ht,re)=>{var S="__explorerDatesLogger",C=class{constructor(){this.m=null}y(e,r){if(this.m&&typeof this.m[e]=="function")try{return this.m[e](...r)}catch{}switch(e){case"debug":break;case"info":break;case"warn":break;case"error":break;default:break}}debug(...e){return this.y("debug",e)}info(...e){return this.y("info",e)}warn(...e){return this.y("warn",e)}error(...e){return this.y("error",e)}Q(e){this.m=e}};function je(){return typeof global<"u"?(global[S]||(global[S]=new C),global[S]):typeof globalThis<"u"?(globalThis[S]||(globalThis[S]=new C),globalThis[S]):(B||(B=new C),B)}var $=class extends C{},B=null;re.exports={Logger:$,getLogger:je}});var j=d((exports,module)=>{var FEATURE_FLAGS_GLOBAL_KEY="__explorerDatesFeatureFlags";function registerFeatureFlagsGlobal(t){if(t)try{typeof globalThis<"u"&&(globalThis[FEATURE_FLAGS_GLOBAL_KEY]=t)}catch{}}function loadFeatureFlagsFallback(){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function")return dynamicRequire("../featureFlags")}catch{}return null}function getFeatureFlagsGlobal(){try{if(typeof globalThis<"u"&&globalThis[FEATURE_FLAGS_GLOBAL_KEY])return globalThis[FEATURE_FLAGS_GLOBAL_KEY]}catch{}return loadFeatureFlagsFallback()}module.exports={FEATURE_FLAGS_GLOBAL_KEY,registerFeatureFlagsGlobal,getFeatureFlagsGlobal}});var T=d((Bt,ie)=>{function Ge(){return typeof Date=="function"&&Date.now?Date.now():16409952e5}function ne(t){return!!(t&&typeof t=="object"&&typeof t.getTime=="function")}function Ve(t){if(ne(t))return t;if(typeof t=="number")return new Date(t);if(typeof t=="string"){let e=Date.parse(t);return isNaN(e)?new Date:new Date(e)}return new Date}function w(t=""){return t?t.replace(/\\/g,"/"):""}function Ze(t=""){let e=w(t);return e?e.split("/").filter(Boolean):[]}function se(t=""){let e=Ze(t);return e.length?e[e.length-1]:""}function Xe(t=""){let e=se(t),r=e.lastIndexOf(".");return r<=0?"":e.substring(r).toLowerCase()}function Ye(t=""){let e=w(t),r=e.lastIndexOf("/");return r===-1?"":e.substring(0,r)}function Je(...t){return w(t.filter(Boolean).join("/")).replace(/\/+/g,"/")}function Qe(t=""){return w(t).toLowerCase()}function et(t=""){if(!t)return"";if(typeof t=="string")return t;if(typeof t.fsPath=="string"&&t.fsPath.length>0)return t.fsPath;if(typeof t.path=="string"&&t.path.length>0)return t.path;if(typeof t.toString=="function")try{return t.toString(!0)}catch{return t.toString()}return String(t)}function tt(t="",e=""){let r=w(t),s=w(e);return r&&s.startsWith(r)?s.substring(r.length).replace(/^\/+/,""):s}ie.exports={ensureDate:Ve,isDateLike:ne,getCurrentTimestamp:Ge,normalizePath:w,getFileName:se,getExtension:Xe,getDirectory:Ye,joinPath:Je,getCacheKey:Qe,getUriPath:et,getRelativePath:tt}});var G=d((exports,module)=>{var chunk=null;try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){try{chunk=dynamicRequire("../chunks/utils-shared-chunk")}catch{}try{chunk||(chunk=dynamicRequire("./chunks/utils-shared-chunk"))}catch{}try{chunk||(chunk=dynamicRequire("../chunks/date-helpers-chunk"))}catch{}try{chunk||(chunk=dynamicRequire("./chunks/date-helpers-chunk"))}catch{}}}catch{}if(chunk&&(chunk.ensureDate||chunk.isDateLike||chunk.getCurrentTimestamp))module.exports={ensureDate:chunk.ensureDate,isDateLike:chunk.isDateLike,getCurrentTimestamp:chunk.getCurrentTimestamp};else{let t=function(){return typeof Date=="function"&&Date.now?Date.now():16409952e5},e=function(s){return!!(s&&typeof s=="object"&&typeof s.getTime=="function")},r=function(s){if(e(s))return s;if(typeof s=="number")return new Date(s);if(typeof s=="string"){let i=Date.parse(s);return isNaN(i)?new Date:new Date(i)}return new Date};getCurrentTimestamp=t,isDateLike=e,ensureDate=r,module.exports={ensureDate:r,isDateLike:e,getCurrentTimestamp:t}}var getCurrentTimestamp,isDateLike,ensureDate});var oe=d((exports,module)=>{var CHUNK_SIZES={onboarding:34,analysisCommands:23,exportReporting:17,extensionApi:15,workspaceTemplates:14,advancedCache:28,workspaceIntelligence:31,incrementalWorkers:19},BASE_BUNDLE_SIZE=99;function _getPresetDefinitionsSync(){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let t=dynamicRequire("./chunks/preset-definitions-chunk");if(t&&t.PRESET_DEFINITIONS)return t.PRESET_DEFINITIONS}}catch{}let FALLBACK_PRESET={minimal:{id:"minimal",name:"Minimal",description:"Lean setup that prioritizes responsiveness in large repos.",targetScenarios:["Large repos","Low resources","Minimal UI"],settings:{"explorerDates.performanceMode":!0,"explorerDates.showDateDecorations":!0}},balanced:{id:"balanced",name:"Balanced",description:"Default feature mix for most workspaces.",targetScenarios:["General development","Mixed workloads"],settings:{"explorerDates.enableOnboardingSystem":!0,"explorerDates.enableAnalysisCommands":!0,"explorerDates.performanceMode":!1,"explorerDates.dateDecorationFormat":"smart","explorerDates.colorScheme":"recency","explorerDates.badgePriority":"time"}},"web-development":{id:"web-development",name:"Web Development",description:"Optimized for frontend and full-stack web projects.",targetScenarios:["Web apps","Frontend teams"],settings:{"explorerDates.enableOnboardingSystem":!0,"explorerDates.dateDecorationFormat":"smart","explorerDates.colorScheme":"file-type","explorerDates.badgePriority":"time"}},enterprise:{id:"enterprise",name:"Enterprise",description:"Full feature set with reporting and integrations enabled.",targetScenarios:["Large teams","Governed environments"],settings:{"explorerDates.enableExportReporting":!0,"explorerDates.enableExtensionApi":!0,"explorerDates.dateDecorationFormat":"smart","explorerDates.colorScheme":"recency","explorerDates.badgePriority":"time"}},"data-science":{id:"data-science",name:"Data Science",description:"Insight-focused profile for data-heavy projects.",targetScenarios:["Data analysis","Research workflows"],settings:{"explorerDates.enableWorkspaceIntelligence":!0,"explorerDates.dateDecorationFormat":"iso-detailed","explorerDates.colorScheme":"recency","explorerDates.badgePriority":"time"}}};return FALLBACK_PRESET}var PRESET_DEFINITIONS=_getPresetDefinitionsSync(),RESTART_REQUIRED_SETTINGS=new Set(["enableOnboardingSystem","enableAnalysisCommands","enableExportReporting","enableExtensionApi","enableWorkspaceTemplates","enableAdvancedCache","enableWorkspaceIntelligence","enableIncrementalWorkers","performanceMode","smartFileWatching"]);function calculateBundleSize(t){let e=BASE_BUNDLE_SIZE;return t["explorerDates.enableOnboardingSystem"]&&(e+=CHUNK_SIZES.onboarding),t["explorerDates.enableAnalysisCommands"]&&(e+=CHUNK_SIZES.analysisCommands),t["explorerDates.enableExportReporting"]&&(e+=CHUNK_SIZES.exportReporting),t["explorerDates.enableExtensionApi"]&&(e+=CHUNK_SIZES.extensionApi),t["explorerDates.enableWorkspaceTemplates"]&&(e+=CHUNK_SIZES.workspaceTemplates),t["explorerDates.enableAdvancedCache"]&&(e+=CHUNK_SIZES.advancedCache),t["explorerDates.enableWorkspaceIntelligence"]&&(e+=CHUNK_SIZES.workspaceIntelligence),t["explorerDates.enableIncrementalWorkers"]&&(e+=CHUNK_SIZES.incrementalWorkers),e}function getDefaultPresetForProfile(t){let e=PRESET_DEFINITIONS;switch(t){case"minimal":case"extreme":return e.minimal||e.minimal;case"balanced":return e.balanced||e.balanced;case"web-development":return e["web-development"]||e["web-development"];case"data-science":return e["data-science"]||e["data-science"];case"enterprise":return e.enterprise||e.enterprise;default:return e.balanced||e.balanced}}module.exports={PRESET_DEFINITIONS,CHUNK_SIZES,BASE_BUNDLE_SIZE,RESTART_REQUIRED_SETTINGS,calculateBundleSize,getDefaultPresetForProfile}});var ce=d(($t,ae)=>{var W={onboarding:"src/chunks/onboarding-chunk",onboardingAssets:"src/chunks/onboarding-assets-chunk",reporting:"src/chunks/reporting-chunk",templates:"src/chunks/templates-chunk",analysis:"src/chunks/analysis-chunk",diagnostics:"src/chunks/diagnostics-chunk",extensionApi:"src/chunks/extension-api-chunk",advancedCache:"src/chunks/advancedCache-chunk",batchProcessor:"src/chunks/batchProcessor-chunk",decorationsAdvanced:"src/chunks/decorations-advanced",decorationsStatic:"src/chunks/decorations-static",workspaceIntelligence:"src/chunks/workspaceIntelligence",decorationLogic:"src/chunks/decoration-logic-chunk",decorationProvide:"src/chunks/decoration-provide-chunk",decorationHelpers:"src/chunks/decoration-helpers-chunk",decorationBatch:"src/chunks/decoration-batch-chunk",decorationWorkspaceIntel:"src/chunks/decoration-workspace-intel-chunk",decorationTelemetry:"src/chunks/decoration-telemetry-chunk",decorationRefresh:"src/chunks/decoration-refresh-chunk",decorationMemory:"src/chunks/decoration-memory-chunk",decorationPool:"src/chunks/decoration-pool-chunk",providerInit:"src/chunks/provider-init-chunk",fileDateProviderImpl:"src/chunks/file-date-provider-impl",fileDateProviderImplExport:"src/chunks/file-date-provider-impl-export",utilsShared:"src/chunks/utils-shared-chunk",incrementalWorkers:"src/chunks/incrementalWorkers",incrementalIndexer:"src/chunks/incrementalIndexer-chunk",uiAdapters:"src/chunks/ui-adapters",gitInsights:"src/chunks/gitInsights-chunk",smartWatcherFallback:"src/chunks/smartWatcherFallback-chunk",runtimeManagement:"src/chunks/runtime-management",runtimeManagementHeavy:"src/chunks/runtime-management-heavy",teamPersistence:"src/chunks/team-persistence-chunk",teamPersistenceUI:"src/chunks/team-persistence-ui-chunk",teamPersistenceLogic:"src/chunks/team-persistence-logic-chunk",settingsCoordinatorImpl:"src/chunks/settings-coordinator-impl-chunk",logger:"src/chunks/logger-chunk",loggerImpl:"src/chunks/logger-impl-chunk"};function rt(t){return W[t]||null}function nt(){return Object.keys(W)}function st(t){let e={};for(let[r,s]of Object.entries(W))e[r]=()=>t(`./${s}`);return e}var it=new Set(["gitInsights","reporting","templates","advancedCache","runtimeManagementHeavy","incrementalWorkers"]);ae.exports={CHUNK_MAP:W,WEB_EXCLUDED_CHUNKS:it,getChunkSourcePath:rt,getAllChunkNames:nt,generateDevLoaderMap:st}});var V=d((jt,ue)=>{var le=require("vscode");function ot(){try{let t=le?.env?.uiKind,e=le?.UIKind?.Web;return t!==void 0&&e!==void 0&&t===e}catch{return!1}}ue.exports={isWebEnvironment:ot}});var he=d((exports,module)=>{var getLogger=()=>{try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let t=dynamicRequire("./chunks/logger-chunk");if(t&&typeof t.getLogger=="function")return getLogger=t.getLogger,getLogger()}}catch{}try{return getLogger=E().getLogger,getLogger()}catch{return getLogger=()=>({debug:(()=>{})?.bind(console)||console.log,info:(()=>{}).bind(console),warn:(()=>{}).bind(console),error:(()=>{}).bind(console)}),getLogger()}},{CHUNK_SIZES}=oe(),{getChunkSourcePath,getAllChunkNames}=ce(),{registerFeatureFlagsGlobal}=j(),{isWebEnvironment}=V(),featureLogger=null,env=typeof process<"u"&&process.env?process.env:{},DEFAULT_CHUNK_TIMEOUT_MS=Number(env.EXPLORER_DATES_CHUNK_TIMEOUT||(env.NODE_ENV==="test"?1e3:5e3)),NETWORK_ERROR_CODES=new Set(["ENOTFOUND","ECONNRESET","ECONNREFUSED","EAI_AGAIN","ETIMEDOUT","EHOSTUNREACH"]),BUILT_CHUNK_CACHE=new Map,CHUNK_METHOD_ALIASES={reporting:"exportReporting",templates:"workspaceTemplates",analysis:"analysisCommands"},DEV_CHUNK_PATH_CACHE=new Map,LAST_FEATURE_FAILURES=new Map;function getDevChunkImportPath(t){if(DEV_CHUNK_PATH_CACHE.has(t))return DEV_CHUNK_PATH_CACHE.get(t);let e=getChunkSourcePath(t);if(!e)return DEV_CHUNK_PATH_CACHE.set(t,null),null;let r=e;return r.startsWith("src/")&&(r=r.slice(4)),r.startsWith("./")||(r=`./${r}`),DEV_CHUNK_PATH_CACHE.set(t,r),r}function resolveNodeDependencies(){if(nativeDepsResolved)return!!(nativePath&&nativeFs);if(nativeDepsResolved=!0,!isNodeLikeRuntime())return!1;try{nativePath=eval("require")("path"),nativeFs=eval("require")("fs")}catch{nativePath=null,nativeFs=null}return!!(nativePath&&nativeFs)}var nativeDepsResolved=!1,nativePath=null,nativeFs=null;function isWebRuntime(){try{return isWebEnvironment()?!0:typeof process<"u"&&process?.env?.VSCODE_WEB==="true"}catch{return!1}}function isNodeLikeRuntime(){return typeof process<"u"&&!!process.versions?.node&&!isWebRuntime()}function getChunkTimeoutMs(){return DEFAULT_CHUNK_TIMEOUT_MS>0?DEFAULT_CHUNK_TIMEOUT_MS:0}function logFeature(t,e,r){featureLogger||(featureLogger=getLogger());let s=featureLogger;typeof s[t]=="function"?s[t](e,r):s.info(e,r)}function logFeatureDisabled(t,e){logFeature("info","Feature disabled via configuration",{feature:t,savedKB:e&&CHUNK_SIZES[e]!==void 0?CHUNK_SIZES[e]:void 0})}function isLikelyNetworkIssue(t){if(!t)return!1;if(t.code&&NETWORK_ERROR_CODES.has(t.code))return!0;let e=(t.message||"").toLowerCase();return e.includes("network")||e.includes("fetch")||e.includes("timed out")}function runWithChunkTimeout(t,e){let r=getChunkTimeoutMs(),s=()=>{try{return Promise.resolve(t())}catch(i){return Promise.reject(i)}};return r?new Promise((i,o)=>{let a=!1,l=setTimeout(()=>{if(a)return;a=!0;let h=new Error(`Chunk "${e}" load timed out after ${r}ms`);h.code="CHUNK_TIMEOUT",o(h)},r);s().then(h=>{a||(a=!0,clearTimeout(l),i(h))}).catch(h=>{a||(a=!0,clearTimeout(l),o(h))})}):s()}function logResolverFailure(t,e){if(!e)return;let r={chunkName:t,error:e.message,code:e.code,networkIssue:isLikelyNetworkIssue(e),timedOut:e.code==="CHUNK_TIMEOUT"},s=r.networkIssue||r.timedOut?"warn":"error";logFeature(s,"Chunk resolver failed",r)}function tryLoadBuiltChunk(t){if(!t||!resolveNodeDependencies()||typeof nativeFs?.existsSync!="function")return null;if(BUILT_CHUNK_CACHE.has(t))return BUILT_CHUNK_CACHE.get(t);let e=[];typeof __dirname=="string"&&nativePath&&(e.push(nativePath.join(__dirname,"chunks",`${t}.js`)),e.push(nativePath.join(__dirname,"..","dist","chunks",`${t}.js`)));for(let r of e)try{if(!r||!nativeFs.existsSync(r))continue;let s=require(r),i=s?.default||s;return BUILT_CHUNK_CACHE.set(t,i||null),i&&logFeature("info","Loaded chunk via built artifact fallback",{chunkName:t,path:r}),i}catch(s){logFeature("warn","Built chunk fallback failed",{chunkName:t,path:r,error:s.message})}return BUILT_CHUNK_CACHE.set(t,null),null}function tryRequireDevChunk(t){if(isWebRuntime())return null;let e=getDevChunkImportPath(t);if(!e)return null;try{let r=require(e);return r?.default||r}catch(r){(r.code!=="MODULE_NOT_FOUND"||typeof r.message=="string"&&!r.message.includes(e))&&logFeature("debug","Dev chunk require failed",{chunkName:t,importPath:e,error:r.message})}return null}function tryRequireLocalBuiltChunk(t){if(isWebRuntime())return null;let e=`./chunks/${t}`;try{let r=require(e);return r?.default||r}catch(r){r.code==="MODULE_NOT_FOUND"||logFeature("debug","Local chunk require failed",{chunkName:t,importPath:e,error:r.message})}return null}function getSavingsKey(t){return t in CHUNK_SIZES?t:CHUNK_METHOD_ALIASES[t]||null}function announceChunkSavings(t){let e=getSavingsKey(t);if(!e)return;let r=CHUNK_SIZES[e];if(!r)return;let i=`\u{1F4BE} ${e===t||!t?e:`${e} (requested as "${t}")`} chunk unavailable - keeping the feature disabled is saving ~${r}KB`;logFeature("info","Chunk savings applied",{chunkName:e,requestedName:t,savedKB:r})}var getFeatureConfig=()=>{try{let e=require("vscode").workspace.getConfiguration("explorerDates"),r=isWebRuntime(),s=i=>r?!1:i;return{enableOnboarding:e.get("enableOnboardingSystem",!0),enableExportReporting:s(e.get("enableExportReporting",!0)),enableWorkspaceTemplates:s(e.get("enableWorkspaceTemplates",!0)),enableAnalysisCommands:e.get("enableAnalysisCommands",!0),enableAdvancedCache:s(e.get("enableAdvancedCache",!0)),enableWorkspaceIntelligence:s(e.get("enableWorkspaceIntelligence",!0)),enableIncrementalWorkers:s(e.get("enableIncrementalWorkers",!1)),enableGitInsights:s(e.get("enableGitInsights",!0)),enableExtensionApi:e.get("enableExtensionApi",!0)}}catch{let t=isWebRuntime(),e=r=>t?!1:r;return{enableOnboarding:!0,enableExportReporting:e(!0),enableWorkspaceTemplates:e(!0),enableAnalysisCommands:!0,enableAdvancedCache:e(!0),enableWorkspaceIntelligence:e(!0),enableIncrementalWorkers:e(!1),enableGitInsights:e(!0),enableExtensionApi:!0}}},featureLoaders=new Map,chunkResolver=null;function setFeatureChunkResolver(t){if(t&&typeof t!="function")throw new Error("Feature chunk resolver must be a function");chunkResolver=t||null}function registerFeatureLoader(t,e){if(typeof e!="function")throw new Error(`Feature loader for "${t}" must be a function`);featureLoaders.set(t,e)}function unregisterFeatureLoader(t){featureLoaders.delete(t)}function clearFeatureLoaders(){featureLoaders.clear()}async function loadFeatureModule(t){LAST_FEATURE_FAILURES.delete(t);let e=featureLoaders.get(t);if(!e&&chunkResolver&&(e=()=>chunkResolver(t)),!e)return logFeature("warn","No loader registered for feature",{feature:t}),null;try{return await runWithChunkTimeout(()=>e(),t)}catch(r){return LAST_FEATURE_FAILURES.set(t,r),logFeature("warn","Feature loader failed",{feature:t,error:r.message,code:r.code,networkIssue:isLikelyNetworkIssue(r)}),announceChunkSavings(t),null}}function getFeatureLoadFailure(t){return LAST_FEATURE_FAILURES.get(t)}function registerDefaultLoaders(){getAllChunkNames().forEach(e=>{featureLoaders.has(e)||registerFeatureLoader(e,createDefaultLoader(e))})}function createDefaultLoader(t){return async()=>{if(chunkResolver&&typeof chunkResolver=="function")try{let i=await runWithChunkTimeout(()=>chunkResolver(t),t);if(i)return i;logFeature("info","Chunk resolver returned no module",{chunkName:t})}catch(i){logResolverFailure(t,i)}let e=tryRequireDevChunk(t);if(e)return e;let r=tryRequireLocalBuiltChunk(t);if(r)return r;let s=tryLoadBuiltChunk(t);return s||(logFeature("warn","No built artifact available for chunk",{chunkName:t}),null)}}var featureFlags={async onboarding(){return getFeatureConfig().enableOnboarding?loadFeatureModule("onboarding"):(logFeatureDisabled("onboarding","onboarding"),null)},async exportReporting(){return getFeatureConfig().enableExportReporting?loadFeatureModule("reporting"):(logFeatureDisabled("exportReporting","exportReporting"),null)},async workspaceTemplates(){return getFeatureConfig().enableWorkspaceTemplates?loadFeatureModule("templates"):(logFeatureDisabled("workspaceTemplates","workspaceTemplates"),null)},async analysisCommands(){return getFeatureConfig().enableAnalysisCommands?loadFeatureModule("analysis"):(logFeatureDisabled("analysisCommands","analysisCommands"),null)},async advancedCache(){return getFeatureConfig().enableAdvancedCache?loadFeatureModule("advancedCache"):(logFeatureDisabled("advancedCache","advancedCache"),null)},async workspaceIntelligence(){return getFeatureConfig().enableWorkspaceIntelligence?loadFeatureModule("workspaceIntelligence"):(logFeatureDisabled("workspaceIntelligence","workspaceIntelligence"),null)},async incrementalWorkers(){return getFeatureConfig().enableIncrementalWorkers?loadFeatureModule("incrementalWorkers"):(logFeatureDisabled("incrementalWorkers","incrementalWorkers"),null)},async extensionApi(){return getFeatureConfig().enableExtensionApi?loadFeatureModule("extensionApi"):(logFeatureDisabled("extensionApi","extensionApi"),null)},async uiAdapters(){return loadFeatureModule("uiAdapters")},async batchProcessor(){return loadFeatureModule("batchProcessor")},async decorationsAdvanced(){return loadFeatureModule("decorationsAdvanced")},async decorationsProviderImpl(){return loadFeatureModule("decorationsProviderImpl")},async gitInsights(){return getFeatureConfig().enableGitInsights?loadFeatureModule("gitInsights"):(logFeatureDisabled("gitInsights","gitInsights"),null)},isEnabled(t){let e=getFeatureConfig();return{onboarding:e.enableOnboarding,exportReporting:e.enableExportReporting,workspaceTemplates:e.enableWorkspaceTemplates,analysisCommands:e.enableAnalysisCommands,advancedCache:e.enableAdvancedCache,workspaceIntelligence:e.enableWorkspaceIntelligence,incrementalWorkers:e.enableIncrementalWorkers,extensionApi:e.enableExtensionApi}[t]??!0},getEnabledFeatures(){let t=getFeatureConfig(),e=[];return t.enableOnboarding&&e.push("onboarding"),t.enableExportReporting&&e.push("exportReporting"),t.enableWorkspaceTemplates&&e.push("workspaceTemplates"),t.enableAnalysisCommands&&e.push("analysisCommands"),t.enableAdvancedCache&&e.push("advancedCache"),t.enableWorkspaceIntelligence&&e.push("workspaceIntelligence"),t.enableIncrementalWorkers&&e.push("incrementalWorkers"),t.enableExtensionApi&&e.push("extensionApi"),e},calculateSavings(){let t=getFeatureConfig(),e=0;return t.enableOnboarding||(e+=34),t.enableExportReporting||(e+=17),t.enableExtensionApi||(e+=15),t.enableWorkspaceTemplates||(e+=14),t.enableWorkspaceIntelligence||(e+=12),t.enableAnalysisCommands||(e+=8),t.enableAdvancedCache||(e+=5),e}};for(let[t,e]of Object.entries(CHUNK_METHOD_ALIASES))!featureFlags[t]&&typeof featureFlags[e]=="function"&&(featureFlags[t]=(...r)=>featureFlags[e](...r));function calculateSavings(t){t||(t=getFeatureConfig());let e=267,r=0;t.enableOnboarding||(r+=34),t.enableExportReporting||(r+=17),t.enableExtensionApi||(r+=15),t.enableWorkspaceTemplates||(r+=14),t.enableWorkspaceIntelligence||(r+=12),t.enableIncrementalWorkers||(r+=19),t.enableAnalysisCommands||(r+=8),t.enableAdvancedCache||(r+=5);let s=e-r,i=r>0?Math.round(r/e*100):0;return{baseSize:`${e}KB`,totalSavings:`${r}KB`,optimizedSize:`${s}KB`,percentage:i}}registerDefaultLoaders();var exportedFeatureFlags={...featureFlags,getFeatureConfig,calculateSavings,registerFeatureLoader,setFeatureChunkResolver,unregisterFeatureLoader,clearFeatureLoaders,loadFeatureModule,getFeatureLoadFailure,registerDefaultLoaders};registerFeatureFlagsGlobal(exportedFeatureFlags);module.exports=exportedFeatureFlags});var R=d((exports,module)=>{var getLogger=()=>{try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let t=dynamicRequire("./chunks/logger-chunk");if(t&&typeof t.getLogger=="function")return getLogger=t.getLogger,getLogger()}}catch{}try{return getLogger=E().getLogger,getLogger()}catch{return getLogger=()=>({debug:(()=>{})?.bind(console)||console.log,info:(()=>{}).bind(console),warn:(()=>{}).bind(console),error:(()=>{}).bind(console)}),getLogger()}},normalizePath=input=>{try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let t=dynamicRequire("./chunks/path-utils-chunk");if(t&&typeof t.normalizePath=="function")return normalizePath=t.normalizePath,normalizePath(input)}}catch{}return String(input||"").replace(/\\/g,"/")},getUriPath=u=>{try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let t=dynamicRequire("./chunks/path-utils-chunk");if(t&&typeof t.getUriPath=="function")return getUriPath=t.getUriPath,getUriPath(u)}}catch{}if(!u)return"";if(typeof u=="string")return u;if(typeof u.fsPath=="string"&&u.fsPath.length>0)return u.fsPath;if(typeof u.path=="string"&&u.path.length>0)return u.path;try{return u.toString(!0)}catch{return u.toString()}},isDateLike,ensureDate;try{let t=T();t&&(isDateLike=t.isDateLike,ensureDate=t.ensureDate)}catch{}if(!ensureDate||!isDateLike){let t=G();isDateLike=isDateLike||t.isDateLike,ensureDate=ensureDate||t.ensureDate}var IncrementalIndexer=class{constructor(e){this._fileSystem=e,this._logger=getLogger(),this._batchProcessor=null,this.i=new Map,this.h=null,this.t=null,this.o=!1,this.c=null,this.k=new Set,this.f=new Map,this.n=null,this.N=6e4}initialize(e={}){this._batchProcessor=e.batchProcessor||null,this.o=e.enableProgressiveAnalysis||!1,this.h&&(this.h.dispose(),this.h=null),this.t&&(this.t.dispose(),this.t=null)}async startInitialIndex(e,r={}){if(!this._batchProcessor||!Array.isArray(e)||e.length===0)return;this.v("restart"),this.c=new AbortController;let s=r.maxFiles||2e3;e.forEach(i=>{let o=this._batchProcessor.processDirectoryProgressively(i.uri,async a=>this._(a,{source:"initial"}),{background:!0,priority:"low",maxFiles:s,cancellationToken:this.c.signal});o&&this.k.add(o)}),this._logger.info(`Incremental indexer scheduled initial scan for ${e.length} workspace folder(s).`)}v(e="unspecified"){if(this.c&&!this.c.signal.aborted&&this.c.abort(),this.c=null,this._batchProcessor&&this.k.size)for(let r of this.k)this._batchProcessor.cancelBatch(r);this.k.clear(),e!=="unspecified"&&this._logger.debug(`Incremental indexer cancelled initial scan (${e})`)}async _(e,r={}){try{let s=await this._fileSystem.stat(e);await this.x(e,s,r)}catch(s){this._logger.debug("Incremental indexer failed to stat URI",{error:s?.message,uri:e?.toString?.()})}}async x(e,r,s={}){let i=getUriPath(e);if(!i)return;let o=normalizePath(i);if(!o)return;let a={path:o,size:r?.size||0,mtimeMs:this.S(r?.mtime),birthtimeMs:this.S(r?.birthtime||r?.ctime||r?.mtime),indexedAt:Date.now(),digest:null,context:s};if(this.o||this.h){let l=this.h||await this.C();if(l?.isEnabled())try{let[h]=await l.runTask("digest",[a]);a.digest=h?.hash||null,a.sizeBucket=h?.sizeBucket,a.ageBucket=h?.ageBucket}catch(h){this._logger.debug("Incremental index worker error",h)}}this.i.set(o,a)}getIndexedStat(e,r=this.N){if(!e)return null;let s=normalizePath(e),i=this.i.get(s);return!i||Date.now()-(i.indexedAt||0)>r?null:{size:i.size||0,mtime:ensureDate(i.mtimeMs||Date.now()),birthtime:ensureDate(i.birthtimeMs||i.mtimeMs||Date.now()),isFile:()=>!0}}queueDelta(e,r="change"){if(!e)return;let s=e.toString();this.f.set(s,{uri:e,eventType:r}),this.n||(this.n=setTimeout(()=>this.O(),300))}async O(){this.n&&(clearTimeout(this.n),this.n=null);let e=Array.from(this.f.values());this.f.clear();for(let{uri:r,eventType:s}of e){if(s==="delete"){let i=normalizePath(getUriPath(r));i&&this.i.delete(i);continue}await this._(r,{source:"delta",eventType:s})}}primeFromStat(e,r){!e||!r||this.x(e,r,{source:"prime"}).catch(s=>{this._logger.debug("Failed to prime index from stat",s)})}async C(){if(!this.o)return null;if(!this.t)try{let{loadFeatureModule:e}=he(),r=await e("incrementalWorkers");if(r){let{IncrementalWorkersManager:s}=r;this.t=new s({logger:this._logger}),await this.t.initialize(),this._logger.info("\u{1F4E6} Incremental workers chunk loaded on demand (~8-10KB)")}else return this._logger.warn("Failed to load incremental workers chunk"),null}catch(e){return this._logger.error("Failed to load incremental workers manager",e),null}return this.t.getWorkerHost()}async enableProgressiveAnalysis(){return this.o||(this.o=!0,this._logger.debug("Progressive analysis enabled, workers will be loaded on demand")),this.C()}disableProgressiveAnalysis(){this.o=!1,this.t&&(this.t.dispose(),this.t=null,this._logger.debug("Progressive analysis disabled, worker resources disposed"))}getMetrics(){return{entries:this.i.size,workerEnabled:!!this.t?.isWorkerEnabled(),progressiveAnalysisEnabled:this.o,deltaQueue:this.f.size}}removeFoldersFromIndex(e=[]){if(!Array.isArray(e)||e.length===0)return 0;let r=e.map(i=>normalizePath(getUriPath(i))).filter(Boolean);if(!r.length)return 0;let s=0;for(let i of Array.from(this.i.keys()))r.some(o=>i===o||i.startsWith(`${o}/`))&&(this.i.delete(i),s++);return s>0&&this._logger.debug(`Incremental indexer pruned ${s} entr${s===1?"y":"ies"} for removed workspace folder(s).`),s}S(e){if(!e)return Date.now();if(typeof e=="number")return e;if(isDateLike(e))return e.getTime();if(typeof e=="string"){let r=Date.parse(e);return Number.isFinite(r)?r:Date.now()}return typeof e.getTime=="function"?e.getTime():Date.now()}dispose(){this.v("dispose"),this.n&&(clearTimeout(this.n),this.n=null),this.f.clear(),this.t&&(this.t.dispose(),this.t=null),this.i.clear()}};module.exports={IncrementalIndexer}});var fe=d((exports,module)=>{var chunk=null;try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){try{chunk=dynamicRequire("../chunks/utils-shared-chunk")}catch{}try{chunk||(chunk=dynamicRequire("./chunks/utils-shared-chunk"))}catch{}try{chunk||(chunk=dynamicRequire("../chunks/path-utils-chunk"))}catch{}try{chunk||(chunk=dynamicRequire("./chunks/path-utils-chunk"))}catch{}}}catch{}if(chunk&&chunk.normalizePath)module.exports={normalizePath:chunk.normalizePath,getFileName:chunk.getFileName,getExtension:chunk.getExtension,getDirectory:chunk.getDirectory,joinPath:chunk.joinPath,getCacheKey:chunk.getCacheKey,getUriPath:chunk.getUriPath,getRelativePath:chunk.getRelativePath};else{let t=function(c=""){return c?c.replace(/\\/g,"/"):""},e=function(c=""){let f=t(c);return f?f.split("/").filter(Boolean):[]},r=function(c=""){let f=e(c);return f.length?f[f.length-1]:""},s=function(c=""){let f=r(c),m=f.lastIndexOf(".");return m<=0?"":f.substring(m).toLowerCase()},i=function(c=""){let f=t(c),m=f.lastIndexOf("/");return m===-1?"":f.substring(0,m)},o=function(...c){return t(c.filter(Boolean).join("/")).replace(/\/+/g,"/")},a=function(c=""){return t(c).toLowerCase()},l=function(c=""){if(!c)return"";if(typeof c=="string")return c;if(typeof c.fsPath=="string"&&c.fsPath.length>0)return c.fsPath;if(typeof c.path=="string"&&c.path.length>0)return c.path;if(typeof c.toString=="function")try{return c.toString(!0)}catch{return c.toString()}return String(c)},h=function(c="",f=""){let m=t(c),b=t(f);return m&&b.startsWith(m)?b.substring(m.length).replace(/^\/+/,""):b};normalizePath=t,getSegments=e,getFileName=r,getExtension=s,getDirectory=i,joinPath=o,getCacheKey=a,getUriPath=l,getRelativePath=h,module.exports={normalizePath:t,getFileName:r,getExtension:s,getDirectory:i,joinPath:o,getCacheKey:a,getUriPath:l,getRelativePath:h}}var normalizePath,getSegments,getFileName,getExtension,getDirectory,joinPath,getCacheKey,getUriPath,getRelativePath});var pe=d((Gt,ge)=>{var M=class extends Error{constructor(e,r,s={}){super(r),this.code=e,this.context=s,this.name="ExtensionError"}},de={FILE_PERMISSION_DENIED:"FILE_PERMISSION_DENIED",WORKSPACE_TOO_LARGE:"WORKSPACE_TOO_LARGE",CHUNK_LOAD_FAILED:"CHUNK_LOAD_FAILED"};function at(t){if(!t)return!1;let e=t.code||t?.name;return["EACCES","EPERM","EROFS","NoPermissions"].includes(e)}var Z=class extends M{constructor(e,r,s={}){let{recoverable:i=!0,context:o={}}=s;super(de.CHUNK_LOAD_FAILED,`Failed to load ${e}: ${r}`,{chunkName:e,recoverable:i,...o}),this.name="ChunkLoadError",this.chunkName=e,this.recoverable=i}};function ct(t,e,r={}){let s=require("vscode"),{userFacing:i=!0}=r,o=e?.recoverable??!0;i&&!o&&s.window.showErrorMessage(`Explorer Dates: ${t} feature unavailable. Please reinstall or rebuild the extension.`)}ge.exports={ExtensionError:M,ERROR_CODES:de,isPermissionError:at,ChunkLoadError:Z,handleChunkFailure:ct}});var Ee=d((Vt,be)=>{var me="EXPLORER_DATES_FORCE_VSCODE_FS";function ye(t,e=process.env){return String(e?.[t]||"")==="1"}function N(t){let e=t&&typeof t=="object"?t:null,r=String(e?.scheme||(typeof t=="string"&&/^[a-z][a-z0-9+.-]*:/i.test(t)?t.split(":",1)[0]:"file")).toLowerCase(),s=String(e?.authority||""),i=e?.path||e?.fsPath||(typeof t=="string"?t.replace(/^[a-z][a-z0-9+.-]*:\/\//i,""):"");return{scheme:r,authority:s,path:String(i||"")}}function lt({uri:t,isWeb:e=!1,remoteName:r="",forceWorkspaceFs:s=ye(me)}={}){let i=N(t),o=i.scheme!=="file",a=!!e,l=!!r,h=!!(s||a||l||o);return{scheme:i.scheme,authority:i.authority,isFileScheme:!o,isVirtual:o,isBrowser:a,isRemote:l,forceWorkspaceFs:!!s,filesystem:h?"workspace.fs":"node.fs",provider:o?i.scheme==="github"||i.scheme==="vscode-vfs"?"github":"virtual":"filesystem"}}function ke({uri:t,platform:e=process.platform,caseSensitive:r}={}){return typeof r=="boolean"?r:N(t).scheme!=="file"?!0:e!=="win32"}function ut(t,e={}){let r=N(t),s=r.path.replace(/\\/g,"/").replace(/\/+/g,"/"),i=`${r.scheme}://${r.authority}${s}`;return ke({uri:t,...e})?i:i.toLowerCase()}function X(t){if(t instanceof Date){let e=t.getTime();return Number.isFinite(e)?e:null}if(typeof t=="number")return Number.isFinite(t)?t:null;if(typeof t=="string"&&t.trim()){let e=Date.parse(t);return Number.isFinite(e)?e:null}return null}function ht(t){if(!t||typeof t!="object")return null;let e=X(t.mtime),r=X(t.ctime);return{...t,mtimeMs:e,ctimeMs:r}}be.exports={FORCE_WORKSPACE_FS_ENV:me,envFlag:ye,getUriParts:N,getEnvironmentContract:lt,isCaseSensitive:ke,resourceIdentity:ut,normalizeTimestamp:X,normalizeStat:ht}});var q=d((Zt,xe)=>{var g=require("vscode"),{isWebEnvironment:we}=V(),{normalizePath:ft}=fe(),{ExtensionError:dt,ERROR_CODES:gt,isPermissionError:pt}=pe(),{getEnvironmentContract:mt,normalizeStat:yt,FORCE_WORKSPACE_FS_ENV:kt}=Ee(),F;try{let t=T();t&&(F=t.ensureDate)}catch{}F||(F=G().ensureDate);var ve=typeof process<"u"&&process.env?process.env:{},_e=ve.VSCODE_WEB==="true"||we(),y=null;if(!_e)try{y=require("fs").promises}catch{y=null}var O=class{constructor(){this.isWeb=_e||we()}l(e){try{return mt({uri:this.s(e),isWeb:this.isWeb,remoteName:g.env?.remoteName,forceWorkspaceFs:ve[kt]==="1"}).filesystem==="workspace.fs"}catch{return!1}}a(e){if(!e)return"";if(typeof e=="string")return e;if(e&&typeof e=="object"&&typeof e.fsPath=="string")return e.fsPath;if(e&&typeof e=="object"&&typeof e.path=="string")return e.path;if(typeof e=="object"){if(typeof e.fsPath=="string")return e.fsPath;if(typeof e.path=="string")return e.path}return String(e)}s(e){if(e&&typeof e=="object"&&typeof e.scheme=="string"&&typeof e.path=="string")return e;if(typeof e=="string"){let r=e.trim(),s=/^[a-zA-Z]:[\\/]/.test(r);if(/^[a-zA-Z][a-zA-Z0-9+.-]*:/.test(r)&&!s){let o=g.Uri.parse(r);if(o.scheme&&o.scheme!=="file")return o}return g.Uri.file(e)}if(e&&typeof e=="object"){if(e.uri&&e.uri!==e)try{return this.s(e.uri)}catch{}if(this.isWeb&&typeof e.scheme=="string"&&typeof e.path=="string")return g.Uri.from({scheme:e.scheme,authority:e.authority||"",path:e.path||"",query:e.query||"",fragment:e.fragment||""});if(typeof e.fsPath=="string"&&e.fsPath.length>0)return g.Uri.file(e.fsPath);if(typeof e.path=="string"&&e.path.length>0)return this.isWeb&&typeof e.scheme=="string"&&e.scheme!=="file"?g.Uri.from({scheme:e.scheme,authority:e.authority||"",path:e.path,query:e.query||"",fragment:e.fragment||""}):g.Uri.file(e.path);if(typeof e.href=="string"&&e.href.length>0)return g.Uri.parse(e.href);if(typeof e.scheme=="string")return g.Uri.from({scheme:e.scheme,authority:e.authority||"",path:e.path||e.fsPath||"",query:e.query||"",fragment:e.fragment||""});if(typeof e.toString=="function")try{let r=e.toString(!0);if(r&&r!=="[object Object]")return g.Uri.parse(r)}catch{let r=e.toString();if(r&&r!=="[object Object]")return g.Uri.parse(r)}}throw new Error(`Unsupported target type: ${typeof e}`)}async stat(e){let r=this.l(e);if(!this.isWeb&&y&&!r)return y.stat(this.a(e));let s=this.s(e),i=await g.workspace.fs.stat(s),o=yt(i);return{...o,mtime:o.mtimeMs===null?F(i.mtime):new Date(o.mtimeMs),ctime:o.ctimeMs===null?F(i.ctime):new Date(o.ctimeMs),birthtime:o.ctimeMs===null?F(i.ctime):new Date(o.ctimeMs),isFile:()=>i.type===g.FileType.File,isDirectory:()=>i.type===g.FileType.Directory}}async readFile(e,r="utf8"){let s=this.l(e);if(!this.isWeb&&y&&!s)return y.readFile(this.a(e),r);let i=this.s(e),o=await g.workspace.fs.readFile(i);return r===null||r==="binary"?o:new TextDecoder(r).decode(o)}async writeFile(e,r,s="utf8"){let i=this.a(e);try{let o=this.l(e);if(!this.isWeb&&y&&!o)return y.writeFile(i,r,s);let a=this.s(e),l=typeof r=="string"?new TextEncoder().encode(r):r;await g.workspace.fs.writeFile(a,l)}catch(o){this.F("write file",i,o)}}async mkdir(e,r={recursive:!0}){let s=this.a(e);try{let i=this.l(e);if(!this.isWeb&&y&&!i)return y.mkdir(s,r);let o=this.s(e);await g.workspace.fs.createDirectory(o)}catch(i){this.F("create directory",s,i)}}async readdir(e,r={withFileTypes:!1}){let s=this.l(e);if(!this.isWeb&&y&&!s)return y.readdir(this.a(e),r);let i=this.s(e),o=await g.workspace.fs.readDirectory(i);return r.withFileTypes?o.map(([a,l])=>({name:a,isDirectory:()=>l===g.FileType.Directory,isFile:()=>l===g.FileType.File})):o.map(([a])=>a)}async delete(e,r={recursive:!1}){let s=this.l(e);if(!this.isWeb&&y&&!s){let o=this.a(e);return r.recursive?y.rm?y.rm(o,r):y.rmdir(o,r):y.unlink(o)}let i=this.s(e);await g.workspace.fs.delete(i,r)}async exists(e){try{return await this.stat(e),!0}catch{return!1}}async ensureDirectory(e){let r=ft(this.a(e));await this.mkdir(r,{recursive:!0})}F(e,r,s){throw pt(s)?new dt(gt.FILE_PERMISSION_DENIED,`Permission denied while attempting to ${e}`,{path:r,code:s.code}):s}},bt=new O;xe.exports={FileSystemAdapter:O,fileSystem:bt}});var Fe=d((Xt,Ce)=>{var D=typeof process<"u"&&process.env?process.env:{},Et=12e4,wt=1e4,vt=1440*60*1e3,_t=2,xt=["Ja","Fe","Mr","Ap","My","Jn","Jl","Au","Se","Oc","No","De"],St=Number(D.EXPLORER_DATES_DECORATION_POOL_SIZE||2048),Ct=Number(D.EXPLORER_DATES_FLYWEIGHT_CACHE_SIZE||4096),Ft=Number(D.EXPLORER_DATES_WORKSPACE_BALANCED_THRESHOLD||15e3),Dt=Number(D.EXPLORER_DATES_WORKSPACE_LARGE_THRESHOLD||25e4),Se=Number(D.EXPLORER_DATES_WORKSPACE_EXTREME_THRESHOLD||4e5),Pt=Number(D.EXPLORER_DATES_WORKSPACE_SCAN_MAX_RESULTS||Math.min(Se+1,50001)),At={ADVANCED_CACHE:"explorerDates.advancedCache",ADVANCED_CACHE_METADATA:"explorerDates.advancedCacheMetadata",TEMPLATE_STORE:"explorerDates.templates",WEB_GIT_NOTICE:"explorerDates.webGitNotice"},Rt="explorerDatesChunks",Lt="__explorerDatesChunks";Ce.exports={DEFAULT_CACHE_TIMEOUT:Et,DEFAULT_MAX_CACHE_SIZE:wt,DEFAULT_PERSISTENT_CACHE_TTL:vt,DEFAULT_DECORATION_POOL_SIZE:St,DEFAULT_FLYWEIGHT_CACHE_SIZE:Ct,MAX_BADGE_LENGTH:_t,MONTH_ABBREVIATIONS:xt,WORKSPACE_SCALE_BALANCED_THRESHOLD:Ft,WORKSPACE_SCALE_LARGE_THRESHOLD:Dt,WORKSPACE_SCALE_EXTREME_THRESHOLD:Se,WORKSPACE_SCAN_MAX_RESULTS:Pt,GLOBAL_STATE_KEYS:At,WEB_CHUNK_GLOBAL_KEY:Rt,LEGACY_WEB_CHUNK_GLOBAL_KEY:Lt}});var Y=d((exports,module)=>{var{getLogger}=E(),env=typeof process<"u"&&process.env?process.env:{};function createFallbackVscodeMinimal(){return{workspace:{workspaceFolders:[],getConfiguration:()=>({get:()=>{},async update(){},inspect:()=>({defaultValue:void 0,globalValue:void 0,workspaceValue:void 0,workspaceFolderValue:void 0})})},ConfigurationTarget:{Global:1,Workspace:2,WorkspaceFolder:3}}}function resolveVscodeMinimal(){try{return require("vscode")}catch{return createFallbackVscodeMinimal()}}var MinimalSettingsCoordinator=class{constructor(e={}){this.q=e.defaultSection||"explorerDates",this.b=new Map,this.D=new Map,this.ee=Number(env.EXPLORER_DATES_LOCK_WAIT_WARN_MS||1e3),this._logger=getLogger()}z(e,r){let i=(this.b.get(e)||Promise.resolve()).then(()=>r()),o=i.catch(()=>{});return this.b.set(e,o),i.finally(()=>{this.b.get(e)===o&&this.b.delete(e)}),i}w(e,r){return resolveVscodeMinimal().workspace.getConfiguration(e||void 0,r)}d(e,r){let s=r||this.q;return s?e.startsWith(`${s}.`)?{section:s,key:e.slice(s.length+1),fullKey:e}:e.includes(".")?{section:void 0,key:e,fullKey:e}:{section:s,key:e,fullKey:`${s}.${e}`}:{section:void 0,key:e,fullKey:e}}async updateSetting(e,r,s={}){return this.z(this.d(e,s.section).fullKey,async()=>{let i=this.d(e,s.section),o=this.w(i.section,s.resource);try{let a=this.K(s.scope,s.resource);return await o.update(i.key,r,a),{key:i.fullKey,updated:!0}}catch(a){try{this._logger.warn(`Configuration update failed for ${i.fullKey}: ${a&&a.message}`)}catch{}return{key:i.fullKey,updated:!1,error:a}}})}async applySettings(e,r={}){let s=Array.isArray(e)?e:Object.entries(e).map(([a,l])=>({key:a,value:l})),i=[];for(let a of s)try{i.push(await this.updateSetting(a.key,a.value,r))}catch(l){i.push({key:this.d(a.key,r.section).fullKey,updated:!1,error:l})}let o=i.filter(a=>a&&a.error);if(o.length>0){let a=o.map(h=>`${h.key}: ${h.error&&h.error.message?h.error.message:String(h.error)}`),l=new Error(`Failed to apply ${o.length} setting(s): ${a.join("; ")}`);throw l.details=o,l}return i}K(e,r){return e&&e!=="auto"?this.U(e)||resolveVscodeMinimal().ConfigurationTarget.Workspace:r?resolveVscodeMinimal().ConfigurationTarget.WorkspaceFolder:resolveVscodeMinimal().workspace.workspaceFolders&&resolveVscodeMinimal().workspace.workspaceFolders.length>0?resolveVscodeMinimal().ConfigurationTarget.Workspace:resolveVscodeMinimal().ConfigurationTarget.Global}U(e){switch(e){case"user":return resolveVscodeMinimal().ConfigurationTarget.Global;case"workspace":return resolveVscodeMinimal().ConfigurationTarget.Workspace;case"workspaceFolder":return resolveVscodeMinimal().ConfigurationTarget.WorkspaceFolder;default:return}}getValue(e,r={}){let{section:s,resource:i}=r||{},o=this.d(e,s);return this.w(o.section,i).get(o.key)}inspect(e,r={}){let{section:s,resource:i}=r||{},o=this.d(e,s);return this.w(o.section,i).inspect(o.key)}async clearSetting(e,r={}){return this.updateSetting(e,void 0,r)}getLockWaitStats(){let e={};for(let[r,s]of this.D.entries())e[r]={...s};return e}resetLockWaitStats(){this.D.clear()}},cachedCoordinator=null;function getSettingsCoordinator(options){if(!cachedCoordinator||options&&options.forceNew){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let t=null;try{t=dynamicRequire("../chunks/settings-coordinator-impl-chunk")}catch{}try{t||(t=dynamicRequire("../chunks/settingsCoordinator-impl-chunk"))}catch{}if(t&&typeof t.createSettingsCoordinatorImpl=="function")return cachedCoordinator=t.createSettingsCoordinatorImpl(options),cachedCoordinator}}catch{}try{let{WEB_CHUNK_GLOBAL_KEY:t,LEGACY_WEB_CHUNK_GLOBAL_KEY:e}=Fe(),r=typeof globalThis<"u"&&(globalThis[t]||globalThis[e])||null;if(r&&r.settingsCoordinatorImpl&&typeof r.settingsCoordinatorImpl.createSettingsCoordinatorImpl=="function")return cachedCoordinator=r.settingsCoordinatorImpl.createSettingsCoordinatorImpl(options),cachedCoordinator}catch{}cachedCoordinator=new MinimalSettingsCoordinator(options)}return cachedCoordinator}module.exports={getSettingsCoordinator,MinimalSettingsCoordinator}});var De=d((Yt,It)=>{It.exports=["node_modules",".npm",".yarn","coverage","nyc_output","dist","build","out","target","bin","obj",".vscode",".idea",".vs",".vscode-test",".git",".svn",".hg",".bzr",".pnpm-store","bower_components","jspm_packages","tmp","temp",".tmp",".cache",".parcel-cache",".DS_Store","Thumbs.db","__pycache__",".pytest_cache",".tox","venv",".env",".virtualenv","vendor",".docker","logs","*.log"]});var Pe=d((exports,module)=>{var normalizePath,getRelativePath,getFileName;try{let t=T();t&&(normalizePath=t.normalizePath,getRelativePath=t.getRelativePath,getFileName=t.getFileName)}catch{}if(!normalizePath){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function")try{let t=dynamicRequire("../utils/pathUtils");normalizePath=normalizePath||t.normalizePath,getRelativePath=getRelativePath||t.getRelativePath,getFileName=getFileName||t.getFileName}catch{}}catch{}normalizePath||(normalizePath=(t="")=>(t||"").toString().replace(/\\/g,"/")),getRelativePath||(getRelativePath=(t,e)=>{let r=(t||"")+"",s=(e||"")+"";return r&&s.startsWith(r)?s.substring(r.length).replace(/^\/+/,""):s}),getFileName||(getFileName=t=>{let e=String(t||""),r=e.replace(/\\/g,"/").lastIndexOf("/");return r===-1?e:e.substring(r+1)})}async function scanForExclusionCandidates(t,e,r,s,i=2){let o=[],a=async(l,h=0)=>{if(!(h>i))try{let c=await r.readdir(l,{withFileTypes:!0});for(let f of c)if(f.isDirectory()){let m=require("vscode").Uri.joinPath(l,f.name),b=normalizePath(m.fsPath||m.path),x=getRelativePath(e,b),H=await _getDirectorySize(r,m,s);o.push({name:f.name,path:x,type:"directory",size:H}),await a(m,h+1)}}catch(c){s&&s.debug&&s.debug("Skipping directory during scan",c&&c.message)}};return await a(t),o}async function _getDirectorySize(t,e,r){let s=e;typeof t=="object"&&t&&typeof t.fsPath=="string"&&!e&&(s=q().fileSystem);try{let i=await s.readdir(t,{withFileTypes:!0}),o=0,a=0;for(let l of i){if(a>100)break;if(l.isFile())try{let h=require("vscode").Uri.joinPath(t,l.name),c=await s.stat(h);o+=c.size,a++}catch(h){r&&r.debug&&r.debug("Skipping file in size calc",h&&h.message)}}return o}catch{return 0}}module.exports={scanForExclusionCandidates}});var P=d((Jt,Ie)=>{var z=require("vscode"),{fileSystem:L}=q(),{getLogger:Tt}=E(),{getSettingsCoordinator:Ae}=Y(),Re=Tt();async function Wt(t){let e=t&&z.Uri.joinPath(t,".vscode","explorer-dates-exclusions.json")||null;if(!e)return null;try{let r=await L.readFile(e,"utf8"),s=JSON.parse(r);return Array.isArray(s)?Array.from(new Set(s.filter(Boolean))):Array.isArray(s?.exclusions)?Array.from(new Set(s.exclusions.filter(Boolean))):null}catch(r){return r?.code==="ENOENT"||r?.name==="EntryNotFound"||(r?.message||"").includes("ENOENT")||Re.warn("Failed to read workspace exclusions file",{error:r?.message}),null}}async function Le(t,e){if(!t)return;let r=z.Uri.joinPath(t,".vscode");await L.ensureDirectory(r);let s=z.Uri.joinPath(r,"explorer-dates-exclusions.json"),i={version:1,updatedAt:new Date().toISOString(),exclusions:e};await L.writeFile(s,JSON.stringify(i,null,2))}async function Mt(t,e){let r=Ae(),s=t&&(t.fsPath||t.path)||"unknown-workspace",i=r.getValue("workspaceExclusionProfiles")||{},o=Array.isArray(i[s])?Array.from(new Set(i[s].filter(Boolean))):[];return o.length?(e&&(await Le(e,o),delete i[s],await r.updateSetting("workspaceExclusionProfiles",i,{scope:"user",reason:"workspace-exclusion-migration"}),Re.info(`Migrated workspace exclusions for ${s} to workspace settings file`)),o):null}async function Nt(t){let e=Ae(),r=t&&(t.fsPath||t.path)||"unknown-workspace",s=e.getValue("workspaceExclusionProfiles")||{};r in s&&(delete s[r],await e.updateSetting("workspaceExclusionProfiles",s,{scope:"user",reason:"workspace-exclusion-migration"}))}async function Ot(t){try{let e=await L.readdir(t,{withFileTypes:!0}),r=0,s=0;for(let i of e){if(s>100)break;if(i.isFile()){try{let o=await L.stat(z.Uri.joinPath(t,i.name));r+=o.size}catch{}s++}}return r}catch{return 0}}Ie.exports={readWorkspaceExclusionsFile:Wt,writeWorkspaceExclusionsFile:Le,migrateLegacyExclusions:Mt,removeLegacyProfile:Nt,getDirectorySize:Ot}});var Te=d((exports,module)=>{var vscode=require("vscode"),getLogger=()=>{try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let t=dynamicRequire("./chunks/logger-chunk");if(t&&typeof t.getLogger=="function")return getLogger=t.getLogger,getLogger()}}catch{}try{return getLogger=E().getLogger,getLogger()}catch{return getLogger=()=>({debug:(()=>{})?.bind(console)||console.log,info:(()=>{}).bind(console),warn:(()=>{}).bind(console),error:(()=>{}).bind(console)}),getLogger()}},logger=getLogger();function scorePatterns(t,e){return t.map(r=>{let s=0,i="low";switch(r.type==="common"&&(s+=.8),r.size>100*1024*1024?(s+=.9,i="high"):r.size>10*1024*1024&&(s+=.5,i="medium"),e){case"javascript":["node_modules",".npm","coverage","dist","build"].includes(r.name)&&(s+=.9);break;case"python":["__pycache__",".pytest_cache","venv",".env"].includes(r.name)&&(s+=.9);break;case"java":["target","build",".gradle"].includes(r.name)&&(s+=.9);break}return["src","lib","app","components","pages"].includes(r.name.toLowerCase())&&(s=0,i="none"),{pattern:r.name,path:r.path,score:Math.min(s,1),riskLevel:i,size:r.size,type:r.type}})}function escapeHtml(t){return String(t||"").replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}function formatSize(t){if(t<1024)return`${t} B`;let e=t/1024;return e<1024?`${e.toFixed(1)} KB`:`${(e/1024).toFixed(1)} MB`}function generateReviewHTML(t){let e=s=>{let i=s.analysis,o=(i?.detectedPatterns||[]).map(a=>` +var ze=Object.create;var te=Object.defineProperty;var Ke=Object.getOwnPropertyDescriptor;var Ue=Object.getOwnPropertyNames;var He=Object.getPrototypeOf,Be=Object.prototype.hasOwnProperty;var g=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var $e=(t,e,r,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of Ue(e))!Be.call(t,i)&&i!==r&&te(t,i,{get:()=>e[i],enumerable:!(s=Ke(e,i))||s.enumerable});return t};var k=(t,e,r)=>(r=t!=null?ze(He(t)):{},$e(e||!t||!t.__esModule?te(r,"default",{value:t,enumerable:!0}):r,t));var E=g((Ht,re)=>{var S="__explorerDatesLogger",C=class{constructor(){this.m=null}y(e,r){if(this.m&&typeof this.m[e]=="function")try{return this.m[e](...r)}catch{}switch(e){case"debug":break;case"info":break;case"warn":break;case"error":break;default:break}}debug(...e){return this.y("debug",e)}info(...e){return this.y("info",e)}warn(...e){return this.y("warn",e)}error(...e){return this.y("error",e)}Q(e){this.m=e}};function je(){return typeof global<"u"?(global[S]||(global[S]=new C),global[S]):typeof globalThis<"u"?(globalThis[S]||(globalThis[S]=new C),globalThis[S]):(B||(B=new C),B)}var $=class extends C{},B=null;re.exports={Logger:$,getLogger:je}});var j=g((exports,module)=>{var FEATURE_FLAGS_GLOBAL_KEY="__explorerDatesFeatureFlags";function registerFeatureFlagsGlobal(t){if(t)try{typeof globalThis<"u"&&(globalThis[FEATURE_FLAGS_GLOBAL_KEY]=t)}catch{}}function loadFeatureFlagsFallback(){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function")return dynamicRequire("../featureFlags")}catch{}return null}function getFeatureFlagsGlobal(){try{if(typeof globalThis<"u"&&globalThis[FEATURE_FLAGS_GLOBAL_KEY])return globalThis[FEATURE_FLAGS_GLOBAL_KEY]}catch{}return loadFeatureFlagsFallback()}module.exports={FEATURE_FLAGS_GLOBAL_KEY,registerFeatureFlagsGlobal,getFeatureFlagsGlobal}});var T=g((Bt,ie)=>{function Ge(){return typeof Date=="function"&&Date.now?Date.now():16409952e5}function ne(t){return!!(t&&typeof t=="object"&&typeof t.getTime=="function")}function Ve(t){if(ne(t))return t;if(typeof t=="number")return new Date(t);if(typeof t=="string"){let e=Date.parse(t);return isNaN(e)?new Date:new Date(e)}return new Date}function w(t=""){return t?t.replace(/\\/g,"/"):""}function Ze(t=""){let e=w(t);return e?e.split("/").filter(Boolean):[]}function se(t=""){let e=Ze(t);return e.length?e[e.length-1]:""}function Xe(t=""){let e=se(t),r=e.lastIndexOf(".");return r<=0?"":e.substring(r).toLowerCase()}function Ye(t=""){let e=w(t),r=e.lastIndexOf("/");return r===-1?"":e.substring(0,r)}function Je(...t){return w(t.filter(Boolean).join("/")).replace(/\/+/g,"/")}function Qe(t=""){return w(t).toLowerCase()}function et(t=""){if(!t)return"";if(typeof t=="string")return t;if(typeof t.fsPath=="string"&&t.fsPath.length>0)return t.fsPath;if(typeof t.path=="string"&&t.path.length>0)return t.path;if(typeof t.toString=="function")try{return t.toString(!0)}catch{return t.toString()}return String(t)}function tt(t="",e=""){let r=w(t),s=w(e);return r&&s.startsWith(r)?s.substring(r.length).replace(/^\/+/,""):s}ie.exports={ensureDate:Ve,isDateLike:ne,getCurrentTimestamp:Ge,normalizePath:w,getFileName:se,getExtension:Xe,getDirectory:Ye,joinPath:Je,getCacheKey:Qe,getUriPath:et,getRelativePath:tt}});var G=g((exports,module)=>{var chunk=null;try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){try{chunk=dynamicRequire("../chunks/utils-shared-chunk")}catch{}try{chunk||(chunk=dynamicRequire("./chunks/utils-shared-chunk"))}catch{}try{chunk||(chunk=dynamicRequire("../chunks/date-helpers-chunk"))}catch{}try{chunk||(chunk=dynamicRequire("./chunks/date-helpers-chunk"))}catch{}}}catch{}if(chunk&&(chunk.ensureDate||chunk.isDateLike||chunk.getCurrentTimestamp))module.exports={ensureDate:chunk.ensureDate,isDateLike:chunk.isDateLike,getCurrentTimestamp:chunk.getCurrentTimestamp};else{let t=function(){return typeof Date=="function"&&Date.now?Date.now():16409952e5},e=function(s){return!!(s&&typeof s=="object"&&typeof s.getTime=="function")},r=function(s){if(e(s))return s;if(typeof s=="number")return new Date(s);if(typeof s=="string"){let i=Date.parse(s);return isNaN(i)?new Date:new Date(i)}return new Date};getCurrentTimestamp=t,isDateLike=e,ensureDate=r,module.exports={ensureDate:r,isDateLike:e,getCurrentTimestamp:t}}var getCurrentTimestamp,isDateLike,ensureDate});var oe=g((exports,module)=>{var CHUNK_SIZES={onboarding:34,analysisCommands:23,exportReporting:17,extensionApi:15,workspaceTemplates:14,advancedCache:28,workspaceIntelligence:31,incrementalWorkers:19},BASE_BUNDLE_SIZE=99;function _getPresetDefinitionsSync(){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let t=dynamicRequire("./chunks/preset-definitions-chunk");if(t&&t.PRESET_DEFINITIONS)return t.PRESET_DEFINITIONS}}catch{}let FALLBACK_PRESET={minimal:{id:"minimal",name:"Minimal",description:"Lean setup that prioritizes responsiveness in large repos.",targetScenarios:["Large repos","Low resources","Minimal UI"],settings:{"explorerDates.performanceMode":!0,"explorerDates.showDateDecorations":!0}},balanced:{id:"balanced",name:"Balanced",description:"Default feature mix for most workspaces.",targetScenarios:["General development","Mixed workloads"],settings:{"explorerDates.enableOnboardingSystem":!0,"explorerDates.enableAnalysisCommands":!0,"explorerDates.performanceMode":!1,"explorerDates.dateDecorationFormat":"smart","explorerDates.colorScheme":"recency","explorerDates.badgePriority":"time"}},"web-development":{id:"web-development",name:"Web Development",description:"Optimized for frontend and full-stack web projects.",targetScenarios:["Web apps","Frontend teams"],settings:{"explorerDates.enableOnboardingSystem":!0,"explorerDates.dateDecorationFormat":"smart","explorerDates.colorScheme":"file-type","explorerDates.badgePriority":"time"}},enterprise:{id:"enterprise",name:"Enterprise",description:"Full feature set with reporting and integrations enabled.",targetScenarios:["Large teams","Governed environments"],settings:{"explorerDates.enableExportReporting":!0,"explorerDates.enableExtensionApi":!0,"explorerDates.dateDecorationFormat":"smart","explorerDates.colorScheme":"recency","explorerDates.badgePriority":"time"}},"data-science":{id:"data-science",name:"Data Science",description:"Insight-focused profile for data-heavy projects.",targetScenarios:["Data analysis","Research workflows"],settings:{"explorerDates.enableWorkspaceIntelligence":!0,"explorerDates.dateDecorationFormat":"iso-detailed","explorerDates.colorScheme":"recency","explorerDates.badgePriority":"time"}}};return FALLBACK_PRESET}var PRESET_DEFINITIONS=_getPresetDefinitionsSync(),RESTART_REQUIRED_SETTINGS=new Set(["enableOnboardingSystem","enableAnalysisCommands","enableExportReporting","enableExtensionApi","enableWorkspaceTemplates","enableAdvancedCache","enableWorkspaceIntelligence","enableIncrementalWorkers","performanceMode","smartFileWatching"]);function calculateBundleSize(t){let e=BASE_BUNDLE_SIZE;return t["explorerDates.enableOnboardingSystem"]&&(e+=CHUNK_SIZES.onboarding),t["explorerDates.enableAnalysisCommands"]&&(e+=CHUNK_SIZES.analysisCommands),t["explorerDates.enableExportReporting"]&&(e+=CHUNK_SIZES.exportReporting),t["explorerDates.enableExtensionApi"]&&(e+=CHUNK_SIZES.extensionApi),t["explorerDates.enableWorkspaceTemplates"]&&(e+=CHUNK_SIZES.workspaceTemplates),t["explorerDates.enableAdvancedCache"]&&(e+=CHUNK_SIZES.advancedCache),t["explorerDates.enableWorkspaceIntelligence"]&&(e+=CHUNK_SIZES.workspaceIntelligence),t["explorerDates.enableIncrementalWorkers"]&&(e+=CHUNK_SIZES.incrementalWorkers),e}function getDefaultPresetForProfile(t){let e=PRESET_DEFINITIONS;switch(t){case"minimal":case"extreme":return e.minimal||e.minimal;case"balanced":return e.balanced||e.balanced;case"web-development":return e["web-development"]||e["web-development"];case"data-science":return e["data-science"]||e["data-science"];case"enterprise":return e.enterprise||e.enterprise;default:return e.balanced||e.balanced}}module.exports={PRESET_DEFINITIONS,CHUNK_SIZES,BASE_BUNDLE_SIZE,RESTART_REQUIRED_SETTINGS,calculateBundleSize,getDefaultPresetForProfile}});var ce=g(($t,ae)=>{var W={onboarding:"src/chunks/onboarding-chunk",onboardingAssets:"src/chunks/onboarding-assets-chunk",reporting:"src/chunks/reporting-chunk",templates:"src/chunks/templates-chunk",analysis:"src/chunks/analysis-chunk",diagnostics:"src/chunks/diagnostics-chunk",extensionApi:"src/chunks/extension-api-chunk",advancedCache:"src/chunks/advancedCache-chunk",batchProcessor:"src/chunks/batchProcessor-chunk",decorationsAdvanced:"src/chunks/decorations-advanced",decorationsStatic:"src/chunks/decorations-static",workspaceIntelligence:"src/chunks/workspaceIntelligence",decorationLogic:"src/chunks/decoration-logic-chunk",decorationProvide:"src/chunks/decoration-provide-chunk",decorationHelpers:"src/chunks/decoration-helpers-chunk",decorationBatch:"src/chunks/decoration-batch-chunk",decorationWorkspaceIntel:"src/chunks/decoration-workspace-intel-chunk",decorationTelemetry:"src/chunks/decoration-telemetry-chunk",decorationRefresh:"src/chunks/decoration-refresh-chunk",decorationMemory:"src/chunks/decoration-memory-chunk",decorationPool:"src/chunks/decoration-pool-chunk",providerInit:"src/chunks/provider-init-chunk",fileDateProviderImpl:"src/chunks/file-date-provider-impl",fileDateProviderImplExport:"src/chunks/file-date-provider-impl-export",utilsShared:"src/chunks/utils-shared-chunk",incrementalWorkers:"src/chunks/incrementalWorkers",incrementalIndexer:"src/chunks/incrementalIndexer-chunk",uiAdapters:"src/chunks/ui-adapters",gitInsights:"src/chunks/gitInsights-chunk",smartWatcherFallback:"src/chunks/smartWatcherFallback-chunk",runtimeManagement:"src/chunks/runtime-management",runtimeManagementHeavy:"src/chunks/runtime-management-heavy",teamPersistence:"src/chunks/team-persistence-chunk",teamPersistenceUI:"src/chunks/team-persistence-ui-chunk",teamPersistenceLogic:"src/chunks/team-persistence-logic-chunk",settingsCoordinatorImpl:"src/chunks/settings-coordinator-impl-chunk",logger:"src/chunks/logger-chunk",loggerImpl:"src/chunks/logger-impl-chunk"};function rt(t){return W[t]||null}function nt(){return Object.keys(W)}function st(t){let e={};for(let[r,s]of Object.entries(W))e[r]=()=>t(`./${s}`);return e}var it=new Set(["gitInsights","reporting","templates","advancedCache","runtimeManagementHeavy","incrementalWorkers"]);ae.exports={CHUNK_MAP:W,WEB_EXCLUDED_CHUNKS:it,getChunkSourcePath:rt,getAllChunkNames:nt,generateDevLoaderMap:st}});var V=g((jt,ue)=>{var le=require("vscode");function ot(){try{let t=le?.env?.uiKind,e=le?.UIKind?.Web;return t!==void 0&&e!==void 0&&t===e}catch{return!1}}ue.exports={isWebEnvironment:ot}});var he=g((exports,module)=>{var getLogger=()=>{try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let t=dynamicRequire("./chunks/logger-chunk");if(t&&typeof t.getLogger=="function")return getLogger=t.getLogger,getLogger()}}catch{}try{return getLogger=E().getLogger,getLogger()}catch{return getLogger=()=>({debug:(()=>{})?.bind(console)||console.log,info:(()=>{}).bind(console),warn:(()=>{}).bind(console),error:(()=>{}).bind(console)}),getLogger()}},{CHUNK_SIZES}=oe(),{getChunkSourcePath,getAllChunkNames}=ce(),{registerFeatureFlagsGlobal}=j(),{isWebEnvironment}=V(),featureLogger=null,env=typeof process<"u"&&process.env?process.env:{},DEFAULT_CHUNK_TIMEOUT_MS=Number(env.EXPLORER_DATES_CHUNK_TIMEOUT||(env.NODE_ENV==="test"?1e3:5e3)),NETWORK_ERROR_CODES=new Set(["ENOTFOUND","ECONNRESET","ECONNREFUSED","EAI_AGAIN","ETIMEDOUT","EHOSTUNREACH"]),BUILT_CHUNK_CACHE=new Map,CHUNK_METHOD_ALIASES={reporting:"exportReporting",templates:"workspaceTemplates",analysis:"analysisCommands"},DEV_CHUNK_PATH_CACHE=new Map,LAST_FEATURE_FAILURES=new Map;function getDevChunkImportPath(t){if(DEV_CHUNK_PATH_CACHE.has(t))return DEV_CHUNK_PATH_CACHE.get(t);let e=getChunkSourcePath(t);if(!e)return DEV_CHUNK_PATH_CACHE.set(t,null),null;let r=e;return r.startsWith("src/")&&(r=r.slice(4)),r.startsWith("./")||(r=`./${r}`),DEV_CHUNK_PATH_CACHE.set(t,r),r}function resolveNodeDependencies(){if(nativeDepsResolved)return!!(nativePath&&nativeFs);if(nativeDepsResolved=!0,!isNodeLikeRuntime())return!1;try{nativePath=eval("require")("path"),nativeFs=eval("require")("fs")}catch{nativePath=null,nativeFs=null}return!!(nativePath&&nativeFs)}var nativeDepsResolved=!1,nativePath=null,nativeFs=null;function isWebRuntime(){try{return isWebEnvironment()?!0:typeof process<"u"&&process?.env?.VSCODE_WEB==="true"}catch{return!1}}function isNodeLikeRuntime(){return typeof process<"u"&&!!process.versions?.node&&!isWebRuntime()}function getChunkTimeoutMs(){return DEFAULT_CHUNK_TIMEOUT_MS>0?DEFAULT_CHUNK_TIMEOUT_MS:0}function logFeature(t,e,r){featureLogger||(featureLogger=getLogger());let s=featureLogger;typeof s[t]=="function"?s[t](e,r):s.info(e,r)}function logFeatureDisabled(t,e){logFeature("info","Feature disabled via configuration",{feature:t,savedKB:e&&CHUNK_SIZES[e]!==void 0?CHUNK_SIZES[e]:void 0})}function isLikelyNetworkIssue(t){if(!t)return!1;if(t.code&&NETWORK_ERROR_CODES.has(t.code))return!0;let e=(t.message||"").toLowerCase();return e.includes("network")||e.includes("fetch")||e.includes("timed out")}function runWithChunkTimeout(t,e){let r=getChunkTimeoutMs(),s=()=>{try{return Promise.resolve(t())}catch(i){return Promise.reject(i)}};return r?new Promise((i,o)=>{let a=!1,l=setTimeout(()=>{if(a)return;a=!0;let h=new Error(`Chunk "${e}" load timed out after ${r}ms`);h.code="CHUNK_TIMEOUT",o(h)},r);s().then(h=>{a||(a=!0,clearTimeout(l),i(h))}).catch(h=>{a||(a=!0,clearTimeout(l),o(h))})}):s()}function logResolverFailure(t,e){if(!e)return;let r={chunkName:t,error:e.message,code:e.code,networkIssue:isLikelyNetworkIssue(e),timedOut:e.code==="CHUNK_TIMEOUT"},s=r.networkIssue||r.timedOut?"warn":"error";logFeature(s,"Chunk resolver failed",r)}function tryLoadBuiltChunk(t){if(!t||!resolveNodeDependencies()||typeof nativeFs?.existsSync!="function")return null;if(BUILT_CHUNK_CACHE.has(t))return BUILT_CHUNK_CACHE.get(t);let e=[];typeof __dirname=="string"&&nativePath&&(e.push(nativePath.join(__dirname,"chunks",`${t}.js`)),e.push(nativePath.join(__dirname,"..","dist","chunks",`${t}.js`)));for(let r of e)try{if(!r||!nativeFs.existsSync(r))continue;let s=require(r),i=s?.default||s;return BUILT_CHUNK_CACHE.set(t,i||null),i&&logFeature("info","Loaded chunk via built artifact fallback",{chunkName:t,path:r}),i}catch(s){logFeature("warn","Built chunk fallback failed",{chunkName:t,path:r,error:s.message})}return BUILT_CHUNK_CACHE.set(t,null),null}function tryRequireDevChunk(t){if(isWebRuntime())return null;let e=getDevChunkImportPath(t);if(!e)return null;try{let r=require(e);return r?.default||r}catch(r){(r.code!=="MODULE_NOT_FOUND"||typeof r.message=="string"&&!r.message.includes(e))&&logFeature("debug","Dev chunk require failed",{chunkName:t,importPath:e,error:r.message})}return null}function tryRequireLocalBuiltChunk(t){if(isWebRuntime())return null;let e=`./chunks/${t}`;try{let r=require(e);return r?.default||r}catch(r){r.code==="MODULE_NOT_FOUND"||logFeature("debug","Local chunk require failed",{chunkName:t,importPath:e,error:r.message})}return null}function getSavingsKey(t){return t in CHUNK_SIZES?t:CHUNK_METHOD_ALIASES[t]||null}function announceChunkSavings(t){let e=getSavingsKey(t);if(!e)return;let r=CHUNK_SIZES[e];if(!r)return;let i=`\u{1F4BE} ${e===t||!t?e:`${e} (requested as "${t}")`} chunk unavailable - keeping the feature disabled is saving ~${r}KB`;logFeature("info","Chunk savings applied",{chunkName:e,requestedName:t,savedKB:r})}var getFeatureConfig=()=>{try{let e=require("vscode").workspace.getConfiguration("explorerDates"),r=isWebRuntime(),s=i=>r?!1:i;return{enableOnboarding:e.get("enableOnboardingSystem",!0),enableExportReporting:s(e.get("enableExportReporting",!0)),enableWorkspaceTemplates:s(e.get("enableWorkspaceTemplates",!0)),enableAnalysisCommands:e.get("enableAnalysisCommands",!0),enableAdvancedCache:s(e.get("enableAdvancedCache",!0)),enableWorkspaceIntelligence:s(e.get("enableWorkspaceIntelligence",!0)),enableIncrementalWorkers:s(e.get("enableIncrementalWorkers",!1)),enableGitInsights:s(e.get("enableGitInsights",!0)),enableExtensionApi:e.get("enableExtensionApi",!0)}}catch{let t=isWebRuntime(),e=r=>t?!1:r;return{enableOnboarding:!0,enableExportReporting:e(!0),enableWorkspaceTemplates:e(!0),enableAnalysisCommands:!0,enableAdvancedCache:e(!0),enableWorkspaceIntelligence:e(!0),enableIncrementalWorkers:e(!1),enableGitInsights:e(!0),enableExtensionApi:!0}}},featureLoaders=new Map,chunkResolver=null;function setFeatureChunkResolver(t){if(t&&typeof t!="function")throw new Error("Feature chunk resolver must be a function");chunkResolver=t||null}function registerFeatureLoader(t,e){if(typeof e!="function")throw new Error(`Feature loader for "${t}" must be a function`);featureLoaders.set(t,e)}function unregisterFeatureLoader(t){featureLoaders.delete(t)}function clearFeatureLoaders(){featureLoaders.clear()}async function loadFeatureModule(t){LAST_FEATURE_FAILURES.delete(t);let e=featureLoaders.get(t);if(!e&&chunkResolver&&(e=()=>chunkResolver(t)),!e)return logFeature("warn","No loader registered for feature",{feature:t}),null;try{return await runWithChunkTimeout(()=>e(),t)}catch(r){return LAST_FEATURE_FAILURES.set(t,r),logFeature("warn","Feature loader failed",{feature:t,error:r.message,code:r.code,networkIssue:isLikelyNetworkIssue(r)}),announceChunkSavings(t),null}}function getFeatureLoadFailure(t){return LAST_FEATURE_FAILURES.get(t)}function registerDefaultLoaders(){getAllChunkNames().forEach(e=>{featureLoaders.has(e)||registerFeatureLoader(e,createDefaultLoader(e))})}function createDefaultLoader(t){return async()=>{if(chunkResolver&&typeof chunkResolver=="function")try{let i=await runWithChunkTimeout(()=>chunkResolver(t),t);if(i)return i;logFeature("info","Chunk resolver returned no module",{chunkName:t})}catch(i){logResolverFailure(t,i)}let e=tryRequireDevChunk(t);if(e)return e;let r=tryRequireLocalBuiltChunk(t);if(r)return r;let s=tryLoadBuiltChunk(t);return s||(logFeature("warn","No built artifact available for chunk",{chunkName:t}),null)}}var featureFlags={async onboarding(){return getFeatureConfig().enableOnboarding?loadFeatureModule("onboarding"):(logFeatureDisabled("onboarding","onboarding"),null)},async exportReporting(){return getFeatureConfig().enableExportReporting?loadFeatureModule("reporting"):(logFeatureDisabled("exportReporting","exportReporting"),null)},async workspaceTemplates(){return getFeatureConfig().enableWorkspaceTemplates?loadFeatureModule("templates"):(logFeatureDisabled("workspaceTemplates","workspaceTemplates"),null)},async analysisCommands(){return getFeatureConfig().enableAnalysisCommands?loadFeatureModule("analysis"):(logFeatureDisabled("analysisCommands","analysisCommands"),null)},async advancedCache(){return getFeatureConfig().enableAdvancedCache?loadFeatureModule("advancedCache"):(logFeatureDisabled("advancedCache","advancedCache"),null)},async workspaceIntelligence(){return getFeatureConfig().enableWorkspaceIntelligence?loadFeatureModule("workspaceIntelligence"):(logFeatureDisabled("workspaceIntelligence","workspaceIntelligence"),null)},async incrementalWorkers(){return getFeatureConfig().enableIncrementalWorkers?loadFeatureModule("incrementalWorkers"):(logFeatureDisabled("incrementalWorkers","incrementalWorkers"),null)},async extensionApi(){return getFeatureConfig().enableExtensionApi?loadFeatureModule("extensionApi"):(logFeatureDisabled("extensionApi","extensionApi"),null)},async uiAdapters(){return loadFeatureModule("uiAdapters")},async batchProcessor(){return loadFeatureModule("batchProcessor")},async decorationsAdvanced(){return loadFeatureModule("decorationsAdvanced")},async decorationsProviderImpl(){return loadFeatureModule("decorationsProviderImpl")},async gitInsights(){return getFeatureConfig().enableGitInsights?loadFeatureModule("gitInsights"):(logFeatureDisabled("gitInsights","gitInsights"),null)},isEnabled(t){let e=getFeatureConfig();return{onboarding:e.enableOnboarding,exportReporting:e.enableExportReporting,workspaceTemplates:e.enableWorkspaceTemplates,analysisCommands:e.enableAnalysisCommands,advancedCache:e.enableAdvancedCache,workspaceIntelligence:e.enableWorkspaceIntelligence,incrementalWorkers:e.enableIncrementalWorkers,extensionApi:e.enableExtensionApi}[t]??!0},getEnabledFeatures(){let t=getFeatureConfig(),e=[];return t.enableOnboarding&&e.push("onboarding"),t.enableExportReporting&&e.push("exportReporting"),t.enableWorkspaceTemplates&&e.push("workspaceTemplates"),t.enableAnalysisCommands&&e.push("analysisCommands"),t.enableAdvancedCache&&e.push("advancedCache"),t.enableWorkspaceIntelligence&&e.push("workspaceIntelligence"),t.enableIncrementalWorkers&&e.push("incrementalWorkers"),t.enableExtensionApi&&e.push("extensionApi"),e},calculateSavings(){let t=getFeatureConfig(),e=0;return t.enableOnboarding||(e+=34),t.enableExportReporting||(e+=17),t.enableExtensionApi||(e+=15),t.enableWorkspaceTemplates||(e+=14),t.enableWorkspaceIntelligence||(e+=12),t.enableAnalysisCommands||(e+=8),t.enableAdvancedCache||(e+=5),e}};for(let[t,e]of Object.entries(CHUNK_METHOD_ALIASES))!featureFlags[t]&&typeof featureFlags[e]=="function"&&(featureFlags[t]=(...r)=>featureFlags[e](...r));function calculateSavings(t){t||(t=getFeatureConfig());let e=267,r=0;t.enableOnboarding||(r+=34),t.enableExportReporting||(r+=17),t.enableExtensionApi||(r+=15),t.enableWorkspaceTemplates||(r+=14),t.enableWorkspaceIntelligence||(r+=12),t.enableIncrementalWorkers||(r+=19),t.enableAnalysisCommands||(r+=8),t.enableAdvancedCache||(r+=5);let s=e-r,i=r>0?Math.round(r/e*100):0;return{baseSize:`${e}KB`,totalSavings:`${r}KB`,optimizedSize:`${s}KB`,percentage:i}}registerDefaultLoaders();var exportedFeatureFlags={...featureFlags,getFeatureConfig,calculateSavings,registerFeatureLoader,setFeatureChunkResolver,unregisterFeatureLoader,clearFeatureLoaders,loadFeatureModule,getFeatureLoadFailure,registerDefaultLoaders};registerFeatureFlagsGlobal(exportedFeatureFlags);module.exports=exportedFeatureFlags});var R=g((exports,module)=>{var getLogger=()=>{try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let t=dynamicRequire("./chunks/logger-chunk");if(t&&typeof t.getLogger=="function")return getLogger=t.getLogger,getLogger()}}catch{}try{return getLogger=E().getLogger,getLogger()}catch{return getLogger=()=>({debug:(()=>{})?.bind(console)||console.log,info:(()=>{}).bind(console),warn:(()=>{}).bind(console),error:(()=>{}).bind(console)}),getLogger()}},normalizePath=input=>{try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let t=dynamicRequire("./chunks/path-utils-chunk");if(t&&typeof t.normalizePath=="function")return normalizePath=t.normalizePath,normalizePath(input)}}catch{}return String(input||"").replace(/\\/g,"/")},getUriPath=u=>{try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let t=dynamicRequire("./chunks/path-utils-chunk");if(t&&typeof t.getUriPath=="function")return getUriPath=t.getUriPath,getUriPath(u)}}catch{}if(!u)return"";if(typeof u=="string")return u;if(typeof u.fsPath=="string"&&u.fsPath.length>0)return u.fsPath;if(typeof u.path=="string"&&u.path.length>0)return u.path;try{return u.toString(!0)}catch{return u.toString()}},isDateLike,ensureDate;try{let t=T();t&&(isDateLike=t.isDateLike,ensureDate=t.ensureDate)}catch{}if(!ensureDate||!isDateLike){let t=G();isDateLike=isDateLike||t.isDateLike,ensureDate=ensureDate||t.ensureDate}var IncrementalIndexer=class{constructor(e){this._fileSystem=e,this._logger=getLogger(),this._batchProcessor=null,this.a=new Map,this.h=null,this.t=null,this.c=!1,this.l=null,this.k=new Set,this.f=new Map,this.i=null,this.N=6e4}initialize(e={}){this._batchProcessor=e.batchProcessor||null,this.c=e.enableProgressiveAnalysis||!1,this.h&&(this.h.dispose(),this.h=null),this.t&&(this.t.dispose(),this.t=null)}async startInitialIndex(e,r={}){if(!this._batchProcessor||!Array.isArray(e)||e.length===0)return;this._("restart"),this.l=new AbortController;let s=r.maxFiles||2e3;e.forEach(i=>{let o=this._batchProcessor.processDirectoryProgressively(i.uri,async a=>this.x(a,{source:"initial"}),{background:!0,priority:"low",maxFiles:s,cancellationToken:this.l.signal});o&&this.k.add(o)}),this._logger.info(`Incremental indexer scheduled initial scan for ${e.length} workspace folder(s).`)}_(e="unspecified"){if(this.l&&!this.l.signal.aborted&&this.l.abort(),this.l=null,this._batchProcessor&&this.k.size)for(let r of this.k)this._batchProcessor.cancelBatch(r);this.k.clear(),e!=="unspecified"&&this._logger.debug(`Incremental indexer cancelled initial scan (${e})`)}async x(e,r={}){try{let s=await this._fileSystem.stat(e);await this.S(e,s,r)}catch(s){this._logger.debug("Incremental indexer failed to stat URI",{error:s?.message,uri:e?.toString?.()})}}async S(e,r,s={}){let i=getUriPath(e);if(!i)return;let o=normalizePath(i);if(!o)return;let a={path:o,size:r?.size||0,mtimeMs:this.C(r?.mtime),birthtimeMs:this.C(r?.birthtime||r?.ctime||r?.mtime),indexedAt:Date.now(),digest:null,context:s};if(this.c||this.h){let l=this.h||await this.F();if(l?.isEnabled())try{let[h]=await l.runTask("digest",[a]);a.digest=h?.hash||null,a.sizeBucket=h?.sizeBucket,a.ageBucket=h?.ageBucket}catch(h){this._logger.debug("Incremental index worker error",h)}}this.a.set(o,a)}getIndexedStat(e,r=this.N){if(!e)return null;let s=normalizePath(e),i=this.a.get(s);return!i||Date.now()-(i.indexedAt||0)>r?null:{size:i.size||0,mtime:ensureDate(i.mtimeMs||Date.now()),birthtime:ensureDate(i.birthtimeMs||i.mtimeMs||Date.now()),isFile:()=>!0}}queueDelta(e,r="change"){if(!e)return;let s=e.toString();this.f.set(s,{uri:e,eventType:r}),this.i||(this.i=setTimeout(()=>this.O(),300))}async O(){this.i&&(clearTimeout(this.i),this.i=null);let e=Array.from(this.f.values());this.f.clear();for(let{uri:r,eventType:s}of e){if(s==="delete"){let i=normalizePath(getUriPath(r));i&&this.a.delete(i);continue}await this.x(r,{source:"delta",eventType:s})}}primeFromStat(e,r){!e||!r||this.S(e,r,{source:"prime"}).catch(s=>{this._logger.debug("Failed to prime index from stat",s)})}async F(){if(!this.c)return null;if(!this.t)try{let{loadFeatureModule:e}=he(),r=await e("incrementalWorkers");if(r){let{IncrementalWorkersManager:s}=r;this.t=new s({logger:this._logger}),await this.t.initialize(),this._logger.info("\u{1F4E6} Incremental workers chunk loaded on demand (~8-10KB)")}else return this._logger.warn("Failed to load incremental workers chunk"),null}catch(e){return this._logger.error("Failed to load incremental workers manager",e),null}return this.t.getWorkerHost()}async enableProgressiveAnalysis(){return this.c||(this.c=!0,this._logger.debug("Progressive analysis enabled, workers will be loaded on demand")),this.F()}disableProgressiveAnalysis(){this.c=!1,this.t&&(this.t.dispose(),this.t=null,this._logger.debug("Progressive analysis disabled, worker resources disposed"))}getMetrics(){return{entries:this.a.size,workerEnabled:!!this.t?.isWorkerEnabled(),progressiveAnalysisEnabled:this.c,deltaQueue:this.f.size}}removeFoldersFromIndex(e=[]){if(!Array.isArray(e)||e.length===0)return 0;let r=e.map(i=>normalizePath(getUriPath(i))).filter(Boolean);if(!r.length)return 0;let s=0;for(let i of Array.from(this.a.keys()))r.some(o=>i===o||i.startsWith(`${o}/`))&&(this.a.delete(i),s++);return s>0&&this._logger.debug(`Incremental indexer pruned ${s} entr${s===1?"y":"ies"} for removed workspace folder(s).`),s}C(e){if(!e)return Date.now();if(typeof e=="number")return e;if(isDateLike(e))return e.getTime();if(typeof e=="string"){let r=Date.parse(e);return Number.isFinite(r)?r:Date.now()}return typeof e.getTime=="function"?e.getTime():Date.now()}dispose(){this._("dispose"),this.i&&(clearTimeout(this.i),this.i=null),this.f.clear(),this.t&&(this.t.dispose(),this.t=null),this.a.clear()}};module.exports={IncrementalIndexer}});var fe=g((exports,module)=>{var chunk=null;try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){try{chunk=dynamicRequire("../chunks/utils-shared-chunk")}catch{}try{chunk||(chunk=dynamicRequire("./chunks/utils-shared-chunk"))}catch{}try{chunk||(chunk=dynamicRequire("../chunks/path-utils-chunk"))}catch{}try{chunk||(chunk=dynamicRequire("./chunks/path-utils-chunk"))}catch{}}}catch{}if(chunk&&chunk.normalizePath)module.exports={normalizePath:chunk.normalizePath,getFileName:chunk.getFileName,getExtension:chunk.getExtension,getDirectory:chunk.getDirectory,joinPath:chunk.joinPath,getCacheKey:chunk.getCacheKey,getUriPath:chunk.getUriPath,getRelativePath:chunk.getRelativePath};else{let t=function(c=""){return c?c.replace(/\\/g,"/"):""},e=function(c=""){let d=t(c);return d?d.split("/").filter(Boolean):[]},r=function(c=""){let d=e(c);return d.length?d[d.length-1]:""},s=function(c=""){let d=r(c),y=d.lastIndexOf(".");return y<=0?"":d.substring(y).toLowerCase()},i=function(c=""){let d=t(c),y=d.lastIndexOf("/");return y===-1?"":d.substring(0,y)},o=function(...c){return t(c.filter(Boolean).join("/")).replace(/\/+/g,"/")},a=function(c=""){return t(c).toLowerCase()},l=function(c=""){if(!c)return"";if(typeof c=="string")return c;if(typeof c.fsPath=="string"&&c.fsPath.length>0)return c.fsPath;if(typeof c.path=="string"&&c.path.length>0)return c.path;if(typeof c.toString=="function")try{return c.toString(!0)}catch{return c.toString()}return String(c)},h=function(c="",d=""){let y=t(c),b=t(d);return y&&b.startsWith(y)?b.substring(y.length).replace(/^\/+/,""):b};normalizePath=t,getSegments=e,getFileName=r,getExtension=s,getDirectory=i,joinPath=o,getCacheKey=a,getUriPath=l,getRelativePath=h,module.exports={normalizePath:t,getFileName:r,getExtension:s,getDirectory:i,joinPath:o,getCacheKey:a,getUriPath:l,getRelativePath:h}}var normalizePath,getSegments,getFileName,getExtension,getDirectory,joinPath,getCacheKey,getUriPath,getRelativePath});var pe=g((Gt,ge)=>{var M=class extends Error{constructor(e,r,s={}){super(r),this.code=e,this.context=s,this.name="ExtensionError"}},de={FILE_PERMISSION_DENIED:"FILE_PERMISSION_DENIED",WORKSPACE_TOO_LARGE:"WORKSPACE_TOO_LARGE",CHUNK_LOAD_FAILED:"CHUNK_LOAD_FAILED"};function at(t){if(!t)return!1;let e=t.code||t?.name;return["EACCES","EPERM","EROFS","NoPermissions"].includes(e)}var Z=class extends M{constructor(e,r,s={}){let{recoverable:i=!0,context:o={}}=s;super(de.CHUNK_LOAD_FAILED,`Failed to load ${e}: ${r}`,{chunkName:e,recoverable:i,...o}),this.name="ChunkLoadError",this.chunkName=e,this.recoverable=i}};function ct(t,e,r={}){let s=require("vscode"),{userFacing:i=!0}=r,o=e?.recoverable??!0;i&&!o&&s.window.showErrorMessage(`Explorer Dates: ${t} feature unavailable. Please reinstall or rebuild the extension.`)}ge.exports={ExtensionError:M,ERROR_CODES:de,isPermissionError:at,ChunkLoadError:Z,handleChunkFailure:ct}});var Ee=g((Vt,be)=>{var me="EXPLORER_DATES_FORCE_VSCODE_FS";function ye(t,e=process.env){return String(e?.[t]||"")==="1"}function N(t){let e=t&&typeof t=="object"?t:null,r=String(e?.scheme||(typeof t=="string"&&/^[a-z][a-z0-9+.-]*:/i.test(t)?t.split(":",1)[0]:"file")).toLowerCase(),s=String(e?.authority||""),i=e?.path||e?.fsPath||(typeof t=="string"?t.replace(/^[a-z][a-z0-9+.-]*:\/\//i,""):"");return{scheme:r,authority:s,path:String(i||"")}}function lt({uri:t,isWeb:e=!1,remoteName:r="",forceWorkspaceFs:s=ye(me)}={}){let i=N(t),o=i.scheme!=="file",a=!!e,l=!!r,h=!!(s||a||l||o);return{scheme:i.scheme,authority:i.authority,isFileScheme:!o,isVirtual:o,isBrowser:a,isRemote:l,forceWorkspaceFs:!!s,filesystem:h?"workspace.fs":"node.fs",provider:o?i.scheme==="github"||i.scheme==="vscode-vfs"?"github":"virtual":"filesystem"}}function ke({uri:t,platform:e=process.platform,caseSensitive:r}={}){return typeof r=="boolean"?r:N(t).scheme!=="file"?!0:e!=="win32"}function ut(t,e={}){let r=N(t),s=r.path.replace(/\\/g,"/").replace(/\/+/g,"/"),i=`${r.scheme}://${r.authority}${s}`;return ke({uri:t,...e})?i:i.toLowerCase()}function X(t){if(t instanceof Date){let e=t.getTime();return Number.isFinite(e)?e:null}if(typeof t=="number")return Number.isFinite(t)?t:null;if(typeof t=="string"&&t.trim()){let e=Date.parse(t);return Number.isFinite(e)?e:null}return null}function ht(t){if(!t||typeof t!="object")return null;let e=X(t.mtime),r=X(t.ctime);return{...t,mtimeMs:e,ctimeMs:r}}be.exports={FORCE_WORKSPACE_FS_ENV:me,envFlag:ye,getUriParts:N,getEnvironmentContract:lt,isCaseSensitive:ke,resourceIdentity:ut,normalizeTimestamp:X,normalizeStat:ht}});var q=g((Zt,xe)=>{var f=require("vscode"),{isWebEnvironment:we}=V(),{normalizePath:ft}=fe(),{ExtensionError:dt,ERROR_CODES:gt,isPermissionError:pt}=pe(),{getEnvironmentContract:mt,normalizeStat:yt,FORCE_WORKSPACE_FS_ENV:kt}=Ee(),F;try{let t=T();t&&(F=t.ensureDate)}catch{}F||(F=G().ensureDate);var ve=typeof process<"u"&&process.env?process.env:{},_e=ve.VSCODE_WEB==="true"||we(),m=null;if(!_e)try{m=require("fs").promises}catch{m=null}var O=class{constructor(){this.isWeb=_e||we()}o(e){try{return mt({uri:this.n(e),isWeb:this.isWeb,remoteName:f.env?.remoteName,forceWorkspaceFs:ve[kt]==="1"}).filesystem==="workspace.fs"}catch{return!1}}s(e){if(!e)return"";if(typeof e=="string")return e;if(e&&typeof e=="object"&&typeof e.fsPath=="string")return e.fsPath;if(e&&typeof e=="object"&&typeof e.path=="string")return e.path;if(typeof e=="object"){if(typeof e.fsPath=="string")return e.fsPath;if(typeof e.path=="string")return e.path}return String(e)}n(e){if(e&&typeof e=="object"&&typeof e.scheme=="string"&&typeof e.path=="string")return e;if(typeof e=="string"){let r=e.trim(),s=/^[a-zA-Z]:[\\/]/.test(r);if(/^[a-zA-Z][a-zA-Z0-9+.-]*:/.test(r)&&!s){let o=f.Uri.parse(r);if(o.scheme&&o.scheme!=="file")return o}return f.Uri.file(e)}if(e&&typeof e=="object"){if(e.uri&&e.uri!==e)try{return this.n(e.uri)}catch{}if(this.isWeb&&typeof e.scheme=="string"&&typeof e.path=="string")return f.Uri.from({scheme:e.scheme,authority:e.authority||"",path:e.path||"",query:e.query||"",fragment:e.fragment||""});if(typeof e.fsPath=="string"&&e.fsPath.length>0)return f.Uri.file(e.fsPath);if(typeof e.path=="string"&&e.path.length>0)return this.isWeb&&typeof e.scheme=="string"&&e.scheme!=="file"?f.Uri.from({scheme:e.scheme,authority:e.authority||"",path:e.path,query:e.query||"",fragment:e.fragment||""}):f.Uri.file(e.path);if(typeof e.href=="string"&&e.href.length>0)return f.Uri.parse(e.href);if(typeof e.scheme=="string")return f.Uri.from({scheme:e.scheme,authority:e.authority||"",path:e.path||e.fsPath||"",query:e.query||"",fragment:e.fragment||""});if(typeof e.toString=="function")try{let r=e.toString(!0);if(r&&r!=="[object Object]")return f.Uri.parse(r)}catch{let r=e.toString();if(r&&r!=="[object Object]")return f.Uri.parse(r)}}throw new Error(`Unsupported target type: ${typeof e}`)}async stat(e){let r=this.o(e);if(!this.isWeb&&m&&!r)return m.stat(this.s(e));let s=this.n(e),i=await f.workspace.fs.stat(s),o=yt(i);return{...o,mtime:o.mtimeMs===null?F(i.mtime):new Date(o.mtimeMs),ctime:o.ctimeMs===null?F(i.ctime):new Date(o.ctimeMs),birthtime:o.ctimeMs===null?F(i.ctime):new Date(o.ctimeMs),isFile:()=>i.type===f.FileType.File,isDirectory:()=>i.type===f.FileType.Directory}}async readFile(e,r="utf8"){let s=this.o(e);if(!this.isWeb&&m&&!s)return m.readFile(this.s(e),r);let i=this.n(e),o=await f.workspace.fs.readFile(i);return r===null||r==="binary"?o:new TextDecoder(r).decode(o)}async writeFile(e,r,s="utf8"){let i=this.s(e);try{let o=this.o(e);if(!this.isWeb&&m&&!o)return m.writeFile(i,r,s);let a=this.n(e),l=typeof r=="string"?new TextEncoder().encode(r):r;await f.workspace.fs.writeFile(a,l)}catch(o){this.w("write file",i,o)}}async rename(e,r,s={overwrite:!1}){let i=this.s(e),o=this.s(r);try{let a=this.o(e)||this.o(r);if(!this.isWeb&&m&&!a)return m.rename(i,o);if(typeof f.workspace.fs.rename=="function")await f.workspace.fs.rename(this.n(e),this.n(r),s);else if(this.n(e).scheme==="file"&&this.n(r).scheme==="file")await(m||require("fs").promises).rename(i,o);else throw new Error("The active filesystem provider cannot rename report output.")}catch(a){this.w("rename file",`${i} -> ${o}`,a)}}async mkdir(e,r={recursive:!0}){let s=this.s(e);try{let i=this.o(e);if(!this.isWeb&&m&&!i)return m.mkdir(s,r);let o=this.n(e);await f.workspace.fs.createDirectory(o)}catch(i){this.w("create directory",s,i)}}async readdir(e,r={withFileTypes:!1}){let s=this.o(e);if(!this.isWeb&&m&&!s)return m.readdir(this.s(e),r);let i=this.n(e),o=await f.workspace.fs.readDirectory(i);return r.withFileTypes?o.map(([a,l])=>({name:a,isDirectory:()=>l===f.FileType.Directory,isFile:()=>l===f.FileType.File})):o.map(([a])=>a)}async delete(e,r={recursive:!1}){let s=this.o(e);if(!this.isWeb&&m&&!s){let o=this.s(e);return r.recursive?m.rm?m.rm(o,r):m.rmdir(o,r):m.unlink(o)}let i=this.n(e);await f.workspace.fs.delete(i,r)}async exists(e){try{return await this.stat(e),!0}catch{return!1}}async ensureDirectory(e){let r=ft(this.s(e));await this.mkdir(r,{recursive:!0})}w(e,r,s){throw pt(s)?new dt(gt.FILE_PERMISSION_DENIED,`Permission denied while attempting to ${e}`,{path:r,code:s.code}):s}},bt=new O;xe.exports={FileSystemAdapter:O,fileSystem:bt}});var Fe=g((Xt,Ce)=>{var D=typeof process<"u"&&process.env?process.env:{},Et=12e4,wt=1e4,vt=1440*60*1e3,_t=2,xt=["Ja","Fe","Mr","Ap","My","Jn","Jl","Au","Se","Oc","No","De"],St=Number(D.EXPLORER_DATES_DECORATION_POOL_SIZE||2048),Ct=Number(D.EXPLORER_DATES_FLYWEIGHT_CACHE_SIZE||4096),Ft=Number(D.EXPLORER_DATES_WORKSPACE_BALANCED_THRESHOLD||15e3),Dt=Number(D.EXPLORER_DATES_WORKSPACE_LARGE_THRESHOLD||25e4),Se=Number(D.EXPLORER_DATES_WORKSPACE_EXTREME_THRESHOLD||4e5),Pt=Number(D.EXPLORER_DATES_WORKSPACE_SCAN_MAX_RESULTS||Math.min(Se+1,50001)),At={ADVANCED_CACHE:"explorerDates.advancedCache",ADVANCED_CACHE_METADATA:"explorerDates.advancedCacheMetadata",TEMPLATE_STORE:"explorerDates.templates",WEB_GIT_NOTICE:"explorerDates.webGitNotice"},Rt="explorerDatesChunks",Lt="__explorerDatesChunks";Ce.exports={DEFAULT_CACHE_TIMEOUT:Et,DEFAULT_MAX_CACHE_SIZE:wt,DEFAULT_PERSISTENT_CACHE_TTL:vt,DEFAULT_DECORATION_POOL_SIZE:St,DEFAULT_FLYWEIGHT_CACHE_SIZE:Ct,MAX_BADGE_LENGTH:_t,MONTH_ABBREVIATIONS:xt,WORKSPACE_SCALE_BALANCED_THRESHOLD:Ft,WORKSPACE_SCALE_LARGE_THRESHOLD:Dt,WORKSPACE_SCALE_EXTREME_THRESHOLD:Se,WORKSPACE_SCAN_MAX_RESULTS:Pt,GLOBAL_STATE_KEYS:At,WEB_CHUNK_GLOBAL_KEY:Rt,LEGACY_WEB_CHUNK_GLOBAL_KEY:Lt}});var Y=g((exports,module)=>{var{getLogger}=E(),env=typeof process<"u"&&process.env?process.env:{};function createFallbackVscodeMinimal(){return{workspace:{workspaceFolders:[],getConfiguration:()=>({get:()=>{},async update(){},inspect:()=>({defaultValue:void 0,globalValue:void 0,workspaceValue:void 0,workspaceFolderValue:void 0})})},ConfigurationTarget:{Global:1,Workspace:2,WorkspaceFolder:3}}}function resolveVscodeMinimal(){try{return require("vscode")}catch{return createFallbackVscodeMinimal()}}var MinimalSettingsCoordinator=class{constructor(e={}){this.q=e.defaultSection||"explorerDates",this.b=new Map,this.D=new Map,this.ee=Number(env.EXPLORER_DATES_LOCK_WAIT_WARN_MS||1e3),this._logger=getLogger()}z(e,r){let i=(this.b.get(e)||Promise.resolve()).then(()=>r()),o=i.catch(()=>{});return this.b.set(e,o),i.finally(()=>{this.b.get(e)===o&&this.b.delete(e)}),i}v(e,r){return resolveVscodeMinimal().workspace.getConfiguration(e||void 0,r)}d(e,r){let s=r||this.q;return s?e.startsWith(`${s}.`)?{section:s,key:e.slice(s.length+1),fullKey:e}:e.includes(".")?{section:void 0,key:e,fullKey:e}:{section:s,key:e,fullKey:`${s}.${e}`}:{section:void 0,key:e,fullKey:e}}async updateSetting(e,r,s={}){return this.z(this.d(e,s.section).fullKey,async()=>{let i=this.d(e,s.section),o=this.v(i.section,s.resource);try{let a=this.K(s.scope,s.resource);return await o.update(i.key,r,a),{key:i.fullKey,updated:!0}}catch(a){try{this._logger.warn(`Configuration update failed for ${i.fullKey}: ${a&&a.message}`)}catch{}return{key:i.fullKey,updated:!1,error:a}}})}async applySettings(e,r={}){let s=Array.isArray(e)?e:Object.entries(e).map(([a,l])=>({key:a,value:l})),i=[];for(let a of s)try{i.push(await this.updateSetting(a.key,a.value,r))}catch(l){i.push({key:this.d(a.key,r.section).fullKey,updated:!1,error:l})}let o=i.filter(a=>a&&a.error);if(o.length>0){let a=o.map(h=>`${h.key}: ${h.error&&h.error.message?h.error.message:String(h.error)}`),l=new Error(`Failed to apply ${o.length} setting(s): ${a.join("; ")}`);throw l.details=o,l}return i}K(e,r){return e&&e!=="auto"?this.U(e)||resolveVscodeMinimal().ConfigurationTarget.Workspace:r?resolveVscodeMinimal().ConfigurationTarget.WorkspaceFolder:resolveVscodeMinimal().workspace.workspaceFolders&&resolveVscodeMinimal().workspace.workspaceFolders.length>0?resolveVscodeMinimal().ConfigurationTarget.Workspace:resolveVscodeMinimal().ConfigurationTarget.Global}U(e){switch(e){case"user":return resolveVscodeMinimal().ConfigurationTarget.Global;case"workspace":return resolveVscodeMinimal().ConfigurationTarget.Workspace;case"workspaceFolder":return resolveVscodeMinimal().ConfigurationTarget.WorkspaceFolder;default:return}}getValue(e,r={}){let{section:s,resource:i}=r||{},o=this.d(e,s);return this.v(o.section,i).get(o.key)}inspect(e,r={}){let{section:s,resource:i}=r||{},o=this.d(e,s);return this.v(o.section,i).inspect(o.key)}async clearSetting(e,r={}){return this.updateSetting(e,void 0,r)}getLockWaitStats(){let e={};for(let[r,s]of this.D.entries())e[r]={...s};return e}resetLockWaitStats(){this.D.clear()}},cachedCoordinator=null;function getSettingsCoordinator(options){if(!cachedCoordinator||options&&options.forceNew){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let t=null;try{t=dynamicRequire("../chunks/settings-coordinator-impl-chunk")}catch{}try{t||(t=dynamicRequire("../chunks/settingsCoordinator-impl-chunk"))}catch{}if(t&&typeof t.createSettingsCoordinatorImpl=="function")return cachedCoordinator=t.createSettingsCoordinatorImpl(options),cachedCoordinator}}catch{}try{let{WEB_CHUNK_GLOBAL_KEY:t,LEGACY_WEB_CHUNK_GLOBAL_KEY:e}=Fe(),r=typeof globalThis<"u"&&(globalThis[t]||globalThis[e])||null;if(r&&r.settingsCoordinatorImpl&&typeof r.settingsCoordinatorImpl.createSettingsCoordinatorImpl=="function")return cachedCoordinator=r.settingsCoordinatorImpl.createSettingsCoordinatorImpl(options),cachedCoordinator}catch{}cachedCoordinator=new MinimalSettingsCoordinator(options)}return cachedCoordinator}module.exports={getSettingsCoordinator,MinimalSettingsCoordinator}});var De=g((Yt,It)=>{It.exports=["node_modules",".npm",".yarn","coverage","nyc_output","dist","build","out","target","bin","obj",".vscode",".idea",".vs",".vscode-test",".git",".svn",".hg",".bzr",".pnpm-store","bower_components","jspm_packages","tmp","temp",".tmp",".cache",".parcel-cache",".DS_Store","Thumbs.db","__pycache__",".pytest_cache",".tox","venv",".env",".virtualenv","vendor",".docker","logs","*.log"]});var Pe=g((exports,module)=>{var normalizePath,getRelativePath,getFileName;try{let t=T();t&&(normalizePath=t.normalizePath,getRelativePath=t.getRelativePath,getFileName=t.getFileName)}catch{}if(!normalizePath){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function")try{let t=dynamicRequire("../utils/pathUtils");normalizePath=normalizePath||t.normalizePath,getRelativePath=getRelativePath||t.getRelativePath,getFileName=getFileName||t.getFileName}catch{}}catch{}normalizePath||(normalizePath=(t="")=>(t||"").toString().replace(/\\/g,"/")),getRelativePath||(getRelativePath=(t,e)=>{let r=(t||"")+"",s=(e||"")+"";return r&&s.startsWith(r)?s.substring(r.length).replace(/^\/+/,""):s}),getFileName||(getFileName=t=>{let e=String(t||""),r=e.replace(/\\/g,"/").lastIndexOf("/");return r===-1?e:e.substring(r+1)})}async function scanForExclusionCandidates(t,e,r,s,i=2){let o=[],a=async(l,h=0)=>{if(!(h>i))try{let c=await r.readdir(l,{withFileTypes:!0});for(let d of c)if(d.isDirectory()){let y=require("vscode").Uri.joinPath(l,d.name),b=normalizePath(y.fsPath||y.path),x=getRelativePath(e,b),H=await _getDirectorySize(r,y,s);o.push({name:d.name,path:x,type:"directory",size:H}),await a(y,h+1)}}catch(c){s&&s.debug&&s.debug("Skipping directory during scan",c&&c.message)}};return await a(t),o}async function _getDirectorySize(t,e,r){let s=e;typeof t=="object"&&t&&typeof t.fsPath=="string"&&!e&&(s=q().fileSystem);try{let i=await s.readdir(t,{withFileTypes:!0}),o=0,a=0;for(let l of i){if(a>100)break;if(l.isFile())try{let h=require("vscode").Uri.joinPath(t,l.name),c=await s.stat(h);o+=c.size,a++}catch(h){r&&r.debug&&r.debug("Skipping file in size calc",h&&h.message)}}return o}catch{return 0}}module.exports={scanForExclusionCandidates}});var P=g((Jt,Ie)=>{var z=require("vscode"),{fileSystem:L}=q(),{getLogger:Tt}=E(),{getSettingsCoordinator:Ae}=Y(),Re=Tt();async function Wt(t){let e=t&&z.Uri.joinPath(t,".vscode","explorer-dates-exclusions.json")||null;if(!e)return null;try{let r=await L.readFile(e,"utf8"),s=JSON.parse(r);return Array.isArray(s)?Array.from(new Set(s.filter(Boolean))):Array.isArray(s?.exclusions)?Array.from(new Set(s.exclusions.filter(Boolean))):null}catch(r){return r?.code==="ENOENT"||r?.name==="EntryNotFound"||(r?.message||"").includes("ENOENT")||Re.warn("Failed to read workspace exclusions file",{error:r?.message}),null}}async function Le(t,e){if(!t)return;let r=z.Uri.joinPath(t,".vscode");await L.ensureDirectory(r);let s=z.Uri.joinPath(r,"explorer-dates-exclusions.json"),i={version:1,updatedAt:new Date().toISOString(),exclusions:e};await L.writeFile(s,JSON.stringify(i,null,2))}async function Mt(t,e){let r=Ae(),s=t&&(t.fsPath||t.path)||"unknown-workspace",i=r.getValue("workspaceExclusionProfiles")||{},o=Array.isArray(i[s])?Array.from(new Set(i[s].filter(Boolean))):[];return o.length?(e&&(await Le(e,o),delete i[s],await r.updateSetting("workspaceExclusionProfiles",i,{scope:"user",reason:"workspace-exclusion-migration"}),Re.info(`Migrated workspace exclusions for ${s} to workspace settings file`)),o):null}async function Nt(t){let e=Ae(),r=t&&(t.fsPath||t.path)||"unknown-workspace",s=e.getValue("workspaceExclusionProfiles")||{};r in s&&(delete s[r],await e.updateSetting("workspaceExclusionProfiles",s,{scope:"user",reason:"workspace-exclusion-migration"}))}async function Ot(t){try{let e=await L.readdir(t,{withFileTypes:!0}),r=0,s=0;for(let i of e){if(s>100)break;if(i.isFile()){try{let o=await L.stat(z.Uri.joinPath(t,i.name));r+=o.size}catch{}s++}}return r}catch{return 0}}Ie.exports={readWorkspaceExclusionsFile:Wt,writeWorkspaceExclusionsFile:Le,migrateLegacyExclusions:Mt,removeLegacyProfile:Nt,getDirectorySize:Ot}});var Te=g((exports,module)=>{var vscode=require("vscode"),getLogger=()=>{try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let t=dynamicRequire("./chunks/logger-chunk");if(t&&typeof t.getLogger=="function")return getLogger=t.getLogger,getLogger()}}catch{}try{return getLogger=E().getLogger,getLogger()}catch{return getLogger=()=>({debug:(()=>{})?.bind(console)||console.log,info:(()=>{}).bind(console),warn:(()=>{}).bind(console),error:(()=>{}).bind(console)}),getLogger()}},logger=getLogger();function scorePatterns(t,e){return t.map(r=>{let s=0,i="low";switch(r.type==="common"&&(s+=.8),r.size>100*1024*1024?(s+=.9,i="high"):r.size>10*1024*1024&&(s+=.5,i="medium"),e){case"javascript":["node_modules",".npm","coverage","dist","build"].includes(r.name)&&(s+=.9);break;case"python":["__pycache__",".pytest_cache","venv",".env"].includes(r.name)&&(s+=.9);break;case"java":["target","build",".gradle"].includes(r.name)&&(s+=.9);break}return["src","lib","app","components","pages"].includes(r.name.toLowerCase())&&(s=0,i="none"),{pattern:r.name,path:r.path,score:Math.min(s,1),riskLevel:i,size:r.size,type:r.type}})}function escapeHtml(t){return String(t||"").replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}function formatSize(t){if(t<1024)return`${t} B`;let e=t/1024;return e<1024?`${e.toFixed(1)} KB`:`${(e/1024).toFixed(1)} MB`}function generateReviewHTML(t){let e=s=>{let i=s.analysis,o=(i?.detectedPatterns||[]).map(a=>` ${escapeHtml(a.name)} ${escapeHtml(a.path)} @@ -39,4 +39,4 @@ var ze=Object.create;var te=Object.defineProperty;var Ke=Object.getOwnPropertyDe })); - `}function _createPanel(t){return vscode.window.createWebviewPanel("exclusionReview",t,vscode.ViewColumn.One,{enableScripts:!0,retainContextWhenHidden:!0})}async function showExclusionReviewSingle(t,e){try{let r=_createPanel("Smart Exclusion Review");r.webview.html=generateReviewHTML([{workspaceKey:"single-workspace",workspaceName:"Workspace",analysis:e,previous:[]}])}catch(r){throw logger.error("Failed to show single exclusion review",r),r}}async function showExclusionReviewBulk(t,e){try{if(!Array.isArray(e)||e.length===0)return;let r=_createPanel("Smart Exclusion Review");r.webview.onDidReceiveMessage(async s=>{if(s?.type==="save"&&s.workspaceKey&&s.name){let i=e.find(l=>l.workspaceKey===s.workspaceKey);if(!i?.workspaceUri)return;let o=i.analysis?.suggestedExclusions||[],a=new Set(o);s.checked?a.add(s.name):a.delete(s.name),await t.saveWorkspaceExclusions(i.workspaceUri,Array.from(a)),r.webview.postMessage({type:"saved",workspaceKey:s.workspaceKey})}}),r.webview.html=generateReviewHTML(e)}catch(r){throw logger.error("Failed to show bulk exclusion review",r),r}}module.exports={scorePatterns,generateReviewHTML,showExclusionReviewSingle,showExclusionReviewBulk}});var I=d((Qt,We)=>{var K=Te();We.exports={scorePatterns:K.scorePatterns,generateReviewHTML:K.generateReviewHTML,showExclusionReviewSingle:K.showExclusionReviewSingle,showExclusionReviewBulk:K.showExclusionReviewBulk}});var U=d((exports,module)=>{var vscode=require("vscode"),getLogger=()=>{try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let t=dynamicRequire("./chunks/logger-chunk");if(t&&typeof t.getLogger=="function")return getLogger=t.getLogger,getLogger()}}catch{}try{return getLogger=E().getLogger,getLogger()}catch{return getLogger=()=>({debug:(()=>{})?.bind(console)||console.log,info:(()=>{}).bind(console),warn:(()=>{}).bind(console),error:(()=>{}).bind(console)}),getLogger()}},{fileSystem}=q(),normalizePath=v=>{try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let t=dynamicRequire("./chunks/path-utils-chunk");if(t&&typeof t.normalizePath=="function")return normalizePath=t.normalizePath,normalizePath(v)}}catch{}return String(v||"").replace(/\\/g,"/")},getFileName=p=>{try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let t=dynamicRequire("./chunks/path-utils-chunk");if(t&&typeof t.getFileName=="function")return getFileName=t.getFileName,getFileName(p)}}catch{}let n=String(p||"").replace(/\\/g,"/"),idx=n.lastIndexOf("/");return idx===-1?n:n.substring(idx+1)},{getSettingsCoordinator}=Y(),SmartExclusionManager=class{constructor(){this._logger=getLogger(),this.P=fileSystem,this.te=getSettingsCoordinator(),this.g=null,this.re=new Map,this.A=new Map,this.H="explorer-dates-exclusions.json",this.ne="workspaceExclusionProfiles",this._logger.info("SmartExclusionManager initialized"),this.R=!1}async B(){if(this.R&&Array.isArray(this.g))return this.g;try{let e=await Promise.resolve().then(()=>k(De()));this.g=e&&e.default?e.default:e}catch{this.g=["node_modules","dist","build",".git"]}return this.R=!0,this.g}async cleanupAllWorkspaceProfiles(){let e=vscode.workspace.workspaceFolders||[];if(e.length===0){this._logger.debug("No workspace folders available for exclusion cleanup");return}let r=0;for(let s of e)try{let i=s.uri;await this.L(s.uri,i)&&r++}catch(i){this._logger.warn(`Failed to migrate exclusions for ${s.name}`,i)}r>0?this._logger.info("Migrated workspace exclusion profiles to workspace storage",{workspaces:r}):this._logger.debug("No legacy workspace exclusion profiles required migration")}async analyzeWorkspace(e){try{let r=normalizePath(e?.fsPath||e?.path||""),s={detectedPatterns:[],suggestedExclusions:[],projectType:"unknown",riskFolders:[]};await this.B(),s.projectType=await this.$(e);let o=await(await Promise.resolve().then(()=>k(Pe()))).scanForExclusionCandidates(e,r,this.P,this._logger),a=this.j(o,s.projectType);return s.detectedPatterns=o,s.suggestedExclusions=a.filter(l=>l.score>.7).map(l=>l.pattern),s.riskFolders=a.filter(l=>l.riskLevel==="high").map(l=>l.pattern),this.A.set(r,s),this._logger.info(`Workspace analysis complete for ${r}`,s),s}catch(r){return this._logger.error("Failed to analyze workspace",r),null}}async $(e){let r=[{file:"package.json",type:"javascript"},{file:"pom.xml",type:"java"},{file:"Cargo.toml",type:"rust"},{file:"setup.py",type:"python"},{file:"requirements.txt",type:"python"},{file:"Gemfile",type:"ruby"},{file:"composer.json",type:"php"},{file:"go.mod",type:"go"},{file:"CMakeLists.txt",type:"cpp"},{file:"Dockerfile",type:"docker"}];if(!e)return"unknown";for(let s of r)try{let i=vscode.Uri.joinPath(e,s.file);if(await this.P.exists(i))return s.type}catch{}return"unknown"}async se(e){return(await Promise.resolve().then(()=>k(P()))).getDirectorySize(e)}async j(e,r){return(await Promise.resolve().then(()=>k(I()))).scorePatterns(e,r)}async getWorkspaceExclusions(e){let r=this.I(e);if(!r)return this._logger.debug("No workspace root for exclusions lookup"),[];let s=await this.T(r);return s||await this.L(e,r)||[]}async saveWorkspaceExclusions(e,r){let s=this.I(e);if(!s){this._logger.warn("Cannot save workspace exclusions without a workspace root");return}let i=this.E(r),o=await this.T(s);if(o&&this.G(o,i)){this._logger.debug("Workspace exclusions already up to date",{workspace:this.u(e)});return}await this.V(s,i),await this.Z(e),this._logger.info(`Saved workspace exclusions for ${this.u(e)}`,i)}async getCombinedExclusions(e){let r=vscode.workspace.getConfiguration("explorerDates"),s=r.get("excludedFolders",[]),i=r.get("excludedPatterns",[]),o=r.get("smartExclusions",!0),a=[...s],l=[...i],h=await this.getWorkspaceExclusions(e);if(a.push(...h),o){let c=this.A.get(e&&(e.fsPath||e.path)||"unknown-workspace");c&&c.suggestedExclusions&&c.suggestedExclusions.length?a.push(...c.suggestedExclusions):this.analyzeWorkspace(e).catch(()=>{})}return a=[...new Set(a)],l=[...new Set(l)],{folders:a,patterns:l}}u(e){if(!e)return"unknown-workspace";let r=e.fsPath||e.path||"";return getFileName(r)||normalizePath(r)}async suggestExclusions(e){let r=await this.analyzeWorkspace(e),s=this.E(r?.suggestedExclusions||[]);if(!r||s.length===0)return;let i=await this.getWorkspaceExclusions(e),o=s.filter(c=>!i.includes(c));if(o.length===0){this._logger.debug("No new smart exclusions detected",{workspace:this.u(e)});return}let a=this.W(i,o);await this.saveWorkspaceExclusions(e,a);let l=o.length===1?`Explorer Dates automatically excluded "${o[0]}" to keep Explorer responsive.`:`Explorer Dates automatically excluded ${o.length} folders to keep Explorer responsive.`,h=await vscode.window.showInformationMessage(`${l} Keep these exclusions?`,"Keep","Review","Revert");h==="Revert"?(await this.saveWorkspaceExclusions(e,i),vscode.window.showInformationMessage("Smart exclusions reverted. Decorations will refresh for the restored folders."),this._logger.info("User reverted smart exclusions",{reverted:o})):h==="Review"?(this.X(r),this._logger.info("User reviewing smart exclusions",{pending:o})):this._logger.info("User kept smart exclusions",{accepted:o})}async suggestExclusionsBulk(e=[]){if(!e.length)return;let r=[],s=[],i=[],o=0;for(let c of e){let f=await this.analyzeWorkspace(c.uri),m=this.E(f?.suggestedExclusions||[]);if(!f||m.length===0)continue;let b=await this.getWorkspaceExclusions(c.uri),x=m.filter(qe=>!b.includes(qe));if(x.length===0){this._logger.debug("No new smart exclusions detected",{workspace:this.u(c.uri)});continue}let H=this.W(b,x);await this.saveWorkspaceExclusions(c.uri,H),r.push({workspace:c.name,added:x}),s.push({uri:c.uri,previous:b}),i.push({workspaceKey:this.u(c.uri),workspaceName:this.M(c.uri),workspaceUri:c.uri,analysis:f,previous:b}),o+=x.length}if(o===0)return;let a=r.length,l=o===1?`Explorer Dates automatically excluded "${r[0].added[0]}" to keep Explorer responsive.`:`Explorer Dates automatically excluded ${o} folders across ${a} workspace${a===1?"":"s"} to keep Explorer responsive.`,h=await vscode.window.showInformationMessage(`${l} Keep these exclusions?`,"Keep","Review","Revert");if(h==="Revert"){for(let c of s)await this.saveWorkspaceExclusions(c.uri,c.previous);vscode.window.showInformationMessage("Smart exclusions reverted. Decorations will refresh for the restored folders."),this._logger.info("User reverted smart exclusions",{workspaces:a,reverted:o})}else h==="Review"&&i.length?(this.Y(i),this._logger.info("User reviewing smart exclusions",{pending:o,workspaces:a})):this._logger.info("User kept smart exclusions",{accepted:o,workspaces:a})}M(e){if(!e)return"Workspace";let s=(e.fsPath||e.path||"").split(/[\\/]/).filter(Boolean);return s[s.length-1]||"Workspace"}ie(e,r,s){let i=[];for(let o=0;ok(P()))).readWorkspaceExclusionsFile(e)}async V(e,r){return(await Promise.resolve().then(()=>k(P()))).writeWorkspaceExclusionsFile(e,r)}async L(e,r){return(await Promise.resolve().then(()=>k(P()))).migrateLegacyExclusions(e,r)}async Z(e){return(await Promise.resolve().then(()=>k(P()))).removeLegacyProfile(e)}E(e=[]){return Array.from(new Set(e.filter(Boolean)))}W(e=[],r=[]){return this.E([...e||[],...r||[]])}G(e=[],r=[]){return e.length!==r.length?!1:e.every((s,i)=>s===r[i])}async X(e){return(await Promise.resolve().then(()=>k(I()))).showExclusionReviewSingle(this,e)}async Y(e){return(await Promise.resolve().then(()=>k(I()))).showExclusionReviewBulk(this,e)}ae(e){return Promise.resolve().then(()=>k(I())).then(r=>r.generateReviewHTML(e))}};module.exports={SmartExclusionManager}});var Ne=d((er,Me)=>{var{IncrementalIndexer:qt}=R();Me.exports={IncrementalIndexer:qt,async getSmartExclusionManagerConstructor(){try{return(await Promise.resolve().then(()=>k(U()))).SmartExclusionManager}catch{return null}}}});var _=null,A=null,{getLogger:zt}=E(),{getFeatureFlagsGlobal:Kt}=j();async function Oe(){try{if(!_||!A){let t=await Promise.resolve().then(()=>k(Ne()));_=t.IncrementalIndexer,typeof t.getSmartExclusionManagerConstructor=="function"?A=await t.getSmartExclusionManagerConstructor()||null:A=t.SmartExclusionManager||null}}catch{try{if(!_){let t=Kt(),e=t?await t.loadFeatureModule("incrementalIndexer"):null;e&&e.IncrementalIndexer?_=e.IncrementalIndexer:_=(await Promise.resolve().then(()=>k(R()))).IncrementalIndexer}}catch{_=(await Promise.resolve().then(()=>k(R()))).IncrementalIndexer}A||(A=(await Promise.resolve().then(()=>k(U()))).SmartExclusionManager)}}var J=class{constructor(e){this._fileSystem=e,this._logger=zt(),this.r=null,this.e=null,this.p=!1}async initialize(e={}){if(this.p)return;let{batchProcessor:r,enableProgressiveAnalysis:s}=e,i=!!r?.processDirectoryProgressively;this.r||(await Oe(),this.r=new _(this._fileSystem)),await this.r.initialize({batchProcessor:i?r:null,enableProgressiveAnalysis:s}),r&&!i&&this._logger.warn("BatchProcessor missing progressive API; workspace indexing disabled"),this.e||(await Oe(),this.e=new A),this.p=!0,this._logger.info("Workspace intelligence components initialized")}async analyzeWorkspace(e,r={}){if(!(!this.p||!e?.length))try{if(this.r?.startInitialIndex&&(await this.r.startInitialIndex(e,{maxFiles:r.maxFiles||2e3}),this._logger.info("Workspace indexing started")),this.e)try{await this.e.suggestExclusionsBulk(e),this._logger.info("Smart exclusions analyzed for all workspace folders",{workspaces:e.length})}catch(s){this._logger.error("Failed to analyze smart exclusions for workspace folders",s)}}catch(s){this._logger.error("Failed to analyze workspace",s)}}async cleanupWorkspaceProfiles(){if(this.e)try{await this.e.cleanupAllWorkspaceProfiles()}catch(e){this._logger.warn("Failed to clean workspace exclusion profiles",e)}}async enableProgressiveAnalysis(){return this.r?this.r.enableProgressiveAnalysis():null}disableProgressiveAnalysis(){this.r&&this.r.disableProgressiveAnalysis()}getMetrics(){let e={};return this.r?.getMetrics&&(e.incrementalIndexer=this.r.getMetrics()),this.e?.getMetrics&&(e.smartExclusion=this.e.getMetrics()),e}async onWorkspaceFoldersChanged(e){if(this.p&&(e.added?.length&&await this.analyzeWorkspace(e.added),e.removed?.length&&this.e))for(let r of e.removed)try{await this.e.removeWorkspaceProfile(r.uri)}catch(s){this._logger.warn(`Failed to remove workspace profile for ${r.name}`,s)}}shouldExclude(e){return this.e?this.e.shouldExclude(e):!1}getExclusionPatterns(e){return this.e?this.e.getExclusionPatterns(e):[]}dispose(){this.r?.dispose&&this.r.dispose(),this.e?.dispose&&this.e.dispose(),this.p=!1,this._logger.debug("Workspace intelligence components disposed")}get incrementalIndexer(){return this.r}get smartExclusion(){return this.e}},Q=null,ee=null;try{Q=R().IncrementalIndexer}catch{Q=null}try{ee=U().SmartExclusionManager}catch{ee=null}module.exports={WorkspaceIntelligenceManager:J,IncrementalIndexer:Q,SmartExclusionManager:ee}; + `}function _createPanel(t){return vscode.window.createWebviewPanel("exclusionReview",t,vscode.ViewColumn.One,{enableScripts:!0,retainContextWhenHidden:!0})}async function showExclusionReviewSingle(t,e){try{let r=_createPanel("Smart Exclusion Review");r.webview.html=generateReviewHTML([{workspaceKey:"single-workspace",workspaceName:"Workspace",analysis:e,previous:[]}])}catch(r){throw logger.error("Failed to show single exclusion review",r),r}}async function showExclusionReviewBulk(t,e){try{if(!Array.isArray(e)||e.length===0)return;let r=_createPanel("Smart Exclusion Review");r.webview.onDidReceiveMessage(async s=>{if(s?.type==="save"&&s.workspaceKey&&s.name){let i=e.find(l=>l.workspaceKey===s.workspaceKey);if(!i?.workspaceUri)return;let o=i.analysis?.suggestedExclusions||[],a=new Set(o);s.checked?a.add(s.name):a.delete(s.name),await t.saveWorkspaceExclusions(i.workspaceUri,Array.from(a)),r.webview.postMessage({type:"saved",workspaceKey:s.workspaceKey})}}),r.webview.html=generateReviewHTML(e)}catch(r){throw logger.error("Failed to show bulk exclusion review",r),r}}module.exports={scorePatterns,generateReviewHTML,showExclusionReviewSingle,showExclusionReviewBulk}});var I=g((Qt,We)=>{var K=Te();We.exports={scorePatterns:K.scorePatterns,generateReviewHTML:K.generateReviewHTML,showExclusionReviewSingle:K.showExclusionReviewSingle,showExclusionReviewBulk:K.showExclusionReviewBulk}});var U=g((exports,module)=>{var vscode=require("vscode"),getLogger=()=>{try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let t=dynamicRequire("./chunks/logger-chunk");if(t&&typeof t.getLogger=="function")return getLogger=t.getLogger,getLogger()}}catch{}try{return getLogger=E().getLogger,getLogger()}catch{return getLogger=()=>({debug:(()=>{})?.bind(console)||console.log,info:(()=>{}).bind(console),warn:(()=>{}).bind(console),error:(()=>{}).bind(console)}),getLogger()}},{fileSystem}=q(),normalizePath=v=>{try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let t=dynamicRequire("./chunks/path-utils-chunk");if(t&&typeof t.normalizePath=="function")return normalizePath=t.normalizePath,normalizePath(v)}}catch{}return String(v||"").replace(/\\/g,"/")},getFileName=p=>{try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let t=dynamicRequire("./chunks/path-utils-chunk");if(t&&typeof t.getFileName=="function")return getFileName=t.getFileName,getFileName(p)}}catch{}let n=String(p||"").replace(/\\/g,"/"),idx=n.lastIndexOf("/");return idx===-1?n:n.substring(idx+1)},{getSettingsCoordinator}=Y(),SmartExclusionManager=class{constructor(){this._logger=getLogger(),this.P=fileSystem,this.te=getSettingsCoordinator(),this.g=null,this.re=new Map,this.A=new Map,this.H="explorer-dates-exclusions.json",this.ne="workspaceExclusionProfiles",this._logger.info("SmartExclusionManager initialized"),this.R=!1}async B(){if(this.R&&Array.isArray(this.g))return this.g;try{let e=await Promise.resolve().then(()=>k(De()));this.g=e&&e.default?e.default:e}catch{this.g=["node_modules","dist","build",".git"]}return this.R=!0,this.g}async cleanupAllWorkspaceProfiles(){let e=vscode.workspace.workspaceFolders||[];if(e.length===0){this._logger.debug("No workspace folders available for exclusion cleanup");return}let r=0;for(let s of e)try{let i=s.uri;await this.L(s.uri,i)&&r++}catch(i){this._logger.warn(`Failed to migrate exclusions for ${s.name}`,i)}r>0?this._logger.info("Migrated workspace exclusion profiles to workspace storage",{workspaces:r}):this._logger.debug("No legacy workspace exclusion profiles required migration")}async analyzeWorkspace(e){try{let r=normalizePath(e?.fsPath||e?.path||""),s={detectedPatterns:[],suggestedExclusions:[],projectType:"unknown",riskFolders:[]};await this.B(),s.projectType=await this.$(e);let o=await(await Promise.resolve().then(()=>k(Pe()))).scanForExclusionCandidates(e,r,this.P,this._logger),a=this.j(o,s.projectType);return s.detectedPatterns=o,s.suggestedExclusions=a.filter(l=>l.score>.7).map(l=>l.pattern),s.riskFolders=a.filter(l=>l.riskLevel==="high").map(l=>l.pattern),this.A.set(r,s),this._logger.info(`Workspace analysis complete for ${r}`,s),s}catch(r){return this._logger.error("Failed to analyze workspace",r),null}}async $(e){let r=[{file:"package.json",type:"javascript"},{file:"pom.xml",type:"java"},{file:"Cargo.toml",type:"rust"},{file:"setup.py",type:"python"},{file:"requirements.txt",type:"python"},{file:"Gemfile",type:"ruby"},{file:"composer.json",type:"php"},{file:"go.mod",type:"go"},{file:"CMakeLists.txt",type:"cpp"},{file:"Dockerfile",type:"docker"}];if(!e)return"unknown";for(let s of r)try{let i=vscode.Uri.joinPath(e,s.file);if(await this.P.exists(i))return s.type}catch{}return"unknown"}async se(e){return(await Promise.resolve().then(()=>k(P()))).getDirectorySize(e)}async j(e,r){return(await Promise.resolve().then(()=>k(I()))).scorePatterns(e,r)}async getWorkspaceExclusions(e){let r=this.I(e);if(!r)return this._logger.debug("No workspace root for exclusions lookup"),[];let s=await this.T(r);return s||await this.L(e,r)||[]}async saveWorkspaceExclusions(e,r){let s=this.I(e);if(!s){this._logger.warn("Cannot save workspace exclusions without a workspace root");return}let i=this.E(r),o=await this.T(s);if(o&&this.G(o,i)){this._logger.debug("Workspace exclusions already up to date",{workspace:this.u(e)});return}await this.V(s,i),await this.Z(e),this._logger.info(`Saved workspace exclusions for ${this.u(e)}`,i)}async getCombinedExclusions(e){let r=vscode.workspace.getConfiguration("explorerDates"),s=r.get("excludedFolders",[]),i=r.get("excludedPatterns",[]),o=r.get("smartExclusions",!0),a=[...s],l=[...i],h=await this.getWorkspaceExclusions(e);if(a.push(...h),o){let c=this.A.get(e&&(e.fsPath||e.path)||"unknown-workspace");c&&c.suggestedExclusions&&c.suggestedExclusions.length?a.push(...c.suggestedExclusions):this.analyzeWorkspace(e).catch(()=>{})}return a=[...new Set(a)],l=[...new Set(l)],{folders:a,patterns:l}}u(e){if(!e)return"unknown-workspace";let r=e.fsPath||e.path||"";return getFileName(r)||normalizePath(r)}async suggestExclusions(e){let r=await this.analyzeWorkspace(e),s=this.E(r?.suggestedExclusions||[]);if(!r||s.length===0)return;let i=await this.getWorkspaceExclusions(e),o=s.filter(c=>!i.includes(c));if(o.length===0){this._logger.debug("No new smart exclusions detected",{workspace:this.u(e)});return}let a=this.W(i,o);await this.saveWorkspaceExclusions(e,a);let l=o.length===1?`Explorer Dates automatically excluded "${o[0]}" to keep Explorer responsive.`:`Explorer Dates automatically excluded ${o.length} folders to keep Explorer responsive.`,h=await vscode.window.showInformationMessage(`${l} Keep these exclusions?`,"Keep","Review","Revert");h==="Revert"?(await this.saveWorkspaceExclusions(e,i),vscode.window.showInformationMessage("Smart exclusions reverted. Decorations will refresh for the restored folders."),this._logger.info("User reverted smart exclusions",{reverted:o})):h==="Review"?(this.X(r),this._logger.info("User reviewing smart exclusions",{pending:o})):this._logger.info("User kept smart exclusions",{accepted:o})}async suggestExclusionsBulk(e=[]){if(!e.length)return;let r=[],s=[],i=[],o=0;for(let c of e){let d=await this.analyzeWorkspace(c.uri),y=this.E(d?.suggestedExclusions||[]);if(!d||y.length===0)continue;let b=await this.getWorkspaceExclusions(c.uri),x=y.filter(qe=>!b.includes(qe));if(x.length===0){this._logger.debug("No new smart exclusions detected",{workspace:this.u(c.uri)});continue}let H=this.W(b,x);await this.saveWorkspaceExclusions(c.uri,H),r.push({workspace:c.name,added:x}),s.push({uri:c.uri,previous:b}),i.push({workspaceKey:this.u(c.uri),workspaceName:this.M(c.uri),workspaceUri:c.uri,analysis:d,previous:b}),o+=x.length}if(o===0)return;let a=r.length,l=o===1?`Explorer Dates automatically excluded "${r[0].added[0]}" to keep Explorer responsive.`:`Explorer Dates automatically excluded ${o} folders across ${a} workspace${a===1?"":"s"} to keep Explorer responsive.`,h=await vscode.window.showInformationMessage(`${l} Keep these exclusions?`,"Keep","Review","Revert");if(h==="Revert"){for(let c of s)await this.saveWorkspaceExclusions(c.uri,c.previous);vscode.window.showInformationMessage("Smart exclusions reverted. Decorations will refresh for the restored folders."),this._logger.info("User reverted smart exclusions",{workspaces:a,reverted:o})}else h==="Review"&&i.length?(this.Y(i),this._logger.info("User reviewing smart exclusions",{pending:o,workspaces:a})):this._logger.info("User kept smart exclusions",{accepted:o,workspaces:a})}M(e){if(!e)return"Workspace";let s=(e.fsPath||e.path||"").split(/[\\/]/).filter(Boolean);return s[s.length-1]||"Workspace"}ie(e,r,s){let i=[];for(let o=0;ok(P()))).readWorkspaceExclusionsFile(e)}async V(e,r){return(await Promise.resolve().then(()=>k(P()))).writeWorkspaceExclusionsFile(e,r)}async L(e,r){return(await Promise.resolve().then(()=>k(P()))).migrateLegacyExclusions(e,r)}async Z(e){return(await Promise.resolve().then(()=>k(P()))).removeLegacyProfile(e)}E(e=[]){return Array.from(new Set(e.filter(Boolean)))}W(e=[],r=[]){return this.E([...e||[],...r||[]])}G(e=[],r=[]){return e.length!==r.length?!1:e.every((s,i)=>s===r[i])}async X(e){return(await Promise.resolve().then(()=>k(I()))).showExclusionReviewSingle(this,e)}async Y(e){return(await Promise.resolve().then(()=>k(I()))).showExclusionReviewBulk(this,e)}ae(e){return Promise.resolve().then(()=>k(I())).then(r=>r.generateReviewHTML(e))}};module.exports={SmartExclusionManager}});var Ne=g((er,Me)=>{var{IncrementalIndexer:qt}=R();Me.exports={IncrementalIndexer:qt,async getSmartExclusionManagerConstructor(){try{return(await Promise.resolve().then(()=>k(U()))).SmartExclusionManager}catch{return null}}}});var _=null,A=null,{getLogger:zt}=E(),{getFeatureFlagsGlobal:Kt}=j();async function Oe(){try{if(!_||!A){let t=await Promise.resolve().then(()=>k(Ne()));_=t.IncrementalIndexer,typeof t.getSmartExclusionManagerConstructor=="function"?A=await t.getSmartExclusionManagerConstructor()||null:A=t.SmartExclusionManager||null}}catch{try{if(!_){let t=Kt(),e=t?await t.loadFeatureModule("incrementalIndexer"):null;e&&e.IncrementalIndexer?_=e.IncrementalIndexer:_=(await Promise.resolve().then(()=>k(R()))).IncrementalIndexer}}catch{_=(await Promise.resolve().then(()=>k(R()))).IncrementalIndexer}A||(A=(await Promise.resolve().then(()=>k(U()))).SmartExclusionManager)}}var J=class{constructor(e){this._fileSystem=e,this._logger=zt(),this.r=null,this.e=null,this.p=!1}async initialize(e={}){if(this.p)return;let{batchProcessor:r,enableProgressiveAnalysis:s}=e,i=!!r?.processDirectoryProgressively;this.r||(await Oe(),this.r=new _(this._fileSystem)),await this.r.initialize({batchProcessor:i?r:null,enableProgressiveAnalysis:s}),r&&!i&&this._logger.warn("BatchProcessor missing progressive API; workspace indexing disabled"),this.e||(await Oe(),this.e=new A),this.p=!0,this._logger.info("Workspace intelligence components initialized")}async analyzeWorkspace(e,r={}){if(!(!this.p||!e?.length))try{if(this.r?.startInitialIndex&&(await this.r.startInitialIndex(e,{maxFiles:r.maxFiles||2e3}),this._logger.info("Workspace indexing started")),this.e)try{await this.e.suggestExclusionsBulk(e),this._logger.info("Smart exclusions analyzed for all workspace folders",{workspaces:e.length})}catch(s){this._logger.error("Failed to analyze smart exclusions for workspace folders",s)}}catch(s){this._logger.error("Failed to analyze workspace",s)}}async cleanupWorkspaceProfiles(){if(this.e)try{await this.e.cleanupAllWorkspaceProfiles()}catch(e){this._logger.warn("Failed to clean workspace exclusion profiles",e)}}async enableProgressiveAnalysis(){return this.r?this.r.enableProgressiveAnalysis():null}disableProgressiveAnalysis(){this.r&&this.r.disableProgressiveAnalysis()}getMetrics(){let e={};return this.r?.getMetrics&&(e.incrementalIndexer=this.r.getMetrics()),this.e?.getMetrics&&(e.smartExclusion=this.e.getMetrics()),e}async onWorkspaceFoldersChanged(e){if(this.p&&(e.added?.length&&await this.analyzeWorkspace(e.added),e.removed?.length&&this.e))for(let r of e.removed)try{await this.e.removeWorkspaceProfile(r.uri)}catch(s){this._logger.warn(`Failed to remove workspace profile for ${r.name}`,s)}}shouldExclude(e){return this.e?this.e.shouldExclude(e):!1}getExclusionPatterns(e){return this.e?this.e.getExclusionPatterns(e):[]}dispose(){this.r?.dispose&&this.r.dispose(),this.e?.dispose&&this.e.dispose(),this.p=!1,this._logger.debug("Workspace intelligence components disposed")}get incrementalIndexer(){return this.r}get smartExclusion(){return this.e}},Q=null,ee=null;try{Q=R().IncrementalIndexer}catch{Q=null}try{ee=U().SmartExclusionManager}catch{ee=null}module.exports={WorkspaceIntelligenceManager:J,IncrementalIndexer:Q,SmartExclusionManager:ee}; diff --git a/dist/chunks/workspaceIntelligence.js.map b/dist/chunks/workspaceIntelligence.js.map index 82b1d24..6043503 100644 --- a/dist/chunks/workspaceIntelligence.js.map +++ b/dist/chunks/workspaceIntelligence.js.map @@ -1,6 +1,6 @@ { "version": 3, "sources": ["../../src/utils/logger.js", "../../src/utils/featureFlagsBridge.js", "../../src/chunks/utils-shared-chunk.js", "../../src/utils/dateHelpers.js", "../../src/presetDefinitions.js", "../../src/shared/chunkMap.js", "../../src/utils/env.js", "../../src/featureFlags.js", "../../src/incrementalIndexer.js", "../../src/utils/pathUtils.js", "../../src/utils/errors.js", "../../src/filesystem/environmentContract.js", "../../src/filesystem/FileSystemAdapter.js", "../../src/constants.js", "../../src/utils/settingsCoordinator.js", "../../src/data/commonExclusions.json", "../../src/chunks/workspaceIntelligenceScanner.js", "../../src/chunks/workspace-intel-io-chunk.js", "../../src/workspaceIntelligence.logic.js", "../../src/chunks/workspace-intel-logic-chunk.js", "../../src/smartExclusion.js", "../../src/chunks/workspace-intel-impl-chunk.js", "../../src/chunks/workspaceIntelligence.js"], - "mappings": "26BAAA,qDAAAA,SAAAC,QAAA,CACA,IAAM,kBAAoB,wBAEpB,aAAN,KAAmB,CAHnB,MAGmB,6BACf,aAAc,CACV,KAAK,MAAQ,IACjB,CAEA,MAAM,OAAQ,KAAM,CAChB,GAAI,KAAK,OAAS,OAAO,KAAK,MAAM,MAAM,GAAM,WAC5C,GAAI,CAAE,OAAO,KAAK,MAAM,MAAM,EAAE,GAAG,IAAI,CAAG,MAAQ,CAAe,CAErE,OAAQ,OAAQ,CACZ,IAAK,QAAa,OAAO,QAAQ,OAAU,WAAY,QAAQ,MAAM,GAAG,IAAI,EAAQ,QAAQ,IAAI,GAAG,IAAI,EAAG,MAC1G,IAAK,OAAQ,QAAQ,IAAI,GAAG,IAAI,EAAG,MACnC,IAAK,OAAQ,QAAQ,KAAK,GAAG,IAAI,EAAG,MACpC,IAAK,QAAS,QAAQ,MAAM,GAAG,IAAI,EAAG,MACtC,QAAS,QAAQ,IAAI,GAAG,IAAI,EAAG,KACnC,CACJ,CAEA,SAAS,KAAM,CAAE,OAAO,KAAK,MAAM,QAAS,IAAI,CAAG,CACnD,QAAQ,KAAM,CAAE,OAAO,KAAK,MAAM,OAAQ,IAAI,CAAG,CACjD,QAAQ,KAAM,CAAE,OAAO,KAAK,MAAM,OAAQ,IAAI,CAAG,CACjD,SAAS,KAAM,CAAE,OAAO,KAAK,MAAM,QAAS,IAAI,CAAG,CAGnD,SAAS,KAAM,CAAE,KAAK,MAAQ,IAA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B,YAAY,EAE1D,CAAC,CACZ,CAKA,SAAU,CACF,KAAK,qBAAqB,SAC1B,KAAK,oBAAoB,QAAQ,EAEjC,KAAK,iBAAiB,SACtB,KAAK,gBAAgB,QAAQ,EAEjC,KAAK,aAAe,GACpB,KAAK,QAAQ,MAAM,4CAA4C,CACnE,CAGA,IAAI,oBAAqB,CACrB,OAAO,KAAK,mBAChB,CAEA,IAAI,gBAAiB,CACjB,OAAO,KAAK,eAChB,CACJ,EAMI,wBAA0B,KAC1B,2BAA6B,KACjC,GAAI,CACA,wBAA0B,6BAAiC,kBAC/D,MAAQ,CACJ,wBAA0B,IAC9B,CACA,GAAI,CACA,2BAA6B,yBAA6B,qBAC9D,MAAQ,CACJ,2BAA6B,IACjC,CAEA,OAAO,QAAU,CACb,6BACA,mBAAoB,wBACpB,sBAAuB,0BAC3B", "names": ["exports", "module", "getLogger", "exports", "module", "getCurrentTimestamp", "isDateLike", "ensureDate", "normalizePath", "input", "getSegments", "getFileName", "getExtension", "getDirectory", "joinPath", "getCacheKey", "getUriPath", "getRelativePath", "getCurrentTimestamp", "isDateLike", "ensureDate", "chunk", "exports", "module", "getChunkSourcePath", "getAllChunkNames", "exports", "module", "vscode", "isWebEnvironment", "chunk", "logger", "module", "chunk", "fileSystem", "options", "loadFeatureModule", "normalizePath", "input", "getSegments", "getFileName", "getExtension", "getDirectory", "joinPath", "getCacheKey", "getUriPath", "getRelativePath", "exports", "module", "options", "vscode", "exports", "module", "env", "options", "exports", "module", "vscode", "isWebEnvironment", "normalizePath", "ensureDate", "env", "options", "fileSystem", "exports", "module", "env", "options", "p", "v", "chunk", "exports", "module", "input", "idx", "fileSystem", "logger", "exports", "module", "vscode", "fileSystem", "getLogger", "getSettingsCoordinator", "logger", "chunk", "exports", "module", "chunk", "p", "exports", "module", "IncrementalIndexer", "IncrementalIndexer", "SmartExclusionManager", "getLogger", "getFeatureFlagsGlobal", "chunk", "fileSystem", "options"] } diff --git a/dist/extension.js b/dist/extension.js index 8cf4f9f..7f9026e 100644 --- a/dist/extension.js +++ b/dist/extension.js @@ -1,6 +1,6 @@ -var dr=Object.create;var He=Object.defineProperty;var gr=Object.getOwnPropertyDescriptor;var pr=Object.getOwnPropertyNames;var fr=Object.getPrototypeOf,mr=Object.prototype.hasOwnProperty;var f=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var hr=(t,e,r,a)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of pr(e))!mr.call(t,n)&&n!==r&&He(t,n,{get:()=>e[n],enumerable:!(a=gr(e,n))||a.enumerable});return t};var Y=(t,e,r)=>(r=t!=null?dr(fr(t)):{},hr(e||!t||!t.__esModule?He(r,"default",{value:t,enumerable:!0}):r,t));var D=f((sa,ze)=>{var q="__explorerDatesLogger",$=class{constructor(){this.b=null}y(e,r){if(this.b&&typeof this.b[e]=="function")try{return this.b[e](...r)}catch{}switch(e){case"debug":break;case"info":break;case"warn":break;case"error":break;default:break}}debug(...e){return this.y("debug",e)}info(...e){return this.y("info",e)}warn(...e){return this.y("warn",e)}error(...e){return this.y("error",e)}Ne(e){this.b=e}};function wr(){return typeof global<"u"?(global[q]||(global[q]=new $),global[q]):typeof globalThis<"u"?(globalThis[q]||(globalThis[q]=new $),globalThis[q]):(ve||(ve=new $),ve)}var Ce=class extends ${},ve=null;ze.exports={Logger:Ce,getLogger:wr}});var Se=f((ia,br)=>{br.exports={migrationDetailsTitle:"Explorer Dates - Settings Migration",migrationDetailsHeader:"Settings Migration",gitAttributionWarning:"Explorer Dates: Git attribution badges are unavailable on VS Code for Web. Time-based decorations remain available.",noOverridesToDocument:"No overrides to document.",overrideNotesHeader:"# Explorer Dates Override Notes\\n\\n",analysisCommandsDisabled:"Explorer Dates analysis commands are disabled. Shortcuts like Ctrl+Shift+M/H/A will not work until you enable explorerDates.enableAnalysisCommands.",analysisEnableNow:"Enable Now",analysisEnablePartially:"Enable partially succeeded. Update explorerDates.enableAnalysisCommands in remaining workspace folders manually.",analysisEnableFailed:"Enable failed: update explorerDates.enableAnalysisCommands in workspace settings.",workspaceTemplatesDisabled:"Workspace templates are disabled. Enable explorerDates.enableWorkspaceTemplates to use this command.",workspaceTemplatesDisabledSave:"Workspace templates are disabled. Enable explorerDates.enableWorkspaceTemplates to save templates.",enterTemplateName:"Enter template name",enterTemplateDescription:"Enter description (optional)",failedToOpenTemplateManager:"Failed to open template manager: {0}",failedToSaveTemplate:"Failed to save template: {0}",reportingDisabled:"Reporting features are disabled. Enable explorerDates.enableExportReporting to generate reports.",failedToGenerateReport:"Failed to generate report: {0}",apiDisabled:"Explorer Dates API is disabled via settings.",failedToShowApiInformation:"Failed to show API information: {0}",failedToShowWorkspaceActivity:"Failed to show workspace activity: {0}",failedToShowPerformanceAnalytics:"Failed to show performance analytics: {0}",failedToShowCacheDebugInfo:"Failed to show cache debug info: {0}",noWorkspaceFolderOpen:"No workspace folder open",now:"now",minutes:"m",hours:"h",days:"d",weeks:"w",months:"mo",years:"y",justNow:"just now",minutesAgo:"{0} minute(s) ago",hoursAgo:"{0} hour(s) ago",daysAgo:"{0} day(s) ago",lastModified:"Last modified",refreshSuccess:"Date decorations refreshed",activationError:"Explorer Dates failed to activate",errorAccessingFile:"Error accessing file for decoration",clearTelemetryPrompt:"This will permanently delete locally-stored telemetry events for Explorer Dates. This action cannot be undone. Proceed?",clearTelemetryConfirm:"Clear Telemetry",clearTelemetryCancel:"Cancel",reportFormatDisabled:'Report format "{0}" is disabled. Allowed formats: {1}',reportDownloadTriggered:"Report download triggered in browser",selectReportTimeRangePlaceholder:"Select report time range",selectReportFormatPlaceholder:"Select report format",cleanupNoDeprecated:"\u2139\uFE0F No deprecated settings found to clean up.",showMigrationHistoryNoHistory:"No migration history found.",resetConfirmation:"This will reset all Explorer Dates settings to their default values. Are you sure?",resetConfirm:"Reset Settings",resetCancel:"Cancel",resetSuccess:"\u2705 Reset {0} settings to defaults.",validateNoIssues:"\u2705 Configuration is valid - no issues found!",validateFoundIssues:"Found {0} configuration issue(s). Would you like to see details?",validateShowDetails:"Show Details",validateDismiss:"Dismiss",migrationNotificationMessage:"Explorer Dates updated {0} setting(s) for compatibility. Your configuration has been preserved.",migrationViewChanges:"View Changes",migrationOpenSettings:"Open Settings",deprecatedPrompt:"Explorer Dates found {0} deprecated setting(s). Would you like to remove them?",deprecatedClean:"Clean Up Now",deprecatedKeep:"Keep Old Settings",deprecatedAskLater:"Ask Later",showFileLocation:"Show File Location",teamConfigCorrupted:"Explorer Dates team configuration file appears to be corrupted. Please check the .explorer-dates-profiles.json file or restore from backup.",appliedFromTeamProfile:'Applied {0} Explorer Dates settings from team profile "{1}".',documentedOverrides:"Documented Explorer Dates overrides in .vscode/explorer-dates-overrides.md",teamConfigMissingProfile:"Team configuration is missing an active profile.",ephemeralStorageEnospc:"Explorer Dates team configuration could not be saved because the disk is full.",ephemeralStorageGeneric:"Explorer Dates team configuration could not be saved because the workspace is read-only or permissions are restricted.",ephemeralStorageSuffix:"Changes will be kept in memory until VS Code restarts, so they may be lost."}});var Ue=f((la,yr)=>{yr.exports={migrationDetailsTitle:"Explorer Dates - Migraci\xF3n de configuraci\xF3n",migrationDetailsHeader:"Migraci\xF3n de configuraci\xF3n",gitAttributionWarning:"Explorer Dates: Las insignias de atribuci\xF3n de Git no est\xE1n disponibles en VS Code para la Web. Las decoraciones basadas en tiempo siguen disponibles.",noOverridesToDocument:"No hay anulaciones para documentar.",overrideNotesHeader:"# Notas de anulaci\xF3n de Explorer Dates\\n\\n",analysisCommandsDisabled:"Los comandos de an\xE1lisis de Explorer Dates est\xE1n deshabilitados. Atajos como Ctrl+Shift+M/H/A no funcionar\xE1n hasta que habilites explorerDates.enableAnalysisCommands.",analysisEnableNow:"Habilitar ahora",analysisEnablePartially:"La activaci\xF3n se complet\xF3 parcialmente. Actualiza explorerDates.enableAnalysisCommands manualmente en las carpetas de trabajo restantes.",analysisEnableFailed:"Error al habilitar: actualiza explorerDates.enableAnalysisCommands en la configuraci\xF3n del espacio de trabajo.",workspaceTemplatesDisabled:"Las plantillas de espacio de trabajo est\xE1n deshabilitadas. Habilita explorerDates.enableWorkspaceTemplates para usar este comando.",workspaceTemplatesDisabledSave:"Las plantillas de espacio de trabajo est\xE1n deshabilitadas. Habilita explorerDates.enableWorkspaceTemplates para guardar plantillas.",enterTemplateName:"Introduce el nombre de la plantilla",enterTemplateDescription:"Introduce la descripci\xF3n (opcional)",failedToOpenTemplateManager:"Error al abrir el administrador de plantillas: {0}",failedToSaveTemplate:"Error al guardar la plantilla: {0}",reportingDisabled:"Las funciones de informes est\xE1n deshabilitadas. Habilita explorerDates.enableExportReporting para generar informes.",failedToGenerateReport:"Error al generar el informe: {0}",apiDisabled:"La API de Explorer Dates est\xE1 deshabilitada mediante la configuraci\xF3n.",failedToShowApiInformation:"Error al mostrar la informaci\xF3n de la API: {0}",failedToShowWorkspaceActivity:"Error al mostrar la actividad del espacio de trabajo: {0}",failedToShowPerformanceAnalytics:"Error al mostrar los an\xE1lisis de rendimiento: {0}",failedToShowCacheDebugInfo:"Error al mostrar la informaci\xF3n de depuraci\xF3n de la cach\xE9: {0}",noWorkspaceFolderOpen:"No hay ninguna carpeta de espacio de trabajo abierta",now:"ahora",minutes:"m",hours:"h",days:"d",weeks:"sem",months:"mes",years:"a",justNow:"justo ahora",minutesAgo:"hace {0} minuto(s)",hoursAgo:"hace {0} hora(s)",daysAgo:"hace {0} d\xEDa(s)",lastModified:"\xDAltima modificaci\xF3n",refreshSuccess:"Decoraciones de fecha actualizadas",activationError:"Explorer Dates no se pudo activar",errorAccessingFile:"Error al acceder al archivo para la decoraci\xF3n",clearTelemetryPrompt:"Esto eliminar\xE1 permanentemente los eventos de telemetr\xEDa almacenados localmente para Explorer Dates. Esta acci\xF3n no se puede deshacer. \xBFContinuar?",clearTelemetryConfirm:"Borrar telemetr\xEDa",clearTelemetryCancel:"Cancelar",reportFormatDisabled:'El formato de informe "{0}" est\xE1 deshabilitado. Formatos permitidos: {1}',reportDownloadTriggered:"Descarga del informe iniciada en el navegador",selectReportTimeRangePlaceholder:"Seleccionar rango de tiempo del informe",selectReportFormatPlaceholder:"Seleccionar formato del informe",cleanupNoDeprecated:"\u2139\uFE0F No se encontraron configuraciones obsoletas para limpiar.",showMigrationHistoryNoHistory:"No se encontr\xF3 historial de migraci\xF3n.",resetConfirmation:"Esto restablecer\xE1 todas las configuraciones de Explorer Dates a sus valores predeterminados. \xBFEst\xE1s seguro?",resetConfirm:"Restablecer configuraciones",resetCancel:"Cancelar",resetSuccess:"\u2705 Se restablecieron {0} configuraciones a los valores predeterminados.",validateNoIssues:"\u2705 La configuraci\xF3n es v\xE1lida - no se encontraron problemas.",validateFoundIssues:"Se encontraron {0} problema(s) de configuraci\xF3n. \xBFDeseas ver los detalles?",validateShowDetails:"Mostrar detalles",validateDismiss:"Descartar",migrationNotificationMessage:"Explorer Dates actualiz\xF3 {0} configuraci\xF3n(es) por compatibilidad. Tu configuraci\xF3n se ha conservado.",migrationViewChanges:"Ver cambios",migrationOpenSettings:"Abrir configuraciones",deprecatedPrompt:"Explorer Dates encontr\xF3 {0} configuraci\xF3n(es) obsoleta(s). \xBFDeseas eliminarlas?",deprecatedClean:"Limpiar ahora",deprecatedKeep:"Mantener configuraciones antiguas",deprecatedAskLater:"Preguntar m\xE1s tarde",showFileLocation:"Mostrar ubicaci\xF3n del archivo",teamConfigCorrupted:"El archivo de configuraci\xF3n de equipo de Explorer Dates parece estar da\xF1ado. Verifica el archivo .explorer-dates-profiles.json o restaura desde una copia de seguridad.",appliedFromTeamProfile:'Se aplicaron {0} configuraciones de Explorer Dates desde el perfil de equipo "{1}".',documentedOverrides:"Se documentaron las anulaciones de Explorer Dates en .vscode/explorer-dates-overrides.md",teamConfigMissingProfile:"La configuraci\xF3n del equipo no tiene un perfil activo.",ephemeralStorageEnospc:"No se pudo guardar la configuraci\xF3n de equipo de Explorer Dates porque el disco est\xE1 lleno.",ephemeralStorageGeneric:"No se pudo guardar la configuraci\xF3n de equipo de Explorer Dates porque el espacio de trabajo es de solo lectura o los permisos est\xE1n restringidos.",ephemeralStorageSuffix:"Los cambios se mantendr\xE1n en memoria hasta que VS Code se reinicie, por lo que podr\xEDan perderse."}});var Ke=f((ca,Er)=>{Er.exports={migrationDetailsTitle:"Explorer Dates - Migration des param\xE8tres",migrationDetailsHeader:"Migration des param\xE8tres",gitAttributionWarning:"Explorer Dates : Les badges d\u2019attribution Git ne sont pas disponibles sur VS Code pour le Web. Les d\xE9corations bas\xE9es sur le temps restent disponibles.",noOverridesToDocument:"Aucune substitution \xE0 documenter.",overrideNotesHeader:"# Notes de substitution Explorer Dates\\n\\n",analysisCommandsDisabled:"Les commandes d\u2019analyse Explorer Dates sont d\xE9sactiv\xE9es. Les raccourcis comme Ctrl+Shift+M/H/A ne fonctionneront pas tant que vous n\u2019aurez pas activ\xE9 explorerDates.enableAnalysisCommands.",analysisEnableNow:"Activer maintenant",analysisEnablePartially:"L\u2019activation a partiellement r\xE9ussi. Mettez \xE0 jour explorerDates.enableAnalysisCommands manuellement dans les dossiers d\u2019espace de travail restants.",analysisEnableFailed:"\xC9chec de l\u2019activation : mettez \xE0 jour explorerDates.enableAnalysisCommands dans les param\xE8tres de l\u2019espace de travail.",workspaceTemplatesDisabled:"Les mod\xE8les d\u2019espace de travail sont d\xE9sactiv\xE9s. Activez explorerDates.enableWorkspaceTemplates pour utiliser cette commande.",workspaceTemplatesDisabledSave:"Les mod\xE8les d\u2019espace de travail sont d\xE9sactiv\xE9s. Activez explorerDates.enableWorkspaceTemplates pour enregistrer des mod\xE8les.",enterTemplateName:"Entrez le nom du mod\xE8le",enterTemplateDescription:"Entrez la description (facultatif)",failedToOpenTemplateManager:"Impossible d\u2019ouvrir le gestionnaire de mod\xE8les : {0}",failedToSaveTemplate:"Impossible d\u2019enregistrer le mod\xE8le : {0}",reportingDisabled:"Les fonctionnalit\xE9s de rapport sont d\xE9sactiv\xE9es. Activez explorerDates.enableExportReporting pour g\xE9n\xE9rer des rapports.",failedToGenerateReport:"Impossible de g\xE9n\xE9rer le rapport : {0}",apiDisabled:"L\u2019API Explorer Dates est d\xE9sactiv\xE9e via les param\xE8tres.",failedToShowApiInformation:"Impossible d\u2019afficher les informations de l\u2019API : {0}",failedToShowWorkspaceActivity:"Impossible d\u2019afficher l\u2019activit\xE9 de l\u2019espace de travail : {0}",failedToShowPerformanceAnalytics:"Impossible d\u2019afficher les analyses de performance : {0}",failedToShowCacheDebugInfo:"Impossible d\u2019afficher les informations de d\xE9bogage du cache : {0}",noWorkspaceFolderOpen:"Aucun dossier d\u2019espace de travail ouvert",now:"maintenant",minutes:"min",hours:"h",days:"j",weeks:"sem",months:"mois",years:"an",justNow:"\xE0 l\u2019instant",minutesAgo:"il y a {0} minute(s)",hoursAgo:"il y a {0} heure(s)",daysAgo:"il y a {0} jour(s)",lastModified:"Derni\xE8re modification",refreshSuccess:"D\xE9corations de date actualis\xE9es",activationError:"\xC9chec de l\u2019activation d\u2019Explorer Dates",errorAccessingFile:"Erreur lors de l\u2019acc\xE8s au fichier pour la d\xE9coration",clearTelemetryPrompt:"Cela supprimera d\xE9finitivement les \xE9v\xE9nements de t\xE9l\xE9m\xE9trie stock\xE9s localement pour Explorer Dates. Cette action est irr\xE9versible. Continuer ?",clearTelemetryConfirm:"Effacer la t\xE9l\xE9m\xE9trie",clearTelemetryCancel:"Annuler",reportFormatDisabled:'Le format de rapport "{0}" est d\xE9sactiv\xE9. Formats autoris\xE9s : {1}',reportDownloadTriggered:"T\xE9l\xE9chargement du rapport lanc\xE9 dans le navigateur",selectReportTimeRangePlaceholder:"S\xE9lectionner la p\xE9riode du rapport",selectReportFormatPlaceholder:"S\xE9lectionner le format du rapport",cleanupNoDeprecated:"\u2139\uFE0F Aucun param\xE8tre obsol\xE8te \xE0 nettoyer.",showMigrationHistoryNoHistory:"Aucun historique de migration trouv\xE9.",resetConfirmation:"Cela r\xE9initialisera tous les param\xE8tres Explorer Dates \xE0 leurs valeurs par d\xE9faut. \xCAtes-vous s\xFBr ?",resetConfirm:"R\xE9initialiser les param\xE8tres",resetCancel:"Annuler",resetSuccess:"\u2705 {0} param\xE8tres ont \xE9t\xE9 r\xE9initialis\xE9s aux valeurs par d\xE9faut.",validateNoIssues:"\u2705 La configuration est valide - aucun probl\xE8me d\xE9tect\xE9 !",validateFoundIssues:"{0} probl\xE8me(s) de configuration trouv\xE9(s). Voulez-vous voir les d\xE9tails ?",validateShowDetails:"Afficher les d\xE9tails",validateDismiss:"Ignorer",migrationNotificationMessage:"Explorer Dates a mis \xE0 jour {0} param\xE8tre(s) pour compatibilit\xE9. Votre configuration a \xE9t\xE9 conserv\xE9e.",migrationViewChanges:"Voir les modifications",migrationOpenSettings:"Ouvrir les param\xE8tres",deprecatedPrompt:"Explorer Dates a trouv\xE9 {0} param\xE8tre(s) obsol\xE8te(s). Voulez-vous les supprimer ?",deprecatedClean:"Nettoyer maintenant",deprecatedKeep:"Conserver les anciens param\xE8tres",deprecatedAskLater:"Demander plus tard",showFileLocation:"Afficher l\u2019emplacement du fichier",teamConfigCorrupted:"Le fichier de configuration d\u2019\xE9quipe Explorer Dates semble corrompu. V\xE9rifiez le fichier .explorer-dates-profiles.json ou restaurez-le depuis une sauvegarde.",appliedFromTeamProfile:'{0} param\xE8tres Explorer Dates appliqu\xE9s depuis le profil d\u2019\xE9quipe "{1}".',documentedOverrides:"Substitutions Explorer Dates document\xE9es dans .vscode/explorer-dates-overrides.md",teamConfigMissingProfile:"La configuration d\u2019\xE9quipe ne contient aucun profil actif.",ephemeralStorageEnospc:"Impossible d\u2019enregistrer la configuration d\u2019\xE9quipe Explorer Dates car le disque est plein.",ephemeralStorageGeneric:"Impossible d\u2019enregistrer la configuration d\u2019\xE9quipe Explorer Dates car l\u2019espace de travail est en lecture seule ou les permissions sont restreintes.",ephemeralStorageSuffix:"Les modifications seront conserv\xE9es en m\xE9moire jusqu\u2019au red\xE9marrage de VS Code et pourraient \xEAtre perdues."}});var Ve=f((ua,vr)=>{vr.exports={migrationDetailsTitle:"Explorer Dates - Einstellungen migrieren",migrationDetailsHeader:"Einstellungen migrieren",gitAttributionWarning:"Explorer Dates: Git-Zuordnungsabzeichen sind in VS Code f\xFCr das Web nicht verf\xFCgbar. Zeitbasierte Hervorhebungen bleiben verf\xFCgbar.",noOverridesToDocument:"Keine \xDCberschreibungen zu dokumentieren.",overrideNotesHeader:"# Explorer Dates \xDCberschreibungsnotizen\\n\\n",analysisCommandsDisabled:"Die Analysebefehle von Explorer Dates sind deaktiviert. Tastenkombinationen wie Ctrl+Shift+M/H/A funktionieren nicht, bis explorerDates.enableAnalysisCommands aktiviert ist.",analysisEnableNow:"Jetzt aktivieren",analysisEnablePartially:"Die Aktivierung war teilweise erfolgreich. Aktualisieren Sie explorerDates.enableAnalysisCommands manuell in den verbleibenden Workspace-Ordnern.",analysisEnableFailed:"Aktivierung fehlgeschlagen: Aktualisieren Sie explorerDates.enableAnalysisCommands in den Workspace-Einstellungen.",workspaceTemplatesDisabled:"Workspace-Vorlagen sind deaktiviert. Aktivieren Sie explorerDates.enableWorkspaceTemplates, um diesen Befehl zu verwenden.",workspaceTemplatesDisabledSave:"Workspace-Vorlagen sind deaktiviert. Aktivieren Sie explorerDates.enableWorkspaceTemplates, um Vorlagen zu speichern.",enterTemplateName:"Vorlagenname eingeben",enterTemplateDescription:"Beschreibung eingeben (optional)",failedToOpenTemplateManager:"Fehler beim \xD6ffnen des Vorlagenmanagers: {0}",failedToSaveTemplate:"Fehler beim Speichern der Vorlage: {0}",reportingDisabled:"Berichtsfunktionen sind deaktiviert. Aktivieren Sie explorerDates.enableExportReporting, um Berichte zu erstellen.",failedToGenerateReport:"Fehler beim Erstellen des Berichts: {0}",apiDisabled:"Die Explorer Dates API ist in den Einstellungen deaktiviert.",failedToShowApiInformation:"Fehler beim Anzeigen der API-Informationen: {0}",failedToShowWorkspaceActivity:"Fehler beim Anzeigen der Workspace-Aktivit\xE4t: {0}",failedToShowPerformanceAnalytics:"Fehler beim Anzeigen der Leistungsanalysen: {0}",failedToShowCacheDebugInfo:"Fehler beim Anzeigen der Cache-Debug-Informationen: {0}",noWorkspaceFolderOpen:"Kein Workspace-Ordner ge\xF6ffnet",now:"jetzt",minutes:"Min",hours:"Std",days:"T",weeks:"W",months:"Mon",years:"J",justNow:"gerade eben",minutesAgo:"vor {0} Minute(n)",hoursAgo:"vor {0} Stunde(n)",daysAgo:"vor {0} Tag(en)",lastModified:"Zuletzt ge\xE4ndert",refreshSuccess:"Datumsdekorationen aktualisiert",activationError:"Explorer Dates konnte nicht aktiviert werden",errorAccessingFile:"Fehler beim Zugriff auf Datei f\xFCr Dekoration",clearTelemetryPrompt:"Dies l\xF6scht dauerhaft lokal gespeicherte Telemetrieereignisse f\xFCr Explorer Dates. Diese Aktion kann nicht r\xFCckg\xE4ngig gemacht werden. Fortfahren?",clearTelemetryConfirm:"Telemetrie l\xF6schen",clearTelemetryCancel:"Abbrechen",reportFormatDisabled:'Berichtsformat "{0}" ist deaktiviert. Zul\xE4ssige Formate: {1}',reportDownloadTriggered:"Bericht-Download im Browser gestartet",selectReportTimeRangePlaceholder:"Berichtszeitraum ausw\xE4hlen",selectReportFormatPlaceholder:"Berichtsformat ausw\xE4hlen",cleanupNoDeprecated:"\u2139\uFE0F Keine veralteten Einstellungen zum Bereinigen gefunden.",showMigrationHistoryNoHistory:"Kein Migrationsverlauf gefunden.",resetConfirmation:"Dies setzt alle Explorer Dates Einstellungen auf ihre Standardwerte zur\xFCck. Sind Sie sicher?",resetConfirm:"Einstellungen zur\xFCcksetzen",resetCancel:"Abbrechen",resetSuccess:"\u2705 {0} Einstellungen auf Standard zur\xFCckgesetzt.",validateNoIssues:"\u2705 Konfiguration ist g\xFCltig - keine Probleme gefunden!",validateFoundIssues:"{0} Konfigurationsproblem(e) gefunden. M\xF6chten Sie Details sehen?",validateShowDetails:"Details anzeigen",validateDismiss:"Verwerfen",migrationNotificationMessage:"Explorer Dates hat {0} Einstellung(en) zur Kompatibilit\xE4t aktualisiert. Ihre Konfiguration wurde beibehalten.",migrationViewChanges:"\xC4nderungen anzeigen",migrationOpenSettings:"Einstellungen \xF6ffnen",deprecatedPrompt:"Explorer Dates hat {0} veraltete Einstellung(en) gefunden. M\xF6chten Sie sie entfernen?",deprecatedClean:"Jetzt bereinigen",deprecatedKeep:"Alte Einstellungen behalten",deprecatedAskLater:"Sp\xE4ter fragen",showFileLocation:"Dateispeicherort anzeigen",teamConfigCorrupted:"Die Teamkonfigurationsdatei von Explorer Dates scheint besch\xE4digt zu sein. Bitte pr\xFCfen Sie die Datei .explorer-dates-profiles.json oder stellen Sie sie aus einem Backup wieder her.",appliedFromTeamProfile:'{0} Explorer Dates-Einstellungen aus dem Teamprofil "{1}" angewendet.',documentedOverrides:"Explorer Dates-\xDCberschreibungen in .vscode/explorer-dates-overrides.md dokumentiert",teamConfigMissingProfile:"Der Teamkonfiguration fehlt ein aktives Profil.",ephemeralStorageEnospc:"Die Teamkonfiguration von Explorer Dates konnte nicht gespeichert werden, da die Festplatte voll ist.",ephemeralStorageGeneric:"Die Teamkonfiguration von Explorer Dates konnte nicht gespeichert werden, da der Workspace schreibgesch\xFCtzt ist oder die Berechtigungen eingeschr\xE4nkt sind.",ephemeralStorageSuffix:"\xC4nderungen werden im Speicher behalten, bis VS Code neu startet, und k\xF6nnen verloren gehen."}});var Be=f((da,Cr)=>{Cr.exports={migrationDetailsTitle:"Explorer Dates - \u8A2D\u5B9A\u306E\u79FB\u884C",migrationDetailsHeader:"\u8A2D\u5B9A\u306E\u79FB\u884C",gitAttributionWarning:"Explorer Dates: Git \u306E\u5E30\u5C5E\u30D0\u30C3\u30B8\u306F VS Code for Web \u3067\u306F\u5229\u7528\u3067\u304D\u307E\u305B\u3093\u3002\u6642\u9593\u30D9\u30FC\u30B9\u306E\u88C5\u98FE\u306F\u5F15\u304D\u7D9A\u304D\u5229\u7528\u3067\u304D\u307E\u3059\u3002",noOverridesToDocument:"\u30C9\u30AD\u30E5\u30E1\u30F3\u30C8\u5316\u3059\u308B\u4E0A\u66F8\u304D\u306F\u3042\u308A\u307E\u305B\u3093\u3002",overrideNotesHeader:"# Explorer Dates \u4E0A\u66F8\u304D\u30E1\u30E2\\n\\n",analysisCommandsDisabled:"Explorer Dates \u306E\u5206\u6790\u30B3\u30DE\u30F3\u30C9\u306F\u7121\u52B9\u306B\u306A\u3063\u3066\u3044\u307E\u3059\u3002Ctrl+Shift+M/H/A \u306A\u3069\u306E\u30B7\u30E7\u30FC\u30C8\u30AB\u30C3\u30C8\u306F explorerDates.enableAnalysisCommands \u3092\u6709\u52B9\u306B\u3059\u308B\u307E\u3067\u6A5F\u80FD\u3057\u307E\u305B\u3093\u3002",analysisEnableNow:"\u4ECA\u3059\u3050\u6709\u52B9\u306B\u3059\u308B",analysisEnablePartially:"\u6709\u52B9\u5316\u306F\u4E00\u90E8\u6210\u529F\u3057\u307E\u3057\u305F\u3002\u6B8B\u308A\u306E\u30EF\u30FC\u30AF\u30B9\u30DA\u30FC\u30B9\u30D5\u30A9\u30EB\u30C0\u30FC\u3067 explorerDates.enableAnalysisCommands \u3092\u624B\u52D5\u3067\u66F4\u65B0\u3057\u3066\u304F\u3060\u3055\u3044\u3002",analysisEnableFailed:"\u6709\u52B9\u5316\u306B\u5931\u6557\u3057\u307E\u3057\u305F\uFF1A\u30EF\u30FC\u30AF\u30B9\u30DA\u30FC\u30B9\u8A2D\u5B9A\u3067 explorerDates.enableAnalysisCommands \u3092\u66F4\u65B0\u3057\u3066\u304F\u3060\u3055\u3044\u3002",workspaceTemplatesDisabled:"\u30EF\u30FC\u30AF\u30B9\u30DA\u30FC\u30B9\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8\u306F\u7121\u52B9\u306B\u306A\u3063\u3066\u3044\u307E\u3059\u3002\u3053\u306E\u30B3\u30DE\u30F3\u30C9\u3092\u4F7F\u7528\u3059\u308B\u306B\u306F explorerDates.enableWorkspaceTemplates \u3092\u6709\u52B9\u306B\u3057\u3066\u304F\u3060\u3055\u3044\u3002",workspaceTemplatesDisabledSave:"\u30EF\u30FC\u30AF\u30B9\u30DA\u30FC\u30B9\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8\u306F\u7121\u52B9\u306B\u306A\u3063\u3066\u3044\u307E\u3059\u3002\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8\u3092\u4FDD\u5B58\u3059\u308B\u306B\u306F explorerDates.enableWorkspaceTemplates \u3092\u6709\u52B9\u306B\u3057\u3066\u304F\u3060\u3055\u3044\u3002",enterTemplateName:"\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8\u540D\u3092\u5165\u529B",enterTemplateDescription:"\u8AAC\u660E\u3092\u5165\u529B\uFF08\u4EFB\u610F\uFF09",failedToOpenTemplateManager:"\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8\u30DE\u30CD\u30FC\u30B8\u30E3\u30FC\u3092\u958B\u3051\u307E\u305B\u3093\u3067\u3057\u305F: {0}",failedToSaveTemplate:"\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8\u306E\u4FDD\u5B58\u306B\u5931\u6557\u3057\u307E\u3057\u305F: {0}",reportingDisabled:"\u30EC\u30DD\u30FC\u30C8\u6A5F\u80FD\u306F\u7121\u52B9\u306B\u306A\u3063\u3066\u3044\u307E\u3059\u3002\u30EC\u30DD\u30FC\u30C8\u3092\u751F\u6210\u3059\u308B\u306B\u306F explorerDates.enableExportReporting \u3092\u6709\u52B9\u306B\u3057\u3066\u304F\u3060\u3055\u3044\u3002",failedToGenerateReport:"\u30EC\u30DD\u30FC\u30C8\u306E\u751F\u6210\u306B\u5931\u6557\u3057\u307E\u3057\u305F: {0}",apiDisabled:"Explorer Dates API \u306F\u8A2D\u5B9A\u3067\u7121\u52B9\u306B\u306A\u3063\u3066\u3044\u307E\u3059\u3002",failedToShowApiInformation:"API \u60C5\u5831\u306E\u8868\u793A\u306B\u5931\u6557\u3057\u307E\u3057\u305F: {0}",failedToShowWorkspaceActivity:"\u30EF\u30FC\u30AF\u30B9\u30DA\u30FC\u30B9\u306E\u30A2\u30AF\u30C6\u30A3\u30D3\u30C6\u30A3\u3092\u8868\u793A\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F: {0}",failedToShowPerformanceAnalytics:"\u30D1\u30D5\u30A9\u30FC\u30DE\u30F3\u30B9\u5206\u6790\u3092\u8868\u793A\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F: {0}",failedToShowCacheDebugInfo:"\u30AD\u30E3\u30C3\u30B7\u30E5\u306E\u30C7\u30D0\u30C3\u30B0\u60C5\u5831\u3092\u8868\u793A\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F: {0}",noWorkspaceFolderOpen:"\u30EF\u30FC\u30AF\u30B9\u30DA\u30FC\u30B9\u30D5\u30A9\u30EB\u30C0\u30FC\u304C\u958B\u304B\u308C\u3066\u3044\u307E\u305B\u3093",now:"\u4ECA",minutes:"\u5206",hours:"\u6642\u9593",days:"\u65E5",weeks:"\u9031",months:"\u304B\u6708",years:"\u5E74",justNow:"\u305F\u3063\u305F\u4ECA",minutesAgo:"{0} \u5206\u524D",hoursAgo:"{0} \u6642\u9593\u524D",daysAgo:"{0} \u65E5\u524D",lastModified:"\u6700\u7D42\u66F4\u65B0",refreshSuccess:"\u65E5\u4ED8\u88C5\u98FE\u3092\u66F4\u65B0\u3057\u307E\u3057\u305F",activationError:"Explorer Dates \u306E\u6709\u52B9\u5316\u306B\u5931\u6557\u3057\u307E\u3057\u305F",errorAccessingFile:"\u88C5\u98FE\u7528\u30D5\u30A1\u30A4\u30EB\u3078\u306E\u30A2\u30AF\u30BB\u30B9\u30A8\u30E9\u30FC",clearTelemetryPrompt:"Explorer Dates \u306E\u30ED\u30FC\u30AB\u30EB\u4FDD\u5B58\u30C6\u30EC\u30E1\u30C8\u30EA\u30A4\u30D9\u30F3\u30C8\u3092\u5B8C\u5168\u306B\u524A\u9664\u3057\u307E\u3059\u3002\u3053\u306E\u64CD\u4F5C\u306F\u5143\u306B\u623B\u305B\u307E\u305B\u3093\u3002\u7D9A\u884C\u3057\u307E\u3059\u304B\uFF1F",clearTelemetryConfirm:"\u30C6\u30EC\u30E1\u30C8\u30EA\u3092\u524A\u9664",clearTelemetryCancel:"\u30AD\u30E3\u30F3\u30BB\u30EB",reportFormatDisabled:"\u30EC\u30DD\u30FC\u30C8\u5F62\u5F0F\u300C{0}\u300D\u306F\u7121\u52B9\u3067\u3059\u3002\u8A31\u53EF\u3055\u308C\u3066\u3044\u308B\u5F62\u5F0F: {1}",reportDownloadTriggered:"\u30D6\u30E9\u30A6\u30B6\u3067\u30EC\u30DD\u30FC\u30C8\u306E\u30C0\u30A6\u30F3\u30ED\u30FC\u30C9\u3092\u958B\u59CB\u3057\u307E\u3057\u305F",selectReportTimeRangePlaceholder:"\u30EC\u30DD\u30FC\u30C8\u306E\u671F\u9593\u3092\u9078\u629E",selectReportFormatPlaceholder:"\u30EC\u30DD\u30FC\u30C8\u5F62\u5F0F\u3092\u9078\u629E",cleanupNoDeprecated:"\u2139\uFE0F \u30AF\u30EA\u30FC\u30F3\u30A2\u30C3\u30D7\u3059\u308B\u975E\u63A8\u5968\u8A2D\u5B9A\u306F\u3042\u308A\u307E\u305B\u3093\u3002",showMigrationHistoryNoHistory:"\u79FB\u884C\u5C65\u6B74\u304C\u898B\u3064\u304B\u308A\u307E\u305B\u3093\u3002",resetConfirmation:"Explorer Dates \u306E\u3059\u3079\u3066\u306E\u8A2D\u5B9A\u3092\u65E2\u5B9A\u5024\u306B\u30EA\u30BB\u30C3\u30C8\u3057\u307E\u3059\u3002\u3088\u308D\u3057\u3044\u3067\u3059\u304B\uFF1F",resetConfirm:"\u8A2D\u5B9A\u3092\u30EA\u30BB\u30C3\u30C8",resetCancel:"\u30AD\u30E3\u30F3\u30BB\u30EB",resetSuccess:"\u2705 {0} \u4EF6\u306E\u8A2D\u5B9A\u3092\u65E2\u5B9A\u5024\u306B\u30EA\u30BB\u30C3\u30C8\u3057\u307E\u3057\u305F\u3002",validateNoIssues:"\u2705 \u8A2D\u5B9A\u306F\u6709\u52B9\u3067\u3059 - \u554F\u984C\u306F\u898B\u3064\u304B\u308A\u307E\u305B\u3093\u3067\u3057\u305F\uFF01",validateFoundIssues:"{0} \u4EF6\u306E\u8A2D\u5B9A\u554F\u984C\u304C\u898B\u3064\u304B\u308A\u307E\u3057\u305F\u3002\u8A73\u7D30\u3092\u8868\u793A\u3057\u307E\u3059\u304B\uFF1F",validateShowDetails:"\u8A73\u7D30\u3092\u8868\u793A",validateDismiss:"\u9589\u3058\u308B",migrationNotificationMessage:"Explorer Dates \u306F\u4E92\u63DB\u6027\u306E\u305F\u3081\u306B {0} \u4EF6\u306E\u8A2D\u5B9A\u3092\u66F4\u65B0\u3057\u307E\u3057\u305F\u3002\u8A2D\u5B9A\u306F\u4FDD\u6301\u3055\u308C\u3066\u3044\u307E\u3059\u3002",migrationViewChanges:"\u5909\u66F4\u3092\u8868\u793A",migrationOpenSettings:"\u8A2D\u5B9A\u3092\u958B\u304F",deprecatedPrompt:"Explorer Dates \u306F {0} \u4EF6\u306E\u975E\u63A8\u5968\u8A2D\u5B9A\u3092\u691C\u51FA\u3057\u307E\u3057\u305F\u3002\u524A\u9664\u3057\u307E\u3059\u304B\uFF1F",deprecatedClean:"\u4ECA\u3059\u3050\u30AF\u30EA\u30FC\u30F3\u30A2\u30C3\u30D7",deprecatedKeep:"\u53E4\u3044\u8A2D\u5B9A\u3092\u4FDD\u6301",deprecatedAskLater:"\u5F8C\u3067\u78BA\u8A8D",showFileLocation:"\u30D5\u30A1\u30A4\u30EB\u306E\u5834\u6240\u3092\u8868\u793A",teamConfigCorrupted:"Explorer Dates \u306E\u30C1\u30FC\u30E0\u8A2D\u5B9A\u30D5\u30A1\u30A4\u30EB\u304C\u7834\u640D\u3057\u3066\u3044\u308B\u53EF\u80FD\u6027\u304C\u3042\u308A\u307E\u3059\u3002.explorer-dates-profiles.json \u3092\u78BA\u8A8D\u3059\u308B\u304B\u30D0\u30C3\u30AF\u30A2\u30C3\u30D7\u304B\u3089\u5FA9\u5143\u3057\u3066\u304F\u3060\u3055\u3044\u3002",appliedFromTeamProfile:"\u30C1\u30FC\u30E0\u30D7\u30ED\u30D5\u30A1\u30A4\u30EB\u300C{1}\u300D\u304B\u3089 {0} \u4EF6\u306E Explorer Dates \u8A2D\u5B9A\u3092\u9069\u7528\u3057\u307E\u3057\u305F\u3002",documentedOverrides:".vscode/explorer-dates-overrides.md \u306B Explorer Dates \u306E\u4E0A\u66F8\u304D\u3092\u8A18\u9332\u3057\u307E\u3057\u305F",teamConfigMissingProfile:"\u30C1\u30FC\u30E0\u8A2D\u5B9A\u306B\u30A2\u30AF\u30C6\u30A3\u30D6\u306A\u30D7\u30ED\u30D5\u30A1\u30A4\u30EB\u304C\u3042\u308A\u307E\u305B\u3093\u3002",ephemeralStorageEnospc:"\u30C7\u30A3\u30B9\u30AF\u5BB9\u91CF\u4E0D\u8DB3\u306E\u305F\u3081\u3001Explorer Dates \u306E\u30C1\u30FC\u30E0\u8A2D\u5B9A\u3092\u4FDD\u5B58\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002",ephemeralStorageGeneric:"\u30EF\u30FC\u30AF\u30B9\u30DA\u30FC\u30B9\u304C\u8AAD\u307F\u53D6\u308A\u5C02\u7528\u3001\u307E\u305F\u306F\u6A29\u9650\u304C\u5236\u9650\u3055\u308C\u3066\u3044\u308B\u305F\u3081\u3001Explorer Dates \u306E\u30C1\u30FC\u30E0\u8A2D\u5B9A\u3092\u4FDD\u5B58\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002",ephemeralStorageSuffix:"\u5909\u66F4\u306F VS Code \u304C\u518D\u8D77\u52D5\u3059\u308B\u307E\u3067\u30E1\u30E2\u30EA\u306B\u4FDD\u6301\u3055\u308C\u308B\u305F\u3081\u3001\u5931\u308F\u308C\u308B\u53EF\u80FD\u6027\u304C\u3042\u308A\u307E\u3059\u3002"}});var Ge=f((ga,Sr)=>{Sr.exports={migrationDetailsTitle:"Explorer Dates - \u8BBE\u7F6E\u8FC1\u79FB",migrationDetailsHeader:"\u8BBE\u7F6E\u8FC1\u79FB",gitAttributionWarning:"Explorer Dates\uFF1AGit \u5F52\u5C5E\u5FBD\u7AE0\u5728 VS Code Web \u7248\u4E2D\u4E0D\u53EF\u7528\u3002\u57FA\u4E8E\u65F6\u95F4\u7684\u88C5\u9970\u4ECD\u7136\u53EF\u7528\u3002",noOverridesToDocument:"\u6CA1\u6709\u9700\u8981\u8BB0\u5F55\u7684\u8986\u76D6\u9879\u3002",overrideNotesHeader:"# Explorer Dates \u8986\u76D6\u8BF4\u660E\\n\\n",analysisCommandsDisabled:"Explorer Dates \u5206\u6790\u547D\u4EE4\u5DF2\u7981\u7528\u3002\u5728\u542F\u7528 explorerDates.enableAnalysisCommands \u4E4B\u524D\uFF0CCtrl+Shift+M/H/A \u7B49\u5FEB\u6377\u952E\u5C06\u65E0\u6CD5\u4F7F\u7528\u3002",analysisEnableNow:"\u7ACB\u5373\u542F\u7528",analysisEnablePartially:"\u542F\u7528\u90E8\u5206\u6210\u529F\u3002\u8BF7\u5728\u5269\u4F59\u7684\u5DE5\u4F5C\u533A\u6587\u4EF6\u5939\u4E2D\u624B\u52A8\u66F4\u65B0 explorerDates.enableAnalysisCommands\u3002",analysisEnableFailed:"\u542F\u7528\u5931\u8D25\uFF1A\u8BF7\u5728\u5DE5\u4F5C\u533A\u8BBE\u7F6E\u4E2D\u66F4\u65B0 explorerDates.enableAnalysisCommands\u3002",workspaceTemplatesDisabled:"\u5DE5\u4F5C\u533A\u6A21\u677F\u5DF2\u7981\u7528\u3002\u542F\u7528 explorerDates.enableWorkspaceTemplates \u4EE5\u4F7F\u7528\u6B64\u547D\u4EE4\u3002",workspaceTemplatesDisabledSave:"\u5DE5\u4F5C\u533A\u6A21\u677F\u5DF2\u7981\u7528\u3002\u542F\u7528 explorerDates.enableWorkspaceTemplates \u4EE5\u4FDD\u5B58\u6A21\u677F\u3002",enterTemplateName:"\u8F93\u5165\u6A21\u677F\u540D\u79F0",enterTemplateDescription:"\u8F93\u5165\u63CF\u8FF0\uFF08\u53EF\u9009\uFF09",failedToOpenTemplateManager:"\u65E0\u6CD5\u6253\u5F00\u6A21\u677F\u7BA1\u7406\u5668\uFF1A{0}",failedToSaveTemplate:"\u4FDD\u5B58\u6A21\u677F\u5931\u8D25\uFF1A{0}",reportingDisabled:"\u62A5\u8868\u529F\u80FD\u5DF2\u7981\u7528\u3002\u542F\u7528 explorerDates.enableExportReporting \u4EE5\u751F\u6210\u62A5\u8868\u3002",failedToGenerateReport:"\u751F\u6210\u62A5\u8868\u5931\u8D25\uFF1A{0}",apiDisabled:"Explorer Dates API \u5DF2\u901A\u8FC7\u8BBE\u7F6E\u7981\u7528\u3002",failedToShowApiInformation:"\u663E\u793A API \u4FE1\u606F\u5931\u8D25\uFF1A{0}",failedToShowWorkspaceActivity:"\u663E\u793A\u5DE5\u4F5C\u533A\u6D3B\u52A8\u5931\u8D25\uFF1A{0}",failedToShowPerformanceAnalytics:"\u663E\u793A\u6027\u80FD\u5206\u6790\u5931\u8D25\uFF1A{0}",failedToShowCacheDebugInfo:"\u663E\u793A\u7F13\u5B58\u8C03\u8BD5\u4FE1\u606F\u5931\u8D25\uFF1A{0}",noWorkspaceFolderOpen:"\u672A\u6253\u5F00\u4EFB\u4F55\u5DE5\u4F5C\u533A\u6587\u4EF6\u5939",now:"\u73B0\u5728",minutes:"\u5206",hours:"\u5C0F\u65F6",days:"\u5929",weeks:"\u5468",months:"\u4E2A\u6708",years:"\u5E74",justNow:"\u521A\u521A",minutesAgo:"{0} \u5206\u949F\u524D",hoursAgo:"{0} \u5C0F\u65F6\u524D",daysAgo:"{0} \u5929\u524D",lastModified:"\u6700\u540E\u4FEE\u6539",refreshSuccess:"\u65E5\u671F\u88C5\u9970\u5DF2\u5237\u65B0",activationError:"Explorer Dates \u542F\u52A8\u5931\u8D25",errorAccessingFile:"\u8BBF\u95EE\u7528\u4E8E\u88C5\u9970\u7684\u6587\u4EF6\u65F6\u51FA\u9519",clearTelemetryPrompt:"\u8FD9\u5C06\u6C38\u4E45\u5220\u9664\u672C\u5730\u5B58\u50A8\u7684 Explorer Dates \u9065\u6D4B\u4E8B\u4EF6\u3002\u6B64\u64CD\u4F5C\u65E0\u6CD5\u64A4\u9500\u3002\u662F\u5426\u7EE7\u7EED\uFF1F",clearTelemetryConfirm:"\u6E05\u9664\u9065\u6D4B",clearTelemetryCancel:"\u53D6\u6D88",reportFormatDisabled:"\u62A5\u8868\u683C\u5F0F\u201C{0}\u201D\u5DF2\u7981\u7528\u3002\u5141\u8BB8\u7684\u683C\u5F0F\uFF1A{1}",reportDownloadTriggered:"\u5DF2\u5728\u6D4F\u89C8\u5668\u4E2D\u89E6\u53D1\u62A5\u8868\u4E0B\u8F7D",selectReportTimeRangePlaceholder:"\u9009\u62E9\u62A5\u8868\u65F6\u95F4\u8303\u56F4",selectReportFormatPlaceholder:"\u9009\u62E9\u62A5\u8868\u683C\u5F0F",cleanupNoDeprecated:"\u2139\uFE0F \u672A\u53D1\u73B0\u9700\u8981\u6E05\u7406\u7684\u5DF2\u5F03\u7528\u8BBE\u7F6E\u3002",showMigrationHistoryNoHistory:"\u672A\u627E\u5230\u8FC1\u79FB\u5386\u53F2\u3002",resetConfirmation:"\u8FD9\u5C06\u628A\u6240\u6709 Explorer Dates \u8BBE\u7F6E\u91CD\u7F6E\u4E3A\u9ED8\u8BA4\u503C\u3002\u786E\u5B9A\u5417\uFF1F",resetConfirm:"\u91CD\u7F6E\u8BBE\u7F6E",resetCancel:"\u53D6\u6D88",resetSuccess:"\u2705 \u5DF2\u5C06 {0} \u9879\u8BBE\u7F6E\u91CD\u7F6E\u4E3A\u9ED8\u8BA4\u503C\u3002",validateNoIssues:"\u2705 \u914D\u7F6E\u6709\u6548 - \u672A\u53D1\u73B0\u95EE\u9898\uFF01",validateFoundIssues:"\u53D1\u73B0 {0} \u4E2A\u914D\u7F6E\u95EE\u9898\u3002\u662F\u5426\u67E5\u770B\u8BE6\u7EC6\u4FE1\u606F\uFF1F",validateShowDetails:"\u663E\u793A\u8BE6\u7EC6\u4FE1\u606F",validateDismiss:"\u5173\u95ED",migrationNotificationMessage:"Explorer Dates \u4E3A\u517C\u5BB9\u6027\u66F4\u65B0\u4E86 {0} \u9879\u8BBE\u7F6E\u3002\u60A8\u7684\u914D\u7F6E\u5DF2\u4FDD\u7559\u3002",migrationViewChanges:"\u67E5\u770B\u66F4\u6539",migrationOpenSettings:"\u6253\u5F00\u8BBE\u7F6E",deprecatedPrompt:"Explorer Dates \u53D1\u73B0 {0} \u4E2A\u5DF2\u5F03\u7528\u8BBE\u7F6E\u3002\u662F\u5426\u5220\u9664\uFF1F",deprecatedClean:"\u7ACB\u5373\u6E05\u7406",deprecatedKeep:"\u4FDD\u7559\u65E7\u8BBE\u7F6E",deprecatedAskLater:"\u7A0D\u540E\u8BE2\u95EE",showFileLocation:"\u663E\u793A\u6587\u4EF6\u4F4D\u7F6E",teamConfigCorrupted:"Explorer Dates \u56E2\u961F\u914D\u7F6E\u6587\u4EF6\u4F3C\u4E4E\u5DF2\u635F\u574F\u3002\u8BF7\u68C0\u67E5 .explorer-dates-profiles.json \u6587\u4EF6\u6216\u4ECE\u5907\u4EFD\u6062\u590D\u3002",appliedFromTeamProfile:"\u5DF2\u4ECE\u56E2\u961F\u914D\u7F6E\u6587\u4EF6\u201C{1}\u201D\u5E94\u7528 {0} \u9879 Explorer Dates \u8BBE\u7F6E\u3002",documentedOverrides:"\u5DF2\u5728 .vscode/explorer-dates-overrides.md \u4E2D\u8BB0\u5F55 Explorer Dates \u8986\u76D6\u9879",teamConfigMissingProfile:"\u56E2\u961F\u914D\u7F6E\u7F3A\u5C11\u6D3B\u52A8\u914D\u7F6E\u6587\u4EF6\u3002",ephemeralStorageEnospc:"\u7531\u4E8E\u78C1\u76D8\u5DF2\u6EE1\uFF0C\u65E0\u6CD5\u4FDD\u5B58 Explorer Dates \u56E2\u961F\u914D\u7F6E\u3002",ephemeralStorageGeneric:"\u7531\u4E8E\u5DE5\u4F5C\u533A\u4E3A\u53EA\u8BFB\u6216\u6743\u9650\u53D7\u9650\uFF0C\u65E0\u6CD5\u4FDD\u5B58 Explorer Dates \u56E2\u961F\u914D\u7F6E\u3002",ephemeralStorageSuffix:"\u66F4\u6539\u5C06\u5728 VS Code \u91CD\u542F\u524D\u4FDD\u5B58\u5728\u5185\u5B58\u4E2D\uFF0C\u56E0\u6B64\u53EF\u80FD\u4F1A\u4E22\u5931\u3002"}});var Ye=f((pa,je)=>{var M={};M.en=Se();M.es=Ue();M.fr=Ke();M.de=Ve();M.ja=Be();M.zh=Ge();je.exports=M});var Ze=f((fa,Xe)=>{var W=require("vscode"),P={en:{now:"now",minutes:"m",hours:"h",days:"d",weeks:"w",months:"mo",years:"y",justNow:"just now",minutesAgo:t=>`${t} minute${t!==1?"s":""} ago`,hoursAgo:t=>`${t} hour${t!==1?"s":""} ago`,yesterday:"yesterday",daysAgo:t=>`${t} day${t!==1?"s":""} ago`,lastModified:"Last modified",refreshSuccess:"Date decorations refreshed",activationError:"Explorer Dates failed to activate",errorAccessingFile:"Error accessing file for decoration",clearTelemetryPrompt:"This will permanently delete locally-stored telemetry events for Explorer Dates. This action cannot be undone. Proceed?",clearTelemetryConfirm:"Clear Telemetry",clearTelemetryCancel:"Cancel",clearTelemetrySuccess:"\u2705 Explorer Dates telemetry cleared.",migrateChecking:"Checking for settings that need migration...",migrateAllUpToDate:"\u2705 All settings are up to date!",migrateApplied:t=>`\u2705 Explorer Dates maintenance applied: ${t}.`,organizeSettingsResult:t=>`Explorer Dates settings organized: ${t}`,cleanupSuccess:"\u2705 Deprecated settings have been cleaned up!",reportFormatDisabled:(t,e)=>`Report format "${t}" is disabled. Allowed formats: ${e}`,reportSaved:t=>`Report saved to ${t}`,reportGenerateFailed:"Failed to generate report",reportDownloadTriggered:"Report download triggered in browser",selectReportTimeRangePlaceholder:"Select report time range",selectReportFormatPlaceholder:"Select report format",cleanupNoDeprecated:"\u2139\uFE0F No deprecated settings found to clean up.",showMigrationHistoryNoHistory:"No migration history found.",resetConfirmation:"This will reset all Explorer Dates settings to their default values. Are you sure?",migrationDetailsTitle:"Explorer Dates - Settings Migration",migrationDetailsHeader:"Settings Migration",gitAttributionWarning:"Explorer Dates: Git attribution badges are unavailable on VS Code for Web. Time-based decorations remain available.",noOverridesToDocument:"No overrides to document.",overrideNotesHeader:`# Explorer Dates Override Notes +var Er=Object.create;var Ke=Object.defineProperty;var vr=Object.getOwnPropertyDescriptor;var Cr=Object.getOwnPropertyNames;var Sr=Object.getPrototypeOf,kr=Object.prototype.hasOwnProperty;var f=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var Dr=(t,e,r,a)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of Cr(e))!kr.call(t,n)&&n!==r&&Ke(t,n,{get:()=>e[n],enumerable:!(a=vr(e,n))||a.enumerable});return t};var J=(t,e,r)=>(r=t!=null?Er(Sr(t)):{},Dr(e||!t||!t.__esModule?Ke(r,"default",{value:t,enumerable:!0}):r,t));var T=f((va,Ve)=>{var z="__explorerDatesLogger",H=class{constructor(){this.b=null}y(e,r){if(this.b&&typeof this.b[e]=="function")try{return this.b[e](...r)}catch{}switch(e){case"debug":break;case"info":break;case"warn":break;case"error":break;default:break}}debug(...e){return this.y("debug",e)}info(...e){return this.y("info",e)}warn(...e){return this.y("warn",e)}error(...e){return this.y("error",e)}Oe(e){this.b=e}};function Tr(){return typeof global<"u"?(global[z]||(global[z]=new H),global[z]):typeof globalThis<"u"?(globalThis[z]||(globalThis[z]=new H),globalThis[z]):(Se||(Se=new H),Se)}var ke=class extends H{},Se=null;Ve.exports={Logger:ke,getLogger:Tr}});var De=f((Ca,xr)=>{xr.exports={migrationDetailsTitle:"Explorer Dates - Settings Migration",migrationDetailsHeader:"Settings Migration",gitAttributionWarning:"Explorer Dates: Git attribution badges are unavailable on VS Code for Web. Time-based decorations remain available.",noOverridesToDocument:"No overrides to document.",overrideNotesHeader:"# Explorer Dates Override Notes\\n\\n",analysisCommandsDisabled:"Explorer Dates analysis commands are disabled. Shortcuts like Ctrl+Shift+M/H/A will not work until you enable explorerDates.enableAnalysisCommands.",analysisEnableNow:"Enable Now",analysisEnablePartially:"Enable partially succeeded. Update explorerDates.enableAnalysisCommands in remaining workspace folders manually.",analysisEnableFailed:"Enable failed: update explorerDates.enableAnalysisCommands in workspace settings.",workspaceTemplatesDisabled:"Workspace templates are disabled. Enable explorerDates.enableWorkspaceTemplates to use this command.",workspaceTemplatesDisabledSave:"Workspace templates are disabled. Enable explorerDates.enableWorkspaceTemplates to save templates.",enterTemplateName:"Enter template name",enterTemplateDescription:"Enter description (optional)",failedToOpenTemplateManager:"Failed to open template manager: {0}",failedToSaveTemplate:"Failed to save template: {0}",reportingDisabled:"Reporting features are disabled. Enable explorerDates.enableExportReporting to generate reports.",failedToGenerateReport:"Failed to generate report: {0}",apiDisabled:"Explorer Dates API is disabled via settings.",failedToShowApiInformation:"Failed to show API information: {0}",failedToShowWorkspaceActivity:"Failed to show workspace activity: {0}",failedToShowPerformanceAnalytics:"Failed to show performance analytics: {0}",failedToShowCacheDebugInfo:"Failed to show cache debug info: {0}",noWorkspaceFolderOpen:"No workspace folder open",now:"now",minutes:"m",hours:"h",days:"d",weeks:"w",months:"mo",years:"y",justNow:"just now",minutesAgo:"{0} minute(s) ago",hoursAgo:"{0} hour(s) ago",daysAgo:"{0} day(s) ago",lastModified:"Last modified",refreshSuccess:"Date decorations refreshed",activationError:"Explorer Dates failed to activate",errorAccessingFile:"Error accessing file for decoration",clearTelemetryPrompt:"This will permanently delete locally-stored telemetry events for Explorer Dates. This action cannot be undone. Proceed?",clearTelemetryConfirm:"Clear Telemetry",clearTelemetryCancel:"Cancel",reportFormatDisabled:'Report format "{0}" is disabled. Allowed formats: {1}',reportDownloadTriggered:"Report download triggered in browser",selectReportTimeRangePlaceholder:"Select report time range",selectReportFormatPlaceholder:"Select report format",cleanupNoDeprecated:"\u2139\uFE0F No deprecated settings found to clean up.",showMigrationHistoryNoHistory:"No migration history found.",resetConfirmation:"This will reset all Explorer Dates settings to their default values. Are you sure?",resetConfirm:"Reset Settings",resetCancel:"Cancel",resetSuccess:"\u2705 Reset {0} settings to defaults.",validateNoIssues:"\u2705 Configuration is valid - no issues found!",validateFoundIssues:"Found {0} configuration issue(s). Would you like to see details?",validateShowDetails:"Show Details",validateDismiss:"Dismiss",migrationNotificationMessage:"Explorer Dates updated {0} setting(s) for compatibility. Your configuration has been preserved.",migrationViewChanges:"View Changes",migrationOpenSettings:"Open Settings",deprecatedPrompt:"Explorer Dates found {0} deprecated setting(s). Would you like to remove them?",deprecatedClean:"Clean Up Now",deprecatedKeep:"Keep Old Settings",deprecatedAskLater:"Ask Later",showFileLocation:"Show File Location",teamConfigCorrupted:"Explorer Dates team configuration file appears to be corrupted. Please check the .explorer-dates-profiles.json file or restore from backup.",appliedFromTeamProfile:'Applied {0} Explorer Dates settings from team profile "{1}".',documentedOverrides:"Documented Explorer Dates overrides in .vscode/explorer-dates-overrides.md",teamConfigMissingProfile:"Team configuration is missing an active profile.",ephemeralStorageEnospc:"Explorer Dates team configuration could not be saved because the disk is full.",ephemeralStorageGeneric:"Explorer Dates team configuration could not be saved because the workspace is read-only or permissions are restricted.",ephemeralStorageSuffix:"Changes will be kept in memory until VS Code restarts, so they may be lost."}});var Be=f((Sa,Ar)=>{Ar.exports={migrationDetailsTitle:"Explorer Dates - Migraci\xF3n de configuraci\xF3n",migrationDetailsHeader:"Migraci\xF3n de configuraci\xF3n",gitAttributionWarning:"Explorer Dates: Las insignias de atribuci\xF3n de Git no est\xE1n disponibles en VS Code para la Web. Las decoraciones basadas en tiempo siguen disponibles.",noOverridesToDocument:"No hay anulaciones para documentar.",overrideNotesHeader:"# Notas de anulaci\xF3n de Explorer Dates\\n\\n",analysisCommandsDisabled:"Los comandos de an\xE1lisis de Explorer Dates est\xE1n deshabilitados. Atajos como Ctrl+Shift+M/H/A no funcionar\xE1n hasta que habilites explorerDates.enableAnalysisCommands.",analysisEnableNow:"Habilitar ahora",analysisEnablePartially:"La activaci\xF3n se complet\xF3 parcialmente. Actualiza explorerDates.enableAnalysisCommands manualmente en las carpetas de trabajo restantes.",analysisEnableFailed:"Error al habilitar: actualiza explorerDates.enableAnalysisCommands en la configuraci\xF3n del espacio de trabajo.",workspaceTemplatesDisabled:"Las plantillas de espacio de trabajo est\xE1n deshabilitadas. Habilita explorerDates.enableWorkspaceTemplates para usar este comando.",workspaceTemplatesDisabledSave:"Las plantillas de espacio de trabajo est\xE1n deshabilitadas. Habilita explorerDates.enableWorkspaceTemplates para guardar plantillas.",enterTemplateName:"Introduce el nombre de la plantilla",enterTemplateDescription:"Introduce la descripci\xF3n (opcional)",failedToOpenTemplateManager:"Error al abrir el administrador de plantillas: {0}",failedToSaveTemplate:"Error al guardar la plantilla: {0}",reportingDisabled:"Las funciones de informes est\xE1n deshabilitadas. Habilita explorerDates.enableExportReporting para generar informes.",failedToGenerateReport:"Error al generar el informe: {0}",apiDisabled:"La API de Explorer Dates est\xE1 deshabilitada mediante la configuraci\xF3n.",failedToShowApiInformation:"Error al mostrar la informaci\xF3n de la API: {0}",failedToShowWorkspaceActivity:"Error al mostrar la actividad del espacio de trabajo: {0}",failedToShowPerformanceAnalytics:"Error al mostrar los an\xE1lisis de rendimiento: {0}",failedToShowCacheDebugInfo:"Error al mostrar la informaci\xF3n de depuraci\xF3n de la cach\xE9: {0}",noWorkspaceFolderOpen:"No hay ninguna carpeta de espacio de trabajo abierta",now:"ahora",minutes:"m",hours:"h",days:"d",weeks:"sem",months:"mes",years:"a",justNow:"justo ahora",minutesAgo:"hace {0} minuto(s)",hoursAgo:"hace {0} hora(s)",daysAgo:"hace {0} d\xEDa(s)",lastModified:"\xDAltima modificaci\xF3n",refreshSuccess:"Decoraciones de fecha actualizadas",activationError:"Explorer Dates no se pudo activar",errorAccessingFile:"Error al acceder al archivo para la decoraci\xF3n",clearTelemetryPrompt:"Esto eliminar\xE1 permanentemente los eventos de telemetr\xEDa almacenados localmente para Explorer Dates. Esta acci\xF3n no se puede deshacer. \xBFContinuar?",clearTelemetryConfirm:"Borrar telemetr\xEDa",clearTelemetryCancel:"Cancelar",reportFormatDisabled:'El formato de informe "{0}" est\xE1 deshabilitado. Formatos permitidos: {1}',reportDownloadTriggered:"Descarga del informe iniciada en el navegador",selectReportTimeRangePlaceholder:"Seleccionar rango de tiempo del informe",selectReportFormatPlaceholder:"Seleccionar formato del informe",cleanupNoDeprecated:"\u2139\uFE0F No se encontraron configuraciones obsoletas para limpiar.",showMigrationHistoryNoHistory:"No se encontr\xF3 historial de migraci\xF3n.",resetConfirmation:"Esto restablecer\xE1 todas las configuraciones de Explorer Dates a sus valores predeterminados. \xBFEst\xE1s seguro?",resetConfirm:"Restablecer configuraciones",resetCancel:"Cancelar",resetSuccess:"\u2705 Se restablecieron {0} configuraciones a los valores predeterminados.",validateNoIssues:"\u2705 La configuraci\xF3n es v\xE1lida - no se encontraron problemas.",validateFoundIssues:"Se encontraron {0} problema(s) de configuraci\xF3n. \xBFDeseas ver los detalles?",validateShowDetails:"Mostrar detalles",validateDismiss:"Descartar",migrationNotificationMessage:"Explorer Dates actualiz\xF3 {0} configuraci\xF3n(es) por compatibilidad. Tu configuraci\xF3n se ha conservado.",migrationViewChanges:"Ver cambios",migrationOpenSettings:"Abrir configuraciones",deprecatedPrompt:"Explorer Dates encontr\xF3 {0} configuraci\xF3n(es) obsoleta(s). \xBFDeseas eliminarlas?",deprecatedClean:"Limpiar ahora",deprecatedKeep:"Mantener configuraciones antiguas",deprecatedAskLater:"Preguntar m\xE1s tarde",showFileLocation:"Mostrar ubicaci\xF3n del archivo",teamConfigCorrupted:"El archivo de configuraci\xF3n de equipo de Explorer Dates parece estar da\xF1ado. Verifica el archivo .explorer-dates-profiles.json o restaura desde una copia de seguridad.",appliedFromTeamProfile:'Se aplicaron {0} configuraciones de Explorer Dates desde el perfil de equipo "{1}".',documentedOverrides:"Se documentaron las anulaciones de Explorer Dates en .vscode/explorer-dates-overrides.md",teamConfigMissingProfile:"La configuraci\xF3n del equipo no tiene un perfil activo.",ephemeralStorageEnospc:"No se pudo guardar la configuraci\xF3n de equipo de Explorer Dates porque el disco est\xE1 lleno.",ephemeralStorageGeneric:"No se pudo guardar la configuraci\xF3n de equipo de Explorer Dates porque el espacio de trabajo es de solo lectura o los permisos est\xE1n restringidos.",ephemeralStorageSuffix:"Los cambios se mantendr\xE1n en memoria hasta que VS Code se reinicie, por lo que podr\xEDan perderse."}});var Ge=f((ka,Fr)=>{Fr.exports={migrationDetailsTitle:"Explorer Dates - Migration des param\xE8tres",migrationDetailsHeader:"Migration des param\xE8tres",gitAttributionWarning:"Explorer Dates : Les badges d\u2019attribution Git ne sont pas disponibles sur VS Code pour le Web. Les d\xE9corations bas\xE9es sur le temps restent disponibles.",noOverridesToDocument:"Aucune substitution \xE0 documenter.",overrideNotesHeader:"# Notes de substitution Explorer Dates\\n\\n",analysisCommandsDisabled:"Les commandes d\u2019analyse Explorer Dates sont d\xE9sactiv\xE9es. Les raccourcis comme Ctrl+Shift+M/H/A ne fonctionneront pas tant que vous n\u2019aurez pas activ\xE9 explorerDates.enableAnalysisCommands.",analysisEnableNow:"Activer maintenant",analysisEnablePartially:"L\u2019activation a partiellement r\xE9ussi. Mettez \xE0 jour explorerDates.enableAnalysisCommands manuellement dans les dossiers d\u2019espace de travail restants.",analysisEnableFailed:"\xC9chec de l\u2019activation : mettez \xE0 jour explorerDates.enableAnalysisCommands dans les param\xE8tres de l\u2019espace de travail.",workspaceTemplatesDisabled:"Les mod\xE8les d\u2019espace de travail sont d\xE9sactiv\xE9s. Activez explorerDates.enableWorkspaceTemplates pour utiliser cette commande.",workspaceTemplatesDisabledSave:"Les mod\xE8les d\u2019espace de travail sont d\xE9sactiv\xE9s. Activez explorerDates.enableWorkspaceTemplates pour enregistrer des mod\xE8les.",enterTemplateName:"Entrez le nom du mod\xE8le",enterTemplateDescription:"Entrez la description (facultatif)",failedToOpenTemplateManager:"Impossible d\u2019ouvrir le gestionnaire de mod\xE8les : {0}",failedToSaveTemplate:"Impossible d\u2019enregistrer le mod\xE8le : {0}",reportingDisabled:"Les fonctionnalit\xE9s de rapport sont d\xE9sactiv\xE9es. Activez explorerDates.enableExportReporting pour g\xE9n\xE9rer des rapports.",failedToGenerateReport:"Impossible de g\xE9n\xE9rer le rapport : {0}",apiDisabled:"L\u2019API Explorer Dates est d\xE9sactiv\xE9e via les param\xE8tres.",failedToShowApiInformation:"Impossible d\u2019afficher les informations de l\u2019API : {0}",failedToShowWorkspaceActivity:"Impossible d\u2019afficher l\u2019activit\xE9 de l\u2019espace de travail : {0}",failedToShowPerformanceAnalytics:"Impossible d\u2019afficher les analyses de performance : {0}",failedToShowCacheDebugInfo:"Impossible d\u2019afficher les informations de d\xE9bogage du cache : {0}",noWorkspaceFolderOpen:"Aucun dossier d\u2019espace de travail ouvert",now:"maintenant",minutes:"min",hours:"h",days:"j",weeks:"sem",months:"mois",years:"an",justNow:"\xE0 l\u2019instant",minutesAgo:"il y a {0} minute(s)",hoursAgo:"il y a {0} heure(s)",daysAgo:"il y a {0} jour(s)",lastModified:"Derni\xE8re modification",refreshSuccess:"D\xE9corations de date actualis\xE9es",activationError:"\xC9chec de l\u2019activation d\u2019Explorer Dates",errorAccessingFile:"Erreur lors de l\u2019acc\xE8s au fichier pour la d\xE9coration",clearTelemetryPrompt:"Cela supprimera d\xE9finitivement les \xE9v\xE9nements de t\xE9l\xE9m\xE9trie stock\xE9s localement pour Explorer Dates. Cette action est irr\xE9versible. Continuer ?",clearTelemetryConfirm:"Effacer la t\xE9l\xE9m\xE9trie",clearTelemetryCancel:"Annuler",reportFormatDisabled:'Le format de rapport "{0}" est d\xE9sactiv\xE9. Formats autoris\xE9s : {1}',reportDownloadTriggered:"T\xE9l\xE9chargement du rapport lanc\xE9 dans le navigateur",selectReportTimeRangePlaceholder:"S\xE9lectionner la p\xE9riode du rapport",selectReportFormatPlaceholder:"S\xE9lectionner le format du rapport",cleanupNoDeprecated:"\u2139\uFE0F Aucun param\xE8tre obsol\xE8te \xE0 nettoyer.",showMigrationHistoryNoHistory:"Aucun historique de migration trouv\xE9.",resetConfirmation:"Cela r\xE9initialisera tous les param\xE8tres Explorer Dates \xE0 leurs valeurs par d\xE9faut. \xCAtes-vous s\xFBr ?",resetConfirm:"R\xE9initialiser les param\xE8tres",resetCancel:"Annuler",resetSuccess:"\u2705 {0} param\xE8tres ont \xE9t\xE9 r\xE9initialis\xE9s aux valeurs par d\xE9faut.",validateNoIssues:"\u2705 La configuration est valide - aucun probl\xE8me d\xE9tect\xE9 !",validateFoundIssues:"{0} probl\xE8me(s) de configuration trouv\xE9(s). Voulez-vous voir les d\xE9tails ?",validateShowDetails:"Afficher les d\xE9tails",validateDismiss:"Ignorer",migrationNotificationMessage:"Explorer Dates a mis \xE0 jour {0} param\xE8tre(s) pour compatibilit\xE9. Votre configuration a \xE9t\xE9 conserv\xE9e.",migrationViewChanges:"Voir les modifications",migrationOpenSettings:"Ouvrir les param\xE8tres",deprecatedPrompt:"Explorer Dates a trouv\xE9 {0} param\xE8tre(s) obsol\xE8te(s). Voulez-vous les supprimer ?",deprecatedClean:"Nettoyer maintenant",deprecatedKeep:"Conserver les anciens param\xE8tres",deprecatedAskLater:"Demander plus tard",showFileLocation:"Afficher l\u2019emplacement du fichier",teamConfigCorrupted:"Le fichier de configuration d\u2019\xE9quipe Explorer Dates semble corrompu. V\xE9rifiez le fichier .explorer-dates-profiles.json ou restaurez-le depuis une sauvegarde.",appliedFromTeamProfile:'{0} param\xE8tres Explorer Dates appliqu\xE9s depuis le profil d\u2019\xE9quipe "{1}".',documentedOverrides:"Substitutions Explorer Dates document\xE9es dans .vscode/explorer-dates-overrides.md",teamConfigMissingProfile:"La configuration d\u2019\xE9quipe ne contient aucun profil actif.",ephemeralStorageEnospc:"Impossible d\u2019enregistrer la configuration d\u2019\xE9quipe Explorer Dates car le disque est plein.",ephemeralStorageGeneric:"Impossible d\u2019enregistrer la configuration d\u2019\xE9quipe Explorer Dates car l\u2019espace de travail est en lecture seule ou les permissions sont restreintes.",ephemeralStorageSuffix:"Les modifications seront conserv\xE9es en m\xE9moire jusqu\u2019au red\xE9marrage de VS Code et pourraient \xEAtre perdues."}});var je=f((Da,Rr)=>{Rr.exports={migrationDetailsTitle:"Explorer Dates - Einstellungen migrieren",migrationDetailsHeader:"Einstellungen migrieren",gitAttributionWarning:"Explorer Dates: Git-Zuordnungsabzeichen sind in VS Code f\xFCr das Web nicht verf\xFCgbar. Zeitbasierte Hervorhebungen bleiben verf\xFCgbar.",noOverridesToDocument:"Keine \xDCberschreibungen zu dokumentieren.",overrideNotesHeader:"# Explorer Dates \xDCberschreibungsnotizen\\n\\n",analysisCommandsDisabled:"Die Analysebefehle von Explorer Dates sind deaktiviert. Tastenkombinationen wie Ctrl+Shift+M/H/A funktionieren nicht, bis explorerDates.enableAnalysisCommands aktiviert ist.",analysisEnableNow:"Jetzt aktivieren",analysisEnablePartially:"Die Aktivierung war teilweise erfolgreich. Aktualisieren Sie explorerDates.enableAnalysisCommands manuell in den verbleibenden Workspace-Ordnern.",analysisEnableFailed:"Aktivierung fehlgeschlagen: Aktualisieren Sie explorerDates.enableAnalysisCommands in den Workspace-Einstellungen.",workspaceTemplatesDisabled:"Workspace-Vorlagen sind deaktiviert. Aktivieren Sie explorerDates.enableWorkspaceTemplates, um diesen Befehl zu verwenden.",workspaceTemplatesDisabledSave:"Workspace-Vorlagen sind deaktiviert. Aktivieren Sie explorerDates.enableWorkspaceTemplates, um Vorlagen zu speichern.",enterTemplateName:"Vorlagenname eingeben",enterTemplateDescription:"Beschreibung eingeben (optional)",failedToOpenTemplateManager:"Fehler beim \xD6ffnen des Vorlagenmanagers: {0}",failedToSaveTemplate:"Fehler beim Speichern der Vorlage: {0}",reportingDisabled:"Berichtsfunktionen sind deaktiviert. Aktivieren Sie explorerDates.enableExportReporting, um Berichte zu erstellen.",failedToGenerateReport:"Fehler beim Erstellen des Berichts: {0}",apiDisabled:"Die Explorer Dates API ist in den Einstellungen deaktiviert.",failedToShowApiInformation:"Fehler beim Anzeigen der API-Informationen: {0}",failedToShowWorkspaceActivity:"Fehler beim Anzeigen der Workspace-Aktivit\xE4t: {0}",failedToShowPerformanceAnalytics:"Fehler beim Anzeigen der Leistungsanalysen: {0}",failedToShowCacheDebugInfo:"Fehler beim Anzeigen der Cache-Debug-Informationen: {0}",noWorkspaceFolderOpen:"Kein Workspace-Ordner ge\xF6ffnet",now:"jetzt",minutes:"Min",hours:"Std",days:"T",weeks:"W",months:"Mon",years:"J",justNow:"gerade eben",minutesAgo:"vor {0} Minute(n)",hoursAgo:"vor {0} Stunde(n)",daysAgo:"vor {0} Tag(en)",lastModified:"Zuletzt ge\xE4ndert",refreshSuccess:"Datumsdekorationen aktualisiert",activationError:"Explorer Dates konnte nicht aktiviert werden",errorAccessingFile:"Fehler beim Zugriff auf Datei f\xFCr Dekoration",clearTelemetryPrompt:"Dies l\xF6scht dauerhaft lokal gespeicherte Telemetrieereignisse f\xFCr Explorer Dates. Diese Aktion kann nicht r\xFCckg\xE4ngig gemacht werden. Fortfahren?",clearTelemetryConfirm:"Telemetrie l\xF6schen",clearTelemetryCancel:"Abbrechen",reportFormatDisabled:'Berichtsformat "{0}" ist deaktiviert. Zul\xE4ssige Formate: {1}',reportDownloadTriggered:"Bericht-Download im Browser gestartet",selectReportTimeRangePlaceholder:"Berichtszeitraum ausw\xE4hlen",selectReportFormatPlaceholder:"Berichtsformat ausw\xE4hlen",cleanupNoDeprecated:"\u2139\uFE0F Keine veralteten Einstellungen zum Bereinigen gefunden.",showMigrationHistoryNoHistory:"Kein Migrationsverlauf gefunden.",resetConfirmation:"Dies setzt alle Explorer Dates Einstellungen auf ihre Standardwerte zur\xFCck. Sind Sie sicher?",resetConfirm:"Einstellungen zur\xFCcksetzen",resetCancel:"Abbrechen",resetSuccess:"\u2705 {0} Einstellungen auf Standard zur\xFCckgesetzt.",validateNoIssues:"\u2705 Konfiguration ist g\xFCltig - keine Probleme gefunden!",validateFoundIssues:"{0} Konfigurationsproblem(e) gefunden. M\xF6chten Sie Details sehen?",validateShowDetails:"Details anzeigen",validateDismiss:"Verwerfen",migrationNotificationMessage:"Explorer Dates hat {0} Einstellung(en) zur Kompatibilit\xE4t aktualisiert. Ihre Konfiguration wurde beibehalten.",migrationViewChanges:"\xC4nderungen anzeigen",migrationOpenSettings:"Einstellungen \xF6ffnen",deprecatedPrompt:"Explorer Dates hat {0} veraltete Einstellung(en) gefunden. M\xF6chten Sie sie entfernen?",deprecatedClean:"Jetzt bereinigen",deprecatedKeep:"Alte Einstellungen behalten",deprecatedAskLater:"Sp\xE4ter fragen",showFileLocation:"Dateispeicherort anzeigen",teamConfigCorrupted:"Die Teamkonfigurationsdatei von Explorer Dates scheint besch\xE4digt zu sein. Bitte pr\xFCfen Sie die Datei .explorer-dates-profiles.json oder stellen Sie sie aus einem Backup wieder her.",appliedFromTeamProfile:'{0} Explorer Dates-Einstellungen aus dem Teamprofil "{1}" angewendet.',documentedOverrides:"Explorer Dates-\xDCberschreibungen in .vscode/explorer-dates-overrides.md dokumentiert",teamConfigMissingProfile:"Der Teamkonfiguration fehlt ein aktives Profil.",ephemeralStorageEnospc:"Die Teamkonfiguration von Explorer Dates konnte nicht gespeichert werden, da die Festplatte voll ist.",ephemeralStorageGeneric:"Die Teamkonfiguration von Explorer Dates konnte nicht gespeichert werden, da der Workspace schreibgesch\xFCtzt ist oder die Berechtigungen eingeschr\xE4nkt sind.",ephemeralStorageSuffix:"\xC4nderungen werden im Speicher behalten, bis VS Code neu startet, und k\xF6nnen verloren gehen."}});var Ye=f((Ta,Pr)=>{Pr.exports={migrationDetailsTitle:"Explorer Dates - \u8A2D\u5B9A\u306E\u79FB\u884C",migrationDetailsHeader:"\u8A2D\u5B9A\u306E\u79FB\u884C",gitAttributionWarning:"Explorer Dates: Git \u306E\u5E30\u5C5E\u30D0\u30C3\u30B8\u306F VS Code for Web \u3067\u306F\u5229\u7528\u3067\u304D\u307E\u305B\u3093\u3002\u6642\u9593\u30D9\u30FC\u30B9\u306E\u88C5\u98FE\u306F\u5F15\u304D\u7D9A\u304D\u5229\u7528\u3067\u304D\u307E\u3059\u3002",noOverridesToDocument:"\u30C9\u30AD\u30E5\u30E1\u30F3\u30C8\u5316\u3059\u308B\u4E0A\u66F8\u304D\u306F\u3042\u308A\u307E\u305B\u3093\u3002",overrideNotesHeader:"# Explorer Dates \u4E0A\u66F8\u304D\u30E1\u30E2\\n\\n",analysisCommandsDisabled:"Explorer Dates \u306E\u5206\u6790\u30B3\u30DE\u30F3\u30C9\u306F\u7121\u52B9\u306B\u306A\u3063\u3066\u3044\u307E\u3059\u3002Ctrl+Shift+M/H/A \u306A\u3069\u306E\u30B7\u30E7\u30FC\u30C8\u30AB\u30C3\u30C8\u306F explorerDates.enableAnalysisCommands \u3092\u6709\u52B9\u306B\u3059\u308B\u307E\u3067\u6A5F\u80FD\u3057\u307E\u305B\u3093\u3002",analysisEnableNow:"\u4ECA\u3059\u3050\u6709\u52B9\u306B\u3059\u308B",analysisEnablePartially:"\u6709\u52B9\u5316\u306F\u4E00\u90E8\u6210\u529F\u3057\u307E\u3057\u305F\u3002\u6B8B\u308A\u306E\u30EF\u30FC\u30AF\u30B9\u30DA\u30FC\u30B9\u30D5\u30A9\u30EB\u30C0\u30FC\u3067 explorerDates.enableAnalysisCommands \u3092\u624B\u52D5\u3067\u66F4\u65B0\u3057\u3066\u304F\u3060\u3055\u3044\u3002",analysisEnableFailed:"\u6709\u52B9\u5316\u306B\u5931\u6557\u3057\u307E\u3057\u305F\uFF1A\u30EF\u30FC\u30AF\u30B9\u30DA\u30FC\u30B9\u8A2D\u5B9A\u3067 explorerDates.enableAnalysisCommands \u3092\u66F4\u65B0\u3057\u3066\u304F\u3060\u3055\u3044\u3002",workspaceTemplatesDisabled:"\u30EF\u30FC\u30AF\u30B9\u30DA\u30FC\u30B9\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8\u306F\u7121\u52B9\u306B\u306A\u3063\u3066\u3044\u307E\u3059\u3002\u3053\u306E\u30B3\u30DE\u30F3\u30C9\u3092\u4F7F\u7528\u3059\u308B\u306B\u306F explorerDates.enableWorkspaceTemplates \u3092\u6709\u52B9\u306B\u3057\u3066\u304F\u3060\u3055\u3044\u3002",workspaceTemplatesDisabledSave:"\u30EF\u30FC\u30AF\u30B9\u30DA\u30FC\u30B9\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8\u306F\u7121\u52B9\u306B\u306A\u3063\u3066\u3044\u307E\u3059\u3002\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8\u3092\u4FDD\u5B58\u3059\u308B\u306B\u306F explorerDates.enableWorkspaceTemplates \u3092\u6709\u52B9\u306B\u3057\u3066\u304F\u3060\u3055\u3044\u3002",enterTemplateName:"\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8\u540D\u3092\u5165\u529B",enterTemplateDescription:"\u8AAC\u660E\u3092\u5165\u529B\uFF08\u4EFB\u610F\uFF09",failedToOpenTemplateManager:"\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8\u30DE\u30CD\u30FC\u30B8\u30E3\u30FC\u3092\u958B\u3051\u307E\u305B\u3093\u3067\u3057\u305F: {0}",failedToSaveTemplate:"\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8\u306E\u4FDD\u5B58\u306B\u5931\u6557\u3057\u307E\u3057\u305F: {0}",reportingDisabled:"\u30EC\u30DD\u30FC\u30C8\u6A5F\u80FD\u306F\u7121\u52B9\u306B\u306A\u3063\u3066\u3044\u307E\u3059\u3002\u30EC\u30DD\u30FC\u30C8\u3092\u751F\u6210\u3059\u308B\u306B\u306F explorerDates.enableExportReporting \u3092\u6709\u52B9\u306B\u3057\u3066\u304F\u3060\u3055\u3044\u3002",failedToGenerateReport:"\u30EC\u30DD\u30FC\u30C8\u306E\u751F\u6210\u306B\u5931\u6557\u3057\u307E\u3057\u305F: {0}",apiDisabled:"Explorer Dates API \u306F\u8A2D\u5B9A\u3067\u7121\u52B9\u306B\u306A\u3063\u3066\u3044\u307E\u3059\u3002",failedToShowApiInformation:"API \u60C5\u5831\u306E\u8868\u793A\u306B\u5931\u6557\u3057\u307E\u3057\u305F: {0}",failedToShowWorkspaceActivity:"\u30EF\u30FC\u30AF\u30B9\u30DA\u30FC\u30B9\u306E\u30A2\u30AF\u30C6\u30A3\u30D3\u30C6\u30A3\u3092\u8868\u793A\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F: {0}",failedToShowPerformanceAnalytics:"\u30D1\u30D5\u30A9\u30FC\u30DE\u30F3\u30B9\u5206\u6790\u3092\u8868\u793A\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F: {0}",failedToShowCacheDebugInfo:"\u30AD\u30E3\u30C3\u30B7\u30E5\u306E\u30C7\u30D0\u30C3\u30B0\u60C5\u5831\u3092\u8868\u793A\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F: {0}",noWorkspaceFolderOpen:"\u30EF\u30FC\u30AF\u30B9\u30DA\u30FC\u30B9\u30D5\u30A9\u30EB\u30C0\u30FC\u304C\u958B\u304B\u308C\u3066\u3044\u307E\u305B\u3093",now:"\u4ECA",minutes:"\u5206",hours:"\u6642\u9593",days:"\u65E5",weeks:"\u9031",months:"\u304B\u6708",years:"\u5E74",justNow:"\u305F\u3063\u305F\u4ECA",minutesAgo:"{0} \u5206\u524D",hoursAgo:"{0} \u6642\u9593\u524D",daysAgo:"{0} \u65E5\u524D",lastModified:"\u6700\u7D42\u66F4\u65B0",refreshSuccess:"\u65E5\u4ED8\u88C5\u98FE\u3092\u66F4\u65B0\u3057\u307E\u3057\u305F",activationError:"Explorer Dates \u306E\u6709\u52B9\u5316\u306B\u5931\u6557\u3057\u307E\u3057\u305F",errorAccessingFile:"\u88C5\u98FE\u7528\u30D5\u30A1\u30A4\u30EB\u3078\u306E\u30A2\u30AF\u30BB\u30B9\u30A8\u30E9\u30FC",clearTelemetryPrompt:"Explorer Dates \u306E\u30ED\u30FC\u30AB\u30EB\u4FDD\u5B58\u30C6\u30EC\u30E1\u30C8\u30EA\u30A4\u30D9\u30F3\u30C8\u3092\u5B8C\u5168\u306B\u524A\u9664\u3057\u307E\u3059\u3002\u3053\u306E\u64CD\u4F5C\u306F\u5143\u306B\u623B\u305B\u307E\u305B\u3093\u3002\u7D9A\u884C\u3057\u307E\u3059\u304B\uFF1F",clearTelemetryConfirm:"\u30C6\u30EC\u30E1\u30C8\u30EA\u3092\u524A\u9664",clearTelemetryCancel:"\u30AD\u30E3\u30F3\u30BB\u30EB",reportFormatDisabled:"\u30EC\u30DD\u30FC\u30C8\u5F62\u5F0F\u300C{0}\u300D\u306F\u7121\u52B9\u3067\u3059\u3002\u8A31\u53EF\u3055\u308C\u3066\u3044\u308B\u5F62\u5F0F: {1}",reportDownloadTriggered:"\u30D6\u30E9\u30A6\u30B6\u3067\u30EC\u30DD\u30FC\u30C8\u306E\u30C0\u30A6\u30F3\u30ED\u30FC\u30C9\u3092\u958B\u59CB\u3057\u307E\u3057\u305F",selectReportTimeRangePlaceholder:"\u30EC\u30DD\u30FC\u30C8\u306E\u671F\u9593\u3092\u9078\u629E",selectReportFormatPlaceholder:"\u30EC\u30DD\u30FC\u30C8\u5F62\u5F0F\u3092\u9078\u629E",cleanupNoDeprecated:"\u2139\uFE0F \u30AF\u30EA\u30FC\u30F3\u30A2\u30C3\u30D7\u3059\u308B\u975E\u63A8\u5968\u8A2D\u5B9A\u306F\u3042\u308A\u307E\u305B\u3093\u3002",showMigrationHistoryNoHistory:"\u79FB\u884C\u5C65\u6B74\u304C\u898B\u3064\u304B\u308A\u307E\u305B\u3093\u3002",resetConfirmation:"Explorer Dates \u306E\u3059\u3079\u3066\u306E\u8A2D\u5B9A\u3092\u65E2\u5B9A\u5024\u306B\u30EA\u30BB\u30C3\u30C8\u3057\u307E\u3059\u3002\u3088\u308D\u3057\u3044\u3067\u3059\u304B\uFF1F",resetConfirm:"\u8A2D\u5B9A\u3092\u30EA\u30BB\u30C3\u30C8",resetCancel:"\u30AD\u30E3\u30F3\u30BB\u30EB",resetSuccess:"\u2705 {0} \u4EF6\u306E\u8A2D\u5B9A\u3092\u65E2\u5B9A\u5024\u306B\u30EA\u30BB\u30C3\u30C8\u3057\u307E\u3057\u305F\u3002",validateNoIssues:"\u2705 \u8A2D\u5B9A\u306F\u6709\u52B9\u3067\u3059 - \u554F\u984C\u306F\u898B\u3064\u304B\u308A\u307E\u305B\u3093\u3067\u3057\u305F\uFF01",validateFoundIssues:"{0} \u4EF6\u306E\u8A2D\u5B9A\u554F\u984C\u304C\u898B\u3064\u304B\u308A\u307E\u3057\u305F\u3002\u8A73\u7D30\u3092\u8868\u793A\u3057\u307E\u3059\u304B\uFF1F",validateShowDetails:"\u8A73\u7D30\u3092\u8868\u793A",validateDismiss:"\u9589\u3058\u308B",migrationNotificationMessage:"Explorer Dates \u306F\u4E92\u63DB\u6027\u306E\u305F\u3081\u306B {0} \u4EF6\u306E\u8A2D\u5B9A\u3092\u66F4\u65B0\u3057\u307E\u3057\u305F\u3002\u8A2D\u5B9A\u306F\u4FDD\u6301\u3055\u308C\u3066\u3044\u307E\u3059\u3002",migrationViewChanges:"\u5909\u66F4\u3092\u8868\u793A",migrationOpenSettings:"\u8A2D\u5B9A\u3092\u958B\u304F",deprecatedPrompt:"Explorer Dates \u306F {0} \u4EF6\u306E\u975E\u63A8\u5968\u8A2D\u5B9A\u3092\u691C\u51FA\u3057\u307E\u3057\u305F\u3002\u524A\u9664\u3057\u307E\u3059\u304B\uFF1F",deprecatedClean:"\u4ECA\u3059\u3050\u30AF\u30EA\u30FC\u30F3\u30A2\u30C3\u30D7",deprecatedKeep:"\u53E4\u3044\u8A2D\u5B9A\u3092\u4FDD\u6301",deprecatedAskLater:"\u5F8C\u3067\u78BA\u8A8D",showFileLocation:"\u30D5\u30A1\u30A4\u30EB\u306E\u5834\u6240\u3092\u8868\u793A",teamConfigCorrupted:"Explorer Dates \u306E\u30C1\u30FC\u30E0\u8A2D\u5B9A\u30D5\u30A1\u30A4\u30EB\u304C\u7834\u640D\u3057\u3066\u3044\u308B\u53EF\u80FD\u6027\u304C\u3042\u308A\u307E\u3059\u3002.explorer-dates-profiles.json \u3092\u78BA\u8A8D\u3059\u308B\u304B\u30D0\u30C3\u30AF\u30A2\u30C3\u30D7\u304B\u3089\u5FA9\u5143\u3057\u3066\u304F\u3060\u3055\u3044\u3002",appliedFromTeamProfile:"\u30C1\u30FC\u30E0\u30D7\u30ED\u30D5\u30A1\u30A4\u30EB\u300C{1}\u300D\u304B\u3089 {0} \u4EF6\u306E Explorer Dates \u8A2D\u5B9A\u3092\u9069\u7528\u3057\u307E\u3057\u305F\u3002",documentedOverrides:".vscode/explorer-dates-overrides.md \u306B Explorer Dates \u306E\u4E0A\u66F8\u304D\u3092\u8A18\u9332\u3057\u307E\u3057\u305F",teamConfigMissingProfile:"\u30C1\u30FC\u30E0\u8A2D\u5B9A\u306B\u30A2\u30AF\u30C6\u30A3\u30D6\u306A\u30D7\u30ED\u30D5\u30A1\u30A4\u30EB\u304C\u3042\u308A\u307E\u305B\u3093\u3002",ephemeralStorageEnospc:"\u30C7\u30A3\u30B9\u30AF\u5BB9\u91CF\u4E0D\u8DB3\u306E\u305F\u3081\u3001Explorer Dates \u306E\u30C1\u30FC\u30E0\u8A2D\u5B9A\u3092\u4FDD\u5B58\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002",ephemeralStorageGeneric:"\u30EF\u30FC\u30AF\u30B9\u30DA\u30FC\u30B9\u304C\u8AAD\u307F\u53D6\u308A\u5C02\u7528\u3001\u307E\u305F\u306F\u6A29\u9650\u304C\u5236\u9650\u3055\u308C\u3066\u3044\u308B\u305F\u3081\u3001Explorer Dates \u306E\u30C1\u30FC\u30E0\u8A2D\u5B9A\u3092\u4FDD\u5B58\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002",ephemeralStorageSuffix:"\u5909\u66F4\u306F VS Code \u304C\u518D\u8D77\u52D5\u3059\u308B\u307E\u3067\u30E1\u30E2\u30EA\u306B\u4FDD\u6301\u3055\u308C\u308B\u305F\u3081\u3001\u5931\u308F\u308C\u308B\u53EF\u80FD\u6027\u304C\u3042\u308A\u307E\u3059\u3002"}});var Xe=f((xa,_r)=>{_r.exports={migrationDetailsTitle:"Explorer Dates - \u8BBE\u7F6E\u8FC1\u79FB",migrationDetailsHeader:"\u8BBE\u7F6E\u8FC1\u79FB",gitAttributionWarning:"Explorer Dates\uFF1AGit \u5F52\u5C5E\u5FBD\u7AE0\u5728 VS Code Web \u7248\u4E2D\u4E0D\u53EF\u7528\u3002\u57FA\u4E8E\u65F6\u95F4\u7684\u88C5\u9970\u4ECD\u7136\u53EF\u7528\u3002",noOverridesToDocument:"\u6CA1\u6709\u9700\u8981\u8BB0\u5F55\u7684\u8986\u76D6\u9879\u3002",overrideNotesHeader:"# Explorer Dates \u8986\u76D6\u8BF4\u660E\\n\\n",analysisCommandsDisabled:"Explorer Dates \u5206\u6790\u547D\u4EE4\u5DF2\u7981\u7528\u3002\u5728\u542F\u7528 explorerDates.enableAnalysisCommands \u4E4B\u524D\uFF0CCtrl+Shift+M/H/A \u7B49\u5FEB\u6377\u952E\u5C06\u65E0\u6CD5\u4F7F\u7528\u3002",analysisEnableNow:"\u7ACB\u5373\u542F\u7528",analysisEnablePartially:"\u542F\u7528\u90E8\u5206\u6210\u529F\u3002\u8BF7\u5728\u5269\u4F59\u7684\u5DE5\u4F5C\u533A\u6587\u4EF6\u5939\u4E2D\u624B\u52A8\u66F4\u65B0 explorerDates.enableAnalysisCommands\u3002",analysisEnableFailed:"\u542F\u7528\u5931\u8D25\uFF1A\u8BF7\u5728\u5DE5\u4F5C\u533A\u8BBE\u7F6E\u4E2D\u66F4\u65B0 explorerDates.enableAnalysisCommands\u3002",workspaceTemplatesDisabled:"\u5DE5\u4F5C\u533A\u6A21\u677F\u5DF2\u7981\u7528\u3002\u542F\u7528 explorerDates.enableWorkspaceTemplates \u4EE5\u4F7F\u7528\u6B64\u547D\u4EE4\u3002",workspaceTemplatesDisabledSave:"\u5DE5\u4F5C\u533A\u6A21\u677F\u5DF2\u7981\u7528\u3002\u542F\u7528 explorerDates.enableWorkspaceTemplates \u4EE5\u4FDD\u5B58\u6A21\u677F\u3002",enterTemplateName:"\u8F93\u5165\u6A21\u677F\u540D\u79F0",enterTemplateDescription:"\u8F93\u5165\u63CF\u8FF0\uFF08\u53EF\u9009\uFF09",failedToOpenTemplateManager:"\u65E0\u6CD5\u6253\u5F00\u6A21\u677F\u7BA1\u7406\u5668\uFF1A{0}",failedToSaveTemplate:"\u4FDD\u5B58\u6A21\u677F\u5931\u8D25\uFF1A{0}",reportingDisabled:"\u62A5\u8868\u529F\u80FD\u5DF2\u7981\u7528\u3002\u542F\u7528 explorerDates.enableExportReporting \u4EE5\u751F\u6210\u62A5\u8868\u3002",failedToGenerateReport:"\u751F\u6210\u62A5\u8868\u5931\u8D25\uFF1A{0}",apiDisabled:"Explorer Dates API \u5DF2\u901A\u8FC7\u8BBE\u7F6E\u7981\u7528\u3002",failedToShowApiInformation:"\u663E\u793A API \u4FE1\u606F\u5931\u8D25\uFF1A{0}",failedToShowWorkspaceActivity:"\u663E\u793A\u5DE5\u4F5C\u533A\u6D3B\u52A8\u5931\u8D25\uFF1A{0}",failedToShowPerformanceAnalytics:"\u663E\u793A\u6027\u80FD\u5206\u6790\u5931\u8D25\uFF1A{0}",failedToShowCacheDebugInfo:"\u663E\u793A\u7F13\u5B58\u8C03\u8BD5\u4FE1\u606F\u5931\u8D25\uFF1A{0}",noWorkspaceFolderOpen:"\u672A\u6253\u5F00\u4EFB\u4F55\u5DE5\u4F5C\u533A\u6587\u4EF6\u5939",now:"\u73B0\u5728",minutes:"\u5206",hours:"\u5C0F\u65F6",days:"\u5929",weeks:"\u5468",months:"\u4E2A\u6708",years:"\u5E74",justNow:"\u521A\u521A",minutesAgo:"{0} \u5206\u949F\u524D",hoursAgo:"{0} \u5C0F\u65F6\u524D",daysAgo:"{0} \u5929\u524D",lastModified:"\u6700\u540E\u4FEE\u6539",refreshSuccess:"\u65E5\u671F\u88C5\u9970\u5DF2\u5237\u65B0",activationError:"Explorer Dates \u542F\u52A8\u5931\u8D25",errorAccessingFile:"\u8BBF\u95EE\u7528\u4E8E\u88C5\u9970\u7684\u6587\u4EF6\u65F6\u51FA\u9519",clearTelemetryPrompt:"\u8FD9\u5C06\u6C38\u4E45\u5220\u9664\u672C\u5730\u5B58\u50A8\u7684 Explorer Dates \u9065\u6D4B\u4E8B\u4EF6\u3002\u6B64\u64CD\u4F5C\u65E0\u6CD5\u64A4\u9500\u3002\u662F\u5426\u7EE7\u7EED\uFF1F",clearTelemetryConfirm:"\u6E05\u9664\u9065\u6D4B",clearTelemetryCancel:"\u53D6\u6D88",reportFormatDisabled:"\u62A5\u8868\u683C\u5F0F\u201C{0}\u201D\u5DF2\u7981\u7528\u3002\u5141\u8BB8\u7684\u683C\u5F0F\uFF1A{1}",reportDownloadTriggered:"\u5DF2\u5728\u6D4F\u89C8\u5668\u4E2D\u89E6\u53D1\u62A5\u8868\u4E0B\u8F7D",selectReportTimeRangePlaceholder:"\u9009\u62E9\u62A5\u8868\u65F6\u95F4\u8303\u56F4",selectReportFormatPlaceholder:"\u9009\u62E9\u62A5\u8868\u683C\u5F0F",cleanupNoDeprecated:"\u2139\uFE0F \u672A\u53D1\u73B0\u9700\u8981\u6E05\u7406\u7684\u5DF2\u5F03\u7528\u8BBE\u7F6E\u3002",showMigrationHistoryNoHistory:"\u672A\u627E\u5230\u8FC1\u79FB\u5386\u53F2\u3002",resetConfirmation:"\u8FD9\u5C06\u628A\u6240\u6709 Explorer Dates \u8BBE\u7F6E\u91CD\u7F6E\u4E3A\u9ED8\u8BA4\u503C\u3002\u786E\u5B9A\u5417\uFF1F",resetConfirm:"\u91CD\u7F6E\u8BBE\u7F6E",resetCancel:"\u53D6\u6D88",resetSuccess:"\u2705 \u5DF2\u5C06 {0} \u9879\u8BBE\u7F6E\u91CD\u7F6E\u4E3A\u9ED8\u8BA4\u503C\u3002",validateNoIssues:"\u2705 \u914D\u7F6E\u6709\u6548 - \u672A\u53D1\u73B0\u95EE\u9898\uFF01",validateFoundIssues:"\u53D1\u73B0 {0} \u4E2A\u914D\u7F6E\u95EE\u9898\u3002\u662F\u5426\u67E5\u770B\u8BE6\u7EC6\u4FE1\u606F\uFF1F",validateShowDetails:"\u663E\u793A\u8BE6\u7EC6\u4FE1\u606F",validateDismiss:"\u5173\u95ED",migrationNotificationMessage:"Explorer Dates \u4E3A\u517C\u5BB9\u6027\u66F4\u65B0\u4E86 {0} \u9879\u8BBE\u7F6E\u3002\u60A8\u7684\u914D\u7F6E\u5DF2\u4FDD\u7559\u3002",migrationViewChanges:"\u67E5\u770B\u66F4\u6539",migrationOpenSettings:"\u6253\u5F00\u8BBE\u7F6E",deprecatedPrompt:"Explorer Dates \u53D1\u73B0 {0} \u4E2A\u5DF2\u5F03\u7528\u8BBE\u7F6E\u3002\u662F\u5426\u5220\u9664\uFF1F",deprecatedClean:"\u7ACB\u5373\u6E05\u7406",deprecatedKeep:"\u4FDD\u7559\u65E7\u8BBE\u7F6E",deprecatedAskLater:"\u7A0D\u540E\u8BE2\u95EE",showFileLocation:"\u663E\u793A\u6587\u4EF6\u4F4D\u7F6E",teamConfigCorrupted:"Explorer Dates \u56E2\u961F\u914D\u7F6E\u6587\u4EF6\u4F3C\u4E4E\u5DF2\u635F\u574F\u3002\u8BF7\u68C0\u67E5 .explorer-dates-profiles.json \u6587\u4EF6\u6216\u4ECE\u5907\u4EFD\u6062\u590D\u3002",appliedFromTeamProfile:"\u5DF2\u4ECE\u56E2\u961F\u914D\u7F6E\u6587\u4EF6\u201C{1}\u201D\u5E94\u7528 {0} \u9879 Explorer Dates \u8BBE\u7F6E\u3002",documentedOverrides:"\u5DF2\u5728 .vscode/explorer-dates-overrides.md \u4E2D\u8BB0\u5F55 Explorer Dates \u8986\u76D6\u9879",teamConfigMissingProfile:"\u56E2\u961F\u914D\u7F6E\u7F3A\u5C11\u6D3B\u52A8\u914D\u7F6E\u6587\u4EF6\u3002",ephemeralStorageEnospc:"\u7531\u4E8E\u78C1\u76D8\u5DF2\u6EE1\uFF0C\u65E0\u6CD5\u4FDD\u5B58 Explorer Dates \u56E2\u961F\u914D\u7F6E\u3002",ephemeralStorageGeneric:"\u7531\u4E8E\u5DE5\u4F5C\u533A\u4E3A\u53EA\u8BFB\u6216\u6743\u9650\u53D7\u9650\uFF0C\u65E0\u6CD5\u4FDD\u5B58 Explorer Dates \u56E2\u961F\u914D\u7F6E\u3002",ephemeralStorageSuffix:"\u66F4\u6539\u5C06\u5728 VS Code \u91CD\u542F\u524D\u4FDD\u5B58\u5728\u5185\u5B58\u4E2D\uFF0C\u56E0\u6B64\u53EF\u80FD\u4F1A\u4E22\u5931\u3002"}});var Je=f((Aa,Ze)=>{var I={};I.en=De();I.es=Be();I.fr=Ge();I.de=je();I.ja=Ye();I.zh=Xe();Ze.exports=I});var et=f((Fa,Qe)=>{var L=require("vscode"),M={en:{now:"now",minutes:"m",hours:"h",days:"d",weeks:"w",months:"mo",years:"y",justNow:"just now",minutesAgo:t=>`${t} minute${t!==1?"s":""} ago`,hoursAgo:t=>`${t} hour${t!==1?"s":""} ago`,yesterday:"yesterday",daysAgo:t=>`${t} day${t!==1?"s":""} ago`,lastModified:"Last modified",refreshSuccess:"Date decorations refreshed",activationError:"Explorer Dates failed to activate",errorAccessingFile:"Error accessing file for decoration",clearTelemetryPrompt:"This will permanently delete locally-stored telemetry events for Explorer Dates. This action cannot be undone. Proceed?",clearTelemetryConfirm:"Clear Telemetry",clearTelemetryCancel:"Cancel",clearTelemetrySuccess:"\u2705 Explorer Dates telemetry cleared.",migrateChecking:"Checking for settings that need migration...",migrateAllUpToDate:"\u2705 All settings are up to date!",migrateApplied:t=>`\u2705 Explorer Dates maintenance applied: ${t}.`,organizeSettingsResult:t=>`Explorer Dates settings organized: ${t}`,cleanupSuccess:"\u2705 Deprecated settings have been cleaned up!",reportFormatDisabled:(t,e)=>`Report format "${t}" is disabled. Allowed formats: ${e}`,reportSaved:t=>`Report saved to ${t}`,reportGenerateFailed:"Failed to generate report",reportDownloadTriggered:"Report download triggered in browser",selectReportTimeRangePlaceholder:"Select report time range",selectReportFormatPlaceholder:"Select report format",cleanupNoDeprecated:"\u2139\uFE0F No deprecated settings found to clean up.",showMigrationHistoryNoHistory:"No migration history found.",resetConfirmation:"This will reset all Explorer Dates settings to their default values. Are you sure?",migrationDetailsTitle:"Explorer Dates - Settings Migration",migrationDetailsHeader:"Settings Migration",gitAttributionWarning:"Explorer Dates: Git attribution badges are unavailable on VS Code for Web. Time-based decorations remain available.",noOverridesToDocument:"No overrides to document.",overrideNotesHeader:`# Explorer Dates Override Notes -`,analysisCommandsDisabled:"Explorer Dates analysis commands are disabled. Shortcuts like Ctrl+Shift+M/H/A will not work until you enable explorerDates.enableAnalysisCommands.",analysisEnableNow:"Enable Now",analysisEnablePartially:"Enable partially succeeded. Update explorerDates.enableAnalysisCommands in remaining workspace folders manually.",analysisEnableFailed:"Enable failed: update explorerDates.enableAnalysisCommands in workspace settings.",workspaceTemplatesDisabled:"Workspace templates are disabled. Enable explorerDates.enableWorkspaceTemplates to use this command.",workspaceTemplatesDisabledSave:"Workspace templates are disabled. Enable explorerDates.enableWorkspaceTemplates to save templates.",enterTemplateName:"Enter template name",enterTemplateDescription:"Enter description (optional)",failedToOpenTemplateManager:t=>`Failed to open template manager: ${t}`,failedToSaveTemplate:t=>`Failed to save template: ${t}`,reportingDisabled:"Reporting features are disabled. Enable explorerDates.enableExportReporting to generate reports.",failedToGenerateReport:t=>`Failed to generate report: ${t}`,apiDisabled:"Explorer Dates API is disabled via settings.",failedToShowApiInformation:t=>`Failed to show API information: ${t}`,failedToShowWorkspaceActivity:t=>`Failed to show workspace activity: ${t}`,failedToShowPerformanceAnalytics:t=>`Failed to show performance analytics: ${t}`,failedToShowCacheDebugInfo:t=>`Failed to show cache debug info: ${t}`,noWorkspaceFolderOpen:"No workspace folder open",resetConfirm:"Reset Settings",resetCancel:"Cancel",resetSuccess:t=>`\u2705 Reset ${t} settings to defaults.`,validateNoIssues:"\u2705 Configuration is valid - no issues found!",validateFoundIssues:t=>`Found ${t} configuration issue(s). Would you like to see details?`,validateShowDetails:"Show Details",validateDismiss:"Dismiss",migrationNotificationMessage:t=>`Explorer Dates updated ${t} setting(s) for compatibility. Your configuration has been preserved.`,migrationViewChanges:"View Changes",migrationOpenSettings:"Open Settings",deprecatedPrompt:t=>`Explorer Dates found ${t} deprecated setting(s). Would you like to remove them?`,deprecatedClean:"Clean Up Now",deprecatedKeep:"Keep Old Settings",deprecatedAskLater:"Ask Later",showFileLocation:"Show File Location",teamConfigCorrupted:"Explorer Dates team configuration file appears to be corrupted. Please check the .explorer-dates-profiles.json file or restore from backup.",appliedFromTeamProfile:(t,e)=>`Applied ${t} Explorer Dates settings from team profile "${e}".`,documentedOverrides:"Documented Explorer Dates overrides in .vscode/explorer-dates-overrides.md",teamConfigMissingProfile:"Team configuration is missing an active profile.",ephemeralStorageEnospc:"Explorer Dates team configuration could not be saved because the disk is full.",ephemeralStorageGeneric:"Explorer Dates team configuration could not be saved because the workspace is read-only or permissions are restricted.",ephemeralStorageSuffix:" Changes will be kept in memory until VS Code restarts, so they may be lost."}};try{let t=Ye();if(t&&typeof t=="object")for(let[e,r]of Object.entries(t)){P[e]||(P[e]={});for(let[a,n]of Object.entries(r))typeof P[e][a]>"u"&&(P[e][a]=n)}}catch{}var re=class{constructor(){this.E="en",this.m=null,this.q(),typeof W.workspace.onDidChangeConfiguration=="function"?this.m=W.workspace.onDidChangeConfiguration(e=>{e.affectsConfiguration("explorerDates.locale")&&this.q()}):this.m=null}q(){let r=W.workspace.getConfiguration("explorerDates").get("locale","auto");if(r==="auto"){let a=W&&W.env&&typeof W.env.language=="string"?W.env.language:"en";try{r=String(a||"en").split("-")[0]}catch{r="en"}}P[r]||(r="en"),this.E=r}getString(e,...r){let n=(P[this.E]||P.en)[e];return typeof n=="function"?n(...r):n||P.en[e]||e}getCurrentLocale(){return this.E}formatDate(e,r={}){try{return e.toLocaleDateString(this.E,r)}catch{return e.toLocaleDateString("en",r)}}dispose(){this.m&&(this.m.dispose(),this.m=null),X===this&&(X=null)}},X=null;function kr(){return X||(X=new re),X}Xe.exports={LocalizationManager:re,getLocalization:kr}});var Z=f((ma,Je)=>{var ae=class{constructor(){this.t=null,this.l=null}ne(){return this.t?Promise.resolve(this.t):this.l?this.l:(this.l=Promise.resolve().then(()=>Y(Ze())).then(e=>{try{this.t=e.getLocalization()}catch{this.t=null}return this.l=null,this.t}).catch(()=>(this.l=null,null)),this.l)}getString(e,...r){if(this.t&&typeof this.t.getString=="function")return this.t.getString(e,...r);if(this.x&&typeof e=="string"&&Object.prototype.hasOwnProperty.call(this.x,e)){let a=this.x[e];return typeof a=="function"?a(...r):a}return typeof e=="string"?e:""}formatDate(e){return this.t&&typeof this.t.formatDate=="function"?this.t.formatDate(e):e instanceof Date?e.toString():String(e)}getCurrentLocale(){return this.t&&typeof this.t.getCurrentLocale=="function"?this.t.getCurrentLocale():"en"}dispose(){if(this.t&&typeof this.t.dispose=="function")try{this.t.dispose()}catch{}this.t=null,this.l=null}},ne={now:"now",justNow:"just now",minutesAgo:t=>`${t} minute${t!==1?"s":""} ago`,hoursAgo:t=>`${t} hour${t!==1?"s":""} ago`,yesterday:"yesterday",daysAgo:t=>`${t} day${t!==1?"s":""} ago`,lastModified:"Last modified",refreshSuccess:"Date decorations refreshed",activationError:"Explorer Dates failed to activate",errorAccessingFile:"Error accessing file for decoration",clearTelemetrySuccess:"\u2705 Explorer Dates telemetry cleared.",migrateChecking:"Checking for settings that need migration...",migrateAllUpToDate:"\u2705 All settings are up to date!",migrateApplied:t=>`\u2705 Explorer Dates maintenance applied: ${t}.`,organizeSettingsResult:t=>`Explorer Dates settings organized: ${t}`,cleanupSuccess:"\u2705 Deprecated settings have been cleaned up!",reportingDisabled:"Reporting features are disabled. Enable explorerDates.enableExportReporting to generate reports.",reportSaved:t=>`Report saved to ${t}`,failedToGenerateReport:t=>`Failed to generate report: ${t}`};try{let t=Se();if(t&&typeof t=="object")for(let[e,r]of Object.entries(t))typeof ne[e]>"u"&&(typeof r=="string"&&r.includes("{")?ne[e]=(...a)=>{let n=r;return a.forEach((o,s)=>{n=n.replace(new RegExp(`\\{${s}\\}`,"g"),String(o))}),n}:ne[e]=r)}catch{}var H=null;function Dr(){return H||(H=new ae,H.x=ne,H.ne().catch(()=>{}),H)}Je.exports={LocalizationManager:ae,getLocalization:Dr}});var J=f((ha,Qe)=>{var z=require("vscode");function Tr(){var t,e;try{let r=(t=z==null?void 0:z.env)==null?void 0:t.uiKind,a=(e=z==null?void 0:z.UIKind)==null?void 0:e.Web;return r!==void 0&&a!==void 0&&r===a}catch{return!1}}Qe.exports={isWebEnvironment:Tr}});var oe=f((exports,module)=>{var chunk=null;try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){try{chunk=dynamicRequire("../chunks/utils-shared-chunk")}catch{}try{chunk||(chunk=dynamicRequire("./chunks/utils-shared-chunk"))}catch{}try{chunk||(chunk=dynamicRequire("../chunks/path-utils-chunk"))}catch{}try{chunk||(chunk=dynamicRequire("./chunks/path-utils-chunk"))}catch{}}}catch{}if(chunk&&chunk.normalizePath)module.exports={normalizePath:chunk.normalizePath,getFileName:chunk.getFileName,getExtension:chunk.getExtension,getDirectory:chunk.getDirectory,joinPath:chunk.joinPath,getCacheKey:chunk.getCacheKey,getUriPath:chunk.getUriPath,getRelativePath:chunk.getRelativePath};else{let t=function(c=""){return c?c.replace(/\\/g,"/"):""},e=function(c=""){let u=t(c);return u?u.split("/").filter(Boolean):[]},r=function(c=""){let u=e(c);return u.length?u[u.length-1]:""},a=function(c=""){let u=r(c),g=u.lastIndexOf(".");return g<=0?"":u.substring(g).toLowerCase()},n=function(c=""){let u=t(c),g=u.lastIndexOf("/");return g===-1?"":u.substring(0,g)},o=function(...c){return t(c.filter(Boolean).join("/")).replace(/\/+/g,"/")},s=function(c=""){return t(c).toLowerCase()},i=function(c=""){if(!c)return"";if(typeof c=="string")return c;if(typeof c.fsPath=="string"&&c.fsPath.length>0)return c.fsPath;if(typeof c.path=="string"&&c.path.length>0)return c.path;if(typeof c.toString=="function")try{return c.toString(!0)}catch{return c.toString()}return String(c)},l=function(c="",u=""){let g=t(c),m=t(u);return g&&m.startsWith(g)?m.substring(g.length).replace(/^\/+/,""):m};normalizePath=t,getSegments=e,getFileName=r,getExtension=a,getDirectory=n,joinPath=o,getCacheKey=s,getUriPath=i,getRelativePath=l,module.exports={normalizePath:t,getFileName:r,getExtension:a,getDirectory:n,joinPath:o,getCacheKey:s,getUriPath:i,getRelativePath:l}}var normalizePath,getSegments,getFileName,getExtension,getDirectory,joinPath,getCacheKey,getUriPath,getRelativePath});var De=f((wa,tt)=>{var se=class extends Error{constructor(e,r,a={}){super(r),this.code=e,this.context=a,this.name="ExtensionError"}},et={FILE_PERMISSION_DENIED:"FILE_PERMISSION_DENIED",WORKSPACE_TOO_LARGE:"WORKSPACE_TOO_LARGE",CHUNK_LOAD_FAILED:"CHUNK_LOAD_FAILED"};function xr(t){if(!t)return!1;let e=t.code||(t==null?void 0:t.name);return["EACCES","EPERM","EROFS","NoPermissions"].includes(e)}var ke=class extends se{constructor(e,r,a={}){let{recoverable:n=!0,context:o={}}=a;super(et.CHUNK_LOAD_FAILED,`Failed to load ${e}: ${r}`,{chunkName:e,recoverable:n,...o}),this.name="ChunkLoadError",this.chunkName=e,this.recoverable=n}};function Ar(t,e,r={}){let a=require("vscode"),{userFacing:n=!0}=r,o=(e==null?void 0:e.recoverable)??!0;n&&!o&&a.window.showErrorMessage(`Explorer Dates: ${t} feature unavailable. Please reinstall or rebuild the extension.`)}tt.exports={ExtensionError:se,ERROR_CODES:et,isPermissionError:xr,ChunkLoadError:ke,handleChunkFailure:Ar}});var st=f((ba,ot)=>{var rt="EXPLORER_DATES_FORCE_VSCODE_FS";function nt(t,e=process.env){return String((e==null?void 0:e[t])||"")==="1"}function ie(t){let e=t&&typeof t=="object"?t:null,r=String((e==null?void 0:e.scheme)||(typeof t=="string"&&/^[a-z][a-z0-9+.-]*:/i.test(t)?t.split(":",1)[0]:"file")).toLowerCase(),a=String((e==null?void 0:e.authority)||""),n=(e==null?void 0:e.path)||(e==null?void 0:e.fsPath)||(typeof t=="string"?t.replace(/^[a-z][a-z0-9+.-]*:\/\//i,""):"");return{scheme:r,authority:a,path:String(n||"")}}function Rr({uri:t,isWeb:e=!1,remoteName:r="",forceWorkspaceFs:a=nt(rt)}={}){let n=ie(t),o=n.scheme!=="file",s=!!e,i=!!r,l=!!(a||s||i||o);return{scheme:n.scheme,authority:n.authority,isFileScheme:!o,isVirtual:o,isBrowser:s,isRemote:i,forceWorkspaceFs:!!a,filesystem:l?"workspace.fs":"node.fs",provider:o?n.scheme==="github"||n.scheme==="vscode-vfs"?"github":"virtual":"filesystem"}}function at({uri:t,platform:e=process.platform,caseSensitive:r}={}){return typeof r=="boolean"?r:ie(t).scheme!=="file"?!0:e!=="win32"}function Fr(t,e={}){let r=ie(t),a=r.path.replace(/\\/g,"/").replace(/\/+/g,"/"),n=`${r.scheme}://${r.authority}${a}`;return at({uri:t,...e})?n:n.toLowerCase()}function Te(t){if(t instanceof Date){let e=t.getTime();return Number.isFinite(e)?e:null}if(typeof t=="number")return Number.isFinite(t)?t:null;if(typeof t=="string"&&t.trim()){let e=Date.parse(t);return Number.isFinite(e)?e:null}return null}function Pr(t){if(!t||typeof t!="object")return null;let e=Te(t.mtime),r=Te(t.ctime);return{...t,mtimeMs:e,ctimeMs:r}}ot.exports={FORCE_WORKSPACE_FS_ENV:rt,envFlag:nt,getUriParts:ie,getEnvironmentContract:Rr,isCaseSensitive:at,resourceIdentity:Fr,normalizeTimestamp:Te,normalizeStat:Pr}});var le=f((ya,ct)=>{function _r(){return typeof Date=="function"&&Date.now?Date.now():16409952e5}function it(t){return!!(t&&typeof t=="object"&&typeof t.getTime=="function")}function Mr(t){if(it(t))return t;if(typeof t=="number")return new Date(t);if(typeof t=="string"){let e=Date.parse(t);return isNaN(e)?new Date:new Date(e)}return new Date}function I(t=""){return t?t.replace(/\\/g,"/"):""}function Wr(t=""){let e=I(t);return e?e.split("/").filter(Boolean):[]}function lt(t=""){let e=Wr(t);return e.length?e[e.length-1]:""}function Ir(t=""){let e=lt(t),r=e.lastIndexOf(".");return r<=0?"":e.substring(r).toLowerCase()}function Lr(t=""){let e=I(t),r=e.lastIndexOf("/");return r===-1?"":e.substring(0,r)}function Or(...t){return I(t.filter(Boolean).join("/")).replace(/\/+/g,"/")}function Nr(t=""){return I(t).toLowerCase()}function qr(t=""){if(!t)return"";if(typeof t=="string")return t;if(typeof t.fsPath=="string"&&t.fsPath.length>0)return t.fsPath;if(typeof t.path=="string"&&t.path.length>0)return t.path;if(typeof t.toString=="function")try{return t.toString(!0)}catch{return t.toString()}return String(t)}function $r(t="",e=""){let r=I(t),a=I(e);return r&&a.startsWith(r)?a.substring(r.length).replace(/^\/+/,""):a}ct.exports={ensureDate:Mr,isDateLike:it,getCurrentTimestamp:_r,normalizePath:I,getFileName:lt,getExtension:Ir,getDirectory:Lr,joinPath:Or,getCacheKey:Nr,getUriPath:qr,getRelativePath:$r}});var xe=f((exports,module)=>{var chunk=null;try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){try{chunk=dynamicRequire("../chunks/utils-shared-chunk")}catch{}try{chunk||(chunk=dynamicRequire("./chunks/utils-shared-chunk"))}catch{}try{chunk||(chunk=dynamicRequire("../chunks/date-helpers-chunk"))}catch{}try{chunk||(chunk=dynamicRequire("./chunks/date-helpers-chunk"))}catch{}}}catch{}if(chunk&&(chunk.ensureDate||chunk.isDateLike||chunk.getCurrentTimestamp))module.exports={ensureDate:chunk.ensureDate,isDateLike:chunk.isDateLike,getCurrentTimestamp:chunk.getCurrentTimestamp};else{let t=function(){return typeof Date=="function"&&Date.now?Date.now():16409952e5},e=function(a){return!!(a&&typeof a=="object"&&typeof a.getTime=="function")},r=function(a){if(e(a))return a;if(typeof a=="number")return new Date(a);if(typeof a=="string"){let n=Date.parse(a);return isNaN(n)?new Date:new Date(n)}return new Date};getCurrentTimestamp=t,isDateLike=e,ensureDate=r,module.exports={ensureDate:r,isDateLike:e,getCurrentTimestamp:t}}var getCurrentTimestamp,isDateLike,ensureDate});var ue=f((Ea,pt)=>{var b=require("vscode"),{isWebEnvironment:ut}=J(),{normalizePath:Hr}=oe(),{ExtensionError:zr,ERROR_CODES:Ur,isPermissionError:Kr}=De(),{getEnvironmentContract:Vr,normalizeStat:Br,FORCE_WORKSPACE_FS_ENV:Gr}=st(),U;try{let t=le();t&&(U=t.ensureDate)}catch{}U||(U=xe().ensureDate);var dt=typeof process<"u"&&process.env?process.env:{},gt=dt.VSCODE_WEB==="true"||ut(),E=null;if(!gt)try{E=require("fs").promises}catch{E=null}var ce=class{constructor(){this.isWeb=gt||ut()}d(e){var r;try{return Vr({uri:this.a(e),isWeb:this.isWeb,remoteName:(r=b.env)==null?void 0:r.remoteName,forceWorkspaceFs:dt[Gr]==="1"}).filesystem==="workspace.fs"}catch{return!1}}c(e){if(!e)return"";if(typeof e=="string")return e;if(e&&typeof e=="object"&&typeof e.fsPath=="string")return e.fsPath;if(e&&typeof e=="object"&&typeof e.path=="string")return e.path;if(typeof e=="object"){if(typeof e.fsPath=="string")return e.fsPath;if(typeof e.path=="string")return e.path}return String(e)}a(e){if(e&&typeof e=="object"&&typeof e.scheme=="string"&&typeof e.path=="string")return e;if(typeof e=="string"){let r=e.trim(),a=/^[a-zA-Z]:[\\/]/.test(r);if(/^[a-zA-Z][a-zA-Z0-9+.-]*:/.test(r)&&!a){let o=b.Uri.parse(r);if(o.scheme&&o.scheme!=="file")return o}return b.Uri.file(e)}if(e&&typeof e=="object"){if(e.uri&&e.uri!==e)try{return this.a(e.uri)}catch{}if(this.isWeb&&typeof e.scheme=="string"&&typeof e.path=="string")return b.Uri.from({scheme:e.scheme,authority:e.authority||"",path:e.path||"",query:e.query||"",fragment:e.fragment||""});if(typeof e.fsPath=="string"&&e.fsPath.length>0)return b.Uri.file(e.fsPath);if(typeof e.path=="string"&&e.path.length>0)return this.isWeb&&typeof e.scheme=="string"&&e.scheme!=="file"?b.Uri.from({scheme:e.scheme,authority:e.authority||"",path:e.path,query:e.query||"",fragment:e.fragment||""}):b.Uri.file(e.path);if(typeof e.href=="string"&&e.href.length>0)return b.Uri.parse(e.href);if(typeof e.scheme=="string")return b.Uri.from({scheme:e.scheme,authority:e.authority||"",path:e.path||e.fsPath||"",query:e.query||"",fragment:e.fragment||""});if(typeof e.toString=="function")try{let r=e.toString(!0);if(r&&r!=="[object Object]")return b.Uri.parse(r)}catch{let r=e.toString();if(r&&r!=="[object Object]")return b.Uri.parse(r)}}throw new Error(`Unsupported target type: ${typeof e}`)}async stat(e){let r=this.d(e);if(!this.isWeb&&E&&!r)return E.stat(this.c(e));let a=this.a(e),n=await b.workspace.fs.stat(a),o=Br(n);return{...o,mtime:o.mtimeMs===null?U(n.mtime):new Date(o.mtimeMs),ctime:o.ctimeMs===null?U(n.ctime):new Date(o.ctimeMs),birthtime:o.ctimeMs===null?U(n.ctime):new Date(o.ctimeMs),isFile:()=>n.type===b.FileType.File,isDirectory:()=>n.type===b.FileType.Directory}}async readFile(e,r="utf8"){let a=this.d(e);if(!this.isWeb&&E&&!a)return E.readFile(this.c(e),r);let n=this.a(e),o=await b.workspace.fs.readFile(n);return r===null||r==="binary"?o:new TextDecoder(r).decode(o)}async writeFile(e,r,a="utf8"){let n=this.c(e);try{let o=this.d(e);if(!this.isWeb&&E&&!o)return E.writeFile(n,r,a);let s=this.a(e),i=typeof r=="string"?new TextEncoder().encode(r):r;await b.workspace.fs.writeFile(s,i)}catch(o){this.$("write file",n,o)}}async mkdir(e,r={recursive:!0}){let a=this.c(e);try{let n=this.d(e);if(!this.isWeb&&E&&!n)return E.mkdir(a,r);let o=this.a(e);await b.workspace.fs.createDirectory(o)}catch(n){this.$("create directory",a,n)}}async readdir(e,r={withFileTypes:!1}){let a=this.d(e);if(!this.isWeb&&E&&!a)return E.readdir(this.c(e),r);let n=this.a(e),o=await b.workspace.fs.readDirectory(n);return r.withFileTypes?o.map(([s,i])=>({name:s,isDirectory:()=>i===b.FileType.Directory,isFile:()=>i===b.FileType.File})):o.map(([s])=>s)}async delete(e,r={recursive:!1}){let a=this.d(e);if(!this.isWeb&&E&&!a){let o=this.c(e);return r.recursive?E.rm?E.rm(o,r):E.rmdir(o,r):E.unlink(o)}let n=this.a(e);await b.workspace.fs.delete(n,r)}async exists(e){try{return await this.stat(e),!0}catch{return!1}}async ensureDirectory(e){let r=Hr(this.c(e));await this.mkdir(r,{recursive:!0})}$(e,r,a){throw Kr(a)?new zr(Ur.FILE_PERMISSION_DENIED,`Permission denied while attempting to ${e}`,{path:r,code:a.code}):a}},jr=new ce;pt.exports={FileSystemAdapter:ce,fileSystem:jr}});var K=f((va,wt)=>{var mt=typeof process<"u"&&process.env?process.env:{},ft="[ExplorerDates][WebDiag]",Ae="__explorerDatesWebDiagnostics",de;function Yr(){var t,e;try{let r=require("vscode");return((t=r==null?void 0:r.env)==null?void 0:t.uiKind)===((e=r==null?void 0:r.UIKind)==null?void 0:e.Web)}catch{return mt.VSCODE_WEB==="true"}}function T(){return de!==void 0||(de=mt.EXPLORER_DATES_WEB_DIAG==="1"||Yr()),de}function ht(){return{enabled:T(),logs:[],logOnce:new Set,commandsRegistered:new Set,commandsInvoked:[],errors:[],chunkLoads:[],provider:{created:!1,registered:!1,hydrated:!1,decorationCalls:0,refreshCalls:0,lastEvent:null}}}var Xr=ht();function x(){return typeof globalThis<"u"?(globalThis[Ae]||(globalThis[Ae]=ht()),globalThis[Ae]):Xr}function Zr(t){try{return JSON.stringify(t)}catch{return String(t)}}function A(t,e,r){if(!T())return;let a=x(),n={ts:new Date().toISOString(),level:t,message:e,meta:r||null};a.logs.push(n),a.logs.length>400&&a.logs.shift();let o=r?`${ft} ${e} ${Zr(r)}`:`${ft} ${e}`,s=console[t]||console.info;try{s(o)}catch{}}function Jr(t,e,r,a){if(!T())return;let n=x();n.logOnce.has(t)||(n.logOnce.add(t),A(e,r,a))}function Qr(t){if(!T())return;x().commandsRegistered.add(t),A("info","Command registered",{commandId:t})}function en(t){if(!T())return;x().commandsInvoked.push({commandId:t,ts:Date.now()}),A("info","Command invoked",{commandId:t})}function tn(t,e,r){T()&&(e?A("info","Command completed",{commandId:t}):(A("error","Command failed",{commandId:t,error:r==null?void 0:r.message,stack:r==null?void 0:r.stack}),x().errors.push({commandId:t,error:r==null?void 0:r.message,stack:r==null?void 0:r.stack})))}function rn(t,e,r){if(!T())return;x().chunkLoads.push({chunkName:t,stage:e,ts:Date.now(),error:r?r.message||String(r):null}),A(r?"warn":"info",`Chunk ${e}`,{chunkName:t,error:r==null?void 0:r.message})}function nn(t,e){if(!T())return;let r=x();r.provider.lastEvent={event:t,ts:Date.now(),meta:e||null},t==="created"&&(r.provider.created=!0),t==="registered"&&(r.provider.registered=!0),t==="hydrated"&&(r.provider.hydrated=!0),A("info",`Provider ${t}`,e)}function an(){if(!T())return;let t=x();t.provider.decorationCalls+=1,t.provider.decorationCalls<=3&&A("info","Decoration request observed",{count:t.provider.decorationCalls})}function on(){if(!T())return;let t=x();t.provider.refreshCalls+=1}wt.exports={isWebDiagnosticsEnabled:T,getWebDiagnosticsState:x,diagLog:A,diagLogOnce:Jr,recordCommandRegistration:Qr,recordCommandInvocation:en,recordCommandResult:tn,recordChunkEvent:rn,recordProviderEvent:nn,recordDecorationCall:an,recordRefreshCall:on}});var V=f((Ca,Et)=>{var Re=require("vscode"),{getLocalization:sn}=Z(),ln=sn();function bt(){return typeof Re.workspace.isTrusted>"u"?!0:Re.workspace.isTrusted===!0}function yt(t="operation"){if(!bt()){let e=ln.getString("operationRequiresTrust",t)||`This operation requires a trusted workspace. Please trust this workspace to use ${t}.`;throw Re.window.showErrorMessage(e),new Error(`Workspace trust required for ${t}`)}}async function cn(t,e="operation"){try{return yt(e),await t()}catch{return null}}Et.exports={isWorkspaceTrusted:bt,requireWorkspaceTrust:yt,withTrustGuard:cn}});var vt=f((exports,module)=>{var vscode=require("vscode"),{fileSystem}=ue(),{recordCommandRegistration,recordCommandInvocation,recordCommandResult,diagLog}=K(),getFileName,getRelativePath;try{let t=le();t&&(getFileName=t.getFileName,getRelativePath=t.getRelativePath)}catch{}if(!getFileName){let t=oe();getFileName=getFileName||t.getFileName,getRelativePath=getRelativePath||t.getRelativePath}var env=typeof process<"u"&&process.env?process.env:{},isWeb=env.VSCODE_WEB==="true",childProcess=null;function loadChildProcess(){return!childProcess&&!isWeb&&(childProcess=eval("require")("child_process")),childProcess}function registerCoreCommands({context:t,fileDateProvider:e,logger:r,l10n:a}){let n=[],o=(s,i)=>(recordCommandRegistration(s),vscode.commands.registerCommand(s,async(...l)=>{recordCommandInvocation(s);try{let c=await i(...l);return recordCommandResult(s,!0),c}catch(c){throw recordCommandResult(s,!1,c),c}}));n.push(o("explorerDates.refreshDateDecorations",()=>{try{if(e){e.clearAllCaches(),e.refreshAll();let s=(a==null?void 0:a.getString("refreshSuccess"))||"Date decorations refreshed - all caches cleared";vscode.window.showInformationMessage(s),r.info("Date decorations refreshed manually with cache clear")}}catch(s){r.error("Failed to refresh decorations",s),vscode.window.showErrorMessage(`Failed to refresh decorations: ${s.message}`)}})),n.push(o("explorerDates.previewConfiguration",s=>{try{e&&(e.applyPreviewSettings(s),r.info("Configuration preview applied",s))}catch(i){r.error("Failed to apply configuration preview",i)}})),n.push(o("explorerDates.clearPreview",()=>{try{e&&(e.applyPreviewSettings(null),r.info("Configuration preview cleared"))}catch(s){r.error("Failed to clear configuration preview",s)}})),n.push(o("explorerDates.showMetrics",()=>{try{if(e){let s=e.getMetrics(),i=`Explorer Dates Metrics: +`,analysisCommandsDisabled:"Explorer Dates analysis commands are disabled. Shortcuts like Ctrl+Shift+M/H/A will not work until you enable explorerDates.enableAnalysisCommands.",analysisEnableNow:"Enable Now",analysisEnablePartially:"Enable partially succeeded. Update explorerDates.enableAnalysisCommands in remaining workspace folders manually.",analysisEnableFailed:"Enable failed: update explorerDates.enableAnalysisCommands in workspace settings.",workspaceTemplatesDisabled:"Workspace templates are disabled. Enable explorerDates.enableWorkspaceTemplates to use this command.",workspaceTemplatesDisabledSave:"Workspace templates are disabled. Enable explorerDates.enableWorkspaceTemplates to save templates.",enterTemplateName:"Enter template name",enterTemplateDescription:"Enter description (optional)",failedToOpenTemplateManager:t=>`Failed to open template manager: ${t}`,failedToSaveTemplate:t=>`Failed to save template: ${t}`,reportingDisabled:"Reporting features are disabled. Enable explorerDates.enableExportReporting to generate reports.",failedToGenerateReport:t=>`Failed to generate report: ${t}`,apiDisabled:"Explorer Dates API is disabled via settings.",failedToShowApiInformation:t=>`Failed to show API information: ${t}`,failedToShowWorkspaceActivity:t=>`Failed to show workspace activity: ${t}`,failedToShowPerformanceAnalytics:t=>`Failed to show performance analytics: ${t}`,failedToShowCacheDebugInfo:t=>`Failed to show cache debug info: ${t}`,noWorkspaceFolderOpen:"No workspace folder open",resetConfirm:"Reset Settings",resetCancel:"Cancel",resetSuccess:t=>`\u2705 Reset ${t} settings to defaults.`,validateNoIssues:"\u2705 Configuration is valid - no issues found!",validateFoundIssues:t=>`Found ${t} configuration issue(s). Would you like to see details?`,validateShowDetails:"Show Details",validateDismiss:"Dismiss",migrationNotificationMessage:t=>`Explorer Dates updated ${t} setting(s) for compatibility. Your configuration has been preserved.`,migrationViewChanges:"View Changes",migrationOpenSettings:"Open Settings",deprecatedPrompt:t=>`Explorer Dates found ${t} deprecated setting(s). Would you like to remove them?`,deprecatedClean:"Clean Up Now",deprecatedKeep:"Keep Old Settings",deprecatedAskLater:"Ask Later",showFileLocation:"Show File Location",teamConfigCorrupted:"Explorer Dates team configuration file appears to be corrupted. Please check the .explorer-dates-profiles.json file or restore from backup.",appliedFromTeamProfile:(t,e)=>`Applied ${t} Explorer Dates settings from team profile "${e}".`,documentedOverrides:"Documented Explorer Dates overrides in .vscode/explorer-dates-overrides.md",teamConfigMissingProfile:"Team configuration is missing an active profile.",ephemeralStorageEnospc:"Explorer Dates team configuration could not be saved because the disk is full.",ephemeralStorageGeneric:"Explorer Dates team configuration could not be saved because the workspace is read-only or permissions are restricted.",ephemeralStorageSuffix:" Changes will be kept in memory until VS Code restarts, so they may be lost."}};try{let t=Je();if(t&&typeof t=="object")for(let[e,r]of Object.entries(t)){M[e]||(M[e]={});for(let[a,n]of Object.entries(r))typeof M[e][a]>"u"&&(M[e][a]=n)}}catch{}var oe=class{constructor(){this.E="en",this.m=null,this.q(),typeof L.workspace.onDidChangeConfiguration=="function"?this.m=L.workspace.onDidChangeConfiguration(e=>{e.affectsConfiguration("explorerDates.locale")&&this.q()}):this.m=null}q(){let r=L.workspace.getConfiguration("explorerDates").get("locale","auto");if(r==="auto"){let a=L&&L.env&&typeof L.env.language=="string"?L.env.language:"en";try{r=String(a||"en").split("-")[0]}catch{r="en"}}M[r]||(r="en"),this.E=r}getString(e,...r){let n=(M[this.E]||M.en)[e];return typeof n=="function"?n(...r):n||M.en[e]||e}getCurrentLocale(){return this.E}formatDate(e,r={}){try{return e.toLocaleDateString(this.E,r)}catch{return e.toLocaleDateString("en",r)}}dispose(){this.m&&(this.m.dispose(),this.m=null),Q===this&&(Q=null)}},Q=null;function Mr(){return Q||(Q=new oe),Q}Qe.exports={LocalizationManager:oe,getLocalization:Mr}});var ee=f((Ra,tt)=>{var ie=class{constructor(){this.t=null,this.u=null}ne(){return this.t?Promise.resolve(this.t):this.u?this.u:(this.u=Promise.resolve().then(()=>J(et())).then(e=>{try{this.t=e.getLocalization()}catch{this.t=null}return this.u=null,this.t}).catch(()=>(this.u=null,null)),this.u)}getString(e,...r){if(this.t&&typeof this.t.getString=="function")return this.t.getString(e,...r);if(this.x&&typeof e=="string"&&Object.prototype.hasOwnProperty.call(this.x,e)){let a=this.x[e];return typeof a=="function"?a(...r):a}return typeof e=="string"?e:""}formatDate(e){return this.t&&typeof this.t.formatDate=="function"?this.t.formatDate(e):e instanceof Date?e.toString():String(e)}getCurrentLocale(){return this.t&&typeof this.t.getCurrentLocale=="function"?this.t.getCurrentLocale():"en"}dispose(){if(this.t&&typeof this.t.dispose=="function")try{this.t.dispose()}catch{}this.t=null,this.u=null}},se={now:"now",justNow:"just now",minutesAgo:t=>`${t} minute${t!==1?"s":""} ago`,hoursAgo:t=>`${t} hour${t!==1?"s":""} ago`,yesterday:"yesterday",daysAgo:t=>`${t} day${t!==1?"s":""} ago`,lastModified:"Last modified",refreshSuccess:"Date decorations refreshed",activationError:"Explorer Dates failed to activate",errorAccessingFile:"Error accessing file for decoration",clearTelemetrySuccess:"\u2705 Explorer Dates telemetry cleared.",migrateChecking:"Checking for settings that need migration...",migrateAllUpToDate:"\u2705 All settings are up to date!",migrateApplied:t=>`\u2705 Explorer Dates maintenance applied: ${t}.`,organizeSettingsResult:t=>`Explorer Dates settings organized: ${t}`,cleanupSuccess:"\u2705 Deprecated settings have been cleaned up!",reportingDisabled:"Reporting features are disabled. Enable explorerDates.enableExportReporting to generate reports.",reportSaved:t=>`Report saved to ${t}`,failedToGenerateReport:t=>`Failed to generate report: ${t}`};try{let t=De();if(t&&typeof t=="object")for(let[e,r]of Object.entries(t))typeof se[e]>"u"&&(typeof r=="string"&&r.includes("{")?se[e]=(...a)=>{let n=r;return a.forEach((o,s)=>{n=n.replace(new RegExp(`\\{${s}\\}`,"g"),String(o))}),n}:se[e]=r)}catch{}var U=null;function Wr(){return U||(U=new ie,U.x=se,U.ne().catch(()=>{}),U)}tt.exports={LocalizationManager:ie,getLocalization:Wr}});var te=f((Pa,rt)=>{var K=require("vscode");function Ir(){var t,e;try{let r=(t=K==null?void 0:K.env)==null?void 0:t.uiKind,a=(e=K==null?void 0:K.UIKind)==null?void 0:e.Web;return r!==void 0&&a!==void 0&&r===a}catch{return!1}}rt.exports={isWebEnvironment:Ir}});var le=f((exports,module)=>{var chunk=null;try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){try{chunk=dynamicRequire("../chunks/utils-shared-chunk")}catch{}try{chunk||(chunk=dynamicRequire("./chunks/utils-shared-chunk"))}catch{}try{chunk||(chunk=dynamicRequire("../chunks/path-utils-chunk"))}catch{}try{chunk||(chunk=dynamicRequire("./chunks/path-utils-chunk"))}catch{}}}catch{}if(chunk&&chunk.normalizePath)module.exports={normalizePath:chunk.normalizePath,getFileName:chunk.getFileName,getExtension:chunk.getExtension,getDirectory:chunk.getDirectory,joinPath:chunk.joinPath,getCacheKey:chunk.getCacheKey,getUriPath:chunk.getUriPath,getRelativePath:chunk.getRelativePath};else{let t=function(c=""){return c?c.replace(/\\/g,"/"):""},e=function(c=""){let u=t(c);return u?u.split("/").filter(Boolean):[]},r=function(c=""){let u=e(c);return u.length?u[u.length-1]:""},a=function(c=""){let u=r(c),g=u.lastIndexOf(".");return g<=0?"":u.substring(g).toLowerCase()},n=function(c=""){let u=t(c),g=u.lastIndexOf("/");return g===-1?"":u.substring(0,g)},o=function(...c){return t(c.filter(Boolean).join("/")).replace(/\/+/g,"/")},s=function(c=""){return t(c).toLowerCase()},i=function(c=""){if(!c)return"";if(typeof c=="string")return c;if(typeof c.fsPath=="string"&&c.fsPath.length>0)return c.fsPath;if(typeof c.path=="string"&&c.path.length>0)return c.path;if(typeof c.toString=="function")try{return c.toString(!0)}catch{return c.toString()}return String(c)},l=function(c="",u=""){let g=t(c),m=t(u);return g&&m.startsWith(g)?m.substring(g.length).replace(/^\/+/,""):m};normalizePath=t,getSegments=e,getFileName=r,getExtension=a,getDirectory=n,joinPath=o,getCacheKey=s,getUriPath=i,getRelativePath=l,module.exports={normalizePath:t,getFileName:r,getExtension:a,getDirectory:n,joinPath:o,getCacheKey:s,getUriPath:i,getRelativePath:l}}var normalizePath,getSegments,getFileName,getExtension,getDirectory,joinPath,getCacheKey,getUriPath,getRelativePath});var xe=f((_a,at)=>{var ce=class extends Error{constructor(e,r,a={}){super(r),this.code=e,this.context=a,this.name="ExtensionError"}},nt={FILE_PERMISSION_DENIED:"FILE_PERMISSION_DENIED",WORKSPACE_TOO_LARGE:"WORKSPACE_TOO_LARGE",CHUNK_LOAD_FAILED:"CHUNK_LOAD_FAILED"};function Lr(t){if(!t)return!1;let e=t.code||(t==null?void 0:t.name);return["EACCES","EPERM","EROFS","NoPermissions"].includes(e)}var Te=class extends ce{constructor(e,r,a={}){let{recoverable:n=!0,context:o={}}=a;super(nt.CHUNK_LOAD_FAILED,`Failed to load ${e}: ${r}`,{chunkName:e,recoverable:n,...o}),this.name="ChunkLoadError",this.chunkName=e,this.recoverable=n}};function Or(t,e,r={}){let a=require("vscode"),{userFacing:n=!0}=r,o=(e==null?void 0:e.recoverable)??!0;n&&!o&&a.window.showErrorMessage(`Explorer Dates: ${t} feature unavailable. Please reinstall or rebuild the extension.`)}at.exports={ExtensionError:ce,ERROR_CODES:nt,isPermissionError:Lr,ChunkLoadError:Te,handleChunkFailure:Or}});var ct=f((Ma,lt)=>{var ot="EXPLORER_DATES_FORCE_VSCODE_FS";function st(t,e=process.env){return String((e==null?void 0:e[t])||"")==="1"}function ue(t){let e=t&&typeof t=="object"?t:null,r=String((e==null?void 0:e.scheme)||(typeof t=="string"&&/^[a-z][a-z0-9+.-]*:/i.test(t)?t.split(":",1)[0]:"file")).toLowerCase(),a=String((e==null?void 0:e.authority)||""),n=(e==null?void 0:e.path)||(e==null?void 0:e.fsPath)||(typeof t=="string"?t.replace(/^[a-z][a-z0-9+.-]*:\/\//i,""):"");return{scheme:r,authority:a,path:String(n||"")}}function Nr({uri:t,isWeb:e=!1,remoteName:r="",forceWorkspaceFs:a=st(ot)}={}){let n=ue(t),o=n.scheme!=="file",s=!!e,i=!!r,l=!!(a||s||i||o);return{scheme:n.scheme,authority:n.authority,isFileScheme:!o,isVirtual:o,isBrowser:s,isRemote:i,forceWorkspaceFs:!!a,filesystem:l?"workspace.fs":"node.fs",provider:o?n.scheme==="github"||n.scheme==="vscode-vfs"?"github":"virtual":"filesystem"}}function it({uri:t,platform:e=process.platform,caseSensitive:r}={}){return typeof r=="boolean"?r:ue(t).scheme!=="file"?!0:e!=="win32"}function $r(t,e={}){let r=ue(t),a=r.path.replace(/\\/g,"/").replace(/\/+/g,"/"),n=`${r.scheme}://${r.authority}${a}`;return it({uri:t,...e})?n:n.toLowerCase()}function Ae(t){if(t instanceof Date){let e=t.getTime();return Number.isFinite(e)?e:null}if(typeof t=="number")return Number.isFinite(t)?t:null;if(typeof t=="string"&&t.trim()){let e=Date.parse(t);return Number.isFinite(e)?e:null}return null}function qr(t){if(!t||typeof t!="object")return null;let e=Ae(t.mtime),r=Ae(t.ctime);return{...t,mtimeMs:e,ctimeMs:r}}lt.exports={FORCE_WORKSPACE_FS_ENV:ot,envFlag:st,getUriParts:ue,getEnvironmentContract:Nr,isCaseSensitive:it,resourceIdentity:$r,normalizeTimestamp:Ae,normalizeStat:qr}});var de=f((Wa,gt)=>{function zr(){return typeof Date=="function"&&Date.now?Date.now():16409952e5}function ut(t){return!!(t&&typeof t=="object"&&typeof t.getTime=="function")}function Hr(t){if(ut(t))return t;if(typeof t=="number")return new Date(t);if(typeof t=="string"){let e=Date.parse(t);return isNaN(e)?new Date:new Date(e)}return new Date}function O(t=""){return t?t.replace(/\\/g,"/"):""}function Ur(t=""){let e=O(t);return e?e.split("/").filter(Boolean):[]}function dt(t=""){let e=Ur(t);return e.length?e[e.length-1]:""}function Kr(t=""){let e=dt(t),r=e.lastIndexOf(".");return r<=0?"":e.substring(r).toLowerCase()}function Vr(t=""){let e=O(t),r=e.lastIndexOf("/");return r===-1?"":e.substring(0,r)}function Br(...t){return O(t.filter(Boolean).join("/")).replace(/\/+/g,"/")}function Gr(t=""){return O(t).toLowerCase()}function jr(t=""){if(!t)return"";if(typeof t=="string")return t;if(typeof t.fsPath=="string"&&t.fsPath.length>0)return t.fsPath;if(typeof t.path=="string"&&t.path.length>0)return t.path;if(typeof t.toString=="function")try{return t.toString(!0)}catch{return t.toString()}return String(t)}function Yr(t="",e=""){let r=O(t),a=O(e);return r&&a.startsWith(r)?a.substring(r.length).replace(/^\/+/,""):a}gt.exports={ensureDate:Hr,isDateLike:ut,getCurrentTimestamp:zr,normalizePath:O,getFileName:dt,getExtension:Kr,getDirectory:Vr,joinPath:Br,getCacheKey:Gr,getUriPath:jr,getRelativePath:Yr}});var Fe=f((exports,module)=>{var chunk=null;try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){try{chunk=dynamicRequire("../chunks/utils-shared-chunk")}catch{}try{chunk||(chunk=dynamicRequire("./chunks/utils-shared-chunk"))}catch{}try{chunk||(chunk=dynamicRequire("../chunks/date-helpers-chunk"))}catch{}try{chunk||(chunk=dynamicRequire("./chunks/date-helpers-chunk"))}catch{}}}catch{}if(chunk&&(chunk.ensureDate||chunk.isDateLike||chunk.getCurrentTimestamp))module.exports={ensureDate:chunk.ensureDate,isDateLike:chunk.isDateLike,getCurrentTimestamp:chunk.getCurrentTimestamp};else{let t=function(){return typeof Date=="function"&&Date.now?Date.now():16409952e5},e=function(a){return!!(a&&typeof a=="object"&&typeof a.getTime=="function")},r=function(a){if(e(a))return a;if(typeof a=="number")return new Date(a);if(typeof a=="string"){let n=Date.parse(a);return isNaN(n)?new Date:new Date(n)}return new Date};getCurrentTimestamp=t,isDateLike=e,ensureDate=r,module.exports={ensureDate:r,isDateLike:e,getCurrentTimestamp:t}}var getCurrentTimestamp,isDateLike,ensureDate});var pe=f((Ia,ht)=>{var b=require("vscode"),{isWebEnvironment:pt}=te(),{normalizePath:Xr}=le(),{ExtensionError:Zr,ERROR_CODES:Jr,isPermissionError:Qr}=xe(),{getEnvironmentContract:en,normalizeStat:tn,FORCE_WORKSPACE_FS_ENV:rn}=ct(),V;try{let t=de();t&&(V=t.ensureDate)}catch{}V||(V=Fe().ensureDate);var ft=typeof process<"u"&&process.env?process.env:{},mt=ft.VSCODE_WEB==="true"||pt(),y=null;if(!mt)try{y=require("fs").promises}catch{y=null}var ge=class{constructor(){this.isWeb=mt||pt()}s(e){var r;try{return en({uri:this.a(e),isWeb:this.isWeb,remoteName:(r=b.env)==null?void 0:r.remoteName,forceWorkspaceFs:ft[rn]==="1"}).filesystem==="workspace.fs"}catch{return!1}}o(e){if(!e)return"";if(typeof e=="string")return e;if(e&&typeof e=="object"&&typeof e.fsPath=="string")return e.fsPath;if(e&&typeof e=="object"&&typeof e.path=="string")return e.path;if(typeof e=="object"){if(typeof e.fsPath=="string")return e.fsPath;if(typeof e.path=="string")return e.path}return String(e)}a(e){if(e&&typeof e=="object"&&typeof e.scheme=="string"&&typeof e.path=="string")return e;if(typeof e=="string"){let r=e.trim(),a=/^[a-zA-Z]:[\\/]/.test(r);if(/^[a-zA-Z][a-zA-Z0-9+.-]*:/.test(r)&&!a){let o=b.Uri.parse(r);if(o.scheme&&o.scheme!=="file")return o}return b.Uri.file(e)}if(e&&typeof e=="object"){if(e.uri&&e.uri!==e)try{return this.a(e.uri)}catch{}if(this.isWeb&&typeof e.scheme=="string"&&typeof e.path=="string")return b.Uri.from({scheme:e.scheme,authority:e.authority||"",path:e.path||"",query:e.query||"",fragment:e.fragment||""});if(typeof e.fsPath=="string"&&e.fsPath.length>0)return b.Uri.file(e.fsPath);if(typeof e.path=="string"&&e.path.length>0)return this.isWeb&&typeof e.scheme=="string"&&e.scheme!=="file"?b.Uri.from({scheme:e.scheme,authority:e.authority||"",path:e.path,query:e.query||"",fragment:e.fragment||""}):b.Uri.file(e.path);if(typeof e.href=="string"&&e.href.length>0)return b.Uri.parse(e.href);if(typeof e.scheme=="string")return b.Uri.from({scheme:e.scheme,authority:e.authority||"",path:e.path||e.fsPath||"",query:e.query||"",fragment:e.fragment||""});if(typeof e.toString=="function")try{let r=e.toString(!0);if(r&&r!=="[object Object]")return b.Uri.parse(r)}catch{let r=e.toString();if(r&&r!=="[object Object]")return b.Uri.parse(r)}}throw new Error(`Unsupported target type: ${typeof e}`)}async stat(e){let r=this.s(e);if(!this.isWeb&&y&&!r)return y.stat(this.o(e));let a=this.a(e),n=await b.workspace.fs.stat(a),o=tn(n);return{...o,mtime:o.mtimeMs===null?V(n.mtime):new Date(o.mtimeMs),ctime:o.ctimeMs===null?V(n.ctime):new Date(o.ctimeMs),birthtime:o.ctimeMs===null?V(n.ctime):new Date(o.ctimeMs),isFile:()=>n.type===b.FileType.File,isDirectory:()=>n.type===b.FileType.Directory}}async readFile(e,r="utf8"){let a=this.s(e);if(!this.isWeb&&y&&!a)return y.readFile(this.o(e),r);let n=this.a(e),o=await b.workspace.fs.readFile(n);return r===null||r==="binary"?o:new TextDecoder(r).decode(o)}async writeFile(e,r,a="utf8"){let n=this.o(e);try{let o=this.s(e);if(!this.isWeb&&y&&!o)return y.writeFile(n,r,a);let s=this.a(e),i=typeof r=="string"?new TextEncoder().encode(r):r;await b.workspace.fs.writeFile(s,i)}catch(o){this.A("write file",n,o)}}async rename(e,r,a={overwrite:!1}){let n=this.o(e),o=this.o(r);try{let s=this.s(e)||this.s(r);if(!this.isWeb&&y&&!s)return y.rename(n,o);if(typeof b.workspace.fs.rename=="function")await b.workspace.fs.rename(this.a(e),this.a(r),a);else if(this.a(e).scheme==="file"&&this.a(r).scheme==="file")await(y||require("fs").promises).rename(n,o);else throw new Error("The active filesystem provider cannot rename report output.")}catch(s){this.A("rename file",`${n} -> ${o}`,s)}}async mkdir(e,r={recursive:!0}){let a=this.o(e);try{let n=this.s(e);if(!this.isWeb&&y&&!n)return y.mkdir(a,r);let o=this.a(e);await b.workspace.fs.createDirectory(o)}catch(n){this.A("create directory",a,n)}}async readdir(e,r={withFileTypes:!1}){let a=this.s(e);if(!this.isWeb&&y&&!a)return y.readdir(this.o(e),r);let n=this.a(e),o=await b.workspace.fs.readDirectory(n);return r.withFileTypes?o.map(([s,i])=>({name:s,isDirectory:()=>i===b.FileType.Directory,isFile:()=>i===b.FileType.File})):o.map(([s])=>s)}async delete(e,r={recursive:!1}){let a=this.s(e);if(!this.isWeb&&y&&!a){let o=this.o(e);return r.recursive?y.rm?y.rm(o,r):y.rmdir(o,r):y.unlink(o)}let n=this.a(e);await b.workspace.fs.delete(n,r)}async exists(e){try{return await this.stat(e),!0}catch{return!1}}async ensureDirectory(e){let r=Xr(this.o(e));await this.mkdir(r,{recursive:!0})}A(e,r,a){throw Qr(a)?new Zr(Jr.FILE_PERMISSION_DENIED,`Permission denied while attempting to ${e}`,{path:r,code:a.code}):a}},nn=new ge;ht.exports={FileSystemAdapter:ge,fileSystem:nn}});var N=f((La,bt)=>{var B=typeof process<"u"&&process.env?process.env:{},an=12e4,on=1e4,sn=1440*60*1e3,ln=2,cn=["Ja","Fe","Mr","Ap","My","Jn","Jl","Au","Se","Oc","No","De"],un=Number(B.EXPLORER_DATES_DECORATION_POOL_SIZE||2048),dn=Number(B.EXPLORER_DATES_FLYWEIGHT_CACHE_SIZE||4096),gn=Number(B.EXPLORER_DATES_WORKSPACE_BALANCED_THRESHOLD||15e3),pn=Number(B.EXPLORER_DATES_WORKSPACE_LARGE_THRESHOLD||25e4),wt=Number(B.EXPLORER_DATES_WORKSPACE_EXTREME_THRESHOLD||4e5),fn=Number(B.EXPLORER_DATES_WORKSPACE_SCAN_MAX_RESULTS||Math.min(wt+1,50001)),mn={ADVANCED_CACHE:"explorerDates.advancedCache",ADVANCED_CACHE_METADATA:"explorerDates.advancedCacheMetadata",TEMPLATE_STORE:"explorerDates.templates",WEB_GIT_NOTICE:"explorerDates.webGitNotice"},hn="explorerDatesChunks",wn="__explorerDatesChunks";bt.exports={DEFAULT_CACHE_TIMEOUT:an,DEFAULT_MAX_CACHE_SIZE:on,DEFAULT_PERSISTENT_CACHE_TTL:sn,DEFAULT_DECORATION_POOL_SIZE:un,DEFAULT_FLYWEIGHT_CACHE_SIZE:dn,MAX_BADGE_LENGTH:ln,MONTH_ABBREVIATIONS:cn,WORKSPACE_SCALE_BALANCED_THRESHOLD:gn,WORKSPACE_SCALE_LARGE_THRESHOLD:pn,WORKSPACE_SCALE_EXTREME_THRESHOLD:wt,WORKSPACE_SCAN_MAX_RESULTS:fn,GLOBAL_STATE_KEYS:mn,WEB_CHUNK_GLOBAL_KEY:hn,LEGACY_WEB_CHUNK_GLOBAL_KEY:wn}});var Re=f((Oa,Et)=>{var{MAX_BADGE_LENGTH:yt}=N();function bn(t=0,e="auto"){let r=typeof t=="number"&&!Number.isNaN(t)?t:0;if(e==="bytes")return`~${r}B`;let a=r/1024;if(e==="kb")return`~${a.toFixed(1)}K`;let n=a/1024;return e==="mb"?`~${n.toFixed(1)}M`:r<1024?`~${r}B`:a<1024?`~${Math.round(a)}K`:`~${n.toFixed(1)}M`}function yn(t){if(t)return t.length>yt?t.substring(0,yt):t}Et.exports={formatFileSize:bn,trimBadge:yn}});var xt=f((Na,Tt)=>{var vt=[".git","node_modules","dist","build","out",".vite",".vscode-test","test-results","playwright-report","coverage"],Ct=["24h","7d","30d","90d","all"];function D(t=""){return String(t||"").replace(/\\/g,"/").replace(/\/+/g,"/").replace(/^\.\//,"")}function St(t){return t==="full"||t==="all"?"all":Ct.includes(t)?t:"all"}function kt(t,e=Date.now()){let r=St(t);if(r==="all")return null;let a=r==="24h"?24:Number.parseInt(r,10)*24;return e-a*60*60*1e3}function x(t){if(t instanceof Date)return Number.isFinite(t.getTime())?t:null;if(typeof t=="number"&&Number.isFinite(t)){let e=new Date(t<1e12?t*1e3:t);return Number.isFinite(e.getTime())?e:null}if(typeof t=="string"&&t.trim()){let e=new Date(t);return Number.isFinite(e.getTime())?e:null}return null}function En(t={}){let e=Number.isFinite(Number(t.size))&&Number(t.size)>=0?Number(t.size):null,r=x(t.mtime??t.mtimeMs),a=x(t.birthtime??t.ctime??t.ctimeMs);return{size:e,modified:r,created:a}}function vn(t){let r=D(t).replace(/^\*\*\//,"").replace(/\/\*\*$/,"").replace(/[.+^${}()|[\]\\]/g,"\\$&").replace(/\*\*/g,".*").replace(/\*/g,"[^/]*").replace(/\?/g,"[^/]");try{return new RegExp(`(^|/)${r}($|/)`,"i")}catch{return null}}function Cn(t={}){let e=new Set([...vt,...t.excludedSegments||[]].map(a=>D(a).replace(/^\/+|\/+$/g,"").toLowerCase()).filter(Boolean)),r=(t.excludedPatterns||[]).map(vn).filter(Boolean);return{excludedSegments:[...e],isExcluded(a=""){let n=D(a);return n.split("/").filter(Boolean).some(s=>e.has(s.toLowerCase()))?!0:r.some(s=>s.test(n))},shouldDescend(a=""){return!this.isExcluded(a,!0)}}}function Sn(t){let e=x(t==null?void 0:t.timestamp);return e?`${e.toISOString()}|${t.action||"modified"}|${t.source||"unknown"}`:null}function kn(t,e,r){let a=x(t),n=kt(e,r);return!!(a&&(n===null||a.getTime()>=n))}function Dt(t){return[...t].sort((e,r)=>{var o,s;let a=((o=x(e.lastActivity||e.modified))==null?void 0:o.getTime())||0;return(((s=x(r.lastActivity||r.modified))==null?void 0:s.getTime())||0)-a||D(e.path).localeCompare(D(r.path))})}function Dn(t){let e={filesystem:0,user:0,watcher:0,git:0,unavailable:0},r={},a={};for(let l of t){r[l.type||"unknown"]=(r[l.type||"unknown"]||0)+1;for(let c of l.evidence||[]){e[c.source]=(e[c.source]||0)+1;let u=x(c.timestamp);u&&(a[u.toISOString().slice(0,10)]=(a[u.toISOString().slice(0,10)]||0)+1)}l.activityUnavailable&&e.unavailable++}let n=Dt(t),o=[...t].filter(l=>Number.isFinite(l.activityCount)&&l.activityCount>0).sort((l,c)=>c.activityCount-l.activityCount||D(l.path).localeCompare(D(c.path))),s=[...t].sort((l,c)=>(c.size||0)-(l.size||0)||D(l.path).localeCompare(D(c.path))),i=[...t].filter(l=>x(l.modified)).sort((l,c)=>x(l.modified).getTime()-x(c.modified).getTime()||D(l.path).localeCompare(D(c.path)));return{totalFiles:t.length,totalSize:t.reduce((l,c)=>l+(c.size||0),0),fileTypes:r,activityByDay:a,mostActiveFiles:o.slice(0,10).map(l=>({path:l.path,activityCount:l.activityCount,lastActivity:l.lastActivity})),recentlyModified:n.slice(0,20).map(l=>({path:l.path,modified:l.modified,size:l.size})),largestFiles:s.slice(0,10).map(l=>({path:l.path,size:l.size,modified:l.modified})),oldestFiles:i.slice(0,10).map(l=>({path:l.path,modified:l.modified,size:l.size})),activitySourceBreakdown:e}}Tt.exports={REPORT_SCHEMA_VERSION:2,DEFAULT_EXCLUDED_SEGMENTS:vt,REPORT_TIME_RANGES:Ct,normalizePath:D,normalizeTimeRange:St,rangeStart:kt,validDate:x,normalizeStat:En,createInclusionPolicy:Cn,activityKey:Sn,inRange:kn,sortFiles:Dt,createSummary:Dn}});var G=f(($a,Pt)=>{var Ft=typeof process<"u"&&process.env?process.env:{},At="[ExplorerDates][WebDiag]",Pe="__explorerDatesWebDiagnostics",fe;function Tn(){var t,e;try{let r=require("vscode");return((t=r==null?void 0:r.env)==null?void 0:t.uiKind)===((e=r==null?void 0:r.UIKind)==null?void 0:e.Web)}catch{return Ft.VSCODE_WEB==="true"}}function A(){return fe!==void 0||(fe=Ft.EXPLORER_DATES_WEB_DIAG==="1"||Tn()),fe}function Rt(){return{enabled:A(),logs:[],logOnce:new Set,commandsRegistered:new Set,commandsInvoked:[],errors:[],chunkLoads:[],provider:{created:!1,registered:!1,hydrated:!1,decorationCalls:0,refreshCalls:0,lastEvent:null}}}var xn=Rt();function F(){return typeof globalThis<"u"?(globalThis[Pe]||(globalThis[Pe]=Rt()),globalThis[Pe]):xn}function An(t){try{return JSON.stringify(t)}catch{return String(t)}}function R(t,e,r){if(!A())return;let a=F(),n={ts:new Date().toISOString(),level:t,message:e,meta:r||null};a.logs.push(n),a.logs.length>400&&a.logs.shift();let o=r?`${At} ${e} ${An(r)}`:`${At} ${e}`,s=console[t]||console.info;try{s(o)}catch{}}function Fn(t,e,r,a){if(!A())return;let n=F();n.logOnce.has(t)||(n.logOnce.add(t),R(e,r,a))}function Rn(t){if(!A())return;F().commandsRegistered.add(t),R("info","Command registered",{commandId:t})}function Pn(t){if(!A())return;F().commandsInvoked.push({commandId:t,ts:Date.now()}),R("info","Command invoked",{commandId:t})}function _n(t,e,r){A()&&(e?R("info","Command completed",{commandId:t}):(R("error","Command failed",{commandId:t,error:r==null?void 0:r.message,stack:r==null?void 0:r.stack}),F().errors.push({commandId:t,error:r==null?void 0:r.message,stack:r==null?void 0:r.stack})))}function Mn(t,e,r){if(!A())return;F().chunkLoads.push({chunkName:t,stage:e,ts:Date.now(),error:r?r.message||String(r):null}),R(r?"warn":"info",`Chunk ${e}`,{chunkName:t,error:r==null?void 0:r.message})}function Wn(t,e){if(!A())return;let r=F();r.provider.lastEvent={event:t,ts:Date.now(),meta:e||null},t==="created"&&(r.provider.created=!0),t==="registered"&&(r.provider.registered=!0),t==="hydrated"&&(r.provider.hydrated=!0),R("info",`Provider ${t}`,e)}function In(){if(!A())return;let t=F();t.provider.decorationCalls+=1,t.provider.decorationCalls<=3&&R("info","Decoration request observed",{count:t.provider.decorationCalls})}function Ln(){if(!A())return;let t=F();t.provider.refreshCalls+=1}Pt.exports={isWebDiagnosticsEnabled:A,getWebDiagnosticsState:F,diagLog:R,diagLogOnce:Fn,recordCommandRegistration:Rn,recordCommandInvocation:Pn,recordCommandResult:_n,recordChunkEvent:Mn,recordProviderEvent:Wn,recordDecorationCall:In,recordRefreshCall:Ln}});var j=f((qa,Wt)=>{var _e=require("vscode"),{getLocalization:On}=ee(),Nn=On();function _t(){return typeof _e.workspace.isTrusted>"u"?!0:_e.workspace.isTrusted===!0}function Mt(t="operation"){if(!_t()){let e=Nn.getString("operationRequiresTrust",t)||`This operation requires a trusted workspace. Please trust this workspace to use ${t}.`;throw _e.window.showErrorMessage(e),new Error(`Workspace trust required for ${t}`)}}async function $n(t,e="operation"){try{return Mt(e),await t()}catch{return null}}Wt.exports={isWorkspaceTrusted:_t,requireWorkspaceTrust:Mt,withTrustGuard:$n}});var It=f((exports,module)=>{var vscode=require("vscode"),{fileSystem}=pe(),{formatFileSize}=Re(),{normalizeStat,validDate}=xt(),{recordCommandRegistration,recordCommandInvocation,recordCommandResult,diagLog}=G(),getFileName,getRelativePath;try{let t=de();t&&(getFileName=t.getFileName,getRelativePath=t.getRelativePath)}catch{}if(!getFileName){let t=le();getFileName=getFileName||t.getFileName,getRelativePath=getRelativePath||t.getRelativePath}var env=typeof process<"u"&&process.env?process.env:{},isWeb=env.VSCODE_WEB==="true",childProcess=null;function loadChildProcess(){return!childProcess&&!isWeb&&(childProcess=eval("require")("child_process")),childProcess}function registerCoreCommands({context:t,fileDateProvider:e,logger:r,l10n:a}){let n=[],o=(s,i)=>(recordCommandRegistration(s),vscode.commands.registerCommand(s,async(...l)=>{recordCommandInvocation(s);try{let c=await i(...l);return recordCommandResult(s,!0),c}catch(c){throw recordCommandResult(s,!1,c),c}}));n.push(o("explorerDates.refreshDateDecorations",()=>{try{if(e){e.clearAllCaches(),e.refreshAll();let s=(a==null?void 0:a.getString("refreshSuccess"))||"Date decorations refreshed - all caches cleared";vscode.window.showInformationMessage(s),r.info("Date decorations refreshed manually with cache clear")}}catch(s){r.error("Failed to refresh decorations",s),vscode.window.showErrorMessage(`Failed to refresh decorations: ${s.message}`)}})),n.push(o("explorerDates.previewConfiguration",s=>{try{e&&(e.applyPreviewSettings(s),r.info("Configuration preview applied",s))}catch(i){r.error("Failed to apply configuration preview",i)}})),n.push(o("explorerDates.clearPreview",()=>{try{e&&(e.applyPreviewSettings(null),r.info("Configuration preview cleared"))}catch(s){r.error("Failed to clear configuration preview",s)}})),n.push(o("explorerDates.showMetrics",()=>{try{if(e){let s=e.getMetrics(),i=`Explorer Dates Metrics: Total Decorations: ${s.totalDecorations} Cache Size: ${s.cacheSize} Cache Hits: ${s.cacheHits} @@ -21,14 +21,14 @@ Is Processing: ${s.batchProcessor.isProcessing} Average Batch Time: ${s.batchProcessor.averageBatchTime.toFixed(2)}ms`),vscode.window.showInformationMessage(i,{modal:!0}),r.info("Metrics displayed",s)}}catch(s){r.error("Failed to show metrics",s),vscode.window.showErrorMessage(`Failed to show metrics: ${s.message}`)}})),n.push(o("explorerDates.openLogs",()=>{try{if(r&&typeof r.show=="function"){r.show();return}diagLog("info","Logger channel unavailable; showing fallback message"),vscode.window.showInformationMessage("Explorer Dates logs are unavailable in this environment.")}catch(s){r.error("Failed to open logs",s),vscode.window.showErrorMessage(`Failed to open logs: ${s.message}`)}})),n.push(o("explorerDates.showCurrentConfig",()=>{try{let s=vscode.workspace.getConfiguration("explorerDates"),i={showDateDecorations:s.get("showDateDecorations",!0),performanceMode:s.get("performanceMode",!1),featureLevel:s.get("featureLevel","auto"),highContrastMode:s.get("highContrastMode"),badgePriority:s.get("badgePriority"),colorScheme:s.get("colorScheme"),accessibilityMode:s.get("accessibilityMode"),dateDecorationFormat:s.get("dateDecorationFormat"),fileSizeFormat:s.get("fileSizeFormat","auto"),showGitInfo:s.get("showGitInfo"),showFileSize:s.get("showFileSize")},l=`Current Explorer Dates Configuration: ${Object.entries(i).map(([c,u])=>`${c}: ${JSON.stringify(u)}`).join(` -`)}`;vscode.window.showInformationMessage(l,{modal:!0}),r.info("Current configuration displayed",i)}catch(s){r.error("Failed to show configuration",s)}})),n.push(o("explorerDates.resetToDefaults",async()=>{try{let{requireWorkspaceTrust:s}=V();s("reset settings to defaults");let i=vscode.workspace.getConfiguration("explorerDates");await i.update("highContrastMode",!1,vscode.ConfigurationTarget.Global),await i.update("badgePriority","time",vscode.ConfigurationTarget.Global),await i.update("accessibilityMode",!1,vscode.ConfigurationTarget.Global),vscode.window.showInformationMessage("Reset high contrast, badge priority, and accessibility mode to defaults. Changes should take effect immediately."),r.info("Reset problematic settings to defaults"),e&&(e.clearAllCaches(),e.refreshAll())}catch(s){r.error("Failed to reset settings",s),vscode.window.showErrorMessage(`Failed to reset settings: ${s.message}`)}})),n.push(o("explorerDates.toggleDecorations",()=>{try{let s=vscode.workspace.getConfiguration("explorerDates"),i=s.get("showDateDecorations",!0);s.update("showDateDecorations",!i,vscode.ConfigurationTarget.Global);let l=i?(a==null?void 0:a.getString("decorationsDisabled"))||"Date decorations disabled":(a==null?void 0:a.getString("decorationsEnabled"))||"Date decorations enabled";vscode.window.showInformationMessage(l),r.info(`Date decorations toggled to: ${!i}`)}catch(s){r.error("Failed to toggle decorations",s),vscode.window.showErrorMessage(`Failed to toggle decorations: ${s.message}`)}})),n.push(o("explorerDates.copyFileDate",async s=>{try{let i=s;if(!i&&vscode.window.activeTextEditor&&(i=vscode.window.activeTextEditor.document.uri),!i){vscode.window.showWarningMessage("No file selected");return}let l=await fileSystem.stat(i),c=(l.mtime instanceof Date?l.mtime:new Date(l.mtime)).toLocaleString();await vscode.env.clipboard.writeText(c),vscode.window.showInformationMessage(`Copied to clipboard: ${c}`),r.info(`File date copied for: ${i.fsPath||i.path}`)}catch(i){r.error("Failed to copy file date",i),vscode.window.showErrorMessage(`Failed to copy file date: ${i.message}`)}})),n.push(o("explorerDates.showFileDetails",async s=>{try{let i=s;if(!i&&vscode.window.activeTextEditor&&(i=vscode.window.activeTextEditor.document.uri),!i){vscode.window.showWarningMessage("No file selected");return}let l=await fileSystem.stat(i),c=getFileName(i.fsPath||i.path),u=(e==null?void 0:e.ae(l.size,"auto"))||`${l.size} bytes`,g=(l.mtime instanceof Date?l.mtime:new Date(l.mtime)).toLocaleString(),m=(l.birthtime instanceof Date?l.birthtime:new Date(l.birthtime||l.mtime)).toLocaleString(),w=`File: ${c} -Size: ${u} -Modified: ${g} -Created: ${m} -Path: ${i.fsPath||i.path}`;vscode.window.showInformationMessage(w,{modal:!0}),r.info(`File details shown for: ${i.fsPath||i.path}`)}catch(i){r.error("Failed to show file details",i),vscode.window.showErrorMessage(`Failed to show file details: ${i.message}`)}})),n.push(o("explorerDates.toggleFadeOldFiles",()=>{try{let s=vscode.workspace.getConfiguration("explorerDates"),i=s.get("fadeOldFiles",!1);s.update("fadeOldFiles",!i,vscode.ConfigurationTarget.Global);let l=i?"Fade old files disabled":"Fade old files enabled";vscode.window.showInformationMessage(l),r.info(`Fade old files toggled to: ${!i}`)}catch(s){r.error("Failed to toggle fade old files",s),vscode.window.showErrorMessage(`Failed to toggle fade old files: ${s.message}`)}})),n.push(o("explorerDates.showFileHistory",async s=>{try{if(isWeb){vscode.window.showInformationMessage("Git history is unavailable on VS Code for Web.");return}let i=s;if(!i&&vscode.window.activeTextEditor&&(i=vscode.window.activeTextEditor.document.uri),!i){vscode.window.showWarningMessage("No file selected");return}let l=vscode.workspace.getWorkspaceFolder(i);if(!l){vscode.window.showWarningMessage("File is not in a workspace");return}let u=`git log --oneline -10 -- "${getRelativePath(l.uri.fsPath||l.uri.path,i.fsPath||i.path)}"`;loadChildProcess().exec(u,{cwd:l.uri.fsPath,timeout:3e3},(m,w)=>{if(m){m.message.includes("not a git repository")?vscode.window.showWarningMessage("This file is not in a Git repository"):vscode.window.showErrorMessage(`Git error: ${m.message}`);return}if(!w.trim()){vscode.window.showInformationMessage("No Git history found for this file");return}let h=w.trim(),S=getFileName(i.fsPath||i.path);vscode.window.showInformationMessage(`Recent commits for ${S}: +`)}`;vscode.window.showInformationMessage(l,{modal:!0}),r.info("Current configuration displayed",i)}catch(s){r.error("Failed to show configuration",s)}})),n.push(o("explorerDates.resetToDefaults",async()=>{try{let{requireWorkspaceTrust:s}=j();s("reset settings to defaults");let i=vscode.workspace.getConfiguration("explorerDates");await i.update("highContrastMode",!1,vscode.ConfigurationTarget.Global),await i.update("badgePriority","time",vscode.ConfigurationTarget.Global),await i.update("accessibilityMode",!1,vscode.ConfigurationTarget.Global),vscode.window.showInformationMessage("Reset high contrast, badge priority, and accessibility mode to defaults. Changes should take effect immediately."),r.info("Reset problematic settings to defaults"),e&&(e.clearAllCaches(),e.refreshAll())}catch(s){r.error("Failed to reset settings",s),vscode.window.showErrorMessage(`Failed to reset settings: ${s.message}`)}})),n.push(o("explorerDates.toggleDecorations",()=>{try{let s=vscode.workspace.getConfiguration("explorerDates"),i=s.get("showDateDecorations",!0);s.update("showDateDecorations",!i,vscode.ConfigurationTarget.Global);let l=i?(a==null?void 0:a.getString("decorationsDisabled"))||"Date decorations disabled":(a==null?void 0:a.getString("decorationsEnabled"))||"Date decorations enabled";vscode.window.showInformationMessage(l),r.info(`Date decorations toggled to: ${!i}`)}catch(s){r.error("Failed to toggle decorations",s),vscode.window.showErrorMessage(`Failed to toggle decorations: ${s.message}`)}})),n.push(o("explorerDates.copyFileDate",async s=>{try{let i=s;if(!i&&vscode.window.activeTextEditor&&(i=vscode.window.activeTextEditor.document.uri),!i){vscode.window.showWarningMessage("No file selected");return}let l=await fileSystem.stat(i),c=(l.mtime instanceof Date?l.mtime:new Date(l.mtime)).toLocaleString();await vscode.env.clipboard.writeText(c),vscode.window.showInformationMessage(`Copied to clipboard: ${c}`),r.info(`File date copied for: ${i.fsPath||i.path}`)}catch(i){r.error("Failed to copy file date",i),vscode.window.showErrorMessage(`Failed to copy file date: ${i.message}`)}})),n.push(o("explorerDates.showFileDetails",async s=>{var i,l;try{let c=s;if(!c&&vscode.window.activeTextEditor&&(c=vscode.window.activeTextEditor.document.uri),!c){vscode.window.showWarningMessage("No file selected");return}let u=await fileSystem.stat(c),g=normalizeStat(u),m=c.fsPath||c.path||c.toString(),w=getFileName(m),h=g.size===null?"Unavailable":formatFileSize(g.size,"auto"),C=((i=validDate(g.modified))==null?void 0:i.toLocaleString())||"Unavailable",S=((l=validDate(g.created))==null?void 0:l.toLocaleString())||"Unavailable (not provided)",X=`File: ${w} +Size: ${h} +Modified: ${C} +Created: ${S} +Path: ${m}`;vscode.window.showInformationMessage(X,{modal:!0}),r.info(`File details shown for: ${m}`)}catch(c){r.error("Failed to show file details",c),vscode.window.showErrorMessage(`Failed to show file details: ${(c==null?void 0:c.code)==="ENOENT"?"The selected resource no longer exists.":"The selected resource could not be read."}`)}})),n.push(o("explorerDates.toggleFadeOldFiles",()=>{try{let s=vscode.workspace.getConfiguration("explorerDates"),i=s.get("fadeOldFiles",!1);s.update("fadeOldFiles",!i,vscode.ConfigurationTarget.Global);let l=i?"Fade old files disabled":"Fade old files enabled";vscode.window.showInformationMessage(l),r.info(`Fade old files toggled to: ${!i}`)}catch(s){r.error("Failed to toggle fade old files",s),vscode.window.showErrorMessage(`Failed to toggle fade old files: ${s.message}`)}})),n.push(o("explorerDates.showFileHistory",async s=>{try{if(isWeb){vscode.window.showInformationMessage("Git history is unavailable on VS Code for Web.");return}let i=s;if(!i&&vscode.window.activeTextEditor&&(i=vscode.window.activeTextEditor.document.uri),!i){vscode.window.showWarningMessage("No file selected");return}let l=vscode.workspace.getWorkspaceFolder(i);if(!l){vscode.window.showWarningMessage("File is not in a workspace");return}let u=`git log --oneline -10 -- "${getRelativePath(l.uri.fsPath||l.uri.path,i.fsPath||i.path)}"`;loadChildProcess().exec(u,{cwd:l.uri.fsPath,timeout:3e3},(m,w)=>{if(m){m.message.includes("not a git repository")?vscode.window.showWarningMessage("This file is not in a Git repository"):vscode.window.showErrorMessage(`Git error: ${m.message}`);return}if(!w.trim()){vscode.window.showInformationMessage("No Git history found for this file");return}let h=w.trim(),C=getFileName(i.fsPath||i.path);vscode.window.showInformationMessage(`Recent commits for ${C}: -${h}`,{modal:!0})}),r.info(`File history requested for: ${i.fsPath||i.path}`)}catch(i){r.error("Failed to show file history",i),vscode.window.showErrorMessage(`Failed to show file history: ${i.message}`)}})),n.push(vscode.commands.registerCommand("explorerDates.compareWithPrevious",async s=>{try{if(isWeb){vscode.window.showInformationMessage("Git comparisons are unavailable on VS Code for Web.");return}let i=s;if(!i&&vscode.window.activeTextEditor&&(i=vscode.window.activeTextEditor.document.uri),!i){vscode.window.showWarningMessage("No file selected");return}if(!vscode.workspace.getWorkspaceFolder(i)){vscode.window.showWarningMessage("File is not in a workspace");return}await vscode.commands.executeCommand("git.openChange",i),r.info(`Git diff opened for: ${i.fsPath||i.path}`)}catch(i){r.error("Failed to compare with previous version",i),vscode.window.showErrorMessage(`Failed to compare with previous version: ${i.message}`)}})),n.forEach(s=>t.subscriptions.push(s))}module.exports={registerCoreCommands}});var St=f((Sa,Ct)=>{var R=require("vscode");function un({context:t,logger:e,getOnboardingManager:r}){let a=[];a.push(R.commands.registerCommand("explorerDates.showFeatureTour",async()=>{try{let n=await r();if(!n){R.window.showWarningMessage("Onboarding system unavailable.");return}await n.showFeatureTour(),e.info("Feature tour opened")}catch(n){e.error("Failed to show feature tour",n),R.window.showErrorMessage(`Failed to show feature tour: ${n.message}`)}})),a.push(R.commands.registerCommand("explorerDates.showQuickSetup",async()=>{try{let n=await r();if(!n){R.window.showWarningMessage("Onboarding system unavailable.");return}await n.showQuickSetupWizard(),e.info("Quick setup wizard opened")}catch(n){e.error("Failed to show quick setup wizard",n),R.window.showErrorMessage(`Failed to show quick setup wizard: ${n.message}`)}})),a.push(R.commands.registerCommand("explorerDates.showWhatsNew",async()=>{try{let n=await r();if(!n){R.window.showWarningMessage("Onboarding system unavailable.");return}let o=t.extension.packageJSON.version;await n.showWhatsNew(o),e.info("What's new panel opened")}catch(n){e.error("Failed to show what's new",n),R.window.showErrorMessage(`Failed to show what's new: ${n.message}`)}})),a.forEach(n=>t.subscriptions.push(n))}Ct.exports={registerOnboardingCommands:un}});var L=f((ka,Dt)=>{var B=typeof process<"u"&&process.env?process.env:{},dn=12e4,gn=1e4,pn=1440*60*1e3,fn=2,mn=["Ja","Fe","Mr","Ap","My","Jn","Jl","Au","Se","Oc","No","De"],hn=Number(B.EXPLORER_DATES_DECORATION_POOL_SIZE||2048),wn=Number(B.EXPLORER_DATES_FLYWEIGHT_CACHE_SIZE||4096),bn=Number(B.EXPLORER_DATES_WORKSPACE_BALANCED_THRESHOLD||15e3),yn=Number(B.EXPLORER_DATES_WORKSPACE_LARGE_THRESHOLD||25e4),kt=Number(B.EXPLORER_DATES_WORKSPACE_EXTREME_THRESHOLD||4e5),En=Number(B.EXPLORER_DATES_WORKSPACE_SCAN_MAX_RESULTS||Math.min(kt+1,50001)),vn={ADVANCED_CACHE:"explorerDates.advancedCache",ADVANCED_CACHE_METADATA:"explorerDates.advancedCacheMetadata",TEMPLATE_STORE:"explorerDates.templates",WEB_GIT_NOTICE:"explorerDates.webGitNotice"},Cn="explorerDatesChunks",Sn="__explorerDatesChunks";Dt.exports={DEFAULT_CACHE_TIMEOUT:dn,DEFAULT_MAX_CACHE_SIZE:gn,DEFAULT_PERSISTENT_CACHE_TTL:pn,DEFAULT_DECORATION_POOL_SIZE:hn,DEFAULT_FLYWEIGHT_CACHE_SIZE:wn,MAX_BADGE_LENGTH:fn,MONTH_ABBREVIATIONS:mn,WORKSPACE_SCALE_BALANCED_THRESHOLD:bn,WORKSPACE_SCALE_LARGE_THRESHOLD:yn,WORKSPACE_SCALE_EXTREME_THRESHOLD:kt,WORKSPACE_SCAN_MAX_RESULTS:En,GLOBAL_STATE_KEYS:vn,WEB_CHUNK_GLOBAL_KEY:Cn,LEGACY_WEB_CHUNK_GLOBAL_KEY:Sn}});var Q=f((exports,module)=>{var{getLogger}=D(),env=typeof process<"u"&&process.env?process.env:{};function createFallbackVscodeMinimal(){return{workspace:{workspaceFolders:[],getConfiguration:()=>({get:()=>{},async update(){},inspect:()=>({defaultValue:void 0,globalValue:void 0,workspaceValue:void 0,workspaceFolderValue:void 0})})},ConfigurationTarget:{Global:1,Workspace:2,WorkspaceFolder:3}}}function resolveVscodeMinimal(){try{return require("vscode")}catch{return createFallbackVscodeMinimal()}}var MinimalSettingsCoordinator=class{constructor(e={}){this.oe=e.defaultSection||"explorerDates",this.v=new Map,this.H=new Map,this.qe=Number(env.EXPLORER_DATES_LOCK_WAIT_WARN_MS||1e3),this._logger=getLogger()}se(e,r){let n=(this.v.get(e)||Promise.resolve()).then(()=>r()),o=n.catch(()=>{});return this.v.set(e,o),n.finally(()=>{this.v.get(e)===o&&this.v.delete(e)}),n}A(e,r){return resolveVscodeMinimal().workspace.getConfiguration(e||void 0,r)}h(e,r){let a=r||this.oe;return a?e.startsWith(`${a}.`)?{section:a,key:e.slice(a.length+1),fullKey:e}:e.includes(".")?{section:void 0,key:e,fullKey:e}:{section:a,key:e,fullKey:`${a}.${e}`}:{section:void 0,key:e,fullKey:e}}async updateSetting(e,r,a={}){return this.se(this.h(e,a.section).fullKey,async()=>{let n=this.h(e,a.section),o=this.A(n.section,a.resource);try{let s=this.ie(a.scope,a.resource);return await o.update(n.key,r,s),{key:n.fullKey,updated:!0}}catch(s){try{this._logger.warn(`Configuration update failed for ${n.fullKey}: ${s&&s.message}`)}catch{}return{key:n.fullKey,updated:!1,error:s}}})}async applySettings(e,r={}){let a=Array.isArray(e)?e:Object.entries(e).map(([s,i])=>({key:s,value:i})),n=[];for(let s of a)try{n.push(await this.updateSetting(s.key,s.value,r))}catch(i){n.push({key:this.h(s.key,r.section).fullKey,updated:!1,error:i})}let o=n.filter(s=>s&&s.error);if(o.length>0){let s=o.map(l=>`${l.key}: ${l.error&&l.error.message?l.error.message:String(l.error)}`),i=new Error(`Failed to apply ${o.length} setting(s): ${s.join("; ")}`);throw i.details=o,i}return n}ie(e,r){return e&&e!=="auto"?this.le(e)||resolveVscodeMinimal().ConfigurationTarget.Workspace:r?resolveVscodeMinimal().ConfigurationTarget.WorkspaceFolder:resolveVscodeMinimal().workspace.workspaceFolders&&resolveVscodeMinimal().workspace.workspaceFolders.length>0?resolveVscodeMinimal().ConfigurationTarget.Workspace:resolveVscodeMinimal().ConfigurationTarget.Global}le(e){switch(e){case"user":return resolveVscodeMinimal().ConfigurationTarget.Global;case"workspace":return resolveVscodeMinimal().ConfigurationTarget.Workspace;case"workspaceFolder":return resolveVscodeMinimal().ConfigurationTarget.WorkspaceFolder;default:return}}getValue(e,r={}){let{section:a,resource:n}=r||{},o=this.h(e,a);return this.A(o.section,n).get(o.key)}inspect(e,r={}){let{section:a,resource:n}=r||{},o=this.h(e,a);return this.A(o.section,n).inspect(o.key)}async clearSetting(e,r={}){return this.updateSetting(e,void 0,r)}getLockWaitStats(){let e={};for(let[r,a]of this.H.entries())e[r]={...a};return e}resetLockWaitStats(){this.H.clear()}},cachedCoordinator=null;function getSettingsCoordinator(options){if(!cachedCoordinator||options&&options.forceNew){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let t=null;try{t=dynamicRequire("../chunks/settings-coordinator-impl-chunk")}catch{}try{t||(t=dynamicRequire("../chunks/settingsCoordinator-impl-chunk"))}catch{}if(t&&typeof t.createSettingsCoordinatorImpl=="function")return cachedCoordinator=t.createSettingsCoordinatorImpl(options),cachedCoordinator}}catch{}try{let{WEB_CHUNK_GLOBAL_KEY:t,LEGACY_WEB_CHUNK_GLOBAL_KEY:e}=L(),r=typeof globalThis<"u"&&(globalThis[t]||globalThis[e])||null;if(r&&r.settingsCoordinatorImpl&&typeof r.settingsCoordinatorImpl.createSettingsCoordinatorImpl=="function")return cachedCoordinator=r.settingsCoordinatorImpl.createSettingsCoordinatorImpl(options),cachedCoordinator}catch{}cachedCoordinator=new MinimalSettingsCoordinator(options)}return cachedCoordinator}module.exports={getSettingsCoordinator,MinimalSettingsCoordinator}});var Pe=f((Da,xt)=>{var v=require("vscode"),{getLogger:kn}=D(),O="explorerDates.",Tt=["performanceMode","featureLevel","smartFileWatching","smartWatcherMaxPatterns","smartWatcherExtensions","enableSmartWatcherFallbacks","enableOnboardingSystem","enableExportReporting","enableAnalysisCommands","enableAdvancedCache","enableWorkspaceTemplates","enableWorkspaceIntelligence","enableExtensionApi","enableIncrementalWorkers","enableProgressiveAnalysis"],Dn=/^\.?explorer-dates.*\.json$/i,Tn=new Set([`${O}customColors`,`${O}enableReporting`]),Fe=class{constructor(e){this.z=e,this._logger=kn()}async getOrganizationPlan(){let e=v.workspace.getConfiguration("explorerDates"),r=this.R();return this.U(e,r)}async organize(e={}){let r=v.workspace.getConfiguration("explorerDates"),a=this.R(),n=e.plan||await this.U(r,a),o={changed:!1,movedToWorkspace:[],reorderedWorkspace:!1,sortedFiles:[]};return!n.needsWork&&!e.force||(await this.ce(r,o,n.keysToMove),await this.ue(r,n.workspaceEntries,o,n.workspaceOutOfOrder),await this.ge(o,n.filesToSort)),o}async U(e,r){let a=this.pe(e),n=this.K(e,r),o=this.fe(n),s=await this.V(),i=await this.B(s);return{keysToMove:a,workspaceEntries:n,workspaceOutOfOrder:o,filesToSort:i,needsWork:a.length>0||o||i.length>0}}pe(e){let r=[];for(let a of Tt){let n=e.inspect(a);if(!n)continue;let o=n.globalValue!==void 0,s=n.workspaceValue!==void 0,i=n.workspaceFolderValue!==void 0;o&&!s&&!i&&r.push(a)}return r}K(e,r){let a=[];for(let n of r){if(this.me(n))continue;let o=this.he(n),s=e.inspect(o);s&&s.workspaceValue!==void 0&&a.push({fullKey:n,shortKey:o,value:s.workspaceValue})}return a}fe(e){if(!e||e.length===0)return!1;let r=[...e].sort((a,n)=>a.fullKey.localeCompare(n.fullKey));return!e.every((a,n)=>a.fullKey===r[n].fullKey)}async B(e){if(!e||e.length===0)return[];let r=[];for(let a of e)await this.we(a)&&r.push(a);return r}async V(){let e=this.be();if(!e.length||!v.workspace.fs)return[];let r=new Map;for(let a of e){await this.G(a,r);let n=v.Uri.joinPath(a,".vscode");await this.G(n,r)}return Array.from(r.values())}async G(e,r){if(e)try{let a=await v.workspace.fs.readDirectory(e);for(let[n,o]of a){if(o!==v.FileType.File||!this.ye(n))continue;let s=v.Uri.joinPath(e,n),i=s.fsPath||s.path;r.has(i)||r.set(i,s)}}catch(a){if((a==null?void 0:a.code)==="FileNotFound"||(a==null?void 0:a.code)==="ENOENT")return;this._logger.warn(`Failed to scan Explorer Dates directory ${e.fsPath||e.path}`,a)}}be(){return(v.workspace.workspaceFolders||[]).map(e=>e==null?void 0:e.uri).filter(Boolean)}ye(e=""){return Dn.test(e)}async ce(e,r,a){let n=Array.isArray(a)?a:Tt;if(n.length)for(let o of n){let s=e.inspect(o);if(!s)continue;let i=s.globalValue!==void 0,l=s.workspaceValue!==void 0,c=s.workspaceFolderValue!==void 0;i&&!l&&!c&&(await e.update(o,s.globalValue,v.ConfigurationTarget.Workspace),await e.update(o,void 0,v.ConfigurationTarget.Global),r.movedToWorkspace.push(`${O}${o}`),r.changed=!0,this._logger.info(`Moved ${O}${o} from user settings to workspace settings.`))}}async ue(e,r,a,n=!1){let o=Array.isArray(r)&&r.length>0?r:this.K(e,this.R());if(o.length===0)return;let s=[...o].sort((l,c)=>l.fullKey.localeCompare(c.fullKey));if(!(!n&&o.every((l,c)=>l.fullKey===s[c].fullKey))){for(let l of o)await e.update(l.shortKey,void 0,v.ConfigurationTarget.Workspace);for(let l of s)await e.update(l.shortKey,l.value,v.ConfigurationTarget.Workspace);a.reorderedWorkspace=!0,a.changed=!0,this._logger.info("Reordered Explorer Dates workspace settings alphabetically.")}}async ge(e,r){let a=Array.isArray(r)?r:await this.B(await this.V());if(a.length)for(let n of a)await this.Ee(n)&&(e.sortedFiles.push(this.C(n)),e.changed=!0)}async Ee(e){try{let r=await v.workspace.fs.readFile(e),a=Buffer.from(r).toString("utf8").trim();if(!a)return!1;let n=JSON.parse(a),o=this.S(n),s=JSON.stringify(o,null,2);return await v.workspace.fs.writeFile(e,Buffer.from(`${s} -`,"utf8")),this._logger.info(`Sorted Explorer Dates file: ${this.C(e)}`),!0}catch(r){return(r==null?void 0:r.code)==="FileNotFound"||(r==null?void 0:r.code)==="ENOENT"||this._logger.warn(`Failed to sort Explorer Dates file ${this.C(e)}`,r),!1}}async we(e){try{let r=await v.workspace.fs.readFile(e),a=Buffer.from(r).toString("utf8").trim();if(!a)return!1;let n=JSON.parse(a),o=JSON.stringify(n,null,2),s=JSON.stringify(this.S(n),null,2);return o!==s}catch(r){return(r==null?void 0:r.code)==="FileNotFound"||(r==null?void 0:r.code)==="ENOENT"||this._logger.warn(`Failed to inspect Explorer Dates file ${this.C(e)}`,r),!1}}S(e){return Array.isArray(e)?e.map(r=>this.S(r)):e&&typeof e=="object"?Object.keys(e).sort((r,a)=>r.localeCompare(a)).reduce((r,a)=>(r[a]=this.S(e[a]),r),{}):e}R(){var r,a,n,o,s;let e=((s=(o=(n=(a=(r=this.z)==null?void 0:r.extension)==null?void 0:a.packageJSON)==null?void 0:n.contributes)==null?void 0:o.configuration)==null?void 0:s.properties)||{};return Object.keys(e).filter(i=>i.startsWith(O))}he(e){return e.startsWith(O)?e.substring(O.length):e}me(e){return Tn.has(e)}C(e){return(e==null?void 0:e.fsPath)||(e==null?void 0:e.path)||String(e)}};xt.exports={SettingsOrganizer:Fe}});var _t=f((Ta,Pt)=>{var d=require("vscode"),{getSettingsCoordinator:xn}=Q(),{SettingsOrganizer:An}=Pe(),{getLocalization:Rn}=Z(),{requireWorkspaceTrust:N}=V(),y=Rn(),ge=xn(),At="explorerDates.resetToDefaults",Ft=Symbol.for("explorerDates.resetToDefaults.registered");function Fn(){return!!globalThis[Ft]}function Rt(){globalThis[Ft]=!0}async function Pn({context:t,logger:e,getSettingsMigrationManager:r}){let a=[];a.push(d.commands.registerCommand("explorerDates.migrateSettings",async()=>{try{N("settings migration");let o=await r();if(!o){d.window.showWarningMessage(y.getString("migrateChecking"));return}d.window.showInformationMessage(y.getString("migrateChecking"));let s=await o.migrateAllSettings(t),i=await o.autoOrganizeSettingsIfNeeded(t,{trigger:"manual-migrate",silent:!0}),l=[];s.length>0&&l.push(`${s.length} migration${s.length===1?"":"s"}`),i!=null&&i.changed&&l.push("settings reorganized"),l.length===0?d.window.showInformationMessage(y.getString("migrateAllUpToDate")):d.window.showInformationMessage(y.getString("migrateApplied",l.join(" + "))),e.info("Manual settings migration completed",{results:s,organizationSummary:i})}catch(o){e.error("Failed to run settings migration",o),d.window.showErrorMessage(`Failed to migrate settings: ${o.message}`)}})),a.push(d.commands.registerCommand("explorerDates.organizeSettings",async()=>{try{N("settings organization");let s=await new An(t).organize(),i=s.movedToWorkspace.length,l=s.sortedFiles.length,c=[s.reorderedWorkspace?"workspace settings reordered":null,i?`${i} setting(s) moved to workspace scope`:null,l?`${l} explorer-dates file(s) sorted`:null].filter(Boolean).join(" \u2022 ")||"No changes were necessary.";d.window.showInformationMessage(y.getString("organizeSettingsResult",c)),e.info("Organize settings command executed",s)}catch(o){e.error("Failed to organize Explorer Dates settings",o),d.window.showErrorMessage(`Failed to organize settings: ${o.message}`)}})),a.push(d.commands.registerCommand("explorerDates.validateConfiguration",async()=>{try{let o=await r();if(!o){d.window.showWarningMessage("Settings validation system unavailable.");return}let s=await o.validateConfiguration();if(s.length===0)d.window.showInformationMessage("\u2705 Configuration is valid - no issues found!");else{let i=`Found ${s.length} configuration issue(s). Would you like to see details?`;await d.window.showWarningMessage(i,"Show Details","Dismiss")==="Show Details"&&await _n(s)}e.info("Configuration validation completed",{issuesFound:s.length,issues:s})}catch(o){e.error("Failed to validate configuration",o),d.window.showErrorMessage(`Failed to validate configuration: ${o.message}`)}})),a.push(d.commands.registerCommand("explorerDates.cleanLegacySettings",async()=>{try{N("legacy settings cleanup");let o=await r();if(!o){d.window.showWarningMessage(y.getString("migrateChecking"));return}let s=await o.cleanupDeprecatedSettings();s?d.window.showInformationMessage(y.getString("cleanupSuccess")):d.window.showInformationMessage(y.getString("cleanupNoDeprecated")),e.info("Legacy settings cleanup completed",{cleaned:s})}catch(o){e.error("Failed to clean legacy settings",o),d.window.showErrorMessage(`Failed to clean legacy settings: ${o.message}`)}})),a.push(d.commands.registerCommand("explorerDates.showMigrationHistory",async()=>{try{let o=await r();if(!o){d.window.showWarningMessage(y.getString("migrateChecking"));return}let s=o.getMigrationHistory(t);if(s.length===0){d.window.showInformationMessage(y.getString("showMigrationHistoryNoHistory"));return}await Mn(s),e.info("Displayed migration history",{historyLength:s.length})}catch(o){e.error("Failed to show migration history",o),d.window.showErrorMessage(`Failed to show migration history: ${o.message}`)}}));async function n(o={}){try{N("clear telemetry data");let s=o&&o.force===!0,i=null;if(!s&&(i=await d.window.showWarningMessage(y.getString("clearTelemetryPrompt"),{modal:!0},y.getString("clearTelemetryConfirm"),y.getString("clearTelemetryCancel")),i!==y.getString("clearTelemetryConfirm")))return;t!=null&&t.globalState&&typeof t.globalState.update=="function"&&await t.globalState.update("explorerDates.telemetryEvents",[]),d.window.showInformationMessage(y.getString("clearTelemetrySuccess")),e.info("Cleared telemetry events from globalState")}catch(s){e.error("Failed to clear telemetry data",s),d.window.showErrorMessage(`Failed to clear telemetry data: ${s.message}`)}}return a.push(d.commands.registerCommand("explorerDates.clearTelemetryData",n)),a.push(d.commands.registerCommand("explorerDates.clearTelemetryData.force",async()=>{await n({force:!0})})),a.push(d.commands.registerCommand("explorerDates.applyCustomColors",async()=>{try{let o=await d.window.showQuickPick([{label:"Copy to Clipboard",description:"Copy color configuration to clipboard"},{label:"Open Settings",description:"Open VS Code settings to workbench.colorCustomizations"},{label:"Apply Default Colors",description:"Apply default Explorer Dates colors"}],{placeHolder:"How would you like to set up custom colors?",ignoreFocusOut:!0});if(!o)return;let s={"explorerDates.customColor.veryRecent":"#00ff00","explorerDates.customColor.recent":"#ffff00","explorerDates.customColor.old":"#ff0000"};switch(o.label){case"Copy to Clipboard":let i=JSON.stringify({"workbench.colorCustomizations":s},null,2);await d.env.clipboard.writeText(i),d.window.showInformationMessage("Color configuration copied to clipboard!");break;case"Open Settings":await d.commands.executeCommand("workbench.action.openSettings","workbench.colorCustomizations");break;case"Apply Default Colors":N("apply custom colors");let u={...d.workspace.getConfiguration("workbench").get("colorCustomizations",{}),...s};await ge.updateSetting("workbench.colorCustomizations",u,{scope:"user",reason:"custom-colors-command"}),await ge.updateSetting("colorScheme","custom",{scope:"user",reason:"custom-colors-command"}),d.window.showInformationMessage("\u2705 Custom colors applied successfully!");break}e.info("Custom colors command executed",{action:o.label})}catch(o){e.error("Failed to apply custom colors",o),d.window.showErrorMessage(`Failed to apply custom colors: ${o.message}`)}})),await Wn({context:t,logger:e,subscriptions:a}),a.push(d.commands.registerCommand("explorerDates.exportConfiguration",async()=>{var o,s;try{let i=d.workspace.getConfiguration("explorerDates"),l={},c=t.extension.packageJSON,u=((s=(o=c==null?void 0:c.contributes)==null?void 0:o.configuration)==null?void 0:s.properties)||{};for(let w of Object.keys(u))if(w.startsWith("explorerDates.")){let h=w.replace("explorerDates.",""),S=i.get(h);S!==void 0&&(l[w]=S)}let g=JSON.stringify(l,null,2),m=await d.window.showQuickPick([{label:"Copy to Clipboard",description:"Copy configuration to clipboard"},{label:"Save to File",description:"Save configuration to a JSON file"}],{placeHolder:"How would you like to export the configuration?"});if(!m)return;switch(m.label){case"Copy to Clipboard":await d.env.clipboard.writeText(g),d.window.showInformationMessage("Configuration copied to clipboard!");break;case"Save to File":N("save configuration to file");let w=await d.window.showSaveDialog({defaultUri:d.Uri.file("explorer-dates-config.json"),filters:{JSON:["json"]}});w&&(await d.workspace.fs.writeFile(w,Buffer.from(g,"utf8")),d.window.showInformationMessage(`Configuration saved to ${w.fsPath}`));break}e.info("Configuration exported",{action:m.label,settingsCount:Object.keys(l).length})}catch(i){e.error("Failed to export configuration",i),d.window.showErrorMessage(`Failed to export configuration: ${i.message}`)}})),a}async function _n(t){let e=d.window.createWebviewPanel("explorerDatesConfigIssues","Explorer Dates - Configuration Issues",d.ViewColumn.One,{enableScripts:!1}),r=t.map(a=>` +${h}`,{modal:!0})}),r.info(`File history requested for: ${i.fsPath||i.path}`)}catch(i){r.error("Failed to show file history",i),vscode.window.showErrorMessage(`Failed to show file history: ${i.message}`)}})),n.push(vscode.commands.registerCommand("explorerDates.compareWithPrevious",async s=>{try{if(isWeb){vscode.window.showInformationMessage("Git comparisons are unavailable on VS Code for Web.");return}let i=s;if(!i&&vscode.window.activeTextEditor&&(i=vscode.window.activeTextEditor.document.uri),!i){vscode.window.showWarningMessage("No file selected");return}if(!vscode.workspace.getWorkspaceFolder(i)){vscode.window.showWarningMessage("File is not in a workspace");return}await vscode.commands.executeCommand("git.openChange",i),r.info(`Git diff opened for: ${i.fsPath||i.path}`)}catch(i){r.error("Failed to compare with previous version",i),vscode.window.showErrorMessage(`Failed to compare with previous version: ${i.message}`)}})),n.forEach(s=>t.subscriptions.push(s))}module.exports={registerCoreCommands}});var Ot=f((za,Lt)=>{var P=require("vscode");function qn({context:t,logger:e,getOnboardingManager:r}){let a=[];a.push(P.commands.registerCommand("explorerDates.showFeatureTour",async()=>{try{let n=await r();if(!n){P.window.showWarningMessage("Onboarding system unavailable.");return}await n.showFeatureTour(),e.info("Feature tour opened")}catch(n){e.error("Failed to show feature tour",n),P.window.showErrorMessage(`Failed to show feature tour: ${n.message}`)}})),a.push(P.commands.registerCommand("explorerDates.showQuickSetup",async()=>{try{let n=await r();if(!n){P.window.showWarningMessage("Onboarding system unavailable.");return}await n.showQuickSetupWizard(),e.info("Quick setup wizard opened")}catch(n){e.error("Failed to show quick setup wizard",n),P.window.showErrorMessage(`Failed to show quick setup wizard: ${n.message}`)}})),a.push(P.commands.registerCommand("explorerDates.showWhatsNew",async()=>{try{let n=await r();if(!n){P.window.showWarningMessage("Onboarding system unavailable.");return}let o=t.extension.packageJSON.version;await n.showWhatsNew(o),e.info("What's new panel opened")}catch(n){e.error("Failed to show what's new",n),P.window.showErrorMessage(`Failed to show what's new: ${n.message}`)}})),a.forEach(n=>t.subscriptions.push(n))}Lt.exports={registerOnboardingCommands:qn}});var re=f((exports,module)=>{var{getLogger}=T(),env=typeof process<"u"&&process.env?process.env:{};function createFallbackVscodeMinimal(){return{workspace:{workspaceFolders:[],getConfiguration:()=>({get:()=>{},async update(){},inspect:()=>({defaultValue:void 0,globalValue:void 0,workspaceValue:void 0,workspaceFolderValue:void 0})})},ConfigurationTarget:{Global:1,Workspace:2,WorkspaceFolder:3}}}function resolveVscodeMinimal(){try{return require("vscode")}catch{return createFallbackVscodeMinimal()}}var MinimalSettingsCoordinator=class{constructor(e={}){this.ae=e.defaultSection||"explorerDates",this.v=new Map,this.z=new Map,this.Ne=Number(env.EXPLORER_DATES_LOCK_WAIT_WARN_MS||1e3),this._logger=getLogger()}oe(e,r){let n=(this.v.get(e)||Promise.resolve()).then(()=>r()),o=n.catch(()=>{});return this.v.set(e,o),n.finally(()=>{this.v.get(e)===o&&this.v.delete(e)}),n}F(e,r){return resolveVscodeMinimal().workspace.getConfiguration(e||void 0,r)}h(e,r){let a=r||this.ae;return a?e.startsWith(`${a}.`)?{section:a,key:e.slice(a.length+1),fullKey:e}:e.includes(".")?{section:void 0,key:e,fullKey:e}:{section:a,key:e,fullKey:`${a}.${e}`}:{section:void 0,key:e,fullKey:e}}async updateSetting(e,r,a={}){return this.oe(this.h(e,a.section).fullKey,async()=>{let n=this.h(e,a.section),o=this.F(n.section,a.resource);try{let s=this.se(a.scope,a.resource);return await o.update(n.key,r,s),{key:n.fullKey,updated:!0}}catch(s){try{this._logger.warn(`Configuration update failed for ${n.fullKey}: ${s&&s.message}`)}catch{}return{key:n.fullKey,updated:!1,error:s}}})}async applySettings(e,r={}){let a=Array.isArray(e)?e:Object.entries(e).map(([s,i])=>({key:s,value:i})),n=[];for(let s of a)try{n.push(await this.updateSetting(s.key,s.value,r))}catch(i){n.push({key:this.h(s.key,r.section).fullKey,updated:!1,error:i})}let o=n.filter(s=>s&&s.error);if(o.length>0){let s=o.map(l=>`${l.key}: ${l.error&&l.error.message?l.error.message:String(l.error)}`),i=new Error(`Failed to apply ${o.length} setting(s): ${s.join("; ")}`);throw i.details=o,i}return n}se(e,r){return e&&e!=="auto"?this.ie(e)||resolveVscodeMinimal().ConfigurationTarget.Workspace:r?resolveVscodeMinimal().ConfigurationTarget.WorkspaceFolder:resolveVscodeMinimal().workspace.workspaceFolders&&resolveVscodeMinimal().workspace.workspaceFolders.length>0?resolveVscodeMinimal().ConfigurationTarget.Workspace:resolveVscodeMinimal().ConfigurationTarget.Global}ie(e){switch(e){case"user":return resolveVscodeMinimal().ConfigurationTarget.Global;case"workspace":return resolveVscodeMinimal().ConfigurationTarget.Workspace;case"workspaceFolder":return resolveVscodeMinimal().ConfigurationTarget.WorkspaceFolder;default:return}}getValue(e,r={}){let{section:a,resource:n}=r||{},o=this.h(e,a);return this.F(o.section,n).get(o.key)}inspect(e,r={}){let{section:a,resource:n}=r||{},o=this.h(e,a);return this.F(o.section,n).inspect(o.key)}async clearSetting(e,r={}){return this.updateSetting(e,void 0,r)}getLockWaitStats(){let e={};for(let[r,a]of this.z.entries())e[r]={...a};return e}resetLockWaitStats(){this.z.clear()}},cachedCoordinator=null;function getSettingsCoordinator(options){if(!cachedCoordinator||options&&options.forceNew){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let t=null;try{t=dynamicRequire("../chunks/settings-coordinator-impl-chunk")}catch{}try{t||(t=dynamicRequire("../chunks/settingsCoordinator-impl-chunk"))}catch{}if(t&&typeof t.createSettingsCoordinatorImpl=="function")return cachedCoordinator=t.createSettingsCoordinatorImpl(options),cachedCoordinator}}catch{}try{let{WEB_CHUNK_GLOBAL_KEY:t,LEGACY_WEB_CHUNK_GLOBAL_KEY:e}=N(),r=typeof globalThis<"u"&&(globalThis[t]||globalThis[e])||null;if(r&&r.settingsCoordinatorImpl&&typeof r.settingsCoordinatorImpl.createSettingsCoordinatorImpl=="function")return cachedCoordinator=r.settingsCoordinatorImpl.createSettingsCoordinatorImpl(options),cachedCoordinator}catch{}cachedCoordinator=new MinimalSettingsCoordinator(options)}return cachedCoordinator}module.exports={getSettingsCoordinator,MinimalSettingsCoordinator}});var We=f((Ha,$t)=>{var v=require("vscode"),{getLogger:zn}=T(),$="explorerDates.",Nt=["performanceMode","featureLevel","smartFileWatching","smartWatcherMaxPatterns","smartWatcherExtensions","enableSmartWatcherFallbacks","enableOnboardingSystem","enableExportReporting","enableAnalysisCommands","enableAdvancedCache","enableWorkspaceTemplates","enableWorkspaceIntelligence","enableExtensionApi","enableIncrementalWorkers","enableProgressiveAnalysis"],Hn=/^\.?explorer-dates.*\.json$/i,Un=new Set([`${$}customColors`,`${$}enableReporting`]),Me=class{constructor(e){this.H=e,this._logger=zn()}async getOrganizationPlan(){let e=v.workspace.getConfiguration("explorerDates"),r=this.R();return this.U(e,r)}async organize(e={}){let r=v.workspace.getConfiguration("explorerDates"),a=this.R(),n=e.plan||await this.U(r,a),o={changed:!1,movedToWorkspace:[],reorderedWorkspace:!1,sortedFiles:[]};return!n.needsWork&&!e.force||(await this.le(r,o,n.keysToMove),await this.ce(r,n.workspaceEntries,o,n.workspaceOutOfOrder),await this.ue(o,n.filesToSort)),o}async U(e,r){let a=this.ge(e),n=this.K(e,r),o=this.pe(n),s=await this.V(),i=await this.B(s);return{keysToMove:a,workspaceEntries:n,workspaceOutOfOrder:o,filesToSort:i,needsWork:a.length>0||o||i.length>0}}ge(e){let r=[];for(let a of Nt){let n=e.inspect(a);if(!n)continue;let o=n.globalValue!==void 0,s=n.workspaceValue!==void 0,i=n.workspaceFolderValue!==void 0;o&&!s&&!i&&r.push(a)}return r}K(e,r){let a=[];for(let n of r){if(this.fe(n))continue;let o=this.me(n),s=e.inspect(o);s&&s.workspaceValue!==void 0&&a.push({fullKey:n,shortKey:o,value:s.workspaceValue})}return a}pe(e){if(!e||e.length===0)return!1;let r=[...e].sort((a,n)=>a.fullKey.localeCompare(n.fullKey));return!e.every((a,n)=>a.fullKey===r[n].fullKey)}async B(e){if(!e||e.length===0)return[];let r=[];for(let a of e)await this.he(a)&&r.push(a);return r}async V(){let e=this.we();if(!e.length||!v.workspace.fs)return[];let r=new Map;for(let a of e){await this.G(a,r);let n=v.Uri.joinPath(a,".vscode");await this.G(n,r)}return Array.from(r.values())}async G(e,r){if(e)try{let a=await v.workspace.fs.readDirectory(e);for(let[n,o]of a){if(o!==v.FileType.File||!this.be(n))continue;let s=v.Uri.joinPath(e,n),i=s.fsPath||s.path;r.has(i)||r.set(i,s)}}catch(a){if((a==null?void 0:a.code)==="FileNotFound"||(a==null?void 0:a.code)==="ENOENT")return;this._logger.warn(`Failed to scan Explorer Dates directory ${e.fsPath||e.path}`,a)}}we(){return(v.workspace.workspaceFolders||[]).map(e=>e==null?void 0:e.uri).filter(Boolean)}be(e=""){return Hn.test(e)}async le(e,r,a){let n=Array.isArray(a)?a:Nt;if(n.length)for(let o of n){let s=e.inspect(o);if(!s)continue;let i=s.globalValue!==void 0,l=s.workspaceValue!==void 0,c=s.workspaceFolderValue!==void 0;i&&!l&&!c&&(await e.update(o,s.globalValue,v.ConfigurationTarget.Workspace),await e.update(o,void 0,v.ConfigurationTarget.Global),r.movedToWorkspace.push(`${$}${o}`),r.changed=!0,this._logger.info(`Moved ${$}${o} from user settings to workspace settings.`))}}async ce(e,r,a,n=!1){let o=Array.isArray(r)&&r.length>0?r:this.K(e,this.R());if(o.length===0)return;let s=[...o].sort((l,c)=>l.fullKey.localeCompare(c.fullKey));if(!(!n&&o.every((l,c)=>l.fullKey===s[c].fullKey))){for(let l of o)await e.update(l.shortKey,void 0,v.ConfigurationTarget.Workspace);for(let l of s)await e.update(l.shortKey,l.value,v.ConfigurationTarget.Workspace);a.reorderedWorkspace=!0,a.changed=!0,this._logger.info("Reordered Explorer Dates workspace settings alphabetically.")}}async ue(e,r){let a=Array.isArray(r)?r:await this.B(await this.V());if(a.length)for(let n of a)await this.ye(n)&&(e.sortedFiles.push(this.C(n)),e.changed=!0)}async ye(e){try{let r=await v.workspace.fs.readFile(e),a=Buffer.from(r).toString("utf8").trim();if(!a)return!1;let n=JSON.parse(a),o=this.S(n),s=JSON.stringify(o,null,2);return await v.workspace.fs.writeFile(e,Buffer.from(`${s} +`,"utf8")),this._logger.info(`Sorted Explorer Dates file: ${this.C(e)}`),!0}catch(r){return(r==null?void 0:r.code)==="FileNotFound"||(r==null?void 0:r.code)==="ENOENT"||this._logger.warn(`Failed to sort Explorer Dates file ${this.C(e)}`,r),!1}}async he(e){try{let r=await v.workspace.fs.readFile(e),a=Buffer.from(r).toString("utf8").trim();if(!a)return!1;let n=JSON.parse(a),o=JSON.stringify(n,null,2),s=JSON.stringify(this.S(n),null,2);return o!==s}catch(r){return(r==null?void 0:r.code)==="FileNotFound"||(r==null?void 0:r.code)==="ENOENT"||this._logger.warn(`Failed to inspect Explorer Dates file ${this.C(e)}`,r),!1}}S(e){return Array.isArray(e)?e.map(r=>this.S(r)):e&&typeof e=="object"?Object.keys(e).sort((r,a)=>r.localeCompare(a)).reduce((r,a)=>(r[a]=this.S(e[a]),r),{}):e}R(){var r,a,n,o,s;let e=((s=(o=(n=(a=(r=this.H)==null?void 0:r.extension)==null?void 0:a.packageJSON)==null?void 0:n.contributes)==null?void 0:o.configuration)==null?void 0:s.properties)||{};return Object.keys(e).filter(i=>i.startsWith($))}me(e){return e.startsWith($)?e.substring($.length):e}fe(e){return Un.has(e)}C(e){return(e==null?void 0:e.fsPath)||(e==null?void 0:e.path)||String(e)}};$t.exports={SettingsOrganizer:Me}});var Kt=f((Ua,Ut)=>{var d=require("vscode"),{getSettingsCoordinator:Kn}=re(),{SettingsOrganizer:Vn}=We(),{getLocalization:Bn}=ee(),{requireWorkspaceTrust:q}=j(),E=Bn(),me=Kn(),qt="explorerDates.resetToDefaults",Ht=Symbol.for("explorerDates.resetToDefaults.registered");function Gn(){return!!globalThis[Ht]}function zt(){globalThis[Ht]=!0}async function jn({context:t,logger:e,getSettingsMigrationManager:r}){let a=[];a.push(d.commands.registerCommand("explorerDates.migrateSettings",async()=>{try{q("settings migration");let o=await r();if(!o){d.window.showWarningMessage(E.getString("migrateChecking"));return}d.window.showInformationMessage(E.getString("migrateChecking"));let s=await o.migrateAllSettings(t),i=await o.autoOrganizeSettingsIfNeeded(t,{trigger:"manual-migrate",silent:!0}),l=[];s.length>0&&l.push(`${s.length} migration${s.length===1?"":"s"}`),i!=null&&i.changed&&l.push("settings reorganized"),l.length===0?d.window.showInformationMessage(E.getString("migrateAllUpToDate")):d.window.showInformationMessage(E.getString("migrateApplied",l.join(" + "))),e.info("Manual settings migration completed",{results:s,organizationSummary:i})}catch(o){e.error("Failed to run settings migration",o),d.window.showErrorMessage(`Failed to migrate settings: ${o.message}`)}})),a.push(d.commands.registerCommand("explorerDates.organizeSettings",async()=>{try{q("settings organization");let s=await new Vn(t).organize(),i=s.movedToWorkspace.length,l=s.sortedFiles.length,c=[s.reorderedWorkspace?"workspace settings reordered":null,i?`${i} setting(s) moved to workspace scope`:null,l?`${l} explorer-dates file(s) sorted`:null].filter(Boolean).join(" \u2022 ")||"No changes were necessary.";d.window.showInformationMessage(E.getString("organizeSettingsResult",c)),e.info("Organize settings command executed",s)}catch(o){e.error("Failed to organize Explorer Dates settings",o),d.window.showErrorMessage(`Failed to organize settings: ${o.message}`)}})),a.push(d.commands.registerCommand("explorerDates.validateConfiguration",async()=>{try{let o=await r();if(!o){d.window.showWarningMessage("Settings validation system unavailable.");return}let s=await o.validateConfiguration();if(s.length===0)d.window.showInformationMessage("\u2705 Configuration is valid - no issues found!");else{let i=`Found ${s.length} configuration issue(s). Would you like to see details?`;await d.window.showWarningMessage(i,"Show Details","Dismiss")==="Show Details"&&await Yn(s)}e.info("Configuration validation completed",{issuesFound:s.length,issues:s})}catch(o){e.error("Failed to validate configuration",o),d.window.showErrorMessage(`Failed to validate configuration: ${o.message}`)}})),a.push(d.commands.registerCommand("explorerDates.cleanLegacySettings",async()=>{try{q("legacy settings cleanup");let o=await r();if(!o){d.window.showWarningMessage(E.getString("migrateChecking"));return}let s=await o.cleanupDeprecatedSettings();s?d.window.showInformationMessage(E.getString("cleanupSuccess")):d.window.showInformationMessage(E.getString("cleanupNoDeprecated")),e.info("Legacy settings cleanup completed",{cleaned:s})}catch(o){e.error("Failed to clean legacy settings",o),d.window.showErrorMessage(`Failed to clean legacy settings: ${o.message}`)}})),a.push(d.commands.registerCommand("explorerDates.showMigrationHistory",async()=>{try{let o=await r();if(!o){d.window.showWarningMessage(E.getString("migrateChecking"));return}let s=o.getMigrationHistory(t);if(s.length===0){d.window.showInformationMessage(E.getString("showMigrationHistoryNoHistory"));return}await Xn(s),e.info("Displayed migration history",{historyLength:s.length})}catch(o){e.error("Failed to show migration history",o),d.window.showErrorMessage(`Failed to show migration history: ${o.message}`)}}));async function n(o={}){try{q("clear telemetry data");let s=o&&o.force===!0,i=null;if(!s&&(i=await d.window.showWarningMessage(E.getString("clearTelemetryPrompt"),{modal:!0},E.getString("clearTelemetryConfirm"),E.getString("clearTelemetryCancel")),i!==E.getString("clearTelemetryConfirm")))return;t!=null&&t.globalState&&typeof t.globalState.update=="function"&&await t.globalState.update("explorerDates.telemetryEvents",[]),d.window.showInformationMessage(E.getString("clearTelemetrySuccess")),e.info("Cleared telemetry events from globalState")}catch(s){e.error("Failed to clear telemetry data",s),d.window.showErrorMessage(`Failed to clear telemetry data: ${s.message}`)}}return a.push(d.commands.registerCommand("explorerDates.clearTelemetryData",n)),a.push(d.commands.registerCommand("explorerDates.clearTelemetryData.force",async()=>{await n({force:!0})})),a.push(d.commands.registerCommand("explorerDates.applyCustomColors",async()=>{try{let o=await d.window.showQuickPick([{label:"Copy to Clipboard",description:"Copy color configuration to clipboard"},{label:"Open Settings",description:"Open VS Code settings to workbench.colorCustomizations"},{label:"Apply Default Colors",description:"Apply default Explorer Dates colors"}],{placeHolder:"How would you like to set up custom colors?",ignoreFocusOut:!0});if(!o)return;let s={"explorerDates.customColor.veryRecent":"#00ff00","explorerDates.customColor.recent":"#ffff00","explorerDates.customColor.old":"#ff0000"};switch(o.label){case"Copy to Clipboard":let i=JSON.stringify({"workbench.colorCustomizations":s},null,2);await d.env.clipboard.writeText(i),d.window.showInformationMessage("Color configuration copied to clipboard!");break;case"Open Settings":await d.commands.executeCommand("workbench.action.openSettings","workbench.colorCustomizations");break;case"Apply Default Colors":q("apply custom colors");let u={...d.workspace.getConfiguration("workbench").get("colorCustomizations",{}),...s};await me.updateSetting("workbench.colorCustomizations",u,{scope:"user",reason:"custom-colors-command"}),await me.updateSetting("colorScheme","custom",{scope:"user",reason:"custom-colors-command"}),d.window.showInformationMessage("\u2705 Custom colors applied successfully!");break}e.info("Custom colors command executed",{action:o.label})}catch(o){e.error("Failed to apply custom colors",o),d.window.showErrorMessage(`Failed to apply custom colors: ${o.message}`)}})),await Zn({context:t,logger:e,subscriptions:a}),a.push(d.commands.registerCommand("explorerDates.exportConfiguration",async()=>{var o,s;try{let i=d.workspace.getConfiguration("explorerDates"),l={},c=t.extension.packageJSON,u=((s=(o=c==null?void 0:c.contributes)==null?void 0:o.configuration)==null?void 0:s.properties)||{};for(let w of Object.keys(u))if(w.startsWith("explorerDates.")){let h=w.replace("explorerDates.",""),C=i.get(h);C!==void 0&&(l[w]=C)}let g=JSON.stringify(l,null,2),m=await d.window.showQuickPick([{label:"Copy to Clipboard",description:"Copy configuration to clipboard"},{label:"Save to File",description:"Save configuration to a JSON file"}],{placeHolder:"How would you like to export the configuration?"});if(!m)return;switch(m.label){case"Copy to Clipboard":await d.env.clipboard.writeText(g),d.window.showInformationMessage("Configuration copied to clipboard!");break;case"Save to File":q("save configuration to file");let w=await d.window.showSaveDialog({defaultUri:d.Uri.file("explorer-dates-config.json"),filters:{JSON:["json"]}});w&&(await d.workspace.fs.writeFile(w,Buffer.from(g,"utf8")),d.window.showInformationMessage(`Configuration saved to ${w.fsPath}`));break}e.info("Configuration exported",{action:m.label,settingsCount:Object.keys(l).length})}catch(i){e.error("Failed to export configuration",i),d.window.showErrorMessage(`Failed to export configuration: ${i.message}`)}})),a}async function Yn(t){let e=d.window.createWebviewPanel("explorerDatesConfigIssues","Explorer Dates - Configuration Issues",d.ViewColumn.One,{enableScripts:!1}),r=t.map(a=>`

${a.setting}

Current value: ${JSON.stringify(a.value)}

@@ -53,7 +53,7 @@ ${h}`,{modal:!0})}),r.info(`File history requested for: ${i.fsPath||i.path}`)}ca

To fix these issues: Open VS Code Settings and update the highlighted settings with valid values.

- `}async function Mn(t){let e=d.window.createWebviewPanel("explorerDatesMigrationHistory","Explorer Dates - Migration History",d.ViewColumn.One,{enableScripts:!1}),r=t.slice().reverse().map((a,n)=>` + `}async function Xn(t){let e=d.window.createWebviewPanel("explorerDatesMigrationHistory","Explorer Dates - Migration History",d.ViewColumn.One,{enableScripts:!1}),r=t.slice().reverse().map((a,n)=>`

Migration #${t.length-n}

Date: ${new Date(a.timestamp).toLocaleString()}

@@ -82,11 +82,11 @@ ${h}`,{modal:!0})}),r.info(`File history requested for: ${i.fsPath||i.path}`)}ca ${r} - `}async function Wn({context:t,logger:e,subscriptions:r}){var n,o,s;if(Fn()){(n=e==null?void 0:e.warn)==null||n.call(e,"Duplicate explorerDates.resetToDefaults registration skipped");return}let a;try{a=await d.commands.getCommands(!0)}catch(i){(o=e==null?void 0:e.warn)==null||o.call(e,"Unable to inspect VS Code command registry; proceeding with reset command registration",i)}if(Array.isArray(a)&&a.includes(At)){Rt(),(s=e==null?void 0:e.warn)==null||s.call(e,"Detected existing explorerDates.resetToDefaults handler; skipping duplicate registration");return}Rt(),r.push(d.commands.registerCommand(At,async()=>{var i,l;try{if(await d.window.showWarningMessage(y.getString("resetConfirmation"),{modal:!0},y.getString("resetConfirm"),y.getString("resetCancel"))!==y.getString("resetConfirm"))return;N("reset settings to defaults");let u=t.extension.packageJSON,g=((l=(i=u==null?void 0:u.contributes)==null?void 0:i.configuration)==null?void 0:l.properties)||{},m=0;for(let w of Object.keys(g))if(w.startsWith("explorerDates.")){let h=w.replace("explorerDates.","");try{await ge.clearSetting(h,{scope:"user",reason:"reset-to-defaults"}),await ge.clearSetting(h,{scope:"workspace",reason:"reset-to-defaults"}),m++}catch(S){e.warn(`Failed to reset setting ${h}`,S)}}d.window.showInformationMessage(y.getString("resetSuccess",m)),e.info("Settings reset to defaults",{resetCount:m})}catch(c){e.error("Failed to reset settings to defaults",c),d.window.showErrorMessage(`Failed to reset settings: ${c.message}`)}}))}Pt.exports={registerMigrationCommands:Pn}});var Wt=f((exports,module)=>{var vscode=require("vscode"),{isWebEnvironment}=J(),fs=null,path=null,Mt;try{let isWeb=isWebEnvironment()||typeof process<"u"&&!1;!isWeb&&typeof process<"u"&&((Mt=process.versions)!=null&&Mt.node)&&(fs=eval("require")("fs"),path=eval("require")("path"))}catch{fs=null,path=null}var textDecoder=typeof globalThis.TextDecoder=="function"?new globalThis.TextDecoder("utf-8"):new(require("util")).TextDecoder("utf-8"),TemplateStore=class{constructor(){this.F=new Map,this.P=null}initialize(e){this.P=(e==null?void 0:e.extensionUri)??null}async getTemplate(e){if(this.F.has(e))return this.F.get(e);let r=await this.ve(e);return this.F.set(e,r),r}async ve(e){let r=`${e}.html`;if(this.P){let a=vscode.Uri.joinPath(this.P,"assets","templates",r),n=await vscode.workspace.fs.readFile(a);return textDecoder.decode(n)}if(fs&&path){let a=path.resolve(__dirname,"..","..","assets","templates",r);return await fs.promises.readFile(a,"utf8")}throw new Error(`TemplateStore: Unable to load template "${e}" (missing extension context)`)}},templateStore=new TemplateStore;module.exports={templateStore,initializeTemplateStore:t=>templateStore.initialize(t)}});var Ot=f((xa,Lt)=>{var _=require("vscode"),{getLogger:In}=D(),{getSettingsCoordinator:Ln}=Q(),{SettingsOrganizer:On}=Pe(),{getLocalization:Nn}=Z(),C=Nn(),It=typeof process<"u"&&process.env?process.env:{},_e=class{constructor(){this._logger=In(),this.n=new Set,this.e=Ln(),this._=null,this.j=null}async migrateAllSettings(e){var n,o;let r=[()=>this.migrateReportingSettings(),()=>this.migrateCustomColorSettings(),()=>this.validateFeatureFlags(),()=>this.cleanupDeprecatedSettings(e),()=>this.trackMigrationMetrics(e)],a=[];for(let s of r)try{let i=await s();i&&a.push(i)}catch(i){this._logger.error("Settings migration failed:",i)}if(a.length>0){this._logger.info("Settings migration completed",{migratedSettings:a});try{let s=(n=e==null?void 0:e.globalState)!=null&&n.get?e.globalState.get("explorerDates.lastMigrationNotificationShown"):null,i=Date.now(),l=1440*60*1e3;!s||i-new Date(s).getTime()>l?(await this.Ce(a,e),(o=e==null?void 0:e.globalState)!=null&&o.update&&await e.globalState.update("explorerDates.lastMigrationNotificationShown",new Date().toISOString())):this._logger.info("Skipping migration notification - recently shown")}catch(s){this._logger.debug("Failed to persist migration notification timestamp",(s==null?void 0:s.message)||s)}}return a}async migrateReportingSettings(){let e=this.e.inspect("enableReporting"),r=this.e.inspect("enableExportReporting"),a=!1;if((e==null?void 0:e.globalValue)!==void 0)try{(r==null?void 0:r.globalValue)===void 0&&(await this.e.updateSetting("enableExportReporting",e.globalValue,{scope:"user",reason:"migrate-enableReporting-global"}),this.n.add("enableReporting\u2192enableExportReporting (Global)"),this._logger.info("Migrated global enableReporting to enableExportReporting",{oldValue:e.globalValue})),await this.e.clearSetting("enableReporting",{scope:"user",reason:"cleanup-migrated-enableReporting-global"}),a=!0}catch(n){this._logger.error("Failed to migrate global enableReporting setting",n)}if((e==null?void 0:e.workspaceValue)!==void 0)try{(r==null?void 0:r.workspaceValue)===void 0&&(await this.e.updateSetting("enableExportReporting",e.workspaceValue,{scope:"workspace",reason:"migrate-enableReporting-workspace"}),this.n.add("enableReporting\u2192enableExportReporting (Workspace)"),this._logger.info("Migrated workspace enableReporting to enableExportReporting",{oldValue:e.workspaceValue})),await this.e.clearSetting("enableReporting",{scope:"workspace",reason:"cleanup-migrated-enableReporting-workspace"}),a=!0}catch(n){this._logger.error("Failed to migrate workspace enableReporting setting",n)}if((e==null?void 0:e.workspaceFolderValue)!==void 0)try{(r==null?void 0:r.workspaceFolderValue)===void 0&&(await this.e.updateSetting("enableExportReporting",e.workspaceFolderValue,{scope:"workspaceFolder",reason:"migrate-enableReporting-folder"}),this.n.add("enableReporting\u2192enableExportReporting (WorkspaceFolder)"),this._logger.info("Migrated workspace folder enableReporting to enableExportReporting",{oldValue:e.workspaceFolderValue})),await this.e.clearSetting("enableReporting",{scope:"workspaceFolder",reason:"cleanup-migrated-enableReporting-folder"}),a=!0}catch(n){this._logger.error("Failed to migrate workspace folder enableReporting setting",n)}return a&&this.n.add("deprecatedSettings\u2192removed"),this.n.has("enableReporting\u2192enableExportReporting (Global)")||this.n.has("enableReporting\u2192enableExportReporting (Workspace)")||this.n.has("enableReporting\u2192enableExportReporting (WorkspaceFolder)")}async migrateCustomColorSettings(){let e=_.workspace.getConfiguration("explorerDates"),r=e.get("migrateLegacyCustomColorsOnStartup",!1),a=e.get("customColors");if(!a||typeof a!="object")return!1;if(!r)return this._logger.info("Skipping custom color migration (opt-in disabled)",{reason:"migrateLegacyCustomColorsOnStartup=false"}),!1;let n=this.e.getValue("workbench.colorCustomizations")||{};if(n["explorerDates.customColor.veryRecent"]!==void 0||n["explorerDates.customColor.recent"]!==void 0||n["explorerDates.customColor.old"]!==void 0)return!1;let s={...n,"explorerDates.customColor.veryRecent":a.veryRecent||"#00ff00","explorerDates.customColor.recent":a.recent||"#ffff00","explorerDates.customColor.old":a.old||"#ff0000"};try{await this.e.updateSetting("workbench.colorCustomizations",s,{scope:"user",reason:"migrate-customColors"}),this.n.add("customColors\u2192workbench.colorCustomizations");let i=e.inspect("customColors"),l=!1;return(i==null?void 0:i.globalValue)!==void 0&&(await this.e.clearSetting("customColors",{scope:"user",reason:"cleanup-migrated-customColors-global"}),l=!0),(i==null?void 0:i.workspaceValue)!==void 0&&(await this.e.clearSetting("customColors",{scope:"workspace",reason:"cleanup-migrated-customColors-workspace"}),l=!0),(i==null?void 0:i.workspaceFolderValue)!==void 0&&(await this.e.clearSetting("customColors",{scope:"workspaceFolder",reason:"cleanup-migrated-customColors-folder"}),l=!0),l&&this.n.add("deprecatedSettings\u2192removed"),this._logger.info("Migrated custom colors to workbench.colorCustomizations",{oldColors:a,newColors:s}),!0}catch(i){return this._logger.error("Failed to migrate custom colors",i),!1}}async validateFeatureFlags(){let e={enableOnboardingSystem:{default:!0,type:"boolean"},enableExportReporting:{default:!0,type:"boolean"},enableAnalysisCommands:{default:!0,type:"boolean"},enableAdvancedCache:{default:!0,type:"boolean"},enableWorkspaceIntelligence:{default:!0,type:"boolean"},enableWorkspaceTemplates:{default:!0,type:"boolean"},enableExtensionApi:{default:!0,type:"boolean"},enableProgressiveAnalysis:{default:null,type:"boolean",allowNull:!0}},r=!1,a=[],n=[];for(let[o,s]of Object.entries(e)){let i=this.e.inspect(o),l=this.e.getValue(o),c=(i==null?void 0:i.globalValue)!==void 0,u=(i==null?void 0:i.workspaceValue)!==void 0;if(!c&&!u)n.push(o);else if(l!==void 0&&!(s.allowNull&&l===null?!0:typeof l===s.type))try{await this.e.updateSetting(o,s.default,{scope:"user",reason:`feature-flag-validation:${o}`}),a.push(`${o}: corrected type mismatch`),r=!0}catch(m){this._logger.error(`Failed to fix feature flag ${o}`,m)}}return r?(this.n.add("featureFlags\u2192validated"),this._logger.info("Validated feature flags",{fixes:a})):n.length>0&&this._logger.info("Feature flags relying on defaults (no migration needed)",{flags:n}),r}async cleanupDeprecatedSettings(e){let r=["customColors","enableReporting"];try{if(e!=null&&e.globalState&&e.globalState.get("explorerDates.deprecatedSettingsAsked"))return this._logger.debug("Skipping deprecated settings prompt - already asked this workspace."),!1}catch(o){this._logger.debug("Failed to read deprecatedSettingsAsked flag",(o==null?void 0:o.message)||o)}let a=[];for(let o of r){let s=this.e.inspect(o);((s==null?void 0:s.globalValue)!==void 0||(s==null?void 0:s.workspaceValue)!==void 0||(s==null?void 0:s.workspaceFolderValue)!==void 0)&&a.push(o)}if(a.length===0)return!1;await this.w(e,"migrationPromptShown",{type:"deprecatedSettings",found:a.length,settings:a});let n=await _.window.showInformationMessage(C.getString("deprecatedPrompt",a.length),{modal:!1},C.getString("deprecatedClean"),C.getString("deprecatedKeep"),C.getString("deprecatedAskLater"));await this.w(e,"migrationPromptResponded",{type:"deprecatedSettings",action:n});try{e!=null&&e.globalState&&e.globalState.update&&await e.globalState.update("explorerDates.deprecatedSettingsAsked",new Date().toISOString())}catch(o){this._logger.debug("Failed to persist deprecatedSettingsAsked flag",(o==null?void 0:o.message)||o)}if(n===C.getString("deprecatedClean")){for(let o of a)try{await this.e.clearSetting(o,{scope:"user",reason:"cleanup-deprecated"}),await this.e.clearSetting(o,{scope:"workspace",reason:"cleanup-deprecated"}),await this.e.clearSetting(o,{scope:"workspaceFolder",reason:"cleanup-deprecated"}),this._logger.info(`Removed deprecated setting: ${o}`)}catch(s){this._logger.error(`Failed to remove deprecated setting ${o}`,s)}return this.n.add("deprecatedSettings\u2192removed"),!0}return!1}async w(e,r,a){var n,o,s,i;try{let l=this.e&&typeof this.e.getValue=="function"?this.e.getValue("enableTelemetry"):!1;if(It.EXPLORER_DATES_TELEMETRY!=="1"&&!l||!((n=e==null?void 0:e.globalState)!=null&&n.update)||!((o=e==null?void 0:e.globalState)!=null&&o.get))return;let c=e.globalState.get("explorerDates.telemetryEvents",[]),u=It.EXPLORER_DATES_TELEMETRY==="1"?"env":l?"config":"unknown",g=((i=(s=e==null?void 0:e.extension)==null?void 0:s.packageJSON)==null?void 0:i.version)||null,m={timestamp:new Date().toISOString(),event:r,payload:a,source:u,extensionVersion:g};c.push(m);let w=100;c.length>w&&c.splice(0,c.length-w),await e.globalState.update("explorerDates.telemetryEvents",c),this._logger.debug("Telemetry emitted",m)}catch(l){this._logger.debug("Failed to emit telemetry event",(l==null?void 0:l.message)||l)}}async trackMigrationMetrics(e){if(this.n.size===0)return!1;let r=e.globalState.get("explorerDates.migrationHistory",[]),a={timestamp:new Date().toISOString(),extensionVersion:e.extension.packageJSON.version,migratedSettings:Array.from(this.n)};return r.push(a),r.length>5&&r.splice(0,r.length-5),await e.globalState.update("explorerDates.migrationHistory",r),this._logger.info("Recorded migration metrics",a),await this.w(e,"migrationMetricsRecorded",{record:a}),!0}async autoOrganizeSettingsIfNeeded(e,r={}){let a=this.Se(e);if(!a)return null;try{let n=await a.getOrganizationPlan();if(!(n!=null&&n.needsWork))return this._logger.debug("Auto organization skipped - no Explorer Dates settings to tidy."),null;let o=await a.organize({plan:n});if(o!=null&&o.changed){if(!r.silent){let s=[];o.movedToWorkspace.length&&s.push(`${o.movedToWorkspace.length} moved to workspace`),o.reorderedWorkspace&&s.push("workspace keys sorted"),o.sortedFiles.length&&s.push(`${o.sortedFiles.length} file(s) tidied`);let i=s.length?` (${s.join(" \u2022 ")})`:"";_.window.showInformationMessage(C.getString("organizeSettingsResult",i))}this._logger.info("Explorer Dates settings auto-organized",{trigger:r.trigger||"unknown",summary:o})}return o}catch(n){return this._logger.warn("Automatic Explorer Dates settings organization failed",n),null}}Se(e){return e?((!this._||this.j!==e)&&(this._=new On(e),this.j=e),this._):(this._logger.debug("Settings organizer unavailable - missing extension context."),null)}async Ce(e,r){let a=e.length;await this.w(r,"migrationPromptShown",{type:"migrationNotification",count:a,details:e});let n=await _.window.showInformationMessage(C.getString("migrationNotificationMessage",a),{modal:!1},C.getString("migrationViewChanges"),C.getString("migrationOpenSettings"));switch(await this.w(r,"migrationPromptResponded",{type:"migrationNotification",action:n}),n){case C.getString("migrationViewChanges"):await this.ke();break;case C.getString("migrationOpenSettings"):await _.commands.executeCommand("workbench.action.openSettings","explorerDates");break}}async ke(){let e=_.window.createWebviewPanel("explorerDatesMigration",C.getString("migrationDetailsTitle"),_.ViewColumn.One,{enableScripts:!1}),r=Array.from(this.n).map(a=>`
  • ${a}
  • `).join("");e.webview.html=` + `}async function Zn({context:t,logger:e,subscriptions:r}){var n,o,s;if(Gn()){(n=e==null?void 0:e.warn)==null||n.call(e,"Duplicate explorerDates.resetToDefaults registration skipped");return}let a;try{a=await d.commands.getCommands(!0)}catch(i){(o=e==null?void 0:e.warn)==null||o.call(e,"Unable to inspect VS Code command registry; proceeding with reset command registration",i)}if(Array.isArray(a)&&a.includes(qt)){zt(),(s=e==null?void 0:e.warn)==null||s.call(e,"Detected existing explorerDates.resetToDefaults handler; skipping duplicate registration");return}zt(),r.push(d.commands.registerCommand(qt,async()=>{var i,l;try{if(await d.window.showWarningMessage(E.getString("resetConfirmation"),{modal:!0},E.getString("resetConfirm"),E.getString("resetCancel"))!==E.getString("resetConfirm"))return;q("reset settings to defaults");let u=t.extension.packageJSON,g=((l=(i=u==null?void 0:u.contributes)==null?void 0:i.configuration)==null?void 0:l.properties)||{},m=0;for(let w of Object.keys(g))if(w.startsWith("explorerDates.")){let h=w.replace("explorerDates.","");try{await me.clearSetting(h,{scope:"user",reason:"reset-to-defaults"}),await me.clearSetting(h,{scope:"workspace",reason:"reset-to-defaults"}),m++}catch(C){e.warn(`Failed to reset setting ${h}`,C)}}d.window.showInformationMessage(E.getString("resetSuccess",m)),e.info("Settings reset to defaults",{resetCount:m})}catch(c){e.error("Failed to reset settings to defaults",c),d.window.showErrorMessage(`Failed to reset settings: ${c.message}`)}}))}Ut.exports={registerMigrationCommands:jn}});var Bt=f((exports,module)=>{var vscode=require("vscode"),{isWebEnvironment}=te(),fs=null,path=null,Vt;try{let isWeb=isWebEnvironment()||typeof process<"u"&&!1;!isWeb&&typeof process<"u"&&((Vt=process.versions)!=null&&Vt.node)&&(fs=eval("require")("fs"),path=eval("require")("path"))}catch{fs=null,path=null}var textDecoder=typeof globalThis.TextDecoder=="function"?new globalThis.TextDecoder("utf-8"):new(require("util")).TextDecoder("utf-8"),TemplateStore=class{constructor(){this.P=new Map,this._=null}initialize(e){this._=(e==null?void 0:e.extensionUri)??null}async getTemplate(e){if(this.P.has(e))return this.P.get(e);let r=await this.Ee(e);return this.P.set(e,r),r}async Ee(e){let r=`${e}.html`;if(this._){let a=vscode.Uri.joinPath(this._,"assets","templates",r),n=await vscode.workspace.fs.readFile(a);return textDecoder.decode(n)}if(fs&&path){let a=path.resolve(__dirname,"..","..","assets","templates",r);return await fs.promises.readFile(a,"utf8")}throw new Error(`TemplateStore: Unable to load template "${e}" (missing extension context)`)}},templateStore=new TemplateStore;module.exports={templateStore,initializeTemplateStore:t=>templateStore.initialize(t)}});var Yt=f((Ka,jt)=>{var W=require("vscode"),{getLogger:Jn}=T(),{getSettingsCoordinator:Qn}=re(),{SettingsOrganizer:ea}=We(),{getLocalization:ta}=ee(),k=ta(),Gt=typeof process<"u"&&process.env?process.env:{},Ie=class{constructor(){this._logger=Jn(),this.n=new Set,this.e=Qn(),this.M=null,this.j=null}async migrateAllSettings(e){var n,o;let r=[()=>this.migrateReportingSettings(),()=>this.migrateCustomColorSettings(),()=>this.validateFeatureFlags(),()=>this.cleanupDeprecatedSettings(e),()=>this.trackMigrationMetrics(e)],a=[];for(let s of r)try{let i=await s();i&&a.push(i)}catch(i){this._logger.error("Settings migration failed:",i)}if(a.length>0){this._logger.info("Settings migration completed",{migratedSettings:a});try{let s=(n=e==null?void 0:e.globalState)!=null&&n.get?e.globalState.get("explorerDates.lastMigrationNotificationShown"):null,i=Date.now(),l=1440*60*1e3;!s||i-new Date(s).getTime()>l?(await this.ve(a,e),(o=e==null?void 0:e.globalState)!=null&&o.update&&await e.globalState.update("explorerDates.lastMigrationNotificationShown",new Date().toISOString())):this._logger.info("Skipping migration notification - recently shown")}catch(s){this._logger.debug("Failed to persist migration notification timestamp",(s==null?void 0:s.message)||s)}}return a}async migrateReportingSettings(){let e=this.e.inspect("enableReporting"),r=this.e.inspect("enableExportReporting"),a=!1;if((e==null?void 0:e.globalValue)!==void 0)try{(r==null?void 0:r.globalValue)===void 0&&(await this.e.updateSetting("enableExportReporting",e.globalValue,{scope:"user",reason:"migrate-enableReporting-global"}),this.n.add("enableReporting\u2192enableExportReporting (Global)"),this._logger.info("Migrated global enableReporting to enableExportReporting",{oldValue:e.globalValue})),await this.e.clearSetting("enableReporting",{scope:"user",reason:"cleanup-migrated-enableReporting-global"}),a=!0}catch(n){this._logger.error("Failed to migrate global enableReporting setting",n)}if((e==null?void 0:e.workspaceValue)!==void 0)try{(r==null?void 0:r.workspaceValue)===void 0&&(await this.e.updateSetting("enableExportReporting",e.workspaceValue,{scope:"workspace",reason:"migrate-enableReporting-workspace"}),this.n.add("enableReporting\u2192enableExportReporting (Workspace)"),this._logger.info("Migrated workspace enableReporting to enableExportReporting",{oldValue:e.workspaceValue})),await this.e.clearSetting("enableReporting",{scope:"workspace",reason:"cleanup-migrated-enableReporting-workspace"}),a=!0}catch(n){this._logger.error("Failed to migrate workspace enableReporting setting",n)}if((e==null?void 0:e.workspaceFolderValue)!==void 0)try{(r==null?void 0:r.workspaceFolderValue)===void 0&&(await this.e.updateSetting("enableExportReporting",e.workspaceFolderValue,{scope:"workspaceFolder",reason:"migrate-enableReporting-folder"}),this.n.add("enableReporting\u2192enableExportReporting (WorkspaceFolder)"),this._logger.info("Migrated workspace folder enableReporting to enableExportReporting",{oldValue:e.workspaceFolderValue})),await this.e.clearSetting("enableReporting",{scope:"workspaceFolder",reason:"cleanup-migrated-enableReporting-folder"}),a=!0}catch(n){this._logger.error("Failed to migrate workspace folder enableReporting setting",n)}return a&&this.n.add("deprecatedSettings\u2192removed"),this.n.has("enableReporting\u2192enableExportReporting (Global)")||this.n.has("enableReporting\u2192enableExportReporting (Workspace)")||this.n.has("enableReporting\u2192enableExportReporting (WorkspaceFolder)")}async migrateCustomColorSettings(){let e=W.workspace.getConfiguration("explorerDates"),r=e.get("migrateLegacyCustomColorsOnStartup",!1),a=e.get("customColors");if(!a||typeof a!="object")return!1;if(!r)return this._logger.info("Skipping custom color migration (opt-in disabled)",{reason:"migrateLegacyCustomColorsOnStartup=false"}),!1;let n=this.e.getValue("workbench.colorCustomizations")||{};if(n["explorerDates.customColor.veryRecent"]!==void 0||n["explorerDates.customColor.recent"]!==void 0||n["explorerDates.customColor.old"]!==void 0)return!1;let s={...n,"explorerDates.customColor.veryRecent":a.veryRecent||"#00ff00","explorerDates.customColor.recent":a.recent||"#ffff00","explorerDates.customColor.old":a.old||"#ff0000"};try{await this.e.updateSetting("workbench.colorCustomizations",s,{scope:"user",reason:"migrate-customColors"}),this.n.add("customColors\u2192workbench.colorCustomizations");let i=e.inspect("customColors"),l=!1;return(i==null?void 0:i.globalValue)!==void 0&&(await this.e.clearSetting("customColors",{scope:"user",reason:"cleanup-migrated-customColors-global"}),l=!0),(i==null?void 0:i.workspaceValue)!==void 0&&(await this.e.clearSetting("customColors",{scope:"workspace",reason:"cleanup-migrated-customColors-workspace"}),l=!0),(i==null?void 0:i.workspaceFolderValue)!==void 0&&(await this.e.clearSetting("customColors",{scope:"workspaceFolder",reason:"cleanup-migrated-customColors-folder"}),l=!0),l&&this.n.add("deprecatedSettings\u2192removed"),this._logger.info("Migrated custom colors to workbench.colorCustomizations",{oldColors:a,newColors:s}),!0}catch(i){return this._logger.error("Failed to migrate custom colors",i),!1}}async validateFeatureFlags(){let e={enableOnboardingSystem:{default:!0,type:"boolean"},enableExportReporting:{default:!0,type:"boolean"},enableAnalysisCommands:{default:!0,type:"boolean"},enableAdvancedCache:{default:!0,type:"boolean"},enableWorkspaceIntelligence:{default:!0,type:"boolean"},enableWorkspaceTemplates:{default:!0,type:"boolean"},enableExtensionApi:{default:!0,type:"boolean"},enableProgressiveAnalysis:{default:null,type:"boolean",allowNull:!0}},r=!1,a=[],n=[];for(let[o,s]of Object.entries(e)){let i=this.e.inspect(o),l=this.e.getValue(o),c=(i==null?void 0:i.globalValue)!==void 0,u=(i==null?void 0:i.workspaceValue)!==void 0;if(!c&&!u)n.push(o);else if(l!==void 0&&!(s.allowNull&&l===null?!0:typeof l===s.type))try{await this.e.updateSetting(o,s.default,{scope:"user",reason:`feature-flag-validation:${o}`}),a.push(`${o}: corrected type mismatch`),r=!0}catch(m){this._logger.error(`Failed to fix feature flag ${o}`,m)}}return r?(this.n.add("featureFlags\u2192validated"),this._logger.info("Validated feature flags",{fixes:a})):n.length>0&&this._logger.info("Feature flags relying on defaults (no migration needed)",{flags:n}),r}async cleanupDeprecatedSettings(e){let r=["customColors","enableReporting"];try{if(e!=null&&e.globalState&&e.globalState.get("explorerDates.deprecatedSettingsAsked"))return this._logger.debug("Skipping deprecated settings prompt - already asked this workspace."),!1}catch(o){this._logger.debug("Failed to read deprecatedSettingsAsked flag",(o==null?void 0:o.message)||o)}let a=[];for(let o of r){let s=this.e.inspect(o);((s==null?void 0:s.globalValue)!==void 0||(s==null?void 0:s.workspaceValue)!==void 0||(s==null?void 0:s.workspaceFolderValue)!==void 0)&&a.push(o)}if(a.length===0)return!1;await this.w(e,"migrationPromptShown",{type:"deprecatedSettings",found:a.length,settings:a});let n=await W.window.showInformationMessage(k.getString("deprecatedPrompt",a.length),{modal:!1},k.getString("deprecatedClean"),k.getString("deprecatedKeep"),k.getString("deprecatedAskLater"));await this.w(e,"migrationPromptResponded",{type:"deprecatedSettings",action:n});try{e!=null&&e.globalState&&e.globalState.update&&await e.globalState.update("explorerDates.deprecatedSettingsAsked",new Date().toISOString())}catch(o){this._logger.debug("Failed to persist deprecatedSettingsAsked flag",(o==null?void 0:o.message)||o)}if(n===k.getString("deprecatedClean")){for(let o of a)try{await this.e.clearSetting(o,{scope:"user",reason:"cleanup-deprecated"}),await this.e.clearSetting(o,{scope:"workspace",reason:"cleanup-deprecated"}),await this.e.clearSetting(o,{scope:"workspaceFolder",reason:"cleanup-deprecated"}),this._logger.info(`Removed deprecated setting: ${o}`)}catch(s){this._logger.error(`Failed to remove deprecated setting ${o}`,s)}return this.n.add("deprecatedSettings\u2192removed"),!0}return!1}async w(e,r,a){var n,o,s,i;try{let l=this.e&&typeof this.e.getValue=="function"?this.e.getValue("enableTelemetry"):!1;if(Gt.EXPLORER_DATES_TELEMETRY!=="1"&&!l||!((n=e==null?void 0:e.globalState)!=null&&n.update)||!((o=e==null?void 0:e.globalState)!=null&&o.get))return;let c=e.globalState.get("explorerDates.telemetryEvents",[]),u=Gt.EXPLORER_DATES_TELEMETRY==="1"?"env":l?"config":"unknown",g=((i=(s=e==null?void 0:e.extension)==null?void 0:s.packageJSON)==null?void 0:i.version)||null,m={timestamp:new Date().toISOString(),event:r,payload:a,source:u,extensionVersion:g};c.push(m);let w=100;c.length>w&&c.splice(0,c.length-w),await e.globalState.update("explorerDates.telemetryEvents",c),this._logger.debug("Telemetry emitted",m)}catch(l){this._logger.debug("Failed to emit telemetry event",(l==null?void 0:l.message)||l)}}async trackMigrationMetrics(e){if(this.n.size===0)return!1;let r=e.globalState.get("explorerDates.migrationHistory",[]),a={timestamp:new Date().toISOString(),extensionVersion:e.extension.packageJSON.version,migratedSettings:Array.from(this.n)};return r.push(a),r.length>5&&r.splice(0,r.length-5),await e.globalState.update("explorerDates.migrationHistory",r),this._logger.info("Recorded migration metrics",a),await this.w(e,"migrationMetricsRecorded",{record:a}),!0}async autoOrganizeSettingsIfNeeded(e,r={}){let a=this.Ce(e);if(!a)return null;try{let n=await a.getOrganizationPlan();if(!(n!=null&&n.needsWork))return this._logger.debug("Auto organization skipped - no Explorer Dates settings to tidy."),null;let o=await a.organize({plan:n});if(o!=null&&o.changed){if(!r.silent){let s=[];o.movedToWorkspace.length&&s.push(`${o.movedToWorkspace.length} moved to workspace`),o.reorderedWorkspace&&s.push("workspace keys sorted"),o.sortedFiles.length&&s.push(`${o.sortedFiles.length} file(s) tidied`);let i=s.length?` (${s.join(" \u2022 ")})`:"";W.window.showInformationMessage(k.getString("organizeSettingsResult",i))}this._logger.info("Explorer Dates settings auto-organized",{trigger:r.trigger||"unknown",summary:o})}return o}catch(n){return this._logger.warn("Automatic Explorer Dates settings organization failed",n),null}}Ce(e){return e?((!this.M||this.j!==e)&&(this.M=new ea(e),this.j=e),this.M):(this._logger.debug("Settings organizer unavailable - missing extension context."),null)}async ve(e,r){let a=e.length;await this.w(r,"migrationPromptShown",{type:"migrationNotification",count:a,details:e});let n=await W.window.showInformationMessage(k.getString("migrationNotificationMessage",a),{modal:!1},k.getString("migrationViewChanges"),k.getString("migrationOpenSettings"));switch(await this.w(r,"migrationPromptResponded",{type:"migrationNotification",action:n}),n){case k.getString("migrationViewChanges"):await this.Se();break;case k.getString("migrationOpenSettings"):await W.commands.executeCommand("workbench.action.openSettings","explorerDates");break}}async Se(){let e=W.window.createWebviewPanel("explorerDatesMigration",k.getString("migrationDetailsTitle"),W.ViewColumn.One,{enableScripts:!1}),r=Array.from(this.n).map(a=>`
  • ${a}
  • `).join("");e.webview.html=` - ${C.getString("migrationDetailsTitle")} + ${k.getString("migrationDetailsTitle")} -

    File Modification Report

    -

    Generated: ${new Date(report.generatedAt).toLocaleString()}

    - -
    -

    Summary

    -

    Total Files: ${report.summary.totalFiles}

    -

    Total Size: ${this.formatFileSize(report.summary.totalSize)}

    -

    Time Range: ${report.timeRange}

    -
    - -

    File Types

    - - - ${Object.entries(report.summary.fileTypes) - .map(([type, count]) => ``) - .join('')} -
    TypeCount
    ${type}${count}
    - -

    Most Active Files

    - - - ${report.summary.mostActiveFiles - .map(file => ``) - .join('')} -
    PathActivity CountLast Activity
    ${file.path}${file.activityCount}${new Date(file.lastActivity).toLocaleString()}
    - -

    All Files

    - - - ${report.files - .map(file => ` - - - - - - `) - .join('')} -
    PathSizeModifiedTypeActivity Count
    ${file.path}${this.formatFileSize(file.size || 0)}${file.modified ? new Date(file.modified).toLocaleString() : 'N/A'}${file.type}${file.activityCount}
    +
    Explorer Dates

    Explorer Dates File Report

    Schema ${escape(report.schemaVersion)} · Generated ${escape(date(report.generatedAt))}
    +

    Workspace: ${escape(report.workspaceName || report.workspace?.join(', '))} · Selected range: ${escape(report.timeRange)}

    +
    ${escape(report.summary.totalFiles)}Included files
    ${escape(this.formatFileSize(report.summary.totalSize))}Total size
    ${escape(report.summary.mostActiveFiles.length)}Known active files
    ${escape(Object.values(report.summary.activitySourceBreakdown || {}).reduce((a,b)=>a+b,0))}Evidence events
    +

    Most Active Files

    ${active}
    PathActivity countLast activity
    +
    All Files (${escape(report.files.length)})
    ${rows}
    PathSizeModifiedTypeActivity countSources
    `; } formatAsMarkdown(report) { - return `# File Modification Report + const cell = value => String(value === null || value === undefined ? '' : value).replace(/\r?\n/g, '
    ').replace(/\|/g, '\\|'); + return `# Explorer Dates File Report -**Generated:** ${new Date(report.generatedAt).toLocaleString()} -**Time Range:** ${report.timeRange} +**Schema:** ${cell(report.schemaVersion)}
    +**Generated:** ${cell(validDate(report.generatedAt)?.toISOString())}
    +**Workspace:** ${cell(report.workspaceName || report.workspace?.join(', '))}
    +**Time Range:** ${cell(report.timeRange)} ## Summary @@ -638,37 +639,33 @@ class ExportReportingManager { | Type | Count | |------|-------| -${Object.entries(report.summary.fileTypes) - .map(([type, count]) => `| ${type} | ${count} |`) +${Object.entries(report.summary.fileTypes).map(([type, count]) => `| ${cell(type)} | ${count} |`) .join('\n')} ## Most Active Files | Path | Activity Count | Last Activity | |------|----------------|---------------| -${report.summary.mostActiveFiles - .map(file => `| ${file.path} | ${file.activityCount} | ${new Date(file.lastActivity).toLocaleString()} |`) +${report.summary.mostActiveFiles.map(file => `| ${cell(file.path)} | ${file.activityCount} | ${cell(validDate(file.lastActivity)?.toISOString())} |`) .join('\n')} ## Recently Modified Files | Path | Modified | Size | |------|----------|------| -${report.summary.recentlyModified - .map(file => `| ${file.path} | ${new Date(file.modified).toLocaleString()} | ${this.formatFileSize(file.size)} |`) +${report.summary.recentlyModified.map(file => `| ${cell(file.path)} | ${cell(validDate(file.modified)?.toISOString())} | ${this.formatFileSize(file.size)} |`) .join('\n')} ## All Files | Path | Size | Modified | Type | Activities | |------|------|----------|------|------------| -${report.files - .map(file => `| ${file.path} | ${this.formatFileSize(file.size || 0)} | ${file.modified ? new Date(file.modified).toLocaleString() : 'N/A'} | ${file.type} | ${file.activityCount} |`) +${report.files.map(file => `| ${cell(file.path)} | ${this.formatFileSize(file.size || 0)} | ${cell(validDate(file.modified)?.toISOString() || 'Unavailable')} | ${cell(file.type)} | ${file.activityCount} |`) .join('\n')} `; } - async saveReport(content, outputPath) { + async saveReport(content, outputPath, options = {}) { try { if (isWeb) { const encoded = encodeURIComponent(content); @@ -678,7 +675,16 @@ ${report.files } const target = outputPath instanceof vscode.Uri ? outputPath : vscode.Uri.file(outputPath); - await fileSystem.writeFile(target, content, 'utf8'); + this._throwIfCancelled(options.cancellationToken); + const targetPath = target.fsPath || target.path; + const temporary = `${targetPath}.tmp-${process.pid}-${Date.now()}`; + await fileSystem.writeFile(temporary, content, 'utf8'); + this._throwIfCancelled(options.cancellationToken); + await fileSystem.rename(temporary, target, { overwrite: true }); + const verified = await fileSystem.stat(target); + if (!Number.isFinite(Number(verified.size)) || Number(verified.size) <= 0) { + throw new Error('The saved report is empty or could not be verified.'); + } logger.info(`Report saved to ${target.fsPath || target.path}`); } catch (error) { logger.error('Failed to save report:', error); @@ -781,21 +787,47 @@ ${report.files } isExcluded(filePath, excludePatterns) { - return excludePatterns.some(pattern => { - const regex = new RegExp(pattern.replace(/\*/g, '.*')); - return regex.test(filePath); + return this._reportPolicy.isExcluded(filePath) || (excludePatterns || []).some(pattern => { + const regex = this._createPatternRegex(pattern); + return regex ? regex.test(normalizeReportPath(filePath)) : false; }); } formatFileSize(bytes) { - if (bytes === 0) return '0 B'; - const k = 1024; - const sizes = ['B', 'KB', 'MB', 'GB']; - const i = Math.floor(Math.log(bytes) / Math.log(k)); - return parseFloat((bytes / Math.pow(k, i)).toFixed(1)) + ' ' + sizes[i]; + const formatted = formatFileSize(bytes, 'auto'); + return formatted.startsWith('~') ? formatted.slice(1) : formatted; + } + + _embeddedLogo() { + try { + const fs = require('fs'); + const path = require('path'); + const candidates = [ + path.join(__dirname, '..', 'icons', 'explorer-dates.png'), + path.join(__dirname, '..', '..', 'icons', 'explorer-dates.png') + ]; + const logoPath = candidates.find(candidate => fs.existsSync(candidate)); + return logoPath ? fs.readFileSync(logoPath).toString('base64') : ''; + } catch { + return ''; + } } async showReportDialog() { + if (this._reportInProgress) { + vscode.window.showInformationMessage('Explorer Dates is already generating a report. Please wait for it to finish.'); + return null; + } + const dialogRun = this._showReportDialog(); + this._reportInProgress = dialogRun; + try { + return await dialogRun; + } finally { + if (this._reportInProgress === dialogRun) this._reportInProgress = null; + } + } + + async _showReportDialog() { try { const options = { '📊 Generate Full Report': 'full', @@ -814,7 +846,7 @@ ${report.files const timeRange = options[selected]; - const formatOptions = ['JSON', 'CSV', 'HTML', 'Markdown']; + const formatOptions = this.allowedFormats.map(value => value.toUpperCase() === 'MARKDOWN' ? 'Markdown' : value.toUpperCase()); const format = await vscode.window.showQuickPick( formatOptions, { placeHolder: l10n.getString('selectReportFormatPlaceholder') } @@ -823,7 +855,7 @@ ${report.files if (!format) return; const result = await vscode.window.showSaveDialog({ - defaultUri: vscode.Uri.file(`file-report.${format.toLowerCase()}`), + defaultUri: vscode.Uri.file(`explorer-dates-report-${new Date().toISOString().replace(/[:.]/g, '-')}.${format.toLowerCase()}`), filters: { [format]: [format.toLowerCase()] } @@ -831,11 +863,8 @@ ${report.files if (!result) return; - await this.generateFileModificationReport({ - format: format.toLowerCase(), - timeRange: timeRange, - outputPath: result.fsPath - }); + const run = async progress => this._generateFileModificationReport({ format: format.toLowerCase(), timeRange, outputPath: result, progress: progress.report ? (message, increment) => progress.report({ message, increment }) : null, cancellationToken: progress.token }); + return await vscode.window.withProgress({ location: vscode.ProgressLocation?.Notification || 15, title: 'Generating Explorer Dates report', cancellable: true }, run); } catch (error) { logger.error('Failed to show report dialog:', error); diff --git a/src/filesystem/FileSystemAdapter.js b/src/filesystem/FileSystemAdapter.js index 167f5ef..c905506 100644 --- a/src/filesystem/FileSystemAdapter.js +++ b/src/filesystem/FileSystemAdapter.js @@ -213,6 +213,29 @@ class FileSystemAdapter { } } + async rename(from, to, options = { overwrite: false }) { + const sourcePath = this._toPath(from); + const targetPath = this._toPath(to); + try { + const useWorkspaceFs = this._shouldUseWorkspaceFs(from) || this._shouldUseWorkspaceFs(to); + if (!this.isWeb && nodeFs && !useWorkspaceFs) { + return nodeFs.rename(sourcePath, targetPath); + } + if (typeof vscode.workspace.fs.rename === 'function') { + await vscode.workspace.fs.rename(this._toUri(from), this._toUri(to), options); + } else if (this._toUri(from).scheme === 'file' && this._toUri(to).scheme === 'file') { + // Some test/legacy providers expose workspace.fs without rename; preserve + // atomic local-file behavior when the provider cannot offer that primitive. + const localFs = nodeFs || require('fs').promises; + await localFs.rename(sourcePath, targetPath); + } else { + throw new Error('The active filesystem provider cannot rename report output.'); + } + } catch (error) { + this._handleFsError('rename file', `${sourcePath} -> ${targetPath}`, error); + } + } + async mkdir(target, options = { recursive: true }) { const targetPath = this._toPath(target); try { diff --git a/src/reporting/reportContract.js b/src/reporting/reportContract.js new file mode 100644 index 0000000..e6b6af6 --- /dev/null +++ b/src/reporting/reportContract.js @@ -0,0 +1,121 @@ +const REPORT_SCHEMA_VERSION = 2; +const DEFAULT_EXCLUDED_SEGMENTS = [ + '.git', 'node_modules', 'dist', 'build', 'out', '.vite', '.vscode-test', + 'test-results', 'playwright-report', 'coverage' +]; +const REPORT_TIME_RANGES = ['24h', '7d', '30d', '90d', 'all']; + +function normalizePath(value = '') { + return String(value || '').replace(/\\/g, '/').replace(/\/+/g, '/').replace(/^\.\//, ''); +} + +function normalizeTimeRange(value) { + return value === 'full' || value === 'all' ? 'all' : REPORT_TIME_RANGES.includes(value) ? value : 'all'; +} + +function rangeStart(timeRange, now = Date.now()) { + const range = normalizeTimeRange(timeRange); + if (range === 'all') return null; + const hours = range === '24h' ? 24 : Number.parseInt(range, 10) * 24; + return now - hours * 60 * 60 * 1000; +} + +function validDate(value) { + if (value instanceof Date) return Number.isFinite(value.getTime()) ? value : null; + if (typeof value === 'number' && Number.isFinite(value)) { + const date = new Date(value < 1e12 ? value * 1000 : value); + return Number.isFinite(date.getTime()) ? date : null; + } + if (typeof value === 'string' && value.trim()) { + const date = new Date(value); + return Number.isFinite(date.getTime()) ? date : null; + } + return null; +} + +function normalizeStat(stat = {}) { + const size = Number.isFinite(Number(stat.size)) && Number(stat.size) >= 0 ? Number(stat.size) : null; + const modified = validDate(stat.mtime ?? stat.mtimeMs); + const created = validDate(stat.birthtime ?? stat.ctime ?? stat.ctimeMs); + return { size, modified, created }; +} + +function compilePattern(pattern) { + const normalized = normalizePath(pattern).replace(/^\*\*\//, '').replace(/\/\*\*$/, ''); + const escaped = normalized.replace(/[.+^${}()|[\]\\]/g, '\\$&') + .replace(/\*\*/g, '.*').replace(/\*/g, '[^/]*').replace(/\?/g, '[^/]'); + try { return new RegExp(`(^|/)${escaped}($|/)`, 'i'); } catch { return null; } +} + +function createInclusionPolicy(options = {}) { + const segments = new Set([...DEFAULT_EXCLUDED_SEGMENTS, ...(options.excludedSegments || [])] + .map(value => normalizePath(value).replace(/^\/+|\/+$/g, '').toLowerCase()).filter(Boolean)); + const patterns = (options.excludedPatterns || []).map(compilePattern).filter(Boolean); + return { + excludedSegments: [...segments], + isExcluded(relativePath = '') { + const normalized = normalizePath(relativePath); + const pathSegments = normalized.split('/').filter(Boolean); + if (pathSegments.some(segment => segments.has(segment.toLowerCase()))) return true; + return patterns.some(regex => regex.test(normalized)); + }, + shouldDescend(relativePath = '') { return !this.isExcluded(relativePath, true); } + }; +} + +function activityKey(activity) { + const timestamp = validDate(activity?.timestamp); + return timestamp ? `${timestamp.toISOString()}|${activity.action || 'modified'}|${activity.source || 'unknown'}` : null; +} + +function inRange(date, timeRange, now) { + const value = validDate(date); + const start = rangeStart(timeRange, now); + return Boolean(value && (start === null || value.getTime() >= start)); +} + +function sortFiles(files) { + return [...files].sort((a, b) => { + const at = validDate(a.lastActivity || a.modified)?.getTime() || 0; + const bt = validDate(b.lastActivity || b.modified)?.getTime() || 0; + return bt - at || normalizePath(a.path).localeCompare(normalizePath(b.path)); + }); +} + +function createSummary(files) { + const sourceBreakdown = { filesystem: 0, user: 0, watcher: 0, git: 0, unavailable: 0 }; + const fileTypes = {}; + const activityByDay = {}; + for (const file of files) { + fileTypes[file.type || 'unknown'] = (fileTypes[file.type || 'unknown'] || 0) + 1; + for (const evidence of file.evidence || []) { + sourceBreakdown[evidence.source] = (sourceBreakdown[evidence.source] || 0) + 1; + const date = validDate(evidence.timestamp); + if (date) activityByDay[date.toISOString().slice(0, 10)] = (activityByDay[date.toISOString().slice(0, 10)] || 0) + 1; + } + if (file.activityUnavailable) sourceBreakdown.unavailable++; + } + const recent = sortFiles(files); + const active = [...files].filter(file => Number.isFinite(file.activityCount) && file.activityCount > 0) + .sort((a, b) => b.activityCount - a.activityCount || normalizePath(a.path).localeCompare(normalizePath(b.path))); + const bySize = [...files].sort((a, b) => (b.size || 0) - (a.size || 0) || normalizePath(a.path).localeCompare(normalizePath(b.path))); + const oldest = [...files].filter(file => validDate(file.modified)) + .sort((a, b) => validDate(a.modified).getTime() - validDate(b.modified).getTime() || normalizePath(a.path).localeCompare(normalizePath(b.path))); + return { + totalFiles: files.length, + totalSize: files.reduce((sum, file) => sum + (file.size || 0), 0), + fileTypes, + activityByDay, + mostActiveFiles: active.slice(0, 10).map(file => ({ path: file.path, activityCount: file.activityCount, lastActivity: file.lastActivity })), + recentlyModified: recent.slice(0, 20).map(file => ({ path: file.path, modified: file.modified, size: file.size })), + largestFiles: bySize.slice(0, 10).map(file => ({ path: file.path, size: file.size, modified: file.modified })), + oldestFiles: oldest.slice(0, 10).map(file => ({ path: file.path, modified: file.modified, size: file.size })), + activitySourceBreakdown: sourceBreakdown + }; +} + +module.exports = { + REPORT_SCHEMA_VERSION, DEFAULT_EXCLUDED_SEGMENTS, REPORT_TIME_RANGES, + normalizePath, normalizeTimeRange, rangeStart, validDate, normalizeStat, + createInclusionPolicy, activityKey, inRange, sortFiles, createSummary +}; diff --git a/tests/test-command-behavior.js b/tests/test-command-behavior.js index 2d83072..45a9c74 100644 --- a/tests/test-command-behavior.js +++ b/tests/test-command-behavior.js @@ -82,6 +82,11 @@ async function testCoreCommands() { await mock.vscode.commands.executeCommand('explorerDates.clearPreview'); assert.strictEqual(previewSettings, null, 'Expected preview settings cleared'); + const detailsUri = VSCodeUri.file(path.join(mock.vscode.workspace.workspaceFolders[0].uri.fsPath, 'package.json')); + await mock.vscode.commands.executeCommand('explorerDates.showFileDetails', detailsUri); + assert(mock.infoLog.some((msg) => typeof msg === 'string' && msg.includes('File: package.json')), + 'Show File Details must use the shared formatter without a provider-private method'); + mock.dispose(); } diff --git a/tests/test-report-contract.js b/tests/test-report-contract.js new file mode 100644 index 0000000..978dbbd --- /dev/null +++ b/tests/test-report-contract.js @@ -0,0 +1,39 @@ +#!/usr/bin/env node + +const assert = require('assert'); +const { createTestMock } = require('./helpers/mockVscode'); +const { + REPORT_SCHEMA_VERSION, normalizeTimeRange, createInclusionPolicy, createSummary +} = require('../src/reporting/reportContract'); + +const mock = createTestMock(); +const { ExportReportingManager } = require('../src/exportReporting'); +const manager = new ExportReportingManager(); + +try { + assert.strictEqual(normalizeTimeRange('full'), 'all'); + assert.deepStrictEqual(createInclusionPolicy().isExcluded('src/node_modules-helper.ts'), false); + assert.strictEqual(createInclusionPolicy().isExcluded('src\\node_modules\\index.js'), true); + + const files = [ + { path: 'z.js', size: 2, type: 'javascript', modified: new Date('2026-07-19T00:00:00Z'), lastActivity: new Date('2026-07-19T00:00:00Z'), activityCount: 1, evidence: [{ source: 'filesystem', timestamp: new Date('2026-07-19T00:00:00Z') }] }, + { path: '|.js', size: 1, type: 'javascript', modified: null, lastActivity: null, activityCount: 0, evidence: [] } + ]; + const before = files.map(file => file.path); + const summary = createSummary(files); + assert.deepStrictEqual(files.map(file => file.path), before, 'summary must not mutate report files'); + assert.strictEqual(summary.activitySourceBreakdown.filesystem, 1); + assert.strictEqual(summary.mostActiveFiles.length, 1); + + const report = { schemaVersion: REPORT_SCHEMA_VERSION, generatedAt: new Date().toISOString(), workspaceName: 'Fixture', timeRange: '30d', files, summary }; + const html = manager.formatAsHTML(report); + assert(html.includes('color-scheme: dark')); + assert(!html.includes('')); + assert(html.includes('<script>alert(1)</script>')); + assert(manager.formatAsCSV(report).includes('Path,Size')); + assert(manager.formatAsMarkdown(report).includes('\\|')); + console.log('✅ Report contract coverage complete'); +} finally { + manager.dispose(); + mock.dispose(); +} From 5ec3f349506c43bb224666a28affc3a2f3244486 Mon Sep 17 00:00:00 2001 From: incredincomp Date: Sun, 19 Jul 2026 02:48:04 -0700 Subject: [PATCH 2/4] Represent unavailable report activity explicitly --- dist/chunks/reporting.js | 8 ++++---- src/exportReporting.js | 10 +++++----- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/dist/chunks/reporting.js b/dist/chunks/reporting.js index 5e1acb7..35621f0 100644 --- a/dist/chunks/reporting.js +++ b/dist/chunks/reporting.js @@ -1,5 +1,5 @@ -var g=(i,e)=>()=>(e||i((e={exports:{}}).exports,e),e.exports);var N=g((dt,$)=>{var T="__explorerDatesLogger",k=class{constructor(){this.f=null}d(e,t){if(this.f&&typeof this.f[e]=="function")try{return this.f[e](...t)}catch{}switch(e){case"debug":break;case"info":break;case"warn":break;case"error":break;default:break}}debug(...e){return this.d("debug",e)}info(...e){return this.d("info",e)}warn(...e){return this.d("warn",e)}error(...e){return this.d("error",e)}U(e){this.f=e}};function ve(){return typeof global<"u"?(global[T]||(global[T]=new k),global[T]):typeof globalThis<"u"?(globalThis[T]||(globalThis[T]=new k),globalThis[T]):(x||(x=new k),x)}var P=class extends k{},x=null;$.exports={Logger:P,getLogger:ve}});var j=g((mt,W)=>{var U=require("vscode");function Se(){try{let i=U?.env?.uiKind,e=U?.UIKind?.Web;return i!==void 0&&e!==void 0&&i===e}catch{return!1}}W.exports={isWebEnvironment:Se}});var q=g((exports,module)=>{var chunk=null;try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){try{chunk=dynamicRequire("../chunks/utils-shared-chunk")}catch{}try{chunk||(chunk=dynamicRequire("./chunks/utils-shared-chunk"))}catch{}try{chunk||(chunk=dynamicRequire("../chunks/path-utils-chunk"))}catch{}try{chunk||(chunk=dynamicRequire("./chunks/path-utils-chunk"))}catch{}}}catch{}if(chunk&&chunk.normalizePath)module.exports={normalizePath:chunk.normalizePath,getFileName:chunk.getFileName,getExtension:chunk.getExtension,getDirectory:chunk.getDirectory,joinPath:chunk.joinPath,getCacheKey:chunk.getCacheKey,getUriPath:chunk.getUriPath,getRelativePath:chunk.getRelativePath};else{let i=function(c=""){return c?c.replace(/\\/g,"/"):""},e=function(c=""){let u=i(c);return u?u.split("/").filter(Boolean):[]},t=function(c=""){let u=e(c);return u.length?u[u.length-1]:""},r=function(c=""){let u=t(c),h=u.lastIndexOf(".");return h<=0?"":u.substring(h).toLowerCase()},n=function(c=""){let u=i(c),h=u.lastIndexOf("/");return h===-1?"":u.substring(0,h)},s=function(...c){return i(c.filter(Boolean).join("/")).replace(/\/+/g,"/")},o=function(c=""){return i(c).toLowerCase()},l=function(c=""){if(!c)return"";if(typeof c=="string")return c;if(typeof c.fsPath=="string"&&c.fsPath.length>0)return c.fsPath;if(typeof c.path=="string"&&c.path.length>0)return c.path;if(typeof c.toString=="function")try{return c.toString(!0)}catch{return c.toString()}return String(c)},a=function(c="",u=""){let h=i(c),m=i(u);return h&&m.startsWith(h)?m.substring(h.length).replace(/^\/+/,""):m};normalizePath=i,getSegments=e,getFileName=t,getExtension=r,getDirectory=n,joinPath=s,getCacheKey=o,getUriPath=l,getRelativePath=a,module.exports={normalizePath:i,getFileName:t,getExtension:r,getDirectory:n,joinPath:s,getCacheKey:o,getUriPath:l,getRelativePath:a}}var normalizePath,getSegments,getFileName,getExtension,getDirectory,joinPath,getCacheKey,getUriPath,getRelativePath});var K=g((pt,B)=>{var _=class extends Error{constructor(e,t,r={}){super(t),this.code=e,this.context=r,this.name="ExtensionError"}},H={FILE_PERMISSION_DENIED:"FILE_PERMISSION_DENIED",WORKSPACE_TOO_LARGE:"WORKSPACE_TOO_LARGE",CHUNK_LOAD_FAILED:"CHUNK_LOAD_FAILED"};function Fe(i){if(!i)return!1;let e=i.code||i?.name;return["EACCES","EPERM","EROFS","NoPermissions"].includes(e)}var L=class extends _{constructor(e,t,r={}){let{recoverable:n=!0,context:s={}}=r;super(H.CHUNK_LOAD_FAILED,`Failed to load ${e}: ${t}`,{chunkName:e,recoverable:n,...s}),this.name="ChunkLoadError",this.chunkName=e,this.recoverable=n}};function Te(i,e,t={}){let r=require("vscode"),{userFacing:n=!0}=t,s=e?.recoverable??!0;n&&!s&&r.window.showErrorMessage(`Explorer Dates: ${i} feature unavailable. Please reinstall or rebuild the extension.`)}B.exports={ExtensionError:_,ERROR_CODES:H,isPermissionError:Fe,ChunkLoadError:L,handleChunkFailure:Te}});var Z=g((gt,Y)=>{var X="EXPLORER_DATES_FORCE_VSCODE_FS";function G(i,e=process.env){return String(e?.[i]||"")==="1"}function b(i){let e=i&&typeof i=="object"?i:null,t=String(e?.scheme||(typeof i=="string"&&/^[a-z][a-z0-9+.-]*:/i.test(i)?i.split(":",1)[0]:"file")).toLowerCase(),r=String(e?.authority||""),n=e?.path||e?.fsPath||(typeof i=="string"?i.replace(/^[a-z][a-z0-9+.-]*:\/\//i,""):"");return{scheme:t,authority:r,path:String(n||"")}}function ke({uri:i,isWeb:e=!1,remoteName:t="",forceWorkspaceFs:r=G(X)}={}){let n=b(i),s=n.scheme!=="file",o=!!e,l=!!t,a=!!(r||o||l||s);return{scheme:n.scheme,authority:n.authority,isFileScheme:!s,isVirtual:s,isBrowser:o,isRemote:l,forceWorkspaceFs:!!r,filesystem:a?"workspace.fs":"node.fs",provider:s?n.scheme==="github"||n.scheme==="vscode-vfs"?"github":"virtual":"filesystem"}}function V({uri:i,platform:e=process.platform,caseSensitive:t}={}){return typeof t=="boolean"?t:b(i).scheme!=="file"?!0:e!=="win32"}function Ae(i,e={}){let t=b(i),r=t.path.replace(/\\/g,"/").replace(/\/+/g,"/"),n=`${t.scheme}://${t.authority}${r}`;return V({uri:i,...e})?n:n.toLowerCase()}function O(i){if(i instanceof Date){let e=i.getTime();return Number.isFinite(e)?e:null}if(typeof i=="number")return Number.isFinite(i)?i:null;if(typeof i=="string"&&i.trim()){let e=Date.parse(i);return Number.isFinite(e)?e:null}return null}function Re(i){if(!i||typeof i!="object")return null;let e=O(i.mtime),t=O(i.ctime);return{...i,mtimeMs:e,ctimeMs:t}}Y.exports={FORCE_WORKSPACE_FS_ENV:X,envFlag:G,getUriParts:b,getEnvironmentContract:ke,isCaseSensitive:V,resourceIdentity:Ae,normalizeTimestamp:O,normalizeStat:Re}});var M=g((yt,ee)=>{function _e(){return typeof Date=="function"&&Date.now?Date.now():16409952e5}function J(i){return!!(i&&typeof i=="object"&&typeof i.getTime=="function")}function be(i){if(J(i))return i;if(typeof i=="number")return new Date(i);if(typeof i=="string"){let e=Date.parse(i);return isNaN(e)?new Date:new Date(e)}return new Date}function S(i=""){return i?i.replace(/\\/g,"/"):""}function Ce(i=""){let e=S(i);return e?e.split("/").filter(Boolean):[]}function Q(i=""){let e=Ce(i);return e.length?e[e.length-1]:""}function xe(i=""){let e=Q(i),t=e.lastIndexOf(".");return t<=0?"":e.substring(t).toLowerCase()}function Pe(i=""){let e=S(i),t=e.lastIndexOf("/");return t===-1?"":e.substring(0,t)}function Le(...i){return S(i.filter(Boolean).join("/")).replace(/\/+/g,"/")}function Oe(i=""){return S(i).toLowerCase()}function Me(i=""){if(!i)return"";if(typeof i=="string")return i;if(typeof i.fsPath=="string"&&i.fsPath.length>0)return i.fsPath;if(typeof i.path=="string"&&i.path.length>0)return i.path;if(typeof i.toString=="function")try{return i.toString(!0)}catch{return i.toString()}return String(i)}function Ie(i="",e=""){let t=S(i),r=S(e);return t&&r.startsWith(t)?r.substring(t.length).replace(/^\/+/,""):r}ee.exports={ensureDate:be,isDateLike:J,getCurrentTimestamp:_e,normalizePath:S,getFileName:Q,getExtension:xe,getDirectory:Pe,joinPath:Le,getCacheKey:Oe,getUriPath:Me,getRelativePath:Ie}});var I=g((exports,module)=>{var chunk=null;try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){try{chunk=dynamicRequire("../chunks/utils-shared-chunk")}catch{}try{chunk||(chunk=dynamicRequire("./chunks/utils-shared-chunk"))}catch{}try{chunk||(chunk=dynamicRequire("../chunks/date-helpers-chunk"))}catch{}try{chunk||(chunk=dynamicRequire("./chunks/date-helpers-chunk"))}catch{}}}catch{}if(chunk&&(chunk.ensureDate||chunk.isDateLike||chunk.getCurrentTimestamp))module.exports={ensureDate:chunk.ensureDate,isDateLike:chunk.isDateLike,getCurrentTimestamp:chunk.getCurrentTimestamp};else{let i=function(){return typeof Date=="function"&&Date.now?Date.now():16409952e5},e=function(r){return!!(r&&typeof r=="object"&&typeof r.getTime=="function")},t=function(r){if(e(r))return r;if(typeof r=="number")return new Date(r);if(typeof r=="string"){let n=Date.parse(r);return isNaN(n)?new Date:new Date(n)}return new Date};getCurrentTimestamp=i,isDateLike=e,ensureDate=t,module.exports={ensureDate:t,isDateLike:e,getCurrentTimestamp:i}}var getCurrentTimestamp,isDateLike,ensureDate});var se=g((Et,ne)=>{var f=require("vscode"),{isWebEnvironment:te}=j(),{normalizePath:ze}=q(),{ExtensionError:$e,ERROR_CODES:Ne,isPermissionError:Ue}=K(),{getEnvironmentContract:We,normalizeStat:je,FORCE_WORKSPACE_FS_ENV:qe}=Z(),A;try{let i=M();i&&(A=i.ensureDate)}catch{}A||(A=I().ensureDate);var ie=typeof process<"u"&&process.env?process.env:{},re=ie.VSCODE_WEB==="true"||te(),d=null;if(!re)try{d=require("fs").promises}catch{d=null}var C=class{constructor(){this.isWeb=re||te()}r(e){try{return We({uri:this.e(e),isWeb:this.isWeb,remoteName:f.env?.remoteName,forceWorkspaceFs:ie[qe]==="1"}).filesystem==="workspace.fs"}catch{return!1}}i(e){if(!e)return"";if(typeof e=="string")return e;if(e&&typeof e=="object"&&typeof e.fsPath=="string")return e.fsPath;if(e&&typeof e=="object"&&typeof e.path=="string")return e.path;if(typeof e=="object"){if(typeof e.fsPath=="string")return e.fsPath;if(typeof e.path=="string")return e.path}return String(e)}e(e){if(e&&typeof e=="object"&&typeof e.scheme=="string"&&typeof e.path=="string")return e;if(typeof e=="string"){let t=e.trim(),r=/^[a-zA-Z]:[\\/]/.test(t);if(/^[a-zA-Z][a-zA-Z0-9+.-]*:/.test(t)&&!r){let s=f.Uri.parse(t);if(s.scheme&&s.scheme!=="file")return s}return f.Uri.file(e)}if(e&&typeof e=="object"){if(e.uri&&e.uri!==e)try{return this.e(e.uri)}catch{}if(this.isWeb&&typeof e.scheme=="string"&&typeof e.path=="string")return f.Uri.from({scheme:e.scheme,authority:e.authority||"",path:e.path||"",query:e.query||"",fragment:e.fragment||""});if(typeof e.fsPath=="string"&&e.fsPath.length>0)return f.Uri.file(e.fsPath);if(typeof e.path=="string"&&e.path.length>0)return this.isWeb&&typeof e.scheme=="string"&&e.scheme!=="file"?f.Uri.from({scheme:e.scheme,authority:e.authority||"",path:e.path,query:e.query||"",fragment:e.fragment||""}):f.Uri.file(e.path);if(typeof e.href=="string"&&e.href.length>0)return f.Uri.parse(e.href);if(typeof e.scheme=="string")return f.Uri.from({scheme:e.scheme,authority:e.authority||"",path:e.path||e.fsPath||"",query:e.query||"",fragment:e.fragment||""});if(typeof e.toString=="function")try{let t=e.toString(!0);if(t&&t!=="[object Object]")return f.Uri.parse(t)}catch{let t=e.toString();if(t&&t!=="[object Object]")return f.Uri.parse(t)}}throw new Error(`Unsupported target type: ${typeof e}`)}async stat(e){let t=this.r(e);if(!this.isWeb&&d&&!t)return d.stat(this.i(e));let r=this.e(e),n=await f.workspace.fs.stat(r),s=je(n);return{...s,mtime:s.mtimeMs===null?A(n.mtime):new Date(s.mtimeMs),ctime:s.ctimeMs===null?A(n.ctime):new Date(s.ctimeMs),birthtime:s.ctimeMs===null?A(n.ctime):new Date(s.ctimeMs),isFile:()=>n.type===f.FileType.File,isDirectory:()=>n.type===f.FileType.Directory}}async readFile(e,t="utf8"){let r=this.r(e);if(!this.isWeb&&d&&!r)return d.readFile(this.i(e),t);let n=this.e(e),s=await f.workspace.fs.readFile(n);return t===null||t==="binary"?s:new TextDecoder(t).decode(s)}async writeFile(e,t,r="utf8"){let n=this.i(e);try{let s=this.r(e);if(!this.isWeb&&d&&!s)return d.writeFile(n,t,r);let o=this.e(e),l=typeof t=="string"?new TextEncoder().encode(t):t;await f.workspace.fs.writeFile(o,l)}catch(s){this.g("write file",n,s)}}async rename(e,t,r={overwrite:!1}){let n=this.i(e),s=this.i(t);try{let o=this.r(e)||this.r(t);if(!this.isWeb&&d&&!o)return d.rename(n,s);if(typeof f.workspace.fs.rename=="function")await f.workspace.fs.rename(this.e(e),this.e(t),r);else if(this.e(e).scheme==="file"&&this.e(t).scheme==="file")await(d||require("fs").promises).rename(n,s);else throw new Error("The active filesystem provider cannot rename report output.")}catch(o){this.g("rename file",`${n} -> ${s}`,o)}}async mkdir(e,t={recursive:!0}){let r=this.i(e);try{let n=this.r(e);if(!this.isWeb&&d&&!n)return d.mkdir(r,t);let s=this.e(e);await f.workspace.fs.createDirectory(s)}catch(n){this.g("create directory",r,n)}}async readdir(e,t={withFileTypes:!1}){let r=this.r(e);if(!this.isWeb&&d&&!r)return d.readdir(this.i(e),t);let n=this.e(e),s=await f.workspace.fs.readDirectory(n);return t.withFileTypes?s.map(([o,l])=>({name:o,isDirectory:()=>l===f.FileType.Directory,isFile:()=>l===f.FileType.File})):s.map(([o])=>o)}async delete(e,t={recursive:!1}){let r=this.r(e);if(!this.isWeb&&d&&!r){let s=this.i(e);return t.recursive?d.rm?d.rm(s,t):d.rmdir(s,t):d.unlink(s)}let n=this.e(e);await f.workspace.fs.delete(n,t)}async exists(e){try{return await this.stat(e),!0}catch{return!1}}async ensureDirectory(e){let t=ze(this.i(e));await this.mkdir(t,{recursive:!0})}g(e,t,r){throw Ue(r)?new $e(Ne.FILE_PERMISSION_DENIED,`Permission denied while attempting to ${e}`,{path:t,code:r.code}):r}},He=new C;ne.exports={FileSystemAdapter:C,fileSystem:He}});var ce=g((wt,ae)=>{var R=typeof process<"u"&&process.env?process.env:{},Be=12e4,Ke=1e4,Xe=1440*60*1e3,Ge=2,Ve=["Ja","Fe","Mr","Ap","My","Jn","Jl","Au","Se","Oc","No","De"],Ye=Number(R.EXPLORER_DATES_DECORATION_POOL_SIZE||2048),Ze=Number(R.EXPLORER_DATES_FLYWEIGHT_CACHE_SIZE||4096),Je=Number(R.EXPLORER_DATES_WORKSPACE_BALANCED_THRESHOLD||15e3),Qe=Number(R.EXPLORER_DATES_WORKSPACE_LARGE_THRESHOLD||25e4),oe=Number(R.EXPLORER_DATES_WORKSPACE_EXTREME_THRESHOLD||4e5),et=Number(R.EXPLORER_DATES_WORKSPACE_SCAN_MAX_RESULTS||Math.min(oe+1,50001)),tt={ADVANCED_CACHE:"explorerDates.advancedCache",ADVANCED_CACHE_METADATA:"explorerDates.advancedCacheMetadata",TEMPLATE_STORE:"explorerDates.templates",WEB_GIT_NOTICE:"explorerDates.webGitNotice"},it="explorerDatesChunks",rt="__explorerDatesChunks";ae.exports={DEFAULT_CACHE_TIMEOUT:Be,DEFAULT_MAX_CACHE_SIZE:Ke,DEFAULT_PERSISTENT_CACHE_TTL:Xe,DEFAULT_DECORATION_POOL_SIZE:Ye,DEFAULT_FLYWEIGHT_CACHE_SIZE:Ze,MAX_BADGE_LENGTH:Ge,MONTH_ABBREVIATIONS:Ve,WORKSPACE_SCALE_BALANCED_THRESHOLD:Je,WORKSPACE_SCALE_LARGE_THRESHOLD:Qe,WORKSPACE_SCALE_EXTREME_THRESHOLD:oe,WORKSPACE_SCAN_MAX_RESULTS:et,GLOBAL_STATE_KEYS:tt,WEB_CHUNK_GLOBAL_KEY:it,LEGACY_WEB_CHUNK_GLOBAL_KEY:rt}});var he=g((Dt,ue)=>{var{MAX_BADGE_LENGTH:le}=ce();function nt(i=0,e="auto"){let t=typeof i=="number"&&!Number.isNaN(i)?i:0;if(e==="bytes")return`~${t}B`;let r=t/1024;if(e==="kb")return`~${r.toFixed(1)}K`;let n=r/1024;return e==="mb"?`~${n.toFixed(1)}M`:t<1024?`~${t}B`:r<1024?`~${Math.round(r)}K`:`~${n.toFixed(1)}M`}function st(i){if(i)return i.length>le?i.substring(0,le):i}ue.exports={formatFileSize:nt,trimBadge:st}});var Ee=g((vt,ye)=>{var fe=[".git","node_modules","dist","build","out",".vite",".vscode-test","test-results","playwright-report","coverage"],de=["24h","7d","30d","90d","all"];function y(i=""){return String(i||"").replace(/\\/g,"/").replace(/\/+/g,"/").replace(/^\.\//,"")}function me(i){return i==="full"||i==="all"?"all":de.includes(i)?i:"all"}function pe(i,e=Date.now()){let t=me(i);if(t==="all")return null;let r=t==="24h"?24:Number.parseInt(t,10)*24;return e-r*60*60*1e3}function w(i){if(i instanceof Date)return Number.isFinite(i.getTime())?i:null;if(typeof i=="number"&&Number.isFinite(i)){let e=new Date(i<1e12?i*1e3:i);return Number.isFinite(e.getTime())?e:null}if(typeof i=="string"&&i.trim()){let e=new Date(i);return Number.isFinite(e.getTime())?e:null}return null}function ot(i={}){let e=Number.isFinite(Number(i.size))&&Number(i.size)>=0?Number(i.size):null,t=w(i.mtime??i.mtimeMs),r=w(i.birthtime??i.ctime??i.ctimeMs);return{size:e,modified:t,created:r}}function at(i){let t=y(i).replace(/^\*\*\//,"").replace(/\/\*\*$/,"").replace(/[.+^${}()|[\]\\]/g,"\\$&").replace(/\*\*/g,".*").replace(/\*/g,"[^/]*").replace(/\?/g,"[^/]");try{return new RegExp(`(^|/)${t}($|/)`,"i")}catch{return null}}function ct(i={}){let e=new Set([...fe,...i.excludedSegments||[]].map(r=>y(r).replace(/^\/+|\/+$/g,"").toLowerCase()).filter(Boolean)),t=(i.excludedPatterns||[]).map(at).filter(Boolean);return{excludedSegments:[...e],isExcluded(r=""){let n=y(r);return n.split("/").filter(Boolean).some(o=>e.has(o.toLowerCase()))?!0:t.some(o=>o.test(n))},shouldDescend(r=""){return!this.isExcluded(r,!0)}}}function lt(i){let e=w(i?.timestamp);return e?`${e.toISOString()}|${i.action||"modified"}|${i.source||"unknown"}`:null}function ut(i,e,t){let r=w(i),n=pe(e,t);return!!(r&&(n===null||r.getTime()>=n))}function ge(i){return[...i].sort((e,t)=>{let r=w(e.lastActivity||e.modified)?.getTime()||0;return(w(t.lastActivity||t.modified)?.getTime()||0)-r||y(e.path).localeCompare(y(t.path))})}function ht(i){let e={filesystem:0,user:0,watcher:0,git:0,unavailable:0},t={},r={};for(let a of i){t[a.type||"unknown"]=(t[a.type||"unknown"]||0)+1;for(let c of a.evidence||[]){e[c.source]=(e[c.source]||0)+1;let u=w(c.timestamp);u&&(r[u.toISOString().slice(0,10)]=(r[u.toISOString().slice(0,10)]||0)+1)}a.activityUnavailable&&e.unavailable++}let n=ge(i),s=[...i].filter(a=>Number.isFinite(a.activityCount)&&a.activityCount>0).sort((a,c)=>c.activityCount-a.activityCount||y(a.path).localeCompare(y(c.path))),o=[...i].sort((a,c)=>(c.size||0)-(a.size||0)||y(a.path).localeCompare(y(c.path))),l=[...i].filter(a=>w(a.modified)).sort((a,c)=>w(a.modified).getTime()-w(c.modified).getTime()||y(a.path).localeCompare(y(c.path)));return{totalFiles:i.length,totalSize:i.reduce((a,c)=>a+(c.size||0),0),fileTypes:t,activityByDay:r,mostActiveFiles:s.slice(0,10).map(a=>({path:a.path,activityCount:a.activityCount,lastActivity:a.lastActivity})),recentlyModified:n.slice(0,20).map(a=>({path:a.path,modified:a.modified,size:a.size})),largestFiles:o.slice(0,10).map(a=>({path:a.path,size:a.size,modified:a.modified})),oldestFiles:l.slice(0,10).map(a=>({path:a.path,modified:a.modified,size:a.size})),activitySourceBreakdown:e}}ye.exports={REPORT_SCHEMA_VERSION:2,DEFAULT_EXCLUDED_SEGMENTS:fe,REPORT_TIME_RANGES:de,normalizePath:y,normalizeTimeRange:me,rangeStart:pe,validDate:w,normalizeStat:ot,createInclusionPolicy:ct,activityKey:lt,inRange:ut,sortFiles:ge,createSummary:ht}});var we=g((exports,module)=>{var vscode=require("vscode"),{getLogger}=N(),{fileSystem}=se(),getExtension=filePath=>{try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let i=dynamicRequire("./chunks/path-utils-chunk");if(i&&typeof i.getExtension=="function")return getExtension=i.getExtension,getExtension(filePath)}}catch{}try{let i=String(filePath||""),e=i.lastIndexOf(".");return e<=0?"":i.substring(e).toLowerCase()}catch{return""}},normalizePath=input=>{try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let i=dynamicRequire("./chunks/path-utils-chunk");if(i&&typeof i.normalizePath=="function")return normalizePath=i.normalizePath,normalizePath(input)}}catch{}return String(input||"").replace(/\\/g,"/")},ensureDate;try{let i=M();i&&(ensureDate=i.ensureDate)}catch{}ensureDate||(ensureDate=I().ensureDate);var{getLocalization}=require("./utils/localization"),{formatFileSize}=he(),{REPORT_SCHEMA_VERSION,DEFAULT_EXCLUDED_SEGMENTS,normalizePath:normalizeReportPath,normalizeTimeRange,rangeStart,normalizeStat,createInclusionPolicy,inRange,sortFiles,createSummary,validDate}=Ee(),l10n=getLocalization(),logger=getLogger(),env=typeof process<"u"&&process.env?process.env:{},isWeb=env.VSCODE_WEB==="true",DEFAULT_EXCLUDED_FOLDERS=DEFAULT_EXCLUDED_SEGMENTS,DEFAULT_EXCLUDED_PATTERNS=["**/*.tmp","**/*.log"],DEFAULT_MAX_TRACKED_FILES=3e3,MAX_TRACK_HISTORY_PER_FILE=100,MAX_TRACKED_FILES_LIMIT=2e4,ExportReportingManager=class{constructor(){this.fileActivityCache=new Map,this.t=new Map,this.allowedFormats=["json","html"],this.activityTrackingDays=30,this.activityCutoffMs=null,this.timeTrackingIntegration="none",this.maxTrackedActivityFiles=DEFAULT_MAX_TRACKED_FILES,this.excludedFolders=[...DEFAULT_EXCLUDED_FOLDERS],this.excludedPatterns=[...DEFAULT_EXCLUDED_PATTERNS],this.S=[],this.o=null,this.c=null,this.m=[],this.l=[],this.s=new Map,this.x=Number(env.EXPLORER_DATES_USER_ACTIVITY_TTL_MS||300*1e3),this.p={user:0,watcher:0},this.P=env.EXPLORER_DATES_LIGHTWEIGHT_MODE==="1",this.u=!1,this.n=null,this.y=createInclusionPolicy(),this.F(),this.L(),this.initialize()}F(){try{let e=vscode.workspace.getConfiguration("explorerDates"),t=e.get("reportFormats",["json","html"]),r=new Set(["json","csv","html","markdown"]);this.allowedFormats=Array.from(new Set((Array.isArray(t)?t:[]).map(l=>String(l).toLowerCase()).filter(l=>r.has(l)))),this.allowedFormats.length===0&&(this.allowedFormats=["json"]);let n=e.get("activityTrackingDays",30);this.activityTrackingDays=Math.max(1,Math.min(365,n)),this.activityCutoffMs=this.activityTrackingDays*24*60*60*1e3,this.timeTrackingIntegration=e.get("timeTrackingIntegration","none"),this.maxTrackedActivityFiles=this.O(e.get("maxTrackedActivityFiles",DEFAULT_MAX_TRACKED_FILES)),this.excludedFolders=e.get("excludedFolders",DEFAULT_EXCLUDED_FOLDERS)||DEFAULT_EXCLUDED_FOLDERS,this.excludedPatterns=e.get("excludedPatterns",DEFAULT_EXCLUDED_PATTERNS)||DEFAULT_EXCLUDED_PATTERNS,this.S=this.excludedPatterns.map(l=>this.T(l)).filter(Boolean);let s=vscode.workspace.getConfiguration("files").get("exclude",{})||{},o=Object.keys(s).filter(l=>s[l]!==!1);this.y=createInclusionPolicy({excludedSegments:this.excludedFolders,excludedPatterns:[...this.excludedPatterns,...o]})}catch(e){logger.error("Failed to load reporting configuration",e)}}L(){this.o&&this.o.dispose(),this.o=vscode.workspace.onDidChangeConfiguration(e=>{(e.affectsConfiguration("explorerDates.reportFormats")||e.affectsConfiguration("explorerDates.activityTrackingDays")||e.affectsConfiguration("explorerDates.timeTrackingIntegration")||e.affectsConfiguration("explorerDates.maxTrackedActivityFiles")||e.affectsConfiguration("explorerDates.excludedFolders")||e.affectsConfiguration("explorerDates.excludedPatterns")||e.affectsConfiguration("explorerDates.performanceMode"))&&(this.F(),this.k(),logger.info("Reporting configuration updated",{allowedFormats:this.allowedFormats,activityTrackingDays:this.activityTrackingDays,timeTrackingIntegration:this.timeTrackingIntegration,maxTrackedActivityFiles:this.maxTrackedActivityFiles}))})}async initialize(){try{if(this.A()){this.u=!0,this.E(),this.w(),logger.info("Export & Reporting Manager initialized (activity tracking suppressed by performance/lightweight mode)");return}this.u=!1,this.D(),this.k(),logger.info("Export & Reporting Manager initialized")}catch(e){logger.error("Failed to initialize Export & Reporting Manager:",e)}}startFileWatcher(){if(this.c||this.maxTrackedActivityFiles===0||isWeb){this.maxTrackedActivityFiles===0&&logger.info("File activity tracking disabled (maxTrackedActivityFiles=0)"),isWeb&&logger.info("Skipping file activity watcher in web environment");return}let e=vscode.workspace.createFileSystemWatcher("**/*");this.c=e,this.m=[e.onDidChange(t=>this.recordFileActivity(t,"modified",{source:"watcher"})),e.onDidCreate(t=>this.recordFileActivity(t,"created",{source:"watcher"})),e.onDidDelete(t=>this.recordFileActivity(t,"deleted",{source:"watcher"}))]}w(){if(this.m.length){for(let e of this.m)try{e.dispose()}catch{}this.m=[]}if(this.c){try{this.c.dispose()}catch{}this.c=null}}k(){let e=this.A();if(e||this.maxTrackedActivityFiles<=0||isWeb){this.u=e||this.maxTrackedActivityFiles<=0||isWeb,this.w(),this.E(),this.fileActivityCache.clear(),this.t.clear();return}this.u&&(this.u=!1,this.D()),this.D(),this.startFileWatcher(),this.R()}recordFileActivity(e,t,r={}){try{let n=r.source||"system";if(this.maxTrackedActivityFiles===0)return;let s=e?.fsPath||e?.path;if(!s)return;let o=this.a(s);if(!o||!this.M(o))return;let l=this.fileActivityCache.get(o);l?l.path=s:(l={path:s,activities:[]},this.fileActivityCache.set(o,l));let a=new Date;l.activities.push({action:t,timestamp:a,path:s,source:n}),n==="user"&&this._(o,a.getTime()),this.p[n]===void 0&&(this.p[n]=0),this.p[n]++,this.I(o,l),this.z(o,a.getTime())}catch(n){logger.error("Failed to record file activity:",n)}}I(e,t){let r=t?.activities;if(!(!r||r.length===0)){if(this.activityCutoffMs){let n=Date.now()-this.activityCutoffMs;for(;r.length&&r[0].timestamp.getTime()MAX_TRACK_HISTORY_PER_FILE&&r.splice(0,r.length-MAX_TRACK_HISTORY_PER_FILE),r.length===0&&(this.fileActivityCache.delete(e),this.t.delete(e))}}async generateFileModificationReport(e={}){if(this.n)return vscode.window.showInformationMessage("Explorer Dates is already generating a report. Please wait for it to finish."),null;let t=this.b(e);this.n=t;try{return await t}finally{this.n===t&&(this.n=null)}}async b(e={}){try{let{format:t="json",timeRange:r="all",includeDeleted:n=!1,outputPath:s=null,progress:o=null,cancellationToken:l=null}=e,a=normalizeTimeRange(r);if(!this.allowedFormats.includes(t)){let h=l10n.getString("reportFormatDisabled",t,this.allowedFormats.join(", "));return vscode.window.showWarningMessage(h),logger.warn(h),null}let c=await this.collectFileData(a,n,{progress:o,cancellationToken:l}),u=await this.formatReport(c,t);if(s){await this.saveReport(u,s,{cancellationToken:l});let h=s instanceof vscode.Uri?s.fsPath||s.path:s,m=await vscode.window.showInformationMessage(`Report saved to ${h}`,"Open Report","Reveal in File Explorer");m==="Open Report"&&await vscode.commands.executeCommand("vscode.open",s instanceof vscode.Uri?s:vscode.Uri.file(s)),m==="Reveal in File Explorer"&&await vscode.commands.executeCommand("revealFileInOS",s instanceof vscode.Uri?s:vscode.Uri.file(s))}return u}catch(t){return logger.error("Failed to generate file modification report:",t),t?.code==="REPORT_CANCELLED"||vscode.window.showErrorMessage(`Failed to generate report${e.outputPath?` for ${e.outputPath}`:""}: ${t?.message||"unknown error"}`),null}}async collectFileData(e,t,r={}){let n=[],s=vscode.workspace.workspaceFolders;if(!s)return{schemaVersion:REPORT_SCHEMA_VERSION,files:[],summary:createSummary([]),timeRange:normalizeTimeRange(e)};this.v(r.progress,"Preparing workspace roots",0);let o=await this.collectGitEvidence(s,e,r);for(let a of s){let c=await this.scanWorkspaceFolder(a.uri,e,t,{...r,gitEvidence:o,workspaceName:a.name});n.push(...c)}let l=createSummary(n);return l.integrationTarget=this.timeTrackingIntegration,l.activityTrackingDays=this.activityTrackingDays,{schemaVersion:REPORT_SCHEMA_VERSION,generatedAt:new Date().toISOString(),workspace:s.map(a=>a.uri.fsPath),workspaceName:s.map(a=>a.name).join(", "),timeRange:normalizeTimeRange(e),files:sortFiles(n),summary:l}}async scanWorkspaceFolder(e,t,r,n={}){let s=[];try{this.h(n.cancellationToken),this.v(n.progress,"Scanning files");let o=await vscode.workspace.fs.readDirectory(e);for(let[l,a]of o){let c=vscode.Uri.joinPath(e,l),u=vscode.workspace.asRelativePath(c);if(!this.y.isExcluded(u)){if(a===vscode.FileType.File){let h=await this.getFileData(c,t,n);h&&s.push(h)}else if(a===vscode.FileType.Directory){let h=await this.scanWorkspaceFolder(c,t,r,n);s.push(...h)}}}if(r&&e.fsPath){let l=this.getDeletedFiles(e.fsPath,t);s.push(...l)}}catch(o){logger.error(`Failed to scan folder ${e.fsPath||e.path}:`,o)}return s}async getFileData(e,t,r={}){try{this.h(r.cancellationToken);let n=await vscode.workspace.fs.stat(e),s=vscode.workspace.asRelativePath(e),o=e.fsPath||e.path,l=this.a(o),a=this.fileActivityCache.get(l),c=Date.now(),u=normalizeStat(n),h=(a?.activities||[]).filter(p=>inRange(p.timestamp,t,c)),m=[],F=new Set,E=p=>{let D=validDate(p.timestamp);if(!D)return;let z=`${D.toISOString()}|${p.action||"modified"}`;F.has(z)||(F.add(z),m.push({...p,timestamp:D}))};for(let p of h)E(p);inRange(u.modified,t,c)&&E({action:"modified",source:"filesystem",timestamp:u.modified});for(let p of r.gitEvidence?.get(l)||[])inRange(p.timestamp,t,c)&&E(p);if(normalizeTimeRange(t)!=="all"&&m.length===0)return null;m.sort((p,D)=>p.timestamp-D.timestamp);let v=m.length?m[m.length-1].timestamp:u.modified;return{path:s,fullPath:a?.path||o,size:u.size,created:u.created,modified:u.modified,type:this.getFileType(s),extension:getExtension(s),activities:m,evidence:m,activityCount:m.length,activityUnavailable:!1,lastActivity:v}}catch(n){return logger.error(`Failed to get file data for ${e.fsPath||e.path}:`,n),null}}h(e){if(e?.isCancellationRequested){let t=new Error("Report generation was cancelled.");throw t.code="REPORT_CANCELLED",t}}v(e,t,r){typeof e=="function"&&e(t,r)}async collectGitEvidence(e,t,r={}){let n=new Map;if(isWeb)return n;let s;try{s=require("child_process").execFile}catch{return n}let o=new Set;for(let l of e){this.h(r.cancellationToken);let a=l.uri.fsPath;if(!a)continue;let c=await new Promise(E=>s("git",["-C",a,"rev-parse","--show-toplevel"],{timeout:3e3},(v,p)=>E(v?null:p.trim())));if(!c||o.has(c))continue;o.add(c),this.v(r.progress,"Collecting Git activity");let u=rangeStart(t),h=["-C",c,"log","--all","--name-only","--format=%ct"];u!==null&&h.push(`--since=${new Date(u).toISOString()}`);let m=await new Promise(E=>s("git",h,{timeout:1e4,maxBuffer:8*1024*1024},(v,p)=>E(v?"":p))),F=null;for(let E of String(m).split(/\r?\n/)){if(/^\d+$/.test(E.trim())){F=new Date(Number(E.trim())*1e3);continue}let v=normalizeReportPath(E.trim());if(!v||!F)continue;let p=normalizeReportPath(require("path").join(c,v)),D=this.a(p);n.has(D)||n.set(D,[]),n.get(D).push({action:"modified",source:"git",timestamp:F})}}return n}filterActivitiesByTimeRange(e,t){let r=e;if(t!=="all"){let n=new Date,s;switch(t){case"24h":s=new Date(n-1440*60*1e3);break;case"7d":s=new Date(n-10080*60*1e3);break;case"30d":s=new Date(n-720*60*60*1e3);break;case"90d":s=new Date(n-2160*60*60*1e3);break;default:s=null}s&&(r=r.filter(o=>o.timestamp>=s))}if(this.activityCutoffMs){let n=new Date(Date.now()-this.activityCutoffMs);r=r.filter(s=>s.timestamp>=n)}return r}getDeletedFiles(e,t){if(!e)return[];let r=[],n=e?this.a(e):"";for(let[s,o]of this.fileActivityCache.entries()){if(!o?.activities||o.activities.length===0||n&&!s.startsWith(n))continue;let l=o.activities.filter(c=>c.action==="deleted"),a=this.filterActivitiesByTimeRange(l,t);a.length>0&&r.push({path:vscode.workspace.asRelativePath(o.path||s),fullPath:o.path||s,size:0,created:null,modified:null,type:"deleted",extension:getExtension(o.path||s),activities:a,activityCount:a.length,lastActivity:a[a.length-1].timestamp})}return r}createSummary(e){return createSummary(e)}async formatReport(e,t){switch(t.toLowerCase()){case"json":return JSON.stringify(e,null,2);case"csv":return this.formatAsCSV(e);case"html":return this.formatAsHTML(e);case"markdown":return this.formatAsMarkdown(e);default:throw new Error(`Unsupported format: ${t}`)}}formatAsCSV(e){let t=n=>{let s=n==null?"":String(n);return/^[=+\-@]/.test(s)&&(s=`'${s}`),/[",\r\n]/.test(s)?`"${s.replace(/"/g,'""')}"`:s},r=["Path,Size,Created,Modified,Type,Extension,ActivityCount,ActivitySources,LastActivity"];for(let n of e.files)r.push([n.path,n.size,validDate(n.created)?.toISOString(),validDate(n.modified)?.toISOString(),n.type,n.extension,n.activityCount,(n.evidence||[]).map(s=>s.source).join("|"),validDate(n.lastActivity)?.toISOString()].map(t).join(","));return r.join(` -`)}formatAsHTML(e){let t=o=>String(o??"").replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'"),r=o=>validDate(o)?.toLocaleString()||"Unavailable",n=e.files.map(o=>`${t(o.path)}${t(this.formatFileSize(o.size||0))}${t(r(o.modified))}${t(o.type)}${t(o.activityCount)}${t((o.evidence||[]).map(l=>l.source).join(", ")||"Unavailable")}`).join(""),s=e.summary.mostActiveFiles.length?e.summary.mostActiveFiles.map(o=>`${t(o.path)}${t(o.activityCount)}${t(r(o.lastActivity))}`).join(""):'No known activity evidence in this range.';return` +var g=(i,e)=>()=>(e||i((e={exports:{}}).exports,e),e.exports);var N=g((dt,$)=>{var k="__explorerDatesLogger",T=class{constructor(){this.f=null}d(e,t){if(this.f&&typeof this.f[e]=="function")try{return this.f[e](...t)}catch{}switch(e){case"debug":break;case"info":break;case"warn":break;case"error":break;default:break}}debug(...e){return this.d("debug",e)}info(...e){return this.d("info",e)}warn(...e){return this.d("warn",e)}error(...e){return this.d("error",e)}U(e){this.f=e}};function De(){return typeof global<"u"?(global[k]||(global[k]=new T),global[k]):typeof globalThis<"u"?(globalThis[k]||(globalThis[k]=new T),globalThis[k]):(x||(x=new T),x)}var P=class extends T{},x=null;$.exports={Logger:P,getLogger:De}});var j=g((mt,W)=>{var U=require("vscode");function Se(){try{let i=U?.env?.uiKind,e=U?.UIKind?.Web;return i!==void 0&&e!==void 0&&i===e}catch{return!1}}W.exports={isWebEnvironment:Se}});var q=g((exports,module)=>{var chunk=null;try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){try{chunk=dynamicRequire("../chunks/utils-shared-chunk")}catch{}try{chunk||(chunk=dynamicRequire("./chunks/utils-shared-chunk"))}catch{}try{chunk||(chunk=dynamicRequire("../chunks/path-utils-chunk"))}catch{}try{chunk||(chunk=dynamicRequire("./chunks/path-utils-chunk"))}catch{}}}catch{}if(chunk&&chunk.normalizePath)module.exports={normalizePath:chunk.normalizePath,getFileName:chunk.getFileName,getExtension:chunk.getExtension,getDirectory:chunk.getDirectory,joinPath:chunk.joinPath,getCacheKey:chunk.getCacheKey,getUriPath:chunk.getUriPath,getRelativePath:chunk.getRelativePath};else{let i=function(c=""){return c?c.replace(/\\/g,"/"):""},e=function(c=""){let u=i(c);return u?u.split("/").filter(Boolean):[]},t=function(c=""){let u=e(c);return u.length?u[u.length-1]:""},r=function(c=""){let u=t(c),h=u.lastIndexOf(".");return h<=0?"":u.substring(h).toLowerCase()},n=function(c=""){let u=i(c),h=u.lastIndexOf("/");return h===-1?"":u.substring(0,h)},s=function(...c){return i(c.filter(Boolean).join("/")).replace(/\/+/g,"/")},o=function(c=""){return i(c).toLowerCase()},l=function(c=""){if(!c)return"";if(typeof c=="string")return c;if(typeof c.fsPath=="string"&&c.fsPath.length>0)return c.fsPath;if(typeof c.path=="string"&&c.path.length>0)return c.path;if(typeof c.toString=="function")try{return c.toString(!0)}catch{return c.toString()}return String(c)},a=function(c="",u=""){let h=i(c),d=i(u);return h&&d.startsWith(h)?d.substring(h.length).replace(/^\/+/,""):d};normalizePath=i,getSegments=e,getFileName=t,getExtension=r,getDirectory=n,joinPath=s,getCacheKey=o,getUriPath=l,getRelativePath=a,module.exports={normalizePath:i,getFileName:t,getExtension:r,getDirectory:n,joinPath:s,getCacheKey:o,getUriPath:l,getRelativePath:a}}var normalizePath,getSegments,getFileName,getExtension,getDirectory,joinPath,getCacheKey,getUriPath,getRelativePath});var K=g((pt,B)=>{var b=class extends Error{constructor(e,t,r={}){super(t),this.code=e,this.context=r,this.name="ExtensionError"}},H={FILE_PERMISSION_DENIED:"FILE_PERMISSION_DENIED",WORKSPACE_TOO_LARGE:"WORKSPACE_TOO_LARGE",CHUNK_LOAD_FAILED:"CHUNK_LOAD_FAILED"};function Fe(i){if(!i)return!1;let e=i.code||i?.name;return["EACCES","EPERM","EROFS","NoPermissions"].includes(e)}var L=class extends b{constructor(e,t,r={}){let{recoverable:n=!0,context:s={}}=r;super(H.CHUNK_LOAD_FAILED,`Failed to load ${e}: ${t}`,{chunkName:e,recoverable:n,...s}),this.name="ChunkLoadError",this.chunkName=e,this.recoverable=n}};function ke(i,e,t={}){let r=require("vscode"),{userFacing:n=!0}=t,s=e?.recoverable??!0;n&&!s&&r.window.showErrorMessage(`Explorer Dates: ${i} feature unavailable. Please reinstall or rebuild the extension.`)}B.exports={ExtensionError:b,ERROR_CODES:H,isPermissionError:Fe,ChunkLoadError:L,handleChunkFailure:ke}});var Z=g((gt,Y)=>{var X="EXPLORER_DATES_FORCE_VSCODE_FS";function G(i,e=process.env){return String(e?.[i]||"")==="1"}function _(i){let e=i&&typeof i=="object"?i:null,t=String(e?.scheme||(typeof i=="string"&&/^[a-z][a-z0-9+.-]*:/i.test(i)?i.split(":",1)[0]:"file")).toLowerCase(),r=String(e?.authority||""),n=e?.path||e?.fsPath||(typeof i=="string"?i.replace(/^[a-z][a-z0-9+.-]*:\/\//i,""):"");return{scheme:t,authority:r,path:String(n||"")}}function Te({uri:i,isWeb:e=!1,remoteName:t="",forceWorkspaceFs:r=G(X)}={}){let n=_(i),s=n.scheme!=="file",o=!!e,l=!!t,a=!!(r||o||l||s);return{scheme:n.scheme,authority:n.authority,isFileScheme:!s,isVirtual:s,isBrowser:o,isRemote:l,forceWorkspaceFs:!!r,filesystem:a?"workspace.fs":"node.fs",provider:s?n.scheme==="github"||n.scheme==="vscode-vfs"?"github":"virtual":"filesystem"}}function V({uri:i,platform:e=process.platform,caseSensitive:t}={}){return typeof t=="boolean"?t:_(i).scheme!=="file"?!0:e!=="win32"}function Ae(i,e={}){let t=_(i),r=t.path.replace(/\\/g,"/").replace(/\/+/g,"/"),n=`${t.scheme}://${t.authority}${r}`;return V({uri:i,...e})?n:n.toLowerCase()}function O(i){if(i instanceof Date){let e=i.getTime();return Number.isFinite(e)?e:null}if(typeof i=="number")return Number.isFinite(i)?i:null;if(typeof i=="string"&&i.trim()){let e=Date.parse(i);return Number.isFinite(e)?e:null}return null}function Re(i){if(!i||typeof i!="object")return null;let e=O(i.mtime),t=O(i.ctime);return{...i,mtimeMs:e,ctimeMs:t}}Y.exports={FORCE_WORKSPACE_FS_ENV:X,envFlag:G,getUriParts:_,getEnvironmentContract:Te,isCaseSensitive:V,resourceIdentity:Ae,normalizeTimestamp:O,normalizeStat:Re}});var M=g((yt,ee)=>{function be(){return typeof Date=="function"&&Date.now?Date.now():16409952e5}function J(i){return!!(i&&typeof i=="object"&&typeof i.getTime=="function")}function _e(i){if(J(i))return i;if(typeof i=="number")return new Date(i);if(typeof i=="string"){let e=Date.parse(i);return isNaN(e)?new Date:new Date(e)}return new Date}function S(i=""){return i?i.replace(/\\/g,"/"):""}function Ce(i=""){let e=S(i);return e?e.split("/").filter(Boolean):[]}function Q(i=""){let e=Ce(i);return e.length?e[e.length-1]:""}function xe(i=""){let e=Q(i),t=e.lastIndexOf(".");return t<=0?"":e.substring(t).toLowerCase()}function Pe(i=""){let e=S(i),t=e.lastIndexOf("/");return t===-1?"":e.substring(0,t)}function Le(...i){return S(i.filter(Boolean).join("/")).replace(/\/+/g,"/")}function Oe(i=""){return S(i).toLowerCase()}function Me(i=""){if(!i)return"";if(typeof i=="string")return i;if(typeof i.fsPath=="string"&&i.fsPath.length>0)return i.fsPath;if(typeof i.path=="string"&&i.path.length>0)return i.path;if(typeof i.toString=="function")try{return i.toString(!0)}catch{return i.toString()}return String(i)}function Ie(i="",e=""){let t=S(i),r=S(e);return t&&r.startsWith(t)?r.substring(t.length).replace(/^\/+/,""):r}ee.exports={ensureDate:_e,isDateLike:J,getCurrentTimestamp:be,normalizePath:S,getFileName:Q,getExtension:xe,getDirectory:Pe,joinPath:Le,getCacheKey:Oe,getUriPath:Me,getRelativePath:Ie}});var I=g((exports,module)=>{var chunk=null;try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){try{chunk=dynamicRequire("../chunks/utils-shared-chunk")}catch{}try{chunk||(chunk=dynamicRequire("./chunks/utils-shared-chunk"))}catch{}try{chunk||(chunk=dynamicRequire("../chunks/date-helpers-chunk"))}catch{}try{chunk||(chunk=dynamicRequire("./chunks/date-helpers-chunk"))}catch{}}}catch{}if(chunk&&(chunk.ensureDate||chunk.isDateLike||chunk.getCurrentTimestamp))module.exports={ensureDate:chunk.ensureDate,isDateLike:chunk.isDateLike,getCurrentTimestamp:chunk.getCurrentTimestamp};else{let i=function(){return typeof Date=="function"&&Date.now?Date.now():16409952e5},e=function(r){return!!(r&&typeof r=="object"&&typeof r.getTime=="function")},t=function(r){if(e(r))return r;if(typeof r=="number")return new Date(r);if(typeof r=="string"){let n=Date.parse(r);return isNaN(n)?new Date:new Date(n)}return new Date};getCurrentTimestamp=i,isDateLike=e,ensureDate=t,module.exports={ensureDate:t,isDateLike:e,getCurrentTimestamp:i}}var getCurrentTimestamp,isDateLike,ensureDate});var se=g((Et,ne)=>{var f=require("vscode"),{isWebEnvironment:te}=j(),{normalizePath:ze}=q(),{ExtensionError:$e,ERROR_CODES:Ne,isPermissionError:Ue}=K(),{getEnvironmentContract:We,normalizeStat:je,FORCE_WORKSPACE_FS_ENV:qe}=Z(),A;try{let i=M();i&&(A=i.ensureDate)}catch{}A||(A=I().ensureDate);var ie=typeof process<"u"&&process.env?process.env:{},re=ie.VSCODE_WEB==="true"||te(),m=null;if(!re)try{m=require("fs").promises}catch{m=null}var C=class{constructor(){this.isWeb=re||te()}r(e){try{return We({uri:this.e(e),isWeb:this.isWeb,remoteName:f.env?.remoteName,forceWorkspaceFs:ie[qe]==="1"}).filesystem==="workspace.fs"}catch{return!1}}i(e){if(!e)return"";if(typeof e=="string")return e;if(e&&typeof e=="object"&&typeof e.fsPath=="string")return e.fsPath;if(e&&typeof e=="object"&&typeof e.path=="string")return e.path;if(typeof e=="object"){if(typeof e.fsPath=="string")return e.fsPath;if(typeof e.path=="string")return e.path}return String(e)}e(e){if(e&&typeof e=="object"&&typeof e.scheme=="string"&&typeof e.path=="string")return e;if(typeof e=="string"){let t=e.trim(),r=/^[a-zA-Z]:[\\/]/.test(t);if(/^[a-zA-Z][a-zA-Z0-9+.-]*:/.test(t)&&!r){let s=f.Uri.parse(t);if(s.scheme&&s.scheme!=="file")return s}return f.Uri.file(e)}if(e&&typeof e=="object"){if(e.uri&&e.uri!==e)try{return this.e(e.uri)}catch{}if(this.isWeb&&typeof e.scheme=="string"&&typeof e.path=="string")return f.Uri.from({scheme:e.scheme,authority:e.authority||"",path:e.path||"",query:e.query||"",fragment:e.fragment||""});if(typeof e.fsPath=="string"&&e.fsPath.length>0)return f.Uri.file(e.fsPath);if(typeof e.path=="string"&&e.path.length>0)return this.isWeb&&typeof e.scheme=="string"&&e.scheme!=="file"?f.Uri.from({scheme:e.scheme,authority:e.authority||"",path:e.path,query:e.query||"",fragment:e.fragment||""}):f.Uri.file(e.path);if(typeof e.href=="string"&&e.href.length>0)return f.Uri.parse(e.href);if(typeof e.scheme=="string")return f.Uri.from({scheme:e.scheme,authority:e.authority||"",path:e.path||e.fsPath||"",query:e.query||"",fragment:e.fragment||""});if(typeof e.toString=="function")try{let t=e.toString(!0);if(t&&t!=="[object Object]")return f.Uri.parse(t)}catch{let t=e.toString();if(t&&t!=="[object Object]")return f.Uri.parse(t)}}throw new Error(`Unsupported target type: ${typeof e}`)}async stat(e){let t=this.r(e);if(!this.isWeb&&m&&!t)return m.stat(this.i(e));let r=this.e(e),n=await f.workspace.fs.stat(r),s=je(n);return{...s,mtime:s.mtimeMs===null?A(n.mtime):new Date(s.mtimeMs),ctime:s.ctimeMs===null?A(n.ctime):new Date(s.ctimeMs),birthtime:s.ctimeMs===null?A(n.ctime):new Date(s.ctimeMs),isFile:()=>n.type===f.FileType.File,isDirectory:()=>n.type===f.FileType.Directory}}async readFile(e,t="utf8"){let r=this.r(e);if(!this.isWeb&&m&&!r)return m.readFile(this.i(e),t);let n=this.e(e),s=await f.workspace.fs.readFile(n);return t===null||t==="binary"?s:new TextDecoder(t).decode(s)}async writeFile(e,t,r="utf8"){let n=this.i(e);try{let s=this.r(e);if(!this.isWeb&&m&&!s)return m.writeFile(n,t,r);let o=this.e(e),l=typeof t=="string"?new TextEncoder().encode(t):t;await f.workspace.fs.writeFile(o,l)}catch(s){this.g("write file",n,s)}}async rename(e,t,r={overwrite:!1}){let n=this.i(e),s=this.i(t);try{let o=this.r(e)||this.r(t);if(!this.isWeb&&m&&!o)return m.rename(n,s);if(typeof f.workspace.fs.rename=="function")await f.workspace.fs.rename(this.e(e),this.e(t),r);else if(this.e(e).scheme==="file"&&this.e(t).scheme==="file")await(m||require("fs").promises).rename(n,s);else throw new Error("The active filesystem provider cannot rename report output.")}catch(o){this.g("rename file",`${n} -> ${s}`,o)}}async mkdir(e,t={recursive:!0}){let r=this.i(e);try{let n=this.r(e);if(!this.isWeb&&m&&!n)return m.mkdir(r,t);let s=this.e(e);await f.workspace.fs.createDirectory(s)}catch(n){this.g("create directory",r,n)}}async readdir(e,t={withFileTypes:!1}){let r=this.r(e);if(!this.isWeb&&m&&!r)return m.readdir(this.i(e),t);let n=this.e(e),s=await f.workspace.fs.readDirectory(n);return t.withFileTypes?s.map(([o,l])=>({name:o,isDirectory:()=>l===f.FileType.Directory,isFile:()=>l===f.FileType.File})):s.map(([o])=>o)}async delete(e,t={recursive:!1}){let r=this.r(e);if(!this.isWeb&&m&&!r){let s=this.i(e);return t.recursive?m.rm?m.rm(s,t):m.rmdir(s,t):m.unlink(s)}let n=this.e(e);await f.workspace.fs.delete(n,t)}async exists(e){try{return await this.stat(e),!0}catch{return!1}}async ensureDirectory(e){let t=ze(this.i(e));await this.mkdir(t,{recursive:!0})}g(e,t,r){throw Ue(r)?new $e(Ne.FILE_PERMISSION_DENIED,`Permission denied while attempting to ${e}`,{path:t,code:r.code}):r}},He=new C;ne.exports={FileSystemAdapter:C,fileSystem:He}});var ce=g((wt,ae)=>{var R=typeof process<"u"&&process.env?process.env:{},Be=12e4,Ke=1e4,Xe=1440*60*1e3,Ge=2,Ve=["Ja","Fe","Mr","Ap","My","Jn","Jl","Au","Se","Oc","No","De"],Ye=Number(R.EXPLORER_DATES_DECORATION_POOL_SIZE||2048),Ze=Number(R.EXPLORER_DATES_FLYWEIGHT_CACHE_SIZE||4096),Je=Number(R.EXPLORER_DATES_WORKSPACE_BALANCED_THRESHOLD||15e3),Qe=Number(R.EXPLORER_DATES_WORKSPACE_LARGE_THRESHOLD||25e4),oe=Number(R.EXPLORER_DATES_WORKSPACE_EXTREME_THRESHOLD||4e5),et=Number(R.EXPLORER_DATES_WORKSPACE_SCAN_MAX_RESULTS||Math.min(oe+1,50001)),tt={ADVANCED_CACHE:"explorerDates.advancedCache",ADVANCED_CACHE_METADATA:"explorerDates.advancedCacheMetadata",TEMPLATE_STORE:"explorerDates.templates",WEB_GIT_NOTICE:"explorerDates.webGitNotice"},it="explorerDatesChunks",rt="__explorerDatesChunks";ae.exports={DEFAULT_CACHE_TIMEOUT:Be,DEFAULT_MAX_CACHE_SIZE:Ke,DEFAULT_PERSISTENT_CACHE_TTL:Xe,DEFAULT_DECORATION_POOL_SIZE:Ye,DEFAULT_FLYWEIGHT_CACHE_SIZE:Ze,MAX_BADGE_LENGTH:Ge,MONTH_ABBREVIATIONS:Ve,WORKSPACE_SCALE_BALANCED_THRESHOLD:Je,WORKSPACE_SCALE_LARGE_THRESHOLD:Qe,WORKSPACE_SCALE_EXTREME_THRESHOLD:oe,WORKSPACE_SCAN_MAX_RESULTS:et,GLOBAL_STATE_KEYS:tt,WEB_CHUNK_GLOBAL_KEY:it,LEGACY_WEB_CHUNK_GLOBAL_KEY:rt}});var he=g((vt,ue)=>{var{MAX_BADGE_LENGTH:le}=ce();function nt(i=0,e="auto"){let t=typeof i=="number"&&!Number.isNaN(i)?i:0;if(e==="bytes")return`~${t}B`;let r=t/1024;if(e==="kb")return`~${r.toFixed(1)}K`;let n=r/1024;return e==="mb"?`~${n.toFixed(1)}M`:t<1024?`~${t}B`:r<1024?`~${Math.round(r)}K`:`~${n.toFixed(1)}M`}function st(i){if(i)return i.length>le?i.substring(0,le):i}ue.exports={formatFileSize:nt,trimBadge:st}});var Ee=g((Dt,ye)=>{var fe=[".git","node_modules","dist","build","out",".vite",".vscode-test","test-results","playwright-report","coverage"],de=["24h","7d","30d","90d","all"];function y(i=""){return String(i||"").replace(/\\/g,"/").replace(/\/+/g,"/").replace(/^\.\//,"")}function me(i){return i==="full"||i==="all"?"all":de.includes(i)?i:"all"}function pe(i,e=Date.now()){let t=me(i);if(t==="all")return null;let r=t==="24h"?24:Number.parseInt(t,10)*24;return e-r*60*60*1e3}function w(i){if(i instanceof Date)return Number.isFinite(i.getTime())?i:null;if(typeof i=="number"&&Number.isFinite(i)){let e=new Date(i<1e12?i*1e3:i);return Number.isFinite(e.getTime())?e:null}if(typeof i=="string"&&i.trim()){let e=new Date(i);return Number.isFinite(e.getTime())?e:null}return null}function ot(i={}){let e=Number.isFinite(Number(i.size))&&Number(i.size)>=0?Number(i.size):null,t=w(i.mtime??i.mtimeMs),r=w(i.birthtime??i.ctime??i.ctimeMs);return{size:e,modified:t,created:r}}function at(i){let t=y(i).replace(/^\*\*\//,"").replace(/\/\*\*$/,"").replace(/[.+^${}()|[\]\\]/g,"\\$&").replace(/\*\*/g,".*").replace(/\*/g,"[^/]*").replace(/\?/g,"[^/]");try{return new RegExp(`(^|/)${t}($|/)`,"i")}catch{return null}}function ct(i={}){let e=new Set([...fe,...i.excludedSegments||[]].map(r=>y(r).replace(/^\/+|\/+$/g,"").toLowerCase()).filter(Boolean)),t=(i.excludedPatterns||[]).map(at).filter(Boolean);return{excludedSegments:[...e],isExcluded(r=""){let n=y(r);return n.split("/").filter(Boolean).some(o=>e.has(o.toLowerCase()))?!0:t.some(o=>o.test(n))},shouldDescend(r=""){return!this.isExcluded(r,!0)}}}function lt(i){let e=w(i?.timestamp);return e?`${e.toISOString()}|${i.action||"modified"}|${i.source||"unknown"}`:null}function ut(i,e,t){let r=w(i),n=pe(e,t);return!!(r&&(n===null||r.getTime()>=n))}function ge(i){return[...i].sort((e,t)=>{let r=w(e.lastActivity||e.modified)?.getTime()||0;return(w(t.lastActivity||t.modified)?.getTime()||0)-r||y(e.path).localeCompare(y(t.path))})}function ht(i){let e={filesystem:0,user:0,watcher:0,git:0,unavailable:0},t={},r={};for(let a of i){t[a.type||"unknown"]=(t[a.type||"unknown"]||0)+1;for(let c of a.evidence||[]){e[c.source]=(e[c.source]||0)+1;let u=w(c.timestamp);u&&(r[u.toISOString().slice(0,10)]=(r[u.toISOString().slice(0,10)]||0)+1)}a.activityUnavailable&&e.unavailable++}let n=ge(i),s=[...i].filter(a=>Number.isFinite(a.activityCount)&&a.activityCount>0).sort((a,c)=>c.activityCount-a.activityCount||y(a.path).localeCompare(y(c.path))),o=[...i].sort((a,c)=>(c.size||0)-(a.size||0)||y(a.path).localeCompare(y(c.path))),l=[...i].filter(a=>w(a.modified)).sort((a,c)=>w(a.modified).getTime()-w(c.modified).getTime()||y(a.path).localeCompare(y(c.path)));return{totalFiles:i.length,totalSize:i.reduce((a,c)=>a+(c.size||0),0),fileTypes:t,activityByDay:r,mostActiveFiles:s.slice(0,10).map(a=>({path:a.path,activityCount:a.activityCount,lastActivity:a.lastActivity})),recentlyModified:n.slice(0,20).map(a=>({path:a.path,modified:a.modified,size:a.size})),largestFiles:o.slice(0,10).map(a=>({path:a.path,size:a.size,modified:a.modified})),oldestFiles:l.slice(0,10).map(a=>({path:a.path,modified:a.modified,size:a.size})),activitySourceBreakdown:e}}ye.exports={REPORT_SCHEMA_VERSION:2,DEFAULT_EXCLUDED_SEGMENTS:fe,REPORT_TIME_RANGES:de,normalizePath:y,normalizeTimeRange:me,rangeStart:pe,validDate:w,normalizeStat:ot,createInclusionPolicy:ct,activityKey:lt,inRange:ut,sortFiles:ge,createSummary:ht}});var we=g((exports,module)=>{var vscode=require("vscode"),{getLogger}=N(),{fileSystem}=se(),getExtension=filePath=>{try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let i=dynamicRequire("./chunks/path-utils-chunk");if(i&&typeof i.getExtension=="function")return getExtension=i.getExtension,getExtension(filePath)}}catch{}try{let i=String(filePath||""),e=i.lastIndexOf(".");return e<=0?"":i.substring(e).toLowerCase()}catch{return""}},normalizePath=input=>{try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let i=dynamicRequire("./chunks/path-utils-chunk");if(i&&typeof i.normalizePath=="function")return normalizePath=i.normalizePath,normalizePath(input)}}catch{}return String(input||"").replace(/\\/g,"/")},ensureDate;try{let i=M();i&&(ensureDate=i.ensureDate)}catch{}ensureDate||(ensureDate=I().ensureDate);var{getLocalization}=require("./utils/localization"),{formatFileSize}=he(),{REPORT_SCHEMA_VERSION,DEFAULT_EXCLUDED_SEGMENTS,normalizePath:normalizeReportPath,normalizeTimeRange,rangeStart,normalizeStat,createInclusionPolicy,inRange,sortFiles,createSummary,validDate}=Ee(),l10n=getLocalization(),logger=getLogger(),env=typeof process<"u"&&process.env?process.env:{},isWeb=env.VSCODE_WEB==="true",DEFAULT_EXCLUDED_FOLDERS=DEFAULT_EXCLUDED_SEGMENTS,DEFAULT_EXCLUDED_PATTERNS=["**/*.tmp","**/*.log"],DEFAULT_MAX_TRACKED_FILES=3e3,MAX_TRACK_HISTORY_PER_FILE=100,MAX_TRACKED_FILES_LIMIT=2e4,ExportReportingManager=class{constructor(){this.fileActivityCache=new Map,this.t=new Map,this.allowedFormats=["json","html"],this.activityTrackingDays=30,this.activityCutoffMs=null,this.timeTrackingIntegration="none",this.maxTrackedActivityFiles=DEFAULT_MAX_TRACKED_FILES,this.excludedFolders=[...DEFAULT_EXCLUDED_FOLDERS],this.excludedPatterns=[...DEFAULT_EXCLUDED_PATTERNS],this.S=[],this.o=null,this.c=null,this.m=[],this.l=[],this.s=new Map,this.x=Number(env.EXPLORER_DATES_USER_ACTIVITY_TTL_MS||300*1e3),this.p={user:0,watcher:0},this.P=env.EXPLORER_DATES_LIGHTWEIGHT_MODE==="1",this.u=!1,this.n=null,this.y=createInclusionPolicy(),this.F(),this.L(),this.initialize()}F(){try{let e=vscode.workspace.getConfiguration("explorerDates"),t=e.get("reportFormats",["json","html"]),r=new Set(["json","csv","html","markdown"]);this.allowedFormats=Array.from(new Set((Array.isArray(t)?t:[]).map(l=>String(l).toLowerCase()).filter(l=>r.has(l)))),this.allowedFormats.length===0&&(this.allowedFormats=["json"]);let n=e.get("activityTrackingDays",30);this.activityTrackingDays=Math.max(1,Math.min(365,n)),this.activityCutoffMs=this.activityTrackingDays*24*60*60*1e3,this.timeTrackingIntegration=e.get("timeTrackingIntegration","none"),this.maxTrackedActivityFiles=this.O(e.get("maxTrackedActivityFiles",DEFAULT_MAX_TRACKED_FILES)),this.excludedFolders=e.get("excludedFolders",DEFAULT_EXCLUDED_FOLDERS)||DEFAULT_EXCLUDED_FOLDERS,this.excludedPatterns=e.get("excludedPatterns",DEFAULT_EXCLUDED_PATTERNS)||DEFAULT_EXCLUDED_PATTERNS,this.S=this.excludedPatterns.map(l=>this.k(l)).filter(Boolean);let s=vscode.workspace.getConfiguration("files").get("exclude",{})||{},o=Object.keys(s).filter(l=>s[l]!==!1);this.y=createInclusionPolicy({excludedSegments:this.excludedFolders,excludedPatterns:[...this.excludedPatterns,...o]})}catch(e){logger.error("Failed to load reporting configuration",e)}}L(){this.o&&this.o.dispose(),this.o=vscode.workspace.onDidChangeConfiguration(e=>{(e.affectsConfiguration("explorerDates.reportFormats")||e.affectsConfiguration("explorerDates.activityTrackingDays")||e.affectsConfiguration("explorerDates.timeTrackingIntegration")||e.affectsConfiguration("explorerDates.maxTrackedActivityFiles")||e.affectsConfiguration("explorerDates.excludedFolders")||e.affectsConfiguration("explorerDates.excludedPatterns")||e.affectsConfiguration("explorerDates.performanceMode"))&&(this.F(),this.T(),logger.info("Reporting configuration updated",{allowedFormats:this.allowedFormats,activityTrackingDays:this.activityTrackingDays,timeTrackingIntegration:this.timeTrackingIntegration,maxTrackedActivityFiles:this.maxTrackedActivityFiles}))})}async initialize(){try{if(this.A()){this.u=!0,this.E(),this.w(),logger.info("Export & Reporting Manager initialized (activity tracking suppressed by performance/lightweight mode)");return}this.u=!1,this.v(),this.T(),logger.info("Export & Reporting Manager initialized")}catch(e){logger.error("Failed to initialize Export & Reporting Manager:",e)}}startFileWatcher(){if(this.c||this.maxTrackedActivityFiles===0||isWeb){this.maxTrackedActivityFiles===0&&logger.info("File activity tracking disabled (maxTrackedActivityFiles=0)"),isWeb&&logger.info("Skipping file activity watcher in web environment");return}let e=vscode.workspace.createFileSystemWatcher("**/*");this.c=e,this.m=[e.onDidChange(t=>this.recordFileActivity(t,"modified",{source:"watcher"})),e.onDidCreate(t=>this.recordFileActivity(t,"created",{source:"watcher"})),e.onDidDelete(t=>this.recordFileActivity(t,"deleted",{source:"watcher"}))]}w(){if(this.m.length){for(let e of this.m)try{e.dispose()}catch{}this.m=[]}if(this.c){try{this.c.dispose()}catch{}this.c=null}}T(){let e=this.A();if(e||this.maxTrackedActivityFiles<=0||isWeb){this.u=e||this.maxTrackedActivityFiles<=0||isWeb,this.w(),this.E(),this.fileActivityCache.clear(),this.t.clear();return}this.u&&(this.u=!1,this.v()),this.v(),this.startFileWatcher(),this.R()}recordFileActivity(e,t,r={}){try{let n=r.source||"system";if(this.maxTrackedActivityFiles===0)return;let s=e?.fsPath||e?.path;if(!s)return;let o=this.a(s);if(!o||!this.M(o))return;let l=this.fileActivityCache.get(o);l?l.path=s:(l={path:s,activities:[]},this.fileActivityCache.set(o,l));let a=new Date;l.activities.push({action:t,timestamp:a,path:s,source:n}),n==="user"&&this.b(o,a.getTime()),this.p[n]===void 0&&(this.p[n]=0),this.p[n]++,this.I(o,l),this.z(o,a.getTime())}catch(n){logger.error("Failed to record file activity:",n)}}I(e,t){let r=t?.activities;if(!(!r||r.length===0)){if(this.activityCutoffMs){let n=Date.now()-this.activityCutoffMs;for(;r.length&&r[0].timestamp.getTime()MAX_TRACK_HISTORY_PER_FILE&&r.splice(0,r.length-MAX_TRACK_HISTORY_PER_FILE),r.length===0&&(this.fileActivityCache.delete(e),this.t.delete(e))}}async generateFileModificationReport(e={}){if(this.n)return vscode.window.showInformationMessage("Explorer Dates is already generating a report. Please wait for it to finish."),null;let t=this._(e);this.n=t;try{return await t}finally{this.n===t&&(this.n=null)}}async _(e={}){try{let{format:t="json",timeRange:r="all",includeDeleted:n=!1,outputPath:s=null,progress:o=null,cancellationToken:l=null}=e,a=normalizeTimeRange(r);if(!this.allowedFormats.includes(t)){let h=l10n.getString("reportFormatDisabled",t,this.allowedFormats.join(", "));return vscode.window.showWarningMessage(h),logger.warn(h),null}let c=await this.collectFileData(a,n,{progress:o,cancellationToken:l}),u=await this.formatReport(c,t);if(s){await this.saveReport(u,s,{cancellationToken:l});let h=s instanceof vscode.Uri?s.fsPath||s.path:s,d=await vscode.window.showInformationMessage(`Report saved to ${h}`,"Open Report","Reveal in File Explorer");d==="Open Report"&&await vscode.commands.executeCommand("vscode.open",s instanceof vscode.Uri?s:vscode.Uri.file(s)),d==="Reveal in File Explorer"&&await vscode.commands.executeCommand("revealFileInOS",s instanceof vscode.Uri?s:vscode.Uri.file(s))}return u}catch(t){return logger.error("Failed to generate file modification report:",t),t?.code==="REPORT_CANCELLED"||vscode.window.showErrorMessage(`Failed to generate report${e.outputPath?` for ${e.outputPath}`:""}: ${t?.message||"unknown error"}`),null}}async collectFileData(e,t,r={}){let n=[],s=vscode.workspace.workspaceFolders;if(!s)return{schemaVersion:REPORT_SCHEMA_VERSION,files:[],summary:createSummary([]),timeRange:normalizeTimeRange(e)};this.D(r.progress,"Preparing workspace roots",0);let o=await this.collectGitEvidence(s,e,r);for(let a of s){let c=await this.scanWorkspaceFolder(a.uri,e,t,{...r,gitEvidence:o,workspaceName:a.name});n.push(...c)}let l=createSummary(n);return l.integrationTarget=this.timeTrackingIntegration,l.activityTrackingDays=this.activityTrackingDays,{schemaVersion:REPORT_SCHEMA_VERSION,generatedAt:new Date().toISOString(),workspace:s.map(a=>a.uri.fsPath),workspaceName:s.map(a=>a.name).join(", "),timeRange:normalizeTimeRange(e),files:sortFiles(n),summary:l}}async scanWorkspaceFolder(e,t,r,n={}){let s=[];try{this.h(n.cancellationToken),this.D(n.progress,"Scanning files");let o=await vscode.workspace.fs.readDirectory(e);for(let[l,a]of o){let c=vscode.Uri.joinPath(e,l),u=vscode.workspace.asRelativePath(c);if(!this.y.isExcluded(u)){if(a===vscode.FileType.File){let h=await this.getFileData(c,t,n);h&&s.push(h)}else if(a===vscode.FileType.Directory){let h=await this.scanWorkspaceFolder(c,t,r,n);s.push(...h)}}}if(r&&e.fsPath){let l=this.getDeletedFiles(e.fsPath,t);s.push(...l)}}catch(o){logger.error(`Failed to scan folder ${e.fsPath||e.path}:`,o)}return s}async getFileData(e,t,r={}){try{this.h(r.cancellationToken);let n=await vscode.workspace.fs.stat(e),s=vscode.workspace.asRelativePath(e),o=e.fsPath||e.path,l=this.a(o),a=this.fileActivityCache.get(l),c=Date.now(),u=normalizeStat(n),h=(a?.activities||[]).filter(p=>inRange(p.timestamp,t,c)),d=[],F=new Set,E=p=>{let v=validDate(p.timestamp);if(!v)return;let z=`${v.toISOString()}|${p.action||"modified"}`;F.has(z)||(F.add(z),d.push({...p,timestamp:v}))};for(let p of h)E(p);inRange(u.modified,t,c)&&E({action:"modified",source:"filesystem",timestamp:u.modified});for(let p of r.gitEvidence?.get(l)||[])inRange(p.timestamp,t,c)&&E(p);if(normalizeTimeRange(t)!=="all"&&d.length===0)return null;d.sort((p,v)=>p.timestamp-v.timestamp);let D=d.length?d[d.length-1].timestamp:u.modified;return{path:s,fullPath:a?.path||o,size:u.size,created:u.created,modified:u.modified,type:this.getFileType(s),extension:getExtension(s),activities:d,evidence:d,activityCount:d.length>0||u.modified?d.length:null,activityUnavailable:d.length===0&&!u.modified,lastActivity:D}}catch(n){return logger.error(`Failed to get file data for ${e.fsPath||e.path}:`,n),null}}h(e){if(e?.isCancellationRequested){let t=new Error("Report generation was cancelled.");throw t.code="REPORT_CANCELLED",t}}D(e,t,r){typeof e=="function"&&e(t,r)}async collectGitEvidence(e,t,r={}){let n=new Map;if(isWeb)return n;let s;try{s=require("child_process").execFile}catch{return n}let o=new Set;for(let l of e){this.h(r.cancellationToken);let a=l.uri.fsPath;if(!a)continue;let c=await new Promise(E=>s("git",["-C",a,"rev-parse","--show-toplevel"],{timeout:3e3},(D,p)=>E(D?null:p.trim())));if(!c||o.has(c))continue;o.add(c),this.D(r.progress,"Collecting Git activity");let u=rangeStart(t),h=["-C",c,"log","--all","--name-only","--format=%ct"];u!==null&&h.push(`--since=${new Date(u).toISOString()}`);let d=await new Promise(E=>s("git",h,{timeout:1e4,maxBuffer:8*1024*1024},(D,p)=>E(D?"":p))),F=null;for(let E of String(d).split(/\r?\n/)){if(/^\d+$/.test(E.trim())){F=new Date(Number(E.trim())*1e3);continue}let D=normalizeReportPath(E.trim());if(!D||!F)continue;let p=normalizeReportPath(require("path").join(c,D)),v=this.a(p);n.has(v)||n.set(v,[]),n.get(v).push({action:"modified",source:"git",timestamp:F})}}return n}filterActivitiesByTimeRange(e,t){let r=e;if(t!=="all"){let n=new Date,s;switch(t){case"24h":s=new Date(n-1440*60*1e3);break;case"7d":s=new Date(n-10080*60*1e3);break;case"30d":s=new Date(n-720*60*60*1e3);break;case"90d":s=new Date(n-2160*60*60*1e3);break;default:s=null}s&&(r=r.filter(o=>o.timestamp>=s))}if(this.activityCutoffMs){let n=new Date(Date.now()-this.activityCutoffMs);r=r.filter(s=>s.timestamp>=n)}return r}getDeletedFiles(e,t){if(!e)return[];let r=[],n=e?this.a(e):"";for(let[s,o]of this.fileActivityCache.entries()){if(!o?.activities||o.activities.length===0||n&&!s.startsWith(n))continue;let l=o.activities.filter(c=>c.action==="deleted"),a=this.filterActivitiesByTimeRange(l,t);a.length>0&&r.push({path:vscode.workspace.asRelativePath(o.path||s),fullPath:o.path||s,size:0,created:null,modified:null,type:"deleted",extension:getExtension(o.path||s),activities:a,activityCount:a.length,lastActivity:a[a.length-1].timestamp})}return r}createSummary(e){return createSummary(e)}async formatReport(e,t){switch(t.toLowerCase()){case"json":return JSON.stringify(e,null,2);case"csv":return this.formatAsCSV(e);case"html":return this.formatAsHTML(e);case"markdown":return this.formatAsMarkdown(e);default:throw new Error(`Unsupported format: ${t}`)}}formatAsCSV(e){let t=n=>{let s=n==null?"":String(n);return/^[=+\-@]/.test(s)&&(s=`'${s}`),/[",\r\n]/.test(s)?`"${s.replace(/"/g,'""')}"`:s},r=["Path,Size,Created,Modified,Type,Extension,ActivityCount,ActivitySources,LastActivity"];for(let n of e.files)r.push([n.path,n.size,validDate(n.created)?.toISOString(),validDate(n.modified)?.toISOString(),n.type,n.extension,n.activityCount??"Unknown",(n.evidence||[]).map(s=>s.source).join("|")||(n.activityUnavailable?"unavailable":""),validDate(n.lastActivity)?.toISOString()].map(t).join(","));return r.join(` +`)}formatAsHTML(e){let t=o=>String(o??"").replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'"),r=o=>validDate(o)?.toLocaleString()||"Unavailable",n=e.files.map(o=>`${t(o.path)}${t(this.formatFileSize(o.size||0))}${t(r(o.modified))}${t(o.type)}${t(o.activityCount??"Unknown")}${t((o.evidence||[]).map(l=>l.source).join(", ")||(o.activityUnavailable?"Unavailable":""))}`).join(""),s=e.summary.mostActiveFiles.length?e.summary.mostActiveFiles.map(o=>`${t(o.path)}${t(o.activityCount)}${t(r(o.lastActivity))}`).join(""):'No known activity evidence in this range.';return` @@ -57,6 +57,6 @@ ${e.summary.recentlyModified.map(r=>`| ${t(r.path)} | ${t(validDate(r.modified)? | Path | Size | Modified | Type | Activities | |------|------|----------|------|------------| -${e.files.map(r=>`| ${t(r.path)} | ${this.formatFileSize(r.size||0)} | ${t(validDate(r.modified)?.toISOString()||"Unavailable")} | ${t(r.type)} | ${r.activityCount} |`).join(` +${e.files.map(r=>`| ${t(r.path)} | ${this.formatFileSize(r.size||0)} | ${t(validDate(r.modified)?.toISOString()||"Unavailable")} | ${t(r.type)} | ${t(r.activityCount??"Unknown")} |`).join(` `)} -`}async saveReport(e,t,r={}){try{if(isWeb){let a=encodeURIComponent(e);await vscode.env.openExternal(vscode.Uri.parse(`data:text/plain;charset=utf-8,${a}`)),vscode.window.showInformationMessage(l10n.getString("reportDownloadTriggered"));return}let n=t instanceof vscode.Uri?t:vscode.Uri.file(t);this.h(r.cancellationToken);let o=`${n.fsPath||n.path}.tmp-${process.pid}-${Date.now()}`;await fileSystem.writeFile(o,e,"utf8"),this.h(r.cancellationToken),await fileSystem.rename(o,n,{overwrite:!0});let l=await fileSystem.stat(n);if(!Number.isFinite(Number(l.size))||Number(l.size)<=0)throw new Error("The saved report is empty or could not be verified.");logger.info(`Report saved to ${n.fsPath||n.path}`)}catch(n){throw logger.error("Failed to save report:",n),n}}async exportToTimeTrackingTools(e={}){try{let{tool:t="generic",timeRange:r="7d"}=e,n=await this.collectFileData(r,!1);return this.formatForTimeTracking(n,t)}catch(t){return logger.error("Failed to export to time tracking tools:",t),null}}formatForTimeTracking(e,t){let r=[];switch(e.files.forEach(n=>{n.activities.forEach(s=>{r.push({file:n.path,action:s.action,timestamp:s.timestamp,duration:this.estimateSessionDuration(s),project:this.extractProjectName(n.path)})})}),t){case"toggl":return this.formatForToggl(r);case"clockify":return this.formatForClockify(r);default:return r}}formatForToggl(e){return e.map(t=>({description:`${t.action}: ${t.file}`,start:t.timestamp.toISOString(),duration:t.duration*60,project:t.project,tags:[t.action,this.getFileType(t.file)]}))}formatForClockify(e){return e.map(t=>({description:`${t.action}: ${t.file}`,start:t.timestamp.toISOString(),end:new Date(t.timestamp.getTime()+t.duration*60*1e3).toISOString(),project:t.project,tags:[t.action,this.getFileType(t.file)]}))}estimateSessionDuration(e){switch(e.action){case"created":return 15;case"modified":return 5;case"deleted":return 1;default:return 5}}extractProjectName(e){return normalizePath(e).split("/")[0]||"Unknown Project"}getFileType(e){let t=getExtension(e);return{".js":"javascript",".ts":"typescript",".py":"python",".java":"java",".cpp":"cpp",".html":"html",".css":"css",".md":"markdown",".json":"json",".xml":"xml",".txt":"text"}[t]||"other"}isExcluded(e,t){return this.y.isExcluded(e)||(t||[]).some(r=>{let n=this.T(r);return n?n.test(normalizeReportPath(e)):!1})}formatFileSize(e){let t=formatFileSize(e,"auto");return t.startsWith("~")?t.slice(1):t}$(){try{let e=require("fs"),t=require("path"),n=[t.join(__dirname,"..","icons","explorer-dates.png"),t.join(__dirname,"..","..","icons","explorer-dates.png")].find(s=>e.existsSync(s));return n?e.readFileSync(n).toString("base64"):""}catch{return""}}async showReportDialog(){if(this.n)return vscode.window.showInformationMessage("Explorer Dates is already generating a report. Please wait for it to finish."),null;let e=this.N();this.n=e;try{return await e}finally{this.n===e&&(this.n=null)}}async N(){try{let e={"\u{1F4CA} Generate Full Report":"full","\u{1F4C5} Last 24 Hours":"24h","\u{1F4C5} Last 7 Days":"7d","\u{1F4C5} Last 30 Days":"30d","\u{1F4C5} Last 90 Days":"90d"},t=await vscode.window.showQuickPick(Object.keys(e),{placeHolder:l10n.getString("selectReportTimeRangePlaceholder")});if(!t)return;let r=e[t],n=this.allowedFormats.map(a=>a.toUpperCase()==="MARKDOWN"?"Markdown":a.toUpperCase()),s=await vscode.window.showQuickPick(n,{placeHolder:l10n.getString("selectReportFormatPlaceholder")});if(!s)return;let o=await vscode.window.showSaveDialog({defaultUri:vscode.Uri.file(`explorer-dates-report-${new Date().toISOString().replace(/[:.]/g,"-")}.${s.toLowerCase()}`),filters:{[s]:[s.toLowerCase()]}});if(!o)return;let l=async a=>this.b({format:s.toLowerCase(),timeRange:r,outputPath:o,progress:a.report?(c,u)=>a.report({message:c,increment:u}):null,cancellationToken:a.token});return await vscode.window.withProgress({location:vscode.ProgressLocation?.Notification||15,title:"Generating Explorer Dates report",cancellable:!0},l)}catch(e){logger.error("Failed to show report dialog:",e),vscode.window.showErrorMessage("Failed to generate report")}}dispose(){this.o&&(this.o.dispose(),this.o=null),this.w(),this.E(),this.fileActivityCache.clear(),this.t.clear(),this.s.clear(),this.p={user:0,watcher:0},logger.info("Export & Reporting Manager disposed")}a(e=""){let t=normalizePath(e||"").trim();return t?t.toLowerCase():""}M(e){if(!e)return!1;for(let t of this.excludedFolders){if(!t)continue;let r=t.replace(/^\/+|\/+$/g,"").toLowerCase();if(!r)continue;let n=`/${r}`;if(e.includes(`${n}/`)||e.endsWith(n))return!1}return!this.S.some(t=>t.test(e))}T(e){if(!e||typeof e!="string")return null;let t=e.replace(/([.+^${}()|[\]\\])/g,"\\$1").replace(/\\\*\\\*/g,".*").replace(/\\\*/g,"[^/]*").replace(/\\\?/g,".");try{return new RegExp(t,"i")}catch{return null}}z(e,t){e&&(this.t.has(e)&&this.t.delete(e),this.t.set(e,t),this.R())}R(){if(this.maxTrackedActivityFiles<=0){this.fileActivityCache.clear(),this.t.clear();return}for(;this.t.size>this.maxTrackedActivityFiles;){let e=this.t.keys().next();if(e.done)break;let t=e.value;this.t.delete(t),this.fileActivityCache.delete(t)}}O(e){let t=Number(e);return Number.isFinite(t)?t<=0?0:Math.min(Math.max(Math.floor(t),500),MAX_TRACKED_FILES_LIMIT):DEFAULT_MAX_TRACKED_FILES}A(){return vscode.workspace.getConfiguration("explorerDates").get("performanceMode",!1)||this.P}D(){if(this.l.length>0)return;let e=vscode.workspace||{},t=(c,u)=>typeof c!="function"?null:c.call(e,u),r=[],n=t(e.onDidSaveTextDocument,c=>{this.recordFileActivity(c.uri,"modified",{source:"user"})});n&&r.push(n);let s=t(e.onDidChangeTextDocument,c=>{let u=c?.document;if(!u)return;let h=this.a(u.uri.fsPath||u.uri.path||"");h&&this._(h,Date.now())});s&&r.push(s);let o=t(e.onDidCreateFiles,c=>{c?.files?.forEach(u=>this.recordFileActivity(u,"created",{source:"user"}))});o&&r.push(o);let l=t(e.onDidDeleteFiles,c=>{c?.files?.forEach(u=>this.recordFileActivity(u,"deleted",{source:"user"}))});l&&r.push(l);let a=t(e.onDidRenameFiles,c=>{c?.files?.forEach(u=>{this.recordFileActivity(u.oldUri,"deleted",{source:"user"}),this.recordFileActivity(u.newUri,"created",{source:"user"})})});a&&r.push(a),r.length>0&&(this.l=r)}E(){if(this.l.length){for(let e of this.l)try{e.dispose()}catch{}this.l=[],this.s.clear()}}_(e,t){e&&(this.C(),this.s.set(e,t||Date.now()))}C(){if(!this.s.size)return;let e=Date.now();for(let[t,r]of this.s.entries())e-r>this.x&&this.s.delete(t)}W(e){return this.C(),this.s.has(e)?!0:!!(Array.isArray(vscode.workspace?.textDocuments)?vscode.workspace.textDocuments:[]).find(n=>(n?.uri?this.a(n.uri.fsPath||n.uri.path):"")===e)}};module.exports={ExportReportingManager}});var{ExportReportingManager:De}=we();module.exports={ExportReportingManager:De,createExportReportingManager:i=>new De(i)}; +`}async saveReport(e,t,r={}){try{if(isWeb){let a=encodeURIComponent(e);await vscode.env.openExternal(vscode.Uri.parse(`data:text/plain;charset=utf-8,${a}`)),vscode.window.showInformationMessage(l10n.getString("reportDownloadTriggered"));return}let n=t instanceof vscode.Uri?t:vscode.Uri.file(t);this.h(r.cancellationToken);let o=`${n.fsPath||n.path}.tmp-${process.pid}-${Date.now()}`;await fileSystem.writeFile(o,e,"utf8"),this.h(r.cancellationToken),await fileSystem.rename(o,n,{overwrite:!0});let l=await fileSystem.stat(n);if(!Number.isFinite(Number(l.size))||Number(l.size)<=0)throw new Error("The saved report is empty or could not be verified.");logger.info(`Report saved to ${n.fsPath||n.path}`)}catch(n){throw logger.error("Failed to save report:",n),n}}async exportToTimeTrackingTools(e={}){try{let{tool:t="generic",timeRange:r="7d"}=e,n=await this.collectFileData(r,!1);return this.formatForTimeTracking(n,t)}catch(t){return logger.error("Failed to export to time tracking tools:",t),null}}formatForTimeTracking(e,t){let r=[];switch(e.files.forEach(n=>{n.activities.forEach(s=>{r.push({file:n.path,action:s.action,timestamp:s.timestamp,duration:this.estimateSessionDuration(s),project:this.extractProjectName(n.path)})})}),t){case"toggl":return this.formatForToggl(r);case"clockify":return this.formatForClockify(r);default:return r}}formatForToggl(e){return e.map(t=>({description:`${t.action}: ${t.file}`,start:t.timestamp.toISOString(),duration:t.duration*60,project:t.project,tags:[t.action,this.getFileType(t.file)]}))}formatForClockify(e){return e.map(t=>({description:`${t.action}: ${t.file}`,start:t.timestamp.toISOString(),end:new Date(t.timestamp.getTime()+t.duration*60*1e3).toISOString(),project:t.project,tags:[t.action,this.getFileType(t.file)]}))}estimateSessionDuration(e){switch(e.action){case"created":return 15;case"modified":return 5;case"deleted":return 1;default:return 5}}extractProjectName(e){return normalizePath(e).split("/")[0]||"Unknown Project"}getFileType(e){let t=getExtension(e);return{".js":"javascript",".ts":"typescript",".py":"python",".java":"java",".cpp":"cpp",".html":"html",".css":"css",".md":"markdown",".json":"json",".xml":"xml",".txt":"text"}[t]||"other"}isExcluded(e,t){return this.y.isExcluded(e)||(t||[]).some(r=>{let n=this.k(r);return n?n.test(normalizeReportPath(e)):!1})}formatFileSize(e){let t=formatFileSize(e,"auto");return t.startsWith("~")?t.slice(1):t}$(){try{let e=require("fs"),t=require("path"),n=[t.join(__dirname,"..","icons","explorer-dates.png"),t.join(__dirname,"..","..","icons","explorer-dates.png")].find(s=>e.existsSync(s));return n?e.readFileSync(n).toString("base64"):""}catch{return""}}async showReportDialog(){if(this.n)return vscode.window.showInformationMessage("Explorer Dates is already generating a report. Please wait for it to finish."),null;let e=this.N();this.n=e;try{return await e}finally{this.n===e&&(this.n=null)}}async N(){try{let e={"\u{1F4CA} Generate Full Report":"full","\u{1F4C5} Last 24 Hours":"24h","\u{1F4C5} Last 7 Days":"7d","\u{1F4C5} Last 30 Days":"30d","\u{1F4C5} Last 90 Days":"90d"},t=await vscode.window.showQuickPick(Object.keys(e),{placeHolder:l10n.getString("selectReportTimeRangePlaceholder")});if(!t)return;let r=e[t],n=this.allowedFormats.map(a=>a.toUpperCase()==="MARKDOWN"?"Markdown":a.toUpperCase()),s=await vscode.window.showQuickPick(n,{placeHolder:l10n.getString("selectReportFormatPlaceholder")});if(!s)return;let o=await vscode.window.showSaveDialog({defaultUri:vscode.Uri.file(`explorer-dates-report-${new Date().toISOString().replace(/[:.]/g,"-")}.${s.toLowerCase()}`),filters:{[s]:[s.toLowerCase()]}});if(!o)return;let l=async a=>this._({format:s.toLowerCase(),timeRange:r,outputPath:o,progress:a.report?(c,u)=>a.report({message:c,increment:u}):null,cancellationToken:a.token});return await vscode.window.withProgress({location:vscode.ProgressLocation?.Notification||15,title:"Generating Explorer Dates report",cancellable:!0},l)}catch(e){logger.error("Failed to show report dialog:",e),vscode.window.showErrorMessage("Failed to generate report")}}dispose(){this.o&&(this.o.dispose(),this.o=null),this.w(),this.E(),this.fileActivityCache.clear(),this.t.clear(),this.s.clear(),this.p={user:0,watcher:0},logger.info("Export & Reporting Manager disposed")}a(e=""){let t=normalizePath(e||"").trim();return t?t.toLowerCase():""}M(e){if(!e)return!1;for(let t of this.excludedFolders){if(!t)continue;let r=t.replace(/^\/+|\/+$/g,"").toLowerCase();if(!r)continue;let n=`/${r}`;if(e.includes(`${n}/`)||e.endsWith(n))return!1}return!this.S.some(t=>t.test(e))}k(e){if(!e||typeof e!="string")return null;let t=e.replace(/([.+^${}()|[\]\\])/g,"\\$1").replace(/\\\*\\\*/g,".*").replace(/\\\*/g,"[^/]*").replace(/\\\?/g,".");try{return new RegExp(t,"i")}catch{return null}}z(e,t){e&&(this.t.has(e)&&this.t.delete(e),this.t.set(e,t),this.R())}R(){if(this.maxTrackedActivityFiles<=0){this.fileActivityCache.clear(),this.t.clear();return}for(;this.t.size>this.maxTrackedActivityFiles;){let e=this.t.keys().next();if(e.done)break;let t=e.value;this.t.delete(t),this.fileActivityCache.delete(t)}}O(e){let t=Number(e);return Number.isFinite(t)?t<=0?0:Math.min(Math.max(Math.floor(t),500),MAX_TRACKED_FILES_LIMIT):DEFAULT_MAX_TRACKED_FILES}A(){return vscode.workspace.getConfiguration("explorerDates").get("performanceMode",!1)||this.P}v(){if(this.l.length>0)return;let e=vscode.workspace||{},t=(c,u)=>typeof c!="function"?null:c.call(e,u),r=[],n=t(e.onDidSaveTextDocument,c=>{this.recordFileActivity(c.uri,"modified",{source:"user"})});n&&r.push(n);let s=t(e.onDidChangeTextDocument,c=>{let u=c?.document;if(!u)return;let h=this.a(u.uri.fsPath||u.uri.path||"");h&&this.b(h,Date.now())});s&&r.push(s);let o=t(e.onDidCreateFiles,c=>{c?.files?.forEach(u=>this.recordFileActivity(u,"created",{source:"user"}))});o&&r.push(o);let l=t(e.onDidDeleteFiles,c=>{c?.files?.forEach(u=>this.recordFileActivity(u,"deleted",{source:"user"}))});l&&r.push(l);let a=t(e.onDidRenameFiles,c=>{c?.files?.forEach(u=>{this.recordFileActivity(u.oldUri,"deleted",{source:"user"}),this.recordFileActivity(u.newUri,"created",{source:"user"})})});a&&r.push(a),r.length>0&&(this.l=r)}E(){if(this.l.length){for(let e of this.l)try{e.dispose()}catch{}this.l=[],this.s.clear()}}b(e,t){e&&(this.C(),this.s.set(e,t||Date.now()))}C(){if(!this.s.size)return;let e=Date.now();for(let[t,r]of this.s.entries())e-r>this.x&&this.s.delete(t)}W(e){return this.C(),this.s.has(e)?!0:!!(Array.isArray(vscode.workspace?.textDocuments)?vscode.workspace.textDocuments:[]).find(n=>(n?.uri?this.a(n.uri.fsPath||n.uri.path):"")===e)}};module.exports={ExportReportingManager}});var{ExportReportingManager:ve}=we();module.exports={ExportReportingManager:ve,createExportReportingManager:i=>new ve(i)}; diff --git a/src/exportReporting.js b/src/exportReporting.js index 239d954..7f9dec1 100644 --- a/src/exportReporting.js +++ b/src/exportReporting.js @@ -430,8 +430,8 @@ class ExportReportingManager { extension: getExtension(relativePath), activities: evidence, evidence, - activityCount: evidence.length, - activityUnavailable: false, + activityCount: evidence.length > 0 || normalizedStat.modified ? evidence.length : null, + activityUnavailable: evidence.length === 0 && !normalizedStat.modified, lastActivity }; } catch (error) { @@ -585,7 +585,7 @@ class ExportReportingManager { const lines = ['Path,Size,Created,Modified,Type,Extension,ActivityCount,ActivitySources,LastActivity']; for (const file of report.files) lines.push([ file.path, file.size, validDate(file.created)?.toISOString(), validDate(file.modified)?.toISOString(), - file.type, file.extension, file.activityCount, (file.evidence || []).map(e => e.source).join('|'), validDate(file.lastActivity)?.toISOString() + file.type, file.extension, file.activityCount ?? 'Unknown', (file.evidence || []).map(e => e.source).join('|') || (file.activityUnavailable ? 'unavailable' : ''), validDate(file.lastActivity)?.toISOString() ].map(quote).join(',')); return lines.join('\n'); } @@ -595,7 +595,7 @@ class ExportReportingManager { .replace(/&/g, '&').replace(//g, '>') .replace(/"/g, '"').replace(/'/g, '''); const date = value => validDate(value)?.toLocaleString() || 'Unavailable'; - const rows = report.files.map(file => `${escape(file.path)}${escape(this.formatFileSize(file.size || 0))}${escape(date(file.modified))}${escape(file.type)}${escape(file.activityCount)}${escape((file.evidence || []).map(e => e.source).join(', ') || 'Unavailable')}`).join(''); + const rows = report.files.map(file => `${escape(file.path)}${escape(this.formatFileSize(file.size || 0))}${escape(date(file.modified))}${escape(file.type)}${escape(file.activityCount ?? 'Unknown')}${escape((file.evidence || []).map(e => e.source).join(', ') || (file.activityUnavailable ? 'Unavailable' : ''))}`).join(''); const active = report.summary.mostActiveFiles.length ? report.summary.mostActiveFiles.map(file => `${escape(file.path)}${escape(file.activityCount)}${escape(date(file.lastActivity))}`).join('') : 'No known activity evidence in this range.'; return ` @@ -660,7 +660,7 @@ ${report.summary.recentlyModified.map(file => `| ${cell(file.path)} | ${cell(val | Path | Size | Modified | Type | Activities | |------|------|----------|------|------------| -${report.files.map(file => `| ${cell(file.path)} | ${this.formatFileSize(file.size || 0)} | ${cell(validDate(file.modified)?.toISOString() || 'Unavailable')} | ${cell(file.type)} | ${file.activityCount} |`) +${report.files.map(file => `| ${cell(file.path)} | ${this.formatFileSize(file.size || 0)} | ${cell(validDate(file.modified)?.toISOString() || 'Unavailable')} | ${cell(file.type)} | ${cell(file.activityCount ?? 'Unknown')} |`) .join('\n')} `; } From d2a34f05b65af24285a7d912b7371261b53e8ddb Mon Sep 17 00:00:00 2001 From: incredincomp Date: Sun, 19 Jul 2026 12:08:27 -0700 Subject: [PATCH 3/4] Repair command outcomes and certify report lifecycle --- .github/workflows/public-pr-validation.yml | 9 +++ dist/chunks/decorationProvide.js | 4 +- dist/chunks/decorationsAdvanced.js | 2 +- dist/chunks/extensionApi.js | 6 +- dist/chunks/fileDateProviderImpl.js | 6 +- dist/chunks/fileDateProviderImplExport.js | 6 +- dist/chunks/providerInit.js | 2 +- dist/chunks/reporting.js | 6 +- dist/chunks/runtimeManagement.js | 2 +- dist/chunks/runtimeManagementHeavy.js | 2 +- dist/extension.js | 58 +++++++-------- dist/extension.web.js | 58 +++++++-------- dist/web-chunks/decorationProvide.js | 4 +- dist/web-chunks/decorationsAdvanced.js | 2 +- dist/web-chunks/extensionApi.js | 6 +- dist/web-chunks/fileDateProviderImpl.js | 6 +- dist/web-chunks/fileDateProviderImplExport.js | 6 +- dist/web-chunks/providerInit.js | 2 +- dist/web-chunks/runtimeManagement.js | 2 +- extension.js | 25 ++++++- package.json | 6 +- src/commands/coreCommands.js | 28 ++++++-- src/exportReporting.js | 6 +- src/utils/commandOutcome.js | 19 +++++ src/utils/webDiagnostics.js | 10 +-- tests/extension-host/index.js | 10 +++ .../extension-host/show-file-details.test.js | 31 ++++++++ tests/helpers/test-watchdog.js | 7 +- tests/run-extension-host-smoke.js | 32 +++++++++ tests/test-command-outcome-contract.js | 62 ++++++++++++++++ tests/test-report-fixture-contract.js | 71 +++++++++++++++++++ tests/test-report-lifecycle-contract.js | 42 +++++++++++ 32 files changed, 433 insertions(+), 105 deletions(-) create mode 100644 src/utils/commandOutcome.js create mode 100644 tests/extension-host/index.js create mode 100644 tests/extension-host/show-file-details.test.js create mode 100644 tests/run-extension-host-smoke.js create mode 100644 tests/test-command-outcome-contract.js create mode 100644 tests/test-report-fixture-contract.js create mode 100644 tests/test-report-lifecycle-contract.js diff --git a/.github/workflows/public-pr-validation.yml b/.github/workflows/public-pr-validation.yml index fd814b2..c0bf4be 100644 --- a/.github/workflows/public-pr-validation.yml +++ b/.github/workflows/public-pr-validation.yml @@ -106,6 +106,15 @@ jobs: - name: Run lint run: npm run lint + - name: Run command outcome contract + run: npm run test:command-outcome-contract + + - name: Run report fixture contract + run: npm run test:report-fixture-contract + + - name: Run report lifecycle contract + run: npm run test:report-lifecycle-contract + - name: Run critical tests run: npm run test:critical diff --git a/dist/chunks/decorationProvide.js b/dist/chunks/decorationProvide.js index 7411a1d..92c0b68 100644 --- a/dist/chunks/decorationProvide.js +++ b/dist/chunks/decorationProvide.js @@ -1,2 +1,2 @@ -var B=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var X=B((Pt,ce)=>{var se=typeof process<"u"&&process.env?process.env:{},ie="[ExplorerDates][WebDiag]",G="__explorerDatesWebDiagnostics",I;function Me(){try{let e=require("vscode");return e?.env?.uiKind===e?.UIKind?.Web}catch{return se.VSCODE_WEB==="true"}}function v(){return I!==void 0||(I=se.EXPLORER_DATES_WEB_DIAG==="1"||Me()),I}function ae(){return{enabled:v(),logs:[],logOnce:new Set,commandsRegistered:new Set,commandsInvoked:[],errors:[],chunkLoads:[],provider:{created:!1,registered:!1,hydrated:!1,decorationCalls:0,refreshCalls:0,lastEvent:null}}}var _e=ae();function k(){return typeof globalThis<"u"?(globalThis[G]||(globalThis[G]=ae()),globalThis[G]):_e}function Ue(e){try{return JSON.stringify(e)}catch{return String(e)}}function D(e,t,n){if(!v())return;let r=k(),o={ts:new Date().toISOString(),level:e,message:t,meta:n||null};r.logs.push(o),r.logs.length>400&&r.logs.shift();let i=n?`${ie} ${t} ${Ue(n)}`:`${ie} ${t}`,a=console[e]||console.info;try{a(i)}catch{}}function Ie(e,t,n,r){if(!v())return;let o=k();o.logOnce.has(e)||(o.logOnce.add(e),D(t,n,r))}function Le(e){if(!v())return;k().commandsRegistered.add(e),D("info","Command registered",{commandId:e})}function ze(e){if(!v())return;k().commandsInvoked.push({commandId:e,ts:Date.now()}),D("info","Command invoked",{commandId:e})}function We(e,t,n){v()&&(t?D("info","Command completed",{commandId:e}):(D("error","Command failed",{commandId:e,error:n?.message,stack:n?.stack}),k().errors.push({commandId:e,error:n?.message,stack:n?.stack})))}function qe(e,t,n){if(!v())return;k().chunkLoads.push({chunkName:e,stage:t,ts:Date.now(),error:n?n.message||String(n):null}),D(n?"warn":"info",`Chunk ${t}`,{chunkName:e,error:n?.message})}function $e(e,t){if(!v())return;let n=k();n.provider.lastEvent={event:e,ts:Date.now(),meta:t||null},e==="created"&&(n.provider.created=!0),e==="registered"&&(n.provider.registered=!0),e==="hydrated"&&(n.provider.hydrated=!0),D("info",`Provider ${e}`,t)}function Ke(){if(!v())return;let e=k();e.provider.decorationCalls+=1,e.provider.decorationCalls<=3&&D("info","Decoration request observed",{count:e.provider.decorationCalls})}function je(){if(!v())return;let e=k();e.provider.refreshCalls+=1}ce.exports={isWebDiagnosticsEnabled:v,getWebDiagnosticsState:k,diagLog:D,diagLogOnce:Ie,recordCommandRegistration:Le,recordCommandInvocation:ze,recordCommandResult:We,recordChunkEvent:qe,recordProviderEvent:$e,recordDecorationCall:Ke,recordRefreshCall:je}});var ue=B((exports,module)=>{var chunk=null;try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){try{chunk=dynamicRequire("../chunks/utils-shared-chunk")}catch{}try{chunk||(chunk=dynamicRequire("./chunks/utils-shared-chunk"))}catch{}try{chunk||(chunk=dynamicRequire("../chunks/path-utils-chunk"))}catch{}try{chunk||(chunk=dynamicRequire("./chunks/path-utils-chunk"))}catch{}}}catch{}if(chunk&&chunk.normalizePath)module.exports={normalizePath:chunk.normalizePath,getFileName:chunk.getFileName,getExtension:chunk.getExtension,getDirectory:chunk.getDirectory,joinPath:chunk.joinPath,getCacheKey:chunk.getCacheKey,getUriPath:chunk.getUriPath,getRelativePath:chunk.getRelativePath};else{let e=function(s=""){return s?s.replace(/\\/g,"/"):""},t=function(s=""){let h=e(s);return h?h.split("/").filter(Boolean):[]},n=function(s=""){let h=t(s);return h.length?h[h.length-1]:""},r=function(s=""){let h=n(s),m=h.lastIndexOf(".");return m<=0?"":h.substring(m).toLowerCase()},o=function(s=""){let h=e(s),m=h.lastIndexOf("/");return m===-1?"":h.substring(0,m)},i=function(...s){return e(s.filter(Boolean).join("/")).replace(/\/+/g,"/")},a=function(s=""){return e(s).toLowerCase()},u=function(s=""){if(!s)return"";if(typeof s=="string")return s;if(typeof s.fsPath=="string"&&s.fsPath.length>0)return s.fsPath;if(typeof s.path=="string"&&s.path.length>0)return s.path;if(typeof s.toString=="function")try{return s.toString(!0)}catch{return s.toString()}return String(s)},l=function(s="",h=""){let m=e(s),y=e(h);return m&&y.startsWith(m)?y.substring(m.length).replace(/^\/+/,""):y};normalizePath=e,getSegments=t,getFileName=n,getExtension=r,getDirectory=o,joinPath=i,getCacheKey=a,getUriPath=u,getRelativePath=l,module.exports={normalizePath:e,getFileName:n,getExtension:r,getDirectory:o,joinPath:i,getCacheKey:a,getUriPath:u,getRelativePath:l}}var normalizePath,getSegments,getFileName,getExtension,getDirectory,joinPath,getCacheKey,getUriPath,getRelativePath});var pe=B((Rt,he)=>{var le="EXPLORER_DATES_FORCE_VSCODE_FS";function fe(e,t=process.env){return String(t?.[e]||"")==="1"}function L(e){let t=e&&typeof e=="object"?e:null,n=String(t?.scheme||(typeof e=="string"&&/^[a-z][a-z0-9+.-]*:/i.test(e)?e.split(":",1)[0]:"file")).toLowerCase(),r=String(t?.authority||""),o=t?.path||t?.fsPath||(typeof e=="string"?e.replace(/^[a-z][a-z0-9+.-]*:\/\//i,""):"");return{scheme:n,authority:r,path:String(o||"")}}function Ve({uri:e,isWeb:t=!1,remoteName:n="",forceWorkspaceFs:r=fe(le)}={}){let o=L(e),i=o.scheme!=="file",a=!!t,u=!!n,l=!!(r||a||u||i);return{scheme:o.scheme,authority:o.authority,isFileScheme:!i,isVirtual:i,isBrowser:a,isRemote:u,forceWorkspaceFs:!!r,filesystem:l?"workspace.fs":"node.fs",provider:i?o.scheme==="github"||o.scheme==="vscode-vfs"?"github":"virtual":"filesystem"}}function de({uri:e,platform:t=process.platform,caseSensitive:n}={}){return typeof n=="boolean"?n:L(e).scheme!=="file"?!0:t!=="win32"}function He(e,t={}){let n=L(e),r=n.path.replace(/\\/g,"/").replace(/\/+/g,"/"),o=`${n.scheme}://${n.authority}${r}`;return de({uri:e,...t})?o:o.toLowerCase()}function J(e){if(e instanceof Date){let t=e.getTime();return Number.isFinite(t)?t:null}if(typeof e=="number")return Number.isFinite(e)?e:null;if(typeof e=="string"&&e.trim()){let t=Date.parse(e);return Number.isFinite(t)?t:null}return null}function Ge(e){if(!e||typeof e!="object")return null;let t=J(e.mtime),n=J(e.ctime);return{...e,mtimeMs:t,ctimeMs:n}}he.exports={FORCE_WORKSPACE_FS_ENV:le,envFlag:fe,getUriParts:L,getEnvironmentContract:Ve,isCaseSensitive:de,resourceIdentity:He,normalizeTimestamp:J,normalizeStat:Ge}});var De=B((Tt,ke)=>{var z=require("vscode"),{normalizePath:Q,getRelativePath:Xe}=ue(),{diagLogOnce:Je}=X(),{normalizeTimestamp:M,resourceIdentity:Ye}=pe(),Ze={unknown:0,github:1,git:2,fs:3},Z={low:1,medium:2,high:3};function S(e,t,n){try{return e?.get?e.get(t,n):n}catch{return n}}function Qe(e){return{nowMinutes:Number(S(e,"freshnessBucketMinutesNow",60))||60,todayHours:Number(S(e,"freshnessBucketHoursToday",24))||24,twoDays:Number(S(e,"freshnessBucketDaysTwo",2))||2,oneWeek:Number(S(e,"freshnessBucketDaysWeek",7))||7}}function me(e,t){if(!Number.isFinite(e)||e<0)return"unknown";let n=t.nowMinutes*60*1e3,r=t.todayHours*60*60*1e3,o=t.twoDays*24*60*60*1e3,i=t.oneWeek*24*60*60*1e3;return e<=n?"now":e<=r?"today":e<=o?"2d":e<=i?"1w":"stale"}function ge(e){switch(e){case"now":return"now";case"today":return"today";case"2d":return"2d";case"1w":return"1w";case"stale":return"stale";default:return"unknown"}}function ye(e){switch(e){case"fs":return"Filesystem";case"git":return"Git";case"github":return"GitHub";default:return"Unknown"}}function be(e){switch(e){case"now":return"!!";case"today":return"T";case"2d":return"2d";case"1w":return"1w";case"stale":return"~~";default:return"?"}}function et(e,t,n){let r=!!S(n,"freshnessShowUnknown",!0);if(e==="unknown"||t==="unknown")return r?"?":null;let o=be(e);return!o||o==="unknown"?r?"?":null:o}function tt(e){try{let t=M(e);return t===null?null:new Date(t).toISOString().replace("T"," ").replace("Z","")}catch{return null}}function nt(e,t){if(!e)return;let n=S(t,"freshnessTooltipVerbosity","full"),r=S(t,"badge.sourceLabelMode","auto"),o=[],i=ge(e.bucket),a=ye(e.source);if(o.push(`Freshness: ${i}`),e.exactTimestamp){let s=tt(e.exactTimestamp);s&&o.push(`Exact time: ${s}`)}let u=e.source==="fs"&&e.confidence==="high";return(r==="always"||r!=="never"&&!u||r!=="never"&&n==="full")&&o.push(`Source: ${a}`),e.author&&o.push(`Author: ${e.author}`),e.message&&o.push(`Message: ${e.message}`),o.push(`Confidence: ${e.confidence}`),e.reason&&n==="full"&&o.push(`Reason: ${e.reason}`),o.join(` -`)}function rt(e,t,n){if(!Number.isFinite(t)||t<=0)return!1;let r=300*1e3;if(t>n+r)return!1;if(e==="file")return!0;let o=n-t,i=300*1e3,a=365*24*60*60*1e3*10;return!(oa)}function ee({source:e,timestampMs:t,author:n,message:r,confidence:o,reason:i},a){if(!Number.isFinite(t))return{bucket:"unknown",source:e||"unknown",confidence:o||"low",reason:i||"no-timestamp"};let u=Qe(a),l=Date.now()-t;return{bucket:me(l,u),source:e,exactTimestamp:t,author:n||void 0,message:r||void 0,confidence:o,reason:i||void 0}}async function ot(e,t,n){let r=e?.scheme||"file",o=!!S(n,"freshnessAllowVirtualFs",!1);if(r!=="file"&&!o)return{freshness:null,reason:"fs-virtual-disabled"};let i=t?.mtimeMs??M(t?.mtime),a=Date.now();return Number.isFinite(i)?rt(r,i,a)?{freshness:ee({source:"fs",timestampMs:i,confidence:r==="file"?"high":"medium",reason:r==="file"?"fs-trust-high":"fs-trust-medium"},n),reason:null}:{freshness:null,reason:"fs-mtime-untrusted"}:{freshness:null,reason:"fs-mtime-missing"}}async function it(e,t,n){if(!t||typeof t.n!="function")return{freshness:null,reason:"git-provider-missing"};let r;try{r=await t.n(e)}catch(a){return{freshness:null,reason:`git-error:${a?.message||"unknown"}`}}let o=M(r?.timestampMs);return o===null||o<=0?{freshness:null,reason:r?.error||"git-no-timestamp"}:{freshness:ee({source:"git",timestampMs:o,author:r?.author||void 0,message:r?.message||void 0,confidence:"medium",reason:"git-recency"},n),reason:null}}function we(e){if(!e||(e.scheme||"")!=="github")return null;let r=Q(e.path||"").replace(/^\/+/,"").split("/").filter(Boolean);if(r.length<2)return null;let o=r[0],i=r[1],a=r.slice(2).join("/"),u=new URLSearchParams(e.query||""),l=u.get("ref")||u.get("branch")||"HEAD";return{owner:o,repo:i,filePath:a,ref:l}}function st(e){let t=(e||"").indexOf("+");if(t===-1)return"HEAD";let n=e.slice(t+1);try{let r;if(typeof TextDecoder<"u"){let a=new Uint8Array(n.length/2);for(let u=0;u0)return i}catch{}return"HEAD"}function ve(e){if(!e||e.scheme!=="vscode-vfs"||!String(e.authority||"").startsWith("github"))return null;let n=Q(e.path||"").replace(/^\/+/,"").split("/").filter(Boolean);if(n.length<2)return null;let r=n[0],o=n[1],i=n.slice(2).join("/"),a=st(e.authority||"");return{owner:r,repo:o,filePath:i,ref:a}}function at(e){try{let t=z.workspace.workspaceFolders||[];for(let n of t){let r=n?.uri?.scheme;if(r==="github"){let o=we(n.uri);if(!o)continue;let i=Xe(n.uri.path||"",e?.path||"");return{...o,filePath:i}}if(r==="vscode-vfs"&&String(n?.uri?.authority||"").startsWith("github")){let o=ve(n.uri);if(!o)continue;let a=Q(e?.path||"").replace(/^\/+/,"").split("/").filter(Boolean).slice(2).join("/");if(!a)continue;return{...o,filePath:a}}}}catch{}return null}async function ct(e,t){let n=we(e)||ve(e)||at(e);if(!n||!n.owner||!n.repo||!n.filePath)return{freshness:null,reason:"github-context-missing"};let r=`${n.owner}/${n.repo}@${n.ref}:${n.filePath}`,o=`https://api.github.com/repos/${n.owner}/${n.repo}/commits?path=${encodeURIComponent(n.filePath)}&sha=${encodeURIComponent(n.ref)}&per_page=1`,i={Accept:"application/vnd.github+json"};try{let b=z?.authentication&&typeof z.authentication.getSession=="function"?await z.authentication.getSession("github",["repo"],{createIfNone:!1}):null;b?.accessToken&&(i.Authorization=`Bearer ${b.accessToken}`)}catch{}if(typeof fetch!="function")return{freshness:null,reason:"github-fetch-unavailable"};let a;try{a=await fetch(o,{headers:i})}catch(b){return{freshness:null,reason:`github-fetch-error:${b?.message||"unknown"}`}}if(!a||!a.ok)return{freshness:null,reason:a?`github-http-${a.status}`:"github-no-response"};let u;try{u=await a.json()}catch{return{freshness:null,reason:"github-json-error"}}let l=Array.isArray(u)?u[0]:null,s=l?.commit||null,h=s?.author?.name||l?.author?.login||void 0,m=s?.message||void 0,y=M(s?.author?.date);return y===null?{freshness:null,reason:"github-no-timestamp"}:{freshness:ee({source:"github",timestampMs:y,author:h,message:m,confidence:"medium",reason:"github-commit"},t),reason:null,cacheKey:r}}function Y(e,t){return!e||e==="auto"?!0:e==="unknown"?t==="unknown":e===t}async function ut({uri:e,stat:t,provider:n,config:r,workspaceKind:o}){let i=e?.scheme||"file",a=S(r,"freshnessSourcePolicy","auto"),u=[],l=Date.now();if(Y(a,"fs")){let s=await ot(e,t,r);if(u.push({source:"fs",reason:s.reason||null}),s.freshness)return{...s.freshness,attempts:u}}if(Y(a,"git")){let s=await it(e,n,r);if(u.push({source:"git",reason:s.reason||null}),s.freshness)return{...s.freshness,attempts:u}}if(Y(a,"github")){let s=await ct(e,r);if(u.push({source:"github",reason:s.reason||null,cacheKey:s.cacheKey||null}),s.freshness)return{...s.freshness,attempts:u}}return Je("freshness-unknown","info","No trustworthy freshness source available",{scheme:i,workspaceKind:o||"unknown",attempts:u}),{bucket:"unknown",source:"unknown",confidence:"low",reason:"no-source",attempts:u,resolvedAt:l}}function lt(e,t){if(!e)return-1;if(!t)return 1;let n=Z[e.confidence]||0,r=Z[t.confidence]||0;if(n!==r)return n-r;let o=Number(e.exactTimestamp||0),i=Number(t.exactTimestamp||0);return o-i}ke.exports={resolveFreshness:ut,formatBadge:et,formatTooltip:nt,bucketFromAge:me,formatBucketLabel:ge,formatBadgeAge:be,formatSourceLabel:ye,compareFreshness:lt,SOURCE_RANK:Ze,CONFIDENCE_RANK:Z,normalizeTimestamp:M,resourceIdentity:Ye}});var Re=B((Ft,Pe)=>{function ft(){return typeof Date=="function"&&Date.now?Date.now():16409952e5}function Se(e){return!!(e&&typeof e=="object"&&typeof e.getTime=="function")}function dt(e){if(Se(e))return e;if(typeof e=="number")return new Date(e);if(typeof e=="string"){let t=Date.parse(e);return isNaN(t)?new Date:new Date(t)}return new Date}function x(e=""){return e?e.replace(/\\/g,"/"):""}function ht(e=""){let t=x(e);return t?t.split("/").filter(Boolean):[]}function Ce(e=""){let t=ht(e);return t.length?t[t.length-1]:""}function pt(e=""){let t=Ce(e),n=t.lastIndexOf(".");return n<=0?"":t.substring(n).toLowerCase()}function mt(e=""){let t=x(e),n=t.lastIndexOf("/");return n===-1?"":t.substring(0,n)}function gt(...e){return x(e.filter(Boolean).join("/")).replace(/\/+/g,"/")}function yt(e=""){return x(e).toLowerCase()}function bt(e=""){if(!e)return"";if(typeof e=="string")return e;if(typeof e.fsPath=="string"&&e.fsPath.length>0)return e.fsPath;if(typeof e.path=="string"&&e.path.length>0)return e.path;if(typeof e.toString=="function")try{return e.toString(!0)}catch{return e.toString()}return String(e)}function wt(e="",t=""){let n=x(e),r=x(t);return n&&r.startsWith(n)?r.substring(n.length).replace(/^\/+/,""):r}Pe.exports={ensureDate:dt,isDateLike:Se,getCurrentTimestamp:ft,normalizePath:x,getFileName:Ce,getExtension:pt,getDirectory:mt,joinPath:gt,getCacheKey:yt,getUriPath:bt,getRelativePath:wt}});function createDecorationProviderHelpers(provider){let vscode=require("vscode"),{diagLogOnce,diagLog,isWebDiagnosticsEnabled}=X(),{formatBadge,formatTooltip}=De(),decorationDiagCount=0,maxDecorationDiag=20,CONTRIBUTED_CUSTOM_COLOR_TOKENS=new Set(["explorerDates.customColor.veryRecent","explorerDates.customColor.recent","explorerDates.customColor.old"]),isWebRuntime=(()=>{try{return vscode?.env?.uiKind===vscode?.UIKind?.Web}catch{return!1}})(),getFileName,getExtension,normalizePath,getUriPath,ensureDate;try{let e=Re();e&&(getFileName=e.getFileName,getExtension=e.getExtension,normalizePath=e.normalizePath,getUriPath=e.getUriPath,ensureDate=e.ensureDate)}catch{}if(!getFileName||!ensureDate){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function")try{let e=dynamicRequire("../utils/pathUtils"),t=dynamicRequire("../utils/dateHelpers");getFileName=getFileName||e.getFileName,getExtension=getExtension||e.getExtension,normalizePath=normalizePath||e.normalizePath,getUriPath=getUriPath||e.getUriPath,ensureDate=ensureDate||t.ensureDate}catch{}}catch{}getFileName||(getFileName=e=>{let t=String(e||""),n=t.replace(/\\/g,"/").lastIndexOf("/");return n===-1?t:t.substring(n+1)}),getExtension||(getExtension=e=>{let t=String(e||""),n=t.lastIndexOf(".");return n<=0?"":t.substring(n).toLowerCase()}),normalizePath||(normalizePath=(e="")=>(e||"").toString().replace(/\\/g,"/")),getUriPath||(getUriPath=(e="")=>e?typeof e=="string"?e:e?.fsPath?e.fsPath:e?.path?e.path:String(e):""),ensureDate||(ensureDate=e=>e instanceof Date?e:typeof e=="number"?new Date(e):typeof e=="string"?isNaN(Date.parse(e))?new Date:new Date(Date.parse(e)):new Date)}async function provideDecoration(e,t){let n=!1,r=null,o,i=null,a=null,u=null,l=null,s=!1,h=null,m=null,y=null,g=null,b=null,P=null,te=!1,ne=()=>isWebDiagnosticsEnabled&&isWebDiagnosticsEnabled()&&decorationDiagCount{let f=null;try{f=vscode.workspace.getConfiguration("explorerDates")}catch{f=null}let R=f?f.get("colorScheme","none"):"none",c=f?f.get("showDateDecorations",!0):!0,T=typeof provider._performanceMode=="boolean"?provider._performanceMode:f?f.get("performanceMode",!1):!1,O=isWebRuntime&&f?!!f.get("webDiagnosticsBuiltinColors",!1):!1;return{isWeb:isWebRuntime,isCanary:!1,builtinColorFallbackActive:O,colorScheme:R,effectiveColorScheme:R,showDateDecorations:c,performanceMode:T,featureLevel:provider.c,previewSettings:!!provider.e}},Fe=f=>{if(!ne()||n)return;decorationDiagCount+=1,n=!0;let c={...Te(),...f};!c.scheme&&r&&(c.scheme=r),c.effectiveColorScheme||(c.effectiveColorScheme=c.colorScheme),typeof c.hasColor>"u"&&(c.hasColor=!!c.color),typeof c.badge>"u"&&(c.badge=null),typeof c.propagate>"u"&&(c.propagate=null),typeof c.decorationKeys>"u"&&(c.decorationKeys=null),typeof c.nullReason>"u"&&(c.nullReason=null),typeof c.timestampSource>"u"&&(c.timestampSource="not-attempted"),typeof c.gitRecencyAvailable>"u"&&(c.gitRecencyAvailable=!1),typeof c.gitRecencyError>"u"&&(c.gitRecencyError=null),typeof c.resolvedTimestampMs>"u"&&(c.resolvedTimestampMs=null),typeof c.gitRepoMatched>"u"&&(c.gitRepoMatched=null),typeof c.gitPathAttempted>"u"&&(c.gitPathAttempted=null),c.themeTokenSource||(c.isCanary?c.themeTokenSource="canary":c.builtinColorFallbackActive?c.themeTokenSource="builtin-fallback":typeof c.color=="string"&&c.color.startsWith("explorerDates.")?c.themeTokenSource="custom-token":c.color?c.themeTokenSource="builtin-token":c.themeTokenSource=null),diagLog("info","Decoration return sample",c)},xe=f=>{if(!(!ne()||n))try{Fe(f)}catch{}};try{if(provider.r){i="disposed";return}if(!e){i="no-uri";return}let f=e.fsPath||e.path||"";r=e.scheme||"file";let R=vscode.workspace.getConfiguration("explorerDates"),c=R.get("performanceMode",!1);if(c&&typeof c!="boolean")return i="invalid-performanceMode",null;if(f&&f.includes("\0"))return i="invalid-path",null;let T=getUriPath(e);if(!T){i="missing-path";return}let O=provider.o?provider.o(T):getFileName(T)||T,re=normalizePath(T),Ee=r||"file";if(typeof provider.i!="function"){diagLogOnce("decorations-fallback-provider","warn","Decoration fallback active (missing provider helpers)");try{let w=await provider._fileSystem.stat(e);if(!w){i="no-stat";return}let E=w.mtime instanceof Date?w.mtime:w.mtime?new Date(w.mtime):null,W=E&&typeof E.getTime=="function"?E.getTime():NaN;if(!Number.isFinite(W)){i="invalid-stat";return}let A=Date.now()-E.getTime(),q=A<1440*60*1e3?"\u2022":A<10080*60*1e3?"\u25E6":"\xB7",$=`Modified: ${E.toISOString()}`,_=new vscode.FileDecoration(q,$);return o=_,b=q,y=!1,g=null,P=_?.propagate,_}catch{i="fallback-error";return}}if(!provider.i(e,"provideFileDecoration")?.isValid){i="invalid-uri";return}if(await provider.u(e)){i="excluded";return}return o=await provider.l(f,async()=>{if(t?.isCancellationRequested||provider.r){i=t?.isCancellationRequested?"cancelled":"disposed";return}let w=(d,U)=>provider.e&&Object.prototype.hasOwnProperty.call(provider.e,d)?provider.e[d]:vscode.workspace.getConfiguration("explorerDates").get(d,U);if(isWebRuntime&&w("webDiagnosticsCanary",!1)&&isWebDiagnosticsEnabled&&isWebDiagnosticsEnabled()&&decorationDiagCount=provider.s;if(provider.y>provider.s*.8&&$){diagLogOnce("decorations-backpressure","warn","Decoration backpressure fallback active");let d=provider.b(e,Date.now());return b=d?.badge||null,y=!!d?.color,g=d?.color&&d?.color.id?d.color.id:d?.color||null,P=d?.propagate,i="backpressure",d}provider.w(),provider._metrics.cacheMisses++;let C=null;if(!W&&provider._workspaceIntelligence?.incrementalIndexer){let d=provider._workspaceIntelligence.incrementalIndexer.getIndexedStat(f);d&&(C=d)}let oe=Date.now();if(!C){try{C=await provider._fileSystem.stat(e)}catch(d){if(provider._metrics.fileStatTimeMs+=Date.now()-oe,provider._metrics.fileStatCalls++,provider.v(d)){i="stat-not-found";return}if(Ee!=="file"){i="stat-failed";return}throw i="stat-failed",d}provider._workspaceIntelligence?.incrementalIndexer&&provider._workspaceIntelligence.incrementalIndexer.primeFromStat(e,C)}if(provider._metrics.fileStatTimeMs+=Date.now()-oe,provider._metrics.fileStatCalls++,!(typeof C.isFile=="function"?C.isFile():!0)){i="not-regular-file";return}s=!0;let p=null;try{typeof provider.a=="function"&&(p=await provider.a(e,C,{filePath:f,fileLabel:O}))}catch(d){l={source:"unknown",gitAvailable:!1,gitError:d?.message?`resolver-error:${d.message}`:"resolver-error",repoMatched:null,pathAttempted:null}}if((!p||p.bucket==="unknown"||p.source==="unknown")&&!w("freshnessShowUnknown",!0)){i="freshness-unknown";return}let K=w("colorScheme","none");provider._performanceMode&&K!=="custom"&&(K="none");let Ne=w("fileSizeFormat","auto"),N=provider.k,Oe=N&&typeof N.t=="function"?N.t:provider.t,Ae=N&&typeof N.acquireDecorationFromPool=="function"?N.acquireDecorationFromPool:provider.D,j=formatBadge(p?.bucket||"unknown",p?.source||"unknown",R,p?.confidence||"low");if(!j){i="badge-suppressed";return}let F=p?.exactTimestamp?provider.S(new Date(p.exactTimestamp),K,f):void 0,Be=formatTooltip(p,R)||await Oe({filePath:f,resourceUri:e,stat:C,badgeDetails:{},gitBlame:null,shouldUseAccessibleTooltips:!1,fileSizeFormat:Ne,isCodeFile:!1}),V=Ae({badge:j,tooltip:Be,color:F});return g=F&&typeof F=="object"&&"id"in F?F.id:F||null,y=!!F,b=String(j||""),P=V?.propagate,typeof g=="string"&&g.startsWith("explorerDates.customColor.")&&!CONTRIBUTED_CUSTOM_COLOR_TOKENS.has(g)&&diagLogOnce(`missing-custom-color-${g}`,"warn","Custom color token missing from contributes.colors",{colorId:g,knownTokens:Array.from(CONTRIBUTED_CUSTOM_COLOR_TOKENS)}),h=p?.exactTimestamp||null,l=l||{source:p?.source||"unknown",bucket:p?.bucket||"unknown",confidence:p?.confidence||"low",reason:p?.reason||null,attempts:p?.attempts||null,gitAvailable:p?.source==="git",gitError:null,repoMatched:null,pathAttempted:null},provider.C(A,V,O,e,p),V}),o}catch(f){a=f?.name||"Error",u=f?.message||String(f),i=i||"exception";return}finally{if(o){if(m==null)try{m=Object.keys(o||{})}catch{m=null}if(b==null&&typeof o.badge<"u"&&(b=o.badge),P==null&&typeof o.propagate<"u"&&(P=o.propagate),g==null&&typeof o.color<"u")try{g=o.color&&o.color.id?o.color.id:o.color}catch{g=o.color}y==null&&typeof g<"u"&&(y=!!g)}let f={uri:e?getFileName(getUriPath(e)||""):null,scheme:r,isCanary:te,badge:b,hasColor:y,color:g,propagate:P,decorationKeys:m,nullReason:o?null:i||"unknown",timestampSource:l?.source||(s?"none":"not-attempted"),gitRecencyAvailable:!!l?.gitAvailable,gitRecencyError:l?.gitError||null,resolvedTimestampMs:h,gitRepoMatched:l?.repoMatched??null,gitPathAttempted:l?.pathAttempted||null,freshnessBucket:l?.bucket||null,freshnessSource:l?.source||null,freshnessConfidence:l?.confidence||null,freshnessReason:l?.reason||null,freshnessAttempts:l?.attempts||null,exceptionName:a,exceptionMessage:u};xe(f)}}return{provideDecoration}}module.exports={createDecorationProviderHelpers}; +var B=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var X=B((Pt,ce)=>{var se=typeof process<"u"&&process.env?process.env:{},ie="[ExplorerDates][WebDiag]",G="__explorerDatesWebDiagnostics",I;function Me(){try{let e=require("vscode");return e?.env?.uiKind===e?.UIKind?.Web}catch{return se.VSCODE_WEB==="true"}}function v(){return I!==void 0||(I=se.EXPLORER_DATES_WEB_DIAG==="1"||Me()),I}function ae(){return{enabled:v(),logs:[],logOnce:new Set,commandsRegistered:new Set,commandsInvoked:[],errors:[],chunkLoads:[],provider:{created:!1,registered:!1,hydrated:!1,decorationCalls:0,refreshCalls:0,lastEvent:null}}}var _e=ae();function k(){return typeof globalThis<"u"?(globalThis[G]||(globalThis[G]=ae()),globalThis[G]):_e}function Ue(e){try{return JSON.stringify(e)}catch{return String(e)}}function D(e,t,n){if(!v())return;let o=k(),r={ts:new Date().toISOString(),level:e,message:t,meta:n||null};o.logs.push(r),o.logs.length>400&&o.logs.shift();let i=n?`${ie} ${t} ${Ue(n)}`:`${ie} ${t}`,a=console[e]||console.info;try{a(i)}catch{}}function Ie(e,t,n,o){if(!v())return;let r=k();r.logOnce.has(e)||(r.logOnce.add(e),D(t,n,o))}function Le(e){if(!v())return;k().commandsRegistered.add(e),D("info","Command registered",{commandId:e})}function ze(e){if(!v())return;k().commandsInvoked.push({commandId:e,ts:Date.now()}),D("info","Command invoked",{commandId:e})}function We(e,t,n,o,r){if(!v())return;let i=o||(t?"behavioral-success":"unhandled-command-failure"),a=n?{name:n.name||"Error",message:n.message||String(n),code:n.code||null}:null;t?D("info","Command completed",{commandId:e,outcomeCategory:i}):(D("error","Command failed",{commandId:e,outcomeCategory:i,error:a,errorContext:r||null}),k().errors.push({commandId:e,outcomeCategory:i,error:a,errorContext:r||null}))}function qe(e,t,n){if(!v())return;k().chunkLoads.push({chunkName:e,stage:t,ts:Date.now(),error:n?n.message||String(n):null}),D(n?"warn":"info",`Chunk ${t}`,{chunkName:e,error:n?.message})}function $e(e,t){if(!v())return;let n=k();n.provider.lastEvent={event:e,ts:Date.now(),meta:t||null},e==="created"&&(n.provider.created=!0),e==="registered"&&(n.provider.registered=!0),e==="hydrated"&&(n.provider.hydrated=!0),D("info",`Provider ${e}`,t)}function Ke(){if(!v())return;let e=k();e.provider.decorationCalls+=1,e.provider.decorationCalls<=3&&D("info","Decoration request observed",{count:e.provider.decorationCalls})}function je(){if(!v())return;let e=k();e.provider.refreshCalls+=1}ce.exports={isWebDiagnosticsEnabled:v,getWebDiagnosticsState:k,diagLog:D,diagLogOnce:Ie,recordCommandRegistration:Le,recordCommandInvocation:ze,recordCommandResult:We,recordChunkEvent:qe,recordProviderEvent:$e,recordDecorationCall:Ke,recordRefreshCall:je}});var ue=B((exports,module)=>{var chunk=null;try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){try{chunk=dynamicRequire("../chunks/utils-shared-chunk")}catch{}try{chunk||(chunk=dynamicRequire("./chunks/utils-shared-chunk"))}catch{}try{chunk||(chunk=dynamicRequire("../chunks/path-utils-chunk"))}catch{}try{chunk||(chunk=dynamicRequire("./chunks/path-utils-chunk"))}catch{}}}catch{}if(chunk&&chunk.normalizePath)module.exports={normalizePath:chunk.normalizePath,getFileName:chunk.getFileName,getExtension:chunk.getExtension,getDirectory:chunk.getDirectory,joinPath:chunk.joinPath,getCacheKey:chunk.getCacheKey,getUriPath:chunk.getUriPath,getRelativePath:chunk.getRelativePath};else{let e=function(s=""){return s?s.replace(/\\/g,"/"):""},t=function(s=""){let h=e(s);return h?h.split("/").filter(Boolean):[]},n=function(s=""){let h=t(s);return h.length?h[h.length-1]:""},o=function(s=""){let h=n(s),m=h.lastIndexOf(".");return m<=0?"":h.substring(m).toLowerCase()},r=function(s=""){let h=e(s),m=h.lastIndexOf("/");return m===-1?"":h.substring(0,m)},i=function(...s){return e(s.filter(Boolean).join("/")).replace(/\/+/g,"/")},a=function(s=""){return e(s).toLowerCase()},u=function(s=""){if(!s)return"";if(typeof s=="string")return s;if(typeof s.fsPath=="string"&&s.fsPath.length>0)return s.fsPath;if(typeof s.path=="string"&&s.path.length>0)return s.path;if(typeof s.toString=="function")try{return s.toString(!0)}catch{return s.toString()}return String(s)},l=function(s="",h=""){let m=e(s),y=e(h);return m&&y.startsWith(m)?y.substring(m.length).replace(/^\/+/,""):y};normalizePath=e,getSegments=t,getFileName=n,getExtension=o,getDirectory=r,joinPath=i,getCacheKey=a,getUriPath=u,getRelativePath=l,module.exports={normalizePath:e,getFileName:n,getExtension:o,getDirectory:r,joinPath:i,getCacheKey:a,getUriPath:u,getRelativePath:l}}var normalizePath,getSegments,getFileName,getExtension,getDirectory,joinPath,getCacheKey,getUriPath,getRelativePath});var pe=B((Rt,he)=>{var le="EXPLORER_DATES_FORCE_VSCODE_FS";function fe(e,t=process.env){return String(t?.[e]||"")==="1"}function L(e){let t=e&&typeof e=="object"?e:null,n=String(t?.scheme||(typeof e=="string"&&/^[a-z][a-z0-9+.-]*:/i.test(e)?e.split(":",1)[0]:"file")).toLowerCase(),o=String(t?.authority||""),r=t?.path||t?.fsPath||(typeof e=="string"?e.replace(/^[a-z][a-z0-9+.-]*:\/\//i,""):"");return{scheme:n,authority:o,path:String(r||"")}}function Ve({uri:e,isWeb:t=!1,remoteName:n="",forceWorkspaceFs:o=fe(le)}={}){let r=L(e),i=r.scheme!=="file",a=!!t,u=!!n,l=!!(o||a||u||i);return{scheme:r.scheme,authority:r.authority,isFileScheme:!i,isVirtual:i,isBrowser:a,isRemote:u,forceWorkspaceFs:!!o,filesystem:l?"workspace.fs":"node.fs",provider:i?r.scheme==="github"||r.scheme==="vscode-vfs"?"github":"virtual":"filesystem"}}function de({uri:e,platform:t=process.platform,caseSensitive:n}={}){return typeof n=="boolean"?n:L(e).scheme!=="file"?!0:t!=="win32"}function He(e,t={}){let n=L(e),o=n.path.replace(/\\/g,"/").replace(/\/+/g,"/"),r=`${n.scheme}://${n.authority}${o}`;return de({uri:e,...t})?r:r.toLowerCase()}function J(e){if(e instanceof Date){let t=e.getTime();return Number.isFinite(t)?t:null}if(typeof e=="number")return Number.isFinite(e)?e:null;if(typeof e=="string"&&e.trim()){let t=Date.parse(e);return Number.isFinite(t)?t:null}return null}function Ge(e){if(!e||typeof e!="object")return null;let t=J(e.mtime),n=J(e.ctime);return{...e,mtimeMs:t,ctimeMs:n}}he.exports={FORCE_WORKSPACE_FS_ENV:le,envFlag:fe,getUriParts:L,getEnvironmentContract:Ve,isCaseSensitive:de,resourceIdentity:He,normalizeTimestamp:J,normalizeStat:Ge}});var De=B((Tt,ke)=>{var z=require("vscode"),{normalizePath:Q,getRelativePath:Xe}=ue(),{diagLogOnce:Je}=X(),{normalizeTimestamp:M,resourceIdentity:Ye}=pe(),Ze={unknown:0,github:1,git:2,fs:3},Z={low:1,medium:2,high:3};function S(e,t,n){try{return e?.get?e.get(t,n):n}catch{return n}}function Qe(e){return{nowMinutes:Number(S(e,"freshnessBucketMinutesNow",60))||60,todayHours:Number(S(e,"freshnessBucketHoursToday",24))||24,twoDays:Number(S(e,"freshnessBucketDaysTwo",2))||2,oneWeek:Number(S(e,"freshnessBucketDaysWeek",7))||7}}function me(e,t){if(!Number.isFinite(e)||e<0)return"unknown";let n=t.nowMinutes*60*1e3,o=t.todayHours*60*60*1e3,r=t.twoDays*24*60*60*1e3,i=t.oneWeek*24*60*60*1e3;return e<=n?"now":e<=o?"today":e<=r?"2d":e<=i?"1w":"stale"}function ge(e){switch(e){case"now":return"now";case"today":return"today";case"2d":return"2d";case"1w":return"1w";case"stale":return"stale";default:return"unknown"}}function ye(e){switch(e){case"fs":return"Filesystem";case"git":return"Git";case"github":return"GitHub";default:return"Unknown"}}function be(e){switch(e){case"now":return"!!";case"today":return"T";case"2d":return"2d";case"1w":return"1w";case"stale":return"~~";default:return"?"}}function et(e,t,n){let o=!!S(n,"freshnessShowUnknown",!0);if(e==="unknown"||t==="unknown")return o?"?":null;let r=be(e);return!r||r==="unknown"?o?"?":null:r}function tt(e){try{let t=M(e);return t===null?null:new Date(t).toISOString().replace("T"," ").replace("Z","")}catch{return null}}function nt(e,t){if(!e)return;let n=S(t,"freshnessTooltipVerbosity","full"),o=S(t,"badge.sourceLabelMode","auto"),r=[],i=ge(e.bucket),a=ye(e.source);if(r.push(`Freshness: ${i}`),e.exactTimestamp){let s=tt(e.exactTimestamp);s&&r.push(`Exact time: ${s}`)}let u=e.source==="fs"&&e.confidence==="high";return(o==="always"||o!=="never"&&!u||o!=="never"&&n==="full")&&r.push(`Source: ${a}`),e.author&&r.push(`Author: ${e.author}`),e.message&&r.push(`Message: ${e.message}`),r.push(`Confidence: ${e.confidence}`),e.reason&&n==="full"&&r.push(`Reason: ${e.reason}`),r.join(` +`)}function rt(e,t,n){if(!Number.isFinite(t)||t<=0)return!1;let o=300*1e3;if(t>n+o)return!1;if(e==="file")return!0;let r=n-t,i=300*1e3,a=365*24*60*60*1e3*10;return!(ra)}function ee({source:e,timestampMs:t,author:n,message:o,confidence:r,reason:i},a){if(!Number.isFinite(t))return{bucket:"unknown",source:e||"unknown",confidence:r||"low",reason:i||"no-timestamp"};let u=Qe(a),l=Date.now()-t;return{bucket:me(l,u),source:e,exactTimestamp:t,author:n||void 0,message:o||void 0,confidence:r,reason:i||void 0}}async function ot(e,t,n){let o=e?.scheme||"file",r=!!S(n,"freshnessAllowVirtualFs",!1);if(o!=="file"&&!r)return{freshness:null,reason:"fs-virtual-disabled"};let i=t?.mtimeMs??M(t?.mtime),a=Date.now();return Number.isFinite(i)?rt(o,i,a)?{freshness:ee({source:"fs",timestampMs:i,confidence:o==="file"?"high":"medium",reason:o==="file"?"fs-trust-high":"fs-trust-medium"},n),reason:null}:{freshness:null,reason:"fs-mtime-untrusted"}:{freshness:null,reason:"fs-mtime-missing"}}async function it(e,t,n){if(!t||typeof t.n!="function")return{freshness:null,reason:"git-provider-missing"};let o;try{o=await t.n(e)}catch(a){return{freshness:null,reason:`git-error:${a?.message||"unknown"}`}}let r=M(o?.timestampMs);return r===null||r<=0?{freshness:null,reason:o?.error||"git-no-timestamp"}:{freshness:ee({source:"git",timestampMs:r,author:o?.author||void 0,message:o?.message||void 0,confidence:"medium",reason:"git-recency"},n),reason:null}}function we(e){if(!e||(e.scheme||"")!=="github")return null;let o=Q(e.path||"").replace(/^\/+/,"").split("/").filter(Boolean);if(o.length<2)return null;let r=o[0],i=o[1],a=o.slice(2).join("/"),u=new URLSearchParams(e.query||""),l=u.get("ref")||u.get("branch")||"HEAD";return{owner:r,repo:i,filePath:a,ref:l}}function st(e){let t=(e||"").indexOf("+");if(t===-1)return"HEAD";let n=e.slice(t+1);try{let o;if(typeof TextDecoder<"u"){let a=new Uint8Array(n.length/2);for(let u=0;u0)return i}catch{}return"HEAD"}function ve(e){if(!e||e.scheme!=="vscode-vfs"||!String(e.authority||"").startsWith("github"))return null;let n=Q(e.path||"").replace(/^\/+/,"").split("/").filter(Boolean);if(n.length<2)return null;let o=n[0],r=n[1],i=n.slice(2).join("/"),a=st(e.authority||"");return{owner:o,repo:r,filePath:i,ref:a}}function at(e){try{let t=z.workspace.workspaceFolders||[];for(let n of t){let o=n?.uri?.scheme;if(o==="github"){let r=we(n.uri);if(!r)continue;let i=Xe(n.uri.path||"",e?.path||"");return{...r,filePath:i}}if(o==="vscode-vfs"&&String(n?.uri?.authority||"").startsWith("github")){let r=ve(n.uri);if(!r)continue;let a=Q(e?.path||"").replace(/^\/+/,"").split("/").filter(Boolean).slice(2).join("/");if(!a)continue;return{...r,filePath:a}}}}catch{}return null}async function ct(e,t){let n=we(e)||ve(e)||at(e);if(!n||!n.owner||!n.repo||!n.filePath)return{freshness:null,reason:"github-context-missing"};let o=`${n.owner}/${n.repo}@${n.ref}:${n.filePath}`,r=`https://api.github.com/repos/${n.owner}/${n.repo}/commits?path=${encodeURIComponent(n.filePath)}&sha=${encodeURIComponent(n.ref)}&per_page=1`,i={Accept:"application/vnd.github+json"};try{let b=z?.authentication&&typeof z.authentication.getSession=="function"?await z.authentication.getSession("github",["repo"],{createIfNone:!1}):null;b?.accessToken&&(i.Authorization=`Bearer ${b.accessToken}`)}catch{}if(typeof fetch!="function")return{freshness:null,reason:"github-fetch-unavailable"};let a;try{a=await fetch(r,{headers:i})}catch(b){return{freshness:null,reason:`github-fetch-error:${b?.message||"unknown"}`}}if(!a||!a.ok)return{freshness:null,reason:a?`github-http-${a.status}`:"github-no-response"};let u;try{u=await a.json()}catch{return{freshness:null,reason:"github-json-error"}}let l=Array.isArray(u)?u[0]:null,s=l?.commit||null,h=s?.author?.name||l?.author?.login||void 0,m=s?.message||void 0,y=M(s?.author?.date);return y===null?{freshness:null,reason:"github-no-timestamp"}:{freshness:ee({source:"github",timestampMs:y,author:h,message:m,confidence:"medium",reason:"github-commit"},t),reason:null,cacheKey:o}}function Y(e,t){return!e||e==="auto"?!0:e==="unknown"?t==="unknown":e===t}async function ut({uri:e,stat:t,provider:n,config:o,workspaceKind:r}){let i=e?.scheme||"file",a=S(o,"freshnessSourcePolicy","auto"),u=[],l=Date.now();if(Y(a,"fs")){let s=await ot(e,t,o);if(u.push({source:"fs",reason:s.reason||null}),s.freshness)return{...s.freshness,attempts:u}}if(Y(a,"git")){let s=await it(e,n,o);if(u.push({source:"git",reason:s.reason||null}),s.freshness)return{...s.freshness,attempts:u}}if(Y(a,"github")){let s=await ct(e,o);if(u.push({source:"github",reason:s.reason||null,cacheKey:s.cacheKey||null}),s.freshness)return{...s.freshness,attempts:u}}return Je("freshness-unknown","info","No trustworthy freshness source available",{scheme:i,workspaceKind:r||"unknown",attempts:u}),{bucket:"unknown",source:"unknown",confidence:"low",reason:"no-source",attempts:u,resolvedAt:l}}function lt(e,t){if(!e)return-1;if(!t)return 1;let n=Z[e.confidence]||0,o=Z[t.confidence]||0;if(n!==o)return n-o;let r=Number(e.exactTimestamp||0),i=Number(t.exactTimestamp||0);return r-i}ke.exports={resolveFreshness:ut,formatBadge:et,formatTooltip:nt,bucketFromAge:me,formatBucketLabel:ge,formatBadgeAge:be,formatSourceLabel:ye,compareFreshness:lt,SOURCE_RANK:Ze,CONFIDENCE_RANK:Z,normalizeTimestamp:M,resourceIdentity:Ye}});var Re=B((Ft,Pe)=>{function ft(){return typeof Date=="function"&&Date.now?Date.now():16409952e5}function Se(e){return!!(e&&typeof e=="object"&&typeof e.getTime=="function")}function dt(e){if(Se(e))return e;if(typeof e=="number")return new Date(e);if(typeof e=="string"){let t=Date.parse(e);return isNaN(t)?new Date:new Date(t)}return new Date}function E(e=""){return e?e.replace(/\\/g,"/"):""}function ht(e=""){let t=E(e);return t?t.split("/").filter(Boolean):[]}function Ce(e=""){let t=ht(e);return t.length?t[t.length-1]:""}function pt(e=""){let t=Ce(e),n=t.lastIndexOf(".");return n<=0?"":t.substring(n).toLowerCase()}function mt(e=""){let t=E(e),n=t.lastIndexOf("/");return n===-1?"":t.substring(0,n)}function gt(...e){return E(e.filter(Boolean).join("/")).replace(/\/+/g,"/")}function yt(e=""){return E(e).toLowerCase()}function bt(e=""){if(!e)return"";if(typeof e=="string")return e;if(typeof e.fsPath=="string"&&e.fsPath.length>0)return e.fsPath;if(typeof e.path=="string"&&e.path.length>0)return e.path;if(typeof e.toString=="function")try{return e.toString(!0)}catch{return e.toString()}return String(e)}function wt(e="",t=""){let n=E(e),o=E(t);return n&&o.startsWith(n)?o.substring(n.length).replace(/^\/+/,""):o}Pe.exports={ensureDate:dt,isDateLike:Se,getCurrentTimestamp:ft,normalizePath:E,getFileName:Ce,getExtension:pt,getDirectory:mt,joinPath:gt,getCacheKey:yt,getUriPath:bt,getRelativePath:wt}});function createDecorationProviderHelpers(provider){let vscode=require("vscode"),{diagLogOnce,diagLog,isWebDiagnosticsEnabled}=X(),{formatBadge,formatTooltip}=De(),decorationDiagCount=0,maxDecorationDiag=20,CONTRIBUTED_CUSTOM_COLOR_TOKENS=new Set(["explorerDates.customColor.veryRecent","explorerDates.customColor.recent","explorerDates.customColor.old"]),isWebRuntime=(()=>{try{return vscode?.env?.uiKind===vscode?.UIKind?.Web}catch{return!1}})(),getFileName,getExtension,normalizePath,getUriPath,ensureDate;try{let e=Re();e&&(getFileName=e.getFileName,getExtension=e.getExtension,normalizePath=e.normalizePath,getUriPath=e.getUriPath,ensureDate=e.ensureDate)}catch{}if(!getFileName||!ensureDate){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function")try{let e=dynamicRequire("../utils/pathUtils"),t=dynamicRequire("../utils/dateHelpers");getFileName=getFileName||e.getFileName,getExtension=getExtension||e.getExtension,normalizePath=normalizePath||e.normalizePath,getUriPath=getUriPath||e.getUriPath,ensureDate=ensureDate||t.ensureDate}catch{}}catch{}getFileName||(getFileName=e=>{let t=String(e||""),n=t.replace(/\\/g,"/").lastIndexOf("/");return n===-1?t:t.substring(n+1)}),getExtension||(getExtension=e=>{let t=String(e||""),n=t.lastIndexOf(".");return n<=0?"":t.substring(n).toLowerCase()}),normalizePath||(normalizePath=(e="")=>(e||"").toString().replace(/\\/g,"/")),getUriPath||(getUriPath=(e="")=>e?typeof e=="string"?e:e?.fsPath?e.fsPath:e?.path?e.path:String(e):""),ensureDate||(ensureDate=e=>e instanceof Date?e:typeof e=="number"?new Date(e):typeof e=="string"?isNaN(Date.parse(e))?new Date:new Date(Date.parse(e)):new Date)}async function provideDecoration(e,t){let n=!1,o=null,r,i=null,a=null,u=null,l=null,s=!1,h=null,m=null,y=null,g=null,b=null,P=null,te=!1,ne=()=>isWebDiagnosticsEnabled&&isWebDiagnosticsEnabled()&&decorationDiagCount{let f=null;try{f=vscode.workspace.getConfiguration("explorerDates")}catch{f=null}let R=f?f.get("colorScheme","none"):"none",c=f?f.get("showDateDecorations",!0):!0,T=typeof provider._performanceMode=="boolean"?provider._performanceMode:f?f.get("performanceMode",!1):!1,O=isWebRuntime&&f?!!f.get("webDiagnosticsBuiltinColors",!1):!1;return{isWeb:isWebRuntime,isCanary:!1,builtinColorFallbackActive:O,colorScheme:R,effectiveColorScheme:R,showDateDecorations:c,performanceMode:T,featureLevel:provider.c,previewSettings:!!provider.e}},Fe=f=>{if(!ne()||n)return;decorationDiagCount+=1,n=!0;let c={...Te(),...f};!c.scheme&&o&&(c.scheme=o),c.effectiveColorScheme||(c.effectiveColorScheme=c.colorScheme),typeof c.hasColor>"u"&&(c.hasColor=!!c.color),typeof c.badge>"u"&&(c.badge=null),typeof c.propagate>"u"&&(c.propagate=null),typeof c.decorationKeys>"u"&&(c.decorationKeys=null),typeof c.nullReason>"u"&&(c.nullReason=null),typeof c.timestampSource>"u"&&(c.timestampSource="not-attempted"),typeof c.gitRecencyAvailable>"u"&&(c.gitRecencyAvailable=!1),typeof c.gitRecencyError>"u"&&(c.gitRecencyError=null),typeof c.resolvedTimestampMs>"u"&&(c.resolvedTimestampMs=null),typeof c.gitRepoMatched>"u"&&(c.gitRepoMatched=null),typeof c.gitPathAttempted>"u"&&(c.gitPathAttempted=null),c.themeTokenSource||(c.isCanary?c.themeTokenSource="canary":c.builtinColorFallbackActive?c.themeTokenSource="builtin-fallback":typeof c.color=="string"&&c.color.startsWith("explorerDates.")?c.themeTokenSource="custom-token":c.color?c.themeTokenSource="builtin-token":c.themeTokenSource=null),diagLog("info","Decoration return sample",c)},Ee=f=>{if(!(!ne()||n))try{Fe(f)}catch{}};try{if(provider.r){i="disposed";return}if(!e){i="no-uri";return}let f=e.fsPath||e.path||"";o=e.scheme||"file";let R=vscode.workspace.getConfiguration("explorerDates"),c=R.get("performanceMode",!1);if(c&&typeof c!="boolean")return i="invalid-performanceMode",null;if(f&&f.includes("\0"))return i="invalid-path",null;let T=getUriPath(e);if(!T){i="missing-path";return}let O=provider.o?provider.o(T):getFileName(T)||T,re=normalizePath(T),xe=o||"file";if(typeof provider.i!="function"){diagLogOnce("decorations-fallback-provider","warn","Decoration fallback active (missing provider helpers)");try{let w=await provider._fileSystem.stat(e);if(!w){i="no-stat";return}let x=w.mtime instanceof Date?w.mtime:w.mtime?new Date(w.mtime):null,W=x&&typeof x.getTime=="function"?x.getTime():NaN;if(!Number.isFinite(W)){i="invalid-stat";return}let A=Date.now()-x.getTime(),q=A<1440*60*1e3?"\u2022":A<10080*60*1e3?"\u25E6":"\xB7",$=`Modified: ${x.toISOString()}`,_=new vscode.FileDecoration(q,$);return r=_,b=q,y=!1,g=null,P=_?.propagate,_}catch{i="fallback-error";return}}if(!provider.i(e,"provideFileDecoration")?.isValid){i="invalid-uri";return}if(await provider.u(e)){i="excluded";return}return r=await provider.l(f,async()=>{if(t?.isCancellationRequested||provider.r){i=t?.isCancellationRequested?"cancelled":"disposed";return}let w=(d,U)=>provider.e&&Object.prototype.hasOwnProperty.call(provider.e,d)?provider.e[d]:vscode.workspace.getConfiguration("explorerDates").get(d,U);if(isWebRuntime&&w("webDiagnosticsCanary",!1)&&isWebDiagnosticsEnabled&&isWebDiagnosticsEnabled()&&decorationDiagCount=provider.s;if(provider.y>provider.s*.8&&$){diagLogOnce("decorations-backpressure","warn","Decoration backpressure fallback active");let d=provider.b(e,Date.now());return b=d?.badge||null,y=!!d?.color,g=d?.color&&d?.color.id?d.color.id:d?.color||null,P=d?.propagate,i="backpressure",d}provider.w(),provider._metrics.cacheMisses++;let C=null;if(!W&&provider._workspaceIntelligence?.incrementalIndexer){let d=provider._workspaceIntelligence.incrementalIndexer.getIndexedStat(f);d&&(C=d)}let oe=Date.now();if(!C){try{C=await provider._fileSystem.stat(e)}catch(d){if(provider._metrics.fileStatTimeMs+=Date.now()-oe,provider._metrics.fileStatCalls++,provider.v(d)){i="stat-not-found";return}if(xe!=="file"){i="stat-failed";return}throw i="stat-failed",d}provider._workspaceIntelligence?.incrementalIndexer&&provider._workspaceIntelligence.incrementalIndexer.primeFromStat(e,C)}if(provider._metrics.fileStatTimeMs+=Date.now()-oe,provider._metrics.fileStatCalls++,!(typeof C.isFile=="function"?C.isFile():!0)){i="not-regular-file";return}s=!0;let p=null;try{typeof provider.a=="function"&&(p=await provider.a(e,C,{filePath:f,fileLabel:O}))}catch(d){l={source:"unknown",gitAvailable:!1,gitError:d?.message?`resolver-error:${d.message}`:"resolver-error",repoMatched:null,pathAttempted:null}}if((!p||p.bucket==="unknown"||p.source==="unknown")&&!w("freshnessShowUnknown",!0)){i="freshness-unknown";return}let K=w("colorScheme","none");provider._performanceMode&&K!=="custom"&&(K="none");let Ne=w("fileSizeFormat","auto"),N=provider.k,Oe=N&&typeof N.t=="function"?N.t:provider.t,Ae=N&&typeof N.acquireDecorationFromPool=="function"?N.acquireDecorationFromPool:provider.D,j=formatBadge(p?.bucket||"unknown",p?.source||"unknown",R,p?.confidence||"low");if(!j){i="badge-suppressed";return}let F=p?.exactTimestamp?provider.S(new Date(p.exactTimestamp),K,f):void 0,Be=formatTooltip(p,R)||await Oe({filePath:f,resourceUri:e,stat:C,badgeDetails:{},gitBlame:null,shouldUseAccessibleTooltips:!1,fileSizeFormat:Ne,isCodeFile:!1}),V=Ae({badge:j,tooltip:Be,color:F});return g=F&&typeof F=="object"&&"id"in F?F.id:F||null,y=!!F,b=String(j||""),P=V?.propagate,typeof g=="string"&&g.startsWith("explorerDates.customColor.")&&!CONTRIBUTED_CUSTOM_COLOR_TOKENS.has(g)&&diagLogOnce(`missing-custom-color-${g}`,"warn","Custom color token missing from contributes.colors",{colorId:g,knownTokens:Array.from(CONTRIBUTED_CUSTOM_COLOR_TOKENS)}),h=p?.exactTimestamp||null,l=l||{source:p?.source||"unknown",bucket:p?.bucket||"unknown",confidence:p?.confidence||"low",reason:p?.reason||null,attempts:p?.attempts||null,gitAvailable:p?.source==="git",gitError:null,repoMatched:null,pathAttempted:null},provider.C(A,V,O,e,p),V}),r}catch(f){a=f?.name||"Error",u=f?.message||String(f),i=i||"exception";return}finally{if(r){if(m==null)try{m=Object.keys(r||{})}catch{m=null}if(b==null&&typeof r.badge<"u"&&(b=r.badge),P==null&&typeof r.propagate<"u"&&(P=r.propagate),g==null&&typeof r.color<"u")try{g=r.color&&r.color.id?r.color.id:r.color}catch{g=r.color}y==null&&typeof g<"u"&&(y=!!g)}let f={uri:e?getFileName(getUriPath(e)||""):null,scheme:o,isCanary:te,badge:b,hasColor:y,color:g,propagate:P,decorationKeys:m,nullReason:r?null:i||"unknown",timestampSource:l?.source||(s?"none":"not-attempted"),gitRecencyAvailable:!!l?.gitAvailable,gitRecencyError:l?.gitError||null,resolvedTimestampMs:h,gitRepoMatched:l?.repoMatched??null,gitPathAttempted:l?.pathAttempted||null,freshnessBucket:l?.bucket||null,freshnessSource:l?.source||null,freshnessConfidence:l?.confidence||null,freshnessReason:l?.reason||null,freshnessAttempts:l?.attempts||null,exceptionName:a,exceptionMessage:u};Ee(f)}}return{provideDecoration}}module.exports={createDecorationProviderHelpers}; diff --git a/dist/chunks/decorationsAdvanced.js b/dist/chunks/decorationsAdvanced.js index 98ec38d..b408732 100644 --- a/dist/chunks/decorationsAdvanced.js +++ b/dist/chunks/decorationsAdvanced.js @@ -1,4 +1,4 @@ var Wt=Object.create;var Ae=Object.defineProperty;var xt=Object.getOwnPropertyDescriptor;var Mt=Object.getOwnPropertyNames;var It=Object.getPrototypeOf,Lt=Object.prototype.hasOwnProperty;var D=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var Nt=(e,t,r,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of Mt(t))!Lt.call(e,n)&&n!==r&&Ae(e,n,{get:()=>t[n],enumerable:!(a=xt(t,n))||a.enumerable});return e};var G=(e,t,r)=>(r=e!=null?Wt(It(e)):{},Nt(t||!e||!e.__esModule?Ae(r,"default",{value:e,enumerable:!0}):r,e));var Y=D((exports,module)=>{var FEATURE_FLAGS_GLOBAL_KEY="__explorerDatesFeatureFlags";function registerFeatureFlagsGlobal(e){if(e)try{typeof globalThis<"u"&&(globalThis[FEATURE_FLAGS_GLOBAL_KEY]=e)}catch{}}function loadFeatureFlagsFallback(){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function")return dynamicRequire("../featureFlags")}catch{}return null}function getFeatureFlagsGlobal(){try{if(typeof globalThis<"u"&&globalThis[FEATURE_FLAGS_GLOBAL_KEY])return globalThis[FEATURE_FLAGS_GLOBAL_KEY]}catch{}return loadFeatureFlagsFallback()}module.exports={FEATURE_FLAGS_GLOBAL_KEY,registerFeatureFlagsGlobal,getFeatureFlagsGlobal}});var U=D((ea,We)=>{function zt(){return typeof Date=="function"&&Date.now?Date.now():16409952e5}function Re(e){return!!(e&&typeof e=="object"&&typeof e.getTime=="function")}function Ot(e){if(Re(e))return e;if(typeof e=="number")return new Date(e);if(typeof e=="string"){let t=Date.parse(e);return isNaN(t)?new Date:new Date(t)}return new Date}function L(e=""){return e?e.replace(/\\/g,"/"):""}function $t(e=""){let t=L(e);return t?t.split("/").filter(Boolean):[]}function Pe(e=""){let t=$t(e);return t.length?t[t.length-1]:""}function qt(e=""){let t=Pe(e),r=t.lastIndexOf(".");return r<=0?"":t.substring(r).toLowerCase()}function Ut(e=""){let t=L(e),r=t.lastIndexOf("/");return r===-1?"":t.substring(0,r)}function Ht(...e){return L(e.filter(Boolean).join("/")).replace(/\/+/g,"/")}function Bt(e=""){return L(e).toLowerCase()}function jt(e=""){if(!e)return"";if(typeof e=="string")return e;if(typeof e.fsPath=="string"&&e.fsPath.length>0)return e.fsPath;if(typeof e.path=="string"&&e.path.length>0)return e.path;if(typeof e.toString=="function")try{return e.toString(!0)}catch{return e.toString()}return String(e)}function Kt(e="",t=""){let r=L(e),a=L(t);return r&&a.startsWith(r)?a.substring(r.length).replace(/^\/+/,""):a}We.exports={ensureDate:Ot,isDateLike:Re,getCurrentTimestamp:zt,normalizePath:L,getFileName:Pe,getExtension:qt,getDirectory:Ut,joinPath:Ht,getCacheKey:Bt,getUriPath:jt,getRelativePath:Kt}});var xe=D((exports,module)=>{function createViewportManager(provider){let vscode=require("vscode"),normalizePath,getUriPath;try{let e=U();e&&(normalizePath=e.normalizePath,getUriPath=e.getUriPath)}catch{}if(!normalizePath){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function")try{let e=dynamicRequire("../utils/pathUtils");normalizePath=normalizePath||e.normalizePath,getUriPath=getUriPath||e.getUriPath}catch{}}catch{}normalizePath||(normalizePath=(e="")=>(e||"").toString().replace(/\\/g,"/")),getUriPath||(getUriPath=(e="")=>e?typeof e=="string"?e:e?.fsPath?e.fsPath:e?.path?e.path:String(e):"")}class ViewportManager{constructor(){this.e=provider,this.g=new Set,this.s=new Map,this.m=[],this.V=provider.V||400,this.p=provider.p||300*1e3,this.ee=Date.now()}ut(){if(this.m.length>0)return;let t=(a,n)=>{let o=this.W(vscode.window,a,n);o&&this.m.push(o)},r=(a,n)=>{let o=this.W(vscode.workspace,a,n);o&&this.m.push(o)};t("onDidChangeVisibleTextEditors",a=>this.te(a)),t("onDidChangeActiveTextEditor",a=>this.S(a?.document?.uri,{reason:"active-editor"})),r("onDidOpenTextDocument",a=>this.S(a?.uri,{reason:"open-document"})),r("onDidSaveTextDocument",a=>this.S(a?.uri,{reason:"save-document"})),this.te(Array.isArray(vscode.window?.visibleTextEditors)?vscode.window.visibleTextEditors:[]),vscode.window?.activeTextEditor?.document?.uri&&this.S(vscode.window.activeTextEditor.document.uri,{reason:"initial-active"})}Se(){if(this.m?.length){for(let t of this.m)try{t.dispose()}catch(r){this.e._logger.debug("Failed to dispose viewport listener",r)}this.m=[],this.g.clear(),this.s.clear()}}te(t){if(this.g.clear(),!Array.isArray(t))return;let r=Date.now();for(let a of t){let n=a?.document?.uri;if(!n||n.scheme!=="file")continue;let o=normalizePath(getUriPath(n));o&&(this.g.add(o),this.s.set(o,r))}this.G()}S(t,r={}){if(!t||t.scheme!=="file")return;let a=normalizePath(getUriPath(t));if(!a)return;let n=Date.now();this.s.set(a,n),r.visible&&this.g.add(a),this.s.size>this.V?this.G(!0):n-this.ee>this.p&&this.G()}G(t=!1){let r=Date.now(),a=r-this.p*2;for(let[n,o]of this.s.entries())(t||othis.V&&o{Vt.exports={migrationDetailsTitle:"Explorer Dates - Settings Migration",migrationDetailsHeader:"Settings Migration",gitAttributionWarning:"Explorer Dates: Git attribution badges are unavailable on VS Code for Web. Time-based decorations remain available.",noOverridesToDocument:"No overrides to document.",overrideNotesHeader:"# Explorer Dates Override Notes\\n\\n",analysisCommandsDisabled:"Explorer Dates analysis commands are disabled. Shortcuts like Ctrl+Shift+M/H/A will not work until you enable explorerDates.enableAnalysisCommands.",analysisEnableNow:"Enable Now",analysisEnablePartially:"Enable partially succeeded. Update explorerDates.enableAnalysisCommands in remaining workspace folders manually.",analysisEnableFailed:"Enable failed: update explorerDates.enableAnalysisCommands in workspace settings.",workspaceTemplatesDisabled:"Workspace templates are disabled. Enable explorerDates.enableWorkspaceTemplates to use this command.",workspaceTemplatesDisabledSave:"Workspace templates are disabled. Enable explorerDates.enableWorkspaceTemplates to save templates.",enterTemplateName:"Enter template name",enterTemplateDescription:"Enter description (optional)",failedToOpenTemplateManager:"Failed to open template manager: {0}",failedToSaveTemplate:"Failed to save template: {0}",reportingDisabled:"Reporting features are disabled. Enable explorerDates.enableExportReporting to generate reports.",failedToGenerateReport:"Failed to generate report: {0}",apiDisabled:"Explorer Dates API is disabled via settings.",failedToShowApiInformation:"Failed to show API information: {0}",failedToShowWorkspaceActivity:"Failed to show workspace activity: {0}",failedToShowPerformanceAnalytics:"Failed to show performance analytics: {0}",failedToShowCacheDebugInfo:"Failed to show cache debug info: {0}",noWorkspaceFolderOpen:"No workspace folder open",now:"now",minutes:"m",hours:"h",days:"d",weeks:"w",months:"mo",years:"y",justNow:"just now",minutesAgo:"{0} minute(s) ago",hoursAgo:"{0} hour(s) ago",daysAgo:"{0} day(s) ago",lastModified:"Last modified",refreshSuccess:"Date decorations refreshed",activationError:"Explorer Dates failed to activate",errorAccessingFile:"Error accessing file for decoration",clearTelemetryPrompt:"This will permanently delete locally-stored telemetry events for Explorer Dates. This action cannot be undone. Proceed?",clearTelemetryConfirm:"Clear Telemetry",clearTelemetryCancel:"Cancel",reportFormatDisabled:'Report format "{0}" is disabled. Allowed formats: {1}',reportDownloadTriggered:"Report download triggered in browser",selectReportTimeRangePlaceholder:"Select report time range",selectReportFormatPlaceholder:"Select report format",cleanupNoDeprecated:"\u2139\uFE0F No deprecated settings found to clean up.",showMigrationHistoryNoHistory:"No migration history found.",resetConfirmation:"This will reset all Explorer Dates settings to their default values. Are you sure?",resetConfirm:"Reset Settings",resetCancel:"Cancel",resetSuccess:"\u2705 Reset {0} settings to defaults.",validateNoIssues:"\u2705 Configuration is valid - no issues found!",validateFoundIssues:"Found {0} configuration issue(s). Would you like to see details?",validateShowDetails:"Show Details",validateDismiss:"Dismiss",migrationNotificationMessage:"Explorer Dates updated {0} setting(s) for compatibility. Your configuration has been preserved.",migrationViewChanges:"View Changes",migrationOpenSettings:"Open Settings",deprecatedPrompt:"Explorer Dates found {0} deprecated setting(s). Would you like to remove them?",deprecatedClean:"Clean Up Now",deprecatedKeep:"Keep Old Settings",deprecatedAskLater:"Ask Later",showFileLocation:"Show File Location",teamConfigCorrupted:"Explorer Dates team configuration file appears to be corrupted. Please check the .explorer-dates-profiles.json file or restore from backup.",appliedFromTeamProfile:'Applied {0} Explorer Dates settings from team profile "{1}".',documentedOverrides:"Documented Explorer Dates overrides in .vscode/explorer-dates-overrides.md",teamConfigMissingProfile:"Team configuration is missing an active profile.",ephemeralStorageEnospc:"Explorer Dates team configuration could not be saved because the disk is full.",ephemeralStorageGeneric:"Explorer Dates team configuration could not be saved because the workspace is read-only or permissions are restricted.",ephemeralStorageSuffix:"Changes will be kept in memory until VS Code restarts, so they may be lost."}});var Ie=D((ra,Gt)=>{Gt.exports={migrationDetailsTitle:"Explorer Dates - Migraci\xF3n de configuraci\xF3n",migrationDetailsHeader:"Migraci\xF3n de configuraci\xF3n",gitAttributionWarning:"Explorer Dates: Las insignias de atribuci\xF3n de Git no est\xE1n disponibles en VS Code para la Web. Las decoraciones basadas en tiempo siguen disponibles.",noOverridesToDocument:"No hay anulaciones para documentar.",overrideNotesHeader:"# Notas de anulaci\xF3n de Explorer Dates\\n\\n",analysisCommandsDisabled:"Los comandos de an\xE1lisis de Explorer Dates est\xE1n deshabilitados. Atajos como Ctrl+Shift+M/H/A no funcionar\xE1n hasta que habilites explorerDates.enableAnalysisCommands.",analysisEnableNow:"Habilitar ahora",analysisEnablePartially:"La activaci\xF3n se complet\xF3 parcialmente. Actualiza explorerDates.enableAnalysisCommands manualmente en las carpetas de trabajo restantes.",analysisEnableFailed:"Error al habilitar: actualiza explorerDates.enableAnalysisCommands en la configuraci\xF3n del espacio de trabajo.",workspaceTemplatesDisabled:"Las plantillas de espacio de trabajo est\xE1n deshabilitadas. Habilita explorerDates.enableWorkspaceTemplates para usar este comando.",workspaceTemplatesDisabledSave:"Las plantillas de espacio de trabajo est\xE1n deshabilitadas. Habilita explorerDates.enableWorkspaceTemplates para guardar plantillas.",enterTemplateName:"Introduce el nombre de la plantilla",enterTemplateDescription:"Introduce la descripci\xF3n (opcional)",failedToOpenTemplateManager:"Error al abrir el administrador de plantillas: {0}",failedToSaveTemplate:"Error al guardar la plantilla: {0}",reportingDisabled:"Las funciones de informes est\xE1n deshabilitadas. Habilita explorerDates.enableExportReporting para generar informes.",failedToGenerateReport:"Error al generar el informe: {0}",apiDisabled:"La API de Explorer Dates est\xE1 deshabilitada mediante la configuraci\xF3n.",failedToShowApiInformation:"Error al mostrar la informaci\xF3n de la API: {0}",failedToShowWorkspaceActivity:"Error al mostrar la actividad del espacio de trabajo: {0}",failedToShowPerformanceAnalytics:"Error al mostrar los an\xE1lisis de rendimiento: {0}",failedToShowCacheDebugInfo:"Error al mostrar la informaci\xF3n de depuraci\xF3n de la cach\xE9: {0}",noWorkspaceFolderOpen:"No hay ninguna carpeta de espacio de trabajo abierta",now:"ahora",minutes:"m",hours:"h",days:"d",weeks:"sem",months:"mes",years:"a",justNow:"justo ahora",minutesAgo:"hace {0} minuto(s)",hoursAgo:"hace {0} hora(s)",daysAgo:"hace {0} d\xEDa(s)",lastModified:"\xDAltima modificaci\xF3n",refreshSuccess:"Decoraciones de fecha actualizadas",activationError:"Explorer Dates no se pudo activar",errorAccessingFile:"Error al acceder al archivo para la decoraci\xF3n",clearTelemetryPrompt:"Esto eliminar\xE1 permanentemente los eventos de telemetr\xEDa almacenados localmente para Explorer Dates. Esta acci\xF3n no se puede deshacer. \xBFContinuar?",clearTelemetryConfirm:"Borrar telemetr\xEDa",clearTelemetryCancel:"Cancelar",reportFormatDisabled:'El formato de informe "{0}" est\xE1 deshabilitado. Formatos permitidos: {1}',reportDownloadTriggered:"Descarga del informe iniciada en el navegador",selectReportTimeRangePlaceholder:"Seleccionar rango de tiempo del informe",selectReportFormatPlaceholder:"Seleccionar formato del informe",cleanupNoDeprecated:"\u2139\uFE0F No se encontraron configuraciones obsoletas para limpiar.",showMigrationHistoryNoHistory:"No se encontr\xF3 historial de migraci\xF3n.",resetConfirmation:"Esto restablecer\xE1 todas las configuraciones de Explorer Dates a sus valores predeterminados. \xBFEst\xE1s seguro?",resetConfirm:"Restablecer configuraciones",resetCancel:"Cancelar",resetSuccess:"\u2705 Se restablecieron {0} configuraciones a los valores predeterminados.",validateNoIssues:"\u2705 La configuraci\xF3n es v\xE1lida - no se encontraron problemas.",validateFoundIssues:"Se encontraron {0} problema(s) de configuraci\xF3n. \xBFDeseas ver los detalles?",validateShowDetails:"Mostrar detalles",validateDismiss:"Descartar",migrationNotificationMessage:"Explorer Dates actualiz\xF3 {0} configuraci\xF3n(es) por compatibilidad. Tu configuraci\xF3n se ha conservado.",migrationViewChanges:"Ver cambios",migrationOpenSettings:"Abrir configuraciones",deprecatedPrompt:"Explorer Dates encontr\xF3 {0} configuraci\xF3n(es) obsoleta(s). \xBFDeseas eliminarlas?",deprecatedClean:"Limpiar ahora",deprecatedKeep:"Mantener configuraciones antiguas",deprecatedAskLater:"Preguntar m\xE1s tarde",showFileLocation:"Mostrar ubicaci\xF3n del archivo",teamConfigCorrupted:"El archivo de configuraci\xF3n de equipo de Explorer Dates parece estar da\xF1ado. Verifica el archivo .explorer-dates-profiles.json o restaura desde una copia de seguridad.",appliedFromTeamProfile:'Se aplicaron {0} configuraciones de Explorer Dates desde el perfil de equipo "{1}".',documentedOverrides:"Se documentaron las anulaciones de Explorer Dates en .vscode/explorer-dates-overrides.md",teamConfigMissingProfile:"La configuraci\xF3n del equipo no tiene un perfil activo.",ephemeralStorageEnospc:"No se pudo guardar la configuraci\xF3n de equipo de Explorer Dates porque el disco est\xE1 lleno.",ephemeralStorageGeneric:"No se pudo guardar la configuraci\xF3n de equipo de Explorer Dates porque el espacio de trabajo es de solo lectura o los permisos est\xE1n restringidos.",ephemeralStorageSuffix:"Los cambios se mantendr\xE1n en memoria hasta que VS Code se reinicie, por lo que podr\xEDan perderse."}});var Le=D((aa,Yt)=>{Yt.exports={migrationDetailsTitle:"Explorer Dates - Migration des param\xE8tres",migrationDetailsHeader:"Migration des param\xE8tres",gitAttributionWarning:"Explorer Dates : Les badges d\u2019attribution Git ne sont pas disponibles sur VS Code pour le Web. Les d\xE9corations bas\xE9es sur le temps restent disponibles.",noOverridesToDocument:"Aucune substitution \xE0 documenter.",overrideNotesHeader:"# Notes de substitution Explorer Dates\\n\\n",analysisCommandsDisabled:"Les commandes d\u2019analyse Explorer Dates sont d\xE9sactiv\xE9es. Les raccourcis comme Ctrl+Shift+M/H/A ne fonctionneront pas tant que vous n\u2019aurez pas activ\xE9 explorerDates.enableAnalysisCommands.",analysisEnableNow:"Activer maintenant",analysisEnablePartially:"L\u2019activation a partiellement r\xE9ussi. Mettez \xE0 jour explorerDates.enableAnalysisCommands manuellement dans les dossiers d\u2019espace de travail restants.",analysisEnableFailed:"\xC9chec de l\u2019activation : mettez \xE0 jour explorerDates.enableAnalysisCommands dans les param\xE8tres de l\u2019espace de travail.",workspaceTemplatesDisabled:"Les mod\xE8les d\u2019espace de travail sont d\xE9sactiv\xE9s. Activez explorerDates.enableWorkspaceTemplates pour utiliser cette commande.",workspaceTemplatesDisabledSave:"Les mod\xE8les d\u2019espace de travail sont d\xE9sactiv\xE9s. Activez explorerDates.enableWorkspaceTemplates pour enregistrer des mod\xE8les.",enterTemplateName:"Entrez le nom du mod\xE8le",enterTemplateDescription:"Entrez la description (facultatif)",failedToOpenTemplateManager:"Impossible d\u2019ouvrir le gestionnaire de mod\xE8les : {0}",failedToSaveTemplate:"Impossible d\u2019enregistrer le mod\xE8le : {0}",reportingDisabled:"Les fonctionnalit\xE9s de rapport sont d\xE9sactiv\xE9es. Activez explorerDates.enableExportReporting pour g\xE9n\xE9rer des rapports.",failedToGenerateReport:"Impossible de g\xE9n\xE9rer le rapport : {0}",apiDisabled:"L\u2019API Explorer Dates est d\xE9sactiv\xE9e via les param\xE8tres.",failedToShowApiInformation:"Impossible d\u2019afficher les informations de l\u2019API : {0}",failedToShowWorkspaceActivity:"Impossible d\u2019afficher l\u2019activit\xE9 de l\u2019espace de travail : {0}",failedToShowPerformanceAnalytics:"Impossible d\u2019afficher les analyses de performance : {0}",failedToShowCacheDebugInfo:"Impossible d\u2019afficher les informations de d\xE9bogage du cache : {0}",noWorkspaceFolderOpen:"Aucun dossier d\u2019espace de travail ouvert",now:"maintenant",minutes:"min",hours:"h",days:"j",weeks:"sem",months:"mois",years:"an",justNow:"\xE0 l\u2019instant",minutesAgo:"il y a {0} minute(s)",hoursAgo:"il y a {0} heure(s)",daysAgo:"il y a {0} jour(s)",lastModified:"Derni\xE8re modification",refreshSuccess:"D\xE9corations de date actualis\xE9es",activationError:"\xC9chec de l\u2019activation d\u2019Explorer Dates",errorAccessingFile:"Erreur lors de l\u2019acc\xE8s au fichier pour la d\xE9coration",clearTelemetryPrompt:"Cela supprimera d\xE9finitivement les \xE9v\xE9nements de t\xE9l\xE9m\xE9trie stock\xE9s localement pour Explorer Dates. Cette action est irr\xE9versible. Continuer ?",clearTelemetryConfirm:"Effacer la t\xE9l\xE9m\xE9trie",clearTelemetryCancel:"Annuler",reportFormatDisabled:'Le format de rapport "{0}" est d\xE9sactiv\xE9. Formats autoris\xE9s : {1}',reportDownloadTriggered:"T\xE9l\xE9chargement du rapport lanc\xE9 dans le navigateur",selectReportTimeRangePlaceholder:"S\xE9lectionner la p\xE9riode du rapport",selectReportFormatPlaceholder:"S\xE9lectionner le format du rapport",cleanupNoDeprecated:"\u2139\uFE0F Aucun param\xE8tre obsol\xE8te \xE0 nettoyer.",showMigrationHistoryNoHistory:"Aucun historique de migration trouv\xE9.",resetConfirmation:"Cela r\xE9initialisera tous les param\xE8tres Explorer Dates \xE0 leurs valeurs par d\xE9faut. \xCAtes-vous s\xFBr ?",resetConfirm:"R\xE9initialiser les param\xE8tres",resetCancel:"Annuler",resetSuccess:"\u2705 {0} param\xE8tres ont \xE9t\xE9 r\xE9initialis\xE9s aux valeurs par d\xE9faut.",validateNoIssues:"\u2705 La configuration est valide - aucun probl\xE8me d\xE9tect\xE9 !",validateFoundIssues:"{0} probl\xE8me(s) de configuration trouv\xE9(s). Voulez-vous voir les d\xE9tails ?",validateShowDetails:"Afficher les d\xE9tails",validateDismiss:"Ignorer",migrationNotificationMessage:"Explorer Dates a mis \xE0 jour {0} param\xE8tre(s) pour compatibilit\xE9. Votre configuration a \xE9t\xE9 conserv\xE9e.",migrationViewChanges:"Voir les modifications",migrationOpenSettings:"Ouvrir les param\xE8tres",deprecatedPrompt:"Explorer Dates a trouv\xE9 {0} param\xE8tre(s) obsol\xE8te(s). Voulez-vous les supprimer ?",deprecatedClean:"Nettoyer maintenant",deprecatedKeep:"Conserver les anciens param\xE8tres",deprecatedAskLater:"Demander plus tard",showFileLocation:"Afficher l\u2019emplacement du fichier",teamConfigCorrupted:"Le fichier de configuration d\u2019\xE9quipe Explorer Dates semble corrompu. V\xE9rifiez le fichier .explorer-dates-profiles.json ou restaurez-le depuis une sauvegarde.",appliedFromTeamProfile:'{0} param\xE8tres Explorer Dates appliqu\xE9s depuis le profil d\u2019\xE9quipe "{1}".',documentedOverrides:"Substitutions Explorer Dates document\xE9es dans .vscode/explorer-dates-overrides.md",teamConfigMissingProfile:"La configuration d\u2019\xE9quipe ne contient aucun profil actif.",ephemeralStorageEnospc:"Impossible d\u2019enregistrer la configuration d\u2019\xE9quipe Explorer Dates car le disque est plein.",ephemeralStorageGeneric:"Impossible d\u2019enregistrer la configuration d\u2019\xE9quipe Explorer Dates car l\u2019espace de travail est en lecture seule ou les permissions sont restreintes.",ephemeralStorageSuffix:"Les modifications seront conserv\xE9es en m\xE9moire jusqu\u2019au red\xE9marrage de VS Code et pourraient \xEAtre perdues."}});var Ne=D((na,Xt)=>{Xt.exports={migrationDetailsTitle:"Explorer Dates - Einstellungen migrieren",migrationDetailsHeader:"Einstellungen migrieren",gitAttributionWarning:"Explorer Dates: Git-Zuordnungsabzeichen sind in VS Code f\xFCr das Web nicht verf\xFCgbar. Zeitbasierte Hervorhebungen bleiben verf\xFCgbar.",noOverridesToDocument:"Keine \xDCberschreibungen zu dokumentieren.",overrideNotesHeader:"# Explorer Dates \xDCberschreibungsnotizen\\n\\n",analysisCommandsDisabled:"Die Analysebefehle von Explorer Dates sind deaktiviert. Tastenkombinationen wie Ctrl+Shift+M/H/A funktionieren nicht, bis explorerDates.enableAnalysisCommands aktiviert ist.",analysisEnableNow:"Jetzt aktivieren",analysisEnablePartially:"Die Aktivierung war teilweise erfolgreich. Aktualisieren Sie explorerDates.enableAnalysisCommands manuell in den verbleibenden Workspace-Ordnern.",analysisEnableFailed:"Aktivierung fehlgeschlagen: Aktualisieren Sie explorerDates.enableAnalysisCommands in den Workspace-Einstellungen.",workspaceTemplatesDisabled:"Workspace-Vorlagen sind deaktiviert. Aktivieren Sie explorerDates.enableWorkspaceTemplates, um diesen Befehl zu verwenden.",workspaceTemplatesDisabledSave:"Workspace-Vorlagen sind deaktiviert. Aktivieren Sie explorerDates.enableWorkspaceTemplates, um Vorlagen zu speichern.",enterTemplateName:"Vorlagenname eingeben",enterTemplateDescription:"Beschreibung eingeben (optional)",failedToOpenTemplateManager:"Fehler beim \xD6ffnen des Vorlagenmanagers: {0}",failedToSaveTemplate:"Fehler beim Speichern der Vorlage: {0}",reportingDisabled:"Berichtsfunktionen sind deaktiviert. Aktivieren Sie explorerDates.enableExportReporting, um Berichte zu erstellen.",failedToGenerateReport:"Fehler beim Erstellen des Berichts: {0}",apiDisabled:"Die Explorer Dates API ist in den Einstellungen deaktiviert.",failedToShowApiInformation:"Fehler beim Anzeigen der API-Informationen: {0}",failedToShowWorkspaceActivity:"Fehler beim Anzeigen der Workspace-Aktivit\xE4t: {0}",failedToShowPerformanceAnalytics:"Fehler beim Anzeigen der Leistungsanalysen: {0}",failedToShowCacheDebugInfo:"Fehler beim Anzeigen der Cache-Debug-Informationen: {0}",noWorkspaceFolderOpen:"Kein Workspace-Ordner ge\xF6ffnet",now:"jetzt",minutes:"Min",hours:"Std",days:"T",weeks:"W",months:"Mon",years:"J",justNow:"gerade eben",minutesAgo:"vor {0} Minute(n)",hoursAgo:"vor {0} Stunde(n)",daysAgo:"vor {0} Tag(en)",lastModified:"Zuletzt ge\xE4ndert",refreshSuccess:"Datumsdekorationen aktualisiert",activationError:"Explorer Dates konnte nicht aktiviert werden",errorAccessingFile:"Fehler beim Zugriff auf Datei f\xFCr Dekoration",clearTelemetryPrompt:"Dies l\xF6scht dauerhaft lokal gespeicherte Telemetrieereignisse f\xFCr Explorer Dates. Diese Aktion kann nicht r\xFCckg\xE4ngig gemacht werden. Fortfahren?",clearTelemetryConfirm:"Telemetrie l\xF6schen",clearTelemetryCancel:"Abbrechen",reportFormatDisabled:'Berichtsformat "{0}" ist deaktiviert. Zul\xE4ssige Formate: {1}',reportDownloadTriggered:"Bericht-Download im Browser gestartet",selectReportTimeRangePlaceholder:"Berichtszeitraum ausw\xE4hlen",selectReportFormatPlaceholder:"Berichtsformat ausw\xE4hlen",cleanupNoDeprecated:"\u2139\uFE0F Keine veralteten Einstellungen zum Bereinigen gefunden.",showMigrationHistoryNoHistory:"Kein Migrationsverlauf gefunden.",resetConfirmation:"Dies setzt alle Explorer Dates Einstellungen auf ihre Standardwerte zur\xFCck. Sind Sie sicher?",resetConfirm:"Einstellungen zur\xFCcksetzen",resetCancel:"Abbrechen",resetSuccess:"\u2705 {0} Einstellungen auf Standard zur\xFCckgesetzt.",validateNoIssues:"\u2705 Konfiguration ist g\xFCltig - keine Probleme gefunden!",validateFoundIssues:"{0} Konfigurationsproblem(e) gefunden. M\xF6chten Sie Details sehen?",validateShowDetails:"Details anzeigen",validateDismiss:"Verwerfen",migrationNotificationMessage:"Explorer Dates hat {0} Einstellung(en) zur Kompatibilit\xE4t aktualisiert. Ihre Konfiguration wurde beibehalten.",migrationViewChanges:"\xC4nderungen anzeigen",migrationOpenSettings:"Einstellungen \xF6ffnen",deprecatedPrompt:"Explorer Dates hat {0} veraltete Einstellung(en) gefunden. M\xF6chten Sie sie entfernen?",deprecatedClean:"Jetzt bereinigen",deprecatedKeep:"Alte Einstellungen behalten",deprecatedAskLater:"Sp\xE4ter fragen",showFileLocation:"Dateispeicherort anzeigen",teamConfigCorrupted:"Die Teamkonfigurationsdatei von Explorer Dates scheint besch\xE4digt zu sein. Bitte pr\xFCfen Sie die Datei .explorer-dates-profiles.json oder stellen Sie sie aus einem Backup wieder her.",appliedFromTeamProfile:'{0} Explorer Dates-Einstellungen aus dem Teamprofil "{1}" angewendet.',documentedOverrides:"Explorer Dates-\xDCberschreibungen in .vscode/explorer-dates-overrides.md dokumentiert",teamConfigMissingProfile:"Der Teamkonfiguration fehlt ein aktives Profil.",ephemeralStorageEnospc:"Die Teamkonfiguration von Explorer Dates konnte nicht gespeichert werden, da die Festplatte voll ist.",ephemeralStorageGeneric:"Die Teamkonfiguration von Explorer Dates konnte nicht gespeichert werden, da der Workspace schreibgesch\xFCtzt ist oder die Berechtigungen eingeschr\xE4nkt sind.",ephemeralStorageSuffix:"\xC4nderungen werden im Speicher behalten, bis VS Code neu startet, und k\xF6nnen verloren gehen."}});var ze=D((oa,Jt)=>{Jt.exports={migrationDetailsTitle:"Explorer Dates - \u8A2D\u5B9A\u306E\u79FB\u884C",migrationDetailsHeader:"\u8A2D\u5B9A\u306E\u79FB\u884C",gitAttributionWarning:"Explorer Dates: Git \u306E\u5E30\u5C5E\u30D0\u30C3\u30B8\u306F VS Code for Web \u3067\u306F\u5229\u7528\u3067\u304D\u307E\u305B\u3093\u3002\u6642\u9593\u30D9\u30FC\u30B9\u306E\u88C5\u98FE\u306F\u5F15\u304D\u7D9A\u304D\u5229\u7528\u3067\u304D\u307E\u3059\u3002",noOverridesToDocument:"\u30C9\u30AD\u30E5\u30E1\u30F3\u30C8\u5316\u3059\u308B\u4E0A\u66F8\u304D\u306F\u3042\u308A\u307E\u305B\u3093\u3002",overrideNotesHeader:"# Explorer Dates \u4E0A\u66F8\u304D\u30E1\u30E2\\n\\n",analysisCommandsDisabled:"Explorer Dates \u306E\u5206\u6790\u30B3\u30DE\u30F3\u30C9\u306F\u7121\u52B9\u306B\u306A\u3063\u3066\u3044\u307E\u3059\u3002Ctrl+Shift+M/H/A \u306A\u3069\u306E\u30B7\u30E7\u30FC\u30C8\u30AB\u30C3\u30C8\u306F explorerDates.enableAnalysisCommands \u3092\u6709\u52B9\u306B\u3059\u308B\u307E\u3067\u6A5F\u80FD\u3057\u307E\u305B\u3093\u3002",analysisEnableNow:"\u4ECA\u3059\u3050\u6709\u52B9\u306B\u3059\u308B",analysisEnablePartially:"\u6709\u52B9\u5316\u306F\u4E00\u90E8\u6210\u529F\u3057\u307E\u3057\u305F\u3002\u6B8B\u308A\u306E\u30EF\u30FC\u30AF\u30B9\u30DA\u30FC\u30B9\u30D5\u30A9\u30EB\u30C0\u30FC\u3067 explorerDates.enableAnalysisCommands \u3092\u624B\u52D5\u3067\u66F4\u65B0\u3057\u3066\u304F\u3060\u3055\u3044\u3002",analysisEnableFailed:"\u6709\u52B9\u5316\u306B\u5931\u6557\u3057\u307E\u3057\u305F\uFF1A\u30EF\u30FC\u30AF\u30B9\u30DA\u30FC\u30B9\u8A2D\u5B9A\u3067 explorerDates.enableAnalysisCommands \u3092\u66F4\u65B0\u3057\u3066\u304F\u3060\u3055\u3044\u3002",workspaceTemplatesDisabled:"\u30EF\u30FC\u30AF\u30B9\u30DA\u30FC\u30B9\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8\u306F\u7121\u52B9\u306B\u306A\u3063\u3066\u3044\u307E\u3059\u3002\u3053\u306E\u30B3\u30DE\u30F3\u30C9\u3092\u4F7F\u7528\u3059\u308B\u306B\u306F explorerDates.enableWorkspaceTemplates \u3092\u6709\u52B9\u306B\u3057\u3066\u304F\u3060\u3055\u3044\u3002",workspaceTemplatesDisabledSave:"\u30EF\u30FC\u30AF\u30B9\u30DA\u30FC\u30B9\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8\u306F\u7121\u52B9\u306B\u306A\u3063\u3066\u3044\u307E\u3059\u3002\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8\u3092\u4FDD\u5B58\u3059\u308B\u306B\u306F explorerDates.enableWorkspaceTemplates \u3092\u6709\u52B9\u306B\u3057\u3066\u304F\u3060\u3055\u3044\u3002",enterTemplateName:"\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8\u540D\u3092\u5165\u529B",enterTemplateDescription:"\u8AAC\u660E\u3092\u5165\u529B\uFF08\u4EFB\u610F\uFF09",failedToOpenTemplateManager:"\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8\u30DE\u30CD\u30FC\u30B8\u30E3\u30FC\u3092\u958B\u3051\u307E\u305B\u3093\u3067\u3057\u305F: {0}",failedToSaveTemplate:"\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8\u306E\u4FDD\u5B58\u306B\u5931\u6557\u3057\u307E\u3057\u305F: {0}",reportingDisabled:"\u30EC\u30DD\u30FC\u30C8\u6A5F\u80FD\u306F\u7121\u52B9\u306B\u306A\u3063\u3066\u3044\u307E\u3059\u3002\u30EC\u30DD\u30FC\u30C8\u3092\u751F\u6210\u3059\u308B\u306B\u306F explorerDates.enableExportReporting \u3092\u6709\u52B9\u306B\u3057\u3066\u304F\u3060\u3055\u3044\u3002",failedToGenerateReport:"\u30EC\u30DD\u30FC\u30C8\u306E\u751F\u6210\u306B\u5931\u6557\u3057\u307E\u3057\u305F: {0}",apiDisabled:"Explorer Dates API \u306F\u8A2D\u5B9A\u3067\u7121\u52B9\u306B\u306A\u3063\u3066\u3044\u307E\u3059\u3002",failedToShowApiInformation:"API \u60C5\u5831\u306E\u8868\u793A\u306B\u5931\u6557\u3057\u307E\u3057\u305F: {0}",failedToShowWorkspaceActivity:"\u30EF\u30FC\u30AF\u30B9\u30DA\u30FC\u30B9\u306E\u30A2\u30AF\u30C6\u30A3\u30D3\u30C6\u30A3\u3092\u8868\u793A\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F: {0}",failedToShowPerformanceAnalytics:"\u30D1\u30D5\u30A9\u30FC\u30DE\u30F3\u30B9\u5206\u6790\u3092\u8868\u793A\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F: {0}",failedToShowCacheDebugInfo:"\u30AD\u30E3\u30C3\u30B7\u30E5\u306E\u30C7\u30D0\u30C3\u30B0\u60C5\u5831\u3092\u8868\u793A\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F: {0}",noWorkspaceFolderOpen:"\u30EF\u30FC\u30AF\u30B9\u30DA\u30FC\u30B9\u30D5\u30A9\u30EB\u30C0\u30FC\u304C\u958B\u304B\u308C\u3066\u3044\u307E\u305B\u3093",now:"\u4ECA",minutes:"\u5206",hours:"\u6642\u9593",days:"\u65E5",weeks:"\u9031",months:"\u304B\u6708",years:"\u5E74",justNow:"\u305F\u3063\u305F\u4ECA",minutesAgo:"{0} \u5206\u524D",hoursAgo:"{0} \u6642\u9593\u524D",daysAgo:"{0} \u65E5\u524D",lastModified:"\u6700\u7D42\u66F4\u65B0",refreshSuccess:"\u65E5\u4ED8\u88C5\u98FE\u3092\u66F4\u65B0\u3057\u307E\u3057\u305F",activationError:"Explorer Dates \u306E\u6709\u52B9\u5316\u306B\u5931\u6557\u3057\u307E\u3057\u305F",errorAccessingFile:"\u88C5\u98FE\u7528\u30D5\u30A1\u30A4\u30EB\u3078\u306E\u30A2\u30AF\u30BB\u30B9\u30A8\u30E9\u30FC",clearTelemetryPrompt:"Explorer Dates \u306E\u30ED\u30FC\u30AB\u30EB\u4FDD\u5B58\u30C6\u30EC\u30E1\u30C8\u30EA\u30A4\u30D9\u30F3\u30C8\u3092\u5B8C\u5168\u306B\u524A\u9664\u3057\u307E\u3059\u3002\u3053\u306E\u64CD\u4F5C\u306F\u5143\u306B\u623B\u305B\u307E\u305B\u3093\u3002\u7D9A\u884C\u3057\u307E\u3059\u304B\uFF1F",clearTelemetryConfirm:"\u30C6\u30EC\u30E1\u30C8\u30EA\u3092\u524A\u9664",clearTelemetryCancel:"\u30AD\u30E3\u30F3\u30BB\u30EB",reportFormatDisabled:"\u30EC\u30DD\u30FC\u30C8\u5F62\u5F0F\u300C{0}\u300D\u306F\u7121\u52B9\u3067\u3059\u3002\u8A31\u53EF\u3055\u308C\u3066\u3044\u308B\u5F62\u5F0F: {1}",reportDownloadTriggered:"\u30D6\u30E9\u30A6\u30B6\u3067\u30EC\u30DD\u30FC\u30C8\u306E\u30C0\u30A6\u30F3\u30ED\u30FC\u30C9\u3092\u958B\u59CB\u3057\u307E\u3057\u305F",selectReportTimeRangePlaceholder:"\u30EC\u30DD\u30FC\u30C8\u306E\u671F\u9593\u3092\u9078\u629E",selectReportFormatPlaceholder:"\u30EC\u30DD\u30FC\u30C8\u5F62\u5F0F\u3092\u9078\u629E",cleanupNoDeprecated:"\u2139\uFE0F \u30AF\u30EA\u30FC\u30F3\u30A2\u30C3\u30D7\u3059\u308B\u975E\u63A8\u5968\u8A2D\u5B9A\u306F\u3042\u308A\u307E\u305B\u3093\u3002",showMigrationHistoryNoHistory:"\u79FB\u884C\u5C65\u6B74\u304C\u898B\u3064\u304B\u308A\u307E\u305B\u3093\u3002",resetConfirmation:"Explorer Dates \u306E\u3059\u3079\u3066\u306E\u8A2D\u5B9A\u3092\u65E2\u5B9A\u5024\u306B\u30EA\u30BB\u30C3\u30C8\u3057\u307E\u3059\u3002\u3088\u308D\u3057\u3044\u3067\u3059\u304B\uFF1F",resetConfirm:"\u8A2D\u5B9A\u3092\u30EA\u30BB\u30C3\u30C8",resetCancel:"\u30AD\u30E3\u30F3\u30BB\u30EB",resetSuccess:"\u2705 {0} \u4EF6\u306E\u8A2D\u5B9A\u3092\u65E2\u5B9A\u5024\u306B\u30EA\u30BB\u30C3\u30C8\u3057\u307E\u3057\u305F\u3002",validateNoIssues:"\u2705 \u8A2D\u5B9A\u306F\u6709\u52B9\u3067\u3059 - \u554F\u984C\u306F\u898B\u3064\u304B\u308A\u307E\u305B\u3093\u3067\u3057\u305F\uFF01",validateFoundIssues:"{0} \u4EF6\u306E\u8A2D\u5B9A\u554F\u984C\u304C\u898B\u3064\u304B\u308A\u307E\u3057\u305F\u3002\u8A73\u7D30\u3092\u8868\u793A\u3057\u307E\u3059\u304B\uFF1F",validateShowDetails:"\u8A73\u7D30\u3092\u8868\u793A",validateDismiss:"\u9589\u3058\u308B",migrationNotificationMessage:"Explorer Dates \u306F\u4E92\u63DB\u6027\u306E\u305F\u3081\u306B {0} \u4EF6\u306E\u8A2D\u5B9A\u3092\u66F4\u65B0\u3057\u307E\u3057\u305F\u3002\u8A2D\u5B9A\u306F\u4FDD\u6301\u3055\u308C\u3066\u3044\u307E\u3059\u3002",migrationViewChanges:"\u5909\u66F4\u3092\u8868\u793A",migrationOpenSettings:"\u8A2D\u5B9A\u3092\u958B\u304F",deprecatedPrompt:"Explorer Dates \u306F {0} \u4EF6\u306E\u975E\u63A8\u5968\u8A2D\u5B9A\u3092\u691C\u51FA\u3057\u307E\u3057\u305F\u3002\u524A\u9664\u3057\u307E\u3059\u304B\uFF1F",deprecatedClean:"\u4ECA\u3059\u3050\u30AF\u30EA\u30FC\u30F3\u30A2\u30C3\u30D7",deprecatedKeep:"\u53E4\u3044\u8A2D\u5B9A\u3092\u4FDD\u6301",deprecatedAskLater:"\u5F8C\u3067\u78BA\u8A8D",showFileLocation:"\u30D5\u30A1\u30A4\u30EB\u306E\u5834\u6240\u3092\u8868\u793A",teamConfigCorrupted:"Explorer Dates \u306E\u30C1\u30FC\u30E0\u8A2D\u5B9A\u30D5\u30A1\u30A4\u30EB\u304C\u7834\u640D\u3057\u3066\u3044\u308B\u53EF\u80FD\u6027\u304C\u3042\u308A\u307E\u3059\u3002.explorer-dates-profiles.json \u3092\u78BA\u8A8D\u3059\u308B\u304B\u30D0\u30C3\u30AF\u30A2\u30C3\u30D7\u304B\u3089\u5FA9\u5143\u3057\u3066\u304F\u3060\u3055\u3044\u3002",appliedFromTeamProfile:"\u30C1\u30FC\u30E0\u30D7\u30ED\u30D5\u30A1\u30A4\u30EB\u300C{1}\u300D\u304B\u3089 {0} \u4EF6\u306E Explorer Dates \u8A2D\u5B9A\u3092\u9069\u7528\u3057\u307E\u3057\u305F\u3002",documentedOverrides:".vscode/explorer-dates-overrides.md \u306B Explorer Dates \u306E\u4E0A\u66F8\u304D\u3092\u8A18\u9332\u3057\u307E\u3057\u305F",teamConfigMissingProfile:"\u30C1\u30FC\u30E0\u8A2D\u5B9A\u306B\u30A2\u30AF\u30C6\u30A3\u30D6\u306A\u30D7\u30ED\u30D5\u30A1\u30A4\u30EB\u304C\u3042\u308A\u307E\u305B\u3093\u3002",ephemeralStorageEnospc:"\u30C7\u30A3\u30B9\u30AF\u5BB9\u91CF\u4E0D\u8DB3\u306E\u305F\u3081\u3001Explorer Dates \u306E\u30C1\u30FC\u30E0\u8A2D\u5B9A\u3092\u4FDD\u5B58\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002",ephemeralStorageGeneric:"\u30EF\u30FC\u30AF\u30B9\u30DA\u30FC\u30B9\u304C\u8AAD\u307F\u53D6\u308A\u5C02\u7528\u3001\u307E\u305F\u306F\u6A29\u9650\u304C\u5236\u9650\u3055\u308C\u3066\u3044\u308B\u305F\u3081\u3001Explorer Dates \u306E\u30C1\u30FC\u30E0\u8A2D\u5B9A\u3092\u4FDD\u5B58\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002",ephemeralStorageSuffix:"\u5909\u66F4\u306F VS Code \u304C\u518D\u8D77\u52D5\u3059\u308B\u307E\u3067\u30E1\u30E2\u30EA\u306B\u4FDD\u6301\u3055\u308C\u308B\u305F\u3081\u3001\u5931\u308F\u308C\u308B\u53EF\u80FD\u6027\u304C\u3042\u308A\u307E\u3059\u3002"}});var Oe=D((ia,Zt)=>{Zt.exports={migrationDetailsTitle:"Explorer Dates - \u8BBE\u7F6E\u8FC1\u79FB",migrationDetailsHeader:"\u8BBE\u7F6E\u8FC1\u79FB",gitAttributionWarning:"Explorer Dates\uFF1AGit \u5F52\u5C5E\u5FBD\u7AE0\u5728 VS Code Web \u7248\u4E2D\u4E0D\u53EF\u7528\u3002\u57FA\u4E8E\u65F6\u95F4\u7684\u88C5\u9970\u4ECD\u7136\u53EF\u7528\u3002",noOverridesToDocument:"\u6CA1\u6709\u9700\u8981\u8BB0\u5F55\u7684\u8986\u76D6\u9879\u3002",overrideNotesHeader:"# Explorer Dates \u8986\u76D6\u8BF4\u660E\\n\\n",analysisCommandsDisabled:"Explorer Dates \u5206\u6790\u547D\u4EE4\u5DF2\u7981\u7528\u3002\u5728\u542F\u7528 explorerDates.enableAnalysisCommands \u4E4B\u524D\uFF0CCtrl+Shift+M/H/A \u7B49\u5FEB\u6377\u952E\u5C06\u65E0\u6CD5\u4F7F\u7528\u3002",analysisEnableNow:"\u7ACB\u5373\u542F\u7528",analysisEnablePartially:"\u542F\u7528\u90E8\u5206\u6210\u529F\u3002\u8BF7\u5728\u5269\u4F59\u7684\u5DE5\u4F5C\u533A\u6587\u4EF6\u5939\u4E2D\u624B\u52A8\u66F4\u65B0 explorerDates.enableAnalysisCommands\u3002",analysisEnableFailed:"\u542F\u7528\u5931\u8D25\uFF1A\u8BF7\u5728\u5DE5\u4F5C\u533A\u8BBE\u7F6E\u4E2D\u66F4\u65B0 explorerDates.enableAnalysisCommands\u3002",workspaceTemplatesDisabled:"\u5DE5\u4F5C\u533A\u6A21\u677F\u5DF2\u7981\u7528\u3002\u542F\u7528 explorerDates.enableWorkspaceTemplates \u4EE5\u4F7F\u7528\u6B64\u547D\u4EE4\u3002",workspaceTemplatesDisabledSave:"\u5DE5\u4F5C\u533A\u6A21\u677F\u5DF2\u7981\u7528\u3002\u542F\u7528 explorerDates.enableWorkspaceTemplates \u4EE5\u4FDD\u5B58\u6A21\u677F\u3002",enterTemplateName:"\u8F93\u5165\u6A21\u677F\u540D\u79F0",enterTemplateDescription:"\u8F93\u5165\u63CF\u8FF0\uFF08\u53EF\u9009\uFF09",failedToOpenTemplateManager:"\u65E0\u6CD5\u6253\u5F00\u6A21\u677F\u7BA1\u7406\u5668\uFF1A{0}",failedToSaveTemplate:"\u4FDD\u5B58\u6A21\u677F\u5931\u8D25\uFF1A{0}",reportingDisabled:"\u62A5\u8868\u529F\u80FD\u5DF2\u7981\u7528\u3002\u542F\u7528 explorerDates.enableExportReporting \u4EE5\u751F\u6210\u62A5\u8868\u3002",failedToGenerateReport:"\u751F\u6210\u62A5\u8868\u5931\u8D25\uFF1A{0}",apiDisabled:"Explorer Dates API \u5DF2\u901A\u8FC7\u8BBE\u7F6E\u7981\u7528\u3002",failedToShowApiInformation:"\u663E\u793A API \u4FE1\u606F\u5931\u8D25\uFF1A{0}",failedToShowWorkspaceActivity:"\u663E\u793A\u5DE5\u4F5C\u533A\u6D3B\u52A8\u5931\u8D25\uFF1A{0}",failedToShowPerformanceAnalytics:"\u663E\u793A\u6027\u80FD\u5206\u6790\u5931\u8D25\uFF1A{0}",failedToShowCacheDebugInfo:"\u663E\u793A\u7F13\u5B58\u8C03\u8BD5\u4FE1\u606F\u5931\u8D25\uFF1A{0}",noWorkspaceFolderOpen:"\u672A\u6253\u5F00\u4EFB\u4F55\u5DE5\u4F5C\u533A\u6587\u4EF6\u5939",now:"\u73B0\u5728",minutes:"\u5206",hours:"\u5C0F\u65F6",days:"\u5929",weeks:"\u5468",months:"\u4E2A\u6708",years:"\u5E74",justNow:"\u521A\u521A",minutesAgo:"{0} \u5206\u949F\u524D",hoursAgo:"{0} \u5C0F\u65F6\u524D",daysAgo:"{0} \u5929\u524D",lastModified:"\u6700\u540E\u4FEE\u6539",refreshSuccess:"\u65E5\u671F\u88C5\u9970\u5DF2\u5237\u65B0",activationError:"Explorer Dates \u542F\u52A8\u5931\u8D25",errorAccessingFile:"\u8BBF\u95EE\u7528\u4E8E\u88C5\u9970\u7684\u6587\u4EF6\u65F6\u51FA\u9519",clearTelemetryPrompt:"\u8FD9\u5C06\u6C38\u4E45\u5220\u9664\u672C\u5730\u5B58\u50A8\u7684 Explorer Dates \u9065\u6D4B\u4E8B\u4EF6\u3002\u6B64\u64CD\u4F5C\u65E0\u6CD5\u64A4\u9500\u3002\u662F\u5426\u7EE7\u7EED\uFF1F",clearTelemetryConfirm:"\u6E05\u9664\u9065\u6D4B",clearTelemetryCancel:"\u53D6\u6D88",reportFormatDisabled:"\u62A5\u8868\u683C\u5F0F\u201C{0}\u201D\u5DF2\u7981\u7528\u3002\u5141\u8BB8\u7684\u683C\u5F0F\uFF1A{1}",reportDownloadTriggered:"\u5DF2\u5728\u6D4F\u89C8\u5668\u4E2D\u89E6\u53D1\u62A5\u8868\u4E0B\u8F7D",selectReportTimeRangePlaceholder:"\u9009\u62E9\u62A5\u8868\u65F6\u95F4\u8303\u56F4",selectReportFormatPlaceholder:"\u9009\u62E9\u62A5\u8868\u683C\u5F0F",cleanupNoDeprecated:"\u2139\uFE0F \u672A\u53D1\u73B0\u9700\u8981\u6E05\u7406\u7684\u5DF2\u5F03\u7528\u8BBE\u7F6E\u3002",showMigrationHistoryNoHistory:"\u672A\u627E\u5230\u8FC1\u79FB\u5386\u53F2\u3002",resetConfirmation:"\u8FD9\u5C06\u628A\u6240\u6709 Explorer Dates \u8BBE\u7F6E\u91CD\u7F6E\u4E3A\u9ED8\u8BA4\u503C\u3002\u786E\u5B9A\u5417\uFF1F",resetConfirm:"\u91CD\u7F6E\u8BBE\u7F6E",resetCancel:"\u53D6\u6D88",resetSuccess:"\u2705 \u5DF2\u5C06 {0} \u9879\u8BBE\u7F6E\u91CD\u7F6E\u4E3A\u9ED8\u8BA4\u503C\u3002",validateNoIssues:"\u2705 \u914D\u7F6E\u6709\u6548 - \u672A\u53D1\u73B0\u95EE\u9898\uFF01",validateFoundIssues:"\u53D1\u73B0 {0} \u4E2A\u914D\u7F6E\u95EE\u9898\u3002\u662F\u5426\u67E5\u770B\u8BE6\u7EC6\u4FE1\u606F\uFF1F",validateShowDetails:"\u663E\u793A\u8BE6\u7EC6\u4FE1\u606F",validateDismiss:"\u5173\u95ED",migrationNotificationMessage:"Explorer Dates \u4E3A\u517C\u5BB9\u6027\u66F4\u65B0\u4E86 {0} \u9879\u8BBE\u7F6E\u3002\u60A8\u7684\u914D\u7F6E\u5DF2\u4FDD\u7559\u3002",migrationViewChanges:"\u67E5\u770B\u66F4\u6539",migrationOpenSettings:"\u6253\u5F00\u8BBE\u7F6E",deprecatedPrompt:"Explorer Dates \u53D1\u73B0 {0} \u4E2A\u5DF2\u5F03\u7528\u8BBE\u7F6E\u3002\u662F\u5426\u5220\u9664\uFF1F",deprecatedClean:"\u7ACB\u5373\u6E05\u7406",deprecatedKeep:"\u4FDD\u7559\u65E7\u8BBE\u7F6E",deprecatedAskLater:"\u7A0D\u540E\u8BE2\u95EE",showFileLocation:"\u663E\u793A\u6587\u4EF6\u4F4D\u7F6E",teamConfigCorrupted:"Explorer Dates \u56E2\u961F\u914D\u7F6E\u6587\u4EF6\u4F3C\u4E4E\u5DF2\u635F\u574F\u3002\u8BF7\u68C0\u67E5 .explorer-dates-profiles.json \u6587\u4EF6\u6216\u4ECE\u5907\u4EFD\u6062\u590D\u3002",appliedFromTeamProfile:"\u5DF2\u4ECE\u56E2\u961F\u914D\u7F6E\u6587\u4EF6\u201C{1}\u201D\u5E94\u7528 {0} \u9879 Explorer Dates \u8BBE\u7F6E\u3002",documentedOverrides:"\u5DF2\u5728 .vscode/explorer-dates-overrides.md \u4E2D\u8BB0\u5F55 Explorer Dates \u8986\u76D6\u9879",teamConfigMissingProfile:"\u56E2\u961F\u914D\u7F6E\u7F3A\u5C11\u6D3B\u52A8\u914D\u7F6E\u6587\u4EF6\u3002",ephemeralStorageEnospc:"\u7531\u4E8E\u78C1\u76D8\u5DF2\u6EE1\uFF0C\u65E0\u6CD5\u4FDD\u5B58 Explorer Dates \u56E2\u961F\u914D\u7F6E\u3002",ephemeralStorageGeneric:"\u7531\u4E8E\u5DE5\u4F5C\u533A\u4E3A\u53EA\u8BFB\u6216\u6743\u9650\u53D7\u9650\uFF0C\u65E0\u6CD5\u4FDD\u5B58 Explorer Dates \u56E2\u961F\u914D\u7F6E\u3002",ephemeralStorageSuffix:"\u66F4\u6539\u5C06\u5728 VS Code \u91CD\u542F\u524D\u4FDD\u5B58\u5728\u5185\u5B58\u4E2D\uFF0C\u56E0\u6B64\u53EF\u80FD\u4F1A\u4E22\u5931\u3002"}});var qe=D((sa,$e)=>{var N={};N.en=Me();N.es=Ie();N.fr=Le();N.de=Ne();N.ja=ze();N.zh=Oe();$e.exports=N});var He=D((la,Ue)=>{var z=require("vscode"),P={en:{now:"now",minutes:"m",hours:"h",days:"d",weeks:"w",months:"mo",years:"y",justNow:"just now",minutesAgo:e=>`${e} minute${e!==1?"s":""} ago`,hoursAgo:e=>`${e} hour${e!==1?"s":""} ago`,yesterday:"yesterday",daysAgo:e=>`${e} day${e!==1?"s":""} ago`,lastModified:"Last modified",refreshSuccess:"Date decorations refreshed",activationError:"Explorer Dates failed to activate",errorAccessingFile:"Error accessing file for decoration",clearTelemetryPrompt:"This will permanently delete locally-stored telemetry events for Explorer Dates. This action cannot be undone. Proceed?",clearTelemetryConfirm:"Clear Telemetry",clearTelemetryCancel:"Cancel",clearTelemetrySuccess:"\u2705 Explorer Dates telemetry cleared.",migrateChecking:"Checking for settings that need migration...",migrateAllUpToDate:"\u2705 All settings are up to date!",migrateApplied:e=>`\u2705 Explorer Dates maintenance applied: ${e}.`,organizeSettingsResult:e=>`Explorer Dates settings organized: ${e}`,cleanupSuccess:"\u2705 Deprecated settings have been cleaned up!",reportFormatDisabled:(e,t)=>`Report format "${e}" is disabled. Allowed formats: ${t}`,reportSaved:e=>`Report saved to ${e}`,reportGenerateFailed:"Failed to generate report",reportDownloadTriggered:"Report download triggered in browser",selectReportTimeRangePlaceholder:"Select report time range",selectReportFormatPlaceholder:"Select report format",cleanupNoDeprecated:"\u2139\uFE0F No deprecated settings found to clean up.",showMigrationHistoryNoHistory:"No migration history found.",resetConfirmation:"This will reset all Explorer Dates settings to their default values. Are you sure?",migrationDetailsTitle:"Explorer Dates - Settings Migration",migrationDetailsHeader:"Settings Migration",gitAttributionWarning:"Explorer Dates: Git attribution badges are unavailable on VS Code for Web. Time-based decorations remain available.",noOverridesToDocument:"No overrides to document.",overrideNotesHeader:`# Explorer Dates Override Notes -`,analysisCommandsDisabled:"Explorer Dates analysis commands are disabled. Shortcuts like Ctrl+Shift+M/H/A will not work until you enable explorerDates.enableAnalysisCommands.",analysisEnableNow:"Enable Now",analysisEnablePartially:"Enable partially succeeded. Update explorerDates.enableAnalysisCommands in remaining workspace folders manually.",analysisEnableFailed:"Enable failed: update explorerDates.enableAnalysisCommands in workspace settings.",workspaceTemplatesDisabled:"Workspace templates are disabled. Enable explorerDates.enableWorkspaceTemplates to use this command.",workspaceTemplatesDisabledSave:"Workspace templates are disabled. Enable explorerDates.enableWorkspaceTemplates to save templates.",enterTemplateName:"Enter template name",enterTemplateDescription:"Enter description (optional)",failedToOpenTemplateManager:e=>`Failed to open template manager: ${e}`,failedToSaveTemplate:e=>`Failed to save template: ${e}`,reportingDisabled:"Reporting features are disabled. Enable explorerDates.enableExportReporting to generate reports.",failedToGenerateReport:e=>`Failed to generate report: ${e}`,apiDisabled:"Explorer Dates API is disabled via settings.",failedToShowApiInformation:e=>`Failed to show API information: ${e}`,failedToShowWorkspaceActivity:e=>`Failed to show workspace activity: ${e}`,failedToShowPerformanceAnalytics:e=>`Failed to show performance analytics: ${e}`,failedToShowCacheDebugInfo:e=>`Failed to show cache debug info: ${e}`,noWorkspaceFolderOpen:"No workspace folder open",resetConfirm:"Reset Settings",resetCancel:"Cancel",resetSuccess:e=>`\u2705 Reset ${e} settings to defaults.`,validateNoIssues:"\u2705 Configuration is valid - no issues found!",validateFoundIssues:e=>`Found ${e} configuration issue(s). Would you like to see details?`,validateShowDetails:"Show Details",validateDismiss:"Dismiss",migrationNotificationMessage:e=>`Explorer Dates updated ${e} setting(s) for compatibility. Your configuration has been preserved.`,migrationViewChanges:"View Changes",migrationOpenSettings:"Open Settings",deprecatedPrompt:e=>`Explorer Dates found ${e} deprecated setting(s). Would you like to remove them?`,deprecatedClean:"Clean Up Now",deprecatedKeep:"Keep Old Settings",deprecatedAskLater:"Ask Later",showFileLocation:"Show File Location",teamConfigCorrupted:"Explorer Dates team configuration file appears to be corrupted. Please check the .explorer-dates-profiles.json file or restore from backup.",appliedFromTeamProfile:(e,t)=>`Applied ${e} Explorer Dates settings from team profile "${t}".`,documentedOverrides:"Documented Explorer Dates overrides in .vscode/explorer-dates-overrides.md",teamConfigMissingProfile:"Team configuration is missing an active profile.",ephemeralStorageEnospc:"Explorer Dates team configuration could not be saved because the disk is full.",ephemeralStorageGeneric:"Explorer Dates team configuration could not be saved because the workspace is read-only or permissions are restricted.",ephemeralStorageSuffix:" Changes will be kept in memory until VS Code restarts, so they may be lost."}};try{let e=qe();if(e&&typeof e=="object")for(let[t,r]of Object.entries(e)){P[t]||(P[t]={});for(let[a,n]of Object.entries(r))typeof P[t][a]>"u"&&(P[t][a]=n)}}catch{}var ee=class{constructor(){this.M="en",this._=null,this.re(),typeof z.workspace.onDidChangeConfiguration=="function"?this._=z.workspace.onDidChangeConfiguration(t=>{t.affectsConfiguration("explorerDates.locale")&&this.re()}):this._=null}re(){let r=z.workspace.getConfiguration("explorerDates").get("locale","auto");if(r==="auto"){let a=z&&z.env&&typeof z.env.language=="string"?z.env.language:"en";try{r=String(a||"en").split("-")[0]}catch{r="en"}}P[r]||(r="en"),this.M=r}getString(t,...r){let n=(P[this.M]||P.en)[t];return typeof n=="function"?n(...r):n||P.en[t]||t}getCurrentLocale(){return this.M}formatDate(t,r={}){try{return t.toLocaleDateString(this.M,r)}catch{return t.toLocaleDateString("en",r)}}dispose(){this._&&(this._.dispose(),this._=null),X===this&&(X=null)}},X=null;function Qt(){return X||(X=new ee),X}Ue.exports={LocalizationManager:ee,getLocalization:Qt}});var je=D((ca,Be)=>{function er(e){let t=require("vscode");function r(l,d,f,g,p,h){if(!e.dt||!g)return h&&(h.misses++,h.allocations++),p();if(l.has(g))return h&&(h.hits++,h.reuses++),l.get(g);h&&(h.misses++,h.allocations++);let k=p();if(l.set(g,k),d.push(g),d.length>f){let b=d.shift();b&&l.delete(b)}return k}function a({formatType:l,diffMinutes:d,diffHours:f,diffDays:g,diffWeeks:p,diffMonths:h,date:k}){let b=(W,S=null)=>({value:W,key:S?`badge:${l||"default"}:${S}`:null});switch(l){case"relative-short":case"relative-long":return d<1?b("\u25CF\u25CF","just"):d<60?b(`${Math.min(d,99)}m`,`m:${Math.min(d,99)}`):f<24?b(`${Math.min(f,23)}h`,`h:${Math.min(f,23)}`):g<7?b(`${g}d`,`d:${g}`):p<4?b(`${p}w`,`w:${p}`):h<12?b(`${h}M`,`M:${h}`):b("1y","y:1");case"absolute-short":case"absolute-long":{let W=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],S=k.getDate(),O=`${W[k.getMonth()]}${S<10?"0"+S:S}`,y=[k.getMonth(),S];return l==="absolute-long"&&y.push(k.getFullYear()),b(O,`abs:${y.join("-")}`)}case"technical":return d<60?b(`${d}m`,`tech:m:${d}`):f<24?b(`${f}h`,`tech:h:${f}`):b(`${g}d`,`tech:d:${g}`);case"minimal":return f<1?b("\u2022\u2022","min:now"):f<24?b("\u25CB\u25CB","min:hours"):b("\u2500\u2500","min:days");default:return d<60?b(`${d}m`,`smart:m:${d}`):f<24?b(`${f}h`,`smart:h:${f}`):b(`${g}d`,`smart:d:${g}`)}}function n(l,d,f=null){let p=f!==null?f:new Date().getTime()-l.getTime();if(p<0)return e._logger.debug(`File has future modification time (diffMs: ${p}), treating as just modified`),"\u25CF\u25CF";let h=Math.floor(p/(1e3*60)),k=Math.floor(p/(1e3*60*60)),b=Math.floor(p/(1e3*60*60*24)),W=Math.floor(b/7),S=Math.floor(b/30),O=a({formatType:d,diffMinutes:h,diffHours:k,diffDays:b,diffWeeks:W,diffMonths:S,date:l});return r(e.ae,e.Te,e.ft,O.key,()=>O.value,e.ht)}function o(l){if(!l)return"none";if(typeof l=="string")return l;if(l.id)return l.id;try{return JSON.stringify(l)}catch{return String(l)}}function i(l,d,f){let g=l||"",p=d||"",h=o(f);return`${g}::${h}::${p}`}function s({badge:l,tooltip:d,color:f}){if(!e.gt){e.y.misses++,e.y.allocations++;let h=new t.FileDecoration(l||"??");return d&&(h.tooltip=d),f&&(h.color=f),h.propagate=!1,h}if(!l)return e.y.allocations++,new t.FileDecoration("??");let g=i(l,d,f);if(g&&e.c.has(g))return e.y.hits++,e.y.reuses++,e.c.get(g);let p=new t.FileDecoration(l);if(d&&(p.tooltip=d),f&&(p.color=f),p.propagate=!1,e.y.allocations++,g&&(e.c.set(g,p),e.I.push(g),e.I.length>e.mt)){let h=e.I.shift();h&&h!==g&&e.c.delete(h)}return e.y.misses++,p}function c(l="unspecified"){e.c.size!==0&&(e.c.clear(),e.I.length=0,e._logger.debug(`\u{1F9FC} Cleared decoration pool (${l})`))}async function u({filePath:l,stat:d,gitBlame:f,shouldUseAccessibleTooltips:g,fileSizeFormat:p}){if(g){let k=e._accessibility?.getAccessibleTooltip?.(l,d.mtime,d.birthtime,d.size,f);if(k)return k}let h=[];try{let k=e.l.formatDate(d.mtime);if(h.push(`${k}`),p&&typeof d.size=="number"){let b=e.Ce(d.size,p);h.push(b)}f&&f.author&&h.push(`Author: ${f.author}`)}catch(k){e._logger.debug("Tooltip builder failed",k)}return h.join(" \u2014 ")}return{acquireDecorationFromPool:s,clearDecorationPool:c,pt:i,yt:o,bt:n,wt:a,ve:r,Y:u}}Be.exports={createDecorationLogic:er}});var ge=D((ua,Ye)=>{var Ve=typeof process<"u"&&process.env?process.env:{},Ke="[ExplorerDates][WebDiag]",he="__explorerDatesWebDiagnostics",te;function tr(){try{let e=require("vscode");return e?.env?.uiKind===e?.UIKind?.Web}catch{return Ve.VSCODE_WEB==="true"}}function T(){return te!==void 0||(te=Ve.EXPLORER_DATES_WEB_DIAG==="1"||tr()),te}function Ge(){return{enabled:T(),logs:[],logOnce:new Set,commandsRegistered:new Set,commandsInvoked:[],errors:[],chunkLoads:[],provider:{created:!1,registered:!1,hydrated:!1,decorationCalls:0,refreshCalls:0,lastEvent:null}}}var rr=Ge();function C(){return typeof globalThis<"u"?(globalThis[he]||(globalThis[he]=Ge()),globalThis[he]):rr}function ar(e){try{return JSON.stringify(e)}catch{return String(e)}}function v(e,t,r){if(!T())return;let a=C(),n={ts:new Date().toISOString(),level:e,message:t,meta:r||null};a.logs.push(n),a.logs.length>400&&a.logs.shift();let o=r?`${Ke} ${t} ${ar(r)}`:`${Ke} ${t}`,i=console[e]||console.info;try{i(o)}catch{}}function nr(e,t,r,a){if(!T())return;let n=C();n.logOnce.has(e)||(n.logOnce.add(e),v(t,r,a))}function or(e){if(!T())return;C().commandsRegistered.add(e),v("info","Command registered",{commandId:e})}function ir(e){if(!T())return;C().commandsInvoked.push({commandId:e,ts:Date.now()}),v("info","Command invoked",{commandId:e})}function sr(e,t,r){T()&&(t?v("info","Command completed",{commandId:e}):(v("error","Command failed",{commandId:e,error:r?.message,stack:r?.stack}),C().errors.push({commandId:e,error:r?.message,stack:r?.stack})))}function lr(e,t,r){if(!T())return;C().chunkLoads.push({chunkName:e,stage:t,ts:Date.now(),error:r?r.message||String(r):null}),v(r?"warn":"info",`Chunk ${t}`,{chunkName:e,error:r?.message})}function cr(e,t){if(!T())return;let r=C();r.provider.lastEvent={event:e,ts:Date.now(),meta:t||null},e==="created"&&(r.provider.created=!0),e==="registered"&&(r.provider.registered=!0),e==="hydrated"&&(r.provider.hydrated=!0),v("info",`Provider ${e}`,t)}function ur(){if(!T())return;let e=C();e.provider.decorationCalls+=1,e.provider.decorationCalls<=3&&v("info","Decoration request observed",{count:e.provider.decorationCalls})}function dr(){if(!T())return;let e=C();e.provider.refreshCalls+=1}Ye.exports={isWebDiagnosticsEnabled:T,getWebDiagnosticsState:C,diagLog:v,diagLogOnce:nr,recordCommandRegistration:or,recordCommandInvocation:ir,recordCommandResult:sr,recordChunkEvent:lr,recordProviderEvent:cr,recordDecorationCall:ur,recordRefreshCall:dr}});var Xe=D((exports,module)=>{var chunk=null;try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){try{chunk=dynamicRequire("../chunks/utils-shared-chunk")}catch{}try{chunk||(chunk=dynamicRequire("./chunks/utils-shared-chunk"))}catch{}try{chunk||(chunk=dynamicRequire("../chunks/path-utils-chunk"))}catch{}try{chunk||(chunk=dynamicRequire("./chunks/path-utils-chunk"))}catch{}}}catch{}if(chunk&&chunk.normalizePath)module.exports={normalizePath:chunk.normalizePath,getFileName:chunk.getFileName,getExtension:chunk.getExtension,getDirectory:chunk.getDirectory,joinPath:chunk.joinPath,getCacheKey:chunk.getCacheKey,getUriPath:chunk.getUriPath,getRelativePath:chunk.getRelativePath};else{let e=function(u=""){return u?u.replace(/\\/g,"/"):""},t=function(u=""){let l=e(u);return l?l.split("/").filter(Boolean):[]},r=function(u=""){let l=t(u);return l.length?l[l.length-1]:""},a=function(u=""){let l=r(u),d=l.lastIndexOf(".");return d<=0?"":l.substring(d).toLowerCase()},n=function(u=""){let l=e(u),d=l.lastIndexOf("/");return d===-1?"":l.substring(0,d)},o=function(...u){return e(u.filter(Boolean).join("/")).replace(/\/+/g,"/")},i=function(u=""){return e(u).toLowerCase()},s=function(u=""){if(!u)return"";if(typeof u=="string")return u;if(typeof u.fsPath=="string"&&u.fsPath.length>0)return u.fsPath;if(typeof u.path=="string"&&u.path.length>0)return u.path;if(typeof u.toString=="function")try{return u.toString(!0)}catch{return u.toString()}return String(u)},c=function(u="",l=""){let d=e(u),f=e(l);return d&&f.startsWith(d)?f.substring(d.length).replace(/^\/+/,""):f};normalizePath=e,getSegments=t,getFileName=r,getExtension=a,getDirectory=n,joinPath=o,getCacheKey=i,getUriPath=s,getRelativePath=c,module.exports={normalizePath:e,getFileName:r,getExtension:a,getDirectory:n,joinPath:o,getCacheKey:i,getUriPath:s,getRelativePath:c}}var normalizePath,getSegments,getFileName,getExtension,getDirectory,joinPath,getCacheKey,getUriPath,getRelativePath});var tt=D((da,et)=>{var Je="EXPLORER_DATES_FORCE_VSCODE_FS";function Ze(e,t=process.env){return String(t?.[e]||"")==="1"}function re(e){let t=e&&typeof e=="object"?e:null,r=String(t?.scheme||(typeof e=="string"&&/^[a-z][a-z0-9+.-]*:/i.test(e)?e.split(":",1)[0]:"file")).toLowerCase(),a=String(t?.authority||""),n=t?.path||t?.fsPath||(typeof e=="string"?e.replace(/^[a-z][a-z0-9+.-]*:\/\//i,""):"");return{scheme:r,authority:a,path:String(n||"")}}function fr({uri:e,isWeb:t=!1,remoteName:r="",forceWorkspaceFs:a=Ze(Je)}={}){let n=re(e),o=n.scheme!=="file",i=!!t,s=!!r,c=!!(a||i||s||o);return{scheme:n.scheme,authority:n.authority,isFileScheme:!o,isVirtual:o,isBrowser:i,isRemote:s,forceWorkspaceFs:!!a,filesystem:c?"workspace.fs":"node.fs",provider:o?n.scheme==="github"||n.scheme==="vscode-vfs"?"github":"virtual":"filesystem"}}function Qe({uri:e,platform:t=process.platform,caseSensitive:r}={}){return typeof r=="boolean"?r:re(e).scheme!=="file"?!0:t!=="win32"}function hr(e,t={}){let r=re(e),a=r.path.replace(/\\/g,"/").replace(/\/+/g,"/"),n=`${r.scheme}://${r.authority}${a}`;return Qe({uri:e,...t})?n:n.toLowerCase()}function me(e){if(e instanceof Date){let t=e.getTime();return Number.isFinite(t)?t:null}if(typeof e=="number")return Number.isFinite(e)?e:null;if(typeof e=="string"&&e.trim()){let t=Date.parse(e);return Number.isFinite(t)?t:null}return null}function gr(e){if(!e||typeof e!="object")return null;let t=me(e.mtime),r=me(e.ctime);return{...e,mtimeMs:t,ctimeMs:r}}et.exports={FORCE_WORKSPACE_FS_ENV:Je,envFlag:Ze,getUriParts:re,getEnvironmentContract:fr,isCaseSensitive:Qe,resourceIdentity:hr,normalizeTimestamp:me,normalizeStat:gr}});var ct=D((fa,lt)=>{var ae=require("vscode"),{normalizePath:be,getRelativePath:mr}=Xe(),{diagLogOnce:pr}=ge(),{normalizeTimestamp:J,resourceIdentity:yr}=tt(),br={unknown:0,github:1,git:2,fs:3},ye={low:1,medium:2,high:3};function F(e,t,r){try{return e?.get?e.get(t,r):r}catch{return r}}function wr(e){return{nowMinutes:Number(F(e,"freshnessBucketMinutesNow",60))||60,todayHours:Number(F(e,"freshnessBucketHoursToday",24))||24,twoDays:Number(F(e,"freshnessBucketDaysTwo",2))||2,oneWeek:Number(F(e,"freshnessBucketDaysWeek",7))||7}}function rt(e,t){if(!Number.isFinite(e)||e<0)return"unknown";let r=t.nowMinutes*60*1e3,a=t.todayHours*60*60*1e3,n=t.twoDays*24*60*60*1e3,o=t.oneWeek*24*60*60*1e3;return e<=r?"now":e<=a?"today":e<=n?"2d":e<=o?"1w":"stale"}function at(e){switch(e){case"now":return"now";case"today":return"today";case"2d":return"2d";case"1w":return"1w";case"stale":return"stale";default:return"unknown"}}function nt(e){switch(e){case"fs":return"Filesystem";case"git":return"Git";case"github":return"GitHub";default:return"Unknown"}}function ot(e){switch(e){case"now":return"!!";case"today":return"T";case"2d":return"2d";case"1w":return"1w";case"stale":return"~~";default:return"?"}}function Dr(e,t,r){let a=!!F(r,"freshnessShowUnknown",!0);if(e==="unknown"||t==="unknown")return a?"?":null;let n=ot(e);return!n||n==="unknown"?a?"?":null:n}function kr(e){try{let t=J(e);return t===null?null:new Date(t).toISOString().replace("T"," ").replace("Z","")}catch{return null}}function Er(e,t){if(!e)return;let r=F(t,"freshnessTooltipVerbosity","full"),a=F(t,"badge.sourceLabelMode","auto"),n=[],o=at(e.bucket),i=nt(e.source);if(n.push(`Freshness: ${o}`),e.exactTimestamp){let u=kr(e.exactTimestamp);u&&n.push(`Exact time: ${u}`)}let s=e.source==="fs"&&e.confidence==="high";return(a==="always"||a!=="never"&&!s||a!=="never"&&r==="full")&&n.push(`Source: ${i}`),e.author&&n.push(`Author: ${e.author}`),e.message&&n.push(`Message: ${e.message}`),n.push(`Confidence: ${e.confidence}`),e.reason&&r==="full"&&n.push(`Reason: ${e.reason}`),n.join(` +`,analysisCommandsDisabled:"Explorer Dates analysis commands are disabled. Shortcuts like Ctrl+Shift+M/H/A will not work until you enable explorerDates.enableAnalysisCommands.",analysisEnableNow:"Enable Now",analysisEnablePartially:"Enable partially succeeded. Update explorerDates.enableAnalysisCommands in remaining workspace folders manually.",analysisEnableFailed:"Enable failed: update explorerDates.enableAnalysisCommands in workspace settings.",workspaceTemplatesDisabled:"Workspace templates are disabled. Enable explorerDates.enableWorkspaceTemplates to use this command.",workspaceTemplatesDisabledSave:"Workspace templates are disabled. Enable explorerDates.enableWorkspaceTemplates to save templates.",enterTemplateName:"Enter template name",enterTemplateDescription:"Enter description (optional)",failedToOpenTemplateManager:e=>`Failed to open template manager: ${e}`,failedToSaveTemplate:e=>`Failed to save template: ${e}`,reportingDisabled:"Reporting features are disabled. Enable explorerDates.enableExportReporting to generate reports.",failedToGenerateReport:e=>`Failed to generate report: ${e}`,apiDisabled:"Explorer Dates API is disabled via settings.",failedToShowApiInformation:e=>`Failed to show API information: ${e}`,failedToShowWorkspaceActivity:e=>`Failed to show workspace activity: ${e}`,failedToShowPerformanceAnalytics:e=>`Failed to show performance analytics: ${e}`,failedToShowCacheDebugInfo:e=>`Failed to show cache debug info: ${e}`,noWorkspaceFolderOpen:"No workspace folder open",resetConfirm:"Reset Settings",resetCancel:"Cancel",resetSuccess:e=>`\u2705 Reset ${e} settings to defaults.`,validateNoIssues:"\u2705 Configuration is valid - no issues found!",validateFoundIssues:e=>`Found ${e} configuration issue(s). Would you like to see details?`,validateShowDetails:"Show Details",validateDismiss:"Dismiss",migrationNotificationMessage:e=>`Explorer Dates updated ${e} setting(s) for compatibility. Your configuration has been preserved.`,migrationViewChanges:"View Changes",migrationOpenSettings:"Open Settings",deprecatedPrompt:e=>`Explorer Dates found ${e} deprecated setting(s). Would you like to remove them?`,deprecatedClean:"Clean Up Now",deprecatedKeep:"Keep Old Settings",deprecatedAskLater:"Ask Later",showFileLocation:"Show File Location",teamConfigCorrupted:"Explorer Dates team configuration file appears to be corrupted. Please check the .explorer-dates-profiles.json file or restore from backup.",appliedFromTeamProfile:(e,t)=>`Applied ${e} Explorer Dates settings from team profile "${t}".`,documentedOverrides:"Documented Explorer Dates overrides in .vscode/explorer-dates-overrides.md",teamConfigMissingProfile:"Team configuration is missing an active profile.",ephemeralStorageEnospc:"Explorer Dates team configuration could not be saved because the disk is full.",ephemeralStorageGeneric:"Explorer Dates team configuration could not be saved because the workspace is read-only or permissions are restricted.",ephemeralStorageSuffix:" Changes will be kept in memory until VS Code restarts, so they may be lost."}};try{let e=qe();if(e&&typeof e=="object")for(let[t,r]of Object.entries(e)){P[t]||(P[t]={});for(let[a,n]of Object.entries(r))typeof P[t][a]>"u"&&(P[t][a]=n)}}catch{}var ee=class{constructor(){this.M="en",this._=null,this.re(),typeof z.workspace.onDidChangeConfiguration=="function"?this._=z.workspace.onDidChangeConfiguration(t=>{t.affectsConfiguration("explorerDates.locale")&&this.re()}):this._=null}re(){let r=z.workspace.getConfiguration("explorerDates").get("locale","auto");if(r==="auto"){let a=z&&z.env&&typeof z.env.language=="string"?z.env.language:"en";try{r=String(a||"en").split("-")[0]}catch{r="en"}}P[r]||(r="en"),this.M=r}getString(t,...r){let n=(P[this.M]||P.en)[t];return typeof n=="function"?n(...r):n||P.en[t]||t}getCurrentLocale(){return this.M}formatDate(t,r={}){try{return t.toLocaleDateString(this.M,r)}catch{return t.toLocaleDateString("en",r)}}dispose(){this._&&(this._.dispose(),this._=null),X===this&&(X=null)}},X=null;function Qt(){return X||(X=new ee),X}Ue.exports={LocalizationManager:ee,getLocalization:Qt}});var je=D((ca,Be)=>{function er(e){let t=require("vscode");function r(l,d,f,g,p,h){if(!e.dt||!g)return h&&(h.misses++,h.allocations++),p();if(l.has(g))return h&&(h.hits++,h.reuses++),l.get(g);h&&(h.misses++,h.allocations++);let k=p();if(l.set(g,k),d.push(g),d.length>f){let b=d.shift();b&&l.delete(b)}return k}function a({formatType:l,diffMinutes:d,diffHours:f,diffDays:g,diffWeeks:p,diffMonths:h,date:k}){let b=(W,S=null)=>({value:W,key:S?`badge:${l||"default"}:${S}`:null});switch(l){case"relative-short":case"relative-long":return d<1?b("\u25CF\u25CF","just"):d<60?b(`${Math.min(d,99)}m`,`m:${Math.min(d,99)}`):f<24?b(`${Math.min(f,23)}h`,`h:${Math.min(f,23)}`):g<7?b(`${g}d`,`d:${g}`):p<4?b(`${p}w`,`w:${p}`):h<12?b(`${h}M`,`M:${h}`):b("1y","y:1");case"absolute-short":case"absolute-long":{let W=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],S=k.getDate(),O=`${W[k.getMonth()]}${S<10?"0"+S:S}`,y=[k.getMonth(),S];return l==="absolute-long"&&y.push(k.getFullYear()),b(O,`abs:${y.join("-")}`)}case"technical":return d<60?b(`${d}m`,`tech:m:${d}`):f<24?b(`${f}h`,`tech:h:${f}`):b(`${g}d`,`tech:d:${g}`);case"minimal":return f<1?b("\u2022\u2022","min:now"):f<24?b("\u25CB\u25CB","min:hours"):b("\u2500\u2500","min:days");default:return d<60?b(`${d}m`,`smart:m:${d}`):f<24?b(`${f}h`,`smart:h:${f}`):b(`${g}d`,`smart:d:${g}`)}}function n(l,d,f=null){let p=f!==null?f:new Date().getTime()-l.getTime();if(p<0)return e._logger.debug(`File has future modification time (diffMs: ${p}), treating as just modified`),"\u25CF\u25CF";let h=Math.floor(p/(1e3*60)),k=Math.floor(p/(1e3*60*60)),b=Math.floor(p/(1e3*60*60*24)),W=Math.floor(b/7),S=Math.floor(b/30),O=a({formatType:d,diffMinutes:h,diffHours:k,diffDays:b,diffWeeks:W,diffMonths:S,date:l});return r(e.ae,e.Te,e.ft,O.key,()=>O.value,e.ht)}function o(l){if(!l)return"none";if(typeof l=="string")return l;if(l.id)return l.id;try{return JSON.stringify(l)}catch{return String(l)}}function i(l,d,f){let g=l||"",p=d||"",h=o(f);return`${g}::${h}::${p}`}function s({badge:l,tooltip:d,color:f}){if(!e.gt){e.y.misses++,e.y.allocations++;let h=new t.FileDecoration(l||"??");return d&&(h.tooltip=d),f&&(h.color=f),h.propagate=!1,h}if(!l)return e.y.allocations++,new t.FileDecoration("??");let g=i(l,d,f);if(g&&e.c.has(g))return e.y.hits++,e.y.reuses++,e.c.get(g);let p=new t.FileDecoration(l);if(d&&(p.tooltip=d),f&&(p.color=f),p.propagate=!1,e.y.allocations++,g&&(e.c.set(g,p),e.I.push(g),e.I.length>e.mt)){let h=e.I.shift();h&&h!==g&&e.c.delete(h)}return e.y.misses++,p}function c(l="unspecified"){e.c.size!==0&&(e.c.clear(),e.I.length=0,e._logger.debug(`\u{1F9FC} Cleared decoration pool (${l})`))}async function u({filePath:l,stat:d,gitBlame:f,shouldUseAccessibleTooltips:g,fileSizeFormat:p}){if(g){let k=e._accessibility?.getAccessibleTooltip?.(l,d.mtime,d.birthtime,d.size,f);if(k)return k}let h=[];try{let k=e.l.formatDate(d.mtime);if(h.push(`${k}`),p&&typeof d.size=="number"){let b=e.Ce(d.size,p);h.push(b)}f&&f.author&&h.push(`Author: ${f.author}`)}catch(k){e._logger.debug("Tooltip builder failed",k)}return h.join(" \u2014 ")}return{acquireDecorationFromPool:s,clearDecorationPool:c,pt:i,yt:o,bt:n,wt:a,ve:r,Y:u}}Be.exports={createDecorationLogic:er}});var ge=D((ua,Ye)=>{var Ve=typeof process<"u"&&process.env?process.env:{},Ke="[ExplorerDates][WebDiag]",he="__explorerDatesWebDiagnostics",te;function tr(){try{let e=require("vscode");return e?.env?.uiKind===e?.UIKind?.Web}catch{return Ve.VSCODE_WEB==="true"}}function T(){return te!==void 0||(te=Ve.EXPLORER_DATES_WEB_DIAG==="1"||tr()),te}function Ge(){return{enabled:T(),logs:[],logOnce:new Set,commandsRegistered:new Set,commandsInvoked:[],errors:[],chunkLoads:[],provider:{created:!1,registered:!1,hydrated:!1,decorationCalls:0,refreshCalls:0,lastEvent:null}}}var rr=Ge();function C(){return typeof globalThis<"u"?(globalThis[he]||(globalThis[he]=Ge()),globalThis[he]):rr}function ar(e){try{return JSON.stringify(e)}catch{return String(e)}}function v(e,t,r){if(!T())return;let a=C(),n={ts:new Date().toISOString(),level:e,message:t,meta:r||null};a.logs.push(n),a.logs.length>400&&a.logs.shift();let o=r?`${Ke} ${t} ${ar(r)}`:`${Ke} ${t}`,i=console[e]||console.info;try{i(o)}catch{}}function nr(e,t,r,a){if(!T())return;let n=C();n.logOnce.has(e)||(n.logOnce.add(e),v(t,r,a))}function or(e){if(!T())return;C().commandsRegistered.add(e),v("info","Command registered",{commandId:e})}function ir(e){if(!T())return;C().commandsInvoked.push({commandId:e,ts:Date.now()}),v("info","Command invoked",{commandId:e})}function sr(e,t,r,a,n){if(!T())return;let o=a||(t?"behavioral-success":"unhandled-command-failure"),i=r?{name:r.name||"Error",message:r.message||String(r),code:r.code||null}:null;t?v("info","Command completed",{commandId:e,outcomeCategory:o}):(v("error","Command failed",{commandId:e,outcomeCategory:o,error:i,errorContext:n||null}),C().errors.push({commandId:e,outcomeCategory:o,error:i,errorContext:n||null}))}function lr(e,t,r){if(!T())return;C().chunkLoads.push({chunkName:e,stage:t,ts:Date.now(),error:r?r.message||String(r):null}),v(r?"warn":"info",`Chunk ${t}`,{chunkName:e,error:r?.message})}function cr(e,t){if(!T())return;let r=C();r.provider.lastEvent={event:e,ts:Date.now(),meta:t||null},e==="created"&&(r.provider.created=!0),e==="registered"&&(r.provider.registered=!0),e==="hydrated"&&(r.provider.hydrated=!0),v("info",`Provider ${e}`,t)}function ur(){if(!T())return;let e=C();e.provider.decorationCalls+=1,e.provider.decorationCalls<=3&&v("info","Decoration request observed",{count:e.provider.decorationCalls})}function dr(){if(!T())return;let e=C();e.provider.refreshCalls+=1}Ye.exports={isWebDiagnosticsEnabled:T,getWebDiagnosticsState:C,diagLog:v,diagLogOnce:nr,recordCommandRegistration:or,recordCommandInvocation:ir,recordCommandResult:sr,recordChunkEvent:lr,recordProviderEvent:cr,recordDecorationCall:ur,recordRefreshCall:dr}});var Xe=D((exports,module)=>{var chunk=null;try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){try{chunk=dynamicRequire("../chunks/utils-shared-chunk")}catch{}try{chunk||(chunk=dynamicRequire("./chunks/utils-shared-chunk"))}catch{}try{chunk||(chunk=dynamicRequire("../chunks/path-utils-chunk"))}catch{}try{chunk||(chunk=dynamicRequire("./chunks/path-utils-chunk"))}catch{}}}catch{}if(chunk&&chunk.normalizePath)module.exports={normalizePath:chunk.normalizePath,getFileName:chunk.getFileName,getExtension:chunk.getExtension,getDirectory:chunk.getDirectory,joinPath:chunk.joinPath,getCacheKey:chunk.getCacheKey,getUriPath:chunk.getUriPath,getRelativePath:chunk.getRelativePath};else{let e=function(u=""){return u?u.replace(/\\/g,"/"):""},t=function(u=""){let l=e(u);return l?l.split("/").filter(Boolean):[]},r=function(u=""){let l=t(u);return l.length?l[l.length-1]:""},a=function(u=""){let l=r(u),d=l.lastIndexOf(".");return d<=0?"":l.substring(d).toLowerCase()},n=function(u=""){let l=e(u),d=l.lastIndexOf("/");return d===-1?"":l.substring(0,d)},o=function(...u){return e(u.filter(Boolean).join("/")).replace(/\/+/g,"/")},i=function(u=""){return e(u).toLowerCase()},s=function(u=""){if(!u)return"";if(typeof u=="string")return u;if(typeof u.fsPath=="string"&&u.fsPath.length>0)return u.fsPath;if(typeof u.path=="string"&&u.path.length>0)return u.path;if(typeof u.toString=="function")try{return u.toString(!0)}catch{return u.toString()}return String(u)},c=function(u="",l=""){let d=e(u),f=e(l);return d&&f.startsWith(d)?f.substring(d.length).replace(/^\/+/,""):f};normalizePath=e,getSegments=t,getFileName=r,getExtension=a,getDirectory=n,joinPath=o,getCacheKey=i,getUriPath=s,getRelativePath=c,module.exports={normalizePath:e,getFileName:r,getExtension:a,getDirectory:n,joinPath:o,getCacheKey:i,getUriPath:s,getRelativePath:c}}var normalizePath,getSegments,getFileName,getExtension,getDirectory,joinPath,getCacheKey,getUriPath,getRelativePath});var tt=D((da,et)=>{var Je="EXPLORER_DATES_FORCE_VSCODE_FS";function Ze(e,t=process.env){return String(t?.[e]||"")==="1"}function re(e){let t=e&&typeof e=="object"?e:null,r=String(t?.scheme||(typeof e=="string"&&/^[a-z][a-z0-9+.-]*:/i.test(e)?e.split(":",1)[0]:"file")).toLowerCase(),a=String(t?.authority||""),n=t?.path||t?.fsPath||(typeof e=="string"?e.replace(/^[a-z][a-z0-9+.-]*:\/\//i,""):"");return{scheme:r,authority:a,path:String(n||"")}}function fr({uri:e,isWeb:t=!1,remoteName:r="",forceWorkspaceFs:a=Ze(Je)}={}){let n=re(e),o=n.scheme!=="file",i=!!t,s=!!r,c=!!(a||i||s||o);return{scheme:n.scheme,authority:n.authority,isFileScheme:!o,isVirtual:o,isBrowser:i,isRemote:s,forceWorkspaceFs:!!a,filesystem:c?"workspace.fs":"node.fs",provider:o?n.scheme==="github"||n.scheme==="vscode-vfs"?"github":"virtual":"filesystem"}}function Qe({uri:e,platform:t=process.platform,caseSensitive:r}={}){return typeof r=="boolean"?r:re(e).scheme!=="file"?!0:t!=="win32"}function hr(e,t={}){let r=re(e),a=r.path.replace(/\\/g,"/").replace(/\/+/g,"/"),n=`${r.scheme}://${r.authority}${a}`;return Qe({uri:e,...t})?n:n.toLowerCase()}function me(e){if(e instanceof Date){let t=e.getTime();return Number.isFinite(t)?t:null}if(typeof e=="number")return Number.isFinite(e)?e:null;if(typeof e=="string"&&e.trim()){let t=Date.parse(e);return Number.isFinite(t)?t:null}return null}function gr(e){if(!e||typeof e!="object")return null;let t=me(e.mtime),r=me(e.ctime);return{...e,mtimeMs:t,ctimeMs:r}}et.exports={FORCE_WORKSPACE_FS_ENV:Je,envFlag:Ze,getUriParts:re,getEnvironmentContract:fr,isCaseSensitive:Qe,resourceIdentity:hr,normalizeTimestamp:me,normalizeStat:gr}});var ct=D((fa,lt)=>{var ae=require("vscode"),{normalizePath:be,getRelativePath:mr}=Xe(),{diagLogOnce:pr}=ge(),{normalizeTimestamp:J,resourceIdentity:yr}=tt(),br={unknown:0,github:1,git:2,fs:3},ye={low:1,medium:2,high:3};function F(e,t,r){try{return e?.get?e.get(t,r):r}catch{return r}}function wr(e){return{nowMinutes:Number(F(e,"freshnessBucketMinutesNow",60))||60,todayHours:Number(F(e,"freshnessBucketHoursToday",24))||24,twoDays:Number(F(e,"freshnessBucketDaysTwo",2))||2,oneWeek:Number(F(e,"freshnessBucketDaysWeek",7))||7}}function rt(e,t){if(!Number.isFinite(e)||e<0)return"unknown";let r=t.nowMinutes*60*1e3,a=t.todayHours*60*60*1e3,n=t.twoDays*24*60*60*1e3,o=t.oneWeek*24*60*60*1e3;return e<=r?"now":e<=a?"today":e<=n?"2d":e<=o?"1w":"stale"}function at(e){switch(e){case"now":return"now";case"today":return"today";case"2d":return"2d";case"1w":return"1w";case"stale":return"stale";default:return"unknown"}}function nt(e){switch(e){case"fs":return"Filesystem";case"git":return"Git";case"github":return"GitHub";default:return"Unknown"}}function ot(e){switch(e){case"now":return"!!";case"today":return"T";case"2d":return"2d";case"1w":return"1w";case"stale":return"~~";default:return"?"}}function Dr(e,t,r){let a=!!F(r,"freshnessShowUnknown",!0);if(e==="unknown"||t==="unknown")return a?"?":null;let n=ot(e);return!n||n==="unknown"?a?"?":null:n}function kr(e){try{let t=J(e);return t===null?null:new Date(t).toISOString().replace("T"," ").replace("Z","")}catch{return null}}function Er(e,t){if(!e)return;let r=F(t,"freshnessTooltipVerbosity","full"),a=F(t,"badge.sourceLabelMode","auto"),n=[],o=at(e.bucket),i=nt(e.source);if(n.push(`Freshness: ${o}`),e.exactTimestamp){let u=kr(e.exactTimestamp);u&&n.push(`Exact time: ${u}`)}let s=e.source==="fs"&&e.confidence==="high";return(a==="always"||a!=="never"&&!s||a!=="never"&&r==="full")&&n.push(`Source: ${i}`),e.author&&n.push(`Author: ${e.author}`),e.message&&n.push(`Message: ${e.message}`),n.push(`Confidence: ${e.confidence}`),e.reason&&r==="full"&&n.push(`Reason: ${e.reason}`),n.join(` `)}function Sr(e,t,r){if(!Number.isFinite(t)||t<=0)return!1;let a=300*1e3;if(t>r+a)return!1;if(e==="file")return!0;let n=r-t,o=300*1e3,i=365*24*60*60*1e3*10;return!(ni)}function we({source:e,timestampMs:t,author:r,message:a,confidence:n,reason:o},i){if(!Number.isFinite(t))return{bucket:"unknown",source:e||"unknown",confidence:n||"low",reason:o||"no-timestamp"};let s=wr(i),c=Date.now()-t;return{bucket:rt(c,s),source:e,exactTimestamp:t,author:r||void 0,message:a||void 0,confidence:n,reason:o||void 0}}async function _r(e,t,r){let a=e?.scheme||"file",n=!!F(r,"freshnessAllowVirtualFs",!1);if(a!=="file"&&!n)return{freshness:null,reason:"fs-virtual-disabled"};let o=t?.mtimeMs??J(t?.mtime),i=Date.now();return Number.isFinite(o)?Sr(a,o,i)?{freshness:we({source:"fs",timestampMs:o,confidence:a==="file"?"high":"medium",reason:a==="file"?"fs-trust-high":"fs-trust-medium"},r),reason:null}:{freshness:null,reason:"fs-mtime-untrusted"}:{freshness:null,reason:"fs-mtime-missing"}}async function Tr(e,t,r){if(!t||typeof t.Fe!="function")return{freshness:null,reason:"git-provider-missing"};let a;try{a=await t.Fe(e)}catch(i){return{freshness:null,reason:`git-error:${i?.message||"unknown"}`}}let n=J(a?.timestampMs);return n===null||n<=0?{freshness:null,reason:a?.error||"git-no-timestamp"}:{freshness:we({source:"git",timestampMs:n,author:a?.author||void 0,message:a?.message||void 0,confidence:"medium",reason:"git-recency"},r),reason:null}}function it(e){if(!e||(e.scheme||"")!=="github")return null;let a=be(e.path||"").replace(/^\/+/,"").split("/").filter(Boolean);if(a.length<2)return null;let n=a[0],o=a[1],i=a.slice(2).join("/"),s=new URLSearchParams(e.query||""),c=s.get("ref")||s.get("branch")||"HEAD";return{owner:n,repo:o,filePath:i,ref:c}}function Cr(e){let t=(e||"").indexOf("+");if(t===-1)return"HEAD";let r=e.slice(t+1);try{let a;if(typeof TextDecoder<"u"){let i=new Uint8Array(r.length/2);for(let s=0;s0)return o}catch{}return"HEAD"}function st(e){if(!e||e.scheme!=="vscode-vfs"||!String(e.authority||"").startsWith("github"))return null;let r=be(e.path||"").replace(/^\/+/,"").split("/").filter(Boolean);if(r.length<2)return null;let a=r[0],n=r[1],o=r.slice(2).join("/"),i=Cr(e.authority||"");return{owner:a,repo:n,filePath:o,ref:i}}function vr(e){try{let t=ae.workspace.workspaceFolders||[];for(let r of t){let a=r?.uri?.scheme;if(a==="github"){let n=it(r.uri);if(!n)continue;let o=mr(r.uri.path||"",e?.path||"");return{...n,filePath:o}}if(a==="vscode-vfs"&&String(r?.uri?.authority||"").startsWith("github")){let n=st(r.uri);if(!n)continue;let i=be(e?.path||"").replace(/^\/+/,"").split("/").filter(Boolean).slice(2).join("/");if(!i)continue;return{...n,filePath:i}}}}catch{}return null}async function Fr(e,t){let r=it(e)||st(e)||vr(e);if(!r||!r.owner||!r.repo||!r.filePath)return{freshness:null,reason:"github-context-missing"};let a=`${r.owner}/${r.repo}@${r.ref}:${r.filePath}`,n=`https://api.github.com/repos/${r.owner}/${r.repo}/commits?path=${encodeURIComponent(r.filePath)}&sha=${encodeURIComponent(r.ref)}&per_page=1`,o={Accept:"application/vnd.github+json"};try{let p=ae?.authentication&&typeof ae.authentication.getSession=="function"?await ae.authentication.getSession("github",["repo"],{createIfNone:!1}):null;p?.accessToken&&(o.Authorization=`Bearer ${p.accessToken}`)}catch{}if(typeof fetch!="function")return{freshness:null,reason:"github-fetch-unavailable"};let i;try{i=await fetch(n,{headers:o})}catch(p){return{freshness:null,reason:`github-fetch-error:${p?.message||"unknown"}`}}if(!i||!i.ok)return{freshness:null,reason:i?`github-http-${i.status}`:"github-no-response"};let s;try{s=await i.json()}catch{return{freshness:null,reason:"github-json-error"}}let c=Array.isArray(s)?s[0]:null,u=c?.commit||null,l=u?.author?.name||c?.author?.login||void 0,d=u?.message||void 0,f=J(u?.author?.date);return f===null?{freshness:null,reason:"github-no-timestamp"}:{freshness:we({source:"github",timestampMs:f,author:l,message:d,confidence:"medium",reason:"github-commit"},t),reason:null,cacheKey:a}}function pe(e,t){return!e||e==="auto"?!0:e==="unknown"?t==="unknown":e===t}async function Ar({uri:e,stat:t,provider:r,config:a,workspaceKind:n}){let o=e?.scheme||"file",i=F(a,"freshnessSourcePolicy","auto"),s=[],c=Date.now();if(pe(i,"fs")){let u=await _r(e,t,a);if(s.push({source:"fs",reason:u.reason||null}),u.freshness)return{...u.freshness,attempts:s}}if(pe(i,"git")){let u=await Tr(e,r,a);if(s.push({source:"git",reason:u.reason||null}),u.freshness)return{...u.freshness,attempts:s}}if(pe(i,"github")){let u=await Fr(e,a);if(s.push({source:"github",reason:u.reason||null,cacheKey:u.cacheKey||null}),u.freshness)return{...u.freshness,attempts:s}}return pr("freshness-unknown","info","No trustworthy freshness source available",{scheme:o,workspaceKind:n||"unknown",attempts:s}),{bucket:"unknown",source:"unknown",confidence:"low",reason:"no-source",attempts:s,resolvedAt:c}}function Rr(e,t){if(!e)return-1;if(!t)return 1;let r=ye[e.confidence]||0,a=ye[t.confidence]||0;if(r!==a)return r-a;let n=Number(e.exactTimestamp||0),o=Number(t.exactTimestamp||0);return n-o}lt.exports={resolveFreshness:Ar,formatBadge:Dr,formatTooltip:Er,bucketFromAge:rt,formatBucketLabel:at,formatBadgeAge:ot,formatSourceLabel:nt,compareFreshness:Rr,SOURCE_RANK:br,CONFIDENCE_RANK:ye,normalizeTimestamp:J,resourceIdentity:yr}});var ut=D((exports,module)=>{function createDecorationProviderHelpers(provider){let vscode=require("vscode"),{diagLogOnce,diagLog,isWebDiagnosticsEnabled}=ge(),{formatBadge,formatTooltip}=ct(),decorationDiagCount=0,maxDecorationDiag=20,CONTRIBUTED_CUSTOM_COLOR_TOKENS=new Set(["explorerDates.customColor.veryRecent","explorerDates.customColor.recent","explorerDates.customColor.old"]),isWebRuntime=(()=>{try{return vscode?.env?.uiKind===vscode?.UIKind?.Web}catch{return!1}})(),getFileName,getExtension,normalizePath,getUriPath,ensureDate;try{let e=U();e&&(getFileName=e.getFileName,getExtension=e.getExtension,normalizePath=e.normalizePath,getUriPath=e.getUriPath,ensureDate=e.ensureDate)}catch{}if(!getFileName||!ensureDate){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function")try{let e=dynamicRequire("../utils/pathUtils"),t=dynamicRequire("../utils/dateHelpers");getFileName=getFileName||e.getFileName,getExtension=getExtension||e.getExtension,normalizePath=normalizePath||e.normalizePath,getUriPath=getUriPath||e.getUriPath,ensureDate=ensureDate||t.ensureDate}catch{}}catch{}getFileName||(getFileName=e=>{let t=String(e||""),r=t.replace(/\\/g,"/").lastIndexOf("/");return r===-1?t:t.substring(r+1)}),getExtension||(getExtension=e=>{let t=String(e||""),r=t.lastIndexOf(".");return r<=0?"":t.substring(r).toLowerCase()}),normalizePath||(normalizePath=(e="")=>(e||"").toString().replace(/\\/g,"/")),getUriPath||(getUriPath=(e="")=>e?typeof e=="string"?e:e?.fsPath?e.fsPath:e?.path?e.path:String(e):""),ensureDate||(ensureDate=e=>e instanceof Date?e:typeof e=="number"?new Date(e):typeof e=="string"?isNaN(Date.parse(e))?new Date:new Date(Date.parse(e)):new Date)}async function provideDecoration(e,t){let r=!1,a=null,n,o=null,i=null,s=null,c=null,u=!1,l=null,d=null,f=null,g=null,p=null,h=null,k=!1,b=()=>isWebDiagnosticsEnabled&&isWebDiagnosticsEnabled()&&decorationDiagCount{let y=null;try{y=vscode.workspace.getConfiguration("explorerDates")}catch{y=null}let x=y?y.get("colorScheme","none"):"none",m=y?y.get("showDateDecorations",!0):!0,M=typeof provider._performanceMode=="boolean"?provider._performanceMode:y?y.get("performanceMode",!1):!1,K=isWebRuntime&&y?!!y.get("webDiagnosticsBuiltinColors",!1):!1;return{isWeb:isWebRuntime,isCanary:!1,builtinColorFallbackActive:K,colorScheme:x,effectiveColorScheme:x,showDateDecorations:m,performanceMode:M,featureLevel:provider.x,previewSettings:!!provider.L}},S=y=>{if(!b()||r)return;decorationDiagCount+=1,r=!0;let m={...W(),...y};!m.scheme&&a&&(m.scheme=a),m.effectiveColorScheme||(m.effectiveColorScheme=m.colorScheme),typeof m.hasColor>"u"&&(m.hasColor=!!m.color),typeof m.badge>"u"&&(m.badge=null),typeof m.propagate>"u"&&(m.propagate=null),typeof m.decorationKeys>"u"&&(m.decorationKeys=null),typeof m.nullReason>"u"&&(m.nullReason=null),typeof m.timestampSource>"u"&&(m.timestampSource="not-attempted"),typeof m.gitRecencyAvailable>"u"&&(m.gitRecencyAvailable=!1),typeof m.gitRecencyError>"u"&&(m.gitRecencyError=null),typeof m.resolvedTimestampMs>"u"&&(m.resolvedTimestampMs=null),typeof m.gitRepoMatched>"u"&&(m.gitRepoMatched=null),typeof m.gitPathAttempted>"u"&&(m.gitPathAttempted=null),m.themeTokenSource||(m.isCanary?m.themeTokenSource="canary":m.builtinColorFallbackActive?m.themeTokenSource="builtin-fallback":typeof m.color=="string"&&m.color.startsWith("explorerDates.")?m.themeTokenSource="custom-token":m.color?m.themeTokenSource="builtin-token":m.themeTokenSource=null),diagLog("info","Decoration return sample",m)},O=y=>{if(!(!b()||r))try{S(y)}catch{}};try{if(provider.Ae){o="disposed";return}if(!e){o="no-uri";return}let y=e.fsPath||e.path||"";a=e.scheme||"file";let x=vscode.workspace.getConfiguration("explorerDates"),m=x.get("performanceMode",!1);if(m&&typeof m!="boolean")return o="invalid-performanceMode",null;if(y&&y.includes("\0"))return o="invalid-path",null;let M=getUriPath(e);if(!M){o="missing-path";return}let K=provider.ne?provider.ne(M):getFileName(M)||M,ve=normalizePath(M),vt=a||"file";if(typeof provider.oe!="function"){diagLogOnce("decorations-fallback-provider","warn","Decoration fallback active (missing provider helpers)");try{let _=await provider._fileSystem.stat(e);if(!_){o="no-stat";return}let $=_.mtime instanceof Date?_.mtime:_.mtime?new Date(_.mtime):null,ie=$&&typeof $.getTime=="function"?$.getTime():NaN;if(!Number.isFinite(ie)){o="invalid-stat";return}let V=Date.now()-$.getTime(),se=V<1440*60*1e3?"\u2022":V<10080*60*1e3?"\u25E6":"\xB7",le=`Modified: ${$.toISOString()}`,Z=new vscode.FileDecoration(se,le);return n=Z,p=se,f=!1,g=null,h=Z?.propagate,Z}catch{o="fallback-error";return}}if(!provider.oe(e,"provideFileDecoration")?.isValid){o="invalid-uri";return}if(await provider.Dt(e)){o="excluded";return}return n=await provider.kt(y,async()=>{if(t?.isCancellationRequested||provider.Ae){o=t?.isCancellationRequested?"cancelled":"disposed";return}let _=(w,Q)=>provider.L&&Object.prototype.hasOwnProperty.call(provider.L,w)?provider.L[w]:vscode.workspace.getConfiguration("explorerDates").get(w,Q);if(isWebRuntime&&_("webDiagnosticsCanary",!1)&&isWebDiagnosticsEnabled&&isWebDiagnosticsEnabled()&&decorationDiagCount=provider.N;if(provider.Tt>provider.N*.8&&le){diagLogOnce("decorations-backpressure","warn","Decoration backpressure fallback active");let w=provider.Ct(e,Date.now());return p=w?.badge||null,f=!!w?.color,g=w?.color&&w?.color.id?w.color.id:w?.color||null,h=w?.propagate,o="backpressure",w}provider.vt(),provider._metrics.cacheMisses++;let R=null;if(!ie&&provider._workspaceIntelligence?.incrementalIndexer){let w=provider._workspaceIntelligence.incrementalIndexer.getIndexedStat(y);w&&(R=w)}let Fe=Date.now();if(!R){try{R=await provider._fileSystem.stat(e)}catch(w){if(provider._metrics.fileStatTimeMs+=Date.now()-Fe,provider._metrics.fileStatCalls++,provider.Ft(w)){o="stat-not-found";return}if(vt!=="file"){o="stat-failed";return}throw o="stat-failed",w}provider._workspaceIntelligence?.incrementalIndexer&&provider._workspaceIntelligence.incrementalIndexer.primeFromStat(e,R)}if(provider._metrics.fileStatTimeMs+=Date.now()-Fe,provider._metrics.fileStatCalls++,!(typeof R.isFile=="function"?R.isFile():!0)){o="not-regular-file";return}u=!0;let E=null;try{typeof provider.Re=="function"&&(E=await provider.Re(e,R,{filePath:y,fileLabel:K}))}catch(w){c={source:"unknown",gitAvailable:!1,gitError:w?.message?`resolver-error:${w.message}`:"resolver-error",repoMatched:null,pathAttempted:null}}if((!E||E.bucket==="unknown"||E.source==="unknown")&&!_("freshnessShowUnknown",!0)){o="freshness-unknown";return}let ce=_("colorScheme","none");provider._performanceMode&&ce!=="custom"&&(ce="none");let Ft=_("fileSizeFormat","auto"),q=provider.Pe,At=q&&typeof q.Y=="function"?q.Y:provider.Y,Rt=q&&typeof q.acquireDecorationFromPool=="function"?q.acquireDecorationFromPool:provider.At,ue=formatBadge(E?.bucket||"unknown",E?.source||"unknown",x,E?.confidence||"low");if(!ue){o="badge-suppressed";return}let I=E?.exactTimestamp?provider.Rt(new Date(E.exactTimestamp),ce,y):void 0,Pt=formatTooltip(E,x)||await At({filePath:y,resourceUri:e,stat:R,badgeDetails:{},gitBlame:null,shouldUseAccessibleTooltips:!1,fileSizeFormat:Ft,isCodeFile:!1}),de=Rt({badge:ue,tooltip:Pt,color:I});return g=I&&typeof I=="object"&&"id"in I?I.id:I||null,f=!!I,p=String(ue||""),h=de?.propagate,typeof g=="string"&&g.startsWith("explorerDates.customColor.")&&!CONTRIBUTED_CUSTOM_COLOR_TOKENS.has(g)&&diagLogOnce(`missing-custom-color-${g}`,"warn","Custom color token missing from contributes.colors",{colorId:g,knownTokens:Array.from(CONTRIBUTED_CUSTOM_COLOR_TOKENS)}),l=E?.exactTimestamp||null,c=c||{source:E?.source||"unknown",bucket:E?.bucket||"unknown",confidence:E?.confidence||"low",reason:E?.reason||null,attempts:E?.attempts||null,gitAvailable:E?.source==="git",gitError:null,repoMatched:null,pathAttempted:null},provider.Pt(V,de,K,e,E),de}),n}catch(y){i=y?.name||"Error",s=y?.message||String(y),o=o||"exception";return}finally{if(n){if(d==null)try{d=Object.keys(n||{})}catch{d=null}if(p==null&&typeof n.badge<"u"&&(p=n.badge),h==null&&typeof n.propagate<"u"&&(h=n.propagate),g==null&&typeof n.color<"u")try{g=n.color&&n.color.id?n.color.id:n.color}catch{g=n.color}f==null&&typeof g<"u"&&(f=!!g)}let y={uri:e?getFileName(getUriPath(e)||""):null,scheme:a,isCanary:k,badge:p,hasColor:f,color:g,propagate:h,decorationKeys:d,nullReason:n?null:o||"unknown",timestampSource:c?.source||(u?"none":"not-attempted"),gitRecencyAvailable:!!c?.gitAvailable,gitRecencyError:c?.gitError||null,resolvedTimestampMs:l,gitRepoMatched:c?.repoMatched??null,gitPathAttempted:c?.pathAttempted||null,freshnessBucket:c?.bucket||null,freshnessSource:c?.source||null,freshnessConfidence:c?.confidence||null,freshnessReason:c?.reason||null,freshnessAttempts:c?.attempts||null,exceptionName:i,exceptionMessage:s};O(y)}}return{provideDecoration}}module.exports={createDecorationProviderHelpers}});var De=D((ha,ft)=>{var H=typeof process<"u"&&process.env?process.env:{},Pr=12e4,Wr=1e4,xr=1440*60*1e3,Mr=2,Ir=["Ja","Fe","Mr","Ap","My","Jn","Jl","Au","Se","Oc","No","De"],Lr=Number(H.EXPLORER_DATES_DECORATION_POOL_SIZE||2048),Nr=Number(H.EXPLORER_DATES_FLYWEIGHT_CACHE_SIZE||4096),zr=Number(H.EXPLORER_DATES_WORKSPACE_BALANCED_THRESHOLD||15e3),Or=Number(H.EXPLORER_DATES_WORKSPACE_LARGE_THRESHOLD||25e4),dt=Number(H.EXPLORER_DATES_WORKSPACE_EXTREME_THRESHOLD||4e5),$r=Number(H.EXPLORER_DATES_WORKSPACE_SCAN_MAX_RESULTS||Math.min(dt+1,50001)),qr={ADVANCED_CACHE:"explorerDates.advancedCache",ADVANCED_CACHE_METADATA:"explorerDates.advancedCacheMetadata",TEMPLATE_STORE:"explorerDates.templates",WEB_GIT_NOTICE:"explorerDates.webGitNotice"},Ur="explorerDatesChunks",Hr="__explorerDatesChunks";ft.exports={DEFAULT_CACHE_TIMEOUT:Pr,DEFAULT_MAX_CACHE_SIZE:Wr,DEFAULT_PERSISTENT_CACHE_TTL:xr,DEFAULT_DECORATION_POOL_SIZE:Lr,DEFAULT_FLYWEIGHT_CACHE_SIZE:Nr,MAX_BADGE_LENGTH:Mr,MONTH_ABBREVIATIONS:Ir,WORKSPACE_SCALE_BALANCED_THRESHOLD:zr,WORKSPACE_SCALE_LARGE_THRESHOLD:Or,WORKSPACE_SCALE_EXTREME_THRESHOLD:dt,WORKSPACE_SCAN_MAX_RESULTS:$r,GLOBAL_STATE_KEYS:qr,WEB_CHUNK_GLOBAL_KEY:Ur,LEGACY_WEB_CHUNK_GLOBAL_KEY:Hr}});var Se=D((ga,ht)=>{var B="__explorerDatesLogger",j=class{constructor(){this.z=null}O(t,r){if(this.z&&typeof this.z[t]=="function")try{return this.z[t](...r)}catch{}switch(t){case"debug":break;case"info":break;case"warn":break;case"error":break;default:break}}debug(...t){return this.O("debug",t)}info(...t){return this.O("info",t)}warn(...t){return this.O("warn",t)}error(...t){return this.O("error",t)}Wt(t){this.z=t}};function Br(){return typeof global<"u"?(global[B]||(global[B]=new j),global[B]):typeof globalThis<"u"?(globalThis[B]||(globalThis[B]=new j),globalThis[B]):(ke||(ke=new j),ke)}var Ee=class extends j{},ke=null;ht.exports={Logger:Ee,getLogger:Br}});var wt=D((ma,bt)=>{var A=require("vscode"),{getLogger:jr}=Se(),{WORKSPACE_SCALE_BALANCED_THRESHOLD:gt,WORKSPACE_SCALE_LARGE_THRESHOLD:oe,WORKSPACE_SCALE_EXTREME_THRESHOLD:mt,WORKSPACE_SCAN_MAX_RESULTS:pt}=De(),_e=jr(),ne=null;function yt(e){return e&&(e.fsPath||e.path)||null}function Te(e,t){let r=yt(e);!r||typeof t!="number"||(ne={workspaceKey:r,fileCount:t,timestamp:Date.now()})}function Ce(e){let t=yt(e);return!t||!ne||ne.workspaceKey!==t?null:ne}function Kr(e,t="default"){if(!e)return`unknown-workspace-${t}`;let r=e.fsPath||e.path||"",a=r.split("/").pop()||"workspace",n=Math.abs(r.split("").reduce((i,s)=>(i=(i<<5)-i+s.charCodeAt(0),i&i),0)).toString(36).substr(0,8),o=Math.abs(t.split("").reduce((i,s)=>(i=(i<<5)-i+s.charCodeAt(0),i&i),0)).toString(36).substr(0,4);return`${a}-${n}-${o}`}async function Vr(e){try{if(!e)return"unknown";let t=Ce(e),r;t?r=t.fileCount:(r=(await A.workspace.findFiles("**/*",null,pt)).length,Te(e,r));let a="small";r>=mt?a="extreme":r>=oe?a="large":r>=1e3&&(a="medium");let n=A.env.remoteName,o=A.env.uiKind===A.UIKind.Web,i=a==="medium"&&r>=gt&&ru.toLowerCase());if(c.includes("package.json")||c.includes("yarn.lock"))return"web-development";if(c.some(u=>u.endsWith(".ipynb"))||c.includes("requirements.txt"))return"data-science";if(c.includes("docker-compose.yml")||c.includes(".enterprise"))return"enterprise"}catch(s){_e.debug("Project type detection failed:",s)}return"full"}catch(t){return _e.error("Workspace profile detection failed:",t),"unknown"}}async function Gr(e){if(!e)return null;try{let t=Ce(e),r;t?r=t.fileCount:(r=(await A.workspace.findFiles("**/*",null,pt)).length,Te(e,r));let a="small";r>=mt?a="extreme":r>=oe?a="large":r>=1e3&&(a="medium");let n=!!A.env.remoteName,o=A.env.uiKind===A.UIKind.Web,i=o?"web":n?"remote":"local",s=a==="medium"&&r>=gt&&r{var vscode=require("vscode"),getFileName,getExtension,normalizePath,getUriPath,ensureDate;try{let e=U();e&&(getFileName=e.getFileName,getExtension=e.getExtension,normalizePath=e.normalizePath,getUriPath=e.getUriPath,ensureDate=e.ensureDate)}catch{}if(!getFileName||!ensureDate){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function")try{let e=dynamicRequire("../utils/pathUtils"),t=dynamicRequire("../utils/dateHelpers");getFileName=getFileName||e.getFileName,getExtension=getExtension||e.getExtension,normalizePath=normalizePath||e.normalizePath,getUriPath=getUriPath||e.getUriPath,ensureDate=ensureDate||t.ensureDate}catch{}}catch{}getFileName||(getFileName=e=>{let t=String(e||""),r=t.replace(/\\/g,"/").lastIndexOf("/");return r===-1?t:t.substring(r+1)}),getExtension||(getExtension=e=>{let t=String(e||""),r=t.lastIndexOf(".");return r<=0?"":t.substring(r).toLowerCase()}),normalizePath||(normalizePath=(e="")=>(e||"").toString().replace(/\\/g,"/")),getUriPath||(getUriPath=(e="")=>e?typeof e=="string"?e:e?.fsPath?e.fsPath:e?.path?e.path:String(e):""),ensureDate||(ensureDate=e=>e instanceof Date?e:typeof e=="number"?new Date(e):typeof e=="string"?isNaN(Date.parse(e))?new Date:new Date(Date.parse(e)):new Date)}var SMART_WATCHER_PRIORITY=new Map([["src",100],["lib",65],["test",30]]);async function performWorkspaceSizeCheck(e){let t=vscode.workspace.getConfiguration("explorerDates"),r=t.get("forceEnableForLargeWorkspaces",!1),a=t.get("performanceMode",!1),n=r||a,o=vscode.workspace.workspaceFolders;if(!o||o.length===0)return;e._logger.info("Checking workspace size for large workspace detection...");let i=await e.xt(e._getIndexerMaxFiles()),s=!Array.isArray(i),c=s?e.WORKSPACE_SCAN_TIMEOUT_FALLBACK_COUNT:i.length;if(s){let l=e.WORKSPACE_SCAN_TIMEOUT_MS?`${e.WORKSPACE_SCAN_TIMEOUT_MS}ms`:"the configured timeout";e._logger.warn(`Workspace scan exceeded ${l}; defaulting to extreme scale`)}else{let l=`${e.WORKSPACE_SCALE_LARGE_THRESHOLD}+`;e._logger.info(`Workspace contains ${c>=e.WORKSPACE_SCALE_LARGE_THRESHOLD?l:c} files`)}let u=e.r;e.We=c,e.r=c>=e.WORKSPACE_SCALE_EXTREME_THRESHOLD?"extreme":c>=e.WORKSPACE_SCALE_LARGE_THRESHOLD?"large":"normal";try{let l=o[0]?.uri;wt().setCachedWorkspaceMetrics(l,c)}catch(l){e._logger.debug("Unable to cache workspace file count",l)}u!==e.r&&e.T&&!e._performanceMode&&(e._logger.info(`Workspace scale changed ${u} -> ${e.r}; recalibrating watchers`),e.xe("workspace-scale-update")),e._batchProcessor&&typeof e._batchProcessor.setWorkspaceScale=="function"&&e._batchProcessor.setWorkspaceScale(e.r||"normal"),e.Me(e.Ie(vscode.workspace.getConfiguration("explorerDates")),"workspace-scale-change"),n&&e._logger.debug("Large workspace prompt suppressed (force/performance mode), but scaling adjustments applied")}async function findWorkspaceFilesWithTimeout(e,t){let r=Number.isFinite(e.WORKSPACE_SCAN_TIMEOUT_MS)?e.WORKSPACE_SCAN_TIMEOUT_MS:0,a=vscode.workspace.findFiles("**/*",null,t);if(!r||r<=0)return a;try{return await new Promise((n,o)=>{let i=null,s=(c,u=!1)=>{i&&(clearTimeout(i),i=null),u?o(c):n(c)};i=setTimeout(()=>s(null),r),a.then(c=>s(c),c=>s(c,!0))})}catch(n){return e._logger.warn("Workspace scan failed, assuming large workspace",{error:n?.message||String(n)}),null}}async function _buildSmartWatcherTargets(e,t,r){let a=[],n=Math.max(1,r.maxPatterns),o=n,i=t.length;for(let s of t){if(o<=0)break;let c=Math.max(1,Math.floor(o/i)),u=new vscode.RelativePattern(s,"*.{md,mdx,json,jsonc,yml,yaml,ts,tsx,js,jsx}");if(a.push({pattern:u,label:`root:${s.name}`}),o-=1,o<=0)break;let l=Math.min(Math.max(c-1,0),o);if(l>0)try{let d=typeof e._fileSystem?.readdir=="function"?await e._fileSystem.readdir(s.uri||s.fsPath||s):[],f=(Array.isArray(d)?d:[]).filter(h=>h&&(typeof h.isDirectory=="function"?h.isDirectory():!0)).map(h=>typeof h=="string"?h:h.name||"").filter(Boolean).filter(h=>!["node_modules",".git","dist","build","out"].includes(h));e._logger?.debug&&e._logger.debug("smart-watcher: top-level dirs",{folder:s.name,dirs:f}),f.sort((h,k)=>(SMART_WATCHER_PRIORITY.get(k)||0)-(SMART_WATCHER_PRIORITY.get(h)||0));let p=f.slice(0,l).map(h=>({pattern:new vscode.RelativePattern(s,`${h}/**/*.{md,mdx,json,jsonc,yml,yaml,ts,tsx,js,jsx}`),label:`sub:${s.name}/${h}`})).slice(0,l);a.push(...p),o-=p.length}catch{}i-=1}return a.slice(0,n)}function _addExclusionValueToSet(e,t,r={}){if(!t)return;let{onlyRootSegment:a=!1}=r,n=typeof t=="string"?t:typeof t?.toString=="function"?t.toString():"";if(!n||typeof n!="string")return;let o=n.trim();if(!o)return;let s=o.replace(/\\/g,"/").replace(/\*\*/g,"").replace(/\*/g,"").split("/").map(c=>c.trim()).filter(Boolean);if(!s.length){if(o.includes("*")||o.includes("?"))return;e.add(o.toLowerCase());return}if(a){e.add(s[0].toLowerCase());return}for(let c of s)e.add(c.toLowerCase())}function registerWatcherHandlers(e,t,r="unknown"){t&&(t.onDidChange(a=>e.i(a,"change",r)),t.onDidCreate(a=>e.i(a,"create",r)),t.onDidDelete(a=>e.i(a,"delete",r)))}function dispatchWatcherEvent(e,t,r,a="unknown"){r==="delete"?e.clearDecoration(t):e.refreshDecoration(t),e._workspaceIntelligence?.incrementalIndexer&&e._workspaceIntelligence.incrementalIndexer.queueDelta(t,r),e.ie&&e._logger.debug(`Watcher event processed (${r}) for ${e.describeFile(t)} via ${a}`)}module.exports={performWorkspaceSizeCheck,findWorkspaceFilesWithTimeout,$:_buildSmartWatcherTargets,Mt:_addExclusionValueToSet,registerWatcherHandlers,dispatchWatcherEvent}});var kt=D((exports,module)=>{var vscode=require("vscode"),{DEFAULT_DYNAMIC_WATCHER_LIMIT,DEFAULT_WATCHER_INACTIVITY_MS}=De(),proc=typeof process<"u"?process:null,env=proc?.env||{},normalizePath,getUriPath;try{let e=U();e&&(normalizePath=e.normalizePath,getUriPath=e.getUriPath)}catch{}if(!normalizePath){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function")try{let e=dynamicRequire("../utils/pathUtils");normalizePath=normalizePath||e.normalizePath,getUriPath=getUriPath||e.getUriPath}catch{}}catch(e){}normalizePath||(normalizePath=(e="")=>(e||"").toString().replace(/\\/g,"/")),getUriPath||(getUriPath=(e="")=>e?typeof e=="string"?e:e?.fsPath?e.fsPath:e?.path?e.path:String(e):"")}var{getLogger}=Se(),nodePath=null;try{nodePath=require("path")}catch{}var WatcherManager=class{constructor(t){this.e=t,this._logger=t._logger||getLogger(),this.a=new Set,this.b=void 0,this.w=[],this.n=new Map,this.C=null,this.u=t.u||new Map,this._smartWatcherFallbackManager=t._smartWatcherFallbackManager||null,this.v=null,this.D="none"}setupFileWatcher(t="initial"){if(this.e._performanceMode||this.e.q){let n=this.e.q?"provider disposed":"performance mode enabled";this._logger.debug(`Skipping file watcher setup (${t}) - ${n}`);return}this.b||(this.b={pending:!0});let r=++this.e.Le;(async()=>{if(this.v)try{await this.v}catch(o){this._logger.debug("Previous watcher setup promise rejected",o)}let n=this.Ne(r,t);this.v=n;try{await n}finally{this.v===n&&(this.v=null)}})().catch(n=>this._logger.error("Failed to configure file watchers",n))}async Ne(t,r){if(this.U(t))return;if(this.disposeFileWatchers({permanent:!1}),this.U(t))return this.X("post-dispose");this.b={pending:!0};let a=vscode.workspace.workspaceFolders;if(!a||a.length===0){this._logger.debug("No workspace folders detected; skipping watcher setup"),this.D="none";return}if(this.e._isWeb){this._logger.info("File watchers are unavailable in web environments; skipping watcher setup"),this.D="none";return}let n=vscode.workspace.getConfiguration("explorerDates"),o=env.EXPLORER_DATES_DISABLE_SMART_WATCHERS==="1";this.e.T=!o&&n.get("smartFileWatching",!0),this.e._enableWatcherFallbacks=this.e.T&&n.get("enableSmartWatcherFallbacks","auto");let i=n.get("smartWatcherMaxPatterns",20),s=this.e.It(n.get("smartWatcherExtensions",[])),c=this.e.Lt(i);if(this.e.se={maxPatterns:c,extensions:s},this.U(t))return this.X("post-config");if(!this.e.T){this._logger.info("Smart file watching disabled; falling back to global watcher"),await this.H("disabled");return}let u=[];try{if(typeof this.e.$=="function")u=await this.e.$(a,this.e.se);else try{let l=Dt();if(l&&typeof l.$=="function")u=await l.$(this.e,a,this.e.se);else throw new Error("_buildSmartWatcherTargets not implemented on provider or helper")}catch(l){throw l}}catch(l){this._logger.error("Smart watcher analysis failed, falling back to global watcher",l),await this.H("analysis-failed");return}if(this.U(t))return this.X("post-analysis");if(!u||u.length===0){this._logger.warn("Smart watcher analysis yielded no targets; falling back to global watcher"),await this.H("no-targets");return}for(let l of u)try{let d=await this.le(l.pattern,l.label);d&&(this.F(d,l.label),this.a.add(d))}catch(d){this._logger.debug(`Failed to create watcher for pattern ${l.label}`,d)}if(this.a.size===0){this._logger.warn("Smart watcher setup produced zero watchers; using global fallback"),await this.H("no-watchers-created");return}this.b=this.a.values().next().value||void 0,this.D="smart",this._logger.info(`Smart file watching enabled (${this.a.size} base watcher${this.a.size===1?"":"s"})`,{reason:r,patterns:u.map(l=>l.label)}),this.ze()}U(t){return!!(this.e.q||this.e._performanceMode||typeof t=="number"&&t!==this.e.Le)}X(t="unknown"){let r=this.e._performanceMode||this.e.q;this.disposeFileWatchers({permanent:r}),this._logger.debug(`Watcher setup aborted (${t})`,{permanentAbort:r,disposed:this.e.q,performanceMode:this.e._performanceMode})}async ce(){try{let{getFeatureFlagsGlobal:t}=Y(),r=t();return(r?await r.decorationsAdvanced():null)||null}catch(t){return this._logger.debug("Failed to load decorationsAdvanced chunk",t),null}}async le(t,r="unknown"){try{let n=await this.ce();if(n?.createWatcherWithFallback)return await n.createWatcherWithFallback(this.e,t,r)}catch(n){this._logger.debug(`Advanced watcher chunk failed for ${r}`,n)}let a=()=>{let n=this.e._enableWatcherFallbacks;if(n===!1)return!1;if(n==="auto"||n===!0){let o=proc?.platform,i=env.WSL_DISTRO_NAME||env.WSLENV,s=vscode.env.remoteName,c=env.DOCKER_CONTAINER;return i||s||c||o==="android"}return!1};try{let n=vscode.workspace.createFileSystemWatcher(t);return this._logger.debug(`Native watcher created for ${r}`),n}catch(n){return this._logger.debug(`Native watcher failed for ${r}:`,n),a()?this.Oe(t,r):null}}async Oe(t,r){try{let a=await this.ce();if(a?.createFallbackWatcher)return await a.createFallbackWatcher(this.e,t,r)}catch(a){this._logger.warn(`Fallback watcher creation failed for ${r}:`,a)}try{if(!this._smartWatcherFallbackManager){let{getFeatureFlagsGlobal:a}=Y(),n=a(),o=n?await n.loadFeatureModule("smartWatcherFallback"):null;if(o){let{SmartWatcherFallbackManager:i}=o;this._smartWatcherFallbackManager=new i({logger:this._logger}),await this._smartWatcherFallbackManager.initialize()}}if(this._smartWatcherFallbackManager){let n=await(await this._smartWatcherFallbackManager.getFallback()).createWatcherWithFallback(t);return this._logger.debug(`Fallback watcher created for ${r}`),n}}catch(a){this._logger.warn(`Fallback watcher creation failed for ${r}:`,a)}return null}async H(t="global-default"){this.ue();let r=await this.le("**/*",`global:${t}`);r?(this.F(r,`global:${t}`),this.a.add(r),this.b=r,this.D="global",this._logger.info(`Global watcher activated (${t})`)):this._logger.error(`Failed to create global watcher (${t})`)}F(t,r="unknown"){t&&(t.onDidChange(a=>this.i(a,"change",r)),t.onDidCreate(a=>this.i(a,"create",r)),t.onDidDelete(a=>this.i(a,"delete",r)))}i(t,r,a="unknown"){if(!t||t.scheme!=="file"||!this.e.oe(t,`watcher:${r}`)?.isValid)return;let o=this.$e();if(o<=0){this.B(t,r,a);return}let i=`${t.toString()}:${r}`,s=this.u.get(i);s&&clearTimeout(s.timer);let c=setTimeout(()=>{this.u.delete(i),this.B(t,r,a)},o);this.u.set(i,{timer:c,source:a})}B(t,r,a){try{this.e.qe?.(t)}catch{}r==="delete"?this.e.clearDecoration(t):this.e.refreshDecoration(t),this.e._workspaceIntelligence?.incrementalIndexer&&this.e._workspaceIntelligence.incrementalIndexer.queueDelta(t,r),this.e.ie&&this._logger.debug(`Watcher event processed (${r}) for ${this.e.ne(t)} via ${a}`)}$e(){if(this.e._performanceMode)return 0;switch(this.e.r){case"extreme":return 600;case"large":return 250;default:return 100}}handleWorkspaceFoldersChanged(t){let r=(t?.added||[]).map(o=>o.uri).filter(Boolean),a=(t?.removed||[]).map(o=>o.uri).filter(Boolean);if(r.length===0&&a.length===0)return;let n=async()=>{this._logger.info("Workspace folders changed",{added:r.length,removed:a.length}),await this.e.checkWorkspaceSize();try{this.e.clearAllCaches()}catch{}try{this.e.refreshAll()}catch{}if(!this.e._performanceMode&&(this.setupFileWatcher("workspace-change"),await this.e.Nt().catch(o=>this._logger.debug("Failed to reconfigure progressive loading after workspace change",o)),this.e._workspaceIntelligence)){let o=(vscode.workspace.workspaceFolders||[]).map(i=>({uri:i.uri}));await this.e._workspaceIntelligence.onWorkspaceFoldersChanged({added:o,removed:a.map(i=>({uri:i}))})}};this.e.J&&clearTimeout(this.e.J),this.e.J=setTimeout(()=>{this.e.J=null,n().catch(o=>this._logger.debug("Workspace folder change handling failed",o))},250)}disposeFileWatchers(t={}){let r=t.permanent===!0;if(this.a?.size){for(let a of this.a)try{a.dispose()}catch(n){this._logger.debug("Failed to dispose file watcher",n)}this.a.clear()}this.b=r?null:void 0,this.ue(),this.fe(!0),this.Ue(),this.D="none"}Ue(){if(this.u?.size){for(let t of this.u.values())clearTimeout(t.timer);this.u.clear()}}ze(){if(!this.e.T||this.w.length>0)return;let t=(a,n)=>{let o=this.e.W(vscode.window,a,n);o&&this.w.push(o)},r=(a,n)=>{let o=this.e.W(vscode.workspace,a,n);o&&this.w.push(o)};t("onDidChangeVisibleTextEditors",a=>{(a||[]).forEach(n=>this.A(n?.document?.uri,"visible-editor"))}),t("onDidChangeActiveTextEditor",a=>{this.A(a?.document?.uri,"active-editor")}),r("onDidOpenTextDocument",a=>{this.A(a?.uri,"open-document")}),r("onDidSaveTextDocument",a=>{this.A(a?.uri,"save-document")}),this.He(),this.Be()}ue(){if(this.w?.length){for(let t of this.w)try{t.dispose()}catch(r){this._logger.debug("Failed to dispose watcher listener",r)}this.w=[]}this.he()}zt(){if(this._smartWatcherFallbackManager){try{this._smartWatcherFallbackManager.dispose()}catch(t){this._logger.debug("Error disposing smart watcher fallback manager:",t)}this._smartWatcherFallbackManager=null}}He(){(Array.isArray(vscode.window?.visibleTextEditors)?vscode.window.visibleTextEditors:[]).forEach(r=>this.A(r?.document?.uri,"visible-seed"))}Be(){this.C||(this.C=setInterval(()=>this.fe(),DEFAULT_WATCHER_INACTIVITY_MS))}he(){this.C&&(clearInterval(this.C),this.C=null)}fe(t=!1){if(!this.n?.size)return;let r=Date.now()-DEFAULT_WATCHER_INACTIVITY_MS;for(let[a,n]of this.n.entries())if(t||n.lastUsed=DEFAULT_DYNAMIC_WATCHER_LIMIT&&this.je();try{let i=new vscode.RelativePattern(n,"**/*"),s=vscode.workspace.createFileSystemWatcher(i),c=nodePath.basename(n)||"root";this.F(s,`dynamic:${r}:${c}`),this.n.set(n,{watcher:s,lastUsed:Date.now(),source:r})}catch(i){this._logger.debug(`Failed to create dynamic watcher for ${n}`,i)}}je(){let t=null,r=Number.POSITIVE_INFINITY;for(let[a,n]of this.n.entries())n.lastUsed{function Et(e){!e._allocationTelemetryEnabled||e._telemetryReportTimer||(e._telemetryReportTimer=setTimeout(()=>{e._telemetryReportTimer=null,St(e),Et(e)},e._telemetryReportInterval))}function St(e){let t=e.getMetrics().allocationTelemetry,r=t.decorationPool.allocations+t.badgeFlyweight.allocations+t.readableFlyweight.allocations,a=t.decorationPool.reuses+t.badgeFlyweight.reuses+t.readableFlyweight.reuses;(r>0||a>0)&&e._logger?.info?.("\u{1F9EE} Allocation telemetry report",{timestamp:new Date().toISOString(),pool:{allocations:t.decorationPool.allocations,reuses:t.decorationPool.reuses,reuseRate:t.decorationPool.reusePercent+"%"},badgeFlyweight:{allocations:t.badgeFlyweight.allocations,reuses:t.badgeFlyweight.reuses,reuseRate:t.badgeFlyweight.reusePercent+"%"},readableFlyweight:{allocations:t.readableFlyweight.allocations,reuses:t.readableFlyweight.reuses,reuseRate:t.readableFlyweight.reusePercent+"%"},summary:{totalAllocations:r,totalReuses:a,overallReuseRate:r+a>0?(a/(r+a)*100).toFixed(1)+"%":"0%"},decorationsProcessed:e._metrics.totalDecorations,cacheHitRate:e.getMetrics().cacheHitRate})}_t.exports={scheduleTelemetryReport:Et,reportAllocationTelemetry:St}});var Ct=D((exports,module)=>{var getFileName,normalizePath,getUriPath;try{let e=U();e&&(getFileName=e.getFileName,normalizePath=e.normalizePath,getUriPath=e.getUriPath)}catch{}if(!getFileName){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function")try{let e=dynamicRequire("../utils/pathUtils");getFileName=getFileName||e.getFileName,normalizePath=normalizePath||e.normalizePath,getUriPath=getUriPath||e.getUriPath}catch{}}catch{}getFileName||(getFileName=e=>{let t=String(e||""),r=t.replace(/\\/g,"/").lastIndexOf("/");return r===-1?t:t.substring(r+1)}),normalizePath||(normalizePath=(e="")=>(e||"").toString().replace(/\\/g,"/")),getUriPath||(getUriPath=(e="")=>e?typeof e=="string"?e:e?.fsPath?e.fsPath:e?.path?e.path:String(e):"")}var VIEWPORT_DEFAULT_WINDOW_MS=300*1e3,VIEWPORT_STANDARD_WINDOW_MS=600*1e3,VIEWPORT_MINIMAL_WINDOW_MS=900*1e3,DEFAULT_SMART_WATCHER_EXTENSIONS=["ts","tsx","js","jsx","mjs","cjs","mts","cts","vue","py","go","rb","rs","java","kt","swift","cs","cpp","c","php","scala","sql","md","mdx","json","jsonc","yml","yaml","toml","ini","txt","html","css","scss"],SMART_WATCHER_PRIORITY=new Map([["src",100],["app",95],["apps",95],["packages",90],["services",85],["service",80],["client",75],["clients",70],["server",70],["servers",65],["lib",65],["libs",60],["api",60],["apis",60],["components",55],["modules",55],["feature",50],["features",50],["extensions",45],["scripts",45],["tools",45],["examples",40],["docs",35],["config",35],["test",30],["tests",30],["spec",30],["specs",30],["demo",25],["demos",25]]);function basename(e){if(!e)return"";try{return require("path").basename(e)}catch{let t=e.replace(/\\/g,"/"),r=t.lastIndexOf("/");return r===-1?t:t.substring(r+1)}}function dirname(e){if(!e)return".";try{return require("path").dirname(e)}catch{let t=e.replace(/\\/g,"/"),r=t.lastIndexOf("/");return r===-1?".":t.substring(0,r)}}function describeFile(e=""){try{let t=typeof e=="string"?e:getUriPath(e),r=normalizePath(t);return getFileName(r)||r||"unknown"}catch{return"unknown"}}function getNormalizedPathsFromEditors(e){let t=Date.now();if(!Array.isArray(e))return[];let r=[];for(let a of e){let n=a?.document?.uri;if(!n||n.scheme!=="file")continue;let o=normalizePath(getUriPath(n));o&&r.push({path:o,ts:t})}return r}function keysToTrimViewportHistory(e,t,r,a=!1,n=Date.now()){let o=n-t*2,i=[];for(let[s,c]of e)(a||cr&&c({value:d,key:f?`badge:${t||"default"}:${f}`:null});switch(t){case"relative-short":case"relative-long":return o<1?l("\u25CF\u25CF","just"):o<60?l(`${Math.min(o,99)}m`,`m:${Math.min(o,99)}`):i<24?l(`${Math.min(i,23)}h`,`h:${Math.min(i,23)}`):s<7?l(`${s}d`,`d:${s}`):c<4?l(`${c}w`,`w:${c}`):u<12?l(`${u}M`,`M:${u}`):l("1y","y:1");case"absolute-short":case"absolute-long":{let d=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],f=e instanceof Date?e.getDate():new Date(e).getDate(),g=`${d[e instanceof Date?e.getMonth():new Date(e).getMonth()]}${f<10?"0"+f:f}`,p=`abs:${e instanceof Date?e.getMonth():new Date(e).getMonth()}-${f}`;return l(g,p)}case"technical":return o<60?l(`${o}m`,`tech:m:${o}`):i<24?l(`${i}h`,`tech:h:${i}`):l(`${s}d`,`tech:d:${s}`);case"minimal":return i<1?l("\u2022\u2022","min:now"):i<24?l("\u25CB\u25CB","min:hours"):l("\u2500\u2500","min:days");default:return o<60?l(`${o}m`,`smart:m:${o}`):i<24?l(`${i}h`,`smart:h:${i}`):l(`${s}d`,`smart:d:${s}`)}}module.exports={VIEWPORT_DEFAULT_WINDOW_MS,VIEWPORT_STANDARD_WINDOW_MS,VIEWPORT_MINIMAL_WINDOW_MS,DEFAULT_SMART_WATCHER_EXTENSIONS,SMART_WATCHER_PRIORITY,FILE_TYPE_COLOR_MAP,COLOR_ENHANCEMENT_MAP,getFileTypeColorMap,getColorEnhancementMap,getNormalizedPathsFromEditors,keysToTrimViewportHistory,computeReadableDescriptor,formatDateBadge,basename,dirname,describeFile}});var vscode=null;try{vscode=require("vscode")}catch{}var proc=typeof process<"u"?process:null,env=proc?.env||{},{getFeatureFlagsGlobal}=Y(),featureFlags=getFeatureFlagsGlobal(),FEATURE_LEVELS=["full","enhanced","standard","minimal"];if(!featureFlags)throw new Error("Explorer Dates: feature flags bridge unavailable for decorationsAdvanced chunk");function tryLoadChunk(...names){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function")for(let e of names)try{let t=dynamicRequire(e);if(t)return t}catch{}}catch{}return null}async function loadBatchProcessorIfNeeded(provider){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=dynamicRequire("./decoration-batch-chunk");if(e&&typeof e.loadBatchProcessorIfNeeded=="function")return await e.loadBatchProcessorIfNeeded(provider)}}catch(e){provider._logger?.debug?.("Delegated loadBatchProcessorIfNeeded failed",e)}return provider._logger?.debug?.("BatchProcessor not available (fallback)"),null}async function deferPreloads(e){try{Promise.resolve().then(()=>G(xe())).then(t=>{try{e.Ot=t.createViewportManager?.(e)||null}catch(r){e._logger?.debug?.("Failed to init viewport manager",r)}}).catch(t=>e._logger?.debug?.("Failed to load viewport manager chunk",t)),Promise.resolve().then(()=>G(He())).then(t=>{try{let r=t.getLocalization();e.l.getString=(...n)=>r.getString(...n),e.l.formatDate=(...n)=>r.formatDate(...n),e.l.getCurrentLocale=()=>r.getCurrentLocale();let a=e.l.dispose;e.l.dispose=()=>{try{r.dispose()}catch{}a()}}catch{}}).catch(()=>{}),Promise.resolve().then(()=>G(je())).then(t=>{try{e.Pe=t.createDecorationLogic?.(e)||null}catch(r){e._logger?.debug?.("Failed to initialize decoration logic chunk",r)}}).catch(t=>e._logger?.debug?.("Failed to load decoration logic chunk",t)),Promise.resolve().then(()=>G(ut())).then(t=>{try{e.$t=t.createDecorationProviderHelpers?.(e)||null}catch(r){e._logger?.debug?.("Failed to initialize decoration provide chunk",r)}}).catch(t=>e._logger?.debug?.("Failed to load decoration provide chunk",t)),e._logger?.debug?.("Deferred preloads scheduled")}catch(t){e._logger?.debug?.("deferPreloads failed",t)}}async function getCachedDecoration(provider,cacheKey,fileLabel){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function")try{let e=dynamicRequire("./decoration-cache-chunk");if(e&&typeof e.getCachedDecoration=="function")return await e.getCachedDecoration(provider,cacheKey,fileLabel)}catch{}if(provider.Ke)return provider._logger?.debug?.(`\u26A0\uFE0F Cache bypass enabled - recalculating decoration for: ${fileLabel}`),null;if(provider._advancedCache)try{let e=await provider._advancedCache.get(cacheKey);if(e)return provider._metrics.cacheHits++,provider._logger?.debug?.(`\u{1F9E0} Advanced cache hit for: ${fileLabel}`),e}catch(e){provider._logger?.debug?.(`Advanced cache error: ${e.message}`)}if(!provider.t||typeof provider.t.get!="function")return provider._logger?.debug?.("getCachedDecoration: no memory cache available, falling back"),null;let memoryEntry=provider.t.get(cacheKey);if(memoryEntry){if(memoryEntry.forceRefresh){try{provider.t.delete(cacheKey)}catch{}provider._logger?.debug?.(`\u{1F6AB} Memory cache bypassed (forced refresh) for: ${fileLabel}`)}else if(Date.now()-memoryEntry.timestampprovider.o&&typeof provider.t.enforceLimit=="function"&&provider.t.enforceLimit(provider.o,provider._logger)}catch{}let cacheEntry={decoration,timestamp:Date.now()};resourceUri&&(cacheEntry.uri=resourceUri);try{provider.t.set(cacheKey,cacheEntry)}catch{}try{typeof provider.Ve=="function"&&provider.Ve()}catch(e){provider._logger?.debug?.("monitorCachePressure from store failed",e)}if(provider._advancedCache)try{await provider._advancedCache.set(cacheKey,decoration,{ttl:provider.ge}),provider._logger?.debug?.(`\u{1F9E0} Stored in advanced cache: ${fileLabel}`)}catch(e){provider._logger?.debug?.(`Failed to store in advanced cache: ${e.message}`)}try{typeof provider.Ge=="function"&&provider.Ge()}catch(e){provider._logger?.debug?.("maybeExtendCacheTimeout from store failed",e)}}catch(e){provider._logger?.debug?.("storeDecorationInCache failed",e)}}function cancelProgressiveWarmupJobs(provider){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=dynamicRequire("./decoration-batch-chunk");if(e&&typeof e.cancelProgressiveWarmupJobs=="function")return e.cancelProgressiveWarmupJobs(provider)}}catch(e){provider._logger?.debug?.("Delegated cancelProgressiveWarmupJobs failed",e)}try{let e=provider._progressiveLoadingJobs;e&&typeof e.clear=="function"&&e.clear()}catch(e){provider._logger?.debug?.("Fallback cancel failed",e)}}async function applyProgressiveLoadingSetting(provider){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=dynamicRequire("./decoration-batch-chunk");if(e&&typeof e.applyProgressiveLoadingSetting=="function")return e.applyProgressiveLoadingSetting(provider)}}catch(e){provider._logger?.debug?.("Delegated applyProgressiveLoadingSetting failed",e)}provider._logger?.debug?.("applyProgressiveLoadingSetting fallback invoked (no batch chunk)")}async function initializeAdvancedSystems(e,t){try{if(e._extensionContext=t,e._isWeb&&await e._maybeWarnAboutGitLimitations?.(),e._performanceMode){e._logger?.info?.("Performance mode enabled - skipping advanced cache, batch processor, and progressive loading");return}let r=await featureFlags.advancedCache();if(r){let n=null;if(typeof r=="function")if(r.name==="createAdvancedCache")e._advancedCache=r(t),await e._advancedCache.initialize(),e._logger?.info?.("Advanced cache initialized via factory function");else try{e._advancedCache=new r(t),await e._advancedCache.initialize(),e._logger?.info?.("Advanced cache initialized via direct constructor")}catch(o){e._logger?.warn?.("Failed to instantiate AdvancedCache via direct constructor, disabling advanced cache:",o.message),e._advancedCache=null}else r.AdvancedCache?(n=r.AdvancedCache,e._advancedCache=new n(t),await e._advancedCache.initialize(),e._logger?.info?.("Advanced cache initialized via module property")):r.createAdvancedCache?(e._advancedCache=r.createAdvancedCache(t),await e._advancedCache.initialize(),e._logger?.info?.("Advanced cache initialized via module factory")):(e._logger?.warn?.("AdvancedCache module format not recognized, disabling advanced cache"),e._advancedCache=null)}else e._logger?.info?.("Advanced cache disabled by feature flag"),e._advancedCache=null;await applyProgressiveLoadingSetting(e),e._batchProcessor&&(e._batchProcessor.initialize(),e._logger?.info?.("Batch processor initialized"));try{let n=tryLoadChunk("./decoration-workspace-intel-chunk","./decorationWorkspaceIntel","./decorationWorkspaceIntel.js","./decoration-workspace-intel-chunk.js");n&&typeof n.initializeWorkspaceIntelligence=="function"?await n.initializeWorkspaceIntelligence(e,t):e._logger?.info?.("Workspace intelligence not initialized (no chunk)")}catch(n){e._logger?.warn?.("Delegated workspace intelligence initialization failed",n?.message||String(n)),e._workspaceIntelligence=null}vscode.workspace.getConfiguration("explorerDates").get("autoThemeAdaptation",!0)&&e._themeIntegration?.autoConfigureForTheme&&(await e._themeIntegration.autoConfigureForTheme(),e._logger?.info?.("Theme integration configured")),e._accessibility?.shouldEnhanceAccessibility?.()&&(await e._accessibility.applyAccessibilityRecommendations?.(),e._logger?.info?.("Accessibility recommendations applied")),e._allocationTelemetryEnabled&&(scheduleTelemetryReport(e),e._logger?.info?.("Allocation telemetry enabled - reports every",e._telemetryReportInterval,"ms")),e._logger?.info?.("Advanced systems initialized successfully")}catch(r){e._logger?.error?.("Failed to initialize advanced systems",r)}}function shouldUseFallbackWatcher(e){return e._enableWatcherFallbacks===!1?!1:e._enableWatcherFallbacks==="auto"||e._enableWatcherFallbacks===!0?isPlatformFallbackRequired():!1}function isPlatformFallbackRequired(){let e=proc?.platform,t=env.WSL_DISTRO_NAME||env.WSLENV,r=vscode.env.remoteName,a=env.DOCKER_CONTAINER;return t||r||a||e==="android"}async function createFallbackWatcher(e,t,r){try{if(!e._smartWatcherFallbackManager){let a=await featureFlags.loadFeatureModule("smartWatcherFallback");if(a){let{SmartWatcherFallbackManager:n}=a;e._smartWatcherFallbackManager=new n({logger:e._logger}),await e._smartWatcherFallbackManager.initialize()}}if(e._smartWatcherFallbackManager){let n=await(await e._smartWatcherFallbackManager.getFallback()).createWatcherWithFallback(t);return e._logger?.debug?.(`Fallback watcher created for ${r}`),n}}catch(a){e._logger?.warn?.(`Fallback watcher creation failed for ${r}:`,a)}return null}async function createWatcherWithFallback(e,t,r="unknown"){try{let a=vscode.workspace.createFileSystemWatcher(t);return e._logger?.debug?.(`Native watcher created for ${r}`),a}catch(a){if(e._logger?.debug?.(`Native watcher failed for ${r}:`,a),!shouldUseFallbackWatcher(e))throw a;return createFallbackWatcher(e,t,r)}}async function ensureWatcherManager(e){try{if(e.R)return e.R;try{let t=await Promise.resolve().then(()=>G(kt()));return e.R=t.createWatcherManager(e),e.R}catch(t){e._logger?.debug?.("Failed to load watcher manager chunk from advanced chunk",t)}}catch(t){e._logger?.debug?.("ensureWatcherManager failed",t)}return null}async function setupFileWatcher(e,t="initial"){try{let r=await ensureWatcherManager(e);if(r&&typeof r.setupFileWatcher=="function")return r.setupFileWatcher(t)}catch(r){e._logger?.debug?.("setupFileWatcher failed in advanced chunk",r)}try{let r=createWatcherWithFallback(e,"**/*",`global:${t}`);if(r)return e.a||(e.a=new Set),e.a.add(r),e._logger?.info?.("Global watcher activated (fallback)",{reason:t}),r}catch(r){e._logger?.debug?.("setupFileWatcher fallback failed",r)}return null}function registerWatcherHandlers(e,t,r="unknown"){try{let a=e.R||null;if(a&&typeof a.F=="function")return a.F(t,r)}catch(a){e._logger?.debug?.("Watcher manager register watcher handlers failed (advanced)",a)}try{if(!t)return;t.onDidChange(a=>e.i(a,"change",r)),t.onDidCreate(a=>e.i(a,"create",r)),t.onDidDelete(a=>e.i(a,"delete",r))}catch(a){e._logger?.debug?.("registerWatcherHandlers fallback failed",a)}}function dispatchWatcherEvent(e,t,r,a){try{let n=e.R||null;if(n&&typeof n.B=="function")return n.B(t,r,a)}catch(n){e._logger?.debug?.("Watcher manager dispatch watcher event failed (advanced)",n)}try{try{e.qe?.(t)}catch{}r==="delete"?e.clearDecoration(t):e.refreshDecoration(t),e._workspaceIntelligence?.incrementalIndexer&&e._workspaceIntelligence.incrementalIndexer.queueDelta(t,r),e.ie&&e._logger?.debug?.(`Watcher event processed (${r}) for ${e.describeFile(t)} via ${a}`)}catch(n){e._logger?.debug?.("dispatchWatcherEvent fallback failed",n)}}function buildSummaryTooltip(e,{filePath:t,stat:r,badgeDetails:a}){try{let n=tryLoadChunk("./decoration-formatters-chunk","./decorationFormatters","./decoration-formatters-chunk.js","./decorationFormatters.js","./decoration-helpers-chunk","./decorationHelpers","./decoration-helpers","./decoration-helpers-chunk.js","./decorationHelpers.js");if(n&&typeof n.buildSummaryTooltip=="function")return n.buildSummaryTooltip(e,{filePath:t,stat:r,badgeDetails:a})}catch(n){e._logger?.debug?.("Delegated buildSummaryTooltip failed",n)}try{let n=[];a?.readableModified&&n.push(`Modified ${a.readableModified}`);let o=a?.fileSizeLabel||(r?.size?e.Ce(r.size,"auto"):null);return o&&n.push(o),`${typeof e.describeFile=="function"?e.describeFile(t):t} \u2014 ${n.filter(Boolean).join(" \u2022 ")||e.Ye(r?.mtime||new Date)}`}catch(n){return e._logger?.debug?.("buildSummaryTooltip failed",n),`${typeof e.describeFile=="function"?e.describeFile(t):t} \u2014 ${e.Ye(r?.mtime||new Date)}`}}function formatDateReadable(e,t){try{let r=tryLoadChunk("./decoration-formatters-chunk","./decorationFormatters","./decoration-formatters-chunk.js","./decorationFormatters.js","./decoration-helpers-chunk","./decorationHelpers","./decoration-helpers","./decoration-helpers-chunk.js","./decorationHelpers.js");if(r&&typeof r.formatDateReadable=="function")return r.formatDateReadable(e,t)}catch(r){e._logger?.debug?.("Delegated formatDateReadable failed",r)}try{let r=new Date,a=r.getTime()-t.getTime(),n=Math.floor(a/(1e3*60)),o=Math.floor(a/(1e3*60*60)),i=Math.floor(a/(1e3*60*60*24)),s=e.qt(t,r,n,o,i);return s?e.ve(e.me,e.Xe,e.Ut,s.key,s.factory,e.Ht):t.getFullYear()===r.getFullYear()?e.l.formatDate(t,{month:"short",day:"numeric"}):e.l.formatDate(t,{month:"short",day:"numeric",year:"numeric"})}catch(r){return e._logger?.debug?.("formatDateReadable failed",r),e.l.formatDate(t)}}async function getGitBlameInfo(e,t,r=null){if(env.DISABLE_GIT_FEATURES==="1"||e.Bt)return null;try{let a=await featureFlags.gitInsights();return!a||typeof a.getGitBlameInfo!="function"?null:await a.getGitBlameInfo(t,r)}catch(a){return e._logger?.warn?.("Git blame lookup failed",{filePath:t,message:a?.message||String(a)}),null}}async function findWorkspaceFilesWithTimeout(provider,maxResults){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=dynamicRequire("./workspace-scan-chunk");if(e&&typeof e.findWorkspaceFilesWithTimeout=="function")return e.findWorkspaceFilesWithTimeout(provider,maxResults)}}catch(e){provider._logger?.debug?.("Delegated findWorkspaceFilesWithTimeout failed",e)}try{return require("vscode").workspace.findFiles("**/*",null,maxResults)}catch(e){return provider._logger?.warn?.("Workspace scan fallback failed",e),null}}function startWorkspaceScanWatchdog(provider){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=dynamicRequire("./workspace-scan-chunk");if(e&&typeof e.startWorkspaceScanWatchdog=="function")return e.startWorkspaceScanWatchdog(provider)}}catch(e){provider._logger?.debug?.("Delegated startWorkspaceScanWatchdog failed",e)}return Promise.resolve()}function clearWorkspaceScanWatchdog(provider){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=dynamicRequire("./workspace-scan-chunk");if(e&&typeof e.clearWorkspaceScanWatchdog=="function")return e.clearWorkspaceScanWatchdog(provider)}}catch(e){provider._logger?.debug?.("Delegated clearWorkspaceScanWatchdog failed",e)}provider.pe&&(clearTimeout(provider.pe),provider.pe=null)}async function performWorkspaceSizeCheck(provider){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=dynamicRequire("./workspace-scan-chunk");if(e&&typeof e.performWorkspaceSizeCheck=="function")return e.performWorkspaceSizeCheck(provider)}}catch(e){provider._logger?.debug?.("Delegated performWorkspaceSizeCheck failed",e)}try{let e=require("vscode"),t=e.workspace.workspaceFolders;if(!t||t.length===0)return;provider._logger?.info?.("Checking workspace size (fallback, fast)");let r=await(e.workspace.findFiles?e.workspace.findFiles("**/*",null,1e3):[]),a=Array.isArray(r)?r.length:0;provider.We=a,provider.r=a>1e5?"extreme":a>1e4?"large":"normal",provider.Me(provider.Ie(),"workspace-scale-change-fallback")}catch(e){provider._logger?.debug?.("performWorkspaceSizeCheck fallback failed",e)}}function getInitials(e,t){try{let a=tryLoadChunk("./decoration-formatters-chunk","./decorationFormatters","./decoration-formatters-chunk.js","./decorationFormatters.js","./decoration-helpers-chunk","./decorationHelpers","./decoration-helpers","./decoration-helpers-chunk.js","./decorationHelpers.js");if(a&&typeof a.getInitials=="function")return a.getInitials(e,t)}catch(a){e._logger?.debug?.("Delegated getInitials failed",a)}if(e.ye&&typeof e.ye.getInitials=="function")return e.ye.getInitials(t);if(!t||typeof t!="string")return null;let r=t.trim().split(/\s+/).filter(Boolean);return r.length===0?null:r.length===1?r[0].substring(0,2).toUpperCase():(r[0][0]+(r[1][0]||"")).substring(0,2).toUpperCase()}function formatCompactSize(e,t){try{let r=tryLoadChunk("./decoration-formatters-chunk","./decorationFormatters","./decoration-formatters-chunk.js","./decorationFormatters.js","./decoration-helpers-chunk","./decorationHelpers","./decoration-helpers","./decoration-helpers-chunk.js","./decorationHelpers.js");if(r&&typeof r.formatCompactSize=="function")return r.formatCompactSize(e,t)}catch(r){e._logger?.debug?.("Delegated formatCompactSize failed",r)}try{if(typeof t!="number"||isNaN(t))return null;let r=["B","K","M","G","T"],a=0,n=t;for(;n>=1024&&a=2?s.slice(0,2):s}catch(r){return e._logger?.debug?.("formatCompactSize failed",r),null}}function formatFullDate(e,t){try{let r=tryLoadChunk("./decoration-formatters-chunk","./decorationFormatters","./decoration-formatters-chunk.js","./decorationFormatters.js","./decoration-helpers-chunk","./decorationHelpers","./decoration-helpers","./decoration-helpers-chunk.js","./decorationHelpers.js");if(r&&typeof r.formatFullDate=="function")return r.formatFullDate(e,t)}catch(r){e._logger?.debug?.("Delegated formatFullDate failed",r)}try{let r={year:"numeric",month:"long",day:"numeric",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:"short"};return t.toLocaleString("en-US",r)}catch(r){return e._logger?.debug?.("formatFullDate failed",r),t.toString()}}function scheduleTelemetryReport(e){try{let t=tryLoadChunk("./decoration-telemetry-chunk","./decorationTelemetry","./decorationTelemetry.js","./decoration-telemetry-chunk.js");if(t&&typeof t.scheduleTelemetryReport=="function")return t.scheduleTelemetryReport(e)}catch(t){e._logger?.debug?.("Delegated scheduleTelemetryReport failed",t)}!e._allocationTelemetryEnabled||e._telemetryReportTimer||(e._telemetryReportTimer=setTimeout(()=>{e._telemetryReportTimer=null,reportAllocationTelemetry(e),scheduleTelemetryReport(e)},e._telemetryReportInterval))}function reportAllocationTelemetry(e){try{let n=Tt();if(n&&typeof n.reportAllocationTelemetry=="function")return n.reportAllocationTelemetry(e)}catch(n){e._logger?.debug?.("Delegated reportAllocationTelemetry failed",n)}let t=e.getMetrics().allocationTelemetry,r=t.decorationPool.allocations+t.badgeFlyweight.allocations+t.readableFlyweight.allocations,a=t.decorationPool.reuses+t.badgeFlyweight.reuses+t.readableFlyweight.reuses;(r>0||a>0)&&e._logger?.info?.("\u{1F9EE} Allocation telemetry report",{timestamp:new Date().toISOString(),pool:{allocations:t.decorationPool.allocations,reuses:t.decorationPool.reuses,reuseRate:t.decorationPool.reusePercent+"%"},badgeFlyweight:{allocations:t.badgeFlyweight.allocations,reuses:t.badgeFlyweight.reuses,reuseRate:t.badgeFlyweight.reusePercent+"%"},readableFlyweight:{allocations:t.readableFlyweight.allocations,reuses:t.readableFlyweight.reuses,reuseRate:t.readableFlyweight.reusePercent+"%"},summary:{totalAllocations:r,totalReuses:a,overallReuseRate:r+a>0?(a/(r+a)*100).toFixed(1)+"%":"0%"},decorationsProcessed:e._metrics.totalDecorations,cacheHitRate:e.getMetrics().cacheHitRate})}function setupPeriodicRefresh(e){try{let t=vscode.workspace.getConfiguration("explorerDates"),r=t.get("badgeRefreshInterval",6e4),a=e.d||r;if(e.Z=a,e._logger?.info?.(`Setting up periodic refresh with interval: ${e.Z}ms`),e.f&&(clearInterval(e.f),e.f=null),e.h&&e.h.size){for(let n of e.h)clearTimeout(n);e.h.clear()}if(!t.get("showDateDecorations",!0)){e._logger?.info?.("Decorations disabled, skipping periodic refresh setup");return}e.f=setInterval(()=>{if(e.Je){e._logger?.debug?.("Periodic refresh skipped - incremental refresh already running");return}e._logger?.debug?.("Periodic refresh triggered - scheduling incremental refresh"),scheduleIncrementalRefresh(e,"periodic")},e.Z),e._logger?.info?.("Periodic refresh timer started")}catch(t){e._logger?.debug?.("Failed to setup periodic refresh",t)}}function cancelIncrementalRefreshTimers(provider){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=dynamicRequire("./decoration-refresh-chunk");if(e&&typeof e.cancelIncrementalRefreshTimers=="function")return e.cancelIncrementalRefreshTimers(provider)}}catch(e){provider._logger?.debug?.("Delegated cancelIncrementalRefreshTimers failed",e)}if(!(!provider.h||provider.h.size===0)){for(let e of provider.h)clearTimeout(e);provider.h.clear(),provider.Je=!1}}function scheduleIncrementalRefresh(provider,reason="manual"){try{if(!provider.t||typeof provider.t.entries!="function"){provider._logger?.debug?.("scheduleIncrementalRefresh: missing or invalid memory cache, firing global refresh");try{provider.Ze.fire(void 0)}catch{}return}let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=dynamicRequire("./decoration-refresh-chunk");if(e&&typeof e.scheduleIncrementalRefresh=="function")return e.scheduleIncrementalRefresh(provider,reason)}}catch(e){provider._logger?.debug?.("Delegated scheduleIncrementalRefresh failed",e)}provider._logger?.debug?.("scheduleIncrementalRefresh fallback invoked");try{provider.Ze.fire(void 0)}catch{}}function markCacheEntryForRefresh(provider,cacheKey){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=dynamicRequire("./decoration-refresh-chunk");if(e&&typeof e.markCacheEntryForRefresh=="function")return e.markCacheEntryForRefresh(provider,cacheKey)}}catch(e){provider._logger?.debug?.("Delegated markCacheEntryForRefresh failed",e)}if(!cacheKey)return;if(!provider.t||typeof provider.t.get!="function")provider._logger?.debug?.("markCacheEntryForRefresh: no memory cache available, skipping");else{let e=provider.t.get(cacheKey);e&&Date.now()-e.timestamp>provider.ge*.75&&(e.forceRefresh=!0)}if(provider._advancedCache)try{provider._advancedCache.invalidateByPattern(cacheKey.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"))}catch(e){provider._logger?.debug?.(`Could not invalidate advanced cache for ${cacheKey}: ${e.message}`)}function maybeShedWorkload(provider){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=dynamicRequire("./decoration-memory-chunk");if(e&&typeof e.maybeShedWorkload=="function")return e.maybeShedWorkload(provider)}}catch(e){provider._logger?.debug?.("Delegated maybeShedWorkload failed",e)}try{if(!provider.jt||provider.Qe)return;let e=(()=>{try{return proc?.memoryUsage?proc.memoryUsage().heapUsed/1024/1024:0}catch{return 0}})();if(!e)return;if(!provider.j){provider.j=e,provider.P=0,provider.K=!1;return}let t=e-provider.j;if(t>=provider.et?(provider.P++,provider.P>=2&&!provider.K&&(provider.K=!0,provider._logger?.warn?.("Memory pressure warning (soft threshold exceeded twice)",{deltaMB:Number(t.toFixed(2)),baselineMB:provider.j,heapMB:e,rssMB:(()=>{try{return proc?.memoryUsage?proc.memoryUsage().rss/1024/1024:0}catch{return 0}})(),cacheSize:provider.t.size,cacheLimit:provider.o}))):provider.P>0&&(provider.P=0,t=provider.tt){provider.Qe=!0,provider.o=Math.min(provider.o,provider.Kt),provider.d=Math.max(provider.d||provider.Z||provider.rt,provider.rt);let r=(()=>{try{return proc?.memoryUsage?proc.memoryUsage().rss/1024/1024:0}catch{return 0}})(),a={timestamp:new Date().toISOString(),deltaMB:Number(t.toFixed(2)),baselineMB:provider.j,heapMB:e,rssMB:r,cacheSize:provider.t.size,maxCacheSize:provider.o,watcherStrategy:provider.D,staticWatchers:provider.a.size,dynamicWatchers:provider.n.size};provider.be.push(a),provider.be.length>10&&provider.be.shift(),provider._logger?.warn?.(`Memory shedding activated (delta ${t.toFixed(2)} MB >= ${provider.tt} MB); cache size capped at ${provider.o} and refresh interval stretched to ${provider.d}ms`,a),setupPeriodicRefresh(provider),provider.K=!1,provider.P=0}}catch(e){provider._logger?.debug?.("maybeShedWorkload failed",e)}}function monitorCachePressure(e){try{if(!e.o||e.o<=0)return;let t=e.t.size/e.o;t>=e.at?e.we||(e.we=!0,e._logger?.infoWithOptions?.({throttleKey:"cache-pressure",intervalMs:6e4},`Decoration cache usage is at ${(t*100).toFixed(1)}% of capacity`,{cacheSize:e.t.size,maxCacheSize:e.o})):t0&&e.t.clear();try{typeof e.ot=="function"&&e.ot(t)}catch{}e.ae.size>0&&(e.ae.clear(),e.Te.length=0),e.me.size>0&&(e.me.clear(),e.Xe.length=0),e._logger?.debug?.(`\u{1F9FD} Purged lightweight caches (${t})`)}catch(r){e._logger?.debug?.("purgeLightweightCaches failed",r)}}async function togglePerformanceMode(e,t,{reason:r="unspecified",refresh:a=!0}={}){if(t!==e._performanceMode){if(e._performanceMode=t,e._logger?.info?.(`Performance mode ${t?"enabled":"disabled"} (${r})`),t)e.Vt?.({permanent:!0}),e._logger?.info?.("File watchers disabled for performance mode"),e.f&&(clearInterval(e.f),e.f=null,e._logger?.info?.("Periodic refresh disabled for performance mode"));else{try{e.xe?.("performance-mode-toggle"),e._logger?.info?.("File watchers enabled (performance mode off)")}catch{}e.f||(e.De?.(),e._logger?.info?.("Periodic refresh enabled (performance mode off)"))}if(a)try{e.refreshAll?.({reason:"performance-mode-change"})}catch(n){e._logger?.debug?.("refreshAll after performance toggle failed",n)}if(t)e._workspaceIntelligence?.dispose&&(e._workspaceIntelligence.dispose(),e._workspaceIntelligence=null);else if(!e._workspaceIntelligence)try{let{getFeatureFlagsGlobal:n}=Y(),o=n(),i=o?await o.workspaceIntelligence():null;if(i){let{WorkspaceIntelligenceManager:s}=i;e._workspaceIntelligence=new s(e._fileSystem),await e._workspaceIntelligence.initialize({batchProcessor:e._batchProcessor,enableProgressiveAnalysis:e._shouldEnableProgressiveAnalysis?.()});let c=require("vscode").workspace.workspaceFolders;c?.length&&await e._workspaceIntelligence.analyzeWorkspace(c,{maxFiles:e._getIndexerMaxFiles?.()})}}catch(n){e._logger?.debug?.("Workspace intelligence reinitialization failed after performance mode toggle",n)}}}function applyPerformanceProfile(e,t,r="unspecified"){try{let a=t?.level||e.x;e.Gt=!1;let n=computeEffectivePerformanceMode(e);if(n!==e._performanceMode&&(e._logger?.debug?.("Auto performance mode update",{reason:r,featureLevel:a,workspaceScale:e.r,desiredPerformanceMode:n}),togglePerformanceMode(e,n,{reason:`${r}-auto`,refresh:!0}).catch(o=>e._logger?.debug?.("Failed to toggle performance mode automatically",o))),applyConcurrencyLimit(e,r),!e._performanceMode&&(e.r==="large"||e.r==="extreme")){let o={...e.k,applyBackgroundLimits:!0,backgroundTooltipMode:e.k?.backgroundTooltipMode==="rich"?"summary":e.k?.backgroundTooltipMode};e.k=o}if(!e._performanceMode){let o=getRefreshIntervalForScale(e),i=o!==null&&o!==e.d,s=o===null&&e.d!==null;i?(e.d=o,e.De?.()):s&&(e.d=null,e.De?.())}}catch(a){e._logger?.debug?.("applyPerformanceProfile failed",a)}}function getRefreshIntervalForScale(e){return e.r==="extreme"?6e5:e.r==="large"?18e4:null}function getSmartWatcherDefaults(){try{let e=Ct();return{DEFAULT_SMART_WATCHER_EXTENSIONS:e.DEFAULT_SMART_WATCHER_EXTENSIONS,SMART_WATCHER_PRIORITY:e.SMART_WATCHER_PRIORITY}}catch{return{DEFAULT_SMART_WATCHER_EXTENSIONS:["js","ts","json","md","py","java"],SMART_WATCHER_PRIORITY:new Map([["src",100],["lib",65],["test",30]])}}}function computeEffectivePerformanceMode(e){return e.it===!0?!0:e.it===!1?!1:e.r==="extreme"}function applyConcurrencyLimit(e,t="unspecified"){let r=e.N,a=e.st?e.st():e.lt||8;e.N=Math.max(1,Math.min(a,e.lt||8)),e._logger?.info?.(`Adjusted concurrency cap ${r} -> ${e.N} (${t})`,{workspaceScale:e.r,performanceMode:e._performanceMode})}function _buildFeatureProfile(e,t="full"){let r=FEATURE_LEVELS.includes(t)?t:"full";switch(r){case"enhanced":return{level:r,enableGit:!0,enableProgressiveAnalysis:!0,applyBackgroundLimits:!1,backgroundTooltipMode:"rich",viewportWindowMs:6e4};case"standard":return{level:r,enableGit:!0,enableProgressiveAnalysis:!1,applyBackgroundLimits:!0,backgroundTooltipMode:"summary",viewportWindowMs:48e4};case"minimal":return{level:r,enableGit:!1,enableProgressiveAnalysis:!1,applyBackgroundLimits:!0,backgroundTooltipMode:"summary",viewportWindowMs:12e4};default:return{level:r,enableGit:!0,enableProgressiveAnalysis:!1,applyBackgroundLimits:!1,backgroundTooltipMode:"rich",viewportWindowMs:3e5}}}function applyFeatureLevel(e,t,r="unspecified"){if(!t)return!1;FEATURE_LEVELS.includes(t)||(t="full");let a=e.x!==t||!e.k;e.x=t;let n=a?_buildFeatureProfile(e,t):e.k||_buildFeatureProfile(e,t);return e.k=n,e.p=n.viewportWindowMs,a&&e._logger?.info?.(`Feature level set to "${t}" (${r})`,{viewportWindowMs:e.p,applyBackgroundLimits:n.applyBackgroundLimits,backgroundTooltipMode:n.backgroundTooltipMode}),e._performanceMode?e._logger?.info?.("Performance mode active - skipping feature profile application"):(n.applyBackgroundLimits&&e.Yt?.(r),n.backgroundTooltipMode&&e._logger?.info?.("Configuring background tooltip behavior as part of feature profile",{mode:n.backgroundTooltipMode}),n.enableProgressiveAnalysis&&e._logger?.info?.("Progressive analysis enabled by feature profile")),a}function maybePurgeLightweightCaches(e){try{if(!e.nt)return;if(e.ct<=0){purgeLightweightCaches(e,"lightweight-interval");return}let t=e._metrics?.totalDecorations||0;t>0&&t%e.ct===0&&purgeLightweightCaches(e,"lightweight-interval")}catch(t){e._logger?.debug?.("maybePurgeLightweightCaches failed",t)}}function _getFlyweightValueImpl(cache,order,limit,key,factory,statsTracker){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=dynamicRequire("./decoration-pool-chunk");if(e&&typeof e.ke=="function")return e.ke(cache,order,limit,key,factory,statsTracker)}}catch{}try{return factory()}catch{return null}}function acquireDecorationFromPoolImpl({badge,tooltip,color},createFileDecoration){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=dynamicRequire("./decoration-pool-chunk");if(e&&typeof e.acquireDecorationFromPoolImpl=="function")return e.acquireDecorationFromPoolImpl({badge,tooltip,color},createFileDecoration)}}catch{}return createFileDecoration(badge||"??")}function _trimFlyweightCacheToLimitImpl(cache,order,maxSize){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=dynamicRequire("./decoration-pool-chunk");if(e&&typeof e.Ee=="function")return e.Ee(cache,order,maxSize)}}catch{}}function clearDecorationPoolImpl(provider,reason="unspecified"){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=dynamicRequire("./decoration-pool-chunk");if(e&&typeof e.clearDecorationPoolImpl=="function")return e.clearDecorationPoolImpl(provider,reason)}}catch{}try{provider.c?.size&&(provider.c.clear(),provider.I.length=0)}catch{}}function checkMemoryPressure(e){try{let t=Date.now();if(e.Q||(e.Q=t),t-e.Q<3e4)return;e.Q=t;let r=e.t.size||0,a=1e4;r/a>.8&&(e._logger?.warn?.("\u{1F9E0} Memory pressure detected, performing cleanup",{cacheSize:r,maxSize:a}),purgeLightweightCaches(e,"memory-pressure"),e._metrics.cachePressureEvents=(e._metrics.cachePressureEvents||0)+1)}catch(t){e._logger?.debug?.("checkMemoryPressure failed",t)}}function createLazyHierarchicalDecorationCache(){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=dynamicRequire("./decoration-cache-chunk");if(e&&typeof e.createLazyHierarchicalDecorationCache=="function")return e.createLazyHierarchicalDecorationCache()}}catch{}class SimpleFallbackCache{constructor(){this.E=new Map}get size(){return this.E.size}clear(){this.E.clear()}get(t){return this.E.get(t)}set(t,r){this.E.set(t,r)}delete(t){return this.E.delete(t)}*entries(){yield*this.E.entries()}hydrateInBackground(){}enforceLimit(){return 0}}return new SimpleFallbackCache}module.exports={applyProgressiveLoadingSetting,cancelProgressiveWarmupJobs,createFallbackWatcher,createWatcherWithFallback,initializeAdvancedSystems,loadBatchProcessorIfNeeded,reportAllocationTelemetry,scheduleTelemetryReport,setupPeriodicRefresh,scheduleIncrementalRefresh,cancelIncrementalRefreshTimers,markCacheEntryForRefresh,maybeShedWorkload,monitorCachePressure,purgeLightweightCaches,maybePurgeLightweightCaches,checkMemoryPressure,getCachedDecoration,storeDecorationInCache,buildSummaryTooltip,formatDateReadable,getGitBlameInfo,getInitials,formatCompactSize,formatFullDate,togglePerformanceMode,applyPerformanceProfile,getRefreshIntervalForScale,computeEffectivePerformanceMode,applyConcurrencyLimit,findWorkspaceFilesWithTimeout,startWorkspaceScanWatchdog,clearWorkspaceScanWatchdog,performWorkspaceSizeCheck,applyFeatureLevel,Xt:_buildFeatureProfile,getSmartWatcherDefaults,createLazyHierarchicalDecorationCache,ke:_getFlyweightValueImpl,acquireDecorationFromPoolImpl,Ee:_trimFlyweightCacheToLimitImpl,clearDecorationPoolImpl,deferPreloads,ensureWatcherManager,setupFileWatcher,registerWatcherHandlers,dispatchWatcherEvent}} diff --git a/dist/chunks/extensionApi.js b/dist/chunks/extensionApi.js index f5d7598..8de770b 100644 --- a/dist/chunks/extensionApi.js +++ b/dist/chunks/extensionApi.js @@ -1,3 +1,3 @@ -var y=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var x=y((Ne,B)=>{var w="__explorerDatesLogger",b=class{constructor(){this.r=null}n(e,r){if(this.r&&typeof this.r[e]=="function")try{return this.r[e](...r)}catch{}switch(e){case"debug":break;case"info":break;case"warn":break;case"error":break;default:break}}debug(...e){return this.n("debug",e)}info(...e){return this.n("info",e)}warn(...e){return this.n("warn",e)}error(...e){return this.n("error",e)}l(e){this.r=e}};function ne(){return typeof global<"u"?(global[w]||(global[w]=new b),global[w]):typeof globalThis<"u"?(globalThis[w]||(globalThis[w]=new b),globalThis[w]):(F||(F=new b),F)}var $=class extends b{},F=null;B.exports={Logger:$,getLogger:ne}});var z=y((exports,module)=>{var chunk=null;try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){try{chunk=dynamicRequire("../chunks/utils-shared-chunk")}catch{}try{chunk||(chunk=dynamicRequire("./chunks/utils-shared-chunk"))}catch{}try{chunk||(chunk=dynamicRequire("../chunks/path-utils-chunk"))}catch{}try{chunk||(chunk=dynamicRequire("./chunks/path-utils-chunk"))}catch{}}}catch{}if(chunk&&chunk.normalizePath)module.exports={normalizePath:chunk.normalizePath,getFileName:chunk.getFileName,getExtension:chunk.getExtension,getDirectory:chunk.getDirectory,joinPath:chunk.joinPath,getCacheKey:chunk.getCacheKey,getUriPath:chunk.getUriPath,getRelativePath:chunk.getRelativePath};else{let t=function(a=""){return a?a.replace(/\\/g,"/"):""},e=function(a=""){let l=t(a);return l?l.split("/").filter(Boolean):[]},r=function(a=""){let l=e(a);return l.length?l[l.length-1]:""},n=function(a=""){let l=r(a),f=l.lastIndexOf(".");return f<=0?"":l.substring(f).toLowerCase()},o=function(a=""){let l=t(a),f=l.lastIndexOf("/");return f===-1?"":l.substring(0,f)},s=function(...a){return t(a.filter(Boolean).join("/")).replace(/\/+/g,"/")},i=function(a=""){return t(a).toLowerCase()},c=function(a=""){if(!a)return"";if(typeof a=="string")return a;if(typeof a.fsPath=="string"&&a.fsPath.length>0)return a.fsPath;if(typeof a.path=="string"&&a.path.length>0)return a.path;if(typeof a.toString=="function")try{return a.toString(!0)}catch{return a.toString()}return String(a)},u=function(a="",l=""){let f=t(a),p=t(l);return f&&p.startsWith(f)?p.substring(f.length).replace(/^\/+/,""):p};normalizePath=t,getSegments=e,getFileName=r,getExtension=n,getDirectory=o,joinPath=s,getCacheKey=i,getUriPath=c,getRelativePath=u,module.exports={normalizePath:t,getFileName:r,getExtension:n,getDirectory:o,joinPath:s,getCacheKey:i,getUriPath:c,getRelativePath:u}}var normalizePath,getSegments,getFileName,getExtension,getDirectory,joinPath,getCacheKey,getUriPath,getRelativePath});var _=y((Oe,U)=>{var N=typeof process<"u"&&process.env?process.env:{},q="[ExplorerDates][WebDiag]",E="__explorerDatesWebDiagnostics",k;function oe(){try{let t=require("vscode");return t?.env?.uiKind===t?.UIKind?.Web}catch{return N.VSCODE_WEB==="true"}}function h(){return k!==void 0||(k=N.EXPLORER_DATES_WEB_DIAG==="1"||oe()),k}function O(){return{enabled:h(),logs:[],logOnce:new Set,commandsRegistered:new Set,commandsInvoked:[],errors:[],chunkLoads:[],provider:{created:!1,registered:!1,hydrated:!1,decorationCalls:0,refreshCalls:0,lastEvent:null}}}var se=O();function g(){return typeof globalThis<"u"?(globalThis[E]||(globalThis[E]=O()),globalThis[E]):se}function ie(t){try{return JSON.stringify(t)}catch{return String(t)}}function d(t,e,r){if(!h())return;let n=g(),o={ts:new Date().toISOString(),level:t,message:e,meta:r||null};n.logs.push(o),n.logs.length>400&&n.logs.shift();let s=r?`${q} ${e} ${ie(r)}`:`${q} ${e}`,i=console[t]||console.info;try{i(s)}catch{}}function ae(t,e,r,n){if(!h())return;let o=g();o.logOnce.has(t)||(o.logOnce.add(t),d(e,r,n))}function ce(t){if(!h())return;g().commandsRegistered.add(t),d("info","Command registered",{commandId:t})}function ue(t){if(!h())return;g().commandsInvoked.push({commandId:t,ts:Date.now()}),d("info","Command invoked",{commandId:t})}function le(t,e,r){h()&&(e?d("info","Command completed",{commandId:t}):(d("error","Command failed",{commandId:t,error:r?.message,stack:r?.stack}),g().errors.push({commandId:t,error:r?.message,stack:r?.stack})))}function fe(t,e,r){if(!h())return;g().chunkLoads.push({chunkName:t,stage:e,ts:Date.now(),error:r?r.message||String(r):null}),d(r?"warn":"info",`Chunk ${e}`,{chunkName:t,error:r?.message})}function he(t,e){if(!h())return;let r=g();r.provider.lastEvent={event:t,ts:Date.now(),meta:e||null},t==="created"&&(r.provider.created=!0),t==="registered"&&(r.provider.registered=!0),t==="hydrated"&&(r.provider.hydrated=!0),d("info",`Provider ${t}`,e)}function ge(){if(!h())return;let t=g();t.provider.decorationCalls+=1,t.provider.decorationCalls<=3&&d("info","Decoration request observed",{count:t.provider.decorationCalls})}function de(){if(!h())return;let t=g();t.provider.refreshCalls+=1}U.exports={isWebDiagnosticsEnabled:h,getWebDiagnosticsState:g,diagLog:d,diagLogOnce:ae,recordCommandRegistration:ce,recordCommandInvocation:ue,recordCommandResult:le,recordChunkEvent:fe,recordProviderEvent:he,recordDecorationCall:ge,recordRefreshCall:de}});var G=y((Ue,V)=>{var j="EXPLORER_DATES_FORCE_VSCODE_FS";function W(t,e=process.env){return String(e?.[t]||"")==="1"}function S(t){let e=t&&typeof t=="object"?t:null,r=String(e?.scheme||(typeof t=="string"&&/^[a-z][a-z0-9+.-]*:/i.test(t)?t.split(":",1)[0]:"file")).toLowerCase(),n=String(e?.authority||""),o=e?.path||e?.fsPath||(typeof t=="string"?t.replace(/^[a-z][a-z0-9+.-]*:\/\//i,""):"");return{scheme:r,authority:n,path:String(o||"")}}function me({uri:t,isWeb:e=!1,remoteName:r="",forceWorkspaceFs:n=W(j)}={}){let o=S(t),s=o.scheme!=="file",i=!!e,c=!!r,u=!!(n||i||c||s);return{scheme:o.scheme,authority:o.authority,isFileScheme:!s,isVirtual:s,isBrowser:i,isRemote:c,forceWorkspaceFs:!!n,filesystem:u?"workspace.fs":"node.fs",provider:s?o.scheme==="github"||o.scheme==="vscode-vfs"?"github":"virtual":"filesystem"}}function K({uri:t,platform:e=process.platform,caseSensitive:r}={}){return typeof r=="boolean"?r:S(t).scheme!=="file"?!0:e!=="win32"}function pe(t,e={}){let r=S(t),n=r.path.replace(/\\/g,"/").replace(/\/+/g,"/"),o=`${r.scheme}://${r.authority}${n}`;return K({uri:t,...e})?o:o.toLowerCase()}function C(t){if(t instanceof Date){let e=t.getTime();return Number.isFinite(e)?e:null}if(typeof t=="number")return Number.isFinite(t)?t:null;if(typeof t=="string"&&t.trim()){let e=Date.parse(t);return Number.isFinite(e)?e:null}return null}function ye(t){if(!t||typeof t!="object")return null;let e=C(t.mtime),r=C(t.ctime);return{...t,mtimeMs:e,ctimeMs:r}}V.exports={FORCE_WORKSPACE_FS_ENV:j,envFlag:W,getUriParts:S,getEnvironmentContract:me,isCaseSensitive:K,resourceIdentity:pe,normalizeTimestamp:C,normalizeStat:ye}});var ee=y((_e,Q)=>{var P=require("vscode"),{normalizePath:A,getRelativePath:we}=z(),{diagLogOnce:be}=_(),{normalizeTimestamp:D,resourceIdentity:ve}=G(),De={unknown:0,github:1,git:2,fs:3},R={low:1,medium:2,high:3};function m(t,e,r){try{return t?.get?t.get(e,r):r}catch{return r}}function ke(t){return{nowMinutes:Number(m(t,"freshnessBucketMinutesNow",60))||60,todayHours:Number(m(t,"freshnessBucketHoursToday",24))||24,twoDays:Number(m(t,"freshnessBucketDaysTwo",2))||2,oneWeek:Number(m(t,"freshnessBucketDaysWeek",7))||7}}function H(t,e){if(!Number.isFinite(t)||t<0)return"unknown";let r=e.nowMinutes*60*1e3,n=e.todayHours*60*60*1e3,o=e.twoDays*24*60*60*1e3,s=e.oneWeek*24*60*60*1e3;return t<=r?"now":t<=n?"today":t<=o?"2d":t<=s?"1w":"stale"}function I(t){switch(t){case"now":return"now";case"today":return"today";case"2d":return"2d";case"1w":return"1w";case"stale":return"stale";default:return"unknown"}}function Y(t){switch(t){case"fs":return"Filesystem";case"git":return"Git";case"github":return"GitHub";default:return"Unknown"}}function X(t){switch(t){case"now":return"!!";case"today":return"T";case"2d":return"2d";case"1w":return"1w";case"stale":return"~~";default:return"?"}}function Se(t,e,r){let n=!!m(r,"freshnessShowUnknown",!0);if(t==="unknown"||e==="unknown")return n?"?":null;let o=X(t);return!o||o==="unknown"?n?"?":null:o}function Pe(t){try{let e=D(t);return e===null?null:new Date(e).toISOString().replace("T"," ").replace("Z","")}catch{return null}}function Fe(t,e){if(!t)return;let r=m(e,"freshnessTooltipVerbosity","full"),n=m(e,"badge.sourceLabelMode","auto"),o=[],s=I(t.bucket),i=Y(t.source);if(o.push(`Freshness: ${s}`),t.exactTimestamp){let a=Pe(t.exactTimestamp);a&&o.push(`Exact time: ${a}`)}let c=t.source==="fs"&&t.confidence==="high";return(n==="always"||n!=="never"&&!c||n!=="never"&&r==="full")&&o.push(`Source: ${i}`),t.author&&o.push(`Author: ${t.author}`),t.message&&o.push(`Message: ${t.message}`),o.push(`Confidence: ${t.confidence}`),t.reason&&r==="full"&&o.push(`Reason: ${t.reason}`),o.join(` -`)}function $e(t,e,r){if(!Number.isFinite(e)||e<=0)return!1;let n=300*1e3;if(e>r+n)return!1;if(t==="file")return!0;let o=r-e,s=300*1e3,i=365*24*60*60*1e3*10;return!(oi)}function T({source:t,timestampMs:e,author:r,message:n,confidence:o,reason:s},i){if(!Number.isFinite(e))return{bucket:"unknown",source:t||"unknown",confidence:o||"low",reason:s||"no-timestamp"};let c=ke(i),u=Date.now()-e;return{bucket:H(u,c),source:t,exactTimestamp:e,author:r||void 0,message:n||void 0,confidence:o,reason:s||void 0}}async function xe(t,e,r){let n=t?.scheme||"file",o=!!m(r,"freshnessAllowVirtualFs",!1);if(n!=="file"&&!o)return{freshness:null,reason:"fs-virtual-disabled"};let s=e?.mtimeMs??D(e?.mtime),i=Date.now();return Number.isFinite(s)?$e(n,s,i)?{freshness:T({source:"fs",timestampMs:s,confidence:n==="file"?"high":"medium",reason:n==="file"?"fs-trust-high":"fs-trust-medium"},r),reason:null}:{freshness:null,reason:"fs-mtime-untrusted"}:{freshness:null,reason:"fs-mtime-missing"}}async function Ee(t,e,r){if(!e||typeof e.c!="function")return{freshness:null,reason:"git-provider-missing"};let n;try{n=await e.c(t)}catch(i){return{freshness:null,reason:`git-error:${i?.message||"unknown"}`}}let o=D(n?.timestampMs);return o===null||o<=0?{freshness:null,reason:n?.error||"git-no-timestamp"}:{freshness:T({source:"git",timestampMs:o,author:n?.author||void 0,message:n?.message||void 0,confidence:"medium",reason:"git-recency"},r),reason:null}}function J(t){if(!t||(t.scheme||"")!=="github")return null;let n=A(t.path||"").replace(/^\/+/,"").split("/").filter(Boolean);if(n.length<2)return null;let o=n[0],s=n[1],i=n.slice(2).join("/"),c=new URLSearchParams(t.query||""),u=c.get("ref")||c.get("branch")||"HEAD";return{owner:o,repo:s,filePath:i,ref:u}}function Ce(t){let e=(t||"").indexOf("+");if(e===-1)return"HEAD";let r=t.slice(e+1);try{let n;if(typeof TextDecoder<"u"){let i=new Uint8Array(r.length/2);for(let c=0;c0)return s}catch{}return"HEAD"}function Z(t){if(!t||t.scheme!=="vscode-vfs"||!String(t.authority||"").startsWith("github"))return null;let r=A(t.path||"").replace(/^\/+/,"").split("/").filter(Boolean);if(r.length<2)return null;let n=r[0],o=r[1],s=r.slice(2).join("/"),i=Ce(t.authority||"");return{owner:n,repo:o,filePath:s,ref:i}}function Me(t){try{let e=P.workspace.workspaceFolders||[];for(let r of e){let n=r?.uri?.scheme;if(n==="github"){let o=J(r.uri);if(!o)continue;let s=we(r.uri.path||"",t?.path||"");return{...o,filePath:s}}if(n==="vscode-vfs"&&String(r?.uri?.authority||"").startsWith("github")){let o=Z(r.uri);if(!o)continue;let i=A(t?.path||"").replace(/^\/+/,"").split("/").filter(Boolean).slice(2).join("/");if(!i)continue;return{...o,filePath:i}}}}catch{}return null}async function Re(t,e){let r=J(t)||Z(t)||Me(t);if(!r||!r.owner||!r.repo||!r.filePath)return{freshness:null,reason:"github-context-missing"};let n=`${r.owner}/${r.repo}@${r.ref}:${r.filePath}`,o=`https://api.github.com/repos/${r.owner}/${r.repo}/commits?path=${encodeURIComponent(r.filePath)}&sha=${encodeURIComponent(r.ref)}&per_page=1`,s={Accept:"application/vnd.github+json"};try{let v=P?.authentication&&typeof P.authentication.getSession=="function"?await P.authentication.getSession("github",["repo"],{createIfNone:!1}):null;v?.accessToken&&(s.Authorization=`Bearer ${v.accessToken}`)}catch{}if(typeof fetch!="function")return{freshness:null,reason:"github-fetch-unavailable"};let i;try{i=await fetch(o,{headers:s})}catch(v){return{freshness:null,reason:`github-fetch-error:${v?.message||"unknown"}`}}if(!i||!i.ok)return{freshness:null,reason:i?`github-http-${i.status}`:"github-no-response"};let c;try{c=await i.json()}catch{return{freshness:null,reason:"github-json-error"}}let u=Array.isArray(c)?c[0]:null,a=u?.commit||null,l=a?.author?.name||u?.author?.login||void 0,f=a?.message||void 0,p=D(a?.author?.date);return p===null?{freshness:null,reason:"github-no-timestamp"}:{freshness:T({source:"github",timestampMs:p,author:l,message:f,confidence:"medium",reason:"github-commit"},e),reason:null,cacheKey:n}}function M(t,e){return!t||t==="auto"?!0:t==="unknown"?e==="unknown":t===e}async function Ae({uri:t,stat:e,provider:r,config:n,workspaceKind:o}){let s=t?.scheme||"file",i=m(n,"freshnessSourcePolicy","auto"),c=[],u=Date.now();if(M(i,"fs")){let a=await xe(t,e,n);if(c.push({source:"fs",reason:a.reason||null}),a.freshness)return{...a.freshness,attempts:c}}if(M(i,"git")){let a=await Ee(t,r,n);if(c.push({source:"git",reason:a.reason||null}),a.freshness)return{...a.freshness,attempts:c}}if(M(i,"github")){let a=await Re(t,n);if(c.push({source:"github",reason:a.reason||null,cacheKey:a.cacheKey||null}),a.freshness)return{...a.freshness,attempts:c}}return be("freshness-unknown","info","No trustworthy freshness source available",{scheme:s,workspaceKind:o||"unknown",attempts:c}),{bucket:"unknown",source:"unknown",confidence:"low",reason:"no-source",attempts:c,resolvedAt:u}}function Te(t,e){if(!t)return-1;if(!e)return 1;let r=R[t.confidence]||0,n=R[e.confidence]||0;if(r!==n)return r-n;let o=Number(t.exactTimestamp||0),s=Number(e.exactTimestamp||0);return o-s}Q.exports={resolveFreshness:Ae,formatBadge:Se,formatTooltip:Fe,bucketFromAge:H,formatBucketLabel:I,formatBadgeAge:X,formatSourceLabel:Y,compareFreshness:Te,SOURCE_RANK:De,CONFIDENCE_RANK:R,normalizeTimestamp:D,resourceIdentity:ve}});var te=y((exports,module)=>{var vscode=require("vscode"),getLogger=()=>{try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let t=dynamicRequire("./chunks/logger-chunk");if(t&&typeof t.getLogger=="function")return getLogger=t.getLogger,getLogger()}}catch{}try{return getLogger=x().getLogger,getLogger()}catch{return getLogger=()=>({debug:(()=>{})?.bind(console)||console.log,info:(()=>{}).bind(console),warn:(()=>{}).bind(console),error:(()=>{}).bind(console)}),getLogger()}},logger=getLogger(),BaseEventEmitter=class{constructor(){this.o=new Map}on(e,r){let n=this.o.get(e)||[];return n.push(r),this.o.set(e,n),this}off(e,r){let n=this.o.get(e);if(!n)return this;let o=n.indexOf(r);return o!==-1&&n.splice(o,1),this}emit(e,...r){let n=this.o.get(e);return n&&n.slice().forEach(o=>{try{o(...r)}catch(s){logger.error(`Explorer Dates API handler failed for "${e}":`,s)}}),this}},ExtensionApiManager=class extends BaseEventEmitter{constructor(){super(),this.plugins=new Map,this.api=null,this.decorationProviders=new Map,this.e=null,this.initialize(),this.u()}initialize(){this.api=this.createPublicApi(),logger.info("Extension API Manager initialized")}createPublicApi(){return{getFileDecorations:this.getFileDecorations.bind(this),refreshDecorations:this.refreshDecorations.bind(this),registerPlugin:this.registerPlugin.bind(this),unregisterPlugin:this.unregisterPlugin.bind(this),registerDecorationProvider:this.registerDecorationProvider.bind(this),unregisterDecorationProvider:this.unregisterDecorationProvider.bind(this),onDecorationChanged:this.onDecorationChanged.bind(this),onFileScanned:this.onFileScanned.bind(this),formatDate:this.formatDate.bind(this),getFileStats:this.getFileStats.bind(this),version:"1.1.0",apiVersion:"1.0.0"}}async getFileDecorations(e){if(!this.t("getFileDecorations"))return[];try{let r=[];for(let n of e){let o=vscode.Uri.file(n),s=await this.getDecorationForFile(o);s&&r.push({uri:o.toString(),decoration:s})}return r}catch(r){return logger.error("Failed to get file decorations:",r),[]}}async getDecorationForFile(e){if(!this.t("getDecorationForFile"))return null;try{let r=await vscode.workspace.fs.stat(e),n=new Date(r.mtime),o="?";try{let{formatBadge:i}=ee(),u=(Date.now()-n.getTime())/(1e3*60*60*24),a;u<.07?a="now":u<1?a="today":u<3?a="2d":u<8?a="1w":a="stale";let l=vscode.workspace.getConfiguration("explorerDates");o=i(a,"fs",l)||"?"}catch{}let s={badge:o,color:void 0,tooltip:`Modified: ${n.toLocaleString()}`};for(let[i,c]of this.decorationProviders)try{let u=await c.provideDecoration(e,r,s);u&&(s={...s,...u})}catch(u){logger.error(`Decoration provider ${i} failed:`,u)}return s}catch(r){return logger.error("Failed to get decoration for file:",r),null}}async refreshDecorations(e=null){if(!this.t("refreshDecorations"))return!1;try{return this.emit("decorationRefreshRequested",e),logger.info("Decoration refresh requested"),!0}catch(r){return logger.error("Failed to refresh decorations:",r),!1}}registerPlugin(e,r){if(!this.s(`registerPlugin:${e}`))return!1;try{if(!this.validatePlugin(r))throw new Error("Invalid plugin structure");return this.plugins.set(e,{...r,registeredAt:new Date,active:!0}),typeof r.activate=="function"&&r.activate(this.api),this.emit("pluginRegistered",{pluginId:e,plugin:r}),logger.info(`Plugin registered: ${e}`),!0}catch(n){return logger.error(`Failed to register plugin ${e}:`,n),!1}}unregisterPlugin(e){if(!this.s(`unregisterPlugin:${e}`))return!1;try{let r=this.plugins.get(e);return r?(typeof r.deactivate=="function"&&r.deactivate(),this.plugins.delete(e),this.emit("pluginUnregistered",{pluginId:e}),logger.info(`Plugin unregistered: ${e}`),!0):!1}catch(r){return logger.error(`Failed to unregister plugin ${e}:`,r),!1}}registerDecorationProvider(e,r){if(!this.s(`registerDecorationProvider:${e}`))return!1;try{if(!this.validateDecorationProvider(r))throw new Error("Invalid decoration provider");return this.decorationProviders.set(e,r),this.emit("decorationProviderRegistered",{providerId:e,provider:r}),logger.info(`Decoration provider registered: ${e}`),!0}catch(n){return logger.error(`Failed to register decoration provider ${e}:`,n),!1}}unregisterDecorationProvider(e){if(!this.s(`unregisterDecorationProvider:${e}`))return!1;try{let r=this.decorationProviders.delete(e);return r&&(this.emit("decorationProviderUnregistered",{providerId:e}),logger.info(`Decoration provider unregistered: ${e}`)),r}catch(r){return logger.error(`Failed to unregister decoration provider ${e}:`,r),!1}}onDecorationChanged(e){return this.on("decorationChanged",e),()=>this.off("decorationChanged",e)}onFileScanned(e){return this.on("fileScanned",e),()=>this.off("fileScanned",e)}formatDate(e,r=null){if(!this.t("formatDate"))return"";try{let n=vscode.workspace.getConfiguration("explorerDates"),o=r||n.get("displayFormat","smart"),i=new Date-e,c=Math.floor(i/(1e3*60*60*24));switch(o){case"relative-short":return this.getRelativeTimeShort(i);case"relative-long":return this.getRelativeTimeLong(i);case"absolute-short":return e.toLocaleDateString("en-US",{month:"short",day:"numeric"});case"absolute-long":return e.toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric"});default:return c<7?this.getRelativeTimeShort(i):e.toLocaleDateString("en-US",{month:"short",day:"numeric"})}}catch(n){return logger.error("Failed to format date:",n),e.toLocaleDateString()}}async getFileStats(e){if(!this.t("getFileStats"))return null;try{let r=vscode.Uri.file(e),n=await vscode.workspace.fs.stat(r);return{path:e,size:n.size,created:new Date(n.ctime),modified:new Date(n.mtime),type:n.type===vscode.FileType.Directory?"directory":"file"}}catch(r){return logger.error("Failed to get file stats:",r),null}}getApi(){return this.api}getRegisteredPlugins(){let e=[];for(let[r,n]of this.plugins)e.push({id:r,name:n.name,version:n.version,author:n.author,active:n.active,registeredAt:n.registeredAt});return e}validatePlugin(e){return!(!e||typeof e!="object"||!e.name||!e.version||e.activate&&typeof e.activate!="function"||e.deactivate&&typeof e.deactivate!="function")}validateDecorationProvider(e){return!(!e||typeof e!="object"||typeof e.provideDecoration!="function")}getRelativeTimeShort(e){let r=Math.floor(e/1e3),n=Math.floor(r/60),o=Math.floor(n/60),s=Math.floor(o/24);if(r<60)return`${r}s`;if(n<60)return`${n}m`;if(o<24)return`${o}h`;if(s<30)return`${s}d`;let i=Math.floor(s/30);return i<12?`${i}mo`:`${Math.floor(i/12)}y`}getRelativeTimeLong(e){let r=Math.floor(e/1e3),n=Math.floor(r/60),o=Math.floor(n/60),s=Math.floor(o/24);if(r<60)return`${r} second${r!==1?"s":""} ago`;if(n<60)return`${n} minute${n!==1?"s":""} ago`;if(o<24)return`${o} hour${o!==1?"s":""} ago`;if(s<30)return`${s} day${s!==1?"s":""} ago`;let i=Math.floor(s/30);if(i<12)return`${i} month${i!==1?"s":""} ago`;let c=Math.floor(i/12);return`${c} year${c!==1?"s":""} ago`}getColorForAge(e){if(!vscode.workspace.getConfiguration("explorerDates").get("colorCoding",!1))return;let s=(new Date-e)/(1e3*60*60);return s<1?new vscode.ThemeColor("charts.green"):s<24?new vscode.ThemeColor("charts.yellow"):s<168?new vscode.ThemeColor("charts.orange"):new vscode.ThemeColor("charts.red")}createExamplePlugin(){return{name:"File Size Display",version:"1.0.0",author:"Explorer Dates",description:"Adds file size to decorations",activate:e=>{e.registerDecorationProvider("fileSize",{provideDecoration:async(r,n,o)=>{let s=this.formatFileSize(n.size);return{badge:o.badge,tooltip:`${o.tooltip} -Size: ${s}`}}}),logger.info("File Size Display plugin activated")},deactivate:()=>{logger.info("File Size Display plugin deactivated")}}}u(){this.e&&this.e.dispose(),this.e=vscode.workspace.onDidChangeConfiguration(e=>{(e.affectsConfiguration("explorerDates.enableExtensionApi")||e.affectsConfiguration("explorerDates.allowExternalPlugins"))&&logger.info("Explorer Dates API configuration changed",{apiEnabled:this.i(),externalPluginsAllowed:this.a()})})}i(){return vscode.workspace.getConfiguration("explorerDates").get("enableExtensionApi",!0)}a(){return vscode.workspace.getConfiguration("explorerDates").get("allowExternalPlugins",!0)}t(e){return this.i()?!0:(logger.warn(`Explorer Dates API request "${e}" ignored because enableExtensionApi is disabled.`),!1)}s(e){return this.t(e)?this.a()?!0:(logger.warn(`Explorer Dates plugin request "${e}" ignored because allowExternalPlugins is disabled.`),!1):!1}formatFileSize(e){if(e===0)return"0 B";let r=1024,n=["B","KB","MB","GB"],o=Math.floor(Math.log(e)/Math.log(r));return parseFloat((e/Math.pow(r,o)).toFixed(1))+" "+n[o]}dispose(){this.e&&(this.e.dispose(),this.e=null),this.plugins.clear(),this.decorationProviders.clear(),logger.info("Extension API Manager disposed")}};module.exports={ExtensionApiManager}});var{ExtensionApiManager:L}=te(),{getLogger:Le}=x(),Be=Le();function re(t){try{let e=new L;return t&&t.subscriptions&&t.subscriptions.push(e),e}catch(e){return Be.error("Failed to create Extension API Manager:",e),null}}module.exports={ExtensionApiManager:L,createExtensionApiManager:re,default:{ExtensionApiManager:L,createExtensionApiManager:re}}; +var y=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var E=y((Ne,B)=>{var w="__explorerDatesLogger",b=class{constructor(){this.r=null}n(e,r){if(this.r&&typeof this.r[e]=="function")try{return this.r[e](...r)}catch{}switch(e){case"debug":break;case"info":break;case"warn":break;case"error":break;default:break}}debug(...e){return this.n("debug",e)}info(...e){return this.n("info",e)}warn(...e){return this.n("warn",e)}error(...e){return this.n("error",e)}l(e){this.r=e}};function ne(){return typeof global<"u"?(global[w]||(global[w]=new b),global[w]):typeof globalThis<"u"?(globalThis[w]||(globalThis[w]=new b),globalThis[w]):(F||(F=new b),F)}var C=class extends b{},F=null;B.exports={Logger:C,getLogger:ne}});var z=y((exports,module)=>{var chunk=null;try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){try{chunk=dynamicRequire("../chunks/utils-shared-chunk")}catch{}try{chunk||(chunk=dynamicRequire("./chunks/utils-shared-chunk"))}catch{}try{chunk||(chunk=dynamicRequire("../chunks/path-utils-chunk"))}catch{}try{chunk||(chunk=dynamicRequire("./chunks/path-utils-chunk"))}catch{}}}catch{}if(chunk&&chunk.normalizePath)module.exports={normalizePath:chunk.normalizePath,getFileName:chunk.getFileName,getExtension:chunk.getExtension,getDirectory:chunk.getDirectory,joinPath:chunk.joinPath,getCacheKey:chunk.getCacheKey,getUriPath:chunk.getUriPath,getRelativePath:chunk.getRelativePath};else{let t=function(a=""){return a?a.replace(/\\/g,"/"):""},e=function(a=""){let l=t(a);return l?l.split("/").filter(Boolean):[]},r=function(a=""){let l=e(a);return l.length?l[l.length-1]:""},n=function(a=""){let l=r(a),f=l.lastIndexOf(".");return f<=0?"":l.substring(f).toLowerCase()},o=function(a=""){let l=t(a),f=l.lastIndexOf("/");return f===-1?"":l.substring(0,f)},s=function(...a){return t(a.filter(Boolean).join("/")).replace(/\/+/g,"/")},i=function(a=""){return t(a).toLowerCase()},c=function(a=""){if(!a)return"";if(typeof a=="string")return a;if(typeof a.fsPath=="string"&&a.fsPath.length>0)return a.fsPath;if(typeof a.path=="string"&&a.path.length>0)return a.path;if(typeof a.toString=="function")try{return a.toString(!0)}catch{return a.toString()}return String(a)},u=function(a="",l=""){let f=t(a),p=t(l);return f&&p.startsWith(f)?p.substring(f.length).replace(/^\/+/,""):p};normalizePath=t,getSegments=e,getFileName=r,getExtension=n,getDirectory=o,joinPath=s,getCacheKey=i,getUriPath=c,getRelativePath=u,module.exports={normalizePath:t,getFileName:r,getExtension:n,getDirectory:o,joinPath:s,getCacheKey:i,getUriPath:c,getRelativePath:u}}var normalizePath,getSegments,getFileName,getExtension,getDirectory,joinPath,getCacheKey,getUriPath,getRelativePath});var _=y((Oe,U)=>{var N=typeof process<"u"&&process.env?process.env:{},q="[ExplorerDates][WebDiag]",$="__explorerDatesWebDiagnostics",k;function oe(){try{let t=require("vscode");return t?.env?.uiKind===t?.UIKind?.Web}catch{return N.VSCODE_WEB==="true"}}function h(){return k!==void 0||(k=N.EXPLORER_DATES_WEB_DIAG==="1"||oe()),k}function O(){return{enabled:h(),logs:[],logOnce:new Set,commandsRegistered:new Set,commandsInvoked:[],errors:[],chunkLoads:[],provider:{created:!1,registered:!1,hydrated:!1,decorationCalls:0,refreshCalls:0,lastEvent:null}}}var se=O();function g(){return typeof globalThis<"u"?(globalThis[$]||(globalThis[$]=O()),globalThis[$]):se}function ie(t){try{return JSON.stringify(t)}catch{return String(t)}}function d(t,e,r){if(!h())return;let n=g(),o={ts:new Date().toISOString(),level:t,message:e,meta:r||null};n.logs.push(o),n.logs.length>400&&n.logs.shift();let s=r?`${q} ${e} ${ie(r)}`:`${q} ${e}`,i=console[t]||console.info;try{i(s)}catch{}}function ae(t,e,r,n){if(!h())return;let o=g();o.logOnce.has(t)||(o.logOnce.add(t),d(e,r,n))}function ce(t){if(!h())return;g().commandsRegistered.add(t),d("info","Command registered",{commandId:t})}function ue(t){if(!h())return;g().commandsInvoked.push({commandId:t,ts:Date.now()}),d("info","Command invoked",{commandId:t})}function le(t,e,r,n,o){if(!h())return;let s=n||(e?"behavioral-success":"unhandled-command-failure"),i=r?{name:r.name||"Error",message:r.message||String(r),code:r.code||null}:null;e?d("info","Command completed",{commandId:t,outcomeCategory:s}):(d("error","Command failed",{commandId:t,outcomeCategory:s,error:i,errorContext:o||null}),g().errors.push({commandId:t,outcomeCategory:s,error:i,errorContext:o||null}))}function fe(t,e,r){if(!h())return;g().chunkLoads.push({chunkName:t,stage:e,ts:Date.now(),error:r?r.message||String(r):null}),d(r?"warn":"info",`Chunk ${e}`,{chunkName:t,error:r?.message})}function he(t,e){if(!h())return;let r=g();r.provider.lastEvent={event:t,ts:Date.now(),meta:e||null},t==="created"&&(r.provider.created=!0),t==="registered"&&(r.provider.registered=!0),t==="hydrated"&&(r.provider.hydrated=!0),d("info",`Provider ${t}`,e)}function ge(){if(!h())return;let t=g();t.provider.decorationCalls+=1,t.provider.decorationCalls<=3&&d("info","Decoration request observed",{count:t.provider.decorationCalls})}function de(){if(!h())return;let t=g();t.provider.refreshCalls+=1}U.exports={isWebDiagnosticsEnabled:h,getWebDiagnosticsState:g,diagLog:d,diagLogOnce:ae,recordCommandRegistration:ce,recordCommandInvocation:ue,recordCommandResult:le,recordChunkEvent:fe,recordProviderEvent:he,recordDecorationCall:ge,recordRefreshCall:de}});var G=y((Ue,V)=>{var j="EXPLORER_DATES_FORCE_VSCODE_FS";function W(t,e=process.env){return String(e?.[t]||"")==="1"}function S(t){let e=t&&typeof t=="object"?t:null,r=String(e?.scheme||(typeof t=="string"&&/^[a-z][a-z0-9+.-]*:/i.test(t)?t.split(":",1)[0]:"file")).toLowerCase(),n=String(e?.authority||""),o=e?.path||e?.fsPath||(typeof t=="string"?t.replace(/^[a-z][a-z0-9+.-]*:\/\//i,""):"");return{scheme:r,authority:n,path:String(o||"")}}function me({uri:t,isWeb:e=!1,remoteName:r="",forceWorkspaceFs:n=W(j)}={}){let o=S(t),s=o.scheme!=="file",i=!!e,c=!!r,u=!!(n||i||c||s);return{scheme:o.scheme,authority:o.authority,isFileScheme:!s,isVirtual:s,isBrowser:i,isRemote:c,forceWorkspaceFs:!!n,filesystem:u?"workspace.fs":"node.fs",provider:s?o.scheme==="github"||o.scheme==="vscode-vfs"?"github":"virtual":"filesystem"}}function K({uri:t,platform:e=process.platform,caseSensitive:r}={}){return typeof r=="boolean"?r:S(t).scheme!=="file"?!0:e!=="win32"}function pe(t,e={}){let r=S(t),n=r.path.replace(/\\/g,"/").replace(/\/+/g,"/"),o=`${r.scheme}://${r.authority}${n}`;return K({uri:t,...e})?o:o.toLowerCase()}function x(t){if(t instanceof Date){let e=t.getTime();return Number.isFinite(e)?e:null}if(typeof t=="number")return Number.isFinite(t)?t:null;if(typeof t=="string"&&t.trim()){let e=Date.parse(t);return Number.isFinite(e)?e:null}return null}function ye(t){if(!t||typeof t!="object")return null;let e=x(t.mtime),r=x(t.ctime);return{...t,mtimeMs:e,ctimeMs:r}}V.exports={FORCE_WORKSPACE_FS_ENV:j,envFlag:W,getUriParts:S,getEnvironmentContract:me,isCaseSensitive:K,resourceIdentity:pe,normalizeTimestamp:x,normalizeStat:ye}});var ee=y((_e,Q)=>{var P=require("vscode"),{normalizePath:A,getRelativePath:we}=z(),{diagLogOnce:be}=_(),{normalizeTimestamp:D,resourceIdentity:ve}=G(),De={unknown:0,github:1,git:2,fs:3},R={low:1,medium:2,high:3};function m(t,e,r){try{return t?.get?t.get(e,r):r}catch{return r}}function ke(t){return{nowMinutes:Number(m(t,"freshnessBucketMinutesNow",60))||60,todayHours:Number(m(t,"freshnessBucketHoursToday",24))||24,twoDays:Number(m(t,"freshnessBucketDaysTwo",2))||2,oneWeek:Number(m(t,"freshnessBucketDaysWeek",7))||7}}function H(t,e){if(!Number.isFinite(t)||t<0)return"unknown";let r=e.nowMinutes*60*1e3,n=e.todayHours*60*60*1e3,o=e.twoDays*24*60*60*1e3,s=e.oneWeek*24*60*60*1e3;return t<=r?"now":t<=n?"today":t<=o?"2d":t<=s?"1w":"stale"}function I(t){switch(t){case"now":return"now";case"today":return"today";case"2d":return"2d";case"1w":return"1w";case"stale":return"stale";default:return"unknown"}}function Y(t){switch(t){case"fs":return"Filesystem";case"git":return"Git";case"github":return"GitHub";default:return"Unknown"}}function X(t){switch(t){case"now":return"!!";case"today":return"T";case"2d":return"2d";case"1w":return"1w";case"stale":return"~~";default:return"?"}}function Se(t,e,r){let n=!!m(r,"freshnessShowUnknown",!0);if(t==="unknown"||e==="unknown")return n?"?":null;let o=X(t);return!o||o==="unknown"?n?"?":null:o}function Pe(t){try{let e=D(t);return e===null?null:new Date(e).toISOString().replace("T"," ").replace("Z","")}catch{return null}}function Fe(t,e){if(!t)return;let r=m(e,"freshnessTooltipVerbosity","full"),n=m(e,"badge.sourceLabelMode","auto"),o=[],s=I(t.bucket),i=Y(t.source);if(o.push(`Freshness: ${s}`),t.exactTimestamp){let a=Pe(t.exactTimestamp);a&&o.push(`Exact time: ${a}`)}let c=t.source==="fs"&&t.confidence==="high";return(n==="always"||n!=="never"&&!c||n!=="never"&&r==="full")&&o.push(`Source: ${i}`),t.author&&o.push(`Author: ${t.author}`),t.message&&o.push(`Message: ${t.message}`),o.push(`Confidence: ${t.confidence}`),t.reason&&r==="full"&&o.push(`Reason: ${t.reason}`),o.join(` +`)}function Ce(t,e,r){if(!Number.isFinite(e)||e<=0)return!1;let n=300*1e3;if(e>r+n)return!1;if(t==="file")return!0;let o=r-e,s=300*1e3,i=365*24*60*60*1e3*10;return!(oi)}function T({source:t,timestampMs:e,author:r,message:n,confidence:o,reason:s},i){if(!Number.isFinite(e))return{bucket:"unknown",source:t||"unknown",confidence:o||"low",reason:s||"no-timestamp"};let c=ke(i),u=Date.now()-e;return{bucket:H(u,c),source:t,exactTimestamp:e,author:r||void 0,message:n||void 0,confidence:o,reason:s||void 0}}async function Ee(t,e,r){let n=t?.scheme||"file",o=!!m(r,"freshnessAllowVirtualFs",!1);if(n!=="file"&&!o)return{freshness:null,reason:"fs-virtual-disabled"};let s=e?.mtimeMs??D(e?.mtime),i=Date.now();return Number.isFinite(s)?Ce(n,s,i)?{freshness:T({source:"fs",timestampMs:s,confidence:n==="file"?"high":"medium",reason:n==="file"?"fs-trust-high":"fs-trust-medium"},r),reason:null}:{freshness:null,reason:"fs-mtime-untrusted"}:{freshness:null,reason:"fs-mtime-missing"}}async function $e(t,e,r){if(!e||typeof e.c!="function")return{freshness:null,reason:"git-provider-missing"};let n;try{n=await e.c(t)}catch(i){return{freshness:null,reason:`git-error:${i?.message||"unknown"}`}}let o=D(n?.timestampMs);return o===null||o<=0?{freshness:null,reason:n?.error||"git-no-timestamp"}:{freshness:T({source:"git",timestampMs:o,author:n?.author||void 0,message:n?.message||void 0,confidence:"medium",reason:"git-recency"},r),reason:null}}function J(t){if(!t||(t.scheme||"")!=="github")return null;let n=A(t.path||"").replace(/^\/+/,"").split("/").filter(Boolean);if(n.length<2)return null;let o=n[0],s=n[1],i=n.slice(2).join("/"),c=new URLSearchParams(t.query||""),u=c.get("ref")||c.get("branch")||"HEAD";return{owner:o,repo:s,filePath:i,ref:u}}function xe(t){let e=(t||"").indexOf("+");if(e===-1)return"HEAD";let r=t.slice(e+1);try{let n;if(typeof TextDecoder<"u"){let i=new Uint8Array(r.length/2);for(let c=0;c0)return s}catch{}return"HEAD"}function Z(t){if(!t||t.scheme!=="vscode-vfs"||!String(t.authority||"").startsWith("github"))return null;let r=A(t.path||"").replace(/^\/+/,"").split("/").filter(Boolean);if(r.length<2)return null;let n=r[0],o=r[1],s=r.slice(2).join("/"),i=xe(t.authority||"");return{owner:n,repo:o,filePath:s,ref:i}}function Me(t){try{let e=P.workspace.workspaceFolders||[];for(let r of e){let n=r?.uri?.scheme;if(n==="github"){let o=J(r.uri);if(!o)continue;let s=we(r.uri.path||"",t?.path||"");return{...o,filePath:s}}if(n==="vscode-vfs"&&String(r?.uri?.authority||"").startsWith("github")){let o=Z(r.uri);if(!o)continue;let i=A(t?.path||"").replace(/^\/+/,"").split("/").filter(Boolean).slice(2).join("/");if(!i)continue;return{...o,filePath:i}}}}catch{}return null}async function Re(t,e){let r=J(t)||Z(t)||Me(t);if(!r||!r.owner||!r.repo||!r.filePath)return{freshness:null,reason:"github-context-missing"};let n=`${r.owner}/${r.repo}@${r.ref}:${r.filePath}`,o=`https://api.github.com/repos/${r.owner}/${r.repo}/commits?path=${encodeURIComponent(r.filePath)}&sha=${encodeURIComponent(r.ref)}&per_page=1`,s={Accept:"application/vnd.github+json"};try{let v=P?.authentication&&typeof P.authentication.getSession=="function"?await P.authentication.getSession("github",["repo"],{createIfNone:!1}):null;v?.accessToken&&(s.Authorization=`Bearer ${v.accessToken}`)}catch{}if(typeof fetch!="function")return{freshness:null,reason:"github-fetch-unavailable"};let i;try{i=await fetch(o,{headers:s})}catch(v){return{freshness:null,reason:`github-fetch-error:${v?.message||"unknown"}`}}if(!i||!i.ok)return{freshness:null,reason:i?`github-http-${i.status}`:"github-no-response"};let c;try{c=await i.json()}catch{return{freshness:null,reason:"github-json-error"}}let u=Array.isArray(c)?c[0]:null,a=u?.commit||null,l=a?.author?.name||u?.author?.login||void 0,f=a?.message||void 0,p=D(a?.author?.date);return p===null?{freshness:null,reason:"github-no-timestamp"}:{freshness:T({source:"github",timestampMs:p,author:l,message:f,confidence:"medium",reason:"github-commit"},e),reason:null,cacheKey:n}}function M(t,e){return!t||t==="auto"?!0:t==="unknown"?e==="unknown":t===e}async function Ae({uri:t,stat:e,provider:r,config:n,workspaceKind:o}){let s=t?.scheme||"file",i=m(n,"freshnessSourcePolicy","auto"),c=[],u=Date.now();if(M(i,"fs")){let a=await Ee(t,e,n);if(c.push({source:"fs",reason:a.reason||null}),a.freshness)return{...a.freshness,attempts:c}}if(M(i,"git")){let a=await $e(t,r,n);if(c.push({source:"git",reason:a.reason||null}),a.freshness)return{...a.freshness,attempts:c}}if(M(i,"github")){let a=await Re(t,n);if(c.push({source:"github",reason:a.reason||null,cacheKey:a.cacheKey||null}),a.freshness)return{...a.freshness,attempts:c}}return be("freshness-unknown","info","No trustworthy freshness source available",{scheme:s,workspaceKind:o||"unknown",attempts:c}),{bucket:"unknown",source:"unknown",confidence:"low",reason:"no-source",attempts:c,resolvedAt:u}}function Te(t,e){if(!t)return-1;if(!e)return 1;let r=R[t.confidence]||0,n=R[e.confidence]||0;if(r!==n)return r-n;let o=Number(t.exactTimestamp||0),s=Number(e.exactTimestamp||0);return o-s}Q.exports={resolveFreshness:Ae,formatBadge:Se,formatTooltip:Fe,bucketFromAge:H,formatBucketLabel:I,formatBadgeAge:X,formatSourceLabel:Y,compareFreshness:Te,SOURCE_RANK:De,CONFIDENCE_RANK:R,normalizeTimestamp:D,resourceIdentity:ve}});var te=y((exports,module)=>{var vscode=require("vscode"),getLogger=()=>{try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let t=dynamicRequire("./chunks/logger-chunk");if(t&&typeof t.getLogger=="function")return getLogger=t.getLogger,getLogger()}}catch{}try{return getLogger=E().getLogger,getLogger()}catch{return getLogger=()=>({debug:(()=>{})?.bind(console)||console.log,info:(()=>{}).bind(console),warn:(()=>{}).bind(console),error:(()=>{}).bind(console)}),getLogger()}},logger=getLogger(),BaseEventEmitter=class{constructor(){this.o=new Map}on(e,r){let n=this.o.get(e)||[];return n.push(r),this.o.set(e,n),this}off(e,r){let n=this.o.get(e);if(!n)return this;let o=n.indexOf(r);return o!==-1&&n.splice(o,1),this}emit(e,...r){let n=this.o.get(e);return n&&n.slice().forEach(o=>{try{o(...r)}catch(s){logger.error(`Explorer Dates API handler failed for "${e}":`,s)}}),this}},ExtensionApiManager=class extends BaseEventEmitter{constructor(){super(),this.plugins=new Map,this.api=null,this.decorationProviders=new Map,this.e=null,this.initialize(),this.u()}initialize(){this.api=this.createPublicApi(),logger.info("Extension API Manager initialized")}createPublicApi(){return{getFileDecorations:this.getFileDecorations.bind(this),refreshDecorations:this.refreshDecorations.bind(this),registerPlugin:this.registerPlugin.bind(this),unregisterPlugin:this.unregisterPlugin.bind(this),registerDecorationProvider:this.registerDecorationProvider.bind(this),unregisterDecorationProvider:this.unregisterDecorationProvider.bind(this),onDecorationChanged:this.onDecorationChanged.bind(this),onFileScanned:this.onFileScanned.bind(this),formatDate:this.formatDate.bind(this),getFileStats:this.getFileStats.bind(this),version:"1.1.0",apiVersion:"1.0.0"}}async getFileDecorations(e){if(!this.t("getFileDecorations"))return[];try{let r=[];for(let n of e){let o=vscode.Uri.file(n),s=await this.getDecorationForFile(o);s&&r.push({uri:o.toString(),decoration:s})}return r}catch(r){return logger.error("Failed to get file decorations:",r),[]}}async getDecorationForFile(e){if(!this.t("getDecorationForFile"))return null;try{let r=await vscode.workspace.fs.stat(e),n=new Date(r.mtime),o="?";try{let{formatBadge:i}=ee(),u=(Date.now()-n.getTime())/(1e3*60*60*24),a;u<.07?a="now":u<1?a="today":u<3?a="2d":u<8?a="1w":a="stale";let l=vscode.workspace.getConfiguration("explorerDates");o=i(a,"fs",l)||"?"}catch{}let s={badge:o,color:void 0,tooltip:`Modified: ${n.toLocaleString()}`};for(let[i,c]of this.decorationProviders)try{let u=await c.provideDecoration(e,r,s);u&&(s={...s,...u})}catch(u){logger.error(`Decoration provider ${i} failed:`,u)}return s}catch(r){return logger.error("Failed to get decoration for file:",r),null}}async refreshDecorations(e=null){if(!this.t("refreshDecorations"))return!1;try{return this.emit("decorationRefreshRequested",e),logger.info("Decoration refresh requested"),!0}catch(r){return logger.error("Failed to refresh decorations:",r),!1}}registerPlugin(e,r){if(!this.s(`registerPlugin:${e}`))return!1;try{if(!this.validatePlugin(r))throw new Error("Invalid plugin structure");return this.plugins.set(e,{...r,registeredAt:new Date,active:!0}),typeof r.activate=="function"&&r.activate(this.api),this.emit("pluginRegistered",{pluginId:e,plugin:r}),logger.info(`Plugin registered: ${e}`),!0}catch(n){return logger.error(`Failed to register plugin ${e}:`,n),!1}}unregisterPlugin(e){if(!this.s(`unregisterPlugin:${e}`))return!1;try{let r=this.plugins.get(e);return r?(typeof r.deactivate=="function"&&r.deactivate(),this.plugins.delete(e),this.emit("pluginUnregistered",{pluginId:e}),logger.info(`Plugin unregistered: ${e}`),!0):!1}catch(r){return logger.error(`Failed to unregister plugin ${e}:`,r),!1}}registerDecorationProvider(e,r){if(!this.s(`registerDecorationProvider:${e}`))return!1;try{if(!this.validateDecorationProvider(r))throw new Error("Invalid decoration provider");return this.decorationProviders.set(e,r),this.emit("decorationProviderRegistered",{providerId:e,provider:r}),logger.info(`Decoration provider registered: ${e}`),!0}catch(n){return logger.error(`Failed to register decoration provider ${e}:`,n),!1}}unregisterDecorationProvider(e){if(!this.s(`unregisterDecorationProvider:${e}`))return!1;try{let r=this.decorationProviders.delete(e);return r&&(this.emit("decorationProviderUnregistered",{providerId:e}),logger.info(`Decoration provider unregistered: ${e}`)),r}catch(r){return logger.error(`Failed to unregister decoration provider ${e}:`,r),!1}}onDecorationChanged(e){return this.on("decorationChanged",e),()=>this.off("decorationChanged",e)}onFileScanned(e){return this.on("fileScanned",e),()=>this.off("fileScanned",e)}formatDate(e,r=null){if(!this.t("formatDate"))return"";try{let n=vscode.workspace.getConfiguration("explorerDates"),o=r||n.get("displayFormat","smart"),i=new Date-e,c=Math.floor(i/(1e3*60*60*24));switch(o){case"relative-short":return this.getRelativeTimeShort(i);case"relative-long":return this.getRelativeTimeLong(i);case"absolute-short":return e.toLocaleDateString("en-US",{month:"short",day:"numeric"});case"absolute-long":return e.toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric"});default:return c<7?this.getRelativeTimeShort(i):e.toLocaleDateString("en-US",{month:"short",day:"numeric"})}}catch(n){return logger.error("Failed to format date:",n),e.toLocaleDateString()}}async getFileStats(e){if(!this.t("getFileStats"))return null;try{let r=vscode.Uri.file(e),n=await vscode.workspace.fs.stat(r);return{path:e,size:n.size,created:new Date(n.ctime),modified:new Date(n.mtime),type:n.type===vscode.FileType.Directory?"directory":"file"}}catch(r){return logger.error("Failed to get file stats:",r),null}}getApi(){return this.api}getRegisteredPlugins(){let e=[];for(let[r,n]of this.plugins)e.push({id:r,name:n.name,version:n.version,author:n.author,active:n.active,registeredAt:n.registeredAt});return e}validatePlugin(e){return!(!e||typeof e!="object"||!e.name||!e.version||e.activate&&typeof e.activate!="function"||e.deactivate&&typeof e.deactivate!="function")}validateDecorationProvider(e){return!(!e||typeof e!="object"||typeof e.provideDecoration!="function")}getRelativeTimeShort(e){let r=Math.floor(e/1e3),n=Math.floor(r/60),o=Math.floor(n/60),s=Math.floor(o/24);if(r<60)return`${r}s`;if(n<60)return`${n}m`;if(o<24)return`${o}h`;if(s<30)return`${s}d`;let i=Math.floor(s/30);return i<12?`${i}mo`:`${Math.floor(i/12)}y`}getRelativeTimeLong(e){let r=Math.floor(e/1e3),n=Math.floor(r/60),o=Math.floor(n/60),s=Math.floor(o/24);if(r<60)return`${r} second${r!==1?"s":""} ago`;if(n<60)return`${n} minute${n!==1?"s":""} ago`;if(o<24)return`${o} hour${o!==1?"s":""} ago`;if(s<30)return`${s} day${s!==1?"s":""} ago`;let i=Math.floor(s/30);if(i<12)return`${i} month${i!==1?"s":""} ago`;let c=Math.floor(i/12);return`${c} year${c!==1?"s":""} ago`}getColorForAge(e){if(!vscode.workspace.getConfiguration("explorerDates").get("colorCoding",!1))return;let s=(new Date-e)/(1e3*60*60);return s<1?new vscode.ThemeColor("charts.green"):s<24?new vscode.ThemeColor("charts.yellow"):s<168?new vscode.ThemeColor("charts.orange"):new vscode.ThemeColor("charts.red")}createExamplePlugin(){return{name:"File Size Display",version:"1.0.0",author:"Explorer Dates",description:"Adds file size to decorations",activate:e=>{e.registerDecorationProvider("fileSize",{provideDecoration:async(r,n,o)=>{let s=this.formatFileSize(n.size);return{badge:o.badge,tooltip:`${o.tooltip} +Size: ${s}`}}}),logger.info("File Size Display plugin activated")},deactivate:()=>{logger.info("File Size Display plugin deactivated")}}}u(){this.e&&this.e.dispose(),this.e=vscode.workspace.onDidChangeConfiguration(e=>{(e.affectsConfiguration("explorerDates.enableExtensionApi")||e.affectsConfiguration("explorerDates.allowExternalPlugins"))&&logger.info("Explorer Dates API configuration changed",{apiEnabled:this.i(),externalPluginsAllowed:this.a()})})}i(){return vscode.workspace.getConfiguration("explorerDates").get("enableExtensionApi",!0)}a(){return vscode.workspace.getConfiguration("explorerDates").get("allowExternalPlugins",!0)}t(e){return this.i()?!0:(logger.warn(`Explorer Dates API request "${e}" ignored because enableExtensionApi is disabled.`),!1)}s(e){return this.t(e)?this.a()?!0:(logger.warn(`Explorer Dates plugin request "${e}" ignored because allowExternalPlugins is disabled.`),!1):!1}formatFileSize(e){if(e===0)return"0 B";let r=1024,n=["B","KB","MB","GB"],o=Math.floor(Math.log(e)/Math.log(r));return parseFloat((e/Math.pow(r,o)).toFixed(1))+" "+n[o]}dispose(){this.e&&(this.e.dispose(),this.e=null),this.plugins.clear(),this.decorationProviders.clear(),logger.info("Extension API Manager disposed")}};module.exports={ExtensionApiManager}});var{ExtensionApiManager:L}=te(),{getLogger:Le}=E(),Be=Le();function re(t){try{let e=new L;return t&&t.subscriptions&&t.subscriptions.push(e),e}catch(e){return Be.error("Failed to create Extension API Manager:",e),null}}module.exports={ExtensionApiManager:L,createExtensionApiManager:re,default:{ExtensionApiManager:L,createExtensionApiManager:re}}; diff --git a/dist/chunks/fileDateProviderImpl.js b/dist/chunks/fileDateProviderImpl.js index 8be37e3..dfef796 100644 --- a/dist/chunks/fileDateProviderImpl.js +++ b/dist/chunks/fileDateProviderImpl.js @@ -1,4 +1,4 @@ -var jr=Object.create;var mt=Object.defineProperty;var Vr=Object.getOwnPropertyDescriptor;var Gr=Object.getOwnPropertyNames;var Xr=Object.getPrototypeOf,Yr=Object.prototype.hasOwnProperty;var _=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var Zr=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Gr(t))!Yr.call(e,i)&&i!==r&&mt(e,i,{get:()=>t[i],enumerable:!(n=Vr(t,i))||n.enumerable});return e};var R=(e,t,r)=>(r=e!=null?jr(Xr(e)):{},Zr(t||!e||!e.__esModule?mt(r,"default",{value:e,enumerable:!0}):r,e));var J=_((ua,yt)=>{var pt=require("vscode");function Jr(){try{let e=pt?.env?.uiKind,t=pt?.UIKind?.Web;return e!==void 0&&t!==void 0&&e===t}catch{return!1}}yt.exports={isWebEnvironment:Jr}});var ce=_((exports,module)=>{var chunk=null;try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){try{chunk=dynamicRequire("../chunks/utils-shared-chunk")}catch{}try{chunk||(chunk=dynamicRequire("./chunks/utils-shared-chunk"))}catch{}try{chunk||(chunk=dynamicRequire("../chunks/path-utils-chunk"))}catch{}try{chunk||(chunk=dynamicRequire("./chunks/path-utils-chunk"))}catch{}}}catch{}if(chunk&&chunk.normalizePath)module.exports={normalizePath:chunk.normalizePath,getFileName:chunk.getFileName,getExtension:chunk.getExtension,getDirectory:chunk.getDirectory,joinPath:chunk.joinPath,getCacheKey:chunk.getCacheKey,getUriPath:chunk.getUriPath,getRelativePath:chunk.getRelativePath};else{let e=function(u=""){return u?u.replace(/\\/g,"/"):""},t=function(u=""){let l=e(u);return l?l.split("/").filter(Boolean):[]},r=function(u=""){let l=t(u);return l.length?l[l.length-1]:""},n=function(u=""){let l=r(u),d=l.lastIndexOf(".");return d<=0?"":l.substring(d).toLowerCase()},i=function(u=""){let l=e(u),d=l.lastIndexOf("/");return d===-1?"":l.substring(0,d)},a=function(...u){return e(u.filter(Boolean).join("/")).replace(/\/+/g,"/")},o=function(u=""){return e(u).toLowerCase()},s=function(u=""){if(!u)return"";if(typeof u=="string")return u;if(typeof u.fsPath=="string"&&u.fsPath.length>0)return u.fsPath;if(typeof u.path=="string"&&u.path.length>0)return u.path;if(typeof u.toString=="function")try{return u.toString(!0)}catch{return u.toString()}return String(u)},c=function(u="",l=""){let d=e(u),h=e(l);return d&&h.startsWith(d)?h.substring(d.length).replace(/^\/+/,""):h};normalizePath=e,getSegments=t,getFileName=r,getExtension=n,getDirectory=i,joinPath=a,getCacheKey=o,getUriPath=s,getRelativePath=c,module.exports={normalizePath:e,getFileName:r,getExtension:n,getDirectory:i,joinPath:a,getCacheKey:o,getUriPath:s,getRelativePath:c}}var normalizePath,getSegments,getFileName,getExtension,getDirectory,joinPath,getCacheKey,getUriPath,getRelativePath});var Et=_((ha,_t)=>{var ye=class extends Error{constructor(t,r,n={}){super(r),this.code=t,this.context=n,this.name="ExtensionError"}},bt={FILE_PERMISSION_DENIED:"FILE_PERMISSION_DENIED",WORKSPACE_TOO_LARGE:"WORKSPACE_TOO_LARGE",CHUNK_LOAD_FAILED:"CHUNK_LOAD_FAILED"};function Qr(e){if(!e)return!1;let t=e.code||e?.name;return["EACCES","EPERM","EROFS","NoPermissions"].includes(t)}var ze=class extends ye{constructor(t,r,n={}){let{recoverable:i=!0,context:a={}}=n;super(bt.CHUNK_LOAD_FAILED,`Failed to load ${t}: ${r}`,{chunkName:t,recoverable:i,...a}),this.name="ChunkLoadError",this.chunkName=t,this.recoverable=i}};function en(e,t,r={}){let n=require("vscode"),{userFacing:i=!0}=r,a=t?.recoverable??!0;i&&!a&&n.window.showErrorMessage(`Explorer Dates: ${e} feature unavailable. Please reinstall or rebuild the extension.`)}_t.exports={ExtensionError:ye,ERROR_CODES:bt,isPermissionError:Qr,ChunkLoadError:ze,handleChunkFailure:en}});var He=_((da,Ct)=>{var wt="EXPLORER_DATES_FORCE_VSCODE_FS";function kt(e,t=process.env){return String(t?.[e]||"")==="1"}function be(e){let t=e&&typeof e=="object"?e:null,r=String(t?.scheme||(typeof e=="string"&&/^[a-z][a-z0-9+.-]*:/i.test(e)?e.split(":",1)[0]:"file")).toLowerCase(),n=String(t?.authority||""),i=t?.path||t?.fsPath||(typeof e=="string"?e.replace(/^[a-z][a-z0-9+.-]*:\/\//i,""):"");return{scheme:r,authority:n,path:String(i||"")}}function tn({uri:e,isWeb:t=!1,remoteName:r="",forceWorkspaceFs:n=kt(wt)}={}){let i=be(e),a=i.scheme!=="file",o=!!t,s=!!r,c=!!(n||o||s||a);return{scheme:i.scheme,authority:i.authority,isFileScheme:!a,isVirtual:a,isBrowser:o,isRemote:s,forceWorkspaceFs:!!n,filesystem:c?"workspace.fs":"node.fs",provider:a?i.scheme==="github"||i.scheme==="vscode-vfs"?"github":"virtual":"filesystem"}}function Dt({uri:e,platform:t=process.platform,caseSensitive:r}={}){return typeof r=="boolean"?r:be(e).scheme!=="file"?!0:t!=="win32"}function rn(e,t={}){let r=be(e),n=r.path.replace(/\\/g,"/").replace(/\/+/g,"/"),i=`${r.scheme}://${r.authority}${n}`;return Dt({uri:e,...t})?i:i.toLowerCase()}function Ue(e){if(e instanceof Date){let t=e.getTime();return Number.isFinite(t)?t:null}if(typeof e=="number")return Number.isFinite(e)?e:null;if(typeof e=="string"&&e.trim()){let t=Date.parse(e);return Number.isFinite(t)?t:null}return null}function nn(e){if(!e||typeof e!="object")return null;let t=Ue(e.mtime),r=Ue(e.ctime);return{...e,mtimeMs:t,ctimeMs:r}}Ct.exports={FORCE_WORKSPACE_FS_ENV:wt,envFlag:kt,getUriParts:be,getEnvironmentContract:tn,isCaseSensitive:Dt,resourceIdentity:rn,normalizeTimestamp:Ue,normalizeStat:nn}});var K=_((fa,vt)=>{function an(){return typeof Date=="function"&&Date.now?Date.now():16409952e5}function St(e){return!!(e&&typeof e=="object"&&typeof e.getTime=="function")}function on(e){if(St(e))return e;if(typeof e=="number")return new Date(e);if(typeof e=="string"){let t=Date.parse(e);return isNaN(t)?new Date:new Date(t)}return new Date}function B(e=""){return e?e.replace(/\\/g,"/"):""}function sn(e=""){let t=B(e);return t?t.split("/").filter(Boolean):[]}function Tt(e=""){let t=sn(e);return t.length?t[t.length-1]:""}function cn(e=""){let t=Tt(e),r=t.lastIndexOf(".");return r<=0?"":t.substring(r).toLowerCase()}function ln(e=""){let t=B(e),r=t.lastIndexOf("/");return r===-1?"":t.substring(0,r)}function un(...e){return B(e.filter(Boolean).join("/")).replace(/\/+/g,"/")}function hn(e=""){return B(e).toLowerCase()}function dn(e=""){if(!e)return"";if(typeof e=="string")return e;if(typeof e.fsPath=="string"&&e.fsPath.length>0)return e.fsPath;if(typeof e.path=="string"&&e.path.length>0)return e.path;if(typeof e.toString=="function")try{return e.toString(!0)}catch{return e.toString()}return String(e)}function fn(e="",t=""){let r=B(e),n=B(t);return r&&n.startsWith(r)?n.substring(r.length).replace(/^\/+/,""):n}vt.exports={ensureDate:on,isDateLike:St,getCurrentTimestamp:an,normalizePath:B,getFileName:Tt,getExtension:cn,getDirectory:ln,joinPath:un,getCacheKey:hn,getUriPath:dn,getRelativePath:fn}});var Ft=_((exports,module)=>{var chunk=null;try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){try{chunk=dynamicRequire("../chunks/utils-shared-chunk")}catch{}try{chunk||(chunk=dynamicRequire("./chunks/utils-shared-chunk"))}catch{}try{chunk||(chunk=dynamicRequire("../chunks/date-helpers-chunk"))}catch{}try{chunk||(chunk=dynamicRequire("./chunks/date-helpers-chunk"))}catch{}}}catch{}if(chunk&&(chunk.ensureDate||chunk.isDateLike||chunk.getCurrentTimestamp))module.exports={ensureDate:chunk.ensureDate,isDateLike:chunk.isDateLike,getCurrentTimestamp:chunk.getCurrentTimestamp};else{let e=function(){return typeof Date=="function"&&Date.now?Date.now():16409952e5},t=function(n){return!!(n&&typeof n=="object"&&typeof n.getTime=="function")},r=function(n){if(t(n))return n;if(typeof n=="number")return new Date(n);if(typeof n=="string"){let i=Date.parse(n);return isNaN(i)?new Date:new Date(i)}return new Date};getCurrentTimestamp=e,isDateLike=t,ensureDate=r,module.exports={ensureDate:r,isDateLike:t,getCurrentTimestamp:e}}var getCurrentTimestamp,isDateLike,ensureDate});var $e=_((ga,xt)=>{var C=require("vscode"),{isWebEnvironment:At}=J(),{normalizePath:gn}=ce(),{ExtensionError:mn,ERROR_CODES:pn,isPermissionError:yn}=Et(),{getEnvironmentContract:bn,normalizeStat:_n,FORCE_WORKSPACE_FS_ENV:En}=He(),Q;try{let e=K();e&&(Q=e.ensureDate)}catch{}Q||(Q=Ft().ensureDate);var Rt=typeof process<"u"&&process.env?process.env:{},Pt=Rt.VSCODE_WEB==="true"||At(),T=null;if(!Pt)try{T=require("fs").promises}catch{T=null}var _e=class{constructor(){this.isWeb=Pt||At()}q(t){try{return bn({uri:this._(t),isWeb:this.isWeb,remoteName:C.env?.remoteName,forceWorkspaceFs:Rt[En]==="1"}).filesystem==="workspace.fs"}catch{return!1}}x(t){if(!t)return"";if(typeof t=="string")return t;if(t&&typeof t=="object"&&typeof t.fsPath=="string")return t.fsPath;if(t&&typeof t=="object"&&typeof t.path=="string")return t.path;if(typeof t=="object"){if(typeof t.fsPath=="string")return t.fsPath;if(typeof t.path=="string")return t.path}return String(t)}_(t){if(t&&typeof t=="object"&&typeof t.scheme=="string"&&typeof t.path=="string")return t;if(typeof t=="string"){let r=t.trim(),n=/^[a-zA-Z]:[\\/]/.test(r);if(/^[a-zA-Z][a-zA-Z0-9+.-]*:/.test(r)&&!n){let a=C.Uri.parse(r);if(a.scheme&&a.scheme!=="file")return a}return C.Uri.file(t)}if(t&&typeof t=="object"){if(t.uri&&t.uri!==t)try{return this._(t.uri)}catch{}if(this.isWeb&&typeof t.scheme=="string"&&typeof t.path=="string")return C.Uri.from({scheme:t.scheme,authority:t.authority||"",path:t.path||"",query:t.query||"",fragment:t.fragment||""});if(typeof t.fsPath=="string"&&t.fsPath.length>0)return C.Uri.file(t.fsPath);if(typeof t.path=="string"&&t.path.length>0)return this.isWeb&&typeof t.scheme=="string"&&t.scheme!=="file"?C.Uri.from({scheme:t.scheme,authority:t.authority||"",path:t.path,query:t.query||"",fragment:t.fragment||""}):C.Uri.file(t.path);if(typeof t.href=="string"&&t.href.length>0)return C.Uri.parse(t.href);if(typeof t.scheme=="string")return C.Uri.from({scheme:t.scheme,authority:t.authority||"",path:t.path||t.fsPath||"",query:t.query||"",fragment:t.fragment||""});if(typeof t.toString=="function")try{let r=t.toString(!0);if(r&&r!=="[object Object]")return C.Uri.parse(r)}catch{let r=t.toString();if(r&&r!=="[object Object]")return C.Uri.parse(r)}}throw new Error(`Unsupported target type: ${typeof t}`)}async stat(t){let r=this.q(t);if(!this.isWeb&&T&&!r)return T.stat(this.x(t));let n=this._(t),i=await C.workspace.fs.stat(n),a=_n(i);return{...a,mtime:a.mtimeMs===null?Q(i.mtime):new Date(a.mtimeMs),ctime:a.ctimeMs===null?Q(i.ctime):new Date(a.ctimeMs),birthtime:a.ctimeMs===null?Q(i.ctime):new Date(a.ctimeMs),isFile:()=>i.type===C.FileType.File,isDirectory:()=>i.type===C.FileType.Directory}}async readFile(t,r="utf8"){let n=this.q(t);if(!this.isWeb&&T&&!n)return T.readFile(this.x(t),r);let i=this._(t),a=await C.workspace.fs.readFile(i);return r===null||r==="binary"?a:new TextDecoder(r).decode(a)}async writeFile(t,r,n="utf8"){let i=this.x(t);try{let a=this.q(t);if(!this.isWeb&&T&&!a)return T.writeFile(i,r,n);let o=this._(t),s=typeof r=="string"?new TextEncoder().encode(r):r;await C.workspace.fs.writeFile(o,s)}catch(a){this.ze("write file",i,a)}}async rename(t,r,n={overwrite:!1}){let i=this.x(t),a=this.x(r);try{let o=this.q(t)||this.q(r);if(!this.isWeb&&T&&!o)return T.rename(i,a);if(typeof C.workspace.fs.rename=="function")await C.workspace.fs.rename(this._(t),this._(r),n);else if(this._(t).scheme==="file"&&this._(r).scheme==="file")await(T||require("fs").promises).rename(i,a);else throw new Error("The active filesystem provider cannot rename report output.")}catch(o){this.ze("rename file",`${i} -> ${a}`,o)}}async mkdir(t,r={recursive:!0}){let n=this.x(t);try{let i=this.q(t);if(!this.isWeb&&T&&!i)return T.mkdir(n,r);let a=this._(t);await C.workspace.fs.createDirectory(a)}catch(i){this.ze("create directory",n,i)}}async readdir(t,r={withFileTypes:!1}){let n=this.q(t);if(!this.isWeb&&T&&!n)return T.readdir(this.x(t),r);let i=this._(t),a=await C.workspace.fs.readDirectory(i);return r.withFileTypes?a.map(([o,s])=>({name:o,isDirectory:()=>s===C.FileType.Directory,isFile:()=>s===C.FileType.File})):a.map(([o])=>o)}async delete(t,r={recursive:!1}){let n=this.q(t);if(!this.isWeb&&T&&!n){let a=this.x(t);return r.recursive?T.rm?T.rm(a,r):T.rmdir(a,r):T.unlink(a)}let i=this._(t);await C.workspace.fs.delete(i,r)}async exists(t){try{return await this.stat(t),!0}catch{return!1}}async ensureDirectory(t){let r=gn(this.x(t));await this.mkdir(r,{recursive:!0})}ze(t,r,n){throw yn(n)?new mn(pn.FILE_PERMISSION_DENIED,`Permission denied while attempting to ${t}`,{path:r,code:n.code}):n}},wn=new _e;xt.exports={FileSystemAdapter:_e,fileSystem:wn}});var I=_((ma,It)=>{var ee=typeof process<"u"&&process.env?process.env:{},kn=12e4,Dn=1e4,Cn=1440*60*1e3,Sn=2,Tn=["Ja","Fe","Mr","Ap","My","Jn","Jl","Au","Se","Oc","No","De"],vn=Number(ee.EXPLORER_DATES_DECORATION_POOL_SIZE||2048),Fn=Number(ee.EXPLORER_DATES_FLYWEIGHT_CACHE_SIZE||4096),An=Number(ee.EXPLORER_DATES_WORKSPACE_BALANCED_THRESHOLD||15e3),Rn=Number(ee.EXPLORER_DATES_WORKSPACE_LARGE_THRESHOLD||25e4),Mt=Number(ee.EXPLORER_DATES_WORKSPACE_EXTREME_THRESHOLD||4e5),Pn=Number(ee.EXPLORER_DATES_WORKSPACE_SCAN_MAX_RESULTS||Math.min(Mt+1,50001)),xn={ADVANCED_CACHE:"explorerDates.advancedCache",ADVANCED_CACHE_METADATA:"explorerDates.advancedCacheMetadata",TEMPLATE_STORE:"explorerDates.templates",WEB_GIT_NOTICE:"explorerDates.webGitNotice"},Mn="explorerDatesChunks",In="__explorerDatesChunks";It.exports={DEFAULT_CACHE_TIMEOUT:kn,DEFAULT_MAX_CACHE_SIZE:Dn,DEFAULT_PERSISTENT_CACHE_TTL:Cn,DEFAULT_DECORATION_POOL_SIZE:vn,DEFAULT_FLYWEIGHT_CACHE_SIZE:Fn,MAX_BADGE_LENGTH:Sn,MONTH_ABBREVIATIONS:Tn,WORKSPACE_SCALE_BALANCED_THRESHOLD:An,WORKSPACE_SCALE_LARGE_THRESHOLD:Rn,WORKSPACE_SCALE_EXTREME_THRESHOLD:Mt,WORKSPACE_SCAN_MAX_RESULTS:Pn,GLOBAL_STATE_KEYS:xn,WEB_CHUNK_GLOBAL_KEY:Mn,LEGACY_WEB_CHUNK_GLOBAL_KEY:In}});var Be=_((pa,Lt)=>{var{MAX_BADGE_LENGTH:Wt}=I();function Wn(e=0,t="auto"){let r=typeof e=="number"&&!Number.isNaN(e)?e:0;if(t==="bytes")return`~${r}B`;let n=r/1024;if(t==="kb")return`~${n.toFixed(1)}K`;let i=n/1024;return t==="mb"?`~${i.toFixed(1)}M`:r<1024?`~${r}B`:n<1024?`~${Math.round(n)}K`:`~${i.toFixed(1)}M`}function Ln(e){if(e)return e.length>Wt?e.substring(0,Wt):e}Lt.exports={formatFileSize:Wn,trimBadge:Ln}});var q=_((ya,Ot)=>{var te="__explorerDatesLogger",re=class{constructor(){this.we=null}ke(t,r){if(this.we&&typeof this.we[t]=="function")try{return this.we[t](...r)}catch{}switch(t){case"debug":break;case"info":break;case"warn":break;case"error":break;default:break}}debug(...t){return this.ke("debug",t)}info(...t){return this.ke("info",t)}warn(...t){return this.ke("warn",t)}error(...t){return this.ke("error",t)}Zr(t){this.we=t}};function On(){return typeof global<"u"?(global[te]||(global[te]=new re),global[te]):typeof globalThis<"u"?(globalThis[te]||(globalThis[te]=new re),globalThis[te]):(Ke||(Ke=new re),Ke)}var je=class extends re{},Ke=null;Ot.exports={Logger:je,getLogger:On}});var Ve=_((exports,module)=>{var{getLogger}=q(),env=typeof process<"u"&&process.env?process.env:{};function createFallbackVscodeMinimal(){return{workspace:{workspaceFolders:[],getConfiguration:()=>({get:()=>{},async update(){},inspect:()=>({defaultValue:void 0,globalValue:void 0,workspaceValue:void 0,workspaceFolderValue:void 0})})},ConfigurationTarget:{Global:1,Workspace:2,WorkspaceFolder:3}}}function resolveVscodeMinimal(){try{return require("vscode")}catch{return createFallbackVscodeMinimal()}}var MinimalSettingsCoordinator=class{constructor(t={}){this.qt=t.defaultSection||"explorerDates",this.De=new Map,this.dt=new Map,this.Jr=Number(env.EXPLORER_DATES_LOCK_WAIT_WARN_MS||1e3),this._logger=getLogger()}zt(t,r){let i=(this.De.get(t)||Promise.resolve()).then(()=>r()),a=i.catch(()=>{});return this.De.set(t,a),i.finally(()=>{this.De.get(t)===a&&this.De.delete(t)}),i}Ue(t,r){return resolveVscodeMinimal().workspace.getConfiguration(t||void 0,r)}se(t,r){let n=r||this.qt;return n?t.startsWith(`${n}.`)?{section:n,key:t.slice(n.length+1),fullKey:t}:t.includes(".")?{section:void 0,key:t,fullKey:t}:{section:n,key:t,fullKey:`${n}.${t}`}:{section:void 0,key:t,fullKey:t}}async updateSetting(t,r,n={}){return this.zt(this.se(t,n.section).fullKey,async()=>{let i=this.se(t,n.section),a=this.Ue(i.section,n.resource);try{let o=this.Ut(n.scope,n.resource);return await a.update(i.key,r,o),{key:i.fullKey,updated:!0}}catch(o){try{this._logger.warn(`Configuration update failed for ${i.fullKey}: ${o&&o.message}`)}catch{}return{key:i.fullKey,updated:!1,error:o}}})}async applySettings(t,r={}){let n=Array.isArray(t)?t:Object.entries(t).map(([o,s])=>({key:o,value:s})),i=[];for(let o of n)try{i.push(await this.updateSetting(o.key,o.value,r))}catch(s){i.push({key:this.se(o.key,r.section).fullKey,updated:!1,error:s})}let a=i.filter(o=>o&&o.error);if(a.length>0){let o=a.map(c=>`${c.key}: ${c.error&&c.error.message?c.error.message:String(c.error)}`),s=new Error(`Failed to apply ${a.length} setting(s): ${o.join("; ")}`);throw s.details=a,s}return i}Ut(t,r){return t&&t!=="auto"?this.Ht(t)||resolveVscodeMinimal().ConfigurationTarget.Workspace:r?resolveVscodeMinimal().ConfigurationTarget.WorkspaceFolder:resolveVscodeMinimal().workspace.workspaceFolders&&resolveVscodeMinimal().workspace.workspaceFolders.length>0?resolveVscodeMinimal().ConfigurationTarget.Workspace:resolveVscodeMinimal().ConfigurationTarget.Global}Ht(t){switch(t){case"user":return resolveVscodeMinimal().ConfigurationTarget.Global;case"workspace":return resolveVscodeMinimal().ConfigurationTarget.Workspace;case"workspaceFolder":return resolveVscodeMinimal().ConfigurationTarget.WorkspaceFolder;default:return}}getValue(t,r={}){let{section:n,resource:i}=r||{},a=this.se(t,n);return this.Ue(a.section,i).get(a.key)}inspect(t,r={}){let{section:n,resource:i}=r||{},a=this.se(t,n);return this.Ue(a.section,i).inspect(a.key)}async clearSetting(t,r={}){return this.updateSetting(t,void 0,r)}getLockWaitStats(){let t={};for(let[r,n]of this.dt.entries())t[r]={...n};return t}resetLockWaitStats(){this.dt.clear()}},cachedCoordinator=null;function getSettingsCoordinator(options){if(!cachedCoordinator||options&&options.forceNew){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=null;try{e=dynamicRequire("../chunks/settings-coordinator-impl-chunk")}catch{}try{e||(e=dynamicRequire("../chunks/settingsCoordinator-impl-chunk"))}catch{}if(e&&typeof e.createSettingsCoordinatorImpl=="function")return cachedCoordinator=e.createSettingsCoordinatorImpl(options),cachedCoordinator}}catch{}try{let{WEB_CHUNK_GLOBAL_KEY:e,LEGACY_WEB_CHUNK_GLOBAL_KEY:t}=I(),r=typeof globalThis<"u"&&(globalThis[e]||globalThis[t])||null;if(r&&r.settingsCoordinatorImpl&&typeof r.settingsCoordinatorImpl.createSettingsCoordinatorImpl=="function")return cachedCoordinator=r.settingsCoordinatorImpl.createSettingsCoordinatorImpl(options),cachedCoordinator}catch{}cachedCoordinator=new MinimalSettingsCoordinator(options)}return cachedCoordinator}module.exports={getSettingsCoordinator,MinimalSettingsCoordinator}});var Ze=_((ba,Ut)=>{var{normalizePath:Ge,getUriPath:Nn}=ce(),{getLogger:qn}=q(),le=typeof process<"u"&&process.env?process.env:{},zn=qn(),ue=240,Xe=255,Nt=/[\x00-\x1f\x7f<>:"|?*]/g,Un=/[\x00-\x1f\x7f<>:"|?*]/,Hn=[/\.\./,/\.\.[\\/]/,/[\\/]\.\./,/^\.\.$/,/^\.\.[\\/]/,/[\\/]\.\.$/],qt=new Set(["CON","PRN","AUX","NUL","COM1","COM2","COM3","COM4","COM5","COM6","COM7","COM8","COM9","LPT1","LPT2","LPT3","LPT4","LPT5","LPT6","LPT7","LPT8","LPT9"]),zt=new Set([".exe",".scr",".bat",".cmd",".pif",".vbs",".js",".jar",".com",".msi",".dll",".dmg",".pkg",".deb",".rpm"]),$n=new Set([".js",".jsx",".ts",".tsx",".mjs",".cjs",".py",".rb",".rs",".go",".php",".java",".kt",".swift",".cs",".c",".cpp",".h",".hpp",".html",".css",".scss",".less",".json",".jsonc",".md",".mdx",".txt",".sh",".bash",".yml",".yaml"]),Bn=()=>le.EXPLORER_DATES_TEST_MODE==="1"||le.NODE_ENV==="test"||le.VSCODE_TEST==="1"?"test":le.EXPLORER_DATES_DEV_MODE==="1"||le.NODE_ENV==="development"?"development":"production",ne=class{static hasPathTraversal(t){let r=this.V(t);if(!r||typeof r!="string")return!1;let n=Ge(r);return Hn.some(i=>i.test(n))}static hasDangerousChars(t){let r=this.V(t);return!r||typeof r!="string"?!1:Un.test(r)}static isWindowsReservedName(t){if(!t||typeof t!="string")return!1;let r=t.split(".")[0].toUpperCase();return qt.has(r)}static isSuspiciousExtension(t,r={}){let{workspaceContext:n=!0}=r;if(!t||typeof t!="string")return!1;let i=t.toLowerCase(),a=i.startsWith(".")?i:`.${i}`;return n&&$n.has(a)?!1:zt.has(a)}static isPathTooLong(t){let r=this.V(t);return!r||typeof r!="string"?!1:r.length>ue}static isFilenameTooLong(t){return!t||typeof t!="string"?!1:t.length>Xe}static validatePath(t,r={}){let{allowSuspiciousExtensions:n=!1,allowWindowsReservedNames:i=!1,strictLength:a=!0,workspaceContext:o=!0}=r,s=this.V(t),c=[],u=[];if(!s||typeof s!="string")return{isValid:!1,path:s,issues:["Invalid or empty path"],warnings:[],isSafe:!1};this.hasPathTraversal(s)&&c.push("Path contains directory traversal attempts"),this.hasDangerousChars(s)&&c.push("Path contains dangerous characters"),a&&this.isPathTooLong(s)&&c.push(`Path exceeds maximum length (${ue})`);let l=s.split(/[/\\]/).pop()||"";a&&this.isFilenameTooLong(l)&&c.push(`Filename exceeds maximum length (${Xe})`),!i&&this.isWindowsReservedName(l)&&u.push("Filename is a Windows reserved name");let d=l.includes(".")?l.split(".").pop():"";return!n&&this.isSuspiciousExtension(d,{workspaceContext:o})&&u.push("File extension is potentially suspicious"),{isValid:c.length===0,path:s,filename:l,extension:d,issues:c,warnings:u,isSafe:c.length===0&&u.length===0}}static sanitizePath(t,r={}){let{replacementChar:n="_",preserveExtension:i=!0}=r,a=this.V(t);if(!a||typeof a!="string")return"";a=a.replace(/\x00/g,"");let o=a.startsWith("/"),s=Ge(a).split("/").filter(Boolean),c=[];for(let u of s){if(u===".."){c.length>0&&c.pop();continue}u!=="."&&c.push(u)}if(a=(o?"/":"")+c.join("/"),a=a.replace(Nt,n),i){let u=a.split("/"),l=u[u.length-1];if(l&&this.isWindowsReservedName(l)){let d=l.split(".");d[0]=d[0]+"_safe",u[u.length-1]=d.join("."),a=u.join("/")}}return a.length>ue&&(a=a.substring(0,ue),zn.warn("Path truncated due to length:",a)),a}static isWithinBoundaries(t,r=[]){let n=this.V(t);if(!n||!Array.isArray(r)||r.length===0)return!1;let i=n.split("/").filter(Boolean),a=[];for(let s of i)s===".."?a.length>0&&a.pop():s!=="."&&a.push(s);let o="/"+a.join("/");return r.some(s=>{let c=Ge(s);return o.startsWith(c)})}static validateRegexPattern(t){if(!t||typeof t!="string")return{isValid:!1,issue:"Invalid pattern"};let r=[/\([^)]*\+[^)]*\)\+/,/\([^)]*\*[^)]*\)\*/,/\([^)]*\+[^)]*\)\*/,/\([^)]*\*[^)]*\)\+/,/\+.*\*|{\d+,}.*\*/,/\([^|]*\|[^)]*\)\*/];for(let n of r)if(n.test(t))return{isValid:!1,issue:"Pattern may cause catastrophic backtracking (ReDoS)"};try{return new RegExp(t),{isValid:!0}}catch(n){return{isValid:!1,issue:`Invalid regex syntax: ${n.message}`}}}static V(t){if(!t)return"";if(typeof t=="string")return t;try{return Nn(t)}catch{return String(t)}}},Ye=class{static validateFileUri(t,r=[]){if(!t||typeof t!="object")return{isValid:!1,issue:"Invalid URI object"};if(t.scheme!=="file"&&t.scheme!=="vscode-vfs")return{isValid:!1,issue:`Unsupported URI scheme: ${t.scheme}`};let n=ne.validatePath(t);return n.isValid?r.length>0&&!ne.isWithinBoundaries(t,r)?{isValid:!1,issue:"Path is outside allowed workspace boundaries"}:{isValid:!0,warnings:n.warnings}:{isValid:!1,issue:`Path validation failed: ${n.issues.join(", ")}`}}static validateExclusionPatterns(t){if(!Array.isArray(t))return{isValid:!1,issue:"Patterns must be an array"};let r=[],n=[];for(let i of t){if(typeof i!="string"){n.push(`Invalid pattern type: ${typeof i}`);continue}let a=i.replace(/\./g,"\\.").replace(/\*/g,".*").replace(/\?/g,"."),o=ne.validateRegexPattern(a);r.push({pattern:i,isValid:o.isValid,issue:o.issue}),o.isValid||n.push(`Pattern "${i}": ${o.issue}`)}return{isValid:n.length===0,results:r,issues:n}}};Ut.exports={SecurityValidator:ne,SecureFileOperations:Ye,detectSecurityEnvironment:Bn,MAX_SAFE_PATH_LENGTH:ue,MAX_SAFE_FILENAME_LENGTH:Xe,DANGEROUS_PATH_CHARS:Nt,WINDOWS_RESERVED_NAMES:Array.from(qt),SUSPICIOUS_EXTENSIONS:Array.from(zt)}});var he=_((_a,Kt)=>{var $t=typeof process<"u"&&process.env?process.env:{},Ht="[ExplorerDates][WebDiag]",Je="__explorerDatesWebDiagnostics",Ee;function Kn(){try{let e=require("vscode");return e?.env?.uiKind===e?.UIKind?.Web}catch{return $t.VSCODE_WEB==="true"}}function P(){return Ee!==void 0||(Ee=$t.EXPLORER_DATES_WEB_DIAG==="1"||Kn()),Ee}function Bt(){return{enabled:P(),logs:[],logOnce:new Set,commandsRegistered:new Set,commandsInvoked:[],errors:[],chunkLoads:[],provider:{created:!1,registered:!1,hydrated:!1,decorationCalls:0,refreshCalls:0,lastEvent:null}}}var jn=Bt();function x(){return typeof globalThis<"u"?(globalThis[Je]||(globalThis[Je]=Bt()),globalThis[Je]):jn}function Vn(e){try{return JSON.stringify(e)}catch{return String(e)}}function W(e,t,r){if(!P())return;let n=x(),i={ts:new Date().toISOString(),level:e,message:t,meta:r||null};n.logs.push(i),n.logs.length>400&&n.logs.shift();let a=r?`${Ht} ${t} ${Vn(r)}`:`${Ht} ${t}`,o=console[e]||console.info;try{o(a)}catch{}}function Gn(e,t,r,n){if(!P())return;let i=x();i.logOnce.has(e)||(i.logOnce.add(e),W(t,r,n))}function Xn(e){if(!P())return;x().commandsRegistered.add(e),W("info","Command registered",{commandId:e})}function Yn(e){if(!P())return;x().commandsInvoked.push({commandId:e,ts:Date.now()}),W("info","Command invoked",{commandId:e})}function Zn(e,t,r){P()&&(t?W("info","Command completed",{commandId:e}):(W("error","Command failed",{commandId:e,error:r?.message,stack:r?.stack}),x().errors.push({commandId:e,error:r?.message,stack:r?.stack})))}function Jn(e,t,r){if(!P())return;x().chunkLoads.push({chunkName:e,stage:t,ts:Date.now(),error:r?r.message||String(r):null}),W(r?"warn":"info",`Chunk ${t}`,{chunkName:e,error:r?.message})}function Qn(e,t){if(!P())return;let r=x();r.provider.lastEvent={event:e,ts:Date.now(),meta:t||null},e==="created"&&(r.provider.created=!0),e==="registered"&&(r.provider.registered=!0),e==="hydrated"&&(r.provider.hydrated=!0),W("info",`Provider ${e}`,t)}function ei(){if(!P())return;let e=x();e.provider.decorationCalls+=1,e.provider.decorationCalls<=3&&W("info","Decoration request observed",{count:e.provider.decorationCalls})}function ti(){if(!P())return;let e=x();e.provider.refreshCalls+=1}Kt.exports={isWebDiagnosticsEnabled:P,getWebDiagnosticsState:x,diagLog:W,diagLogOnce:Gn,recordCommandRegistration:Xn,recordCommandInvocation:Yn,recordCommandResult:Zn,recordChunkEvent:Jn,recordProviderEvent:Qn,recordDecorationCall:ei,recordRefreshCall:ti}});var nt=_((Ea,Jt)=>{var we=require("vscode"),{normalizePath:tt,getRelativePath:ri}=ce(),{diagLogOnce:ni}=he(),{normalizeTimestamp:de,resourceIdentity:ii}=He(),ai={unknown:0,github:1,git:2,fs:3},et={low:1,medium:2,high:3};function L(e,t,r){try{return e?.get?e.get(t,r):r}catch{return r}}function oi(e){return{nowMinutes:Number(L(e,"freshnessBucketMinutesNow",60))||60,todayHours:Number(L(e,"freshnessBucketHoursToday",24))||24,twoDays:Number(L(e,"freshnessBucketDaysTwo",2))||2,oneWeek:Number(L(e,"freshnessBucketDaysWeek",7))||7}}function jt(e,t){if(!Number.isFinite(e)||e<0)return"unknown";let r=t.nowMinutes*60*1e3,n=t.todayHours*60*60*1e3,i=t.twoDays*24*60*60*1e3,a=t.oneWeek*24*60*60*1e3;return e<=r?"now":e<=n?"today":e<=i?"2d":e<=a?"1w":"stale"}function Vt(e){switch(e){case"now":return"now";case"today":return"today";case"2d":return"2d";case"1w":return"1w";case"stale":return"stale";default:return"unknown"}}function Gt(e){switch(e){case"fs":return"Filesystem";case"git":return"Git";case"github":return"GitHub";default:return"Unknown"}}function Xt(e){switch(e){case"now":return"!!";case"today":return"T";case"2d":return"2d";case"1w":return"1w";case"stale":return"~~";default:return"?"}}function si(e,t,r){let n=!!L(r,"freshnessShowUnknown",!0);if(e==="unknown"||t==="unknown")return n?"?":null;let i=Xt(e);return!i||i==="unknown"?n?"?":null:i}function ci(e){try{let t=de(e);return t===null?null:new Date(t).toISOString().replace("T"," ").replace("Z","")}catch{return null}}function li(e,t){if(!e)return;let r=L(t,"freshnessTooltipVerbosity","full"),n=L(t,"badge.sourceLabelMode","auto"),i=[],a=Vt(e.bucket),o=Gt(e.source);if(i.push(`Freshness: ${a}`),e.exactTimestamp){let u=ci(e.exactTimestamp);u&&i.push(`Exact time: ${u}`)}let s=e.source==="fs"&&e.confidence==="high";return(n==="always"||n!=="never"&&!s||n!=="never"&&r==="full")&&i.push(`Source: ${o}`),e.author&&i.push(`Author: ${e.author}`),e.message&&i.push(`Message: ${e.message}`),i.push(`Confidence: ${e.confidence}`),e.reason&&r==="full"&&i.push(`Reason: ${e.reason}`),i.join(` -`)}function ui(e,t,r){if(!Number.isFinite(t)||t<=0)return!1;let n=300*1e3;if(t>r+n)return!1;if(e==="file")return!0;let i=r-t,a=300*1e3,o=365*24*60*60*1e3*10;return!(io)}function rt({source:e,timestampMs:t,author:r,message:n,confidence:i,reason:a},o){if(!Number.isFinite(t))return{bucket:"unknown",source:e||"unknown",confidence:i||"low",reason:a||"no-timestamp"};let s=oi(o),c=Date.now()-t;return{bucket:jt(c,s),source:e,exactTimestamp:t,author:r||void 0,message:n||void 0,confidence:i,reason:a||void 0}}async function hi(e,t,r){let n=e?.scheme||"file",i=!!L(r,"freshnessAllowVirtualFs",!1);if(n!=="file"&&!i)return{freshness:null,reason:"fs-virtual-disabled"};let a=t?.mtimeMs??de(t?.mtime),o=Date.now();return Number.isFinite(a)?ui(n,a,o)?{freshness:rt({source:"fs",timestampMs:a,confidence:n==="file"?"high":"medium",reason:n==="file"?"fs-trust-high":"fs-trust-medium"},r),reason:null}:{freshness:null,reason:"fs-mtime-untrusted"}:{freshness:null,reason:"fs-mtime-missing"}}async function di(e,t,r){if(!t||typeof t.He!="function")return{freshness:null,reason:"git-provider-missing"};let n;try{n=await t.He(e)}catch(o){return{freshness:null,reason:`git-error:${o?.message||"unknown"}`}}let i=de(n?.timestampMs);return i===null||i<=0?{freshness:null,reason:n?.error||"git-no-timestamp"}:{freshness:rt({source:"git",timestampMs:i,author:n?.author||void 0,message:n?.message||void 0,confidence:"medium",reason:"git-recency"},r),reason:null}}function Yt(e){if(!e||(e.scheme||"")!=="github")return null;let n=tt(e.path||"").replace(/^\/+/,"").split("/").filter(Boolean);if(n.length<2)return null;let i=n[0],a=n[1],o=n.slice(2).join("/"),s=new URLSearchParams(e.query||""),c=s.get("ref")||s.get("branch")||"HEAD";return{owner:i,repo:a,filePath:o,ref:c}}function fi(e){let t=(e||"").indexOf("+");if(t===-1)return"HEAD";let r=e.slice(t+1);try{let n;if(typeof TextDecoder<"u"){let o=new Uint8Array(r.length/2);for(let s=0;s0)return a}catch{}return"HEAD"}function Zt(e){if(!e||e.scheme!=="vscode-vfs"||!String(e.authority||"").startsWith("github"))return null;let r=tt(e.path||"").replace(/^\/+/,"").split("/").filter(Boolean);if(r.length<2)return null;let n=r[0],i=r[1],a=r.slice(2).join("/"),o=fi(e.authority||"");return{owner:n,repo:i,filePath:a,ref:o}}function gi(e){try{let t=we.workspace.workspaceFolders||[];for(let r of t){let n=r?.uri?.scheme;if(n==="github"){let i=Yt(r.uri);if(!i)continue;let a=ri(r.uri.path||"",e?.path||"");return{...i,filePath:a}}if(n==="vscode-vfs"&&String(r?.uri?.authority||"").startsWith("github")){let i=Zt(r.uri);if(!i)continue;let o=tt(e?.path||"").replace(/^\/+/,"").split("/").filter(Boolean).slice(2).join("/");if(!o)continue;return{...i,filePath:o}}}}catch{}return null}async function mi(e,t){let r=Yt(e)||Zt(e)||gi(e);if(!r||!r.owner||!r.repo||!r.filePath)return{freshness:null,reason:"github-context-missing"};let n=`${r.owner}/${r.repo}@${r.ref}:${r.filePath}`,i=`https://api.github.com/repos/${r.owner}/${r.repo}/commits?path=${encodeURIComponent(r.filePath)}&sha=${encodeURIComponent(r.ref)}&per_page=1`,a={Accept:"application/vnd.github+json"};try{let y=we?.authentication&&typeof we.authentication.getSession=="function"?await we.authentication.getSession("github",["repo"],{createIfNone:!1}):null;y?.accessToken&&(a.Authorization=`Bearer ${y.accessToken}`)}catch{}if(typeof fetch!="function")return{freshness:null,reason:"github-fetch-unavailable"};let o;try{o=await fetch(i,{headers:a})}catch(y){return{freshness:null,reason:`github-fetch-error:${y?.message||"unknown"}`}}if(!o||!o.ok)return{freshness:null,reason:o?`github-http-${o.status}`:"github-no-response"};let s;try{s=await o.json()}catch{return{freshness:null,reason:"github-json-error"}}let c=Array.isArray(s)?s[0]:null,u=c?.commit||null,l=u?.author?.name||c?.author?.login||void 0,d=u?.message||void 0,h=de(u?.author?.date);return h===null?{freshness:null,reason:"github-no-timestamp"}:{freshness:rt({source:"github",timestampMs:h,author:l,message:d,confidence:"medium",reason:"github-commit"},t),reason:null,cacheKey:n}}function Qe(e,t){return!e||e==="auto"?!0:e==="unknown"?t==="unknown":e===t}async function pi({uri:e,stat:t,provider:r,config:n,workspaceKind:i}){let a=e?.scheme||"file",o=L(n,"freshnessSourcePolicy","auto"),s=[],c=Date.now();if(Qe(o,"fs")){let u=await hi(e,t,n);if(s.push({source:"fs",reason:u.reason||null}),u.freshness)return{...u.freshness,attempts:s}}if(Qe(o,"git")){let u=await di(e,r,n);if(s.push({source:"git",reason:u.reason||null}),u.freshness)return{...u.freshness,attempts:s}}if(Qe(o,"github")){let u=await mi(e,n);if(s.push({source:"github",reason:u.reason||null,cacheKey:u.cacheKey||null}),u.freshness)return{...u.freshness,attempts:s}}return ni("freshness-unknown","info","No trustworthy freshness source available",{scheme:a,workspaceKind:i||"unknown",attempts:s}),{bucket:"unknown",source:"unknown",confidence:"low",reason:"no-source",attempts:s,resolvedAt:c}}function yi(e,t){if(!e)return-1;if(!t)return 1;let r=et[e.confidence]||0,n=et[t.confidence]||0;if(r!==n)return r-n;let i=Number(e.exactTimestamp||0),a=Number(t.exactTimestamp||0);return i-a}Jt.exports={resolveFreshness:pi,formatBadge:si,formatTooltip:li,bucketFromAge:jt,formatBucketLabel:Vt,formatBadgeAge:Xt,formatSourceLabel:Gt,compareFreshness:yi,SOURCE_RANK:ai,CONFIDENCE_RANK:et,normalizeTimestamp:de,resourceIdentity:ii}});var er=_((wa,Qt)=>{var{normalizePath:bi}=ce(),ke="__root__",it=class{constructor(){this.g=new Map,this.M=new Map,this.o=0}get size(){return this.o}get bucketCount(){return this.g.size}clear(){this.g.clear(),this.M.clear(),this.o=0}get(t){if(!t)return;let r=this.M.get(t);if(!r)return;let n=this.g.get(r);if(!n){this.M.delete(t);return}return n.lastAccess=Date.now(),n.entries.get(t)}set(t,r,n={}){if(!t)return;let i=n.folderKey||this.$t(t),a=this.Bt(i),o=a.entries.has(t);a.entries.set(t,r),a.lastAccess=Date.now(),o||this.o++,this.M.set(t,i)}delete(t){if(!t)return!1;let r=this.M.get(t);if(!r)return!1;let n=this.g.get(r);if(!n)return this.M.delete(t),!1;let i=n.entries.delete(t);return i&&(this.o=Math.max(0,this.o-1),n.entries.size===0&&this.g.delete(r)),this.M.delete(t),i}*entries(){for(let t of this.g.values())yield*t.entries.entries()}*keys(){for(let t of this.g.values())yield*t.entries.keys()}*values(){for(let t of this.g.values())yield*t.entries.values()}[Symbol.iterator](){return this.entries()}enforceLimit(t=0,r){if(!t||this.o<=t)return 0;let n=Math.max(Math.floor(t*.2),this.o-t,1),i=0,a=Array.from(this.g.entries()).map(([o,s])=>({folderKey:o,bucket:s}));a.sort((o,s)=>(o.bucket.lastAccess||0)-(s.bucket.lastAccess||0));for(let{folderKey:o,bucket:s}of a){if(i>=n)break;if(!s.entries.size){this.g.delete(o);continue}let c=s.entries.size,u=n-i;if(c<=u){i+=this.Kt(o,s);continue}let l=Array.from(s.entries.entries());l.sort((h,g)=>(h[1].timestamp||0)-(g[1].timestamp||0));let d=Math.min(u,Math.max(1,Math.ceil(c*.5)));for(let h=0;h0&&r&&r.debug(`Hierarchical cache eviction removed ${i} entries (${this.o} remaining)`),i}Bt(t){return this.g.has(t)||this.g.set(t,{entries:new Map,lastAccess:Date.now()}),this.g.get(t)}Kt(t,r){if(!r)return 0;let n=r.entries.size;for(let i of r.entries.keys())this.M.delete(i);return this.g.delete(t),this.o=Math.max(0,this.o-n),n}$t(t){if(!t||typeof t!="string")return ke;let r=bi(t);if(!r)return ke;let n=r.lastIndexOf("/");return n===-1?ke:r.slice(0,n)||ke}};Qt.exports={HierarchicalDecorationCache:it}});var rr=_((ka,tr)=>{async function _i(e,t,r){try{if(e.G)return e._logger?.debug?.(`\u26A0\uFE0F Cache bypass enabled - recalculating decoration for: ${r}`),null;if(e._advancedCache)try{let i=await e._advancedCache.get(t);if(i)return e._metrics.cacheHits++,e._logger?.debug?.(`\u{1F9E0} Advanced cache hit for: ${r}`),i}catch(i){e._logger?.debug?.(`Advanced cache error: ${i.message}`)}if(!e.e||typeof e.e.get!="function")return e._logger?.debug?.("getCachedDecoration: no memory cache available, falling back"),null;let n=e.e.get(t);if(n){if(n.forceRefresh){try{e.e.delete(t)}catch{}e._logger?.debug?.(`\u{1F6AB} Memory cache bypassed (forced refresh) for: ${r}`)}else if(Date.now()-n.timestampe.l)try{e.e.enforceLimit(e.l,e._logger)}catch{}let a={decoration:r,timestamp:Date.now()};i&&(a.uri=i);try{e.e.set(t,a)}catch{}try{typeof e.ce=="function"&&e.ce()}catch(o){e._logger?.debug?.("monitorCachePressure from store failed",o)}if(e._advancedCache)try{await e._advancedCache.set(t,r,{ttl:e.S}),e._logger?.debug?.(`\u{1F9E0} Stored in advanced cache: ${n}`)}catch(o){e._logger?.debug?.(`Failed to store in advanced cache: ${o.message}`)}try{typeof e.le=="function"&&e.le()}catch(o){e._logger?.debug?.("maybeExtendCacheTimeout from store failed",o)}}catch(a){e._logger?.debug?.("storeDecorationInCache failed",a)}}function wi(){class e{constructor(){this.r=null,this.n=new Map,this.o=0,this.$e=!1,this.hydrateInBackground()}get size(){return this.r?this.r.size:this.o}get bucketCount(){return this.r?this.r.bucketCount:0}clear(){if(this.r)return this.r.clear();this.n.clear(),this.o=0}get(r){return this.r?this.r.get(r):this.n.get(r)}set(r,n,i={}){if(this.r)return this.r.set(r,n,i);let a=this.n.has(r);this.n.set(r,n),a||this.o++}delete(r){if(this.r)return this.r.delete(r);let n=this.n.delete(r);return n&&(this.o=Math.max(0,this.o-1)),n}*entries(){if(this.r){yield*this.r.entries();return}yield*this.n.entries()}*keys(){if(this.r){yield*this.r.keys();return}yield*this.n.keys()}*values(){if(this.r){yield*this.r.values();return}yield*this.n.values()}[Symbol.iterator](){return this.entries()}enforceLimit(r=0,n){if(this.r)return this.r.enforceLimit(r,n);if(!r||this.o<=r)return 0;let i=0,o=Array.from(this.n.keys()).slice(0,Math.max(1,Math.ceil(this.o-r)));for(let s of o)this.n.delete(s),i++,this.o=Math.max(0,this.o-1);return i>0&&n&&n.debug(`LazyHierarchical cache eviction removed ${i} entries`),i}async jt(){if(!this.$e){this.$e=!0;try{let n=(await Promise.resolve().then(()=>R(er()))).HierarchicalDecorationCache;this.r=new n;for(let[i,a]of this.n.entries())this.r.set(i,a);this.n=null}catch{this.$e=!1}}}hydrateInBackground(){this.jt().catch(()=>{})}}return new e}tr.exports={getCachedDecoration:_i,storeDecorationInCache:Ei,createLazyHierarchicalDecorationCache:wi}});var nr=_((Da,ki)=>{ki.exports={migrationDetailsTitle:"Explorer Dates - Settings Migration",migrationDetailsHeader:"Settings Migration",gitAttributionWarning:"Explorer Dates: Git attribution badges are unavailable on VS Code for Web. Time-based decorations remain available.",noOverridesToDocument:"No overrides to document.",overrideNotesHeader:"# Explorer Dates Override Notes\\n\\n",analysisCommandsDisabled:"Explorer Dates analysis commands are disabled. Shortcuts like Ctrl+Shift+M/H/A will not work until you enable explorerDates.enableAnalysisCommands.",analysisEnableNow:"Enable Now",analysisEnablePartially:"Enable partially succeeded. Update explorerDates.enableAnalysisCommands in remaining workspace folders manually.",analysisEnableFailed:"Enable failed: update explorerDates.enableAnalysisCommands in workspace settings.",workspaceTemplatesDisabled:"Workspace templates are disabled. Enable explorerDates.enableWorkspaceTemplates to use this command.",workspaceTemplatesDisabledSave:"Workspace templates are disabled. Enable explorerDates.enableWorkspaceTemplates to save templates.",enterTemplateName:"Enter template name",enterTemplateDescription:"Enter description (optional)",failedToOpenTemplateManager:"Failed to open template manager: {0}",failedToSaveTemplate:"Failed to save template: {0}",reportingDisabled:"Reporting features are disabled. Enable explorerDates.enableExportReporting to generate reports.",failedToGenerateReport:"Failed to generate report: {0}",apiDisabled:"Explorer Dates API is disabled via settings.",failedToShowApiInformation:"Failed to show API information: {0}",failedToShowWorkspaceActivity:"Failed to show workspace activity: {0}",failedToShowPerformanceAnalytics:"Failed to show performance analytics: {0}",failedToShowCacheDebugInfo:"Failed to show cache debug info: {0}",noWorkspaceFolderOpen:"No workspace folder open",now:"now",minutes:"m",hours:"h",days:"d",weeks:"w",months:"mo",years:"y",justNow:"just now",minutesAgo:"{0} minute(s) ago",hoursAgo:"{0} hour(s) ago",daysAgo:"{0} day(s) ago",lastModified:"Last modified",refreshSuccess:"Date decorations refreshed",activationError:"Explorer Dates failed to activate",errorAccessingFile:"Error accessing file for decoration",clearTelemetryPrompt:"This will permanently delete locally-stored telemetry events for Explorer Dates. This action cannot be undone. Proceed?",clearTelemetryConfirm:"Clear Telemetry",clearTelemetryCancel:"Cancel",reportFormatDisabled:'Report format "{0}" is disabled. Allowed formats: {1}',reportDownloadTriggered:"Report download triggered in browser",selectReportTimeRangePlaceholder:"Select report time range",selectReportFormatPlaceholder:"Select report format",cleanupNoDeprecated:"\u2139\uFE0F No deprecated settings found to clean up.",showMigrationHistoryNoHistory:"No migration history found.",resetConfirmation:"This will reset all Explorer Dates settings to their default values. Are you sure?",resetConfirm:"Reset Settings",resetCancel:"Cancel",resetSuccess:"\u2705 Reset {0} settings to defaults.",validateNoIssues:"\u2705 Configuration is valid - no issues found!",validateFoundIssues:"Found {0} configuration issue(s). Would you like to see details?",validateShowDetails:"Show Details",validateDismiss:"Dismiss",migrationNotificationMessage:"Explorer Dates updated {0} setting(s) for compatibility. Your configuration has been preserved.",migrationViewChanges:"View Changes",migrationOpenSettings:"Open Settings",deprecatedPrompt:"Explorer Dates found {0} deprecated setting(s). Would you like to remove them?",deprecatedClean:"Clean Up Now",deprecatedKeep:"Keep Old Settings",deprecatedAskLater:"Ask Later",showFileLocation:"Show File Location",teamConfigCorrupted:"Explorer Dates team configuration file appears to be corrupted. Please check the .explorer-dates-profiles.json file or restore from backup.",appliedFromTeamProfile:'Applied {0} Explorer Dates settings from team profile "{1}".',documentedOverrides:"Documented Explorer Dates overrides in .vscode/explorer-dates-overrides.md",teamConfigMissingProfile:"Team configuration is missing an active profile.",ephemeralStorageEnospc:"Explorer Dates team configuration could not be saved because the disk is full.",ephemeralStorageGeneric:"Explorer Dates team configuration could not be saved because the workspace is read-only or permissions are restricted.",ephemeralStorageSuffix:"Changes will be kept in memory until VS Code restarts, so they may be lost."}});var ir=_((Ca,Di)=>{Di.exports={migrationDetailsTitle:"Explorer Dates - Migraci\xF3n de configuraci\xF3n",migrationDetailsHeader:"Migraci\xF3n de configuraci\xF3n",gitAttributionWarning:"Explorer Dates: Las insignias de atribuci\xF3n de Git no est\xE1n disponibles en VS Code para la Web. Las decoraciones basadas en tiempo siguen disponibles.",noOverridesToDocument:"No hay anulaciones para documentar.",overrideNotesHeader:"# Notas de anulaci\xF3n de Explorer Dates\\n\\n",analysisCommandsDisabled:"Los comandos de an\xE1lisis de Explorer Dates est\xE1n deshabilitados. Atajos como Ctrl+Shift+M/H/A no funcionar\xE1n hasta que habilites explorerDates.enableAnalysisCommands.",analysisEnableNow:"Habilitar ahora",analysisEnablePartially:"La activaci\xF3n se complet\xF3 parcialmente. Actualiza explorerDates.enableAnalysisCommands manualmente en las carpetas de trabajo restantes.",analysisEnableFailed:"Error al habilitar: actualiza explorerDates.enableAnalysisCommands en la configuraci\xF3n del espacio de trabajo.",workspaceTemplatesDisabled:"Las plantillas de espacio de trabajo est\xE1n deshabilitadas. Habilita explorerDates.enableWorkspaceTemplates para usar este comando.",workspaceTemplatesDisabledSave:"Las plantillas de espacio de trabajo est\xE1n deshabilitadas. Habilita explorerDates.enableWorkspaceTemplates para guardar plantillas.",enterTemplateName:"Introduce el nombre de la plantilla",enterTemplateDescription:"Introduce la descripci\xF3n (opcional)",failedToOpenTemplateManager:"Error al abrir el administrador de plantillas: {0}",failedToSaveTemplate:"Error al guardar la plantilla: {0}",reportingDisabled:"Las funciones de informes est\xE1n deshabilitadas. Habilita explorerDates.enableExportReporting para generar informes.",failedToGenerateReport:"Error al generar el informe: {0}",apiDisabled:"La API de Explorer Dates est\xE1 deshabilitada mediante la configuraci\xF3n.",failedToShowApiInformation:"Error al mostrar la informaci\xF3n de la API: {0}",failedToShowWorkspaceActivity:"Error al mostrar la actividad del espacio de trabajo: {0}",failedToShowPerformanceAnalytics:"Error al mostrar los an\xE1lisis de rendimiento: {0}",failedToShowCacheDebugInfo:"Error al mostrar la informaci\xF3n de depuraci\xF3n de la cach\xE9: {0}",noWorkspaceFolderOpen:"No hay ninguna carpeta de espacio de trabajo abierta",now:"ahora",minutes:"m",hours:"h",days:"d",weeks:"sem",months:"mes",years:"a",justNow:"justo ahora",minutesAgo:"hace {0} minuto(s)",hoursAgo:"hace {0} hora(s)",daysAgo:"hace {0} d\xEDa(s)",lastModified:"\xDAltima modificaci\xF3n",refreshSuccess:"Decoraciones de fecha actualizadas",activationError:"Explorer Dates no se pudo activar",errorAccessingFile:"Error al acceder al archivo para la decoraci\xF3n",clearTelemetryPrompt:"Esto eliminar\xE1 permanentemente los eventos de telemetr\xEDa almacenados localmente para Explorer Dates. Esta acci\xF3n no se puede deshacer. \xBFContinuar?",clearTelemetryConfirm:"Borrar telemetr\xEDa",clearTelemetryCancel:"Cancelar",reportFormatDisabled:'El formato de informe "{0}" est\xE1 deshabilitado. Formatos permitidos: {1}',reportDownloadTriggered:"Descarga del informe iniciada en el navegador",selectReportTimeRangePlaceholder:"Seleccionar rango de tiempo del informe",selectReportFormatPlaceholder:"Seleccionar formato del informe",cleanupNoDeprecated:"\u2139\uFE0F No se encontraron configuraciones obsoletas para limpiar.",showMigrationHistoryNoHistory:"No se encontr\xF3 historial de migraci\xF3n.",resetConfirmation:"Esto restablecer\xE1 todas las configuraciones de Explorer Dates a sus valores predeterminados. \xBFEst\xE1s seguro?",resetConfirm:"Restablecer configuraciones",resetCancel:"Cancelar",resetSuccess:"\u2705 Se restablecieron {0} configuraciones a los valores predeterminados.",validateNoIssues:"\u2705 La configuraci\xF3n es v\xE1lida - no se encontraron problemas.",validateFoundIssues:"Se encontraron {0} problema(s) de configuraci\xF3n. \xBFDeseas ver los detalles?",validateShowDetails:"Mostrar detalles",validateDismiss:"Descartar",migrationNotificationMessage:"Explorer Dates actualiz\xF3 {0} configuraci\xF3n(es) por compatibilidad. Tu configuraci\xF3n se ha conservado.",migrationViewChanges:"Ver cambios",migrationOpenSettings:"Abrir configuraciones",deprecatedPrompt:"Explorer Dates encontr\xF3 {0} configuraci\xF3n(es) obsoleta(s). \xBFDeseas eliminarlas?",deprecatedClean:"Limpiar ahora",deprecatedKeep:"Mantener configuraciones antiguas",deprecatedAskLater:"Preguntar m\xE1s tarde",showFileLocation:"Mostrar ubicaci\xF3n del archivo",teamConfigCorrupted:"El archivo de configuraci\xF3n de equipo de Explorer Dates parece estar da\xF1ado. Verifica el archivo .explorer-dates-profiles.json o restaura desde una copia de seguridad.",appliedFromTeamProfile:'Se aplicaron {0} configuraciones de Explorer Dates desde el perfil de equipo "{1}".',documentedOverrides:"Se documentaron las anulaciones de Explorer Dates en .vscode/explorer-dates-overrides.md",teamConfigMissingProfile:"La configuraci\xF3n del equipo no tiene un perfil activo.",ephemeralStorageEnospc:"No se pudo guardar la configuraci\xF3n de equipo de Explorer Dates porque el disco est\xE1 lleno.",ephemeralStorageGeneric:"No se pudo guardar la configuraci\xF3n de equipo de Explorer Dates porque el espacio de trabajo es de solo lectura o los permisos est\xE1n restringidos.",ephemeralStorageSuffix:"Los cambios se mantendr\xE1n en memoria hasta que VS Code se reinicie, por lo que podr\xEDan perderse."}});var ar=_((Sa,Ci)=>{Ci.exports={migrationDetailsTitle:"Explorer Dates - Migration des param\xE8tres",migrationDetailsHeader:"Migration des param\xE8tres",gitAttributionWarning:"Explorer Dates : Les badges d\u2019attribution Git ne sont pas disponibles sur VS Code pour le Web. Les d\xE9corations bas\xE9es sur le temps restent disponibles.",noOverridesToDocument:"Aucune substitution \xE0 documenter.",overrideNotesHeader:"# Notes de substitution Explorer Dates\\n\\n",analysisCommandsDisabled:"Les commandes d\u2019analyse Explorer Dates sont d\xE9sactiv\xE9es. Les raccourcis comme Ctrl+Shift+M/H/A ne fonctionneront pas tant que vous n\u2019aurez pas activ\xE9 explorerDates.enableAnalysisCommands.",analysisEnableNow:"Activer maintenant",analysisEnablePartially:"L\u2019activation a partiellement r\xE9ussi. Mettez \xE0 jour explorerDates.enableAnalysisCommands manuellement dans les dossiers d\u2019espace de travail restants.",analysisEnableFailed:"\xC9chec de l\u2019activation : mettez \xE0 jour explorerDates.enableAnalysisCommands dans les param\xE8tres de l\u2019espace de travail.",workspaceTemplatesDisabled:"Les mod\xE8les d\u2019espace de travail sont d\xE9sactiv\xE9s. Activez explorerDates.enableWorkspaceTemplates pour utiliser cette commande.",workspaceTemplatesDisabledSave:"Les mod\xE8les d\u2019espace de travail sont d\xE9sactiv\xE9s. Activez explorerDates.enableWorkspaceTemplates pour enregistrer des mod\xE8les.",enterTemplateName:"Entrez le nom du mod\xE8le",enterTemplateDescription:"Entrez la description (facultatif)",failedToOpenTemplateManager:"Impossible d\u2019ouvrir le gestionnaire de mod\xE8les : {0}",failedToSaveTemplate:"Impossible d\u2019enregistrer le mod\xE8le : {0}",reportingDisabled:"Les fonctionnalit\xE9s de rapport sont d\xE9sactiv\xE9es. Activez explorerDates.enableExportReporting pour g\xE9n\xE9rer des rapports.",failedToGenerateReport:"Impossible de g\xE9n\xE9rer le rapport : {0}",apiDisabled:"L\u2019API Explorer Dates est d\xE9sactiv\xE9e via les param\xE8tres.",failedToShowApiInformation:"Impossible d\u2019afficher les informations de l\u2019API : {0}",failedToShowWorkspaceActivity:"Impossible d\u2019afficher l\u2019activit\xE9 de l\u2019espace de travail : {0}",failedToShowPerformanceAnalytics:"Impossible d\u2019afficher les analyses de performance : {0}",failedToShowCacheDebugInfo:"Impossible d\u2019afficher les informations de d\xE9bogage du cache : {0}",noWorkspaceFolderOpen:"Aucun dossier d\u2019espace de travail ouvert",now:"maintenant",minutes:"min",hours:"h",days:"j",weeks:"sem",months:"mois",years:"an",justNow:"\xE0 l\u2019instant",minutesAgo:"il y a {0} minute(s)",hoursAgo:"il y a {0} heure(s)",daysAgo:"il y a {0} jour(s)",lastModified:"Derni\xE8re modification",refreshSuccess:"D\xE9corations de date actualis\xE9es",activationError:"\xC9chec de l\u2019activation d\u2019Explorer Dates",errorAccessingFile:"Erreur lors de l\u2019acc\xE8s au fichier pour la d\xE9coration",clearTelemetryPrompt:"Cela supprimera d\xE9finitivement les \xE9v\xE9nements de t\xE9l\xE9m\xE9trie stock\xE9s localement pour Explorer Dates. Cette action est irr\xE9versible. Continuer ?",clearTelemetryConfirm:"Effacer la t\xE9l\xE9m\xE9trie",clearTelemetryCancel:"Annuler",reportFormatDisabled:'Le format de rapport "{0}" est d\xE9sactiv\xE9. Formats autoris\xE9s : {1}',reportDownloadTriggered:"T\xE9l\xE9chargement du rapport lanc\xE9 dans le navigateur",selectReportTimeRangePlaceholder:"S\xE9lectionner la p\xE9riode du rapport",selectReportFormatPlaceholder:"S\xE9lectionner le format du rapport",cleanupNoDeprecated:"\u2139\uFE0F Aucun param\xE8tre obsol\xE8te \xE0 nettoyer.",showMigrationHistoryNoHistory:"Aucun historique de migration trouv\xE9.",resetConfirmation:"Cela r\xE9initialisera tous les param\xE8tres Explorer Dates \xE0 leurs valeurs par d\xE9faut. \xCAtes-vous s\xFBr ?",resetConfirm:"R\xE9initialiser les param\xE8tres",resetCancel:"Annuler",resetSuccess:"\u2705 {0} param\xE8tres ont \xE9t\xE9 r\xE9initialis\xE9s aux valeurs par d\xE9faut.",validateNoIssues:"\u2705 La configuration est valide - aucun probl\xE8me d\xE9tect\xE9 !",validateFoundIssues:"{0} probl\xE8me(s) de configuration trouv\xE9(s). Voulez-vous voir les d\xE9tails ?",validateShowDetails:"Afficher les d\xE9tails",validateDismiss:"Ignorer",migrationNotificationMessage:"Explorer Dates a mis \xE0 jour {0} param\xE8tre(s) pour compatibilit\xE9. Votre configuration a \xE9t\xE9 conserv\xE9e.",migrationViewChanges:"Voir les modifications",migrationOpenSettings:"Ouvrir les param\xE8tres",deprecatedPrompt:"Explorer Dates a trouv\xE9 {0} param\xE8tre(s) obsol\xE8te(s). Voulez-vous les supprimer ?",deprecatedClean:"Nettoyer maintenant",deprecatedKeep:"Conserver les anciens param\xE8tres",deprecatedAskLater:"Demander plus tard",showFileLocation:"Afficher l\u2019emplacement du fichier",teamConfigCorrupted:"Le fichier de configuration d\u2019\xE9quipe Explorer Dates semble corrompu. V\xE9rifiez le fichier .explorer-dates-profiles.json ou restaurez-le depuis une sauvegarde.",appliedFromTeamProfile:'{0} param\xE8tres Explorer Dates appliqu\xE9s depuis le profil d\u2019\xE9quipe "{1}".',documentedOverrides:"Substitutions Explorer Dates document\xE9es dans .vscode/explorer-dates-overrides.md",teamConfigMissingProfile:"La configuration d\u2019\xE9quipe ne contient aucun profil actif.",ephemeralStorageEnospc:"Impossible d\u2019enregistrer la configuration d\u2019\xE9quipe Explorer Dates car le disque est plein.",ephemeralStorageGeneric:"Impossible d\u2019enregistrer la configuration d\u2019\xE9quipe Explorer Dates car l\u2019espace de travail est en lecture seule ou les permissions sont restreintes.",ephemeralStorageSuffix:"Les modifications seront conserv\xE9es en m\xE9moire jusqu\u2019au red\xE9marrage de VS Code et pourraient \xEAtre perdues."}});var or=_((Ta,Si)=>{Si.exports={migrationDetailsTitle:"Explorer Dates - Einstellungen migrieren",migrationDetailsHeader:"Einstellungen migrieren",gitAttributionWarning:"Explorer Dates: Git-Zuordnungsabzeichen sind in VS Code f\xFCr das Web nicht verf\xFCgbar. Zeitbasierte Hervorhebungen bleiben verf\xFCgbar.",noOverridesToDocument:"Keine \xDCberschreibungen zu dokumentieren.",overrideNotesHeader:"# Explorer Dates \xDCberschreibungsnotizen\\n\\n",analysisCommandsDisabled:"Die Analysebefehle von Explorer Dates sind deaktiviert. Tastenkombinationen wie Ctrl+Shift+M/H/A funktionieren nicht, bis explorerDates.enableAnalysisCommands aktiviert ist.",analysisEnableNow:"Jetzt aktivieren",analysisEnablePartially:"Die Aktivierung war teilweise erfolgreich. Aktualisieren Sie explorerDates.enableAnalysisCommands manuell in den verbleibenden Workspace-Ordnern.",analysisEnableFailed:"Aktivierung fehlgeschlagen: Aktualisieren Sie explorerDates.enableAnalysisCommands in den Workspace-Einstellungen.",workspaceTemplatesDisabled:"Workspace-Vorlagen sind deaktiviert. Aktivieren Sie explorerDates.enableWorkspaceTemplates, um diesen Befehl zu verwenden.",workspaceTemplatesDisabledSave:"Workspace-Vorlagen sind deaktiviert. Aktivieren Sie explorerDates.enableWorkspaceTemplates, um Vorlagen zu speichern.",enterTemplateName:"Vorlagenname eingeben",enterTemplateDescription:"Beschreibung eingeben (optional)",failedToOpenTemplateManager:"Fehler beim \xD6ffnen des Vorlagenmanagers: {0}",failedToSaveTemplate:"Fehler beim Speichern der Vorlage: {0}",reportingDisabled:"Berichtsfunktionen sind deaktiviert. Aktivieren Sie explorerDates.enableExportReporting, um Berichte zu erstellen.",failedToGenerateReport:"Fehler beim Erstellen des Berichts: {0}",apiDisabled:"Die Explorer Dates API ist in den Einstellungen deaktiviert.",failedToShowApiInformation:"Fehler beim Anzeigen der API-Informationen: {0}",failedToShowWorkspaceActivity:"Fehler beim Anzeigen der Workspace-Aktivit\xE4t: {0}",failedToShowPerformanceAnalytics:"Fehler beim Anzeigen der Leistungsanalysen: {0}",failedToShowCacheDebugInfo:"Fehler beim Anzeigen der Cache-Debug-Informationen: {0}",noWorkspaceFolderOpen:"Kein Workspace-Ordner ge\xF6ffnet",now:"jetzt",minutes:"Min",hours:"Std",days:"T",weeks:"W",months:"Mon",years:"J",justNow:"gerade eben",minutesAgo:"vor {0} Minute(n)",hoursAgo:"vor {0} Stunde(n)",daysAgo:"vor {0} Tag(en)",lastModified:"Zuletzt ge\xE4ndert",refreshSuccess:"Datumsdekorationen aktualisiert",activationError:"Explorer Dates konnte nicht aktiviert werden",errorAccessingFile:"Fehler beim Zugriff auf Datei f\xFCr Dekoration",clearTelemetryPrompt:"Dies l\xF6scht dauerhaft lokal gespeicherte Telemetrieereignisse f\xFCr Explorer Dates. Diese Aktion kann nicht r\xFCckg\xE4ngig gemacht werden. Fortfahren?",clearTelemetryConfirm:"Telemetrie l\xF6schen",clearTelemetryCancel:"Abbrechen",reportFormatDisabled:'Berichtsformat "{0}" ist deaktiviert. Zul\xE4ssige Formate: {1}',reportDownloadTriggered:"Bericht-Download im Browser gestartet",selectReportTimeRangePlaceholder:"Berichtszeitraum ausw\xE4hlen",selectReportFormatPlaceholder:"Berichtsformat ausw\xE4hlen",cleanupNoDeprecated:"\u2139\uFE0F Keine veralteten Einstellungen zum Bereinigen gefunden.",showMigrationHistoryNoHistory:"Kein Migrationsverlauf gefunden.",resetConfirmation:"Dies setzt alle Explorer Dates Einstellungen auf ihre Standardwerte zur\xFCck. Sind Sie sicher?",resetConfirm:"Einstellungen zur\xFCcksetzen",resetCancel:"Abbrechen",resetSuccess:"\u2705 {0} Einstellungen auf Standard zur\xFCckgesetzt.",validateNoIssues:"\u2705 Konfiguration ist g\xFCltig - keine Probleme gefunden!",validateFoundIssues:"{0} Konfigurationsproblem(e) gefunden. M\xF6chten Sie Details sehen?",validateShowDetails:"Details anzeigen",validateDismiss:"Verwerfen",migrationNotificationMessage:"Explorer Dates hat {0} Einstellung(en) zur Kompatibilit\xE4t aktualisiert. Ihre Konfiguration wurde beibehalten.",migrationViewChanges:"\xC4nderungen anzeigen",migrationOpenSettings:"Einstellungen \xF6ffnen",deprecatedPrompt:"Explorer Dates hat {0} veraltete Einstellung(en) gefunden. M\xF6chten Sie sie entfernen?",deprecatedClean:"Jetzt bereinigen",deprecatedKeep:"Alte Einstellungen behalten",deprecatedAskLater:"Sp\xE4ter fragen",showFileLocation:"Dateispeicherort anzeigen",teamConfigCorrupted:"Die Teamkonfigurationsdatei von Explorer Dates scheint besch\xE4digt zu sein. Bitte pr\xFCfen Sie die Datei .explorer-dates-profiles.json oder stellen Sie sie aus einem Backup wieder her.",appliedFromTeamProfile:'{0} Explorer Dates-Einstellungen aus dem Teamprofil "{1}" angewendet.',documentedOverrides:"Explorer Dates-\xDCberschreibungen in .vscode/explorer-dates-overrides.md dokumentiert",teamConfigMissingProfile:"Der Teamkonfiguration fehlt ein aktives Profil.",ephemeralStorageEnospc:"Die Teamkonfiguration von Explorer Dates konnte nicht gespeichert werden, da die Festplatte voll ist.",ephemeralStorageGeneric:"Die Teamkonfiguration von Explorer Dates konnte nicht gespeichert werden, da der Workspace schreibgesch\xFCtzt ist oder die Berechtigungen eingeschr\xE4nkt sind.",ephemeralStorageSuffix:"\xC4nderungen werden im Speicher behalten, bis VS Code neu startet, und k\xF6nnen verloren gehen."}});var sr=_((va,Ti)=>{Ti.exports={migrationDetailsTitle:"Explorer Dates - \u8A2D\u5B9A\u306E\u79FB\u884C",migrationDetailsHeader:"\u8A2D\u5B9A\u306E\u79FB\u884C",gitAttributionWarning:"Explorer Dates: Git \u306E\u5E30\u5C5E\u30D0\u30C3\u30B8\u306F VS Code for Web \u3067\u306F\u5229\u7528\u3067\u304D\u307E\u305B\u3093\u3002\u6642\u9593\u30D9\u30FC\u30B9\u306E\u88C5\u98FE\u306F\u5F15\u304D\u7D9A\u304D\u5229\u7528\u3067\u304D\u307E\u3059\u3002",noOverridesToDocument:"\u30C9\u30AD\u30E5\u30E1\u30F3\u30C8\u5316\u3059\u308B\u4E0A\u66F8\u304D\u306F\u3042\u308A\u307E\u305B\u3093\u3002",overrideNotesHeader:"# Explorer Dates \u4E0A\u66F8\u304D\u30E1\u30E2\\n\\n",analysisCommandsDisabled:"Explorer Dates \u306E\u5206\u6790\u30B3\u30DE\u30F3\u30C9\u306F\u7121\u52B9\u306B\u306A\u3063\u3066\u3044\u307E\u3059\u3002Ctrl+Shift+M/H/A \u306A\u3069\u306E\u30B7\u30E7\u30FC\u30C8\u30AB\u30C3\u30C8\u306F explorerDates.enableAnalysisCommands \u3092\u6709\u52B9\u306B\u3059\u308B\u307E\u3067\u6A5F\u80FD\u3057\u307E\u305B\u3093\u3002",analysisEnableNow:"\u4ECA\u3059\u3050\u6709\u52B9\u306B\u3059\u308B",analysisEnablePartially:"\u6709\u52B9\u5316\u306F\u4E00\u90E8\u6210\u529F\u3057\u307E\u3057\u305F\u3002\u6B8B\u308A\u306E\u30EF\u30FC\u30AF\u30B9\u30DA\u30FC\u30B9\u30D5\u30A9\u30EB\u30C0\u30FC\u3067 explorerDates.enableAnalysisCommands \u3092\u624B\u52D5\u3067\u66F4\u65B0\u3057\u3066\u304F\u3060\u3055\u3044\u3002",analysisEnableFailed:"\u6709\u52B9\u5316\u306B\u5931\u6557\u3057\u307E\u3057\u305F\uFF1A\u30EF\u30FC\u30AF\u30B9\u30DA\u30FC\u30B9\u8A2D\u5B9A\u3067 explorerDates.enableAnalysisCommands \u3092\u66F4\u65B0\u3057\u3066\u304F\u3060\u3055\u3044\u3002",workspaceTemplatesDisabled:"\u30EF\u30FC\u30AF\u30B9\u30DA\u30FC\u30B9\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8\u306F\u7121\u52B9\u306B\u306A\u3063\u3066\u3044\u307E\u3059\u3002\u3053\u306E\u30B3\u30DE\u30F3\u30C9\u3092\u4F7F\u7528\u3059\u308B\u306B\u306F explorerDates.enableWorkspaceTemplates \u3092\u6709\u52B9\u306B\u3057\u3066\u304F\u3060\u3055\u3044\u3002",workspaceTemplatesDisabledSave:"\u30EF\u30FC\u30AF\u30B9\u30DA\u30FC\u30B9\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8\u306F\u7121\u52B9\u306B\u306A\u3063\u3066\u3044\u307E\u3059\u3002\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8\u3092\u4FDD\u5B58\u3059\u308B\u306B\u306F explorerDates.enableWorkspaceTemplates \u3092\u6709\u52B9\u306B\u3057\u3066\u304F\u3060\u3055\u3044\u3002",enterTemplateName:"\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8\u540D\u3092\u5165\u529B",enterTemplateDescription:"\u8AAC\u660E\u3092\u5165\u529B\uFF08\u4EFB\u610F\uFF09",failedToOpenTemplateManager:"\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8\u30DE\u30CD\u30FC\u30B8\u30E3\u30FC\u3092\u958B\u3051\u307E\u305B\u3093\u3067\u3057\u305F: {0}",failedToSaveTemplate:"\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8\u306E\u4FDD\u5B58\u306B\u5931\u6557\u3057\u307E\u3057\u305F: {0}",reportingDisabled:"\u30EC\u30DD\u30FC\u30C8\u6A5F\u80FD\u306F\u7121\u52B9\u306B\u306A\u3063\u3066\u3044\u307E\u3059\u3002\u30EC\u30DD\u30FC\u30C8\u3092\u751F\u6210\u3059\u308B\u306B\u306F explorerDates.enableExportReporting \u3092\u6709\u52B9\u306B\u3057\u3066\u304F\u3060\u3055\u3044\u3002",failedToGenerateReport:"\u30EC\u30DD\u30FC\u30C8\u306E\u751F\u6210\u306B\u5931\u6557\u3057\u307E\u3057\u305F: {0}",apiDisabled:"Explorer Dates API \u306F\u8A2D\u5B9A\u3067\u7121\u52B9\u306B\u306A\u3063\u3066\u3044\u307E\u3059\u3002",failedToShowApiInformation:"API \u60C5\u5831\u306E\u8868\u793A\u306B\u5931\u6557\u3057\u307E\u3057\u305F: {0}",failedToShowWorkspaceActivity:"\u30EF\u30FC\u30AF\u30B9\u30DA\u30FC\u30B9\u306E\u30A2\u30AF\u30C6\u30A3\u30D3\u30C6\u30A3\u3092\u8868\u793A\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F: {0}",failedToShowPerformanceAnalytics:"\u30D1\u30D5\u30A9\u30FC\u30DE\u30F3\u30B9\u5206\u6790\u3092\u8868\u793A\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F: {0}",failedToShowCacheDebugInfo:"\u30AD\u30E3\u30C3\u30B7\u30E5\u306E\u30C7\u30D0\u30C3\u30B0\u60C5\u5831\u3092\u8868\u793A\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F: {0}",noWorkspaceFolderOpen:"\u30EF\u30FC\u30AF\u30B9\u30DA\u30FC\u30B9\u30D5\u30A9\u30EB\u30C0\u30FC\u304C\u958B\u304B\u308C\u3066\u3044\u307E\u305B\u3093",now:"\u4ECA",minutes:"\u5206",hours:"\u6642\u9593",days:"\u65E5",weeks:"\u9031",months:"\u304B\u6708",years:"\u5E74",justNow:"\u305F\u3063\u305F\u4ECA",minutesAgo:"{0} \u5206\u524D",hoursAgo:"{0} \u6642\u9593\u524D",daysAgo:"{0} \u65E5\u524D",lastModified:"\u6700\u7D42\u66F4\u65B0",refreshSuccess:"\u65E5\u4ED8\u88C5\u98FE\u3092\u66F4\u65B0\u3057\u307E\u3057\u305F",activationError:"Explorer Dates \u306E\u6709\u52B9\u5316\u306B\u5931\u6557\u3057\u307E\u3057\u305F",errorAccessingFile:"\u88C5\u98FE\u7528\u30D5\u30A1\u30A4\u30EB\u3078\u306E\u30A2\u30AF\u30BB\u30B9\u30A8\u30E9\u30FC",clearTelemetryPrompt:"Explorer Dates \u306E\u30ED\u30FC\u30AB\u30EB\u4FDD\u5B58\u30C6\u30EC\u30E1\u30C8\u30EA\u30A4\u30D9\u30F3\u30C8\u3092\u5B8C\u5168\u306B\u524A\u9664\u3057\u307E\u3059\u3002\u3053\u306E\u64CD\u4F5C\u306F\u5143\u306B\u623B\u305B\u307E\u305B\u3093\u3002\u7D9A\u884C\u3057\u307E\u3059\u304B\uFF1F",clearTelemetryConfirm:"\u30C6\u30EC\u30E1\u30C8\u30EA\u3092\u524A\u9664",clearTelemetryCancel:"\u30AD\u30E3\u30F3\u30BB\u30EB",reportFormatDisabled:"\u30EC\u30DD\u30FC\u30C8\u5F62\u5F0F\u300C{0}\u300D\u306F\u7121\u52B9\u3067\u3059\u3002\u8A31\u53EF\u3055\u308C\u3066\u3044\u308B\u5F62\u5F0F: {1}",reportDownloadTriggered:"\u30D6\u30E9\u30A6\u30B6\u3067\u30EC\u30DD\u30FC\u30C8\u306E\u30C0\u30A6\u30F3\u30ED\u30FC\u30C9\u3092\u958B\u59CB\u3057\u307E\u3057\u305F",selectReportTimeRangePlaceholder:"\u30EC\u30DD\u30FC\u30C8\u306E\u671F\u9593\u3092\u9078\u629E",selectReportFormatPlaceholder:"\u30EC\u30DD\u30FC\u30C8\u5F62\u5F0F\u3092\u9078\u629E",cleanupNoDeprecated:"\u2139\uFE0F \u30AF\u30EA\u30FC\u30F3\u30A2\u30C3\u30D7\u3059\u308B\u975E\u63A8\u5968\u8A2D\u5B9A\u306F\u3042\u308A\u307E\u305B\u3093\u3002",showMigrationHistoryNoHistory:"\u79FB\u884C\u5C65\u6B74\u304C\u898B\u3064\u304B\u308A\u307E\u305B\u3093\u3002",resetConfirmation:"Explorer Dates \u306E\u3059\u3079\u3066\u306E\u8A2D\u5B9A\u3092\u65E2\u5B9A\u5024\u306B\u30EA\u30BB\u30C3\u30C8\u3057\u307E\u3059\u3002\u3088\u308D\u3057\u3044\u3067\u3059\u304B\uFF1F",resetConfirm:"\u8A2D\u5B9A\u3092\u30EA\u30BB\u30C3\u30C8",resetCancel:"\u30AD\u30E3\u30F3\u30BB\u30EB",resetSuccess:"\u2705 {0} \u4EF6\u306E\u8A2D\u5B9A\u3092\u65E2\u5B9A\u5024\u306B\u30EA\u30BB\u30C3\u30C8\u3057\u307E\u3057\u305F\u3002",validateNoIssues:"\u2705 \u8A2D\u5B9A\u306F\u6709\u52B9\u3067\u3059 - \u554F\u984C\u306F\u898B\u3064\u304B\u308A\u307E\u305B\u3093\u3067\u3057\u305F\uFF01",validateFoundIssues:"{0} \u4EF6\u306E\u8A2D\u5B9A\u554F\u984C\u304C\u898B\u3064\u304B\u308A\u307E\u3057\u305F\u3002\u8A73\u7D30\u3092\u8868\u793A\u3057\u307E\u3059\u304B\uFF1F",validateShowDetails:"\u8A73\u7D30\u3092\u8868\u793A",validateDismiss:"\u9589\u3058\u308B",migrationNotificationMessage:"Explorer Dates \u306F\u4E92\u63DB\u6027\u306E\u305F\u3081\u306B {0} \u4EF6\u306E\u8A2D\u5B9A\u3092\u66F4\u65B0\u3057\u307E\u3057\u305F\u3002\u8A2D\u5B9A\u306F\u4FDD\u6301\u3055\u308C\u3066\u3044\u307E\u3059\u3002",migrationViewChanges:"\u5909\u66F4\u3092\u8868\u793A",migrationOpenSettings:"\u8A2D\u5B9A\u3092\u958B\u304F",deprecatedPrompt:"Explorer Dates \u306F {0} \u4EF6\u306E\u975E\u63A8\u5968\u8A2D\u5B9A\u3092\u691C\u51FA\u3057\u307E\u3057\u305F\u3002\u524A\u9664\u3057\u307E\u3059\u304B\uFF1F",deprecatedClean:"\u4ECA\u3059\u3050\u30AF\u30EA\u30FC\u30F3\u30A2\u30C3\u30D7",deprecatedKeep:"\u53E4\u3044\u8A2D\u5B9A\u3092\u4FDD\u6301",deprecatedAskLater:"\u5F8C\u3067\u78BA\u8A8D",showFileLocation:"\u30D5\u30A1\u30A4\u30EB\u306E\u5834\u6240\u3092\u8868\u793A",teamConfigCorrupted:"Explorer Dates \u306E\u30C1\u30FC\u30E0\u8A2D\u5B9A\u30D5\u30A1\u30A4\u30EB\u304C\u7834\u640D\u3057\u3066\u3044\u308B\u53EF\u80FD\u6027\u304C\u3042\u308A\u307E\u3059\u3002.explorer-dates-profiles.json \u3092\u78BA\u8A8D\u3059\u308B\u304B\u30D0\u30C3\u30AF\u30A2\u30C3\u30D7\u304B\u3089\u5FA9\u5143\u3057\u3066\u304F\u3060\u3055\u3044\u3002",appliedFromTeamProfile:"\u30C1\u30FC\u30E0\u30D7\u30ED\u30D5\u30A1\u30A4\u30EB\u300C{1}\u300D\u304B\u3089 {0} \u4EF6\u306E Explorer Dates \u8A2D\u5B9A\u3092\u9069\u7528\u3057\u307E\u3057\u305F\u3002",documentedOverrides:".vscode/explorer-dates-overrides.md \u306B Explorer Dates \u306E\u4E0A\u66F8\u304D\u3092\u8A18\u9332\u3057\u307E\u3057\u305F",teamConfigMissingProfile:"\u30C1\u30FC\u30E0\u8A2D\u5B9A\u306B\u30A2\u30AF\u30C6\u30A3\u30D6\u306A\u30D7\u30ED\u30D5\u30A1\u30A4\u30EB\u304C\u3042\u308A\u307E\u305B\u3093\u3002",ephemeralStorageEnospc:"\u30C7\u30A3\u30B9\u30AF\u5BB9\u91CF\u4E0D\u8DB3\u306E\u305F\u3081\u3001Explorer Dates \u306E\u30C1\u30FC\u30E0\u8A2D\u5B9A\u3092\u4FDD\u5B58\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002",ephemeralStorageGeneric:"\u30EF\u30FC\u30AF\u30B9\u30DA\u30FC\u30B9\u304C\u8AAD\u307F\u53D6\u308A\u5C02\u7528\u3001\u307E\u305F\u306F\u6A29\u9650\u304C\u5236\u9650\u3055\u308C\u3066\u3044\u308B\u305F\u3081\u3001Explorer Dates \u306E\u30C1\u30FC\u30E0\u8A2D\u5B9A\u3092\u4FDD\u5B58\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002",ephemeralStorageSuffix:"\u5909\u66F4\u306F VS Code \u304C\u518D\u8D77\u52D5\u3059\u308B\u307E\u3067\u30E1\u30E2\u30EA\u306B\u4FDD\u6301\u3055\u308C\u308B\u305F\u3081\u3001\u5931\u308F\u308C\u308B\u53EF\u80FD\u6027\u304C\u3042\u308A\u307E\u3059\u3002"}});var cr=_((Fa,vi)=>{vi.exports={migrationDetailsTitle:"Explorer Dates - \u8BBE\u7F6E\u8FC1\u79FB",migrationDetailsHeader:"\u8BBE\u7F6E\u8FC1\u79FB",gitAttributionWarning:"Explorer Dates\uFF1AGit \u5F52\u5C5E\u5FBD\u7AE0\u5728 VS Code Web \u7248\u4E2D\u4E0D\u53EF\u7528\u3002\u57FA\u4E8E\u65F6\u95F4\u7684\u88C5\u9970\u4ECD\u7136\u53EF\u7528\u3002",noOverridesToDocument:"\u6CA1\u6709\u9700\u8981\u8BB0\u5F55\u7684\u8986\u76D6\u9879\u3002",overrideNotesHeader:"# Explorer Dates \u8986\u76D6\u8BF4\u660E\\n\\n",analysisCommandsDisabled:"Explorer Dates \u5206\u6790\u547D\u4EE4\u5DF2\u7981\u7528\u3002\u5728\u542F\u7528 explorerDates.enableAnalysisCommands \u4E4B\u524D\uFF0CCtrl+Shift+M/H/A \u7B49\u5FEB\u6377\u952E\u5C06\u65E0\u6CD5\u4F7F\u7528\u3002",analysisEnableNow:"\u7ACB\u5373\u542F\u7528",analysisEnablePartially:"\u542F\u7528\u90E8\u5206\u6210\u529F\u3002\u8BF7\u5728\u5269\u4F59\u7684\u5DE5\u4F5C\u533A\u6587\u4EF6\u5939\u4E2D\u624B\u52A8\u66F4\u65B0 explorerDates.enableAnalysisCommands\u3002",analysisEnableFailed:"\u542F\u7528\u5931\u8D25\uFF1A\u8BF7\u5728\u5DE5\u4F5C\u533A\u8BBE\u7F6E\u4E2D\u66F4\u65B0 explorerDates.enableAnalysisCommands\u3002",workspaceTemplatesDisabled:"\u5DE5\u4F5C\u533A\u6A21\u677F\u5DF2\u7981\u7528\u3002\u542F\u7528 explorerDates.enableWorkspaceTemplates \u4EE5\u4F7F\u7528\u6B64\u547D\u4EE4\u3002",workspaceTemplatesDisabledSave:"\u5DE5\u4F5C\u533A\u6A21\u677F\u5DF2\u7981\u7528\u3002\u542F\u7528 explorerDates.enableWorkspaceTemplates \u4EE5\u4FDD\u5B58\u6A21\u677F\u3002",enterTemplateName:"\u8F93\u5165\u6A21\u677F\u540D\u79F0",enterTemplateDescription:"\u8F93\u5165\u63CF\u8FF0\uFF08\u53EF\u9009\uFF09",failedToOpenTemplateManager:"\u65E0\u6CD5\u6253\u5F00\u6A21\u677F\u7BA1\u7406\u5668\uFF1A{0}",failedToSaveTemplate:"\u4FDD\u5B58\u6A21\u677F\u5931\u8D25\uFF1A{0}",reportingDisabled:"\u62A5\u8868\u529F\u80FD\u5DF2\u7981\u7528\u3002\u542F\u7528 explorerDates.enableExportReporting \u4EE5\u751F\u6210\u62A5\u8868\u3002",failedToGenerateReport:"\u751F\u6210\u62A5\u8868\u5931\u8D25\uFF1A{0}",apiDisabled:"Explorer Dates API \u5DF2\u901A\u8FC7\u8BBE\u7F6E\u7981\u7528\u3002",failedToShowApiInformation:"\u663E\u793A API \u4FE1\u606F\u5931\u8D25\uFF1A{0}",failedToShowWorkspaceActivity:"\u663E\u793A\u5DE5\u4F5C\u533A\u6D3B\u52A8\u5931\u8D25\uFF1A{0}",failedToShowPerformanceAnalytics:"\u663E\u793A\u6027\u80FD\u5206\u6790\u5931\u8D25\uFF1A{0}",failedToShowCacheDebugInfo:"\u663E\u793A\u7F13\u5B58\u8C03\u8BD5\u4FE1\u606F\u5931\u8D25\uFF1A{0}",noWorkspaceFolderOpen:"\u672A\u6253\u5F00\u4EFB\u4F55\u5DE5\u4F5C\u533A\u6587\u4EF6\u5939",now:"\u73B0\u5728",minutes:"\u5206",hours:"\u5C0F\u65F6",days:"\u5929",weeks:"\u5468",months:"\u4E2A\u6708",years:"\u5E74",justNow:"\u521A\u521A",minutesAgo:"{0} \u5206\u949F\u524D",hoursAgo:"{0} \u5C0F\u65F6\u524D",daysAgo:"{0} \u5929\u524D",lastModified:"\u6700\u540E\u4FEE\u6539",refreshSuccess:"\u65E5\u671F\u88C5\u9970\u5DF2\u5237\u65B0",activationError:"Explorer Dates \u542F\u52A8\u5931\u8D25",errorAccessingFile:"\u8BBF\u95EE\u7528\u4E8E\u88C5\u9970\u7684\u6587\u4EF6\u65F6\u51FA\u9519",clearTelemetryPrompt:"\u8FD9\u5C06\u6C38\u4E45\u5220\u9664\u672C\u5730\u5B58\u50A8\u7684 Explorer Dates \u9065\u6D4B\u4E8B\u4EF6\u3002\u6B64\u64CD\u4F5C\u65E0\u6CD5\u64A4\u9500\u3002\u662F\u5426\u7EE7\u7EED\uFF1F",clearTelemetryConfirm:"\u6E05\u9664\u9065\u6D4B",clearTelemetryCancel:"\u53D6\u6D88",reportFormatDisabled:"\u62A5\u8868\u683C\u5F0F\u201C{0}\u201D\u5DF2\u7981\u7528\u3002\u5141\u8BB8\u7684\u683C\u5F0F\uFF1A{1}",reportDownloadTriggered:"\u5DF2\u5728\u6D4F\u89C8\u5668\u4E2D\u89E6\u53D1\u62A5\u8868\u4E0B\u8F7D",selectReportTimeRangePlaceholder:"\u9009\u62E9\u62A5\u8868\u65F6\u95F4\u8303\u56F4",selectReportFormatPlaceholder:"\u9009\u62E9\u62A5\u8868\u683C\u5F0F",cleanupNoDeprecated:"\u2139\uFE0F \u672A\u53D1\u73B0\u9700\u8981\u6E05\u7406\u7684\u5DF2\u5F03\u7528\u8BBE\u7F6E\u3002",showMigrationHistoryNoHistory:"\u672A\u627E\u5230\u8FC1\u79FB\u5386\u53F2\u3002",resetConfirmation:"\u8FD9\u5C06\u628A\u6240\u6709 Explorer Dates \u8BBE\u7F6E\u91CD\u7F6E\u4E3A\u9ED8\u8BA4\u503C\u3002\u786E\u5B9A\u5417\uFF1F",resetConfirm:"\u91CD\u7F6E\u8BBE\u7F6E",resetCancel:"\u53D6\u6D88",resetSuccess:"\u2705 \u5DF2\u5C06 {0} \u9879\u8BBE\u7F6E\u91CD\u7F6E\u4E3A\u9ED8\u8BA4\u503C\u3002",validateNoIssues:"\u2705 \u914D\u7F6E\u6709\u6548 - \u672A\u53D1\u73B0\u95EE\u9898\uFF01",validateFoundIssues:"\u53D1\u73B0 {0} \u4E2A\u914D\u7F6E\u95EE\u9898\u3002\u662F\u5426\u67E5\u770B\u8BE6\u7EC6\u4FE1\u606F\uFF1F",validateShowDetails:"\u663E\u793A\u8BE6\u7EC6\u4FE1\u606F",validateDismiss:"\u5173\u95ED",migrationNotificationMessage:"Explorer Dates \u4E3A\u517C\u5BB9\u6027\u66F4\u65B0\u4E86 {0} \u9879\u8BBE\u7F6E\u3002\u60A8\u7684\u914D\u7F6E\u5DF2\u4FDD\u7559\u3002",migrationViewChanges:"\u67E5\u770B\u66F4\u6539",migrationOpenSettings:"\u6253\u5F00\u8BBE\u7F6E",deprecatedPrompt:"Explorer Dates \u53D1\u73B0 {0} \u4E2A\u5DF2\u5F03\u7528\u8BBE\u7F6E\u3002\u662F\u5426\u5220\u9664\uFF1F",deprecatedClean:"\u7ACB\u5373\u6E05\u7406",deprecatedKeep:"\u4FDD\u7559\u65E7\u8BBE\u7F6E",deprecatedAskLater:"\u7A0D\u540E\u8BE2\u95EE",showFileLocation:"\u663E\u793A\u6587\u4EF6\u4F4D\u7F6E",teamConfigCorrupted:"Explorer Dates \u56E2\u961F\u914D\u7F6E\u6587\u4EF6\u4F3C\u4E4E\u5DF2\u635F\u574F\u3002\u8BF7\u68C0\u67E5 .explorer-dates-profiles.json \u6587\u4EF6\u6216\u4ECE\u5907\u4EFD\u6062\u590D\u3002",appliedFromTeamProfile:"\u5DF2\u4ECE\u56E2\u961F\u914D\u7F6E\u6587\u4EF6\u201C{1}\u201D\u5E94\u7528 {0} \u9879 Explorer Dates \u8BBE\u7F6E\u3002",documentedOverrides:"\u5DF2\u5728 .vscode/explorer-dates-overrides.md \u4E2D\u8BB0\u5F55 Explorer Dates \u8986\u76D6\u9879",teamConfigMissingProfile:"\u56E2\u961F\u914D\u7F6E\u7F3A\u5C11\u6D3B\u52A8\u914D\u7F6E\u6587\u4EF6\u3002",ephemeralStorageEnospc:"\u7531\u4E8E\u78C1\u76D8\u5DF2\u6EE1\uFF0C\u65E0\u6CD5\u4FDD\u5B58 Explorer Dates \u56E2\u961F\u914D\u7F6E\u3002",ephemeralStorageGeneric:"\u7531\u4E8E\u5DE5\u4F5C\u533A\u4E3A\u53EA\u8BFB\u6216\u6743\u9650\u53D7\u9650\uFF0C\u65E0\u6CD5\u4FDD\u5B58 Explorer Dates \u56E2\u961F\u914D\u7F6E\u3002",ephemeralStorageSuffix:"\u66F4\u6539\u5C06\u5728 VS Code \u91CD\u542F\u524D\u4FDD\u5B58\u5728\u5185\u5B58\u4E2D\uFF0C\u56E0\u6B64\u53EF\u80FD\u4F1A\u4E22\u5931\u3002"}});var ur=_((Aa,lr)=>{var j={};j.en=nr();j.es=ir();j.fr=ar();j.de=or();j.ja=sr();j.zh=cr();lr.exports=j});var at=_((Ra,hr)=>{var V=require("vscode"),z={en:{now:"now",minutes:"m",hours:"h",days:"d",weeks:"w",months:"mo",years:"y",justNow:"just now",minutesAgo:e=>`${e} minute${e!==1?"s":""} ago`,hoursAgo:e=>`${e} hour${e!==1?"s":""} ago`,yesterday:"yesterday",daysAgo:e=>`${e} day${e!==1?"s":""} ago`,lastModified:"Last modified",refreshSuccess:"Date decorations refreshed",activationError:"Explorer Dates failed to activate",errorAccessingFile:"Error accessing file for decoration",clearTelemetryPrompt:"This will permanently delete locally-stored telemetry events for Explorer Dates. This action cannot be undone. Proceed?",clearTelemetryConfirm:"Clear Telemetry",clearTelemetryCancel:"Cancel",clearTelemetrySuccess:"\u2705 Explorer Dates telemetry cleared.",migrateChecking:"Checking for settings that need migration...",migrateAllUpToDate:"\u2705 All settings are up to date!",migrateApplied:e=>`\u2705 Explorer Dates maintenance applied: ${e}.`,organizeSettingsResult:e=>`Explorer Dates settings organized: ${e}`,cleanupSuccess:"\u2705 Deprecated settings have been cleaned up!",reportFormatDisabled:(e,t)=>`Report format "${e}" is disabled. Allowed formats: ${t}`,reportSaved:e=>`Report saved to ${e}`,reportGenerateFailed:"Failed to generate report",reportDownloadTriggered:"Report download triggered in browser",selectReportTimeRangePlaceholder:"Select report time range",selectReportFormatPlaceholder:"Select report format",cleanupNoDeprecated:"\u2139\uFE0F No deprecated settings found to clean up.",showMigrationHistoryNoHistory:"No migration history found.",resetConfirmation:"This will reset all Explorer Dates settings to their default values. Are you sure?",migrationDetailsTitle:"Explorer Dates - Settings Migration",migrationDetailsHeader:"Settings Migration",gitAttributionWarning:"Explorer Dates: Git attribution badges are unavailable on VS Code for Web. Time-based decorations remain available.",noOverridesToDocument:"No overrides to document.",overrideNotesHeader:`# Explorer Dates Override Notes +var jr=Object.create;var mt=Object.defineProperty;var Vr=Object.getOwnPropertyDescriptor;var Gr=Object.getOwnPropertyNames;var Xr=Object.getPrototypeOf,Yr=Object.prototype.hasOwnProperty;var E=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var Zr=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Gr(t))!Yr.call(e,i)&&i!==r&&mt(e,i,{get:()=>t[i],enumerable:!(n=Vr(t,i))||n.enumerable});return e};var R=(e,t,r)=>(r=e!=null?jr(Xr(e)):{},Zr(t||!e||!e.__esModule?mt(r,"default",{value:e,enumerable:!0}):r,e));var J=E((ua,yt)=>{var pt=require("vscode");function Jr(){try{let e=pt?.env?.uiKind,t=pt?.UIKind?.Web;return e!==void 0&&t!==void 0&&e===t}catch{return!1}}yt.exports={isWebEnvironment:Jr}});var ce=E((exports,module)=>{var chunk=null;try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){try{chunk=dynamicRequire("../chunks/utils-shared-chunk")}catch{}try{chunk||(chunk=dynamicRequire("./chunks/utils-shared-chunk"))}catch{}try{chunk||(chunk=dynamicRequire("../chunks/path-utils-chunk"))}catch{}try{chunk||(chunk=dynamicRequire("./chunks/path-utils-chunk"))}catch{}}}catch{}if(chunk&&chunk.normalizePath)module.exports={normalizePath:chunk.normalizePath,getFileName:chunk.getFileName,getExtension:chunk.getExtension,getDirectory:chunk.getDirectory,joinPath:chunk.joinPath,getCacheKey:chunk.getCacheKey,getUriPath:chunk.getUriPath,getRelativePath:chunk.getRelativePath};else{let e=function(u=""){return u?u.replace(/\\/g,"/"):""},t=function(u=""){let l=e(u);return l?l.split("/").filter(Boolean):[]},r=function(u=""){let l=t(u);return l.length?l[l.length-1]:""},n=function(u=""){let l=r(u),d=l.lastIndexOf(".");return d<=0?"":l.substring(d).toLowerCase()},i=function(u=""){let l=e(u),d=l.lastIndexOf("/");return d===-1?"":l.substring(0,d)},a=function(...u){return e(u.filter(Boolean).join("/")).replace(/\/+/g,"/")},o=function(u=""){return e(u).toLowerCase()},s=function(u=""){if(!u)return"";if(typeof u=="string")return u;if(typeof u.fsPath=="string"&&u.fsPath.length>0)return u.fsPath;if(typeof u.path=="string"&&u.path.length>0)return u.path;if(typeof u.toString=="function")try{return u.toString(!0)}catch{return u.toString()}return String(u)},c=function(u="",l=""){let d=e(u),h=e(l);return d&&h.startsWith(d)?h.substring(d.length).replace(/^\/+/,""):h};normalizePath=e,getSegments=t,getFileName=r,getExtension=n,getDirectory=i,joinPath=a,getCacheKey=o,getUriPath=s,getRelativePath=c,module.exports={normalizePath:e,getFileName:r,getExtension:n,getDirectory:i,joinPath:a,getCacheKey:o,getUriPath:s,getRelativePath:c}}var normalizePath,getSegments,getFileName,getExtension,getDirectory,joinPath,getCacheKey,getUriPath,getRelativePath});var _t=E((ha,Et)=>{var ye=class extends Error{constructor(t,r,n={}){super(r),this.code=t,this.context=n,this.name="ExtensionError"}},bt={FILE_PERMISSION_DENIED:"FILE_PERMISSION_DENIED",WORKSPACE_TOO_LARGE:"WORKSPACE_TOO_LARGE",CHUNK_LOAD_FAILED:"CHUNK_LOAD_FAILED"};function Qr(e){if(!e)return!1;let t=e.code||e?.name;return["EACCES","EPERM","EROFS","NoPermissions"].includes(t)}var ze=class extends ye{constructor(t,r,n={}){let{recoverable:i=!0,context:a={}}=n;super(bt.CHUNK_LOAD_FAILED,`Failed to load ${t}: ${r}`,{chunkName:t,recoverable:i,...a}),this.name="ChunkLoadError",this.chunkName=t,this.recoverable=i}};function en(e,t,r={}){let n=require("vscode"),{userFacing:i=!0}=r,a=t?.recoverable??!0;i&&!a&&n.window.showErrorMessage(`Explorer Dates: ${e} feature unavailable. Please reinstall or rebuild the extension.`)}Et.exports={ExtensionError:ye,ERROR_CODES:bt,isPermissionError:Qr,ChunkLoadError:ze,handleChunkFailure:en}});var He=E((da,Ct)=>{var wt="EXPLORER_DATES_FORCE_VSCODE_FS";function kt(e,t=process.env){return String(t?.[e]||"")==="1"}function be(e){let t=e&&typeof e=="object"?e:null,r=String(t?.scheme||(typeof e=="string"&&/^[a-z][a-z0-9+.-]*:/i.test(e)?e.split(":",1)[0]:"file")).toLowerCase(),n=String(t?.authority||""),i=t?.path||t?.fsPath||(typeof e=="string"?e.replace(/^[a-z][a-z0-9+.-]*:\/\//i,""):"");return{scheme:r,authority:n,path:String(i||"")}}function tn({uri:e,isWeb:t=!1,remoteName:r="",forceWorkspaceFs:n=kt(wt)}={}){let i=be(e),a=i.scheme!=="file",o=!!t,s=!!r,c=!!(n||o||s||a);return{scheme:i.scheme,authority:i.authority,isFileScheme:!a,isVirtual:a,isBrowser:o,isRemote:s,forceWorkspaceFs:!!n,filesystem:c?"workspace.fs":"node.fs",provider:a?i.scheme==="github"||i.scheme==="vscode-vfs"?"github":"virtual":"filesystem"}}function Dt({uri:e,platform:t=process.platform,caseSensitive:r}={}){return typeof r=="boolean"?r:be(e).scheme!=="file"?!0:t!=="win32"}function rn(e,t={}){let r=be(e),n=r.path.replace(/\\/g,"/").replace(/\/+/g,"/"),i=`${r.scheme}://${r.authority}${n}`;return Dt({uri:e,...t})?i:i.toLowerCase()}function Ue(e){if(e instanceof Date){let t=e.getTime();return Number.isFinite(t)?t:null}if(typeof e=="number")return Number.isFinite(e)?e:null;if(typeof e=="string"&&e.trim()){let t=Date.parse(e);return Number.isFinite(t)?t:null}return null}function nn(e){if(!e||typeof e!="object")return null;let t=Ue(e.mtime),r=Ue(e.ctime);return{...e,mtimeMs:t,ctimeMs:r}}Ct.exports={FORCE_WORKSPACE_FS_ENV:wt,envFlag:kt,getUriParts:be,getEnvironmentContract:tn,isCaseSensitive:Dt,resourceIdentity:rn,normalizeTimestamp:Ue,normalizeStat:nn}});var K=E((fa,vt)=>{function an(){return typeof Date=="function"&&Date.now?Date.now():16409952e5}function St(e){return!!(e&&typeof e=="object"&&typeof e.getTime=="function")}function on(e){if(St(e))return e;if(typeof e=="number")return new Date(e);if(typeof e=="string"){let t=Date.parse(e);return isNaN(t)?new Date:new Date(t)}return new Date}function B(e=""){return e?e.replace(/\\/g,"/"):""}function sn(e=""){let t=B(e);return t?t.split("/").filter(Boolean):[]}function Tt(e=""){let t=sn(e);return t.length?t[t.length-1]:""}function cn(e=""){let t=Tt(e),r=t.lastIndexOf(".");return r<=0?"":t.substring(r).toLowerCase()}function ln(e=""){let t=B(e),r=t.lastIndexOf("/");return r===-1?"":t.substring(0,r)}function un(...e){return B(e.filter(Boolean).join("/")).replace(/\/+/g,"/")}function hn(e=""){return B(e).toLowerCase()}function dn(e=""){if(!e)return"";if(typeof e=="string")return e;if(typeof e.fsPath=="string"&&e.fsPath.length>0)return e.fsPath;if(typeof e.path=="string"&&e.path.length>0)return e.path;if(typeof e.toString=="function")try{return e.toString(!0)}catch{return e.toString()}return String(e)}function fn(e="",t=""){let r=B(e),n=B(t);return r&&n.startsWith(r)?n.substring(r.length).replace(/^\/+/,""):n}vt.exports={ensureDate:on,isDateLike:St,getCurrentTimestamp:an,normalizePath:B,getFileName:Tt,getExtension:cn,getDirectory:ln,joinPath:un,getCacheKey:hn,getUriPath:dn,getRelativePath:fn}});var Ft=E((exports,module)=>{var chunk=null;try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){try{chunk=dynamicRequire("../chunks/utils-shared-chunk")}catch{}try{chunk||(chunk=dynamicRequire("./chunks/utils-shared-chunk"))}catch{}try{chunk||(chunk=dynamicRequire("../chunks/date-helpers-chunk"))}catch{}try{chunk||(chunk=dynamicRequire("./chunks/date-helpers-chunk"))}catch{}}}catch{}if(chunk&&(chunk.ensureDate||chunk.isDateLike||chunk.getCurrentTimestamp))module.exports={ensureDate:chunk.ensureDate,isDateLike:chunk.isDateLike,getCurrentTimestamp:chunk.getCurrentTimestamp};else{let e=function(){return typeof Date=="function"&&Date.now?Date.now():16409952e5},t=function(n){return!!(n&&typeof n=="object"&&typeof n.getTime=="function")},r=function(n){if(t(n))return n;if(typeof n=="number")return new Date(n);if(typeof n=="string"){let i=Date.parse(n);return isNaN(i)?new Date:new Date(i)}return new Date};getCurrentTimestamp=e,isDateLike=t,ensureDate=r,module.exports={ensureDate:r,isDateLike:t,getCurrentTimestamp:e}}var getCurrentTimestamp,isDateLike,ensureDate});var $e=E((ga,xt)=>{var C=require("vscode"),{isWebEnvironment:At}=J(),{normalizePath:gn}=ce(),{ExtensionError:mn,ERROR_CODES:pn,isPermissionError:yn}=_t(),{getEnvironmentContract:bn,normalizeStat:En,FORCE_WORKSPACE_FS_ENV:_n}=He(),Q;try{let e=K();e&&(Q=e.ensureDate)}catch{}Q||(Q=Ft().ensureDate);var Rt=typeof process<"u"&&process.env?process.env:{},Pt=Rt.VSCODE_WEB==="true"||At(),T=null;if(!Pt)try{T=require("fs").promises}catch{T=null}var Ee=class{constructor(){this.isWeb=Pt||At()}q(t){try{return bn({uri:this.E(t),isWeb:this.isWeb,remoteName:C.env?.remoteName,forceWorkspaceFs:Rt[_n]==="1"}).filesystem==="workspace.fs"}catch{return!1}}x(t){if(!t)return"";if(typeof t=="string")return t;if(t&&typeof t=="object"&&typeof t.fsPath=="string")return t.fsPath;if(t&&typeof t=="object"&&typeof t.path=="string")return t.path;if(typeof t=="object"){if(typeof t.fsPath=="string")return t.fsPath;if(typeof t.path=="string")return t.path}return String(t)}E(t){if(t&&typeof t=="object"&&typeof t.scheme=="string"&&typeof t.path=="string")return t;if(typeof t=="string"){let r=t.trim(),n=/^[a-zA-Z]:[\\/]/.test(r);if(/^[a-zA-Z][a-zA-Z0-9+.-]*:/.test(r)&&!n){let a=C.Uri.parse(r);if(a.scheme&&a.scheme!=="file")return a}return C.Uri.file(t)}if(t&&typeof t=="object"){if(t.uri&&t.uri!==t)try{return this.E(t.uri)}catch{}if(this.isWeb&&typeof t.scheme=="string"&&typeof t.path=="string")return C.Uri.from({scheme:t.scheme,authority:t.authority||"",path:t.path||"",query:t.query||"",fragment:t.fragment||""});if(typeof t.fsPath=="string"&&t.fsPath.length>0)return C.Uri.file(t.fsPath);if(typeof t.path=="string"&&t.path.length>0)return this.isWeb&&typeof t.scheme=="string"&&t.scheme!=="file"?C.Uri.from({scheme:t.scheme,authority:t.authority||"",path:t.path,query:t.query||"",fragment:t.fragment||""}):C.Uri.file(t.path);if(typeof t.href=="string"&&t.href.length>0)return C.Uri.parse(t.href);if(typeof t.scheme=="string")return C.Uri.from({scheme:t.scheme,authority:t.authority||"",path:t.path||t.fsPath||"",query:t.query||"",fragment:t.fragment||""});if(typeof t.toString=="function")try{let r=t.toString(!0);if(r&&r!=="[object Object]")return C.Uri.parse(r)}catch{let r=t.toString();if(r&&r!=="[object Object]")return C.Uri.parse(r)}}throw new Error(`Unsupported target type: ${typeof t}`)}async stat(t){let r=this.q(t);if(!this.isWeb&&T&&!r)return T.stat(this.x(t));let n=this.E(t),i=await C.workspace.fs.stat(n),a=En(i);return{...a,mtime:a.mtimeMs===null?Q(i.mtime):new Date(a.mtimeMs),ctime:a.ctimeMs===null?Q(i.ctime):new Date(a.ctimeMs),birthtime:a.ctimeMs===null?Q(i.ctime):new Date(a.ctimeMs),isFile:()=>i.type===C.FileType.File,isDirectory:()=>i.type===C.FileType.Directory}}async readFile(t,r="utf8"){let n=this.q(t);if(!this.isWeb&&T&&!n)return T.readFile(this.x(t),r);let i=this.E(t),a=await C.workspace.fs.readFile(i);return r===null||r==="binary"?a:new TextDecoder(r).decode(a)}async writeFile(t,r,n="utf8"){let i=this.x(t);try{let a=this.q(t);if(!this.isWeb&&T&&!a)return T.writeFile(i,r,n);let o=this.E(t),s=typeof r=="string"?new TextEncoder().encode(r):r;await C.workspace.fs.writeFile(o,s)}catch(a){this.ze("write file",i,a)}}async rename(t,r,n={overwrite:!1}){let i=this.x(t),a=this.x(r);try{let o=this.q(t)||this.q(r);if(!this.isWeb&&T&&!o)return T.rename(i,a);if(typeof C.workspace.fs.rename=="function")await C.workspace.fs.rename(this.E(t),this.E(r),n);else if(this.E(t).scheme==="file"&&this.E(r).scheme==="file")await(T||require("fs").promises).rename(i,a);else throw new Error("The active filesystem provider cannot rename report output.")}catch(o){this.ze("rename file",`${i} -> ${a}`,o)}}async mkdir(t,r={recursive:!0}){let n=this.x(t);try{let i=this.q(t);if(!this.isWeb&&T&&!i)return T.mkdir(n,r);let a=this.E(t);await C.workspace.fs.createDirectory(a)}catch(i){this.ze("create directory",n,i)}}async readdir(t,r={withFileTypes:!1}){let n=this.q(t);if(!this.isWeb&&T&&!n)return T.readdir(this.x(t),r);let i=this.E(t),a=await C.workspace.fs.readDirectory(i);return r.withFileTypes?a.map(([o,s])=>({name:o,isDirectory:()=>s===C.FileType.Directory,isFile:()=>s===C.FileType.File})):a.map(([o])=>o)}async delete(t,r={recursive:!1}){let n=this.q(t);if(!this.isWeb&&T&&!n){let a=this.x(t);return r.recursive?T.rm?T.rm(a,r):T.rmdir(a,r):T.unlink(a)}let i=this.E(t);await C.workspace.fs.delete(i,r)}async exists(t){try{return await this.stat(t),!0}catch{return!1}}async ensureDirectory(t){let r=gn(this.x(t));await this.mkdir(r,{recursive:!0})}ze(t,r,n){throw yn(n)?new mn(pn.FILE_PERMISSION_DENIED,`Permission denied while attempting to ${t}`,{path:r,code:n.code}):n}},wn=new Ee;xt.exports={FileSystemAdapter:Ee,fileSystem:wn}});var I=E((ma,It)=>{var ee=typeof process<"u"&&process.env?process.env:{},kn=12e4,Dn=1e4,Cn=1440*60*1e3,Sn=2,Tn=["Ja","Fe","Mr","Ap","My","Jn","Jl","Au","Se","Oc","No","De"],vn=Number(ee.EXPLORER_DATES_DECORATION_POOL_SIZE||2048),Fn=Number(ee.EXPLORER_DATES_FLYWEIGHT_CACHE_SIZE||4096),An=Number(ee.EXPLORER_DATES_WORKSPACE_BALANCED_THRESHOLD||15e3),Rn=Number(ee.EXPLORER_DATES_WORKSPACE_LARGE_THRESHOLD||25e4),Mt=Number(ee.EXPLORER_DATES_WORKSPACE_EXTREME_THRESHOLD||4e5),Pn=Number(ee.EXPLORER_DATES_WORKSPACE_SCAN_MAX_RESULTS||Math.min(Mt+1,50001)),xn={ADVANCED_CACHE:"explorerDates.advancedCache",ADVANCED_CACHE_METADATA:"explorerDates.advancedCacheMetadata",TEMPLATE_STORE:"explorerDates.templates",WEB_GIT_NOTICE:"explorerDates.webGitNotice"},Mn="explorerDatesChunks",In="__explorerDatesChunks";It.exports={DEFAULT_CACHE_TIMEOUT:kn,DEFAULT_MAX_CACHE_SIZE:Dn,DEFAULT_PERSISTENT_CACHE_TTL:Cn,DEFAULT_DECORATION_POOL_SIZE:vn,DEFAULT_FLYWEIGHT_CACHE_SIZE:Fn,MAX_BADGE_LENGTH:Sn,MONTH_ABBREVIATIONS:Tn,WORKSPACE_SCALE_BALANCED_THRESHOLD:An,WORKSPACE_SCALE_LARGE_THRESHOLD:Rn,WORKSPACE_SCALE_EXTREME_THRESHOLD:Mt,WORKSPACE_SCAN_MAX_RESULTS:Pn,GLOBAL_STATE_KEYS:xn,WEB_CHUNK_GLOBAL_KEY:Mn,LEGACY_WEB_CHUNK_GLOBAL_KEY:In}});var Be=E((pa,Lt)=>{var{MAX_BADGE_LENGTH:Wt}=I();function Wn(e=0,t="auto"){let r=typeof e=="number"&&!Number.isNaN(e)?e:0;if(t==="bytes")return`~${r}B`;let n=r/1024;if(t==="kb")return`~${n.toFixed(1)}K`;let i=n/1024;return t==="mb"?`~${i.toFixed(1)}M`:r<1024?`~${r}B`:n<1024?`~${Math.round(n)}K`:`~${i.toFixed(1)}M`}function Ln(e){if(e)return e.length>Wt?e.substring(0,Wt):e}Lt.exports={formatFileSize:Wn,trimBadge:Ln}});var q=E((ya,Ot)=>{var te="__explorerDatesLogger",re=class{constructor(){this.we=null}ke(t,r){if(this.we&&typeof this.we[t]=="function")try{return this.we[t](...r)}catch{}switch(t){case"debug":break;case"info":break;case"warn":break;case"error":break;default:break}}debug(...t){return this.ke("debug",t)}info(...t){return this.ke("info",t)}warn(...t){return this.ke("warn",t)}error(...t){return this.ke("error",t)}Zr(t){this.we=t}};function On(){return typeof global<"u"?(global[te]||(global[te]=new re),global[te]):typeof globalThis<"u"?(globalThis[te]||(globalThis[te]=new re),globalThis[te]):(Ke||(Ke=new re),Ke)}var je=class extends re{},Ke=null;Ot.exports={Logger:je,getLogger:On}});var Ve=E((exports,module)=>{var{getLogger}=q(),env=typeof process<"u"&&process.env?process.env:{};function createFallbackVscodeMinimal(){return{workspace:{workspaceFolders:[],getConfiguration:()=>({get:()=>{},async update(){},inspect:()=>({defaultValue:void 0,globalValue:void 0,workspaceValue:void 0,workspaceFolderValue:void 0})})},ConfigurationTarget:{Global:1,Workspace:2,WorkspaceFolder:3}}}function resolveVscodeMinimal(){try{return require("vscode")}catch{return createFallbackVscodeMinimal()}}var MinimalSettingsCoordinator=class{constructor(t={}){this.qt=t.defaultSection||"explorerDates",this.De=new Map,this.dt=new Map,this.Jr=Number(env.EXPLORER_DATES_LOCK_WAIT_WARN_MS||1e3),this._logger=getLogger()}zt(t,r){let i=(this.De.get(t)||Promise.resolve()).then(()=>r()),a=i.catch(()=>{});return this.De.set(t,a),i.finally(()=>{this.De.get(t)===a&&this.De.delete(t)}),i}Ue(t,r){return resolveVscodeMinimal().workspace.getConfiguration(t||void 0,r)}se(t,r){let n=r||this.qt;return n?t.startsWith(`${n}.`)?{section:n,key:t.slice(n.length+1),fullKey:t}:t.includes(".")?{section:void 0,key:t,fullKey:t}:{section:n,key:t,fullKey:`${n}.${t}`}:{section:void 0,key:t,fullKey:t}}async updateSetting(t,r,n={}){return this.zt(this.se(t,n.section).fullKey,async()=>{let i=this.se(t,n.section),a=this.Ue(i.section,n.resource);try{let o=this.Ut(n.scope,n.resource);return await a.update(i.key,r,o),{key:i.fullKey,updated:!0}}catch(o){try{this._logger.warn(`Configuration update failed for ${i.fullKey}: ${o&&o.message}`)}catch{}return{key:i.fullKey,updated:!1,error:o}}})}async applySettings(t,r={}){let n=Array.isArray(t)?t:Object.entries(t).map(([o,s])=>({key:o,value:s})),i=[];for(let o of n)try{i.push(await this.updateSetting(o.key,o.value,r))}catch(s){i.push({key:this.se(o.key,r.section).fullKey,updated:!1,error:s})}let a=i.filter(o=>o&&o.error);if(a.length>0){let o=a.map(c=>`${c.key}: ${c.error&&c.error.message?c.error.message:String(c.error)}`),s=new Error(`Failed to apply ${a.length} setting(s): ${o.join("; ")}`);throw s.details=a,s}return i}Ut(t,r){return t&&t!=="auto"?this.Ht(t)||resolveVscodeMinimal().ConfigurationTarget.Workspace:r?resolveVscodeMinimal().ConfigurationTarget.WorkspaceFolder:resolveVscodeMinimal().workspace.workspaceFolders&&resolveVscodeMinimal().workspace.workspaceFolders.length>0?resolveVscodeMinimal().ConfigurationTarget.Workspace:resolveVscodeMinimal().ConfigurationTarget.Global}Ht(t){switch(t){case"user":return resolveVscodeMinimal().ConfigurationTarget.Global;case"workspace":return resolveVscodeMinimal().ConfigurationTarget.Workspace;case"workspaceFolder":return resolveVscodeMinimal().ConfigurationTarget.WorkspaceFolder;default:return}}getValue(t,r={}){let{section:n,resource:i}=r||{},a=this.se(t,n);return this.Ue(a.section,i).get(a.key)}inspect(t,r={}){let{section:n,resource:i}=r||{},a=this.se(t,n);return this.Ue(a.section,i).inspect(a.key)}async clearSetting(t,r={}){return this.updateSetting(t,void 0,r)}getLockWaitStats(){let t={};for(let[r,n]of this.dt.entries())t[r]={...n};return t}resetLockWaitStats(){this.dt.clear()}},cachedCoordinator=null;function getSettingsCoordinator(options){if(!cachedCoordinator||options&&options.forceNew){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=null;try{e=dynamicRequire("../chunks/settings-coordinator-impl-chunk")}catch{}try{e||(e=dynamicRequire("../chunks/settingsCoordinator-impl-chunk"))}catch{}if(e&&typeof e.createSettingsCoordinatorImpl=="function")return cachedCoordinator=e.createSettingsCoordinatorImpl(options),cachedCoordinator}}catch{}try{let{WEB_CHUNK_GLOBAL_KEY:e,LEGACY_WEB_CHUNK_GLOBAL_KEY:t}=I(),r=typeof globalThis<"u"&&(globalThis[e]||globalThis[t])||null;if(r&&r.settingsCoordinatorImpl&&typeof r.settingsCoordinatorImpl.createSettingsCoordinatorImpl=="function")return cachedCoordinator=r.settingsCoordinatorImpl.createSettingsCoordinatorImpl(options),cachedCoordinator}catch{}cachedCoordinator=new MinimalSettingsCoordinator(options)}return cachedCoordinator}module.exports={getSettingsCoordinator,MinimalSettingsCoordinator}});var Ze=E((ba,Ut)=>{var{normalizePath:Ge,getUriPath:Nn}=ce(),{getLogger:qn}=q(),le=typeof process<"u"&&process.env?process.env:{},zn=qn(),ue=240,Xe=255,Nt=/[\x00-\x1f\x7f<>:"|?*]/g,Un=/[\x00-\x1f\x7f<>:"|?*]/,Hn=[/\.\./,/\.\.[\\/]/,/[\\/]\.\./,/^\.\.$/,/^\.\.[\\/]/,/[\\/]\.\.$/],qt=new Set(["CON","PRN","AUX","NUL","COM1","COM2","COM3","COM4","COM5","COM6","COM7","COM8","COM9","LPT1","LPT2","LPT3","LPT4","LPT5","LPT6","LPT7","LPT8","LPT9"]),zt=new Set([".exe",".scr",".bat",".cmd",".pif",".vbs",".js",".jar",".com",".msi",".dll",".dmg",".pkg",".deb",".rpm"]),$n=new Set([".js",".jsx",".ts",".tsx",".mjs",".cjs",".py",".rb",".rs",".go",".php",".java",".kt",".swift",".cs",".c",".cpp",".h",".hpp",".html",".css",".scss",".less",".json",".jsonc",".md",".mdx",".txt",".sh",".bash",".yml",".yaml"]),Bn=()=>le.EXPLORER_DATES_TEST_MODE==="1"||le.NODE_ENV==="test"||le.VSCODE_TEST==="1"?"test":le.EXPLORER_DATES_DEV_MODE==="1"||le.NODE_ENV==="development"?"development":"production",ne=class{static hasPathTraversal(t){let r=this.V(t);if(!r||typeof r!="string")return!1;let n=Ge(r);return Hn.some(i=>i.test(n))}static hasDangerousChars(t){let r=this.V(t);return!r||typeof r!="string"?!1:Un.test(r)}static isWindowsReservedName(t){if(!t||typeof t!="string")return!1;let r=t.split(".")[0].toUpperCase();return qt.has(r)}static isSuspiciousExtension(t,r={}){let{workspaceContext:n=!0}=r;if(!t||typeof t!="string")return!1;let i=t.toLowerCase(),a=i.startsWith(".")?i:`.${i}`;return n&&$n.has(a)?!1:zt.has(a)}static isPathTooLong(t){let r=this.V(t);return!r||typeof r!="string"?!1:r.length>ue}static isFilenameTooLong(t){return!t||typeof t!="string"?!1:t.length>Xe}static validatePath(t,r={}){let{allowSuspiciousExtensions:n=!1,allowWindowsReservedNames:i=!1,strictLength:a=!0,workspaceContext:o=!0}=r,s=this.V(t),c=[],u=[];if(!s||typeof s!="string")return{isValid:!1,path:s,issues:["Invalid or empty path"],warnings:[],isSafe:!1};this.hasPathTraversal(s)&&c.push("Path contains directory traversal attempts"),this.hasDangerousChars(s)&&c.push("Path contains dangerous characters"),a&&this.isPathTooLong(s)&&c.push(`Path exceeds maximum length (${ue})`);let l=s.split(/[/\\]/).pop()||"";a&&this.isFilenameTooLong(l)&&c.push(`Filename exceeds maximum length (${Xe})`),!i&&this.isWindowsReservedName(l)&&u.push("Filename is a Windows reserved name");let d=l.includes(".")?l.split(".").pop():"";return!n&&this.isSuspiciousExtension(d,{workspaceContext:o})&&u.push("File extension is potentially suspicious"),{isValid:c.length===0,path:s,filename:l,extension:d,issues:c,warnings:u,isSafe:c.length===0&&u.length===0}}static sanitizePath(t,r={}){let{replacementChar:n="_",preserveExtension:i=!0}=r,a=this.V(t);if(!a||typeof a!="string")return"";a=a.replace(/\x00/g,"");let o=a.startsWith("/"),s=Ge(a).split("/").filter(Boolean),c=[];for(let u of s){if(u===".."){c.length>0&&c.pop();continue}u!=="."&&c.push(u)}if(a=(o?"/":"")+c.join("/"),a=a.replace(Nt,n),i){let u=a.split("/"),l=u[u.length-1];if(l&&this.isWindowsReservedName(l)){let d=l.split(".");d[0]=d[0]+"_safe",u[u.length-1]=d.join("."),a=u.join("/")}}return a.length>ue&&(a=a.substring(0,ue),zn.warn("Path truncated due to length:",a)),a}static isWithinBoundaries(t,r=[]){let n=this.V(t);if(!n||!Array.isArray(r)||r.length===0)return!1;let i=n.split("/").filter(Boolean),a=[];for(let s of i)s===".."?a.length>0&&a.pop():s!=="."&&a.push(s);let o="/"+a.join("/");return r.some(s=>{let c=Ge(s);return o.startsWith(c)})}static validateRegexPattern(t){if(!t||typeof t!="string")return{isValid:!1,issue:"Invalid pattern"};let r=[/\([^)]*\+[^)]*\)\+/,/\([^)]*\*[^)]*\)\*/,/\([^)]*\+[^)]*\)\*/,/\([^)]*\*[^)]*\)\+/,/\+.*\*|{\d+,}.*\*/,/\([^|]*\|[^)]*\)\*/];for(let n of r)if(n.test(t))return{isValid:!1,issue:"Pattern may cause catastrophic backtracking (ReDoS)"};try{return new RegExp(t),{isValid:!0}}catch(n){return{isValid:!1,issue:`Invalid regex syntax: ${n.message}`}}}static V(t){if(!t)return"";if(typeof t=="string")return t;try{return Nn(t)}catch{return String(t)}}},Ye=class{static validateFileUri(t,r=[]){if(!t||typeof t!="object")return{isValid:!1,issue:"Invalid URI object"};if(t.scheme!=="file"&&t.scheme!=="vscode-vfs")return{isValid:!1,issue:`Unsupported URI scheme: ${t.scheme}`};let n=ne.validatePath(t);return n.isValid?r.length>0&&!ne.isWithinBoundaries(t,r)?{isValid:!1,issue:"Path is outside allowed workspace boundaries"}:{isValid:!0,warnings:n.warnings}:{isValid:!1,issue:`Path validation failed: ${n.issues.join(", ")}`}}static validateExclusionPatterns(t){if(!Array.isArray(t))return{isValid:!1,issue:"Patterns must be an array"};let r=[],n=[];for(let i of t){if(typeof i!="string"){n.push(`Invalid pattern type: ${typeof i}`);continue}let a=i.replace(/\./g,"\\.").replace(/\*/g,".*").replace(/\?/g,"."),o=ne.validateRegexPattern(a);r.push({pattern:i,isValid:o.isValid,issue:o.issue}),o.isValid||n.push(`Pattern "${i}": ${o.issue}`)}return{isValid:n.length===0,results:r,issues:n}}};Ut.exports={SecurityValidator:ne,SecureFileOperations:Ye,detectSecurityEnvironment:Bn,MAX_SAFE_PATH_LENGTH:ue,MAX_SAFE_FILENAME_LENGTH:Xe,DANGEROUS_PATH_CHARS:Nt,WINDOWS_RESERVED_NAMES:Array.from(qt),SUSPICIOUS_EXTENSIONS:Array.from(zt)}});var he=E((Ea,Kt)=>{var $t=typeof process<"u"&&process.env?process.env:{},Ht="[ExplorerDates][WebDiag]",Je="__explorerDatesWebDiagnostics",_e;function Kn(){try{let e=require("vscode");return e?.env?.uiKind===e?.UIKind?.Web}catch{return $t.VSCODE_WEB==="true"}}function P(){return _e!==void 0||(_e=$t.EXPLORER_DATES_WEB_DIAG==="1"||Kn()),_e}function Bt(){return{enabled:P(),logs:[],logOnce:new Set,commandsRegistered:new Set,commandsInvoked:[],errors:[],chunkLoads:[],provider:{created:!1,registered:!1,hydrated:!1,decorationCalls:0,refreshCalls:0,lastEvent:null}}}var jn=Bt();function x(){return typeof globalThis<"u"?(globalThis[Je]||(globalThis[Je]=Bt()),globalThis[Je]):jn}function Vn(e){try{return JSON.stringify(e)}catch{return String(e)}}function W(e,t,r){if(!P())return;let n=x(),i={ts:new Date().toISOString(),level:e,message:t,meta:r||null};n.logs.push(i),n.logs.length>400&&n.logs.shift();let a=r?`${Ht} ${t} ${Vn(r)}`:`${Ht} ${t}`,o=console[e]||console.info;try{o(a)}catch{}}function Gn(e,t,r,n){if(!P())return;let i=x();i.logOnce.has(e)||(i.logOnce.add(e),W(t,r,n))}function Xn(e){if(!P())return;x().commandsRegistered.add(e),W("info","Command registered",{commandId:e})}function Yn(e){if(!P())return;x().commandsInvoked.push({commandId:e,ts:Date.now()}),W("info","Command invoked",{commandId:e})}function Zn(e,t,r,n,i){if(!P())return;let a=n||(t?"behavioral-success":"unhandled-command-failure"),o=r?{name:r.name||"Error",message:r.message||String(r),code:r.code||null}:null;t?W("info","Command completed",{commandId:e,outcomeCategory:a}):(W("error","Command failed",{commandId:e,outcomeCategory:a,error:o,errorContext:i||null}),x().errors.push({commandId:e,outcomeCategory:a,error:o,errorContext:i||null}))}function Jn(e,t,r){if(!P())return;x().chunkLoads.push({chunkName:e,stage:t,ts:Date.now(),error:r?r.message||String(r):null}),W(r?"warn":"info",`Chunk ${t}`,{chunkName:e,error:r?.message})}function Qn(e,t){if(!P())return;let r=x();r.provider.lastEvent={event:e,ts:Date.now(),meta:t||null},e==="created"&&(r.provider.created=!0),e==="registered"&&(r.provider.registered=!0),e==="hydrated"&&(r.provider.hydrated=!0),W("info",`Provider ${e}`,t)}function ei(){if(!P())return;let e=x();e.provider.decorationCalls+=1,e.provider.decorationCalls<=3&&W("info","Decoration request observed",{count:e.provider.decorationCalls})}function ti(){if(!P())return;let e=x();e.provider.refreshCalls+=1}Kt.exports={isWebDiagnosticsEnabled:P,getWebDiagnosticsState:x,diagLog:W,diagLogOnce:Gn,recordCommandRegistration:Xn,recordCommandInvocation:Yn,recordCommandResult:Zn,recordChunkEvent:Jn,recordProviderEvent:Qn,recordDecorationCall:ei,recordRefreshCall:ti}});var nt=E((_a,Jt)=>{var we=require("vscode"),{normalizePath:tt,getRelativePath:ri}=ce(),{diagLogOnce:ni}=he(),{normalizeTimestamp:de,resourceIdentity:ii}=He(),ai={unknown:0,github:1,git:2,fs:3},et={low:1,medium:2,high:3};function L(e,t,r){try{return e?.get?e.get(t,r):r}catch{return r}}function oi(e){return{nowMinutes:Number(L(e,"freshnessBucketMinutesNow",60))||60,todayHours:Number(L(e,"freshnessBucketHoursToday",24))||24,twoDays:Number(L(e,"freshnessBucketDaysTwo",2))||2,oneWeek:Number(L(e,"freshnessBucketDaysWeek",7))||7}}function jt(e,t){if(!Number.isFinite(e)||e<0)return"unknown";let r=t.nowMinutes*60*1e3,n=t.todayHours*60*60*1e3,i=t.twoDays*24*60*60*1e3,a=t.oneWeek*24*60*60*1e3;return e<=r?"now":e<=n?"today":e<=i?"2d":e<=a?"1w":"stale"}function Vt(e){switch(e){case"now":return"now";case"today":return"today";case"2d":return"2d";case"1w":return"1w";case"stale":return"stale";default:return"unknown"}}function Gt(e){switch(e){case"fs":return"Filesystem";case"git":return"Git";case"github":return"GitHub";default:return"Unknown"}}function Xt(e){switch(e){case"now":return"!!";case"today":return"T";case"2d":return"2d";case"1w":return"1w";case"stale":return"~~";default:return"?"}}function si(e,t,r){let n=!!L(r,"freshnessShowUnknown",!0);if(e==="unknown"||t==="unknown")return n?"?":null;let i=Xt(e);return!i||i==="unknown"?n?"?":null:i}function ci(e){try{let t=de(e);return t===null?null:new Date(t).toISOString().replace("T"," ").replace("Z","")}catch{return null}}function li(e,t){if(!e)return;let r=L(t,"freshnessTooltipVerbosity","full"),n=L(t,"badge.sourceLabelMode","auto"),i=[],a=Vt(e.bucket),o=Gt(e.source);if(i.push(`Freshness: ${a}`),e.exactTimestamp){let u=ci(e.exactTimestamp);u&&i.push(`Exact time: ${u}`)}let s=e.source==="fs"&&e.confidence==="high";return(n==="always"||n!=="never"&&!s||n!=="never"&&r==="full")&&i.push(`Source: ${o}`),e.author&&i.push(`Author: ${e.author}`),e.message&&i.push(`Message: ${e.message}`),i.push(`Confidence: ${e.confidence}`),e.reason&&r==="full"&&i.push(`Reason: ${e.reason}`),i.join(` +`)}function ui(e,t,r){if(!Number.isFinite(t)||t<=0)return!1;let n=300*1e3;if(t>r+n)return!1;if(e==="file")return!0;let i=r-t,a=300*1e3,o=365*24*60*60*1e3*10;return!(io)}function rt({source:e,timestampMs:t,author:r,message:n,confidence:i,reason:a},o){if(!Number.isFinite(t))return{bucket:"unknown",source:e||"unknown",confidence:i||"low",reason:a||"no-timestamp"};let s=oi(o),c=Date.now()-t;return{bucket:jt(c,s),source:e,exactTimestamp:t,author:r||void 0,message:n||void 0,confidence:i,reason:a||void 0}}async function hi(e,t,r){let n=e?.scheme||"file",i=!!L(r,"freshnessAllowVirtualFs",!1);if(n!=="file"&&!i)return{freshness:null,reason:"fs-virtual-disabled"};let a=t?.mtimeMs??de(t?.mtime),o=Date.now();return Number.isFinite(a)?ui(n,a,o)?{freshness:rt({source:"fs",timestampMs:a,confidence:n==="file"?"high":"medium",reason:n==="file"?"fs-trust-high":"fs-trust-medium"},r),reason:null}:{freshness:null,reason:"fs-mtime-untrusted"}:{freshness:null,reason:"fs-mtime-missing"}}async function di(e,t,r){if(!t||typeof t.He!="function")return{freshness:null,reason:"git-provider-missing"};let n;try{n=await t.He(e)}catch(o){return{freshness:null,reason:`git-error:${o?.message||"unknown"}`}}let i=de(n?.timestampMs);return i===null||i<=0?{freshness:null,reason:n?.error||"git-no-timestamp"}:{freshness:rt({source:"git",timestampMs:i,author:n?.author||void 0,message:n?.message||void 0,confidence:"medium",reason:"git-recency"},r),reason:null}}function Yt(e){if(!e||(e.scheme||"")!=="github")return null;let n=tt(e.path||"").replace(/^\/+/,"").split("/").filter(Boolean);if(n.length<2)return null;let i=n[0],a=n[1],o=n.slice(2).join("/"),s=new URLSearchParams(e.query||""),c=s.get("ref")||s.get("branch")||"HEAD";return{owner:i,repo:a,filePath:o,ref:c}}function fi(e){let t=(e||"").indexOf("+");if(t===-1)return"HEAD";let r=e.slice(t+1);try{let n;if(typeof TextDecoder<"u"){let o=new Uint8Array(r.length/2);for(let s=0;s0)return a}catch{}return"HEAD"}function Zt(e){if(!e||e.scheme!=="vscode-vfs"||!String(e.authority||"").startsWith("github"))return null;let r=tt(e.path||"").replace(/^\/+/,"").split("/").filter(Boolean);if(r.length<2)return null;let n=r[0],i=r[1],a=r.slice(2).join("/"),o=fi(e.authority||"");return{owner:n,repo:i,filePath:a,ref:o}}function gi(e){try{let t=we.workspace.workspaceFolders||[];for(let r of t){let n=r?.uri?.scheme;if(n==="github"){let i=Yt(r.uri);if(!i)continue;let a=ri(r.uri.path||"",e?.path||"");return{...i,filePath:a}}if(n==="vscode-vfs"&&String(r?.uri?.authority||"").startsWith("github")){let i=Zt(r.uri);if(!i)continue;let o=tt(e?.path||"").replace(/^\/+/,"").split("/").filter(Boolean).slice(2).join("/");if(!o)continue;return{...i,filePath:o}}}}catch{}return null}async function mi(e,t){let r=Yt(e)||Zt(e)||gi(e);if(!r||!r.owner||!r.repo||!r.filePath)return{freshness:null,reason:"github-context-missing"};let n=`${r.owner}/${r.repo}@${r.ref}:${r.filePath}`,i=`https://api.github.com/repos/${r.owner}/${r.repo}/commits?path=${encodeURIComponent(r.filePath)}&sha=${encodeURIComponent(r.ref)}&per_page=1`,a={Accept:"application/vnd.github+json"};try{let y=we?.authentication&&typeof we.authentication.getSession=="function"?await we.authentication.getSession("github",["repo"],{createIfNone:!1}):null;y?.accessToken&&(a.Authorization=`Bearer ${y.accessToken}`)}catch{}if(typeof fetch!="function")return{freshness:null,reason:"github-fetch-unavailable"};let o;try{o=await fetch(i,{headers:a})}catch(y){return{freshness:null,reason:`github-fetch-error:${y?.message||"unknown"}`}}if(!o||!o.ok)return{freshness:null,reason:o?`github-http-${o.status}`:"github-no-response"};let s;try{s=await o.json()}catch{return{freshness:null,reason:"github-json-error"}}let c=Array.isArray(s)?s[0]:null,u=c?.commit||null,l=u?.author?.name||c?.author?.login||void 0,d=u?.message||void 0,h=de(u?.author?.date);return h===null?{freshness:null,reason:"github-no-timestamp"}:{freshness:rt({source:"github",timestampMs:h,author:l,message:d,confidence:"medium",reason:"github-commit"},t),reason:null,cacheKey:n}}function Qe(e,t){return!e||e==="auto"?!0:e==="unknown"?t==="unknown":e===t}async function pi({uri:e,stat:t,provider:r,config:n,workspaceKind:i}){let a=e?.scheme||"file",o=L(n,"freshnessSourcePolicy","auto"),s=[],c=Date.now();if(Qe(o,"fs")){let u=await hi(e,t,n);if(s.push({source:"fs",reason:u.reason||null}),u.freshness)return{...u.freshness,attempts:s}}if(Qe(o,"git")){let u=await di(e,r,n);if(s.push({source:"git",reason:u.reason||null}),u.freshness)return{...u.freshness,attempts:s}}if(Qe(o,"github")){let u=await mi(e,n);if(s.push({source:"github",reason:u.reason||null,cacheKey:u.cacheKey||null}),u.freshness)return{...u.freshness,attempts:s}}return ni("freshness-unknown","info","No trustworthy freshness source available",{scheme:a,workspaceKind:i||"unknown",attempts:s}),{bucket:"unknown",source:"unknown",confidence:"low",reason:"no-source",attempts:s,resolvedAt:c}}function yi(e,t){if(!e)return-1;if(!t)return 1;let r=et[e.confidence]||0,n=et[t.confidence]||0;if(r!==n)return r-n;let i=Number(e.exactTimestamp||0),a=Number(t.exactTimestamp||0);return i-a}Jt.exports={resolveFreshness:pi,formatBadge:si,formatTooltip:li,bucketFromAge:jt,formatBucketLabel:Vt,formatBadgeAge:Xt,formatSourceLabel:Gt,compareFreshness:yi,SOURCE_RANK:ai,CONFIDENCE_RANK:et,normalizeTimestamp:de,resourceIdentity:ii}});var er=E((wa,Qt)=>{var{normalizePath:bi}=ce(),ke="__root__",it=class{constructor(){this.g=new Map,this.M=new Map,this.o=0}get size(){return this.o}get bucketCount(){return this.g.size}clear(){this.g.clear(),this.M.clear(),this.o=0}get(t){if(!t)return;let r=this.M.get(t);if(!r)return;let n=this.g.get(r);if(!n){this.M.delete(t);return}return n.lastAccess=Date.now(),n.entries.get(t)}set(t,r,n={}){if(!t)return;let i=n.folderKey||this.$t(t),a=this.Bt(i),o=a.entries.has(t);a.entries.set(t,r),a.lastAccess=Date.now(),o||this.o++,this.M.set(t,i)}delete(t){if(!t)return!1;let r=this.M.get(t);if(!r)return!1;let n=this.g.get(r);if(!n)return this.M.delete(t),!1;let i=n.entries.delete(t);return i&&(this.o=Math.max(0,this.o-1),n.entries.size===0&&this.g.delete(r)),this.M.delete(t),i}*entries(){for(let t of this.g.values())yield*t.entries.entries()}*keys(){for(let t of this.g.values())yield*t.entries.keys()}*values(){for(let t of this.g.values())yield*t.entries.values()}[Symbol.iterator](){return this.entries()}enforceLimit(t=0,r){if(!t||this.o<=t)return 0;let n=Math.max(Math.floor(t*.2),this.o-t,1),i=0,a=Array.from(this.g.entries()).map(([o,s])=>({folderKey:o,bucket:s}));a.sort((o,s)=>(o.bucket.lastAccess||0)-(s.bucket.lastAccess||0));for(let{folderKey:o,bucket:s}of a){if(i>=n)break;if(!s.entries.size){this.g.delete(o);continue}let c=s.entries.size,u=n-i;if(c<=u){i+=this.Kt(o,s);continue}let l=Array.from(s.entries.entries());l.sort((h,g)=>(h[1].timestamp||0)-(g[1].timestamp||0));let d=Math.min(u,Math.max(1,Math.ceil(c*.5)));for(let h=0;h0&&r&&r.debug(`Hierarchical cache eviction removed ${i} entries (${this.o} remaining)`),i}Bt(t){return this.g.has(t)||this.g.set(t,{entries:new Map,lastAccess:Date.now()}),this.g.get(t)}Kt(t,r){if(!r)return 0;let n=r.entries.size;for(let i of r.entries.keys())this.M.delete(i);return this.g.delete(t),this.o=Math.max(0,this.o-n),n}$t(t){if(!t||typeof t!="string")return ke;let r=bi(t);if(!r)return ke;let n=r.lastIndexOf("/");return n===-1?ke:r.slice(0,n)||ke}};Qt.exports={HierarchicalDecorationCache:it}});var rr=E((ka,tr)=>{async function Ei(e,t,r){try{if(e.G)return e._logger?.debug?.(`\u26A0\uFE0F Cache bypass enabled - recalculating decoration for: ${r}`),null;if(e._advancedCache)try{let i=await e._advancedCache.get(t);if(i)return e._metrics.cacheHits++,e._logger?.debug?.(`\u{1F9E0} Advanced cache hit for: ${r}`),i}catch(i){e._logger?.debug?.(`Advanced cache error: ${i.message}`)}if(!e.e||typeof e.e.get!="function")return e._logger?.debug?.("getCachedDecoration: no memory cache available, falling back"),null;let n=e.e.get(t);if(n){if(n.forceRefresh){try{e.e.delete(t)}catch{}e._logger?.debug?.(`\u{1F6AB} Memory cache bypassed (forced refresh) for: ${r}`)}else if(Date.now()-n.timestampe.l)try{e.e.enforceLimit(e.l,e._logger)}catch{}let a={decoration:r,timestamp:Date.now()};i&&(a.uri=i);try{e.e.set(t,a)}catch{}try{typeof e.ce=="function"&&e.ce()}catch(o){e._logger?.debug?.("monitorCachePressure from store failed",o)}if(e._advancedCache)try{await e._advancedCache.set(t,r,{ttl:e.S}),e._logger?.debug?.(`\u{1F9E0} Stored in advanced cache: ${n}`)}catch(o){e._logger?.debug?.(`Failed to store in advanced cache: ${o.message}`)}try{typeof e.le=="function"&&e.le()}catch(o){e._logger?.debug?.("maybeExtendCacheTimeout from store failed",o)}}catch(a){e._logger?.debug?.("storeDecorationInCache failed",a)}}function wi(){class e{constructor(){this.r=null,this.n=new Map,this.o=0,this.$e=!1,this.hydrateInBackground()}get size(){return this.r?this.r.size:this.o}get bucketCount(){return this.r?this.r.bucketCount:0}clear(){if(this.r)return this.r.clear();this.n.clear(),this.o=0}get(r){return this.r?this.r.get(r):this.n.get(r)}set(r,n,i={}){if(this.r)return this.r.set(r,n,i);let a=this.n.has(r);this.n.set(r,n),a||this.o++}delete(r){if(this.r)return this.r.delete(r);let n=this.n.delete(r);return n&&(this.o=Math.max(0,this.o-1)),n}*entries(){if(this.r){yield*this.r.entries();return}yield*this.n.entries()}*keys(){if(this.r){yield*this.r.keys();return}yield*this.n.keys()}*values(){if(this.r){yield*this.r.values();return}yield*this.n.values()}[Symbol.iterator](){return this.entries()}enforceLimit(r=0,n){if(this.r)return this.r.enforceLimit(r,n);if(!r||this.o<=r)return 0;let i=0,o=Array.from(this.n.keys()).slice(0,Math.max(1,Math.ceil(this.o-r)));for(let s of o)this.n.delete(s),i++,this.o=Math.max(0,this.o-1);return i>0&&n&&n.debug(`LazyHierarchical cache eviction removed ${i} entries`),i}async jt(){if(!this.$e){this.$e=!0;try{let n=(await Promise.resolve().then(()=>R(er()))).HierarchicalDecorationCache;this.r=new n;for(let[i,a]of this.n.entries())this.r.set(i,a);this.n=null}catch{this.$e=!1}}}hydrateInBackground(){this.jt().catch(()=>{})}}return new e}tr.exports={getCachedDecoration:Ei,storeDecorationInCache:_i,createLazyHierarchicalDecorationCache:wi}});var nr=E((Da,ki)=>{ki.exports={migrationDetailsTitle:"Explorer Dates - Settings Migration",migrationDetailsHeader:"Settings Migration",gitAttributionWarning:"Explorer Dates: Git attribution badges are unavailable on VS Code for Web. Time-based decorations remain available.",noOverridesToDocument:"No overrides to document.",overrideNotesHeader:"# Explorer Dates Override Notes\\n\\n",analysisCommandsDisabled:"Explorer Dates analysis commands are disabled. Shortcuts like Ctrl+Shift+M/H/A will not work until you enable explorerDates.enableAnalysisCommands.",analysisEnableNow:"Enable Now",analysisEnablePartially:"Enable partially succeeded. Update explorerDates.enableAnalysisCommands in remaining workspace folders manually.",analysisEnableFailed:"Enable failed: update explorerDates.enableAnalysisCommands in workspace settings.",workspaceTemplatesDisabled:"Workspace templates are disabled. Enable explorerDates.enableWorkspaceTemplates to use this command.",workspaceTemplatesDisabledSave:"Workspace templates are disabled. Enable explorerDates.enableWorkspaceTemplates to save templates.",enterTemplateName:"Enter template name",enterTemplateDescription:"Enter description (optional)",failedToOpenTemplateManager:"Failed to open template manager: {0}",failedToSaveTemplate:"Failed to save template: {0}",reportingDisabled:"Reporting features are disabled. Enable explorerDates.enableExportReporting to generate reports.",failedToGenerateReport:"Failed to generate report: {0}",apiDisabled:"Explorer Dates API is disabled via settings.",failedToShowApiInformation:"Failed to show API information: {0}",failedToShowWorkspaceActivity:"Failed to show workspace activity: {0}",failedToShowPerformanceAnalytics:"Failed to show performance analytics: {0}",failedToShowCacheDebugInfo:"Failed to show cache debug info: {0}",noWorkspaceFolderOpen:"No workspace folder open",now:"now",minutes:"m",hours:"h",days:"d",weeks:"w",months:"mo",years:"y",justNow:"just now",minutesAgo:"{0} minute(s) ago",hoursAgo:"{0} hour(s) ago",daysAgo:"{0} day(s) ago",lastModified:"Last modified",refreshSuccess:"Date decorations refreshed",activationError:"Explorer Dates failed to activate",errorAccessingFile:"Error accessing file for decoration",clearTelemetryPrompt:"This will permanently delete locally-stored telemetry events for Explorer Dates. This action cannot be undone. Proceed?",clearTelemetryConfirm:"Clear Telemetry",clearTelemetryCancel:"Cancel",reportFormatDisabled:'Report format "{0}" is disabled. Allowed formats: {1}',reportDownloadTriggered:"Report download triggered in browser",selectReportTimeRangePlaceholder:"Select report time range",selectReportFormatPlaceholder:"Select report format",cleanupNoDeprecated:"\u2139\uFE0F No deprecated settings found to clean up.",showMigrationHistoryNoHistory:"No migration history found.",resetConfirmation:"This will reset all Explorer Dates settings to their default values. Are you sure?",resetConfirm:"Reset Settings",resetCancel:"Cancel",resetSuccess:"\u2705 Reset {0} settings to defaults.",validateNoIssues:"\u2705 Configuration is valid - no issues found!",validateFoundIssues:"Found {0} configuration issue(s). Would you like to see details?",validateShowDetails:"Show Details",validateDismiss:"Dismiss",migrationNotificationMessage:"Explorer Dates updated {0} setting(s) for compatibility. Your configuration has been preserved.",migrationViewChanges:"View Changes",migrationOpenSettings:"Open Settings",deprecatedPrompt:"Explorer Dates found {0} deprecated setting(s). Would you like to remove them?",deprecatedClean:"Clean Up Now",deprecatedKeep:"Keep Old Settings",deprecatedAskLater:"Ask Later",showFileLocation:"Show File Location",teamConfigCorrupted:"Explorer Dates team configuration file appears to be corrupted. Please check the .explorer-dates-profiles.json file or restore from backup.",appliedFromTeamProfile:'Applied {0} Explorer Dates settings from team profile "{1}".',documentedOverrides:"Documented Explorer Dates overrides in .vscode/explorer-dates-overrides.md",teamConfigMissingProfile:"Team configuration is missing an active profile.",ephemeralStorageEnospc:"Explorer Dates team configuration could not be saved because the disk is full.",ephemeralStorageGeneric:"Explorer Dates team configuration could not be saved because the workspace is read-only or permissions are restricted.",ephemeralStorageSuffix:"Changes will be kept in memory until VS Code restarts, so they may be lost."}});var ir=E((Ca,Di)=>{Di.exports={migrationDetailsTitle:"Explorer Dates - Migraci\xF3n de configuraci\xF3n",migrationDetailsHeader:"Migraci\xF3n de configuraci\xF3n",gitAttributionWarning:"Explorer Dates: Las insignias de atribuci\xF3n de Git no est\xE1n disponibles en VS Code para la Web. Las decoraciones basadas en tiempo siguen disponibles.",noOverridesToDocument:"No hay anulaciones para documentar.",overrideNotesHeader:"# Notas de anulaci\xF3n de Explorer Dates\\n\\n",analysisCommandsDisabled:"Los comandos de an\xE1lisis de Explorer Dates est\xE1n deshabilitados. Atajos como Ctrl+Shift+M/H/A no funcionar\xE1n hasta que habilites explorerDates.enableAnalysisCommands.",analysisEnableNow:"Habilitar ahora",analysisEnablePartially:"La activaci\xF3n se complet\xF3 parcialmente. Actualiza explorerDates.enableAnalysisCommands manualmente en las carpetas de trabajo restantes.",analysisEnableFailed:"Error al habilitar: actualiza explorerDates.enableAnalysisCommands en la configuraci\xF3n del espacio de trabajo.",workspaceTemplatesDisabled:"Las plantillas de espacio de trabajo est\xE1n deshabilitadas. Habilita explorerDates.enableWorkspaceTemplates para usar este comando.",workspaceTemplatesDisabledSave:"Las plantillas de espacio de trabajo est\xE1n deshabilitadas. Habilita explorerDates.enableWorkspaceTemplates para guardar plantillas.",enterTemplateName:"Introduce el nombre de la plantilla",enterTemplateDescription:"Introduce la descripci\xF3n (opcional)",failedToOpenTemplateManager:"Error al abrir el administrador de plantillas: {0}",failedToSaveTemplate:"Error al guardar la plantilla: {0}",reportingDisabled:"Las funciones de informes est\xE1n deshabilitadas. Habilita explorerDates.enableExportReporting para generar informes.",failedToGenerateReport:"Error al generar el informe: {0}",apiDisabled:"La API de Explorer Dates est\xE1 deshabilitada mediante la configuraci\xF3n.",failedToShowApiInformation:"Error al mostrar la informaci\xF3n de la API: {0}",failedToShowWorkspaceActivity:"Error al mostrar la actividad del espacio de trabajo: {0}",failedToShowPerformanceAnalytics:"Error al mostrar los an\xE1lisis de rendimiento: {0}",failedToShowCacheDebugInfo:"Error al mostrar la informaci\xF3n de depuraci\xF3n de la cach\xE9: {0}",noWorkspaceFolderOpen:"No hay ninguna carpeta de espacio de trabajo abierta",now:"ahora",minutes:"m",hours:"h",days:"d",weeks:"sem",months:"mes",years:"a",justNow:"justo ahora",minutesAgo:"hace {0} minuto(s)",hoursAgo:"hace {0} hora(s)",daysAgo:"hace {0} d\xEDa(s)",lastModified:"\xDAltima modificaci\xF3n",refreshSuccess:"Decoraciones de fecha actualizadas",activationError:"Explorer Dates no se pudo activar",errorAccessingFile:"Error al acceder al archivo para la decoraci\xF3n",clearTelemetryPrompt:"Esto eliminar\xE1 permanentemente los eventos de telemetr\xEDa almacenados localmente para Explorer Dates. Esta acci\xF3n no se puede deshacer. \xBFContinuar?",clearTelemetryConfirm:"Borrar telemetr\xEDa",clearTelemetryCancel:"Cancelar",reportFormatDisabled:'El formato de informe "{0}" est\xE1 deshabilitado. Formatos permitidos: {1}',reportDownloadTriggered:"Descarga del informe iniciada en el navegador",selectReportTimeRangePlaceholder:"Seleccionar rango de tiempo del informe",selectReportFormatPlaceholder:"Seleccionar formato del informe",cleanupNoDeprecated:"\u2139\uFE0F No se encontraron configuraciones obsoletas para limpiar.",showMigrationHistoryNoHistory:"No se encontr\xF3 historial de migraci\xF3n.",resetConfirmation:"Esto restablecer\xE1 todas las configuraciones de Explorer Dates a sus valores predeterminados. \xBFEst\xE1s seguro?",resetConfirm:"Restablecer configuraciones",resetCancel:"Cancelar",resetSuccess:"\u2705 Se restablecieron {0} configuraciones a los valores predeterminados.",validateNoIssues:"\u2705 La configuraci\xF3n es v\xE1lida - no se encontraron problemas.",validateFoundIssues:"Se encontraron {0} problema(s) de configuraci\xF3n. \xBFDeseas ver los detalles?",validateShowDetails:"Mostrar detalles",validateDismiss:"Descartar",migrationNotificationMessage:"Explorer Dates actualiz\xF3 {0} configuraci\xF3n(es) por compatibilidad. Tu configuraci\xF3n se ha conservado.",migrationViewChanges:"Ver cambios",migrationOpenSettings:"Abrir configuraciones",deprecatedPrompt:"Explorer Dates encontr\xF3 {0} configuraci\xF3n(es) obsoleta(s). \xBFDeseas eliminarlas?",deprecatedClean:"Limpiar ahora",deprecatedKeep:"Mantener configuraciones antiguas",deprecatedAskLater:"Preguntar m\xE1s tarde",showFileLocation:"Mostrar ubicaci\xF3n del archivo",teamConfigCorrupted:"El archivo de configuraci\xF3n de equipo de Explorer Dates parece estar da\xF1ado. Verifica el archivo .explorer-dates-profiles.json o restaura desde una copia de seguridad.",appliedFromTeamProfile:'Se aplicaron {0} configuraciones de Explorer Dates desde el perfil de equipo "{1}".',documentedOverrides:"Se documentaron las anulaciones de Explorer Dates en .vscode/explorer-dates-overrides.md",teamConfigMissingProfile:"La configuraci\xF3n del equipo no tiene un perfil activo.",ephemeralStorageEnospc:"No se pudo guardar la configuraci\xF3n de equipo de Explorer Dates porque el disco est\xE1 lleno.",ephemeralStorageGeneric:"No se pudo guardar la configuraci\xF3n de equipo de Explorer Dates porque el espacio de trabajo es de solo lectura o los permisos est\xE1n restringidos.",ephemeralStorageSuffix:"Los cambios se mantendr\xE1n en memoria hasta que VS Code se reinicie, por lo que podr\xEDan perderse."}});var ar=E((Sa,Ci)=>{Ci.exports={migrationDetailsTitle:"Explorer Dates - Migration des param\xE8tres",migrationDetailsHeader:"Migration des param\xE8tres",gitAttributionWarning:"Explorer Dates : Les badges d\u2019attribution Git ne sont pas disponibles sur VS Code pour le Web. Les d\xE9corations bas\xE9es sur le temps restent disponibles.",noOverridesToDocument:"Aucune substitution \xE0 documenter.",overrideNotesHeader:"# Notes de substitution Explorer Dates\\n\\n",analysisCommandsDisabled:"Les commandes d\u2019analyse Explorer Dates sont d\xE9sactiv\xE9es. Les raccourcis comme Ctrl+Shift+M/H/A ne fonctionneront pas tant que vous n\u2019aurez pas activ\xE9 explorerDates.enableAnalysisCommands.",analysisEnableNow:"Activer maintenant",analysisEnablePartially:"L\u2019activation a partiellement r\xE9ussi. Mettez \xE0 jour explorerDates.enableAnalysisCommands manuellement dans les dossiers d\u2019espace de travail restants.",analysisEnableFailed:"\xC9chec de l\u2019activation : mettez \xE0 jour explorerDates.enableAnalysisCommands dans les param\xE8tres de l\u2019espace de travail.",workspaceTemplatesDisabled:"Les mod\xE8les d\u2019espace de travail sont d\xE9sactiv\xE9s. Activez explorerDates.enableWorkspaceTemplates pour utiliser cette commande.",workspaceTemplatesDisabledSave:"Les mod\xE8les d\u2019espace de travail sont d\xE9sactiv\xE9s. Activez explorerDates.enableWorkspaceTemplates pour enregistrer des mod\xE8les.",enterTemplateName:"Entrez le nom du mod\xE8le",enterTemplateDescription:"Entrez la description (facultatif)",failedToOpenTemplateManager:"Impossible d\u2019ouvrir le gestionnaire de mod\xE8les : {0}",failedToSaveTemplate:"Impossible d\u2019enregistrer le mod\xE8le : {0}",reportingDisabled:"Les fonctionnalit\xE9s de rapport sont d\xE9sactiv\xE9es. Activez explorerDates.enableExportReporting pour g\xE9n\xE9rer des rapports.",failedToGenerateReport:"Impossible de g\xE9n\xE9rer le rapport : {0}",apiDisabled:"L\u2019API Explorer Dates est d\xE9sactiv\xE9e via les param\xE8tres.",failedToShowApiInformation:"Impossible d\u2019afficher les informations de l\u2019API : {0}",failedToShowWorkspaceActivity:"Impossible d\u2019afficher l\u2019activit\xE9 de l\u2019espace de travail : {0}",failedToShowPerformanceAnalytics:"Impossible d\u2019afficher les analyses de performance : {0}",failedToShowCacheDebugInfo:"Impossible d\u2019afficher les informations de d\xE9bogage du cache : {0}",noWorkspaceFolderOpen:"Aucun dossier d\u2019espace de travail ouvert",now:"maintenant",minutes:"min",hours:"h",days:"j",weeks:"sem",months:"mois",years:"an",justNow:"\xE0 l\u2019instant",minutesAgo:"il y a {0} minute(s)",hoursAgo:"il y a {0} heure(s)",daysAgo:"il y a {0} jour(s)",lastModified:"Derni\xE8re modification",refreshSuccess:"D\xE9corations de date actualis\xE9es",activationError:"\xC9chec de l\u2019activation d\u2019Explorer Dates",errorAccessingFile:"Erreur lors de l\u2019acc\xE8s au fichier pour la d\xE9coration",clearTelemetryPrompt:"Cela supprimera d\xE9finitivement les \xE9v\xE9nements de t\xE9l\xE9m\xE9trie stock\xE9s localement pour Explorer Dates. Cette action est irr\xE9versible. Continuer ?",clearTelemetryConfirm:"Effacer la t\xE9l\xE9m\xE9trie",clearTelemetryCancel:"Annuler",reportFormatDisabled:'Le format de rapport "{0}" est d\xE9sactiv\xE9. Formats autoris\xE9s : {1}',reportDownloadTriggered:"T\xE9l\xE9chargement du rapport lanc\xE9 dans le navigateur",selectReportTimeRangePlaceholder:"S\xE9lectionner la p\xE9riode du rapport",selectReportFormatPlaceholder:"S\xE9lectionner le format du rapport",cleanupNoDeprecated:"\u2139\uFE0F Aucun param\xE8tre obsol\xE8te \xE0 nettoyer.",showMigrationHistoryNoHistory:"Aucun historique de migration trouv\xE9.",resetConfirmation:"Cela r\xE9initialisera tous les param\xE8tres Explorer Dates \xE0 leurs valeurs par d\xE9faut. \xCAtes-vous s\xFBr ?",resetConfirm:"R\xE9initialiser les param\xE8tres",resetCancel:"Annuler",resetSuccess:"\u2705 {0} param\xE8tres ont \xE9t\xE9 r\xE9initialis\xE9s aux valeurs par d\xE9faut.",validateNoIssues:"\u2705 La configuration est valide - aucun probl\xE8me d\xE9tect\xE9 !",validateFoundIssues:"{0} probl\xE8me(s) de configuration trouv\xE9(s). Voulez-vous voir les d\xE9tails ?",validateShowDetails:"Afficher les d\xE9tails",validateDismiss:"Ignorer",migrationNotificationMessage:"Explorer Dates a mis \xE0 jour {0} param\xE8tre(s) pour compatibilit\xE9. Votre configuration a \xE9t\xE9 conserv\xE9e.",migrationViewChanges:"Voir les modifications",migrationOpenSettings:"Ouvrir les param\xE8tres",deprecatedPrompt:"Explorer Dates a trouv\xE9 {0} param\xE8tre(s) obsol\xE8te(s). Voulez-vous les supprimer ?",deprecatedClean:"Nettoyer maintenant",deprecatedKeep:"Conserver les anciens param\xE8tres",deprecatedAskLater:"Demander plus tard",showFileLocation:"Afficher l\u2019emplacement du fichier",teamConfigCorrupted:"Le fichier de configuration d\u2019\xE9quipe Explorer Dates semble corrompu. V\xE9rifiez le fichier .explorer-dates-profiles.json ou restaurez-le depuis une sauvegarde.",appliedFromTeamProfile:'{0} param\xE8tres Explorer Dates appliqu\xE9s depuis le profil d\u2019\xE9quipe "{1}".',documentedOverrides:"Substitutions Explorer Dates document\xE9es dans .vscode/explorer-dates-overrides.md",teamConfigMissingProfile:"La configuration d\u2019\xE9quipe ne contient aucun profil actif.",ephemeralStorageEnospc:"Impossible d\u2019enregistrer la configuration d\u2019\xE9quipe Explorer Dates car le disque est plein.",ephemeralStorageGeneric:"Impossible d\u2019enregistrer la configuration d\u2019\xE9quipe Explorer Dates car l\u2019espace de travail est en lecture seule ou les permissions sont restreintes.",ephemeralStorageSuffix:"Les modifications seront conserv\xE9es en m\xE9moire jusqu\u2019au red\xE9marrage de VS Code et pourraient \xEAtre perdues."}});var or=E((Ta,Si)=>{Si.exports={migrationDetailsTitle:"Explorer Dates - Einstellungen migrieren",migrationDetailsHeader:"Einstellungen migrieren",gitAttributionWarning:"Explorer Dates: Git-Zuordnungsabzeichen sind in VS Code f\xFCr das Web nicht verf\xFCgbar. Zeitbasierte Hervorhebungen bleiben verf\xFCgbar.",noOverridesToDocument:"Keine \xDCberschreibungen zu dokumentieren.",overrideNotesHeader:"# Explorer Dates \xDCberschreibungsnotizen\\n\\n",analysisCommandsDisabled:"Die Analysebefehle von Explorer Dates sind deaktiviert. Tastenkombinationen wie Ctrl+Shift+M/H/A funktionieren nicht, bis explorerDates.enableAnalysisCommands aktiviert ist.",analysisEnableNow:"Jetzt aktivieren",analysisEnablePartially:"Die Aktivierung war teilweise erfolgreich. Aktualisieren Sie explorerDates.enableAnalysisCommands manuell in den verbleibenden Workspace-Ordnern.",analysisEnableFailed:"Aktivierung fehlgeschlagen: Aktualisieren Sie explorerDates.enableAnalysisCommands in den Workspace-Einstellungen.",workspaceTemplatesDisabled:"Workspace-Vorlagen sind deaktiviert. Aktivieren Sie explorerDates.enableWorkspaceTemplates, um diesen Befehl zu verwenden.",workspaceTemplatesDisabledSave:"Workspace-Vorlagen sind deaktiviert. Aktivieren Sie explorerDates.enableWorkspaceTemplates, um Vorlagen zu speichern.",enterTemplateName:"Vorlagenname eingeben",enterTemplateDescription:"Beschreibung eingeben (optional)",failedToOpenTemplateManager:"Fehler beim \xD6ffnen des Vorlagenmanagers: {0}",failedToSaveTemplate:"Fehler beim Speichern der Vorlage: {0}",reportingDisabled:"Berichtsfunktionen sind deaktiviert. Aktivieren Sie explorerDates.enableExportReporting, um Berichte zu erstellen.",failedToGenerateReport:"Fehler beim Erstellen des Berichts: {0}",apiDisabled:"Die Explorer Dates API ist in den Einstellungen deaktiviert.",failedToShowApiInformation:"Fehler beim Anzeigen der API-Informationen: {0}",failedToShowWorkspaceActivity:"Fehler beim Anzeigen der Workspace-Aktivit\xE4t: {0}",failedToShowPerformanceAnalytics:"Fehler beim Anzeigen der Leistungsanalysen: {0}",failedToShowCacheDebugInfo:"Fehler beim Anzeigen der Cache-Debug-Informationen: {0}",noWorkspaceFolderOpen:"Kein Workspace-Ordner ge\xF6ffnet",now:"jetzt",minutes:"Min",hours:"Std",days:"T",weeks:"W",months:"Mon",years:"J",justNow:"gerade eben",minutesAgo:"vor {0} Minute(n)",hoursAgo:"vor {0} Stunde(n)",daysAgo:"vor {0} Tag(en)",lastModified:"Zuletzt ge\xE4ndert",refreshSuccess:"Datumsdekorationen aktualisiert",activationError:"Explorer Dates konnte nicht aktiviert werden",errorAccessingFile:"Fehler beim Zugriff auf Datei f\xFCr Dekoration",clearTelemetryPrompt:"Dies l\xF6scht dauerhaft lokal gespeicherte Telemetrieereignisse f\xFCr Explorer Dates. Diese Aktion kann nicht r\xFCckg\xE4ngig gemacht werden. Fortfahren?",clearTelemetryConfirm:"Telemetrie l\xF6schen",clearTelemetryCancel:"Abbrechen",reportFormatDisabled:'Berichtsformat "{0}" ist deaktiviert. Zul\xE4ssige Formate: {1}',reportDownloadTriggered:"Bericht-Download im Browser gestartet",selectReportTimeRangePlaceholder:"Berichtszeitraum ausw\xE4hlen",selectReportFormatPlaceholder:"Berichtsformat ausw\xE4hlen",cleanupNoDeprecated:"\u2139\uFE0F Keine veralteten Einstellungen zum Bereinigen gefunden.",showMigrationHistoryNoHistory:"Kein Migrationsverlauf gefunden.",resetConfirmation:"Dies setzt alle Explorer Dates Einstellungen auf ihre Standardwerte zur\xFCck. Sind Sie sicher?",resetConfirm:"Einstellungen zur\xFCcksetzen",resetCancel:"Abbrechen",resetSuccess:"\u2705 {0} Einstellungen auf Standard zur\xFCckgesetzt.",validateNoIssues:"\u2705 Konfiguration ist g\xFCltig - keine Probleme gefunden!",validateFoundIssues:"{0} Konfigurationsproblem(e) gefunden. M\xF6chten Sie Details sehen?",validateShowDetails:"Details anzeigen",validateDismiss:"Verwerfen",migrationNotificationMessage:"Explorer Dates hat {0} Einstellung(en) zur Kompatibilit\xE4t aktualisiert. Ihre Konfiguration wurde beibehalten.",migrationViewChanges:"\xC4nderungen anzeigen",migrationOpenSettings:"Einstellungen \xF6ffnen",deprecatedPrompt:"Explorer Dates hat {0} veraltete Einstellung(en) gefunden. M\xF6chten Sie sie entfernen?",deprecatedClean:"Jetzt bereinigen",deprecatedKeep:"Alte Einstellungen behalten",deprecatedAskLater:"Sp\xE4ter fragen",showFileLocation:"Dateispeicherort anzeigen",teamConfigCorrupted:"Die Teamkonfigurationsdatei von Explorer Dates scheint besch\xE4digt zu sein. Bitte pr\xFCfen Sie die Datei .explorer-dates-profiles.json oder stellen Sie sie aus einem Backup wieder her.",appliedFromTeamProfile:'{0} Explorer Dates-Einstellungen aus dem Teamprofil "{1}" angewendet.',documentedOverrides:"Explorer Dates-\xDCberschreibungen in .vscode/explorer-dates-overrides.md dokumentiert",teamConfigMissingProfile:"Der Teamkonfiguration fehlt ein aktives Profil.",ephemeralStorageEnospc:"Die Teamkonfiguration von Explorer Dates konnte nicht gespeichert werden, da die Festplatte voll ist.",ephemeralStorageGeneric:"Die Teamkonfiguration von Explorer Dates konnte nicht gespeichert werden, da der Workspace schreibgesch\xFCtzt ist oder die Berechtigungen eingeschr\xE4nkt sind.",ephemeralStorageSuffix:"\xC4nderungen werden im Speicher behalten, bis VS Code neu startet, und k\xF6nnen verloren gehen."}});var sr=E((va,Ti)=>{Ti.exports={migrationDetailsTitle:"Explorer Dates - \u8A2D\u5B9A\u306E\u79FB\u884C",migrationDetailsHeader:"\u8A2D\u5B9A\u306E\u79FB\u884C",gitAttributionWarning:"Explorer Dates: Git \u306E\u5E30\u5C5E\u30D0\u30C3\u30B8\u306F VS Code for Web \u3067\u306F\u5229\u7528\u3067\u304D\u307E\u305B\u3093\u3002\u6642\u9593\u30D9\u30FC\u30B9\u306E\u88C5\u98FE\u306F\u5F15\u304D\u7D9A\u304D\u5229\u7528\u3067\u304D\u307E\u3059\u3002",noOverridesToDocument:"\u30C9\u30AD\u30E5\u30E1\u30F3\u30C8\u5316\u3059\u308B\u4E0A\u66F8\u304D\u306F\u3042\u308A\u307E\u305B\u3093\u3002",overrideNotesHeader:"# Explorer Dates \u4E0A\u66F8\u304D\u30E1\u30E2\\n\\n",analysisCommandsDisabled:"Explorer Dates \u306E\u5206\u6790\u30B3\u30DE\u30F3\u30C9\u306F\u7121\u52B9\u306B\u306A\u3063\u3066\u3044\u307E\u3059\u3002Ctrl+Shift+M/H/A \u306A\u3069\u306E\u30B7\u30E7\u30FC\u30C8\u30AB\u30C3\u30C8\u306F explorerDates.enableAnalysisCommands \u3092\u6709\u52B9\u306B\u3059\u308B\u307E\u3067\u6A5F\u80FD\u3057\u307E\u305B\u3093\u3002",analysisEnableNow:"\u4ECA\u3059\u3050\u6709\u52B9\u306B\u3059\u308B",analysisEnablePartially:"\u6709\u52B9\u5316\u306F\u4E00\u90E8\u6210\u529F\u3057\u307E\u3057\u305F\u3002\u6B8B\u308A\u306E\u30EF\u30FC\u30AF\u30B9\u30DA\u30FC\u30B9\u30D5\u30A9\u30EB\u30C0\u30FC\u3067 explorerDates.enableAnalysisCommands \u3092\u624B\u52D5\u3067\u66F4\u65B0\u3057\u3066\u304F\u3060\u3055\u3044\u3002",analysisEnableFailed:"\u6709\u52B9\u5316\u306B\u5931\u6557\u3057\u307E\u3057\u305F\uFF1A\u30EF\u30FC\u30AF\u30B9\u30DA\u30FC\u30B9\u8A2D\u5B9A\u3067 explorerDates.enableAnalysisCommands \u3092\u66F4\u65B0\u3057\u3066\u304F\u3060\u3055\u3044\u3002",workspaceTemplatesDisabled:"\u30EF\u30FC\u30AF\u30B9\u30DA\u30FC\u30B9\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8\u306F\u7121\u52B9\u306B\u306A\u3063\u3066\u3044\u307E\u3059\u3002\u3053\u306E\u30B3\u30DE\u30F3\u30C9\u3092\u4F7F\u7528\u3059\u308B\u306B\u306F explorerDates.enableWorkspaceTemplates \u3092\u6709\u52B9\u306B\u3057\u3066\u304F\u3060\u3055\u3044\u3002",workspaceTemplatesDisabledSave:"\u30EF\u30FC\u30AF\u30B9\u30DA\u30FC\u30B9\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8\u306F\u7121\u52B9\u306B\u306A\u3063\u3066\u3044\u307E\u3059\u3002\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8\u3092\u4FDD\u5B58\u3059\u308B\u306B\u306F explorerDates.enableWorkspaceTemplates \u3092\u6709\u52B9\u306B\u3057\u3066\u304F\u3060\u3055\u3044\u3002",enterTemplateName:"\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8\u540D\u3092\u5165\u529B",enterTemplateDescription:"\u8AAC\u660E\u3092\u5165\u529B\uFF08\u4EFB\u610F\uFF09",failedToOpenTemplateManager:"\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8\u30DE\u30CD\u30FC\u30B8\u30E3\u30FC\u3092\u958B\u3051\u307E\u305B\u3093\u3067\u3057\u305F: {0}",failedToSaveTemplate:"\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8\u306E\u4FDD\u5B58\u306B\u5931\u6557\u3057\u307E\u3057\u305F: {0}",reportingDisabled:"\u30EC\u30DD\u30FC\u30C8\u6A5F\u80FD\u306F\u7121\u52B9\u306B\u306A\u3063\u3066\u3044\u307E\u3059\u3002\u30EC\u30DD\u30FC\u30C8\u3092\u751F\u6210\u3059\u308B\u306B\u306F explorerDates.enableExportReporting \u3092\u6709\u52B9\u306B\u3057\u3066\u304F\u3060\u3055\u3044\u3002",failedToGenerateReport:"\u30EC\u30DD\u30FC\u30C8\u306E\u751F\u6210\u306B\u5931\u6557\u3057\u307E\u3057\u305F: {0}",apiDisabled:"Explorer Dates API \u306F\u8A2D\u5B9A\u3067\u7121\u52B9\u306B\u306A\u3063\u3066\u3044\u307E\u3059\u3002",failedToShowApiInformation:"API \u60C5\u5831\u306E\u8868\u793A\u306B\u5931\u6557\u3057\u307E\u3057\u305F: {0}",failedToShowWorkspaceActivity:"\u30EF\u30FC\u30AF\u30B9\u30DA\u30FC\u30B9\u306E\u30A2\u30AF\u30C6\u30A3\u30D3\u30C6\u30A3\u3092\u8868\u793A\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F: {0}",failedToShowPerformanceAnalytics:"\u30D1\u30D5\u30A9\u30FC\u30DE\u30F3\u30B9\u5206\u6790\u3092\u8868\u793A\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F: {0}",failedToShowCacheDebugInfo:"\u30AD\u30E3\u30C3\u30B7\u30E5\u306E\u30C7\u30D0\u30C3\u30B0\u60C5\u5831\u3092\u8868\u793A\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F: {0}",noWorkspaceFolderOpen:"\u30EF\u30FC\u30AF\u30B9\u30DA\u30FC\u30B9\u30D5\u30A9\u30EB\u30C0\u30FC\u304C\u958B\u304B\u308C\u3066\u3044\u307E\u305B\u3093",now:"\u4ECA",minutes:"\u5206",hours:"\u6642\u9593",days:"\u65E5",weeks:"\u9031",months:"\u304B\u6708",years:"\u5E74",justNow:"\u305F\u3063\u305F\u4ECA",minutesAgo:"{0} \u5206\u524D",hoursAgo:"{0} \u6642\u9593\u524D",daysAgo:"{0} \u65E5\u524D",lastModified:"\u6700\u7D42\u66F4\u65B0",refreshSuccess:"\u65E5\u4ED8\u88C5\u98FE\u3092\u66F4\u65B0\u3057\u307E\u3057\u305F",activationError:"Explorer Dates \u306E\u6709\u52B9\u5316\u306B\u5931\u6557\u3057\u307E\u3057\u305F",errorAccessingFile:"\u88C5\u98FE\u7528\u30D5\u30A1\u30A4\u30EB\u3078\u306E\u30A2\u30AF\u30BB\u30B9\u30A8\u30E9\u30FC",clearTelemetryPrompt:"Explorer Dates \u306E\u30ED\u30FC\u30AB\u30EB\u4FDD\u5B58\u30C6\u30EC\u30E1\u30C8\u30EA\u30A4\u30D9\u30F3\u30C8\u3092\u5B8C\u5168\u306B\u524A\u9664\u3057\u307E\u3059\u3002\u3053\u306E\u64CD\u4F5C\u306F\u5143\u306B\u623B\u305B\u307E\u305B\u3093\u3002\u7D9A\u884C\u3057\u307E\u3059\u304B\uFF1F",clearTelemetryConfirm:"\u30C6\u30EC\u30E1\u30C8\u30EA\u3092\u524A\u9664",clearTelemetryCancel:"\u30AD\u30E3\u30F3\u30BB\u30EB",reportFormatDisabled:"\u30EC\u30DD\u30FC\u30C8\u5F62\u5F0F\u300C{0}\u300D\u306F\u7121\u52B9\u3067\u3059\u3002\u8A31\u53EF\u3055\u308C\u3066\u3044\u308B\u5F62\u5F0F: {1}",reportDownloadTriggered:"\u30D6\u30E9\u30A6\u30B6\u3067\u30EC\u30DD\u30FC\u30C8\u306E\u30C0\u30A6\u30F3\u30ED\u30FC\u30C9\u3092\u958B\u59CB\u3057\u307E\u3057\u305F",selectReportTimeRangePlaceholder:"\u30EC\u30DD\u30FC\u30C8\u306E\u671F\u9593\u3092\u9078\u629E",selectReportFormatPlaceholder:"\u30EC\u30DD\u30FC\u30C8\u5F62\u5F0F\u3092\u9078\u629E",cleanupNoDeprecated:"\u2139\uFE0F \u30AF\u30EA\u30FC\u30F3\u30A2\u30C3\u30D7\u3059\u308B\u975E\u63A8\u5968\u8A2D\u5B9A\u306F\u3042\u308A\u307E\u305B\u3093\u3002",showMigrationHistoryNoHistory:"\u79FB\u884C\u5C65\u6B74\u304C\u898B\u3064\u304B\u308A\u307E\u305B\u3093\u3002",resetConfirmation:"Explorer Dates \u306E\u3059\u3079\u3066\u306E\u8A2D\u5B9A\u3092\u65E2\u5B9A\u5024\u306B\u30EA\u30BB\u30C3\u30C8\u3057\u307E\u3059\u3002\u3088\u308D\u3057\u3044\u3067\u3059\u304B\uFF1F",resetConfirm:"\u8A2D\u5B9A\u3092\u30EA\u30BB\u30C3\u30C8",resetCancel:"\u30AD\u30E3\u30F3\u30BB\u30EB",resetSuccess:"\u2705 {0} \u4EF6\u306E\u8A2D\u5B9A\u3092\u65E2\u5B9A\u5024\u306B\u30EA\u30BB\u30C3\u30C8\u3057\u307E\u3057\u305F\u3002",validateNoIssues:"\u2705 \u8A2D\u5B9A\u306F\u6709\u52B9\u3067\u3059 - \u554F\u984C\u306F\u898B\u3064\u304B\u308A\u307E\u305B\u3093\u3067\u3057\u305F\uFF01",validateFoundIssues:"{0} \u4EF6\u306E\u8A2D\u5B9A\u554F\u984C\u304C\u898B\u3064\u304B\u308A\u307E\u3057\u305F\u3002\u8A73\u7D30\u3092\u8868\u793A\u3057\u307E\u3059\u304B\uFF1F",validateShowDetails:"\u8A73\u7D30\u3092\u8868\u793A",validateDismiss:"\u9589\u3058\u308B",migrationNotificationMessage:"Explorer Dates \u306F\u4E92\u63DB\u6027\u306E\u305F\u3081\u306B {0} \u4EF6\u306E\u8A2D\u5B9A\u3092\u66F4\u65B0\u3057\u307E\u3057\u305F\u3002\u8A2D\u5B9A\u306F\u4FDD\u6301\u3055\u308C\u3066\u3044\u307E\u3059\u3002",migrationViewChanges:"\u5909\u66F4\u3092\u8868\u793A",migrationOpenSettings:"\u8A2D\u5B9A\u3092\u958B\u304F",deprecatedPrompt:"Explorer Dates \u306F {0} \u4EF6\u306E\u975E\u63A8\u5968\u8A2D\u5B9A\u3092\u691C\u51FA\u3057\u307E\u3057\u305F\u3002\u524A\u9664\u3057\u307E\u3059\u304B\uFF1F",deprecatedClean:"\u4ECA\u3059\u3050\u30AF\u30EA\u30FC\u30F3\u30A2\u30C3\u30D7",deprecatedKeep:"\u53E4\u3044\u8A2D\u5B9A\u3092\u4FDD\u6301",deprecatedAskLater:"\u5F8C\u3067\u78BA\u8A8D",showFileLocation:"\u30D5\u30A1\u30A4\u30EB\u306E\u5834\u6240\u3092\u8868\u793A",teamConfigCorrupted:"Explorer Dates \u306E\u30C1\u30FC\u30E0\u8A2D\u5B9A\u30D5\u30A1\u30A4\u30EB\u304C\u7834\u640D\u3057\u3066\u3044\u308B\u53EF\u80FD\u6027\u304C\u3042\u308A\u307E\u3059\u3002.explorer-dates-profiles.json \u3092\u78BA\u8A8D\u3059\u308B\u304B\u30D0\u30C3\u30AF\u30A2\u30C3\u30D7\u304B\u3089\u5FA9\u5143\u3057\u3066\u304F\u3060\u3055\u3044\u3002",appliedFromTeamProfile:"\u30C1\u30FC\u30E0\u30D7\u30ED\u30D5\u30A1\u30A4\u30EB\u300C{1}\u300D\u304B\u3089 {0} \u4EF6\u306E Explorer Dates \u8A2D\u5B9A\u3092\u9069\u7528\u3057\u307E\u3057\u305F\u3002",documentedOverrides:".vscode/explorer-dates-overrides.md \u306B Explorer Dates \u306E\u4E0A\u66F8\u304D\u3092\u8A18\u9332\u3057\u307E\u3057\u305F",teamConfigMissingProfile:"\u30C1\u30FC\u30E0\u8A2D\u5B9A\u306B\u30A2\u30AF\u30C6\u30A3\u30D6\u306A\u30D7\u30ED\u30D5\u30A1\u30A4\u30EB\u304C\u3042\u308A\u307E\u305B\u3093\u3002",ephemeralStorageEnospc:"\u30C7\u30A3\u30B9\u30AF\u5BB9\u91CF\u4E0D\u8DB3\u306E\u305F\u3081\u3001Explorer Dates \u306E\u30C1\u30FC\u30E0\u8A2D\u5B9A\u3092\u4FDD\u5B58\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002",ephemeralStorageGeneric:"\u30EF\u30FC\u30AF\u30B9\u30DA\u30FC\u30B9\u304C\u8AAD\u307F\u53D6\u308A\u5C02\u7528\u3001\u307E\u305F\u306F\u6A29\u9650\u304C\u5236\u9650\u3055\u308C\u3066\u3044\u308B\u305F\u3081\u3001Explorer Dates \u306E\u30C1\u30FC\u30E0\u8A2D\u5B9A\u3092\u4FDD\u5B58\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002",ephemeralStorageSuffix:"\u5909\u66F4\u306F VS Code \u304C\u518D\u8D77\u52D5\u3059\u308B\u307E\u3067\u30E1\u30E2\u30EA\u306B\u4FDD\u6301\u3055\u308C\u308B\u305F\u3081\u3001\u5931\u308F\u308C\u308B\u53EF\u80FD\u6027\u304C\u3042\u308A\u307E\u3059\u3002"}});var cr=E((Fa,vi)=>{vi.exports={migrationDetailsTitle:"Explorer Dates - \u8BBE\u7F6E\u8FC1\u79FB",migrationDetailsHeader:"\u8BBE\u7F6E\u8FC1\u79FB",gitAttributionWarning:"Explorer Dates\uFF1AGit \u5F52\u5C5E\u5FBD\u7AE0\u5728 VS Code Web \u7248\u4E2D\u4E0D\u53EF\u7528\u3002\u57FA\u4E8E\u65F6\u95F4\u7684\u88C5\u9970\u4ECD\u7136\u53EF\u7528\u3002",noOverridesToDocument:"\u6CA1\u6709\u9700\u8981\u8BB0\u5F55\u7684\u8986\u76D6\u9879\u3002",overrideNotesHeader:"# Explorer Dates \u8986\u76D6\u8BF4\u660E\\n\\n",analysisCommandsDisabled:"Explorer Dates \u5206\u6790\u547D\u4EE4\u5DF2\u7981\u7528\u3002\u5728\u542F\u7528 explorerDates.enableAnalysisCommands \u4E4B\u524D\uFF0CCtrl+Shift+M/H/A \u7B49\u5FEB\u6377\u952E\u5C06\u65E0\u6CD5\u4F7F\u7528\u3002",analysisEnableNow:"\u7ACB\u5373\u542F\u7528",analysisEnablePartially:"\u542F\u7528\u90E8\u5206\u6210\u529F\u3002\u8BF7\u5728\u5269\u4F59\u7684\u5DE5\u4F5C\u533A\u6587\u4EF6\u5939\u4E2D\u624B\u52A8\u66F4\u65B0 explorerDates.enableAnalysisCommands\u3002",analysisEnableFailed:"\u542F\u7528\u5931\u8D25\uFF1A\u8BF7\u5728\u5DE5\u4F5C\u533A\u8BBE\u7F6E\u4E2D\u66F4\u65B0 explorerDates.enableAnalysisCommands\u3002",workspaceTemplatesDisabled:"\u5DE5\u4F5C\u533A\u6A21\u677F\u5DF2\u7981\u7528\u3002\u542F\u7528 explorerDates.enableWorkspaceTemplates \u4EE5\u4F7F\u7528\u6B64\u547D\u4EE4\u3002",workspaceTemplatesDisabledSave:"\u5DE5\u4F5C\u533A\u6A21\u677F\u5DF2\u7981\u7528\u3002\u542F\u7528 explorerDates.enableWorkspaceTemplates \u4EE5\u4FDD\u5B58\u6A21\u677F\u3002",enterTemplateName:"\u8F93\u5165\u6A21\u677F\u540D\u79F0",enterTemplateDescription:"\u8F93\u5165\u63CF\u8FF0\uFF08\u53EF\u9009\uFF09",failedToOpenTemplateManager:"\u65E0\u6CD5\u6253\u5F00\u6A21\u677F\u7BA1\u7406\u5668\uFF1A{0}",failedToSaveTemplate:"\u4FDD\u5B58\u6A21\u677F\u5931\u8D25\uFF1A{0}",reportingDisabled:"\u62A5\u8868\u529F\u80FD\u5DF2\u7981\u7528\u3002\u542F\u7528 explorerDates.enableExportReporting \u4EE5\u751F\u6210\u62A5\u8868\u3002",failedToGenerateReport:"\u751F\u6210\u62A5\u8868\u5931\u8D25\uFF1A{0}",apiDisabled:"Explorer Dates API \u5DF2\u901A\u8FC7\u8BBE\u7F6E\u7981\u7528\u3002",failedToShowApiInformation:"\u663E\u793A API \u4FE1\u606F\u5931\u8D25\uFF1A{0}",failedToShowWorkspaceActivity:"\u663E\u793A\u5DE5\u4F5C\u533A\u6D3B\u52A8\u5931\u8D25\uFF1A{0}",failedToShowPerformanceAnalytics:"\u663E\u793A\u6027\u80FD\u5206\u6790\u5931\u8D25\uFF1A{0}",failedToShowCacheDebugInfo:"\u663E\u793A\u7F13\u5B58\u8C03\u8BD5\u4FE1\u606F\u5931\u8D25\uFF1A{0}",noWorkspaceFolderOpen:"\u672A\u6253\u5F00\u4EFB\u4F55\u5DE5\u4F5C\u533A\u6587\u4EF6\u5939",now:"\u73B0\u5728",minutes:"\u5206",hours:"\u5C0F\u65F6",days:"\u5929",weeks:"\u5468",months:"\u4E2A\u6708",years:"\u5E74",justNow:"\u521A\u521A",minutesAgo:"{0} \u5206\u949F\u524D",hoursAgo:"{0} \u5C0F\u65F6\u524D",daysAgo:"{0} \u5929\u524D",lastModified:"\u6700\u540E\u4FEE\u6539",refreshSuccess:"\u65E5\u671F\u88C5\u9970\u5DF2\u5237\u65B0",activationError:"Explorer Dates \u542F\u52A8\u5931\u8D25",errorAccessingFile:"\u8BBF\u95EE\u7528\u4E8E\u88C5\u9970\u7684\u6587\u4EF6\u65F6\u51FA\u9519",clearTelemetryPrompt:"\u8FD9\u5C06\u6C38\u4E45\u5220\u9664\u672C\u5730\u5B58\u50A8\u7684 Explorer Dates \u9065\u6D4B\u4E8B\u4EF6\u3002\u6B64\u64CD\u4F5C\u65E0\u6CD5\u64A4\u9500\u3002\u662F\u5426\u7EE7\u7EED\uFF1F",clearTelemetryConfirm:"\u6E05\u9664\u9065\u6D4B",clearTelemetryCancel:"\u53D6\u6D88",reportFormatDisabled:"\u62A5\u8868\u683C\u5F0F\u201C{0}\u201D\u5DF2\u7981\u7528\u3002\u5141\u8BB8\u7684\u683C\u5F0F\uFF1A{1}",reportDownloadTriggered:"\u5DF2\u5728\u6D4F\u89C8\u5668\u4E2D\u89E6\u53D1\u62A5\u8868\u4E0B\u8F7D",selectReportTimeRangePlaceholder:"\u9009\u62E9\u62A5\u8868\u65F6\u95F4\u8303\u56F4",selectReportFormatPlaceholder:"\u9009\u62E9\u62A5\u8868\u683C\u5F0F",cleanupNoDeprecated:"\u2139\uFE0F \u672A\u53D1\u73B0\u9700\u8981\u6E05\u7406\u7684\u5DF2\u5F03\u7528\u8BBE\u7F6E\u3002",showMigrationHistoryNoHistory:"\u672A\u627E\u5230\u8FC1\u79FB\u5386\u53F2\u3002",resetConfirmation:"\u8FD9\u5C06\u628A\u6240\u6709 Explorer Dates \u8BBE\u7F6E\u91CD\u7F6E\u4E3A\u9ED8\u8BA4\u503C\u3002\u786E\u5B9A\u5417\uFF1F",resetConfirm:"\u91CD\u7F6E\u8BBE\u7F6E",resetCancel:"\u53D6\u6D88",resetSuccess:"\u2705 \u5DF2\u5C06 {0} \u9879\u8BBE\u7F6E\u91CD\u7F6E\u4E3A\u9ED8\u8BA4\u503C\u3002",validateNoIssues:"\u2705 \u914D\u7F6E\u6709\u6548 - \u672A\u53D1\u73B0\u95EE\u9898\uFF01",validateFoundIssues:"\u53D1\u73B0 {0} \u4E2A\u914D\u7F6E\u95EE\u9898\u3002\u662F\u5426\u67E5\u770B\u8BE6\u7EC6\u4FE1\u606F\uFF1F",validateShowDetails:"\u663E\u793A\u8BE6\u7EC6\u4FE1\u606F",validateDismiss:"\u5173\u95ED",migrationNotificationMessage:"Explorer Dates \u4E3A\u517C\u5BB9\u6027\u66F4\u65B0\u4E86 {0} \u9879\u8BBE\u7F6E\u3002\u60A8\u7684\u914D\u7F6E\u5DF2\u4FDD\u7559\u3002",migrationViewChanges:"\u67E5\u770B\u66F4\u6539",migrationOpenSettings:"\u6253\u5F00\u8BBE\u7F6E",deprecatedPrompt:"Explorer Dates \u53D1\u73B0 {0} \u4E2A\u5DF2\u5F03\u7528\u8BBE\u7F6E\u3002\u662F\u5426\u5220\u9664\uFF1F",deprecatedClean:"\u7ACB\u5373\u6E05\u7406",deprecatedKeep:"\u4FDD\u7559\u65E7\u8BBE\u7F6E",deprecatedAskLater:"\u7A0D\u540E\u8BE2\u95EE",showFileLocation:"\u663E\u793A\u6587\u4EF6\u4F4D\u7F6E",teamConfigCorrupted:"Explorer Dates \u56E2\u961F\u914D\u7F6E\u6587\u4EF6\u4F3C\u4E4E\u5DF2\u635F\u574F\u3002\u8BF7\u68C0\u67E5 .explorer-dates-profiles.json \u6587\u4EF6\u6216\u4ECE\u5907\u4EFD\u6062\u590D\u3002",appliedFromTeamProfile:"\u5DF2\u4ECE\u56E2\u961F\u914D\u7F6E\u6587\u4EF6\u201C{1}\u201D\u5E94\u7528 {0} \u9879 Explorer Dates \u8BBE\u7F6E\u3002",documentedOverrides:"\u5DF2\u5728 .vscode/explorer-dates-overrides.md \u4E2D\u8BB0\u5F55 Explorer Dates \u8986\u76D6\u9879",teamConfigMissingProfile:"\u56E2\u961F\u914D\u7F6E\u7F3A\u5C11\u6D3B\u52A8\u914D\u7F6E\u6587\u4EF6\u3002",ephemeralStorageEnospc:"\u7531\u4E8E\u78C1\u76D8\u5DF2\u6EE1\uFF0C\u65E0\u6CD5\u4FDD\u5B58 Explorer Dates \u56E2\u961F\u914D\u7F6E\u3002",ephemeralStorageGeneric:"\u7531\u4E8E\u5DE5\u4F5C\u533A\u4E3A\u53EA\u8BFB\u6216\u6743\u9650\u53D7\u9650\uFF0C\u65E0\u6CD5\u4FDD\u5B58 Explorer Dates \u56E2\u961F\u914D\u7F6E\u3002",ephemeralStorageSuffix:"\u66F4\u6539\u5C06\u5728 VS Code \u91CD\u542F\u524D\u4FDD\u5B58\u5728\u5185\u5B58\u4E2D\uFF0C\u56E0\u6B64\u53EF\u80FD\u4F1A\u4E22\u5931\u3002"}});var ur=E((Aa,lr)=>{var j={};j.en=nr();j.es=ir();j.fr=ar();j.de=or();j.ja=sr();j.zh=cr();lr.exports=j});var at=E((Ra,hr)=>{var V=require("vscode"),z={en:{now:"now",minutes:"m",hours:"h",days:"d",weeks:"w",months:"mo",years:"y",justNow:"just now",minutesAgo:e=>`${e} minute${e!==1?"s":""} ago`,hoursAgo:e=>`${e} hour${e!==1?"s":""} ago`,yesterday:"yesterday",daysAgo:e=>`${e} day${e!==1?"s":""} ago`,lastModified:"Last modified",refreshSuccess:"Date decorations refreshed",activationError:"Explorer Dates failed to activate",errorAccessingFile:"Error accessing file for decoration",clearTelemetryPrompt:"This will permanently delete locally-stored telemetry events for Explorer Dates. This action cannot be undone. Proceed?",clearTelemetryConfirm:"Clear Telemetry",clearTelemetryCancel:"Cancel",clearTelemetrySuccess:"\u2705 Explorer Dates telemetry cleared.",migrateChecking:"Checking for settings that need migration...",migrateAllUpToDate:"\u2705 All settings are up to date!",migrateApplied:e=>`\u2705 Explorer Dates maintenance applied: ${e}.`,organizeSettingsResult:e=>`Explorer Dates settings organized: ${e}`,cleanupSuccess:"\u2705 Deprecated settings have been cleaned up!",reportFormatDisabled:(e,t)=>`Report format "${e}" is disabled. Allowed formats: ${t}`,reportSaved:e=>`Report saved to ${e}`,reportGenerateFailed:"Failed to generate report",reportDownloadTriggered:"Report download triggered in browser",selectReportTimeRangePlaceholder:"Select report time range",selectReportFormatPlaceholder:"Select report format",cleanupNoDeprecated:"\u2139\uFE0F No deprecated settings found to clean up.",showMigrationHistoryNoHistory:"No migration history found.",resetConfirmation:"This will reset all Explorer Dates settings to their default values. Are you sure?",migrationDetailsTitle:"Explorer Dates - Settings Migration",migrationDetailsHeader:"Settings Migration",gitAttributionWarning:"Explorer Dates: Git attribution badges are unavailable on VS Code for Web. Time-based decorations remain available.",noOverridesToDocument:"No overrides to document.",overrideNotesHeader:`# Explorer Dates Override Notes -`,analysisCommandsDisabled:"Explorer Dates analysis commands are disabled. Shortcuts like Ctrl+Shift+M/H/A will not work until you enable explorerDates.enableAnalysisCommands.",analysisEnableNow:"Enable Now",analysisEnablePartially:"Enable partially succeeded. Update explorerDates.enableAnalysisCommands in remaining workspace folders manually.",analysisEnableFailed:"Enable failed: update explorerDates.enableAnalysisCommands in workspace settings.",workspaceTemplatesDisabled:"Workspace templates are disabled. Enable explorerDates.enableWorkspaceTemplates to use this command.",workspaceTemplatesDisabledSave:"Workspace templates are disabled. Enable explorerDates.enableWorkspaceTemplates to save templates.",enterTemplateName:"Enter template name",enterTemplateDescription:"Enter description (optional)",failedToOpenTemplateManager:e=>`Failed to open template manager: ${e}`,failedToSaveTemplate:e=>`Failed to save template: ${e}`,reportingDisabled:"Reporting features are disabled. Enable explorerDates.enableExportReporting to generate reports.",failedToGenerateReport:e=>`Failed to generate report: ${e}`,apiDisabled:"Explorer Dates API is disabled via settings.",failedToShowApiInformation:e=>`Failed to show API information: ${e}`,failedToShowWorkspaceActivity:e=>`Failed to show workspace activity: ${e}`,failedToShowPerformanceAnalytics:e=>`Failed to show performance analytics: ${e}`,failedToShowCacheDebugInfo:e=>`Failed to show cache debug info: ${e}`,noWorkspaceFolderOpen:"No workspace folder open",resetConfirm:"Reset Settings",resetCancel:"Cancel",resetSuccess:e=>`\u2705 Reset ${e} settings to defaults.`,validateNoIssues:"\u2705 Configuration is valid - no issues found!",validateFoundIssues:e=>`Found ${e} configuration issue(s). Would you like to see details?`,validateShowDetails:"Show Details",validateDismiss:"Dismiss",migrationNotificationMessage:e=>`Explorer Dates updated ${e} setting(s) for compatibility. Your configuration has been preserved.`,migrationViewChanges:"View Changes",migrationOpenSettings:"Open Settings",deprecatedPrompt:e=>`Explorer Dates found ${e} deprecated setting(s). Would you like to remove them?`,deprecatedClean:"Clean Up Now",deprecatedKeep:"Keep Old Settings",deprecatedAskLater:"Ask Later",showFileLocation:"Show File Location",teamConfigCorrupted:"Explorer Dates team configuration file appears to be corrupted. Please check the .explorer-dates-profiles.json file or restore from backup.",appliedFromTeamProfile:(e,t)=>`Applied ${e} Explorer Dates settings from team profile "${t}".`,documentedOverrides:"Documented Explorer Dates overrides in .vscode/explorer-dates-overrides.md",teamConfigMissingProfile:"Team configuration is missing an active profile.",ephemeralStorageEnospc:"Explorer Dates team configuration could not be saved because the disk is full.",ephemeralStorageGeneric:"Explorer Dates team configuration could not be saved because the workspace is read-only or permissions are restricted.",ephemeralStorageSuffix:" Changes will be kept in memory until VS Code restarts, so they may be lost."}};try{let e=ur();if(e&&typeof e=="object")for(let[t,r]of Object.entries(e)){z[t]||(z[t]={});for(let[n,i]of Object.entries(r))typeof z[t][n]>"u"&&(z[t][n]=i)}}catch{}var De=class{constructor(){this.Ce="en",this.w=null,this.ft(),typeof V.workspace.onDidChangeConfiguration=="function"?this.w=V.workspace.onDidChangeConfiguration(t=>{t.affectsConfiguration("explorerDates.locale")&&this.ft()}):this.w=null}ft(){let r=V.workspace.getConfiguration("explorerDates").get("locale","auto");if(r==="auto"){let n=V&&V.env&&typeof V.env.language=="string"?V.env.language:"en";try{r=String(n||"en").split("-")[0]}catch{r="en"}}z[r]||(r="en"),this.Ce=r}getString(t,...r){let i=(z[this.Ce]||z.en)[t];return typeof i=="function"?i(...r):i||z.en[t]||t}getCurrentLocale(){return this.Ce}formatDate(t,r={}){try{return t.toLocaleDateString(this.Ce,r)}catch{return t.toLocaleDateString("en",r)}}dispose(){this.w&&(this.w.dispose(),this.w=null),fe===this&&(fe=null)}},fe=null;function Fi(){return fe||(fe=new De),fe}hr.exports={LocalizationManager:De,getLocalization:Fi}});var ot=_((Pa,dr)=>{function Ai(e){let t=require("vscode");function r(l,d,h,g,y,m){if(!e.Gt||!g)return m&&(m.misses++,m.allocations++),y();if(l.has(g))return m&&(m.hits++,m.reuses++),l.get(g);m&&(m.misses++,m.allocations++);let D=y();if(l.set(g,D),d.push(g),d.length>h){let E=d.shift();E&&l.delete(E)}return D}function n({formatType:l,diffMinutes:d,diffHours:h,diffDays:g,diffWeeks:y,diffMonths:m,date:D}){let E=(M,F=null)=>({value:M,key:F?`badge:${l||"default"}:${F}`:null});switch(l){case"relative-short":case"relative-long":return d<1?E("\u25CF\u25CF","just"):d<60?E(`${Math.min(d,99)}m`,`m:${Math.min(d,99)}`):h<24?E(`${Math.min(h,23)}h`,`h:${Math.min(h,23)}`):g<7?E(`${g}d`,`d:${g}`):y<4?E(`${y}w`,`w:${y}`):m<12?E(`${m}M`,`M:${m}`):E("1y","y:1");case"absolute-short":case"absolute-long":{let M=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],F=D.getDate(),X=`${M[D.getMonth()]}${F<10?"0"+F:F}`,w=[D.getMonth(),F];return l==="absolute-long"&&w.push(D.getFullYear()),E(X,`abs:${w.join("-")}`)}case"technical":return d<60?E(`${d}m`,`tech:m:${d}`):h<24?E(`${h}h`,`tech:h:${h}`):E(`${g}d`,`tech:d:${g}`);case"minimal":return h<1?E("\u2022\u2022","min:now"):h<24?E("\u25CB\u25CB","min:hours"):E("\u2500\u2500","min:days");default:return d<60?E(`${d}m`,`smart:m:${d}`):h<24?E(`${h}h`,`smart:h:${h}`):E(`${g}d`,`smart:d:${g}`)}}function i(l,d,h=null){let y=h!==null?h:new Date().getTime()-l.getTime();if(y<0)return e._logger.debug(`File has future modification time (diffMs: ${y}), treating as just modified`),"\u25CF\u25CF";let m=Math.floor(y/(1e3*60)),D=Math.floor(y/(1e3*60*60)),E=Math.floor(y/(1e3*60*60*24)),M=Math.floor(E/7),F=Math.floor(E/30),X=n({formatType:d,diffMinutes:m,diffHours:D,diffDays:E,diffWeeks:M,diffMonths:F,date:l});return r(e.I,e.Se,e.Xt,X.key,()=>X.value,e.Yt)}function a(l){if(!l)return"none";if(typeof l=="string")return l;if(l.id)return l.id;try{return JSON.stringify(l)}catch{return String(l)}}function o(l,d,h){let g=l||"",y=d||"",m=a(h);return`${g}::${m}::${y}`}function s({badge:l,tooltip:d,color:h}){if(!e.Zt){e.H.misses++,e.H.allocations++;let m=new t.FileDecoration(l||"??");return d&&(m.tooltip=d),h&&(m.color=h),m.propagate=!1,m}if(!l)return e.H.allocations++,new t.FileDecoration("??");let g=o(l,d,h);if(g&&e.c.has(g))return e.H.hits++,e.H.reuses++,e.c.get(g);let y=new t.FileDecoration(l);if(d&&(y.tooltip=d),h&&(y.color=h),y.propagate=!1,e.H.allocations++,g&&(e.c.set(g,y),e.$.push(g),e.$.length>e.Jt)){let m=e.$.shift();m&&m!==g&&e.c.delete(m)}return e.H.misses++,y}function c(l="unspecified"){e.c.size!==0&&(e.c.clear(),e.$.length=0,e._logger.debug(`\u{1F9FC} Cleared decoration pool (${l})`))}async function u({filePath:l,stat:d,gitBlame:h,shouldUseAccessibleTooltips:g,fileSizeFormat:y}){if(g){let D=e._accessibility?.getAccessibleTooltip?.(l,d.mtime,d.birthtime,d.size,h);if(D)return D}let m=[];try{let D=e.p.formatDate(d.mtime);if(m.push(`${D}`),y&&typeof d.size=="number"){let E=e.gt(d.size,y);m.push(E)}h&&h.author&&m.push(`Author: ${h.author}`)}catch(D){e._logger.debug("Tooltip builder failed",D)}return m.join(" \u2014 ")}return{acquireDecorationFromPool:s,clearDecorationPool:c,Qr:o,tn:a,Qt:i,rn:n,er:r,Te:u}}dr.exports={createDecorationLogic:Ai}});var Ce=_((exports,module)=>{function createDecorationProviderHelpers(provider){let vscode=require("vscode"),{diagLogOnce,diagLog,isWebDiagnosticsEnabled}=he(),{formatBadge,formatTooltip}=nt(),decorationDiagCount=0,maxDecorationDiag=20,CONTRIBUTED_CUSTOM_COLOR_TOKENS=new Set(["explorerDates.customColor.veryRecent","explorerDates.customColor.recent","explorerDates.customColor.old"]),isWebRuntime=(()=>{try{return vscode?.env?.uiKind===vscode?.UIKind?.Web}catch{return!1}})(),getFileName,getExtension,normalizePath,getUriPath,ensureDate;try{let e=K();e&&(getFileName=e.getFileName,getExtension=e.getExtension,normalizePath=e.normalizePath,getUriPath=e.getUriPath,ensureDate=e.ensureDate)}catch{}if(!getFileName||!ensureDate){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function")try{let e=dynamicRequire("../utils/pathUtils"),t=dynamicRequire("../utils/dateHelpers");getFileName=getFileName||e.getFileName,getExtension=getExtension||e.getExtension,normalizePath=normalizePath||e.normalizePath,getUriPath=getUriPath||e.getUriPath,ensureDate=ensureDate||t.ensureDate}catch{}}catch{}getFileName||(getFileName=e=>{let t=String(e||""),r=t.replace(/\\/g,"/").lastIndexOf("/");return r===-1?t:t.substring(r+1)}),getExtension||(getExtension=e=>{let t=String(e||""),r=t.lastIndexOf(".");return r<=0?"":t.substring(r).toLowerCase()}),normalizePath||(normalizePath=(e="")=>(e||"").toString().replace(/\\/g,"/")),getUriPath||(getUriPath=(e="")=>e?typeof e=="string"?e:e?.fsPath?e.fsPath:e?.path?e.path:String(e):""),ensureDate||(ensureDate=e=>e instanceof Date?e:typeof e=="number"?new Date(e):typeof e=="string"?isNaN(Date.parse(e))?new Date:new Date(Date.parse(e)):new Date)}async function provideDecoration(e,t){let r=!1,n=null,i,a=null,o=null,s=null,c=null,u=!1,l=null,d=null,h=null,g=null,y=null,m=null,D=!1,E=()=>isWebDiagnosticsEnabled&&isWebDiagnosticsEnabled()&&decorationDiagCount{let w=null;try{w=vscode.workspace.getConfiguration("explorerDates")}catch{w=null}let U=w?w.get("colorScheme","none"):"none",b=w?w.get("showDateDecorations",!0):!0,H=typeof provider._performanceMode=="boolean"?provider._performanceMode:w?w.get("performanceMode",!1):!1,oe=isWebRuntime&&w?!!w.get("webDiagnosticsBuiltinColors",!1):!1;return{isWeb:isWebRuntime,isCanary:!1,builtinColorFallbackActive:oe,colorScheme:U,effectiveColorScheme:U,showDateDecorations:b,performanceMode:H,featureLevel:provider.B,previewSettings:!!provider.X}},F=w=>{if(!E()||r)return;decorationDiagCount+=1,r=!0;let b={...M(),...w};!b.scheme&&n&&(b.scheme=n),b.effectiveColorScheme||(b.effectiveColorScheme=b.colorScheme),typeof b.hasColor>"u"&&(b.hasColor=!!b.color),typeof b.badge>"u"&&(b.badge=null),typeof b.propagate>"u"&&(b.propagate=null),typeof b.decorationKeys>"u"&&(b.decorationKeys=null),typeof b.nullReason>"u"&&(b.nullReason=null),typeof b.timestampSource>"u"&&(b.timestampSource="not-attempted"),typeof b.gitRecencyAvailable>"u"&&(b.gitRecencyAvailable=!1),typeof b.gitRecencyError>"u"&&(b.gitRecencyError=null),typeof b.resolvedTimestampMs>"u"&&(b.resolvedTimestampMs=null),typeof b.gitRepoMatched>"u"&&(b.gitRepoMatched=null),typeof b.gitPathAttempted>"u"&&(b.gitPathAttempted=null),b.themeTokenSource||(b.isCanary?b.themeTokenSource="canary":b.builtinColorFallbackActive?b.themeTokenSource="builtin-fallback":typeof b.color=="string"&&b.color.startsWith("explorerDates.")?b.themeTokenSource="custom-token":b.color?b.themeTokenSource="builtin-token":b.themeTokenSource=null),diagLog("info","Decoration return sample",b)},X=w=>{if(!(!E()||r))try{F(w)}catch{}};try{if(provider.Be){a="disposed";return}if(!e){a="no-uri";return}let w=e.fsPath||e.path||"";n=e.scheme||"file";let U=vscode.workspace.getConfiguration("explorerDates"),b=U.get("performanceMode",!1);if(b&&typeof b!="boolean")return a="invalid-performanceMode",null;if(w&&w.includes("\0"))return a="invalid-path",null;let H=getUriPath(e);if(!H){a="missing-path";return}let oe=provider.Ke?provider.Ke(H):getFileName(H)||H,ft=normalizePath(H),Ur=n||"file";if(typeof provider.je!="function"){diagLogOnce("decorations-fallback-provider","warn","Decoration fallback active (missing provider helpers)");try{let A=await provider._fileSystem.stat(e);if(!A){a="no-stat";return}let Y=A.mtime instanceof Date?A.mtime:A.mtime?new Date(A.mtime):null,Me=Y&&typeof Y.getTime=="function"?Y.getTime():NaN;if(!Number.isFinite(Me)){a="invalid-stat";return}let se=Date.now()-Y.getTime(),Ie=se<1440*60*1e3?"\u2022":se<10080*60*1e3?"\u25E6":"\xB7",We=`Modified: ${Y.toISOString()}`,me=new vscode.FileDecoration(Ie,We);return i=me,y=Ie,h=!1,g=null,m=me?.propagate,me}catch{a="fallback-error";return}}if(!provider.je(e,"provideFileDecoration")?.isValid){a="invalid-uri";return}if(await provider.tr(e)){a="excluded";return}return i=await provider.rr(w,async()=>{if(t?.isCancellationRequested||provider.Be){a=t?.isCancellationRequested?"cancelled":"disposed";return}let A=(k,pe)=>provider.X&&Object.prototype.hasOwnProperty.call(provider.X,k)?provider.X[k]:vscode.workspace.getConfiguration("explorerDates").get(k,pe);if(isWebRuntime&&A("webDiagnosticsCanary",!1)&&isWebDiagnosticsEnabled&&isWebDiagnosticsEnabled()&&decorationDiagCount=provider.ue;if(provider.ir>provider.ue*.8&&We){diagLogOnce("decorations-backpressure","warn","Decoration backpressure fallback active");let k=provider.ar(e,Date.now());return y=k?.badge||null,h=!!k?.color,g=k?.color&&k?.color.id?k.color.id:k?.color||null,m=k?.propagate,a="backpressure",k}provider.or(),provider._metrics.cacheMisses++;let N=null;if(!Me&&provider._workspaceIntelligence?.incrementalIndexer){let k=provider._workspaceIntelligence.incrementalIndexer.getIndexedStat(w);k&&(N=k)}let gt=Date.now();if(!N){try{N=await provider._fileSystem.stat(e)}catch(k){if(provider._metrics.fileStatTimeMs+=Date.now()-gt,provider._metrics.fileStatCalls++,provider.sr(k)){a="stat-not-found";return}if(Ur!=="file"){a="stat-failed";return}throw a="stat-failed",k}provider._workspaceIntelligence?.incrementalIndexer&&provider._workspaceIntelligence.incrementalIndexer.primeFromStat(e,N)}if(provider._metrics.fileStatTimeMs+=Date.now()-gt,provider._metrics.fileStatCalls++,!(typeof N.isFile=="function"?N.isFile():!0)){a="not-regular-file";return}u=!0;let v=null;try{typeof provider.pt=="function"&&(v=await provider.pt(e,N,{filePath:w,fileLabel:oe}))}catch(k){c={source:"unknown",gitAvailable:!1,gitError:k?.message?`resolver-error:${k.message}`:"resolver-error",repoMatched:null,pathAttempted:null}}if((!v||v.bucket==="unknown"||v.source==="unknown")&&!A("freshnessShowUnknown",!0)){a="freshness-unknown";return}let Le=A("colorScheme","none");provider._performanceMode&&Le!=="custom"&&(Le="none");let Hr=A("fileSizeFormat","auto"),Z=provider.yt,$r=Z&&typeof Z.Te=="function"?Z.Te:provider.Te,Br=Z&&typeof Z.acquireDecorationFromPool=="function"?Z.acquireDecorationFromPool:provider.cr,Oe=formatBadge(v?.bucket||"unknown",v?.source||"unknown",U,v?.confidence||"low");if(!Oe){a="badge-suppressed";return}let $=v?.exactTimestamp?provider.lr(new Date(v.exactTimestamp),Le,w):void 0,Kr=formatTooltip(v,U)||await $r({filePath:w,resourceUri:e,stat:N,badgeDetails:{},gitBlame:null,shouldUseAccessibleTooltips:!1,fileSizeFormat:Hr,isCodeFile:!1}),Ne=Br({badge:Oe,tooltip:Kr,color:$});return g=$&&typeof $=="object"&&"id"in $?$.id:$||null,h=!!$,y=String(Oe||""),m=Ne?.propagate,typeof g=="string"&&g.startsWith("explorerDates.customColor.")&&!CONTRIBUTED_CUSTOM_COLOR_TOKENS.has(g)&&diagLogOnce(`missing-custom-color-${g}`,"warn","Custom color token missing from contributes.colors",{colorId:g,knownTokens:Array.from(CONTRIBUTED_CUSTOM_COLOR_TOKENS)}),l=v?.exactTimestamp||null,c=c||{source:v?.source||"unknown",bucket:v?.bucket||"unknown",confidence:v?.confidence||"low",reason:v?.reason||null,attempts:v?.attempts||null,gitAvailable:v?.source==="git",gitError:null,repoMatched:null,pathAttempted:null},provider.ur(se,Ne,oe,e,v),Ne}),i}catch(w){o=w?.name||"Error",s=w?.message||String(w),a=a||"exception";return}finally{if(i){if(d==null)try{d=Object.keys(i||{})}catch{d=null}if(y==null&&typeof i.badge<"u"&&(y=i.badge),m==null&&typeof i.propagate<"u"&&(m=i.propagate),g==null&&typeof i.color<"u")try{g=i.color&&i.color.id?i.color.id:i.color}catch{g=i.color}h==null&&typeof g<"u"&&(h=!!g)}let w={uri:e?getFileName(getUriPath(e)||""):null,scheme:n,isCanary:D,badge:y,hasColor:h,color:g,propagate:m,decorationKeys:d,nullReason:i?null:a||"unknown",timestampSource:c?.source||(u?"none":"not-attempted"),gitRecencyAvailable:!!c?.gitAvailable,gitRecencyError:c?.gitError||null,resolvedTimestampMs:l,gitRepoMatched:c?.repoMatched??null,gitPathAttempted:c?.pathAttempted||null,freshnessBucket:c?.bucket||null,freshnessSource:c?.source||null,freshnessConfidence:c?.confidence||null,freshnessReason:c?.reason||null,freshnessAttempts:c?.attempts||null,exceptionName:o,exceptionMessage:s};X(w)}}return{provideDecoration}}module.exports={createDecorationProviderHelpers}});var st=_((xa,mr)=>{function fr(e){!e._allocationTelemetryEnabled||e._telemetryReportTimer||(e._telemetryReportTimer=setTimeout(()=>{e._telemetryReportTimer=null,gr(e),fr(e)},e._telemetryReportInterval))}function gr(e){let t=e.getMetrics().allocationTelemetry,r=t.decorationPool.allocations+t.badgeFlyweight.allocations+t.readableFlyweight.allocations,n=t.decorationPool.reuses+t.badgeFlyweight.reuses+t.readableFlyweight.reuses;(r>0||n>0)&&e._logger?.info?.("\u{1F9EE} Allocation telemetry report",{timestamp:new Date().toISOString(),pool:{allocations:t.decorationPool.allocations,reuses:t.decorationPool.reuses,reuseRate:t.decorationPool.reusePercent+"%"},badgeFlyweight:{allocations:t.badgeFlyweight.allocations,reuses:t.badgeFlyweight.reuses,reuseRate:t.badgeFlyweight.reusePercent+"%"},readableFlyweight:{allocations:t.readableFlyweight.allocations,reuses:t.readableFlyweight.reuses,reuseRate:t.readableFlyweight.reusePercent+"%"},summary:{totalAllocations:r,totalReuses:n,overallReuseRate:r+n>0?(n/(r+n)*100).toFixed(1)+"%":"0%"},decorationsProcessed:e._metrics.totalDecorations,cacheHitRate:e.getMetrics().cacheHitRate})}mr.exports={scheduleTelemetryReport:fr,reportAllocationTelemetry:gr}});var pr=_((exports,module)=>{var CHUNK_SIZES={onboarding:34,analysisCommands:23,exportReporting:17,extensionApi:15,workspaceTemplates:14,advancedCache:28,workspaceIntelligence:31,incrementalWorkers:19},BASE_BUNDLE_SIZE=99;function _getPresetDefinitionsSync(){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=dynamicRequire("./chunks/preset-definitions-chunk");if(e&&e.PRESET_DEFINITIONS)return e.PRESET_DEFINITIONS}}catch{}let FALLBACK_PRESET={minimal:{id:"minimal",name:"Minimal",description:"Lean setup that prioritizes responsiveness in large repos.",targetScenarios:["Large repos","Low resources","Minimal UI"],settings:{"explorerDates.performanceMode":!0,"explorerDates.showDateDecorations":!0}},balanced:{id:"balanced",name:"Balanced",description:"Default feature mix for most workspaces.",targetScenarios:["General development","Mixed workloads"],settings:{"explorerDates.enableOnboardingSystem":!0,"explorerDates.enableAnalysisCommands":!0,"explorerDates.performanceMode":!1,"explorerDates.dateDecorationFormat":"smart","explorerDates.colorScheme":"recency","explorerDates.badgePriority":"time"}},"web-development":{id:"web-development",name:"Web Development",description:"Optimized for frontend and full-stack web projects.",targetScenarios:["Web apps","Frontend teams"],settings:{"explorerDates.enableOnboardingSystem":!0,"explorerDates.dateDecorationFormat":"smart","explorerDates.colorScheme":"file-type","explorerDates.badgePriority":"time"}},enterprise:{id:"enterprise",name:"Enterprise",description:"Full feature set with reporting and integrations enabled.",targetScenarios:["Large teams","Governed environments"],settings:{"explorerDates.enableExportReporting":!0,"explorerDates.enableExtensionApi":!0,"explorerDates.dateDecorationFormat":"smart","explorerDates.colorScheme":"recency","explorerDates.badgePriority":"time"}},"data-science":{id:"data-science",name:"Data Science",description:"Insight-focused profile for data-heavy projects.",targetScenarios:["Data analysis","Research workflows"],settings:{"explorerDates.enableWorkspaceIntelligence":!0,"explorerDates.dateDecorationFormat":"iso-detailed","explorerDates.colorScheme":"recency","explorerDates.badgePriority":"time"}}};return FALLBACK_PRESET}var PRESET_DEFINITIONS=_getPresetDefinitionsSync(),RESTART_REQUIRED_SETTINGS=new Set(["enableOnboardingSystem","enableAnalysisCommands","enableExportReporting","enableExtensionApi","enableWorkspaceTemplates","enableAdvancedCache","enableWorkspaceIntelligence","enableIncrementalWorkers","performanceMode","smartFileWatching"]);function calculateBundleSize(e){let t=BASE_BUNDLE_SIZE;return e["explorerDates.enableOnboardingSystem"]&&(t+=CHUNK_SIZES.onboarding),e["explorerDates.enableAnalysisCommands"]&&(t+=CHUNK_SIZES.analysisCommands),e["explorerDates.enableExportReporting"]&&(t+=CHUNK_SIZES.exportReporting),e["explorerDates.enableExtensionApi"]&&(t+=CHUNK_SIZES.extensionApi),e["explorerDates.enableWorkspaceTemplates"]&&(t+=CHUNK_SIZES.workspaceTemplates),e["explorerDates.enableAdvancedCache"]&&(t+=CHUNK_SIZES.advancedCache),e["explorerDates.enableWorkspaceIntelligence"]&&(t+=CHUNK_SIZES.workspaceIntelligence),e["explorerDates.enableIncrementalWorkers"]&&(t+=CHUNK_SIZES.incrementalWorkers),t}function getDefaultPresetForProfile(e){let t=PRESET_DEFINITIONS;switch(e){case"minimal":case"extreme":return t.minimal||t.minimal;case"balanced":return t.balanced||t.balanced;case"web-development":return t["web-development"]||t["web-development"];case"data-science":return t["data-science"]||t["data-science"];case"enterprise":return t.enterprise||t.enterprise;default:return t.balanced||t.balanced}}module.exports={PRESET_DEFINITIONS,CHUNK_SIZES,BASE_BUNDLE_SIZE,RESTART_REQUIRED_SETTINGS,calculateBundleSize,getDefaultPresetForProfile}});var br=_((Ma,yr)=>{var Se={onboarding:"src/chunks/onboarding-chunk",onboardingAssets:"src/chunks/onboarding-assets-chunk",reporting:"src/chunks/reporting-chunk",templates:"src/chunks/templates-chunk",analysis:"src/chunks/analysis-chunk",diagnostics:"src/chunks/diagnostics-chunk",extensionApi:"src/chunks/extension-api-chunk",advancedCache:"src/chunks/advancedCache-chunk",batchProcessor:"src/chunks/batchProcessor-chunk",decorationsAdvanced:"src/chunks/decorations-advanced",decorationsStatic:"src/chunks/decorations-static",workspaceIntelligence:"src/chunks/workspaceIntelligence",decorationLogic:"src/chunks/decoration-logic-chunk",decorationProvide:"src/chunks/decoration-provide-chunk",decorationHelpers:"src/chunks/decoration-helpers-chunk",decorationBatch:"src/chunks/decoration-batch-chunk",decorationWorkspaceIntel:"src/chunks/decoration-workspace-intel-chunk",decorationTelemetry:"src/chunks/decoration-telemetry-chunk",decorationRefresh:"src/chunks/decoration-refresh-chunk",decorationMemory:"src/chunks/decoration-memory-chunk",decorationPool:"src/chunks/decoration-pool-chunk",providerInit:"src/chunks/provider-init-chunk",fileDateProviderImpl:"src/chunks/file-date-provider-impl",fileDateProviderImplExport:"src/chunks/file-date-provider-impl-export",utilsShared:"src/chunks/utils-shared-chunk",incrementalWorkers:"src/chunks/incrementalWorkers",incrementalIndexer:"src/chunks/incrementalIndexer-chunk",uiAdapters:"src/chunks/ui-adapters",gitInsights:"src/chunks/gitInsights-chunk",smartWatcherFallback:"src/chunks/smartWatcherFallback-chunk",runtimeManagement:"src/chunks/runtime-management",runtimeManagementHeavy:"src/chunks/runtime-management-heavy",teamPersistence:"src/chunks/team-persistence-chunk",teamPersistenceUI:"src/chunks/team-persistence-ui-chunk",teamPersistenceLogic:"src/chunks/team-persistence-logic-chunk",settingsCoordinatorImpl:"src/chunks/settings-coordinator-impl-chunk",logger:"src/chunks/logger-chunk",loggerImpl:"src/chunks/logger-impl-chunk"};function Ri(e){return Se[e]||null}function Pi(){return Object.keys(Se)}function xi(e){let t={};for(let[r,n]of Object.entries(Se))t[r]=()=>e(`./${n}`);return t}var Mi=new Set(["gitInsights","reporting","templates","advancedCache","runtimeManagementHeavy","incrementalWorkers"]);yr.exports={CHUNK_MAP:Se,WEB_EXCLUDED_CHUNKS:Mi,getChunkSourcePath:Ri,getAllChunkNames:Pi,generateDevLoaderMap:xi}});var G=_((exports,module)=>{var FEATURE_FLAGS_GLOBAL_KEY="__explorerDatesFeatureFlags";function registerFeatureFlagsGlobal(e){if(e)try{typeof globalThis<"u"&&(globalThis[FEATURE_FLAGS_GLOBAL_KEY]=e)}catch{}}function loadFeatureFlagsFallback(){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function")return dynamicRequire("../featureFlags")}catch{}return null}function getFeatureFlagsGlobal(){try{if(typeof globalThis<"u"&&globalThis[FEATURE_FLAGS_GLOBAL_KEY])return globalThis[FEATURE_FLAGS_GLOBAL_KEY]}catch{}return loadFeatureFlagsFallback()}module.exports={FEATURE_FLAGS_GLOBAL_KEY,registerFeatureFlagsGlobal,getFeatureFlagsGlobal}});var ge=_((exports,module)=>{var getLogger=()=>{try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=dynamicRequire("./chunks/logger-chunk");if(e&&typeof e.getLogger=="function")return getLogger=e.getLogger,getLogger()}}catch{}try{return getLogger=q().getLogger,getLogger()}catch{return getLogger=()=>({debug:(()=>{})?.bind(console)||console.log,info:(()=>{}).bind(console),warn:(()=>{}).bind(console),error:(()=>{}).bind(console)}),getLogger()}},{CHUNK_SIZES}=pr(),{getChunkSourcePath,getAllChunkNames}=br(),{registerFeatureFlagsGlobal}=G(),{isWebEnvironment}=J(),featureLogger=null,env=typeof process<"u"&&process.env?process.env:{},DEFAULT_CHUNK_TIMEOUT_MS=Number(env.EXPLORER_DATES_CHUNK_TIMEOUT||(env.NODE_ENV==="test"?1e3:5e3)),NETWORK_ERROR_CODES=new Set(["ENOTFOUND","ECONNRESET","ECONNREFUSED","EAI_AGAIN","ETIMEDOUT","EHOSTUNREACH"]),BUILT_CHUNK_CACHE=new Map,CHUNK_METHOD_ALIASES={reporting:"exportReporting",templates:"workspaceTemplates",analysis:"analysisCommands"},DEV_CHUNK_PATH_CACHE=new Map,LAST_FEATURE_FAILURES=new Map;function getDevChunkImportPath(e){if(DEV_CHUNK_PATH_CACHE.has(e))return DEV_CHUNK_PATH_CACHE.get(e);let t=getChunkSourcePath(e);if(!t)return DEV_CHUNK_PATH_CACHE.set(e,null),null;let r=t;return r.startsWith("src/")&&(r=r.slice(4)),r.startsWith("./")||(r=`./${r}`),DEV_CHUNK_PATH_CACHE.set(e,r),r}function resolveNodeDependencies(){if(nativeDepsResolved)return!!(nativePath&&nativeFs);if(nativeDepsResolved=!0,!isNodeLikeRuntime())return!1;try{nativePath=eval("require")("path"),nativeFs=eval("require")("fs")}catch{nativePath=null,nativeFs=null}return!!(nativePath&&nativeFs)}var nativeDepsResolved=!1,nativePath=null,nativeFs=null;function isWebRuntime(){try{return isWebEnvironment()?!0:typeof process<"u"&&process?.env?.VSCODE_WEB==="true"}catch{return!1}}function isNodeLikeRuntime(){return typeof process<"u"&&!!process.versions?.node&&!isWebRuntime()}function getChunkTimeoutMs(){return DEFAULT_CHUNK_TIMEOUT_MS>0?DEFAULT_CHUNK_TIMEOUT_MS:0}function logFeature(e,t,r){featureLogger||(featureLogger=getLogger());let n=featureLogger;typeof n[e]=="function"?n[e](t,r):n.info(t,r)}function logFeatureDisabled(e,t){logFeature("info","Feature disabled via configuration",{feature:e,savedKB:t&&CHUNK_SIZES[t]!==void 0?CHUNK_SIZES[t]:void 0})}function isLikelyNetworkIssue(e){if(!e)return!1;if(e.code&&NETWORK_ERROR_CODES.has(e.code))return!0;let t=(e.message||"").toLowerCase();return t.includes("network")||t.includes("fetch")||t.includes("timed out")}function runWithChunkTimeout(e,t){let r=getChunkTimeoutMs(),n=()=>{try{return Promise.resolve(e())}catch(i){return Promise.reject(i)}};return r?new Promise((i,a)=>{let o=!1,s=setTimeout(()=>{if(o)return;o=!0;let c=new Error(`Chunk "${t}" load timed out after ${r}ms`);c.code="CHUNK_TIMEOUT",a(c)},r);n().then(c=>{o||(o=!0,clearTimeout(s),i(c))}).catch(c=>{o||(o=!0,clearTimeout(s),a(c))})}):n()}function logResolverFailure(e,t){if(!t)return;let r={chunkName:e,error:t.message,code:t.code,networkIssue:isLikelyNetworkIssue(t),timedOut:t.code==="CHUNK_TIMEOUT"},n=r.networkIssue||r.timedOut?"warn":"error";logFeature(n,"Chunk resolver failed",r)}function tryLoadBuiltChunk(e){if(!e||!resolveNodeDependencies()||typeof nativeFs?.existsSync!="function")return null;if(BUILT_CHUNK_CACHE.has(e))return BUILT_CHUNK_CACHE.get(e);let t=[];typeof __dirname=="string"&&nativePath&&(t.push(nativePath.join(__dirname,"chunks",`${e}.js`)),t.push(nativePath.join(__dirname,"..","dist","chunks",`${e}.js`)));for(let r of t)try{if(!r||!nativeFs.existsSync(r))continue;let n=require(r),i=n?.default||n;return BUILT_CHUNK_CACHE.set(e,i||null),i&&logFeature("info","Loaded chunk via built artifact fallback",{chunkName:e,path:r}),i}catch(n){logFeature("warn","Built chunk fallback failed",{chunkName:e,path:r,error:n.message})}return BUILT_CHUNK_CACHE.set(e,null),null}function tryRequireDevChunk(e){if(isWebRuntime())return null;let t=getDevChunkImportPath(e);if(!t)return null;try{let r=require(t);return r?.default||r}catch(r){(r.code!=="MODULE_NOT_FOUND"||typeof r.message=="string"&&!r.message.includes(t))&&logFeature("debug","Dev chunk require failed",{chunkName:e,importPath:t,error:r.message})}return null}function tryRequireLocalBuiltChunk(e){if(isWebRuntime())return null;let t=`./chunks/${e}`;try{let r=require(t);return r?.default||r}catch(r){r.code==="MODULE_NOT_FOUND"||logFeature("debug","Local chunk require failed",{chunkName:e,importPath:t,error:r.message})}return null}function getSavingsKey(e){return e in CHUNK_SIZES?e:CHUNK_METHOD_ALIASES[e]||null}function announceChunkSavings(e){let t=getSavingsKey(e);if(!t)return;let r=CHUNK_SIZES[t];if(!r)return;let i=`\u{1F4BE} ${t===e||!e?t:`${t} (requested as "${e}")`} chunk unavailable - keeping the feature disabled is saving ~${r}KB`;logFeature("info","Chunk savings applied",{chunkName:t,requestedName:e,savedKB:r})}var getFeatureConfig=()=>{try{let t=require("vscode").workspace.getConfiguration("explorerDates"),r=isWebRuntime(),n=i=>r?!1:i;return{enableOnboarding:t.get("enableOnboardingSystem",!0),enableExportReporting:n(t.get("enableExportReporting",!0)),enableWorkspaceTemplates:n(t.get("enableWorkspaceTemplates",!0)),enableAnalysisCommands:t.get("enableAnalysisCommands",!0),enableAdvancedCache:n(t.get("enableAdvancedCache",!0)),enableWorkspaceIntelligence:n(t.get("enableWorkspaceIntelligence",!0)),enableIncrementalWorkers:n(t.get("enableIncrementalWorkers",!1)),enableGitInsights:n(t.get("enableGitInsights",!0)),enableExtensionApi:t.get("enableExtensionApi",!0)}}catch{let e=isWebRuntime(),t=r=>e?!1:r;return{enableOnboarding:!0,enableExportReporting:t(!0),enableWorkspaceTemplates:t(!0),enableAnalysisCommands:!0,enableAdvancedCache:t(!0),enableWorkspaceIntelligence:t(!0),enableIncrementalWorkers:t(!1),enableGitInsights:t(!0),enableExtensionApi:!0}}},featureLoaders=new Map,chunkResolver=null;function setFeatureChunkResolver(e){if(e&&typeof e!="function")throw new Error("Feature chunk resolver must be a function");chunkResolver=e||null}function registerFeatureLoader(e,t){if(typeof t!="function")throw new Error(`Feature loader for "${e}" must be a function`);featureLoaders.set(e,t)}function unregisterFeatureLoader(e){featureLoaders.delete(e)}function clearFeatureLoaders(){featureLoaders.clear()}async function loadFeatureModule(e){LAST_FEATURE_FAILURES.delete(e);let t=featureLoaders.get(e);if(!t&&chunkResolver&&(t=()=>chunkResolver(e)),!t)return logFeature("warn","No loader registered for feature",{feature:e}),null;try{return await runWithChunkTimeout(()=>t(),e)}catch(r){return LAST_FEATURE_FAILURES.set(e,r),logFeature("warn","Feature loader failed",{feature:e,error:r.message,code:r.code,networkIssue:isLikelyNetworkIssue(r)}),announceChunkSavings(e),null}}function getFeatureLoadFailure(e){return LAST_FEATURE_FAILURES.get(e)}function registerDefaultLoaders(){getAllChunkNames().forEach(t=>{featureLoaders.has(t)||registerFeatureLoader(t,createDefaultLoader(t))})}function createDefaultLoader(e){return async()=>{if(chunkResolver&&typeof chunkResolver=="function")try{let i=await runWithChunkTimeout(()=>chunkResolver(e),e);if(i)return i;logFeature("info","Chunk resolver returned no module",{chunkName:e})}catch(i){logResolverFailure(e,i)}let t=tryRequireDevChunk(e);if(t)return t;let r=tryRequireLocalBuiltChunk(e);if(r)return r;let n=tryLoadBuiltChunk(e);return n||(logFeature("warn","No built artifact available for chunk",{chunkName:e}),null)}}var featureFlags={async onboarding(){return getFeatureConfig().enableOnboarding?loadFeatureModule("onboarding"):(logFeatureDisabled("onboarding","onboarding"),null)},async exportReporting(){return getFeatureConfig().enableExportReporting?loadFeatureModule("reporting"):(logFeatureDisabled("exportReporting","exportReporting"),null)},async workspaceTemplates(){return getFeatureConfig().enableWorkspaceTemplates?loadFeatureModule("templates"):(logFeatureDisabled("workspaceTemplates","workspaceTemplates"),null)},async analysisCommands(){return getFeatureConfig().enableAnalysisCommands?loadFeatureModule("analysis"):(logFeatureDisabled("analysisCommands","analysisCommands"),null)},async advancedCache(){return getFeatureConfig().enableAdvancedCache?loadFeatureModule("advancedCache"):(logFeatureDisabled("advancedCache","advancedCache"),null)},async workspaceIntelligence(){return getFeatureConfig().enableWorkspaceIntelligence?loadFeatureModule("workspaceIntelligence"):(logFeatureDisabled("workspaceIntelligence","workspaceIntelligence"),null)},async incrementalWorkers(){return getFeatureConfig().enableIncrementalWorkers?loadFeatureModule("incrementalWorkers"):(logFeatureDisabled("incrementalWorkers","incrementalWorkers"),null)},async extensionApi(){return getFeatureConfig().enableExtensionApi?loadFeatureModule("extensionApi"):(logFeatureDisabled("extensionApi","extensionApi"),null)},async uiAdapters(){return loadFeatureModule("uiAdapters")},async batchProcessor(){return loadFeatureModule("batchProcessor")},async decorationsAdvanced(){return loadFeatureModule("decorationsAdvanced")},async decorationsProviderImpl(){return loadFeatureModule("decorationsProviderImpl")},async gitInsights(){return getFeatureConfig().enableGitInsights?loadFeatureModule("gitInsights"):(logFeatureDisabled("gitInsights","gitInsights"),null)},isEnabled(e){let t=getFeatureConfig();return{onboarding:t.enableOnboarding,exportReporting:t.enableExportReporting,workspaceTemplates:t.enableWorkspaceTemplates,analysisCommands:t.enableAnalysisCommands,advancedCache:t.enableAdvancedCache,workspaceIntelligence:t.enableWorkspaceIntelligence,incrementalWorkers:t.enableIncrementalWorkers,extensionApi:t.enableExtensionApi}[e]??!0},getEnabledFeatures(){let e=getFeatureConfig(),t=[];return e.enableOnboarding&&t.push("onboarding"),e.enableExportReporting&&t.push("exportReporting"),e.enableWorkspaceTemplates&&t.push("workspaceTemplates"),e.enableAnalysisCommands&&t.push("analysisCommands"),e.enableAdvancedCache&&t.push("advancedCache"),e.enableWorkspaceIntelligence&&t.push("workspaceIntelligence"),e.enableIncrementalWorkers&&t.push("incrementalWorkers"),e.enableExtensionApi&&t.push("extensionApi"),t},calculateSavings(){let e=getFeatureConfig(),t=0;return e.enableOnboarding||(t+=34),e.enableExportReporting||(t+=17),e.enableExtensionApi||(t+=15),e.enableWorkspaceTemplates||(t+=14),e.enableWorkspaceIntelligence||(t+=12),e.enableAnalysisCommands||(t+=8),e.enableAdvancedCache||(t+=5),t}};for(let[e,t]of Object.entries(CHUNK_METHOD_ALIASES))!featureFlags[e]&&typeof featureFlags[t]=="function"&&(featureFlags[e]=(...r)=>featureFlags[t](...r));function calculateSavings(e){e||(e=getFeatureConfig());let t=267,r=0;e.enableOnboarding||(r+=34),e.enableExportReporting||(r+=17),e.enableExtensionApi||(r+=15),e.enableWorkspaceTemplates||(r+=14),e.enableWorkspaceIntelligence||(r+=12),e.enableIncrementalWorkers||(r+=19),e.enableAnalysisCommands||(r+=8),e.enableAdvancedCache||(r+=5);let n=t-r,i=r>0?Math.round(r/t*100):0;return{baseSize:`${t}KB`,totalSavings:`${r}KB`,optimizedSize:`${n}KB`,percentage:i}}registerDefaultLoaders();var exportedFeatureFlags={...featureFlags,getFeatureConfig,calculateSavings,registerFeatureLoader,setFeatureChunkResolver,unregisterFeatureLoader,clearFeatureLoaders,loadFeatureModule,getFeatureLoadFailure,registerDefaultLoaders};registerFeatureFlagsGlobal(exportedFeatureFlags);module.exports=exportedFeatureFlags});var _r=_((exports,module)=>{var vscode=require("vscode"),getLogger=()=>{try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=dynamicRequire("./chunks/logger-chunk");if(e&&typeof e.getLogger=="function")return getLogger=e.getLogger,getLogger()}}catch{}try{return getLogger=q().getLogger,getLogger()}catch{return getLogger=()=>({debug:(()=>{})?.bind(console)||console.log,info:(()=>{}).bind(console),warn:(()=>{}).bind(console),error:(()=>{}).bind(console)}),getLogger()}},{fileSystem}=$e(),env=typeof process<"u"&&process.env?process.env:{},{formatFileSize}=Be(),getFileName=p=>{try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=null;try{e=dynamicRequire("../chunks/utils-shared-chunk")}catch{}try{e||(e=dynamicRequire("./chunks/utils-shared-chunk"))}catch{}try{e||(e=dynamicRequire("./chunks/path-utils-chunk"))}catch{}if(e&&typeof e.getFileName=="function")return getFileName=e.getFileName,getFileName(p)}}catch{}try{let t=String(p||"").replace(/\\/g,"/"),r=t.lastIndexOf("/");return r===-1?t:t.substring(r+1)}catch{return"unknown"}},getExtension=p=>{try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=null;try{e=dynamicRequire("../chunks/utils-shared-chunk")}catch{}try{e||(e=dynamicRequire("./chunks/utils-shared-chunk"))}catch{}try{e||(e=dynamicRequire("./chunks/path-utils-chunk"))}catch{}if(e&&typeof e.getExtension=="function")return getExtension=e.getExtension,getExtension(p)}}catch{}try{let e=String(p||""),t=e.lastIndexOf(".");return t<=0?"":e.substring(t).toLowerCase()}catch{return""}},buildCacheKey=p=>{try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=null;try{e=dynamicRequire("../chunks/utils-shared-chunk")}catch{}try{e||(e=dynamicRequire("./chunks/utils-shared-chunk"))}catch{}try{e||(e=dynamicRequire("./chunks/path-utils-chunk"))}catch{}if(e&&typeof e.getCacheKey=="function")return buildCacheKey=e.getCacheKey,buildCacheKey(p)}}catch{}return String(p||"").toLowerCase().replace(/\\/g,"/")},normalizePath=input=>{try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=null;try{e=dynamicRequire("../chunks/utils-shared-chunk")}catch{}try{e||(e=dynamicRequire("./chunks/utils-shared-chunk"))}catch{}try{e||(e=dynamicRequire("./chunks/path-utils-chunk"))}catch{}if(e&&typeof e.normalizePath=="function")return normalizePath=e.normalizePath,normalizePath(input)}}catch{}return String(input||"").replace(/\\/g,"/")},getUriPath=(target="")=>{try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=null;try{e=dynamicRequire("../chunks/utils-shared-chunk")}catch{}try{e||(e=dynamicRequire("./chunks/utils-shared-chunk"))}catch{}try{e||(e=dynamicRequire("./chunks/path-utils-chunk"))}catch{}if(e&&typeof e.getUriPath=="function")return getUriPath=e.getUriPath,getUriPath(target)}}catch{}if(!target)return"";if(typeof target=="string")return target;if(typeof target.fsPath=="string"&&target.fsPath.length>0)return target.fsPath;if(typeof target.path=="string"&&target.path.length>0)return target.path;if(typeof target.toString=="function")try{return target.toString(!0)}catch{return target.toString()}return String(target)},{DEFAULT_CACHE_TIMEOUT,DEFAULT_MAX_CACHE_SIZE,GLOBAL_STATE_KEYS,DEFAULT_DECORATION_POOL_SIZE,DEFAULT_FLYWEIGHT_CACHE_SIZE,WORKSPACE_SCALE_EXTREME_THRESHOLD}=I(),{isWebEnvironment}=J(),{getSettingsCoordinator}=Ve(),{SecurityValidator,SecureFileOperations,detectSecurityEnvironment}=Ze(),DISABLE_GIT_FEATURES=env.EXPLORER_DATES_DISABLE_GIT_FEATURES==="1",IS_WEB_ENV=isWebEnvironment()||env.VSCODE_WEB==="true",nodePath=null;try{IS_WEB_ENV||(nodePath=require("path"))}catch{nodePath=null}var pathCompat={basename:e=>{if(!e)return"";try{if(!IS_WEB_ENV)return require("path").basename(e)}catch{let t=e.replace(/\\/g,"/"),r=t.lastIndexOf("/");return r===-1?t:t.substring(r+1)}},dirname:e=>{if(!e)return".";try{if(!IS_WEB_ENV)return require("path").dirname(e)}catch{let t=e.replace(/\\/g,"/"),r=t.lastIndexOf("/");return r===-1?".":t.substring(0,r)}}};(async()=>{try{let t=await ge().decorationsStatic();t&&(t.basename&&t.dirname&&(pathCompat.basename=t.basename,pathCompat.dirname=t.dirname),t.describeFile&&(exports.Ke=t.describeFile))}catch{}})();var CONFIG_DEFAULT_CACHE_TIMEOUT=3e4,CACHE_NAMESPACE_SEPARATOR="::",DEFAULT_DYNAMIC_WATCHER_LIMIT=Number(env.EXPLORER_DATES_MAX_DYNAMIC_WATCHERS||200),DEFAULT_WATCHER_INACTIVITY_MS=Number(env.EXPLORER_DATES_WATCHER_TTL_MS||600*1e3),DEFAULT_SMART_WATCHER_EXTENSIONS=["js","ts","json","md","py","java"],SMART_WATCHER_PRIORITY=new Map([["src",100],["lib",65],["test",30]]),WORKSPACE_SCAN_TIMEOUT_MS=Number(env.EXPLORER_DATES_WORKSPACE_SCAN_TIMEOUT||7e3),WORKSPACE_SCAN_TIMEOUT_FALLBACK_COUNT=WORKSPACE_SCALE_EXTREME_THRESHOLD,VIEWPORT_DEFAULT_WINDOW_MS=300*1e3,DEFAULT_VIEWPORT_HISTORY_LIMIT=Number(env.EXPLORER_DATES_VIEWPORT_HISTORY_LIMIT||400),FEATURE_LEVELS=["full","enhanced","standard","minimal"],DEFAULT_INDEXER_MAX_FILES=Math.max(100,Number(env.EXPLORER_DATES_INDEXER_MAX_FILES||2e3)),SECURITY_EXTRA_PATHS_ENV="EXPLORER_DATES_SECURITY_EXTRA_PATHS",DEFAULT_SECURITY_THROTTLE_MS=Number(env.EXPLORER_DATES_SECURITY_WARNING_THROTTLE_MS||5e3),SECURITY_WARNING_CACHE_LIMIT=Number(env.EXPLORER_DATES_SECURITY_WARNING_CACHE||500),DEFAULT_SECURITY_MAX_WARNINGS=Number(env.EXPLORER_DATES_SECURITY_MAX_WARNINGS_PER_FILE??1),describeFile=(e="")=>{try{let t=typeof e=="string"?e:getUriPath(e),r=normalizePath(t);return getFileName(r)||r||"unknown"}catch{return"unknown"}};(async()=>{try{let t=await ge().decorationsStatic();t&&typeof t.describeFile=="function"&&(describeFile=t.describeFile)}catch{}})();var LazyHierarchicalDecorationCache=class{constructor(){this.n=new Map}get size(){return this.n.size}get bucketCount(){return 0}clear(){this.n.clear()}get(t){return this.n.get(t)}set(t,r){this.n.set(t,r)}delete(t){return this.n.delete(t)}*entries(){yield*this.n.entries()}*keys(){yield*this.n.keys()}*values(){yield*this.n.values()}[Symbol.iterator](){return this.entries()}enforceLimit(){return 0}},FileDateDecorationProviderImpl=class{constructor(...args){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=dynamicRequire("./chunks/file-date-provider-impl");if(e&&typeof e.FileDateDecorationProviderImpl=="function")return new e.FileDateDecorationProviderImpl(...args);if(e&&typeof e.FileDateDecorationProvider=="function")return new e.FileDateDecorationProvider(...args)}}catch(e){}throw new Error("FileDateDecorationProvider implementation is not available in this environment")}},FileDateDecorationProvider=class{constructor(...args){let loaderError=null;try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function")try{let e=null;try{e=dynamicRequire("./chunks/file-date-provider-impl-export")}catch{}if(e){let r=e.FileDateDecorationProvider||e.FileDateDecorationProviderImpl||e.default;return typeof r=="function"?new r(...args):new FileDateDecorationProviderImpl(...args)}e=dynamicRequire("./chunks/file-date-provider-impl");let t=e&&(e.FileDateDecorationProvider||e.FileDateDecorationProviderImpl||e.default);if(typeof t=="function")return new t(...args)}catch(e){loaderError=e}try{let e=null;try{e=require.resolve("./chunks/file-date-provider-impl-export",{paths:[__dirname]})}catch{}e||(e=require.resolve("./chunks/file-date-provider-impl",{paths:[__dirname]}));let t=require(e),r=t&&(t.FileDateDecorationProvider||t.FileDateDecorationProviderImpl||t.default);if(e&&e.endsWith("file-date-provider-impl-export.js")&&!r)return new FileDateDecorationProviderImpl(...args);if(typeof r=="function")return new r(...args)}catch(e){loaderError=loaderError||e}}catch(e){loaderError=loaderError||e}if(loaderError&&loaderError.message){let e=`FileDateDecorationProvider implementation is unavailable: ${loaderError.message}`;throw new Error(e)}throw new Error("FileDateDecorationProvider implementation is unavailable")}};module.exports={FileDateDecorationProvider,FileDateDecorationProviderImpl}});var Er=_((exports,module)=>{try{require("vscode")}catch{}var env=typeof process<"u"&&process.env?process.env:{},diagLog=null,isWebDiagnosticsEnabled=()=>!1;try{let e=he();e&&(diagLog=e.diagLog,isWebDiagnosticsEnabled=e.isWebDiagnosticsEnabled||(()=>!1))}catch{}function isWebRuntime(){try{let{isWebEnvironment:e}=J();return e()}catch{return env.VSCODE_WEB==="true"}}function getWebChunkRegistry(){try{let{WEB_CHUNK_GLOBAL_KEY:e,LEGACY_WEB_CHUNK_GLOBAL_KEY:t}=I();if(typeof globalThis<"u")return globalThis[e]||globalThis[t]||null}catch{}return typeof globalThis<"u"&&(globalThis.explorerDatesChunks||globalThis.nn)||null}function resolveProviderModuleFromWebRegistry(){let e=getWebChunkRegistry();if(!e)return null;let t=[e.fileDateProviderImplExport,e.fileDateProviderImpl,e.fileDateProviderImplExport,e.fileDateProviderImpl,e["file-date-provider-impl-export"],e["file-date-provider-impl"]].filter(Boolean);return t.length>0?t[0]:null}function normalizeModuleExports(e){if(!e)return null;let t=e&&typeof e=="object"?e:{default:e},r=t&&typeof t=="object"&&t.default?t.default:null;return r&&typeof r=="object"?{...t,...r}:t}async function hydrateProviderOptionalSystems(e){try{try{let r=(await Promise.resolve().then(()=>R(at()))).getLocalization();e.p.getString=(...i)=>r.getString(...i),e.p.formatDate=(...i)=>r.formatDate(...i),e.p.getCurrentLocale=()=>r.getCurrentLocale();let n=e.p.dispose;e.p.dispose=()=>{try{r.dispose()}catch{}n()}}catch(t){e._logger?.debug("provider-init: localization hydrate failed",t)}try{let t=await Promise.resolve().then(()=>R(ot()));t&&typeof t.createDecorationLogic=="function"&&(e.yt=t.createDecorationLogic(e))}catch(t){e._logger?.debug("provider-init: preload decoration logic failed",t)}try{let t=await Promise.resolve().then(()=>R(Ce())),r=t&&(typeof t.createDecorationProviderHelpers=="function"?t.createDecorationProviderHelpers(e):t);e.hr=r}catch(t){e._logger?.debug("provider-init: preload decoration provider helpers failed",t)}try{let t=await e.Z();t&&typeof t.initializeAdvancedSystems=="function"&&await t.initializeAdvancedSystems(e)}catch(t){e._logger?.debug("provider-init: initializeAdvancedSystems failed",t)}try{let t=st();t&&typeof t.scheduleTelemetryReport=="function"&&e._allocationTelemetryEnabled&&t.scheduleTelemetryReport(e)}catch(t){e._logger?.debug("provider-init: scheduling telemetry failed",t)}}catch(t){try{e._logger?.debug("provider-init: hydration failed",t)}catch{}}}function createFileDateDecorationProvider(context){try{let ProviderClass=null,webRuntime=isWebRuntime();if(webRuntime){let e=getWebChunkRegistry(),t=[e?.fileDateProviderImplExport,e?.fileDateProviderImpl,e?.fileDateProviderImplExport,e?.fileDateProviderImpl,e?.["file-date-provider-impl-export"],e?.["file-date-provider-impl"]].filter(Boolean),r=t[0]||resolveProviderModuleFromWebRegistry();!e&&isWebDiagnosticsEnabled()?diagLog?.("warn","Provider registry missing in web runtime"):!r&&isWebDiagnosticsEnabled()&&diagLog?.("warn","Provider module missing from web registry",{hasRegistry:!!e,availableKeys:Object.keys(e||{}),candidateCount:t.length});let n=null;for(let i of t){let a=normalizeModuleExports(i),o=a&&(a.FileDateDecorationProvider||a.FileDateDecorationProviderImpl||a.default);if(o){n=o;break}isWebDiagnosticsEnabled()&&diagLog?.("warn","Provider exports missing expected class",{availableExportKeys:Object.keys(a||{})})}ProviderClass=n,!ProviderClass&&isWebDiagnosticsEnabled()&&t.length>0&&diagLog?.("warn","Provider class unresolved from registry entries",{candidateCount:t.length,availableRegistryKeys:Object.keys(e||{})})}try{if(!webRuntime){let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=null;try{e=dynamicRequire("./fileDateProviderImplExport")}catch{}if(!e)try{e=dynamicRequire("./fileDateProviderImpl")}catch{}ProviderClass=e&&(e.FileDateDecorationProvider||e.FileDateDecorationProviderImpl||e.default)}}}catch{}if(!ProviderClass&&!webRuntime){let{FileDateDecorationProvider:e}=_r();ProviderClass=e}if(!ProviderClass)return isWebDiagnosticsEnabled()&&diagLog?.("warn","Provider class unavailable",{webRuntime,registryKeys:Object.keys(getWebChunkRegistry()||{})}),null;let provider=new ProviderClass;return isWebDiagnosticsEnabled()&&diagLog?.("info","Provider class resolved",{className:ProviderClass?.name||"unknown"}),(async()=>{try{await provider.initializeAdvancedSystems(context)}catch(e){provider._logger?.debug("provider-init: provider factory init failed",e)}})(),{createFileDateDecorationProvider:()=>provider}}catch{return null}}module.exports={hydrateProviderOptionalSystems,createFileDateDecorationProvider}});var Tr=_((Ia,Sr)=>{var O=require("vscode"),{getLogger:Ii}=q(),{WORKSPACE_SCALE_BALANCED_THRESHOLD:wr,WORKSPACE_SCALE_LARGE_THRESHOLD:ve,WORKSPACE_SCALE_EXTREME_THRESHOLD:kr,WORKSPACE_SCAN_MAX_RESULTS:Dr}=I(),ct=Ii(),Te=null;function Cr(e){return e&&(e.fsPath||e.path)||null}function lt(e,t){let r=Cr(e);!r||typeof t!="number"||(Te={workspaceKey:r,fileCount:t,timestamp:Date.now()})}function ut(e){let t=Cr(e);return!t||!Te||Te.workspaceKey!==t?null:Te}function Wi(e,t="default"){if(!e)return`unknown-workspace-${t}`;let r=e.fsPath||e.path||"",n=r.split("/").pop()||"workspace",i=Math.abs(r.split("").reduce((o,s)=>(o=(o<<5)-o+s.charCodeAt(0),o&o),0)).toString(36).substr(0,8),a=Math.abs(t.split("").reduce((o,s)=>(o=(o<<5)-o+s.charCodeAt(0),o&o),0)).toString(36).substr(0,4);return`${n}-${i}-${a}`}async function Li(e){try{if(!e)return"unknown";let t=ut(e),r;t?r=t.fileCount:(r=(await O.workspace.findFiles("**/*",null,Dr)).length,lt(e,r));let n="small";r>=kr?n="extreme":r>=ve?n="large":r>=1e3&&(n="medium");let i=O.env.remoteName,a=O.env.uiKind===O.UIKind.Web,o=n==="medium"&&r>=wr&&ru.toLowerCase());if(c.includes("package.json")||c.includes("yarn.lock"))return"web-development";if(c.some(u=>u.endsWith(".ipynb"))||c.includes("requirements.txt"))return"data-science";if(c.includes("docker-compose.yml")||c.includes(".enterprise"))return"enterprise"}catch(s){ct.debug("Project type detection failed:",s)}return"full"}catch(t){return ct.error("Workspace profile detection failed:",t),"unknown"}}async function Oi(e){if(!e)return null;try{let t=ut(e),r;t?r=t.fileCount:(r=(await O.workspace.findFiles("**/*",null,Dr)).length,lt(e,r));let n="small";r>=kr?n="extreme":r>=ve?n="large":r>=1e3&&(n="medium");let i=!!O.env.remoteName,a=O.env.uiKind===O.UIKind.Web,o=a?"web":i?"remote":"local",s=n==="medium"&&r>=wr&&r{var vscode=require("vscode"),getFileName,getExtension,normalizePath,getUriPath,ensureDate;try{let e=K();e&&(getFileName=e.getFileName,getExtension=e.getExtension,normalizePath=e.normalizePath,getUriPath=e.getUriPath,ensureDate=e.ensureDate)}catch{}if(!getFileName||!ensureDate){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function")try{let e=dynamicRequire("../utils/pathUtils"),t=dynamicRequire("../utils/dateHelpers");getFileName=getFileName||e.getFileName,getExtension=getExtension||e.getExtension,normalizePath=normalizePath||e.normalizePath,getUriPath=getUriPath||e.getUriPath,ensureDate=ensureDate||t.ensureDate}catch{}}catch{}getFileName||(getFileName=e=>{let t=String(e||""),r=t.replace(/\\/g,"/").lastIndexOf("/");return r===-1?t:t.substring(r+1)}),getExtension||(getExtension=e=>{let t=String(e||""),r=t.lastIndexOf(".");return r<=0?"":t.substring(r).toLowerCase()}),normalizePath||(normalizePath=(e="")=>(e||"").toString().replace(/\\/g,"/")),getUriPath||(getUriPath=(e="")=>e?typeof e=="string"?e:e?.fsPath?e.fsPath:e?.path?e.path:String(e):""),ensureDate||(ensureDate=e=>e instanceof Date?e:typeof e=="number"?new Date(e):typeof e=="string"?isNaN(Date.parse(e))?new Date:new Date(Date.parse(e)):new Date)}var SMART_WATCHER_PRIORITY=new Map([["src",100],["lib",65],["test",30]]);async function performWorkspaceSizeCheck(e){let t=vscode.workspace.getConfiguration("explorerDates"),r=t.get("forceEnableForLargeWorkspaces",!1),n=t.get("performanceMode",!1),i=r||n,a=vscode.workspace.workspaceFolders;if(!a||a.length===0)return;e._logger.info("Checking workspace size for large workspace detection...");let o=await e.an(e._getIndexerMaxFiles()),s=!Array.isArray(o),c=s?e.WORKSPACE_SCAN_TIMEOUT_FALLBACK_COUNT:o.length;if(s){let l=e.WORKSPACE_SCAN_TIMEOUT_MS?`${e.WORKSPACE_SCAN_TIMEOUT_MS}ms`:"the configured timeout";e._logger.warn(`Workspace scan exceeded ${l}; defaulting to extreme scale`)}else{let l=`${e.WORKSPACE_SCALE_LARGE_THRESHOLD}+`;e._logger.info(`Workspace contains ${c>=e.WORKSPACE_SCALE_LARGE_THRESHOLD?l:c} files`)}let u=e.u;e.Ge=c,e.u=c>=e.WORKSPACE_SCALE_EXTREME_THRESHOLD?"extreme":c>=e.WORKSPACE_SCALE_LARGE_THRESHOLD?"large":"normal";try{let l=a[0]?.uri;Tr().setCachedWorkspaceMetrics(l,c)}catch(l){e._logger.debug("Unable to cache workspace file count",l)}u!==e.u&&e.J&&!e._performanceMode&&(e._logger.info(`Workspace scale changed ${u} -> ${e.u}; recalibrating watchers`),e.Q("workspace-scale-update")),e._batchProcessor&&typeof e._batchProcessor.setWorkspaceScale=="function"&&e._batchProcessor.setWorkspaceScale(e.u||"normal"),e.Xe(e.Ye(vscode.workspace.getConfiguration("explorerDates")),"workspace-scale-change"),i&&e._logger.debug("Large workspace prompt suppressed (force/performance mode), but scaling adjustments applied")}async function findWorkspaceFilesWithTimeout(e,t){let r=Number.isFinite(e.WORKSPACE_SCAN_TIMEOUT_MS)?e.WORKSPACE_SCAN_TIMEOUT_MS:0,n=vscode.workspace.findFiles("**/*",null,t);if(!r||r<=0)return n;try{return await new Promise((i,a)=>{let o=null,s=(c,u=!1)=>{o&&(clearTimeout(o),o=null),u?a(c):i(c)};o=setTimeout(()=>s(null),r),n.then(c=>s(c),c=>s(c,!0))})}catch(i){return e._logger.warn("Workspace scan failed, assuming large workspace",{error:i?.message||String(i)}),null}}async function _buildSmartWatcherTargets(e,t,r){let n=[],i=Math.max(1,r.maxPatterns),a=i,o=t.length;for(let s of t){if(a<=0)break;let c=Math.max(1,Math.floor(a/o)),u=new vscode.RelativePattern(s,"*.{md,mdx,json,jsonc,yml,yaml,ts,tsx,js,jsx}");if(n.push({pattern:u,label:`root:${s.name}`}),a-=1,a<=0)break;let l=Math.min(Math.max(c-1,0),a);if(l>0)try{let d=typeof e._fileSystem?.readdir=="function"?await e._fileSystem.readdir(s.uri||s.fsPath||s):[],h=(Array.isArray(d)?d:[]).filter(m=>m&&(typeof m.isDirectory=="function"?m.isDirectory():!0)).map(m=>typeof m=="string"?m:m.name||"").filter(Boolean).filter(m=>!["node_modules",".git","dist","build","out"].includes(m));e._logger?.debug&&e._logger.debug("smart-watcher: top-level dirs",{folder:s.name,dirs:h}),h.sort((m,D)=>(SMART_WATCHER_PRIORITY.get(D)||0)-(SMART_WATCHER_PRIORITY.get(m)||0));let y=h.slice(0,l).map(m=>({pattern:new vscode.RelativePattern(s,`${m}/**/*.{md,mdx,json,jsonc,yml,yaml,ts,tsx,js,jsx}`),label:`sub:${s.name}/${m}`})).slice(0,l);n.push(...y),a-=y.length}catch{}o-=1}return n.slice(0,i)}function _addExclusionValueToSet(e,t,r={}){if(!t)return;let{onlyRootSegment:n=!1}=r,i=typeof t=="string"?t:typeof t?.toString=="function"?t.toString():"";if(!i||typeof i!="string")return;let a=i.trim();if(!a)return;let s=a.replace(/\\/g,"/").replace(/\*\*/g,"").replace(/\*/g,"").split("/").map(c=>c.trim()).filter(Boolean);if(!s.length){if(a.includes("*")||a.includes("?"))return;e.add(a.toLowerCase());return}if(n){e.add(s[0].toLowerCase());return}for(let c of s)e.add(c.toLowerCase())}function registerWatcherHandlers(e,t,r="unknown"){t&&(t.onDidChange(n=>e.W(n,"change",r)),t.onDidCreate(n=>e.W(n,"create",r)),t.onDidDelete(n=>e.W(n,"delete",r)))}function dispatchWatcherEvent(e,t,r,n="unknown"){r==="delete"?e.clearDecoration(t):e.refreshDecoration(t),e._workspaceIntelligence?.incrementalIndexer&&e._workspaceIntelligence.incrementalIndexer.queueDelta(t,r),e.Ze&&e._logger.debug(`Watcher event processed (${r}) for ${e.describeFile(t)} via ${n}`)}module.exports={performWorkspaceSizeCheck,findWorkspaceFilesWithTimeout,K:_buildSmartWatcherTargets,on:_addExclusionValueToSet,registerWatcherHandlers,dispatchWatcherEvent}});var dt=_((exports,module)=>{var vscode=require("vscode"),{DEFAULT_DYNAMIC_WATCHER_LIMIT,DEFAULT_WATCHER_INACTIVITY_MS}=I(),proc=typeof process<"u"?process:null,env=proc?.env||{},normalizePath,getUriPath;try{let e=K();e&&(normalizePath=e.normalizePath,getUriPath=e.getUriPath)}catch{}if(!normalizePath){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function")try{let e=dynamicRequire("../utils/pathUtils");normalizePath=normalizePath||e.normalizePath,getUriPath=getUriPath||e.getUriPath}catch{}}catch(e){}normalizePath||(normalizePath=(e="")=>(e||"").toString().replace(/\\/g,"/")),getUriPath||(getUriPath=(e="")=>e?typeof e=="string"?e:e?.fsPath?e.fsPath:e?.path?e.path:String(e):"")}var{getLogger}=q(),nodePath=null;try{nodePath=require("path")}catch{}var WatcherManager=class{constructor(t){this.t=t,this._logger=t._logger||getLogger(),this.s=new Set,this.h=void 0,this.T=[],this.d=new Map,this.L=null,this.E=t.E||new Map,this._smartWatcherFallbackManager=t._smartWatcherFallbackManager||null,this.ee=null,this.j="none"}setupFileWatcher(t="initial"){if(this.t._performanceMode||this.t.D){let i=this.t.D?"provider disposed":"performance mode enabled";this._logger.debug(`Skipping file watcher setup (${t}) - ${i}`);return}this.h||(this.h={pending:!0});let r=++this.t.Je;(async()=>{if(this.ee)try{await this.ee}catch(a){this._logger.debug("Previous watcher setup promise rejected",a)}let i=this.Fe(r,t);this.ee=i;try{await i}finally{this.ee===i&&(this.ee=null)}})().catch(i=>this._logger.error("Failed to configure file watchers",i))}async Fe(t,r){if(this.Ae(t))return;if(this.disposeFileWatchers({permanent:!1}),this.Ae(t))return this.Qe("post-dispose");this.h={pending:!0};let n=vscode.workspace.workspaceFolders;if(!n||n.length===0){this._logger.debug("No workspace folders detected; skipping watcher setup"),this.j="none";return}if(this.t._isWeb){this._logger.info("File watchers are unavailable in web environments; skipping watcher setup"),this.j="none";return}let i=vscode.workspace.getConfiguration("explorerDates"),a=env.EXPLORER_DATES_DISABLE_SMART_WATCHERS==="1";this.t.J=!a&&i.get("smartFileWatching",!0),this.t._enableWatcherFallbacks=this.t.J&&i.get("enableSmartWatcherFallbacks","auto");let o=i.get("smartWatcherMaxPatterns",20),s=this.t.dr(i.get("smartWatcherExtensions",[])),c=this.t.gr(o);if(this.t.bt={maxPatterns:c,extensions:s},this.Ae(t))return this.Qe("post-config");if(!this.t.J){this._logger.info("Smart file watching disabled; falling back to global watcher"),await this.Pe("disabled");return}let u=[];try{if(typeof this.t.K=="function")u=await this.t.K(n,this.t.bt);else try{let l=ht();if(l&&typeof l.K=="function")u=await l.K(this.t,n,this.t.bt);else throw new Error("_buildSmartWatcherTargets not implemented on provider or helper")}catch(l){throw l}}catch(l){this._logger.error("Smart watcher analysis failed, falling back to global watcher",l),await this.Pe("analysis-failed");return}if(this.Ae(t))return this.Qe("post-analysis");if(!u||u.length===0){this._logger.warn("Smart watcher analysis yielded no targets; falling back to global watcher"),await this.Pe("no-targets");return}for(let l of u)try{let d=await this._t(l.pattern,l.label);d&&(this.he(d,l.label),this.s.add(d))}catch(d){this._logger.debug(`Failed to create watcher for pattern ${l.label}`,d)}if(this.s.size===0){this._logger.warn("Smart watcher setup produced zero watchers; using global fallback"),await this.Pe("no-watchers-created");return}this.h=this.s.values().next().value||void 0,this.j="smart",this._logger.info(`Smart file watching enabled (${this.s.size} base watcher${this.s.size===1?"":"s"})`,{reason:r,patterns:u.map(l=>l.label)}),this.mr()}Ae(t){return!!(this.t.D||this.t._performanceMode||typeof t=="number"&&t!==this.t.Je)}Qe(t="unknown"){let r=this.t._performanceMode||this.t.D;this.disposeFileWatchers({permanent:r}),this._logger.debug(`Watcher setup aborted (${t})`,{permanentAbort:r,disposed:this.t.D,performanceMode:this.t._performanceMode})}async Z(){try{let{getFeatureFlagsGlobal:t}=G(),r=t();return(r?await r.decorationsAdvanced():null)||null}catch(t){return this._logger.debug("Failed to load decorationsAdvanced chunk",t),null}}async _t(t,r="unknown"){try{let i=await this.Z();if(i?.createWatcherWithFallback)return await i.createWatcherWithFallback(this.t,t,r)}catch(i){this._logger.debug(`Advanced watcher chunk failed for ${r}`,i)}let n=()=>{let i=this.t._enableWatcherFallbacks;if(i===!1)return!1;if(i==="auto"||i===!0){let a=proc?.platform,o=env.WSL_DISTRO_NAME||env.WSLENV,s=vscode.env.remoteName,c=env.DOCKER_CONTAINER;return o||s||c||a==="android"}return!1};try{let i=vscode.workspace.createFileSystemWatcher(t);return this._logger.debug(`Native watcher created for ${r}`),i}catch(i){return this._logger.debug(`Native watcher failed for ${r}:`,i),n()?this.pr(t,r):null}}async pr(t,r){try{let n=await this.Z();if(n?.createFallbackWatcher)return await n.createFallbackWatcher(this.t,t,r)}catch(n){this._logger.warn(`Fallback watcher creation failed for ${r}:`,n)}try{if(!this._smartWatcherFallbackManager){let{getFeatureFlagsGlobal:n}=G(),i=n(),a=i?await i.loadFeatureModule("smartWatcherFallback"):null;if(a){let{SmartWatcherFallbackManager:o}=a;this._smartWatcherFallbackManager=new o({logger:this._logger}),await this._smartWatcherFallbackManager.initialize()}}if(this._smartWatcherFallbackManager){let i=await(await this._smartWatcherFallbackManager.getFallback()).createWatcherWithFallback(t);return this._logger.debug(`Fallback watcher created for ${r}`),i}}catch(n){this._logger.warn(`Fallback watcher creation failed for ${r}:`,n)}return null}async Pe(t="global-default"){this.Et();let r=await this._t("**/*",`global:${t}`);r?(this.he(r,`global:${t}`),this.s.add(r),this.h=r,this.j="global",this._logger.info(`Global watcher activated (${t})`)):this._logger.error(`Failed to create global watcher (${t})`)}he(t,r="unknown"){t&&(t.onDidChange(n=>this.W(n,"change",r)),t.onDidCreate(n=>this.W(n,"create",r)),t.onDidDelete(n=>this.W(n,"delete",r)))}W(t,r,n="unknown"){if(!t||t.scheme!=="file"||!this.t.je(t,`watcher:${r}`)?.isValid)return;let a=this.yr();if(a<=0){this.xe(t,r,n);return}let o=`${t.toString()}:${r}`,s=this.E.get(o);s&&clearTimeout(s.timer);let c=setTimeout(()=>{this.E.delete(o),this.xe(t,r,n)},a);this.E.set(o,{timer:c,source:n})}xe(t,r,n){try{this.t.Me?.(t)}catch{}r==="delete"?this.t.clearDecoration(t):this.t.refreshDecoration(t),this.t._workspaceIntelligence?.incrementalIndexer&&this.t._workspaceIntelligence.incrementalIndexer.queueDelta(t,r),this.t.Ze&&this._logger.debug(`Watcher event processed (${r}) for ${this.t.Ke(t)} via ${n}`)}yr(){if(this.t._performanceMode)return 0;switch(this.t.u){case"extreme":return 600;case"large":return 250;default:return 100}}handleWorkspaceFoldersChanged(t){let r=(t?.added||[]).map(a=>a.uri).filter(Boolean),n=(t?.removed||[]).map(a=>a.uri).filter(Boolean);if(r.length===0&&n.length===0)return;let i=async()=>{this._logger.info("Workspace folders changed",{added:r.length,removed:n.length}),await this.t.checkWorkspaceSize();try{this.t.clearAllCaches()}catch{}try{this.t.refreshAll()}catch{}if(!this.t._performanceMode&&(this.setupFileWatcher("workspace-change"),await this.t.wt().catch(a=>this._logger.debug("Failed to reconfigure progressive loading after workspace change",a)),this.t._workspaceIntelligence)){let a=(vscode.workspace.workspaceFolders||[]).map(o=>({uri:o.uri}));await this.t._workspaceIntelligence.onWorkspaceFoldersChanged({added:a,removed:n.map(o=>({uri:o}))})}};this.t.C&&clearTimeout(this.t.C),this.t.C=setTimeout(()=>{this.t.C=null,i().catch(a=>this._logger.debug("Workspace folder change handling failed",a))},250)}disposeFileWatchers(t={}){let r=t.permanent===!0;if(this.s?.size){for(let n of this.s)try{n.dispose()}catch(i){this._logger.debug("Failed to dispose file watcher",i)}this.s.clear()}this.h=r?null:void 0,this.Et(),this.kt(!0),this.br(),this.j="none"}br(){if(this.E?.size){for(let t of this.E.values())clearTimeout(t.timer);this.E.clear()}}mr(){if(!this.t.J||this.T.length>0)return;let t=(n,i)=>{let a=this.t.fe(vscode.window,n,i);a&&this.T.push(a)},r=(n,i)=>{let a=this.t.fe(vscode.workspace,n,i);a&&this.T.push(a)};t("onDidChangeVisibleTextEditors",n=>{(n||[]).forEach(i=>this.ge(i?.document?.uri,"visible-editor"))}),t("onDidChangeActiveTextEditor",n=>{this.ge(n?.document?.uri,"active-editor")}),r("onDidOpenTextDocument",n=>{this.ge(n?.uri,"open-document")}),r("onDidSaveTextDocument",n=>{this.ge(n?.uri,"save-document")}),this._r(),this.Er()}Et(){if(this.T?.length){for(let t of this.T)try{t.dispose()}catch(r){this._logger.debug("Failed to dispose watcher listener",r)}this.T=[]}this.Dt()}sn(){if(this._smartWatcherFallbackManager){try{this._smartWatcherFallbackManager.dispose()}catch(t){this._logger.debug("Error disposing smart watcher fallback manager:",t)}this._smartWatcherFallbackManager=null}}_r(){(Array.isArray(vscode.window?.visibleTextEditors)?vscode.window.visibleTextEditors:[]).forEach(r=>this.ge(r?.document?.uri,"visible-seed"))}Er(){this.L||(this.L=setInterval(()=>this.kt(),DEFAULT_WATCHER_INACTIVITY_MS))}Dt(){this.L&&(clearInterval(this.L),this.L=null)}kt(t=!1){if(!this.d?.size)return;let r=Date.now()-DEFAULT_WATCHER_INACTIVITY_MS;for(let[n,i]of this.d.entries())if(t||i.lastUsed=DEFAULT_DYNAMIC_WATCHER_LIMIT&&this.wr();try{let o=new vscode.RelativePattern(i,"**/*"),s=vscode.workspace.createFileSystemWatcher(o),c=nodePath.basename(i)||"root";this.he(s,`dynamic:${r}:${c}`),this.d.set(i,{watcher:s,lastUsed:Date.now(),source:r})}catch(o){this._logger.debug(`Failed to create dynamic watcher for ${i}`,o)}}wr(){let t=null,r=Number.POSITIVE_INFINITY;for(let[n,i]of this.d.entries())i.lastUsed{function createViewportManager(provider){let vscode=require("vscode"),normalizePath,getUriPath;try{let e=K();e&&(normalizePath=e.normalizePath,getUriPath=e.getUriPath)}catch{}if(!normalizePath){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function")try{let e=dynamicRequire("../utils/pathUtils");normalizePath=normalizePath||e.normalizePath,getUriPath=getUriPath||e.getUriPath}catch{}}catch{}normalizePath||(normalizePath=(e="")=>(e||"").toString().replace(/\\/g,"/")),getUriPath||(getUriPath=(e="")=>e?typeof e=="string"?e:e?.fsPath?e.fsPath:e?.path?e.path:String(e):"")}class ViewportManager{constructor(){this.t=provider,this.k=new Set,this.y=new Map,this.v=[],this.me=provider.me||400,this.O=provider.O||300*1e3,this.et=Date.now()}cn(){if(this.v.length>0)return;let t=(n,i)=>{let a=this.fe(vscode.window,n,i);a&&this.v.push(a)},r=(n,i)=>{let a=this.fe(vscode.workspace,n,i);a&&this.v.push(a)};t("onDidChangeVisibleTextEditors",n=>this.Ct(n)),t("onDidChangeActiveTextEditor",n=>this.Y(n?.document?.uri,{reason:"active-editor"})),r("onDidOpenTextDocument",n=>this.Y(n?.uri,{reason:"open-document"})),r("onDidSaveTextDocument",n=>this.Y(n?.uri,{reason:"save-document"})),this.Ct(Array.isArray(vscode.window?.visibleTextEditors)?vscode.window.visibleTextEditors:[]),vscode.window?.activeTextEditor?.document?.uri&&this.Y(vscode.window.activeTextEditor.document.uri,{reason:"initial-active"})}kr(){if(this.v?.length){for(let t of this.v)try{t.dispose()}catch(r){this.t._logger.debug("Failed to dispose viewport listener",r)}this.v=[],this.k.clear(),this.y.clear()}}Ct(t){if(this.k.clear(),!Array.isArray(t))return;let r=Date.now();for(let n of t){let i=n?.document?.uri;if(!i||i.scheme!=="file")continue;let a=normalizePath(getUriPath(i));a&&(this.k.add(a),this.y.set(a,r))}this.tt()}Y(t,r={}){if(!t||t.scheme!=="file")return;let n=normalizePath(getUriPath(t));if(!n)return;let i=Date.now();this.y.set(n,i),r.visible&&this.k.add(n),this.y.size>this.me?this.tt(!0):i-this.et>this.O&&this.tt()}tt(t=!1){let r=Date.now(),n=r-this.O*2;for(let[i,a]of this.y.entries())(t||athis.me&&a{var getFileName,normalizePath,getUriPath;try{let e=K();e&&(getFileName=e.getFileName,normalizePath=e.normalizePath,getUriPath=e.getUriPath)}catch{}if(!getFileName){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function")try{let e=dynamicRequire("../utils/pathUtils");getFileName=getFileName||e.getFileName,normalizePath=normalizePath||e.normalizePath,getUriPath=getUriPath||e.getUriPath}catch{}}catch{}getFileName||(getFileName=e=>{let t=String(e||""),r=t.replace(/\\/g,"/").lastIndexOf("/");return r===-1?t:t.substring(r+1)}),normalizePath||(normalizePath=(e="")=>(e||"").toString().replace(/\\/g,"/")),getUriPath||(getUriPath=(e="")=>e?typeof e=="string"?e:e?.fsPath?e.fsPath:e?.path?e.path:String(e):"")}var VIEWPORT_DEFAULT_WINDOW_MS=300*1e3,VIEWPORT_STANDARD_WINDOW_MS=600*1e3,VIEWPORT_MINIMAL_WINDOW_MS=900*1e3,DEFAULT_SMART_WATCHER_EXTENSIONS=["ts","tsx","js","jsx","mjs","cjs","mts","cts","vue","py","go","rb","rs","java","kt","swift","cs","cpp","c","php","scala","sql","md","mdx","json","jsonc","yml","yaml","toml","ini","txt","html","css","scss"],SMART_WATCHER_PRIORITY=new Map([["src",100],["app",95],["apps",95],["packages",90],["services",85],["service",80],["client",75],["clients",70],["server",70],["servers",65],["lib",65],["libs",60],["api",60],["apis",60],["components",55],["modules",55],["feature",50],["features",50],["extensions",45],["scripts",45],["tools",45],["examples",40],["docs",35],["config",35],["test",30],["tests",30],["spec",30],["specs",30],["demo",25],["demos",25]]);function basename(e){if(!e)return"";try{return require("path").basename(e)}catch{let t=e.replace(/\\/g,"/"),r=t.lastIndexOf("/");return r===-1?t:t.substring(r+1)}}function dirname(e){if(!e)return".";try{return require("path").dirname(e)}catch{let t=e.replace(/\\/g,"/"),r=t.lastIndexOf("/");return r===-1?".":t.substring(0,r)}}function describeFile(e=""){try{let t=typeof e=="string"?e:getUriPath(e),r=normalizePath(t);return getFileName(r)||r||"unknown"}catch{return"unknown"}}function getNormalizedPathsFromEditors(e){let t=Date.now();if(!Array.isArray(e))return[];let r=[];for(let n of e){let i=n?.document?.uri;if(!i||i.scheme!=="file")continue;let a=normalizePath(getUriPath(i));a&&r.push({path:a,ts:t})}return r}function keysToTrimViewportHistory(e,t,r,n=!1,i=Date.now()){let a=i-t*2,o=[];for(let[s,c]of e)(n||cr&&c({value:d,key:h?`badge:${t||"default"}:${h}`:null});switch(t){case"relative-short":case"relative-long":return a<1?l("\u25CF\u25CF","just"):a<60?l(`${Math.min(a,99)}m`,`m:${Math.min(a,99)}`):o<24?l(`${Math.min(o,23)}h`,`h:${Math.min(o,23)}`):s<7?l(`${s}d`,`d:${s}`):c<4?l(`${c}w`,`w:${c}`):u<12?l(`${u}M`,`M:${u}`):l("1y","y:1");case"absolute-short":case"absolute-long":{let d=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],h=e instanceof Date?e.getDate():new Date(e).getDate(),g=`${d[e instanceof Date?e.getMonth():new Date(e).getMonth()]}${h<10?"0"+h:h}`,y=`abs:${e instanceof Date?e.getMonth():new Date(e).getMonth()}-${h}`;return l(g,y)}case"technical":return a<60?l(`${a}m`,`tech:m:${a}`):o<24?l(`${o}h`,`tech:h:${o}`):l(`${s}d`,`tech:d:${s}`);case"minimal":return o<1?l("\u2022\u2022","min:now"):o<24?l("\u25CB\u25CB","min:hours"):l("\u2500\u2500","min:days");default:return a<60?l(`${a}m`,`smart:m:${a}`):o<24?l(`${o}h`,`smart:h:${o}`):l(`${s}d`,`smart:d:${s}`)}}module.exports={VIEWPORT_DEFAULT_WINDOW_MS,VIEWPORT_STANDARD_WINDOW_MS,VIEWPORT_MINIMAL_WINDOW_MS,DEFAULT_SMART_WATCHER_EXTENSIONS,SMART_WATCHER_PRIORITY,FILE_TYPE_COLOR_MAP,COLOR_ENHANCEMENT_MAP,getFileTypeColorMap,getColorEnhancementMap,getNormalizedPathsFromEditors,keysToTrimViewportHistory,computeReadableDescriptor,formatDateBadge,basename,dirname,describeFile}});var Ar=_((exports,module)=>{var vscode=null;try{vscode=require("vscode")}catch{}var proc=typeof process<"u"?process:null,env=proc?.env||{},{getFeatureFlagsGlobal}=G(),featureFlags=getFeatureFlagsGlobal(),FEATURE_LEVELS=["full","enhanced","standard","minimal"];if(!featureFlags)throw new Error("Explorer Dates: feature flags bridge unavailable for decorationsAdvanced chunk");function tryLoadChunk(...names){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function")for(let e of names)try{let t=dynamicRequire(e);if(t)return t}catch{}}catch{}return null}async function loadBatchProcessorIfNeeded(provider){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=dynamicRequire("./decoration-batch-chunk");if(e&&typeof e.loadBatchProcessorIfNeeded=="function")return await e.loadBatchProcessorIfNeeded(provider)}}catch(e){provider._logger?.debug?.("Delegated loadBatchProcessorIfNeeded failed",e)}return provider._logger?.debug?.("BatchProcessor not available (fallback)"),null}async function deferPreloads(e){try{Promise.resolve().then(()=>R(vr())).then(t=>{try{e.rt=t.createViewportManager?.(e)||null}catch(r){e._logger?.debug?.("Failed to init viewport manager",r)}}).catch(t=>e._logger?.debug?.("Failed to load viewport manager chunk",t)),Promise.resolve().then(()=>R(at())).then(t=>{try{let r=t.getLocalization();e.p.getString=(...i)=>r.getString(...i),e.p.formatDate=(...i)=>r.formatDate(...i),e.p.getCurrentLocale=()=>r.getCurrentLocale();let n=e.p.dispose;e.p.dispose=()=>{try{r.dispose()}catch{}n()}}catch{}}).catch(()=>{}),Promise.resolve().then(()=>R(ot())).then(t=>{try{e.yt=t.createDecorationLogic?.(e)||null}catch(r){e._logger?.debug?.("Failed to initialize decoration logic chunk",r)}}).catch(t=>e._logger?.debug?.("Failed to load decoration logic chunk",t)),Promise.resolve().then(()=>R(Ce())).then(t=>{try{e.hr=t.createDecorationProviderHelpers?.(e)||null}catch(r){e._logger?.debug?.("Failed to initialize decoration provide chunk",r)}}).catch(t=>e._logger?.debug?.("Failed to load decoration provide chunk",t)),e._logger?.debug?.("Deferred preloads scheduled")}catch(t){e._logger?.debug?.("deferPreloads failed",t)}}async function getCachedDecoration(provider,cacheKey,fileLabel){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function")try{let e=dynamicRequire("./decoration-cache-chunk");if(e&&typeof e.getCachedDecoration=="function")return await e.getCachedDecoration(provider,cacheKey,fileLabel)}catch{}if(provider.G)return provider._logger?.debug?.(`\u26A0\uFE0F Cache bypass enabled - recalculating decoration for: ${fileLabel}`),null;if(provider._advancedCache)try{let e=await provider._advancedCache.get(cacheKey);if(e)return provider._metrics.cacheHits++,provider._logger?.debug?.(`\u{1F9E0} Advanced cache hit for: ${fileLabel}`),e}catch(e){provider._logger?.debug?.(`Advanced cache error: ${e.message}`)}if(!provider.e||typeof provider.e.get!="function")return provider._logger?.debug?.("getCachedDecoration: no memory cache available, falling back"),null;let memoryEntry=provider.e.get(cacheKey);if(memoryEntry){if(memoryEntry.forceRefresh){try{provider.e.delete(cacheKey)}catch{}provider._logger?.debug?.(`\u{1F6AB} Memory cache bypassed (forced refresh) for: ${fileLabel}`)}else if(Date.now()-memoryEntry.timestampprovider.l&&typeof provider.e.enforceLimit=="function"&&provider.e.enforceLimit(provider.l,provider._logger)}catch{}let cacheEntry={decoration,timestamp:Date.now()};resourceUri&&(cacheEntry.uri=resourceUri);try{provider.e.set(cacheKey,cacheEntry)}catch{}try{typeof provider.ce=="function"&&provider.ce()}catch(e){provider._logger?.debug?.("monitorCachePressure from store failed",e)}if(provider._advancedCache)try{await provider._advancedCache.set(cacheKey,decoration,{ttl:provider.S}),provider._logger?.debug?.(`\u{1F9E0} Stored in advanced cache: ${fileLabel}`)}catch(e){provider._logger?.debug?.(`Failed to store in advanced cache: ${e.message}`)}try{typeof provider.le=="function"&&provider.le()}catch(e){provider._logger?.debug?.("maybeExtendCacheTimeout from store failed",e)}}catch(e){provider._logger?.debug?.("storeDecorationInCache failed",e)}}function cancelProgressiveWarmupJobs(provider){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=dynamicRequire("./decoration-batch-chunk");if(e&&typeof e.cancelProgressiveWarmupJobs=="function")return e.cancelProgressiveWarmupJobs(provider)}}catch(e){provider._logger?.debug?.("Delegated cancelProgressiveWarmupJobs failed",e)}try{let e=provider._progressiveLoadingJobs;e&&typeof e.clear=="function"&&e.clear()}catch(e){provider._logger?.debug?.("Fallback cancel failed",e)}}async function applyProgressiveLoadingSetting(provider){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=dynamicRequire("./decoration-batch-chunk");if(e&&typeof e.applyProgressiveLoadingSetting=="function")return e.applyProgressiveLoadingSetting(provider)}}catch(e){provider._logger?.debug?.("Delegated applyProgressiveLoadingSetting failed",e)}provider._logger?.debug?.("applyProgressiveLoadingSetting fallback invoked (no batch chunk)")}async function initializeAdvancedSystems(e,t){try{if(e._extensionContext=t,e._isWeb&&await e._maybeWarnAboutGitLimitations?.(),e._performanceMode){e._logger?.info?.("Performance mode enabled - skipping advanced cache, batch processor, and progressive loading");return}let r=await featureFlags.advancedCache();if(r){let i=null;if(typeof r=="function")if(r.name==="createAdvancedCache")e._advancedCache=r(t),await e._advancedCache.initialize(),e._logger?.info?.("Advanced cache initialized via factory function");else try{e._advancedCache=new r(t),await e._advancedCache.initialize(),e._logger?.info?.("Advanced cache initialized via direct constructor")}catch(a){e._logger?.warn?.("Failed to instantiate AdvancedCache via direct constructor, disabling advanced cache:",a.message),e._advancedCache=null}else r.AdvancedCache?(i=r.AdvancedCache,e._advancedCache=new i(t),await e._advancedCache.initialize(),e._logger?.info?.("Advanced cache initialized via module property")):r.createAdvancedCache?(e._advancedCache=r.createAdvancedCache(t),await e._advancedCache.initialize(),e._logger?.info?.("Advanced cache initialized via module factory")):(e._logger?.warn?.("AdvancedCache module format not recognized, disabling advanced cache"),e._advancedCache=null)}else e._logger?.info?.("Advanced cache disabled by feature flag"),e._advancedCache=null;await applyProgressiveLoadingSetting(e),e._batchProcessor&&(e._batchProcessor.initialize(),e._logger?.info?.("Batch processor initialized"));try{let i=tryLoadChunk("./decoration-workspace-intel-chunk","./decorationWorkspaceIntel","./decorationWorkspaceIntel.js","./decoration-workspace-intel-chunk.js");i&&typeof i.initializeWorkspaceIntelligence=="function"?await i.initializeWorkspaceIntelligence(e,t):e._logger?.info?.("Workspace intelligence not initialized (no chunk)")}catch(i){e._logger?.warn?.("Delegated workspace intelligence initialization failed",i?.message||String(i)),e._workspaceIntelligence=null}vscode.workspace.getConfiguration("explorerDates").get("autoThemeAdaptation",!0)&&e._themeIntegration?.autoConfigureForTheme&&(await e._themeIntegration.autoConfigureForTheme(),e._logger?.info?.("Theme integration configured")),e._accessibility?.shouldEnhanceAccessibility?.()&&(await e._accessibility.applyAccessibilityRecommendations?.(),e._logger?.info?.("Accessibility recommendations applied")),e._allocationTelemetryEnabled&&(scheduleTelemetryReport(e),e._logger?.info?.("Allocation telemetry enabled - reports every",e._telemetryReportInterval,"ms")),e._logger?.info?.("Advanced systems initialized successfully")}catch(r){e._logger?.error?.("Failed to initialize advanced systems",r)}}function shouldUseFallbackWatcher(e){return e._enableWatcherFallbacks===!1?!1:e._enableWatcherFallbacks==="auto"||e._enableWatcherFallbacks===!0?isPlatformFallbackRequired():!1}function isPlatformFallbackRequired(){let e=proc?.platform,t=env.WSL_DISTRO_NAME||env.WSLENV,r=vscode.env.remoteName,n=env.DOCKER_CONTAINER;return t||r||n||e==="android"}async function createFallbackWatcher(e,t,r){try{if(!e._smartWatcherFallbackManager){let n=await featureFlags.loadFeatureModule("smartWatcherFallback");if(n){let{SmartWatcherFallbackManager:i}=n;e._smartWatcherFallbackManager=new i({logger:e._logger}),await e._smartWatcherFallbackManager.initialize()}}if(e._smartWatcherFallbackManager){let i=await(await e._smartWatcherFallbackManager.getFallback()).createWatcherWithFallback(t);return e._logger?.debug?.(`Fallback watcher created for ${r}`),i}}catch(n){e._logger?.warn?.(`Fallback watcher creation failed for ${r}:`,n)}return null}async function createWatcherWithFallback(e,t,r="unknown"){try{let n=vscode.workspace.createFileSystemWatcher(t);return e._logger?.debug?.(`Native watcher created for ${r}`),n}catch(n){if(e._logger?.debug?.(`Native watcher failed for ${r}:`,n),!shouldUseFallbackWatcher(e))throw n;return createFallbackWatcher(e,t,r)}}async function ensureWatcherManager(e){try{if(e.f)return e.f;try{let t=await Promise.resolve().then(()=>R(dt()));return e.f=t.createWatcherManager(e),e.f}catch(t){e._logger?.debug?.("Failed to load watcher manager chunk from advanced chunk",t)}}catch(t){e._logger?.debug?.("ensureWatcherManager failed",t)}return null}async function setupFileWatcher(e,t="initial"){try{let r=await ensureWatcherManager(e);if(r&&typeof r.setupFileWatcher=="function")return r.setupFileWatcher(t)}catch(r){e._logger?.debug?.("setupFileWatcher failed in advanced chunk",r)}try{let r=createWatcherWithFallback(e,"**/*",`global:${t}`);if(r)return e.s||(e.s=new Set),e.s.add(r),e._logger?.info?.("Global watcher activated (fallback)",{reason:t}),r}catch(r){e._logger?.debug?.("setupFileWatcher fallback failed",r)}return null}function registerWatcherHandlers(e,t,r="unknown"){try{let n=e.f||null;if(n&&typeof n.he=="function")return n.he(t,r)}catch(n){e._logger?.debug?.("Watcher manager register watcher handlers failed (advanced)",n)}try{if(!t)return;t.onDidChange(n=>e.W(n,"change",r)),t.onDidCreate(n=>e.W(n,"create",r)),t.onDidDelete(n=>e.W(n,"delete",r))}catch(n){e._logger?.debug?.("registerWatcherHandlers fallback failed",n)}}function dispatchWatcherEvent(e,t,r,n){try{let i=e.f||null;if(i&&typeof i.xe=="function")return i.xe(t,r,n)}catch(i){e._logger?.debug?.("Watcher manager dispatch watcher event failed (advanced)",i)}try{try{e.Me?.(t)}catch{}r==="delete"?e.clearDecoration(t):e.refreshDecoration(t),e._workspaceIntelligence?.incrementalIndexer&&e._workspaceIntelligence.incrementalIndexer.queueDelta(t,r),e.Ze&&e._logger?.debug?.(`Watcher event processed (${r}) for ${e.describeFile(t)} via ${n}`)}catch(i){e._logger?.debug?.("dispatchWatcherEvent fallback failed",i)}}function buildSummaryTooltip(e,{filePath:t,stat:r,badgeDetails:n}){try{let i=tryLoadChunk("./decoration-formatters-chunk","./decorationFormatters","./decoration-formatters-chunk.js","./decorationFormatters.js","./decoration-helpers-chunk","./decorationHelpers","./decoration-helpers","./decoration-helpers-chunk.js","./decorationHelpers.js");if(i&&typeof i.buildSummaryTooltip=="function")return i.buildSummaryTooltip(e,{filePath:t,stat:r,badgeDetails:n})}catch(i){e._logger?.debug?.("Delegated buildSummaryTooltip failed",i)}try{let i=[];n?.readableModified&&i.push(`Modified ${n.readableModified}`);let a=n?.fileSizeLabel||(r?.size?e.gt(r.size,"auto"):null);return a&&i.push(a),`${typeof e.describeFile=="function"?e.describeFile(t):t} \u2014 ${i.filter(Boolean).join(" \u2022 ")||e.Dr(r?.mtime||new Date)}`}catch(i){return e._logger?.debug?.("buildSummaryTooltip failed",i),`${typeof e.describeFile=="function"?e.describeFile(t):t} \u2014 ${e.Dr(r?.mtime||new Date)}`}}function formatDateReadable(e,t){try{let r=tryLoadChunk("./decoration-formatters-chunk","./decorationFormatters","./decoration-formatters-chunk.js","./decorationFormatters.js","./decoration-helpers-chunk","./decorationHelpers","./decoration-helpers","./decoration-helpers-chunk.js","./decorationHelpers.js");if(r&&typeof r.formatDateReadable=="function")return r.formatDateReadable(e,t)}catch(r){e._logger?.debug?.("Delegated formatDateReadable failed",r)}try{let r=new Date,n=r.getTime()-t.getTime(),i=Math.floor(n/(1e3*60)),a=Math.floor(n/(1e3*60*60)),o=Math.floor(n/(1e3*60*60*24)),s=e.ln(t,r,i,a,o);return s?e.er(e.N,e.Ie,e.Cr,s.key,s.factory,e.Sr):t.getFullYear()===r.getFullYear()?e.p.formatDate(t,{month:"short",day:"numeric"}):e.p.formatDate(t,{month:"short",day:"numeric",year:"numeric"})}catch(r){return e._logger?.debug?.("formatDateReadable failed",r),e.p.formatDate(t)}}async function getGitBlameInfo(e,t,r=null){if(env.DISABLE_GIT_FEATURES==="1"||e.un)return null;try{let n=await featureFlags.gitInsights();return!n||typeof n.getGitBlameInfo!="function"?null:await n.getGitBlameInfo(t,r)}catch(n){return e._logger?.warn?.("Git blame lookup failed",{filePath:t,message:n?.message||String(n)}),null}}async function findWorkspaceFilesWithTimeout(provider,maxResults){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=dynamicRequire("./workspace-scan-chunk");if(e&&typeof e.findWorkspaceFilesWithTimeout=="function")return e.findWorkspaceFilesWithTimeout(provider,maxResults)}}catch(e){provider._logger?.debug?.("Delegated findWorkspaceFilesWithTimeout failed",e)}try{return require("vscode").workspace.findFiles("**/*",null,maxResults)}catch(e){return provider._logger?.warn?.("Workspace scan fallback failed",e),null}}function startWorkspaceScanWatchdog(provider){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=dynamicRequire("./workspace-scan-chunk");if(e&&typeof e.startWorkspaceScanWatchdog=="function")return e.startWorkspaceScanWatchdog(provider)}}catch(e){provider._logger?.debug?.("Delegated startWorkspaceScanWatchdog failed",e)}return Promise.resolve()}function clearWorkspaceScanWatchdog(provider){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=dynamicRequire("./workspace-scan-chunk");if(e&&typeof e.clearWorkspaceScanWatchdog=="function")return e.clearWorkspaceScanWatchdog(provider)}}catch(e){provider._logger?.debug?.("Delegated clearWorkspaceScanWatchdog failed",e)}provider.te&&(clearTimeout(provider.te),provider.te=null)}async function performWorkspaceSizeCheck(provider){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=dynamicRequire("./workspace-scan-chunk");if(e&&typeof e.performWorkspaceSizeCheck=="function")return e.performWorkspaceSizeCheck(provider)}}catch(e){provider._logger?.debug?.("Delegated performWorkspaceSizeCheck failed",e)}try{let e=require("vscode"),t=e.workspace.workspaceFolders;if(!t||t.length===0)return;provider._logger?.info?.("Checking workspace size (fallback, fast)");let r=await(e.workspace.findFiles?e.workspace.findFiles("**/*",null,1e3):[]),n=Array.isArray(r)?r.length:0;provider.Ge=n,provider.u=n>1e5?"extreme":n>1e4?"large":"normal",provider.Xe(provider.Ye(),"workspace-scale-change-fallback")}catch(e){provider._logger?.debug?.("performWorkspaceSizeCheck fallback failed",e)}}function getInitials(e,t){try{let n=tryLoadChunk("./decoration-formatters-chunk","./decorationFormatters","./decoration-formatters-chunk.js","./decorationFormatters.js","./decoration-helpers-chunk","./decorationHelpers","./decoration-helpers","./decoration-helpers-chunk.js","./decorationHelpers.js");if(n&&typeof n.getInitials=="function")return n.getInitials(e,t)}catch(n){e._logger?.debug?.("Delegated getInitials failed",n)}if(e.pe&&typeof e.pe.getInitials=="function")return e.pe.getInitials(t);if(!t||typeof t!="string")return null;let r=t.trim().split(/\s+/).filter(Boolean);return r.length===0?null:r.length===1?r[0].substring(0,2).toUpperCase():(r[0][0]+(r[1][0]||"")).substring(0,2).toUpperCase()}function formatCompactSize(e,t){try{let r=tryLoadChunk("./decoration-formatters-chunk","./decorationFormatters","./decoration-formatters-chunk.js","./decorationFormatters.js","./decoration-helpers-chunk","./decorationHelpers","./decoration-helpers","./decoration-helpers-chunk.js","./decorationHelpers.js");if(r&&typeof r.formatCompactSize=="function")return r.formatCompactSize(e,t)}catch(r){e._logger?.debug?.("Delegated formatCompactSize failed",r)}try{if(typeof t!="number"||isNaN(t))return null;let r=["B","K","M","G","T"],n=0,i=t;for(;i>=1024&&n=2?s.slice(0,2):s}catch(r){return e._logger?.debug?.("formatCompactSize failed",r),null}}function formatFullDate(e,t){try{let r=tryLoadChunk("./decoration-formatters-chunk","./decorationFormatters","./decoration-formatters-chunk.js","./decorationFormatters.js","./decoration-helpers-chunk","./decorationHelpers","./decoration-helpers","./decoration-helpers-chunk.js","./decorationHelpers.js");if(r&&typeof r.formatFullDate=="function")return r.formatFullDate(e,t)}catch(r){e._logger?.debug?.("Delegated formatFullDate failed",r)}try{let r={year:"numeric",month:"long",day:"numeric",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:"short"};return t.toLocaleString("en-US",r)}catch(r){return e._logger?.debug?.("formatFullDate failed",r),t.toString()}}function scheduleTelemetryReport(e){try{let t=tryLoadChunk("./decoration-telemetry-chunk","./decorationTelemetry","./decorationTelemetry.js","./decoration-telemetry-chunk.js");if(t&&typeof t.scheduleTelemetryReport=="function")return t.scheduleTelemetryReport(e)}catch(t){e._logger?.debug?.("Delegated scheduleTelemetryReport failed",t)}!e._allocationTelemetryEnabled||e._telemetryReportTimer||(e._telemetryReportTimer=setTimeout(()=>{e._telemetryReportTimer=null,reportAllocationTelemetry(e),scheduleTelemetryReport(e)},e._telemetryReportInterval))}function reportAllocationTelemetry(e){try{let i=st();if(i&&typeof i.reportAllocationTelemetry=="function")return i.reportAllocationTelemetry(e)}catch(i){e._logger?.debug?.("Delegated reportAllocationTelemetry failed",i)}let t=e.getMetrics().allocationTelemetry,r=t.decorationPool.allocations+t.badgeFlyweight.allocations+t.readableFlyweight.allocations,n=t.decorationPool.reuses+t.badgeFlyweight.reuses+t.readableFlyweight.reuses;(r>0||n>0)&&e._logger?.info?.("\u{1F9EE} Allocation telemetry report",{timestamp:new Date().toISOString(),pool:{allocations:t.decorationPool.allocations,reuses:t.decorationPool.reuses,reuseRate:t.decorationPool.reusePercent+"%"},badgeFlyweight:{allocations:t.badgeFlyweight.allocations,reuses:t.badgeFlyweight.reuses,reuseRate:t.badgeFlyweight.reusePercent+"%"},readableFlyweight:{allocations:t.readableFlyweight.allocations,reuses:t.readableFlyweight.reuses,reuseRate:t.readableFlyweight.reusePercent+"%"},summary:{totalAllocations:r,totalReuses:n,overallReuseRate:r+n>0?(n/(r+n)*100).toFixed(1)+"%":"0%"},decorationsProcessed:e._metrics.totalDecorations,cacheHitRate:e.getMetrics().cacheHitRate})}function setupPeriodicRefresh(e){try{let t=vscode.workspace.getConfiguration("explorerDates"),r=t.get("badgeRefreshInterval",6e4),n=e.F||r;if(e.A=n,e._logger?.info?.(`Setting up periodic refresh with interval: ${e.A}ms`),e.a&&(clearInterval(e.a),e.a=null),e.i&&e.i.size){for(let i of e.i)clearTimeout(i);e.i.clear()}if(!t.get("showDateDecorations",!0)){e._logger?.info?.("Decorations disabled, skipping periodic refresh setup");return}e.a=setInterval(()=>{if(e.R){e._logger?.debug?.("Periodic refresh skipped - incremental refresh already running");return}e._logger?.debug?.("Periodic refresh triggered - scheduling incremental refresh"),scheduleIncrementalRefresh(e,"periodic")},e.A),e._logger?.info?.("Periodic refresh timer started")}catch(t){e._logger?.debug?.("Failed to setup periodic refresh",t)}}function cancelIncrementalRefreshTimers(provider){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=dynamicRequire("./decoration-refresh-chunk");if(e&&typeof e.cancelIncrementalRefreshTimers=="function")return e.cancelIncrementalRefreshTimers(provider)}}catch(e){provider._logger?.debug?.("Delegated cancelIncrementalRefreshTimers failed",e)}if(!(!provider.i||provider.i.size===0)){for(let e of provider.i)clearTimeout(e);provider.i.clear(),provider.R=!1}}function scheduleIncrementalRefresh(provider,reason="manual"){try{if(!provider.e||typeof provider.e.entries!="function"){provider._logger?.debug?.("scheduleIncrementalRefresh: missing or invalid memory cache, firing global refresh");try{provider.m.fire(void 0)}catch{}return}let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=dynamicRequire("./decoration-refresh-chunk");if(e&&typeof e.scheduleIncrementalRefresh=="function")return e.scheduleIncrementalRefresh(provider,reason)}}catch(e){provider._logger?.debug?.("Delegated scheduleIncrementalRefresh failed",e)}provider._logger?.debug?.("scheduleIncrementalRefresh fallback invoked");try{provider.m.fire(void 0)}catch{}}function markCacheEntryForRefresh(provider,cacheKey){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=dynamicRequire("./decoration-refresh-chunk");if(e&&typeof e.markCacheEntryForRefresh=="function")return e.markCacheEntryForRefresh(provider,cacheKey)}}catch(e){provider._logger?.debug?.("Delegated markCacheEntryForRefresh failed",e)}if(!cacheKey)return;if(!provider.e||typeof provider.e.get!="function")provider._logger?.debug?.("markCacheEntryForRefresh: no memory cache available, skipping");else{let e=provider.e.get(cacheKey);e&&Date.now()-e.timestamp>provider.S*.75&&(e.forceRefresh=!0)}if(provider._advancedCache)try{provider._advancedCache.invalidateByPattern(cacheKey.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"))}catch(e){provider._logger?.debug?.(`Could not invalidate advanced cache for ${cacheKey}: ${e.message}`)}function maybeShedWorkload(provider){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=dynamicRequire("./decoration-memory-chunk");if(e&&typeof e.maybeShedWorkload=="function")return e.maybeShedWorkload(provider)}}catch(e){provider._logger?.debug?.("Delegated maybeShedWorkload failed",e)}try{if(!provider.St||provider.Tt)return;let e=(()=>{try{return proc?.memoryUsage?proc.memoryUsage().heapUsed/1024/1024:0}catch{return 0}})();if(!e)return;if(!provider.ye){provider.ye=e,provider.re=0,provider.be=!1;return}let t=e-provider.ye;if(t>=provider.vt?(provider.re++,provider.re>=2&&!provider.be&&(provider.be=!0,provider._logger?.warn?.("Memory pressure warning (soft threshold exceeded twice)",{deltaMB:Number(t.toFixed(2)),baselineMB:provider.ye,heapMB:e,rssMB:(()=>{try{return proc?.memoryUsage?proc.memoryUsage().rss/1024/1024:0}catch{return 0}})(),cacheSize:provider.e.size,cacheLimit:provider.l}))):provider.re>0&&(provider.re=0,t=provider.Ft){provider.Tt=!0,provider.l=Math.min(provider.l,provider.Tr),provider.F=Math.max(provider.F||provider.A||provider.At,provider.At);let r=(()=>{try{return proc?.memoryUsage?proc.memoryUsage().rss/1024/1024:0}catch{return 0}})(),n={timestamp:new Date().toISOString(),deltaMB:Number(t.toFixed(2)),baselineMB:provider.ye,heapMB:e,rssMB:r,cacheSize:provider.e.size,maxCacheSize:provider.l,watcherStrategy:provider.j,staticWatchers:provider.s.size,dynamicWatchers:provider.d.size};provider.nt.push(n),provider.nt.length>10&&provider.nt.shift(),provider._logger?.warn?.(`Memory shedding activated (delta ${t.toFixed(2)} MB >= ${provider.Ft} MB); cache size capped at ${provider.l} and refresh interval stretched to ${provider.F}ms`,n),setupPeriodicRefresh(provider),provider.be=!1,provider.re=0}}catch(e){provider._logger?.debug?.("maybeShedWorkload failed",e)}}function monitorCachePressure(e){try{if(!e.l||e.l<=0)return;let t=e.e.size/e.l;t>=e.Rt?e.it||(e.it=!0,e._logger?.infoWithOptions?.({throttleKey:"cache-pressure",intervalMs:6e4},`Decoration cache usage is at ${(t*100).toFixed(1)}% of capacity`,{cacheSize:e.e.size,maxCacheSize:e.l})):t0&&e.e.clear();try{typeof e.vr=="function"&&e.vr(t)}catch{}e.I.size>0&&(e.I.clear(),e.Se.length=0),e.N.size>0&&(e.N.clear(),e.Ie.length=0),e._logger?.debug?.(`\u{1F9FD} Purged lightweight caches (${t})`)}catch(r){e._logger?.debug?.("purgeLightweightCaches failed",r)}}async function togglePerformanceMode(e,t,{reason:r="unspecified",refresh:n=!0}={}){if(t!==e._performanceMode){if(e._performanceMode=t,e._logger?.info?.(`Performance mode ${t?"enabled":"disabled"} (${r})`),t)e.ot?.({permanent:!0}),e._logger?.info?.("File watchers disabled for performance mode"),e.a&&(clearInterval(e.a),e.a=null,e._logger?.info?.("Periodic refresh disabled for performance mode"));else{try{e.Q?.("performance-mode-toggle"),e._logger?.info?.("File watchers enabled (performance mode off)")}catch{}e.a||(e._e?.(),e._logger?.info?.("Periodic refresh enabled (performance mode off)"))}if(n)try{e.refreshAll?.({reason:"performance-mode-change"})}catch(i){e._logger?.debug?.("refreshAll after performance toggle failed",i)}if(t)e._workspaceIntelligence?.dispose&&(e._workspaceIntelligence.dispose(),e._workspaceIntelligence=null);else if(!e._workspaceIntelligence)try{let{getFeatureFlagsGlobal:i}=G(),a=i(),o=a?await a.workspaceIntelligence():null;if(o){let{WorkspaceIntelligenceManager:s}=o;e._workspaceIntelligence=new s(e._fileSystem),await e._workspaceIntelligence.initialize({batchProcessor:e._batchProcessor,enableProgressiveAnalysis:e._shouldEnableProgressiveAnalysis?.()});let c=require("vscode").workspace.workspaceFolders;c?.length&&await e._workspaceIntelligence.analyzeWorkspace(c,{maxFiles:e._getIndexerMaxFiles?.()})}}catch(i){e._logger?.debug?.("Workspace intelligence reinitialization failed after performance mode toggle",i)}}}function applyPerformanceProfile(e,t,r="unspecified"){try{let n=t?.level||e.B;e.hn=!1;let i=computeEffectivePerformanceMode(e);if(i!==e._performanceMode&&(e._logger?.debug?.("Auto performance mode update",{reason:r,featureLevel:n,workspaceScale:e.u,desiredPerformanceMode:i}),togglePerformanceMode(e,i,{reason:`${r}-auto`,refresh:!0}).catch(a=>e._logger?.debug?.("Failed to toggle performance mode automatically",a))),applyConcurrencyLimit(e,r),!e._performanceMode&&(e.u==="large"||e.u==="extreme")){let a={...e.P,applyBackgroundLimits:!0,backgroundTooltipMode:e.P?.backgroundTooltipMode==="rich"?"summary":e.P?.backgroundTooltipMode};e.P=a}if(!e._performanceMode){let a=getRefreshIntervalForScale(e),o=a!==null&&a!==e.F,s=a===null&&e.F!==null;o?(e.F=a,e._e?.()):s&&(e.F=null,e._e?.())}}catch(n){e._logger?.debug?.("applyPerformanceProfile failed",n)}}function getRefreshIntervalForScale(e){return e.u==="extreme"?6e5:e.u==="large"?18e4:null}function getSmartWatcherDefaults(){try{let e=Fr();return{DEFAULT_SMART_WATCHER_EXTENSIONS:e.DEFAULT_SMART_WATCHER_EXTENSIONS,SMART_WATCHER_PRIORITY:e.SMART_WATCHER_PRIORITY}}catch{return{DEFAULT_SMART_WATCHER_EXTENSIONS:["js","ts","json","md","py","java"],SMART_WATCHER_PRIORITY:new Map([["src",100],["lib",65],["test",30]])}}}function computeEffectivePerformanceMode(e){return e.Fr===!0?!0:e.Fr===!1?!1:e.u==="extreme"}function applyConcurrencyLimit(e,t="unspecified"){let r=e.ue,n=e.Ar?e.Ar():e.st||8;e.ue=Math.max(1,Math.min(n,e.st||8)),e._logger?.info?.(`Adjusted concurrency cap ${r} -> ${e.ue} (${t})`,{workspaceScale:e.u,performanceMode:e._performanceMode})}function _buildFeatureProfile(e,t="full"){let r=FEATURE_LEVELS.includes(t)?t:"full";switch(r){case"enhanced":return{level:r,enableGit:!0,enableProgressiveAnalysis:!0,applyBackgroundLimits:!1,backgroundTooltipMode:"rich",viewportWindowMs:6e4};case"standard":return{level:r,enableGit:!0,enableProgressiveAnalysis:!1,applyBackgroundLimits:!0,backgroundTooltipMode:"summary",viewportWindowMs:48e4};case"minimal":return{level:r,enableGit:!1,enableProgressiveAnalysis:!1,applyBackgroundLimits:!0,backgroundTooltipMode:"summary",viewportWindowMs:12e4};default:return{level:r,enableGit:!0,enableProgressiveAnalysis:!1,applyBackgroundLimits:!1,backgroundTooltipMode:"rich",viewportWindowMs:3e5}}}function applyFeatureLevel(e,t,r="unspecified"){if(!t)return!1;FEATURE_LEVELS.includes(t)||(t="full");let n=e.B!==t||!e.P;e.B=t;let i=n?_buildFeatureProfile(e,t):e.P||_buildFeatureProfile(e,t);return e.P=i,e.O=i.viewportWindowMs,n&&e._logger?.info?.(`Feature level set to "${t}" (${r})`,{viewportWindowMs:e.O,applyBackgroundLimits:i.applyBackgroundLimits,backgroundTooltipMode:i.backgroundTooltipMode}),e._performanceMode?e._logger?.info?.("Performance mode active - skipping feature profile application"):(i.applyBackgroundLimits&&e.dn?.(r),i.backgroundTooltipMode&&e._logger?.info?.("Configuring background tooltip behavior as part of feature profile",{mode:i.backgroundTooltipMode}),i.enableProgressiveAnalysis&&e._logger?.info?.("Progressive analysis enabled by feature profile")),n}function maybePurgeLightweightCaches(e){try{if(!e.at)return;if(e.Pt<=0){purgeLightweightCaches(e,"lightweight-interval");return}let t=e._metrics?.totalDecorations||0;t>0&&t%e.Pt===0&&purgeLightweightCaches(e,"lightweight-interval")}catch(t){e._logger?.debug?.("maybePurgeLightweightCaches failed",t)}}function _getFlyweightValueImpl(cache,order,limit,key,factory,statsTracker){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=dynamicRequire("./decoration-pool-chunk");if(e&&typeof e.xt=="function")return e.xt(cache,order,limit,key,factory,statsTracker)}}catch{}try{return factory()}catch{return null}}function acquireDecorationFromPoolImpl({badge,tooltip,color},createFileDecoration){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=dynamicRequire("./decoration-pool-chunk");if(e&&typeof e.acquireDecorationFromPoolImpl=="function")return e.acquireDecorationFromPoolImpl({badge,tooltip,color},createFileDecoration)}}catch{}return createFileDecoration(badge||"??")}function _trimFlyweightCacheToLimitImpl(cache,order,maxSize){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=dynamicRequire("./decoration-pool-chunk");if(e&&typeof e.Mt=="function")return e.Mt(cache,order,maxSize)}}catch{}}function clearDecorationPoolImpl(provider,reason="unspecified"){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=dynamicRequire("./decoration-pool-chunk");if(e&&typeof e.clearDecorationPoolImpl=="function")return e.clearDecorationPoolImpl(provider,reason)}}catch{}try{provider.c?.size&&(provider.c.clear(),provider.$.length=0)}catch{}}function checkMemoryPressure(e){try{let t=Date.now();if(e.ct||(e.ct=t),t-e.ct<3e4)return;e.ct=t;let r=e.e.size||0,n=1e4;r/n>.8&&(e._logger?.warn?.("\u{1F9E0} Memory pressure detected, performing cleanup",{cacheSize:r,maxSize:n}),purgeLightweightCaches(e,"memory-pressure"),e._metrics.cachePressureEvents=(e._metrics.cachePressureEvents||0)+1)}catch(t){e._logger?.debug?.("checkMemoryPressure failed",t)}}function createLazyHierarchicalDecorationCache(){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=dynamicRequire("./decoration-cache-chunk");if(e&&typeof e.createLazyHierarchicalDecorationCache=="function")return e.createLazyHierarchicalDecorationCache()}}catch{}class SimpleFallbackCache{constructor(){this.ne=new Map}get size(){return this.ne.size}clear(){this.ne.clear()}get(t){return this.ne.get(t)}set(t,r){this.ne.set(t,r)}delete(t){return this.ne.delete(t)}*entries(){yield*this.ne.entries()}hydrateInBackground(){}enforceLimit(){return 0}}return new SimpleFallbackCache}module.exports={applyProgressiveLoadingSetting,cancelProgressiveWarmupJobs,createFallbackWatcher,createWatcherWithFallback,initializeAdvancedSystems,loadBatchProcessorIfNeeded,reportAllocationTelemetry,scheduleTelemetryReport,setupPeriodicRefresh,scheduleIncrementalRefresh,cancelIncrementalRefreshTimers,markCacheEntryForRefresh,maybeShedWorkload,monitorCachePressure,purgeLightweightCaches,maybePurgeLightweightCaches,checkMemoryPressure,getCachedDecoration,storeDecorationInCache,buildSummaryTooltip,formatDateReadable,getGitBlameInfo,getInitials,formatCompactSize,formatFullDate,togglePerformanceMode,applyPerformanceProfile,getRefreshIntervalForScale,computeEffectivePerformanceMode,applyConcurrencyLimit,findWorkspaceFilesWithTimeout,startWorkspaceScanWatchdog,clearWorkspaceScanWatchdog,performWorkspaceSizeCheck,applyFeatureLevel,fn:_buildFeatureProfile,getSmartWatcherDefaults,createLazyHierarchicalDecorationCache,xt:_getFlyweightValueImpl,acquireDecorationFromPoolImpl,Mt:_trimFlyweightCacheToLimitImpl,clearDecorationPoolImpl,deferPreloads,ensureWatcherManager,setupFileWatcher,registerWatcherHandlers,dispatchWatcherEvent}}});var Ir=_((Wa,Mr)=>{function Ni(e){try{let t=(()=>{try{return require("vscode")}catch{return null}})(),r=t?t.workspace.getConfiguration("explorerDates"):{get:()=>6e4},n=r.get("badgeRefreshInterval",6e4),i=e.F||n;if(e.A=i,e._logger?.info?.(`Setting up periodic refresh with interval: ${e.A}ms`),e.a&&(clearInterval(e.a),e.a=null),e.i&&e.i.size){for(let a of e.i)clearTimeout(a);e.i.clear()}if(!r.get("showDateDecorations",!0)){e._logger?.info?.("Decorations disabled, skipping periodic refresh setup");return}e.a=setInterval(()=>{if(e.R){e._logger?.debug?.("Periodic refresh skipped - incremental refresh already running");return}e._logger?.debug?.("Periodic refresh triggered - scheduling incremental refresh"),Pr(e,"periodic")},e.A),e._logger?.info?.("Periodic refresh timer started")}catch(t){e._logger?.debug?.("Failed to setup periodic refresh",t)}}function Rr(e){if(!(!e.i||e.i.size===0)){for(let t of e.i)clearTimeout(t);e.i.clear(),e.R=!1}}function Pr(e,t="manual"){try{if(e.D){e._logger?.debug?.(`scheduleIncrementalRefresh called after dispose - ignoring (${t})`);return}if(e.ie){e._logger?.debug?.(`Incremental refresh (${t}) skipped - refresh already pending`);return}if(e.R&&(e._logger?.debug?.(`Incremental refresh (${t}) already in progress, cancelling pending timers and rescheduling`),Rr(e)),!e.e||typeof e.e.entries!="function"){e._logger?.debug?.("scheduleIncrementalRefresh: no memory cache available, firing global refresh");try{e.m.fire(void 0)}catch{}e.R=!1,e.ie=!1;return}let r=Array.from(e.e.entries());if(r.length===0){e._logger?.debug?.(`No cached decorations to refresh for ${t}, falling back to global refresh`),e.m.fire(void 0);return}let n=r.map(([c,u])=>{let l=u?.uri?u.uri:c?require("vscode").Uri.file(c):null;return l?{cacheKey:c,uri:l}:null}).filter(Boolean);if(n.length===0){e._logger?.debug?.(`Failed to resolve URIs for ${t} incremental refresh, firing global refresh`),e.m.fire(void 0);return}let i=40,a=Math.ceil(n.length/i),o=Math.min(4e3,Math.max(750,Math.floor(e.A*.25))),s=a>1?Math.max(25,Math.floor(o/a)):0;e.R=!0,e.ie=!0,e._logger?.debug?.(`Incremental refresh (${t}) scheduled for ${n.length} items in ${a} batches (spacing: ${s}ms)`);for(let c=0;c{try{if(e.D){e.i.delete(d),e.i.size||(e.R=!1,e.ie=!1);return}u.forEach(({cacheKey:h,uri:g})=>{xr(e,h),e.m.fire(g)})}finally{e.i.delete(d),e.i.size===0&&(e.R=!1,e.ie=!1,e._logger?.debug?.(`Incremental refresh (${t}) completed`))}},l);e.i.add(d)}}catch(r){e._logger?.debug?.("Failed to schedule incremental refresh",r)}}function xr(e,t){if(t){if(!e.e||typeof e.e.get!="function")e._logger?.debug?.("markCacheEntryForRefresh: no memory cache available, skipping");else{let r=e.e.get(t);if(r){let n=Date.now()-r.timestamp;n>e.S*.75?(r.forceRefresh=!0,e._logger?.debug?.(`Marked stale entry for refresh: ${t} (age: ${Math.round(n/1e3)}s)`)):e._logger?.debug?.(`Skipped refresh for fresh entry: ${t} (age: ${Math.round(n/1e3)}s)`)}}if(e._advancedCache)try{let r=t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e._advancedCache.invalidateByPattern(r)}catch(r){e._logger?.debug?.(`Could not invalidate advanced cache for ${t}: ${r.message}`)}}}Mr.exports={setupPeriodicRefresh:Ni,cancelIncrementalRefreshTimers:Rr,scheduleIncrementalRefresh:Pr,markCacheEntryForRefresh:xr}});var f=require("vscode"),{fileSystem:qi}=$e(),{formatFileSize:zi}=Be(),{getSettingsCoordinator:Ui}=Ve(),{SecurityValidator:La,SecureFileOperations:Oa,detectSecurityEnvironment:Hi}=Ze(),{DEFAULT_CACHE_TIMEOUT:Fe,DEFAULT_MAX_CACHE_SIZE:ie,GLOBAL_STATE_KEYS:Na,DEFAULT_DECORATION_POOL_SIZE:$i,DEFAULT_FLYWEIGHT_CACHE_SIZE:Wr,WORKSPACE_SCALE_EXTREME_THRESHOLD:qa}=I(),{isWebEnvironment:Bi}=J(),{isWebDiagnosticsEnabled:Lr,diagLogOnce:Ae,recordProviderEvent:Ki,recordDecorationCall:ji,recordRefreshCall:Vi}=he(),{resolveFreshness:Gi,compareFreshness:Xi,resourceIdentity:Or}=nt(),S=typeof process<"u"&&process.env?process.env:{},Yi=300*1e3,Zi=Number(S.EXPLORER_DATES_VIEWPORT_HISTORY_LIMIT||400),Nr=Number(S.EXPLORER_DATES_SECURITY_MAX_WARNINGS_PER_FILE??1),qr=["full","enhanced","standard","minimal"],zr=new Map([["src",100],["lib",65],["test",30]]);function Ji(){try{let e=f?.window?.activeColorTheme?.kind,t=e===f.ColorThemeKind.HighContrast,r=e===f.ColorThemeKind.Light;return t?{veryRecent:new f.ThemeColor("list.highlightForeground"),recent:new f.ThemeColor("list.warningForeground"),old:new f.ThemeColor("list.errorForeground"),javascript:new f.ThemeColor("list.highlightForeground"),css:new f.ThemeColor("list.warningForeground"),html:new f.ThemeColor("list.errorForeground"),json:new f.ThemeColor("list.highlightForeground"),markdown:new f.ThemeColor("list.warningForeground"),python:new f.ThemeColor("list.errorForeground"),subtle:new f.ThemeColor("list.highlightForeground"),muted:new f.ThemeColor("list.inactiveSelectionForeground"),emphasis:new f.ThemeColor("list.focusHighlightForeground")}:r?{veryRecent:new f.ThemeColor("list.highlightForeground"),recent:new f.ThemeColor("list.warningForeground"),old:new f.ThemeColor("list.errorForeground"),javascript:new f.ThemeColor("symbolIcon.functionForeground"),css:new f.ThemeColor("symbolIcon.colorForeground"),html:new f.ThemeColor("symbolIcon.snippetForeground"),json:new f.ThemeColor("symbolIcon.stringForeground"),markdown:new f.ThemeColor("symbolIcon.textForeground"),python:new f.ThemeColor("symbolIcon.classForeground"),subtle:new f.ThemeColor("list.inactiveSelectionForeground"),muted:new f.ThemeColor("list.deemphasizedForeground"),emphasis:new f.ThemeColor("list.highlightForeground")}:{veryRecent:new f.ThemeColor("list.highlightForeground"),recent:new f.ThemeColor("charts.yellow"),old:new f.ThemeColor("charts.red"),javascript:new f.ThemeColor("symbolIcon.functionForeground"),css:new f.ThemeColor("charts.purple"),html:new f.ThemeColor("charts.orange"),json:new f.ThemeColor("symbolIcon.stringForeground"),markdown:new f.ThemeColor("charts.yellow"),python:new f.ThemeColor("symbolIcon.classForeground"),subtle:new f.ThemeColor("list.inactiveSelectionForeground"),muted:new f.ThemeColor("list.deemphasizedForeground"),emphasis:new f.ThemeColor("list.highlightForeground")}}catch{return null}}function Qi(e,t){if(!t||!e)return null;let r=ta(e);return[".js",".ts",".jsx",".tsx",".mjs"].includes(r)?t.javascript:[".css",".scss",".sass",".less",".stylus"].includes(r)?t.css:[".html",".htm",".xml",".svg"].includes(r)?t.html:[".json",".yaml",".yml",".toml"].includes(r)?t.json:[".md",".markdown",".txt",".rst"].includes(r)?t.markdown:[".py",".pyx",".pyi"].includes(r)?t.python:null}var ea=e=>{try{let r=String(e||"").replace(/\\/g,"/"),n=r.lastIndexOf("/");return n===-1?r:r.substring(n+1)}catch{return"unknown"}},ta=e=>{try{let t=String(e||""),r=t.lastIndexOf(".");return r<=0?"":t.substring(r).toLowerCase()}catch{return""}},ra=e=>String(e||"").toLowerCase().replace(/\\/g,"/"),Re=e=>String(e||"").replace(/\\/g,"/"),ae=(e="")=>{if(!e)return"";if(typeof e=="string")return e;if(typeof e.fsPath=="string"&&e.fsPath.length>0)return e.fsPath;if(typeof e.path=="string"&&e.path.length>0)return e.path;if(typeof e.toString=="function")try{return e.toString(!0)}catch{return e.toString()}return String(e)},na=(e="")=>{try{let t=typeof e=="string"?e:ae(e),r=Re(t);return ea(r)||r||"unknown"}catch{return"unknown"}},Pe=class{constructor(){this.r=null,this.n=new Map,(async()=>{try{let t=await Promise.resolve().then(()=>R(rr()));if(t&&typeof t.createLazyHierarchicalDecorationCache=="function"){let r=t.createLazyHierarchicalDecorationCache();for(let[n,i]of this.n.entries())r.set(n,i);this.r=r,this.n=null}}catch{}})()}get size(){return this.r?this.r.size:this.n.size}get bucketCount(){return this.r?this.r.bucketCount:0}clear(){if(this.r)return this.r.clear();this.n.clear()}get(t){return this.r?this.r.get(t):this.n.get(t)}set(t,r,n={}){if(this.r)return this.r.set(t,r,n);this.n.set(t,r)}delete(t){return this.r?this.r.delete(t):this.n.delete(t)}*entries(){if(this.r){yield*this.r.entries();return}yield*this.n.entries()}*keys(){if(this.r){yield*this.r.keys();return}yield*this.n.keys()}*values(){if(this.r){yield*this.r.values();return}yield*this.n.values()}[Symbol.iterator](){return this.entries()}enforceLimit(t=0){if(this.r)return this.r.enforceLimit(t);if(!t||this.n.size<=t)return 0;let r=0,i=Array.from(this.n.keys()).slice(0,Math.max(1,Math.ceil(this.n.size-t)));for(let a of i)this.n.delete(a),r++;return r}},ia=S.VSCODE_WEB==="true",xe=class{Rr(){try{let t=typeof process<"u"&&typeof process.memoryUsage=="function"?process.memoryUsage():null,r=Number(t?.heapUsed);return Number.isFinite(r)&&r>=0?Number((r/1024/1024).toFixed(2)):0}catch{return 0}}gn(){try{let t=typeof process<"u"&&typeof process.memoryUsage=="function"?process.memoryUsage():null,r=Number(t?.rss);return Number.isFinite(r)&&r>=0?Number((r/1024/1024).toFixed(2)):0}catch{return 0}}constructor(){this.m=new f.EventEmitter,this.onDidChangeFileDecorations=this.m.event,this.e=new Pe,this.mn=new Map,this.lt=new Map,this.ve=[],this.st=20,this.ue=this.st,this.ir=0,this.Be=!1,this.pn=!1,this.c=new Map,this.$=[],this.H={hits:0,misses:0,allocations:0,reuses:0},this.Jt=$i,this.I=new Map,this.Se=[],this.Xt=Wr,this.Yt={hits:0,misses:0,allocations:0,reuses:0},this.N=new Map,this.Ie=[],this.Cr=Wr,this.Sr={hits:0,misses:0,allocations:0,reuses:0},this.Zt=S.EXPLORER_DATES_ENABLE_DECORATION_POOL!=="0",this.Gt=S.EXPLORER_DATES_ENABLE_FLYWEIGHTS!=="0",this.at=S.EXPLORER_DATES_LIGHTWEIGHT_MODE==="1",this._performanceMode=!1;try{let n=f.workspace.getConfiguration("explorerDates");this._performanceMode=!!n.get("performanceMode",this._performanceMode)}catch{}this.St=S.EXPLORER_DATES_MEMORY_SHEDDING==="1",this.Ft=Number(S.EXPLORER_DATES_MEMORY_SHED_THRESHOLD_MB||3),this.Tt=!1,this.ye=this.St?this.Rr():0,this.Tr=Number(S.EXPLORER_DATES_MEMORY_SHED_CACHE_LIMIT||1e3),this.At=Number(S.EXPLORER_DATES_MEMORY_SHED_REFRESH_MS||6e4),this.F=null,this.nt=[],this.vt=Number(S.EXPLORER_DATES_SOFT_HEAP_ALERT_MB||2),this.re=0,this.be=!1,this.Rt=Number(S.EXPLORER_DATES_CACHE_PRESSURE_RATIO||.7),this.it=!1,this.A=null,this.a=null,this.i=new Set,this.R=!1,this.ie=!1,this.G=S.EXPLORER_DATES_FORCE_CACHE_BYPASS==="1",this.Pt=Number(S.EXPLORER_DATES_LIGHTWEIGHT_PURGE_INTERVAL||400),this._isWeb=ia||Bi(),Lr()&&(Ae("provider-impl-constructed","info","Provider implementation constructed",{isWeb:this._isWeb}),Ki("created",{source:"impl",isWeb:this._isWeb})),this.Pr=Fe*4,this.yn=this.Pr,this.bn=0,this.l=ie;try{let n=f.workspace.getConfiguration("explorerDates");this.S=Number(n.get("cacheTimeout",Fe))}catch{this.S=Fe}try{let n=f.workspace.getConfiguration("explorerDates");this.l=Number(n.get("maxCacheSize",ie))||ie}catch{this.l=ie}this._fileSystem=qi,this._n=!this._isWeb,this.En=!1,this.pe=null,this.wn=null,this.z=new Map,this.We=6e4,this.xr=1e3,this.b=new Map,this.Mr=Number(S.EXPLORER_DATES_FRESHNESS_CACHE_TTL_MS||6e4),this.Ir=Number(S.EXPLORER_DATES_FRESHNESS_CACHE_MAX||2e3),this.It=new Set;try{this.Wr=Math.random().toString(36).slice(2,8),this._logger.debug(`FileDateDecorationProvider created (id=${this.Wr})`)}catch{}this.Lr=null,this.kn=null,this.Or=null,this.Dn=null;let t=Ui(),r=t?.getValue&&t.getValue("enableTelemetry");this._allocationTelemetryEnabled=S.NODE_ENV==="development"||S.EXPLORER_DATES_TELEMETRY==="1"||r===!0,this._telemetryReportInterval=Number(S.EXPLORER_DATES_TELEMETRY_INTERVAL_MS||6e4),this._telemetryReportTimer=null,this.Nr=null,this.Cn=new Map,this.k=new Set,this.y=new Map,this.me=Zi,this.O=300*1e3,this.et=Date.now(),this.v=[],this.rt=null,this.Sn=null;try{let n=Array.isArray(f.window?.visibleTextEditors)?f.window.visibleTextEditors:[];for(let a of n){let o=a?.document?.uri?.fsPath||a?.document?.uri?.path||"";o&&this.k.add(String(o).replace(/\\/g,"/"))}let i=f.window?.activeTextEditor?.document?.uri;if(i){let a=i.fsPath||i.path||"";a&&this.k.add(String(a).replace(/\\/g,"/"))}}catch{}this.B="full",this.P=null,this._logger=q().getLogger(),this.p={getString:n=>n,formatDate:n=>n instanceof Date?n.toString():String(n),getCurrentLocale:()=>"en",dispose:()=>{}},this._metrics={totalDecorations:0,cacheHits:0,cacheMisses:0,fileStatTimeMs:0,fileStatCalls:0,gitBlameTimeMs:0,gitBlameCalls:0,viewportPriorityDecorations:0,viewportBackgroundDecorations:0},(async()=>{try{let n=await Promise.resolve().then(()=>R(Er()));n&&typeof n.hydrateProviderOptionalSystems=="function"&&await n.hydrateProviderOptionalSystems(this)}catch(n){this._logger.debug("Failed to run provider initialization chunk",n)}})(),this._workspaceIntelligence=null,this._batchProcessor=null,this._batchProcessorModule=null,this._progressiveLoadingJobs=new Set,this._progressiveLoadingEnabled=!1,this.ae=null,this.oe=null,this._advancedCache=null,this.w=null,this.s=new Set,this.h=void 0,this.d=new Map,this.T=[],this.L=null,this.J=!0,this._enableWatcherFallbacks="auto",this._smartWatcherFallbackManager=null,this.ee=null,this.j="none",this.E=new Map,this.Wt=!1,this.Ee=[],this.Ge=null,this.u="unknown",this.Ze=S.EXPLORER_DATES_LOG_WATCHERS==="1",this.Tn=Hi(),this.Lt=!0,this.qr=[],this.zr=!0,this.vn=!1,this.Fn=!1,this.An=new Map,this.Rn=Number(S.EXPLORER_DATES_SECURITY_WARNING_THROTTLE_MS||5e3),this.Pn=Number.isFinite(Nr)?Math.max(0,Nr):1,this.Le=typeof f.workspace.onDidChangeWorkspaceFolders=="function"?f.workspace.onDidChangeWorkspaceFolders(n=>this.Ur(n)):null,this.C=null,this.xn=null,this.Mn=null,this.te=null,this.In=!1,this.Je=0,this.D=!1,this._accessibility=null;try{let n=f.workspace.getConfiguration("explorerDates"),i=!!n.get("enableContextMenu",!0),a=!!n.get("showStatusBar",!1),o=!!n.get("showWelcomeOnStartup",!0),s=!!n.get("enableExtensionApi",!0);try{f.commands.executeCommand("setContext","explorerDates.enableContextMenu",i).catch(()=>{})}catch{}try{f.commands.executeCommand("setContext","explorerDates.showStatusBar",a).catch(()=>{})}catch{}try{f.commands.executeCommand("setContext","explorerDates.showWelcomeOnStartup",o).catch(()=>{})}catch{}try{f.commands.executeCommand("setContext","explorerDates.enableExtensionApi",s).catch(()=>{})}catch{}}catch(n){this._logger?.debug&&this._logger.debug("Failed to initialize UI contexts",n)}try{typeof f.workspace.onDidChangeConfiguration=="function"&&(this.w=f.workspace.onDidChangeConfiguration(n=>{try{if(!n||typeof n.affectsConfiguration!="function"||!n.affectsConfiguration("explorerDates"))return;let a=!!f.workspace.getConfiguration("explorerDates").get("performanceMode",!1);try{let o=this._performanceMode;this._performanceMode=a,a?(this.ot?.({permanent:!0}),this.a&&(clearInterval(this.a),this.a=null)):!a&&o&&(this.Q?.("runtime-config-change"),this.a||this._e?.())}catch(o){this._logger?.debug?.("sync performance-mode toggle failed",o)}(async()=>{try{let o=await this.Z();o&&typeof o.togglePerformanceMode=="function"&&await o.togglePerformanceMode(this,a,{reason:"runtime-config-change",refresh:!0})}catch(o){this._logger?.debug?.("delegated togglePerformanceMode failed",o)}})();try{if(["explorerDates.enableContextMenu","explorerDates.showStatusBar","explorerDates.showWelcomeOnStartup","explorerDates.enableExtensionApi"].some(c=>n.affectsConfiguration&&n.affectsConfiguration(c)))try{let c=f.workspace.getConfiguration("explorerDates"),u=!!c.get("enableContextMenu",!0),l=!!c.get("showStatusBar",!1),d=!!c.get("showWelcomeOnStartup",!0),h=!!c.get("enableExtensionApi",!0);try{f.commands.executeCommand("setContext","explorerDates.enableContextMenu",u).catch(()=>{})}catch{}try{f.commands.executeCommand("setContext","explorerDates.showStatusBar",l).catch(()=>{})}catch{}try{f.commands.executeCommand("setContext","explorerDates.showWelcomeOnStartup",d).catch(()=>{})}catch{}try{f.commands.executeCommand("setContext","explorerDates.enableExtensionApi",h).catch(()=>{})}catch{}}catch(c){this._logger?.debug&&this._logger.debug("Failed to update UI contexts on config change",c)}}catch(o){this._logger?.debug&&this._logger.debug("Failed to evaluate UI-context update condition",o)}try{let o=f.workspace.getConfiguration("explorerDates");if(n.affectsConfiguration&&n.affectsConfiguration("explorerDates.cacheTimeout"))try{this.S=Number(o.get("cacheTimeout",Fe))}catch{}if(n.affectsConfiguration&&n.affectsConfiguration("explorerDates.maxCacheSize"))try{this.l=Number(o.get("maxCacheSize",ie))||ie}catch{}}catch(o){this._logger?.debug&&this._logger.debug("Failed to refresh runtime config values from settings",o)}(async()=>{try{if(n.affectsConfiguration&&n.affectsConfiguration("explorerDates.workspaceExclusionProfiles")&&this._workspaceIntelligence?.smartExclusion?.cleanupAllWorkspaceProfiles&&await this._workspaceIntelligence.smartExclusion.cleanupAllWorkspaceProfiles(),n.affectsConfiguration&&n.affectsConfiguration("explorerDates.showWelcomeOnStartup"))try{let o=!!f.workspace.getConfiguration("explorerDates").get("showWelcomeOnStartup",!0);this._extensionContext&&this._extensionContext.globalState&&typeof this._extensionContext.globalState.update=="function"&&await this._extensionContext.globalState.update("explorerDates.pendingWelcome",o)}catch(o){this._logger?.debug&&this._logger.debug("Failed to persist pending welcome flag",o)}}catch(o){this._logger?.debug&&this._logger.debug("Failed to run workspace exclusion cleanup after config change",o)}})()}catch(i){this._logger?.debug?.("configuration change handler failed",i)}}))}catch(n){this._logger?.debug?.("Failed to register configuration watcher",n)}try{this._performanceMode?(this.h=void 0,this.a=null):(this.Q?.("initial"),this._e?.())}catch(n){this._logger?.debug?.("initial watcher/refresh setup failed",n)}try{this.Hr?.()}catch{}}ut(){if(this.f)return this.f;try{let t=dt();t&&typeof t.createWatcherManager=="function"&&(this.f=t.createWatcherManager(this))}catch(t){this._logger?.debug?.("Failed to create watcher manager",t)}return this.f}Ur(t){try{let r=this.ut();if(r&&typeof r.handleWorkspaceFoldersChanged=="function"){r.handleWorkspaceFoldersChanged(t);return}let n=(t?.added||[]).map(a=>a.uri).filter(Boolean),i=(t?.removed||[]).map(a=>a.uri).filter(Boolean);if(n.length===0&&i.length===0)return;this.C&&clearTimeout(this.C),this.C=setTimeout(()=>{this.C=null,(async()=>{try{this._logger?.info&&this._logger.info("Workspace folders changed (provider fallback)",{added:n.length,removed:i.length}),await this.checkWorkspaceSize();try{this.clearAllCaches()}catch{}try{this.refreshAll()}catch{}if(this._performanceMode)return;this.Q?.("workspace-change");try{typeof this.wt=="function"&&await this.wt()}catch(a){this._logger?.debug&&this._logger.debug("Failed to reconfigure progressive loading after workspace change",a)}if(this._workspaceIntelligence&&typeof this._workspaceIntelligence.onWorkspaceFoldersChanged=="function"){let a=(f.workspace.workspaceFolders||[]).map(o=>({uri:o.uri}));await this._workspaceIntelligence.onWorkspaceFoldersChanged({added:a,removed:i.map(o=>({uri:o}))})}}catch(a){this._logger?.debug&&this._logger.debug("Workspace folder change handling failed",a)}})()},250)}catch(r){this._logger?.debug&&this._logger.debug("provider._handleWorkspaceFoldersChanged failed",r)}}dr(t=[]){try{if(!Array.isArray(t))return[];let r=new Set;return t.map(n=>String(n||"").replace(/^\./,"").toLowerCase().trim()).filter(n=>!!n).filter(n=>r.has(n)?!1:(r.add(n),!0))}catch{return[]}}gr(t){try{let r=Number(t||0);(!Number.isFinite(r)||r<=0)&&(r=20);let n=Number(S.EXPLORER_DATES_MAX_SMART_WATCHER_PATTERNS||200);return Math.max(1,Math.min(Math.floor(r),Math.max(1,n)))}catch{return 20}}async K(t,r={}){try{try{let s=ht();if(s&&typeof s.K=="function")return await s.K(this,t,r)}catch{}let n=[],i=Math.max(1,r&&r.maxPatterns||1),a=i,o=Array.isArray(t)?t.length:0;for(let s of t||[]){if(a<=0)break;let c=Math.max(1,Math.floor(a/Math.max(1,o))),u=new f.RelativePattern(s,"*.{md,mdx,json,jsonc,yml,yaml,ts,tsx,js,jsx}");if(n.push({pattern:u,label:`root:${s.name}`}),a-=1,a<=0)break;try{let l=typeof this._fileSystem?.readdir=="function"?await this._fileSystem.readdir(s.uri||s.fsPath||s):[],d=(Array.isArray(l)?l:[]).filter(h=>h&&(typeof h.isDirectory=="function"?h.isDirectory():!0)).map(h=>typeof h=="string"?h:h.name||"").filter(Boolean).filter(h=>!["node_modules",".git","dist","build","out"].includes(h));d.sort((h,g)=>(zr.get(g)||0)-(zr.get(h)||0));for(let h of d){if(a<=0)break;let g=new f.RelativePattern(s,`${h}/**/*.{md,mdx,json,jsonc,yml,yaml,ts,tsx,js,jsx}`);n.push({pattern:g,label:`sub:${s.name}/${h}`}),a-=1}}catch{}o-=1}return n.slice(0,i)}catch{return[]}}fe(t,r,n){try{if(!t||typeof r!="string"||typeof n!="function")return null;let i=t[r];if(typeof i=="function")try{return i.call(t,n)}catch{return null}return null}catch{return null}}_getIndexerMaxFiles(){try{return Math.max(100,Number(S.EXPLORER_DATES_INDEXER_MAX_FILES||2e3))}catch{return 2e3}}Q(t="initial"){try{if(this._performanceMode||this.D)return;this.h||(this.h={pending:!0});let r=this.ut();if(r&&typeof r.setupFileWatcher=="function")try{r.setupFileWatcher(t);return}catch(n){this._logger?.debug?.("WatcherManager.setupFileWatcher failed",n)}(async()=>{try{let n=await this.Z();n&&typeof n.setupFileWatcher=="function"&&await n.setupFileWatcher(this,t)}catch(n){this._logger?.debug?.("Fallback setupFileWatcher failed",n)}})()}catch(r){this._logger?.debug?.("provider._setupFileWatcher failed",r)}}async Fe(t,r){try{let n="manual",i=typeof t=="number"?t:typeof r=="number"?r:++this.Je;typeof t=="string"&&(n=t);let a=this.ut();if(a&&typeof a.Fe=="function")return await a.Fe(i,n);this.Q(n);return}catch(n){this._logger?.debug&&this._logger.debug("provider._initializeSmartWatchers failed",n)}}ot(t={}){try{let r=t&&t.permanent===!0;if(this.f&&typeof this.f.disposeFileWatchers=="function"){try{this.f.disposeFileWatchers({permanent:r})}catch(n){this._logger?.debug?.("watcherManager.disposeFileWatchers failed",n)}this.h=r?null:void 0}else this.s&&typeof this.s.forEach=="function"&&(this.s.forEach(n=>{try{n&&typeof n.dispose=="function"&&n.dispose()}catch{}}),this.s.clear()),this.h=r?null:void 0;if(this.E&&this.E.size){for(let n of this.E.values())clearTimeout(n.timer);this.E.clear()}}catch(r){this._logger?.debug?.("provider._disposeFileWatchers failed",r)}}_e(){try{let t=(()=>{try{return Ar()}catch{return null}})();if(t&&typeof t.setupPeriodicRefresh=="function")try{t.setupPeriodicRefresh(this);return}catch(a){this._logger?.debug?.("adv.setupPeriodicRefresh failed",a)}try{let a=Ir();if(a&&typeof a.setupPeriodicRefresh=="function"){a.setupPeriodicRefresh(this);return}}catch{}let r=f.workspace.getConfiguration("explorerDates"),n=r.get("badgeRefreshInterval",6e4),i=this.F||n;if(this.A=i,this.a&&(clearInterval(this.a),this.a=null),!r.get("showDateDecorations",!0))return;this.a=setInterval(()=>{try{try{this.m.fire(void 0)}catch{}}catch{}},this.A)}catch(t){this._logger?.debug?.("provider._setupPeriodicRefresh failed",t)}}async initializeAdvancedSystems(t){try{let n=await ge().decorationsAdvanced();if(n&&typeof n.initializeAdvancedSystems=="function")return n.initializeAdvancedSystems(this,t);this._logger.info&&this._logger.info("Advanced systems chunk unavailable - skipping advanced initialization")}catch(r){this._logger.error&&this._logger.error("Failed to initialize advanced systems",r)}}async checkWorkspaceSize(){try{let r=await ge().decorationsAdvanced();if(r&&typeof r.performWorkspaceSizeCheck=="function")return r.performWorkspaceSizeCheck(this)}catch(t){this._logger.debug&&this._logger.debug("Delegated checkWorkspaceSize failed",t)}try{let t=require("vscode"),r=await(t.workspace.findFiles?t.workspace.findFiles("**/*",null,100):[]),n=Array.isArray(r)?r.length:0;this.Ge=n;let{WORKSPACE_SCALE_LARGE_THRESHOLD:i,WORKSPACE_SCALE_EXTREME_THRESHOLD:a}=I();this.u=n>=a?"extreme":n>=i?"large":"normal";try{this.Xe(this.Ye(),"workspace-scale-change-fallback")}catch{}return}catch(t){this._logger.debug&&this._logger.debug("performWorkspaceSizeCheck fallback failed",t)}}async provideFileDecoration(t,r){try{await this.Ot&&this.Ot()}catch{}ji();try{if(this.U&&typeof this.U.provideDecoration=="function")try{let n=await this.U.provideDecoration(t,r);return n==null?n:typeof n!="object"?void 0:"badge"in n||"tooltip"in n||"color"in n?n:void 0}catch(n){this._logger?.debug&&this._logger.debug("Decoration helper threw",n);return}}catch(n){this._logger?.debug("Decoration provider helper failed",n)}try{if(this.Oe||(this.Oe=Promise.resolve().then(()=>Ce()).then(n=>{this.U=n.createDecorationProviderHelpers?n.createDecorationProviderHelpers(this):n}).finally(()=>{this.Oe=null})),this.Oe&&await this.Oe,this.U&&typeof this.U.provideDecoration=="function")try{let n=await this.U.provideDecoration(t,r);return n==null?n:typeof n!="object"?void 0:"badge"in n||"tooltip"in n||"color"in n?n:void 0}catch(n){this._logger?.debug&&this._logger.debug("Decoration helper threw",n);return}}catch(n){this._logger?.debug("Failed to load decoration provider chunk",n)}}je(t,r=""){try{if(!t)return{isValid:!1};let n=String(t.fsPath||t.path||"");return n?n.indexOf("\0")!==-1?{isValid:!1}:{isValid:!0}:{isValid:!1}}catch{return{isValid:!1}}}async tr(t){try{let r=String(t.fsPath||t.path||"");if(!r)return!1;let n=r.replace(/\\/g,"/");return["node_modules","/.git/","/dist/"].some(a=>n.includes(a))}catch{return!1}}async rr(t,r){try{return await r()}catch(n){throw n}}Ve(t){try{return String(t.fsPath||t.path||"").replace(/\\/g,"/")}catch{return String(t||"")}}Ot(){try{let t=require("vscode").workspace.getConfiguration("explorerDates"),r=t.get("security.allowTestPaths",!0),n=Array.isArray(t.get("security.allowedExtraPaths",[]))?t.get("security.allowedExtraPaths",[]):[],i=t.get("security.enableBoundaryEnforcement"),a=t.get("security.enforceWorkspaceBoundaries");this.zr=r!==!1;let o=(()=>{try{return require("path")}catch{return null}})(),s=(n||[]).filter(Boolean).map(c=>{try{return o?o.normalize(String(c)):String(c)}catch{return String(c)}});this.qr=s,typeof i=="boolean"?this.Lt=i:typeof a=="boolean"&&(this.Lt=a)}catch(t){this._logger?.debug&&this._logger.debug("Failed to ensure security configuration",t)}}async nr(t,r){try{if(this.G)return this._logger?.debug?.(`Cache bypass enabled - recalculating decoration for: ${r}`),null;if(this._advancedCache)try{let i=await this._advancedCache.get(t);if(i)return this._metrics.cacheHits++,this._logger?.debug?.(`Advanced cache hit for: ${r}`),i}catch(i){this._logger?.debug?.(`Advanced cache error: ${i.message}`)}if(!this.e||typeof this.e.get!="function")return null;let n=this.e.get(t);if(n){if(n.forceRefresh){try{this.e.delete(t)}catch{}this._logger?.debug?.(`Memory cache bypassed (forced refresh) for: ${r}`)}else if(Date.now()-n.timestamp{switch(o){case"enhanced":return{level:o,enableGit:!0,enableProgressiveAnalysis:!0,applyBackgroundLimits:!1,backgroundTooltipMode:"rich",viewportWindowMs:6e4,enableColors:!0};case"standard":return{level:o,enableGit:!0,enableProgressiveAnalysis:!1,applyBackgroundLimits:!0,backgroundTooltipMode:"summary",viewportWindowMs:48e4,enableColors:!0};case"minimal":return{level:o,enableGit:!1,enableProgressiveAnalysis:!1,applyBackgroundLimits:!0,backgroundTooltipMode:"summary",viewportWindowMs:12e4,enableColors:!1};default:return{level:"full",enableGit:!0,enableProgressiveAnalysis:!1,applyBackgroundLimits:!1,backgroundTooltipMode:"rich",viewportWindowMs:Yi,enableColors:!0}}},a=n?i(t):this.P||i(t);if(this.P=a,this.O=a.viewportWindowMs,n&&this._logger?.info?.(`Feature level set to "${t}" (${r})`,{viewportWindowMs:this.O,applyBackgroundLimits:a.applyBackgroundLimits,backgroundTooltipMode:a.backgroundTooltipMode}),this._performanceMode)return this._logger?.info&&this._logger.info("Performance mode active - skipping feature profile application"),n;try{a.applyBackgroundLimits&&typeof this.$r=="function"&&this.$r(r)}catch{}return n}catch(n){return this._logger?.debug&&this._logger.debug("Failed to apply feature level",n),!1}}mt(t){try{let r=Re(ae(t)||"");return this.k.has(r)||this.y.has(r)}catch{return!1}}Y(t,{reason:r="unknown",visible:n=!1}={}){try{let i=Re(ae(t)||""),a=Date.now();if(n)this.k.add(i);else for(this.y.set(i,a);this.y.size>(Number(this.me)||400);){let o=this.y.keys().next().value;if(!o)break;this.y.delete(o)}n?this._metrics.viewportPriorityDecorations=(this._metrics.viewportPriorityDecorations||0)+1:this._metrics.viewportBackgroundDecorations=(this._metrics.viewportBackgroundDecorations||0)+1}catch{}}or(){return!1}sr(t){return!!(t&&(t.code==="ENOENT"||/not found/i.test(t.message||"")))}async Z(){try{return this.ae?this.ae:this.oe?await this.oe:(this.oe=(async()=>{try{let{getFeatureFlagsGlobal:t}=G(),r=t(),n=r?await r.decorationsAdvanced():null;return this.ae=n||null,this.ae}catch(t){return this._logger?.debug&&this._logger.debug("Failed to load decorationsAdvanced chunk",t),this.ae=null,null}finally{this.oe=null}})(),await this.oe)}catch(t){try{this._logger?.debug&&this._logger.debug("provider._getDecorationsAdvancedChunk failed",t)}catch{}return null}}Qt(t,r,n){try{let i=Math.floor((Date.now()-t.getTime())/864e5);return i<=0?"\u2022":i<10?String(i):"\u2022"}catch{return"\u2022"}}gt(t,r="auto"){try{return zi(t,r)}catch{return`${t} bytes`}}lr(t,r,n){try{if(!r||r==="none")return;let i=(()=>{if(!this._isWeb)return!1;try{return!!f.workspace.getConfiguration("explorerDates").get("webDiagnosticsBuiltinColors",!1)}catch{return!1}})(),a=Date.now()-(t instanceof Date?t.getTime():new Date(t).getTime());if(i){let s=new f.ThemeColor("list.warningForeground"),c=new f.ThemeColor("list.deemphasizedForeground"),u=new f.ThemeColor("list.errorForeground");return Lr()&&Ae("web-builtin-color-fallback","info","Web builtin color fallback enabled"),r==="file-type"?s:r==="subtle"?c:a<36e5?s:a<864e5?c:u}if(r==="custom")return a<36e5?new f.ThemeColor("explorerDates.customColor.veryRecent"):a<864e5?new f.ThemeColor("explorerDates.customColor.recent"):new f.ThemeColor("explorerDates.customColor.old");if(r==="recency")return a<36e5?new f.ThemeColor("list.highlightForeground"):a<864e5?new f.ThemeColor("charts.yellow"):new f.ThemeColor("charts.red");let o=Ji();if(r==="file-type"||r==="adaptive"){let s=Qi(n,o);if(s)return s;if(r==="adaptive"&&o)return a<36e5?o.veryRecent:a<864e5?o.recent:o.old}return r==="subtle"&&o?a<36e5?o.subtle:a<6048e5?o.muted:o.emphasis:r==="vibrant"&&o?a<36e5?o.veryRecent:a<864e5?o.recent:o.old:void 0}catch{return}}Br(t){try{let r=t?.scheme||"file";return this._isWeb||r!=="file"}catch{return this._isWeb}}Kr(t){try{if(t?.toString)return t.toString(!0)}catch{}try{let r=t?.scheme||"file",n=t?.path||t?.fsPath||"";return`${r}://${n}`}catch{return String(t||"")}}jr(t,r){try{return`${Or(t,{platform:process.platform})}::${r||"auto"}`}catch{return String(t||"unknown")}}Vr(t){try{let r=this.b.get(t);return r?r.expiresAt&&r.expiresAt=this.Ir){let i=this.b.keys().next().value;i&&this.b.delete(i)}let n=this.b.get(t);if(n&&n.freshness&&Xi(n.freshness,r)>0)return;this.b.set(t,{freshness:r,expiresAt:Date.now()+this.Mr})}catch{}}Xr(t,r,n="auto"){try{let i=String(n||"auto").toLowerCase(),a=t||"unknown",o=`${i}:${a}`;if(this.It.has(o))return;this.It.add(o);let s=i==="git"||i==="github"?"warn":"debug";this._logger?.[s]?.("Freshness source unavailable, falling back to unknown",{reason:a,policy:i,uri:r?ae(r):null})}catch{}}ht(t=""){try{let r=String(t||"");r=r.replace(/\\/g,"/"),r=r.replace(/\/{2,}/g,"/"),r=r.replace(/^\/+/,"");try{r=decodeURIComponent(r)}catch{}return r}catch{return""}}Ne(t,r){try{if(this.z.size>=this.xr){let n=this.z.keys().next().value;n&&this.z.delete(n)}this.z.set(t,r)}catch{}}async He(t){let r=this.Kr(t),n=Date.now(),i=this.z.get(r);if(i&&i.expiresAt&&i.expiresAt>n)return i;let a={timestampMs:null,available:!1,error:null,expiresAt:n+this.We,repoMatched:null,pathAttempted:null};try{let o=f?.extensions?.getExtension?f.extensions.getExtension("vscode.git"):null;if(!o)return this._isWeb&&Ae("git-extension-unavailable-web","info","Git extension not available in web mode - timestamps will use fs.stat fallback"),a.error="git-extension-missing",this.Ne(r,a),a;if(!o.isActive&&typeof o.activate=="function")try{await o.activate()}catch{}let s=o.exports?.getAPI?.(1);if(!s)return a.error="git-api-unavailable",this.Ne(r,a),a;a.available=!0;let c=typeof s.getRepository=="function"?s.getRepository(t):null,u=t?.path||t?.fsPath||"",l=this.ht(u);if(!c&&Array.isArray(s.repositories)&&(c=s.repositories.find(E=>{let M=E?.rootUri?.path||E?.rootUri?.fsPath||"",F=this.ht(M);return F&&l&&l.startsWith(F)})||null),!c||typeof c.log!="function")return a.error="git-repo-unavailable",a.repoMatched=!1,a.expiresAt=n+Math.min(this.We,5e3),this.Ne(r,a),a;a.repoMatched=!0;let d=this.ht(c?.rootUri?.path||c?.rootUri?.fsPath||""),h=d&&l.startsWith(d)?l.slice(d.length).replace(/^\/+/,""):l;a.pathAttempted=h||l||"";let g=await c.log({maxEntries:1,path:a.pathAttempted}),y=Array.isArray(g)?g[0]:null,m=y?.commitDate||y?.authorDate||y?.date||y?.committerDate,D=m?new Date(m).getTime():null;a.author=y?.authorName||y?.author?.name||y?.author||null,a.message=y?.message||y?.subject||null,Number.isFinite(D)?a.timestampMs=D:(a.error="git-log-empty",a.expiresAt=n+Math.min(this.We,5e3))}catch(o){a.error=o?.message?`git-error:${o.message}`:"git-error",a.expiresAt=n+Math.min(this.We,5e3)}return this.Ne(r,a),a}async Wn(t,r){let n=r?.mtime?r.mtime instanceof Date?r.mtime:new Date(r.mtime):null,i=n&&typeof n.getTime=="function"?n.getTime():NaN,a=Number.isFinite(i)?n:null,o=t?.scheme||"file";if(!this.Br(t))return{timestamp:a,source:a?"fs-stat":"none",gitAvailable:!1,gitError:null,repoMatched:null,pathAttempted:null};let s;try{s=await this.He(t)}catch(u){s={timestampMs:null,available:!1,error:u?.message?`git-error:${u.message}`:"git-error",repoMatched:null,pathAttempted:null}}if(s?.timestampMs)return{timestamp:new Date(s.timestampMs),source:"git",gitAvailable:s.available,gitError:s.error,repoMatched:s.repoMatched,pathAttempted:s.pathAttempted};let c=a?"fs-stat":"none";if(a&&o!=="file"){let u=Date.now()-a.getTime();u>=0&&u<=6e4?c="fs-stat-suspect":this._isWeb&&u>6e4&&Ae("web-fs-stat-limitation","info","Web mode timestamps may reflect workspace open time, not actual file modification time. Git extension would provide accurate timestamps if available.")}return this._isWeb&&o!=="file"&&(s?.error||!s?.available)?{timestamp:null,source:"web-unknown",gitAvailable:!1,gitError:s?.error||null,repoMatched:s?.repoMatched??null,pathAttempted:s?.pathAttempted||null}:{timestamp:a,source:c,gitAvailable:s?.available||!1,gitError:s?.error||null,repoMatched:s?.repoMatched??null,pathAttempted:s?.pathAttempted||null}}async pt(t,r,n={}){let i=f.workspace.getConfiguration("explorerDates"),a=n.workspaceKind||(this._isWeb?"web":"desktop"),o=i.get("freshnessSourcePolicy","auto"),s=this.jr(t,o),c=this.Vr(s);if(c)return c;let u=await Gi({uri:t,stat:r,provider:this,config:i,workspaceKind:a});return this.Gr(s,u),u?.source==="unknown"&&this.Xr(u?.reason||"unknown",t,o),u}async Te(t={}){try{let r=t.stat?.mtime||t.stat?.birthtime||new Date;return`Modified: ${(r instanceof Date?r:new Date(r)).toISOString()}`}catch{return""}}clearAllCaches(){try{try{this.e&&typeof this.e.clear=="function"&&this.e.clear()}catch{}try{this.c&&typeof this.c.clear=="function"&&this.c.clear()}catch{}try{this.$&&(this.$.length=0)}catch{}try{this.I&&typeof this.I.clear=="function"&&this.I.clear()}catch{}try{this.Se&&(this.Se.length=0)}catch{}try{this.N&&typeof this.N.clear=="function"&&this.N.clear()}catch{}try{this.Ie&&(this.Ie.length=0)}catch{}try{this._advancedCache&&typeof this._advancedCache.clear=="function"&&this._advancedCache.clear()}catch{}try{this.z&&typeof this.z.clear=="function"&&this.z.clear()}catch{}try{this.b&&typeof this.b.clear=="function"&&this.b.clear()}catch{}}catch(t){this._logger?.debug&&this._logger.debug("clearAllCaches failed",t)}}Me(t){try{if(!this.b||this.b.size===0)return;let r=`${Or(t,{platform:process.platform})}::`;for(let n of this.b.keys())typeof n=="string"&&n.startsWith(r)&&this.b.delete(n)}catch{}}Yr(t={}){try{this.clearAllCaches()}catch{}try{this.refreshAll()}catch{}try{t?.head&&this._logger?.info&&this._logger.info("Git HEAD change detected; caches refreshed",{head:t.head})}catch{}}Hr(){this.Wt||(this.Wt=!0,(async()=>{try{let t=f?.extensions?.getExtension?f.extensions.getExtension("vscode.git"):null;if(!t)return;if(!t.isActive&&typeof t.activate=="function")try{await t.activate()}catch{}let r=t.exports?.getAPI?.(1);if(!r)return;let n=i=>{try{if(!i||!i.state||typeof i.state.onDidChange!="function")return;let a=i.state.HEAD?.commit||i.state.HEAD?.name||null,o=i.state.onDidChange(()=>{let s=i.state.HEAD?.commit||i.state.HEAD?.name||null;s!==a&&(a=s,this.Yr({repo:i,head:s}))});o&&this.Ee.push(o)}catch{}};if(Array.isArray(r.repositories)&&r.repositories.forEach(i=>n(i)),typeof r.onDidOpenRepository=="function"){let i=r.onDidOpenRepository(a=>n(a));i&&this.Ee.push(i)}}catch(t){this._logger?.debug?.("Failed to register git HEAD watcher",t)}})())}refreshAll(){try{this.m.fire(void 0),Vi()}catch(t){this._logger?.debug&&this._logger.debug("refreshAll failed",t)}}applyPreviewSettings(t){try{t&&typeof t=="object"?(this.X=t,this._logger?.info&&this._logger.info("Preview settings applied",t)):(this.X=null,this._logger?.info&&this._logger.info("Preview settings cleared"));try{this.clearAllCaches()}catch{}this.refreshAll()}catch(r){this._logger?.debug&&this._logger.debug("applyPreviewSettings failed",r)}}refreshDecoration(t){try{try{this.Me(t)}catch{}this.m.fire(t)}catch(r){this._logger?.debug&&this._logger.debug("refreshDecoration failed",r)}}clearDecoration(t){try{try{this.Me(t)}catch{}let r=t?typeof t=="string"?t:ae(t):"",n=this.Ve?this.Ve(t):ra(r);try{this.e&&typeof this.e.delete=="function"&&this.e.delete(n)}catch{}try{this._advancedCache&&typeof this._advancedCache.delete=="function"&&this._advancedCache.delete(n)}catch{}try{this.m.fire(t)}catch{}}catch(r){this._logger?.debug&&this._logger.debug("clearDecoration failed",r)}}cr({badge:t,tooltip:r,color:n}){try{let i=require("vscode"),a=new i.FileDecoration(String(t||""),r||void 0,n||void 0);try{n&&(a.color=n)}catch{}return a}catch{return{badge:t,tooltip:r,color:n}}}ur(t,r,n,i,a){try{if(this.G)return;if(!this.e||typeof this.e.set!="function"||typeof this.e.size!="number")try{this.e=new Pe}catch{}if(!this.e||typeof this.e.set!="function")return;if(typeof this.e.size=="number"&&this.e.size>this.l)try{this.e.enforceLimit(this.l)}catch{}let o={decoration:r,timestamp:Date.now()};a&&(o.freshness=a),i&&(o.uri=i);try{this.e.set(t,o)}catch{}try{typeof this.ce=="function"&&this.ce()}catch(s){this._logger?.debug?.("monitorCachePressure from store failed",s)}if(this._advancedCache)try{this._advancedCache.set(t,r,{ttl:this.S}),this._logger?.debug?.(`Stored in advanced cache: ${n}`)}catch(s){this._logger?.debug?.(`Failed to store in advanced cache: ${s.message}`)}try{typeof this.le=="function"&&this.le()}catch(s){this._logger?.debug?.("maybeExtendCacheTimeout from store failed",s)}}catch(o){this._logger?.debug?.("storeDecorationInCache failed",o)}}getMetrics(){let t={decorationPool:{allocations:0,reuses:0,reusePercent:"0%"},badgeFlyweight:{allocations:0,reuses:0,reusePercent:"0%"},readableFlyweight:{allocations:0,reuses:0,reusePercent:"0%"}},r=this._metrics?.cacheHits||0,n=this._metrics?.cacheMisses||0,i=r+n>0?(r/(r+n)*100).toFixed(2)+"%":"0.00%";return{totalDecorations:this._metrics?.totalDecorations||0,cacheSize:this.c&&this.c.size||0,cacheHits:r,cacheMisses:n,cacheHitRate:i,workspaceScale:this.u||"unknown",allocationTelemetry:t,performanceTiming:{avgGitBlameMs:this._metrics?.gitBlameCalls?(this._metrics.gitBlameTimeMs/this._metrics.gitBlameCalls).toFixed(1):"0.0",avgFileStatMs:this._metrics?.fileStatCalls?(this._metrics.fileStatTimeMs/this._metrics.fileStatCalls).toFixed(1):"0.0",gitBlameCalls:this._metrics?.gitBlameCalls||0,fileStatCalls:this._metrics?.fileStatCalls||0},cacheDebugging:{cacheNamespace:this.Nr}}}forceRefreshAllDecorations(){try{this._logger?.info&&this._logger.info("\u{1F504} Force refreshing ALL decorations...");try{this.e&&typeof this.e.clear=="function"&&this.e.clear()}catch{}try{this.c&&typeof this.c.clear=="function"&&this.c.clear()}catch{}try{this._advancedCache&&typeof this._advancedCache.clear=="function"&&this._advancedCache.clear()}catch{}try{this.m.fire(void 0)}catch{}this._logger?.info&&this._logger.info("\u{1F504} Triggered global decoration refresh")}catch(t){this._logger?.debug&&this._logger.debug("forceRefreshAllDecorations failed",t)}}startProviderCallMonitoring(){try{if(this.D){this._logger?.debug&&this._logger.debug("startProviderCallMonitoring called after dispose - no-op");return}if(this.Nt){this.Vt=0,this.Re=new Set,this._logger?.info&&this._logger.info("\u{1F4CA} Provider call monitoring restarted (counters reset)");return}this.Nt=!0,this.Vt=0,this.Re=new Set;let t=this.provideFileDecoration.bind(this);this.qe=t,this.provideFileDecoration=async(r,n)=>{try{this.Vt=(this.Vt||0)+1;let i=ae(r)||(r&&typeof r.toString=="function"?r.toString(!0):"unknown");this.Re.add(Re(i)),this._logger?.info&&this._logger.info(`\u{1F50D} Provider called ${this.Vt} times for: ${na(r||i)}`)}catch{}return t(r,n)},this._logger?.info&&this._logger.info("\u{1F4CA} Started provider call monitoring")}catch(t){this._logger?.debug&&this._logger.debug("startProviderCallMonitoring failed",t)}}getProviderCallStats(){try{return{totalCalls:this.Vt||0,uniqueFiles:this.Re?this.Re.size:0,calledFiles:this.Re?Array.from(this.Re):[]}}catch{return{totalCalls:0,uniqueFiles:0,calledFiles:[]}}}async dispose(){if(this.D)return;this.D=!0,this.Be=!0;try{this._telemetryReportTimer&&(clearTimeout(this._telemetryReportTimer),this._telemetryReportTimer=null)}catch{}try{this.a&&(clearInterval(this.a),this.a=null)}catch{}try{if(this.i&&this.i.size){for(let r of this.i)clearTimeout(r);this.i.clear()}this.R=!1,this.ie=!1}catch{}try{this.L&&(clearTimeout(this.L),this.L=null)}catch{}try{this.C&&(clearTimeout(this.C),this.C=null)}catch{}try{try{this.ot({permanent:!0})}catch{}if(this.f&&typeof this.f.disposeFileWatchers=="function")try{this.f.disposeFileWatchers({permanent:!0})}catch{}this.f=null}catch{}try{this.te&&(clearTimeout(this.te),this.te=null)}catch{}try{this.m&&typeof this.m.dispose=="function"&&this.m.dispose()}catch{}try{if(Array.isArray(this.T)){for(let r of this.T)try{r.dispose&&r.dispose()}catch{}this.T.length=0}}catch{}try{if(Array.isArray(this.Ee)){for(let r of this.Ee)try{r.dispose&&r.dispose()}catch{}this.Ee.length=0}}catch{}try{if(Array.isArray(this.v)){for(let r of this.v)try{r.dispose&&r.dispose()}catch{}this.v.length=0}}catch{}let t=async r=>{try{r&&typeof r.dispose=="function"&&await r.dispose()}catch{}};await t(this._advancedCache),await t(this._batchProcessor),await t(this.rt),await t(this.pe),await t(this._workspaceIntelligence),await t(this._smartWatcherFallbackManager),await t(this.Lr),await t(this.Or);try{if(this.s&&typeof this.s.forEach=="function"&&(this.s.forEach(r=>{try{r&&typeof r.dispose=="function"&&r.dispose()}catch{}}),this.s.clear()),this.h&&typeof this.h.dispose=="function"){try{this.h.dispose()}catch{}this.h=void 0}this.d&&typeof this.d.forEach=="function"&&(this.d.forEach(r=>{try{r?.watcher?.dispose&&r.watcher.dispose()}catch{}}),this.d.clear())}catch{}try{this.e&&typeof this.e.clear=="function"&&this.e.clear()}catch{}try{this.c&&typeof this.c.clear=="function"&&this.c.clear()}catch{}try{this.I&&typeof this.I.clear=="function"&&this.I.clear()}catch{}try{this.N&&typeof this.N.clear=="function"&&this.N.clear()}catch{}try{this.lt&&this.lt.clear&&this.lt.clear()}catch{}try{this.ve&&this.ve.length&&(this.ve.length=0)}catch{}try{this._advancedCache=null,this._batchProcessor=null,this.rt=null,this.pe=null,this._workspaceIntelligence=null}catch{}try{this.Le&&typeof this.Le.dispose=="function"&&(this.Le.dispose(),this.Le=null)}catch{}try{this.w&&typeof this.w.dispose=="function"&&(this.w.dispose(),this.w=null)}catch{}try{if(this.qe&&typeof this.qe=="function"){try{this.provideFileDecoration=this.qe}catch{}this.qe=null,this.Nt=!1,this.Vt=0,this.Re=new Set}}catch{}try{this.ae=null,this.oe=null}catch{}this._logger?.info&&this._logger.info("FileDateDecorationProvider disposed")}};module.exports={FileDateDecorationProviderImpl:xe,FileDateDecorationProvider:xe}; +`,analysisCommandsDisabled:"Explorer Dates analysis commands are disabled. Shortcuts like Ctrl+Shift+M/H/A will not work until you enable explorerDates.enableAnalysisCommands.",analysisEnableNow:"Enable Now",analysisEnablePartially:"Enable partially succeeded. Update explorerDates.enableAnalysisCommands in remaining workspace folders manually.",analysisEnableFailed:"Enable failed: update explorerDates.enableAnalysisCommands in workspace settings.",workspaceTemplatesDisabled:"Workspace templates are disabled. Enable explorerDates.enableWorkspaceTemplates to use this command.",workspaceTemplatesDisabledSave:"Workspace templates are disabled. Enable explorerDates.enableWorkspaceTemplates to save templates.",enterTemplateName:"Enter template name",enterTemplateDescription:"Enter description (optional)",failedToOpenTemplateManager:e=>`Failed to open template manager: ${e}`,failedToSaveTemplate:e=>`Failed to save template: ${e}`,reportingDisabled:"Reporting features are disabled. Enable explorerDates.enableExportReporting to generate reports.",failedToGenerateReport:e=>`Failed to generate report: ${e}`,apiDisabled:"Explorer Dates API is disabled via settings.",failedToShowApiInformation:e=>`Failed to show API information: ${e}`,failedToShowWorkspaceActivity:e=>`Failed to show workspace activity: ${e}`,failedToShowPerformanceAnalytics:e=>`Failed to show performance analytics: ${e}`,failedToShowCacheDebugInfo:e=>`Failed to show cache debug info: ${e}`,noWorkspaceFolderOpen:"No workspace folder open",resetConfirm:"Reset Settings",resetCancel:"Cancel",resetSuccess:e=>`\u2705 Reset ${e} settings to defaults.`,validateNoIssues:"\u2705 Configuration is valid - no issues found!",validateFoundIssues:e=>`Found ${e} configuration issue(s). Would you like to see details?`,validateShowDetails:"Show Details",validateDismiss:"Dismiss",migrationNotificationMessage:e=>`Explorer Dates updated ${e} setting(s) for compatibility. Your configuration has been preserved.`,migrationViewChanges:"View Changes",migrationOpenSettings:"Open Settings",deprecatedPrompt:e=>`Explorer Dates found ${e} deprecated setting(s). Would you like to remove them?`,deprecatedClean:"Clean Up Now",deprecatedKeep:"Keep Old Settings",deprecatedAskLater:"Ask Later",showFileLocation:"Show File Location",teamConfigCorrupted:"Explorer Dates team configuration file appears to be corrupted. Please check the .explorer-dates-profiles.json file or restore from backup.",appliedFromTeamProfile:(e,t)=>`Applied ${e} Explorer Dates settings from team profile "${t}".`,documentedOverrides:"Documented Explorer Dates overrides in .vscode/explorer-dates-overrides.md",teamConfigMissingProfile:"Team configuration is missing an active profile.",ephemeralStorageEnospc:"Explorer Dates team configuration could not be saved because the disk is full.",ephemeralStorageGeneric:"Explorer Dates team configuration could not be saved because the workspace is read-only or permissions are restricted.",ephemeralStorageSuffix:" Changes will be kept in memory until VS Code restarts, so they may be lost."}};try{let e=ur();if(e&&typeof e=="object")for(let[t,r]of Object.entries(e)){z[t]||(z[t]={});for(let[n,i]of Object.entries(r))typeof z[t][n]>"u"&&(z[t][n]=i)}}catch{}var De=class{constructor(){this.Ce="en",this.w=null,this.ft(),typeof V.workspace.onDidChangeConfiguration=="function"?this.w=V.workspace.onDidChangeConfiguration(t=>{t.affectsConfiguration("explorerDates.locale")&&this.ft()}):this.w=null}ft(){let r=V.workspace.getConfiguration("explorerDates").get("locale","auto");if(r==="auto"){let n=V&&V.env&&typeof V.env.language=="string"?V.env.language:"en";try{r=String(n||"en").split("-")[0]}catch{r="en"}}z[r]||(r="en"),this.Ce=r}getString(t,...r){let i=(z[this.Ce]||z.en)[t];return typeof i=="function"?i(...r):i||z.en[t]||t}getCurrentLocale(){return this.Ce}formatDate(t,r={}){try{return t.toLocaleDateString(this.Ce,r)}catch{return t.toLocaleDateString("en",r)}}dispose(){this.w&&(this.w.dispose(),this.w=null),fe===this&&(fe=null)}},fe=null;function Fi(){return fe||(fe=new De),fe}hr.exports={LocalizationManager:De,getLocalization:Fi}});var ot=E((Pa,dr)=>{function Ai(e){let t=require("vscode");function r(l,d,h,g,y,m){if(!e.Gt||!g)return m&&(m.misses++,m.allocations++),y();if(l.has(g))return m&&(m.hits++,m.reuses++),l.get(g);m&&(m.misses++,m.allocations++);let D=y();if(l.set(g,D),d.push(g),d.length>h){let _=d.shift();_&&l.delete(_)}return D}function n({formatType:l,diffMinutes:d,diffHours:h,diffDays:g,diffWeeks:y,diffMonths:m,date:D}){let _=(M,F=null)=>({value:M,key:F?`badge:${l||"default"}:${F}`:null});switch(l){case"relative-short":case"relative-long":return d<1?_("\u25CF\u25CF","just"):d<60?_(`${Math.min(d,99)}m`,`m:${Math.min(d,99)}`):h<24?_(`${Math.min(h,23)}h`,`h:${Math.min(h,23)}`):g<7?_(`${g}d`,`d:${g}`):y<4?_(`${y}w`,`w:${y}`):m<12?_(`${m}M`,`M:${m}`):_("1y","y:1");case"absolute-short":case"absolute-long":{let M=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],F=D.getDate(),X=`${M[D.getMonth()]}${F<10?"0"+F:F}`,w=[D.getMonth(),F];return l==="absolute-long"&&w.push(D.getFullYear()),_(X,`abs:${w.join("-")}`)}case"technical":return d<60?_(`${d}m`,`tech:m:${d}`):h<24?_(`${h}h`,`tech:h:${h}`):_(`${g}d`,`tech:d:${g}`);case"minimal":return h<1?_("\u2022\u2022","min:now"):h<24?_("\u25CB\u25CB","min:hours"):_("\u2500\u2500","min:days");default:return d<60?_(`${d}m`,`smart:m:${d}`):h<24?_(`${h}h`,`smart:h:${h}`):_(`${g}d`,`smart:d:${g}`)}}function i(l,d,h=null){let y=h!==null?h:new Date().getTime()-l.getTime();if(y<0)return e._logger.debug(`File has future modification time (diffMs: ${y}), treating as just modified`),"\u25CF\u25CF";let m=Math.floor(y/(1e3*60)),D=Math.floor(y/(1e3*60*60)),_=Math.floor(y/(1e3*60*60*24)),M=Math.floor(_/7),F=Math.floor(_/30),X=n({formatType:d,diffMinutes:m,diffHours:D,diffDays:_,diffWeeks:M,diffMonths:F,date:l});return r(e.I,e.Se,e.Xt,X.key,()=>X.value,e.Yt)}function a(l){if(!l)return"none";if(typeof l=="string")return l;if(l.id)return l.id;try{return JSON.stringify(l)}catch{return String(l)}}function o(l,d,h){let g=l||"",y=d||"",m=a(h);return`${g}::${m}::${y}`}function s({badge:l,tooltip:d,color:h}){if(!e.Zt){e.H.misses++,e.H.allocations++;let m=new t.FileDecoration(l||"??");return d&&(m.tooltip=d),h&&(m.color=h),m.propagate=!1,m}if(!l)return e.H.allocations++,new t.FileDecoration("??");let g=o(l,d,h);if(g&&e.c.has(g))return e.H.hits++,e.H.reuses++,e.c.get(g);let y=new t.FileDecoration(l);if(d&&(y.tooltip=d),h&&(y.color=h),y.propagate=!1,e.H.allocations++,g&&(e.c.set(g,y),e.$.push(g),e.$.length>e.Jt)){let m=e.$.shift();m&&m!==g&&e.c.delete(m)}return e.H.misses++,y}function c(l="unspecified"){e.c.size!==0&&(e.c.clear(),e.$.length=0,e._logger.debug(`\u{1F9FC} Cleared decoration pool (${l})`))}async function u({filePath:l,stat:d,gitBlame:h,shouldUseAccessibleTooltips:g,fileSizeFormat:y}){if(g){let D=e._accessibility?.getAccessibleTooltip?.(l,d.mtime,d.birthtime,d.size,h);if(D)return D}let m=[];try{let D=e.p.formatDate(d.mtime);if(m.push(`${D}`),y&&typeof d.size=="number"){let _=e.gt(d.size,y);m.push(_)}h&&h.author&&m.push(`Author: ${h.author}`)}catch(D){e._logger.debug("Tooltip builder failed",D)}return m.join(" \u2014 ")}return{acquireDecorationFromPool:s,clearDecorationPool:c,Qr:o,tn:a,Qt:i,rn:n,er:r,Te:u}}dr.exports={createDecorationLogic:Ai}});var Ce=E((exports,module)=>{function createDecorationProviderHelpers(provider){let vscode=require("vscode"),{diagLogOnce,diagLog,isWebDiagnosticsEnabled}=he(),{formatBadge,formatTooltip}=nt(),decorationDiagCount=0,maxDecorationDiag=20,CONTRIBUTED_CUSTOM_COLOR_TOKENS=new Set(["explorerDates.customColor.veryRecent","explorerDates.customColor.recent","explorerDates.customColor.old"]),isWebRuntime=(()=>{try{return vscode?.env?.uiKind===vscode?.UIKind?.Web}catch{return!1}})(),getFileName,getExtension,normalizePath,getUriPath,ensureDate;try{let e=K();e&&(getFileName=e.getFileName,getExtension=e.getExtension,normalizePath=e.normalizePath,getUriPath=e.getUriPath,ensureDate=e.ensureDate)}catch{}if(!getFileName||!ensureDate){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function")try{let e=dynamicRequire("../utils/pathUtils"),t=dynamicRequire("../utils/dateHelpers");getFileName=getFileName||e.getFileName,getExtension=getExtension||e.getExtension,normalizePath=normalizePath||e.normalizePath,getUriPath=getUriPath||e.getUriPath,ensureDate=ensureDate||t.ensureDate}catch{}}catch{}getFileName||(getFileName=e=>{let t=String(e||""),r=t.replace(/\\/g,"/").lastIndexOf("/");return r===-1?t:t.substring(r+1)}),getExtension||(getExtension=e=>{let t=String(e||""),r=t.lastIndexOf(".");return r<=0?"":t.substring(r).toLowerCase()}),normalizePath||(normalizePath=(e="")=>(e||"").toString().replace(/\\/g,"/")),getUriPath||(getUriPath=(e="")=>e?typeof e=="string"?e:e?.fsPath?e.fsPath:e?.path?e.path:String(e):""),ensureDate||(ensureDate=e=>e instanceof Date?e:typeof e=="number"?new Date(e):typeof e=="string"?isNaN(Date.parse(e))?new Date:new Date(Date.parse(e)):new Date)}async function provideDecoration(e,t){let r=!1,n=null,i,a=null,o=null,s=null,c=null,u=!1,l=null,d=null,h=null,g=null,y=null,m=null,D=!1,_=()=>isWebDiagnosticsEnabled&&isWebDiagnosticsEnabled()&&decorationDiagCount{let w=null;try{w=vscode.workspace.getConfiguration("explorerDates")}catch{w=null}let U=w?w.get("colorScheme","none"):"none",b=w?w.get("showDateDecorations",!0):!0,H=typeof provider._performanceMode=="boolean"?provider._performanceMode:w?w.get("performanceMode",!1):!1,oe=isWebRuntime&&w?!!w.get("webDiagnosticsBuiltinColors",!1):!1;return{isWeb:isWebRuntime,isCanary:!1,builtinColorFallbackActive:oe,colorScheme:U,effectiveColorScheme:U,showDateDecorations:b,performanceMode:H,featureLevel:provider.B,previewSettings:!!provider.X}},F=w=>{if(!_()||r)return;decorationDiagCount+=1,r=!0;let b={...M(),...w};!b.scheme&&n&&(b.scheme=n),b.effectiveColorScheme||(b.effectiveColorScheme=b.colorScheme),typeof b.hasColor>"u"&&(b.hasColor=!!b.color),typeof b.badge>"u"&&(b.badge=null),typeof b.propagate>"u"&&(b.propagate=null),typeof b.decorationKeys>"u"&&(b.decorationKeys=null),typeof b.nullReason>"u"&&(b.nullReason=null),typeof b.timestampSource>"u"&&(b.timestampSource="not-attempted"),typeof b.gitRecencyAvailable>"u"&&(b.gitRecencyAvailable=!1),typeof b.gitRecencyError>"u"&&(b.gitRecencyError=null),typeof b.resolvedTimestampMs>"u"&&(b.resolvedTimestampMs=null),typeof b.gitRepoMatched>"u"&&(b.gitRepoMatched=null),typeof b.gitPathAttempted>"u"&&(b.gitPathAttempted=null),b.themeTokenSource||(b.isCanary?b.themeTokenSource="canary":b.builtinColorFallbackActive?b.themeTokenSource="builtin-fallback":typeof b.color=="string"&&b.color.startsWith("explorerDates.")?b.themeTokenSource="custom-token":b.color?b.themeTokenSource="builtin-token":b.themeTokenSource=null),diagLog("info","Decoration return sample",b)},X=w=>{if(!(!_()||r))try{F(w)}catch{}};try{if(provider.Be){a="disposed";return}if(!e){a="no-uri";return}let w=e.fsPath||e.path||"";n=e.scheme||"file";let U=vscode.workspace.getConfiguration("explorerDates"),b=U.get("performanceMode",!1);if(b&&typeof b!="boolean")return a="invalid-performanceMode",null;if(w&&w.includes("\0"))return a="invalid-path",null;let H=getUriPath(e);if(!H){a="missing-path";return}let oe=provider.Ke?provider.Ke(H):getFileName(H)||H,ft=normalizePath(H),Ur=n||"file";if(typeof provider.je!="function"){diagLogOnce("decorations-fallback-provider","warn","Decoration fallback active (missing provider helpers)");try{let A=await provider._fileSystem.stat(e);if(!A){a="no-stat";return}let Y=A.mtime instanceof Date?A.mtime:A.mtime?new Date(A.mtime):null,Me=Y&&typeof Y.getTime=="function"?Y.getTime():NaN;if(!Number.isFinite(Me)){a="invalid-stat";return}let se=Date.now()-Y.getTime(),Ie=se<1440*60*1e3?"\u2022":se<10080*60*1e3?"\u25E6":"\xB7",We=`Modified: ${Y.toISOString()}`,me=new vscode.FileDecoration(Ie,We);return i=me,y=Ie,h=!1,g=null,m=me?.propagate,me}catch{a="fallback-error";return}}if(!provider.je(e,"provideFileDecoration")?.isValid){a="invalid-uri";return}if(await provider.tr(e)){a="excluded";return}return i=await provider.rr(w,async()=>{if(t?.isCancellationRequested||provider.Be){a=t?.isCancellationRequested?"cancelled":"disposed";return}let A=(k,pe)=>provider.X&&Object.prototype.hasOwnProperty.call(provider.X,k)?provider.X[k]:vscode.workspace.getConfiguration("explorerDates").get(k,pe);if(isWebRuntime&&A("webDiagnosticsCanary",!1)&&isWebDiagnosticsEnabled&&isWebDiagnosticsEnabled()&&decorationDiagCount=provider.ue;if(provider.ir>provider.ue*.8&&We){diagLogOnce("decorations-backpressure","warn","Decoration backpressure fallback active");let k=provider.ar(e,Date.now());return y=k?.badge||null,h=!!k?.color,g=k?.color&&k?.color.id?k.color.id:k?.color||null,m=k?.propagate,a="backpressure",k}provider.or(),provider._metrics.cacheMisses++;let N=null;if(!Me&&provider._workspaceIntelligence?.incrementalIndexer){let k=provider._workspaceIntelligence.incrementalIndexer.getIndexedStat(w);k&&(N=k)}let gt=Date.now();if(!N){try{N=await provider._fileSystem.stat(e)}catch(k){if(provider._metrics.fileStatTimeMs+=Date.now()-gt,provider._metrics.fileStatCalls++,provider.sr(k)){a="stat-not-found";return}if(Ur!=="file"){a="stat-failed";return}throw a="stat-failed",k}provider._workspaceIntelligence?.incrementalIndexer&&provider._workspaceIntelligence.incrementalIndexer.primeFromStat(e,N)}if(provider._metrics.fileStatTimeMs+=Date.now()-gt,provider._metrics.fileStatCalls++,!(typeof N.isFile=="function"?N.isFile():!0)){a="not-regular-file";return}u=!0;let v=null;try{typeof provider.pt=="function"&&(v=await provider.pt(e,N,{filePath:w,fileLabel:oe}))}catch(k){c={source:"unknown",gitAvailable:!1,gitError:k?.message?`resolver-error:${k.message}`:"resolver-error",repoMatched:null,pathAttempted:null}}if((!v||v.bucket==="unknown"||v.source==="unknown")&&!A("freshnessShowUnknown",!0)){a="freshness-unknown";return}let Le=A("colorScheme","none");provider._performanceMode&&Le!=="custom"&&(Le="none");let Hr=A("fileSizeFormat","auto"),Z=provider.yt,$r=Z&&typeof Z.Te=="function"?Z.Te:provider.Te,Br=Z&&typeof Z.acquireDecorationFromPool=="function"?Z.acquireDecorationFromPool:provider.cr,Oe=formatBadge(v?.bucket||"unknown",v?.source||"unknown",U,v?.confidence||"low");if(!Oe){a="badge-suppressed";return}let $=v?.exactTimestamp?provider.lr(new Date(v.exactTimestamp),Le,w):void 0,Kr=formatTooltip(v,U)||await $r({filePath:w,resourceUri:e,stat:N,badgeDetails:{},gitBlame:null,shouldUseAccessibleTooltips:!1,fileSizeFormat:Hr,isCodeFile:!1}),Ne=Br({badge:Oe,tooltip:Kr,color:$});return g=$&&typeof $=="object"&&"id"in $?$.id:$||null,h=!!$,y=String(Oe||""),m=Ne?.propagate,typeof g=="string"&&g.startsWith("explorerDates.customColor.")&&!CONTRIBUTED_CUSTOM_COLOR_TOKENS.has(g)&&diagLogOnce(`missing-custom-color-${g}`,"warn","Custom color token missing from contributes.colors",{colorId:g,knownTokens:Array.from(CONTRIBUTED_CUSTOM_COLOR_TOKENS)}),l=v?.exactTimestamp||null,c=c||{source:v?.source||"unknown",bucket:v?.bucket||"unknown",confidence:v?.confidence||"low",reason:v?.reason||null,attempts:v?.attempts||null,gitAvailable:v?.source==="git",gitError:null,repoMatched:null,pathAttempted:null},provider.ur(se,Ne,oe,e,v),Ne}),i}catch(w){o=w?.name||"Error",s=w?.message||String(w),a=a||"exception";return}finally{if(i){if(d==null)try{d=Object.keys(i||{})}catch{d=null}if(y==null&&typeof i.badge<"u"&&(y=i.badge),m==null&&typeof i.propagate<"u"&&(m=i.propagate),g==null&&typeof i.color<"u")try{g=i.color&&i.color.id?i.color.id:i.color}catch{g=i.color}h==null&&typeof g<"u"&&(h=!!g)}let w={uri:e?getFileName(getUriPath(e)||""):null,scheme:n,isCanary:D,badge:y,hasColor:h,color:g,propagate:m,decorationKeys:d,nullReason:i?null:a||"unknown",timestampSource:c?.source||(u?"none":"not-attempted"),gitRecencyAvailable:!!c?.gitAvailable,gitRecencyError:c?.gitError||null,resolvedTimestampMs:l,gitRepoMatched:c?.repoMatched??null,gitPathAttempted:c?.pathAttempted||null,freshnessBucket:c?.bucket||null,freshnessSource:c?.source||null,freshnessConfidence:c?.confidence||null,freshnessReason:c?.reason||null,freshnessAttempts:c?.attempts||null,exceptionName:o,exceptionMessage:s};X(w)}}return{provideDecoration}}module.exports={createDecorationProviderHelpers}});var st=E((xa,mr)=>{function fr(e){!e._allocationTelemetryEnabled||e._telemetryReportTimer||(e._telemetryReportTimer=setTimeout(()=>{e._telemetryReportTimer=null,gr(e),fr(e)},e._telemetryReportInterval))}function gr(e){let t=e.getMetrics().allocationTelemetry,r=t.decorationPool.allocations+t.badgeFlyweight.allocations+t.readableFlyweight.allocations,n=t.decorationPool.reuses+t.badgeFlyweight.reuses+t.readableFlyweight.reuses;(r>0||n>0)&&e._logger?.info?.("\u{1F9EE} Allocation telemetry report",{timestamp:new Date().toISOString(),pool:{allocations:t.decorationPool.allocations,reuses:t.decorationPool.reuses,reuseRate:t.decorationPool.reusePercent+"%"},badgeFlyweight:{allocations:t.badgeFlyweight.allocations,reuses:t.badgeFlyweight.reuses,reuseRate:t.badgeFlyweight.reusePercent+"%"},readableFlyweight:{allocations:t.readableFlyweight.allocations,reuses:t.readableFlyweight.reuses,reuseRate:t.readableFlyweight.reusePercent+"%"},summary:{totalAllocations:r,totalReuses:n,overallReuseRate:r+n>0?(n/(r+n)*100).toFixed(1)+"%":"0%"},decorationsProcessed:e._metrics.totalDecorations,cacheHitRate:e.getMetrics().cacheHitRate})}mr.exports={scheduleTelemetryReport:fr,reportAllocationTelemetry:gr}});var pr=E((exports,module)=>{var CHUNK_SIZES={onboarding:34,analysisCommands:23,exportReporting:17,extensionApi:15,workspaceTemplates:14,advancedCache:28,workspaceIntelligence:31,incrementalWorkers:19},BASE_BUNDLE_SIZE=99;function _getPresetDefinitionsSync(){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=dynamicRequire("./chunks/preset-definitions-chunk");if(e&&e.PRESET_DEFINITIONS)return e.PRESET_DEFINITIONS}}catch{}let FALLBACK_PRESET={minimal:{id:"minimal",name:"Minimal",description:"Lean setup that prioritizes responsiveness in large repos.",targetScenarios:["Large repos","Low resources","Minimal UI"],settings:{"explorerDates.performanceMode":!0,"explorerDates.showDateDecorations":!0}},balanced:{id:"balanced",name:"Balanced",description:"Default feature mix for most workspaces.",targetScenarios:["General development","Mixed workloads"],settings:{"explorerDates.enableOnboardingSystem":!0,"explorerDates.enableAnalysisCommands":!0,"explorerDates.performanceMode":!1,"explorerDates.dateDecorationFormat":"smart","explorerDates.colorScheme":"recency","explorerDates.badgePriority":"time"}},"web-development":{id:"web-development",name:"Web Development",description:"Optimized for frontend and full-stack web projects.",targetScenarios:["Web apps","Frontend teams"],settings:{"explorerDates.enableOnboardingSystem":!0,"explorerDates.dateDecorationFormat":"smart","explorerDates.colorScheme":"file-type","explorerDates.badgePriority":"time"}},enterprise:{id:"enterprise",name:"Enterprise",description:"Full feature set with reporting and integrations enabled.",targetScenarios:["Large teams","Governed environments"],settings:{"explorerDates.enableExportReporting":!0,"explorerDates.enableExtensionApi":!0,"explorerDates.dateDecorationFormat":"smart","explorerDates.colorScheme":"recency","explorerDates.badgePriority":"time"}},"data-science":{id:"data-science",name:"Data Science",description:"Insight-focused profile for data-heavy projects.",targetScenarios:["Data analysis","Research workflows"],settings:{"explorerDates.enableWorkspaceIntelligence":!0,"explorerDates.dateDecorationFormat":"iso-detailed","explorerDates.colorScheme":"recency","explorerDates.badgePriority":"time"}}};return FALLBACK_PRESET}var PRESET_DEFINITIONS=_getPresetDefinitionsSync(),RESTART_REQUIRED_SETTINGS=new Set(["enableOnboardingSystem","enableAnalysisCommands","enableExportReporting","enableExtensionApi","enableWorkspaceTemplates","enableAdvancedCache","enableWorkspaceIntelligence","enableIncrementalWorkers","performanceMode","smartFileWatching"]);function calculateBundleSize(e){let t=BASE_BUNDLE_SIZE;return e["explorerDates.enableOnboardingSystem"]&&(t+=CHUNK_SIZES.onboarding),e["explorerDates.enableAnalysisCommands"]&&(t+=CHUNK_SIZES.analysisCommands),e["explorerDates.enableExportReporting"]&&(t+=CHUNK_SIZES.exportReporting),e["explorerDates.enableExtensionApi"]&&(t+=CHUNK_SIZES.extensionApi),e["explorerDates.enableWorkspaceTemplates"]&&(t+=CHUNK_SIZES.workspaceTemplates),e["explorerDates.enableAdvancedCache"]&&(t+=CHUNK_SIZES.advancedCache),e["explorerDates.enableWorkspaceIntelligence"]&&(t+=CHUNK_SIZES.workspaceIntelligence),e["explorerDates.enableIncrementalWorkers"]&&(t+=CHUNK_SIZES.incrementalWorkers),t}function getDefaultPresetForProfile(e){let t=PRESET_DEFINITIONS;switch(e){case"minimal":case"extreme":return t.minimal||t.minimal;case"balanced":return t.balanced||t.balanced;case"web-development":return t["web-development"]||t["web-development"];case"data-science":return t["data-science"]||t["data-science"];case"enterprise":return t.enterprise||t.enterprise;default:return t.balanced||t.balanced}}module.exports={PRESET_DEFINITIONS,CHUNK_SIZES,BASE_BUNDLE_SIZE,RESTART_REQUIRED_SETTINGS,calculateBundleSize,getDefaultPresetForProfile}});var br=E((Ma,yr)=>{var Se={onboarding:"src/chunks/onboarding-chunk",onboardingAssets:"src/chunks/onboarding-assets-chunk",reporting:"src/chunks/reporting-chunk",templates:"src/chunks/templates-chunk",analysis:"src/chunks/analysis-chunk",diagnostics:"src/chunks/diagnostics-chunk",extensionApi:"src/chunks/extension-api-chunk",advancedCache:"src/chunks/advancedCache-chunk",batchProcessor:"src/chunks/batchProcessor-chunk",decorationsAdvanced:"src/chunks/decorations-advanced",decorationsStatic:"src/chunks/decorations-static",workspaceIntelligence:"src/chunks/workspaceIntelligence",decorationLogic:"src/chunks/decoration-logic-chunk",decorationProvide:"src/chunks/decoration-provide-chunk",decorationHelpers:"src/chunks/decoration-helpers-chunk",decorationBatch:"src/chunks/decoration-batch-chunk",decorationWorkspaceIntel:"src/chunks/decoration-workspace-intel-chunk",decorationTelemetry:"src/chunks/decoration-telemetry-chunk",decorationRefresh:"src/chunks/decoration-refresh-chunk",decorationMemory:"src/chunks/decoration-memory-chunk",decorationPool:"src/chunks/decoration-pool-chunk",providerInit:"src/chunks/provider-init-chunk",fileDateProviderImpl:"src/chunks/file-date-provider-impl",fileDateProviderImplExport:"src/chunks/file-date-provider-impl-export",utilsShared:"src/chunks/utils-shared-chunk",incrementalWorkers:"src/chunks/incrementalWorkers",incrementalIndexer:"src/chunks/incrementalIndexer-chunk",uiAdapters:"src/chunks/ui-adapters",gitInsights:"src/chunks/gitInsights-chunk",smartWatcherFallback:"src/chunks/smartWatcherFallback-chunk",runtimeManagement:"src/chunks/runtime-management",runtimeManagementHeavy:"src/chunks/runtime-management-heavy",teamPersistence:"src/chunks/team-persistence-chunk",teamPersistenceUI:"src/chunks/team-persistence-ui-chunk",teamPersistenceLogic:"src/chunks/team-persistence-logic-chunk",settingsCoordinatorImpl:"src/chunks/settings-coordinator-impl-chunk",logger:"src/chunks/logger-chunk",loggerImpl:"src/chunks/logger-impl-chunk"};function Ri(e){return Se[e]||null}function Pi(){return Object.keys(Se)}function xi(e){let t={};for(let[r,n]of Object.entries(Se))t[r]=()=>e(`./${n}`);return t}var Mi=new Set(["gitInsights","reporting","templates","advancedCache","runtimeManagementHeavy","incrementalWorkers"]);yr.exports={CHUNK_MAP:Se,WEB_EXCLUDED_CHUNKS:Mi,getChunkSourcePath:Ri,getAllChunkNames:Pi,generateDevLoaderMap:xi}});var G=E((exports,module)=>{var FEATURE_FLAGS_GLOBAL_KEY="__explorerDatesFeatureFlags";function registerFeatureFlagsGlobal(e){if(e)try{typeof globalThis<"u"&&(globalThis[FEATURE_FLAGS_GLOBAL_KEY]=e)}catch{}}function loadFeatureFlagsFallback(){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function")return dynamicRequire("../featureFlags")}catch{}return null}function getFeatureFlagsGlobal(){try{if(typeof globalThis<"u"&&globalThis[FEATURE_FLAGS_GLOBAL_KEY])return globalThis[FEATURE_FLAGS_GLOBAL_KEY]}catch{}return loadFeatureFlagsFallback()}module.exports={FEATURE_FLAGS_GLOBAL_KEY,registerFeatureFlagsGlobal,getFeatureFlagsGlobal}});var ge=E((exports,module)=>{var getLogger=()=>{try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=dynamicRequire("./chunks/logger-chunk");if(e&&typeof e.getLogger=="function")return getLogger=e.getLogger,getLogger()}}catch{}try{return getLogger=q().getLogger,getLogger()}catch{return getLogger=()=>({debug:(()=>{})?.bind(console)||console.log,info:(()=>{}).bind(console),warn:(()=>{}).bind(console),error:(()=>{}).bind(console)}),getLogger()}},{CHUNK_SIZES}=pr(),{getChunkSourcePath,getAllChunkNames}=br(),{registerFeatureFlagsGlobal}=G(),{isWebEnvironment}=J(),featureLogger=null,env=typeof process<"u"&&process.env?process.env:{},DEFAULT_CHUNK_TIMEOUT_MS=Number(env.EXPLORER_DATES_CHUNK_TIMEOUT||(env.NODE_ENV==="test"?1e3:5e3)),NETWORK_ERROR_CODES=new Set(["ENOTFOUND","ECONNRESET","ECONNREFUSED","EAI_AGAIN","ETIMEDOUT","EHOSTUNREACH"]),BUILT_CHUNK_CACHE=new Map,CHUNK_METHOD_ALIASES={reporting:"exportReporting",templates:"workspaceTemplates",analysis:"analysisCommands"},DEV_CHUNK_PATH_CACHE=new Map,LAST_FEATURE_FAILURES=new Map;function getDevChunkImportPath(e){if(DEV_CHUNK_PATH_CACHE.has(e))return DEV_CHUNK_PATH_CACHE.get(e);let t=getChunkSourcePath(e);if(!t)return DEV_CHUNK_PATH_CACHE.set(e,null),null;let r=t;return r.startsWith("src/")&&(r=r.slice(4)),r.startsWith("./")||(r=`./${r}`),DEV_CHUNK_PATH_CACHE.set(e,r),r}function resolveNodeDependencies(){if(nativeDepsResolved)return!!(nativePath&&nativeFs);if(nativeDepsResolved=!0,!isNodeLikeRuntime())return!1;try{nativePath=eval("require")("path"),nativeFs=eval("require")("fs")}catch{nativePath=null,nativeFs=null}return!!(nativePath&&nativeFs)}var nativeDepsResolved=!1,nativePath=null,nativeFs=null;function isWebRuntime(){try{return isWebEnvironment()?!0:typeof process<"u"&&process?.env?.VSCODE_WEB==="true"}catch{return!1}}function isNodeLikeRuntime(){return typeof process<"u"&&!!process.versions?.node&&!isWebRuntime()}function getChunkTimeoutMs(){return DEFAULT_CHUNK_TIMEOUT_MS>0?DEFAULT_CHUNK_TIMEOUT_MS:0}function logFeature(e,t,r){featureLogger||(featureLogger=getLogger());let n=featureLogger;typeof n[e]=="function"?n[e](t,r):n.info(t,r)}function logFeatureDisabled(e,t){logFeature("info","Feature disabled via configuration",{feature:e,savedKB:t&&CHUNK_SIZES[t]!==void 0?CHUNK_SIZES[t]:void 0})}function isLikelyNetworkIssue(e){if(!e)return!1;if(e.code&&NETWORK_ERROR_CODES.has(e.code))return!0;let t=(e.message||"").toLowerCase();return t.includes("network")||t.includes("fetch")||t.includes("timed out")}function runWithChunkTimeout(e,t){let r=getChunkTimeoutMs(),n=()=>{try{return Promise.resolve(e())}catch(i){return Promise.reject(i)}};return r?new Promise((i,a)=>{let o=!1,s=setTimeout(()=>{if(o)return;o=!0;let c=new Error(`Chunk "${t}" load timed out after ${r}ms`);c.code="CHUNK_TIMEOUT",a(c)},r);n().then(c=>{o||(o=!0,clearTimeout(s),i(c))}).catch(c=>{o||(o=!0,clearTimeout(s),a(c))})}):n()}function logResolverFailure(e,t){if(!t)return;let r={chunkName:e,error:t.message,code:t.code,networkIssue:isLikelyNetworkIssue(t),timedOut:t.code==="CHUNK_TIMEOUT"},n=r.networkIssue||r.timedOut?"warn":"error";logFeature(n,"Chunk resolver failed",r)}function tryLoadBuiltChunk(e){if(!e||!resolveNodeDependencies()||typeof nativeFs?.existsSync!="function")return null;if(BUILT_CHUNK_CACHE.has(e))return BUILT_CHUNK_CACHE.get(e);let t=[];typeof __dirname=="string"&&nativePath&&(t.push(nativePath.join(__dirname,"chunks",`${e}.js`)),t.push(nativePath.join(__dirname,"..","dist","chunks",`${e}.js`)));for(let r of t)try{if(!r||!nativeFs.existsSync(r))continue;let n=require(r),i=n?.default||n;return BUILT_CHUNK_CACHE.set(e,i||null),i&&logFeature("info","Loaded chunk via built artifact fallback",{chunkName:e,path:r}),i}catch(n){logFeature("warn","Built chunk fallback failed",{chunkName:e,path:r,error:n.message})}return BUILT_CHUNK_CACHE.set(e,null),null}function tryRequireDevChunk(e){if(isWebRuntime())return null;let t=getDevChunkImportPath(e);if(!t)return null;try{let r=require(t);return r?.default||r}catch(r){(r.code!=="MODULE_NOT_FOUND"||typeof r.message=="string"&&!r.message.includes(t))&&logFeature("debug","Dev chunk require failed",{chunkName:e,importPath:t,error:r.message})}return null}function tryRequireLocalBuiltChunk(e){if(isWebRuntime())return null;let t=`./chunks/${e}`;try{let r=require(t);return r?.default||r}catch(r){r.code==="MODULE_NOT_FOUND"||logFeature("debug","Local chunk require failed",{chunkName:e,importPath:t,error:r.message})}return null}function getSavingsKey(e){return e in CHUNK_SIZES?e:CHUNK_METHOD_ALIASES[e]||null}function announceChunkSavings(e){let t=getSavingsKey(e);if(!t)return;let r=CHUNK_SIZES[t];if(!r)return;let i=`\u{1F4BE} ${t===e||!e?t:`${t} (requested as "${e}")`} chunk unavailable - keeping the feature disabled is saving ~${r}KB`;logFeature("info","Chunk savings applied",{chunkName:t,requestedName:e,savedKB:r})}var getFeatureConfig=()=>{try{let t=require("vscode").workspace.getConfiguration("explorerDates"),r=isWebRuntime(),n=i=>r?!1:i;return{enableOnboarding:t.get("enableOnboardingSystem",!0),enableExportReporting:n(t.get("enableExportReporting",!0)),enableWorkspaceTemplates:n(t.get("enableWorkspaceTemplates",!0)),enableAnalysisCommands:t.get("enableAnalysisCommands",!0),enableAdvancedCache:n(t.get("enableAdvancedCache",!0)),enableWorkspaceIntelligence:n(t.get("enableWorkspaceIntelligence",!0)),enableIncrementalWorkers:n(t.get("enableIncrementalWorkers",!1)),enableGitInsights:n(t.get("enableGitInsights",!0)),enableExtensionApi:t.get("enableExtensionApi",!0)}}catch{let e=isWebRuntime(),t=r=>e?!1:r;return{enableOnboarding:!0,enableExportReporting:t(!0),enableWorkspaceTemplates:t(!0),enableAnalysisCommands:!0,enableAdvancedCache:t(!0),enableWorkspaceIntelligence:t(!0),enableIncrementalWorkers:t(!1),enableGitInsights:t(!0),enableExtensionApi:!0}}},featureLoaders=new Map,chunkResolver=null;function setFeatureChunkResolver(e){if(e&&typeof e!="function")throw new Error("Feature chunk resolver must be a function");chunkResolver=e||null}function registerFeatureLoader(e,t){if(typeof t!="function")throw new Error(`Feature loader for "${e}" must be a function`);featureLoaders.set(e,t)}function unregisterFeatureLoader(e){featureLoaders.delete(e)}function clearFeatureLoaders(){featureLoaders.clear()}async function loadFeatureModule(e){LAST_FEATURE_FAILURES.delete(e);let t=featureLoaders.get(e);if(!t&&chunkResolver&&(t=()=>chunkResolver(e)),!t)return logFeature("warn","No loader registered for feature",{feature:e}),null;try{return await runWithChunkTimeout(()=>t(),e)}catch(r){return LAST_FEATURE_FAILURES.set(e,r),logFeature("warn","Feature loader failed",{feature:e,error:r.message,code:r.code,networkIssue:isLikelyNetworkIssue(r)}),announceChunkSavings(e),null}}function getFeatureLoadFailure(e){return LAST_FEATURE_FAILURES.get(e)}function registerDefaultLoaders(){getAllChunkNames().forEach(t=>{featureLoaders.has(t)||registerFeatureLoader(t,createDefaultLoader(t))})}function createDefaultLoader(e){return async()=>{if(chunkResolver&&typeof chunkResolver=="function")try{let i=await runWithChunkTimeout(()=>chunkResolver(e),e);if(i)return i;logFeature("info","Chunk resolver returned no module",{chunkName:e})}catch(i){logResolverFailure(e,i)}let t=tryRequireDevChunk(e);if(t)return t;let r=tryRequireLocalBuiltChunk(e);if(r)return r;let n=tryLoadBuiltChunk(e);return n||(logFeature("warn","No built artifact available for chunk",{chunkName:e}),null)}}var featureFlags={async onboarding(){return getFeatureConfig().enableOnboarding?loadFeatureModule("onboarding"):(logFeatureDisabled("onboarding","onboarding"),null)},async exportReporting(){return getFeatureConfig().enableExportReporting?loadFeatureModule("reporting"):(logFeatureDisabled("exportReporting","exportReporting"),null)},async workspaceTemplates(){return getFeatureConfig().enableWorkspaceTemplates?loadFeatureModule("templates"):(logFeatureDisabled("workspaceTemplates","workspaceTemplates"),null)},async analysisCommands(){return getFeatureConfig().enableAnalysisCommands?loadFeatureModule("analysis"):(logFeatureDisabled("analysisCommands","analysisCommands"),null)},async advancedCache(){return getFeatureConfig().enableAdvancedCache?loadFeatureModule("advancedCache"):(logFeatureDisabled("advancedCache","advancedCache"),null)},async workspaceIntelligence(){return getFeatureConfig().enableWorkspaceIntelligence?loadFeatureModule("workspaceIntelligence"):(logFeatureDisabled("workspaceIntelligence","workspaceIntelligence"),null)},async incrementalWorkers(){return getFeatureConfig().enableIncrementalWorkers?loadFeatureModule("incrementalWorkers"):(logFeatureDisabled("incrementalWorkers","incrementalWorkers"),null)},async extensionApi(){return getFeatureConfig().enableExtensionApi?loadFeatureModule("extensionApi"):(logFeatureDisabled("extensionApi","extensionApi"),null)},async uiAdapters(){return loadFeatureModule("uiAdapters")},async batchProcessor(){return loadFeatureModule("batchProcessor")},async decorationsAdvanced(){return loadFeatureModule("decorationsAdvanced")},async decorationsProviderImpl(){return loadFeatureModule("decorationsProviderImpl")},async gitInsights(){return getFeatureConfig().enableGitInsights?loadFeatureModule("gitInsights"):(logFeatureDisabled("gitInsights","gitInsights"),null)},isEnabled(e){let t=getFeatureConfig();return{onboarding:t.enableOnboarding,exportReporting:t.enableExportReporting,workspaceTemplates:t.enableWorkspaceTemplates,analysisCommands:t.enableAnalysisCommands,advancedCache:t.enableAdvancedCache,workspaceIntelligence:t.enableWorkspaceIntelligence,incrementalWorkers:t.enableIncrementalWorkers,extensionApi:t.enableExtensionApi}[e]??!0},getEnabledFeatures(){let e=getFeatureConfig(),t=[];return e.enableOnboarding&&t.push("onboarding"),e.enableExportReporting&&t.push("exportReporting"),e.enableWorkspaceTemplates&&t.push("workspaceTemplates"),e.enableAnalysisCommands&&t.push("analysisCommands"),e.enableAdvancedCache&&t.push("advancedCache"),e.enableWorkspaceIntelligence&&t.push("workspaceIntelligence"),e.enableIncrementalWorkers&&t.push("incrementalWorkers"),e.enableExtensionApi&&t.push("extensionApi"),t},calculateSavings(){let e=getFeatureConfig(),t=0;return e.enableOnboarding||(t+=34),e.enableExportReporting||(t+=17),e.enableExtensionApi||(t+=15),e.enableWorkspaceTemplates||(t+=14),e.enableWorkspaceIntelligence||(t+=12),e.enableAnalysisCommands||(t+=8),e.enableAdvancedCache||(t+=5),t}};for(let[e,t]of Object.entries(CHUNK_METHOD_ALIASES))!featureFlags[e]&&typeof featureFlags[t]=="function"&&(featureFlags[e]=(...r)=>featureFlags[t](...r));function calculateSavings(e){e||(e=getFeatureConfig());let t=267,r=0;e.enableOnboarding||(r+=34),e.enableExportReporting||(r+=17),e.enableExtensionApi||(r+=15),e.enableWorkspaceTemplates||(r+=14),e.enableWorkspaceIntelligence||(r+=12),e.enableIncrementalWorkers||(r+=19),e.enableAnalysisCommands||(r+=8),e.enableAdvancedCache||(r+=5);let n=t-r,i=r>0?Math.round(r/t*100):0;return{baseSize:`${t}KB`,totalSavings:`${r}KB`,optimizedSize:`${n}KB`,percentage:i}}registerDefaultLoaders();var exportedFeatureFlags={...featureFlags,getFeatureConfig,calculateSavings,registerFeatureLoader,setFeatureChunkResolver,unregisterFeatureLoader,clearFeatureLoaders,loadFeatureModule,getFeatureLoadFailure,registerDefaultLoaders};registerFeatureFlagsGlobal(exportedFeatureFlags);module.exports=exportedFeatureFlags});var Er=E((exports,module)=>{var vscode=require("vscode"),getLogger=()=>{try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=dynamicRequire("./chunks/logger-chunk");if(e&&typeof e.getLogger=="function")return getLogger=e.getLogger,getLogger()}}catch{}try{return getLogger=q().getLogger,getLogger()}catch{return getLogger=()=>({debug:(()=>{})?.bind(console)||console.log,info:(()=>{}).bind(console),warn:(()=>{}).bind(console),error:(()=>{}).bind(console)}),getLogger()}},{fileSystem}=$e(),env=typeof process<"u"&&process.env?process.env:{},{formatFileSize}=Be(),getFileName=p=>{try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=null;try{e=dynamicRequire("../chunks/utils-shared-chunk")}catch{}try{e||(e=dynamicRequire("./chunks/utils-shared-chunk"))}catch{}try{e||(e=dynamicRequire("./chunks/path-utils-chunk"))}catch{}if(e&&typeof e.getFileName=="function")return getFileName=e.getFileName,getFileName(p)}}catch{}try{let t=String(p||"").replace(/\\/g,"/"),r=t.lastIndexOf("/");return r===-1?t:t.substring(r+1)}catch{return"unknown"}},getExtension=p=>{try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=null;try{e=dynamicRequire("../chunks/utils-shared-chunk")}catch{}try{e||(e=dynamicRequire("./chunks/utils-shared-chunk"))}catch{}try{e||(e=dynamicRequire("./chunks/path-utils-chunk"))}catch{}if(e&&typeof e.getExtension=="function")return getExtension=e.getExtension,getExtension(p)}}catch{}try{let e=String(p||""),t=e.lastIndexOf(".");return t<=0?"":e.substring(t).toLowerCase()}catch{return""}},buildCacheKey=p=>{try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=null;try{e=dynamicRequire("../chunks/utils-shared-chunk")}catch{}try{e||(e=dynamicRequire("./chunks/utils-shared-chunk"))}catch{}try{e||(e=dynamicRequire("./chunks/path-utils-chunk"))}catch{}if(e&&typeof e.getCacheKey=="function")return buildCacheKey=e.getCacheKey,buildCacheKey(p)}}catch{}return String(p||"").toLowerCase().replace(/\\/g,"/")},normalizePath=input=>{try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=null;try{e=dynamicRequire("../chunks/utils-shared-chunk")}catch{}try{e||(e=dynamicRequire("./chunks/utils-shared-chunk"))}catch{}try{e||(e=dynamicRequire("./chunks/path-utils-chunk"))}catch{}if(e&&typeof e.normalizePath=="function")return normalizePath=e.normalizePath,normalizePath(input)}}catch{}return String(input||"").replace(/\\/g,"/")},getUriPath=(target="")=>{try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=null;try{e=dynamicRequire("../chunks/utils-shared-chunk")}catch{}try{e||(e=dynamicRequire("./chunks/utils-shared-chunk"))}catch{}try{e||(e=dynamicRequire("./chunks/path-utils-chunk"))}catch{}if(e&&typeof e.getUriPath=="function")return getUriPath=e.getUriPath,getUriPath(target)}}catch{}if(!target)return"";if(typeof target=="string")return target;if(typeof target.fsPath=="string"&&target.fsPath.length>0)return target.fsPath;if(typeof target.path=="string"&&target.path.length>0)return target.path;if(typeof target.toString=="function")try{return target.toString(!0)}catch{return target.toString()}return String(target)},{DEFAULT_CACHE_TIMEOUT,DEFAULT_MAX_CACHE_SIZE,GLOBAL_STATE_KEYS,DEFAULT_DECORATION_POOL_SIZE,DEFAULT_FLYWEIGHT_CACHE_SIZE,WORKSPACE_SCALE_EXTREME_THRESHOLD}=I(),{isWebEnvironment}=J(),{getSettingsCoordinator}=Ve(),{SecurityValidator,SecureFileOperations,detectSecurityEnvironment}=Ze(),DISABLE_GIT_FEATURES=env.EXPLORER_DATES_DISABLE_GIT_FEATURES==="1",IS_WEB_ENV=isWebEnvironment()||env.VSCODE_WEB==="true",nodePath=null;try{IS_WEB_ENV||(nodePath=require("path"))}catch{nodePath=null}var pathCompat={basename:e=>{if(!e)return"";try{if(!IS_WEB_ENV)return require("path").basename(e)}catch{let t=e.replace(/\\/g,"/"),r=t.lastIndexOf("/");return r===-1?t:t.substring(r+1)}},dirname:e=>{if(!e)return".";try{if(!IS_WEB_ENV)return require("path").dirname(e)}catch{let t=e.replace(/\\/g,"/"),r=t.lastIndexOf("/");return r===-1?".":t.substring(0,r)}}};(async()=>{try{let t=await ge().decorationsStatic();t&&(t.basename&&t.dirname&&(pathCompat.basename=t.basename,pathCompat.dirname=t.dirname),t.describeFile&&(exports.Ke=t.describeFile))}catch{}})();var CONFIG_DEFAULT_CACHE_TIMEOUT=3e4,CACHE_NAMESPACE_SEPARATOR="::",DEFAULT_DYNAMIC_WATCHER_LIMIT=Number(env.EXPLORER_DATES_MAX_DYNAMIC_WATCHERS||200),DEFAULT_WATCHER_INACTIVITY_MS=Number(env.EXPLORER_DATES_WATCHER_TTL_MS||600*1e3),DEFAULT_SMART_WATCHER_EXTENSIONS=["js","ts","json","md","py","java"],SMART_WATCHER_PRIORITY=new Map([["src",100],["lib",65],["test",30]]),WORKSPACE_SCAN_TIMEOUT_MS=Number(env.EXPLORER_DATES_WORKSPACE_SCAN_TIMEOUT||7e3),WORKSPACE_SCAN_TIMEOUT_FALLBACK_COUNT=WORKSPACE_SCALE_EXTREME_THRESHOLD,VIEWPORT_DEFAULT_WINDOW_MS=300*1e3,DEFAULT_VIEWPORT_HISTORY_LIMIT=Number(env.EXPLORER_DATES_VIEWPORT_HISTORY_LIMIT||400),FEATURE_LEVELS=["full","enhanced","standard","minimal"],DEFAULT_INDEXER_MAX_FILES=Math.max(100,Number(env.EXPLORER_DATES_INDEXER_MAX_FILES||2e3)),SECURITY_EXTRA_PATHS_ENV="EXPLORER_DATES_SECURITY_EXTRA_PATHS",DEFAULT_SECURITY_THROTTLE_MS=Number(env.EXPLORER_DATES_SECURITY_WARNING_THROTTLE_MS||5e3),SECURITY_WARNING_CACHE_LIMIT=Number(env.EXPLORER_DATES_SECURITY_WARNING_CACHE||500),DEFAULT_SECURITY_MAX_WARNINGS=Number(env.EXPLORER_DATES_SECURITY_MAX_WARNINGS_PER_FILE??1),describeFile=(e="")=>{try{let t=typeof e=="string"?e:getUriPath(e),r=normalizePath(t);return getFileName(r)||r||"unknown"}catch{return"unknown"}};(async()=>{try{let t=await ge().decorationsStatic();t&&typeof t.describeFile=="function"&&(describeFile=t.describeFile)}catch{}})();var LazyHierarchicalDecorationCache=class{constructor(){this.n=new Map}get size(){return this.n.size}get bucketCount(){return 0}clear(){this.n.clear()}get(t){return this.n.get(t)}set(t,r){this.n.set(t,r)}delete(t){return this.n.delete(t)}*entries(){yield*this.n.entries()}*keys(){yield*this.n.keys()}*values(){yield*this.n.values()}[Symbol.iterator](){return this.entries()}enforceLimit(){return 0}},FileDateDecorationProviderImpl=class{constructor(...args){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=dynamicRequire("./chunks/file-date-provider-impl");if(e&&typeof e.FileDateDecorationProviderImpl=="function")return new e.FileDateDecorationProviderImpl(...args);if(e&&typeof e.FileDateDecorationProvider=="function")return new e.FileDateDecorationProvider(...args)}}catch(e){}throw new Error("FileDateDecorationProvider implementation is not available in this environment")}},FileDateDecorationProvider=class{constructor(...args){let loaderError=null;try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function")try{let e=null;try{e=dynamicRequire("./chunks/file-date-provider-impl-export")}catch{}if(e){let r=e.FileDateDecorationProvider||e.FileDateDecorationProviderImpl||e.default;return typeof r=="function"?new r(...args):new FileDateDecorationProviderImpl(...args)}e=dynamicRequire("./chunks/file-date-provider-impl");let t=e&&(e.FileDateDecorationProvider||e.FileDateDecorationProviderImpl||e.default);if(typeof t=="function")return new t(...args)}catch(e){loaderError=e}try{let e=null;try{e=require.resolve("./chunks/file-date-provider-impl-export",{paths:[__dirname]})}catch{}e||(e=require.resolve("./chunks/file-date-provider-impl",{paths:[__dirname]}));let t=require(e),r=t&&(t.FileDateDecorationProvider||t.FileDateDecorationProviderImpl||t.default);if(e&&e.endsWith("file-date-provider-impl-export.js")&&!r)return new FileDateDecorationProviderImpl(...args);if(typeof r=="function")return new r(...args)}catch(e){loaderError=loaderError||e}}catch(e){loaderError=loaderError||e}if(loaderError&&loaderError.message){let e=`FileDateDecorationProvider implementation is unavailable: ${loaderError.message}`;throw new Error(e)}throw new Error("FileDateDecorationProvider implementation is unavailable")}};module.exports={FileDateDecorationProvider,FileDateDecorationProviderImpl}});var _r=E((exports,module)=>{try{require("vscode")}catch{}var env=typeof process<"u"&&process.env?process.env:{},diagLog=null,isWebDiagnosticsEnabled=()=>!1;try{let e=he();e&&(diagLog=e.diagLog,isWebDiagnosticsEnabled=e.isWebDiagnosticsEnabled||(()=>!1))}catch{}function isWebRuntime(){try{let{isWebEnvironment:e}=J();return e()}catch{return env.VSCODE_WEB==="true"}}function getWebChunkRegistry(){try{let{WEB_CHUNK_GLOBAL_KEY:e,LEGACY_WEB_CHUNK_GLOBAL_KEY:t}=I();if(typeof globalThis<"u")return globalThis[e]||globalThis[t]||null}catch{}return typeof globalThis<"u"&&(globalThis.explorerDatesChunks||globalThis.nn)||null}function resolveProviderModuleFromWebRegistry(){let e=getWebChunkRegistry();if(!e)return null;let t=[e.fileDateProviderImplExport,e.fileDateProviderImpl,e.fileDateProviderImplExport,e.fileDateProviderImpl,e["file-date-provider-impl-export"],e["file-date-provider-impl"]].filter(Boolean);return t.length>0?t[0]:null}function normalizeModuleExports(e){if(!e)return null;let t=e&&typeof e=="object"?e:{default:e},r=t&&typeof t=="object"&&t.default?t.default:null;return r&&typeof r=="object"?{...t,...r}:t}async function hydrateProviderOptionalSystems(e){try{try{let r=(await Promise.resolve().then(()=>R(at()))).getLocalization();e.p.getString=(...i)=>r.getString(...i),e.p.formatDate=(...i)=>r.formatDate(...i),e.p.getCurrentLocale=()=>r.getCurrentLocale();let n=e.p.dispose;e.p.dispose=()=>{try{r.dispose()}catch{}n()}}catch(t){e._logger?.debug("provider-init: localization hydrate failed",t)}try{let t=await Promise.resolve().then(()=>R(ot()));t&&typeof t.createDecorationLogic=="function"&&(e.yt=t.createDecorationLogic(e))}catch(t){e._logger?.debug("provider-init: preload decoration logic failed",t)}try{let t=await Promise.resolve().then(()=>R(Ce())),r=t&&(typeof t.createDecorationProviderHelpers=="function"?t.createDecorationProviderHelpers(e):t);e.hr=r}catch(t){e._logger?.debug("provider-init: preload decoration provider helpers failed",t)}try{let t=await e.Z();t&&typeof t.initializeAdvancedSystems=="function"&&await t.initializeAdvancedSystems(e)}catch(t){e._logger?.debug("provider-init: initializeAdvancedSystems failed",t)}try{let t=st();t&&typeof t.scheduleTelemetryReport=="function"&&e._allocationTelemetryEnabled&&t.scheduleTelemetryReport(e)}catch(t){e._logger?.debug("provider-init: scheduling telemetry failed",t)}}catch(t){try{e._logger?.debug("provider-init: hydration failed",t)}catch{}}}function createFileDateDecorationProvider(context){try{let ProviderClass=null,webRuntime=isWebRuntime();if(webRuntime){let e=getWebChunkRegistry(),t=[e?.fileDateProviderImplExport,e?.fileDateProviderImpl,e?.fileDateProviderImplExport,e?.fileDateProviderImpl,e?.["file-date-provider-impl-export"],e?.["file-date-provider-impl"]].filter(Boolean),r=t[0]||resolveProviderModuleFromWebRegistry();!e&&isWebDiagnosticsEnabled()?diagLog?.("warn","Provider registry missing in web runtime"):!r&&isWebDiagnosticsEnabled()&&diagLog?.("warn","Provider module missing from web registry",{hasRegistry:!!e,availableKeys:Object.keys(e||{}),candidateCount:t.length});let n=null;for(let i of t){let a=normalizeModuleExports(i),o=a&&(a.FileDateDecorationProvider||a.FileDateDecorationProviderImpl||a.default);if(o){n=o;break}isWebDiagnosticsEnabled()&&diagLog?.("warn","Provider exports missing expected class",{availableExportKeys:Object.keys(a||{})})}ProviderClass=n,!ProviderClass&&isWebDiagnosticsEnabled()&&t.length>0&&diagLog?.("warn","Provider class unresolved from registry entries",{candidateCount:t.length,availableRegistryKeys:Object.keys(e||{})})}try{if(!webRuntime){let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=null;try{e=dynamicRequire("./fileDateProviderImplExport")}catch{}if(!e)try{e=dynamicRequire("./fileDateProviderImpl")}catch{}ProviderClass=e&&(e.FileDateDecorationProvider||e.FileDateDecorationProviderImpl||e.default)}}}catch{}if(!ProviderClass&&!webRuntime){let{FileDateDecorationProvider:e}=Er();ProviderClass=e}if(!ProviderClass)return isWebDiagnosticsEnabled()&&diagLog?.("warn","Provider class unavailable",{webRuntime,registryKeys:Object.keys(getWebChunkRegistry()||{})}),null;let provider=new ProviderClass;return isWebDiagnosticsEnabled()&&diagLog?.("info","Provider class resolved",{className:ProviderClass?.name||"unknown"}),(async()=>{try{await provider.initializeAdvancedSystems(context)}catch(e){provider._logger?.debug("provider-init: provider factory init failed",e)}})(),{createFileDateDecorationProvider:()=>provider}}catch{return null}}module.exports={hydrateProviderOptionalSystems,createFileDateDecorationProvider}});var Tr=E((Ia,Sr)=>{var O=require("vscode"),{getLogger:Ii}=q(),{WORKSPACE_SCALE_BALANCED_THRESHOLD:wr,WORKSPACE_SCALE_LARGE_THRESHOLD:ve,WORKSPACE_SCALE_EXTREME_THRESHOLD:kr,WORKSPACE_SCAN_MAX_RESULTS:Dr}=I(),ct=Ii(),Te=null;function Cr(e){return e&&(e.fsPath||e.path)||null}function lt(e,t){let r=Cr(e);!r||typeof t!="number"||(Te={workspaceKey:r,fileCount:t,timestamp:Date.now()})}function ut(e){let t=Cr(e);return!t||!Te||Te.workspaceKey!==t?null:Te}function Wi(e,t="default"){if(!e)return`unknown-workspace-${t}`;let r=e.fsPath||e.path||"",n=r.split("/").pop()||"workspace",i=Math.abs(r.split("").reduce((o,s)=>(o=(o<<5)-o+s.charCodeAt(0),o&o),0)).toString(36).substr(0,8),a=Math.abs(t.split("").reduce((o,s)=>(o=(o<<5)-o+s.charCodeAt(0),o&o),0)).toString(36).substr(0,4);return`${n}-${i}-${a}`}async function Li(e){try{if(!e)return"unknown";let t=ut(e),r;t?r=t.fileCount:(r=(await O.workspace.findFiles("**/*",null,Dr)).length,lt(e,r));let n="small";r>=kr?n="extreme":r>=ve?n="large":r>=1e3&&(n="medium");let i=O.env.remoteName,a=O.env.uiKind===O.UIKind.Web,o=n==="medium"&&r>=wr&&ru.toLowerCase());if(c.includes("package.json")||c.includes("yarn.lock"))return"web-development";if(c.some(u=>u.endsWith(".ipynb"))||c.includes("requirements.txt"))return"data-science";if(c.includes("docker-compose.yml")||c.includes(".enterprise"))return"enterprise"}catch(s){ct.debug("Project type detection failed:",s)}return"full"}catch(t){return ct.error("Workspace profile detection failed:",t),"unknown"}}async function Oi(e){if(!e)return null;try{let t=ut(e),r;t?r=t.fileCount:(r=(await O.workspace.findFiles("**/*",null,Dr)).length,lt(e,r));let n="small";r>=kr?n="extreme":r>=ve?n="large":r>=1e3&&(n="medium");let i=!!O.env.remoteName,a=O.env.uiKind===O.UIKind.Web,o=a?"web":i?"remote":"local",s=n==="medium"&&r>=wr&&r{var vscode=require("vscode"),getFileName,getExtension,normalizePath,getUriPath,ensureDate;try{let e=K();e&&(getFileName=e.getFileName,getExtension=e.getExtension,normalizePath=e.normalizePath,getUriPath=e.getUriPath,ensureDate=e.ensureDate)}catch{}if(!getFileName||!ensureDate){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function")try{let e=dynamicRequire("../utils/pathUtils"),t=dynamicRequire("../utils/dateHelpers");getFileName=getFileName||e.getFileName,getExtension=getExtension||e.getExtension,normalizePath=normalizePath||e.normalizePath,getUriPath=getUriPath||e.getUriPath,ensureDate=ensureDate||t.ensureDate}catch{}}catch{}getFileName||(getFileName=e=>{let t=String(e||""),r=t.replace(/\\/g,"/").lastIndexOf("/");return r===-1?t:t.substring(r+1)}),getExtension||(getExtension=e=>{let t=String(e||""),r=t.lastIndexOf(".");return r<=0?"":t.substring(r).toLowerCase()}),normalizePath||(normalizePath=(e="")=>(e||"").toString().replace(/\\/g,"/")),getUriPath||(getUriPath=(e="")=>e?typeof e=="string"?e:e?.fsPath?e.fsPath:e?.path?e.path:String(e):""),ensureDate||(ensureDate=e=>e instanceof Date?e:typeof e=="number"?new Date(e):typeof e=="string"?isNaN(Date.parse(e))?new Date:new Date(Date.parse(e)):new Date)}var SMART_WATCHER_PRIORITY=new Map([["src",100],["lib",65],["test",30]]);async function performWorkspaceSizeCheck(e){let t=vscode.workspace.getConfiguration("explorerDates"),r=t.get("forceEnableForLargeWorkspaces",!1),n=t.get("performanceMode",!1),i=r||n,a=vscode.workspace.workspaceFolders;if(!a||a.length===0)return;e._logger.info("Checking workspace size for large workspace detection...");let o=await e.an(e._getIndexerMaxFiles()),s=!Array.isArray(o),c=s?e.WORKSPACE_SCAN_TIMEOUT_FALLBACK_COUNT:o.length;if(s){let l=e.WORKSPACE_SCAN_TIMEOUT_MS?`${e.WORKSPACE_SCAN_TIMEOUT_MS}ms`:"the configured timeout";e._logger.warn(`Workspace scan exceeded ${l}; defaulting to extreme scale`)}else{let l=`${e.WORKSPACE_SCALE_LARGE_THRESHOLD}+`;e._logger.info(`Workspace contains ${c>=e.WORKSPACE_SCALE_LARGE_THRESHOLD?l:c} files`)}let u=e.u;e.Ge=c,e.u=c>=e.WORKSPACE_SCALE_EXTREME_THRESHOLD?"extreme":c>=e.WORKSPACE_SCALE_LARGE_THRESHOLD?"large":"normal";try{let l=a[0]?.uri;Tr().setCachedWorkspaceMetrics(l,c)}catch(l){e._logger.debug("Unable to cache workspace file count",l)}u!==e.u&&e.J&&!e._performanceMode&&(e._logger.info(`Workspace scale changed ${u} -> ${e.u}; recalibrating watchers`),e.Q("workspace-scale-update")),e._batchProcessor&&typeof e._batchProcessor.setWorkspaceScale=="function"&&e._batchProcessor.setWorkspaceScale(e.u||"normal"),e.Xe(e.Ye(vscode.workspace.getConfiguration("explorerDates")),"workspace-scale-change"),i&&e._logger.debug("Large workspace prompt suppressed (force/performance mode), but scaling adjustments applied")}async function findWorkspaceFilesWithTimeout(e,t){let r=Number.isFinite(e.WORKSPACE_SCAN_TIMEOUT_MS)?e.WORKSPACE_SCAN_TIMEOUT_MS:0,n=vscode.workspace.findFiles("**/*",null,t);if(!r||r<=0)return n;try{return await new Promise((i,a)=>{let o=null,s=(c,u=!1)=>{o&&(clearTimeout(o),o=null),u?a(c):i(c)};o=setTimeout(()=>s(null),r),n.then(c=>s(c),c=>s(c,!0))})}catch(i){return e._logger.warn("Workspace scan failed, assuming large workspace",{error:i?.message||String(i)}),null}}async function _buildSmartWatcherTargets(e,t,r){let n=[],i=Math.max(1,r.maxPatterns),a=i,o=t.length;for(let s of t){if(a<=0)break;let c=Math.max(1,Math.floor(a/o)),u=new vscode.RelativePattern(s,"*.{md,mdx,json,jsonc,yml,yaml,ts,tsx,js,jsx}");if(n.push({pattern:u,label:`root:${s.name}`}),a-=1,a<=0)break;let l=Math.min(Math.max(c-1,0),a);if(l>0)try{let d=typeof e._fileSystem?.readdir=="function"?await e._fileSystem.readdir(s.uri||s.fsPath||s):[],h=(Array.isArray(d)?d:[]).filter(m=>m&&(typeof m.isDirectory=="function"?m.isDirectory():!0)).map(m=>typeof m=="string"?m:m.name||"").filter(Boolean).filter(m=>!["node_modules",".git","dist","build","out"].includes(m));e._logger?.debug&&e._logger.debug("smart-watcher: top-level dirs",{folder:s.name,dirs:h}),h.sort((m,D)=>(SMART_WATCHER_PRIORITY.get(D)||0)-(SMART_WATCHER_PRIORITY.get(m)||0));let y=h.slice(0,l).map(m=>({pattern:new vscode.RelativePattern(s,`${m}/**/*.{md,mdx,json,jsonc,yml,yaml,ts,tsx,js,jsx}`),label:`sub:${s.name}/${m}`})).slice(0,l);n.push(...y),a-=y.length}catch{}o-=1}return n.slice(0,i)}function _addExclusionValueToSet(e,t,r={}){if(!t)return;let{onlyRootSegment:n=!1}=r,i=typeof t=="string"?t:typeof t?.toString=="function"?t.toString():"";if(!i||typeof i!="string")return;let a=i.trim();if(!a)return;let s=a.replace(/\\/g,"/").replace(/\*\*/g,"").replace(/\*/g,"").split("/").map(c=>c.trim()).filter(Boolean);if(!s.length){if(a.includes("*")||a.includes("?"))return;e.add(a.toLowerCase());return}if(n){e.add(s[0].toLowerCase());return}for(let c of s)e.add(c.toLowerCase())}function registerWatcherHandlers(e,t,r="unknown"){t&&(t.onDidChange(n=>e.W(n,"change",r)),t.onDidCreate(n=>e.W(n,"create",r)),t.onDidDelete(n=>e.W(n,"delete",r)))}function dispatchWatcherEvent(e,t,r,n="unknown"){r==="delete"?e.clearDecoration(t):e.refreshDecoration(t),e._workspaceIntelligence?.incrementalIndexer&&e._workspaceIntelligence.incrementalIndexer.queueDelta(t,r),e.Ze&&e._logger.debug(`Watcher event processed (${r}) for ${e.describeFile(t)} via ${n}`)}module.exports={performWorkspaceSizeCheck,findWorkspaceFilesWithTimeout,K:_buildSmartWatcherTargets,on:_addExclusionValueToSet,registerWatcherHandlers,dispatchWatcherEvent}});var dt=E((exports,module)=>{var vscode=require("vscode"),{DEFAULT_DYNAMIC_WATCHER_LIMIT,DEFAULT_WATCHER_INACTIVITY_MS}=I(),proc=typeof process<"u"?process:null,env=proc?.env||{},normalizePath,getUriPath;try{let e=K();e&&(normalizePath=e.normalizePath,getUriPath=e.getUriPath)}catch{}if(!normalizePath){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function")try{let e=dynamicRequire("../utils/pathUtils");normalizePath=normalizePath||e.normalizePath,getUriPath=getUriPath||e.getUriPath}catch{}}catch(e){}normalizePath||(normalizePath=(e="")=>(e||"").toString().replace(/\\/g,"/")),getUriPath||(getUriPath=(e="")=>e?typeof e=="string"?e:e?.fsPath?e.fsPath:e?.path?e.path:String(e):"")}var{getLogger}=q(),nodePath=null;try{nodePath=require("path")}catch{}var WatcherManager=class{constructor(t){this.t=t,this._logger=t._logger||getLogger(),this.s=new Set,this.h=void 0,this.T=[],this.d=new Map,this.L=null,this._=t._||new Map,this._smartWatcherFallbackManager=t._smartWatcherFallbackManager||null,this.ee=null,this.j="none"}setupFileWatcher(t="initial"){if(this.t._performanceMode||this.t.D){let i=this.t.D?"provider disposed":"performance mode enabled";this._logger.debug(`Skipping file watcher setup (${t}) - ${i}`);return}this.h||(this.h={pending:!0});let r=++this.t.Je;(async()=>{if(this.ee)try{await this.ee}catch(a){this._logger.debug("Previous watcher setup promise rejected",a)}let i=this.Fe(r,t);this.ee=i;try{await i}finally{this.ee===i&&(this.ee=null)}})().catch(i=>this._logger.error("Failed to configure file watchers",i))}async Fe(t,r){if(this.Ae(t))return;if(this.disposeFileWatchers({permanent:!1}),this.Ae(t))return this.Qe("post-dispose");this.h={pending:!0};let n=vscode.workspace.workspaceFolders;if(!n||n.length===0){this._logger.debug("No workspace folders detected; skipping watcher setup"),this.j="none";return}if(this.t._isWeb){this._logger.info("File watchers are unavailable in web environments; skipping watcher setup"),this.j="none";return}let i=vscode.workspace.getConfiguration("explorerDates"),a=env.EXPLORER_DATES_DISABLE_SMART_WATCHERS==="1";this.t.J=!a&&i.get("smartFileWatching",!0),this.t._enableWatcherFallbacks=this.t.J&&i.get("enableSmartWatcherFallbacks","auto");let o=i.get("smartWatcherMaxPatterns",20),s=this.t.dr(i.get("smartWatcherExtensions",[])),c=this.t.gr(o);if(this.t.bt={maxPatterns:c,extensions:s},this.Ae(t))return this.Qe("post-config");if(!this.t.J){this._logger.info("Smart file watching disabled; falling back to global watcher"),await this.Pe("disabled");return}let u=[];try{if(typeof this.t.K=="function")u=await this.t.K(n,this.t.bt);else try{let l=ht();if(l&&typeof l.K=="function")u=await l.K(this.t,n,this.t.bt);else throw new Error("_buildSmartWatcherTargets not implemented on provider or helper")}catch(l){throw l}}catch(l){this._logger.error("Smart watcher analysis failed, falling back to global watcher",l),await this.Pe("analysis-failed");return}if(this.Ae(t))return this.Qe("post-analysis");if(!u||u.length===0){this._logger.warn("Smart watcher analysis yielded no targets; falling back to global watcher"),await this.Pe("no-targets");return}for(let l of u)try{let d=await this.Et(l.pattern,l.label);d&&(this.he(d,l.label),this.s.add(d))}catch(d){this._logger.debug(`Failed to create watcher for pattern ${l.label}`,d)}if(this.s.size===0){this._logger.warn("Smart watcher setup produced zero watchers; using global fallback"),await this.Pe("no-watchers-created");return}this.h=this.s.values().next().value||void 0,this.j="smart",this._logger.info(`Smart file watching enabled (${this.s.size} base watcher${this.s.size===1?"":"s"})`,{reason:r,patterns:u.map(l=>l.label)}),this.mr()}Ae(t){return!!(this.t.D||this.t._performanceMode||typeof t=="number"&&t!==this.t.Je)}Qe(t="unknown"){let r=this.t._performanceMode||this.t.D;this.disposeFileWatchers({permanent:r}),this._logger.debug(`Watcher setup aborted (${t})`,{permanentAbort:r,disposed:this.t.D,performanceMode:this.t._performanceMode})}async Z(){try{let{getFeatureFlagsGlobal:t}=G(),r=t();return(r?await r.decorationsAdvanced():null)||null}catch(t){return this._logger.debug("Failed to load decorationsAdvanced chunk",t),null}}async Et(t,r="unknown"){try{let i=await this.Z();if(i?.createWatcherWithFallback)return await i.createWatcherWithFallback(this.t,t,r)}catch(i){this._logger.debug(`Advanced watcher chunk failed for ${r}`,i)}let n=()=>{let i=this.t._enableWatcherFallbacks;if(i===!1)return!1;if(i==="auto"||i===!0){let a=proc?.platform,o=env.WSL_DISTRO_NAME||env.WSLENV,s=vscode.env.remoteName,c=env.DOCKER_CONTAINER;return o||s||c||a==="android"}return!1};try{let i=vscode.workspace.createFileSystemWatcher(t);return this._logger.debug(`Native watcher created for ${r}`),i}catch(i){return this._logger.debug(`Native watcher failed for ${r}:`,i),n()?this.pr(t,r):null}}async pr(t,r){try{let n=await this.Z();if(n?.createFallbackWatcher)return await n.createFallbackWatcher(this.t,t,r)}catch(n){this._logger.warn(`Fallback watcher creation failed for ${r}:`,n)}try{if(!this._smartWatcherFallbackManager){let{getFeatureFlagsGlobal:n}=G(),i=n(),a=i?await i.loadFeatureModule("smartWatcherFallback"):null;if(a){let{SmartWatcherFallbackManager:o}=a;this._smartWatcherFallbackManager=new o({logger:this._logger}),await this._smartWatcherFallbackManager.initialize()}}if(this._smartWatcherFallbackManager){let i=await(await this._smartWatcherFallbackManager.getFallback()).createWatcherWithFallback(t);return this._logger.debug(`Fallback watcher created for ${r}`),i}}catch(n){this._logger.warn(`Fallback watcher creation failed for ${r}:`,n)}return null}async Pe(t="global-default"){this._t();let r=await this.Et("**/*",`global:${t}`);r?(this.he(r,`global:${t}`),this.s.add(r),this.h=r,this.j="global",this._logger.info(`Global watcher activated (${t})`)):this._logger.error(`Failed to create global watcher (${t})`)}he(t,r="unknown"){t&&(t.onDidChange(n=>this.W(n,"change",r)),t.onDidCreate(n=>this.W(n,"create",r)),t.onDidDelete(n=>this.W(n,"delete",r)))}W(t,r,n="unknown"){if(!t||t.scheme!=="file"||!this.t.je(t,`watcher:${r}`)?.isValid)return;let a=this.yr();if(a<=0){this.xe(t,r,n);return}let o=`${t.toString()}:${r}`,s=this._.get(o);s&&clearTimeout(s.timer);let c=setTimeout(()=>{this._.delete(o),this.xe(t,r,n)},a);this._.set(o,{timer:c,source:n})}xe(t,r,n){try{this.t.Me?.(t)}catch{}r==="delete"?this.t.clearDecoration(t):this.t.refreshDecoration(t),this.t._workspaceIntelligence?.incrementalIndexer&&this.t._workspaceIntelligence.incrementalIndexer.queueDelta(t,r),this.t.Ze&&this._logger.debug(`Watcher event processed (${r}) for ${this.t.Ke(t)} via ${n}`)}yr(){if(this.t._performanceMode)return 0;switch(this.t.u){case"extreme":return 600;case"large":return 250;default:return 100}}handleWorkspaceFoldersChanged(t){let r=(t?.added||[]).map(a=>a.uri).filter(Boolean),n=(t?.removed||[]).map(a=>a.uri).filter(Boolean);if(r.length===0&&n.length===0)return;let i=async()=>{this._logger.info("Workspace folders changed",{added:r.length,removed:n.length}),await this.t.checkWorkspaceSize();try{this.t.clearAllCaches()}catch{}try{this.t.refreshAll()}catch{}if(!this.t._performanceMode&&(this.setupFileWatcher("workspace-change"),await this.t.wt().catch(a=>this._logger.debug("Failed to reconfigure progressive loading after workspace change",a)),this.t._workspaceIntelligence)){let a=(vscode.workspace.workspaceFolders||[]).map(o=>({uri:o.uri}));await this.t._workspaceIntelligence.onWorkspaceFoldersChanged({added:a,removed:n.map(o=>({uri:o}))})}};this.t.C&&clearTimeout(this.t.C),this.t.C=setTimeout(()=>{this.t.C=null,i().catch(a=>this._logger.debug("Workspace folder change handling failed",a))},250)}disposeFileWatchers(t={}){let r=t.permanent===!0;if(this.s?.size){for(let n of this.s)try{n.dispose()}catch(i){this._logger.debug("Failed to dispose file watcher",i)}this.s.clear()}this.h=r?null:void 0,this._t(),this.kt(!0),this.br(),this.j="none"}br(){if(this._?.size){for(let t of this._.values())clearTimeout(t.timer);this._.clear()}}mr(){if(!this.t.J||this.T.length>0)return;let t=(n,i)=>{let a=this.t.fe(vscode.window,n,i);a&&this.T.push(a)},r=(n,i)=>{let a=this.t.fe(vscode.workspace,n,i);a&&this.T.push(a)};t("onDidChangeVisibleTextEditors",n=>{(n||[]).forEach(i=>this.ge(i?.document?.uri,"visible-editor"))}),t("onDidChangeActiveTextEditor",n=>{this.ge(n?.document?.uri,"active-editor")}),r("onDidOpenTextDocument",n=>{this.ge(n?.uri,"open-document")}),r("onDidSaveTextDocument",n=>{this.ge(n?.uri,"save-document")}),this.Er(),this._r()}_t(){if(this.T?.length){for(let t of this.T)try{t.dispose()}catch(r){this._logger.debug("Failed to dispose watcher listener",r)}this.T=[]}this.Dt()}sn(){if(this._smartWatcherFallbackManager){try{this._smartWatcherFallbackManager.dispose()}catch(t){this._logger.debug("Error disposing smart watcher fallback manager:",t)}this._smartWatcherFallbackManager=null}}Er(){(Array.isArray(vscode.window?.visibleTextEditors)?vscode.window.visibleTextEditors:[]).forEach(r=>this.ge(r?.document?.uri,"visible-seed"))}_r(){this.L||(this.L=setInterval(()=>this.kt(),DEFAULT_WATCHER_INACTIVITY_MS))}Dt(){this.L&&(clearInterval(this.L),this.L=null)}kt(t=!1){if(!this.d?.size)return;let r=Date.now()-DEFAULT_WATCHER_INACTIVITY_MS;for(let[n,i]of this.d.entries())if(t||i.lastUsed=DEFAULT_DYNAMIC_WATCHER_LIMIT&&this.wr();try{let o=new vscode.RelativePattern(i,"**/*"),s=vscode.workspace.createFileSystemWatcher(o),c=nodePath.basename(i)||"root";this.he(s,`dynamic:${r}:${c}`),this.d.set(i,{watcher:s,lastUsed:Date.now(),source:r})}catch(o){this._logger.debug(`Failed to create dynamic watcher for ${i}`,o)}}wr(){let t=null,r=Number.POSITIVE_INFINITY;for(let[n,i]of this.d.entries())i.lastUsed{function createViewportManager(provider){let vscode=require("vscode"),normalizePath,getUriPath;try{let e=K();e&&(normalizePath=e.normalizePath,getUriPath=e.getUriPath)}catch{}if(!normalizePath){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function")try{let e=dynamicRequire("../utils/pathUtils");normalizePath=normalizePath||e.normalizePath,getUriPath=getUriPath||e.getUriPath}catch{}}catch{}normalizePath||(normalizePath=(e="")=>(e||"").toString().replace(/\\/g,"/")),getUriPath||(getUriPath=(e="")=>e?typeof e=="string"?e:e?.fsPath?e.fsPath:e?.path?e.path:String(e):"")}class ViewportManager{constructor(){this.t=provider,this.k=new Set,this.y=new Map,this.v=[],this.me=provider.me||400,this.O=provider.O||300*1e3,this.et=Date.now()}cn(){if(this.v.length>0)return;let t=(n,i)=>{let a=this.fe(vscode.window,n,i);a&&this.v.push(a)},r=(n,i)=>{let a=this.fe(vscode.workspace,n,i);a&&this.v.push(a)};t("onDidChangeVisibleTextEditors",n=>this.Ct(n)),t("onDidChangeActiveTextEditor",n=>this.Y(n?.document?.uri,{reason:"active-editor"})),r("onDidOpenTextDocument",n=>this.Y(n?.uri,{reason:"open-document"})),r("onDidSaveTextDocument",n=>this.Y(n?.uri,{reason:"save-document"})),this.Ct(Array.isArray(vscode.window?.visibleTextEditors)?vscode.window.visibleTextEditors:[]),vscode.window?.activeTextEditor?.document?.uri&&this.Y(vscode.window.activeTextEditor.document.uri,{reason:"initial-active"})}kr(){if(this.v?.length){for(let t of this.v)try{t.dispose()}catch(r){this.t._logger.debug("Failed to dispose viewport listener",r)}this.v=[],this.k.clear(),this.y.clear()}}Ct(t){if(this.k.clear(),!Array.isArray(t))return;let r=Date.now();for(let n of t){let i=n?.document?.uri;if(!i||i.scheme!=="file")continue;let a=normalizePath(getUriPath(i));a&&(this.k.add(a),this.y.set(a,r))}this.tt()}Y(t,r={}){if(!t||t.scheme!=="file")return;let n=normalizePath(getUriPath(t));if(!n)return;let i=Date.now();this.y.set(n,i),r.visible&&this.k.add(n),this.y.size>this.me?this.tt(!0):i-this.et>this.O&&this.tt()}tt(t=!1){let r=Date.now(),n=r-this.O*2;for(let[i,a]of this.y.entries())(t||athis.me&&a{var getFileName,normalizePath,getUriPath;try{let e=K();e&&(getFileName=e.getFileName,normalizePath=e.normalizePath,getUriPath=e.getUriPath)}catch{}if(!getFileName){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function")try{let e=dynamicRequire("../utils/pathUtils");getFileName=getFileName||e.getFileName,normalizePath=normalizePath||e.normalizePath,getUriPath=getUriPath||e.getUriPath}catch{}}catch{}getFileName||(getFileName=e=>{let t=String(e||""),r=t.replace(/\\/g,"/").lastIndexOf("/");return r===-1?t:t.substring(r+1)}),normalizePath||(normalizePath=(e="")=>(e||"").toString().replace(/\\/g,"/")),getUriPath||(getUriPath=(e="")=>e?typeof e=="string"?e:e?.fsPath?e.fsPath:e?.path?e.path:String(e):"")}var VIEWPORT_DEFAULT_WINDOW_MS=300*1e3,VIEWPORT_STANDARD_WINDOW_MS=600*1e3,VIEWPORT_MINIMAL_WINDOW_MS=900*1e3,DEFAULT_SMART_WATCHER_EXTENSIONS=["ts","tsx","js","jsx","mjs","cjs","mts","cts","vue","py","go","rb","rs","java","kt","swift","cs","cpp","c","php","scala","sql","md","mdx","json","jsonc","yml","yaml","toml","ini","txt","html","css","scss"],SMART_WATCHER_PRIORITY=new Map([["src",100],["app",95],["apps",95],["packages",90],["services",85],["service",80],["client",75],["clients",70],["server",70],["servers",65],["lib",65],["libs",60],["api",60],["apis",60],["components",55],["modules",55],["feature",50],["features",50],["extensions",45],["scripts",45],["tools",45],["examples",40],["docs",35],["config",35],["test",30],["tests",30],["spec",30],["specs",30],["demo",25],["demos",25]]);function basename(e){if(!e)return"";try{return require("path").basename(e)}catch{let t=e.replace(/\\/g,"/"),r=t.lastIndexOf("/");return r===-1?t:t.substring(r+1)}}function dirname(e){if(!e)return".";try{return require("path").dirname(e)}catch{let t=e.replace(/\\/g,"/"),r=t.lastIndexOf("/");return r===-1?".":t.substring(0,r)}}function describeFile(e=""){try{let t=typeof e=="string"?e:getUriPath(e),r=normalizePath(t);return getFileName(r)||r||"unknown"}catch{return"unknown"}}function getNormalizedPathsFromEditors(e){let t=Date.now();if(!Array.isArray(e))return[];let r=[];for(let n of e){let i=n?.document?.uri;if(!i||i.scheme!=="file")continue;let a=normalizePath(getUriPath(i));a&&r.push({path:a,ts:t})}return r}function keysToTrimViewportHistory(e,t,r,n=!1,i=Date.now()){let a=i-t*2,o=[];for(let[s,c]of e)(n||cr&&c({value:d,key:h?`badge:${t||"default"}:${h}`:null});switch(t){case"relative-short":case"relative-long":return a<1?l("\u25CF\u25CF","just"):a<60?l(`${Math.min(a,99)}m`,`m:${Math.min(a,99)}`):o<24?l(`${Math.min(o,23)}h`,`h:${Math.min(o,23)}`):s<7?l(`${s}d`,`d:${s}`):c<4?l(`${c}w`,`w:${c}`):u<12?l(`${u}M`,`M:${u}`):l("1y","y:1");case"absolute-short":case"absolute-long":{let d=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],h=e instanceof Date?e.getDate():new Date(e).getDate(),g=`${d[e instanceof Date?e.getMonth():new Date(e).getMonth()]}${h<10?"0"+h:h}`,y=`abs:${e instanceof Date?e.getMonth():new Date(e).getMonth()}-${h}`;return l(g,y)}case"technical":return a<60?l(`${a}m`,`tech:m:${a}`):o<24?l(`${o}h`,`tech:h:${o}`):l(`${s}d`,`tech:d:${s}`);case"minimal":return o<1?l("\u2022\u2022","min:now"):o<24?l("\u25CB\u25CB","min:hours"):l("\u2500\u2500","min:days");default:return a<60?l(`${a}m`,`smart:m:${a}`):o<24?l(`${o}h`,`smart:h:${o}`):l(`${s}d`,`smart:d:${s}`)}}module.exports={VIEWPORT_DEFAULT_WINDOW_MS,VIEWPORT_STANDARD_WINDOW_MS,VIEWPORT_MINIMAL_WINDOW_MS,DEFAULT_SMART_WATCHER_EXTENSIONS,SMART_WATCHER_PRIORITY,FILE_TYPE_COLOR_MAP,COLOR_ENHANCEMENT_MAP,getFileTypeColorMap,getColorEnhancementMap,getNormalizedPathsFromEditors,keysToTrimViewportHistory,computeReadableDescriptor,formatDateBadge,basename,dirname,describeFile}});var Ar=E((exports,module)=>{var vscode=null;try{vscode=require("vscode")}catch{}var proc=typeof process<"u"?process:null,env=proc?.env||{},{getFeatureFlagsGlobal}=G(),featureFlags=getFeatureFlagsGlobal(),FEATURE_LEVELS=["full","enhanced","standard","minimal"];if(!featureFlags)throw new Error("Explorer Dates: feature flags bridge unavailable for decorationsAdvanced chunk");function tryLoadChunk(...names){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function")for(let e of names)try{let t=dynamicRequire(e);if(t)return t}catch{}}catch{}return null}async function loadBatchProcessorIfNeeded(provider){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=dynamicRequire("./decoration-batch-chunk");if(e&&typeof e.loadBatchProcessorIfNeeded=="function")return await e.loadBatchProcessorIfNeeded(provider)}}catch(e){provider._logger?.debug?.("Delegated loadBatchProcessorIfNeeded failed",e)}return provider._logger?.debug?.("BatchProcessor not available (fallback)"),null}async function deferPreloads(e){try{Promise.resolve().then(()=>R(vr())).then(t=>{try{e.rt=t.createViewportManager?.(e)||null}catch(r){e._logger?.debug?.("Failed to init viewport manager",r)}}).catch(t=>e._logger?.debug?.("Failed to load viewport manager chunk",t)),Promise.resolve().then(()=>R(at())).then(t=>{try{let r=t.getLocalization();e.p.getString=(...i)=>r.getString(...i),e.p.formatDate=(...i)=>r.formatDate(...i),e.p.getCurrentLocale=()=>r.getCurrentLocale();let n=e.p.dispose;e.p.dispose=()=>{try{r.dispose()}catch{}n()}}catch{}}).catch(()=>{}),Promise.resolve().then(()=>R(ot())).then(t=>{try{e.yt=t.createDecorationLogic?.(e)||null}catch(r){e._logger?.debug?.("Failed to initialize decoration logic chunk",r)}}).catch(t=>e._logger?.debug?.("Failed to load decoration logic chunk",t)),Promise.resolve().then(()=>R(Ce())).then(t=>{try{e.hr=t.createDecorationProviderHelpers?.(e)||null}catch(r){e._logger?.debug?.("Failed to initialize decoration provide chunk",r)}}).catch(t=>e._logger?.debug?.("Failed to load decoration provide chunk",t)),e._logger?.debug?.("Deferred preloads scheduled")}catch(t){e._logger?.debug?.("deferPreloads failed",t)}}async function getCachedDecoration(provider,cacheKey,fileLabel){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function")try{let e=dynamicRequire("./decoration-cache-chunk");if(e&&typeof e.getCachedDecoration=="function")return await e.getCachedDecoration(provider,cacheKey,fileLabel)}catch{}if(provider.G)return provider._logger?.debug?.(`\u26A0\uFE0F Cache bypass enabled - recalculating decoration for: ${fileLabel}`),null;if(provider._advancedCache)try{let e=await provider._advancedCache.get(cacheKey);if(e)return provider._metrics.cacheHits++,provider._logger?.debug?.(`\u{1F9E0} Advanced cache hit for: ${fileLabel}`),e}catch(e){provider._logger?.debug?.(`Advanced cache error: ${e.message}`)}if(!provider.e||typeof provider.e.get!="function")return provider._logger?.debug?.("getCachedDecoration: no memory cache available, falling back"),null;let memoryEntry=provider.e.get(cacheKey);if(memoryEntry){if(memoryEntry.forceRefresh){try{provider.e.delete(cacheKey)}catch{}provider._logger?.debug?.(`\u{1F6AB} Memory cache bypassed (forced refresh) for: ${fileLabel}`)}else if(Date.now()-memoryEntry.timestampprovider.l&&typeof provider.e.enforceLimit=="function"&&provider.e.enforceLimit(provider.l,provider._logger)}catch{}let cacheEntry={decoration,timestamp:Date.now()};resourceUri&&(cacheEntry.uri=resourceUri);try{provider.e.set(cacheKey,cacheEntry)}catch{}try{typeof provider.ce=="function"&&provider.ce()}catch(e){provider._logger?.debug?.("monitorCachePressure from store failed",e)}if(provider._advancedCache)try{await provider._advancedCache.set(cacheKey,decoration,{ttl:provider.S}),provider._logger?.debug?.(`\u{1F9E0} Stored in advanced cache: ${fileLabel}`)}catch(e){provider._logger?.debug?.(`Failed to store in advanced cache: ${e.message}`)}try{typeof provider.le=="function"&&provider.le()}catch(e){provider._logger?.debug?.("maybeExtendCacheTimeout from store failed",e)}}catch(e){provider._logger?.debug?.("storeDecorationInCache failed",e)}}function cancelProgressiveWarmupJobs(provider){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=dynamicRequire("./decoration-batch-chunk");if(e&&typeof e.cancelProgressiveWarmupJobs=="function")return e.cancelProgressiveWarmupJobs(provider)}}catch(e){provider._logger?.debug?.("Delegated cancelProgressiveWarmupJobs failed",e)}try{let e=provider._progressiveLoadingJobs;e&&typeof e.clear=="function"&&e.clear()}catch(e){provider._logger?.debug?.("Fallback cancel failed",e)}}async function applyProgressiveLoadingSetting(provider){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=dynamicRequire("./decoration-batch-chunk");if(e&&typeof e.applyProgressiveLoadingSetting=="function")return e.applyProgressiveLoadingSetting(provider)}}catch(e){provider._logger?.debug?.("Delegated applyProgressiveLoadingSetting failed",e)}provider._logger?.debug?.("applyProgressiveLoadingSetting fallback invoked (no batch chunk)")}async function initializeAdvancedSystems(e,t){try{if(e._extensionContext=t,e._isWeb&&await e._maybeWarnAboutGitLimitations?.(),e._performanceMode){e._logger?.info?.("Performance mode enabled - skipping advanced cache, batch processor, and progressive loading");return}let r=await featureFlags.advancedCache();if(r){let i=null;if(typeof r=="function")if(r.name==="createAdvancedCache")e._advancedCache=r(t),await e._advancedCache.initialize(),e._logger?.info?.("Advanced cache initialized via factory function");else try{e._advancedCache=new r(t),await e._advancedCache.initialize(),e._logger?.info?.("Advanced cache initialized via direct constructor")}catch(a){e._logger?.warn?.("Failed to instantiate AdvancedCache via direct constructor, disabling advanced cache:",a.message),e._advancedCache=null}else r.AdvancedCache?(i=r.AdvancedCache,e._advancedCache=new i(t),await e._advancedCache.initialize(),e._logger?.info?.("Advanced cache initialized via module property")):r.createAdvancedCache?(e._advancedCache=r.createAdvancedCache(t),await e._advancedCache.initialize(),e._logger?.info?.("Advanced cache initialized via module factory")):(e._logger?.warn?.("AdvancedCache module format not recognized, disabling advanced cache"),e._advancedCache=null)}else e._logger?.info?.("Advanced cache disabled by feature flag"),e._advancedCache=null;await applyProgressiveLoadingSetting(e),e._batchProcessor&&(e._batchProcessor.initialize(),e._logger?.info?.("Batch processor initialized"));try{let i=tryLoadChunk("./decoration-workspace-intel-chunk","./decorationWorkspaceIntel","./decorationWorkspaceIntel.js","./decoration-workspace-intel-chunk.js");i&&typeof i.initializeWorkspaceIntelligence=="function"?await i.initializeWorkspaceIntelligence(e,t):e._logger?.info?.("Workspace intelligence not initialized (no chunk)")}catch(i){e._logger?.warn?.("Delegated workspace intelligence initialization failed",i?.message||String(i)),e._workspaceIntelligence=null}vscode.workspace.getConfiguration("explorerDates").get("autoThemeAdaptation",!0)&&e._themeIntegration?.autoConfigureForTheme&&(await e._themeIntegration.autoConfigureForTheme(),e._logger?.info?.("Theme integration configured")),e._accessibility?.shouldEnhanceAccessibility?.()&&(await e._accessibility.applyAccessibilityRecommendations?.(),e._logger?.info?.("Accessibility recommendations applied")),e._allocationTelemetryEnabled&&(scheduleTelemetryReport(e),e._logger?.info?.("Allocation telemetry enabled - reports every",e._telemetryReportInterval,"ms")),e._logger?.info?.("Advanced systems initialized successfully")}catch(r){e._logger?.error?.("Failed to initialize advanced systems",r)}}function shouldUseFallbackWatcher(e){return e._enableWatcherFallbacks===!1?!1:e._enableWatcherFallbacks==="auto"||e._enableWatcherFallbacks===!0?isPlatformFallbackRequired():!1}function isPlatformFallbackRequired(){let e=proc?.platform,t=env.WSL_DISTRO_NAME||env.WSLENV,r=vscode.env.remoteName,n=env.DOCKER_CONTAINER;return t||r||n||e==="android"}async function createFallbackWatcher(e,t,r){try{if(!e._smartWatcherFallbackManager){let n=await featureFlags.loadFeatureModule("smartWatcherFallback");if(n){let{SmartWatcherFallbackManager:i}=n;e._smartWatcherFallbackManager=new i({logger:e._logger}),await e._smartWatcherFallbackManager.initialize()}}if(e._smartWatcherFallbackManager){let i=await(await e._smartWatcherFallbackManager.getFallback()).createWatcherWithFallback(t);return e._logger?.debug?.(`Fallback watcher created for ${r}`),i}}catch(n){e._logger?.warn?.(`Fallback watcher creation failed for ${r}:`,n)}return null}async function createWatcherWithFallback(e,t,r="unknown"){try{let n=vscode.workspace.createFileSystemWatcher(t);return e._logger?.debug?.(`Native watcher created for ${r}`),n}catch(n){if(e._logger?.debug?.(`Native watcher failed for ${r}:`,n),!shouldUseFallbackWatcher(e))throw n;return createFallbackWatcher(e,t,r)}}async function ensureWatcherManager(e){try{if(e.f)return e.f;try{let t=await Promise.resolve().then(()=>R(dt()));return e.f=t.createWatcherManager(e),e.f}catch(t){e._logger?.debug?.("Failed to load watcher manager chunk from advanced chunk",t)}}catch(t){e._logger?.debug?.("ensureWatcherManager failed",t)}return null}async function setupFileWatcher(e,t="initial"){try{let r=await ensureWatcherManager(e);if(r&&typeof r.setupFileWatcher=="function")return r.setupFileWatcher(t)}catch(r){e._logger?.debug?.("setupFileWatcher failed in advanced chunk",r)}try{let r=createWatcherWithFallback(e,"**/*",`global:${t}`);if(r)return e.s||(e.s=new Set),e.s.add(r),e._logger?.info?.("Global watcher activated (fallback)",{reason:t}),r}catch(r){e._logger?.debug?.("setupFileWatcher fallback failed",r)}return null}function registerWatcherHandlers(e,t,r="unknown"){try{let n=e.f||null;if(n&&typeof n.he=="function")return n.he(t,r)}catch(n){e._logger?.debug?.("Watcher manager register watcher handlers failed (advanced)",n)}try{if(!t)return;t.onDidChange(n=>e.W(n,"change",r)),t.onDidCreate(n=>e.W(n,"create",r)),t.onDidDelete(n=>e.W(n,"delete",r))}catch(n){e._logger?.debug?.("registerWatcherHandlers fallback failed",n)}}function dispatchWatcherEvent(e,t,r,n){try{let i=e.f||null;if(i&&typeof i.xe=="function")return i.xe(t,r,n)}catch(i){e._logger?.debug?.("Watcher manager dispatch watcher event failed (advanced)",i)}try{try{e.Me?.(t)}catch{}r==="delete"?e.clearDecoration(t):e.refreshDecoration(t),e._workspaceIntelligence?.incrementalIndexer&&e._workspaceIntelligence.incrementalIndexer.queueDelta(t,r),e.Ze&&e._logger?.debug?.(`Watcher event processed (${r}) for ${e.describeFile(t)} via ${n}`)}catch(i){e._logger?.debug?.("dispatchWatcherEvent fallback failed",i)}}function buildSummaryTooltip(e,{filePath:t,stat:r,badgeDetails:n}){try{let i=tryLoadChunk("./decoration-formatters-chunk","./decorationFormatters","./decoration-formatters-chunk.js","./decorationFormatters.js","./decoration-helpers-chunk","./decorationHelpers","./decoration-helpers","./decoration-helpers-chunk.js","./decorationHelpers.js");if(i&&typeof i.buildSummaryTooltip=="function")return i.buildSummaryTooltip(e,{filePath:t,stat:r,badgeDetails:n})}catch(i){e._logger?.debug?.("Delegated buildSummaryTooltip failed",i)}try{let i=[];n?.readableModified&&i.push(`Modified ${n.readableModified}`);let a=n?.fileSizeLabel||(r?.size?e.gt(r.size,"auto"):null);return a&&i.push(a),`${typeof e.describeFile=="function"?e.describeFile(t):t} \u2014 ${i.filter(Boolean).join(" \u2022 ")||e.Dr(r?.mtime||new Date)}`}catch(i){return e._logger?.debug?.("buildSummaryTooltip failed",i),`${typeof e.describeFile=="function"?e.describeFile(t):t} \u2014 ${e.Dr(r?.mtime||new Date)}`}}function formatDateReadable(e,t){try{let r=tryLoadChunk("./decoration-formatters-chunk","./decorationFormatters","./decoration-formatters-chunk.js","./decorationFormatters.js","./decoration-helpers-chunk","./decorationHelpers","./decoration-helpers","./decoration-helpers-chunk.js","./decorationHelpers.js");if(r&&typeof r.formatDateReadable=="function")return r.formatDateReadable(e,t)}catch(r){e._logger?.debug?.("Delegated formatDateReadable failed",r)}try{let r=new Date,n=r.getTime()-t.getTime(),i=Math.floor(n/(1e3*60)),a=Math.floor(n/(1e3*60*60)),o=Math.floor(n/(1e3*60*60*24)),s=e.ln(t,r,i,a,o);return s?e.er(e.N,e.Ie,e.Cr,s.key,s.factory,e.Sr):t.getFullYear()===r.getFullYear()?e.p.formatDate(t,{month:"short",day:"numeric"}):e.p.formatDate(t,{month:"short",day:"numeric",year:"numeric"})}catch(r){return e._logger?.debug?.("formatDateReadable failed",r),e.p.formatDate(t)}}async function getGitBlameInfo(e,t,r=null){if(env.DISABLE_GIT_FEATURES==="1"||e.un)return null;try{let n=await featureFlags.gitInsights();return!n||typeof n.getGitBlameInfo!="function"?null:await n.getGitBlameInfo(t,r)}catch(n){return e._logger?.warn?.("Git blame lookup failed",{filePath:t,message:n?.message||String(n)}),null}}async function findWorkspaceFilesWithTimeout(provider,maxResults){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=dynamicRequire("./workspace-scan-chunk");if(e&&typeof e.findWorkspaceFilesWithTimeout=="function")return e.findWorkspaceFilesWithTimeout(provider,maxResults)}}catch(e){provider._logger?.debug?.("Delegated findWorkspaceFilesWithTimeout failed",e)}try{return require("vscode").workspace.findFiles("**/*",null,maxResults)}catch(e){return provider._logger?.warn?.("Workspace scan fallback failed",e),null}}function startWorkspaceScanWatchdog(provider){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=dynamicRequire("./workspace-scan-chunk");if(e&&typeof e.startWorkspaceScanWatchdog=="function")return e.startWorkspaceScanWatchdog(provider)}}catch(e){provider._logger?.debug?.("Delegated startWorkspaceScanWatchdog failed",e)}return Promise.resolve()}function clearWorkspaceScanWatchdog(provider){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=dynamicRequire("./workspace-scan-chunk");if(e&&typeof e.clearWorkspaceScanWatchdog=="function")return e.clearWorkspaceScanWatchdog(provider)}}catch(e){provider._logger?.debug?.("Delegated clearWorkspaceScanWatchdog failed",e)}provider.te&&(clearTimeout(provider.te),provider.te=null)}async function performWorkspaceSizeCheck(provider){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=dynamicRequire("./workspace-scan-chunk");if(e&&typeof e.performWorkspaceSizeCheck=="function")return e.performWorkspaceSizeCheck(provider)}}catch(e){provider._logger?.debug?.("Delegated performWorkspaceSizeCheck failed",e)}try{let e=require("vscode"),t=e.workspace.workspaceFolders;if(!t||t.length===0)return;provider._logger?.info?.("Checking workspace size (fallback, fast)");let r=await(e.workspace.findFiles?e.workspace.findFiles("**/*",null,1e3):[]),n=Array.isArray(r)?r.length:0;provider.Ge=n,provider.u=n>1e5?"extreme":n>1e4?"large":"normal",provider.Xe(provider.Ye(),"workspace-scale-change-fallback")}catch(e){provider._logger?.debug?.("performWorkspaceSizeCheck fallback failed",e)}}function getInitials(e,t){try{let n=tryLoadChunk("./decoration-formatters-chunk","./decorationFormatters","./decoration-formatters-chunk.js","./decorationFormatters.js","./decoration-helpers-chunk","./decorationHelpers","./decoration-helpers","./decoration-helpers-chunk.js","./decorationHelpers.js");if(n&&typeof n.getInitials=="function")return n.getInitials(e,t)}catch(n){e._logger?.debug?.("Delegated getInitials failed",n)}if(e.pe&&typeof e.pe.getInitials=="function")return e.pe.getInitials(t);if(!t||typeof t!="string")return null;let r=t.trim().split(/\s+/).filter(Boolean);return r.length===0?null:r.length===1?r[0].substring(0,2).toUpperCase():(r[0][0]+(r[1][0]||"")).substring(0,2).toUpperCase()}function formatCompactSize(e,t){try{let r=tryLoadChunk("./decoration-formatters-chunk","./decorationFormatters","./decoration-formatters-chunk.js","./decorationFormatters.js","./decoration-helpers-chunk","./decorationHelpers","./decoration-helpers","./decoration-helpers-chunk.js","./decorationHelpers.js");if(r&&typeof r.formatCompactSize=="function")return r.formatCompactSize(e,t)}catch(r){e._logger?.debug?.("Delegated formatCompactSize failed",r)}try{if(typeof t!="number"||isNaN(t))return null;let r=["B","K","M","G","T"],n=0,i=t;for(;i>=1024&&n=2?s.slice(0,2):s}catch(r){return e._logger?.debug?.("formatCompactSize failed",r),null}}function formatFullDate(e,t){try{let r=tryLoadChunk("./decoration-formatters-chunk","./decorationFormatters","./decoration-formatters-chunk.js","./decorationFormatters.js","./decoration-helpers-chunk","./decorationHelpers","./decoration-helpers","./decoration-helpers-chunk.js","./decorationHelpers.js");if(r&&typeof r.formatFullDate=="function")return r.formatFullDate(e,t)}catch(r){e._logger?.debug?.("Delegated formatFullDate failed",r)}try{let r={year:"numeric",month:"long",day:"numeric",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:"short"};return t.toLocaleString("en-US",r)}catch(r){return e._logger?.debug?.("formatFullDate failed",r),t.toString()}}function scheduleTelemetryReport(e){try{let t=tryLoadChunk("./decoration-telemetry-chunk","./decorationTelemetry","./decorationTelemetry.js","./decoration-telemetry-chunk.js");if(t&&typeof t.scheduleTelemetryReport=="function")return t.scheduleTelemetryReport(e)}catch(t){e._logger?.debug?.("Delegated scheduleTelemetryReport failed",t)}!e._allocationTelemetryEnabled||e._telemetryReportTimer||(e._telemetryReportTimer=setTimeout(()=>{e._telemetryReportTimer=null,reportAllocationTelemetry(e),scheduleTelemetryReport(e)},e._telemetryReportInterval))}function reportAllocationTelemetry(e){try{let i=st();if(i&&typeof i.reportAllocationTelemetry=="function")return i.reportAllocationTelemetry(e)}catch(i){e._logger?.debug?.("Delegated reportAllocationTelemetry failed",i)}let t=e.getMetrics().allocationTelemetry,r=t.decorationPool.allocations+t.badgeFlyweight.allocations+t.readableFlyweight.allocations,n=t.decorationPool.reuses+t.badgeFlyweight.reuses+t.readableFlyweight.reuses;(r>0||n>0)&&e._logger?.info?.("\u{1F9EE} Allocation telemetry report",{timestamp:new Date().toISOString(),pool:{allocations:t.decorationPool.allocations,reuses:t.decorationPool.reuses,reuseRate:t.decorationPool.reusePercent+"%"},badgeFlyweight:{allocations:t.badgeFlyweight.allocations,reuses:t.badgeFlyweight.reuses,reuseRate:t.badgeFlyweight.reusePercent+"%"},readableFlyweight:{allocations:t.readableFlyweight.allocations,reuses:t.readableFlyweight.reuses,reuseRate:t.readableFlyweight.reusePercent+"%"},summary:{totalAllocations:r,totalReuses:n,overallReuseRate:r+n>0?(n/(r+n)*100).toFixed(1)+"%":"0%"},decorationsProcessed:e._metrics.totalDecorations,cacheHitRate:e.getMetrics().cacheHitRate})}function setupPeriodicRefresh(e){try{let t=vscode.workspace.getConfiguration("explorerDates"),r=t.get("badgeRefreshInterval",6e4),n=e.F||r;if(e.A=n,e._logger?.info?.(`Setting up periodic refresh with interval: ${e.A}ms`),e.a&&(clearInterval(e.a),e.a=null),e.i&&e.i.size){for(let i of e.i)clearTimeout(i);e.i.clear()}if(!t.get("showDateDecorations",!0)){e._logger?.info?.("Decorations disabled, skipping periodic refresh setup");return}e.a=setInterval(()=>{if(e.R){e._logger?.debug?.("Periodic refresh skipped - incremental refresh already running");return}e._logger?.debug?.("Periodic refresh triggered - scheduling incremental refresh"),scheduleIncrementalRefresh(e,"periodic")},e.A),e._logger?.info?.("Periodic refresh timer started")}catch(t){e._logger?.debug?.("Failed to setup periodic refresh",t)}}function cancelIncrementalRefreshTimers(provider){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=dynamicRequire("./decoration-refresh-chunk");if(e&&typeof e.cancelIncrementalRefreshTimers=="function")return e.cancelIncrementalRefreshTimers(provider)}}catch(e){provider._logger?.debug?.("Delegated cancelIncrementalRefreshTimers failed",e)}if(!(!provider.i||provider.i.size===0)){for(let e of provider.i)clearTimeout(e);provider.i.clear(),provider.R=!1}}function scheduleIncrementalRefresh(provider,reason="manual"){try{if(!provider.e||typeof provider.e.entries!="function"){provider._logger?.debug?.("scheduleIncrementalRefresh: missing or invalid memory cache, firing global refresh");try{provider.m.fire(void 0)}catch{}return}let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=dynamicRequire("./decoration-refresh-chunk");if(e&&typeof e.scheduleIncrementalRefresh=="function")return e.scheduleIncrementalRefresh(provider,reason)}}catch(e){provider._logger?.debug?.("Delegated scheduleIncrementalRefresh failed",e)}provider._logger?.debug?.("scheduleIncrementalRefresh fallback invoked");try{provider.m.fire(void 0)}catch{}}function markCacheEntryForRefresh(provider,cacheKey){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=dynamicRequire("./decoration-refresh-chunk");if(e&&typeof e.markCacheEntryForRefresh=="function")return e.markCacheEntryForRefresh(provider,cacheKey)}}catch(e){provider._logger?.debug?.("Delegated markCacheEntryForRefresh failed",e)}if(!cacheKey)return;if(!provider.e||typeof provider.e.get!="function")provider._logger?.debug?.("markCacheEntryForRefresh: no memory cache available, skipping");else{let e=provider.e.get(cacheKey);e&&Date.now()-e.timestamp>provider.S*.75&&(e.forceRefresh=!0)}if(provider._advancedCache)try{provider._advancedCache.invalidateByPattern(cacheKey.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"))}catch(e){provider._logger?.debug?.(`Could not invalidate advanced cache for ${cacheKey}: ${e.message}`)}function maybeShedWorkload(provider){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=dynamicRequire("./decoration-memory-chunk");if(e&&typeof e.maybeShedWorkload=="function")return e.maybeShedWorkload(provider)}}catch(e){provider._logger?.debug?.("Delegated maybeShedWorkload failed",e)}try{if(!provider.St||provider.Tt)return;let e=(()=>{try{return proc?.memoryUsage?proc.memoryUsage().heapUsed/1024/1024:0}catch{return 0}})();if(!e)return;if(!provider.ye){provider.ye=e,provider.re=0,provider.be=!1;return}let t=e-provider.ye;if(t>=provider.vt?(provider.re++,provider.re>=2&&!provider.be&&(provider.be=!0,provider._logger?.warn?.("Memory pressure warning (soft threshold exceeded twice)",{deltaMB:Number(t.toFixed(2)),baselineMB:provider.ye,heapMB:e,rssMB:(()=>{try{return proc?.memoryUsage?proc.memoryUsage().rss/1024/1024:0}catch{return 0}})(),cacheSize:provider.e.size,cacheLimit:provider.l}))):provider.re>0&&(provider.re=0,t=provider.Ft){provider.Tt=!0,provider.l=Math.min(provider.l,provider.Tr),provider.F=Math.max(provider.F||provider.A||provider.At,provider.At);let r=(()=>{try{return proc?.memoryUsage?proc.memoryUsage().rss/1024/1024:0}catch{return 0}})(),n={timestamp:new Date().toISOString(),deltaMB:Number(t.toFixed(2)),baselineMB:provider.ye,heapMB:e,rssMB:r,cacheSize:provider.e.size,maxCacheSize:provider.l,watcherStrategy:provider.j,staticWatchers:provider.s.size,dynamicWatchers:provider.d.size};provider.nt.push(n),provider.nt.length>10&&provider.nt.shift(),provider._logger?.warn?.(`Memory shedding activated (delta ${t.toFixed(2)} MB >= ${provider.Ft} MB); cache size capped at ${provider.l} and refresh interval stretched to ${provider.F}ms`,n),setupPeriodicRefresh(provider),provider.be=!1,provider.re=0}}catch(e){provider._logger?.debug?.("maybeShedWorkload failed",e)}}function monitorCachePressure(e){try{if(!e.l||e.l<=0)return;let t=e.e.size/e.l;t>=e.Rt?e.it||(e.it=!0,e._logger?.infoWithOptions?.({throttleKey:"cache-pressure",intervalMs:6e4},`Decoration cache usage is at ${(t*100).toFixed(1)}% of capacity`,{cacheSize:e.e.size,maxCacheSize:e.l})):t0&&e.e.clear();try{typeof e.vr=="function"&&e.vr(t)}catch{}e.I.size>0&&(e.I.clear(),e.Se.length=0),e.N.size>0&&(e.N.clear(),e.Ie.length=0),e._logger?.debug?.(`\u{1F9FD} Purged lightweight caches (${t})`)}catch(r){e._logger?.debug?.("purgeLightweightCaches failed",r)}}async function togglePerformanceMode(e,t,{reason:r="unspecified",refresh:n=!0}={}){if(t!==e._performanceMode){if(e._performanceMode=t,e._logger?.info?.(`Performance mode ${t?"enabled":"disabled"} (${r})`),t)e.ot?.({permanent:!0}),e._logger?.info?.("File watchers disabled for performance mode"),e.a&&(clearInterval(e.a),e.a=null,e._logger?.info?.("Periodic refresh disabled for performance mode"));else{try{e.Q?.("performance-mode-toggle"),e._logger?.info?.("File watchers enabled (performance mode off)")}catch{}e.a||(e.Ee?.(),e._logger?.info?.("Periodic refresh enabled (performance mode off)"))}if(n)try{e.refreshAll?.({reason:"performance-mode-change"})}catch(i){e._logger?.debug?.("refreshAll after performance toggle failed",i)}if(t)e._workspaceIntelligence?.dispose&&(e._workspaceIntelligence.dispose(),e._workspaceIntelligence=null);else if(!e._workspaceIntelligence)try{let{getFeatureFlagsGlobal:i}=G(),a=i(),o=a?await a.workspaceIntelligence():null;if(o){let{WorkspaceIntelligenceManager:s}=o;e._workspaceIntelligence=new s(e._fileSystem),await e._workspaceIntelligence.initialize({batchProcessor:e._batchProcessor,enableProgressiveAnalysis:e._shouldEnableProgressiveAnalysis?.()});let c=require("vscode").workspace.workspaceFolders;c?.length&&await e._workspaceIntelligence.analyzeWorkspace(c,{maxFiles:e._getIndexerMaxFiles?.()})}}catch(i){e._logger?.debug?.("Workspace intelligence reinitialization failed after performance mode toggle",i)}}}function applyPerformanceProfile(e,t,r="unspecified"){try{let n=t?.level||e.B;e.hn=!1;let i=computeEffectivePerformanceMode(e);if(i!==e._performanceMode&&(e._logger?.debug?.("Auto performance mode update",{reason:r,featureLevel:n,workspaceScale:e.u,desiredPerformanceMode:i}),togglePerformanceMode(e,i,{reason:`${r}-auto`,refresh:!0}).catch(a=>e._logger?.debug?.("Failed to toggle performance mode automatically",a))),applyConcurrencyLimit(e,r),!e._performanceMode&&(e.u==="large"||e.u==="extreme")){let a={...e.P,applyBackgroundLimits:!0,backgroundTooltipMode:e.P?.backgroundTooltipMode==="rich"?"summary":e.P?.backgroundTooltipMode};e.P=a}if(!e._performanceMode){let a=getRefreshIntervalForScale(e),o=a!==null&&a!==e.F,s=a===null&&e.F!==null;o?(e.F=a,e.Ee?.()):s&&(e.F=null,e.Ee?.())}}catch(n){e._logger?.debug?.("applyPerformanceProfile failed",n)}}function getRefreshIntervalForScale(e){return e.u==="extreme"?6e5:e.u==="large"?18e4:null}function getSmartWatcherDefaults(){try{let e=Fr();return{DEFAULT_SMART_WATCHER_EXTENSIONS:e.DEFAULT_SMART_WATCHER_EXTENSIONS,SMART_WATCHER_PRIORITY:e.SMART_WATCHER_PRIORITY}}catch{return{DEFAULT_SMART_WATCHER_EXTENSIONS:["js","ts","json","md","py","java"],SMART_WATCHER_PRIORITY:new Map([["src",100],["lib",65],["test",30]])}}}function computeEffectivePerformanceMode(e){return e.Fr===!0?!0:e.Fr===!1?!1:e.u==="extreme"}function applyConcurrencyLimit(e,t="unspecified"){let r=e.ue,n=e.Ar?e.Ar():e.st||8;e.ue=Math.max(1,Math.min(n,e.st||8)),e._logger?.info?.(`Adjusted concurrency cap ${r} -> ${e.ue} (${t})`,{workspaceScale:e.u,performanceMode:e._performanceMode})}function _buildFeatureProfile(e,t="full"){let r=FEATURE_LEVELS.includes(t)?t:"full";switch(r){case"enhanced":return{level:r,enableGit:!0,enableProgressiveAnalysis:!0,applyBackgroundLimits:!1,backgroundTooltipMode:"rich",viewportWindowMs:6e4};case"standard":return{level:r,enableGit:!0,enableProgressiveAnalysis:!1,applyBackgroundLimits:!0,backgroundTooltipMode:"summary",viewportWindowMs:48e4};case"minimal":return{level:r,enableGit:!1,enableProgressiveAnalysis:!1,applyBackgroundLimits:!0,backgroundTooltipMode:"summary",viewportWindowMs:12e4};default:return{level:r,enableGit:!0,enableProgressiveAnalysis:!1,applyBackgroundLimits:!1,backgroundTooltipMode:"rich",viewportWindowMs:3e5}}}function applyFeatureLevel(e,t,r="unspecified"){if(!t)return!1;FEATURE_LEVELS.includes(t)||(t="full");let n=e.B!==t||!e.P;e.B=t;let i=n?_buildFeatureProfile(e,t):e.P||_buildFeatureProfile(e,t);return e.P=i,e.O=i.viewportWindowMs,n&&e._logger?.info?.(`Feature level set to "${t}" (${r})`,{viewportWindowMs:e.O,applyBackgroundLimits:i.applyBackgroundLimits,backgroundTooltipMode:i.backgroundTooltipMode}),e._performanceMode?e._logger?.info?.("Performance mode active - skipping feature profile application"):(i.applyBackgroundLimits&&e.dn?.(r),i.backgroundTooltipMode&&e._logger?.info?.("Configuring background tooltip behavior as part of feature profile",{mode:i.backgroundTooltipMode}),i.enableProgressiveAnalysis&&e._logger?.info?.("Progressive analysis enabled by feature profile")),n}function maybePurgeLightweightCaches(e){try{if(!e.at)return;if(e.Pt<=0){purgeLightweightCaches(e,"lightweight-interval");return}let t=e._metrics?.totalDecorations||0;t>0&&t%e.Pt===0&&purgeLightweightCaches(e,"lightweight-interval")}catch(t){e._logger?.debug?.("maybePurgeLightweightCaches failed",t)}}function _getFlyweightValueImpl(cache,order,limit,key,factory,statsTracker){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=dynamicRequire("./decoration-pool-chunk");if(e&&typeof e.xt=="function")return e.xt(cache,order,limit,key,factory,statsTracker)}}catch{}try{return factory()}catch{return null}}function acquireDecorationFromPoolImpl({badge,tooltip,color},createFileDecoration){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=dynamicRequire("./decoration-pool-chunk");if(e&&typeof e.acquireDecorationFromPoolImpl=="function")return e.acquireDecorationFromPoolImpl({badge,tooltip,color},createFileDecoration)}}catch{}return createFileDecoration(badge||"??")}function _trimFlyweightCacheToLimitImpl(cache,order,maxSize){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=dynamicRequire("./decoration-pool-chunk");if(e&&typeof e.Mt=="function")return e.Mt(cache,order,maxSize)}}catch{}}function clearDecorationPoolImpl(provider,reason="unspecified"){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=dynamicRequire("./decoration-pool-chunk");if(e&&typeof e.clearDecorationPoolImpl=="function")return e.clearDecorationPoolImpl(provider,reason)}}catch{}try{provider.c?.size&&(provider.c.clear(),provider.$.length=0)}catch{}}function checkMemoryPressure(e){try{let t=Date.now();if(e.ct||(e.ct=t),t-e.ct<3e4)return;e.ct=t;let r=e.e.size||0,n=1e4;r/n>.8&&(e._logger?.warn?.("\u{1F9E0} Memory pressure detected, performing cleanup",{cacheSize:r,maxSize:n}),purgeLightweightCaches(e,"memory-pressure"),e._metrics.cachePressureEvents=(e._metrics.cachePressureEvents||0)+1)}catch(t){e._logger?.debug?.("checkMemoryPressure failed",t)}}function createLazyHierarchicalDecorationCache(){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=dynamicRequire("./decoration-cache-chunk");if(e&&typeof e.createLazyHierarchicalDecorationCache=="function")return e.createLazyHierarchicalDecorationCache()}}catch{}class SimpleFallbackCache{constructor(){this.ne=new Map}get size(){return this.ne.size}clear(){this.ne.clear()}get(t){return this.ne.get(t)}set(t,r){this.ne.set(t,r)}delete(t){return this.ne.delete(t)}*entries(){yield*this.ne.entries()}hydrateInBackground(){}enforceLimit(){return 0}}return new SimpleFallbackCache}module.exports={applyProgressiveLoadingSetting,cancelProgressiveWarmupJobs,createFallbackWatcher,createWatcherWithFallback,initializeAdvancedSystems,loadBatchProcessorIfNeeded,reportAllocationTelemetry,scheduleTelemetryReport,setupPeriodicRefresh,scheduleIncrementalRefresh,cancelIncrementalRefreshTimers,markCacheEntryForRefresh,maybeShedWorkload,monitorCachePressure,purgeLightweightCaches,maybePurgeLightweightCaches,checkMemoryPressure,getCachedDecoration,storeDecorationInCache,buildSummaryTooltip,formatDateReadable,getGitBlameInfo,getInitials,formatCompactSize,formatFullDate,togglePerformanceMode,applyPerformanceProfile,getRefreshIntervalForScale,computeEffectivePerformanceMode,applyConcurrencyLimit,findWorkspaceFilesWithTimeout,startWorkspaceScanWatchdog,clearWorkspaceScanWatchdog,performWorkspaceSizeCheck,applyFeatureLevel,fn:_buildFeatureProfile,getSmartWatcherDefaults,createLazyHierarchicalDecorationCache,xt:_getFlyweightValueImpl,acquireDecorationFromPoolImpl,Mt:_trimFlyweightCacheToLimitImpl,clearDecorationPoolImpl,deferPreloads,ensureWatcherManager,setupFileWatcher,registerWatcherHandlers,dispatchWatcherEvent}}});var Ir=E((Wa,Mr)=>{function Ni(e){try{let t=(()=>{try{return require("vscode")}catch{return null}})(),r=t?t.workspace.getConfiguration("explorerDates"):{get:()=>6e4},n=r.get("badgeRefreshInterval",6e4),i=e.F||n;if(e.A=i,e._logger?.info?.(`Setting up periodic refresh with interval: ${e.A}ms`),e.a&&(clearInterval(e.a),e.a=null),e.i&&e.i.size){for(let a of e.i)clearTimeout(a);e.i.clear()}if(!r.get("showDateDecorations",!0)){e._logger?.info?.("Decorations disabled, skipping periodic refresh setup");return}e.a=setInterval(()=>{if(e.R){e._logger?.debug?.("Periodic refresh skipped - incremental refresh already running");return}e._logger?.debug?.("Periodic refresh triggered - scheduling incremental refresh"),Pr(e,"periodic")},e.A),e._logger?.info?.("Periodic refresh timer started")}catch(t){e._logger?.debug?.("Failed to setup periodic refresh",t)}}function Rr(e){if(!(!e.i||e.i.size===0)){for(let t of e.i)clearTimeout(t);e.i.clear(),e.R=!1}}function Pr(e,t="manual"){try{if(e.D){e._logger?.debug?.(`scheduleIncrementalRefresh called after dispose - ignoring (${t})`);return}if(e.ie){e._logger?.debug?.(`Incremental refresh (${t}) skipped - refresh already pending`);return}if(e.R&&(e._logger?.debug?.(`Incremental refresh (${t}) already in progress, cancelling pending timers and rescheduling`),Rr(e)),!e.e||typeof e.e.entries!="function"){e._logger?.debug?.("scheduleIncrementalRefresh: no memory cache available, firing global refresh");try{e.m.fire(void 0)}catch{}e.R=!1,e.ie=!1;return}let r=Array.from(e.e.entries());if(r.length===0){e._logger?.debug?.(`No cached decorations to refresh for ${t}, falling back to global refresh`),e.m.fire(void 0);return}let n=r.map(([c,u])=>{let l=u?.uri?u.uri:c?require("vscode").Uri.file(c):null;return l?{cacheKey:c,uri:l}:null}).filter(Boolean);if(n.length===0){e._logger?.debug?.(`Failed to resolve URIs for ${t} incremental refresh, firing global refresh`),e.m.fire(void 0);return}let i=40,a=Math.ceil(n.length/i),o=Math.min(4e3,Math.max(750,Math.floor(e.A*.25))),s=a>1?Math.max(25,Math.floor(o/a)):0;e.R=!0,e.ie=!0,e._logger?.debug?.(`Incremental refresh (${t}) scheduled for ${n.length} items in ${a} batches (spacing: ${s}ms)`);for(let c=0;c{try{if(e.D){e.i.delete(d),e.i.size||(e.R=!1,e.ie=!1);return}u.forEach(({cacheKey:h,uri:g})=>{xr(e,h),e.m.fire(g)})}finally{e.i.delete(d),e.i.size===0&&(e.R=!1,e.ie=!1,e._logger?.debug?.(`Incremental refresh (${t}) completed`))}},l);e.i.add(d)}}catch(r){e._logger?.debug?.("Failed to schedule incremental refresh",r)}}function xr(e,t){if(t){if(!e.e||typeof e.e.get!="function")e._logger?.debug?.("markCacheEntryForRefresh: no memory cache available, skipping");else{let r=e.e.get(t);if(r){let n=Date.now()-r.timestamp;n>e.S*.75?(r.forceRefresh=!0,e._logger?.debug?.(`Marked stale entry for refresh: ${t} (age: ${Math.round(n/1e3)}s)`)):e._logger?.debug?.(`Skipped refresh for fresh entry: ${t} (age: ${Math.round(n/1e3)}s)`)}}if(e._advancedCache)try{let r=t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e._advancedCache.invalidateByPattern(r)}catch(r){e._logger?.debug?.(`Could not invalidate advanced cache for ${t}: ${r.message}`)}}}Mr.exports={setupPeriodicRefresh:Ni,cancelIncrementalRefreshTimers:Rr,scheduleIncrementalRefresh:Pr,markCacheEntryForRefresh:xr}});var f=require("vscode"),{fileSystem:qi}=$e(),{formatFileSize:zi}=Be(),{getSettingsCoordinator:Ui}=Ve(),{SecurityValidator:La,SecureFileOperations:Oa,detectSecurityEnvironment:Hi}=Ze(),{DEFAULT_CACHE_TIMEOUT:Fe,DEFAULT_MAX_CACHE_SIZE:ie,GLOBAL_STATE_KEYS:Na,DEFAULT_DECORATION_POOL_SIZE:$i,DEFAULT_FLYWEIGHT_CACHE_SIZE:Wr,WORKSPACE_SCALE_EXTREME_THRESHOLD:qa}=I(),{isWebEnvironment:Bi}=J(),{isWebDiagnosticsEnabled:Lr,diagLogOnce:Ae,recordProviderEvent:Ki,recordDecorationCall:ji,recordRefreshCall:Vi}=he(),{resolveFreshness:Gi,compareFreshness:Xi,resourceIdentity:Or}=nt(),S=typeof process<"u"&&process.env?process.env:{},Yi=300*1e3,Zi=Number(S.EXPLORER_DATES_VIEWPORT_HISTORY_LIMIT||400),Nr=Number(S.EXPLORER_DATES_SECURITY_MAX_WARNINGS_PER_FILE??1),qr=["full","enhanced","standard","minimal"],zr=new Map([["src",100],["lib",65],["test",30]]);function Ji(){try{let e=f?.window?.activeColorTheme?.kind,t=e===f.ColorThemeKind.HighContrast,r=e===f.ColorThemeKind.Light;return t?{veryRecent:new f.ThemeColor("list.highlightForeground"),recent:new f.ThemeColor("list.warningForeground"),old:new f.ThemeColor("list.errorForeground"),javascript:new f.ThemeColor("list.highlightForeground"),css:new f.ThemeColor("list.warningForeground"),html:new f.ThemeColor("list.errorForeground"),json:new f.ThemeColor("list.highlightForeground"),markdown:new f.ThemeColor("list.warningForeground"),python:new f.ThemeColor("list.errorForeground"),subtle:new f.ThemeColor("list.highlightForeground"),muted:new f.ThemeColor("list.inactiveSelectionForeground"),emphasis:new f.ThemeColor("list.focusHighlightForeground")}:r?{veryRecent:new f.ThemeColor("list.highlightForeground"),recent:new f.ThemeColor("list.warningForeground"),old:new f.ThemeColor("list.errorForeground"),javascript:new f.ThemeColor("symbolIcon.functionForeground"),css:new f.ThemeColor("symbolIcon.colorForeground"),html:new f.ThemeColor("symbolIcon.snippetForeground"),json:new f.ThemeColor("symbolIcon.stringForeground"),markdown:new f.ThemeColor("symbolIcon.textForeground"),python:new f.ThemeColor("symbolIcon.classForeground"),subtle:new f.ThemeColor("list.inactiveSelectionForeground"),muted:new f.ThemeColor("list.deemphasizedForeground"),emphasis:new f.ThemeColor("list.highlightForeground")}:{veryRecent:new f.ThemeColor("list.highlightForeground"),recent:new f.ThemeColor("charts.yellow"),old:new f.ThemeColor("charts.red"),javascript:new f.ThemeColor("symbolIcon.functionForeground"),css:new f.ThemeColor("charts.purple"),html:new f.ThemeColor("charts.orange"),json:new f.ThemeColor("symbolIcon.stringForeground"),markdown:new f.ThemeColor("charts.yellow"),python:new f.ThemeColor("symbolIcon.classForeground"),subtle:new f.ThemeColor("list.inactiveSelectionForeground"),muted:new f.ThemeColor("list.deemphasizedForeground"),emphasis:new f.ThemeColor("list.highlightForeground")}}catch{return null}}function Qi(e,t){if(!t||!e)return null;let r=ta(e);return[".js",".ts",".jsx",".tsx",".mjs"].includes(r)?t.javascript:[".css",".scss",".sass",".less",".stylus"].includes(r)?t.css:[".html",".htm",".xml",".svg"].includes(r)?t.html:[".json",".yaml",".yml",".toml"].includes(r)?t.json:[".md",".markdown",".txt",".rst"].includes(r)?t.markdown:[".py",".pyx",".pyi"].includes(r)?t.python:null}var ea=e=>{try{let r=String(e||"").replace(/\\/g,"/"),n=r.lastIndexOf("/");return n===-1?r:r.substring(n+1)}catch{return"unknown"}},ta=e=>{try{let t=String(e||""),r=t.lastIndexOf(".");return r<=0?"":t.substring(r).toLowerCase()}catch{return""}},ra=e=>String(e||"").toLowerCase().replace(/\\/g,"/"),Re=e=>String(e||"").replace(/\\/g,"/"),ae=(e="")=>{if(!e)return"";if(typeof e=="string")return e;if(typeof e.fsPath=="string"&&e.fsPath.length>0)return e.fsPath;if(typeof e.path=="string"&&e.path.length>0)return e.path;if(typeof e.toString=="function")try{return e.toString(!0)}catch{return e.toString()}return String(e)},na=(e="")=>{try{let t=typeof e=="string"?e:ae(e),r=Re(t);return ea(r)||r||"unknown"}catch{return"unknown"}},Pe=class{constructor(){this.r=null,this.n=new Map,(async()=>{try{let t=await Promise.resolve().then(()=>R(rr()));if(t&&typeof t.createLazyHierarchicalDecorationCache=="function"){let r=t.createLazyHierarchicalDecorationCache();for(let[n,i]of this.n.entries())r.set(n,i);this.r=r,this.n=null}}catch{}})()}get size(){return this.r?this.r.size:this.n.size}get bucketCount(){return this.r?this.r.bucketCount:0}clear(){if(this.r)return this.r.clear();this.n.clear()}get(t){return this.r?this.r.get(t):this.n.get(t)}set(t,r,n={}){if(this.r)return this.r.set(t,r,n);this.n.set(t,r)}delete(t){return this.r?this.r.delete(t):this.n.delete(t)}*entries(){if(this.r){yield*this.r.entries();return}yield*this.n.entries()}*keys(){if(this.r){yield*this.r.keys();return}yield*this.n.keys()}*values(){if(this.r){yield*this.r.values();return}yield*this.n.values()}[Symbol.iterator](){return this.entries()}enforceLimit(t=0){if(this.r)return this.r.enforceLimit(t);if(!t||this.n.size<=t)return 0;let r=0,i=Array.from(this.n.keys()).slice(0,Math.max(1,Math.ceil(this.n.size-t)));for(let a of i)this.n.delete(a),r++;return r}},ia=S.VSCODE_WEB==="true",xe=class{Rr(){try{let t=typeof process<"u"&&typeof process.memoryUsage=="function"?process.memoryUsage():null,r=Number(t?.heapUsed);return Number.isFinite(r)&&r>=0?Number((r/1024/1024).toFixed(2)):0}catch{return 0}}gn(){try{let t=typeof process<"u"&&typeof process.memoryUsage=="function"?process.memoryUsage():null,r=Number(t?.rss);return Number.isFinite(r)&&r>=0?Number((r/1024/1024).toFixed(2)):0}catch{return 0}}constructor(){this.m=new f.EventEmitter,this.onDidChangeFileDecorations=this.m.event,this.e=new Pe,this.mn=new Map,this.lt=new Map,this.ve=[],this.st=20,this.ue=this.st,this.ir=0,this.Be=!1,this.pn=!1,this.c=new Map,this.$=[],this.H={hits:0,misses:0,allocations:0,reuses:0},this.Jt=$i,this.I=new Map,this.Se=[],this.Xt=Wr,this.Yt={hits:0,misses:0,allocations:0,reuses:0},this.N=new Map,this.Ie=[],this.Cr=Wr,this.Sr={hits:0,misses:0,allocations:0,reuses:0},this.Zt=S.EXPLORER_DATES_ENABLE_DECORATION_POOL!=="0",this.Gt=S.EXPLORER_DATES_ENABLE_FLYWEIGHTS!=="0",this.at=S.EXPLORER_DATES_LIGHTWEIGHT_MODE==="1",this._performanceMode=!1;try{let n=f.workspace.getConfiguration("explorerDates");this._performanceMode=!!n.get("performanceMode",this._performanceMode)}catch{}this.St=S.EXPLORER_DATES_MEMORY_SHEDDING==="1",this.Ft=Number(S.EXPLORER_DATES_MEMORY_SHED_THRESHOLD_MB||3),this.Tt=!1,this.ye=this.St?this.Rr():0,this.Tr=Number(S.EXPLORER_DATES_MEMORY_SHED_CACHE_LIMIT||1e3),this.At=Number(S.EXPLORER_DATES_MEMORY_SHED_REFRESH_MS||6e4),this.F=null,this.nt=[],this.vt=Number(S.EXPLORER_DATES_SOFT_HEAP_ALERT_MB||2),this.re=0,this.be=!1,this.Rt=Number(S.EXPLORER_DATES_CACHE_PRESSURE_RATIO||.7),this.it=!1,this.A=null,this.a=null,this.i=new Set,this.R=!1,this.ie=!1,this.G=S.EXPLORER_DATES_FORCE_CACHE_BYPASS==="1",this.Pt=Number(S.EXPLORER_DATES_LIGHTWEIGHT_PURGE_INTERVAL||400),this._isWeb=ia||Bi(),Lr()&&(Ae("provider-impl-constructed","info","Provider implementation constructed",{isWeb:this._isWeb}),Ki("created",{source:"impl",isWeb:this._isWeb})),this.Pr=Fe*4,this.yn=this.Pr,this.bn=0,this.l=ie;try{let n=f.workspace.getConfiguration("explorerDates");this.S=Number(n.get("cacheTimeout",Fe))}catch{this.S=Fe}try{let n=f.workspace.getConfiguration("explorerDates");this.l=Number(n.get("maxCacheSize",ie))||ie}catch{this.l=ie}this._fileSystem=qi,this.En=!this._isWeb,this._n=!1,this.pe=null,this.wn=null,this.z=new Map,this.We=6e4,this.xr=1e3,this.b=new Map,this.Mr=Number(S.EXPLORER_DATES_FRESHNESS_CACHE_TTL_MS||6e4),this.Ir=Number(S.EXPLORER_DATES_FRESHNESS_CACHE_MAX||2e3),this.It=new Set;try{this.Wr=Math.random().toString(36).slice(2,8),this._logger.debug(`FileDateDecorationProvider created (id=${this.Wr})`)}catch{}this.Lr=null,this.kn=null,this.Or=null,this.Dn=null;let t=Ui(),r=t?.getValue&&t.getValue("enableTelemetry");this._allocationTelemetryEnabled=S.NODE_ENV==="development"||S.EXPLORER_DATES_TELEMETRY==="1"||r===!0,this._telemetryReportInterval=Number(S.EXPLORER_DATES_TELEMETRY_INTERVAL_MS||6e4),this._telemetryReportTimer=null,this.Nr=null,this.Cn=new Map,this.k=new Set,this.y=new Map,this.me=Zi,this.O=300*1e3,this.et=Date.now(),this.v=[],this.rt=null,this.Sn=null;try{let n=Array.isArray(f.window?.visibleTextEditors)?f.window.visibleTextEditors:[];for(let a of n){let o=a?.document?.uri?.fsPath||a?.document?.uri?.path||"";o&&this.k.add(String(o).replace(/\\/g,"/"))}let i=f.window?.activeTextEditor?.document?.uri;if(i){let a=i.fsPath||i.path||"";a&&this.k.add(String(a).replace(/\\/g,"/"))}}catch{}this.B="full",this.P=null,this._logger=q().getLogger(),this.p={getString:n=>n,formatDate:n=>n instanceof Date?n.toString():String(n),getCurrentLocale:()=>"en",dispose:()=>{}},this._metrics={totalDecorations:0,cacheHits:0,cacheMisses:0,fileStatTimeMs:0,fileStatCalls:0,gitBlameTimeMs:0,gitBlameCalls:0,viewportPriorityDecorations:0,viewportBackgroundDecorations:0},(async()=>{try{let n=await Promise.resolve().then(()=>R(_r()));n&&typeof n.hydrateProviderOptionalSystems=="function"&&await n.hydrateProviderOptionalSystems(this)}catch(n){this._logger.debug("Failed to run provider initialization chunk",n)}})(),this._workspaceIntelligence=null,this._batchProcessor=null,this._batchProcessorModule=null,this._progressiveLoadingJobs=new Set,this._progressiveLoadingEnabled=!1,this.ae=null,this.oe=null,this._advancedCache=null,this.w=null,this.s=new Set,this.h=void 0,this.d=new Map,this.T=[],this.L=null,this.J=!0,this._enableWatcherFallbacks="auto",this._smartWatcherFallbackManager=null,this.ee=null,this.j="none",this._=new Map,this.Wt=!1,this._e=[],this.Ge=null,this.u="unknown",this.Ze=S.EXPLORER_DATES_LOG_WATCHERS==="1",this.Tn=Hi(),this.Lt=!0,this.qr=[],this.zr=!0,this.vn=!1,this.Fn=!1,this.An=new Map,this.Rn=Number(S.EXPLORER_DATES_SECURITY_WARNING_THROTTLE_MS||5e3),this.Pn=Number.isFinite(Nr)?Math.max(0,Nr):1,this.Le=typeof f.workspace.onDidChangeWorkspaceFolders=="function"?f.workspace.onDidChangeWorkspaceFolders(n=>this.Ur(n)):null,this.C=null,this.xn=null,this.Mn=null,this.te=null,this.In=!1,this.Je=0,this.D=!1,this._accessibility=null;try{let n=f.workspace.getConfiguration("explorerDates"),i=!!n.get("enableContextMenu",!0),a=!!n.get("showStatusBar",!1),o=!!n.get("showWelcomeOnStartup",!0),s=!!n.get("enableExtensionApi",!0);try{f.commands.executeCommand("setContext","explorerDates.enableContextMenu",i).catch(()=>{})}catch{}try{f.commands.executeCommand("setContext","explorerDates.showStatusBar",a).catch(()=>{})}catch{}try{f.commands.executeCommand("setContext","explorerDates.showWelcomeOnStartup",o).catch(()=>{})}catch{}try{f.commands.executeCommand("setContext","explorerDates.enableExtensionApi",s).catch(()=>{})}catch{}}catch(n){this._logger?.debug&&this._logger.debug("Failed to initialize UI contexts",n)}try{typeof f.workspace.onDidChangeConfiguration=="function"&&(this.w=f.workspace.onDidChangeConfiguration(n=>{try{if(!n||typeof n.affectsConfiguration!="function"||!n.affectsConfiguration("explorerDates"))return;let a=!!f.workspace.getConfiguration("explorerDates").get("performanceMode",!1);try{let o=this._performanceMode;this._performanceMode=a,a?(this.ot?.({permanent:!0}),this.a&&(clearInterval(this.a),this.a=null)):!a&&o&&(this.Q?.("runtime-config-change"),this.a||this.Ee?.())}catch(o){this._logger?.debug?.("sync performance-mode toggle failed",o)}(async()=>{try{let o=await this.Z();o&&typeof o.togglePerformanceMode=="function"&&await o.togglePerformanceMode(this,a,{reason:"runtime-config-change",refresh:!0})}catch(o){this._logger?.debug?.("delegated togglePerformanceMode failed",o)}})();try{if(["explorerDates.enableContextMenu","explorerDates.showStatusBar","explorerDates.showWelcomeOnStartup","explorerDates.enableExtensionApi"].some(c=>n.affectsConfiguration&&n.affectsConfiguration(c)))try{let c=f.workspace.getConfiguration("explorerDates"),u=!!c.get("enableContextMenu",!0),l=!!c.get("showStatusBar",!1),d=!!c.get("showWelcomeOnStartup",!0),h=!!c.get("enableExtensionApi",!0);try{f.commands.executeCommand("setContext","explorerDates.enableContextMenu",u).catch(()=>{})}catch{}try{f.commands.executeCommand("setContext","explorerDates.showStatusBar",l).catch(()=>{})}catch{}try{f.commands.executeCommand("setContext","explorerDates.showWelcomeOnStartup",d).catch(()=>{})}catch{}try{f.commands.executeCommand("setContext","explorerDates.enableExtensionApi",h).catch(()=>{})}catch{}}catch(c){this._logger?.debug&&this._logger.debug("Failed to update UI contexts on config change",c)}}catch(o){this._logger?.debug&&this._logger.debug("Failed to evaluate UI-context update condition",o)}try{let o=f.workspace.getConfiguration("explorerDates");if(n.affectsConfiguration&&n.affectsConfiguration("explorerDates.cacheTimeout"))try{this.S=Number(o.get("cacheTimeout",Fe))}catch{}if(n.affectsConfiguration&&n.affectsConfiguration("explorerDates.maxCacheSize"))try{this.l=Number(o.get("maxCacheSize",ie))||ie}catch{}}catch(o){this._logger?.debug&&this._logger.debug("Failed to refresh runtime config values from settings",o)}(async()=>{try{if(n.affectsConfiguration&&n.affectsConfiguration("explorerDates.workspaceExclusionProfiles")&&this._workspaceIntelligence?.smartExclusion?.cleanupAllWorkspaceProfiles&&await this._workspaceIntelligence.smartExclusion.cleanupAllWorkspaceProfiles(),n.affectsConfiguration&&n.affectsConfiguration("explorerDates.showWelcomeOnStartup"))try{let o=!!f.workspace.getConfiguration("explorerDates").get("showWelcomeOnStartup",!0);this._extensionContext&&this._extensionContext.globalState&&typeof this._extensionContext.globalState.update=="function"&&await this._extensionContext.globalState.update("explorerDates.pendingWelcome",o)}catch(o){this._logger?.debug&&this._logger.debug("Failed to persist pending welcome flag",o)}}catch(o){this._logger?.debug&&this._logger.debug("Failed to run workspace exclusion cleanup after config change",o)}})()}catch(i){this._logger?.debug?.("configuration change handler failed",i)}}))}catch(n){this._logger?.debug?.("Failed to register configuration watcher",n)}try{this._performanceMode?(this.h=void 0,this.a=null):(this.Q?.("initial"),this.Ee?.())}catch(n){this._logger?.debug?.("initial watcher/refresh setup failed",n)}try{this.Hr?.()}catch{}}ut(){if(this.f)return this.f;try{let t=dt();t&&typeof t.createWatcherManager=="function"&&(this.f=t.createWatcherManager(this))}catch(t){this._logger?.debug?.("Failed to create watcher manager",t)}return this.f}Ur(t){try{let r=this.ut();if(r&&typeof r.handleWorkspaceFoldersChanged=="function"){r.handleWorkspaceFoldersChanged(t);return}let n=(t?.added||[]).map(a=>a.uri).filter(Boolean),i=(t?.removed||[]).map(a=>a.uri).filter(Boolean);if(n.length===0&&i.length===0)return;this.C&&clearTimeout(this.C),this.C=setTimeout(()=>{this.C=null,(async()=>{try{this._logger?.info&&this._logger.info("Workspace folders changed (provider fallback)",{added:n.length,removed:i.length}),await this.checkWorkspaceSize();try{this.clearAllCaches()}catch{}try{this.refreshAll()}catch{}if(this._performanceMode)return;this.Q?.("workspace-change");try{typeof this.wt=="function"&&await this.wt()}catch(a){this._logger?.debug&&this._logger.debug("Failed to reconfigure progressive loading after workspace change",a)}if(this._workspaceIntelligence&&typeof this._workspaceIntelligence.onWorkspaceFoldersChanged=="function"){let a=(f.workspace.workspaceFolders||[]).map(o=>({uri:o.uri}));await this._workspaceIntelligence.onWorkspaceFoldersChanged({added:a,removed:i.map(o=>({uri:o}))})}}catch(a){this._logger?.debug&&this._logger.debug("Workspace folder change handling failed",a)}})()},250)}catch(r){this._logger?.debug&&this._logger.debug("provider._handleWorkspaceFoldersChanged failed",r)}}dr(t=[]){try{if(!Array.isArray(t))return[];let r=new Set;return t.map(n=>String(n||"").replace(/^\./,"").toLowerCase().trim()).filter(n=>!!n).filter(n=>r.has(n)?!1:(r.add(n),!0))}catch{return[]}}gr(t){try{let r=Number(t||0);(!Number.isFinite(r)||r<=0)&&(r=20);let n=Number(S.EXPLORER_DATES_MAX_SMART_WATCHER_PATTERNS||200);return Math.max(1,Math.min(Math.floor(r),Math.max(1,n)))}catch{return 20}}async K(t,r={}){try{try{let s=ht();if(s&&typeof s.K=="function")return await s.K(this,t,r)}catch{}let n=[],i=Math.max(1,r&&r.maxPatterns||1),a=i,o=Array.isArray(t)?t.length:0;for(let s of t||[]){if(a<=0)break;let c=Math.max(1,Math.floor(a/Math.max(1,o))),u=new f.RelativePattern(s,"*.{md,mdx,json,jsonc,yml,yaml,ts,tsx,js,jsx}");if(n.push({pattern:u,label:`root:${s.name}`}),a-=1,a<=0)break;try{let l=typeof this._fileSystem?.readdir=="function"?await this._fileSystem.readdir(s.uri||s.fsPath||s):[],d=(Array.isArray(l)?l:[]).filter(h=>h&&(typeof h.isDirectory=="function"?h.isDirectory():!0)).map(h=>typeof h=="string"?h:h.name||"").filter(Boolean).filter(h=>!["node_modules",".git","dist","build","out"].includes(h));d.sort((h,g)=>(zr.get(g)||0)-(zr.get(h)||0));for(let h of d){if(a<=0)break;let g=new f.RelativePattern(s,`${h}/**/*.{md,mdx,json,jsonc,yml,yaml,ts,tsx,js,jsx}`);n.push({pattern:g,label:`sub:${s.name}/${h}`}),a-=1}}catch{}o-=1}return n.slice(0,i)}catch{return[]}}fe(t,r,n){try{if(!t||typeof r!="string"||typeof n!="function")return null;let i=t[r];if(typeof i=="function")try{return i.call(t,n)}catch{return null}return null}catch{return null}}_getIndexerMaxFiles(){try{return Math.max(100,Number(S.EXPLORER_DATES_INDEXER_MAX_FILES||2e3))}catch{return 2e3}}Q(t="initial"){try{if(this._performanceMode||this.D)return;this.h||(this.h={pending:!0});let r=this.ut();if(r&&typeof r.setupFileWatcher=="function")try{r.setupFileWatcher(t);return}catch(n){this._logger?.debug?.("WatcherManager.setupFileWatcher failed",n)}(async()=>{try{let n=await this.Z();n&&typeof n.setupFileWatcher=="function"&&await n.setupFileWatcher(this,t)}catch(n){this._logger?.debug?.("Fallback setupFileWatcher failed",n)}})()}catch(r){this._logger?.debug?.("provider._setupFileWatcher failed",r)}}async Fe(t,r){try{let n="manual",i=typeof t=="number"?t:typeof r=="number"?r:++this.Je;typeof t=="string"&&(n=t);let a=this.ut();if(a&&typeof a.Fe=="function")return await a.Fe(i,n);this.Q(n);return}catch(n){this._logger?.debug&&this._logger.debug("provider._initializeSmartWatchers failed",n)}}ot(t={}){try{let r=t&&t.permanent===!0;if(this.f&&typeof this.f.disposeFileWatchers=="function"){try{this.f.disposeFileWatchers({permanent:r})}catch(n){this._logger?.debug?.("watcherManager.disposeFileWatchers failed",n)}this.h=r?null:void 0}else this.s&&typeof this.s.forEach=="function"&&(this.s.forEach(n=>{try{n&&typeof n.dispose=="function"&&n.dispose()}catch{}}),this.s.clear()),this.h=r?null:void 0;if(this._&&this._.size){for(let n of this._.values())clearTimeout(n.timer);this._.clear()}}catch(r){this._logger?.debug?.("provider._disposeFileWatchers failed",r)}}Ee(){try{let t=(()=>{try{return Ar()}catch{return null}})();if(t&&typeof t.setupPeriodicRefresh=="function")try{t.setupPeriodicRefresh(this);return}catch(a){this._logger?.debug?.("adv.setupPeriodicRefresh failed",a)}try{let a=Ir();if(a&&typeof a.setupPeriodicRefresh=="function"){a.setupPeriodicRefresh(this);return}}catch{}let r=f.workspace.getConfiguration("explorerDates"),n=r.get("badgeRefreshInterval",6e4),i=this.F||n;if(this.A=i,this.a&&(clearInterval(this.a),this.a=null),!r.get("showDateDecorations",!0))return;this.a=setInterval(()=>{try{try{this.m.fire(void 0)}catch{}}catch{}},this.A)}catch(t){this._logger?.debug?.("provider._setupPeriodicRefresh failed",t)}}async initializeAdvancedSystems(t){try{let n=await ge().decorationsAdvanced();if(n&&typeof n.initializeAdvancedSystems=="function")return n.initializeAdvancedSystems(this,t);this._logger.info&&this._logger.info("Advanced systems chunk unavailable - skipping advanced initialization")}catch(r){this._logger.error&&this._logger.error("Failed to initialize advanced systems",r)}}async checkWorkspaceSize(){try{let r=await ge().decorationsAdvanced();if(r&&typeof r.performWorkspaceSizeCheck=="function")return r.performWorkspaceSizeCheck(this)}catch(t){this._logger.debug&&this._logger.debug("Delegated checkWorkspaceSize failed",t)}try{let t=require("vscode"),r=await(t.workspace.findFiles?t.workspace.findFiles("**/*",null,100):[]),n=Array.isArray(r)?r.length:0;this.Ge=n;let{WORKSPACE_SCALE_LARGE_THRESHOLD:i,WORKSPACE_SCALE_EXTREME_THRESHOLD:a}=I();this.u=n>=a?"extreme":n>=i?"large":"normal";try{this.Xe(this.Ye(),"workspace-scale-change-fallback")}catch{}return}catch(t){this._logger.debug&&this._logger.debug("performWorkspaceSizeCheck fallback failed",t)}}async provideFileDecoration(t,r){try{await this.Ot&&this.Ot()}catch{}ji();try{if(this.U&&typeof this.U.provideDecoration=="function")try{let n=await this.U.provideDecoration(t,r);return n==null?n:typeof n!="object"?void 0:"badge"in n||"tooltip"in n||"color"in n?n:void 0}catch(n){this._logger?.debug&&this._logger.debug("Decoration helper threw",n);return}}catch(n){this._logger?.debug("Decoration provider helper failed",n)}try{if(this.Oe||(this.Oe=Promise.resolve().then(()=>Ce()).then(n=>{this.U=n.createDecorationProviderHelpers?n.createDecorationProviderHelpers(this):n}).finally(()=>{this.Oe=null})),this.Oe&&await this.Oe,this.U&&typeof this.U.provideDecoration=="function")try{let n=await this.U.provideDecoration(t,r);return n==null?n:typeof n!="object"?void 0:"badge"in n||"tooltip"in n||"color"in n?n:void 0}catch(n){this._logger?.debug&&this._logger.debug("Decoration helper threw",n);return}}catch(n){this._logger?.debug("Failed to load decoration provider chunk",n)}}je(t,r=""){try{if(!t)return{isValid:!1};let n=String(t.fsPath||t.path||"");return n?n.indexOf("\0")!==-1?{isValid:!1}:{isValid:!0}:{isValid:!1}}catch{return{isValid:!1}}}async tr(t){try{let r=String(t.fsPath||t.path||"");if(!r)return!1;let n=r.replace(/\\/g,"/");return["node_modules","/.git/","/dist/"].some(a=>n.includes(a))}catch{return!1}}async rr(t,r){try{return await r()}catch(n){throw n}}Ve(t){try{return String(t.fsPath||t.path||"").replace(/\\/g,"/")}catch{return String(t||"")}}Ot(){try{let t=require("vscode").workspace.getConfiguration("explorerDates"),r=t.get("security.allowTestPaths",!0),n=Array.isArray(t.get("security.allowedExtraPaths",[]))?t.get("security.allowedExtraPaths",[]):[],i=t.get("security.enableBoundaryEnforcement"),a=t.get("security.enforceWorkspaceBoundaries");this.zr=r!==!1;let o=(()=>{try{return require("path")}catch{return null}})(),s=(n||[]).filter(Boolean).map(c=>{try{return o?o.normalize(String(c)):String(c)}catch{return String(c)}});this.qr=s,typeof i=="boolean"?this.Lt=i:typeof a=="boolean"&&(this.Lt=a)}catch(t){this._logger?.debug&&this._logger.debug("Failed to ensure security configuration",t)}}async nr(t,r){try{if(this.G)return this._logger?.debug?.(`Cache bypass enabled - recalculating decoration for: ${r}`),null;if(this._advancedCache)try{let i=await this._advancedCache.get(t);if(i)return this._metrics.cacheHits++,this._logger?.debug?.(`Advanced cache hit for: ${r}`),i}catch(i){this._logger?.debug?.(`Advanced cache error: ${i.message}`)}if(!this.e||typeof this.e.get!="function")return null;let n=this.e.get(t);if(n){if(n.forceRefresh){try{this.e.delete(t)}catch{}this._logger?.debug?.(`Memory cache bypassed (forced refresh) for: ${r}`)}else if(Date.now()-n.timestamp{switch(o){case"enhanced":return{level:o,enableGit:!0,enableProgressiveAnalysis:!0,applyBackgroundLimits:!1,backgroundTooltipMode:"rich",viewportWindowMs:6e4,enableColors:!0};case"standard":return{level:o,enableGit:!0,enableProgressiveAnalysis:!1,applyBackgroundLimits:!0,backgroundTooltipMode:"summary",viewportWindowMs:48e4,enableColors:!0};case"minimal":return{level:o,enableGit:!1,enableProgressiveAnalysis:!1,applyBackgroundLimits:!0,backgroundTooltipMode:"summary",viewportWindowMs:12e4,enableColors:!1};default:return{level:"full",enableGit:!0,enableProgressiveAnalysis:!1,applyBackgroundLimits:!1,backgroundTooltipMode:"rich",viewportWindowMs:Yi,enableColors:!0}}},a=n?i(t):this.P||i(t);if(this.P=a,this.O=a.viewportWindowMs,n&&this._logger?.info?.(`Feature level set to "${t}" (${r})`,{viewportWindowMs:this.O,applyBackgroundLimits:a.applyBackgroundLimits,backgroundTooltipMode:a.backgroundTooltipMode}),this._performanceMode)return this._logger?.info&&this._logger.info("Performance mode active - skipping feature profile application"),n;try{a.applyBackgroundLimits&&typeof this.$r=="function"&&this.$r(r)}catch{}return n}catch(n){return this._logger?.debug&&this._logger.debug("Failed to apply feature level",n),!1}}mt(t){try{let r=Re(ae(t)||"");return this.k.has(r)||this.y.has(r)}catch{return!1}}Y(t,{reason:r="unknown",visible:n=!1}={}){try{let i=Re(ae(t)||""),a=Date.now();if(n)this.k.add(i);else for(this.y.set(i,a);this.y.size>(Number(this.me)||400);){let o=this.y.keys().next().value;if(!o)break;this.y.delete(o)}n?this._metrics.viewportPriorityDecorations=(this._metrics.viewportPriorityDecorations||0)+1:this._metrics.viewportBackgroundDecorations=(this._metrics.viewportBackgroundDecorations||0)+1}catch{}}or(){return!1}sr(t){return!!(t&&(t.code==="ENOENT"||/not found/i.test(t.message||"")))}async Z(){try{return this.ae?this.ae:this.oe?await this.oe:(this.oe=(async()=>{try{let{getFeatureFlagsGlobal:t}=G(),r=t(),n=r?await r.decorationsAdvanced():null;return this.ae=n||null,this.ae}catch(t){return this._logger?.debug&&this._logger.debug("Failed to load decorationsAdvanced chunk",t),this.ae=null,null}finally{this.oe=null}})(),await this.oe)}catch(t){try{this._logger?.debug&&this._logger.debug("provider._getDecorationsAdvancedChunk failed",t)}catch{}return null}}Qt(t,r,n){try{let i=Math.floor((Date.now()-t.getTime())/864e5);return i<=0?"\u2022":i<10?String(i):"\u2022"}catch{return"\u2022"}}gt(t,r="auto"){try{return zi(t,r)}catch{return`${t} bytes`}}lr(t,r,n){try{if(!r||r==="none")return;let i=(()=>{if(!this._isWeb)return!1;try{return!!f.workspace.getConfiguration("explorerDates").get("webDiagnosticsBuiltinColors",!1)}catch{return!1}})(),a=Date.now()-(t instanceof Date?t.getTime():new Date(t).getTime());if(i){let s=new f.ThemeColor("list.warningForeground"),c=new f.ThemeColor("list.deemphasizedForeground"),u=new f.ThemeColor("list.errorForeground");return Lr()&&Ae("web-builtin-color-fallback","info","Web builtin color fallback enabled"),r==="file-type"?s:r==="subtle"?c:a<36e5?s:a<864e5?c:u}if(r==="custom")return a<36e5?new f.ThemeColor("explorerDates.customColor.veryRecent"):a<864e5?new f.ThemeColor("explorerDates.customColor.recent"):new f.ThemeColor("explorerDates.customColor.old");if(r==="recency")return a<36e5?new f.ThemeColor("list.highlightForeground"):a<864e5?new f.ThemeColor("charts.yellow"):new f.ThemeColor("charts.red");let o=Ji();if(r==="file-type"||r==="adaptive"){let s=Qi(n,o);if(s)return s;if(r==="adaptive"&&o)return a<36e5?o.veryRecent:a<864e5?o.recent:o.old}return r==="subtle"&&o?a<36e5?o.subtle:a<6048e5?o.muted:o.emphasis:r==="vibrant"&&o?a<36e5?o.veryRecent:a<864e5?o.recent:o.old:void 0}catch{return}}Br(t){try{let r=t?.scheme||"file";return this._isWeb||r!=="file"}catch{return this._isWeb}}Kr(t){try{if(t?.toString)return t.toString(!0)}catch{}try{let r=t?.scheme||"file",n=t?.path||t?.fsPath||"";return`${r}://${n}`}catch{return String(t||"")}}jr(t,r){try{return`${Or(t,{platform:process.platform})}::${r||"auto"}`}catch{return String(t||"unknown")}}Vr(t){try{let r=this.b.get(t);return r?r.expiresAt&&r.expiresAt=this.Ir){let i=this.b.keys().next().value;i&&this.b.delete(i)}let n=this.b.get(t);if(n&&n.freshness&&Xi(n.freshness,r)>0)return;this.b.set(t,{freshness:r,expiresAt:Date.now()+this.Mr})}catch{}}Xr(t,r,n="auto"){try{let i=String(n||"auto").toLowerCase(),a=t||"unknown",o=`${i}:${a}`;if(this.It.has(o))return;this.It.add(o);let s=i==="git"||i==="github"?"warn":"debug";this._logger?.[s]?.("Freshness source unavailable, falling back to unknown",{reason:a,policy:i,uri:r?ae(r):null})}catch{}}ht(t=""){try{let r=String(t||"");r=r.replace(/\\/g,"/"),r=r.replace(/\/{2,}/g,"/"),r=r.replace(/^\/+/,"");try{r=decodeURIComponent(r)}catch{}return r}catch{return""}}Ne(t,r){try{if(this.z.size>=this.xr){let n=this.z.keys().next().value;n&&this.z.delete(n)}this.z.set(t,r)}catch{}}async He(t){let r=this.Kr(t),n=Date.now(),i=this.z.get(r);if(i&&i.expiresAt&&i.expiresAt>n)return i;let a={timestampMs:null,available:!1,error:null,expiresAt:n+this.We,repoMatched:null,pathAttempted:null};try{let o=f?.extensions?.getExtension?f.extensions.getExtension("vscode.git"):null;if(!o)return this._isWeb&&Ae("git-extension-unavailable-web","info","Git extension not available in web mode - timestamps will use fs.stat fallback"),a.error="git-extension-missing",this.Ne(r,a),a;if(!o.isActive&&typeof o.activate=="function")try{await o.activate()}catch{}let s=o.exports?.getAPI?.(1);if(!s)return a.error="git-api-unavailable",this.Ne(r,a),a;a.available=!0;let c=typeof s.getRepository=="function"?s.getRepository(t):null,u=t?.path||t?.fsPath||"",l=this.ht(u);if(!c&&Array.isArray(s.repositories)&&(c=s.repositories.find(_=>{let M=_?.rootUri?.path||_?.rootUri?.fsPath||"",F=this.ht(M);return F&&l&&l.startsWith(F)})||null),!c||typeof c.log!="function")return a.error="git-repo-unavailable",a.repoMatched=!1,a.expiresAt=n+Math.min(this.We,5e3),this.Ne(r,a),a;a.repoMatched=!0;let d=this.ht(c?.rootUri?.path||c?.rootUri?.fsPath||""),h=d&&l.startsWith(d)?l.slice(d.length).replace(/^\/+/,""):l;a.pathAttempted=h||l||"";let g=await c.log({maxEntries:1,path:a.pathAttempted}),y=Array.isArray(g)?g[0]:null,m=y?.commitDate||y?.authorDate||y?.date||y?.committerDate,D=m?new Date(m).getTime():null;a.author=y?.authorName||y?.author?.name||y?.author||null,a.message=y?.message||y?.subject||null,Number.isFinite(D)?a.timestampMs=D:(a.error="git-log-empty",a.expiresAt=n+Math.min(this.We,5e3))}catch(o){a.error=o?.message?`git-error:${o.message}`:"git-error",a.expiresAt=n+Math.min(this.We,5e3)}return this.Ne(r,a),a}async Wn(t,r){let n=r?.mtime?r.mtime instanceof Date?r.mtime:new Date(r.mtime):null,i=n&&typeof n.getTime=="function"?n.getTime():NaN,a=Number.isFinite(i)?n:null,o=t?.scheme||"file";if(!this.Br(t))return{timestamp:a,source:a?"fs-stat":"none",gitAvailable:!1,gitError:null,repoMatched:null,pathAttempted:null};let s;try{s=await this.He(t)}catch(u){s={timestampMs:null,available:!1,error:u?.message?`git-error:${u.message}`:"git-error",repoMatched:null,pathAttempted:null}}if(s?.timestampMs)return{timestamp:new Date(s.timestampMs),source:"git",gitAvailable:s.available,gitError:s.error,repoMatched:s.repoMatched,pathAttempted:s.pathAttempted};let c=a?"fs-stat":"none";if(a&&o!=="file"){let u=Date.now()-a.getTime();u>=0&&u<=6e4?c="fs-stat-suspect":this._isWeb&&u>6e4&&Ae("web-fs-stat-limitation","info","Web mode timestamps may reflect workspace open time, not actual file modification time. Git extension would provide accurate timestamps if available.")}return this._isWeb&&o!=="file"&&(s?.error||!s?.available)?{timestamp:null,source:"web-unknown",gitAvailable:!1,gitError:s?.error||null,repoMatched:s?.repoMatched??null,pathAttempted:s?.pathAttempted||null}:{timestamp:a,source:c,gitAvailable:s?.available||!1,gitError:s?.error||null,repoMatched:s?.repoMatched??null,pathAttempted:s?.pathAttempted||null}}async pt(t,r,n={}){let i=f.workspace.getConfiguration("explorerDates"),a=n.workspaceKind||(this._isWeb?"web":"desktop"),o=i.get("freshnessSourcePolicy","auto"),s=this.jr(t,o),c=this.Vr(s);if(c)return c;let u=await Gi({uri:t,stat:r,provider:this,config:i,workspaceKind:a});return this.Gr(s,u),u?.source==="unknown"&&this.Xr(u?.reason||"unknown",t,o),u}async Te(t={}){try{let r=t.stat?.mtime||t.stat?.birthtime||new Date;return`Modified: ${(r instanceof Date?r:new Date(r)).toISOString()}`}catch{return""}}clearAllCaches(){try{try{this.e&&typeof this.e.clear=="function"&&this.e.clear()}catch{}try{this.c&&typeof this.c.clear=="function"&&this.c.clear()}catch{}try{this.$&&(this.$.length=0)}catch{}try{this.I&&typeof this.I.clear=="function"&&this.I.clear()}catch{}try{this.Se&&(this.Se.length=0)}catch{}try{this.N&&typeof this.N.clear=="function"&&this.N.clear()}catch{}try{this.Ie&&(this.Ie.length=0)}catch{}try{this._advancedCache&&typeof this._advancedCache.clear=="function"&&this._advancedCache.clear()}catch{}try{this.z&&typeof this.z.clear=="function"&&this.z.clear()}catch{}try{this.b&&typeof this.b.clear=="function"&&this.b.clear()}catch{}}catch(t){this._logger?.debug&&this._logger.debug("clearAllCaches failed",t)}}Me(t){try{if(!this.b||this.b.size===0)return;let r=`${Or(t,{platform:process.platform})}::`;for(let n of this.b.keys())typeof n=="string"&&n.startsWith(r)&&this.b.delete(n)}catch{}}Yr(t={}){try{this.clearAllCaches()}catch{}try{this.refreshAll()}catch{}try{t?.head&&this._logger?.info&&this._logger.info("Git HEAD change detected; caches refreshed",{head:t.head})}catch{}}Hr(){this.Wt||(this.Wt=!0,(async()=>{try{let t=f?.extensions?.getExtension?f.extensions.getExtension("vscode.git"):null;if(!t)return;if(!t.isActive&&typeof t.activate=="function")try{await t.activate()}catch{}let r=t.exports?.getAPI?.(1);if(!r)return;let n=i=>{try{if(!i||!i.state||typeof i.state.onDidChange!="function")return;let a=i.state.HEAD?.commit||i.state.HEAD?.name||null,o=i.state.onDidChange(()=>{let s=i.state.HEAD?.commit||i.state.HEAD?.name||null;s!==a&&(a=s,this.Yr({repo:i,head:s}))});o&&this._e.push(o)}catch{}};if(Array.isArray(r.repositories)&&r.repositories.forEach(i=>n(i)),typeof r.onDidOpenRepository=="function"){let i=r.onDidOpenRepository(a=>n(a));i&&this._e.push(i)}}catch(t){this._logger?.debug?.("Failed to register git HEAD watcher",t)}})())}refreshAll(){try{this.m.fire(void 0),Vi()}catch(t){this._logger?.debug&&this._logger.debug("refreshAll failed",t)}}applyPreviewSettings(t){try{t&&typeof t=="object"?(this.X=t,this._logger?.info&&this._logger.info("Preview settings applied",t)):(this.X=null,this._logger?.info&&this._logger.info("Preview settings cleared"));try{this.clearAllCaches()}catch{}this.refreshAll()}catch(r){this._logger?.debug&&this._logger.debug("applyPreviewSettings failed",r)}}refreshDecoration(t){try{try{this.Me(t)}catch{}this.m.fire(t)}catch(r){this._logger?.debug&&this._logger.debug("refreshDecoration failed",r)}}clearDecoration(t){try{try{this.Me(t)}catch{}let r=t?typeof t=="string"?t:ae(t):"",n=this.Ve?this.Ve(t):ra(r);try{this.e&&typeof this.e.delete=="function"&&this.e.delete(n)}catch{}try{this._advancedCache&&typeof this._advancedCache.delete=="function"&&this._advancedCache.delete(n)}catch{}try{this.m.fire(t)}catch{}}catch(r){this._logger?.debug&&this._logger.debug("clearDecoration failed",r)}}cr({badge:t,tooltip:r,color:n}){try{let i=require("vscode"),a=new i.FileDecoration(String(t||""),r||void 0,n||void 0);try{n&&(a.color=n)}catch{}return a}catch{return{badge:t,tooltip:r,color:n}}}ur(t,r,n,i,a){try{if(this.G)return;if(!this.e||typeof this.e.set!="function"||typeof this.e.size!="number")try{this.e=new Pe}catch{}if(!this.e||typeof this.e.set!="function")return;if(typeof this.e.size=="number"&&this.e.size>this.l)try{this.e.enforceLimit(this.l)}catch{}let o={decoration:r,timestamp:Date.now()};a&&(o.freshness=a),i&&(o.uri=i);try{this.e.set(t,o)}catch{}try{typeof this.ce=="function"&&this.ce()}catch(s){this._logger?.debug?.("monitorCachePressure from store failed",s)}if(this._advancedCache)try{this._advancedCache.set(t,r,{ttl:this.S}),this._logger?.debug?.(`Stored in advanced cache: ${n}`)}catch(s){this._logger?.debug?.(`Failed to store in advanced cache: ${s.message}`)}try{typeof this.le=="function"&&this.le()}catch(s){this._logger?.debug?.("maybeExtendCacheTimeout from store failed",s)}}catch(o){this._logger?.debug?.("storeDecorationInCache failed",o)}}getMetrics(){let t={decorationPool:{allocations:0,reuses:0,reusePercent:"0%"},badgeFlyweight:{allocations:0,reuses:0,reusePercent:"0%"},readableFlyweight:{allocations:0,reuses:0,reusePercent:"0%"}},r=this._metrics?.cacheHits||0,n=this._metrics?.cacheMisses||0,i=r+n>0?(r/(r+n)*100).toFixed(2)+"%":"0.00%";return{totalDecorations:this._metrics?.totalDecorations||0,cacheSize:this.c&&this.c.size||0,cacheHits:r,cacheMisses:n,cacheHitRate:i,workspaceScale:this.u||"unknown",allocationTelemetry:t,performanceTiming:{avgGitBlameMs:this._metrics?.gitBlameCalls?(this._metrics.gitBlameTimeMs/this._metrics.gitBlameCalls).toFixed(1):"0.0",avgFileStatMs:this._metrics?.fileStatCalls?(this._metrics.fileStatTimeMs/this._metrics.fileStatCalls).toFixed(1):"0.0",gitBlameCalls:this._metrics?.gitBlameCalls||0,fileStatCalls:this._metrics?.fileStatCalls||0},cacheDebugging:{cacheNamespace:this.Nr}}}forceRefreshAllDecorations(){try{this._logger?.info&&this._logger.info("\u{1F504} Force refreshing ALL decorations...");try{this.e&&typeof this.e.clear=="function"&&this.e.clear()}catch{}try{this.c&&typeof this.c.clear=="function"&&this.c.clear()}catch{}try{this._advancedCache&&typeof this._advancedCache.clear=="function"&&this._advancedCache.clear()}catch{}try{this.m.fire(void 0)}catch{}this._logger?.info&&this._logger.info("\u{1F504} Triggered global decoration refresh")}catch(t){this._logger?.debug&&this._logger.debug("forceRefreshAllDecorations failed",t)}}startProviderCallMonitoring(){try{if(this.D){this._logger?.debug&&this._logger.debug("startProviderCallMonitoring called after dispose - no-op");return}if(this.Nt){this.Vt=0,this.Re=new Set,this._logger?.info&&this._logger.info("\u{1F4CA} Provider call monitoring restarted (counters reset)");return}this.Nt=!0,this.Vt=0,this.Re=new Set;let t=this.provideFileDecoration.bind(this);this.qe=t,this.provideFileDecoration=async(r,n)=>{try{this.Vt=(this.Vt||0)+1;let i=ae(r)||(r&&typeof r.toString=="function"?r.toString(!0):"unknown");this.Re.add(Re(i)),this._logger?.info&&this._logger.info(`\u{1F50D} Provider called ${this.Vt} times for: ${na(r||i)}`)}catch{}return t(r,n)},this._logger?.info&&this._logger.info("\u{1F4CA} Started provider call monitoring")}catch(t){this._logger?.debug&&this._logger.debug("startProviderCallMonitoring failed",t)}}getProviderCallStats(){try{return{totalCalls:this.Vt||0,uniqueFiles:this.Re?this.Re.size:0,calledFiles:this.Re?Array.from(this.Re):[]}}catch{return{totalCalls:0,uniqueFiles:0,calledFiles:[]}}}async dispose(){if(this.D)return;this.D=!0,this.Be=!0;try{this._telemetryReportTimer&&(clearTimeout(this._telemetryReportTimer),this._telemetryReportTimer=null)}catch{}try{this.a&&(clearInterval(this.a),this.a=null)}catch{}try{if(this.i&&this.i.size){for(let r of this.i)clearTimeout(r);this.i.clear()}this.R=!1,this.ie=!1}catch{}try{this.L&&(clearTimeout(this.L),this.L=null)}catch{}try{this.C&&(clearTimeout(this.C),this.C=null)}catch{}try{try{this.ot({permanent:!0})}catch{}if(this.f&&typeof this.f.disposeFileWatchers=="function")try{this.f.disposeFileWatchers({permanent:!0})}catch{}this.f=null}catch{}try{this.te&&(clearTimeout(this.te),this.te=null)}catch{}try{this.m&&typeof this.m.dispose=="function"&&this.m.dispose()}catch{}try{if(Array.isArray(this.T)){for(let r of this.T)try{r.dispose&&r.dispose()}catch{}this.T.length=0}}catch{}try{if(Array.isArray(this._e)){for(let r of this._e)try{r.dispose&&r.dispose()}catch{}this._e.length=0}}catch{}try{if(Array.isArray(this.v)){for(let r of this.v)try{r.dispose&&r.dispose()}catch{}this.v.length=0}}catch{}let t=async r=>{try{r&&typeof r.dispose=="function"&&await r.dispose()}catch{}};await t(this._advancedCache),await t(this._batchProcessor),await t(this.rt),await t(this.pe),await t(this._workspaceIntelligence),await t(this._smartWatcherFallbackManager),await t(this.Lr),await t(this.Or);try{if(this.s&&typeof this.s.forEach=="function"&&(this.s.forEach(r=>{try{r&&typeof r.dispose=="function"&&r.dispose()}catch{}}),this.s.clear()),this.h&&typeof this.h.dispose=="function"){try{this.h.dispose()}catch{}this.h=void 0}this.d&&typeof this.d.forEach=="function"&&(this.d.forEach(r=>{try{r?.watcher?.dispose&&r.watcher.dispose()}catch{}}),this.d.clear())}catch{}try{this.e&&typeof this.e.clear=="function"&&this.e.clear()}catch{}try{this.c&&typeof this.c.clear=="function"&&this.c.clear()}catch{}try{this.I&&typeof this.I.clear=="function"&&this.I.clear()}catch{}try{this.N&&typeof this.N.clear=="function"&&this.N.clear()}catch{}try{this.lt&&this.lt.clear&&this.lt.clear()}catch{}try{this.ve&&this.ve.length&&(this.ve.length=0)}catch{}try{this._advancedCache=null,this._batchProcessor=null,this.rt=null,this.pe=null,this._workspaceIntelligence=null}catch{}try{this.Le&&typeof this.Le.dispose=="function"&&(this.Le.dispose(),this.Le=null)}catch{}try{this.w&&typeof this.w.dispose=="function"&&(this.w.dispose(),this.w=null)}catch{}try{if(this.qe&&typeof this.qe=="function"){try{this.provideFileDecoration=this.qe}catch{}this.qe=null,this.Nt=!1,this.Vt=0,this.Re=new Set}}catch{}try{this.ae=null,this.oe=null}catch{}this._logger?.info&&this._logger.info("FileDateDecorationProvider disposed")}};module.exports={FileDateDecorationProviderImpl:xe,FileDateDecorationProvider:xe}; diff --git a/dist/chunks/fileDateProviderImplExport.js b/dist/chunks/fileDateProviderImplExport.js index 4ae9806..db8ab8c 100644 --- a/dist/chunks/fileDateProviderImplExport.js +++ b/dist/chunks/fileDateProviderImplExport.js @@ -1,4 +1,4 @@ -var Yr=Object.create;var yt=Object.defineProperty;var Zr=Object.getOwnPropertyDescriptor;var Jr=Object.getOwnPropertyNames;var Qr=Object.getPrototypeOf,en=Object.prototype.hasOwnProperty;var _=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var tn=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Jr(t))!en.call(e,i)&&i!==r&&yt(e,i,{get:()=>t[i],enumerable:!(n=Zr(t,i))||n.enumerable});return e};var R=(e,t,r)=>(r=e!=null?Yr(Qr(e)):{},tn(t||!e||!e.__esModule?yt(r,"default",{value:e,enumerable:!0}):r,e));var J=_((ga,_t)=>{var bt=require("vscode");function rn(){try{let e=bt?.env?.uiKind,t=bt?.UIKind?.Web;return e!==void 0&&t!==void 0&&e===t}catch{return!1}}_t.exports={isWebEnvironment:rn}});var ce=_((exports,module)=>{var chunk=null;try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){try{chunk=dynamicRequire("../chunks/utils-shared-chunk")}catch{}try{chunk||(chunk=dynamicRequire("./chunks/utils-shared-chunk"))}catch{}try{chunk||(chunk=dynamicRequire("../chunks/path-utils-chunk"))}catch{}try{chunk||(chunk=dynamicRequire("./chunks/path-utils-chunk"))}catch{}}}catch{}if(chunk&&chunk.normalizePath)module.exports={normalizePath:chunk.normalizePath,getFileName:chunk.getFileName,getExtension:chunk.getExtension,getDirectory:chunk.getDirectory,joinPath:chunk.joinPath,getCacheKey:chunk.getCacheKey,getUriPath:chunk.getUriPath,getRelativePath:chunk.getRelativePath};else{let e=function(u=""){return u?u.replace(/\\/g,"/"):""},t=function(u=""){let l=e(u);return l?l.split("/").filter(Boolean):[]},r=function(u=""){let l=t(u);return l.length?l[l.length-1]:""},n=function(u=""){let l=r(u),d=l.lastIndexOf(".");return d<=0?"":l.substring(d).toLowerCase()},i=function(u=""){let l=e(u),d=l.lastIndexOf("/");return d===-1?"":l.substring(0,d)},a=function(...u){return e(u.filter(Boolean).join("/")).replace(/\/+/g,"/")},o=function(u=""){return e(u).toLowerCase()},s=function(u=""){if(!u)return"";if(typeof u=="string")return u;if(typeof u.fsPath=="string"&&u.fsPath.length>0)return u.fsPath;if(typeof u.path=="string"&&u.path.length>0)return u.path;if(typeof u.toString=="function")try{return u.toString(!0)}catch{return u.toString()}return String(u)},c=function(u="",l=""){let d=e(u),h=e(l);return d&&h.startsWith(d)?h.substring(d.length).replace(/^\/+/,""):h};normalizePath=e,getSegments=t,getFileName=r,getExtension=n,getDirectory=i,joinPath=a,getCacheKey=o,getUriPath=s,getRelativePath=c,module.exports={normalizePath:e,getFileName:r,getExtension:n,getDirectory:i,joinPath:a,getCacheKey:o,getUriPath:s,getRelativePath:c}}var normalizePath,getSegments,getFileName,getExtension,getDirectory,joinPath,getCacheKey,getUriPath,getRelativePath});var kt=_((ma,wt)=>{var ye=class extends Error{constructor(t,r,n={}){super(r),this.code=t,this.context=n,this.name="ExtensionError"}},Et={FILE_PERMISSION_DENIED:"FILE_PERMISSION_DENIED",WORKSPACE_TOO_LARGE:"WORKSPACE_TOO_LARGE",CHUNK_LOAD_FAILED:"CHUNK_LOAD_FAILED"};function nn(e){if(!e)return!1;let t=e.code||e?.name;return["EACCES","EPERM","EROFS","NoPermissions"].includes(t)}var Ue=class extends ye{constructor(t,r,n={}){let{recoverable:i=!0,context:a={}}=n;super(Et.CHUNK_LOAD_FAILED,`Failed to load ${t}: ${r}`,{chunkName:t,recoverable:i,...a}),this.name="ChunkLoadError",this.chunkName=t,this.recoverable=i}};function an(e,t,r={}){let n=require("vscode"),{userFacing:i=!0}=r,a=t?.recoverable??!0;i&&!a&&n.window.showErrorMessage(`Explorer Dates: ${e} feature unavailable. Please reinstall or rebuild the extension.`)}wt.exports={ExtensionError:ye,ERROR_CODES:Et,isPermissionError:nn,ChunkLoadError:Ue,handleChunkFailure:an}});var $e=_((pa,Tt)=>{var Dt="EXPLORER_DATES_FORCE_VSCODE_FS";function Ct(e,t=process.env){return String(t?.[e]||"")==="1"}function be(e){let t=e&&typeof e=="object"?e:null,r=String(t?.scheme||(typeof e=="string"&&/^[a-z][a-z0-9+.-]*:/i.test(e)?e.split(":",1)[0]:"file")).toLowerCase(),n=String(t?.authority||""),i=t?.path||t?.fsPath||(typeof e=="string"?e.replace(/^[a-z][a-z0-9+.-]*:\/\//i,""):"");return{scheme:r,authority:n,path:String(i||"")}}function on({uri:e,isWeb:t=!1,remoteName:r="",forceWorkspaceFs:n=Ct(Dt)}={}){let i=be(e),a=i.scheme!=="file",o=!!t,s=!!r,c=!!(n||o||s||a);return{scheme:i.scheme,authority:i.authority,isFileScheme:!a,isVirtual:a,isBrowser:o,isRemote:s,forceWorkspaceFs:!!n,filesystem:c?"workspace.fs":"node.fs",provider:a?i.scheme==="github"||i.scheme==="vscode-vfs"?"github":"virtual":"filesystem"}}function St({uri:e,platform:t=process.platform,caseSensitive:r}={}){return typeof r=="boolean"?r:be(e).scheme!=="file"?!0:t!=="win32"}function sn(e,t={}){let r=be(e),n=r.path.replace(/\\/g,"/").replace(/\/+/g,"/"),i=`${r.scheme}://${r.authority}${n}`;return St({uri:e,...t})?i:i.toLowerCase()}function He(e){if(e instanceof Date){let t=e.getTime();return Number.isFinite(t)?t:null}if(typeof e=="number")return Number.isFinite(e)?e:null;if(typeof e=="string"&&e.trim()){let t=Date.parse(e);return Number.isFinite(t)?t:null}return null}function cn(e){if(!e||typeof e!="object")return null;let t=He(e.mtime),r=He(e.ctime);return{...e,mtimeMs:t,ctimeMs:r}}Tt.exports={FORCE_WORKSPACE_FS_ENV:Dt,envFlag:Ct,getUriParts:be,getEnvironmentContract:on,isCaseSensitive:St,resourceIdentity:sn,normalizeTimestamp:He,normalizeStat:cn}});var K=_((ya,At)=>{function ln(){return typeof Date=="function"&&Date.now?Date.now():16409952e5}function vt(e){return!!(e&&typeof e=="object"&&typeof e.getTime=="function")}function un(e){if(vt(e))return e;if(typeof e=="number")return new Date(e);if(typeof e=="string"){let t=Date.parse(e);return isNaN(t)?new Date:new Date(t)}return new Date}function B(e=""){return e?e.replace(/\\/g,"/"):""}function hn(e=""){let t=B(e);return t?t.split("/").filter(Boolean):[]}function Ft(e=""){let t=hn(e);return t.length?t[t.length-1]:""}function dn(e=""){let t=Ft(e),r=t.lastIndexOf(".");return r<=0?"":t.substring(r).toLowerCase()}function fn(e=""){let t=B(e),r=t.lastIndexOf("/");return r===-1?"":t.substring(0,r)}function gn(...e){return B(e.filter(Boolean).join("/")).replace(/\/+/g,"/")}function mn(e=""){return B(e).toLowerCase()}function pn(e=""){if(!e)return"";if(typeof e=="string")return e;if(typeof e.fsPath=="string"&&e.fsPath.length>0)return e.fsPath;if(typeof e.path=="string"&&e.path.length>0)return e.path;if(typeof e.toString=="function")try{return e.toString(!0)}catch{return e.toString()}return String(e)}function yn(e="",t=""){let r=B(e),n=B(t);return r&&n.startsWith(r)?n.substring(r.length).replace(/^\/+/,""):n}At.exports={ensureDate:un,isDateLike:vt,getCurrentTimestamp:ln,normalizePath:B,getFileName:Ft,getExtension:dn,getDirectory:fn,joinPath:gn,getCacheKey:mn,getUriPath:pn,getRelativePath:yn}});var Rt=_((exports,module)=>{var chunk=null;try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){try{chunk=dynamicRequire("../chunks/utils-shared-chunk")}catch{}try{chunk||(chunk=dynamicRequire("./chunks/utils-shared-chunk"))}catch{}try{chunk||(chunk=dynamicRequire("../chunks/date-helpers-chunk"))}catch{}try{chunk||(chunk=dynamicRequire("./chunks/date-helpers-chunk"))}catch{}}}catch{}if(chunk&&(chunk.ensureDate||chunk.isDateLike||chunk.getCurrentTimestamp))module.exports={ensureDate:chunk.ensureDate,isDateLike:chunk.isDateLike,getCurrentTimestamp:chunk.getCurrentTimestamp};else{let e=function(){return typeof Date=="function"&&Date.now?Date.now():16409952e5},t=function(n){return!!(n&&typeof n=="object"&&typeof n.getTime=="function")},r=function(n){if(t(n))return n;if(typeof n=="number")return new Date(n);if(typeof n=="string"){let i=Date.parse(n);return isNaN(i)?new Date:new Date(i)}return new Date};getCurrentTimestamp=e,isDateLike=t,ensureDate=r,module.exports={ensureDate:r,isDateLike:t,getCurrentTimestamp:e}}var getCurrentTimestamp,isDateLike,ensureDate});var Be=_((ba,It)=>{var C=require("vscode"),{isWebEnvironment:Pt}=J(),{normalizePath:bn}=ce(),{ExtensionError:_n,ERROR_CODES:En,isPermissionError:wn}=kt(),{getEnvironmentContract:kn,normalizeStat:Dn,FORCE_WORKSPACE_FS_ENV:Cn}=$e(),Q;try{let e=K();e&&(Q=e.ensureDate)}catch{}Q||(Q=Rt().ensureDate);var xt=typeof process<"u"&&process.env?process.env:{},Mt=xt.VSCODE_WEB==="true"||Pt(),T=null;if(!Mt)try{T=require("fs").promises}catch{T=null}var _e=class{constructor(){this.isWeb=Mt||Pt()}q(t){try{return kn({uri:this._(t),isWeb:this.isWeb,remoteName:C.env?.remoteName,forceWorkspaceFs:xt[Cn]==="1"}).filesystem==="workspace.fs"}catch{return!1}}x(t){if(!t)return"";if(typeof t=="string")return t;if(t&&typeof t=="object"&&typeof t.fsPath=="string")return t.fsPath;if(t&&typeof t=="object"&&typeof t.path=="string")return t.path;if(typeof t=="object"){if(typeof t.fsPath=="string")return t.fsPath;if(typeof t.path=="string")return t.path}return String(t)}_(t){if(t&&typeof t=="object"&&typeof t.scheme=="string"&&typeof t.path=="string")return t;if(typeof t=="string"){let r=t.trim(),n=/^[a-zA-Z]:[\\/]/.test(r);if(/^[a-zA-Z][a-zA-Z0-9+.-]*:/.test(r)&&!n){let a=C.Uri.parse(r);if(a.scheme&&a.scheme!=="file")return a}return C.Uri.file(t)}if(t&&typeof t=="object"){if(t.uri&&t.uri!==t)try{return this._(t.uri)}catch{}if(this.isWeb&&typeof t.scheme=="string"&&typeof t.path=="string")return C.Uri.from({scheme:t.scheme,authority:t.authority||"",path:t.path||"",query:t.query||"",fragment:t.fragment||""});if(typeof t.fsPath=="string"&&t.fsPath.length>0)return C.Uri.file(t.fsPath);if(typeof t.path=="string"&&t.path.length>0)return this.isWeb&&typeof t.scheme=="string"&&t.scheme!=="file"?C.Uri.from({scheme:t.scheme,authority:t.authority||"",path:t.path,query:t.query||"",fragment:t.fragment||""}):C.Uri.file(t.path);if(typeof t.href=="string"&&t.href.length>0)return C.Uri.parse(t.href);if(typeof t.scheme=="string")return C.Uri.from({scheme:t.scheme,authority:t.authority||"",path:t.path||t.fsPath||"",query:t.query||"",fragment:t.fragment||""});if(typeof t.toString=="function")try{let r=t.toString(!0);if(r&&r!=="[object Object]")return C.Uri.parse(r)}catch{let r=t.toString();if(r&&r!=="[object Object]")return C.Uri.parse(r)}}throw new Error(`Unsupported target type: ${typeof t}`)}async stat(t){let r=this.q(t);if(!this.isWeb&&T&&!r)return T.stat(this.x(t));let n=this._(t),i=await C.workspace.fs.stat(n),a=Dn(i);return{...a,mtime:a.mtimeMs===null?Q(i.mtime):new Date(a.mtimeMs),ctime:a.ctimeMs===null?Q(i.ctime):new Date(a.ctimeMs),birthtime:a.ctimeMs===null?Q(i.ctime):new Date(a.ctimeMs),isFile:()=>i.type===C.FileType.File,isDirectory:()=>i.type===C.FileType.Directory}}async readFile(t,r="utf8"){let n=this.q(t);if(!this.isWeb&&T&&!n)return T.readFile(this.x(t),r);let i=this._(t),a=await C.workspace.fs.readFile(i);return r===null||r==="binary"?a:new TextDecoder(r).decode(a)}async writeFile(t,r,n="utf8"){let i=this.x(t);try{let a=this.q(t);if(!this.isWeb&&T&&!a)return T.writeFile(i,r,n);let o=this._(t),s=typeof r=="string"?new TextEncoder().encode(r):r;await C.workspace.fs.writeFile(o,s)}catch(a){this.ze("write file",i,a)}}async rename(t,r,n={overwrite:!1}){let i=this.x(t),a=this.x(r);try{let o=this.q(t)||this.q(r);if(!this.isWeb&&T&&!o)return T.rename(i,a);if(typeof C.workspace.fs.rename=="function")await C.workspace.fs.rename(this._(t),this._(r),n);else if(this._(t).scheme==="file"&&this._(r).scheme==="file")await(T||require("fs").promises).rename(i,a);else throw new Error("The active filesystem provider cannot rename report output.")}catch(o){this.ze("rename file",`${i} -> ${a}`,o)}}async mkdir(t,r={recursive:!0}){let n=this.x(t);try{let i=this.q(t);if(!this.isWeb&&T&&!i)return T.mkdir(n,r);let a=this._(t);await C.workspace.fs.createDirectory(a)}catch(i){this.ze("create directory",n,i)}}async readdir(t,r={withFileTypes:!1}){let n=this.q(t);if(!this.isWeb&&T&&!n)return T.readdir(this.x(t),r);let i=this._(t),a=await C.workspace.fs.readDirectory(i);return r.withFileTypes?a.map(([o,s])=>({name:o,isDirectory:()=>s===C.FileType.Directory,isFile:()=>s===C.FileType.File})):a.map(([o])=>o)}async delete(t,r={recursive:!1}){let n=this.q(t);if(!this.isWeb&&T&&!n){let a=this.x(t);return r.recursive?T.rm?T.rm(a,r):T.rmdir(a,r):T.unlink(a)}let i=this._(t);await C.workspace.fs.delete(i,r)}async exists(t){try{return await this.stat(t),!0}catch{return!1}}async ensureDirectory(t){let r=bn(this.x(t));await this.mkdir(r,{recursive:!0})}ze(t,r,n){throw wn(n)?new _n(En.FILE_PERMISSION_DENIED,`Permission denied while attempting to ${t}`,{path:r,code:n.code}):n}},Sn=new _e;It.exports={FileSystemAdapter:_e,fileSystem:Sn}});var I=_((_a,Lt)=>{var ee=typeof process<"u"&&process.env?process.env:{},Tn=12e4,vn=1e4,Fn=1440*60*1e3,An=2,Rn=["Ja","Fe","Mr","Ap","My","Jn","Jl","Au","Se","Oc","No","De"],Pn=Number(ee.EXPLORER_DATES_DECORATION_POOL_SIZE||2048),xn=Number(ee.EXPLORER_DATES_FLYWEIGHT_CACHE_SIZE||4096),Mn=Number(ee.EXPLORER_DATES_WORKSPACE_BALANCED_THRESHOLD||15e3),In=Number(ee.EXPLORER_DATES_WORKSPACE_LARGE_THRESHOLD||25e4),Wt=Number(ee.EXPLORER_DATES_WORKSPACE_EXTREME_THRESHOLD||4e5),Wn=Number(ee.EXPLORER_DATES_WORKSPACE_SCAN_MAX_RESULTS||Math.min(Wt+1,50001)),Ln={ADVANCED_CACHE:"explorerDates.advancedCache",ADVANCED_CACHE_METADATA:"explorerDates.advancedCacheMetadata",TEMPLATE_STORE:"explorerDates.templates",WEB_GIT_NOTICE:"explorerDates.webGitNotice"},On="explorerDatesChunks",Nn="__explorerDatesChunks";Lt.exports={DEFAULT_CACHE_TIMEOUT:Tn,DEFAULT_MAX_CACHE_SIZE:vn,DEFAULT_PERSISTENT_CACHE_TTL:Fn,DEFAULT_DECORATION_POOL_SIZE:Pn,DEFAULT_FLYWEIGHT_CACHE_SIZE:xn,MAX_BADGE_LENGTH:An,MONTH_ABBREVIATIONS:Rn,WORKSPACE_SCALE_BALANCED_THRESHOLD:Mn,WORKSPACE_SCALE_LARGE_THRESHOLD:In,WORKSPACE_SCALE_EXTREME_THRESHOLD:Wt,WORKSPACE_SCAN_MAX_RESULTS:Wn,GLOBAL_STATE_KEYS:Ln,WEB_CHUNK_GLOBAL_KEY:On,LEGACY_WEB_CHUNK_GLOBAL_KEY:Nn}});var Ke=_((Ea,Nt)=>{var{MAX_BADGE_LENGTH:Ot}=I();function qn(e=0,t="auto"){let r=typeof e=="number"&&!Number.isNaN(e)?e:0;if(t==="bytes")return`~${r}B`;let n=r/1024;if(t==="kb")return`~${n.toFixed(1)}K`;let i=n/1024;return t==="mb"?`~${i.toFixed(1)}M`:r<1024?`~${r}B`:n<1024?`~${Math.round(n)}K`:`~${i.toFixed(1)}M`}function zn(e){if(e)return e.length>Ot?e.substring(0,Ot):e}Nt.exports={formatFileSize:qn,trimBadge:zn}});var q=_((wa,qt)=>{var te="__explorerDatesLogger",re=class{constructor(){this.we=null}ke(t,r){if(this.we&&typeof this.we[t]=="function")try{return this.we[t](...r)}catch{}switch(t){case"debug":break;case"info":break;case"warn":break;case"error":break;default:break}}debug(...t){return this.ke("debug",t)}info(...t){return this.ke("info",t)}warn(...t){return this.ke("warn",t)}error(...t){return this.ke("error",t)}Jr(t){this.we=t}};function Un(){return typeof global<"u"?(global[te]||(global[te]=new re),global[te]):typeof globalThis<"u"?(globalThis[te]||(globalThis[te]=new re),globalThis[te]):(je||(je=new re),je)}var Ve=class extends re{},je=null;qt.exports={Logger:Ve,getLogger:Un}});var Ge=_((exports,module)=>{var{getLogger}=q(),env=typeof process<"u"&&process.env?process.env:{};function createFallbackVscodeMinimal(){return{workspace:{workspaceFolders:[],getConfiguration:()=>({get:()=>{},async update(){},inspect:()=>({defaultValue:void 0,globalValue:void 0,workspaceValue:void 0,workspaceFolderValue:void 0})})},ConfigurationTarget:{Global:1,Workspace:2,WorkspaceFolder:3}}}function resolveVscodeMinimal(){try{return require("vscode")}catch{return createFallbackVscodeMinimal()}}var MinimalSettingsCoordinator=class{constructor(t={}){this.qt=t.defaultSection||"explorerDates",this.De=new Map,this.dt=new Map,this.Qr=Number(env.EXPLORER_DATES_LOCK_WAIT_WARN_MS||1e3),this._logger=getLogger()}zt(t,r){let i=(this.De.get(t)||Promise.resolve()).then(()=>r()),a=i.catch(()=>{});return this.De.set(t,a),i.finally(()=>{this.De.get(t)===a&&this.De.delete(t)}),i}Ue(t,r){return resolveVscodeMinimal().workspace.getConfiguration(t||void 0,r)}se(t,r){let n=r||this.qt;return n?t.startsWith(`${n}.`)?{section:n,key:t.slice(n.length+1),fullKey:t}:t.includes(".")?{section:void 0,key:t,fullKey:t}:{section:n,key:t,fullKey:`${n}.${t}`}:{section:void 0,key:t,fullKey:t}}async updateSetting(t,r,n={}){return this.zt(this.se(t,n.section).fullKey,async()=>{let i=this.se(t,n.section),a=this.Ue(i.section,n.resource);try{let o=this.Ut(n.scope,n.resource);return await a.update(i.key,r,o),{key:i.fullKey,updated:!0}}catch(o){try{this._logger.warn(`Configuration update failed for ${i.fullKey}: ${o&&o.message}`)}catch{}return{key:i.fullKey,updated:!1,error:o}}})}async applySettings(t,r={}){let n=Array.isArray(t)?t:Object.entries(t).map(([o,s])=>({key:o,value:s})),i=[];for(let o of n)try{i.push(await this.updateSetting(o.key,o.value,r))}catch(s){i.push({key:this.se(o.key,r.section).fullKey,updated:!1,error:s})}let a=i.filter(o=>o&&o.error);if(a.length>0){let o=a.map(c=>`${c.key}: ${c.error&&c.error.message?c.error.message:String(c.error)}`),s=new Error(`Failed to apply ${a.length} setting(s): ${o.join("; ")}`);throw s.details=a,s}return i}Ut(t,r){return t&&t!=="auto"?this.Ht(t)||resolveVscodeMinimal().ConfigurationTarget.Workspace:r?resolveVscodeMinimal().ConfigurationTarget.WorkspaceFolder:resolveVscodeMinimal().workspace.workspaceFolders&&resolveVscodeMinimal().workspace.workspaceFolders.length>0?resolveVscodeMinimal().ConfigurationTarget.Workspace:resolveVscodeMinimal().ConfigurationTarget.Global}Ht(t){switch(t){case"user":return resolveVscodeMinimal().ConfigurationTarget.Global;case"workspace":return resolveVscodeMinimal().ConfigurationTarget.Workspace;case"workspaceFolder":return resolveVscodeMinimal().ConfigurationTarget.WorkspaceFolder;default:return}}getValue(t,r={}){let{section:n,resource:i}=r||{},a=this.se(t,n);return this.Ue(a.section,i).get(a.key)}inspect(t,r={}){let{section:n,resource:i}=r||{},a=this.se(t,n);return this.Ue(a.section,i).inspect(a.key)}async clearSetting(t,r={}){return this.updateSetting(t,void 0,r)}getLockWaitStats(){let t={};for(let[r,n]of this.dt.entries())t[r]={...n};return t}resetLockWaitStats(){this.dt.clear()}},cachedCoordinator=null;function getSettingsCoordinator(options){if(!cachedCoordinator||options&&options.forceNew){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=null;try{e=dynamicRequire("../chunks/settings-coordinator-impl-chunk")}catch{}try{e||(e=dynamicRequire("../chunks/settingsCoordinator-impl-chunk"))}catch{}if(e&&typeof e.createSettingsCoordinatorImpl=="function")return cachedCoordinator=e.createSettingsCoordinatorImpl(options),cachedCoordinator}}catch{}try{let{WEB_CHUNK_GLOBAL_KEY:e,LEGACY_WEB_CHUNK_GLOBAL_KEY:t}=I(),r=typeof globalThis<"u"&&(globalThis[e]||globalThis[t])||null;if(r&&r.settingsCoordinatorImpl&&typeof r.settingsCoordinatorImpl.createSettingsCoordinatorImpl=="function")return cachedCoordinator=r.settingsCoordinatorImpl.createSettingsCoordinatorImpl(options),cachedCoordinator}catch{}cachedCoordinator=new MinimalSettingsCoordinator(options)}return cachedCoordinator}module.exports={getSettingsCoordinator,MinimalSettingsCoordinator}});var Je=_((ka,$t)=>{var{normalizePath:Xe,getUriPath:Hn}=ce(),{getLogger:$n}=q(),le=typeof process<"u"&&process.env?process.env:{},Bn=$n(),ue=240,Ye=255,zt=/[\x00-\x1f\x7f<>:"|?*]/g,Kn=/[\x00-\x1f\x7f<>:"|?*]/,jn=[/\.\./,/\.\.[\\/]/,/[\\/]\.\./,/^\.\.$/,/^\.\.[\\/]/,/[\\/]\.\.$/],Ut=new Set(["CON","PRN","AUX","NUL","COM1","COM2","COM3","COM4","COM5","COM6","COM7","COM8","COM9","LPT1","LPT2","LPT3","LPT4","LPT5","LPT6","LPT7","LPT8","LPT9"]),Ht=new Set([".exe",".scr",".bat",".cmd",".pif",".vbs",".js",".jar",".com",".msi",".dll",".dmg",".pkg",".deb",".rpm"]),Vn=new Set([".js",".jsx",".ts",".tsx",".mjs",".cjs",".py",".rb",".rs",".go",".php",".java",".kt",".swift",".cs",".c",".cpp",".h",".hpp",".html",".css",".scss",".less",".json",".jsonc",".md",".mdx",".txt",".sh",".bash",".yml",".yaml"]),Gn=()=>le.EXPLORER_DATES_TEST_MODE==="1"||le.NODE_ENV==="test"||le.VSCODE_TEST==="1"?"test":le.EXPLORER_DATES_DEV_MODE==="1"||le.NODE_ENV==="development"?"development":"production",ne=class{static hasPathTraversal(t){let r=this.V(t);if(!r||typeof r!="string")return!1;let n=Xe(r);return jn.some(i=>i.test(n))}static hasDangerousChars(t){let r=this.V(t);return!r||typeof r!="string"?!1:Kn.test(r)}static isWindowsReservedName(t){if(!t||typeof t!="string")return!1;let r=t.split(".")[0].toUpperCase();return Ut.has(r)}static isSuspiciousExtension(t,r={}){let{workspaceContext:n=!0}=r;if(!t||typeof t!="string")return!1;let i=t.toLowerCase(),a=i.startsWith(".")?i:`.${i}`;return n&&Vn.has(a)?!1:Ht.has(a)}static isPathTooLong(t){let r=this.V(t);return!r||typeof r!="string"?!1:r.length>ue}static isFilenameTooLong(t){return!t||typeof t!="string"?!1:t.length>Ye}static validatePath(t,r={}){let{allowSuspiciousExtensions:n=!1,allowWindowsReservedNames:i=!1,strictLength:a=!0,workspaceContext:o=!0}=r,s=this.V(t),c=[],u=[];if(!s||typeof s!="string")return{isValid:!1,path:s,issues:["Invalid or empty path"],warnings:[],isSafe:!1};this.hasPathTraversal(s)&&c.push("Path contains directory traversal attempts"),this.hasDangerousChars(s)&&c.push("Path contains dangerous characters"),a&&this.isPathTooLong(s)&&c.push(`Path exceeds maximum length (${ue})`);let l=s.split(/[/\\]/).pop()||"";a&&this.isFilenameTooLong(l)&&c.push(`Filename exceeds maximum length (${Ye})`),!i&&this.isWindowsReservedName(l)&&u.push("Filename is a Windows reserved name");let d=l.includes(".")?l.split(".").pop():"";return!n&&this.isSuspiciousExtension(d,{workspaceContext:o})&&u.push("File extension is potentially suspicious"),{isValid:c.length===0,path:s,filename:l,extension:d,issues:c,warnings:u,isSafe:c.length===0&&u.length===0}}static sanitizePath(t,r={}){let{replacementChar:n="_",preserveExtension:i=!0}=r,a=this.V(t);if(!a||typeof a!="string")return"";a=a.replace(/\x00/g,"");let o=a.startsWith("/"),s=Xe(a).split("/").filter(Boolean),c=[];for(let u of s){if(u===".."){c.length>0&&c.pop();continue}u!=="."&&c.push(u)}if(a=(o?"/":"")+c.join("/"),a=a.replace(zt,n),i){let u=a.split("/"),l=u[u.length-1];if(l&&this.isWindowsReservedName(l)){let d=l.split(".");d[0]=d[0]+"_safe",u[u.length-1]=d.join("."),a=u.join("/")}}return a.length>ue&&(a=a.substring(0,ue),Bn.warn("Path truncated due to length:",a)),a}static isWithinBoundaries(t,r=[]){let n=this.V(t);if(!n||!Array.isArray(r)||r.length===0)return!1;let i=n.split("/").filter(Boolean),a=[];for(let s of i)s===".."?a.length>0&&a.pop():s!=="."&&a.push(s);let o="/"+a.join("/");return r.some(s=>{let c=Xe(s);return o.startsWith(c)})}static validateRegexPattern(t){if(!t||typeof t!="string")return{isValid:!1,issue:"Invalid pattern"};let r=[/\([^)]*\+[^)]*\)\+/,/\([^)]*\*[^)]*\)\*/,/\([^)]*\+[^)]*\)\*/,/\([^)]*\*[^)]*\)\+/,/\+.*\*|{\d+,}.*\*/,/\([^|]*\|[^)]*\)\*/];for(let n of r)if(n.test(t))return{isValid:!1,issue:"Pattern may cause catastrophic backtracking (ReDoS)"};try{return new RegExp(t),{isValid:!0}}catch(n){return{isValid:!1,issue:`Invalid regex syntax: ${n.message}`}}}static V(t){if(!t)return"";if(typeof t=="string")return t;try{return Hn(t)}catch{return String(t)}}},Ze=class{static validateFileUri(t,r=[]){if(!t||typeof t!="object")return{isValid:!1,issue:"Invalid URI object"};if(t.scheme!=="file"&&t.scheme!=="vscode-vfs")return{isValid:!1,issue:`Unsupported URI scheme: ${t.scheme}`};let n=ne.validatePath(t);return n.isValid?r.length>0&&!ne.isWithinBoundaries(t,r)?{isValid:!1,issue:"Path is outside allowed workspace boundaries"}:{isValid:!0,warnings:n.warnings}:{isValid:!1,issue:`Path validation failed: ${n.issues.join(", ")}`}}static validateExclusionPatterns(t){if(!Array.isArray(t))return{isValid:!1,issue:"Patterns must be an array"};let r=[],n=[];for(let i of t){if(typeof i!="string"){n.push(`Invalid pattern type: ${typeof i}`);continue}let a=i.replace(/\./g,"\\.").replace(/\*/g,".*").replace(/\?/g,"."),o=ne.validateRegexPattern(a);r.push({pattern:i,isValid:o.isValid,issue:o.issue}),o.isValid||n.push(`Pattern "${i}": ${o.issue}`)}return{isValid:n.length===0,results:r,issues:n}}};$t.exports={SecurityValidator:ne,SecureFileOperations:Ze,detectSecurityEnvironment:Gn,MAX_SAFE_PATH_LENGTH:ue,MAX_SAFE_FILENAME_LENGTH:Ye,DANGEROUS_PATH_CHARS:zt,WINDOWS_RESERVED_NAMES:Array.from(Ut),SUSPICIOUS_EXTENSIONS:Array.from(Ht)}});var he=_((Da,Vt)=>{var Kt=typeof process<"u"&&process.env?process.env:{},Bt="[ExplorerDates][WebDiag]",Qe="__explorerDatesWebDiagnostics",Ee;function Xn(){try{let e=require("vscode");return e?.env?.uiKind===e?.UIKind?.Web}catch{return Kt.VSCODE_WEB==="true"}}function P(){return Ee!==void 0||(Ee=Kt.EXPLORER_DATES_WEB_DIAG==="1"||Xn()),Ee}function jt(){return{enabled:P(),logs:[],logOnce:new Set,commandsRegistered:new Set,commandsInvoked:[],errors:[],chunkLoads:[],provider:{created:!1,registered:!1,hydrated:!1,decorationCalls:0,refreshCalls:0,lastEvent:null}}}var Yn=jt();function x(){return typeof globalThis<"u"?(globalThis[Qe]||(globalThis[Qe]=jt()),globalThis[Qe]):Yn}function Zn(e){try{return JSON.stringify(e)}catch{return String(e)}}function W(e,t,r){if(!P())return;let n=x(),i={ts:new Date().toISOString(),level:e,message:t,meta:r||null};n.logs.push(i),n.logs.length>400&&n.logs.shift();let a=r?`${Bt} ${t} ${Zn(r)}`:`${Bt} ${t}`,o=console[e]||console.info;try{o(a)}catch{}}function Jn(e,t,r,n){if(!P())return;let i=x();i.logOnce.has(e)||(i.logOnce.add(e),W(t,r,n))}function Qn(e){if(!P())return;x().commandsRegistered.add(e),W("info","Command registered",{commandId:e})}function ei(e){if(!P())return;x().commandsInvoked.push({commandId:e,ts:Date.now()}),W("info","Command invoked",{commandId:e})}function ti(e,t,r){P()&&(t?W("info","Command completed",{commandId:e}):(W("error","Command failed",{commandId:e,error:r?.message,stack:r?.stack}),x().errors.push({commandId:e,error:r?.message,stack:r?.stack})))}function ri(e,t,r){if(!P())return;x().chunkLoads.push({chunkName:e,stage:t,ts:Date.now(),error:r?r.message||String(r):null}),W(r?"warn":"info",`Chunk ${t}`,{chunkName:e,error:r?.message})}function ni(e,t){if(!P())return;let r=x();r.provider.lastEvent={event:e,ts:Date.now(),meta:t||null},e==="created"&&(r.provider.created=!0),e==="registered"&&(r.provider.registered=!0),e==="hydrated"&&(r.provider.hydrated=!0),W("info",`Provider ${e}`,t)}function ii(){if(!P())return;let e=x();e.provider.decorationCalls+=1,e.provider.decorationCalls<=3&&W("info","Decoration request observed",{count:e.provider.decorationCalls})}function ai(){if(!P())return;let e=x();e.provider.refreshCalls+=1}Vt.exports={isWebDiagnosticsEnabled:P,getWebDiagnosticsState:x,diagLog:W,diagLogOnce:Jn,recordCommandRegistration:Qn,recordCommandInvocation:ei,recordCommandResult:ti,recordChunkEvent:ri,recordProviderEvent:ni,recordDecorationCall:ii,recordRefreshCall:ai}});var it=_((Ca,er)=>{var we=require("vscode"),{normalizePath:rt,getRelativePath:oi}=ce(),{diagLogOnce:si}=he(),{normalizeTimestamp:de,resourceIdentity:ci}=$e(),li={unknown:0,github:1,git:2,fs:3},tt={low:1,medium:2,high:3};function L(e,t,r){try{return e?.get?e.get(t,r):r}catch{return r}}function ui(e){return{nowMinutes:Number(L(e,"freshnessBucketMinutesNow",60))||60,todayHours:Number(L(e,"freshnessBucketHoursToday",24))||24,twoDays:Number(L(e,"freshnessBucketDaysTwo",2))||2,oneWeek:Number(L(e,"freshnessBucketDaysWeek",7))||7}}function Gt(e,t){if(!Number.isFinite(e)||e<0)return"unknown";let r=t.nowMinutes*60*1e3,n=t.todayHours*60*60*1e3,i=t.twoDays*24*60*60*1e3,a=t.oneWeek*24*60*60*1e3;return e<=r?"now":e<=n?"today":e<=i?"2d":e<=a?"1w":"stale"}function Xt(e){switch(e){case"now":return"now";case"today":return"today";case"2d":return"2d";case"1w":return"1w";case"stale":return"stale";default:return"unknown"}}function Yt(e){switch(e){case"fs":return"Filesystem";case"git":return"Git";case"github":return"GitHub";default:return"Unknown"}}function Zt(e){switch(e){case"now":return"!!";case"today":return"T";case"2d":return"2d";case"1w":return"1w";case"stale":return"~~";default:return"?"}}function hi(e,t,r){let n=!!L(r,"freshnessShowUnknown",!0);if(e==="unknown"||t==="unknown")return n?"?":null;let i=Zt(e);return!i||i==="unknown"?n?"?":null:i}function di(e){try{let t=de(e);return t===null?null:new Date(t).toISOString().replace("T"," ").replace("Z","")}catch{return null}}function fi(e,t){if(!e)return;let r=L(t,"freshnessTooltipVerbosity","full"),n=L(t,"badge.sourceLabelMode","auto"),i=[],a=Xt(e.bucket),o=Yt(e.source);if(i.push(`Freshness: ${a}`),e.exactTimestamp){let u=di(e.exactTimestamp);u&&i.push(`Exact time: ${u}`)}let s=e.source==="fs"&&e.confidence==="high";return(n==="always"||n!=="never"&&!s||n!=="never"&&r==="full")&&i.push(`Source: ${o}`),e.author&&i.push(`Author: ${e.author}`),e.message&&i.push(`Message: ${e.message}`),i.push(`Confidence: ${e.confidence}`),e.reason&&r==="full"&&i.push(`Reason: ${e.reason}`),i.join(` -`)}function gi(e,t,r){if(!Number.isFinite(t)||t<=0)return!1;let n=300*1e3;if(t>r+n)return!1;if(e==="file")return!0;let i=r-t,a=300*1e3,o=365*24*60*60*1e3*10;return!(io)}function nt({source:e,timestampMs:t,author:r,message:n,confidence:i,reason:a},o){if(!Number.isFinite(t))return{bucket:"unknown",source:e||"unknown",confidence:i||"low",reason:a||"no-timestamp"};let s=ui(o),c=Date.now()-t;return{bucket:Gt(c,s),source:e,exactTimestamp:t,author:r||void 0,message:n||void 0,confidence:i,reason:a||void 0}}async function mi(e,t,r){let n=e?.scheme||"file",i=!!L(r,"freshnessAllowVirtualFs",!1);if(n!=="file"&&!i)return{freshness:null,reason:"fs-virtual-disabled"};let a=t?.mtimeMs??de(t?.mtime),o=Date.now();return Number.isFinite(a)?gi(n,a,o)?{freshness:nt({source:"fs",timestampMs:a,confidence:n==="file"?"high":"medium",reason:n==="file"?"fs-trust-high":"fs-trust-medium"},r),reason:null}:{freshness:null,reason:"fs-mtime-untrusted"}:{freshness:null,reason:"fs-mtime-missing"}}async function pi(e,t,r){if(!t||typeof t.He!="function")return{freshness:null,reason:"git-provider-missing"};let n;try{n=await t.He(e)}catch(o){return{freshness:null,reason:`git-error:${o?.message||"unknown"}`}}let i=de(n?.timestampMs);return i===null||i<=0?{freshness:null,reason:n?.error||"git-no-timestamp"}:{freshness:nt({source:"git",timestampMs:i,author:n?.author||void 0,message:n?.message||void 0,confidence:"medium",reason:"git-recency"},r),reason:null}}function Jt(e){if(!e||(e.scheme||"")!=="github")return null;let n=rt(e.path||"").replace(/^\/+/,"").split("/").filter(Boolean);if(n.length<2)return null;let i=n[0],a=n[1],o=n.slice(2).join("/"),s=new URLSearchParams(e.query||""),c=s.get("ref")||s.get("branch")||"HEAD";return{owner:i,repo:a,filePath:o,ref:c}}function yi(e){let t=(e||"").indexOf("+");if(t===-1)return"HEAD";let r=e.slice(t+1);try{let n;if(typeof TextDecoder<"u"){let o=new Uint8Array(r.length/2);for(let s=0;s0)return a}catch{}return"HEAD"}function Qt(e){if(!e||e.scheme!=="vscode-vfs"||!String(e.authority||"").startsWith("github"))return null;let r=rt(e.path||"").replace(/^\/+/,"").split("/").filter(Boolean);if(r.length<2)return null;let n=r[0],i=r[1],a=r.slice(2).join("/"),o=yi(e.authority||"");return{owner:n,repo:i,filePath:a,ref:o}}function bi(e){try{let t=we.workspace.workspaceFolders||[];for(let r of t){let n=r?.uri?.scheme;if(n==="github"){let i=Jt(r.uri);if(!i)continue;let a=oi(r.uri.path||"",e?.path||"");return{...i,filePath:a}}if(n==="vscode-vfs"&&String(r?.uri?.authority||"").startsWith("github")){let i=Qt(r.uri);if(!i)continue;let o=rt(e?.path||"").replace(/^\/+/,"").split("/").filter(Boolean).slice(2).join("/");if(!o)continue;return{...i,filePath:o}}}}catch{}return null}async function _i(e,t){let r=Jt(e)||Qt(e)||bi(e);if(!r||!r.owner||!r.repo||!r.filePath)return{freshness:null,reason:"github-context-missing"};let n=`${r.owner}/${r.repo}@${r.ref}:${r.filePath}`,i=`https://api.github.com/repos/${r.owner}/${r.repo}/commits?path=${encodeURIComponent(r.filePath)}&sha=${encodeURIComponent(r.ref)}&per_page=1`,a={Accept:"application/vnd.github+json"};try{let y=we?.authentication&&typeof we.authentication.getSession=="function"?await we.authentication.getSession("github",["repo"],{createIfNone:!1}):null;y?.accessToken&&(a.Authorization=`Bearer ${y.accessToken}`)}catch{}if(typeof fetch!="function")return{freshness:null,reason:"github-fetch-unavailable"};let o;try{o=await fetch(i,{headers:a})}catch(y){return{freshness:null,reason:`github-fetch-error:${y?.message||"unknown"}`}}if(!o||!o.ok)return{freshness:null,reason:o?`github-http-${o.status}`:"github-no-response"};let s;try{s=await o.json()}catch{return{freshness:null,reason:"github-json-error"}}let c=Array.isArray(s)?s[0]:null,u=c?.commit||null,l=u?.author?.name||c?.author?.login||void 0,d=u?.message||void 0,h=de(u?.author?.date);return h===null?{freshness:null,reason:"github-no-timestamp"}:{freshness:nt({source:"github",timestampMs:h,author:l,message:d,confidence:"medium",reason:"github-commit"},t),reason:null,cacheKey:n}}function et(e,t){return!e||e==="auto"?!0:e==="unknown"?t==="unknown":e===t}async function Ei({uri:e,stat:t,provider:r,config:n,workspaceKind:i}){let a=e?.scheme||"file",o=L(n,"freshnessSourcePolicy","auto"),s=[],c=Date.now();if(et(o,"fs")){let u=await mi(e,t,n);if(s.push({source:"fs",reason:u.reason||null}),u.freshness)return{...u.freshness,attempts:s}}if(et(o,"git")){let u=await pi(e,r,n);if(s.push({source:"git",reason:u.reason||null}),u.freshness)return{...u.freshness,attempts:s}}if(et(o,"github")){let u=await _i(e,n);if(s.push({source:"github",reason:u.reason||null,cacheKey:u.cacheKey||null}),u.freshness)return{...u.freshness,attempts:s}}return si("freshness-unknown","info","No trustworthy freshness source available",{scheme:a,workspaceKind:i||"unknown",attempts:s}),{bucket:"unknown",source:"unknown",confidence:"low",reason:"no-source",attempts:s,resolvedAt:c}}function wi(e,t){if(!e)return-1;if(!t)return 1;let r=tt[e.confidence]||0,n=tt[t.confidence]||0;if(r!==n)return r-n;let i=Number(e.exactTimestamp||0),a=Number(t.exactTimestamp||0);return i-a}er.exports={resolveFreshness:Ei,formatBadge:hi,formatTooltip:fi,bucketFromAge:Gt,formatBucketLabel:Xt,formatBadgeAge:Zt,formatSourceLabel:Yt,compareFreshness:wi,SOURCE_RANK:li,CONFIDENCE_RANK:tt,normalizeTimestamp:de,resourceIdentity:ci}});var rr=_((Sa,tr)=>{var{normalizePath:ki}=ce(),ke="__root__",at=class{constructor(){this.g=new Map,this.M=new Map,this.o=0}get size(){return this.o}get bucketCount(){return this.g.size}clear(){this.g.clear(),this.M.clear(),this.o=0}get(t){if(!t)return;let r=this.M.get(t);if(!r)return;let n=this.g.get(r);if(!n){this.M.delete(t);return}return n.lastAccess=Date.now(),n.entries.get(t)}set(t,r,n={}){if(!t)return;let i=n.folderKey||this.$t(t),a=this.Bt(i),o=a.entries.has(t);a.entries.set(t,r),a.lastAccess=Date.now(),o||this.o++,this.M.set(t,i)}delete(t){if(!t)return!1;let r=this.M.get(t);if(!r)return!1;let n=this.g.get(r);if(!n)return this.M.delete(t),!1;let i=n.entries.delete(t);return i&&(this.o=Math.max(0,this.o-1),n.entries.size===0&&this.g.delete(r)),this.M.delete(t),i}*entries(){for(let t of this.g.values())yield*t.entries.entries()}*keys(){for(let t of this.g.values())yield*t.entries.keys()}*values(){for(let t of this.g.values())yield*t.entries.values()}[Symbol.iterator](){return this.entries()}enforceLimit(t=0,r){if(!t||this.o<=t)return 0;let n=Math.max(Math.floor(t*.2),this.o-t,1),i=0,a=Array.from(this.g.entries()).map(([o,s])=>({folderKey:o,bucket:s}));a.sort((o,s)=>(o.bucket.lastAccess||0)-(s.bucket.lastAccess||0));for(let{folderKey:o,bucket:s}of a){if(i>=n)break;if(!s.entries.size){this.g.delete(o);continue}let c=s.entries.size,u=n-i;if(c<=u){i+=this.Kt(o,s);continue}let l=Array.from(s.entries.entries());l.sort((h,g)=>(h[1].timestamp||0)-(g[1].timestamp||0));let d=Math.min(u,Math.max(1,Math.ceil(c*.5)));for(let h=0;h0&&r&&r.debug(`Hierarchical cache eviction removed ${i} entries (${this.o} remaining)`),i}Bt(t){return this.g.has(t)||this.g.set(t,{entries:new Map,lastAccess:Date.now()}),this.g.get(t)}Kt(t,r){if(!r)return 0;let n=r.entries.size;for(let i of r.entries.keys())this.M.delete(i);return this.g.delete(t),this.o=Math.max(0,this.o-n),n}$t(t){if(!t||typeof t!="string")return ke;let r=ki(t);if(!r)return ke;let n=r.lastIndexOf("/");return n===-1?ke:r.slice(0,n)||ke}};tr.exports={HierarchicalDecorationCache:at}});var ir=_((Ta,nr)=>{async function Di(e,t,r){try{if(e.G)return e._logger?.debug?.(`\u26A0\uFE0F Cache bypass enabled - recalculating decoration for: ${r}`),null;if(e._advancedCache)try{let i=await e._advancedCache.get(t);if(i)return e._metrics.cacheHits++,e._logger?.debug?.(`\u{1F9E0} Advanced cache hit for: ${r}`),i}catch(i){e._logger?.debug?.(`Advanced cache error: ${i.message}`)}if(!e.e||typeof e.e.get!="function")return e._logger?.debug?.("getCachedDecoration: no memory cache available, falling back"),null;let n=e.e.get(t);if(n){if(n.forceRefresh){try{e.e.delete(t)}catch{}e._logger?.debug?.(`\u{1F6AB} Memory cache bypassed (forced refresh) for: ${r}`)}else if(Date.now()-n.timestampe.l)try{e.e.enforceLimit(e.l,e._logger)}catch{}let a={decoration:r,timestamp:Date.now()};i&&(a.uri=i);try{e.e.set(t,a)}catch{}try{typeof e.ce=="function"&&e.ce()}catch(o){e._logger?.debug?.("monitorCachePressure from store failed",o)}if(e._advancedCache)try{await e._advancedCache.set(t,r,{ttl:e.S}),e._logger?.debug?.(`\u{1F9E0} Stored in advanced cache: ${n}`)}catch(o){e._logger?.debug?.(`Failed to store in advanced cache: ${o.message}`)}try{typeof e.le=="function"&&e.le()}catch(o){e._logger?.debug?.("maybeExtendCacheTimeout from store failed",o)}}catch(a){e._logger?.debug?.("storeDecorationInCache failed",a)}}function Si(){class e{constructor(){this.r=null,this.n=new Map,this.o=0,this.$e=!1,this.hydrateInBackground()}get size(){return this.r?this.r.size:this.o}get bucketCount(){return this.r?this.r.bucketCount:0}clear(){if(this.r)return this.r.clear();this.n.clear(),this.o=0}get(r){return this.r?this.r.get(r):this.n.get(r)}set(r,n,i={}){if(this.r)return this.r.set(r,n,i);let a=this.n.has(r);this.n.set(r,n),a||this.o++}delete(r){if(this.r)return this.r.delete(r);let n=this.n.delete(r);return n&&(this.o=Math.max(0,this.o-1)),n}*entries(){if(this.r){yield*this.r.entries();return}yield*this.n.entries()}*keys(){if(this.r){yield*this.r.keys();return}yield*this.n.keys()}*values(){if(this.r){yield*this.r.values();return}yield*this.n.values()}[Symbol.iterator](){return this.entries()}enforceLimit(r=0,n){if(this.r)return this.r.enforceLimit(r,n);if(!r||this.o<=r)return 0;let i=0,o=Array.from(this.n.keys()).slice(0,Math.max(1,Math.ceil(this.o-r)));for(let s of o)this.n.delete(s),i++,this.o=Math.max(0,this.o-1);return i>0&&n&&n.debug(`LazyHierarchical cache eviction removed ${i} entries`),i}async jt(){if(!this.$e){this.$e=!0;try{let n=(await Promise.resolve().then(()=>R(rr()))).HierarchicalDecorationCache;this.r=new n;for(let[i,a]of this.n.entries())this.r.set(i,a);this.n=null}catch{this.$e=!1}}}hydrateInBackground(){this.jt().catch(()=>{})}}return new e}nr.exports={getCachedDecoration:Di,storeDecorationInCache:Ci,createLazyHierarchicalDecorationCache:Si}});var ar=_((va,Ti)=>{Ti.exports={migrationDetailsTitle:"Explorer Dates - Settings Migration",migrationDetailsHeader:"Settings Migration",gitAttributionWarning:"Explorer Dates: Git attribution badges are unavailable on VS Code for Web. Time-based decorations remain available.",noOverridesToDocument:"No overrides to document.",overrideNotesHeader:"# Explorer Dates Override Notes\\n\\n",analysisCommandsDisabled:"Explorer Dates analysis commands are disabled. Shortcuts like Ctrl+Shift+M/H/A will not work until you enable explorerDates.enableAnalysisCommands.",analysisEnableNow:"Enable Now",analysisEnablePartially:"Enable partially succeeded. Update explorerDates.enableAnalysisCommands in remaining workspace folders manually.",analysisEnableFailed:"Enable failed: update explorerDates.enableAnalysisCommands in workspace settings.",workspaceTemplatesDisabled:"Workspace templates are disabled. Enable explorerDates.enableWorkspaceTemplates to use this command.",workspaceTemplatesDisabledSave:"Workspace templates are disabled. Enable explorerDates.enableWorkspaceTemplates to save templates.",enterTemplateName:"Enter template name",enterTemplateDescription:"Enter description (optional)",failedToOpenTemplateManager:"Failed to open template manager: {0}",failedToSaveTemplate:"Failed to save template: {0}",reportingDisabled:"Reporting features are disabled. Enable explorerDates.enableExportReporting to generate reports.",failedToGenerateReport:"Failed to generate report: {0}",apiDisabled:"Explorer Dates API is disabled via settings.",failedToShowApiInformation:"Failed to show API information: {0}",failedToShowWorkspaceActivity:"Failed to show workspace activity: {0}",failedToShowPerformanceAnalytics:"Failed to show performance analytics: {0}",failedToShowCacheDebugInfo:"Failed to show cache debug info: {0}",noWorkspaceFolderOpen:"No workspace folder open",now:"now",minutes:"m",hours:"h",days:"d",weeks:"w",months:"mo",years:"y",justNow:"just now",minutesAgo:"{0} minute(s) ago",hoursAgo:"{0} hour(s) ago",daysAgo:"{0} day(s) ago",lastModified:"Last modified",refreshSuccess:"Date decorations refreshed",activationError:"Explorer Dates failed to activate",errorAccessingFile:"Error accessing file for decoration",clearTelemetryPrompt:"This will permanently delete locally-stored telemetry events for Explorer Dates. This action cannot be undone. Proceed?",clearTelemetryConfirm:"Clear Telemetry",clearTelemetryCancel:"Cancel",reportFormatDisabled:'Report format "{0}" is disabled. Allowed formats: {1}',reportDownloadTriggered:"Report download triggered in browser",selectReportTimeRangePlaceholder:"Select report time range",selectReportFormatPlaceholder:"Select report format",cleanupNoDeprecated:"\u2139\uFE0F No deprecated settings found to clean up.",showMigrationHistoryNoHistory:"No migration history found.",resetConfirmation:"This will reset all Explorer Dates settings to their default values. Are you sure?",resetConfirm:"Reset Settings",resetCancel:"Cancel",resetSuccess:"\u2705 Reset {0} settings to defaults.",validateNoIssues:"\u2705 Configuration is valid - no issues found!",validateFoundIssues:"Found {0} configuration issue(s). Would you like to see details?",validateShowDetails:"Show Details",validateDismiss:"Dismiss",migrationNotificationMessage:"Explorer Dates updated {0} setting(s) for compatibility. Your configuration has been preserved.",migrationViewChanges:"View Changes",migrationOpenSettings:"Open Settings",deprecatedPrompt:"Explorer Dates found {0} deprecated setting(s). Would you like to remove them?",deprecatedClean:"Clean Up Now",deprecatedKeep:"Keep Old Settings",deprecatedAskLater:"Ask Later",showFileLocation:"Show File Location",teamConfigCorrupted:"Explorer Dates team configuration file appears to be corrupted. Please check the .explorer-dates-profiles.json file or restore from backup.",appliedFromTeamProfile:'Applied {0} Explorer Dates settings from team profile "{1}".',documentedOverrides:"Documented Explorer Dates overrides in .vscode/explorer-dates-overrides.md",teamConfigMissingProfile:"Team configuration is missing an active profile.",ephemeralStorageEnospc:"Explorer Dates team configuration could not be saved because the disk is full.",ephemeralStorageGeneric:"Explorer Dates team configuration could not be saved because the workspace is read-only or permissions are restricted.",ephemeralStorageSuffix:"Changes will be kept in memory until VS Code restarts, so they may be lost."}});var or=_((Fa,vi)=>{vi.exports={migrationDetailsTitle:"Explorer Dates - Migraci\xF3n de configuraci\xF3n",migrationDetailsHeader:"Migraci\xF3n de configuraci\xF3n",gitAttributionWarning:"Explorer Dates: Las insignias de atribuci\xF3n de Git no est\xE1n disponibles en VS Code para la Web. Las decoraciones basadas en tiempo siguen disponibles.",noOverridesToDocument:"No hay anulaciones para documentar.",overrideNotesHeader:"# Notas de anulaci\xF3n de Explorer Dates\\n\\n",analysisCommandsDisabled:"Los comandos de an\xE1lisis de Explorer Dates est\xE1n deshabilitados. Atajos como Ctrl+Shift+M/H/A no funcionar\xE1n hasta que habilites explorerDates.enableAnalysisCommands.",analysisEnableNow:"Habilitar ahora",analysisEnablePartially:"La activaci\xF3n se complet\xF3 parcialmente. Actualiza explorerDates.enableAnalysisCommands manualmente en las carpetas de trabajo restantes.",analysisEnableFailed:"Error al habilitar: actualiza explorerDates.enableAnalysisCommands en la configuraci\xF3n del espacio de trabajo.",workspaceTemplatesDisabled:"Las plantillas de espacio de trabajo est\xE1n deshabilitadas. Habilita explorerDates.enableWorkspaceTemplates para usar este comando.",workspaceTemplatesDisabledSave:"Las plantillas de espacio de trabajo est\xE1n deshabilitadas. Habilita explorerDates.enableWorkspaceTemplates para guardar plantillas.",enterTemplateName:"Introduce el nombre de la plantilla",enterTemplateDescription:"Introduce la descripci\xF3n (opcional)",failedToOpenTemplateManager:"Error al abrir el administrador de plantillas: {0}",failedToSaveTemplate:"Error al guardar la plantilla: {0}",reportingDisabled:"Las funciones de informes est\xE1n deshabilitadas. Habilita explorerDates.enableExportReporting para generar informes.",failedToGenerateReport:"Error al generar el informe: {0}",apiDisabled:"La API de Explorer Dates est\xE1 deshabilitada mediante la configuraci\xF3n.",failedToShowApiInformation:"Error al mostrar la informaci\xF3n de la API: {0}",failedToShowWorkspaceActivity:"Error al mostrar la actividad del espacio de trabajo: {0}",failedToShowPerformanceAnalytics:"Error al mostrar los an\xE1lisis de rendimiento: {0}",failedToShowCacheDebugInfo:"Error al mostrar la informaci\xF3n de depuraci\xF3n de la cach\xE9: {0}",noWorkspaceFolderOpen:"No hay ninguna carpeta de espacio de trabajo abierta",now:"ahora",minutes:"m",hours:"h",days:"d",weeks:"sem",months:"mes",years:"a",justNow:"justo ahora",minutesAgo:"hace {0} minuto(s)",hoursAgo:"hace {0} hora(s)",daysAgo:"hace {0} d\xEDa(s)",lastModified:"\xDAltima modificaci\xF3n",refreshSuccess:"Decoraciones de fecha actualizadas",activationError:"Explorer Dates no se pudo activar",errorAccessingFile:"Error al acceder al archivo para la decoraci\xF3n",clearTelemetryPrompt:"Esto eliminar\xE1 permanentemente los eventos de telemetr\xEDa almacenados localmente para Explorer Dates. Esta acci\xF3n no se puede deshacer. \xBFContinuar?",clearTelemetryConfirm:"Borrar telemetr\xEDa",clearTelemetryCancel:"Cancelar",reportFormatDisabled:'El formato de informe "{0}" est\xE1 deshabilitado. Formatos permitidos: {1}',reportDownloadTriggered:"Descarga del informe iniciada en el navegador",selectReportTimeRangePlaceholder:"Seleccionar rango de tiempo del informe",selectReportFormatPlaceholder:"Seleccionar formato del informe",cleanupNoDeprecated:"\u2139\uFE0F No se encontraron configuraciones obsoletas para limpiar.",showMigrationHistoryNoHistory:"No se encontr\xF3 historial de migraci\xF3n.",resetConfirmation:"Esto restablecer\xE1 todas las configuraciones de Explorer Dates a sus valores predeterminados. \xBFEst\xE1s seguro?",resetConfirm:"Restablecer configuraciones",resetCancel:"Cancelar",resetSuccess:"\u2705 Se restablecieron {0} configuraciones a los valores predeterminados.",validateNoIssues:"\u2705 La configuraci\xF3n es v\xE1lida - no se encontraron problemas.",validateFoundIssues:"Se encontraron {0} problema(s) de configuraci\xF3n. \xBFDeseas ver los detalles?",validateShowDetails:"Mostrar detalles",validateDismiss:"Descartar",migrationNotificationMessage:"Explorer Dates actualiz\xF3 {0} configuraci\xF3n(es) por compatibilidad. Tu configuraci\xF3n se ha conservado.",migrationViewChanges:"Ver cambios",migrationOpenSettings:"Abrir configuraciones",deprecatedPrompt:"Explorer Dates encontr\xF3 {0} configuraci\xF3n(es) obsoleta(s). \xBFDeseas eliminarlas?",deprecatedClean:"Limpiar ahora",deprecatedKeep:"Mantener configuraciones antiguas",deprecatedAskLater:"Preguntar m\xE1s tarde",showFileLocation:"Mostrar ubicaci\xF3n del archivo",teamConfigCorrupted:"El archivo de configuraci\xF3n de equipo de Explorer Dates parece estar da\xF1ado. Verifica el archivo .explorer-dates-profiles.json o restaura desde una copia de seguridad.",appliedFromTeamProfile:'Se aplicaron {0} configuraciones de Explorer Dates desde el perfil de equipo "{1}".',documentedOverrides:"Se documentaron las anulaciones de Explorer Dates en .vscode/explorer-dates-overrides.md",teamConfigMissingProfile:"La configuraci\xF3n del equipo no tiene un perfil activo.",ephemeralStorageEnospc:"No se pudo guardar la configuraci\xF3n de equipo de Explorer Dates porque el disco est\xE1 lleno.",ephemeralStorageGeneric:"No se pudo guardar la configuraci\xF3n de equipo de Explorer Dates porque el espacio de trabajo es de solo lectura o los permisos est\xE1n restringidos.",ephemeralStorageSuffix:"Los cambios se mantendr\xE1n en memoria hasta que VS Code se reinicie, por lo que podr\xEDan perderse."}});var sr=_((Aa,Fi)=>{Fi.exports={migrationDetailsTitle:"Explorer Dates - Migration des param\xE8tres",migrationDetailsHeader:"Migration des param\xE8tres",gitAttributionWarning:"Explorer Dates : Les badges d\u2019attribution Git ne sont pas disponibles sur VS Code pour le Web. Les d\xE9corations bas\xE9es sur le temps restent disponibles.",noOverridesToDocument:"Aucune substitution \xE0 documenter.",overrideNotesHeader:"# Notes de substitution Explorer Dates\\n\\n",analysisCommandsDisabled:"Les commandes d\u2019analyse Explorer Dates sont d\xE9sactiv\xE9es. Les raccourcis comme Ctrl+Shift+M/H/A ne fonctionneront pas tant que vous n\u2019aurez pas activ\xE9 explorerDates.enableAnalysisCommands.",analysisEnableNow:"Activer maintenant",analysisEnablePartially:"L\u2019activation a partiellement r\xE9ussi. Mettez \xE0 jour explorerDates.enableAnalysisCommands manuellement dans les dossiers d\u2019espace de travail restants.",analysisEnableFailed:"\xC9chec de l\u2019activation : mettez \xE0 jour explorerDates.enableAnalysisCommands dans les param\xE8tres de l\u2019espace de travail.",workspaceTemplatesDisabled:"Les mod\xE8les d\u2019espace de travail sont d\xE9sactiv\xE9s. Activez explorerDates.enableWorkspaceTemplates pour utiliser cette commande.",workspaceTemplatesDisabledSave:"Les mod\xE8les d\u2019espace de travail sont d\xE9sactiv\xE9s. Activez explorerDates.enableWorkspaceTemplates pour enregistrer des mod\xE8les.",enterTemplateName:"Entrez le nom du mod\xE8le",enterTemplateDescription:"Entrez la description (facultatif)",failedToOpenTemplateManager:"Impossible d\u2019ouvrir le gestionnaire de mod\xE8les : {0}",failedToSaveTemplate:"Impossible d\u2019enregistrer le mod\xE8le : {0}",reportingDisabled:"Les fonctionnalit\xE9s de rapport sont d\xE9sactiv\xE9es. Activez explorerDates.enableExportReporting pour g\xE9n\xE9rer des rapports.",failedToGenerateReport:"Impossible de g\xE9n\xE9rer le rapport : {0}",apiDisabled:"L\u2019API Explorer Dates est d\xE9sactiv\xE9e via les param\xE8tres.",failedToShowApiInformation:"Impossible d\u2019afficher les informations de l\u2019API : {0}",failedToShowWorkspaceActivity:"Impossible d\u2019afficher l\u2019activit\xE9 de l\u2019espace de travail : {0}",failedToShowPerformanceAnalytics:"Impossible d\u2019afficher les analyses de performance : {0}",failedToShowCacheDebugInfo:"Impossible d\u2019afficher les informations de d\xE9bogage du cache : {0}",noWorkspaceFolderOpen:"Aucun dossier d\u2019espace de travail ouvert",now:"maintenant",minutes:"min",hours:"h",days:"j",weeks:"sem",months:"mois",years:"an",justNow:"\xE0 l\u2019instant",minutesAgo:"il y a {0} minute(s)",hoursAgo:"il y a {0} heure(s)",daysAgo:"il y a {0} jour(s)",lastModified:"Derni\xE8re modification",refreshSuccess:"D\xE9corations de date actualis\xE9es",activationError:"\xC9chec de l\u2019activation d\u2019Explorer Dates",errorAccessingFile:"Erreur lors de l\u2019acc\xE8s au fichier pour la d\xE9coration",clearTelemetryPrompt:"Cela supprimera d\xE9finitivement les \xE9v\xE9nements de t\xE9l\xE9m\xE9trie stock\xE9s localement pour Explorer Dates. Cette action est irr\xE9versible. Continuer ?",clearTelemetryConfirm:"Effacer la t\xE9l\xE9m\xE9trie",clearTelemetryCancel:"Annuler",reportFormatDisabled:'Le format de rapport "{0}" est d\xE9sactiv\xE9. Formats autoris\xE9s : {1}',reportDownloadTriggered:"T\xE9l\xE9chargement du rapport lanc\xE9 dans le navigateur",selectReportTimeRangePlaceholder:"S\xE9lectionner la p\xE9riode du rapport",selectReportFormatPlaceholder:"S\xE9lectionner le format du rapport",cleanupNoDeprecated:"\u2139\uFE0F Aucun param\xE8tre obsol\xE8te \xE0 nettoyer.",showMigrationHistoryNoHistory:"Aucun historique de migration trouv\xE9.",resetConfirmation:"Cela r\xE9initialisera tous les param\xE8tres Explorer Dates \xE0 leurs valeurs par d\xE9faut. \xCAtes-vous s\xFBr ?",resetConfirm:"R\xE9initialiser les param\xE8tres",resetCancel:"Annuler",resetSuccess:"\u2705 {0} param\xE8tres ont \xE9t\xE9 r\xE9initialis\xE9s aux valeurs par d\xE9faut.",validateNoIssues:"\u2705 La configuration est valide - aucun probl\xE8me d\xE9tect\xE9 !",validateFoundIssues:"{0} probl\xE8me(s) de configuration trouv\xE9(s). Voulez-vous voir les d\xE9tails ?",validateShowDetails:"Afficher les d\xE9tails",validateDismiss:"Ignorer",migrationNotificationMessage:"Explorer Dates a mis \xE0 jour {0} param\xE8tre(s) pour compatibilit\xE9. Votre configuration a \xE9t\xE9 conserv\xE9e.",migrationViewChanges:"Voir les modifications",migrationOpenSettings:"Ouvrir les param\xE8tres",deprecatedPrompt:"Explorer Dates a trouv\xE9 {0} param\xE8tre(s) obsol\xE8te(s). Voulez-vous les supprimer ?",deprecatedClean:"Nettoyer maintenant",deprecatedKeep:"Conserver les anciens param\xE8tres",deprecatedAskLater:"Demander plus tard",showFileLocation:"Afficher l\u2019emplacement du fichier",teamConfigCorrupted:"Le fichier de configuration d\u2019\xE9quipe Explorer Dates semble corrompu. V\xE9rifiez le fichier .explorer-dates-profiles.json ou restaurez-le depuis une sauvegarde.",appliedFromTeamProfile:'{0} param\xE8tres Explorer Dates appliqu\xE9s depuis le profil d\u2019\xE9quipe "{1}".',documentedOverrides:"Substitutions Explorer Dates document\xE9es dans .vscode/explorer-dates-overrides.md",teamConfigMissingProfile:"La configuration d\u2019\xE9quipe ne contient aucun profil actif.",ephemeralStorageEnospc:"Impossible d\u2019enregistrer la configuration d\u2019\xE9quipe Explorer Dates car le disque est plein.",ephemeralStorageGeneric:"Impossible d\u2019enregistrer la configuration d\u2019\xE9quipe Explorer Dates car l\u2019espace de travail est en lecture seule ou les permissions sont restreintes.",ephemeralStorageSuffix:"Les modifications seront conserv\xE9es en m\xE9moire jusqu\u2019au red\xE9marrage de VS Code et pourraient \xEAtre perdues."}});var cr=_((Ra,Ai)=>{Ai.exports={migrationDetailsTitle:"Explorer Dates - Einstellungen migrieren",migrationDetailsHeader:"Einstellungen migrieren",gitAttributionWarning:"Explorer Dates: Git-Zuordnungsabzeichen sind in VS Code f\xFCr das Web nicht verf\xFCgbar. Zeitbasierte Hervorhebungen bleiben verf\xFCgbar.",noOverridesToDocument:"Keine \xDCberschreibungen zu dokumentieren.",overrideNotesHeader:"# Explorer Dates \xDCberschreibungsnotizen\\n\\n",analysisCommandsDisabled:"Die Analysebefehle von Explorer Dates sind deaktiviert. Tastenkombinationen wie Ctrl+Shift+M/H/A funktionieren nicht, bis explorerDates.enableAnalysisCommands aktiviert ist.",analysisEnableNow:"Jetzt aktivieren",analysisEnablePartially:"Die Aktivierung war teilweise erfolgreich. Aktualisieren Sie explorerDates.enableAnalysisCommands manuell in den verbleibenden Workspace-Ordnern.",analysisEnableFailed:"Aktivierung fehlgeschlagen: Aktualisieren Sie explorerDates.enableAnalysisCommands in den Workspace-Einstellungen.",workspaceTemplatesDisabled:"Workspace-Vorlagen sind deaktiviert. Aktivieren Sie explorerDates.enableWorkspaceTemplates, um diesen Befehl zu verwenden.",workspaceTemplatesDisabledSave:"Workspace-Vorlagen sind deaktiviert. Aktivieren Sie explorerDates.enableWorkspaceTemplates, um Vorlagen zu speichern.",enterTemplateName:"Vorlagenname eingeben",enterTemplateDescription:"Beschreibung eingeben (optional)",failedToOpenTemplateManager:"Fehler beim \xD6ffnen des Vorlagenmanagers: {0}",failedToSaveTemplate:"Fehler beim Speichern der Vorlage: {0}",reportingDisabled:"Berichtsfunktionen sind deaktiviert. Aktivieren Sie explorerDates.enableExportReporting, um Berichte zu erstellen.",failedToGenerateReport:"Fehler beim Erstellen des Berichts: {0}",apiDisabled:"Die Explorer Dates API ist in den Einstellungen deaktiviert.",failedToShowApiInformation:"Fehler beim Anzeigen der API-Informationen: {0}",failedToShowWorkspaceActivity:"Fehler beim Anzeigen der Workspace-Aktivit\xE4t: {0}",failedToShowPerformanceAnalytics:"Fehler beim Anzeigen der Leistungsanalysen: {0}",failedToShowCacheDebugInfo:"Fehler beim Anzeigen der Cache-Debug-Informationen: {0}",noWorkspaceFolderOpen:"Kein Workspace-Ordner ge\xF6ffnet",now:"jetzt",minutes:"Min",hours:"Std",days:"T",weeks:"W",months:"Mon",years:"J",justNow:"gerade eben",minutesAgo:"vor {0} Minute(n)",hoursAgo:"vor {0} Stunde(n)",daysAgo:"vor {0} Tag(en)",lastModified:"Zuletzt ge\xE4ndert",refreshSuccess:"Datumsdekorationen aktualisiert",activationError:"Explorer Dates konnte nicht aktiviert werden",errorAccessingFile:"Fehler beim Zugriff auf Datei f\xFCr Dekoration",clearTelemetryPrompt:"Dies l\xF6scht dauerhaft lokal gespeicherte Telemetrieereignisse f\xFCr Explorer Dates. Diese Aktion kann nicht r\xFCckg\xE4ngig gemacht werden. Fortfahren?",clearTelemetryConfirm:"Telemetrie l\xF6schen",clearTelemetryCancel:"Abbrechen",reportFormatDisabled:'Berichtsformat "{0}" ist deaktiviert. Zul\xE4ssige Formate: {1}',reportDownloadTriggered:"Bericht-Download im Browser gestartet",selectReportTimeRangePlaceholder:"Berichtszeitraum ausw\xE4hlen",selectReportFormatPlaceholder:"Berichtsformat ausw\xE4hlen",cleanupNoDeprecated:"\u2139\uFE0F Keine veralteten Einstellungen zum Bereinigen gefunden.",showMigrationHistoryNoHistory:"Kein Migrationsverlauf gefunden.",resetConfirmation:"Dies setzt alle Explorer Dates Einstellungen auf ihre Standardwerte zur\xFCck. Sind Sie sicher?",resetConfirm:"Einstellungen zur\xFCcksetzen",resetCancel:"Abbrechen",resetSuccess:"\u2705 {0} Einstellungen auf Standard zur\xFCckgesetzt.",validateNoIssues:"\u2705 Konfiguration ist g\xFCltig - keine Probleme gefunden!",validateFoundIssues:"{0} Konfigurationsproblem(e) gefunden. M\xF6chten Sie Details sehen?",validateShowDetails:"Details anzeigen",validateDismiss:"Verwerfen",migrationNotificationMessage:"Explorer Dates hat {0} Einstellung(en) zur Kompatibilit\xE4t aktualisiert. Ihre Konfiguration wurde beibehalten.",migrationViewChanges:"\xC4nderungen anzeigen",migrationOpenSettings:"Einstellungen \xF6ffnen",deprecatedPrompt:"Explorer Dates hat {0} veraltete Einstellung(en) gefunden. M\xF6chten Sie sie entfernen?",deprecatedClean:"Jetzt bereinigen",deprecatedKeep:"Alte Einstellungen behalten",deprecatedAskLater:"Sp\xE4ter fragen",showFileLocation:"Dateispeicherort anzeigen",teamConfigCorrupted:"Die Teamkonfigurationsdatei von Explorer Dates scheint besch\xE4digt zu sein. Bitte pr\xFCfen Sie die Datei .explorer-dates-profiles.json oder stellen Sie sie aus einem Backup wieder her.",appliedFromTeamProfile:'{0} Explorer Dates-Einstellungen aus dem Teamprofil "{1}" angewendet.',documentedOverrides:"Explorer Dates-\xDCberschreibungen in .vscode/explorer-dates-overrides.md dokumentiert",teamConfigMissingProfile:"Der Teamkonfiguration fehlt ein aktives Profil.",ephemeralStorageEnospc:"Die Teamkonfiguration von Explorer Dates konnte nicht gespeichert werden, da die Festplatte voll ist.",ephemeralStorageGeneric:"Die Teamkonfiguration von Explorer Dates konnte nicht gespeichert werden, da der Workspace schreibgesch\xFCtzt ist oder die Berechtigungen eingeschr\xE4nkt sind.",ephemeralStorageSuffix:"\xC4nderungen werden im Speicher behalten, bis VS Code neu startet, und k\xF6nnen verloren gehen."}});var lr=_((Pa,Ri)=>{Ri.exports={migrationDetailsTitle:"Explorer Dates - \u8A2D\u5B9A\u306E\u79FB\u884C",migrationDetailsHeader:"\u8A2D\u5B9A\u306E\u79FB\u884C",gitAttributionWarning:"Explorer Dates: Git \u306E\u5E30\u5C5E\u30D0\u30C3\u30B8\u306F VS Code for Web \u3067\u306F\u5229\u7528\u3067\u304D\u307E\u305B\u3093\u3002\u6642\u9593\u30D9\u30FC\u30B9\u306E\u88C5\u98FE\u306F\u5F15\u304D\u7D9A\u304D\u5229\u7528\u3067\u304D\u307E\u3059\u3002",noOverridesToDocument:"\u30C9\u30AD\u30E5\u30E1\u30F3\u30C8\u5316\u3059\u308B\u4E0A\u66F8\u304D\u306F\u3042\u308A\u307E\u305B\u3093\u3002",overrideNotesHeader:"# Explorer Dates \u4E0A\u66F8\u304D\u30E1\u30E2\\n\\n",analysisCommandsDisabled:"Explorer Dates \u306E\u5206\u6790\u30B3\u30DE\u30F3\u30C9\u306F\u7121\u52B9\u306B\u306A\u3063\u3066\u3044\u307E\u3059\u3002Ctrl+Shift+M/H/A \u306A\u3069\u306E\u30B7\u30E7\u30FC\u30C8\u30AB\u30C3\u30C8\u306F explorerDates.enableAnalysisCommands \u3092\u6709\u52B9\u306B\u3059\u308B\u307E\u3067\u6A5F\u80FD\u3057\u307E\u305B\u3093\u3002",analysisEnableNow:"\u4ECA\u3059\u3050\u6709\u52B9\u306B\u3059\u308B",analysisEnablePartially:"\u6709\u52B9\u5316\u306F\u4E00\u90E8\u6210\u529F\u3057\u307E\u3057\u305F\u3002\u6B8B\u308A\u306E\u30EF\u30FC\u30AF\u30B9\u30DA\u30FC\u30B9\u30D5\u30A9\u30EB\u30C0\u30FC\u3067 explorerDates.enableAnalysisCommands \u3092\u624B\u52D5\u3067\u66F4\u65B0\u3057\u3066\u304F\u3060\u3055\u3044\u3002",analysisEnableFailed:"\u6709\u52B9\u5316\u306B\u5931\u6557\u3057\u307E\u3057\u305F\uFF1A\u30EF\u30FC\u30AF\u30B9\u30DA\u30FC\u30B9\u8A2D\u5B9A\u3067 explorerDates.enableAnalysisCommands \u3092\u66F4\u65B0\u3057\u3066\u304F\u3060\u3055\u3044\u3002",workspaceTemplatesDisabled:"\u30EF\u30FC\u30AF\u30B9\u30DA\u30FC\u30B9\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8\u306F\u7121\u52B9\u306B\u306A\u3063\u3066\u3044\u307E\u3059\u3002\u3053\u306E\u30B3\u30DE\u30F3\u30C9\u3092\u4F7F\u7528\u3059\u308B\u306B\u306F explorerDates.enableWorkspaceTemplates \u3092\u6709\u52B9\u306B\u3057\u3066\u304F\u3060\u3055\u3044\u3002",workspaceTemplatesDisabledSave:"\u30EF\u30FC\u30AF\u30B9\u30DA\u30FC\u30B9\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8\u306F\u7121\u52B9\u306B\u306A\u3063\u3066\u3044\u307E\u3059\u3002\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8\u3092\u4FDD\u5B58\u3059\u308B\u306B\u306F explorerDates.enableWorkspaceTemplates \u3092\u6709\u52B9\u306B\u3057\u3066\u304F\u3060\u3055\u3044\u3002",enterTemplateName:"\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8\u540D\u3092\u5165\u529B",enterTemplateDescription:"\u8AAC\u660E\u3092\u5165\u529B\uFF08\u4EFB\u610F\uFF09",failedToOpenTemplateManager:"\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8\u30DE\u30CD\u30FC\u30B8\u30E3\u30FC\u3092\u958B\u3051\u307E\u305B\u3093\u3067\u3057\u305F: {0}",failedToSaveTemplate:"\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8\u306E\u4FDD\u5B58\u306B\u5931\u6557\u3057\u307E\u3057\u305F: {0}",reportingDisabled:"\u30EC\u30DD\u30FC\u30C8\u6A5F\u80FD\u306F\u7121\u52B9\u306B\u306A\u3063\u3066\u3044\u307E\u3059\u3002\u30EC\u30DD\u30FC\u30C8\u3092\u751F\u6210\u3059\u308B\u306B\u306F explorerDates.enableExportReporting \u3092\u6709\u52B9\u306B\u3057\u3066\u304F\u3060\u3055\u3044\u3002",failedToGenerateReport:"\u30EC\u30DD\u30FC\u30C8\u306E\u751F\u6210\u306B\u5931\u6557\u3057\u307E\u3057\u305F: {0}",apiDisabled:"Explorer Dates API \u306F\u8A2D\u5B9A\u3067\u7121\u52B9\u306B\u306A\u3063\u3066\u3044\u307E\u3059\u3002",failedToShowApiInformation:"API \u60C5\u5831\u306E\u8868\u793A\u306B\u5931\u6557\u3057\u307E\u3057\u305F: {0}",failedToShowWorkspaceActivity:"\u30EF\u30FC\u30AF\u30B9\u30DA\u30FC\u30B9\u306E\u30A2\u30AF\u30C6\u30A3\u30D3\u30C6\u30A3\u3092\u8868\u793A\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F: {0}",failedToShowPerformanceAnalytics:"\u30D1\u30D5\u30A9\u30FC\u30DE\u30F3\u30B9\u5206\u6790\u3092\u8868\u793A\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F: {0}",failedToShowCacheDebugInfo:"\u30AD\u30E3\u30C3\u30B7\u30E5\u306E\u30C7\u30D0\u30C3\u30B0\u60C5\u5831\u3092\u8868\u793A\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F: {0}",noWorkspaceFolderOpen:"\u30EF\u30FC\u30AF\u30B9\u30DA\u30FC\u30B9\u30D5\u30A9\u30EB\u30C0\u30FC\u304C\u958B\u304B\u308C\u3066\u3044\u307E\u305B\u3093",now:"\u4ECA",minutes:"\u5206",hours:"\u6642\u9593",days:"\u65E5",weeks:"\u9031",months:"\u304B\u6708",years:"\u5E74",justNow:"\u305F\u3063\u305F\u4ECA",minutesAgo:"{0} \u5206\u524D",hoursAgo:"{0} \u6642\u9593\u524D",daysAgo:"{0} \u65E5\u524D",lastModified:"\u6700\u7D42\u66F4\u65B0",refreshSuccess:"\u65E5\u4ED8\u88C5\u98FE\u3092\u66F4\u65B0\u3057\u307E\u3057\u305F",activationError:"Explorer Dates \u306E\u6709\u52B9\u5316\u306B\u5931\u6557\u3057\u307E\u3057\u305F",errorAccessingFile:"\u88C5\u98FE\u7528\u30D5\u30A1\u30A4\u30EB\u3078\u306E\u30A2\u30AF\u30BB\u30B9\u30A8\u30E9\u30FC",clearTelemetryPrompt:"Explorer Dates \u306E\u30ED\u30FC\u30AB\u30EB\u4FDD\u5B58\u30C6\u30EC\u30E1\u30C8\u30EA\u30A4\u30D9\u30F3\u30C8\u3092\u5B8C\u5168\u306B\u524A\u9664\u3057\u307E\u3059\u3002\u3053\u306E\u64CD\u4F5C\u306F\u5143\u306B\u623B\u305B\u307E\u305B\u3093\u3002\u7D9A\u884C\u3057\u307E\u3059\u304B\uFF1F",clearTelemetryConfirm:"\u30C6\u30EC\u30E1\u30C8\u30EA\u3092\u524A\u9664",clearTelemetryCancel:"\u30AD\u30E3\u30F3\u30BB\u30EB",reportFormatDisabled:"\u30EC\u30DD\u30FC\u30C8\u5F62\u5F0F\u300C{0}\u300D\u306F\u7121\u52B9\u3067\u3059\u3002\u8A31\u53EF\u3055\u308C\u3066\u3044\u308B\u5F62\u5F0F: {1}",reportDownloadTriggered:"\u30D6\u30E9\u30A6\u30B6\u3067\u30EC\u30DD\u30FC\u30C8\u306E\u30C0\u30A6\u30F3\u30ED\u30FC\u30C9\u3092\u958B\u59CB\u3057\u307E\u3057\u305F",selectReportTimeRangePlaceholder:"\u30EC\u30DD\u30FC\u30C8\u306E\u671F\u9593\u3092\u9078\u629E",selectReportFormatPlaceholder:"\u30EC\u30DD\u30FC\u30C8\u5F62\u5F0F\u3092\u9078\u629E",cleanupNoDeprecated:"\u2139\uFE0F \u30AF\u30EA\u30FC\u30F3\u30A2\u30C3\u30D7\u3059\u308B\u975E\u63A8\u5968\u8A2D\u5B9A\u306F\u3042\u308A\u307E\u305B\u3093\u3002",showMigrationHistoryNoHistory:"\u79FB\u884C\u5C65\u6B74\u304C\u898B\u3064\u304B\u308A\u307E\u305B\u3093\u3002",resetConfirmation:"Explorer Dates \u306E\u3059\u3079\u3066\u306E\u8A2D\u5B9A\u3092\u65E2\u5B9A\u5024\u306B\u30EA\u30BB\u30C3\u30C8\u3057\u307E\u3059\u3002\u3088\u308D\u3057\u3044\u3067\u3059\u304B\uFF1F",resetConfirm:"\u8A2D\u5B9A\u3092\u30EA\u30BB\u30C3\u30C8",resetCancel:"\u30AD\u30E3\u30F3\u30BB\u30EB",resetSuccess:"\u2705 {0} \u4EF6\u306E\u8A2D\u5B9A\u3092\u65E2\u5B9A\u5024\u306B\u30EA\u30BB\u30C3\u30C8\u3057\u307E\u3057\u305F\u3002",validateNoIssues:"\u2705 \u8A2D\u5B9A\u306F\u6709\u52B9\u3067\u3059 - \u554F\u984C\u306F\u898B\u3064\u304B\u308A\u307E\u305B\u3093\u3067\u3057\u305F\uFF01",validateFoundIssues:"{0} \u4EF6\u306E\u8A2D\u5B9A\u554F\u984C\u304C\u898B\u3064\u304B\u308A\u307E\u3057\u305F\u3002\u8A73\u7D30\u3092\u8868\u793A\u3057\u307E\u3059\u304B\uFF1F",validateShowDetails:"\u8A73\u7D30\u3092\u8868\u793A",validateDismiss:"\u9589\u3058\u308B",migrationNotificationMessage:"Explorer Dates \u306F\u4E92\u63DB\u6027\u306E\u305F\u3081\u306B {0} \u4EF6\u306E\u8A2D\u5B9A\u3092\u66F4\u65B0\u3057\u307E\u3057\u305F\u3002\u8A2D\u5B9A\u306F\u4FDD\u6301\u3055\u308C\u3066\u3044\u307E\u3059\u3002",migrationViewChanges:"\u5909\u66F4\u3092\u8868\u793A",migrationOpenSettings:"\u8A2D\u5B9A\u3092\u958B\u304F",deprecatedPrompt:"Explorer Dates \u306F {0} \u4EF6\u306E\u975E\u63A8\u5968\u8A2D\u5B9A\u3092\u691C\u51FA\u3057\u307E\u3057\u305F\u3002\u524A\u9664\u3057\u307E\u3059\u304B\uFF1F",deprecatedClean:"\u4ECA\u3059\u3050\u30AF\u30EA\u30FC\u30F3\u30A2\u30C3\u30D7",deprecatedKeep:"\u53E4\u3044\u8A2D\u5B9A\u3092\u4FDD\u6301",deprecatedAskLater:"\u5F8C\u3067\u78BA\u8A8D",showFileLocation:"\u30D5\u30A1\u30A4\u30EB\u306E\u5834\u6240\u3092\u8868\u793A",teamConfigCorrupted:"Explorer Dates \u306E\u30C1\u30FC\u30E0\u8A2D\u5B9A\u30D5\u30A1\u30A4\u30EB\u304C\u7834\u640D\u3057\u3066\u3044\u308B\u53EF\u80FD\u6027\u304C\u3042\u308A\u307E\u3059\u3002.explorer-dates-profiles.json \u3092\u78BA\u8A8D\u3059\u308B\u304B\u30D0\u30C3\u30AF\u30A2\u30C3\u30D7\u304B\u3089\u5FA9\u5143\u3057\u3066\u304F\u3060\u3055\u3044\u3002",appliedFromTeamProfile:"\u30C1\u30FC\u30E0\u30D7\u30ED\u30D5\u30A1\u30A4\u30EB\u300C{1}\u300D\u304B\u3089 {0} \u4EF6\u306E Explorer Dates \u8A2D\u5B9A\u3092\u9069\u7528\u3057\u307E\u3057\u305F\u3002",documentedOverrides:".vscode/explorer-dates-overrides.md \u306B Explorer Dates \u306E\u4E0A\u66F8\u304D\u3092\u8A18\u9332\u3057\u307E\u3057\u305F",teamConfigMissingProfile:"\u30C1\u30FC\u30E0\u8A2D\u5B9A\u306B\u30A2\u30AF\u30C6\u30A3\u30D6\u306A\u30D7\u30ED\u30D5\u30A1\u30A4\u30EB\u304C\u3042\u308A\u307E\u305B\u3093\u3002",ephemeralStorageEnospc:"\u30C7\u30A3\u30B9\u30AF\u5BB9\u91CF\u4E0D\u8DB3\u306E\u305F\u3081\u3001Explorer Dates \u306E\u30C1\u30FC\u30E0\u8A2D\u5B9A\u3092\u4FDD\u5B58\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002",ephemeralStorageGeneric:"\u30EF\u30FC\u30AF\u30B9\u30DA\u30FC\u30B9\u304C\u8AAD\u307F\u53D6\u308A\u5C02\u7528\u3001\u307E\u305F\u306F\u6A29\u9650\u304C\u5236\u9650\u3055\u308C\u3066\u3044\u308B\u305F\u3081\u3001Explorer Dates \u306E\u30C1\u30FC\u30E0\u8A2D\u5B9A\u3092\u4FDD\u5B58\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002",ephemeralStorageSuffix:"\u5909\u66F4\u306F VS Code \u304C\u518D\u8D77\u52D5\u3059\u308B\u307E\u3067\u30E1\u30E2\u30EA\u306B\u4FDD\u6301\u3055\u308C\u308B\u305F\u3081\u3001\u5931\u308F\u308C\u308B\u53EF\u80FD\u6027\u304C\u3042\u308A\u307E\u3059\u3002"}});var ur=_((xa,Pi)=>{Pi.exports={migrationDetailsTitle:"Explorer Dates - \u8BBE\u7F6E\u8FC1\u79FB",migrationDetailsHeader:"\u8BBE\u7F6E\u8FC1\u79FB",gitAttributionWarning:"Explorer Dates\uFF1AGit \u5F52\u5C5E\u5FBD\u7AE0\u5728 VS Code Web \u7248\u4E2D\u4E0D\u53EF\u7528\u3002\u57FA\u4E8E\u65F6\u95F4\u7684\u88C5\u9970\u4ECD\u7136\u53EF\u7528\u3002",noOverridesToDocument:"\u6CA1\u6709\u9700\u8981\u8BB0\u5F55\u7684\u8986\u76D6\u9879\u3002",overrideNotesHeader:"# Explorer Dates \u8986\u76D6\u8BF4\u660E\\n\\n",analysisCommandsDisabled:"Explorer Dates \u5206\u6790\u547D\u4EE4\u5DF2\u7981\u7528\u3002\u5728\u542F\u7528 explorerDates.enableAnalysisCommands \u4E4B\u524D\uFF0CCtrl+Shift+M/H/A \u7B49\u5FEB\u6377\u952E\u5C06\u65E0\u6CD5\u4F7F\u7528\u3002",analysisEnableNow:"\u7ACB\u5373\u542F\u7528",analysisEnablePartially:"\u542F\u7528\u90E8\u5206\u6210\u529F\u3002\u8BF7\u5728\u5269\u4F59\u7684\u5DE5\u4F5C\u533A\u6587\u4EF6\u5939\u4E2D\u624B\u52A8\u66F4\u65B0 explorerDates.enableAnalysisCommands\u3002",analysisEnableFailed:"\u542F\u7528\u5931\u8D25\uFF1A\u8BF7\u5728\u5DE5\u4F5C\u533A\u8BBE\u7F6E\u4E2D\u66F4\u65B0 explorerDates.enableAnalysisCommands\u3002",workspaceTemplatesDisabled:"\u5DE5\u4F5C\u533A\u6A21\u677F\u5DF2\u7981\u7528\u3002\u542F\u7528 explorerDates.enableWorkspaceTemplates \u4EE5\u4F7F\u7528\u6B64\u547D\u4EE4\u3002",workspaceTemplatesDisabledSave:"\u5DE5\u4F5C\u533A\u6A21\u677F\u5DF2\u7981\u7528\u3002\u542F\u7528 explorerDates.enableWorkspaceTemplates \u4EE5\u4FDD\u5B58\u6A21\u677F\u3002",enterTemplateName:"\u8F93\u5165\u6A21\u677F\u540D\u79F0",enterTemplateDescription:"\u8F93\u5165\u63CF\u8FF0\uFF08\u53EF\u9009\uFF09",failedToOpenTemplateManager:"\u65E0\u6CD5\u6253\u5F00\u6A21\u677F\u7BA1\u7406\u5668\uFF1A{0}",failedToSaveTemplate:"\u4FDD\u5B58\u6A21\u677F\u5931\u8D25\uFF1A{0}",reportingDisabled:"\u62A5\u8868\u529F\u80FD\u5DF2\u7981\u7528\u3002\u542F\u7528 explorerDates.enableExportReporting \u4EE5\u751F\u6210\u62A5\u8868\u3002",failedToGenerateReport:"\u751F\u6210\u62A5\u8868\u5931\u8D25\uFF1A{0}",apiDisabled:"Explorer Dates API \u5DF2\u901A\u8FC7\u8BBE\u7F6E\u7981\u7528\u3002",failedToShowApiInformation:"\u663E\u793A API \u4FE1\u606F\u5931\u8D25\uFF1A{0}",failedToShowWorkspaceActivity:"\u663E\u793A\u5DE5\u4F5C\u533A\u6D3B\u52A8\u5931\u8D25\uFF1A{0}",failedToShowPerformanceAnalytics:"\u663E\u793A\u6027\u80FD\u5206\u6790\u5931\u8D25\uFF1A{0}",failedToShowCacheDebugInfo:"\u663E\u793A\u7F13\u5B58\u8C03\u8BD5\u4FE1\u606F\u5931\u8D25\uFF1A{0}",noWorkspaceFolderOpen:"\u672A\u6253\u5F00\u4EFB\u4F55\u5DE5\u4F5C\u533A\u6587\u4EF6\u5939",now:"\u73B0\u5728",minutes:"\u5206",hours:"\u5C0F\u65F6",days:"\u5929",weeks:"\u5468",months:"\u4E2A\u6708",years:"\u5E74",justNow:"\u521A\u521A",minutesAgo:"{0} \u5206\u949F\u524D",hoursAgo:"{0} \u5C0F\u65F6\u524D",daysAgo:"{0} \u5929\u524D",lastModified:"\u6700\u540E\u4FEE\u6539",refreshSuccess:"\u65E5\u671F\u88C5\u9970\u5DF2\u5237\u65B0",activationError:"Explorer Dates \u542F\u52A8\u5931\u8D25",errorAccessingFile:"\u8BBF\u95EE\u7528\u4E8E\u88C5\u9970\u7684\u6587\u4EF6\u65F6\u51FA\u9519",clearTelemetryPrompt:"\u8FD9\u5C06\u6C38\u4E45\u5220\u9664\u672C\u5730\u5B58\u50A8\u7684 Explorer Dates \u9065\u6D4B\u4E8B\u4EF6\u3002\u6B64\u64CD\u4F5C\u65E0\u6CD5\u64A4\u9500\u3002\u662F\u5426\u7EE7\u7EED\uFF1F",clearTelemetryConfirm:"\u6E05\u9664\u9065\u6D4B",clearTelemetryCancel:"\u53D6\u6D88",reportFormatDisabled:"\u62A5\u8868\u683C\u5F0F\u201C{0}\u201D\u5DF2\u7981\u7528\u3002\u5141\u8BB8\u7684\u683C\u5F0F\uFF1A{1}",reportDownloadTriggered:"\u5DF2\u5728\u6D4F\u89C8\u5668\u4E2D\u89E6\u53D1\u62A5\u8868\u4E0B\u8F7D",selectReportTimeRangePlaceholder:"\u9009\u62E9\u62A5\u8868\u65F6\u95F4\u8303\u56F4",selectReportFormatPlaceholder:"\u9009\u62E9\u62A5\u8868\u683C\u5F0F",cleanupNoDeprecated:"\u2139\uFE0F \u672A\u53D1\u73B0\u9700\u8981\u6E05\u7406\u7684\u5DF2\u5F03\u7528\u8BBE\u7F6E\u3002",showMigrationHistoryNoHistory:"\u672A\u627E\u5230\u8FC1\u79FB\u5386\u53F2\u3002",resetConfirmation:"\u8FD9\u5C06\u628A\u6240\u6709 Explorer Dates \u8BBE\u7F6E\u91CD\u7F6E\u4E3A\u9ED8\u8BA4\u503C\u3002\u786E\u5B9A\u5417\uFF1F",resetConfirm:"\u91CD\u7F6E\u8BBE\u7F6E",resetCancel:"\u53D6\u6D88",resetSuccess:"\u2705 \u5DF2\u5C06 {0} \u9879\u8BBE\u7F6E\u91CD\u7F6E\u4E3A\u9ED8\u8BA4\u503C\u3002",validateNoIssues:"\u2705 \u914D\u7F6E\u6709\u6548 - \u672A\u53D1\u73B0\u95EE\u9898\uFF01",validateFoundIssues:"\u53D1\u73B0 {0} \u4E2A\u914D\u7F6E\u95EE\u9898\u3002\u662F\u5426\u67E5\u770B\u8BE6\u7EC6\u4FE1\u606F\uFF1F",validateShowDetails:"\u663E\u793A\u8BE6\u7EC6\u4FE1\u606F",validateDismiss:"\u5173\u95ED",migrationNotificationMessage:"Explorer Dates \u4E3A\u517C\u5BB9\u6027\u66F4\u65B0\u4E86 {0} \u9879\u8BBE\u7F6E\u3002\u60A8\u7684\u914D\u7F6E\u5DF2\u4FDD\u7559\u3002",migrationViewChanges:"\u67E5\u770B\u66F4\u6539",migrationOpenSettings:"\u6253\u5F00\u8BBE\u7F6E",deprecatedPrompt:"Explorer Dates \u53D1\u73B0 {0} \u4E2A\u5DF2\u5F03\u7528\u8BBE\u7F6E\u3002\u662F\u5426\u5220\u9664\uFF1F",deprecatedClean:"\u7ACB\u5373\u6E05\u7406",deprecatedKeep:"\u4FDD\u7559\u65E7\u8BBE\u7F6E",deprecatedAskLater:"\u7A0D\u540E\u8BE2\u95EE",showFileLocation:"\u663E\u793A\u6587\u4EF6\u4F4D\u7F6E",teamConfigCorrupted:"Explorer Dates \u56E2\u961F\u914D\u7F6E\u6587\u4EF6\u4F3C\u4E4E\u5DF2\u635F\u574F\u3002\u8BF7\u68C0\u67E5 .explorer-dates-profiles.json \u6587\u4EF6\u6216\u4ECE\u5907\u4EFD\u6062\u590D\u3002",appliedFromTeamProfile:"\u5DF2\u4ECE\u56E2\u961F\u914D\u7F6E\u6587\u4EF6\u201C{1}\u201D\u5E94\u7528 {0} \u9879 Explorer Dates \u8BBE\u7F6E\u3002",documentedOverrides:"\u5DF2\u5728 .vscode/explorer-dates-overrides.md \u4E2D\u8BB0\u5F55 Explorer Dates \u8986\u76D6\u9879",teamConfigMissingProfile:"\u56E2\u961F\u914D\u7F6E\u7F3A\u5C11\u6D3B\u52A8\u914D\u7F6E\u6587\u4EF6\u3002",ephemeralStorageEnospc:"\u7531\u4E8E\u78C1\u76D8\u5DF2\u6EE1\uFF0C\u65E0\u6CD5\u4FDD\u5B58 Explorer Dates \u56E2\u961F\u914D\u7F6E\u3002",ephemeralStorageGeneric:"\u7531\u4E8E\u5DE5\u4F5C\u533A\u4E3A\u53EA\u8BFB\u6216\u6743\u9650\u53D7\u9650\uFF0C\u65E0\u6CD5\u4FDD\u5B58 Explorer Dates \u56E2\u961F\u914D\u7F6E\u3002",ephemeralStorageSuffix:"\u66F4\u6539\u5C06\u5728 VS Code \u91CD\u542F\u524D\u4FDD\u5B58\u5728\u5185\u5B58\u4E2D\uFF0C\u56E0\u6B64\u53EF\u80FD\u4F1A\u4E22\u5931\u3002"}});var dr=_((Ma,hr)=>{var j={};j.en=ar();j.es=or();j.fr=sr();j.de=cr();j.ja=lr();j.zh=ur();hr.exports=j});var ot=_((Ia,fr)=>{var V=require("vscode"),z={en:{now:"now",minutes:"m",hours:"h",days:"d",weeks:"w",months:"mo",years:"y",justNow:"just now",minutesAgo:e=>`${e} minute${e!==1?"s":""} ago`,hoursAgo:e=>`${e} hour${e!==1?"s":""} ago`,yesterday:"yesterday",daysAgo:e=>`${e} day${e!==1?"s":""} ago`,lastModified:"Last modified",refreshSuccess:"Date decorations refreshed",activationError:"Explorer Dates failed to activate",errorAccessingFile:"Error accessing file for decoration",clearTelemetryPrompt:"This will permanently delete locally-stored telemetry events for Explorer Dates. This action cannot be undone. Proceed?",clearTelemetryConfirm:"Clear Telemetry",clearTelemetryCancel:"Cancel",clearTelemetrySuccess:"\u2705 Explorer Dates telemetry cleared.",migrateChecking:"Checking for settings that need migration...",migrateAllUpToDate:"\u2705 All settings are up to date!",migrateApplied:e=>`\u2705 Explorer Dates maintenance applied: ${e}.`,organizeSettingsResult:e=>`Explorer Dates settings organized: ${e}`,cleanupSuccess:"\u2705 Deprecated settings have been cleaned up!",reportFormatDisabled:(e,t)=>`Report format "${e}" is disabled. Allowed formats: ${t}`,reportSaved:e=>`Report saved to ${e}`,reportGenerateFailed:"Failed to generate report",reportDownloadTriggered:"Report download triggered in browser",selectReportTimeRangePlaceholder:"Select report time range",selectReportFormatPlaceholder:"Select report format",cleanupNoDeprecated:"\u2139\uFE0F No deprecated settings found to clean up.",showMigrationHistoryNoHistory:"No migration history found.",resetConfirmation:"This will reset all Explorer Dates settings to their default values. Are you sure?",migrationDetailsTitle:"Explorer Dates - Settings Migration",migrationDetailsHeader:"Settings Migration",gitAttributionWarning:"Explorer Dates: Git attribution badges are unavailable on VS Code for Web. Time-based decorations remain available.",noOverridesToDocument:"No overrides to document.",overrideNotesHeader:`# Explorer Dates Override Notes +var Yr=Object.create;var yt=Object.defineProperty;var Zr=Object.getOwnPropertyDescriptor;var Jr=Object.getOwnPropertyNames;var Qr=Object.getPrototypeOf,en=Object.prototype.hasOwnProperty;var E=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var tn=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Jr(t))!en.call(e,i)&&i!==r&&yt(e,i,{get:()=>t[i],enumerable:!(n=Zr(t,i))||n.enumerable});return e};var R=(e,t,r)=>(r=e!=null?Yr(Qr(e)):{},tn(t||!e||!e.__esModule?yt(r,"default",{value:e,enumerable:!0}):r,e));var J=E((ga,Et)=>{var bt=require("vscode");function rn(){try{let e=bt?.env?.uiKind,t=bt?.UIKind?.Web;return e!==void 0&&t!==void 0&&e===t}catch{return!1}}Et.exports={isWebEnvironment:rn}});var ce=E((exports,module)=>{var chunk=null;try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){try{chunk=dynamicRequire("../chunks/utils-shared-chunk")}catch{}try{chunk||(chunk=dynamicRequire("./chunks/utils-shared-chunk"))}catch{}try{chunk||(chunk=dynamicRequire("../chunks/path-utils-chunk"))}catch{}try{chunk||(chunk=dynamicRequire("./chunks/path-utils-chunk"))}catch{}}}catch{}if(chunk&&chunk.normalizePath)module.exports={normalizePath:chunk.normalizePath,getFileName:chunk.getFileName,getExtension:chunk.getExtension,getDirectory:chunk.getDirectory,joinPath:chunk.joinPath,getCacheKey:chunk.getCacheKey,getUriPath:chunk.getUriPath,getRelativePath:chunk.getRelativePath};else{let e=function(u=""){return u?u.replace(/\\/g,"/"):""},t=function(u=""){let l=e(u);return l?l.split("/").filter(Boolean):[]},r=function(u=""){let l=t(u);return l.length?l[l.length-1]:""},n=function(u=""){let l=r(u),d=l.lastIndexOf(".");return d<=0?"":l.substring(d).toLowerCase()},i=function(u=""){let l=e(u),d=l.lastIndexOf("/");return d===-1?"":l.substring(0,d)},a=function(...u){return e(u.filter(Boolean).join("/")).replace(/\/+/g,"/")},o=function(u=""){return e(u).toLowerCase()},s=function(u=""){if(!u)return"";if(typeof u=="string")return u;if(typeof u.fsPath=="string"&&u.fsPath.length>0)return u.fsPath;if(typeof u.path=="string"&&u.path.length>0)return u.path;if(typeof u.toString=="function")try{return u.toString(!0)}catch{return u.toString()}return String(u)},c=function(u="",l=""){let d=e(u),h=e(l);return d&&h.startsWith(d)?h.substring(d.length).replace(/^\/+/,""):h};normalizePath=e,getSegments=t,getFileName=r,getExtension=n,getDirectory=i,joinPath=a,getCacheKey=o,getUriPath=s,getRelativePath=c,module.exports={normalizePath:e,getFileName:r,getExtension:n,getDirectory:i,joinPath:a,getCacheKey:o,getUriPath:s,getRelativePath:c}}var normalizePath,getSegments,getFileName,getExtension,getDirectory,joinPath,getCacheKey,getUriPath,getRelativePath});var kt=E((ma,wt)=>{var ye=class extends Error{constructor(t,r,n={}){super(r),this.code=t,this.context=n,this.name="ExtensionError"}},_t={FILE_PERMISSION_DENIED:"FILE_PERMISSION_DENIED",WORKSPACE_TOO_LARGE:"WORKSPACE_TOO_LARGE",CHUNK_LOAD_FAILED:"CHUNK_LOAD_FAILED"};function nn(e){if(!e)return!1;let t=e.code||e?.name;return["EACCES","EPERM","EROFS","NoPermissions"].includes(t)}var Ue=class extends ye{constructor(t,r,n={}){let{recoverable:i=!0,context:a={}}=n;super(_t.CHUNK_LOAD_FAILED,`Failed to load ${t}: ${r}`,{chunkName:t,recoverable:i,...a}),this.name="ChunkLoadError",this.chunkName=t,this.recoverable=i}};function an(e,t,r={}){let n=require("vscode"),{userFacing:i=!0}=r,a=t?.recoverable??!0;i&&!a&&n.window.showErrorMessage(`Explorer Dates: ${e} feature unavailable. Please reinstall or rebuild the extension.`)}wt.exports={ExtensionError:ye,ERROR_CODES:_t,isPermissionError:nn,ChunkLoadError:Ue,handleChunkFailure:an}});var $e=E((pa,Tt)=>{var Dt="EXPLORER_DATES_FORCE_VSCODE_FS";function Ct(e,t=process.env){return String(t?.[e]||"")==="1"}function be(e){let t=e&&typeof e=="object"?e:null,r=String(t?.scheme||(typeof e=="string"&&/^[a-z][a-z0-9+.-]*:/i.test(e)?e.split(":",1)[0]:"file")).toLowerCase(),n=String(t?.authority||""),i=t?.path||t?.fsPath||(typeof e=="string"?e.replace(/^[a-z][a-z0-9+.-]*:\/\//i,""):"");return{scheme:r,authority:n,path:String(i||"")}}function on({uri:e,isWeb:t=!1,remoteName:r="",forceWorkspaceFs:n=Ct(Dt)}={}){let i=be(e),a=i.scheme!=="file",o=!!t,s=!!r,c=!!(n||o||s||a);return{scheme:i.scheme,authority:i.authority,isFileScheme:!a,isVirtual:a,isBrowser:o,isRemote:s,forceWorkspaceFs:!!n,filesystem:c?"workspace.fs":"node.fs",provider:a?i.scheme==="github"||i.scheme==="vscode-vfs"?"github":"virtual":"filesystem"}}function St({uri:e,platform:t=process.platform,caseSensitive:r}={}){return typeof r=="boolean"?r:be(e).scheme!=="file"?!0:t!=="win32"}function sn(e,t={}){let r=be(e),n=r.path.replace(/\\/g,"/").replace(/\/+/g,"/"),i=`${r.scheme}://${r.authority}${n}`;return St({uri:e,...t})?i:i.toLowerCase()}function He(e){if(e instanceof Date){let t=e.getTime();return Number.isFinite(t)?t:null}if(typeof e=="number")return Number.isFinite(e)?e:null;if(typeof e=="string"&&e.trim()){let t=Date.parse(e);return Number.isFinite(t)?t:null}return null}function cn(e){if(!e||typeof e!="object")return null;let t=He(e.mtime),r=He(e.ctime);return{...e,mtimeMs:t,ctimeMs:r}}Tt.exports={FORCE_WORKSPACE_FS_ENV:Dt,envFlag:Ct,getUriParts:be,getEnvironmentContract:on,isCaseSensitive:St,resourceIdentity:sn,normalizeTimestamp:He,normalizeStat:cn}});var K=E((ya,At)=>{function ln(){return typeof Date=="function"&&Date.now?Date.now():16409952e5}function vt(e){return!!(e&&typeof e=="object"&&typeof e.getTime=="function")}function un(e){if(vt(e))return e;if(typeof e=="number")return new Date(e);if(typeof e=="string"){let t=Date.parse(e);return isNaN(t)?new Date:new Date(t)}return new Date}function B(e=""){return e?e.replace(/\\/g,"/"):""}function hn(e=""){let t=B(e);return t?t.split("/").filter(Boolean):[]}function Ft(e=""){let t=hn(e);return t.length?t[t.length-1]:""}function dn(e=""){let t=Ft(e),r=t.lastIndexOf(".");return r<=0?"":t.substring(r).toLowerCase()}function fn(e=""){let t=B(e),r=t.lastIndexOf("/");return r===-1?"":t.substring(0,r)}function gn(...e){return B(e.filter(Boolean).join("/")).replace(/\/+/g,"/")}function mn(e=""){return B(e).toLowerCase()}function pn(e=""){if(!e)return"";if(typeof e=="string")return e;if(typeof e.fsPath=="string"&&e.fsPath.length>0)return e.fsPath;if(typeof e.path=="string"&&e.path.length>0)return e.path;if(typeof e.toString=="function")try{return e.toString(!0)}catch{return e.toString()}return String(e)}function yn(e="",t=""){let r=B(e),n=B(t);return r&&n.startsWith(r)?n.substring(r.length).replace(/^\/+/,""):n}At.exports={ensureDate:un,isDateLike:vt,getCurrentTimestamp:ln,normalizePath:B,getFileName:Ft,getExtension:dn,getDirectory:fn,joinPath:gn,getCacheKey:mn,getUriPath:pn,getRelativePath:yn}});var Rt=E((exports,module)=>{var chunk=null;try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){try{chunk=dynamicRequire("../chunks/utils-shared-chunk")}catch{}try{chunk||(chunk=dynamicRequire("./chunks/utils-shared-chunk"))}catch{}try{chunk||(chunk=dynamicRequire("../chunks/date-helpers-chunk"))}catch{}try{chunk||(chunk=dynamicRequire("./chunks/date-helpers-chunk"))}catch{}}}catch{}if(chunk&&(chunk.ensureDate||chunk.isDateLike||chunk.getCurrentTimestamp))module.exports={ensureDate:chunk.ensureDate,isDateLike:chunk.isDateLike,getCurrentTimestamp:chunk.getCurrentTimestamp};else{let e=function(){return typeof Date=="function"&&Date.now?Date.now():16409952e5},t=function(n){return!!(n&&typeof n=="object"&&typeof n.getTime=="function")},r=function(n){if(t(n))return n;if(typeof n=="number")return new Date(n);if(typeof n=="string"){let i=Date.parse(n);return isNaN(i)?new Date:new Date(i)}return new Date};getCurrentTimestamp=e,isDateLike=t,ensureDate=r,module.exports={ensureDate:r,isDateLike:t,getCurrentTimestamp:e}}var getCurrentTimestamp,isDateLike,ensureDate});var Be=E((ba,It)=>{var C=require("vscode"),{isWebEnvironment:Pt}=J(),{normalizePath:bn}=ce(),{ExtensionError:En,ERROR_CODES:_n,isPermissionError:wn}=kt(),{getEnvironmentContract:kn,normalizeStat:Dn,FORCE_WORKSPACE_FS_ENV:Cn}=$e(),Q;try{let e=K();e&&(Q=e.ensureDate)}catch{}Q||(Q=Rt().ensureDate);var xt=typeof process<"u"&&process.env?process.env:{},Mt=xt.VSCODE_WEB==="true"||Pt(),T=null;if(!Mt)try{T=require("fs").promises}catch{T=null}var Ee=class{constructor(){this.isWeb=Mt||Pt()}q(t){try{return kn({uri:this.E(t),isWeb:this.isWeb,remoteName:C.env?.remoteName,forceWorkspaceFs:xt[Cn]==="1"}).filesystem==="workspace.fs"}catch{return!1}}x(t){if(!t)return"";if(typeof t=="string")return t;if(t&&typeof t=="object"&&typeof t.fsPath=="string")return t.fsPath;if(t&&typeof t=="object"&&typeof t.path=="string")return t.path;if(typeof t=="object"){if(typeof t.fsPath=="string")return t.fsPath;if(typeof t.path=="string")return t.path}return String(t)}E(t){if(t&&typeof t=="object"&&typeof t.scheme=="string"&&typeof t.path=="string")return t;if(typeof t=="string"){let r=t.trim(),n=/^[a-zA-Z]:[\\/]/.test(r);if(/^[a-zA-Z][a-zA-Z0-9+.-]*:/.test(r)&&!n){let a=C.Uri.parse(r);if(a.scheme&&a.scheme!=="file")return a}return C.Uri.file(t)}if(t&&typeof t=="object"){if(t.uri&&t.uri!==t)try{return this.E(t.uri)}catch{}if(this.isWeb&&typeof t.scheme=="string"&&typeof t.path=="string")return C.Uri.from({scheme:t.scheme,authority:t.authority||"",path:t.path||"",query:t.query||"",fragment:t.fragment||""});if(typeof t.fsPath=="string"&&t.fsPath.length>0)return C.Uri.file(t.fsPath);if(typeof t.path=="string"&&t.path.length>0)return this.isWeb&&typeof t.scheme=="string"&&t.scheme!=="file"?C.Uri.from({scheme:t.scheme,authority:t.authority||"",path:t.path,query:t.query||"",fragment:t.fragment||""}):C.Uri.file(t.path);if(typeof t.href=="string"&&t.href.length>0)return C.Uri.parse(t.href);if(typeof t.scheme=="string")return C.Uri.from({scheme:t.scheme,authority:t.authority||"",path:t.path||t.fsPath||"",query:t.query||"",fragment:t.fragment||""});if(typeof t.toString=="function")try{let r=t.toString(!0);if(r&&r!=="[object Object]")return C.Uri.parse(r)}catch{let r=t.toString();if(r&&r!=="[object Object]")return C.Uri.parse(r)}}throw new Error(`Unsupported target type: ${typeof t}`)}async stat(t){let r=this.q(t);if(!this.isWeb&&T&&!r)return T.stat(this.x(t));let n=this.E(t),i=await C.workspace.fs.stat(n),a=Dn(i);return{...a,mtime:a.mtimeMs===null?Q(i.mtime):new Date(a.mtimeMs),ctime:a.ctimeMs===null?Q(i.ctime):new Date(a.ctimeMs),birthtime:a.ctimeMs===null?Q(i.ctime):new Date(a.ctimeMs),isFile:()=>i.type===C.FileType.File,isDirectory:()=>i.type===C.FileType.Directory}}async readFile(t,r="utf8"){let n=this.q(t);if(!this.isWeb&&T&&!n)return T.readFile(this.x(t),r);let i=this.E(t),a=await C.workspace.fs.readFile(i);return r===null||r==="binary"?a:new TextDecoder(r).decode(a)}async writeFile(t,r,n="utf8"){let i=this.x(t);try{let a=this.q(t);if(!this.isWeb&&T&&!a)return T.writeFile(i,r,n);let o=this.E(t),s=typeof r=="string"?new TextEncoder().encode(r):r;await C.workspace.fs.writeFile(o,s)}catch(a){this.ze("write file",i,a)}}async rename(t,r,n={overwrite:!1}){let i=this.x(t),a=this.x(r);try{let o=this.q(t)||this.q(r);if(!this.isWeb&&T&&!o)return T.rename(i,a);if(typeof C.workspace.fs.rename=="function")await C.workspace.fs.rename(this.E(t),this.E(r),n);else if(this.E(t).scheme==="file"&&this.E(r).scheme==="file")await(T||require("fs").promises).rename(i,a);else throw new Error("The active filesystem provider cannot rename report output.")}catch(o){this.ze("rename file",`${i} -> ${a}`,o)}}async mkdir(t,r={recursive:!0}){let n=this.x(t);try{let i=this.q(t);if(!this.isWeb&&T&&!i)return T.mkdir(n,r);let a=this.E(t);await C.workspace.fs.createDirectory(a)}catch(i){this.ze("create directory",n,i)}}async readdir(t,r={withFileTypes:!1}){let n=this.q(t);if(!this.isWeb&&T&&!n)return T.readdir(this.x(t),r);let i=this.E(t),a=await C.workspace.fs.readDirectory(i);return r.withFileTypes?a.map(([o,s])=>({name:o,isDirectory:()=>s===C.FileType.Directory,isFile:()=>s===C.FileType.File})):a.map(([o])=>o)}async delete(t,r={recursive:!1}){let n=this.q(t);if(!this.isWeb&&T&&!n){let a=this.x(t);return r.recursive?T.rm?T.rm(a,r):T.rmdir(a,r):T.unlink(a)}let i=this.E(t);await C.workspace.fs.delete(i,r)}async exists(t){try{return await this.stat(t),!0}catch{return!1}}async ensureDirectory(t){let r=bn(this.x(t));await this.mkdir(r,{recursive:!0})}ze(t,r,n){throw wn(n)?new En(_n.FILE_PERMISSION_DENIED,`Permission denied while attempting to ${t}`,{path:r,code:n.code}):n}},Sn=new Ee;It.exports={FileSystemAdapter:Ee,fileSystem:Sn}});var I=E((Ea,Lt)=>{var ee=typeof process<"u"&&process.env?process.env:{},Tn=12e4,vn=1e4,Fn=1440*60*1e3,An=2,Rn=["Ja","Fe","Mr","Ap","My","Jn","Jl","Au","Se","Oc","No","De"],Pn=Number(ee.EXPLORER_DATES_DECORATION_POOL_SIZE||2048),xn=Number(ee.EXPLORER_DATES_FLYWEIGHT_CACHE_SIZE||4096),Mn=Number(ee.EXPLORER_DATES_WORKSPACE_BALANCED_THRESHOLD||15e3),In=Number(ee.EXPLORER_DATES_WORKSPACE_LARGE_THRESHOLD||25e4),Wt=Number(ee.EXPLORER_DATES_WORKSPACE_EXTREME_THRESHOLD||4e5),Wn=Number(ee.EXPLORER_DATES_WORKSPACE_SCAN_MAX_RESULTS||Math.min(Wt+1,50001)),Ln={ADVANCED_CACHE:"explorerDates.advancedCache",ADVANCED_CACHE_METADATA:"explorerDates.advancedCacheMetadata",TEMPLATE_STORE:"explorerDates.templates",WEB_GIT_NOTICE:"explorerDates.webGitNotice"},On="explorerDatesChunks",Nn="__explorerDatesChunks";Lt.exports={DEFAULT_CACHE_TIMEOUT:Tn,DEFAULT_MAX_CACHE_SIZE:vn,DEFAULT_PERSISTENT_CACHE_TTL:Fn,DEFAULT_DECORATION_POOL_SIZE:Pn,DEFAULT_FLYWEIGHT_CACHE_SIZE:xn,MAX_BADGE_LENGTH:An,MONTH_ABBREVIATIONS:Rn,WORKSPACE_SCALE_BALANCED_THRESHOLD:Mn,WORKSPACE_SCALE_LARGE_THRESHOLD:In,WORKSPACE_SCALE_EXTREME_THRESHOLD:Wt,WORKSPACE_SCAN_MAX_RESULTS:Wn,GLOBAL_STATE_KEYS:Ln,WEB_CHUNK_GLOBAL_KEY:On,LEGACY_WEB_CHUNK_GLOBAL_KEY:Nn}});var Ke=E((_a,Nt)=>{var{MAX_BADGE_LENGTH:Ot}=I();function qn(e=0,t="auto"){let r=typeof e=="number"&&!Number.isNaN(e)?e:0;if(t==="bytes")return`~${r}B`;let n=r/1024;if(t==="kb")return`~${n.toFixed(1)}K`;let i=n/1024;return t==="mb"?`~${i.toFixed(1)}M`:r<1024?`~${r}B`:n<1024?`~${Math.round(n)}K`:`~${i.toFixed(1)}M`}function zn(e){if(e)return e.length>Ot?e.substring(0,Ot):e}Nt.exports={formatFileSize:qn,trimBadge:zn}});var q=E((wa,qt)=>{var te="__explorerDatesLogger",re=class{constructor(){this.we=null}ke(t,r){if(this.we&&typeof this.we[t]=="function")try{return this.we[t](...r)}catch{}switch(t){case"debug":break;case"info":break;case"warn":break;case"error":break;default:break}}debug(...t){return this.ke("debug",t)}info(...t){return this.ke("info",t)}warn(...t){return this.ke("warn",t)}error(...t){return this.ke("error",t)}Jr(t){this.we=t}};function Un(){return typeof global<"u"?(global[te]||(global[te]=new re),global[te]):typeof globalThis<"u"?(globalThis[te]||(globalThis[te]=new re),globalThis[te]):(je||(je=new re),je)}var Ve=class extends re{},je=null;qt.exports={Logger:Ve,getLogger:Un}});var Ge=E((exports,module)=>{var{getLogger}=q(),env=typeof process<"u"&&process.env?process.env:{};function createFallbackVscodeMinimal(){return{workspace:{workspaceFolders:[],getConfiguration:()=>({get:()=>{},async update(){},inspect:()=>({defaultValue:void 0,globalValue:void 0,workspaceValue:void 0,workspaceFolderValue:void 0})})},ConfigurationTarget:{Global:1,Workspace:2,WorkspaceFolder:3}}}function resolveVscodeMinimal(){try{return require("vscode")}catch{return createFallbackVscodeMinimal()}}var MinimalSettingsCoordinator=class{constructor(t={}){this.qt=t.defaultSection||"explorerDates",this.De=new Map,this.dt=new Map,this.Qr=Number(env.EXPLORER_DATES_LOCK_WAIT_WARN_MS||1e3),this._logger=getLogger()}zt(t,r){let i=(this.De.get(t)||Promise.resolve()).then(()=>r()),a=i.catch(()=>{});return this.De.set(t,a),i.finally(()=>{this.De.get(t)===a&&this.De.delete(t)}),i}Ue(t,r){return resolveVscodeMinimal().workspace.getConfiguration(t||void 0,r)}se(t,r){let n=r||this.qt;return n?t.startsWith(`${n}.`)?{section:n,key:t.slice(n.length+1),fullKey:t}:t.includes(".")?{section:void 0,key:t,fullKey:t}:{section:n,key:t,fullKey:`${n}.${t}`}:{section:void 0,key:t,fullKey:t}}async updateSetting(t,r,n={}){return this.zt(this.se(t,n.section).fullKey,async()=>{let i=this.se(t,n.section),a=this.Ue(i.section,n.resource);try{let o=this.Ut(n.scope,n.resource);return await a.update(i.key,r,o),{key:i.fullKey,updated:!0}}catch(o){try{this._logger.warn(`Configuration update failed for ${i.fullKey}: ${o&&o.message}`)}catch{}return{key:i.fullKey,updated:!1,error:o}}})}async applySettings(t,r={}){let n=Array.isArray(t)?t:Object.entries(t).map(([o,s])=>({key:o,value:s})),i=[];for(let o of n)try{i.push(await this.updateSetting(o.key,o.value,r))}catch(s){i.push({key:this.se(o.key,r.section).fullKey,updated:!1,error:s})}let a=i.filter(o=>o&&o.error);if(a.length>0){let o=a.map(c=>`${c.key}: ${c.error&&c.error.message?c.error.message:String(c.error)}`),s=new Error(`Failed to apply ${a.length} setting(s): ${o.join("; ")}`);throw s.details=a,s}return i}Ut(t,r){return t&&t!=="auto"?this.Ht(t)||resolveVscodeMinimal().ConfigurationTarget.Workspace:r?resolveVscodeMinimal().ConfigurationTarget.WorkspaceFolder:resolveVscodeMinimal().workspace.workspaceFolders&&resolveVscodeMinimal().workspace.workspaceFolders.length>0?resolveVscodeMinimal().ConfigurationTarget.Workspace:resolveVscodeMinimal().ConfigurationTarget.Global}Ht(t){switch(t){case"user":return resolveVscodeMinimal().ConfigurationTarget.Global;case"workspace":return resolveVscodeMinimal().ConfigurationTarget.Workspace;case"workspaceFolder":return resolveVscodeMinimal().ConfigurationTarget.WorkspaceFolder;default:return}}getValue(t,r={}){let{section:n,resource:i}=r||{},a=this.se(t,n);return this.Ue(a.section,i).get(a.key)}inspect(t,r={}){let{section:n,resource:i}=r||{},a=this.se(t,n);return this.Ue(a.section,i).inspect(a.key)}async clearSetting(t,r={}){return this.updateSetting(t,void 0,r)}getLockWaitStats(){let t={};for(let[r,n]of this.dt.entries())t[r]={...n};return t}resetLockWaitStats(){this.dt.clear()}},cachedCoordinator=null;function getSettingsCoordinator(options){if(!cachedCoordinator||options&&options.forceNew){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=null;try{e=dynamicRequire("../chunks/settings-coordinator-impl-chunk")}catch{}try{e||(e=dynamicRequire("../chunks/settingsCoordinator-impl-chunk"))}catch{}if(e&&typeof e.createSettingsCoordinatorImpl=="function")return cachedCoordinator=e.createSettingsCoordinatorImpl(options),cachedCoordinator}}catch{}try{let{WEB_CHUNK_GLOBAL_KEY:e,LEGACY_WEB_CHUNK_GLOBAL_KEY:t}=I(),r=typeof globalThis<"u"&&(globalThis[e]||globalThis[t])||null;if(r&&r.settingsCoordinatorImpl&&typeof r.settingsCoordinatorImpl.createSettingsCoordinatorImpl=="function")return cachedCoordinator=r.settingsCoordinatorImpl.createSettingsCoordinatorImpl(options),cachedCoordinator}catch{}cachedCoordinator=new MinimalSettingsCoordinator(options)}return cachedCoordinator}module.exports={getSettingsCoordinator,MinimalSettingsCoordinator}});var Je=E((ka,$t)=>{var{normalizePath:Xe,getUriPath:Hn}=ce(),{getLogger:$n}=q(),le=typeof process<"u"&&process.env?process.env:{},Bn=$n(),ue=240,Ye=255,zt=/[\x00-\x1f\x7f<>:"|?*]/g,Kn=/[\x00-\x1f\x7f<>:"|?*]/,jn=[/\.\./,/\.\.[\\/]/,/[\\/]\.\./,/^\.\.$/,/^\.\.[\\/]/,/[\\/]\.\.$/],Ut=new Set(["CON","PRN","AUX","NUL","COM1","COM2","COM3","COM4","COM5","COM6","COM7","COM8","COM9","LPT1","LPT2","LPT3","LPT4","LPT5","LPT6","LPT7","LPT8","LPT9"]),Ht=new Set([".exe",".scr",".bat",".cmd",".pif",".vbs",".js",".jar",".com",".msi",".dll",".dmg",".pkg",".deb",".rpm"]),Vn=new Set([".js",".jsx",".ts",".tsx",".mjs",".cjs",".py",".rb",".rs",".go",".php",".java",".kt",".swift",".cs",".c",".cpp",".h",".hpp",".html",".css",".scss",".less",".json",".jsonc",".md",".mdx",".txt",".sh",".bash",".yml",".yaml"]),Gn=()=>le.EXPLORER_DATES_TEST_MODE==="1"||le.NODE_ENV==="test"||le.VSCODE_TEST==="1"?"test":le.EXPLORER_DATES_DEV_MODE==="1"||le.NODE_ENV==="development"?"development":"production",ne=class{static hasPathTraversal(t){let r=this.V(t);if(!r||typeof r!="string")return!1;let n=Xe(r);return jn.some(i=>i.test(n))}static hasDangerousChars(t){let r=this.V(t);return!r||typeof r!="string"?!1:Kn.test(r)}static isWindowsReservedName(t){if(!t||typeof t!="string")return!1;let r=t.split(".")[0].toUpperCase();return Ut.has(r)}static isSuspiciousExtension(t,r={}){let{workspaceContext:n=!0}=r;if(!t||typeof t!="string")return!1;let i=t.toLowerCase(),a=i.startsWith(".")?i:`.${i}`;return n&&Vn.has(a)?!1:Ht.has(a)}static isPathTooLong(t){let r=this.V(t);return!r||typeof r!="string"?!1:r.length>ue}static isFilenameTooLong(t){return!t||typeof t!="string"?!1:t.length>Ye}static validatePath(t,r={}){let{allowSuspiciousExtensions:n=!1,allowWindowsReservedNames:i=!1,strictLength:a=!0,workspaceContext:o=!0}=r,s=this.V(t),c=[],u=[];if(!s||typeof s!="string")return{isValid:!1,path:s,issues:["Invalid or empty path"],warnings:[],isSafe:!1};this.hasPathTraversal(s)&&c.push("Path contains directory traversal attempts"),this.hasDangerousChars(s)&&c.push("Path contains dangerous characters"),a&&this.isPathTooLong(s)&&c.push(`Path exceeds maximum length (${ue})`);let l=s.split(/[/\\]/).pop()||"";a&&this.isFilenameTooLong(l)&&c.push(`Filename exceeds maximum length (${Ye})`),!i&&this.isWindowsReservedName(l)&&u.push("Filename is a Windows reserved name");let d=l.includes(".")?l.split(".").pop():"";return!n&&this.isSuspiciousExtension(d,{workspaceContext:o})&&u.push("File extension is potentially suspicious"),{isValid:c.length===0,path:s,filename:l,extension:d,issues:c,warnings:u,isSafe:c.length===0&&u.length===0}}static sanitizePath(t,r={}){let{replacementChar:n="_",preserveExtension:i=!0}=r,a=this.V(t);if(!a||typeof a!="string")return"";a=a.replace(/\x00/g,"");let o=a.startsWith("/"),s=Xe(a).split("/").filter(Boolean),c=[];for(let u of s){if(u===".."){c.length>0&&c.pop();continue}u!=="."&&c.push(u)}if(a=(o?"/":"")+c.join("/"),a=a.replace(zt,n),i){let u=a.split("/"),l=u[u.length-1];if(l&&this.isWindowsReservedName(l)){let d=l.split(".");d[0]=d[0]+"_safe",u[u.length-1]=d.join("."),a=u.join("/")}}return a.length>ue&&(a=a.substring(0,ue),Bn.warn("Path truncated due to length:",a)),a}static isWithinBoundaries(t,r=[]){let n=this.V(t);if(!n||!Array.isArray(r)||r.length===0)return!1;let i=n.split("/").filter(Boolean),a=[];for(let s of i)s===".."?a.length>0&&a.pop():s!=="."&&a.push(s);let o="/"+a.join("/");return r.some(s=>{let c=Xe(s);return o.startsWith(c)})}static validateRegexPattern(t){if(!t||typeof t!="string")return{isValid:!1,issue:"Invalid pattern"};let r=[/\([^)]*\+[^)]*\)\+/,/\([^)]*\*[^)]*\)\*/,/\([^)]*\+[^)]*\)\*/,/\([^)]*\*[^)]*\)\+/,/\+.*\*|{\d+,}.*\*/,/\([^|]*\|[^)]*\)\*/];for(let n of r)if(n.test(t))return{isValid:!1,issue:"Pattern may cause catastrophic backtracking (ReDoS)"};try{return new RegExp(t),{isValid:!0}}catch(n){return{isValid:!1,issue:`Invalid regex syntax: ${n.message}`}}}static V(t){if(!t)return"";if(typeof t=="string")return t;try{return Hn(t)}catch{return String(t)}}},Ze=class{static validateFileUri(t,r=[]){if(!t||typeof t!="object")return{isValid:!1,issue:"Invalid URI object"};if(t.scheme!=="file"&&t.scheme!=="vscode-vfs")return{isValid:!1,issue:`Unsupported URI scheme: ${t.scheme}`};let n=ne.validatePath(t);return n.isValid?r.length>0&&!ne.isWithinBoundaries(t,r)?{isValid:!1,issue:"Path is outside allowed workspace boundaries"}:{isValid:!0,warnings:n.warnings}:{isValid:!1,issue:`Path validation failed: ${n.issues.join(", ")}`}}static validateExclusionPatterns(t){if(!Array.isArray(t))return{isValid:!1,issue:"Patterns must be an array"};let r=[],n=[];for(let i of t){if(typeof i!="string"){n.push(`Invalid pattern type: ${typeof i}`);continue}let a=i.replace(/\./g,"\\.").replace(/\*/g,".*").replace(/\?/g,"."),o=ne.validateRegexPattern(a);r.push({pattern:i,isValid:o.isValid,issue:o.issue}),o.isValid||n.push(`Pattern "${i}": ${o.issue}`)}return{isValid:n.length===0,results:r,issues:n}}};$t.exports={SecurityValidator:ne,SecureFileOperations:Ze,detectSecurityEnvironment:Gn,MAX_SAFE_PATH_LENGTH:ue,MAX_SAFE_FILENAME_LENGTH:Ye,DANGEROUS_PATH_CHARS:zt,WINDOWS_RESERVED_NAMES:Array.from(Ut),SUSPICIOUS_EXTENSIONS:Array.from(Ht)}});var he=E((Da,Vt)=>{var Kt=typeof process<"u"&&process.env?process.env:{},Bt="[ExplorerDates][WebDiag]",Qe="__explorerDatesWebDiagnostics",_e;function Xn(){try{let e=require("vscode");return e?.env?.uiKind===e?.UIKind?.Web}catch{return Kt.VSCODE_WEB==="true"}}function P(){return _e!==void 0||(_e=Kt.EXPLORER_DATES_WEB_DIAG==="1"||Xn()),_e}function jt(){return{enabled:P(),logs:[],logOnce:new Set,commandsRegistered:new Set,commandsInvoked:[],errors:[],chunkLoads:[],provider:{created:!1,registered:!1,hydrated:!1,decorationCalls:0,refreshCalls:0,lastEvent:null}}}var Yn=jt();function x(){return typeof globalThis<"u"?(globalThis[Qe]||(globalThis[Qe]=jt()),globalThis[Qe]):Yn}function Zn(e){try{return JSON.stringify(e)}catch{return String(e)}}function W(e,t,r){if(!P())return;let n=x(),i={ts:new Date().toISOString(),level:e,message:t,meta:r||null};n.logs.push(i),n.logs.length>400&&n.logs.shift();let a=r?`${Bt} ${t} ${Zn(r)}`:`${Bt} ${t}`,o=console[e]||console.info;try{o(a)}catch{}}function Jn(e,t,r,n){if(!P())return;let i=x();i.logOnce.has(e)||(i.logOnce.add(e),W(t,r,n))}function Qn(e){if(!P())return;x().commandsRegistered.add(e),W("info","Command registered",{commandId:e})}function ei(e){if(!P())return;x().commandsInvoked.push({commandId:e,ts:Date.now()}),W("info","Command invoked",{commandId:e})}function ti(e,t,r,n,i){if(!P())return;let a=n||(t?"behavioral-success":"unhandled-command-failure"),o=r?{name:r.name||"Error",message:r.message||String(r),code:r.code||null}:null;t?W("info","Command completed",{commandId:e,outcomeCategory:a}):(W("error","Command failed",{commandId:e,outcomeCategory:a,error:o,errorContext:i||null}),x().errors.push({commandId:e,outcomeCategory:a,error:o,errorContext:i||null}))}function ri(e,t,r){if(!P())return;x().chunkLoads.push({chunkName:e,stage:t,ts:Date.now(),error:r?r.message||String(r):null}),W(r?"warn":"info",`Chunk ${t}`,{chunkName:e,error:r?.message})}function ni(e,t){if(!P())return;let r=x();r.provider.lastEvent={event:e,ts:Date.now(),meta:t||null},e==="created"&&(r.provider.created=!0),e==="registered"&&(r.provider.registered=!0),e==="hydrated"&&(r.provider.hydrated=!0),W("info",`Provider ${e}`,t)}function ii(){if(!P())return;let e=x();e.provider.decorationCalls+=1,e.provider.decorationCalls<=3&&W("info","Decoration request observed",{count:e.provider.decorationCalls})}function ai(){if(!P())return;let e=x();e.provider.refreshCalls+=1}Vt.exports={isWebDiagnosticsEnabled:P,getWebDiagnosticsState:x,diagLog:W,diagLogOnce:Jn,recordCommandRegistration:Qn,recordCommandInvocation:ei,recordCommandResult:ti,recordChunkEvent:ri,recordProviderEvent:ni,recordDecorationCall:ii,recordRefreshCall:ai}});var it=E((Ca,er)=>{var we=require("vscode"),{normalizePath:rt,getRelativePath:oi}=ce(),{diagLogOnce:si}=he(),{normalizeTimestamp:de,resourceIdentity:ci}=$e(),li={unknown:0,github:1,git:2,fs:3},tt={low:1,medium:2,high:3};function L(e,t,r){try{return e?.get?e.get(t,r):r}catch{return r}}function ui(e){return{nowMinutes:Number(L(e,"freshnessBucketMinutesNow",60))||60,todayHours:Number(L(e,"freshnessBucketHoursToday",24))||24,twoDays:Number(L(e,"freshnessBucketDaysTwo",2))||2,oneWeek:Number(L(e,"freshnessBucketDaysWeek",7))||7}}function Gt(e,t){if(!Number.isFinite(e)||e<0)return"unknown";let r=t.nowMinutes*60*1e3,n=t.todayHours*60*60*1e3,i=t.twoDays*24*60*60*1e3,a=t.oneWeek*24*60*60*1e3;return e<=r?"now":e<=n?"today":e<=i?"2d":e<=a?"1w":"stale"}function Xt(e){switch(e){case"now":return"now";case"today":return"today";case"2d":return"2d";case"1w":return"1w";case"stale":return"stale";default:return"unknown"}}function Yt(e){switch(e){case"fs":return"Filesystem";case"git":return"Git";case"github":return"GitHub";default:return"Unknown"}}function Zt(e){switch(e){case"now":return"!!";case"today":return"T";case"2d":return"2d";case"1w":return"1w";case"stale":return"~~";default:return"?"}}function hi(e,t,r){let n=!!L(r,"freshnessShowUnknown",!0);if(e==="unknown"||t==="unknown")return n?"?":null;let i=Zt(e);return!i||i==="unknown"?n?"?":null:i}function di(e){try{let t=de(e);return t===null?null:new Date(t).toISOString().replace("T"," ").replace("Z","")}catch{return null}}function fi(e,t){if(!e)return;let r=L(t,"freshnessTooltipVerbosity","full"),n=L(t,"badge.sourceLabelMode","auto"),i=[],a=Xt(e.bucket),o=Yt(e.source);if(i.push(`Freshness: ${a}`),e.exactTimestamp){let u=di(e.exactTimestamp);u&&i.push(`Exact time: ${u}`)}let s=e.source==="fs"&&e.confidence==="high";return(n==="always"||n!=="never"&&!s||n!=="never"&&r==="full")&&i.push(`Source: ${o}`),e.author&&i.push(`Author: ${e.author}`),e.message&&i.push(`Message: ${e.message}`),i.push(`Confidence: ${e.confidence}`),e.reason&&r==="full"&&i.push(`Reason: ${e.reason}`),i.join(` +`)}function gi(e,t,r){if(!Number.isFinite(t)||t<=0)return!1;let n=300*1e3;if(t>r+n)return!1;if(e==="file")return!0;let i=r-t,a=300*1e3,o=365*24*60*60*1e3*10;return!(io)}function nt({source:e,timestampMs:t,author:r,message:n,confidence:i,reason:a},o){if(!Number.isFinite(t))return{bucket:"unknown",source:e||"unknown",confidence:i||"low",reason:a||"no-timestamp"};let s=ui(o),c=Date.now()-t;return{bucket:Gt(c,s),source:e,exactTimestamp:t,author:r||void 0,message:n||void 0,confidence:i,reason:a||void 0}}async function mi(e,t,r){let n=e?.scheme||"file",i=!!L(r,"freshnessAllowVirtualFs",!1);if(n!=="file"&&!i)return{freshness:null,reason:"fs-virtual-disabled"};let a=t?.mtimeMs??de(t?.mtime),o=Date.now();return Number.isFinite(a)?gi(n,a,o)?{freshness:nt({source:"fs",timestampMs:a,confidence:n==="file"?"high":"medium",reason:n==="file"?"fs-trust-high":"fs-trust-medium"},r),reason:null}:{freshness:null,reason:"fs-mtime-untrusted"}:{freshness:null,reason:"fs-mtime-missing"}}async function pi(e,t,r){if(!t||typeof t.He!="function")return{freshness:null,reason:"git-provider-missing"};let n;try{n=await t.He(e)}catch(o){return{freshness:null,reason:`git-error:${o?.message||"unknown"}`}}let i=de(n?.timestampMs);return i===null||i<=0?{freshness:null,reason:n?.error||"git-no-timestamp"}:{freshness:nt({source:"git",timestampMs:i,author:n?.author||void 0,message:n?.message||void 0,confidence:"medium",reason:"git-recency"},r),reason:null}}function Jt(e){if(!e||(e.scheme||"")!=="github")return null;let n=rt(e.path||"").replace(/^\/+/,"").split("/").filter(Boolean);if(n.length<2)return null;let i=n[0],a=n[1],o=n.slice(2).join("/"),s=new URLSearchParams(e.query||""),c=s.get("ref")||s.get("branch")||"HEAD";return{owner:i,repo:a,filePath:o,ref:c}}function yi(e){let t=(e||"").indexOf("+");if(t===-1)return"HEAD";let r=e.slice(t+1);try{let n;if(typeof TextDecoder<"u"){let o=new Uint8Array(r.length/2);for(let s=0;s0)return a}catch{}return"HEAD"}function Qt(e){if(!e||e.scheme!=="vscode-vfs"||!String(e.authority||"").startsWith("github"))return null;let r=rt(e.path||"").replace(/^\/+/,"").split("/").filter(Boolean);if(r.length<2)return null;let n=r[0],i=r[1],a=r.slice(2).join("/"),o=yi(e.authority||"");return{owner:n,repo:i,filePath:a,ref:o}}function bi(e){try{let t=we.workspace.workspaceFolders||[];for(let r of t){let n=r?.uri?.scheme;if(n==="github"){let i=Jt(r.uri);if(!i)continue;let a=oi(r.uri.path||"",e?.path||"");return{...i,filePath:a}}if(n==="vscode-vfs"&&String(r?.uri?.authority||"").startsWith("github")){let i=Qt(r.uri);if(!i)continue;let o=rt(e?.path||"").replace(/^\/+/,"").split("/").filter(Boolean).slice(2).join("/");if(!o)continue;return{...i,filePath:o}}}}catch{}return null}async function Ei(e,t){let r=Jt(e)||Qt(e)||bi(e);if(!r||!r.owner||!r.repo||!r.filePath)return{freshness:null,reason:"github-context-missing"};let n=`${r.owner}/${r.repo}@${r.ref}:${r.filePath}`,i=`https://api.github.com/repos/${r.owner}/${r.repo}/commits?path=${encodeURIComponent(r.filePath)}&sha=${encodeURIComponent(r.ref)}&per_page=1`,a={Accept:"application/vnd.github+json"};try{let y=we?.authentication&&typeof we.authentication.getSession=="function"?await we.authentication.getSession("github",["repo"],{createIfNone:!1}):null;y?.accessToken&&(a.Authorization=`Bearer ${y.accessToken}`)}catch{}if(typeof fetch!="function")return{freshness:null,reason:"github-fetch-unavailable"};let o;try{o=await fetch(i,{headers:a})}catch(y){return{freshness:null,reason:`github-fetch-error:${y?.message||"unknown"}`}}if(!o||!o.ok)return{freshness:null,reason:o?`github-http-${o.status}`:"github-no-response"};let s;try{s=await o.json()}catch{return{freshness:null,reason:"github-json-error"}}let c=Array.isArray(s)?s[0]:null,u=c?.commit||null,l=u?.author?.name||c?.author?.login||void 0,d=u?.message||void 0,h=de(u?.author?.date);return h===null?{freshness:null,reason:"github-no-timestamp"}:{freshness:nt({source:"github",timestampMs:h,author:l,message:d,confidence:"medium",reason:"github-commit"},t),reason:null,cacheKey:n}}function et(e,t){return!e||e==="auto"?!0:e==="unknown"?t==="unknown":e===t}async function _i({uri:e,stat:t,provider:r,config:n,workspaceKind:i}){let a=e?.scheme||"file",o=L(n,"freshnessSourcePolicy","auto"),s=[],c=Date.now();if(et(o,"fs")){let u=await mi(e,t,n);if(s.push({source:"fs",reason:u.reason||null}),u.freshness)return{...u.freshness,attempts:s}}if(et(o,"git")){let u=await pi(e,r,n);if(s.push({source:"git",reason:u.reason||null}),u.freshness)return{...u.freshness,attempts:s}}if(et(o,"github")){let u=await Ei(e,n);if(s.push({source:"github",reason:u.reason||null,cacheKey:u.cacheKey||null}),u.freshness)return{...u.freshness,attempts:s}}return si("freshness-unknown","info","No trustworthy freshness source available",{scheme:a,workspaceKind:i||"unknown",attempts:s}),{bucket:"unknown",source:"unknown",confidence:"low",reason:"no-source",attempts:s,resolvedAt:c}}function wi(e,t){if(!e)return-1;if(!t)return 1;let r=tt[e.confidence]||0,n=tt[t.confidence]||0;if(r!==n)return r-n;let i=Number(e.exactTimestamp||0),a=Number(t.exactTimestamp||0);return i-a}er.exports={resolveFreshness:_i,formatBadge:hi,formatTooltip:fi,bucketFromAge:Gt,formatBucketLabel:Xt,formatBadgeAge:Zt,formatSourceLabel:Yt,compareFreshness:wi,SOURCE_RANK:li,CONFIDENCE_RANK:tt,normalizeTimestamp:de,resourceIdentity:ci}});var rr=E((Sa,tr)=>{var{normalizePath:ki}=ce(),ke="__root__",at=class{constructor(){this.g=new Map,this.M=new Map,this.o=0}get size(){return this.o}get bucketCount(){return this.g.size}clear(){this.g.clear(),this.M.clear(),this.o=0}get(t){if(!t)return;let r=this.M.get(t);if(!r)return;let n=this.g.get(r);if(!n){this.M.delete(t);return}return n.lastAccess=Date.now(),n.entries.get(t)}set(t,r,n={}){if(!t)return;let i=n.folderKey||this.$t(t),a=this.Bt(i),o=a.entries.has(t);a.entries.set(t,r),a.lastAccess=Date.now(),o||this.o++,this.M.set(t,i)}delete(t){if(!t)return!1;let r=this.M.get(t);if(!r)return!1;let n=this.g.get(r);if(!n)return this.M.delete(t),!1;let i=n.entries.delete(t);return i&&(this.o=Math.max(0,this.o-1),n.entries.size===0&&this.g.delete(r)),this.M.delete(t),i}*entries(){for(let t of this.g.values())yield*t.entries.entries()}*keys(){for(let t of this.g.values())yield*t.entries.keys()}*values(){for(let t of this.g.values())yield*t.entries.values()}[Symbol.iterator](){return this.entries()}enforceLimit(t=0,r){if(!t||this.o<=t)return 0;let n=Math.max(Math.floor(t*.2),this.o-t,1),i=0,a=Array.from(this.g.entries()).map(([o,s])=>({folderKey:o,bucket:s}));a.sort((o,s)=>(o.bucket.lastAccess||0)-(s.bucket.lastAccess||0));for(let{folderKey:o,bucket:s}of a){if(i>=n)break;if(!s.entries.size){this.g.delete(o);continue}let c=s.entries.size,u=n-i;if(c<=u){i+=this.Kt(o,s);continue}let l=Array.from(s.entries.entries());l.sort((h,g)=>(h[1].timestamp||0)-(g[1].timestamp||0));let d=Math.min(u,Math.max(1,Math.ceil(c*.5)));for(let h=0;h0&&r&&r.debug(`Hierarchical cache eviction removed ${i} entries (${this.o} remaining)`),i}Bt(t){return this.g.has(t)||this.g.set(t,{entries:new Map,lastAccess:Date.now()}),this.g.get(t)}Kt(t,r){if(!r)return 0;let n=r.entries.size;for(let i of r.entries.keys())this.M.delete(i);return this.g.delete(t),this.o=Math.max(0,this.o-n),n}$t(t){if(!t||typeof t!="string")return ke;let r=ki(t);if(!r)return ke;let n=r.lastIndexOf("/");return n===-1?ke:r.slice(0,n)||ke}};tr.exports={HierarchicalDecorationCache:at}});var ir=E((Ta,nr)=>{async function Di(e,t,r){try{if(e.G)return e._logger?.debug?.(`\u26A0\uFE0F Cache bypass enabled - recalculating decoration for: ${r}`),null;if(e._advancedCache)try{let i=await e._advancedCache.get(t);if(i)return e._metrics.cacheHits++,e._logger?.debug?.(`\u{1F9E0} Advanced cache hit for: ${r}`),i}catch(i){e._logger?.debug?.(`Advanced cache error: ${i.message}`)}if(!e.e||typeof e.e.get!="function")return e._logger?.debug?.("getCachedDecoration: no memory cache available, falling back"),null;let n=e.e.get(t);if(n){if(n.forceRefresh){try{e.e.delete(t)}catch{}e._logger?.debug?.(`\u{1F6AB} Memory cache bypassed (forced refresh) for: ${r}`)}else if(Date.now()-n.timestampe.l)try{e.e.enforceLimit(e.l,e._logger)}catch{}let a={decoration:r,timestamp:Date.now()};i&&(a.uri=i);try{e.e.set(t,a)}catch{}try{typeof e.ce=="function"&&e.ce()}catch(o){e._logger?.debug?.("monitorCachePressure from store failed",o)}if(e._advancedCache)try{await e._advancedCache.set(t,r,{ttl:e.S}),e._logger?.debug?.(`\u{1F9E0} Stored in advanced cache: ${n}`)}catch(o){e._logger?.debug?.(`Failed to store in advanced cache: ${o.message}`)}try{typeof e.le=="function"&&e.le()}catch(o){e._logger?.debug?.("maybeExtendCacheTimeout from store failed",o)}}catch(a){e._logger?.debug?.("storeDecorationInCache failed",a)}}function Si(){class e{constructor(){this.r=null,this.n=new Map,this.o=0,this.$e=!1,this.hydrateInBackground()}get size(){return this.r?this.r.size:this.o}get bucketCount(){return this.r?this.r.bucketCount:0}clear(){if(this.r)return this.r.clear();this.n.clear(),this.o=0}get(r){return this.r?this.r.get(r):this.n.get(r)}set(r,n,i={}){if(this.r)return this.r.set(r,n,i);let a=this.n.has(r);this.n.set(r,n),a||this.o++}delete(r){if(this.r)return this.r.delete(r);let n=this.n.delete(r);return n&&(this.o=Math.max(0,this.o-1)),n}*entries(){if(this.r){yield*this.r.entries();return}yield*this.n.entries()}*keys(){if(this.r){yield*this.r.keys();return}yield*this.n.keys()}*values(){if(this.r){yield*this.r.values();return}yield*this.n.values()}[Symbol.iterator](){return this.entries()}enforceLimit(r=0,n){if(this.r)return this.r.enforceLimit(r,n);if(!r||this.o<=r)return 0;let i=0,o=Array.from(this.n.keys()).slice(0,Math.max(1,Math.ceil(this.o-r)));for(let s of o)this.n.delete(s),i++,this.o=Math.max(0,this.o-1);return i>0&&n&&n.debug(`LazyHierarchical cache eviction removed ${i} entries`),i}async jt(){if(!this.$e){this.$e=!0;try{let n=(await Promise.resolve().then(()=>R(rr()))).HierarchicalDecorationCache;this.r=new n;for(let[i,a]of this.n.entries())this.r.set(i,a);this.n=null}catch{this.$e=!1}}}hydrateInBackground(){this.jt().catch(()=>{})}}return new e}nr.exports={getCachedDecoration:Di,storeDecorationInCache:Ci,createLazyHierarchicalDecorationCache:Si}});var ar=E((va,Ti)=>{Ti.exports={migrationDetailsTitle:"Explorer Dates - Settings Migration",migrationDetailsHeader:"Settings Migration",gitAttributionWarning:"Explorer Dates: Git attribution badges are unavailable on VS Code for Web. Time-based decorations remain available.",noOverridesToDocument:"No overrides to document.",overrideNotesHeader:"# Explorer Dates Override Notes\\n\\n",analysisCommandsDisabled:"Explorer Dates analysis commands are disabled. Shortcuts like Ctrl+Shift+M/H/A will not work until you enable explorerDates.enableAnalysisCommands.",analysisEnableNow:"Enable Now",analysisEnablePartially:"Enable partially succeeded. Update explorerDates.enableAnalysisCommands in remaining workspace folders manually.",analysisEnableFailed:"Enable failed: update explorerDates.enableAnalysisCommands in workspace settings.",workspaceTemplatesDisabled:"Workspace templates are disabled. Enable explorerDates.enableWorkspaceTemplates to use this command.",workspaceTemplatesDisabledSave:"Workspace templates are disabled. Enable explorerDates.enableWorkspaceTemplates to save templates.",enterTemplateName:"Enter template name",enterTemplateDescription:"Enter description (optional)",failedToOpenTemplateManager:"Failed to open template manager: {0}",failedToSaveTemplate:"Failed to save template: {0}",reportingDisabled:"Reporting features are disabled. Enable explorerDates.enableExportReporting to generate reports.",failedToGenerateReport:"Failed to generate report: {0}",apiDisabled:"Explorer Dates API is disabled via settings.",failedToShowApiInformation:"Failed to show API information: {0}",failedToShowWorkspaceActivity:"Failed to show workspace activity: {0}",failedToShowPerformanceAnalytics:"Failed to show performance analytics: {0}",failedToShowCacheDebugInfo:"Failed to show cache debug info: {0}",noWorkspaceFolderOpen:"No workspace folder open",now:"now",minutes:"m",hours:"h",days:"d",weeks:"w",months:"mo",years:"y",justNow:"just now",minutesAgo:"{0} minute(s) ago",hoursAgo:"{0} hour(s) ago",daysAgo:"{0} day(s) ago",lastModified:"Last modified",refreshSuccess:"Date decorations refreshed",activationError:"Explorer Dates failed to activate",errorAccessingFile:"Error accessing file for decoration",clearTelemetryPrompt:"This will permanently delete locally-stored telemetry events for Explorer Dates. This action cannot be undone. Proceed?",clearTelemetryConfirm:"Clear Telemetry",clearTelemetryCancel:"Cancel",reportFormatDisabled:'Report format "{0}" is disabled. Allowed formats: {1}',reportDownloadTriggered:"Report download triggered in browser",selectReportTimeRangePlaceholder:"Select report time range",selectReportFormatPlaceholder:"Select report format",cleanupNoDeprecated:"\u2139\uFE0F No deprecated settings found to clean up.",showMigrationHistoryNoHistory:"No migration history found.",resetConfirmation:"This will reset all Explorer Dates settings to their default values. Are you sure?",resetConfirm:"Reset Settings",resetCancel:"Cancel",resetSuccess:"\u2705 Reset {0} settings to defaults.",validateNoIssues:"\u2705 Configuration is valid - no issues found!",validateFoundIssues:"Found {0} configuration issue(s). Would you like to see details?",validateShowDetails:"Show Details",validateDismiss:"Dismiss",migrationNotificationMessage:"Explorer Dates updated {0} setting(s) for compatibility. Your configuration has been preserved.",migrationViewChanges:"View Changes",migrationOpenSettings:"Open Settings",deprecatedPrompt:"Explorer Dates found {0} deprecated setting(s). Would you like to remove them?",deprecatedClean:"Clean Up Now",deprecatedKeep:"Keep Old Settings",deprecatedAskLater:"Ask Later",showFileLocation:"Show File Location",teamConfigCorrupted:"Explorer Dates team configuration file appears to be corrupted. Please check the .explorer-dates-profiles.json file or restore from backup.",appliedFromTeamProfile:'Applied {0} Explorer Dates settings from team profile "{1}".',documentedOverrides:"Documented Explorer Dates overrides in .vscode/explorer-dates-overrides.md",teamConfigMissingProfile:"Team configuration is missing an active profile.",ephemeralStorageEnospc:"Explorer Dates team configuration could not be saved because the disk is full.",ephemeralStorageGeneric:"Explorer Dates team configuration could not be saved because the workspace is read-only or permissions are restricted.",ephemeralStorageSuffix:"Changes will be kept in memory until VS Code restarts, so they may be lost."}});var or=E((Fa,vi)=>{vi.exports={migrationDetailsTitle:"Explorer Dates - Migraci\xF3n de configuraci\xF3n",migrationDetailsHeader:"Migraci\xF3n de configuraci\xF3n",gitAttributionWarning:"Explorer Dates: Las insignias de atribuci\xF3n de Git no est\xE1n disponibles en VS Code para la Web. Las decoraciones basadas en tiempo siguen disponibles.",noOverridesToDocument:"No hay anulaciones para documentar.",overrideNotesHeader:"# Notas de anulaci\xF3n de Explorer Dates\\n\\n",analysisCommandsDisabled:"Los comandos de an\xE1lisis de Explorer Dates est\xE1n deshabilitados. Atajos como Ctrl+Shift+M/H/A no funcionar\xE1n hasta que habilites explorerDates.enableAnalysisCommands.",analysisEnableNow:"Habilitar ahora",analysisEnablePartially:"La activaci\xF3n se complet\xF3 parcialmente. Actualiza explorerDates.enableAnalysisCommands manualmente en las carpetas de trabajo restantes.",analysisEnableFailed:"Error al habilitar: actualiza explorerDates.enableAnalysisCommands en la configuraci\xF3n del espacio de trabajo.",workspaceTemplatesDisabled:"Las plantillas de espacio de trabajo est\xE1n deshabilitadas. Habilita explorerDates.enableWorkspaceTemplates para usar este comando.",workspaceTemplatesDisabledSave:"Las plantillas de espacio de trabajo est\xE1n deshabilitadas. Habilita explorerDates.enableWorkspaceTemplates para guardar plantillas.",enterTemplateName:"Introduce el nombre de la plantilla",enterTemplateDescription:"Introduce la descripci\xF3n (opcional)",failedToOpenTemplateManager:"Error al abrir el administrador de plantillas: {0}",failedToSaveTemplate:"Error al guardar la plantilla: {0}",reportingDisabled:"Las funciones de informes est\xE1n deshabilitadas. Habilita explorerDates.enableExportReporting para generar informes.",failedToGenerateReport:"Error al generar el informe: {0}",apiDisabled:"La API de Explorer Dates est\xE1 deshabilitada mediante la configuraci\xF3n.",failedToShowApiInformation:"Error al mostrar la informaci\xF3n de la API: {0}",failedToShowWorkspaceActivity:"Error al mostrar la actividad del espacio de trabajo: {0}",failedToShowPerformanceAnalytics:"Error al mostrar los an\xE1lisis de rendimiento: {0}",failedToShowCacheDebugInfo:"Error al mostrar la informaci\xF3n de depuraci\xF3n de la cach\xE9: {0}",noWorkspaceFolderOpen:"No hay ninguna carpeta de espacio de trabajo abierta",now:"ahora",minutes:"m",hours:"h",days:"d",weeks:"sem",months:"mes",years:"a",justNow:"justo ahora",minutesAgo:"hace {0} minuto(s)",hoursAgo:"hace {0} hora(s)",daysAgo:"hace {0} d\xEDa(s)",lastModified:"\xDAltima modificaci\xF3n",refreshSuccess:"Decoraciones de fecha actualizadas",activationError:"Explorer Dates no se pudo activar",errorAccessingFile:"Error al acceder al archivo para la decoraci\xF3n",clearTelemetryPrompt:"Esto eliminar\xE1 permanentemente los eventos de telemetr\xEDa almacenados localmente para Explorer Dates. Esta acci\xF3n no se puede deshacer. \xBFContinuar?",clearTelemetryConfirm:"Borrar telemetr\xEDa",clearTelemetryCancel:"Cancelar",reportFormatDisabled:'El formato de informe "{0}" est\xE1 deshabilitado. Formatos permitidos: {1}',reportDownloadTriggered:"Descarga del informe iniciada en el navegador",selectReportTimeRangePlaceholder:"Seleccionar rango de tiempo del informe",selectReportFormatPlaceholder:"Seleccionar formato del informe",cleanupNoDeprecated:"\u2139\uFE0F No se encontraron configuraciones obsoletas para limpiar.",showMigrationHistoryNoHistory:"No se encontr\xF3 historial de migraci\xF3n.",resetConfirmation:"Esto restablecer\xE1 todas las configuraciones de Explorer Dates a sus valores predeterminados. \xBFEst\xE1s seguro?",resetConfirm:"Restablecer configuraciones",resetCancel:"Cancelar",resetSuccess:"\u2705 Se restablecieron {0} configuraciones a los valores predeterminados.",validateNoIssues:"\u2705 La configuraci\xF3n es v\xE1lida - no se encontraron problemas.",validateFoundIssues:"Se encontraron {0} problema(s) de configuraci\xF3n. \xBFDeseas ver los detalles?",validateShowDetails:"Mostrar detalles",validateDismiss:"Descartar",migrationNotificationMessage:"Explorer Dates actualiz\xF3 {0} configuraci\xF3n(es) por compatibilidad. Tu configuraci\xF3n se ha conservado.",migrationViewChanges:"Ver cambios",migrationOpenSettings:"Abrir configuraciones",deprecatedPrompt:"Explorer Dates encontr\xF3 {0} configuraci\xF3n(es) obsoleta(s). \xBFDeseas eliminarlas?",deprecatedClean:"Limpiar ahora",deprecatedKeep:"Mantener configuraciones antiguas",deprecatedAskLater:"Preguntar m\xE1s tarde",showFileLocation:"Mostrar ubicaci\xF3n del archivo",teamConfigCorrupted:"El archivo de configuraci\xF3n de equipo de Explorer Dates parece estar da\xF1ado. Verifica el archivo .explorer-dates-profiles.json o restaura desde una copia de seguridad.",appliedFromTeamProfile:'Se aplicaron {0} configuraciones de Explorer Dates desde el perfil de equipo "{1}".',documentedOverrides:"Se documentaron las anulaciones de Explorer Dates en .vscode/explorer-dates-overrides.md",teamConfigMissingProfile:"La configuraci\xF3n del equipo no tiene un perfil activo.",ephemeralStorageEnospc:"No se pudo guardar la configuraci\xF3n de equipo de Explorer Dates porque el disco est\xE1 lleno.",ephemeralStorageGeneric:"No se pudo guardar la configuraci\xF3n de equipo de Explorer Dates porque el espacio de trabajo es de solo lectura o los permisos est\xE1n restringidos.",ephemeralStorageSuffix:"Los cambios se mantendr\xE1n en memoria hasta que VS Code se reinicie, por lo que podr\xEDan perderse."}});var sr=E((Aa,Fi)=>{Fi.exports={migrationDetailsTitle:"Explorer Dates - Migration des param\xE8tres",migrationDetailsHeader:"Migration des param\xE8tres",gitAttributionWarning:"Explorer Dates : Les badges d\u2019attribution Git ne sont pas disponibles sur VS Code pour le Web. Les d\xE9corations bas\xE9es sur le temps restent disponibles.",noOverridesToDocument:"Aucune substitution \xE0 documenter.",overrideNotesHeader:"# Notes de substitution Explorer Dates\\n\\n",analysisCommandsDisabled:"Les commandes d\u2019analyse Explorer Dates sont d\xE9sactiv\xE9es. Les raccourcis comme Ctrl+Shift+M/H/A ne fonctionneront pas tant que vous n\u2019aurez pas activ\xE9 explorerDates.enableAnalysisCommands.",analysisEnableNow:"Activer maintenant",analysisEnablePartially:"L\u2019activation a partiellement r\xE9ussi. Mettez \xE0 jour explorerDates.enableAnalysisCommands manuellement dans les dossiers d\u2019espace de travail restants.",analysisEnableFailed:"\xC9chec de l\u2019activation : mettez \xE0 jour explorerDates.enableAnalysisCommands dans les param\xE8tres de l\u2019espace de travail.",workspaceTemplatesDisabled:"Les mod\xE8les d\u2019espace de travail sont d\xE9sactiv\xE9s. Activez explorerDates.enableWorkspaceTemplates pour utiliser cette commande.",workspaceTemplatesDisabledSave:"Les mod\xE8les d\u2019espace de travail sont d\xE9sactiv\xE9s. Activez explorerDates.enableWorkspaceTemplates pour enregistrer des mod\xE8les.",enterTemplateName:"Entrez le nom du mod\xE8le",enterTemplateDescription:"Entrez la description (facultatif)",failedToOpenTemplateManager:"Impossible d\u2019ouvrir le gestionnaire de mod\xE8les : {0}",failedToSaveTemplate:"Impossible d\u2019enregistrer le mod\xE8le : {0}",reportingDisabled:"Les fonctionnalit\xE9s de rapport sont d\xE9sactiv\xE9es. Activez explorerDates.enableExportReporting pour g\xE9n\xE9rer des rapports.",failedToGenerateReport:"Impossible de g\xE9n\xE9rer le rapport : {0}",apiDisabled:"L\u2019API Explorer Dates est d\xE9sactiv\xE9e via les param\xE8tres.",failedToShowApiInformation:"Impossible d\u2019afficher les informations de l\u2019API : {0}",failedToShowWorkspaceActivity:"Impossible d\u2019afficher l\u2019activit\xE9 de l\u2019espace de travail : {0}",failedToShowPerformanceAnalytics:"Impossible d\u2019afficher les analyses de performance : {0}",failedToShowCacheDebugInfo:"Impossible d\u2019afficher les informations de d\xE9bogage du cache : {0}",noWorkspaceFolderOpen:"Aucun dossier d\u2019espace de travail ouvert",now:"maintenant",minutes:"min",hours:"h",days:"j",weeks:"sem",months:"mois",years:"an",justNow:"\xE0 l\u2019instant",minutesAgo:"il y a {0} minute(s)",hoursAgo:"il y a {0} heure(s)",daysAgo:"il y a {0} jour(s)",lastModified:"Derni\xE8re modification",refreshSuccess:"D\xE9corations de date actualis\xE9es",activationError:"\xC9chec de l\u2019activation d\u2019Explorer Dates",errorAccessingFile:"Erreur lors de l\u2019acc\xE8s au fichier pour la d\xE9coration",clearTelemetryPrompt:"Cela supprimera d\xE9finitivement les \xE9v\xE9nements de t\xE9l\xE9m\xE9trie stock\xE9s localement pour Explorer Dates. Cette action est irr\xE9versible. Continuer ?",clearTelemetryConfirm:"Effacer la t\xE9l\xE9m\xE9trie",clearTelemetryCancel:"Annuler",reportFormatDisabled:'Le format de rapport "{0}" est d\xE9sactiv\xE9. Formats autoris\xE9s : {1}',reportDownloadTriggered:"T\xE9l\xE9chargement du rapport lanc\xE9 dans le navigateur",selectReportTimeRangePlaceholder:"S\xE9lectionner la p\xE9riode du rapport",selectReportFormatPlaceholder:"S\xE9lectionner le format du rapport",cleanupNoDeprecated:"\u2139\uFE0F Aucun param\xE8tre obsol\xE8te \xE0 nettoyer.",showMigrationHistoryNoHistory:"Aucun historique de migration trouv\xE9.",resetConfirmation:"Cela r\xE9initialisera tous les param\xE8tres Explorer Dates \xE0 leurs valeurs par d\xE9faut. \xCAtes-vous s\xFBr ?",resetConfirm:"R\xE9initialiser les param\xE8tres",resetCancel:"Annuler",resetSuccess:"\u2705 {0} param\xE8tres ont \xE9t\xE9 r\xE9initialis\xE9s aux valeurs par d\xE9faut.",validateNoIssues:"\u2705 La configuration est valide - aucun probl\xE8me d\xE9tect\xE9 !",validateFoundIssues:"{0} probl\xE8me(s) de configuration trouv\xE9(s). Voulez-vous voir les d\xE9tails ?",validateShowDetails:"Afficher les d\xE9tails",validateDismiss:"Ignorer",migrationNotificationMessage:"Explorer Dates a mis \xE0 jour {0} param\xE8tre(s) pour compatibilit\xE9. Votre configuration a \xE9t\xE9 conserv\xE9e.",migrationViewChanges:"Voir les modifications",migrationOpenSettings:"Ouvrir les param\xE8tres",deprecatedPrompt:"Explorer Dates a trouv\xE9 {0} param\xE8tre(s) obsol\xE8te(s). Voulez-vous les supprimer ?",deprecatedClean:"Nettoyer maintenant",deprecatedKeep:"Conserver les anciens param\xE8tres",deprecatedAskLater:"Demander plus tard",showFileLocation:"Afficher l\u2019emplacement du fichier",teamConfigCorrupted:"Le fichier de configuration d\u2019\xE9quipe Explorer Dates semble corrompu. V\xE9rifiez le fichier .explorer-dates-profiles.json ou restaurez-le depuis une sauvegarde.",appliedFromTeamProfile:'{0} param\xE8tres Explorer Dates appliqu\xE9s depuis le profil d\u2019\xE9quipe "{1}".',documentedOverrides:"Substitutions Explorer Dates document\xE9es dans .vscode/explorer-dates-overrides.md",teamConfigMissingProfile:"La configuration d\u2019\xE9quipe ne contient aucun profil actif.",ephemeralStorageEnospc:"Impossible d\u2019enregistrer la configuration d\u2019\xE9quipe Explorer Dates car le disque est plein.",ephemeralStorageGeneric:"Impossible d\u2019enregistrer la configuration d\u2019\xE9quipe Explorer Dates car l\u2019espace de travail est en lecture seule ou les permissions sont restreintes.",ephemeralStorageSuffix:"Les modifications seront conserv\xE9es en m\xE9moire jusqu\u2019au red\xE9marrage de VS Code et pourraient \xEAtre perdues."}});var cr=E((Ra,Ai)=>{Ai.exports={migrationDetailsTitle:"Explorer Dates - Einstellungen migrieren",migrationDetailsHeader:"Einstellungen migrieren",gitAttributionWarning:"Explorer Dates: Git-Zuordnungsabzeichen sind in VS Code f\xFCr das Web nicht verf\xFCgbar. Zeitbasierte Hervorhebungen bleiben verf\xFCgbar.",noOverridesToDocument:"Keine \xDCberschreibungen zu dokumentieren.",overrideNotesHeader:"# Explorer Dates \xDCberschreibungsnotizen\\n\\n",analysisCommandsDisabled:"Die Analysebefehle von Explorer Dates sind deaktiviert. Tastenkombinationen wie Ctrl+Shift+M/H/A funktionieren nicht, bis explorerDates.enableAnalysisCommands aktiviert ist.",analysisEnableNow:"Jetzt aktivieren",analysisEnablePartially:"Die Aktivierung war teilweise erfolgreich. Aktualisieren Sie explorerDates.enableAnalysisCommands manuell in den verbleibenden Workspace-Ordnern.",analysisEnableFailed:"Aktivierung fehlgeschlagen: Aktualisieren Sie explorerDates.enableAnalysisCommands in den Workspace-Einstellungen.",workspaceTemplatesDisabled:"Workspace-Vorlagen sind deaktiviert. Aktivieren Sie explorerDates.enableWorkspaceTemplates, um diesen Befehl zu verwenden.",workspaceTemplatesDisabledSave:"Workspace-Vorlagen sind deaktiviert. Aktivieren Sie explorerDates.enableWorkspaceTemplates, um Vorlagen zu speichern.",enterTemplateName:"Vorlagenname eingeben",enterTemplateDescription:"Beschreibung eingeben (optional)",failedToOpenTemplateManager:"Fehler beim \xD6ffnen des Vorlagenmanagers: {0}",failedToSaveTemplate:"Fehler beim Speichern der Vorlage: {0}",reportingDisabled:"Berichtsfunktionen sind deaktiviert. Aktivieren Sie explorerDates.enableExportReporting, um Berichte zu erstellen.",failedToGenerateReport:"Fehler beim Erstellen des Berichts: {0}",apiDisabled:"Die Explorer Dates API ist in den Einstellungen deaktiviert.",failedToShowApiInformation:"Fehler beim Anzeigen der API-Informationen: {0}",failedToShowWorkspaceActivity:"Fehler beim Anzeigen der Workspace-Aktivit\xE4t: {0}",failedToShowPerformanceAnalytics:"Fehler beim Anzeigen der Leistungsanalysen: {0}",failedToShowCacheDebugInfo:"Fehler beim Anzeigen der Cache-Debug-Informationen: {0}",noWorkspaceFolderOpen:"Kein Workspace-Ordner ge\xF6ffnet",now:"jetzt",minutes:"Min",hours:"Std",days:"T",weeks:"W",months:"Mon",years:"J",justNow:"gerade eben",minutesAgo:"vor {0} Minute(n)",hoursAgo:"vor {0} Stunde(n)",daysAgo:"vor {0} Tag(en)",lastModified:"Zuletzt ge\xE4ndert",refreshSuccess:"Datumsdekorationen aktualisiert",activationError:"Explorer Dates konnte nicht aktiviert werden",errorAccessingFile:"Fehler beim Zugriff auf Datei f\xFCr Dekoration",clearTelemetryPrompt:"Dies l\xF6scht dauerhaft lokal gespeicherte Telemetrieereignisse f\xFCr Explorer Dates. Diese Aktion kann nicht r\xFCckg\xE4ngig gemacht werden. Fortfahren?",clearTelemetryConfirm:"Telemetrie l\xF6schen",clearTelemetryCancel:"Abbrechen",reportFormatDisabled:'Berichtsformat "{0}" ist deaktiviert. Zul\xE4ssige Formate: {1}',reportDownloadTriggered:"Bericht-Download im Browser gestartet",selectReportTimeRangePlaceholder:"Berichtszeitraum ausw\xE4hlen",selectReportFormatPlaceholder:"Berichtsformat ausw\xE4hlen",cleanupNoDeprecated:"\u2139\uFE0F Keine veralteten Einstellungen zum Bereinigen gefunden.",showMigrationHistoryNoHistory:"Kein Migrationsverlauf gefunden.",resetConfirmation:"Dies setzt alle Explorer Dates Einstellungen auf ihre Standardwerte zur\xFCck. Sind Sie sicher?",resetConfirm:"Einstellungen zur\xFCcksetzen",resetCancel:"Abbrechen",resetSuccess:"\u2705 {0} Einstellungen auf Standard zur\xFCckgesetzt.",validateNoIssues:"\u2705 Konfiguration ist g\xFCltig - keine Probleme gefunden!",validateFoundIssues:"{0} Konfigurationsproblem(e) gefunden. M\xF6chten Sie Details sehen?",validateShowDetails:"Details anzeigen",validateDismiss:"Verwerfen",migrationNotificationMessage:"Explorer Dates hat {0} Einstellung(en) zur Kompatibilit\xE4t aktualisiert. Ihre Konfiguration wurde beibehalten.",migrationViewChanges:"\xC4nderungen anzeigen",migrationOpenSettings:"Einstellungen \xF6ffnen",deprecatedPrompt:"Explorer Dates hat {0} veraltete Einstellung(en) gefunden. M\xF6chten Sie sie entfernen?",deprecatedClean:"Jetzt bereinigen",deprecatedKeep:"Alte Einstellungen behalten",deprecatedAskLater:"Sp\xE4ter fragen",showFileLocation:"Dateispeicherort anzeigen",teamConfigCorrupted:"Die Teamkonfigurationsdatei von Explorer Dates scheint besch\xE4digt zu sein. Bitte pr\xFCfen Sie die Datei .explorer-dates-profiles.json oder stellen Sie sie aus einem Backup wieder her.",appliedFromTeamProfile:'{0} Explorer Dates-Einstellungen aus dem Teamprofil "{1}" angewendet.',documentedOverrides:"Explorer Dates-\xDCberschreibungen in .vscode/explorer-dates-overrides.md dokumentiert",teamConfigMissingProfile:"Der Teamkonfiguration fehlt ein aktives Profil.",ephemeralStorageEnospc:"Die Teamkonfiguration von Explorer Dates konnte nicht gespeichert werden, da die Festplatte voll ist.",ephemeralStorageGeneric:"Die Teamkonfiguration von Explorer Dates konnte nicht gespeichert werden, da der Workspace schreibgesch\xFCtzt ist oder die Berechtigungen eingeschr\xE4nkt sind.",ephemeralStorageSuffix:"\xC4nderungen werden im Speicher behalten, bis VS Code neu startet, und k\xF6nnen verloren gehen."}});var lr=E((Pa,Ri)=>{Ri.exports={migrationDetailsTitle:"Explorer Dates - \u8A2D\u5B9A\u306E\u79FB\u884C",migrationDetailsHeader:"\u8A2D\u5B9A\u306E\u79FB\u884C",gitAttributionWarning:"Explorer Dates: Git \u306E\u5E30\u5C5E\u30D0\u30C3\u30B8\u306F VS Code for Web \u3067\u306F\u5229\u7528\u3067\u304D\u307E\u305B\u3093\u3002\u6642\u9593\u30D9\u30FC\u30B9\u306E\u88C5\u98FE\u306F\u5F15\u304D\u7D9A\u304D\u5229\u7528\u3067\u304D\u307E\u3059\u3002",noOverridesToDocument:"\u30C9\u30AD\u30E5\u30E1\u30F3\u30C8\u5316\u3059\u308B\u4E0A\u66F8\u304D\u306F\u3042\u308A\u307E\u305B\u3093\u3002",overrideNotesHeader:"# Explorer Dates \u4E0A\u66F8\u304D\u30E1\u30E2\\n\\n",analysisCommandsDisabled:"Explorer Dates \u306E\u5206\u6790\u30B3\u30DE\u30F3\u30C9\u306F\u7121\u52B9\u306B\u306A\u3063\u3066\u3044\u307E\u3059\u3002Ctrl+Shift+M/H/A \u306A\u3069\u306E\u30B7\u30E7\u30FC\u30C8\u30AB\u30C3\u30C8\u306F explorerDates.enableAnalysisCommands \u3092\u6709\u52B9\u306B\u3059\u308B\u307E\u3067\u6A5F\u80FD\u3057\u307E\u305B\u3093\u3002",analysisEnableNow:"\u4ECA\u3059\u3050\u6709\u52B9\u306B\u3059\u308B",analysisEnablePartially:"\u6709\u52B9\u5316\u306F\u4E00\u90E8\u6210\u529F\u3057\u307E\u3057\u305F\u3002\u6B8B\u308A\u306E\u30EF\u30FC\u30AF\u30B9\u30DA\u30FC\u30B9\u30D5\u30A9\u30EB\u30C0\u30FC\u3067 explorerDates.enableAnalysisCommands \u3092\u624B\u52D5\u3067\u66F4\u65B0\u3057\u3066\u304F\u3060\u3055\u3044\u3002",analysisEnableFailed:"\u6709\u52B9\u5316\u306B\u5931\u6557\u3057\u307E\u3057\u305F\uFF1A\u30EF\u30FC\u30AF\u30B9\u30DA\u30FC\u30B9\u8A2D\u5B9A\u3067 explorerDates.enableAnalysisCommands \u3092\u66F4\u65B0\u3057\u3066\u304F\u3060\u3055\u3044\u3002",workspaceTemplatesDisabled:"\u30EF\u30FC\u30AF\u30B9\u30DA\u30FC\u30B9\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8\u306F\u7121\u52B9\u306B\u306A\u3063\u3066\u3044\u307E\u3059\u3002\u3053\u306E\u30B3\u30DE\u30F3\u30C9\u3092\u4F7F\u7528\u3059\u308B\u306B\u306F explorerDates.enableWorkspaceTemplates \u3092\u6709\u52B9\u306B\u3057\u3066\u304F\u3060\u3055\u3044\u3002",workspaceTemplatesDisabledSave:"\u30EF\u30FC\u30AF\u30B9\u30DA\u30FC\u30B9\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8\u306F\u7121\u52B9\u306B\u306A\u3063\u3066\u3044\u307E\u3059\u3002\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8\u3092\u4FDD\u5B58\u3059\u308B\u306B\u306F explorerDates.enableWorkspaceTemplates \u3092\u6709\u52B9\u306B\u3057\u3066\u304F\u3060\u3055\u3044\u3002",enterTemplateName:"\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8\u540D\u3092\u5165\u529B",enterTemplateDescription:"\u8AAC\u660E\u3092\u5165\u529B\uFF08\u4EFB\u610F\uFF09",failedToOpenTemplateManager:"\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8\u30DE\u30CD\u30FC\u30B8\u30E3\u30FC\u3092\u958B\u3051\u307E\u305B\u3093\u3067\u3057\u305F: {0}",failedToSaveTemplate:"\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8\u306E\u4FDD\u5B58\u306B\u5931\u6557\u3057\u307E\u3057\u305F: {0}",reportingDisabled:"\u30EC\u30DD\u30FC\u30C8\u6A5F\u80FD\u306F\u7121\u52B9\u306B\u306A\u3063\u3066\u3044\u307E\u3059\u3002\u30EC\u30DD\u30FC\u30C8\u3092\u751F\u6210\u3059\u308B\u306B\u306F explorerDates.enableExportReporting \u3092\u6709\u52B9\u306B\u3057\u3066\u304F\u3060\u3055\u3044\u3002",failedToGenerateReport:"\u30EC\u30DD\u30FC\u30C8\u306E\u751F\u6210\u306B\u5931\u6557\u3057\u307E\u3057\u305F: {0}",apiDisabled:"Explorer Dates API \u306F\u8A2D\u5B9A\u3067\u7121\u52B9\u306B\u306A\u3063\u3066\u3044\u307E\u3059\u3002",failedToShowApiInformation:"API \u60C5\u5831\u306E\u8868\u793A\u306B\u5931\u6557\u3057\u307E\u3057\u305F: {0}",failedToShowWorkspaceActivity:"\u30EF\u30FC\u30AF\u30B9\u30DA\u30FC\u30B9\u306E\u30A2\u30AF\u30C6\u30A3\u30D3\u30C6\u30A3\u3092\u8868\u793A\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F: {0}",failedToShowPerformanceAnalytics:"\u30D1\u30D5\u30A9\u30FC\u30DE\u30F3\u30B9\u5206\u6790\u3092\u8868\u793A\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F: {0}",failedToShowCacheDebugInfo:"\u30AD\u30E3\u30C3\u30B7\u30E5\u306E\u30C7\u30D0\u30C3\u30B0\u60C5\u5831\u3092\u8868\u793A\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F: {0}",noWorkspaceFolderOpen:"\u30EF\u30FC\u30AF\u30B9\u30DA\u30FC\u30B9\u30D5\u30A9\u30EB\u30C0\u30FC\u304C\u958B\u304B\u308C\u3066\u3044\u307E\u305B\u3093",now:"\u4ECA",minutes:"\u5206",hours:"\u6642\u9593",days:"\u65E5",weeks:"\u9031",months:"\u304B\u6708",years:"\u5E74",justNow:"\u305F\u3063\u305F\u4ECA",minutesAgo:"{0} \u5206\u524D",hoursAgo:"{0} \u6642\u9593\u524D",daysAgo:"{0} \u65E5\u524D",lastModified:"\u6700\u7D42\u66F4\u65B0",refreshSuccess:"\u65E5\u4ED8\u88C5\u98FE\u3092\u66F4\u65B0\u3057\u307E\u3057\u305F",activationError:"Explorer Dates \u306E\u6709\u52B9\u5316\u306B\u5931\u6557\u3057\u307E\u3057\u305F",errorAccessingFile:"\u88C5\u98FE\u7528\u30D5\u30A1\u30A4\u30EB\u3078\u306E\u30A2\u30AF\u30BB\u30B9\u30A8\u30E9\u30FC",clearTelemetryPrompt:"Explorer Dates \u306E\u30ED\u30FC\u30AB\u30EB\u4FDD\u5B58\u30C6\u30EC\u30E1\u30C8\u30EA\u30A4\u30D9\u30F3\u30C8\u3092\u5B8C\u5168\u306B\u524A\u9664\u3057\u307E\u3059\u3002\u3053\u306E\u64CD\u4F5C\u306F\u5143\u306B\u623B\u305B\u307E\u305B\u3093\u3002\u7D9A\u884C\u3057\u307E\u3059\u304B\uFF1F",clearTelemetryConfirm:"\u30C6\u30EC\u30E1\u30C8\u30EA\u3092\u524A\u9664",clearTelemetryCancel:"\u30AD\u30E3\u30F3\u30BB\u30EB",reportFormatDisabled:"\u30EC\u30DD\u30FC\u30C8\u5F62\u5F0F\u300C{0}\u300D\u306F\u7121\u52B9\u3067\u3059\u3002\u8A31\u53EF\u3055\u308C\u3066\u3044\u308B\u5F62\u5F0F: {1}",reportDownloadTriggered:"\u30D6\u30E9\u30A6\u30B6\u3067\u30EC\u30DD\u30FC\u30C8\u306E\u30C0\u30A6\u30F3\u30ED\u30FC\u30C9\u3092\u958B\u59CB\u3057\u307E\u3057\u305F",selectReportTimeRangePlaceholder:"\u30EC\u30DD\u30FC\u30C8\u306E\u671F\u9593\u3092\u9078\u629E",selectReportFormatPlaceholder:"\u30EC\u30DD\u30FC\u30C8\u5F62\u5F0F\u3092\u9078\u629E",cleanupNoDeprecated:"\u2139\uFE0F \u30AF\u30EA\u30FC\u30F3\u30A2\u30C3\u30D7\u3059\u308B\u975E\u63A8\u5968\u8A2D\u5B9A\u306F\u3042\u308A\u307E\u305B\u3093\u3002",showMigrationHistoryNoHistory:"\u79FB\u884C\u5C65\u6B74\u304C\u898B\u3064\u304B\u308A\u307E\u305B\u3093\u3002",resetConfirmation:"Explorer Dates \u306E\u3059\u3079\u3066\u306E\u8A2D\u5B9A\u3092\u65E2\u5B9A\u5024\u306B\u30EA\u30BB\u30C3\u30C8\u3057\u307E\u3059\u3002\u3088\u308D\u3057\u3044\u3067\u3059\u304B\uFF1F",resetConfirm:"\u8A2D\u5B9A\u3092\u30EA\u30BB\u30C3\u30C8",resetCancel:"\u30AD\u30E3\u30F3\u30BB\u30EB",resetSuccess:"\u2705 {0} \u4EF6\u306E\u8A2D\u5B9A\u3092\u65E2\u5B9A\u5024\u306B\u30EA\u30BB\u30C3\u30C8\u3057\u307E\u3057\u305F\u3002",validateNoIssues:"\u2705 \u8A2D\u5B9A\u306F\u6709\u52B9\u3067\u3059 - \u554F\u984C\u306F\u898B\u3064\u304B\u308A\u307E\u305B\u3093\u3067\u3057\u305F\uFF01",validateFoundIssues:"{0} \u4EF6\u306E\u8A2D\u5B9A\u554F\u984C\u304C\u898B\u3064\u304B\u308A\u307E\u3057\u305F\u3002\u8A73\u7D30\u3092\u8868\u793A\u3057\u307E\u3059\u304B\uFF1F",validateShowDetails:"\u8A73\u7D30\u3092\u8868\u793A",validateDismiss:"\u9589\u3058\u308B",migrationNotificationMessage:"Explorer Dates \u306F\u4E92\u63DB\u6027\u306E\u305F\u3081\u306B {0} \u4EF6\u306E\u8A2D\u5B9A\u3092\u66F4\u65B0\u3057\u307E\u3057\u305F\u3002\u8A2D\u5B9A\u306F\u4FDD\u6301\u3055\u308C\u3066\u3044\u307E\u3059\u3002",migrationViewChanges:"\u5909\u66F4\u3092\u8868\u793A",migrationOpenSettings:"\u8A2D\u5B9A\u3092\u958B\u304F",deprecatedPrompt:"Explorer Dates \u306F {0} \u4EF6\u306E\u975E\u63A8\u5968\u8A2D\u5B9A\u3092\u691C\u51FA\u3057\u307E\u3057\u305F\u3002\u524A\u9664\u3057\u307E\u3059\u304B\uFF1F",deprecatedClean:"\u4ECA\u3059\u3050\u30AF\u30EA\u30FC\u30F3\u30A2\u30C3\u30D7",deprecatedKeep:"\u53E4\u3044\u8A2D\u5B9A\u3092\u4FDD\u6301",deprecatedAskLater:"\u5F8C\u3067\u78BA\u8A8D",showFileLocation:"\u30D5\u30A1\u30A4\u30EB\u306E\u5834\u6240\u3092\u8868\u793A",teamConfigCorrupted:"Explorer Dates \u306E\u30C1\u30FC\u30E0\u8A2D\u5B9A\u30D5\u30A1\u30A4\u30EB\u304C\u7834\u640D\u3057\u3066\u3044\u308B\u53EF\u80FD\u6027\u304C\u3042\u308A\u307E\u3059\u3002.explorer-dates-profiles.json \u3092\u78BA\u8A8D\u3059\u308B\u304B\u30D0\u30C3\u30AF\u30A2\u30C3\u30D7\u304B\u3089\u5FA9\u5143\u3057\u3066\u304F\u3060\u3055\u3044\u3002",appliedFromTeamProfile:"\u30C1\u30FC\u30E0\u30D7\u30ED\u30D5\u30A1\u30A4\u30EB\u300C{1}\u300D\u304B\u3089 {0} \u4EF6\u306E Explorer Dates \u8A2D\u5B9A\u3092\u9069\u7528\u3057\u307E\u3057\u305F\u3002",documentedOverrides:".vscode/explorer-dates-overrides.md \u306B Explorer Dates \u306E\u4E0A\u66F8\u304D\u3092\u8A18\u9332\u3057\u307E\u3057\u305F",teamConfigMissingProfile:"\u30C1\u30FC\u30E0\u8A2D\u5B9A\u306B\u30A2\u30AF\u30C6\u30A3\u30D6\u306A\u30D7\u30ED\u30D5\u30A1\u30A4\u30EB\u304C\u3042\u308A\u307E\u305B\u3093\u3002",ephemeralStorageEnospc:"\u30C7\u30A3\u30B9\u30AF\u5BB9\u91CF\u4E0D\u8DB3\u306E\u305F\u3081\u3001Explorer Dates \u306E\u30C1\u30FC\u30E0\u8A2D\u5B9A\u3092\u4FDD\u5B58\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002",ephemeralStorageGeneric:"\u30EF\u30FC\u30AF\u30B9\u30DA\u30FC\u30B9\u304C\u8AAD\u307F\u53D6\u308A\u5C02\u7528\u3001\u307E\u305F\u306F\u6A29\u9650\u304C\u5236\u9650\u3055\u308C\u3066\u3044\u308B\u305F\u3081\u3001Explorer Dates \u306E\u30C1\u30FC\u30E0\u8A2D\u5B9A\u3092\u4FDD\u5B58\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002",ephemeralStorageSuffix:"\u5909\u66F4\u306F VS Code \u304C\u518D\u8D77\u52D5\u3059\u308B\u307E\u3067\u30E1\u30E2\u30EA\u306B\u4FDD\u6301\u3055\u308C\u308B\u305F\u3081\u3001\u5931\u308F\u308C\u308B\u53EF\u80FD\u6027\u304C\u3042\u308A\u307E\u3059\u3002"}});var ur=E((xa,Pi)=>{Pi.exports={migrationDetailsTitle:"Explorer Dates - \u8BBE\u7F6E\u8FC1\u79FB",migrationDetailsHeader:"\u8BBE\u7F6E\u8FC1\u79FB",gitAttributionWarning:"Explorer Dates\uFF1AGit \u5F52\u5C5E\u5FBD\u7AE0\u5728 VS Code Web \u7248\u4E2D\u4E0D\u53EF\u7528\u3002\u57FA\u4E8E\u65F6\u95F4\u7684\u88C5\u9970\u4ECD\u7136\u53EF\u7528\u3002",noOverridesToDocument:"\u6CA1\u6709\u9700\u8981\u8BB0\u5F55\u7684\u8986\u76D6\u9879\u3002",overrideNotesHeader:"# Explorer Dates \u8986\u76D6\u8BF4\u660E\\n\\n",analysisCommandsDisabled:"Explorer Dates \u5206\u6790\u547D\u4EE4\u5DF2\u7981\u7528\u3002\u5728\u542F\u7528 explorerDates.enableAnalysisCommands \u4E4B\u524D\uFF0CCtrl+Shift+M/H/A \u7B49\u5FEB\u6377\u952E\u5C06\u65E0\u6CD5\u4F7F\u7528\u3002",analysisEnableNow:"\u7ACB\u5373\u542F\u7528",analysisEnablePartially:"\u542F\u7528\u90E8\u5206\u6210\u529F\u3002\u8BF7\u5728\u5269\u4F59\u7684\u5DE5\u4F5C\u533A\u6587\u4EF6\u5939\u4E2D\u624B\u52A8\u66F4\u65B0 explorerDates.enableAnalysisCommands\u3002",analysisEnableFailed:"\u542F\u7528\u5931\u8D25\uFF1A\u8BF7\u5728\u5DE5\u4F5C\u533A\u8BBE\u7F6E\u4E2D\u66F4\u65B0 explorerDates.enableAnalysisCommands\u3002",workspaceTemplatesDisabled:"\u5DE5\u4F5C\u533A\u6A21\u677F\u5DF2\u7981\u7528\u3002\u542F\u7528 explorerDates.enableWorkspaceTemplates \u4EE5\u4F7F\u7528\u6B64\u547D\u4EE4\u3002",workspaceTemplatesDisabledSave:"\u5DE5\u4F5C\u533A\u6A21\u677F\u5DF2\u7981\u7528\u3002\u542F\u7528 explorerDates.enableWorkspaceTemplates \u4EE5\u4FDD\u5B58\u6A21\u677F\u3002",enterTemplateName:"\u8F93\u5165\u6A21\u677F\u540D\u79F0",enterTemplateDescription:"\u8F93\u5165\u63CF\u8FF0\uFF08\u53EF\u9009\uFF09",failedToOpenTemplateManager:"\u65E0\u6CD5\u6253\u5F00\u6A21\u677F\u7BA1\u7406\u5668\uFF1A{0}",failedToSaveTemplate:"\u4FDD\u5B58\u6A21\u677F\u5931\u8D25\uFF1A{0}",reportingDisabled:"\u62A5\u8868\u529F\u80FD\u5DF2\u7981\u7528\u3002\u542F\u7528 explorerDates.enableExportReporting \u4EE5\u751F\u6210\u62A5\u8868\u3002",failedToGenerateReport:"\u751F\u6210\u62A5\u8868\u5931\u8D25\uFF1A{0}",apiDisabled:"Explorer Dates API \u5DF2\u901A\u8FC7\u8BBE\u7F6E\u7981\u7528\u3002",failedToShowApiInformation:"\u663E\u793A API \u4FE1\u606F\u5931\u8D25\uFF1A{0}",failedToShowWorkspaceActivity:"\u663E\u793A\u5DE5\u4F5C\u533A\u6D3B\u52A8\u5931\u8D25\uFF1A{0}",failedToShowPerformanceAnalytics:"\u663E\u793A\u6027\u80FD\u5206\u6790\u5931\u8D25\uFF1A{0}",failedToShowCacheDebugInfo:"\u663E\u793A\u7F13\u5B58\u8C03\u8BD5\u4FE1\u606F\u5931\u8D25\uFF1A{0}",noWorkspaceFolderOpen:"\u672A\u6253\u5F00\u4EFB\u4F55\u5DE5\u4F5C\u533A\u6587\u4EF6\u5939",now:"\u73B0\u5728",minutes:"\u5206",hours:"\u5C0F\u65F6",days:"\u5929",weeks:"\u5468",months:"\u4E2A\u6708",years:"\u5E74",justNow:"\u521A\u521A",minutesAgo:"{0} \u5206\u949F\u524D",hoursAgo:"{0} \u5C0F\u65F6\u524D",daysAgo:"{0} \u5929\u524D",lastModified:"\u6700\u540E\u4FEE\u6539",refreshSuccess:"\u65E5\u671F\u88C5\u9970\u5DF2\u5237\u65B0",activationError:"Explorer Dates \u542F\u52A8\u5931\u8D25",errorAccessingFile:"\u8BBF\u95EE\u7528\u4E8E\u88C5\u9970\u7684\u6587\u4EF6\u65F6\u51FA\u9519",clearTelemetryPrompt:"\u8FD9\u5C06\u6C38\u4E45\u5220\u9664\u672C\u5730\u5B58\u50A8\u7684 Explorer Dates \u9065\u6D4B\u4E8B\u4EF6\u3002\u6B64\u64CD\u4F5C\u65E0\u6CD5\u64A4\u9500\u3002\u662F\u5426\u7EE7\u7EED\uFF1F",clearTelemetryConfirm:"\u6E05\u9664\u9065\u6D4B",clearTelemetryCancel:"\u53D6\u6D88",reportFormatDisabled:"\u62A5\u8868\u683C\u5F0F\u201C{0}\u201D\u5DF2\u7981\u7528\u3002\u5141\u8BB8\u7684\u683C\u5F0F\uFF1A{1}",reportDownloadTriggered:"\u5DF2\u5728\u6D4F\u89C8\u5668\u4E2D\u89E6\u53D1\u62A5\u8868\u4E0B\u8F7D",selectReportTimeRangePlaceholder:"\u9009\u62E9\u62A5\u8868\u65F6\u95F4\u8303\u56F4",selectReportFormatPlaceholder:"\u9009\u62E9\u62A5\u8868\u683C\u5F0F",cleanupNoDeprecated:"\u2139\uFE0F \u672A\u53D1\u73B0\u9700\u8981\u6E05\u7406\u7684\u5DF2\u5F03\u7528\u8BBE\u7F6E\u3002",showMigrationHistoryNoHistory:"\u672A\u627E\u5230\u8FC1\u79FB\u5386\u53F2\u3002",resetConfirmation:"\u8FD9\u5C06\u628A\u6240\u6709 Explorer Dates \u8BBE\u7F6E\u91CD\u7F6E\u4E3A\u9ED8\u8BA4\u503C\u3002\u786E\u5B9A\u5417\uFF1F",resetConfirm:"\u91CD\u7F6E\u8BBE\u7F6E",resetCancel:"\u53D6\u6D88",resetSuccess:"\u2705 \u5DF2\u5C06 {0} \u9879\u8BBE\u7F6E\u91CD\u7F6E\u4E3A\u9ED8\u8BA4\u503C\u3002",validateNoIssues:"\u2705 \u914D\u7F6E\u6709\u6548 - \u672A\u53D1\u73B0\u95EE\u9898\uFF01",validateFoundIssues:"\u53D1\u73B0 {0} \u4E2A\u914D\u7F6E\u95EE\u9898\u3002\u662F\u5426\u67E5\u770B\u8BE6\u7EC6\u4FE1\u606F\uFF1F",validateShowDetails:"\u663E\u793A\u8BE6\u7EC6\u4FE1\u606F",validateDismiss:"\u5173\u95ED",migrationNotificationMessage:"Explorer Dates \u4E3A\u517C\u5BB9\u6027\u66F4\u65B0\u4E86 {0} \u9879\u8BBE\u7F6E\u3002\u60A8\u7684\u914D\u7F6E\u5DF2\u4FDD\u7559\u3002",migrationViewChanges:"\u67E5\u770B\u66F4\u6539",migrationOpenSettings:"\u6253\u5F00\u8BBE\u7F6E",deprecatedPrompt:"Explorer Dates \u53D1\u73B0 {0} \u4E2A\u5DF2\u5F03\u7528\u8BBE\u7F6E\u3002\u662F\u5426\u5220\u9664\uFF1F",deprecatedClean:"\u7ACB\u5373\u6E05\u7406",deprecatedKeep:"\u4FDD\u7559\u65E7\u8BBE\u7F6E",deprecatedAskLater:"\u7A0D\u540E\u8BE2\u95EE",showFileLocation:"\u663E\u793A\u6587\u4EF6\u4F4D\u7F6E",teamConfigCorrupted:"Explorer Dates \u56E2\u961F\u914D\u7F6E\u6587\u4EF6\u4F3C\u4E4E\u5DF2\u635F\u574F\u3002\u8BF7\u68C0\u67E5 .explorer-dates-profiles.json \u6587\u4EF6\u6216\u4ECE\u5907\u4EFD\u6062\u590D\u3002",appliedFromTeamProfile:"\u5DF2\u4ECE\u56E2\u961F\u914D\u7F6E\u6587\u4EF6\u201C{1}\u201D\u5E94\u7528 {0} \u9879 Explorer Dates \u8BBE\u7F6E\u3002",documentedOverrides:"\u5DF2\u5728 .vscode/explorer-dates-overrides.md \u4E2D\u8BB0\u5F55 Explorer Dates \u8986\u76D6\u9879",teamConfigMissingProfile:"\u56E2\u961F\u914D\u7F6E\u7F3A\u5C11\u6D3B\u52A8\u914D\u7F6E\u6587\u4EF6\u3002",ephemeralStorageEnospc:"\u7531\u4E8E\u78C1\u76D8\u5DF2\u6EE1\uFF0C\u65E0\u6CD5\u4FDD\u5B58 Explorer Dates \u56E2\u961F\u914D\u7F6E\u3002",ephemeralStorageGeneric:"\u7531\u4E8E\u5DE5\u4F5C\u533A\u4E3A\u53EA\u8BFB\u6216\u6743\u9650\u53D7\u9650\uFF0C\u65E0\u6CD5\u4FDD\u5B58 Explorer Dates \u56E2\u961F\u914D\u7F6E\u3002",ephemeralStorageSuffix:"\u66F4\u6539\u5C06\u5728 VS Code \u91CD\u542F\u524D\u4FDD\u5B58\u5728\u5185\u5B58\u4E2D\uFF0C\u56E0\u6B64\u53EF\u80FD\u4F1A\u4E22\u5931\u3002"}});var dr=E((Ma,hr)=>{var j={};j.en=ar();j.es=or();j.fr=sr();j.de=cr();j.ja=lr();j.zh=ur();hr.exports=j});var ot=E((Ia,fr)=>{var V=require("vscode"),z={en:{now:"now",minutes:"m",hours:"h",days:"d",weeks:"w",months:"mo",years:"y",justNow:"just now",minutesAgo:e=>`${e} minute${e!==1?"s":""} ago`,hoursAgo:e=>`${e} hour${e!==1?"s":""} ago`,yesterday:"yesterday",daysAgo:e=>`${e} day${e!==1?"s":""} ago`,lastModified:"Last modified",refreshSuccess:"Date decorations refreshed",activationError:"Explorer Dates failed to activate",errorAccessingFile:"Error accessing file for decoration",clearTelemetryPrompt:"This will permanently delete locally-stored telemetry events for Explorer Dates. This action cannot be undone. Proceed?",clearTelemetryConfirm:"Clear Telemetry",clearTelemetryCancel:"Cancel",clearTelemetrySuccess:"\u2705 Explorer Dates telemetry cleared.",migrateChecking:"Checking for settings that need migration...",migrateAllUpToDate:"\u2705 All settings are up to date!",migrateApplied:e=>`\u2705 Explorer Dates maintenance applied: ${e}.`,organizeSettingsResult:e=>`Explorer Dates settings organized: ${e}`,cleanupSuccess:"\u2705 Deprecated settings have been cleaned up!",reportFormatDisabled:(e,t)=>`Report format "${e}" is disabled. Allowed formats: ${t}`,reportSaved:e=>`Report saved to ${e}`,reportGenerateFailed:"Failed to generate report",reportDownloadTriggered:"Report download triggered in browser",selectReportTimeRangePlaceholder:"Select report time range",selectReportFormatPlaceholder:"Select report format",cleanupNoDeprecated:"\u2139\uFE0F No deprecated settings found to clean up.",showMigrationHistoryNoHistory:"No migration history found.",resetConfirmation:"This will reset all Explorer Dates settings to their default values. Are you sure?",migrationDetailsTitle:"Explorer Dates - Settings Migration",migrationDetailsHeader:"Settings Migration",gitAttributionWarning:"Explorer Dates: Git attribution badges are unavailable on VS Code for Web. Time-based decorations remain available.",noOverridesToDocument:"No overrides to document.",overrideNotesHeader:`# Explorer Dates Override Notes -`,analysisCommandsDisabled:"Explorer Dates analysis commands are disabled. Shortcuts like Ctrl+Shift+M/H/A will not work until you enable explorerDates.enableAnalysisCommands.",analysisEnableNow:"Enable Now",analysisEnablePartially:"Enable partially succeeded. Update explorerDates.enableAnalysisCommands in remaining workspace folders manually.",analysisEnableFailed:"Enable failed: update explorerDates.enableAnalysisCommands in workspace settings.",workspaceTemplatesDisabled:"Workspace templates are disabled. Enable explorerDates.enableWorkspaceTemplates to use this command.",workspaceTemplatesDisabledSave:"Workspace templates are disabled. Enable explorerDates.enableWorkspaceTemplates to save templates.",enterTemplateName:"Enter template name",enterTemplateDescription:"Enter description (optional)",failedToOpenTemplateManager:e=>`Failed to open template manager: ${e}`,failedToSaveTemplate:e=>`Failed to save template: ${e}`,reportingDisabled:"Reporting features are disabled. Enable explorerDates.enableExportReporting to generate reports.",failedToGenerateReport:e=>`Failed to generate report: ${e}`,apiDisabled:"Explorer Dates API is disabled via settings.",failedToShowApiInformation:e=>`Failed to show API information: ${e}`,failedToShowWorkspaceActivity:e=>`Failed to show workspace activity: ${e}`,failedToShowPerformanceAnalytics:e=>`Failed to show performance analytics: ${e}`,failedToShowCacheDebugInfo:e=>`Failed to show cache debug info: ${e}`,noWorkspaceFolderOpen:"No workspace folder open",resetConfirm:"Reset Settings",resetCancel:"Cancel",resetSuccess:e=>`\u2705 Reset ${e} settings to defaults.`,validateNoIssues:"\u2705 Configuration is valid - no issues found!",validateFoundIssues:e=>`Found ${e} configuration issue(s). Would you like to see details?`,validateShowDetails:"Show Details",validateDismiss:"Dismiss",migrationNotificationMessage:e=>`Explorer Dates updated ${e} setting(s) for compatibility. Your configuration has been preserved.`,migrationViewChanges:"View Changes",migrationOpenSettings:"Open Settings",deprecatedPrompt:e=>`Explorer Dates found ${e} deprecated setting(s). Would you like to remove them?`,deprecatedClean:"Clean Up Now",deprecatedKeep:"Keep Old Settings",deprecatedAskLater:"Ask Later",showFileLocation:"Show File Location",teamConfigCorrupted:"Explorer Dates team configuration file appears to be corrupted. Please check the .explorer-dates-profiles.json file or restore from backup.",appliedFromTeamProfile:(e,t)=>`Applied ${e} Explorer Dates settings from team profile "${t}".`,documentedOverrides:"Documented Explorer Dates overrides in .vscode/explorer-dates-overrides.md",teamConfigMissingProfile:"Team configuration is missing an active profile.",ephemeralStorageEnospc:"Explorer Dates team configuration could not be saved because the disk is full.",ephemeralStorageGeneric:"Explorer Dates team configuration could not be saved because the workspace is read-only or permissions are restricted.",ephemeralStorageSuffix:" Changes will be kept in memory until VS Code restarts, so they may be lost."}};try{let e=dr();if(e&&typeof e=="object")for(let[t,r]of Object.entries(e)){z[t]||(z[t]={});for(let[n,i]of Object.entries(r))typeof z[t][n]>"u"&&(z[t][n]=i)}}catch{}var De=class{constructor(){this.Ce="en",this.w=null,this.ft(),typeof V.workspace.onDidChangeConfiguration=="function"?this.w=V.workspace.onDidChangeConfiguration(t=>{t.affectsConfiguration("explorerDates.locale")&&this.ft()}):this.w=null}ft(){let r=V.workspace.getConfiguration("explorerDates").get("locale","auto");if(r==="auto"){let n=V&&V.env&&typeof V.env.language=="string"?V.env.language:"en";try{r=String(n||"en").split("-")[0]}catch{r="en"}}z[r]||(r="en"),this.Ce=r}getString(t,...r){let i=(z[this.Ce]||z.en)[t];return typeof i=="function"?i(...r):i||z.en[t]||t}getCurrentLocale(){return this.Ce}formatDate(t,r={}){try{return t.toLocaleDateString(this.Ce,r)}catch{return t.toLocaleDateString("en",r)}}dispose(){this.w&&(this.w.dispose(),this.w=null),fe===this&&(fe=null)}},fe=null;function xi(){return fe||(fe=new De),fe}fr.exports={LocalizationManager:De,getLocalization:xi}});var st=_((Wa,gr)=>{function Mi(e){let t=require("vscode");function r(l,d,h,g,y,m){if(!e.Gt||!g)return m&&(m.misses++,m.allocations++),y();if(l.has(g))return m&&(m.hits++,m.reuses++),l.get(g);m&&(m.misses++,m.allocations++);let D=y();if(l.set(g,D),d.push(g),d.length>h){let E=d.shift();E&&l.delete(E)}return D}function n({formatType:l,diffMinutes:d,diffHours:h,diffDays:g,diffWeeks:y,diffMonths:m,date:D}){let E=(M,F=null)=>({value:M,key:F?`badge:${l||"default"}:${F}`:null});switch(l){case"relative-short":case"relative-long":return d<1?E("\u25CF\u25CF","just"):d<60?E(`${Math.min(d,99)}m`,`m:${Math.min(d,99)}`):h<24?E(`${Math.min(h,23)}h`,`h:${Math.min(h,23)}`):g<7?E(`${g}d`,`d:${g}`):y<4?E(`${y}w`,`w:${y}`):m<12?E(`${m}M`,`M:${m}`):E("1y","y:1");case"absolute-short":case"absolute-long":{let M=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],F=D.getDate(),X=`${M[D.getMonth()]}${F<10?"0"+F:F}`,w=[D.getMonth(),F];return l==="absolute-long"&&w.push(D.getFullYear()),E(X,`abs:${w.join("-")}`)}case"technical":return d<60?E(`${d}m`,`tech:m:${d}`):h<24?E(`${h}h`,`tech:h:${h}`):E(`${g}d`,`tech:d:${g}`);case"minimal":return h<1?E("\u2022\u2022","min:now"):h<24?E("\u25CB\u25CB","min:hours"):E("\u2500\u2500","min:days");default:return d<60?E(`${d}m`,`smart:m:${d}`):h<24?E(`${h}h`,`smart:h:${h}`):E(`${g}d`,`smart:d:${g}`)}}function i(l,d,h=null){let y=h!==null?h:new Date().getTime()-l.getTime();if(y<0)return e._logger.debug(`File has future modification time (diffMs: ${y}), treating as just modified`),"\u25CF\u25CF";let m=Math.floor(y/(1e3*60)),D=Math.floor(y/(1e3*60*60)),E=Math.floor(y/(1e3*60*60*24)),M=Math.floor(E/7),F=Math.floor(E/30),X=n({formatType:d,diffMinutes:m,diffHours:D,diffDays:E,diffWeeks:M,diffMonths:F,date:l});return r(e.I,e.Se,e.Xt,X.key,()=>X.value,e.Yt)}function a(l){if(!l)return"none";if(typeof l=="string")return l;if(l.id)return l.id;try{return JSON.stringify(l)}catch{return String(l)}}function o(l,d,h){let g=l||"",y=d||"",m=a(h);return`${g}::${m}::${y}`}function s({badge:l,tooltip:d,color:h}){if(!e.Zt){e.H.misses++,e.H.allocations++;let m=new t.FileDecoration(l||"??");return d&&(m.tooltip=d),h&&(m.color=h),m.propagate=!1,m}if(!l)return e.H.allocations++,new t.FileDecoration("??");let g=o(l,d,h);if(g&&e.c.has(g))return e.H.hits++,e.H.reuses++,e.c.get(g);let y=new t.FileDecoration(l);if(d&&(y.tooltip=d),h&&(y.color=h),y.propagate=!1,e.H.allocations++,g&&(e.c.set(g,y),e.$.push(g),e.$.length>e.Jt)){let m=e.$.shift();m&&m!==g&&e.c.delete(m)}return e.H.misses++,y}function c(l="unspecified"){e.c.size!==0&&(e.c.clear(),e.$.length=0,e._logger.debug(`\u{1F9FC} Cleared decoration pool (${l})`))}async function u({filePath:l,stat:d,gitBlame:h,shouldUseAccessibleTooltips:g,fileSizeFormat:y}){if(g){let D=e._accessibility?.getAccessibleTooltip?.(l,d.mtime,d.birthtime,d.size,h);if(D)return D}let m=[];try{let D=e.p.formatDate(d.mtime);if(m.push(`${D}`),y&&typeof d.size=="number"){let E=e.gt(d.size,y);m.push(E)}h&&h.author&&m.push(`Author: ${h.author}`)}catch(D){e._logger.debug("Tooltip builder failed",D)}return m.join(" \u2014 ")}return{acquireDecorationFromPool:s,clearDecorationPool:c,tn:o,rn:a,Qt:i,nn:n,er:r,Te:u}}gr.exports={createDecorationLogic:Mi}});var Ce=_((exports,module)=>{function createDecorationProviderHelpers(provider){let vscode=require("vscode"),{diagLogOnce,diagLog,isWebDiagnosticsEnabled}=he(),{formatBadge,formatTooltip}=it(),decorationDiagCount=0,maxDecorationDiag=20,CONTRIBUTED_CUSTOM_COLOR_TOKENS=new Set(["explorerDates.customColor.veryRecent","explorerDates.customColor.recent","explorerDates.customColor.old"]),isWebRuntime=(()=>{try{return vscode?.env?.uiKind===vscode?.UIKind?.Web}catch{return!1}})(),getFileName,getExtension,normalizePath,getUriPath,ensureDate;try{let e=K();e&&(getFileName=e.getFileName,getExtension=e.getExtension,normalizePath=e.normalizePath,getUriPath=e.getUriPath,ensureDate=e.ensureDate)}catch{}if(!getFileName||!ensureDate){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function")try{let e=dynamicRequire("../utils/pathUtils"),t=dynamicRequire("../utils/dateHelpers");getFileName=getFileName||e.getFileName,getExtension=getExtension||e.getExtension,normalizePath=normalizePath||e.normalizePath,getUriPath=getUriPath||e.getUriPath,ensureDate=ensureDate||t.ensureDate}catch{}}catch{}getFileName||(getFileName=e=>{let t=String(e||""),r=t.replace(/\\/g,"/").lastIndexOf("/");return r===-1?t:t.substring(r+1)}),getExtension||(getExtension=e=>{let t=String(e||""),r=t.lastIndexOf(".");return r<=0?"":t.substring(r).toLowerCase()}),normalizePath||(normalizePath=(e="")=>(e||"").toString().replace(/\\/g,"/")),getUriPath||(getUriPath=(e="")=>e?typeof e=="string"?e:e?.fsPath?e.fsPath:e?.path?e.path:String(e):""),ensureDate||(ensureDate=e=>e instanceof Date?e:typeof e=="number"?new Date(e):typeof e=="string"?isNaN(Date.parse(e))?new Date:new Date(Date.parse(e)):new Date)}async function provideDecoration(e,t){let r=!1,n=null,i,a=null,o=null,s=null,c=null,u=!1,l=null,d=null,h=null,g=null,y=null,m=null,D=!1,E=()=>isWebDiagnosticsEnabled&&isWebDiagnosticsEnabled()&&decorationDiagCount{let w=null;try{w=vscode.workspace.getConfiguration("explorerDates")}catch{w=null}let U=w?w.get("colorScheme","none"):"none",b=w?w.get("showDateDecorations",!0):!0,H=typeof provider._performanceMode=="boolean"?provider._performanceMode:w?w.get("performanceMode",!1):!1,oe=isWebRuntime&&w?!!w.get("webDiagnosticsBuiltinColors",!1):!1;return{isWeb:isWebRuntime,isCanary:!1,builtinColorFallbackActive:oe,colorScheme:U,effectiveColorScheme:U,showDateDecorations:b,performanceMode:H,featureLevel:provider.B,previewSettings:!!provider.X}},F=w=>{if(!E()||r)return;decorationDiagCount+=1,r=!0;let b={...M(),...w};!b.scheme&&n&&(b.scheme=n),b.effectiveColorScheme||(b.effectiveColorScheme=b.colorScheme),typeof b.hasColor>"u"&&(b.hasColor=!!b.color),typeof b.badge>"u"&&(b.badge=null),typeof b.propagate>"u"&&(b.propagate=null),typeof b.decorationKeys>"u"&&(b.decorationKeys=null),typeof b.nullReason>"u"&&(b.nullReason=null),typeof b.timestampSource>"u"&&(b.timestampSource="not-attempted"),typeof b.gitRecencyAvailable>"u"&&(b.gitRecencyAvailable=!1),typeof b.gitRecencyError>"u"&&(b.gitRecencyError=null),typeof b.resolvedTimestampMs>"u"&&(b.resolvedTimestampMs=null),typeof b.gitRepoMatched>"u"&&(b.gitRepoMatched=null),typeof b.gitPathAttempted>"u"&&(b.gitPathAttempted=null),b.themeTokenSource||(b.isCanary?b.themeTokenSource="canary":b.builtinColorFallbackActive?b.themeTokenSource="builtin-fallback":typeof b.color=="string"&&b.color.startsWith("explorerDates.")?b.themeTokenSource="custom-token":b.color?b.themeTokenSource="builtin-token":b.themeTokenSource=null),diagLog("info","Decoration return sample",b)},X=w=>{if(!(!E()||r))try{F(w)}catch{}};try{if(provider.Be){a="disposed";return}if(!e){a="no-uri";return}let w=e.fsPath||e.path||"";n=e.scheme||"file";let U=vscode.workspace.getConfiguration("explorerDates"),b=U.get("performanceMode",!1);if(b&&typeof b!="boolean")return a="invalid-performanceMode",null;if(w&&w.includes("\0"))return a="invalid-path",null;let H=getUriPath(e);if(!H){a="missing-path";return}let oe=provider.Ke?provider.Ke(H):getFileName(H)||H,mt=normalizePath(H),Kr=n||"file";if(typeof provider.je!="function"){diagLogOnce("decorations-fallback-provider","warn","Decoration fallback active (missing provider helpers)");try{let A=await provider._fileSystem.stat(e);if(!A){a="no-stat";return}let Y=A.mtime instanceof Date?A.mtime:A.mtime?new Date(A.mtime):null,Ie=Y&&typeof Y.getTime=="function"?Y.getTime():NaN;if(!Number.isFinite(Ie)){a="invalid-stat";return}let se=Date.now()-Y.getTime(),We=se<1440*60*1e3?"\u2022":se<10080*60*1e3?"\u25E6":"\xB7",Le=`Modified: ${Y.toISOString()}`,me=new vscode.FileDecoration(We,Le);return i=me,y=We,h=!1,g=null,m=me?.propagate,me}catch{a="fallback-error";return}}if(!provider.je(e,"provideFileDecoration")?.isValid){a="invalid-uri";return}if(await provider.tr(e)){a="excluded";return}return i=await provider.rr(w,async()=>{if(t?.isCancellationRequested||provider.Be){a=t?.isCancellationRequested?"cancelled":"disposed";return}let A=(k,pe)=>provider.X&&Object.prototype.hasOwnProperty.call(provider.X,k)?provider.X[k]:vscode.workspace.getConfiguration("explorerDates").get(k,pe);if(isWebRuntime&&A("webDiagnosticsCanary",!1)&&isWebDiagnosticsEnabled&&isWebDiagnosticsEnabled()&&decorationDiagCount=provider.ue;if(provider.ir>provider.ue*.8&&Le){diagLogOnce("decorations-backpressure","warn","Decoration backpressure fallback active");let k=provider.ar(e,Date.now());return y=k?.badge||null,h=!!k?.color,g=k?.color&&k?.color.id?k.color.id:k?.color||null,m=k?.propagate,a="backpressure",k}provider.or(),provider._metrics.cacheMisses++;let N=null;if(!Ie&&provider._workspaceIntelligence?.incrementalIndexer){let k=provider._workspaceIntelligence.incrementalIndexer.getIndexedStat(w);k&&(N=k)}let pt=Date.now();if(!N){try{N=await provider._fileSystem.stat(e)}catch(k){if(provider._metrics.fileStatTimeMs+=Date.now()-pt,provider._metrics.fileStatCalls++,provider.sr(k)){a="stat-not-found";return}if(Kr!=="file"){a="stat-failed";return}throw a="stat-failed",k}provider._workspaceIntelligence?.incrementalIndexer&&provider._workspaceIntelligence.incrementalIndexer.primeFromStat(e,N)}if(provider._metrics.fileStatTimeMs+=Date.now()-pt,provider._metrics.fileStatCalls++,!(typeof N.isFile=="function"?N.isFile():!0)){a="not-regular-file";return}u=!0;let v=null;try{typeof provider.pt=="function"&&(v=await provider.pt(e,N,{filePath:w,fileLabel:oe}))}catch(k){c={source:"unknown",gitAvailable:!1,gitError:k?.message?`resolver-error:${k.message}`:"resolver-error",repoMatched:null,pathAttempted:null}}if((!v||v.bucket==="unknown"||v.source==="unknown")&&!A("freshnessShowUnknown",!0)){a="freshness-unknown";return}let Oe=A("colorScheme","none");provider._performanceMode&&Oe!=="custom"&&(Oe="none");let jr=A("fileSizeFormat","auto"),Z=provider.yt,Vr=Z&&typeof Z.Te=="function"?Z.Te:provider.Te,Gr=Z&&typeof Z.acquireDecorationFromPool=="function"?Z.acquireDecorationFromPool:provider.cr,Ne=formatBadge(v?.bucket||"unknown",v?.source||"unknown",U,v?.confidence||"low");if(!Ne){a="badge-suppressed";return}let $=v?.exactTimestamp?provider.lr(new Date(v.exactTimestamp),Oe,w):void 0,Xr=formatTooltip(v,U)||await Vr({filePath:w,resourceUri:e,stat:N,badgeDetails:{},gitBlame:null,shouldUseAccessibleTooltips:!1,fileSizeFormat:jr,isCodeFile:!1}),qe=Gr({badge:Ne,tooltip:Xr,color:$});return g=$&&typeof $=="object"&&"id"in $?$.id:$||null,h=!!$,y=String(Ne||""),m=qe?.propagate,typeof g=="string"&&g.startsWith("explorerDates.customColor.")&&!CONTRIBUTED_CUSTOM_COLOR_TOKENS.has(g)&&diagLogOnce(`missing-custom-color-${g}`,"warn","Custom color token missing from contributes.colors",{colorId:g,knownTokens:Array.from(CONTRIBUTED_CUSTOM_COLOR_TOKENS)}),l=v?.exactTimestamp||null,c=c||{source:v?.source||"unknown",bucket:v?.bucket||"unknown",confidence:v?.confidence||"low",reason:v?.reason||null,attempts:v?.attempts||null,gitAvailable:v?.source==="git",gitError:null,repoMatched:null,pathAttempted:null},provider.ur(se,qe,oe,e,v),qe}),i}catch(w){o=w?.name||"Error",s=w?.message||String(w),a=a||"exception";return}finally{if(i){if(d==null)try{d=Object.keys(i||{})}catch{d=null}if(y==null&&typeof i.badge<"u"&&(y=i.badge),m==null&&typeof i.propagate<"u"&&(m=i.propagate),g==null&&typeof i.color<"u")try{g=i.color&&i.color.id?i.color.id:i.color}catch{g=i.color}h==null&&typeof g<"u"&&(h=!!g)}let w={uri:e?getFileName(getUriPath(e)||""):null,scheme:n,isCanary:D,badge:y,hasColor:h,color:g,propagate:m,decorationKeys:d,nullReason:i?null:a||"unknown",timestampSource:c?.source||(u?"none":"not-attempted"),gitRecencyAvailable:!!c?.gitAvailable,gitRecencyError:c?.gitError||null,resolvedTimestampMs:l,gitRepoMatched:c?.repoMatched??null,gitPathAttempted:c?.pathAttempted||null,freshnessBucket:c?.bucket||null,freshnessSource:c?.source||null,freshnessConfidence:c?.confidence||null,freshnessReason:c?.reason||null,freshnessAttempts:c?.attempts||null,exceptionName:o,exceptionMessage:s};X(w)}}return{provideDecoration}}module.exports={createDecorationProviderHelpers}});var ct=_((La,yr)=>{function mr(e){!e._allocationTelemetryEnabled||e._telemetryReportTimer||(e._telemetryReportTimer=setTimeout(()=>{e._telemetryReportTimer=null,pr(e),mr(e)},e._telemetryReportInterval))}function pr(e){let t=e.getMetrics().allocationTelemetry,r=t.decorationPool.allocations+t.badgeFlyweight.allocations+t.readableFlyweight.allocations,n=t.decorationPool.reuses+t.badgeFlyweight.reuses+t.readableFlyweight.reuses;(r>0||n>0)&&e._logger?.info?.("\u{1F9EE} Allocation telemetry report",{timestamp:new Date().toISOString(),pool:{allocations:t.decorationPool.allocations,reuses:t.decorationPool.reuses,reuseRate:t.decorationPool.reusePercent+"%"},badgeFlyweight:{allocations:t.badgeFlyweight.allocations,reuses:t.badgeFlyweight.reuses,reuseRate:t.badgeFlyweight.reusePercent+"%"},readableFlyweight:{allocations:t.readableFlyweight.allocations,reuses:t.readableFlyweight.reuses,reuseRate:t.readableFlyweight.reusePercent+"%"},summary:{totalAllocations:r,totalReuses:n,overallReuseRate:r+n>0?(n/(r+n)*100).toFixed(1)+"%":"0%"},decorationsProcessed:e._metrics.totalDecorations,cacheHitRate:e.getMetrics().cacheHitRate})}yr.exports={scheduleTelemetryReport:mr,reportAllocationTelemetry:pr}});var br=_((exports,module)=>{var CHUNK_SIZES={onboarding:34,analysisCommands:23,exportReporting:17,extensionApi:15,workspaceTemplates:14,advancedCache:28,workspaceIntelligence:31,incrementalWorkers:19},BASE_BUNDLE_SIZE=99;function _getPresetDefinitionsSync(){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=dynamicRequire("./chunks/preset-definitions-chunk");if(e&&e.PRESET_DEFINITIONS)return e.PRESET_DEFINITIONS}}catch{}let FALLBACK_PRESET={minimal:{id:"minimal",name:"Minimal",description:"Lean setup that prioritizes responsiveness in large repos.",targetScenarios:["Large repos","Low resources","Minimal UI"],settings:{"explorerDates.performanceMode":!0,"explorerDates.showDateDecorations":!0}},balanced:{id:"balanced",name:"Balanced",description:"Default feature mix for most workspaces.",targetScenarios:["General development","Mixed workloads"],settings:{"explorerDates.enableOnboardingSystem":!0,"explorerDates.enableAnalysisCommands":!0,"explorerDates.performanceMode":!1,"explorerDates.dateDecorationFormat":"smart","explorerDates.colorScheme":"recency","explorerDates.badgePriority":"time"}},"web-development":{id:"web-development",name:"Web Development",description:"Optimized for frontend and full-stack web projects.",targetScenarios:["Web apps","Frontend teams"],settings:{"explorerDates.enableOnboardingSystem":!0,"explorerDates.dateDecorationFormat":"smart","explorerDates.colorScheme":"file-type","explorerDates.badgePriority":"time"}},enterprise:{id:"enterprise",name:"Enterprise",description:"Full feature set with reporting and integrations enabled.",targetScenarios:["Large teams","Governed environments"],settings:{"explorerDates.enableExportReporting":!0,"explorerDates.enableExtensionApi":!0,"explorerDates.dateDecorationFormat":"smart","explorerDates.colorScheme":"recency","explorerDates.badgePriority":"time"}},"data-science":{id:"data-science",name:"Data Science",description:"Insight-focused profile for data-heavy projects.",targetScenarios:["Data analysis","Research workflows"],settings:{"explorerDates.enableWorkspaceIntelligence":!0,"explorerDates.dateDecorationFormat":"iso-detailed","explorerDates.colorScheme":"recency","explorerDates.badgePriority":"time"}}};return FALLBACK_PRESET}var PRESET_DEFINITIONS=_getPresetDefinitionsSync(),RESTART_REQUIRED_SETTINGS=new Set(["enableOnboardingSystem","enableAnalysisCommands","enableExportReporting","enableExtensionApi","enableWorkspaceTemplates","enableAdvancedCache","enableWorkspaceIntelligence","enableIncrementalWorkers","performanceMode","smartFileWatching"]);function calculateBundleSize(e){let t=BASE_BUNDLE_SIZE;return e["explorerDates.enableOnboardingSystem"]&&(t+=CHUNK_SIZES.onboarding),e["explorerDates.enableAnalysisCommands"]&&(t+=CHUNK_SIZES.analysisCommands),e["explorerDates.enableExportReporting"]&&(t+=CHUNK_SIZES.exportReporting),e["explorerDates.enableExtensionApi"]&&(t+=CHUNK_SIZES.extensionApi),e["explorerDates.enableWorkspaceTemplates"]&&(t+=CHUNK_SIZES.workspaceTemplates),e["explorerDates.enableAdvancedCache"]&&(t+=CHUNK_SIZES.advancedCache),e["explorerDates.enableWorkspaceIntelligence"]&&(t+=CHUNK_SIZES.workspaceIntelligence),e["explorerDates.enableIncrementalWorkers"]&&(t+=CHUNK_SIZES.incrementalWorkers),t}function getDefaultPresetForProfile(e){let t=PRESET_DEFINITIONS;switch(e){case"minimal":case"extreme":return t.minimal||t.minimal;case"balanced":return t.balanced||t.balanced;case"web-development":return t["web-development"]||t["web-development"];case"data-science":return t["data-science"]||t["data-science"];case"enterprise":return t.enterprise||t.enterprise;default:return t.balanced||t.balanced}}module.exports={PRESET_DEFINITIONS,CHUNK_SIZES,BASE_BUNDLE_SIZE,RESTART_REQUIRED_SETTINGS,calculateBundleSize,getDefaultPresetForProfile}});var Er=_((Oa,_r)=>{var Se={onboarding:"src/chunks/onboarding-chunk",onboardingAssets:"src/chunks/onboarding-assets-chunk",reporting:"src/chunks/reporting-chunk",templates:"src/chunks/templates-chunk",analysis:"src/chunks/analysis-chunk",diagnostics:"src/chunks/diagnostics-chunk",extensionApi:"src/chunks/extension-api-chunk",advancedCache:"src/chunks/advancedCache-chunk",batchProcessor:"src/chunks/batchProcessor-chunk",decorationsAdvanced:"src/chunks/decorations-advanced",decorationsStatic:"src/chunks/decorations-static",workspaceIntelligence:"src/chunks/workspaceIntelligence",decorationLogic:"src/chunks/decoration-logic-chunk",decorationProvide:"src/chunks/decoration-provide-chunk",decorationHelpers:"src/chunks/decoration-helpers-chunk",decorationBatch:"src/chunks/decoration-batch-chunk",decorationWorkspaceIntel:"src/chunks/decoration-workspace-intel-chunk",decorationTelemetry:"src/chunks/decoration-telemetry-chunk",decorationRefresh:"src/chunks/decoration-refresh-chunk",decorationMemory:"src/chunks/decoration-memory-chunk",decorationPool:"src/chunks/decoration-pool-chunk",providerInit:"src/chunks/provider-init-chunk",fileDateProviderImpl:"src/chunks/file-date-provider-impl",fileDateProviderImplExport:"src/chunks/file-date-provider-impl-export",utilsShared:"src/chunks/utils-shared-chunk",incrementalWorkers:"src/chunks/incrementalWorkers",incrementalIndexer:"src/chunks/incrementalIndexer-chunk",uiAdapters:"src/chunks/ui-adapters",gitInsights:"src/chunks/gitInsights-chunk",smartWatcherFallback:"src/chunks/smartWatcherFallback-chunk",runtimeManagement:"src/chunks/runtime-management",runtimeManagementHeavy:"src/chunks/runtime-management-heavy",teamPersistence:"src/chunks/team-persistence-chunk",teamPersistenceUI:"src/chunks/team-persistence-ui-chunk",teamPersistenceLogic:"src/chunks/team-persistence-logic-chunk",settingsCoordinatorImpl:"src/chunks/settings-coordinator-impl-chunk",logger:"src/chunks/logger-chunk",loggerImpl:"src/chunks/logger-impl-chunk"};function Ii(e){return Se[e]||null}function Wi(){return Object.keys(Se)}function Li(e){let t={};for(let[r,n]of Object.entries(Se))t[r]=()=>e(`./${n}`);return t}var Oi=new Set(["gitInsights","reporting","templates","advancedCache","runtimeManagementHeavy","incrementalWorkers"]);_r.exports={CHUNK_MAP:Se,WEB_EXCLUDED_CHUNKS:Oi,getChunkSourcePath:Ii,getAllChunkNames:Wi,generateDevLoaderMap:Li}});var G=_((exports,module)=>{var FEATURE_FLAGS_GLOBAL_KEY="__explorerDatesFeatureFlags";function registerFeatureFlagsGlobal(e){if(e)try{typeof globalThis<"u"&&(globalThis[FEATURE_FLAGS_GLOBAL_KEY]=e)}catch{}}function loadFeatureFlagsFallback(){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function")return dynamicRequire("../featureFlags")}catch{}return null}function getFeatureFlagsGlobal(){try{if(typeof globalThis<"u"&&globalThis[FEATURE_FLAGS_GLOBAL_KEY])return globalThis[FEATURE_FLAGS_GLOBAL_KEY]}catch{}return loadFeatureFlagsFallback()}module.exports={FEATURE_FLAGS_GLOBAL_KEY,registerFeatureFlagsGlobal,getFeatureFlagsGlobal}});var ge=_((exports,module)=>{var getLogger=()=>{try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=dynamicRequire("./chunks/logger-chunk");if(e&&typeof e.getLogger=="function")return getLogger=e.getLogger,getLogger()}}catch{}try{return getLogger=q().getLogger,getLogger()}catch{return getLogger=()=>({debug:(()=>{})?.bind(console)||console.log,info:(()=>{}).bind(console),warn:(()=>{}).bind(console),error:(()=>{}).bind(console)}),getLogger()}},{CHUNK_SIZES}=br(),{getChunkSourcePath,getAllChunkNames}=Er(),{registerFeatureFlagsGlobal}=G(),{isWebEnvironment}=J(),featureLogger=null,env=typeof process<"u"&&process.env?process.env:{},DEFAULT_CHUNK_TIMEOUT_MS=Number(env.EXPLORER_DATES_CHUNK_TIMEOUT||(env.NODE_ENV==="test"?1e3:5e3)),NETWORK_ERROR_CODES=new Set(["ENOTFOUND","ECONNRESET","ECONNREFUSED","EAI_AGAIN","ETIMEDOUT","EHOSTUNREACH"]),BUILT_CHUNK_CACHE=new Map,CHUNK_METHOD_ALIASES={reporting:"exportReporting",templates:"workspaceTemplates",analysis:"analysisCommands"},DEV_CHUNK_PATH_CACHE=new Map,LAST_FEATURE_FAILURES=new Map;function getDevChunkImportPath(e){if(DEV_CHUNK_PATH_CACHE.has(e))return DEV_CHUNK_PATH_CACHE.get(e);let t=getChunkSourcePath(e);if(!t)return DEV_CHUNK_PATH_CACHE.set(e,null),null;let r=t;return r.startsWith("src/")&&(r=r.slice(4)),r.startsWith("./")||(r=`./${r}`),DEV_CHUNK_PATH_CACHE.set(e,r),r}function resolveNodeDependencies(){if(nativeDepsResolved)return!!(nativePath&&nativeFs);if(nativeDepsResolved=!0,!isNodeLikeRuntime())return!1;try{nativePath=eval("require")("path"),nativeFs=eval("require")("fs")}catch{nativePath=null,nativeFs=null}return!!(nativePath&&nativeFs)}var nativeDepsResolved=!1,nativePath=null,nativeFs=null;function isWebRuntime(){try{return isWebEnvironment()?!0:typeof process<"u"&&process?.env?.VSCODE_WEB==="true"}catch{return!1}}function isNodeLikeRuntime(){return typeof process<"u"&&!!process.versions?.node&&!isWebRuntime()}function getChunkTimeoutMs(){return DEFAULT_CHUNK_TIMEOUT_MS>0?DEFAULT_CHUNK_TIMEOUT_MS:0}function logFeature(e,t,r){featureLogger||(featureLogger=getLogger());let n=featureLogger;typeof n[e]=="function"?n[e](t,r):n.info(t,r)}function logFeatureDisabled(e,t){logFeature("info","Feature disabled via configuration",{feature:e,savedKB:t&&CHUNK_SIZES[t]!==void 0?CHUNK_SIZES[t]:void 0})}function isLikelyNetworkIssue(e){if(!e)return!1;if(e.code&&NETWORK_ERROR_CODES.has(e.code))return!0;let t=(e.message||"").toLowerCase();return t.includes("network")||t.includes("fetch")||t.includes("timed out")}function runWithChunkTimeout(e,t){let r=getChunkTimeoutMs(),n=()=>{try{return Promise.resolve(e())}catch(i){return Promise.reject(i)}};return r?new Promise((i,a)=>{let o=!1,s=setTimeout(()=>{if(o)return;o=!0;let c=new Error(`Chunk "${t}" load timed out after ${r}ms`);c.code="CHUNK_TIMEOUT",a(c)},r);n().then(c=>{o||(o=!0,clearTimeout(s),i(c))}).catch(c=>{o||(o=!0,clearTimeout(s),a(c))})}):n()}function logResolverFailure(e,t){if(!t)return;let r={chunkName:e,error:t.message,code:t.code,networkIssue:isLikelyNetworkIssue(t),timedOut:t.code==="CHUNK_TIMEOUT"},n=r.networkIssue||r.timedOut?"warn":"error";logFeature(n,"Chunk resolver failed",r)}function tryLoadBuiltChunk(e){if(!e||!resolveNodeDependencies()||typeof nativeFs?.existsSync!="function")return null;if(BUILT_CHUNK_CACHE.has(e))return BUILT_CHUNK_CACHE.get(e);let t=[];typeof __dirname=="string"&&nativePath&&(t.push(nativePath.join(__dirname,"chunks",`${e}.js`)),t.push(nativePath.join(__dirname,"..","dist","chunks",`${e}.js`)));for(let r of t)try{if(!r||!nativeFs.existsSync(r))continue;let n=require(r),i=n?.default||n;return BUILT_CHUNK_CACHE.set(e,i||null),i&&logFeature("info","Loaded chunk via built artifact fallback",{chunkName:e,path:r}),i}catch(n){logFeature("warn","Built chunk fallback failed",{chunkName:e,path:r,error:n.message})}return BUILT_CHUNK_CACHE.set(e,null),null}function tryRequireDevChunk(e){if(isWebRuntime())return null;let t=getDevChunkImportPath(e);if(!t)return null;try{let r=require(t);return r?.default||r}catch(r){(r.code!=="MODULE_NOT_FOUND"||typeof r.message=="string"&&!r.message.includes(t))&&logFeature("debug","Dev chunk require failed",{chunkName:e,importPath:t,error:r.message})}return null}function tryRequireLocalBuiltChunk(e){if(isWebRuntime())return null;let t=`./chunks/${e}`;try{let r=require(t);return r?.default||r}catch(r){r.code==="MODULE_NOT_FOUND"||logFeature("debug","Local chunk require failed",{chunkName:e,importPath:t,error:r.message})}return null}function getSavingsKey(e){return e in CHUNK_SIZES?e:CHUNK_METHOD_ALIASES[e]||null}function announceChunkSavings(e){let t=getSavingsKey(e);if(!t)return;let r=CHUNK_SIZES[t];if(!r)return;let i=`\u{1F4BE} ${t===e||!e?t:`${t} (requested as "${e}")`} chunk unavailable - keeping the feature disabled is saving ~${r}KB`;logFeature("info","Chunk savings applied",{chunkName:t,requestedName:e,savedKB:r})}var getFeatureConfig=()=>{try{let t=require("vscode").workspace.getConfiguration("explorerDates"),r=isWebRuntime(),n=i=>r?!1:i;return{enableOnboarding:t.get("enableOnboardingSystem",!0),enableExportReporting:n(t.get("enableExportReporting",!0)),enableWorkspaceTemplates:n(t.get("enableWorkspaceTemplates",!0)),enableAnalysisCommands:t.get("enableAnalysisCommands",!0),enableAdvancedCache:n(t.get("enableAdvancedCache",!0)),enableWorkspaceIntelligence:n(t.get("enableWorkspaceIntelligence",!0)),enableIncrementalWorkers:n(t.get("enableIncrementalWorkers",!1)),enableGitInsights:n(t.get("enableGitInsights",!0)),enableExtensionApi:t.get("enableExtensionApi",!0)}}catch{let e=isWebRuntime(),t=r=>e?!1:r;return{enableOnboarding:!0,enableExportReporting:t(!0),enableWorkspaceTemplates:t(!0),enableAnalysisCommands:!0,enableAdvancedCache:t(!0),enableWorkspaceIntelligence:t(!0),enableIncrementalWorkers:t(!1),enableGitInsights:t(!0),enableExtensionApi:!0}}},featureLoaders=new Map,chunkResolver=null;function setFeatureChunkResolver(e){if(e&&typeof e!="function")throw new Error("Feature chunk resolver must be a function");chunkResolver=e||null}function registerFeatureLoader(e,t){if(typeof t!="function")throw new Error(`Feature loader for "${e}" must be a function`);featureLoaders.set(e,t)}function unregisterFeatureLoader(e){featureLoaders.delete(e)}function clearFeatureLoaders(){featureLoaders.clear()}async function loadFeatureModule(e){LAST_FEATURE_FAILURES.delete(e);let t=featureLoaders.get(e);if(!t&&chunkResolver&&(t=()=>chunkResolver(e)),!t)return logFeature("warn","No loader registered for feature",{feature:e}),null;try{return await runWithChunkTimeout(()=>t(),e)}catch(r){return LAST_FEATURE_FAILURES.set(e,r),logFeature("warn","Feature loader failed",{feature:e,error:r.message,code:r.code,networkIssue:isLikelyNetworkIssue(r)}),announceChunkSavings(e),null}}function getFeatureLoadFailure(e){return LAST_FEATURE_FAILURES.get(e)}function registerDefaultLoaders(){getAllChunkNames().forEach(t=>{featureLoaders.has(t)||registerFeatureLoader(t,createDefaultLoader(t))})}function createDefaultLoader(e){return async()=>{if(chunkResolver&&typeof chunkResolver=="function")try{let i=await runWithChunkTimeout(()=>chunkResolver(e),e);if(i)return i;logFeature("info","Chunk resolver returned no module",{chunkName:e})}catch(i){logResolverFailure(e,i)}let t=tryRequireDevChunk(e);if(t)return t;let r=tryRequireLocalBuiltChunk(e);if(r)return r;let n=tryLoadBuiltChunk(e);return n||(logFeature("warn","No built artifact available for chunk",{chunkName:e}),null)}}var featureFlags={async onboarding(){return getFeatureConfig().enableOnboarding?loadFeatureModule("onboarding"):(logFeatureDisabled("onboarding","onboarding"),null)},async exportReporting(){return getFeatureConfig().enableExportReporting?loadFeatureModule("reporting"):(logFeatureDisabled("exportReporting","exportReporting"),null)},async workspaceTemplates(){return getFeatureConfig().enableWorkspaceTemplates?loadFeatureModule("templates"):(logFeatureDisabled("workspaceTemplates","workspaceTemplates"),null)},async analysisCommands(){return getFeatureConfig().enableAnalysisCommands?loadFeatureModule("analysis"):(logFeatureDisabled("analysisCommands","analysisCommands"),null)},async advancedCache(){return getFeatureConfig().enableAdvancedCache?loadFeatureModule("advancedCache"):(logFeatureDisabled("advancedCache","advancedCache"),null)},async workspaceIntelligence(){return getFeatureConfig().enableWorkspaceIntelligence?loadFeatureModule("workspaceIntelligence"):(logFeatureDisabled("workspaceIntelligence","workspaceIntelligence"),null)},async incrementalWorkers(){return getFeatureConfig().enableIncrementalWorkers?loadFeatureModule("incrementalWorkers"):(logFeatureDisabled("incrementalWorkers","incrementalWorkers"),null)},async extensionApi(){return getFeatureConfig().enableExtensionApi?loadFeatureModule("extensionApi"):(logFeatureDisabled("extensionApi","extensionApi"),null)},async uiAdapters(){return loadFeatureModule("uiAdapters")},async batchProcessor(){return loadFeatureModule("batchProcessor")},async decorationsAdvanced(){return loadFeatureModule("decorationsAdvanced")},async decorationsProviderImpl(){return loadFeatureModule("decorationsProviderImpl")},async gitInsights(){return getFeatureConfig().enableGitInsights?loadFeatureModule("gitInsights"):(logFeatureDisabled("gitInsights","gitInsights"),null)},isEnabled(e){let t=getFeatureConfig();return{onboarding:t.enableOnboarding,exportReporting:t.enableExportReporting,workspaceTemplates:t.enableWorkspaceTemplates,analysisCommands:t.enableAnalysisCommands,advancedCache:t.enableAdvancedCache,workspaceIntelligence:t.enableWorkspaceIntelligence,incrementalWorkers:t.enableIncrementalWorkers,extensionApi:t.enableExtensionApi}[e]??!0},getEnabledFeatures(){let e=getFeatureConfig(),t=[];return e.enableOnboarding&&t.push("onboarding"),e.enableExportReporting&&t.push("exportReporting"),e.enableWorkspaceTemplates&&t.push("workspaceTemplates"),e.enableAnalysisCommands&&t.push("analysisCommands"),e.enableAdvancedCache&&t.push("advancedCache"),e.enableWorkspaceIntelligence&&t.push("workspaceIntelligence"),e.enableIncrementalWorkers&&t.push("incrementalWorkers"),e.enableExtensionApi&&t.push("extensionApi"),t},calculateSavings(){let e=getFeatureConfig(),t=0;return e.enableOnboarding||(t+=34),e.enableExportReporting||(t+=17),e.enableExtensionApi||(t+=15),e.enableWorkspaceTemplates||(t+=14),e.enableWorkspaceIntelligence||(t+=12),e.enableAnalysisCommands||(t+=8),e.enableAdvancedCache||(t+=5),t}};for(let[e,t]of Object.entries(CHUNK_METHOD_ALIASES))!featureFlags[e]&&typeof featureFlags[t]=="function"&&(featureFlags[e]=(...r)=>featureFlags[t](...r));function calculateSavings(e){e||(e=getFeatureConfig());let t=267,r=0;e.enableOnboarding||(r+=34),e.enableExportReporting||(r+=17),e.enableExtensionApi||(r+=15),e.enableWorkspaceTemplates||(r+=14),e.enableWorkspaceIntelligence||(r+=12),e.enableIncrementalWorkers||(r+=19),e.enableAnalysisCommands||(r+=8),e.enableAdvancedCache||(r+=5);let n=t-r,i=r>0?Math.round(r/t*100):0;return{baseSize:`${t}KB`,totalSavings:`${r}KB`,optimizedSize:`${n}KB`,percentage:i}}registerDefaultLoaders();var exportedFeatureFlags={...featureFlags,getFeatureConfig,calculateSavings,registerFeatureLoader,setFeatureChunkResolver,unregisterFeatureLoader,clearFeatureLoaders,loadFeatureModule,getFeatureLoadFailure,registerDefaultLoaders};registerFeatureFlagsGlobal(exportedFeatureFlags);module.exports=exportedFeatureFlags});var wr=_((exports,module)=>{var vscode=require("vscode"),getLogger=()=>{try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=dynamicRequire("./chunks/logger-chunk");if(e&&typeof e.getLogger=="function")return getLogger=e.getLogger,getLogger()}}catch{}try{return getLogger=q().getLogger,getLogger()}catch{return getLogger=()=>({debug:(()=>{})?.bind(console)||console.log,info:(()=>{}).bind(console),warn:(()=>{}).bind(console),error:(()=>{}).bind(console)}),getLogger()}},{fileSystem}=Be(),env=typeof process<"u"&&process.env?process.env:{},{formatFileSize}=Ke(),getFileName=p=>{try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=null;try{e=dynamicRequire("../chunks/utils-shared-chunk")}catch{}try{e||(e=dynamicRequire("./chunks/utils-shared-chunk"))}catch{}try{e||(e=dynamicRequire("./chunks/path-utils-chunk"))}catch{}if(e&&typeof e.getFileName=="function")return getFileName=e.getFileName,getFileName(p)}}catch{}try{let t=String(p||"").replace(/\\/g,"/"),r=t.lastIndexOf("/");return r===-1?t:t.substring(r+1)}catch{return"unknown"}},getExtension=p=>{try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=null;try{e=dynamicRequire("../chunks/utils-shared-chunk")}catch{}try{e||(e=dynamicRequire("./chunks/utils-shared-chunk"))}catch{}try{e||(e=dynamicRequire("./chunks/path-utils-chunk"))}catch{}if(e&&typeof e.getExtension=="function")return getExtension=e.getExtension,getExtension(p)}}catch{}try{let e=String(p||""),t=e.lastIndexOf(".");return t<=0?"":e.substring(t).toLowerCase()}catch{return""}},buildCacheKey=p=>{try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=null;try{e=dynamicRequire("../chunks/utils-shared-chunk")}catch{}try{e||(e=dynamicRequire("./chunks/utils-shared-chunk"))}catch{}try{e||(e=dynamicRequire("./chunks/path-utils-chunk"))}catch{}if(e&&typeof e.getCacheKey=="function")return buildCacheKey=e.getCacheKey,buildCacheKey(p)}}catch{}return String(p||"").toLowerCase().replace(/\\/g,"/")},normalizePath=input=>{try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=null;try{e=dynamicRequire("../chunks/utils-shared-chunk")}catch{}try{e||(e=dynamicRequire("./chunks/utils-shared-chunk"))}catch{}try{e||(e=dynamicRequire("./chunks/path-utils-chunk"))}catch{}if(e&&typeof e.normalizePath=="function")return normalizePath=e.normalizePath,normalizePath(input)}}catch{}return String(input||"").replace(/\\/g,"/")},getUriPath=(target="")=>{try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=null;try{e=dynamicRequire("../chunks/utils-shared-chunk")}catch{}try{e||(e=dynamicRequire("./chunks/utils-shared-chunk"))}catch{}try{e||(e=dynamicRequire("./chunks/path-utils-chunk"))}catch{}if(e&&typeof e.getUriPath=="function")return getUriPath=e.getUriPath,getUriPath(target)}}catch{}if(!target)return"";if(typeof target=="string")return target;if(typeof target.fsPath=="string"&&target.fsPath.length>0)return target.fsPath;if(typeof target.path=="string"&&target.path.length>0)return target.path;if(typeof target.toString=="function")try{return target.toString(!0)}catch{return target.toString()}return String(target)},{DEFAULT_CACHE_TIMEOUT,DEFAULT_MAX_CACHE_SIZE,GLOBAL_STATE_KEYS,DEFAULT_DECORATION_POOL_SIZE,DEFAULT_FLYWEIGHT_CACHE_SIZE,WORKSPACE_SCALE_EXTREME_THRESHOLD}=I(),{isWebEnvironment}=J(),{getSettingsCoordinator}=Ge(),{SecurityValidator,SecureFileOperations,detectSecurityEnvironment}=Je(),DISABLE_GIT_FEATURES=env.EXPLORER_DATES_DISABLE_GIT_FEATURES==="1",IS_WEB_ENV=isWebEnvironment()||env.VSCODE_WEB==="true",nodePath=null;try{IS_WEB_ENV||(nodePath=require("path"))}catch{nodePath=null}var pathCompat={basename:e=>{if(!e)return"";try{if(!IS_WEB_ENV)return require("path").basename(e)}catch{let t=e.replace(/\\/g,"/"),r=t.lastIndexOf("/");return r===-1?t:t.substring(r+1)}},dirname:e=>{if(!e)return".";try{if(!IS_WEB_ENV)return require("path").dirname(e)}catch{let t=e.replace(/\\/g,"/"),r=t.lastIndexOf("/");return r===-1?".":t.substring(0,r)}}};(async()=>{try{let t=await ge().decorationsStatic();t&&(t.basename&&t.dirname&&(pathCompat.basename=t.basename,pathCompat.dirname=t.dirname),t.describeFile&&(exports.Ke=t.describeFile))}catch{}})();var CONFIG_DEFAULT_CACHE_TIMEOUT=3e4,CACHE_NAMESPACE_SEPARATOR="::",DEFAULT_DYNAMIC_WATCHER_LIMIT=Number(env.EXPLORER_DATES_MAX_DYNAMIC_WATCHERS||200),DEFAULT_WATCHER_INACTIVITY_MS=Number(env.EXPLORER_DATES_WATCHER_TTL_MS||600*1e3),DEFAULT_SMART_WATCHER_EXTENSIONS=["js","ts","json","md","py","java"],SMART_WATCHER_PRIORITY=new Map([["src",100],["lib",65],["test",30]]),WORKSPACE_SCAN_TIMEOUT_MS=Number(env.EXPLORER_DATES_WORKSPACE_SCAN_TIMEOUT||7e3),WORKSPACE_SCAN_TIMEOUT_FALLBACK_COUNT=WORKSPACE_SCALE_EXTREME_THRESHOLD,VIEWPORT_DEFAULT_WINDOW_MS=300*1e3,DEFAULT_VIEWPORT_HISTORY_LIMIT=Number(env.EXPLORER_DATES_VIEWPORT_HISTORY_LIMIT||400),FEATURE_LEVELS=["full","enhanced","standard","minimal"],DEFAULT_INDEXER_MAX_FILES=Math.max(100,Number(env.EXPLORER_DATES_INDEXER_MAX_FILES||2e3)),SECURITY_EXTRA_PATHS_ENV="EXPLORER_DATES_SECURITY_EXTRA_PATHS",DEFAULT_SECURITY_THROTTLE_MS=Number(env.EXPLORER_DATES_SECURITY_WARNING_THROTTLE_MS||5e3),SECURITY_WARNING_CACHE_LIMIT=Number(env.EXPLORER_DATES_SECURITY_WARNING_CACHE||500),DEFAULT_SECURITY_MAX_WARNINGS=Number(env.EXPLORER_DATES_SECURITY_MAX_WARNINGS_PER_FILE??1),describeFile=(e="")=>{try{let t=typeof e=="string"?e:getUriPath(e),r=normalizePath(t);return getFileName(r)||r||"unknown"}catch{return"unknown"}};(async()=>{try{let t=await ge().decorationsStatic();t&&typeof t.describeFile=="function"&&(describeFile=t.describeFile)}catch{}})();var LazyHierarchicalDecorationCache=class{constructor(){this.n=new Map}get size(){return this.n.size}get bucketCount(){return 0}clear(){this.n.clear()}get(t){return this.n.get(t)}set(t,r){this.n.set(t,r)}delete(t){return this.n.delete(t)}*entries(){yield*this.n.entries()}*keys(){yield*this.n.keys()}*values(){yield*this.n.values()}[Symbol.iterator](){return this.entries()}enforceLimit(){return 0}},FileDateDecorationProviderImpl=class{constructor(...args){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=dynamicRequire("./chunks/file-date-provider-impl");if(e&&typeof e.FileDateDecorationProviderImpl=="function")return new e.FileDateDecorationProviderImpl(...args);if(e&&typeof e.FileDateDecorationProvider=="function")return new e.FileDateDecorationProvider(...args)}}catch(e){}throw new Error("FileDateDecorationProvider implementation is not available in this environment")}},FileDateDecorationProvider=class{constructor(...args){let loaderError=null;try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function")try{let e=null;try{e=dynamicRequire("./chunks/file-date-provider-impl-export")}catch{}if(e){let r=e.FileDateDecorationProvider||e.FileDateDecorationProviderImpl||e.default;return typeof r=="function"?new r(...args):new FileDateDecorationProviderImpl(...args)}e=dynamicRequire("./chunks/file-date-provider-impl");let t=e&&(e.FileDateDecorationProvider||e.FileDateDecorationProviderImpl||e.default);if(typeof t=="function")return new t(...args)}catch(e){loaderError=e}try{let e=null;try{e=require.resolve("./chunks/file-date-provider-impl-export",{paths:[__dirname]})}catch{}e||(e=require.resolve("./chunks/file-date-provider-impl",{paths:[__dirname]}));let t=require(e),r=t&&(t.FileDateDecorationProvider||t.FileDateDecorationProviderImpl||t.default);if(e&&e.endsWith("file-date-provider-impl-export.js")&&!r)return new FileDateDecorationProviderImpl(...args);if(typeof r=="function")return new r(...args)}catch(e){loaderError=loaderError||e}}catch(e){loaderError=loaderError||e}if(loaderError&&loaderError.message){let e=`FileDateDecorationProvider implementation is unavailable: ${loaderError.message}`;throw new Error(e)}throw new Error("FileDateDecorationProvider implementation is unavailable")}};module.exports={FileDateDecorationProvider,FileDateDecorationProviderImpl}});var kr=_((exports,module)=>{try{require("vscode")}catch{}var env=typeof process<"u"&&process.env?process.env:{},diagLog=null,isWebDiagnosticsEnabled=()=>!1;try{let e=he();e&&(diagLog=e.diagLog,isWebDiagnosticsEnabled=e.isWebDiagnosticsEnabled||(()=>!1))}catch{}function isWebRuntime(){try{let{isWebEnvironment:e}=J();return e()}catch{return env.VSCODE_WEB==="true"}}function getWebChunkRegistry(){try{let{WEB_CHUNK_GLOBAL_KEY:e,LEGACY_WEB_CHUNK_GLOBAL_KEY:t}=I();if(typeof globalThis<"u")return globalThis[e]||globalThis[t]||null}catch{}return typeof globalThis<"u"&&(globalThis.explorerDatesChunks||globalThis.hr)||null}function resolveProviderModuleFromWebRegistry(){let e=getWebChunkRegistry();if(!e)return null;let t=[e.fileDateProviderImplExport,e.fileDateProviderImpl,e.fileDateProviderImplExport,e.fileDateProviderImpl,e["file-date-provider-impl-export"],e["file-date-provider-impl"]].filter(Boolean);return t.length>0?t[0]:null}function normalizeModuleExports(e){if(!e)return null;let t=e&&typeof e=="object"?e:{default:e},r=t&&typeof t=="object"&&t.default?t.default:null;return r&&typeof r=="object"?{...t,...r}:t}async function hydrateProviderOptionalSystems(e){try{try{let r=(await Promise.resolve().then(()=>R(ot()))).getLocalization();e.p.getString=(...i)=>r.getString(...i),e.p.formatDate=(...i)=>r.formatDate(...i),e.p.getCurrentLocale=()=>r.getCurrentLocale();let n=e.p.dispose;e.p.dispose=()=>{try{r.dispose()}catch{}n()}}catch(t){e._logger?.debug("provider-init: localization hydrate failed",t)}try{let t=await Promise.resolve().then(()=>R(st()));t&&typeof t.createDecorationLogic=="function"&&(e.yt=t.createDecorationLogic(e))}catch(t){e._logger?.debug("provider-init: preload decoration logic failed",t)}try{let t=await Promise.resolve().then(()=>R(Ce())),r=t&&(typeof t.createDecorationProviderHelpers=="function"?t.createDecorationProviderHelpers(e):t);e.dr=r}catch(t){e._logger?.debug("provider-init: preload decoration provider helpers failed",t)}try{let t=await e.Z();t&&typeof t.initializeAdvancedSystems=="function"&&await t.initializeAdvancedSystems(e)}catch(t){e._logger?.debug("provider-init: initializeAdvancedSystems failed",t)}try{let t=ct();t&&typeof t.scheduleTelemetryReport=="function"&&e._allocationTelemetryEnabled&&t.scheduleTelemetryReport(e)}catch(t){e._logger?.debug("provider-init: scheduling telemetry failed",t)}}catch(t){try{e._logger?.debug("provider-init: hydration failed",t)}catch{}}}function createFileDateDecorationProvider(context){try{let ProviderClass=null,webRuntime=isWebRuntime();if(webRuntime){let e=getWebChunkRegistry(),t=[e?.fileDateProviderImplExport,e?.fileDateProviderImpl,e?.fileDateProviderImplExport,e?.fileDateProviderImpl,e?.["file-date-provider-impl-export"],e?.["file-date-provider-impl"]].filter(Boolean),r=t[0]||resolveProviderModuleFromWebRegistry();!e&&isWebDiagnosticsEnabled()?diagLog?.("warn","Provider registry missing in web runtime"):!r&&isWebDiagnosticsEnabled()&&diagLog?.("warn","Provider module missing from web registry",{hasRegistry:!!e,availableKeys:Object.keys(e||{}),candidateCount:t.length});let n=null;for(let i of t){let a=normalizeModuleExports(i),o=a&&(a.FileDateDecorationProvider||a.FileDateDecorationProviderImpl||a.default);if(o){n=o;break}isWebDiagnosticsEnabled()&&diagLog?.("warn","Provider exports missing expected class",{availableExportKeys:Object.keys(a||{})})}ProviderClass=n,!ProviderClass&&isWebDiagnosticsEnabled()&&t.length>0&&diagLog?.("warn","Provider class unresolved from registry entries",{candidateCount:t.length,availableRegistryKeys:Object.keys(e||{})})}try{if(!webRuntime){let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=null;try{e=dynamicRequire("./fileDateProviderImplExport")}catch{}if(!e)try{e=dynamicRequire("./fileDateProviderImpl")}catch{}ProviderClass=e&&(e.FileDateDecorationProvider||e.FileDateDecorationProviderImpl||e.default)}}}catch{}if(!ProviderClass&&!webRuntime){let{FileDateDecorationProvider:e}=wr();ProviderClass=e}if(!ProviderClass)return isWebDiagnosticsEnabled()&&diagLog?.("warn","Provider class unavailable",{webRuntime,registryKeys:Object.keys(getWebChunkRegistry()||{})}),null;let provider=new ProviderClass;return isWebDiagnosticsEnabled()&&diagLog?.("info","Provider class resolved",{className:ProviderClass?.name||"unknown"}),(async()=>{try{await provider.initializeAdvancedSystems(context)}catch(e){provider._logger?.debug("provider-init: provider factory init failed",e)}})(),{createFileDateDecorationProvider:()=>provider}}catch{return null}}module.exports={hydrateProviderOptionalSystems,createFileDateDecorationProvider}});var Fr=_((Na,vr)=>{var O=require("vscode"),{getLogger:Ni}=q(),{WORKSPACE_SCALE_BALANCED_THRESHOLD:Dr,WORKSPACE_SCALE_LARGE_THRESHOLD:ve,WORKSPACE_SCALE_EXTREME_THRESHOLD:Cr,WORKSPACE_SCAN_MAX_RESULTS:Sr}=I(),lt=Ni(),Te=null;function Tr(e){return e&&(e.fsPath||e.path)||null}function ut(e,t){let r=Tr(e);!r||typeof t!="number"||(Te={workspaceKey:r,fileCount:t,timestamp:Date.now()})}function ht(e){let t=Tr(e);return!t||!Te||Te.workspaceKey!==t?null:Te}function qi(e,t="default"){if(!e)return`unknown-workspace-${t}`;let r=e.fsPath||e.path||"",n=r.split("/").pop()||"workspace",i=Math.abs(r.split("").reduce((o,s)=>(o=(o<<5)-o+s.charCodeAt(0),o&o),0)).toString(36).substr(0,8),a=Math.abs(t.split("").reduce((o,s)=>(o=(o<<5)-o+s.charCodeAt(0),o&o),0)).toString(36).substr(0,4);return`${n}-${i}-${a}`}async function zi(e){try{if(!e)return"unknown";let t=ht(e),r;t?r=t.fileCount:(r=(await O.workspace.findFiles("**/*",null,Sr)).length,ut(e,r));let n="small";r>=Cr?n="extreme":r>=ve?n="large":r>=1e3&&(n="medium");let i=O.env.remoteName,a=O.env.uiKind===O.UIKind.Web,o=n==="medium"&&r>=Dr&&ru.toLowerCase());if(c.includes("package.json")||c.includes("yarn.lock"))return"web-development";if(c.some(u=>u.endsWith(".ipynb"))||c.includes("requirements.txt"))return"data-science";if(c.includes("docker-compose.yml")||c.includes(".enterprise"))return"enterprise"}catch(s){lt.debug("Project type detection failed:",s)}return"full"}catch(t){return lt.error("Workspace profile detection failed:",t),"unknown"}}async function Ui(e){if(!e)return null;try{let t=ht(e),r;t?r=t.fileCount:(r=(await O.workspace.findFiles("**/*",null,Sr)).length,ut(e,r));let n="small";r>=Cr?n="extreme":r>=ve?n="large":r>=1e3&&(n="medium");let i=!!O.env.remoteName,a=O.env.uiKind===O.UIKind.Web,o=a?"web":i?"remote":"local",s=n==="medium"&&r>=Dr&&r{var vscode=require("vscode"),getFileName,getExtension,normalizePath,getUriPath,ensureDate;try{let e=K();e&&(getFileName=e.getFileName,getExtension=e.getExtension,normalizePath=e.normalizePath,getUriPath=e.getUriPath,ensureDate=e.ensureDate)}catch{}if(!getFileName||!ensureDate){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function")try{let e=dynamicRequire("../utils/pathUtils"),t=dynamicRequire("../utils/dateHelpers");getFileName=getFileName||e.getFileName,getExtension=getExtension||e.getExtension,normalizePath=normalizePath||e.normalizePath,getUriPath=getUriPath||e.getUriPath,ensureDate=ensureDate||t.ensureDate}catch{}}catch{}getFileName||(getFileName=e=>{let t=String(e||""),r=t.replace(/\\/g,"/").lastIndexOf("/");return r===-1?t:t.substring(r+1)}),getExtension||(getExtension=e=>{let t=String(e||""),r=t.lastIndexOf(".");return r<=0?"":t.substring(r).toLowerCase()}),normalizePath||(normalizePath=(e="")=>(e||"").toString().replace(/\\/g,"/")),getUriPath||(getUriPath=(e="")=>e?typeof e=="string"?e:e?.fsPath?e.fsPath:e?.path?e.path:String(e):""),ensureDate||(ensureDate=e=>e instanceof Date?e:typeof e=="number"?new Date(e):typeof e=="string"?isNaN(Date.parse(e))?new Date:new Date(Date.parse(e)):new Date)}var SMART_WATCHER_PRIORITY=new Map([["src",100],["lib",65],["test",30]]);async function performWorkspaceSizeCheck(e){let t=vscode.workspace.getConfiguration("explorerDates"),r=t.get("forceEnableForLargeWorkspaces",!1),n=t.get("performanceMode",!1),i=r||n,a=vscode.workspace.workspaceFolders;if(!a||a.length===0)return;e._logger.info("Checking workspace size for large workspace detection...");let o=await e.an(e._getIndexerMaxFiles()),s=!Array.isArray(o),c=s?e.WORKSPACE_SCAN_TIMEOUT_FALLBACK_COUNT:o.length;if(s){let l=e.WORKSPACE_SCAN_TIMEOUT_MS?`${e.WORKSPACE_SCAN_TIMEOUT_MS}ms`:"the configured timeout";e._logger.warn(`Workspace scan exceeded ${l}; defaulting to extreme scale`)}else{let l=`${e.WORKSPACE_SCALE_LARGE_THRESHOLD}+`;e._logger.info(`Workspace contains ${c>=e.WORKSPACE_SCALE_LARGE_THRESHOLD?l:c} files`)}let u=e.u;e.Ge=c,e.u=c>=e.WORKSPACE_SCALE_EXTREME_THRESHOLD?"extreme":c>=e.WORKSPACE_SCALE_LARGE_THRESHOLD?"large":"normal";try{let l=a[0]?.uri;Fr().setCachedWorkspaceMetrics(l,c)}catch(l){e._logger.debug("Unable to cache workspace file count",l)}u!==e.u&&e.J&&!e._performanceMode&&(e._logger.info(`Workspace scale changed ${u} -> ${e.u}; recalibrating watchers`),e.Q("workspace-scale-update")),e._batchProcessor&&typeof e._batchProcessor.setWorkspaceScale=="function"&&e._batchProcessor.setWorkspaceScale(e.u||"normal"),e.Xe(e.Ye(vscode.workspace.getConfiguration("explorerDates")),"workspace-scale-change"),i&&e._logger.debug("Large workspace prompt suppressed (force/performance mode), but scaling adjustments applied")}async function findWorkspaceFilesWithTimeout(e,t){let r=Number.isFinite(e.WORKSPACE_SCAN_TIMEOUT_MS)?e.WORKSPACE_SCAN_TIMEOUT_MS:0,n=vscode.workspace.findFiles("**/*",null,t);if(!r||r<=0)return n;try{return await new Promise((i,a)=>{let o=null,s=(c,u=!1)=>{o&&(clearTimeout(o),o=null),u?a(c):i(c)};o=setTimeout(()=>s(null),r),n.then(c=>s(c),c=>s(c,!0))})}catch(i){return e._logger.warn("Workspace scan failed, assuming large workspace",{error:i?.message||String(i)}),null}}async function _buildSmartWatcherTargets(e,t,r){let n=[],i=Math.max(1,r.maxPatterns),a=i,o=t.length;for(let s of t){if(a<=0)break;let c=Math.max(1,Math.floor(a/o)),u=new vscode.RelativePattern(s,"*.{md,mdx,json,jsonc,yml,yaml,ts,tsx,js,jsx}");if(n.push({pattern:u,label:`root:${s.name}`}),a-=1,a<=0)break;let l=Math.min(Math.max(c-1,0),a);if(l>0)try{let d=typeof e._fileSystem?.readdir=="function"?await e._fileSystem.readdir(s.uri||s.fsPath||s):[],h=(Array.isArray(d)?d:[]).filter(m=>m&&(typeof m.isDirectory=="function"?m.isDirectory():!0)).map(m=>typeof m=="string"?m:m.name||"").filter(Boolean).filter(m=>!["node_modules",".git","dist","build","out"].includes(m));e._logger?.debug&&e._logger.debug("smart-watcher: top-level dirs",{folder:s.name,dirs:h}),h.sort((m,D)=>(SMART_WATCHER_PRIORITY.get(D)||0)-(SMART_WATCHER_PRIORITY.get(m)||0));let y=h.slice(0,l).map(m=>({pattern:new vscode.RelativePattern(s,`${m}/**/*.{md,mdx,json,jsonc,yml,yaml,ts,tsx,js,jsx}`),label:`sub:${s.name}/${m}`})).slice(0,l);n.push(...y),a-=y.length}catch{}o-=1}return n.slice(0,i)}function _addExclusionValueToSet(e,t,r={}){if(!t)return;let{onlyRootSegment:n=!1}=r,i=typeof t=="string"?t:typeof t?.toString=="function"?t.toString():"";if(!i||typeof i!="string")return;let a=i.trim();if(!a)return;let s=a.replace(/\\/g,"/").replace(/\*\*/g,"").replace(/\*/g,"").split("/").map(c=>c.trim()).filter(Boolean);if(!s.length){if(a.includes("*")||a.includes("?"))return;e.add(a.toLowerCase());return}if(n){e.add(s[0].toLowerCase());return}for(let c of s)e.add(c.toLowerCase())}function registerWatcherHandlers(e,t,r="unknown"){t&&(t.onDidChange(n=>e.W(n,"change",r)),t.onDidCreate(n=>e.W(n,"create",r)),t.onDidDelete(n=>e.W(n,"delete",r)))}function dispatchWatcherEvent(e,t,r,n="unknown"){r==="delete"?e.clearDecoration(t):e.refreshDecoration(t),e._workspaceIntelligence?.incrementalIndexer&&e._workspaceIntelligence.incrementalIndexer.queueDelta(t,r),e.Ze&&e._logger.debug(`Watcher event processed (${r}) for ${e.describeFile(t)} via ${n}`)}module.exports={performWorkspaceSizeCheck,findWorkspaceFilesWithTimeout,K:_buildSmartWatcherTargets,on:_addExclusionValueToSet,registerWatcherHandlers,dispatchWatcherEvent}});var ft=_((exports,module)=>{var vscode=require("vscode"),{DEFAULT_DYNAMIC_WATCHER_LIMIT,DEFAULT_WATCHER_INACTIVITY_MS}=I(),proc=typeof process<"u"?process:null,env=proc?.env||{},normalizePath,getUriPath;try{let e=K();e&&(normalizePath=e.normalizePath,getUriPath=e.getUriPath)}catch{}if(!normalizePath){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function")try{let e=dynamicRequire("../utils/pathUtils");normalizePath=normalizePath||e.normalizePath,getUriPath=getUriPath||e.getUriPath}catch{}}catch(e){}normalizePath||(normalizePath=(e="")=>(e||"").toString().replace(/\\/g,"/")),getUriPath||(getUriPath=(e="")=>e?typeof e=="string"?e:e?.fsPath?e.fsPath:e?.path?e.path:String(e):"")}var{getLogger}=q(),nodePath=null;try{nodePath=require("path")}catch{}var WatcherManager=class{constructor(t){this.t=t,this._logger=t._logger||getLogger(),this.s=new Set,this.h=void 0,this.T=[],this.d=new Map,this.L=null,this.E=t.E||new Map,this._smartWatcherFallbackManager=t._smartWatcherFallbackManager||null,this.ee=null,this.j="none"}setupFileWatcher(t="initial"){if(this.t._performanceMode||this.t.D){let i=this.t.D?"provider disposed":"performance mode enabled";this._logger.debug(`Skipping file watcher setup (${t}) - ${i}`);return}this.h||(this.h={pending:!0});let r=++this.t.Je;(async()=>{if(this.ee)try{await this.ee}catch(a){this._logger.debug("Previous watcher setup promise rejected",a)}let i=this.Fe(r,t);this.ee=i;try{await i}finally{this.ee===i&&(this.ee=null)}})().catch(i=>this._logger.error("Failed to configure file watchers",i))}async Fe(t,r){if(this.Ae(t))return;if(this.disposeFileWatchers({permanent:!1}),this.Ae(t))return this.Qe("post-dispose");this.h={pending:!0};let n=vscode.workspace.workspaceFolders;if(!n||n.length===0){this._logger.debug("No workspace folders detected; skipping watcher setup"),this.j="none";return}if(this.t._isWeb){this._logger.info("File watchers are unavailable in web environments; skipping watcher setup"),this.j="none";return}let i=vscode.workspace.getConfiguration("explorerDates"),a=env.EXPLORER_DATES_DISABLE_SMART_WATCHERS==="1";this.t.J=!a&&i.get("smartFileWatching",!0),this.t._enableWatcherFallbacks=this.t.J&&i.get("enableSmartWatcherFallbacks","auto");let o=i.get("smartWatcherMaxPatterns",20),s=this.t.gr(i.get("smartWatcherExtensions",[])),c=this.t.mr(o);if(this.t.bt={maxPatterns:c,extensions:s},this.Ae(t))return this.Qe("post-config");if(!this.t.J){this._logger.info("Smart file watching disabled; falling back to global watcher"),await this.Pe("disabled");return}let u=[];try{if(typeof this.t.K=="function")u=await this.t.K(n,this.t.bt);else try{let l=dt();if(l&&typeof l.K=="function")u=await l.K(this.t,n,this.t.bt);else throw new Error("_buildSmartWatcherTargets not implemented on provider or helper")}catch(l){throw l}}catch(l){this._logger.error("Smart watcher analysis failed, falling back to global watcher",l),await this.Pe("analysis-failed");return}if(this.Ae(t))return this.Qe("post-analysis");if(!u||u.length===0){this._logger.warn("Smart watcher analysis yielded no targets; falling back to global watcher"),await this.Pe("no-targets");return}for(let l of u)try{let d=await this._t(l.pattern,l.label);d&&(this.he(d,l.label),this.s.add(d))}catch(d){this._logger.debug(`Failed to create watcher for pattern ${l.label}`,d)}if(this.s.size===0){this._logger.warn("Smart watcher setup produced zero watchers; using global fallback"),await this.Pe("no-watchers-created");return}this.h=this.s.values().next().value||void 0,this.j="smart",this._logger.info(`Smart file watching enabled (${this.s.size} base watcher${this.s.size===1?"":"s"})`,{reason:r,patterns:u.map(l=>l.label)}),this.pr()}Ae(t){return!!(this.t.D||this.t._performanceMode||typeof t=="number"&&t!==this.t.Je)}Qe(t="unknown"){let r=this.t._performanceMode||this.t.D;this.disposeFileWatchers({permanent:r}),this._logger.debug(`Watcher setup aborted (${t})`,{permanentAbort:r,disposed:this.t.D,performanceMode:this.t._performanceMode})}async Z(){try{let{getFeatureFlagsGlobal:t}=G(),r=t();return(r?await r.decorationsAdvanced():null)||null}catch(t){return this._logger.debug("Failed to load decorationsAdvanced chunk",t),null}}async _t(t,r="unknown"){try{let i=await this.Z();if(i?.createWatcherWithFallback)return await i.createWatcherWithFallback(this.t,t,r)}catch(i){this._logger.debug(`Advanced watcher chunk failed for ${r}`,i)}let n=()=>{let i=this.t._enableWatcherFallbacks;if(i===!1)return!1;if(i==="auto"||i===!0){let a=proc?.platform,o=env.WSL_DISTRO_NAME||env.WSLENV,s=vscode.env.remoteName,c=env.DOCKER_CONTAINER;return o||s||c||a==="android"}return!1};try{let i=vscode.workspace.createFileSystemWatcher(t);return this._logger.debug(`Native watcher created for ${r}`),i}catch(i){return this._logger.debug(`Native watcher failed for ${r}:`,i),n()?this.yr(t,r):null}}async yr(t,r){try{let n=await this.Z();if(n?.createFallbackWatcher)return await n.createFallbackWatcher(this.t,t,r)}catch(n){this._logger.warn(`Fallback watcher creation failed for ${r}:`,n)}try{if(!this._smartWatcherFallbackManager){let{getFeatureFlagsGlobal:n}=G(),i=n(),a=i?await i.loadFeatureModule("smartWatcherFallback"):null;if(a){let{SmartWatcherFallbackManager:o}=a;this._smartWatcherFallbackManager=new o({logger:this._logger}),await this._smartWatcherFallbackManager.initialize()}}if(this._smartWatcherFallbackManager){let i=await(await this._smartWatcherFallbackManager.getFallback()).createWatcherWithFallback(t);return this._logger.debug(`Fallback watcher created for ${r}`),i}}catch(n){this._logger.warn(`Fallback watcher creation failed for ${r}:`,n)}return null}async Pe(t="global-default"){this.Et();let r=await this._t("**/*",`global:${t}`);r?(this.he(r,`global:${t}`),this.s.add(r),this.h=r,this.j="global",this._logger.info(`Global watcher activated (${t})`)):this._logger.error(`Failed to create global watcher (${t})`)}he(t,r="unknown"){t&&(t.onDidChange(n=>this.W(n,"change",r)),t.onDidCreate(n=>this.W(n,"create",r)),t.onDidDelete(n=>this.W(n,"delete",r)))}W(t,r,n="unknown"){if(!t||t.scheme!=="file"||!this.t.je(t,`watcher:${r}`)?.isValid)return;let a=this.br();if(a<=0){this.xe(t,r,n);return}let o=`${t.toString()}:${r}`,s=this.E.get(o);s&&clearTimeout(s.timer);let c=setTimeout(()=>{this.E.delete(o),this.xe(t,r,n)},a);this.E.set(o,{timer:c,source:n})}xe(t,r,n){try{this.t.Me?.(t)}catch{}r==="delete"?this.t.clearDecoration(t):this.t.refreshDecoration(t),this.t._workspaceIntelligence?.incrementalIndexer&&this.t._workspaceIntelligence.incrementalIndexer.queueDelta(t,r),this.t.Ze&&this._logger.debug(`Watcher event processed (${r}) for ${this.t.Ke(t)} via ${n}`)}br(){if(this.t._performanceMode)return 0;switch(this.t.u){case"extreme":return 600;case"large":return 250;default:return 100}}handleWorkspaceFoldersChanged(t){let r=(t?.added||[]).map(a=>a.uri).filter(Boolean),n=(t?.removed||[]).map(a=>a.uri).filter(Boolean);if(r.length===0&&n.length===0)return;let i=async()=>{this._logger.info("Workspace folders changed",{added:r.length,removed:n.length}),await this.t.checkWorkspaceSize();try{this.t.clearAllCaches()}catch{}try{this.t.refreshAll()}catch{}if(!this.t._performanceMode&&(this.setupFileWatcher("workspace-change"),await this.t.wt().catch(a=>this._logger.debug("Failed to reconfigure progressive loading after workspace change",a)),this.t._workspaceIntelligence)){let a=(vscode.workspace.workspaceFolders||[]).map(o=>({uri:o.uri}));await this.t._workspaceIntelligence.onWorkspaceFoldersChanged({added:a,removed:n.map(o=>({uri:o}))})}};this.t.C&&clearTimeout(this.t.C),this.t.C=setTimeout(()=>{this.t.C=null,i().catch(a=>this._logger.debug("Workspace folder change handling failed",a))},250)}disposeFileWatchers(t={}){let r=t.permanent===!0;if(this.s?.size){for(let n of this.s)try{n.dispose()}catch(i){this._logger.debug("Failed to dispose file watcher",i)}this.s.clear()}this.h=r?null:void 0,this.Et(),this.kt(!0),this._r(),this.j="none"}_r(){if(this.E?.size){for(let t of this.E.values())clearTimeout(t.timer);this.E.clear()}}pr(){if(!this.t.J||this.T.length>0)return;let t=(n,i)=>{let a=this.t.fe(vscode.window,n,i);a&&this.T.push(a)},r=(n,i)=>{let a=this.t.fe(vscode.workspace,n,i);a&&this.T.push(a)};t("onDidChangeVisibleTextEditors",n=>{(n||[]).forEach(i=>this.ge(i?.document?.uri,"visible-editor"))}),t("onDidChangeActiveTextEditor",n=>{this.ge(n?.document?.uri,"active-editor")}),r("onDidOpenTextDocument",n=>{this.ge(n?.uri,"open-document")}),r("onDidSaveTextDocument",n=>{this.ge(n?.uri,"save-document")}),this.Er(),this.wr()}Et(){if(this.T?.length){for(let t of this.T)try{t.dispose()}catch(r){this._logger.debug("Failed to dispose watcher listener",r)}this.T=[]}this.Dt()}sn(){if(this._smartWatcherFallbackManager){try{this._smartWatcherFallbackManager.dispose()}catch(t){this._logger.debug("Error disposing smart watcher fallback manager:",t)}this._smartWatcherFallbackManager=null}}Er(){(Array.isArray(vscode.window?.visibleTextEditors)?vscode.window.visibleTextEditors:[]).forEach(r=>this.ge(r?.document?.uri,"visible-seed"))}wr(){this.L||(this.L=setInterval(()=>this.kt(),DEFAULT_WATCHER_INACTIVITY_MS))}Dt(){this.L&&(clearInterval(this.L),this.L=null)}kt(t=!1){if(!this.d?.size)return;let r=Date.now()-DEFAULT_WATCHER_INACTIVITY_MS;for(let[n,i]of this.d.entries())if(t||i.lastUsed=DEFAULT_DYNAMIC_WATCHER_LIMIT&&this.kr();try{let o=new vscode.RelativePattern(i,"**/*"),s=vscode.workspace.createFileSystemWatcher(o),c=nodePath.basename(i)||"root";this.he(s,`dynamic:${r}:${c}`),this.d.set(i,{watcher:s,lastUsed:Date.now(),source:r})}catch(o){this._logger.debug(`Failed to create dynamic watcher for ${i}`,o)}}kr(){let t=null,r=Number.POSITIVE_INFINITY;for(let[n,i]of this.d.entries())i.lastUsed{function createViewportManager(provider){let vscode=require("vscode"),normalizePath,getUriPath;try{let e=K();e&&(normalizePath=e.normalizePath,getUriPath=e.getUriPath)}catch{}if(!normalizePath){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function")try{let e=dynamicRequire("../utils/pathUtils");normalizePath=normalizePath||e.normalizePath,getUriPath=getUriPath||e.getUriPath}catch{}}catch{}normalizePath||(normalizePath=(e="")=>(e||"").toString().replace(/\\/g,"/")),getUriPath||(getUriPath=(e="")=>e?typeof e=="string"?e:e?.fsPath?e.fsPath:e?.path?e.path:String(e):"")}class ViewportManager{constructor(){this.t=provider,this.k=new Set,this.y=new Map,this.v=[],this.me=provider.me||400,this.O=provider.O||300*1e3,this.et=Date.now()}cn(){if(this.v.length>0)return;let t=(n,i)=>{let a=this.fe(vscode.window,n,i);a&&this.v.push(a)},r=(n,i)=>{let a=this.fe(vscode.workspace,n,i);a&&this.v.push(a)};t("onDidChangeVisibleTextEditors",n=>this.Ct(n)),t("onDidChangeActiveTextEditor",n=>this.Y(n?.document?.uri,{reason:"active-editor"})),r("onDidOpenTextDocument",n=>this.Y(n?.uri,{reason:"open-document"})),r("onDidSaveTextDocument",n=>this.Y(n?.uri,{reason:"save-document"})),this.Ct(Array.isArray(vscode.window?.visibleTextEditors)?vscode.window.visibleTextEditors:[]),vscode.window?.activeTextEditor?.document?.uri&&this.Y(vscode.window.activeTextEditor.document.uri,{reason:"initial-active"})}Dr(){if(this.v?.length){for(let t of this.v)try{t.dispose()}catch(r){this.t._logger.debug("Failed to dispose viewport listener",r)}this.v=[],this.k.clear(),this.y.clear()}}Ct(t){if(this.k.clear(),!Array.isArray(t))return;let r=Date.now();for(let n of t){let i=n?.document?.uri;if(!i||i.scheme!=="file")continue;let a=normalizePath(getUriPath(i));a&&(this.k.add(a),this.y.set(a,r))}this.tt()}Y(t,r={}){if(!t||t.scheme!=="file")return;let n=normalizePath(getUriPath(t));if(!n)return;let i=Date.now();this.y.set(n,i),r.visible&&this.k.add(n),this.y.size>this.me?this.tt(!0):i-this.et>this.O&&this.tt()}tt(t=!1){let r=Date.now(),n=r-this.O*2;for(let[i,a]of this.y.entries())(t||athis.me&&a{var getFileName,normalizePath,getUriPath;try{let e=K();e&&(getFileName=e.getFileName,normalizePath=e.normalizePath,getUriPath=e.getUriPath)}catch{}if(!getFileName){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function")try{let e=dynamicRequire("../utils/pathUtils");getFileName=getFileName||e.getFileName,normalizePath=normalizePath||e.normalizePath,getUriPath=getUriPath||e.getUriPath}catch{}}catch{}getFileName||(getFileName=e=>{let t=String(e||""),r=t.replace(/\\/g,"/").lastIndexOf("/");return r===-1?t:t.substring(r+1)}),normalizePath||(normalizePath=(e="")=>(e||"").toString().replace(/\\/g,"/")),getUriPath||(getUriPath=(e="")=>e?typeof e=="string"?e:e?.fsPath?e.fsPath:e?.path?e.path:String(e):"")}var VIEWPORT_DEFAULT_WINDOW_MS=300*1e3,VIEWPORT_STANDARD_WINDOW_MS=600*1e3,VIEWPORT_MINIMAL_WINDOW_MS=900*1e3,DEFAULT_SMART_WATCHER_EXTENSIONS=["ts","tsx","js","jsx","mjs","cjs","mts","cts","vue","py","go","rb","rs","java","kt","swift","cs","cpp","c","php","scala","sql","md","mdx","json","jsonc","yml","yaml","toml","ini","txt","html","css","scss"],SMART_WATCHER_PRIORITY=new Map([["src",100],["app",95],["apps",95],["packages",90],["services",85],["service",80],["client",75],["clients",70],["server",70],["servers",65],["lib",65],["libs",60],["api",60],["apis",60],["components",55],["modules",55],["feature",50],["features",50],["extensions",45],["scripts",45],["tools",45],["examples",40],["docs",35],["config",35],["test",30],["tests",30],["spec",30],["specs",30],["demo",25],["demos",25]]);function basename(e){if(!e)return"";try{return require("path").basename(e)}catch{let t=e.replace(/\\/g,"/"),r=t.lastIndexOf("/");return r===-1?t:t.substring(r+1)}}function dirname(e){if(!e)return".";try{return require("path").dirname(e)}catch{let t=e.replace(/\\/g,"/"),r=t.lastIndexOf("/");return r===-1?".":t.substring(0,r)}}function describeFile(e=""){try{let t=typeof e=="string"?e:getUriPath(e),r=normalizePath(t);return getFileName(r)||r||"unknown"}catch{return"unknown"}}function getNormalizedPathsFromEditors(e){let t=Date.now();if(!Array.isArray(e))return[];let r=[];for(let n of e){let i=n?.document?.uri;if(!i||i.scheme!=="file")continue;let a=normalizePath(getUriPath(i));a&&r.push({path:a,ts:t})}return r}function keysToTrimViewportHistory(e,t,r,n=!1,i=Date.now()){let a=i-t*2,o=[];for(let[s,c]of e)(n||cr&&c({value:d,key:h?`badge:${t||"default"}:${h}`:null});switch(t){case"relative-short":case"relative-long":return a<1?l("\u25CF\u25CF","just"):a<60?l(`${Math.min(a,99)}m`,`m:${Math.min(a,99)}`):o<24?l(`${Math.min(o,23)}h`,`h:${Math.min(o,23)}`):s<7?l(`${s}d`,`d:${s}`):c<4?l(`${c}w`,`w:${c}`):u<12?l(`${u}M`,`M:${u}`):l("1y","y:1");case"absolute-short":case"absolute-long":{let d=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],h=e instanceof Date?e.getDate():new Date(e).getDate(),g=`${d[e instanceof Date?e.getMonth():new Date(e).getMonth()]}${h<10?"0"+h:h}`,y=`abs:${e instanceof Date?e.getMonth():new Date(e).getMonth()}-${h}`;return l(g,y)}case"technical":return a<60?l(`${a}m`,`tech:m:${a}`):o<24?l(`${o}h`,`tech:h:${o}`):l(`${s}d`,`tech:d:${s}`);case"minimal":return o<1?l("\u2022\u2022","min:now"):o<24?l("\u25CB\u25CB","min:hours"):l("\u2500\u2500","min:days");default:return a<60?l(`${a}m`,`smart:m:${a}`):o<24?l(`${o}h`,`smart:h:${o}`):l(`${s}d`,`smart:d:${s}`)}}module.exports={VIEWPORT_DEFAULT_WINDOW_MS,VIEWPORT_STANDARD_WINDOW_MS,VIEWPORT_MINIMAL_WINDOW_MS,DEFAULT_SMART_WATCHER_EXTENSIONS,SMART_WATCHER_PRIORITY,FILE_TYPE_COLOR_MAP,COLOR_ENHANCEMENT_MAP,getFileTypeColorMap,getColorEnhancementMap,getNormalizedPathsFromEditors,keysToTrimViewportHistory,computeReadableDescriptor,formatDateBadge,basename,dirname,describeFile}});var Pr=_((exports,module)=>{var vscode=null;try{vscode=require("vscode")}catch{}var proc=typeof process<"u"?process:null,env=proc?.env||{},{getFeatureFlagsGlobal}=G(),featureFlags=getFeatureFlagsGlobal(),FEATURE_LEVELS=["full","enhanced","standard","minimal"];if(!featureFlags)throw new Error("Explorer Dates: feature flags bridge unavailable for decorationsAdvanced chunk");function tryLoadChunk(...names){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function")for(let e of names)try{let t=dynamicRequire(e);if(t)return t}catch{}}catch{}return null}async function loadBatchProcessorIfNeeded(provider){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=dynamicRequire("./decoration-batch-chunk");if(e&&typeof e.loadBatchProcessorIfNeeded=="function")return await e.loadBatchProcessorIfNeeded(provider)}}catch(e){provider._logger?.debug?.("Delegated loadBatchProcessorIfNeeded failed",e)}return provider._logger?.debug?.("BatchProcessor not available (fallback)"),null}async function deferPreloads(e){try{Promise.resolve().then(()=>R(Ar())).then(t=>{try{e.rt=t.createViewportManager?.(e)||null}catch(r){e._logger?.debug?.("Failed to init viewport manager",r)}}).catch(t=>e._logger?.debug?.("Failed to load viewport manager chunk",t)),Promise.resolve().then(()=>R(ot())).then(t=>{try{let r=t.getLocalization();e.p.getString=(...i)=>r.getString(...i),e.p.formatDate=(...i)=>r.formatDate(...i),e.p.getCurrentLocale=()=>r.getCurrentLocale();let n=e.p.dispose;e.p.dispose=()=>{try{r.dispose()}catch{}n()}}catch{}}).catch(()=>{}),Promise.resolve().then(()=>R(st())).then(t=>{try{e.yt=t.createDecorationLogic?.(e)||null}catch(r){e._logger?.debug?.("Failed to initialize decoration logic chunk",r)}}).catch(t=>e._logger?.debug?.("Failed to load decoration logic chunk",t)),Promise.resolve().then(()=>R(Ce())).then(t=>{try{e.dr=t.createDecorationProviderHelpers?.(e)||null}catch(r){e._logger?.debug?.("Failed to initialize decoration provide chunk",r)}}).catch(t=>e._logger?.debug?.("Failed to load decoration provide chunk",t)),e._logger?.debug?.("Deferred preloads scheduled")}catch(t){e._logger?.debug?.("deferPreloads failed",t)}}async function getCachedDecoration(provider,cacheKey,fileLabel){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function")try{let e=dynamicRequire("./decoration-cache-chunk");if(e&&typeof e.getCachedDecoration=="function")return await e.getCachedDecoration(provider,cacheKey,fileLabel)}catch{}if(provider.G)return provider._logger?.debug?.(`\u26A0\uFE0F Cache bypass enabled - recalculating decoration for: ${fileLabel}`),null;if(provider._advancedCache)try{let e=await provider._advancedCache.get(cacheKey);if(e)return provider._metrics.cacheHits++,provider._logger?.debug?.(`\u{1F9E0} Advanced cache hit for: ${fileLabel}`),e}catch(e){provider._logger?.debug?.(`Advanced cache error: ${e.message}`)}if(!provider.e||typeof provider.e.get!="function")return provider._logger?.debug?.("getCachedDecoration: no memory cache available, falling back"),null;let memoryEntry=provider.e.get(cacheKey);if(memoryEntry){if(memoryEntry.forceRefresh){try{provider.e.delete(cacheKey)}catch{}provider._logger?.debug?.(`\u{1F6AB} Memory cache bypassed (forced refresh) for: ${fileLabel}`)}else if(Date.now()-memoryEntry.timestampprovider.l&&typeof provider.e.enforceLimit=="function"&&provider.e.enforceLimit(provider.l,provider._logger)}catch{}let cacheEntry={decoration,timestamp:Date.now()};resourceUri&&(cacheEntry.uri=resourceUri);try{provider.e.set(cacheKey,cacheEntry)}catch{}try{typeof provider.ce=="function"&&provider.ce()}catch(e){provider._logger?.debug?.("monitorCachePressure from store failed",e)}if(provider._advancedCache)try{await provider._advancedCache.set(cacheKey,decoration,{ttl:provider.S}),provider._logger?.debug?.(`\u{1F9E0} Stored in advanced cache: ${fileLabel}`)}catch(e){provider._logger?.debug?.(`Failed to store in advanced cache: ${e.message}`)}try{typeof provider.le=="function"&&provider.le()}catch(e){provider._logger?.debug?.("maybeExtendCacheTimeout from store failed",e)}}catch(e){provider._logger?.debug?.("storeDecorationInCache failed",e)}}function cancelProgressiveWarmupJobs(provider){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=dynamicRequire("./decoration-batch-chunk");if(e&&typeof e.cancelProgressiveWarmupJobs=="function")return e.cancelProgressiveWarmupJobs(provider)}}catch(e){provider._logger?.debug?.("Delegated cancelProgressiveWarmupJobs failed",e)}try{let e=provider._progressiveLoadingJobs;e&&typeof e.clear=="function"&&e.clear()}catch(e){provider._logger?.debug?.("Fallback cancel failed",e)}}async function applyProgressiveLoadingSetting(provider){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=dynamicRequire("./decoration-batch-chunk");if(e&&typeof e.applyProgressiveLoadingSetting=="function")return e.applyProgressiveLoadingSetting(provider)}}catch(e){provider._logger?.debug?.("Delegated applyProgressiveLoadingSetting failed",e)}provider._logger?.debug?.("applyProgressiveLoadingSetting fallback invoked (no batch chunk)")}async function initializeAdvancedSystems(e,t){try{if(e._extensionContext=t,e._isWeb&&await e._maybeWarnAboutGitLimitations?.(),e._performanceMode){e._logger?.info?.("Performance mode enabled - skipping advanced cache, batch processor, and progressive loading");return}let r=await featureFlags.advancedCache();if(r){let i=null;if(typeof r=="function")if(r.name==="createAdvancedCache")e._advancedCache=r(t),await e._advancedCache.initialize(),e._logger?.info?.("Advanced cache initialized via factory function");else try{e._advancedCache=new r(t),await e._advancedCache.initialize(),e._logger?.info?.("Advanced cache initialized via direct constructor")}catch(a){e._logger?.warn?.("Failed to instantiate AdvancedCache via direct constructor, disabling advanced cache:",a.message),e._advancedCache=null}else r.AdvancedCache?(i=r.AdvancedCache,e._advancedCache=new i(t),await e._advancedCache.initialize(),e._logger?.info?.("Advanced cache initialized via module property")):r.createAdvancedCache?(e._advancedCache=r.createAdvancedCache(t),await e._advancedCache.initialize(),e._logger?.info?.("Advanced cache initialized via module factory")):(e._logger?.warn?.("AdvancedCache module format not recognized, disabling advanced cache"),e._advancedCache=null)}else e._logger?.info?.("Advanced cache disabled by feature flag"),e._advancedCache=null;await applyProgressiveLoadingSetting(e),e._batchProcessor&&(e._batchProcessor.initialize(),e._logger?.info?.("Batch processor initialized"));try{let i=tryLoadChunk("./decoration-workspace-intel-chunk","./decorationWorkspaceIntel","./decorationWorkspaceIntel.js","./decoration-workspace-intel-chunk.js");i&&typeof i.initializeWorkspaceIntelligence=="function"?await i.initializeWorkspaceIntelligence(e,t):e._logger?.info?.("Workspace intelligence not initialized (no chunk)")}catch(i){e._logger?.warn?.("Delegated workspace intelligence initialization failed",i?.message||String(i)),e._workspaceIntelligence=null}vscode.workspace.getConfiguration("explorerDates").get("autoThemeAdaptation",!0)&&e._themeIntegration?.autoConfigureForTheme&&(await e._themeIntegration.autoConfigureForTheme(),e._logger?.info?.("Theme integration configured")),e._accessibility?.shouldEnhanceAccessibility?.()&&(await e._accessibility.applyAccessibilityRecommendations?.(),e._logger?.info?.("Accessibility recommendations applied")),e._allocationTelemetryEnabled&&(scheduleTelemetryReport(e),e._logger?.info?.("Allocation telemetry enabled - reports every",e._telemetryReportInterval,"ms")),e._logger?.info?.("Advanced systems initialized successfully")}catch(r){e._logger?.error?.("Failed to initialize advanced systems",r)}}function shouldUseFallbackWatcher(e){return e._enableWatcherFallbacks===!1?!1:e._enableWatcherFallbacks==="auto"||e._enableWatcherFallbacks===!0?isPlatformFallbackRequired():!1}function isPlatformFallbackRequired(){let e=proc?.platform,t=env.WSL_DISTRO_NAME||env.WSLENV,r=vscode.env.remoteName,n=env.DOCKER_CONTAINER;return t||r||n||e==="android"}async function createFallbackWatcher(e,t,r){try{if(!e._smartWatcherFallbackManager){let n=await featureFlags.loadFeatureModule("smartWatcherFallback");if(n){let{SmartWatcherFallbackManager:i}=n;e._smartWatcherFallbackManager=new i({logger:e._logger}),await e._smartWatcherFallbackManager.initialize()}}if(e._smartWatcherFallbackManager){let i=await(await e._smartWatcherFallbackManager.getFallback()).createWatcherWithFallback(t);return e._logger?.debug?.(`Fallback watcher created for ${r}`),i}}catch(n){e._logger?.warn?.(`Fallback watcher creation failed for ${r}:`,n)}return null}async function createWatcherWithFallback(e,t,r="unknown"){try{let n=vscode.workspace.createFileSystemWatcher(t);return e._logger?.debug?.(`Native watcher created for ${r}`),n}catch(n){if(e._logger?.debug?.(`Native watcher failed for ${r}:`,n),!shouldUseFallbackWatcher(e))throw n;return createFallbackWatcher(e,t,r)}}async function ensureWatcherManager(e){try{if(e.f)return e.f;try{let t=await Promise.resolve().then(()=>R(ft()));return e.f=t.createWatcherManager(e),e.f}catch(t){e._logger?.debug?.("Failed to load watcher manager chunk from advanced chunk",t)}}catch(t){e._logger?.debug?.("ensureWatcherManager failed",t)}return null}async function setupFileWatcher(e,t="initial"){try{let r=await ensureWatcherManager(e);if(r&&typeof r.setupFileWatcher=="function")return r.setupFileWatcher(t)}catch(r){e._logger?.debug?.("setupFileWatcher failed in advanced chunk",r)}try{let r=createWatcherWithFallback(e,"**/*",`global:${t}`);if(r)return e.s||(e.s=new Set),e.s.add(r),e._logger?.info?.("Global watcher activated (fallback)",{reason:t}),r}catch(r){e._logger?.debug?.("setupFileWatcher fallback failed",r)}return null}function registerWatcherHandlers(e,t,r="unknown"){try{let n=e.f||null;if(n&&typeof n.he=="function")return n.he(t,r)}catch(n){e._logger?.debug?.("Watcher manager register watcher handlers failed (advanced)",n)}try{if(!t)return;t.onDidChange(n=>e.W(n,"change",r)),t.onDidCreate(n=>e.W(n,"create",r)),t.onDidDelete(n=>e.W(n,"delete",r))}catch(n){e._logger?.debug?.("registerWatcherHandlers fallback failed",n)}}function dispatchWatcherEvent(e,t,r,n){try{let i=e.f||null;if(i&&typeof i.xe=="function")return i.xe(t,r,n)}catch(i){e._logger?.debug?.("Watcher manager dispatch watcher event failed (advanced)",i)}try{try{e.Me?.(t)}catch{}r==="delete"?e.clearDecoration(t):e.refreshDecoration(t),e._workspaceIntelligence?.incrementalIndexer&&e._workspaceIntelligence.incrementalIndexer.queueDelta(t,r),e.Ze&&e._logger?.debug?.(`Watcher event processed (${r}) for ${e.describeFile(t)} via ${n}`)}catch(i){e._logger?.debug?.("dispatchWatcherEvent fallback failed",i)}}function buildSummaryTooltip(e,{filePath:t,stat:r,badgeDetails:n}){try{let i=tryLoadChunk("./decoration-formatters-chunk","./decorationFormatters","./decoration-formatters-chunk.js","./decorationFormatters.js","./decoration-helpers-chunk","./decorationHelpers","./decoration-helpers","./decoration-helpers-chunk.js","./decorationHelpers.js");if(i&&typeof i.buildSummaryTooltip=="function")return i.buildSummaryTooltip(e,{filePath:t,stat:r,badgeDetails:n})}catch(i){e._logger?.debug?.("Delegated buildSummaryTooltip failed",i)}try{let i=[];n?.readableModified&&i.push(`Modified ${n.readableModified}`);let a=n?.fileSizeLabel||(r?.size?e.gt(r.size,"auto"):null);return a&&i.push(a),`${typeof e.describeFile=="function"?e.describeFile(t):t} \u2014 ${i.filter(Boolean).join(" \u2022 ")||e.Cr(r?.mtime||new Date)}`}catch(i){return e._logger?.debug?.("buildSummaryTooltip failed",i),`${typeof e.describeFile=="function"?e.describeFile(t):t} \u2014 ${e.Cr(r?.mtime||new Date)}`}}function formatDateReadable(e,t){try{let r=tryLoadChunk("./decoration-formatters-chunk","./decorationFormatters","./decoration-formatters-chunk.js","./decorationFormatters.js","./decoration-helpers-chunk","./decorationHelpers","./decoration-helpers","./decoration-helpers-chunk.js","./decorationHelpers.js");if(r&&typeof r.formatDateReadable=="function")return r.formatDateReadable(e,t)}catch(r){e._logger?.debug?.("Delegated formatDateReadable failed",r)}try{let r=new Date,n=r.getTime()-t.getTime(),i=Math.floor(n/(1e3*60)),a=Math.floor(n/(1e3*60*60)),o=Math.floor(n/(1e3*60*60*24)),s=e.ln(t,r,i,a,o);return s?e.er(e.N,e.Ie,e.Sr,s.key,s.factory,e.Tr):t.getFullYear()===r.getFullYear()?e.p.formatDate(t,{month:"short",day:"numeric"}):e.p.formatDate(t,{month:"short",day:"numeric",year:"numeric"})}catch(r){return e._logger?.debug?.("formatDateReadable failed",r),e.p.formatDate(t)}}async function getGitBlameInfo(e,t,r=null){if(env.DISABLE_GIT_FEATURES==="1"||e.un)return null;try{let n=await featureFlags.gitInsights();return!n||typeof n.getGitBlameInfo!="function"?null:await n.getGitBlameInfo(t,r)}catch(n){return e._logger?.warn?.("Git blame lookup failed",{filePath:t,message:n?.message||String(n)}),null}}async function findWorkspaceFilesWithTimeout(provider,maxResults){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=dynamicRequire("./workspace-scan-chunk");if(e&&typeof e.findWorkspaceFilesWithTimeout=="function")return e.findWorkspaceFilesWithTimeout(provider,maxResults)}}catch(e){provider._logger?.debug?.("Delegated findWorkspaceFilesWithTimeout failed",e)}try{return require("vscode").workspace.findFiles("**/*",null,maxResults)}catch(e){return provider._logger?.warn?.("Workspace scan fallback failed",e),null}}function startWorkspaceScanWatchdog(provider){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=dynamicRequire("./workspace-scan-chunk");if(e&&typeof e.startWorkspaceScanWatchdog=="function")return e.startWorkspaceScanWatchdog(provider)}}catch(e){provider._logger?.debug?.("Delegated startWorkspaceScanWatchdog failed",e)}return Promise.resolve()}function clearWorkspaceScanWatchdog(provider){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=dynamicRequire("./workspace-scan-chunk");if(e&&typeof e.clearWorkspaceScanWatchdog=="function")return e.clearWorkspaceScanWatchdog(provider)}}catch(e){provider._logger?.debug?.("Delegated clearWorkspaceScanWatchdog failed",e)}provider.te&&(clearTimeout(provider.te),provider.te=null)}async function performWorkspaceSizeCheck(provider){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=dynamicRequire("./workspace-scan-chunk");if(e&&typeof e.performWorkspaceSizeCheck=="function")return e.performWorkspaceSizeCheck(provider)}}catch(e){provider._logger?.debug?.("Delegated performWorkspaceSizeCheck failed",e)}try{let e=require("vscode"),t=e.workspace.workspaceFolders;if(!t||t.length===0)return;provider._logger?.info?.("Checking workspace size (fallback, fast)");let r=await(e.workspace.findFiles?e.workspace.findFiles("**/*",null,1e3):[]),n=Array.isArray(r)?r.length:0;provider.Ge=n,provider.u=n>1e5?"extreme":n>1e4?"large":"normal",provider.Xe(provider.Ye(),"workspace-scale-change-fallback")}catch(e){provider._logger?.debug?.("performWorkspaceSizeCheck fallback failed",e)}}function getInitials(e,t){try{let n=tryLoadChunk("./decoration-formatters-chunk","./decorationFormatters","./decoration-formatters-chunk.js","./decorationFormatters.js","./decoration-helpers-chunk","./decorationHelpers","./decoration-helpers","./decoration-helpers-chunk.js","./decorationHelpers.js");if(n&&typeof n.getInitials=="function")return n.getInitials(e,t)}catch(n){e._logger?.debug?.("Delegated getInitials failed",n)}if(e.pe&&typeof e.pe.getInitials=="function")return e.pe.getInitials(t);if(!t||typeof t!="string")return null;let r=t.trim().split(/\s+/).filter(Boolean);return r.length===0?null:r.length===1?r[0].substring(0,2).toUpperCase():(r[0][0]+(r[1][0]||"")).substring(0,2).toUpperCase()}function formatCompactSize(e,t){try{let r=tryLoadChunk("./decoration-formatters-chunk","./decorationFormatters","./decoration-formatters-chunk.js","./decorationFormatters.js","./decoration-helpers-chunk","./decorationHelpers","./decoration-helpers","./decoration-helpers-chunk.js","./decorationHelpers.js");if(r&&typeof r.formatCompactSize=="function")return r.formatCompactSize(e,t)}catch(r){e._logger?.debug?.("Delegated formatCompactSize failed",r)}try{if(typeof t!="number"||isNaN(t))return null;let r=["B","K","M","G","T"],n=0,i=t;for(;i>=1024&&n=2?s.slice(0,2):s}catch(r){return e._logger?.debug?.("formatCompactSize failed",r),null}}function formatFullDate(e,t){try{let r=tryLoadChunk("./decoration-formatters-chunk","./decorationFormatters","./decoration-formatters-chunk.js","./decorationFormatters.js","./decoration-helpers-chunk","./decorationHelpers","./decoration-helpers","./decoration-helpers-chunk.js","./decorationHelpers.js");if(r&&typeof r.formatFullDate=="function")return r.formatFullDate(e,t)}catch(r){e._logger?.debug?.("Delegated formatFullDate failed",r)}try{let r={year:"numeric",month:"long",day:"numeric",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:"short"};return t.toLocaleString("en-US",r)}catch(r){return e._logger?.debug?.("formatFullDate failed",r),t.toString()}}function scheduleTelemetryReport(e){try{let t=tryLoadChunk("./decoration-telemetry-chunk","./decorationTelemetry","./decorationTelemetry.js","./decoration-telemetry-chunk.js");if(t&&typeof t.scheduleTelemetryReport=="function")return t.scheduleTelemetryReport(e)}catch(t){e._logger?.debug?.("Delegated scheduleTelemetryReport failed",t)}!e._allocationTelemetryEnabled||e._telemetryReportTimer||(e._telemetryReportTimer=setTimeout(()=>{e._telemetryReportTimer=null,reportAllocationTelemetry(e),scheduleTelemetryReport(e)},e._telemetryReportInterval))}function reportAllocationTelemetry(e){try{let i=ct();if(i&&typeof i.reportAllocationTelemetry=="function")return i.reportAllocationTelemetry(e)}catch(i){e._logger?.debug?.("Delegated reportAllocationTelemetry failed",i)}let t=e.getMetrics().allocationTelemetry,r=t.decorationPool.allocations+t.badgeFlyweight.allocations+t.readableFlyweight.allocations,n=t.decorationPool.reuses+t.badgeFlyweight.reuses+t.readableFlyweight.reuses;(r>0||n>0)&&e._logger?.info?.("\u{1F9EE} Allocation telemetry report",{timestamp:new Date().toISOString(),pool:{allocations:t.decorationPool.allocations,reuses:t.decorationPool.reuses,reuseRate:t.decorationPool.reusePercent+"%"},badgeFlyweight:{allocations:t.badgeFlyweight.allocations,reuses:t.badgeFlyweight.reuses,reuseRate:t.badgeFlyweight.reusePercent+"%"},readableFlyweight:{allocations:t.readableFlyweight.allocations,reuses:t.readableFlyweight.reuses,reuseRate:t.readableFlyweight.reusePercent+"%"},summary:{totalAllocations:r,totalReuses:n,overallReuseRate:r+n>0?(n/(r+n)*100).toFixed(1)+"%":"0%"},decorationsProcessed:e._metrics.totalDecorations,cacheHitRate:e.getMetrics().cacheHitRate})}function setupPeriodicRefresh(e){try{let t=vscode.workspace.getConfiguration("explorerDates"),r=t.get("badgeRefreshInterval",6e4),n=e.F||r;if(e.A=n,e._logger?.info?.(`Setting up periodic refresh with interval: ${e.A}ms`),e.a&&(clearInterval(e.a),e.a=null),e.i&&e.i.size){for(let i of e.i)clearTimeout(i);e.i.clear()}if(!t.get("showDateDecorations",!0)){e._logger?.info?.("Decorations disabled, skipping periodic refresh setup");return}e.a=setInterval(()=>{if(e.R){e._logger?.debug?.("Periodic refresh skipped - incremental refresh already running");return}e._logger?.debug?.("Periodic refresh triggered - scheduling incremental refresh"),scheduleIncrementalRefresh(e,"periodic")},e.A),e._logger?.info?.("Periodic refresh timer started")}catch(t){e._logger?.debug?.("Failed to setup periodic refresh",t)}}function cancelIncrementalRefreshTimers(provider){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=dynamicRequire("./decoration-refresh-chunk");if(e&&typeof e.cancelIncrementalRefreshTimers=="function")return e.cancelIncrementalRefreshTimers(provider)}}catch(e){provider._logger?.debug?.("Delegated cancelIncrementalRefreshTimers failed",e)}if(!(!provider.i||provider.i.size===0)){for(let e of provider.i)clearTimeout(e);provider.i.clear(),provider.R=!1}}function scheduleIncrementalRefresh(provider,reason="manual"){try{if(!provider.e||typeof provider.e.entries!="function"){provider._logger?.debug?.("scheduleIncrementalRefresh: missing or invalid memory cache, firing global refresh");try{provider.m.fire(void 0)}catch{}return}let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=dynamicRequire("./decoration-refresh-chunk");if(e&&typeof e.scheduleIncrementalRefresh=="function")return e.scheduleIncrementalRefresh(provider,reason)}}catch(e){provider._logger?.debug?.("Delegated scheduleIncrementalRefresh failed",e)}provider._logger?.debug?.("scheduleIncrementalRefresh fallback invoked");try{provider.m.fire(void 0)}catch{}}function markCacheEntryForRefresh(provider,cacheKey){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=dynamicRequire("./decoration-refresh-chunk");if(e&&typeof e.markCacheEntryForRefresh=="function")return e.markCacheEntryForRefresh(provider,cacheKey)}}catch(e){provider._logger?.debug?.("Delegated markCacheEntryForRefresh failed",e)}if(!cacheKey)return;if(!provider.e||typeof provider.e.get!="function")provider._logger?.debug?.("markCacheEntryForRefresh: no memory cache available, skipping");else{let e=provider.e.get(cacheKey);e&&Date.now()-e.timestamp>provider.S*.75&&(e.forceRefresh=!0)}if(provider._advancedCache)try{provider._advancedCache.invalidateByPattern(cacheKey.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"))}catch(e){provider._logger?.debug?.(`Could not invalidate advanced cache for ${cacheKey}: ${e.message}`)}function maybeShedWorkload(provider){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=dynamicRequire("./decoration-memory-chunk");if(e&&typeof e.maybeShedWorkload=="function")return e.maybeShedWorkload(provider)}}catch(e){provider._logger?.debug?.("Delegated maybeShedWorkload failed",e)}try{if(!provider.St||provider.Tt)return;let e=(()=>{try{return proc?.memoryUsage?proc.memoryUsage().heapUsed/1024/1024:0}catch{return 0}})();if(!e)return;if(!provider.ye){provider.ye=e,provider.re=0,provider.be=!1;return}let t=e-provider.ye;if(t>=provider.vt?(provider.re++,provider.re>=2&&!provider.be&&(provider.be=!0,provider._logger?.warn?.("Memory pressure warning (soft threshold exceeded twice)",{deltaMB:Number(t.toFixed(2)),baselineMB:provider.ye,heapMB:e,rssMB:(()=>{try{return proc?.memoryUsage?proc.memoryUsage().rss/1024/1024:0}catch{return 0}})(),cacheSize:provider.e.size,cacheLimit:provider.l}))):provider.re>0&&(provider.re=0,t=provider.Ft){provider.Tt=!0,provider.l=Math.min(provider.l,provider.vr),provider.F=Math.max(provider.F||provider.A||provider.At,provider.At);let r=(()=>{try{return proc?.memoryUsage?proc.memoryUsage().rss/1024/1024:0}catch{return 0}})(),n={timestamp:new Date().toISOString(),deltaMB:Number(t.toFixed(2)),baselineMB:provider.ye,heapMB:e,rssMB:r,cacheSize:provider.e.size,maxCacheSize:provider.l,watcherStrategy:provider.j,staticWatchers:provider.s.size,dynamicWatchers:provider.d.size};provider.nt.push(n),provider.nt.length>10&&provider.nt.shift(),provider._logger?.warn?.(`Memory shedding activated (delta ${t.toFixed(2)} MB >= ${provider.Ft} MB); cache size capped at ${provider.l} and refresh interval stretched to ${provider.F}ms`,n),setupPeriodicRefresh(provider),provider.be=!1,provider.re=0}}catch(e){provider._logger?.debug?.("maybeShedWorkload failed",e)}}function monitorCachePressure(e){try{if(!e.l||e.l<=0)return;let t=e.e.size/e.l;t>=e.Rt?e.it||(e.it=!0,e._logger?.infoWithOptions?.({throttleKey:"cache-pressure",intervalMs:6e4},`Decoration cache usage is at ${(t*100).toFixed(1)}% of capacity`,{cacheSize:e.e.size,maxCacheSize:e.l})):t0&&e.e.clear();try{typeof e.Fr=="function"&&e.Fr(t)}catch{}e.I.size>0&&(e.I.clear(),e.Se.length=0),e.N.size>0&&(e.N.clear(),e.Ie.length=0),e._logger?.debug?.(`\u{1F9FD} Purged lightweight caches (${t})`)}catch(r){e._logger?.debug?.("purgeLightweightCaches failed",r)}}async function togglePerformanceMode(e,t,{reason:r="unspecified",refresh:n=!0}={}){if(t!==e._performanceMode){if(e._performanceMode=t,e._logger?.info?.(`Performance mode ${t?"enabled":"disabled"} (${r})`),t)e.ot?.({permanent:!0}),e._logger?.info?.("File watchers disabled for performance mode"),e.a&&(clearInterval(e.a),e.a=null,e._logger?.info?.("Periodic refresh disabled for performance mode"));else{try{e.Q?.("performance-mode-toggle"),e._logger?.info?.("File watchers enabled (performance mode off)")}catch{}e.a||(e._e?.(),e._logger?.info?.("Periodic refresh enabled (performance mode off)"))}if(n)try{e.refreshAll?.({reason:"performance-mode-change"})}catch(i){e._logger?.debug?.("refreshAll after performance toggle failed",i)}if(t)e._workspaceIntelligence?.dispose&&(e._workspaceIntelligence.dispose(),e._workspaceIntelligence=null);else if(!e._workspaceIntelligence)try{let{getFeatureFlagsGlobal:i}=G(),a=i(),o=a?await a.workspaceIntelligence():null;if(o){let{WorkspaceIntelligenceManager:s}=o;e._workspaceIntelligence=new s(e._fileSystem),await e._workspaceIntelligence.initialize({batchProcessor:e._batchProcessor,enableProgressiveAnalysis:e._shouldEnableProgressiveAnalysis?.()});let c=require("vscode").workspace.workspaceFolders;c?.length&&await e._workspaceIntelligence.analyzeWorkspace(c,{maxFiles:e._getIndexerMaxFiles?.()})}}catch(i){e._logger?.debug?.("Workspace intelligence reinitialization failed after performance mode toggle",i)}}}function applyPerformanceProfile(e,t,r="unspecified"){try{let n=t?.level||e.B;e.hn=!1;let i=computeEffectivePerformanceMode(e);if(i!==e._performanceMode&&(e._logger?.debug?.("Auto performance mode update",{reason:r,featureLevel:n,workspaceScale:e.u,desiredPerformanceMode:i}),togglePerformanceMode(e,i,{reason:`${r}-auto`,refresh:!0}).catch(a=>e._logger?.debug?.("Failed to toggle performance mode automatically",a))),applyConcurrencyLimit(e,r),!e._performanceMode&&(e.u==="large"||e.u==="extreme")){let a={...e.P,applyBackgroundLimits:!0,backgroundTooltipMode:e.P?.backgroundTooltipMode==="rich"?"summary":e.P?.backgroundTooltipMode};e.P=a}if(!e._performanceMode){let a=getRefreshIntervalForScale(e),o=a!==null&&a!==e.F,s=a===null&&e.F!==null;o?(e.F=a,e._e?.()):s&&(e.F=null,e._e?.())}}catch(n){e._logger?.debug?.("applyPerformanceProfile failed",n)}}function getRefreshIntervalForScale(e){return e.u==="extreme"?6e5:e.u==="large"?18e4:null}function getSmartWatcherDefaults(){try{let e=Rr();return{DEFAULT_SMART_WATCHER_EXTENSIONS:e.DEFAULT_SMART_WATCHER_EXTENSIONS,SMART_WATCHER_PRIORITY:e.SMART_WATCHER_PRIORITY}}catch{return{DEFAULT_SMART_WATCHER_EXTENSIONS:["js","ts","json","md","py","java"],SMART_WATCHER_PRIORITY:new Map([["src",100],["lib",65],["test",30]])}}}function computeEffectivePerformanceMode(e){return e.Ar===!0?!0:e.Ar===!1?!1:e.u==="extreme"}function applyConcurrencyLimit(e,t="unspecified"){let r=e.ue,n=e.Rr?e.Rr():e.st||8;e.ue=Math.max(1,Math.min(n,e.st||8)),e._logger?.info?.(`Adjusted concurrency cap ${r} -> ${e.ue} (${t})`,{workspaceScale:e.u,performanceMode:e._performanceMode})}function _buildFeatureProfile(e,t="full"){let r=FEATURE_LEVELS.includes(t)?t:"full";switch(r){case"enhanced":return{level:r,enableGit:!0,enableProgressiveAnalysis:!0,applyBackgroundLimits:!1,backgroundTooltipMode:"rich",viewportWindowMs:6e4};case"standard":return{level:r,enableGit:!0,enableProgressiveAnalysis:!1,applyBackgroundLimits:!0,backgroundTooltipMode:"summary",viewportWindowMs:48e4};case"minimal":return{level:r,enableGit:!1,enableProgressiveAnalysis:!1,applyBackgroundLimits:!0,backgroundTooltipMode:"summary",viewportWindowMs:12e4};default:return{level:r,enableGit:!0,enableProgressiveAnalysis:!1,applyBackgroundLimits:!1,backgroundTooltipMode:"rich",viewportWindowMs:3e5}}}function applyFeatureLevel(e,t,r="unspecified"){if(!t)return!1;FEATURE_LEVELS.includes(t)||(t="full");let n=e.B!==t||!e.P;e.B=t;let i=n?_buildFeatureProfile(e,t):e.P||_buildFeatureProfile(e,t);return e.P=i,e.O=i.viewportWindowMs,n&&e._logger?.info?.(`Feature level set to "${t}" (${r})`,{viewportWindowMs:e.O,applyBackgroundLimits:i.applyBackgroundLimits,backgroundTooltipMode:i.backgroundTooltipMode}),e._performanceMode?e._logger?.info?.("Performance mode active - skipping feature profile application"):(i.applyBackgroundLimits&&e.dn?.(r),i.backgroundTooltipMode&&e._logger?.info?.("Configuring background tooltip behavior as part of feature profile",{mode:i.backgroundTooltipMode}),i.enableProgressiveAnalysis&&e._logger?.info?.("Progressive analysis enabled by feature profile")),n}function maybePurgeLightweightCaches(e){try{if(!e.at)return;if(e.Pt<=0){purgeLightweightCaches(e,"lightweight-interval");return}let t=e._metrics?.totalDecorations||0;t>0&&t%e.Pt===0&&purgeLightweightCaches(e,"lightweight-interval")}catch(t){e._logger?.debug?.("maybePurgeLightweightCaches failed",t)}}function _getFlyweightValueImpl(cache,order,limit,key,factory,statsTracker){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=dynamicRequire("./decoration-pool-chunk");if(e&&typeof e.xt=="function")return e.xt(cache,order,limit,key,factory,statsTracker)}}catch{}try{return factory()}catch{return null}}function acquireDecorationFromPoolImpl({badge,tooltip,color},createFileDecoration){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=dynamicRequire("./decoration-pool-chunk");if(e&&typeof e.acquireDecorationFromPoolImpl=="function")return e.acquireDecorationFromPoolImpl({badge,tooltip,color},createFileDecoration)}}catch{}return createFileDecoration(badge||"??")}function _trimFlyweightCacheToLimitImpl(cache,order,maxSize){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=dynamicRequire("./decoration-pool-chunk");if(e&&typeof e.Mt=="function")return e.Mt(cache,order,maxSize)}}catch{}}function clearDecorationPoolImpl(provider,reason="unspecified"){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=dynamicRequire("./decoration-pool-chunk");if(e&&typeof e.clearDecorationPoolImpl=="function")return e.clearDecorationPoolImpl(provider,reason)}}catch{}try{provider.c?.size&&(provider.c.clear(),provider.$.length=0)}catch{}}function checkMemoryPressure(e){try{let t=Date.now();if(e.ct||(e.ct=t),t-e.ct<3e4)return;e.ct=t;let r=e.e.size||0,n=1e4;r/n>.8&&(e._logger?.warn?.("\u{1F9E0} Memory pressure detected, performing cleanup",{cacheSize:r,maxSize:n}),purgeLightweightCaches(e,"memory-pressure"),e._metrics.cachePressureEvents=(e._metrics.cachePressureEvents||0)+1)}catch(t){e._logger?.debug?.("checkMemoryPressure failed",t)}}function createLazyHierarchicalDecorationCache(){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=dynamicRequire("./decoration-cache-chunk");if(e&&typeof e.createLazyHierarchicalDecorationCache=="function")return e.createLazyHierarchicalDecorationCache()}}catch{}class SimpleFallbackCache{constructor(){this.ne=new Map}get size(){return this.ne.size}clear(){this.ne.clear()}get(t){return this.ne.get(t)}set(t,r){this.ne.set(t,r)}delete(t){return this.ne.delete(t)}*entries(){yield*this.ne.entries()}hydrateInBackground(){}enforceLimit(){return 0}}return new SimpleFallbackCache}module.exports={applyProgressiveLoadingSetting,cancelProgressiveWarmupJobs,createFallbackWatcher,createWatcherWithFallback,initializeAdvancedSystems,loadBatchProcessorIfNeeded,reportAllocationTelemetry,scheduleTelemetryReport,setupPeriodicRefresh,scheduleIncrementalRefresh,cancelIncrementalRefreshTimers,markCacheEntryForRefresh,maybeShedWorkload,monitorCachePressure,purgeLightweightCaches,maybePurgeLightweightCaches,checkMemoryPressure,getCachedDecoration,storeDecorationInCache,buildSummaryTooltip,formatDateReadable,getGitBlameInfo,getInitials,formatCompactSize,formatFullDate,togglePerformanceMode,applyPerformanceProfile,getRefreshIntervalForScale,computeEffectivePerformanceMode,applyConcurrencyLimit,findWorkspaceFilesWithTimeout,startWorkspaceScanWatchdog,clearWorkspaceScanWatchdog,performWorkspaceSizeCheck,applyFeatureLevel,fn:_buildFeatureProfile,getSmartWatcherDefaults,createLazyHierarchicalDecorationCache,xt:_getFlyweightValueImpl,acquireDecorationFromPoolImpl,Mt:_trimFlyweightCacheToLimitImpl,clearDecorationPoolImpl,deferPreloads,ensureWatcherManager,setupFileWatcher,registerWatcherHandlers,dispatchWatcherEvent}}});var Lr=_((qa,Wr)=>{function Hi(e){try{let t=(()=>{try{return require("vscode")}catch{return null}})(),r=t?t.workspace.getConfiguration("explorerDates"):{get:()=>6e4},n=r.get("badgeRefreshInterval",6e4),i=e.F||n;if(e.A=i,e._logger?.info?.(`Setting up periodic refresh with interval: ${e.A}ms`),e.a&&(clearInterval(e.a),e.a=null),e.i&&e.i.size){for(let a of e.i)clearTimeout(a);e.i.clear()}if(!r.get("showDateDecorations",!0)){e._logger?.info?.("Decorations disabled, skipping periodic refresh setup");return}e.a=setInterval(()=>{if(e.R){e._logger?.debug?.("Periodic refresh skipped - incremental refresh already running");return}e._logger?.debug?.("Periodic refresh triggered - scheduling incremental refresh"),Mr(e,"periodic")},e.A),e._logger?.info?.("Periodic refresh timer started")}catch(t){e._logger?.debug?.("Failed to setup periodic refresh",t)}}function xr(e){if(!(!e.i||e.i.size===0)){for(let t of e.i)clearTimeout(t);e.i.clear(),e.R=!1}}function Mr(e,t="manual"){try{if(e.D){e._logger?.debug?.(`scheduleIncrementalRefresh called after dispose - ignoring (${t})`);return}if(e.ie){e._logger?.debug?.(`Incremental refresh (${t}) skipped - refresh already pending`);return}if(e.R&&(e._logger?.debug?.(`Incremental refresh (${t}) already in progress, cancelling pending timers and rescheduling`),xr(e)),!e.e||typeof e.e.entries!="function"){e._logger?.debug?.("scheduleIncrementalRefresh: no memory cache available, firing global refresh");try{e.m.fire(void 0)}catch{}e.R=!1,e.ie=!1;return}let r=Array.from(e.e.entries());if(r.length===0){e._logger?.debug?.(`No cached decorations to refresh for ${t}, falling back to global refresh`),e.m.fire(void 0);return}let n=r.map(([c,u])=>{let l=u?.uri?u.uri:c?require("vscode").Uri.file(c):null;return l?{cacheKey:c,uri:l}:null}).filter(Boolean);if(n.length===0){e._logger?.debug?.(`Failed to resolve URIs for ${t} incremental refresh, firing global refresh`),e.m.fire(void 0);return}let i=40,a=Math.ceil(n.length/i),o=Math.min(4e3,Math.max(750,Math.floor(e.A*.25))),s=a>1?Math.max(25,Math.floor(o/a)):0;e.R=!0,e.ie=!0,e._logger?.debug?.(`Incremental refresh (${t}) scheduled for ${n.length} items in ${a} batches (spacing: ${s}ms)`);for(let c=0;c{try{if(e.D){e.i.delete(d),e.i.size||(e.R=!1,e.ie=!1);return}u.forEach(({cacheKey:h,uri:g})=>{Ir(e,h),e.m.fire(g)})}finally{e.i.delete(d),e.i.size===0&&(e.R=!1,e.ie=!1,e._logger?.debug?.(`Incremental refresh (${t}) completed`))}},l);e.i.add(d)}}catch(r){e._logger?.debug?.("Failed to schedule incremental refresh",r)}}function Ir(e,t){if(t){if(!e.e||typeof e.e.get!="function")e._logger?.debug?.("markCacheEntryForRefresh: no memory cache available, skipping");else{let r=e.e.get(t);if(r){let n=Date.now()-r.timestamp;n>e.S*.75?(r.forceRefresh=!0,e._logger?.debug?.(`Marked stale entry for refresh: ${t} (age: ${Math.round(n/1e3)}s)`)):e._logger?.debug?.(`Skipped refresh for fresh entry: ${t} (age: ${Math.round(n/1e3)}s)`)}}if(e._advancedCache)try{let r=t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e._advancedCache.invalidateByPattern(r)}catch(r){e._logger?.debug?.(`Could not invalidate advanced cache for ${t}: ${r.message}`)}}}Wr.exports={setupPeriodicRefresh:Hi,cancelIncrementalRefreshTimers:xr,scheduleIncrementalRefresh:Mr,markCacheEntryForRefresh:Ir}});var Br=_((Ba,$r)=>{var f=require("vscode"),{fileSystem:$i}=Be(),{formatFileSize:Bi}=Ke(),{getSettingsCoordinator:Ki}=Ge(),{SecurityValidator:za,SecureFileOperations:Ua,detectSecurityEnvironment:ji}=Je(),{DEFAULT_CACHE_TIMEOUT:Fe,DEFAULT_MAX_CACHE_SIZE:ie,GLOBAL_STATE_KEYS:Ha,DEFAULT_DECORATION_POOL_SIZE:Vi,DEFAULT_FLYWEIGHT_CACHE_SIZE:Or,WORKSPACE_SCALE_EXTREME_THRESHOLD:$a}=I(),{isWebEnvironment:Gi}=J(),{isWebDiagnosticsEnabled:Nr,diagLogOnce:Ae,recordProviderEvent:Xi,recordDecorationCall:Yi,recordRefreshCall:Zi}=he(),{resolveFreshness:Ji,compareFreshness:Qi,resourceIdentity:qr}=it(),S=typeof process<"u"&&process.env?process.env:{},ea=300*1e3,ta=Number(S.EXPLORER_DATES_VIEWPORT_HISTORY_LIMIT||400),zr=Number(S.EXPLORER_DATES_SECURITY_MAX_WARNINGS_PER_FILE??1),Ur=["full","enhanced","standard","minimal"],Hr=new Map([["src",100],["lib",65],["test",30]]);function ra(){try{let e=f?.window?.activeColorTheme?.kind,t=e===f.ColorThemeKind.HighContrast,r=e===f.ColorThemeKind.Light;return t?{veryRecent:new f.ThemeColor("list.highlightForeground"),recent:new f.ThemeColor("list.warningForeground"),old:new f.ThemeColor("list.errorForeground"),javascript:new f.ThemeColor("list.highlightForeground"),css:new f.ThemeColor("list.warningForeground"),html:new f.ThemeColor("list.errorForeground"),json:new f.ThemeColor("list.highlightForeground"),markdown:new f.ThemeColor("list.warningForeground"),python:new f.ThemeColor("list.errorForeground"),subtle:new f.ThemeColor("list.highlightForeground"),muted:new f.ThemeColor("list.inactiveSelectionForeground"),emphasis:new f.ThemeColor("list.focusHighlightForeground")}:r?{veryRecent:new f.ThemeColor("list.highlightForeground"),recent:new f.ThemeColor("list.warningForeground"),old:new f.ThemeColor("list.errorForeground"),javascript:new f.ThemeColor("symbolIcon.functionForeground"),css:new f.ThemeColor("symbolIcon.colorForeground"),html:new f.ThemeColor("symbolIcon.snippetForeground"),json:new f.ThemeColor("symbolIcon.stringForeground"),markdown:new f.ThemeColor("symbolIcon.textForeground"),python:new f.ThemeColor("symbolIcon.classForeground"),subtle:new f.ThemeColor("list.inactiveSelectionForeground"),muted:new f.ThemeColor("list.deemphasizedForeground"),emphasis:new f.ThemeColor("list.highlightForeground")}:{veryRecent:new f.ThemeColor("list.highlightForeground"),recent:new f.ThemeColor("charts.yellow"),old:new f.ThemeColor("charts.red"),javascript:new f.ThemeColor("symbolIcon.functionForeground"),css:new f.ThemeColor("charts.purple"),html:new f.ThemeColor("charts.orange"),json:new f.ThemeColor("symbolIcon.stringForeground"),markdown:new f.ThemeColor("charts.yellow"),python:new f.ThemeColor("symbolIcon.classForeground"),subtle:new f.ThemeColor("list.inactiveSelectionForeground"),muted:new f.ThemeColor("list.deemphasizedForeground"),emphasis:new f.ThemeColor("list.highlightForeground")}}catch{return null}}function na(e,t){if(!t||!e)return null;let r=aa(e);return[".js",".ts",".jsx",".tsx",".mjs"].includes(r)?t.javascript:[".css",".scss",".sass",".less",".stylus"].includes(r)?t.css:[".html",".htm",".xml",".svg"].includes(r)?t.html:[".json",".yaml",".yml",".toml"].includes(r)?t.json:[".md",".markdown",".txt",".rst"].includes(r)?t.markdown:[".py",".pyx",".pyi"].includes(r)?t.python:null}var ia=e=>{try{let r=String(e||"").replace(/\\/g,"/"),n=r.lastIndexOf("/");return n===-1?r:r.substring(n+1)}catch{return"unknown"}},aa=e=>{try{let t=String(e||""),r=t.lastIndexOf(".");return r<=0?"":t.substring(r).toLowerCase()}catch{return""}},oa=e=>String(e||"").toLowerCase().replace(/\\/g,"/"),Re=e=>String(e||"").replace(/\\/g,"/"),ae=(e="")=>{if(!e)return"";if(typeof e=="string")return e;if(typeof e.fsPath=="string"&&e.fsPath.length>0)return e.fsPath;if(typeof e.path=="string"&&e.path.length>0)return e.path;if(typeof e.toString=="function")try{return e.toString(!0)}catch{return e.toString()}return String(e)},sa=(e="")=>{try{let t=typeof e=="string"?e:ae(e),r=Re(t);return ia(r)||r||"unknown"}catch{return"unknown"}},Pe=class{constructor(){this.r=null,this.n=new Map,(async()=>{try{let t=await Promise.resolve().then(()=>R(ir()));if(t&&typeof t.createLazyHierarchicalDecorationCache=="function"){let r=t.createLazyHierarchicalDecorationCache();for(let[n,i]of this.n.entries())r.set(n,i);this.r=r,this.n=null}}catch{}})()}get size(){return this.r?this.r.size:this.n.size}get bucketCount(){return this.r?this.r.bucketCount:0}clear(){if(this.r)return this.r.clear();this.n.clear()}get(t){return this.r?this.r.get(t):this.n.get(t)}set(t,r,n={}){if(this.r)return this.r.set(t,r,n);this.n.set(t,r)}delete(t){return this.r?this.r.delete(t):this.n.delete(t)}*entries(){if(this.r){yield*this.r.entries();return}yield*this.n.entries()}*keys(){if(this.r){yield*this.r.keys();return}yield*this.n.keys()}*values(){if(this.r){yield*this.r.values();return}yield*this.n.values()}[Symbol.iterator](){return this.entries()}enforceLimit(t=0){if(this.r)return this.r.enforceLimit(t);if(!t||this.n.size<=t)return 0;let r=0,i=Array.from(this.n.keys()).slice(0,Math.max(1,Math.ceil(this.n.size-t)));for(let a of i)this.n.delete(a),r++;return r}},ca=S.VSCODE_WEB==="true",xe=class{Pr(){try{let t=typeof process<"u"&&typeof process.memoryUsage=="function"?process.memoryUsage():null,r=Number(t?.heapUsed);return Number.isFinite(r)&&r>=0?Number((r/1024/1024).toFixed(2)):0}catch{return 0}}gn(){try{let t=typeof process<"u"&&typeof process.memoryUsage=="function"?process.memoryUsage():null,r=Number(t?.rss);return Number.isFinite(r)&&r>=0?Number((r/1024/1024).toFixed(2)):0}catch{return 0}}constructor(){this.m=new f.EventEmitter,this.onDidChangeFileDecorations=this.m.event,this.e=new Pe,this.mn=new Map,this.lt=new Map,this.ve=[],this.st=20,this.ue=this.st,this.ir=0,this.Be=!1,this.pn=!1,this.c=new Map,this.$=[],this.H={hits:0,misses:0,allocations:0,reuses:0},this.Jt=Vi,this.I=new Map,this.Se=[],this.Xt=Or,this.Yt={hits:0,misses:0,allocations:0,reuses:0},this.N=new Map,this.Ie=[],this.Sr=Or,this.Tr={hits:0,misses:0,allocations:0,reuses:0},this.Zt=S.EXPLORER_DATES_ENABLE_DECORATION_POOL!=="0",this.Gt=S.EXPLORER_DATES_ENABLE_FLYWEIGHTS!=="0",this.at=S.EXPLORER_DATES_LIGHTWEIGHT_MODE==="1",this._performanceMode=!1;try{let n=f.workspace.getConfiguration("explorerDates");this._performanceMode=!!n.get("performanceMode",this._performanceMode)}catch{}this.St=S.EXPLORER_DATES_MEMORY_SHEDDING==="1",this.Ft=Number(S.EXPLORER_DATES_MEMORY_SHED_THRESHOLD_MB||3),this.Tt=!1,this.ye=this.St?this.Pr():0,this.vr=Number(S.EXPLORER_DATES_MEMORY_SHED_CACHE_LIMIT||1e3),this.At=Number(S.EXPLORER_DATES_MEMORY_SHED_REFRESH_MS||6e4),this.F=null,this.nt=[],this.vt=Number(S.EXPLORER_DATES_SOFT_HEAP_ALERT_MB||2),this.re=0,this.be=!1,this.Rt=Number(S.EXPLORER_DATES_CACHE_PRESSURE_RATIO||.7),this.it=!1,this.A=null,this.a=null,this.i=new Set,this.R=!1,this.ie=!1,this.G=S.EXPLORER_DATES_FORCE_CACHE_BYPASS==="1",this.Pt=Number(S.EXPLORER_DATES_LIGHTWEIGHT_PURGE_INTERVAL||400),this._isWeb=ca||Gi(),Nr()&&(Ae("provider-impl-constructed","info","Provider implementation constructed",{isWeb:this._isWeb}),Xi("created",{source:"impl",isWeb:this._isWeb})),this.xr=Fe*4,this.yn=this.xr,this.bn=0,this.l=ie;try{let n=f.workspace.getConfiguration("explorerDates");this.S=Number(n.get("cacheTimeout",Fe))}catch{this.S=Fe}try{let n=f.workspace.getConfiguration("explorerDates");this.l=Number(n.get("maxCacheSize",ie))||ie}catch{this.l=ie}this._fileSystem=$i,this._n=!this._isWeb,this.En=!1,this.pe=null,this.wn=null,this.z=new Map,this.We=6e4,this.Mr=1e3,this.b=new Map,this.Ir=Number(S.EXPLORER_DATES_FRESHNESS_CACHE_TTL_MS||6e4),this.Wr=Number(S.EXPLORER_DATES_FRESHNESS_CACHE_MAX||2e3),this.It=new Set;try{this.Lr=Math.random().toString(36).slice(2,8),this._logger.debug(`FileDateDecorationProvider created (id=${this.Lr})`)}catch{}this.Or=null,this.kn=null,this.Nr=null,this.Dn=null;let t=Ki(),r=t?.getValue&&t.getValue("enableTelemetry");this._allocationTelemetryEnabled=S.NODE_ENV==="development"||S.EXPLORER_DATES_TELEMETRY==="1"||r===!0,this._telemetryReportInterval=Number(S.EXPLORER_DATES_TELEMETRY_INTERVAL_MS||6e4),this._telemetryReportTimer=null,this.qr=null,this.Cn=new Map,this.k=new Set,this.y=new Map,this.me=ta,this.O=300*1e3,this.et=Date.now(),this.v=[],this.rt=null,this.Sn=null;try{let n=Array.isArray(f.window?.visibleTextEditors)?f.window.visibleTextEditors:[];for(let a of n){let o=a?.document?.uri?.fsPath||a?.document?.uri?.path||"";o&&this.k.add(String(o).replace(/\\/g,"/"))}let i=f.window?.activeTextEditor?.document?.uri;if(i){let a=i.fsPath||i.path||"";a&&this.k.add(String(a).replace(/\\/g,"/"))}}catch{}this.B="full",this.P=null,this._logger=q().getLogger(),this.p={getString:n=>n,formatDate:n=>n instanceof Date?n.toString():String(n),getCurrentLocale:()=>"en",dispose:()=>{}},this._metrics={totalDecorations:0,cacheHits:0,cacheMisses:0,fileStatTimeMs:0,fileStatCalls:0,gitBlameTimeMs:0,gitBlameCalls:0,viewportPriorityDecorations:0,viewportBackgroundDecorations:0},(async()=>{try{let n=await Promise.resolve().then(()=>R(kr()));n&&typeof n.hydrateProviderOptionalSystems=="function"&&await n.hydrateProviderOptionalSystems(this)}catch(n){this._logger.debug("Failed to run provider initialization chunk",n)}})(),this._workspaceIntelligence=null,this._batchProcessor=null,this._batchProcessorModule=null,this._progressiveLoadingJobs=new Set,this._progressiveLoadingEnabled=!1,this.ae=null,this.oe=null,this._advancedCache=null,this.w=null,this.s=new Set,this.h=void 0,this.d=new Map,this.T=[],this.L=null,this.J=!0,this._enableWatcherFallbacks="auto",this._smartWatcherFallbackManager=null,this.ee=null,this.j="none",this.E=new Map,this.Wt=!1,this.Ee=[],this.Ge=null,this.u="unknown",this.Ze=S.EXPLORER_DATES_LOG_WATCHERS==="1",this.Tn=ji(),this.Lt=!0,this.zr=[],this.Ur=!0,this.vn=!1,this.Fn=!1,this.An=new Map,this.Rn=Number(S.EXPLORER_DATES_SECURITY_WARNING_THROTTLE_MS||5e3),this.Pn=Number.isFinite(zr)?Math.max(0,zr):1,this.Le=typeof f.workspace.onDidChangeWorkspaceFolders=="function"?f.workspace.onDidChangeWorkspaceFolders(n=>this.Hr(n)):null,this.C=null,this.xn=null,this.Mn=null,this.te=null,this.In=!1,this.Je=0,this.D=!1,this._accessibility=null;try{let n=f.workspace.getConfiguration("explorerDates"),i=!!n.get("enableContextMenu",!0),a=!!n.get("showStatusBar",!1),o=!!n.get("showWelcomeOnStartup",!0),s=!!n.get("enableExtensionApi",!0);try{f.commands.executeCommand("setContext","explorerDates.enableContextMenu",i).catch(()=>{})}catch{}try{f.commands.executeCommand("setContext","explorerDates.showStatusBar",a).catch(()=>{})}catch{}try{f.commands.executeCommand("setContext","explorerDates.showWelcomeOnStartup",o).catch(()=>{})}catch{}try{f.commands.executeCommand("setContext","explorerDates.enableExtensionApi",s).catch(()=>{})}catch{}}catch(n){this._logger?.debug&&this._logger.debug("Failed to initialize UI contexts",n)}try{typeof f.workspace.onDidChangeConfiguration=="function"&&(this.w=f.workspace.onDidChangeConfiguration(n=>{try{if(!n||typeof n.affectsConfiguration!="function"||!n.affectsConfiguration("explorerDates"))return;let a=!!f.workspace.getConfiguration("explorerDates").get("performanceMode",!1);try{let o=this._performanceMode;this._performanceMode=a,a?(this.ot?.({permanent:!0}),this.a&&(clearInterval(this.a),this.a=null)):!a&&o&&(this.Q?.("runtime-config-change"),this.a||this._e?.())}catch(o){this._logger?.debug?.("sync performance-mode toggle failed",o)}(async()=>{try{let o=await this.Z();o&&typeof o.togglePerformanceMode=="function"&&await o.togglePerformanceMode(this,a,{reason:"runtime-config-change",refresh:!0})}catch(o){this._logger?.debug?.("delegated togglePerformanceMode failed",o)}})();try{if(["explorerDates.enableContextMenu","explorerDates.showStatusBar","explorerDates.showWelcomeOnStartup","explorerDates.enableExtensionApi"].some(c=>n.affectsConfiguration&&n.affectsConfiguration(c)))try{let c=f.workspace.getConfiguration("explorerDates"),u=!!c.get("enableContextMenu",!0),l=!!c.get("showStatusBar",!1),d=!!c.get("showWelcomeOnStartup",!0),h=!!c.get("enableExtensionApi",!0);try{f.commands.executeCommand("setContext","explorerDates.enableContextMenu",u).catch(()=>{})}catch{}try{f.commands.executeCommand("setContext","explorerDates.showStatusBar",l).catch(()=>{})}catch{}try{f.commands.executeCommand("setContext","explorerDates.showWelcomeOnStartup",d).catch(()=>{})}catch{}try{f.commands.executeCommand("setContext","explorerDates.enableExtensionApi",h).catch(()=>{})}catch{}}catch(c){this._logger?.debug&&this._logger.debug("Failed to update UI contexts on config change",c)}}catch(o){this._logger?.debug&&this._logger.debug("Failed to evaluate UI-context update condition",o)}try{let o=f.workspace.getConfiguration("explorerDates");if(n.affectsConfiguration&&n.affectsConfiguration("explorerDates.cacheTimeout"))try{this.S=Number(o.get("cacheTimeout",Fe))}catch{}if(n.affectsConfiguration&&n.affectsConfiguration("explorerDates.maxCacheSize"))try{this.l=Number(o.get("maxCacheSize",ie))||ie}catch{}}catch(o){this._logger?.debug&&this._logger.debug("Failed to refresh runtime config values from settings",o)}(async()=>{try{if(n.affectsConfiguration&&n.affectsConfiguration("explorerDates.workspaceExclusionProfiles")&&this._workspaceIntelligence?.smartExclusion?.cleanupAllWorkspaceProfiles&&await this._workspaceIntelligence.smartExclusion.cleanupAllWorkspaceProfiles(),n.affectsConfiguration&&n.affectsConfiguration("explorerDates.showWelcomeOnStartup"))try{let o=!!f.workspace.getConfiguration("explorerDates").get("showWelcomeOnStartup",!0);this._extensionContext&&this._extensionContext.globalState&&typeof this._extensionContext.globalState.update=="function"&&await this._extensionContext.globalState.update("explorerDates.pendingWelcome",o)}catch(o){this._logger?.debug&&this._logger.debug("Failed to persist pending welcome flag",o)}}catch(o){this._logger?.debug&&this._logger.debug("Failed to run workspace exclusion cleanup after config change",o)}})()}catch(i){this._logger?.debug?.("configuration change handler failed",i)}}))}catch(n){this._logger?.debug?.("Failed to register configuration watcher",n)}try{this._performanceMode?(this.h=void 0,this.a=null):(this.Q?.("initial"),this._e?.())}catch(n){this._logger?.debug?.("initial watcher/refresh setup failed",n)}try{this.$r?.()}catch{}}ut(){if(this.f)return this.f;try{let t=ft();t&&typeof t.createWatcherManager=="function"&&(this.f=t.createWatcherManager(this))}catch(t){this._logger?.debug?.("Failed to create watcher manager",t)}return this.f}Hr(t){try{let r=this.ut();if(r&&typeof r.handleWorkspaceFoldersChanged=="function"){r.handleWorkspaceFoldersChanged(t);return}let n=(t?.added||[]).map(a=>a.uri).filter(Boolean),i=(t?.removed||[]).map(a=>a.uri).filter(Boolean);if(n.length===0&&i.length===0)return;this.C&&clearTimeout(this.C),this.C=setTimeout(()=>{this.C=null,(async()=>{try{this._logger?.info&&this._logger.info("Workspace folders changed (provider fallback)",{added:n.length,removed:i.length}),await this.checkWorkspaceSize();try{this.clearAllCaches()}catch{}try{this.refreshAll()}catch{}if(this._performanceMode)return;this.Q?.("workspace-change");try{typeof this.wt=="function"&&await this.wt()}catch(a){this._logger?.debug&&this._logger.debug("Failed to reconfigure progressive loading after workspace change",a)}if(this._workspaceIntelligence&&typeof this._workspaceIntelligence.onWorkspaceFoldersChanged=="function"){let a=(f.workspace.workspaceFolders||[]).map(o=>({uri:o.uri}));await this._workspaceIntelligence.onWorkspaceFoldersChanged({added:a,removed:i.map(o=>({uri:o}))})}}catch(a){this._logger?.debug&&this._logger.debug("Workspace folder change handling failed",a)}})()},250)}catch(r){this._logger?.debug&&this._logger.debug("provider._handleWorkspaceFoldersChanged failed",r)}}gr(t=[]){try{if(!Array.isArray(t))return[];let r=new Set;return t.map(n=>String(n||"").replace(/^\./,"").toLowerCase().trim()).filter(n=>!!n).filter(n=>r.has(n)?!1:(r.add(n),!0))}catch{return[]}}mr(t){try{let r=Number(t||0);(!Number.isFinite(r)||r<=0)&&(r=20);let n=Number(S.EXPLORER_DATES_MAX_SMART_WATCHER_PATTERNS||200);return Math.max(1,Math.min(Math.floor(r),Math.max(1,n)))}catch{return 20}}async K(t,r={}){try{try{let s=dt();if(s&&typeof s.K=="function")return await s.K(this,t,r)}catch{}let n=[],i=Math.max(1,r&&r.maxPatterns||1),a=i,o=Array.isArray(t)?t.length:0;for(let s of t||[]){if(a<=0)break;let c=Math.max(1,Math.floor(a/Math.max(1,o))),u=new f.RelativePattern(s,"*.{md,mdx,json,jsonc,yml,yaml,ts,tsx,js,jsx}");if(n.push({pattern:u,label:`root:${s.name}`}),a-=1,a<=0)break;try{let l=typeof this._fileSystem?.readdir=="function"?await this._fileSystem.readdir(s.uri||s.fsPath||s):[],d=(Array.isArray(l)?l:[]).filter(h=>h&&(typeof h.isDirectory=="function"?h.isDirectory():!0)).map(h=>typeof h=="string"?h:h.name||"").filter(Boolean).filter(h=>!["node_modules",".git","dist","build","out"].includes(h));d.sort((h,g)=>(Hr.get(g)||0)-(Hr.get(h)||0));for(let h of d){if(a<=0)break;let g=new f.RelativePattern(s,`${h}/**/*.{md,mdx,json,jsonc,yml,yaml,ts,tsx,js,jsx}`);n.push({pattern:g,label:`sub:${s.name}/${h}`}),a-=1}}catch{}o-=1}return n.slice(0,i)}catch{return[]}}fe(t,r,n){try{if(!t||typeof r!="string"||typeof n!="function")return null;let i=t[r];if(typeof i=="function")try{return i.call(t,n)}catch{return null}return null}catch{return null}}_getIndexerMaxFiles(){try{return Math.max(100,Number(S.EXPLORER_DATES_INDEXER_MAX_FILES||2e3))}catch{return 2e3}}Q(t="initial"){try{if(this._performanceMode||this.D)return;this.h||(this.h={pending:!0});let r=this.ut();if(r&&typeof r.setupFileWatcher=="function")try{r.setupFileWatcher(t);return}catch(n){this._logger?.debug?.("WatcherManager.setupFileWatcher failed",n)}(async()=>{try{let n=await this.Z();n&&typeof n.setupFileWatcher=="function"&&await n.setupFileWatcher(this,t)}catch(n){this._logger?.debug?.("Fallback setupFileWatcher failed",n)}})()}catch(r){this._logger?.debug?.("provider._setupFileWatcher failed",r)}}async Fe(t,r){try{let n="manual",i=typeof t=="number"?t:typeof r=="number"?r:++this.Je;typeof t=="string"&&(n=t);let a=this.ut();if(a&&typeof a.Fe=="function")return await a.Fe(i,n);this.Q(n);return}catch(n){this._logger?.debug&&this._logger.debug("provider._initializeSmartWatchers failed",n)}}ot(t={}){try{let r=t&&t.permanent===!0;if(this.f&&typeof this.f.disposeFileWatchers=="function"){try{this.f.disposeFileWatchers({permanent:r})}catch(n){this._logger?.debug?.("watcherManager.disposeFileWatchers failed",n)}this.h=r?null:void 0}else this.s&&typeof this.s.forEach=="function"&&(this.s.forEach(n=>{try{n&&typeof n.dispose=="function"&&n.dispose()}catch{}}),this.s.clear()),this.h=r?null:void 0;if(this.E&&this.E.size){for(let n of this.E.values())clearTimeout(n.timer);this.E.clear()}}catch(r){this._logger?.debug?.("provider._disposeFileWatchers failed",r)}}_e(){try{let t=(()=>{try{return Pr()}catch{return null}})();if(t&&typeof t.setupPeriodicRefresh=="function")try{t.setupPeriodicRefresh(this);return}catch(a){this._logger?.debug?.("adv.setupPeriodicRefresh failed",a)}try{let a=Lr();if(a&&typeof a.setupPeriodicRefresh=="function"){a.setupPeriodicRefresh(this);return}}catch{}let r=f.workspace.getConfiguration("explorerDates"),n=r.get("badgeRefreshInterval",6e4),i=this.F||n;if(this.A=i,this.a&&(clearInterval(this.a),this.a=null),!r.get("showDateDecorations",!0))return;this.a=setInterval(()=>{try{try{this.m.fire(void 0)}catch{}}catch{}},this.A)}catch(t){this._logger?.debug?.("provider._setupPeriodicRefresh failed",t)}}async initializeAdvancedSystems(t){try{let n=await ge().decorationsAdvanced();if(n&&typeof n.initializeAdvancedSystems=="function")return n.initializeAdvancedSystems(this,t);this._logger.info&&this._logger.info("Advanced systems chunk unavailable - skipping advanced initialization")}catch(r){this._logger.error&&this._logger.error("Failed to initialize advanced systems",r)}}async checkWorkspaceSize(){try{let r=await ge().decorationsAdvanced();if(r&&typeof r.performWorkspaceSizeCheck=="function")return r.performWorkspaceSizeCheck(this)}catch(t){this._logger.debug&&this._logger.debug("Delegated checkWorkspaceSize failed",t)}try{let t=require("vscode"),r=await(t.workspace.findFiles?t.workspace.findFiles("**/*",null,100):[]),n=Array.isArray(r)?r.length:0;this.Ge=n;let{WORKSPACE_SCALE_LARGE_THRESHOLD:i,WORKSPACE_SCALE_EXTREME_THRESHOLD:a}=I();this.u=n>=a?"extreme":n>=i?"large":"normal";try{this.Xe(this.Ye(),"workspace-scale-change-fallback")}catch{}return}catch(t){this._logger.debug&&this._logger.debug("performWorkspaceSizeCheck fallback failed",t)}}async provideFileDecoration(t,r){try{await this.Ot&&this.Ot()}catch{}Yi();try{if(this.U&&typeof this.U.provideDecoration=="function")try{let n=await this.U.provideDecoration(t,r);return n==null?n:typeof n!="object"?void 0:"badge"in n||"tooltip"in n||"color"in n?n:void 0}catch(n){this._logger?.debug&&this._logger.debug("Decoration helper threw",n);return}}catch(n){this._logger?.debug("Decoration provider helper failed",n)}try{if(this.Oe||(this.Oe=Promise.resolve().then(()=>Ce()).then(n=>{this.U=n.createDecorationProviderHelpers?n.createDecorationProviderHelpers(this):n}).finally(()=>{this.Oe=null})),this.Oe&&await this.Oe,this.U&&typeof this.U.provideDecoration=="function")try{let n=await this.U.provideDecoration(t,r);return n==null?n:typeof n!="object"?void 0:"badge"in n||"tooltip"in n||"color"in n?n:void 0}catch(n){this._logger?.debug&&this._logger.debug("Decoration helper threw",n);return}}catch(n){this._logger?.debug("Failed to load decoration provider chunk",n)}}je(t,r=""){try{if(!t)return{isValid:!1};let n=String(t.fsPath||t.path||"");return n?n.indexOf("\0")!==-1?{isValid:!1}:{isValid:!0}:{isValid:!1}}catch{return{isValid:!1}}}async tr(t){try{let r=String(t.fsPath||t.path||"");if(!r)return!1;let n=r.replace(/\\/g,"/");return["node_modules","/.git/","/dist/"].some(a=>n.includes(a))}catch{return!1}}async rr(t,r){try{return await r()}catch(n){throw n}}Ve(t){try{return String(t.fsPath||t.path||"").replace(/\\/g,"/")}catch{return String(t||"")}}Ot(){try{let t=require("vscode").workspace.getConfiguration("explorerDates"),r=t.get("security.allowTestPaths",!0),n=Array.isArray(t.get("security.allowedExtraPaths",[]))?t.get("security.allowedExtraPaths",[]):[],i=t.get("security.enableBoundaryEnforcement"),a=t.get("security.enforceWorkspaceBoundaries");this.Ur=r!==!1;let o=(()=>{try{return require("path")}catch{return null}})(),s=(n||[]).filter(Boolean).map(c=>{try{return o?o.normalize(String(c)):String(c)}catch{return String(c)}});this.zr=s,typeof i=="boolean"?this.Lt=i:typeof a=="boolean"&&(this.Lt=a)}catch(t){this._logger?.debug&&this._logger.debug("Failed to ensure security configuration",t)}}async nr(t,r){try{if(this.G)return this._logger?.debug?.(`Cache bypass enabled - recalculating decoration for: ${r}`),null;if(this._advancedCache)try{let i=await this._advancedCache.get(t);if(i)return this._metrics.cacheHits++,this._logger?.debug?.(`Advanced cache hit for: ${r}`),i}catch(i){this._logger?.debug?.(`Advanced cache error: ${i.message}`)}if(!this.e||typeof this.e.get!="function")return null;let n=this.e.get(t);if(n){if(n.forceRefresh){try{this.e.delete(t)}catch{}this._logger?.debug?.(`Memory cache bypassed (forced refresh) for: ${r}`)}else if(Date.now()-n.timestamp{switch(o){case"enhanced":return{level:o,enableGit:!0,enableProgressiveAnalysis:!0,applyBackgroundLimits:!1,backgroundTooltipMode:"rich",viewportWindowMs:6e4,enableColors:!0};case"standard":return{level:o,enableGit:!0,enableProgressiveAnalysis:!1,applyBackgroundLimits:!0,backgroundTooltipMode:"summary",viewportWindowMs:48e4,enableColors:!0};case"minimal":return{level:o,enableGit:!1,enableProgressiveAnalysis:!1,applyBackgroundLimits:!0,backgroundTooltipMode:"summary",viewportWindowMs:12e4,enableColors:!1};default:return{level:"full",enableGit:!0,enableProgressiveAnalysis:!1,applyBackgroundLimits:!1,backgroundTooltipMode:"rich",viewportWindowMs:ea,enableColors:!0}}},a=n?i(t):this.P||i(t);if(this.P=a,this.O=a.viewportWindowMs,n&&this._logger?.info?.(`Feature level set to "${t}" (${r})`,{viewportWindowMs:this.O,applyBackgroundLimits:a.applyBackgroundLimits,backgroundTooltipMode:a.backgroundTooltipMode}),this._performanceMode)return this._logger?.info&&this._logger.info("Performance mode active - skipping feature profile application"),n;try{a.applyBackgroundLimits&&typeof this.Br=="function"&&this.Br(r)}catch{}return n}catch(n){return this._logger?.debug&&this._logger.debug("Failed to apply feature level",n),!1}}mt(t){try{let r=Re(ae(t)||"");return this.k.has(r)||this.y.has(r)}catch{return!1}}Y(t,{reason:r="unknown",visible:n=!1}={}){try{let i=Re(ae(t)||""),a=Date.now();if(n)this.k.add(i);else for(this.y.set(i,a);this.y.size>(Number(this.me)||400);){let o=this.y.keys().next().value;if(!o)break;this.y.delete(o)}n?this._metrics.viewportPriorityDecorations=(this._metrics.viewportPriorityDecorations||0)+1:this._metrics.viewportBackgroundDecorations=(this._metrics.viewportBackgroundDecorations||0)+1}catch{}}or(){return!1}sr(t){return!!(t&&(t.code==="ENOENT"||/not found/i.test(t.message||"")))}async Z(){try{return this.ae?this.ae:this.oe?await this.oe:(this.oe=(async()=>{try{let{getFeatureFlagsGlobal:t}=G(),r=t(),n=r?await r.decorationsAdvanced():null;return this.ae=n||null,this.ae}catch(t){return this._logger?.debug&&this._logger.debug("Failed to load decorationsAdvanced chunk",t),this.ae=null,null}finally{this.oe=null}})(),await this.oe)}catch(t){try{this._logger?.debug&&this._logger.debug("provider._getDecorationsAdvancedChunk failed",t)}catch{}return null}}Qt(t,r,n){try{let i=Math.floor((Date.now()-t.getTime())/864e5);return i<=0?"\u2022":i<10?String(i):"\u2022"}catch{return"\u2022"}}gt(t,r="auto"){try{return Bi(t,r)}catch{return`${t} bytes`}}lr(t,r,n){try{if(!r||r==="none")return;let i=(()=>{if(!this._isWeb)return!1;try{return!!f.workspace.getConfiguration("explorerDates").get("webDiagnosticsBuiltinColors",!1)}catch{return!1}})(),a=Date.now()-(t instanceof Date?t.getTime():new Date(t).getTime());if(i){let s=new f.ThemeColor("list.warningForeground"),c=new f.ThemeColor("list.deemphasizedForeground"),u=new f.ThemeColor("list.errorForeground");return Nr()&&Ae("web-builtin-color-fallback","info","Web builtin color fallback enabled"),r==="file-type"?s:r==="subtle"?c:a<36e5?s:a<864e5?c:u}if(r==="custom")return a<36e5?new f.ThemeColor("explorerDates.customColor.veryRecent"):a<864e5?new f.ThemeColor("explorerDates.customColor.recent"):new f.ThemeColor("explorerDates.customColor.old");if(r==="recency")return a<36e5?new f.ThemeColor("list.highlightForeground"):a<864e5?new f.ThemeColor("charts.yellow"):new f.ThemeColor("charts.red");let o=ra();if(r==="file-type"||r==="adaptive"){let s=na(n,o);if(s)return s;if(r==="adaptive"&&o)return a<36e5?o.veryRecent:a<864e5?o.recent:o.old}return r==="subtle"&&o?a<36e5?o.subtle:a<6048e5?o.muted:o.emphasis:r==="vibrant"&&o?a<36e5?o.veryRecent:a<864e5?o.recent:o.old:void 0}catch{return}}Kr(t){try{let r=t?.scheme||"file";return this._isWeb||r!=="file"}catch{return this._isWeb}}jr(t){try{if(t?.toString)return t.toString(!0)}catch{}try{let r=t?.scheme||"file",n=t?.path||t?.fsPath||"";return`${r}://${n}`}catch{return String(t||"")}}Vr(t,r){try{return`${qr(t,{platform:process.platform})}::${r||"auto"}`}catch{return String(t||"unknown")}}Gr(t){try{let r=this.b.get(t);return r?r.expiresAt&&r.expiresAt=this.Wr){let i=this.b.keys().next().value;i&&this.b.delete(i)}let n=this.b.get(t);if(n&&n.freshness&&Qi(n.freshness,r)>0)return;this.b.set(t,{freshness:r,expiresAt:Date.now()+this.Ir})}catch{}}Yr(t,r,n="auto"){try{let i=String(n||"auto").toLowerCase(),a=t||"unknown",o=`${i}:${a}`;if(this.It.has(o))return;this.It.add(o);let s=i==="git"||i==="github"?"warn":"debug";this._logger?.[s]?.("Freshness source unavailable, falling back to unknown",{reason:a,policy:i,uri:r?ae(r):null})}catch{}}ht(t=""){try{let r=String(t||"");r=r.replace(/\\/g,"/"),r=r.replace(/\/{2,}/g,"/"),r=r.replace(/^\/+/,"");try{r=decodeURIComponent(r)}catch{}return r}catch{return""}}Ne(t,r){try{if(this.z.size>=this.Mr){let n=this.z.keys().next().value;n&&this.z.delete(n)}this.z.set(t,r)}catch{}}async He(t){let r=this.jr(t),n=Date.now(),i=this.z.get(r);if(i&&i.expiresAt&&i.expiresAt>n)return i;let a={timestampMs:null,available:!1,error:null,expiresAt:n+this.We,repoMatched:null,pathAttempted:null};try{let o=f?.extensions?.getExtension?f.extensions.getExtension("vscode.git"):null;if(!o)return this._isWeb&&Ae("git-extension-unavailable-web","info","Git extension not available in web mode - timestamps will use fs.stat fallback"),a.error="git-extension-missing",this.Ne(r,a),a;if(!o.isActive&&typeof o.activate=="function")try{await o.activate()}catch{}let s=o.exports?.getAPI?.(1);if(!s)return a.error="git-api-unavailable",this.Ne(r,a),a;a.available=!0;let c=typeof s.getRepository=="function"?s.getRepository(t):null,u=t?.path||t?.fsPath||"",l=this.ht(u);if(!c&&Array.isArray(s.repositories)&&(c=s.repositories.find(E=>{let M=E?.rootUri?.path||E?.rootUri?.fsPath||"",F=this.ht(M);return F&&l&&l.startsWith(F)})||null),!c||typeof c.log!="function")return a.error="git-repo-unavailable",a.repoMatched=!1,a.expiresAt=n+Math.min(this.We,5e3),this.Ne(r,a),a;a.repoMatched=!0;let d=this.ht(c?.rootUri?.path||c?.rootUri?.fsPath||""),h=d&&l.startsWith(d)?l.slice(d.length).replace(/^\/+/,""):l;a.pathAttempted=h||l||"";let g=await c.log({maxEntries:1,path:a.pathAttempted}),y=Array.isArray(g)?g[0]:null,m=y?.commitDate||y?.authorDate||y?.date||y?.committerDate,D=m?new Date(m).getTime():null;a.author=y?.authorName||y?.author?.name||y?.author||null,a.message=y?.message||y?.subject||null,Number.isFinite(D)?a.timestampMs=D:(a.error="git-log-empty",a.expiresAt=n+Math.min(this.We,5e3))}catch(o){a.error=o?.message?`git-error:${o.message}`:"git-error",a.expiresAt=n+Math.min(this.We,5e3)}return this.Ne(r,a),a}async Wn(t,r){let n=r?.mtime?r.mtime instanceof Date?r.mtime:new Date(r.mtime):null,i=n&&typeof n.getTime=="function"?n.getTime():NaN,a=Number.isFinite(i)?n:null,o=t?.scheme||"file";if(!this.Kr(t))return{timestamp:a,source:a?"fs-stat":"none",gitAvailable:!1,gitError:null,repoMatched:null,pathAttempted:null};let s;try{s=await this.He(t)}catch(u){s={timestampMs:null,available:!1,error:u?.message?`git-error:${u.message}`:"git-error",repoMatched:null,pathAttempted:null}}if(s?.timestampMs)return{timestamp:new Date(s.timestampMs),source:"git",gitAvailable:s.available,gitError:s.error,repoMatched:s.repoMatched,pathAttempted:s.pathAttempted};let c=a?"fs-stat":"none";if(a&&o!=="file"){let u=Date.now()-a.getTime();u>=0&&u<=6e4?c="fs-stat-suspect":this._isWeb&&u>6e4&&Ae("web-fs-stat-limitation","info","Web mode timestamps may reflect workspace open time, not actual file modification time. Git extension would provide accurate timestamps if available.")}return this._isWeb&&o!=="file"&&(s?.error||!s?.available)?{timestamp:null,source:"web-unknown",gitAvailable:!1,gitError:s?.error||null,repoMatched:s?.repoMatched??null,pathAttempted:s?.pathAttempted||null}:{timestamp:a,source:c,gitAvailable:s?.available||!1,gitError:s?.error||null,repoMatched:s?.repoMatched??null,pathAttempted:s?.pathAttempted||null}}async pt(t,r,n={}){let i=f.workspace.getConfiguration("explorerDates"),a=n.workspaceKind||(this._isWeb?"web":"desktop"),o=i.get("freshnessSourcePolicy","auto"),s=this.Vr(t,o),c=this.Gr(s);if(c)return c;let u=await Ji({uri:t,stat:r,provider:this,config:i,workspaceKind:a});return this.Xr(s,u),u?.source==="unknown"&&this.Yr(u?.reason||"unknown",t,o),u}async Te(t={}){try{let r=t.stat?.mtime||t.stat?.birthtime||new Date;return`Modified: ${(r instanceof Date?r:new Date(r)).toISOString()}`}catch{return""}}clearAllCaches(){try{try{this.e&&typeof this.e.clear=="function"&&this.e.clear()}catch{}try{this.c&&typeof this.c.clear=="function"&&this.c.clear()}catch{}try{this.$&&(this.$.length=0)}catch{}try{this.I&&typeof this.I.clear=="function"&&this.I.clear()}catch{}try{this.Se&&(this.Se.length=0)}catch{}try{this.N&&typeof this.N.clear=="function"&&this.N.clear()}catch{}try{this.Ie&&(this.Ie.length=0)}catch{}try{this._advancedCache&&typeof this._advancedCache.clear=="function"&&this._advancedCache.clear()}catch{}try{this.z&&typeof this.z.clear=="function"&&this.z.clear()}catch{}try{this.b&&typeof this.b.clear=="function"&&this.b.clear()}catch{}}catch(t){this._logger?.debug&&this._logger.debug("clearAllCaches failed",t)}}Me(t){try{if(!this.b||this.b.size===0)return;let r=`${qr(t,{platform:process.platform})}::`;for(let n of this.b.keys())typeof n=="string"&&n.startsWith(r)&&this.b.delete(n)}catch{}}Zr(t={}){try{this.clearAllCaches()}catch{}try{this.refreshAll()}catch{}try{t?.head&&this._logger?.info&&this._logger.info("Git HEAD change detected; caches refreshed",{head:t.head})}catch{}}$r(){this.Wt||(this.Wt=!0,(async()=>{try{let t=f?.extensions?.getExtension?f.extensions.getExtension("vscode.git"):null;if(!t)return;if(!t.isActive&&typeof t.activate=="function")try{await t.activate()}catch{}let r=t.exports?.getAPI?.(1);if(!r)return;let n=i=>{try{if(!i||!i.state||typeof i.state.onDidChange!="function")return;let a=i.state.HEAD?.commit||i.state.HEAD?.name||null,o=i.state.onDidChange(()=>{let s=i.state.HEAD?.commit||i.state.HEAD?.name||null;s!==a&&(a=s,this.Zr({repo:i,head:s}))});o&&this.Ee.push(o)}catch{}};if(Array.isArray(r.repositories)&&r.repositories.forEach(i=>n(i)),typeof r.onDidOpenRepository=="function"){let i=r.onDidOpenRepository(a=>n(a));i&&this.Ee.push(i)}}catch(t){this._logger?.debug?.("Failed to register git HEAD watcher",t)}})())}refreshAll(){try{this.m.fire(void 0),Zi()}catch(t){this._logger?.debug&&this._logger.debug("refreshAll failed",t)}}applyPreviewSettings(t){try{t&&typeof t=="object"?(this.X=t,this._logger?.info&&this._logger.info("Preview settings applied",t)):(this.X=null,this._logger?.info&&this._logger.info("Preview settings cleared"));try{this.clearAllCaches()}catch{}this.refreshAll()}catch(r){this._logger?.debug&&this._logger.debug("applyPreviewSettings failed",r)}}refreshDecoration(t){try{try{this.Me(t)}catch{}this.m.fire(t)}catch(r){this._logger?.debug&&this._logger.debug("refreshDecoration failed",r)}}clearDecoration(t){try{try{this.Me(t)}catch{}let r=t?typeof t=="string"?t:ae(t):"",n=this.Ve?this.Ve(t):oa(r);try{this.e&&typeof this.e.delete=="function"&&this.e.delete(n)}catch{}try{this._advancedCache&&typeof this._advancedCache.delete=="function"&&this._advancedCache.delete(n)}catch{}try{this.m.fire(t)}catch{}}catch(r){this._logger?.debug&&this._logger.debug("clearDecoration failed",r)}}cr({badge:t,tooltip:r,color:n}){try{let i=require("vscode"),a=new i.FileDecoration(String(t||""),r||void 0,n||void 0);try{n&&(a.color=n)}catch{}return a}catch{return{badge:t,tooltip:r,color:n}}}ur(t,r,n,i,a){try{if(this.G)return;if(!this.e||typeof this.e.set!="function"||typeof this.e.size!="number")try{this.e=new Pe}catch{}if(!this.e||typeof this.e.set!="function")return;if(typeof this.e.size=="number"&&this.e.size>this.l)try{this.e.enforceLimit(this.l)}catch{}let o={decoration:r,timestamp:Date.now()};a&&(o.freshness=a),i&&(o.uri=i);try{this.e.set(t,o)}catch{}try{typeof this.ce=="function"&&this.ce()}catch(s){this._logger?.debug?.("monitorCachePressure from store failed",s)}if(this._advancedCache)try{this._advancedCache.set(t,r,{ttl:this.S}),this._logger?.debug?.(`Stored in advanced cache: ${n}`)}catch(s){this._logger?.debug?.(`Failed to store in advanced cache: ${s.message}`)}try{typeof this.le=="function"&&this.le()}catch(s){this._logger?.debug?.("maybeExtendCacheTimeout from store failed",s)}}catch(o){this._logger?.debug?.("storeDecorationInCache failed",o)}}getMetrics(){let t={decorationPool:{allocations:0,reuses:0,reusePercent:"0%"},badgeFlyweight:{allocations:0,reuses:0,reusePercent:"0%"},readableFlyweight:{allocations:0,reuses:0,reusePercent:"0%"}},r=this._metrics?.cacheHits||0,n=this._metrics?.cacheMisses||0,i=r+n>0?(r/(r+n)*100).toFixed(2)+"%":"0.00%";return{totalDecorations:this._metrics?.totalDecorations||0,cacheSize:this.c&&this.c.size||0,cacheHits:r,cacheMisses:n,cacheHitRate:i,workspaceScale:this.u||"unknown",allocationTelemetry:t,performanceTiming:{avgGitBlameMs:this._metrics?.gitBlameCalls?(this._metrics.gitBlameTimeMs/this._metrics.gitBlameCalls).toFixed(1):"0.0",avgFileStatMs:this._metrics?.fileStatCalls?(this._metrics.fileStatTimeMs/this._metrics.fileStatCalls).toFixed(1):"0.0",gitBlameCalls:this._metrics?.gitBlameCalls||0,fileStatCalls:this._metrics?.fileStatCalls||0},cacheDebugging:{cacheNamespace:this.qr}}}forceRefreshAllDecorations(){try{this._logger?.info&&this._logger.info("\u{1F504} Force refreshing ALL decorations...");try{this.e&&typeof this.e.clear=="function"&&this.e.clear()}catch{}try{this.c&&typeof this.c.clear=="function"&&this.c.clear()}catch{}try{this._advancedCache&&typeof this._advancedCache.clear=="function"&&this._advancedCache.clear()}catch{}try{this.m.fire(void 0)}catch{}this._logger?.info&&this._logger.info("\u{1F504} Triggered global decoration refresh")}catch(t){this._logger?.debug&&this._logger.debug("forceRefreshAllDecorations failed",t)}}startProviderCallMonitoring(){try{if(this.D){this._logger?.debug&&this._logger.debug("startProviderCallMonitoring called after dispose - no-op");return}if(this.Nt){this.Vt=0,this.Re=new Set,this._logger?.info&&this._logger.info("\u{1F4CA} Provider call monitoring restarted (counters reset)");return}this.Nt=!0,this.Vt=0,this.Re=new Set;let t=this.provideFileDecoration.bind(this);this.qe=t,this.provideFileDecoration=async(r,n)=>{try{this.Vt=(this.Vt||0)+1;let i=ae(r)||(r&&typeof r.toString=="function"?r.toString(!0):"unknown");this.Re.add(Re(i)),this._logger?.info&&this._logger.info(`\u{1F50D} Provider called ${this.Vt} times for: ${sa(r||i)}`)}catch{}return t(r,n)},this._logger?.info&&this._logger.info("\u{1F4CA} Started provider call monitoring")}catch(t){this._logger?.debug&&this._logger.debug("startProviderCallMonitoring failed",t)}}getProviderCallStats(){try{return{totalCalls:this.Vt||0,uniqueFiles:this.Re?this.Re.size:0,calledFiles:this.Re?Array.from(this.Re):[]}}catch{return{totalCalls:0,uniqueFiles:0,calledFiles:[]}}}async dispose(){if(this.D)return;this.D=!0,this.Be=!0;try{this._telemetryReportTimer&&(clearTimeout(this._telemetryReportTimer),this._telemetryReportTimer=null)}catch{}try{this.a&&(clearInterval(this.a),this.a=null)}catch{}try{if(this.i&&this.i.size){for(let r of this.i)clearTimeout(r);this.i.clear()}this.R=!1,this.ie=!1}catch{}try{this.L&&(clearTimeout(this.L),this.L=null)}catch{}try{this.C&&(clearTimeout(this.C),this.C=null)}catch{}try{try{this.ot({permanent:!0})}catch{}if(this.f&&typeof this.f.disposeFileWatchers=="function")try{this.f.disposeFileWatchers({permanent:!0})}catch{}this.f=null}catch{}try{this.te&&(clearTimeout(this.te),this.te=null)}catch{}try{this.m&&typeof this.m.dispose=="function"&&this.m.dispose()}catch{}try{if(Array.isArray(this.T)){for(let r of this.T)try{r.dispose&&r.dispose()}catch{}this.T.length=0}}catch{}try{if(Array.isArray(this.Ee)){for(let r of this.Ee)try{r.dispose&&r.dispose()}catch{}this.Ee.length=0}}catch{}try{if(Array.isArray(this.v)){for(let r of this.v)try{r.dispose&&r.dispose()}catch{}this.v.length=0}}catch{}let t=async r=>{try{r&&typeof r.dispose=="function"&&await r.dispose()}catch{}};await t(this._advancedCache),await t(this._batchProcessor),await t(this.rt),await t(this.pe),await t(this._workspaceIntelligence),await t(this._smartWatcherFallbackManager),await t(this.Or),await t(this.Nr);try{if(this.s&&typeof this.s.forEach=="function"&&(this.s.forEach(r=>{try{r&&typeof r.dispose=="function"&&r.dispose()}catch{}}),this.s.clear()),this.h&&typeof this.h.dispose=="function"){try{this.h.dispose()}catch{}this.h=void 0}this.d&&typeof this.d.forEach=="function"&&(this.d.forEach(r=>{try{r?.watcher?.dispose&&r.watcher.dispose()}catch{}}),this.d.clear())}catch{}try{this.e&&typeof this.e.clear=="function"&&this.e.clear()}catch{}try{this.c&&typeof this.c.clear=="function"&&this.c.clear()}catch{}try{this.I&&typeof this.I.clear=="function"&&this.I.clear()}catch{}try{this.N&&typeof this.N.clear=="function"&&this.N.clear()}catch{}try{this.lt&&this.lt.clear&&this.lt.clear()}catch{}try{this.ve&&this.ve.length&&(this.ve.length=0)}catch{}try{this._advancedCache=null,this._batchProcessor=null,this.rt=null,this.pe=null,this._workspaceIntelligence=null}catch{}try{this.Le&&typeof this.Le.dispose=="function"&&(this.Le.dispose(),this.Le=null)}catch{}try{this.w&&typeof this.w.dispose=="function"&&(this.w.dispose(),this.w=null)}catch{}try{if(this.qe&&typeof this.qe=="function"){try{this.provideFileDecoration=this.qe}catch{}this.qe=null,this.Nt=!1,this.Vt=0,this.Re=new Set}}catch{}try{this.ae=null,this.oe=null}catch{}this._logger?.info&&this._logger.info("FileDateDecorationProvider disposed")}};$r.exports={FileDateDecorationProviderImpl:xe,FileDateDecorationProvider:xe}});var Me=null;try{typeof require=="function"&&(Me=Br())}catch{}if(!Me&&typeof globalThis<"u"){let e=globalThis.explorerDatesChunks||globalThis.hr||null;e&&(Me=e.fileDateProviderImpl||e.fileDateProviderImpl||null)}var gt=Me||{};module.exports={FileDateDecorationProvider:gt.FileDateDecorationProvider,FileDateDecorationProviderImpl:gt.FileDateDecorationProviderImpl||gt.FileDateDecorationProvider}; +`,analysisCommandsDisabled:"Explorer Dates analysis commands are disabled. Shortcuts like Ctrl+Shift+M/H/A will not work until you enable explorerDates.enableAnalysisCommands.",analysisEnableNow:"Enable Now",analysisEnablePartially:"Enable partially succeeded. Update explorerDates.enableAnalysisCommands in remaining workspace folders manually.",analysisEnableFailed:"Enable failed: update explorerDates.enableAnalysisCommands in workspace settings.",workspaceTemplatesDisabled:"Workspace templates are disabled. Enable explorerDates.enableWorkspaceTemplates to use this command.",workspaceTemplatesDisabledSave:"Workspace templates are disabled. Enable explorerDates.enableWorkspaceTemplates to save templates.",enterTemplateName:"Enter template name",enterTemplateDescription:"Enter description (optional)",failedToOpenTemplateManager:e=>`Failed to open template manager: ${e}`,failedToSaveTemplate:e=>`Failed to save template: ${e}`,reportingDisabled:"Reporting features are disabled. Enable explorerDates.enableExportReporting to generate reports.",failedToGenerateReport:e=>`Failed to generate report: ${e}`,apiDisabled:"Explorer Dates API is disabled via settings.",failedToShowApiInformation:e=>`Failed to show API information: ${e}`,failedToShowWorkspaceActivity:e=>`Failed to show workspace activity: ${e}`,failedToShowPerformanceAnalytics:e=>`Failed to show performance analytics: ${e}`,failedToShowCacheDebugInfo:e=>`Failed to show cache debug info: ${e}`,noWorkspaceFolderOpen:"No workspace folder open",resetConfirm:"Reset Settings",resetCancel:"Cancel",resetSuccess:e=>`\u2705 Reset ${e} settings to defaults.`,validateNoIssues:"\u2705 Configuration is valid - no issues found!",validateFoundIssues:e=>`Found ${e} configuration issue(s). Would you like to see details?`,validateShowDetails:"Show Details",validateDismiss:"Dismiss",migrationNotificationMessage:e=>`Explorer Dates updated ${e} setting(s) for compatibility. Your configuration has been preserved.`,migrationViewChanges:"View Changes",migrationOpenSettings:"Open Settings",deprecatedPrompt:e=>`Explorer Dates found ${e} deprecated setting(s). Would you like to remove them?`,deprecatedClean:"Clean Up Now",deprecatedKeep:"Keep Old Settings",deprecatedAskLater:"Ask Later",showFileLocation:"Show File Location",teamConfigCorrupted:"Explorer Dates team configuration file appears to be corrupted. Please check the .explorer-dates-profiles.json file or restore from backup.",appliedFromTeamProfile:(e,t)=>`Applied ${e} Explorer Dates settings from team profile "${t}".`,documentedOverrides:"Documented Explorer Dates overrides in .vscode/explorer-dates-overrides.md",teamConfigMissingProfile:"Team configuration is missing an active profile.",ephemeralStorageEnospc:"Explorer Dates team configuration could not be saved because the disk is full.",ephemeralStorageGeneric:"Explorer Dates team configuration could not be saved because the workspace is read-only or permissions are restricted.",ephemeralStorageSuffix:" Changes will be kept in memory until VS Code restarts, so they may be lost."}};try{let e=dr();if(e&&typeof e=="object")for(let[t,r]of Object.entries(e)){z[t]||(z[t]={});for(let[n,i]of Object.entries(r))typeof z[t][n]>"u"&&(z[t][n]=i)}}catch{}var De=class{constructor(){this.Ce="en",this.w=null,this.ft(),typeof V.workspace.onDidChangeConfiguration=="function"?this.w=V.workspace.onDidChangeConfiguration(t=>{t.affectsConfiguration("explorerDates.locale")&&this.ft()}):this.w=null}ft(){let r=V.workspace.getConfiguration("explorerDates").get("locale","auto");if(r==="auto"){let n=V&&V.env&&typeof V.env.language=="string"?V.env.language:"en";try{r=String(n||"en").split("-")[0]}catch{r="en"}}z[r]||(r="en"),this.Ce=r}getString(t,...r){let i=(z[this.Ce]||z.en)[t];return typeof i=="function"?i(...r):i||z.en[t]||t}getCurrentLocale(){return this.Ce}formatDate(t,r={}){try{return t.toLocaleDateString(this.Ce,r)}catch{return t.toLocaleDateString("en",r)}}dispose(){this.w&&(this.w.dispose(),this.w=null),fe===this&&(fe=null)}},fe=null;function xi(){return fe||(fe=new De),fe}fr.exports={LocalizationManager:De,getLocalization:xi}});var st=E((Wa,gr)=>{function Mi(e){let t=require("vscode");function r(l,d,h,g,y,m){if(!e.Gt||!g)return m&&(m.misses++,m.allocations++),y();if(l.has(g))return m&&(m.hits++,m.reuses++),l.get(g);m&&(m.misses++,m.allocations++);let D=y();if(l.set(g,D),d.push(g),d.length>h){let _=d.shift();_&&l.delete(_)}return D}function n({formatType:l,diffMinutes:d,diffHours:h,diffDays:g,diffWeeks:y,diffMonths:m,date:D}){let _=(M,F=null)=>({value:M,key:F?`badge:${l||"default"}:${F}`:null});switch(l){case"relative-short":case"relative-long":return d<1?_("\u25CF\u25CF","just"):d<60?_(`${Math.min(d,99)}m`,`m:${Math.min(d,99)}`):h<24?_(`${Math.min(h,23)}h`,`h:${Math.min(h,23)}`):g<7?_(`${g}d`,`d:${g}`):y<4?_(`${y}w`,`w:${y}`):m<12?_(`${m}M`,`M:${m}`):_("1y","y:1");case"absolute-short":case"absolute-long":{let M=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],F=D.getDate(),X=`${M[D.getMonth()]}${F<10?"0"+F:F}`,w=[D.getMonth(),F];return l==="absolute-long"&&w.push(D.getFullYear()),_(X,`abs:${w.join("-")}`)}case"technical":return d<60?_(`${d}m`,`tech:m:${d}`):h<24?_(`${h}h`,`tech:h:${h}`):_(`${g}d`,`tech:d:${g}`);case"minimal":return h<1?_("\u2022\u2022","min:now"):h<24?_("\u25CB\u25CB","min:hours"):_("\u2500\u2500","min:days");default:return d<60?_(`${d}m`,`smart:m:${d}`):h<24?_(`${h}h`,`smart:h:${h}`):_(`${g}d`,`smart:d:${g}`)}}function i(l,d,h=null){let y=h!==null?h:new Date().getTime()-l.getTime();if(y<0)return e._logger.debug(`File has future modification time (diffMs: ${y}), treating as just modified`),"\u25CF\u25CF";let m=Math.floor(y/(1e3*60)),D=Math.floor(y/(1e3*60*60)),_=Math.floor(y/(1e3*60*60*24)),M=Math.floor(_/7),F=Math.floor(_/30),X=n({formatType:d,diffMinutes:m,diffHours:D,diffDays:_,diffWeeks:M,diffMonths:F,date:l});return r(e.I,e.Se,e.Xt,X.key,()=>X.value,e.Yt)}function a(l){if(!l)return"none";if(typeof l=="string")return l;if(l.id)return l.id;try{return JSON.stringify(l)}catch{return String(l)}}function o(l,d,h){let g=l||"",y=d||"",m=a(h);return`${g}::${m}::${y}`}function s({badge:l,tooltip:d,color:h}){if(!e.Zt){e.H.misses++,e.H.allocations++;let m=new t.FileDecoration(l||"??");return d&&(m.tooltip=d),h&&(m.color=h),m.propagate=!1,m}if(!l)return e.H.allocations++,new t.FileDecoration("??");let g=o(l,d,h);if(g&&e.c.has(g))return e.H.hits++,e.H.reuses++,e.c.get(g);let y=new t.FileDecoration(l);if(d&&(y.tooltip=d),h&&(y.color=h),y.propagate=!1,e.H.allocations++,g&&(e.c.set(g,y),e.$.push(g),e.$.length>e.Jt)){let m=e.$.shift();m&&m!==g&&e.c.delete(m)}return e.H.misses++,y}function c(l="unspecified"){e.c.size!==0&&(e.c.clear(),e.$.length=0,e._logger.debug(`\u{1F9FC} Cleared decoration pool (${l})`))}async function u({filePath:l,stat:d,gitBlame:h,shouldUseAccessibleTooltips:g,fileSizeFormat:y}){if(g){let D=e._accessibility?.getAccessibleTooltip?.(l,d.mtime,d.birthtime,d.size,h);if(D)return D}let m=[];try{let D=e.p.formatDate(d.mtime);if(m.push(`${D}`),y&&typeof d.size=="number"){let _=e.gt(d.size,y);m.push(_)}h&&h.author&&m.push(`Author: ${h.author}`)}catch(D){e._logger.debug("Tooltip builder failed",D)}return m.join(" \u2014 ")}return{acquireDecorationFromPool:s,clearDecorationPool:c,tn:o,rn:a,Qt:i,nn:n,er:r,Te:u}}gr.exports={createDecorationLogic:Mi}});var Ce=E((exports,module)=>{function createDecorationProviderHelpers(provider){let vscode=require("vscode"),{diagLogOnce,diagLog,isWebDiagnosticsEnabled}=he(),{formatBadge,formatTooltip}=it(),decorationDiagCount=0,maxDecorationDiag=20,CONTRIBUTED_CUSTOM_COLOR_TOKENS=new Set(["explorerDates.customColor.veryRecent","explorerDates.customColor.recent","explorerDates.customColor.old"]),isWebRuntime=(()=>{try{return vscode?.env?.uiKind===vscode?.UIKind?.Web}catch{return!1}})(),getFileName,getExtension,normalizePath,getUriPath,ensureDate;try{let e=K();e&&(getFileName=e.getFileName,getExtension=e.getExtension,normalizePath=e.normalizePath,getUriPath=e.getUriPath,ensureDate=e.ensureDate)}catch{}if(!getFileName||!ensureDate){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function")try{let e=dynamicRequire("../utils/pathUtils"),t=dynamicRequire("../utils/dateHelpers");getFileName=getFileName||e.getFileName,getExtension=getExtension||e.getExtension,normalizePath=normalizePath||e.normalizePath,getUriPath=getUriPath||e.getUriPath,ensureDate=ensureDate||t.ensureDate}catch{}}catch{}getFileName||(getFileName=e=>{let t=String(e||""),r=t.replace(/\\/g,"/").lastIndexOf("/");return r===-1?t:t.substring(r+1)}),getExtension||(getExtension=e=>{let t=String(e||""),r=t.lastIndexOf(".");return r<=0?"":t.substring(r).toLowerCase()}),normalizePath||(normalizePath=(e="")=>(e||"").toString().replace(/\\/g,"/")),getUriPath||(getUriPath=(e="")=>e?typeof e=="string"?e:e?.fsPath?e.fsPath:e?.path?e.path:String(e):""),ensureDate||(ensureDate=e=>e instanceof Date?e:typeof e=="number"?new Date(e):typeof e=="string"?isNaN(Date.parse(e))?new Date:new Date(Date.parse(e)):new Date)}async function provideDecoration(e,t){let r=!1,n=null,i,a=null,o=null,s=null,c=null,u=!1,l=null,d=null,h=null,g=null,y=null,m=null,D=!1,_=()=>isWebDiagnosticsEnabled&&isWebDiagnosticsEnabled()&&decorationDiagCount{let w=null;try{w=vscode.workspace.getConfiguration("explorerDates")}catch{w=null}let U=w?w.get("colorScheme","none"):"none",b=w?w.get("showDateDecorations",!0):!0,H=typeof provider._performanceMode=="boolean"?provider._performanceMode:w?w.get("performanceMode",!1):!1,oe=isWebRuntime&&w?!!w.get("webDiagnosticsBuiltinColors",!1):!1;return{isWeb:isWebRuntime,isCanary:!1,builtinColorFallbackActive:oe,colorScheme:U,effectiveColorScheme:U,showDateDecorations:b,performanceMode:H,featureLevel:provider.B,previewSettings:!!provider.X}},F=w=>{if(!_()||r)return;decorationDiagCount+=1,r=!0;let b={...M(),...w};!b.scheme&&n&&(b.scheme=n),b.effectiveColorScheme||(b.effectiveColorScheme=b.colorScheme),typeof b.hasColor>"u"&&(b.hasColor=!!b.color),typeof b.badge>"u"&&(b.badge=null),typeof b.propagate>"u"&&(b.propagate=null),typeof b.decorationKeys>"u"&&(b.decorationKeys=null),typeof b.nullReason>"u"&&(b.nullReason=null),typeof b.timestampSource>"u"&&(b.timestampSource="not-attempted"),typeof b.gitRecencyAvailable>"u"&&(b.gitRecencyAvailable=!1),typeof b.gitRecencyError>"u"&&(b.gitRecencyError=null),typeof b.resolvedTimestampMs>"u"&&(b.resolvedTimestampMs=null),typeof b.gitRepoMatched>"u"&&(b.gitRepoMatched=null),typeof b.gitPathAttempted>"u"&&(b.gitPathAttempted=null),b.themeTokenSource||(b.isCanary?b.themeTokenSource="canary":b.builtinColorFallbackActive?b.themeTokenSource="builtin-fallback":typeof b.color=="string"&&b.color.startsWith("explorerDates.")?b.themeTokenSource="custom-token":b.color?b.themeTokenSource="builtin-token":b.themeTokenSource=null),diagLog("info","Decoration return sample",b)},X=w=>{if(!(!_()||r))try{F(w)}catch{}};try{if(provider.Be){a="disposed";return}if(!e){a="no-uri";return}let w=e.fsPath||e.path||"";n=e.scheme||"file";let U=vscode.workspace.getConfiguration("explorerDates"),b=U.get("performanceMode",!1);if(b&&typeof b!="boolean")return a="invalid-performanceMode",null;if(w&&w.includes("\0"))return a="invalid-path",null;let H=getUriPath(e);if(!H){a="missing-path";return}let oe=provider.Ke?provider.Ke(H):getFileName(H)||H,mt=normalizePath(H),Kr=n||"file";if(typeof provider.je!="function"){diagLogOnce("decorations-fallback-provider","warn","Decoration fallback active (missing provider helpers)");try{let A=await provider._fileSystem.stat(e);if(!A){a="no-stat";return}let Y=A.mtime instanceof Date?A.mtime:A.mtime?new Date(A.mtime):null,Ie=Y&&typeof Y.getTime=="function"?Y.getTime():NaN;if(!Number.isFinite(Ie)){a="invalid-stat";return}let se=Date.now()-Y.getTime(),We=se<1440*60*1e3?"\u2022":se<10080*60*1e3?"\u25E6":"\xB7",Le=`Modified: ${Y.toISOString()}`,me=new vscode.FileDecoration(We,Le);return i=me,y=We,h=!1,g=null,m=me?.propagate,me}catch{a="fallback-error";return}}if(!provider.je(e,"provideFileDecoration")?.isValid){a="invalid-uri";return}if(await provider.tr(e)){a="excluded";return}return i=await provider.rr(w,async()=>{if(t?.isCancellationRequested||provider.Be){a=t?.isCancellationRequested?"cancelled":"disposed";return}let A=(k,pe)=>provider.X&&Object.prototype.hasOwnProperty.call(provider.X,k)?provider.X[k]:vscode.workspace.getConfiguration("explorerDates").get(k,pe);if(isWebRuntime&&A("webDiagnosticsCanary",!1)&&isWebDiagnosticsEnabled&&isWebDiagnosticsEnabled()&&decorationDiagCount=provider.ue;if(provider.ir>provider.ue*.8&&Le){diagLogOnce("decorations-backpressure","warn","Decoration backpressure fallback active");let k=provider.ar(e,Date.now());return y=k?.badge||null,h=!!k?.color,g=k?.color&&k?.color.id?k.color.id:k?.color||null,m=k?.propagate,a="backpressure",k}provider.or(),provider._metrics.cacheMisses++;let N=null;if(!Ie&&provider._workspaceIntelligence?.incrementalIndexer){let k=provider._workspaceIntelligence.incrementalIndexer.getIndexedStat(w);k&&(N=k)}let pt=Date.now();if(!N){try{N=await provider._fileSystem.stat(e)}catch(k){if(provider._metrics.fileStatTimeMs+=Date.now()-pt,provider._metrics.fileStatCalls++,provider.sr(k)){a="stat-not-found";return}if(Kr!=="file"){a="stat-failed";return}throw a="stat-failed",k}provider._workspaceIntelligence?.incrementalIndexer&&provider._workspaceIntelligence.incrementalIndexer.primeFromStat(e,N)}if(provider._metrics.fileStatTimeMs+=Date.now()-pt,provider._metrics.fileStatCalls++,!(typeof N.isFile=="function"?N.isFile():!0)){a="not-regular-file";return}u=!0;let v=null;try{typeof provider.pt=="function"&&(v=await provider.pt(e,N,{filePath:w,fileLabel:oe}))}catch(k){c={source:"unknown",gitAvailable:!1,gitError:k?.message?`resolver-error:${k.message}`:"resolver-error",repoMatched:null,pathAttempted:null}}if((!v||v.bucket==="unknown"||v.source==="unknown")&&!A("freshnessShowUnknown",!0)){a="freshness-unknown";return}let Oe=A("colorScheme","none");provider._performanceMode&&Oe!=="custom"&&(Oe="none");let jr=A("fileSizeFormat","auto"),Z=provider.yt,Vr=Z&&typeof Z.Te=="function"?Z.Te:provider.Te,Gr=Z&&typeof Z.acquireDecorationFromPool=="function"?Z.acquireDecorationFromPool:provider.cr,Ne=formatBadge(v?.bucket||"unknown",v?.source||"unknown",U,v?.confidence||"low");if(!Ne){a="badge-suppressed";return}let $=v?.exactTimestamp?provider.lr(new Date(v.exactTimestamp),Oe,w):void 0,Xr=formatTooltip(v,U)||await Vr({filePath:w,resourceUri:e,stat:N,badgeDetails:{},gitBlame:null,shouldUseAccessibleTooltips:!1,fileSizeFormat:jr,isCodeFile:!1}),qe=Gr({badge:Ne,tooltip:Xr,color:$});return g=$&&typeof $=="object"&&"id"in $?$.id:$||null,h=!!$,y=String(Ne||""),m=qe?.propagate,typeof g=="string"&&g.startsWith("explorerDates.customColor.")&&!CONTRIBUTED_CUSTOM_COLOR_TOKENS.has(g)&&diagLogOnce(`missing-custom-color-${g}`,"warn","Custom color token missing from contributes.colors",{colorId:g,knownTokens:Array.from(CONTRIBUTED_CUSTOM_COLOR_TOKENS)}),l=v?.exactTimestamp||null,c=c||{source:v?.source||"unknown",bucket:v?.bucket||"unknown",confidence:v?.confidence||"low",reason:v?.reason||null,attempts:v?.attempts||null,gitAvailable:v?.source==="git",gitError:null,repoMatched:null,pathAttempted:null},provider.ur(se,qe,oe,e,v),qe}),i}catch(w){o=w?.name||"Error",s=w?.message||String(w),a=a||"exception";return}finally{if(i){if(d==null)try{d=Object.keys(i||{})}catch{d=null}if(y==null&&typeof i.badge<"u"&&(y=i.badge),m==null&&typeof i.propagate<"u"&&(m=i.propagate),g==null&&typeof i.color<"u")try{g=i.color&&i.color.id?i.color.id:i.color}catch{g=i.color}h==null&&typeof g<"u"&&(h=!!g)}let w={uri:e?getFileName(getUriPath(e)||""):null,scheme:n,isCanary:D,badge:y,hasColor:h,color:g,propagate:m,decorationKeys:d,nullReason:i?null:a||"unknown",timestampSource:c?.source||(u?"none":"not-attempted"),gitRecencyAvailable:!!c?.gitAvailable,gitRecencyError:c?.gitError||null,resolvedTimestampMs:l,gitRepoMatched:c?.repoMatched??null,gitPathAttempted:c?.pathAttempted||null,freshnessBucket:c?.bucket||null,freshnessSource:c?.source||null,freshnessConfidence:c?.confidence||null,freshnessReason:c?.reason||null,freshnessAttempts:c?.attempts||null,exceptionName:o,exceptionMessage:s};X(w)}}return{provideDecoration}}module.exports={createDecorationProviderHelpers}});var ct=E((La,yr)=>{function mr(e){!e._allocationTelemetryEnabled||e._telemetryReportTimer||(e._telemetryReportTimer=setTimeout(()=>{e._telemetryReportTimer=null,pr(e),mr(e)},e._telemetryReportInterval))}function pr(e){let t=e.getMetrics().allocationTelemetry,r=t.decorationPool.allocations+t.badgeFlyweight.allocations+t.readableFlyweight.allocations,n=t.decorationPool.reuses+t.badgeFlyweight.reuses+t.readableFlyweight.reuses;(r>0||n>0)&&e._logger?.info?.("\u{1F9EE} Allocation telemetry report",{timestamp:new Date().toISOString(),pool:{allocations:t.decorationPool.allocations,reuses:t.decorationPool.reuses,reuseRate:t.decorationPool.reusePercent+"%"},badgeFlyweight:{allocations:t.badgeFlyweight.allocations,reuses:t.badgeFlyweight.reuses,reuseRate:t.badgeFlyweight.reusePercent+"%"},readableFlyweight:{allocations:t.readableFlyweight.allocations,reuses:t.readableFlyweight.reuses,reuseRate:t.readableFlyweight.reusePercent+"%"},summary:{totalAllocations:r,totalReuses:n,overallReuseRate:r+n>0?(n/(r+n)*100).toFixed(1)+"%":"0%"},decorationsProcessed:e._metrics.totalDecorations,cacheHitRate:e.getMetrics().cacheHitRate})}yr.exports={scheduleTelemetryReport:mr,reportAllocationTelemetry:pr}});var br=E((exports,module)=>{var CHUNK_SIZES={onboarding:34,analysisCommands:23,exportReporting:17,extensionApi:15,workspaceTemplates:14,advancedCache:28,workspaceIntelligence:31,incrementalWorkers:19},BASE_BUNDLE_SIZE=99;function _getPresetDefinitionsSync(){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=dynamicRequire("./chunks/preset-definitions-chunk");if(e&&e.PRESET_DEFINITIONS)return e.PRESET_DEFINITIONS}}catch{}let FALLBACK_PRESET={minimal:{id:"minimal",name:"Minimal",description:"Lean setup that prioritizes responsiveness in large repos.",targetScenarios:["Large repos","Low resources","Minimal UI"],settings:{"explorerDates.performanceMode":!0,"explorerDates.showDateDecorations":!0}},balanced:{id:"balanced",name:"Balanced",description:"Default feature mix for most workspaces.",targetScenarios:["General development","Mixed workloads"],settings:{"explorerDates.enableOnboardingSystem":!0,"explorerDates.enableAnalysisCommands":!0,"explorerDates.performanceMode":!1,"explorerDates.dateDecorationFormat":"smart","explorerDates.colorScheme":"recency","explorerDates.badgePriority":"time"}},"web-development":{id:"web-development",name:"Web Development",description:"Optimized for frontend and full-stack web projects.",targetScenarios:["Web apps","Frontend teams"],settings:{"explorerDates.enableOnboardingSystem":!0,"explorerDates.dateDecorationFormat":"smart","explorerDates.colorScheme":"file-type","explorerDates.badgePriority":"time"}},enterprise:{id:"enterprise",name:"Enterprise",description:"Full feature set with reporting and integrations enabled.",targetScenarios:["Large teams","Governed environments"],settings:{"explorerDates.enableExportReporting":!0,"explorerDates.enableExtensionApi":!0,"explorerDates.dateDecorationFormat":"smart","explorerDates.colorScheme":"recency","explorerDates.badgePriority":"time"}},"data-science":{id:"data-science",name:"Data Science",description:"Insight-focused profile for data-heavy projects.",targetScenarios:["Data analysis","Research workflows"],settings:{"explorerDates.enableWorkspaceIntelligence":!0,"explorerDates.dateDecorationFormat":"iso-detailed","explorerDates.colorScheme":"recency","explorerDates.badgePriority":"time"}}};return FALLBACK_PRESET}var PRESET_DEFINITIONS=_getPresetDefinitionsSync(),RESTART_REQUIRED_SETTINGS=new Set(["enableOnboardingSystem","enableAnalysisCommands","enableExportReporting","enableExtensionApi","enableWorkspaceTemplates","enableAdvancedCache","enableWorkspaceIntelligence","enableIncrementalWorkers","performanceMode","smartFileWatching"]);function calculateBundleSize(e){let t=BASE_BUNDLE_SIZE;return e["explorerDates.enableOnboardingSystem"]&&(t+=CHUNK_SIZES.onboarding),e["explorerDates.enableAnalysisCommands"]&&(t+=CHUNK_SIZES.analysisCommands),e["explorerDates.enableExportReporting"]&&(t+=CHUNK_SIZES.exportReporting),e["explorerDates.enableExtensionApi"]&&(t+=CHUNK_SIZES.extensionApi),e["explorerDates.enableWorkspaceTemplates"]&&(t+=CHUNK_SIZES.workspaceTemplates),e["explorerDates.enableAdvancedCache"]&&(t+=CHUNK_SIZES.advancedCache),e["explorerDates.enableWorkspaceIntelligence"]&&(t+=CHUNK_SIZES.workspaceIntelligence),e["explorerDates.enableIncrementalWorkers"]&&(t+=CHUNK_SIZES.incrementalWorkers),t}function getDefaultPresetForProfile(e){let t=PRESET_DEFINITIONS;switch(e){case"minimal":case"extreme":return t.minimal||t.minimal;case"balanced":return t.balanced||t.balanced;case"web-development":return t["web-development"]||t["web-development"];case"data-science":return t["data-science"]||t["data-science"];case"enterprise":return t.enterprise||t.enterprise;default:return t.balanced||t.balanced}}module.exports={PRESET_DEFINITIONS,CHUNK_SIZES,BASE_BUNDLE_SIZE,RESTART_REQUIRED_SETTINGS,calculateBundleSize,getDefaultPresetForProfile}});var _r=E((Oa,Er)=>{var Se={onboarding:"src/chunks/onboarding-chunk",onboardingAssets:"src/chunks/onboarding-assets-chunk",reporting:"src/chunks/reporting-chunk",templates:"src/chunks/templates-chunk",analysis:"src/chunks/analysis-chunk",diagnostics:"src/chunks/diagnostics-chunk",extensionApi:"src/chunks/extension-api-chunk",advancedCache:"src/chunks/advancedCache-chunk",batchProcessor:"src/chunks/batchProcessor-chunk",decorationsAdvanced:"src/chunks/decorations-advanced",decorationsStatic:"src/chunks/decorations-static",workspaceIntelligence:"src/chunks/workspaceIntelligence",decorationLogic:"src/chunks/decoration-logic-chunk",decorationProvide:"src/chunks/decoration-provide-chunk",decorationHelpers:"src/chunks/decoration-helpers-chunk",decorationBatch:"src/chunks/decoration-batch-chunk",decorationWorkspaceIntel:"src/chunks/decoration-workspace-intel-chunk",decorationTelemetry:"src/chunks/decoration-telemetry-chunk",decorationRefresh:"src/chunks/decoration-refresh-chunk",decorationMemory:"src/chunks/decoration-memory-chunk",decorationPool:"src/chunks/decoration-pool-chunk",providerInit:"src/chunks/provider-init-chunk",fileDateProviderImpl:"src/chunks/file-date-provider-impl",fileDateProviderImplExport:"src/chunks/file-date-provider-impl-export",utilsShared:"src/chunks/utils-shared-chunk",incrementalWorkers:"src/chunks/incrementalWorkers",incrementalIndexer:"src/chunks/incrementalIndexer-chunk",uiAdapters:"src/chunks/ui-adapters",gitInsights:"src/chunks/gitInsights-chunk",smartWatcherFallback:"src/chunks/smartWatcherFallback-chunk",runtimeManagement:"src/chunks/runtime-management",runtimeManagementHeavy:"src/chunks/runtime-management-heavy",teamPersistence:"src/chunks/team-persistence-chunk",teamPersistenceUI:"src/chunks/team-persistence-ui-chunk",teamPersistenceLogic:"src/chunks/team-persistence-logic-chunk",settingsCoordinatorImpl:"src/chunks/settings-coordinator-impl-chunk",logger:"src/chunks/logger-chunk",loggerImpl:"src/chunks/logger-impl-chunk"};function Ii(e){return Se[e]||null}function Wi(){return Object.keys(Se)}function Li(e){let t={};for(let[r,n]of Object.entries(Se))t[r]=()=>e(`./${n}`);return t}var Oi=new Set(["gitInsights","reporting","templates","advancedCache","runtimeManagementHeavy","incrementalWorkers"]);Er.exports={CHUNK_MAP:Se,WEB_EXCLUDED_CHUNKS:Oi,getChunkSourcePath:Ii,getAllChunkNames:Wi,generateDevLoaderMap:Li}});var G=E((exports,module)=>{var FEATURE_FLAGS_GLOBAL_KEY="__explorerDatesFeatureFlags";function registerFeatureFlagsGlobal(e){if(e)try{typeof globalThis<"u"&&(globalThis[FEATURE_FLAGS_GLOBAL_KEY]=e)}catch{}}function loadFeatureFlagsFallback(){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function")return dynamicRequire("../featureFlags")}catch{}return null}function getFeatureFlagsGlobal(){try{if(typeof globalThis<"u"&&globalThis[FEATURE_FLAGS_GLOBAL_KEY])return globalThis[FEATURE_FLAGS_GLOBAL_KEY]}catch{}return loadFeatureFlagsFallback()}module.exports={FEATURE_FLAGS_GLOBAL_KEY,registerFeatureFlagsGlobal,getFeatureFlagsGlobal}});var ge=E((exports,module)=>{var getLogger=()=>{try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=dynamicRequire("./chunks/logger-chunk");if(e&&typeof e.getLogger=="function")return getLogger=e.getLogger,getLogger()}}catch{}try{return getLogger=q().getLogger,getLogger()}catch{return getLogger=()=>({debug:(()=>{})?.bind(console)||console.log,info:(()=>{}).bind(console),warn:(()=>{}).bind(console),error:(()=>{}).bind(console)}),getLogger()}},{CHUNK_SIZES}=br(),{getChunkSourcePath,getAllChunkNames}=_r(),{registerFeatureFlagsGlobal}=G(),{isWebEnvironment}=J(),featureLogger=null,env=typeof process<"u"&&process.env?process.env:{},DEFAULT_CHUNK_TIMEOUT_MS=Number(env.EXPLORER_DATES_CHUNK_TIMEOUT||(env.NODE_ENV==="test"?1e3:5e3)),NETWORK_ERROR_CODES=new Set(["ENOTFOUND","ECONNRESET","ECONNREFUSED","EAI_AGAIN","ETIMEDOUT","EHOSTUNREACH"]),BUILT_CHUNK_CACHE=new Map,CHUNK_METHOD_ALIASES={reporting:"exportReporting",templates:"workspaceTemplates",analysis:"analysisCommands"},DEV_CHUNK_PATH_CACHE=new Map,LAST_FEATURE_FAILURES=new Map;function getDevChunkImportPath(e){if(DEV_CHUNK_PATH_CACHE.has(e))return DEV_CHUNK_PATH_CACHE.get(e);let t=getChunkSourcePath(e);if(!t)return DEV_CHUNK_PATH_CACHE.set(e,null),null;let r=t;return r.startsWith("src/")&&(r=r.slice(4)),r.startsWith("./")||(r=`./${r}`),DEV_CHUNK_PATH_CACHE.set(e,r),r}function resolveNodeDependencies(){if(nativeDepsResolved)return!!(nativePath&&nativeFs);if(nativeDepsResolved=!0,!isNodeLikeRuntime())return!1;try{nativePath=eval("require")("path"),nativeFs=eval("require")("fs")}catch{nativePath=null,nativeFs=null}return!!(nativePath&&nativeFs)}var nativeDepsResolved=!1,nativePath=null,nativeFs=null;function isWebRuntime(){try{return isWebEnvironment()?!0:typeof process<"u"&&process?.env?.VSCODE_WEB==="true"}catch{return!1}}function isNodeLikeRuntime(){return typeof process<"u"&&!!process.versions?.node&&!isWebRuntime()}function getChunkTimeoutMs(){return DEFAULT_CHUNK_TIMEOUT_MS>0?DEFAULT_CHUNK_TIMEOUT_MS:0}function logFeature(e,t,r){featureLogger||(featureLogger=getLogger());let n=featureLogger;typeof n[e]=="function"?n[e](t,r):n.info(t,r)}function logFeatureDisabled(e,t){logFeature("info","Feature disabled via configuration",{feature:e,savedKB:t&&CHUNK_SIZES[t]!==void 0?CHUNK_SIZES[t]:void 0})}function isLikelyNetworkIssue(e){if(!e)return!1;if(e.code&&NETWORK_ERROR_CODES.has(e.code))return!0;let t=(e.message||"").toLowerCase();return t.includes("network")||t.includes("fetch")||t.includes("timed out")}function runWithChunkTimeout(e,t){let r=getChunkTimeoutMs(),n=()=>{try{return Promise.resolve(e())}catch(i){return Promise.reject(i)}};return r?new Promise((i,a)=>{let o=!1,s=setTimeout(()=>{if(o)return;o=!0;let c=new Error(`Chunk "${t}" load timed out after ${r}ms`);c.code="CHUNK_TIMEOUT",a(c)},r);n().then(c=>{o||(o=!0,clearTimeout(s),i(c))}).catch(c=>{o||(o=!0,clearTimeout(s),a(c))})}):n()}function logResolverFailure(e,t){if(!t)return;let r={chunkName:e,error:t.message,code:t.code,networkIssue:isLikelyNetworkIssue(t),timedOut:t.code==="CHUNK_TIMEOUT"},n=r.networkIssue||r.timedOut?"warn":"error";logFeature(n,"Chunk resolver failed",r)}function tryLoadBuiltChunk(e){if(!e||!resolveNodeDependencies()||typeof nativeFs?.existsSync!="function")return null;if(BUILT_CHUNK_CACHE.has(e))return BUILT_CHUNK_CACHE.get(e);let t=[];typeof __dirname=="string"&&nativePath&&(t.push(nativePath.join(__dirname,"chunks",`${e}.js`)),t.push(nativePath.join(__dirname,"..","dist","chunks",`${e}.js`)));for(let r of t)try{if(!r||!nativeFs.existsSync(r))continue;let n=require(r),i=n?.default||n;return BUILT_CHUNK_CACHE.set(e,i||null),i&&logFeature("info","Loaded chunk via built artifact fallback",{chunkName:e,path:r}),i}catch(n){logFeature("warn","Built chunk fallback failed",{chunkName:e,path:r,error:n.message})}return BUILT_CHUNK_CACHE.set(e,null),null}function tryRequireDevChunk(e){if(isWebRuntime())return null;let t=getDevChunkImportPath(e);if(!t)return null;try{let r=require(t);return r?.default||r}catch(r){(r.code!=="MODULE_NOT_FOUND"||typeof r.message=="string"&&!r.message.includes(t))&&logFeature("debug","Dev chunk require failed",{chunkName:e,importPath:t,error:r.message})}return null}function tryRequireLocalBuiltChunk(e){if(isWebRuntime())return null;let t=`./chunks/${e}`;try{let r=require(t);return r?.default||r}catch(r){r.code==="MODULE_NOT_FOUND"||logFeature("debug","Local chunk require failed",{chunkName:e,importPath:t,error:r.message})}return null}function getSavingsKey(e){return e in CHUNK_SIZES?e:CHUNK_METHOD_ALIASES[e]||null}function announceChunkSavings(e){let t=getSavingsKey(e);if(!t)return;let r=CHUNK_SIZES[t];if(!r)return;let i=`\u{1F4BE} ${t===e||!e?t:`${t} (requested as "${e}")`} chunk unavailable - keeping the feature disabled is saving ~${r}KB`;logFeature("info","Chunk savings applied",{chunkName:t,requestedName:e,savedKB:r})}var getFeatureConfig=()=>{try{let t=require("vscode").workspace.getConfiguration("explorerDates"),r=isWebRuntime(),n=i=>r?!1:i;return{enableOnboarding:t.get("enableOnboardingSystem",!0),enableExportReporting:n(t.get("enableExportReporting",!0)),enableWorkspaceTemplates:n(t.get("enableWorkspaceTemplates",!0)),enableAnalysisCommands:t.get("enableAnalysisCommands",!0),enableAdvancedCache:n(t.get("enableAdvancedCache",!0)),enableWorkspaceIntelligence:n(t.get("enableWorkspaceIntelligence",!0)),enableIncrementalWorkers:n(t.get("enableIncrementalWorkers",!1)),enableGitInsights:n(t.get("enableGitInsights",!0)),enableExtensionApi:t.get("enableExtensionApi",!0)}}catch{let e=isWebRuntime(),t=r=>e?!1:r;return{enableOnboarding:!0,enableExportReporting:t(!0),enableWorkspaceTemplates:t(!0),enableAnalysisCommands:!0,enableAdvancedCache:t(!0),enableWorkspaceIntelligence:t(!0),enableIncrementalWorkers:t(!1),enableGitInsights:t(!0),enableExtensionApi:!0}}},featureLoaders=new Map,chunkResolver=null;function setFeatureChunkResolver(e){if(e&&typeof e!="function")throw new Error("Feature chunk resolver must be a function");chunkResolver=e||null}function registerFeatureLoader(e,t){if(typeof t!="function")throw new Error(`Feature loader for "${e}" must be a function`);featureLoaders.set(e,t)}function unregisterFeatureLoader(e){featureLoaders.delete(e)}function clearFeatureLoaders(){featureLoaders.clear()}async function loadFeatureModule(e){LAST_FEATURE_FAILURES.delete(e);let t=featureLoaders.get(e);if(!t&&chunkResolver&&(t=()=>chunkResolver(e)),!t)return logFeature("warn","No loader registered for feature",{feature:e}),null;try{return await runWithChunkTimeout(()=>t(),e)}catch(r){return LAST_FEATURE_FAILURES.set(e,r),logFeature("warn","Feature loader failed",{feature:e,error:r.message,code:r.code,networkIssue:isLikelyNetworkIssue(r)}),announceChunkSavings(e),null}}function getFeatureLoadFailure(e){return LAST_FEATURE_FAILURES.get(e)}function registerDefaultLoaders(){getAllChunkNames().forEach(t=>{featureLoaders.has(t)||registerFeatureLoader(t,createDefaultLoader(t))})}function createDefaultLoader(e){return async()=>{if(chunkResolver&&typeof chunkResolver=="function")try{let i=await runWithChunkTimeout(()=>chunkResolver(e),e);if(i)return i;logFeature("info","Chunk resolver returned no module",{chunkName:e})}catch(i){logResolverFailure(e,i)}let t=tryRequireDevChunk(e);if(t)return t;let r=tryRequireLocalBuiltChunk(e);if(r)return r;let n=tryLoadBuiltChunk(e);return n||(logFeature("warn","No built artifact available for chunk",{chunkName:e}),null)}}var featureFlags={async onboarding(){return getFeatureConfig().enableOnboarding?loadFeatureModule("onboarding"):(logFeatureDisabled("onboarding","onboarding"),null)},async exportReporting(){return getFeatureConfig().enableExportReporting?loadFeatureModule("reporting"):(logFeatureDisabled("exportReporting","exportReporting"),null)},async workspaceTemplates(){return getFeatureConfig().enableWorkspaceTemplates?loadFeatureModule("templates"):(logFeatureDisabled("workspaceTemplates","workspaceTemplates"),null)},async analysisCommands(){return getFeatureConfig().enableAnalysisCommands?loadFeatureModule("analysis"):(logFeatureDisabled("analysisCommands","analysisCommands"),null)},async advancedCache(){return getFeatureConfig().enableAdvancedCache?loadFeatureModule("advancedCache"):(logFeatureDisabled("advancedCache","advancedCache"),null)},async workspaceIntelligence(){return getFeatureConfig().enableWorkspaceIntelligence?loadFeatureModule("workspaceIntelligence"):(logFeatureDisabled("workspaceIntelligence","workspaceIntelligence"),null)},async incrementalWorkers(){return getFeatureConfig().enableIncrementalWorkers?loadFeatureModule("incrementalWorkers"):(logFeatureDisabled("incrementalWorkers","incrementalWorkers"),null)},async extensionApi(){return getFeatureConfig().enableExtensionApi?loadFeatureModule("extensionApi"):(logFeatureDisabled("extensionApi","extensionApi"),null)},async uiAdapters(){return loadFeatureModule("uiAdapters")},async batchProcessor(){return loadFeatureModule("batchProcessor")},async decorationsAdvanced(){return loadFeatureModule("decorationsAdvanced")},async decorationsProviderImpl(){return loadFeatureModule("decorationsProviderImpl")},async gitInsights(){return getFeatureConfig().enableGitInsights?loadFeatureModule("gitInsights"):(logFeatureDisabled("gitInsights","gitInsights"),null)},isEnabled(e){let t=getFeatureConfig();return{onboarding:t.enableOnboarding,exportReporting:t.enableExportReporting,workspaceTemplates:t.enableWorkspaceTemplates,analysisCommands:t.enableAnalysisCommands,advancedCache:t.enableAdvancedCache,workspaceIntelligence:t.enableWorkspaceIntelligence,incrementalWorkers:t.enableIncrementalWorkers,extensionApi:t.enableExtensionApi}[e]??!0},getEnabledFeatures(){let e=getFeatureConfig(),t=[];return e.enableOnboarding&&t.push("onboarding"),e.enableExportReporting&&t.push("exportReporting"),e.enableWorkspaceTemplates&&t.push("workspaceTemplates"),e.enableAnalysisCommands&&t.push("analysisCommands"),e.enableAdvancedCache&&t.push("advancedCache"),e.enableWorkspaceIntelligence&&t.push("workspaceIntelligence"),e.enableIncrementalWorkers&&t.push("incrementalWorkers"),e.enableExtensionApi&&t.push("extensionApi"),t},calculateSavings(){let e=getFeatureConfig(),t=0;return e.enableOnboarding||(t+=34),e.enableExportReporting||(t+=17),e.enableExtensionApi||(t+=15),e.enableWorkspaceTemplates||(t+=14),e.enableWorkspaceIntelligence||(t+=12),e.enableAnalysisCommands||(t+=8),e.enableAdvancedCache||(t+=5),t}};for(let[e,t]of Object.entries(CHUNK_METHOD_ALIASES))!featureFlags[e]&&typeof featureFlags[t]=="function"&&(featureFlags[e]=(...r)=>featureFlags[t](...r));function calculateSavings(e){e||(e=getFeatureConfig());let t=267,r=0;e.enableOnboarding||(r+=34),e.enableExportReporting||(r+=17),e.enableExtensionApi||(r+=15),e.enableWorkspaceTemplates||(r+=14),e.enableWorkspaceIntelligence||(r+=12),e.enableIncrementalWorkers||(r+=19),e.enableAnalysisCommands||(r+=8),e.enableAdvancedCache||(r+=5);let n=t-r,i=r>0?Math.round(r/t*100):0;return{baseSize:`${t}KB`,totalSavings:`${r}KB`,optimizedSize:`${n}KB`,percentage:i}}registerDefaultLoaders();var exportedFeatureFlags={...featureFlags,getFeatureConfig,calculateSavings,registerFeatureLoader,setFeatureChunkResolver,unregisterFeatureLoader,clearFeatureLoaders,loadFeatureModule,getFeatureLoadFailure,registerDefaultLoaders};registerFeatureFlagsGlobal(exportedFeatureFlags);module.exports=exportedFeatureFlags});var wr=E((exports,module)=>{var vscode=require("vscode"),getLogger=()=>{try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=dynamicRequire("./chunks/logger-chunk");if(e&&typeof e.getLogger=="function")return getLogger=e.getLogger,getLogger()}}catch{}try{return getLogger=q().getLogger,getLogger()}catch{return getLogger=()=>({debug:(()=>{})?.bind(console)||console.log,info:(()=>{}).bind(console),warn:(()=>{}).bind(console),error:(()=>{}).bind(console)}),getLogger()}},{fileSystem}=Be(),env=typeof process<"u"&&process.env?process.env:{},{formatFileSize}=Ke(),getFileName=p=>{try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=null;try{e=dynamicRequire("../chunks/utils-shared-chunk")}catch{}try{e||(e=dynamicRequire("./chunks/utils-shared-chunk"))}catch{}try{e||(e=dynamicRequire("./chunks/path-utils-chunk"))}catch{}if(e&&typeof e.getFileName=="function")return getFileName=e.getFileName,getFileName(p)}}catch{}try{let t=String(p||"").replace(/\\/g,"/"),r=t.lastIndexOf("/");return r===-1?t:t.substring(r+1)}catch{return"unknown"}},getExtension=p=>{try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=null;try{e=dynamicRequire("../chunks/utils-shared-chunk")}catch{}try{e||(e=dynamicRequire("./chunks/utils-shared-chunk"))}catch{}try{e||(e=dynamicRequire("./chunks/path-utils-chunk"))}catch{}if(e&&typeof e.getExtension=="function")return getExtension=e.getExtension,getExtension(p)}}catch{}try{let e=String(p||""),t=e.lastIndexOf(".");return t<=0?"":e.substring(t).toLowerCase()}catch{return""}},buildCacheKey=p=>{try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=null;try{e=dynamicRequire("../chunks/utils-shared-chunk")}catch{}try{e||(e=dynamicRequire("./chunks/utils-shared-chunk"))}catch{}try{e||(e=dynamicRequire("./chunks/path-utils-chunk"))}catch{}if(e&&typeof e.getCacheKey=="function")return buildCacheKey=e.getCacheKey,buildCacheKey(p)}}catch{}return String(p||"").toLowerCase().replace(/\\/g,"/")},normalizePath=input=>{try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=null;try{e=dynamicRequire("../chunks/utils-shared-chunk")}catch{}try{e||(e=dynamicRequire("./chunks/utils-shared-chunk"))}catch{}try{e||(e=dynamicRequire("./chunks/path-utils-chunk"))}catch{}if(e&&typeof e.normalizePath=="function")return normalizePath=e.normalizePath,normalizePath(input)}}catch{}return String(input||"").replace(/\\/g,"/")},getUriPath=(target="")=>{try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=null;try{e=dynamicRequire("../chunks/utils-shared-chunk")}catch{}try{e||(e=dynamicRequire("./chunks/utils-shared-chunk"))}catch{}try{e||(e=dynamicRequire("./chunks/path-utils-chunk"))}catch{}if(e&&typeof e.getUriPath=="function")return getUriPath=e.getUriPath,getUriPath(target)}}catch{}if(!target)return"";if(typeof target=="string")return target;if(typeof target.fsPath=="string"&&target.fsPath.length>0)return target.fsPath;if(typeof target.path=="string"&&target.path.length>0)return target.path;if(typeof target.toString=="function")try{return target.toString(!0)}catch{return target.toString()}return String(target)},{DEFAULT_CACHE_TIMEOUT,DEFAULT_MAX_CACHE_SIZE,GLOBAL_STATE_KEYS,DEFAULT_DECORATION_POOL_SIZE,DEFAULT_FLYWEIGHT_CACHE_SIZE,WORKSPACE_SCALE_EXTREME_THRESHOLD}=I(),{isWebEnvironment}=J(),{getSettingsCoordinator}=Ge(),{SecurityValidator,SecureFileOperations,detectSecurityEnvironment}=Je(),DISABLE_GIT_FEATURES=env.EXPLORER_DATES_DISABLE_GIT_FEATURES==="1",IS_WEB_ENV=isWebEnvironment()||env.VSCODE_WEB==="true",nodePath=null;try{IS_WEB_ENV||(nodePath=require("path"))}catch{nodePath=null}var pathCompat={basename:e=>{if(!e)return"";try{if(!IS_WEB_ENV)return require("path").basename(e)}catch{let t=e.replace(/\\/g,"/"),r=t.lastIndexOf("/");return r===-1?t:t.substring(r+1)}},dirname:e=>{if(!e)return".";try{if(!IS_WEB_ENV)return require("path").dirname(e)}catch{let t=e.replace(/\\/g,"/"),r=t.lastIndexOf("/");return r===-1?".":t.substring(0,r)}}};(async()=>{try{let t=await ge().decorationsStatic();t&&(t.basename&&t.dirname&&(pathCompat.basename=t.basename,pathCompat.dirname=t.dirname),t.describeFile&&(exports.Ke=t.describeFile))}catch{}})();var CONFIG_DEFAULT_CACHE_TIMEOUT=3e4,CACHE_NAMESPACE_SEPARATOR="::",DEFAULT_DYNAMIC_WATCHER_LIMIT=Number(env.EXPLORER_DATES_MAX_DYNAMIC_WATCHERS||200),DEFAULT_WATCHER_INACTIVITY_MS=Number(env.EXPLORER_DATES_WATCHER_TTL_MS||600*1e3),DEFAULT_SMART_WATCHER_EXTENSIONS=["js","ts","json","md","py","java"],SMART_WATCHER_PRIORITY=new Map([["src",100],["lib",65],["test",30]]),WORKSPACE_SCAN_TIMEOUT_MS=Number(env.EXPLORER_DATES_WORKSPACE_SCAN_TIMEOUT||7e3),WORKSPACE_SCAN_TIMEOUT_FALLBACK_COUNT=WORKSPACE_SCALE_EXTREME_THRESHOLD,VIEWPORT_DEFAULT_WINDOW_MS=300*1e3,DEFAULT_VIEWPORT_HISTORY_LIMIT=Number(env.EXPLORER_DATES_VIEWPORT_HISTORY_LIMIT||400),FEATURE_LEVELS=["full","enhanced","standard","minimal"],DEFAULT_INDEXER_MAX_FILES=Math.max(100,Number(env.EXPLORER_DATES_INDEXER_MAX_FILES||2e3)),SECURITY_EXTRA_PATHS_ENV="EXPLORER_DATES_SECURITY_EXTRA_PATHS",DEFAULT_SECURITY_THROTTLE_MS=Number(env.EXPLORER_DATES_SECURITY_WARNING_THROTTLE_MS||5e3),SECURITY_WARNING_CACHE_LIMIT=Number(env.EXPLORER_DATES_SECURITY_WARNING_CACHE||500),DEFAULT_SECURITY_MAX_WARNINGS=Number(env.EXPLORER_DATES_SECURITY_MAX_WARNINGS_PER_FILE??1),describeFile=(e="")=>{try{let t=typeof e=="string"?e:getUriPath(e),r=normalizePath(t);return getFileName(r)||r||"unknown"}catch{return"unknown"}};(async()=>{try{let t=await ge().decorationsStatic();t&&typeof t.describeFile=="function"&&(describeFile=t.describeFile)}catch{}})();var LazyHierarchicalDecorationCache=class{constructor(){this.n=new Map}get size(){return this.n.size}get bucketCount(){return 0}clear(){this.n.clear()}get(t){return this.n.get(t)}set(t,r){this.n.set(t,r)}delete(t){return this.n.delete(t)}*entries(){yield*this.n.entries()}*keys(){yield*this.n.keys()}*values(){yield*this.n.values()}[Symbol.iterator](){return this.entries()}enforceLimit(){return 0}},FileDateDecorationProviderImpl=class{constructor(...args){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=dynamicRequire("./chunks/file-date-provider-impl");if(e&&typeof e.FileDateDecorationProviderImpl=="function")return new e.FileDateDecorationProviderImpl(...args);if(e&&typeof e.FileDateDecorationProvider=="function")return new e.FileDateDecorationProvider(...args)}}catch(e){}throw new Error("FileDateDecorationProvider implementation is not available in this environment")}},FileDateDecorationProvider=class{constructor(...args){let loaderError=null;try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function")try{let e=null;try{e=dynamicRequire("./chunks/file-date-provider-impl-export")}catch{}if(e){let r=e.FileDateDecorationProvider||e.FileDateDecorationProviderImpl||e.default;return typeof r=="function"?new r(...args):new FileDateDecorationProviderImpl(...args)}e=dynamicRequire("./chunks/file-date-provider-impl");let t=e&&(e.FileDateDecorationProvider||e.FileDateDecorationProviderImpl||e.default);if(typeof t=="function")return new t(...args)}catch(e){loaderError=e}try{let e=null;try{e=require.resolve("./chunks/file-date-provider-impl-export",{paths:[__dirname]})}catch{}e||(e=require.resolve("./chunks/file-date-provider-impl",{paths:[__dirname]}));let t=require(e),r=t&&(t.FileDateDecorationProvider||t.FileDateDecorationProviderImpl||t.default);if(e&&e.endsWith("file-date-provider-impl-export.js")&&!r)return new FileDateDecorationProviderImpl(...args);if(typeof r=="function")return new r(...args)}catch(e){loaderError=loaderError||e}}catch(e){loaderError=loaderError||e}if(loaderError&&loaderError.message){let e=`FileDateDecorationProvider implementation is unavailable: ${loaderError.message}`;throw new Error(e)}throw new Error("FileDateDecorationProvider implementation is unavailable")}};module.exports={FileDateDecorationProvider,FileDateDecorationProviderImpl}});var kr=E((exports,module)=>{try{require("vscode")}catch{}var env=typeof process<"u"&&process.env?process.env:{},diagLog=null,isWebDiagnosticsEnabled=()=>!1;try{let e=he();e&&(diagLog=e.diagLog,isWebDiagnosticsEnabled=e.isWebDiagnosticsEnabled||(()=>!1))}catch{}function isWebRuntime(){try{let{isWebEnvironment:e}=J();return e()}catch{return env.VSCODE_WEB==="true"}}function getWebChunkRegistry(){try{let{WEB_CHUNK_GLOBAL_KEY:e,LEGACY_WEB_CHUNK_GLOBAL_KEY:t}=I();if(typeof globalThis<"u")return globalThis[e]||globalThis[t]||null}catch{}return typeof globalThis<"u"&&(globalThis.explorerDatesChunks||globalThis.hr)||null}function resolveProviderModuleFromWebRegistry(){let e=getWebChunkRegistry();if(!e)return null;let t=[e.fileDateProviderImplExport,e.fileDateProviderImpl,e.fileDateProviderImplExport,e.fileDateProviderImpl,e["file-date-provider-impl-export"],e["file-date-provider-impl"]].filter(Boolean);return t.length>0?t[0]:null}function normalizeModuleExports(e){if(!e)return null;let t=e&&typeof e=="object"?e:{default:e},r=t&&typeof t=="object"&&t.default?t.default:null;return r&&typeof r=="object"?{...t,...r}:t}async function hydrateProviderOptionalSystems(e){try{try{let r=(await Promise.resolve().then(()=>R(ot()))).getLocalization();e.p.getString=(...i)=>r.getString(...i),e.p.formatDate=(...i)=>r.formatDate(...i),e.p.getCurrentLocale=()=>r.getCurrentLocale();let n=e.p.dispose;e.p.dispose=()=>{try{r.dispose()}catch{}n()}}catch(t){e._logger?.debug("provider-init: localization hydrate failed",t)}try{let t=await Promise.resolve().then(()=>R(st()));t&&typeof t.createDecorationLogic=="function"&&(e.yt=t.createDecorationLogic(e))}catch(t){e._logger?.debug("provider-init: preload decoration logic failed",t)}try{let t=await Promise.resolve().then(()=>R(Ce())),r=t&&(typeof t.createDecorationProviderHelpers=="function"?t.createDecorationProviderHelpers(e):t);e.dr=r}catch(t){e._logger?.debug("provider-init: preload decoration provider helpers failed",t)}try{let t=await e.Z();t&&typeof t.initializeAdvancedSystems=="function"&&await t.initializeAdvancedSystems(e)}catch(t){e._logger?.debug("provider-init: initializeAdvancedSystems failed",t)}try{let t=ct();t&&typeof t.scheduleTelemetryReport=="function"&&e._allocationTelemetryEnabled&&t.scheduleTelemetryReport(e)}catch(t){e._logger?.debug("provider-init: scheduling telemetry failed",t)}}catch(t){try{e._logger?.debug("provider-init: hydration failed",t)}catch{}}}function createFileDateDecorationProvider(context){try{let ProviderClass=null,webRuntime=isWebRuntime();if(webRuntime){let e=getWebChunkRegistry(),t=[e?.fileDateProviderImplExport,e?.fileDateProviderImpl,e?.fileDateProviderImplExport,e?.fileDateProviderImpl,e?.["file-date-provider-impl-export"],e?.["file-date-provider-impl"]].filter(Boolean),r=t[0]||resolveProviderModuleFromWebRegistry();!e&&isWebDiagnosticsEnabled()?diagLog?.("warn","Provider registry missing in web runtime"):!r&&isWebDiagnosticsEnabled()&&diagLog?.("warn","Provider module missing from web registry",{hasRegistry:!!e,availableKeys:Object.keys(e||{}),candidateCount:t.length});let n=null;for(let i of t){let a=normalizeModuleExports(i),o=a&&(a.FileDateDecorationProvider||a.FileDateDecorationProviderImpl||a.default);if(o){n=o;break}isWebDiagnosticsEnabled()&&diagLog?.("warn","Provider exports missing expected class",{availableExportKeys:Object.keys(a||{})})}ProviderClass=n,!ProviderClass&&isWebDiagnosticsEnabled()&&t.length>0&&diagLog?.("warn","Provider class unresolved from registry entries",{candidateCount:t.length,availableRegistryKeys:Object.keys(e||{})})}try{if(!webRuntime){let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=null;try{e=dynamicRequire("./fileDateProviderImplExport")}catch{}if(!e)try{e=dynamicRequire("./fileDateProviderImpl")}catch{}ProviderClass=e&&(e.FileDateDecorationProvider||e.FileDateDecorationProviderImpl||e.default)}}}catch{}if(!ProviderClass&&!webRuntime){let{FileDateDecorationProvider:e}=wr();ProviderClass=e}if(!ProviderClass)return isWebDiagnosticsEnabled()&&diagLog?.("warn","Provider class unavailable",{webRuntime,registryKeys:Object.keys(getWebChunkRegistry()||{})}),null;let provider=new ProviderClass;return isWebDiagnosticsEnabled()&&diagLog?.("info","Provider class resolved",{className:ProviderClass?.name||"unknown"}),(async()=>{try{await provider.initializeAdvancedSystems(context)}catch(e){provider._logger?.debug("provider-init: provider factory init failed",e)}})(),{createFileDateDecorationProvider:()=>provider}}catch{return null}}module.exports={hydrateProviderOptionalSystems,createFileDateDecorationProvider}});var Fr=E((Na,vr)=>{var O=require("vscode"),{getLogger:Ni}=q(),{WORKSPACE_SCALE_BALANCED_THRESHOLD:Dr,WORKSPACE_SCALE_LARGE_THRESHOLD:ve,WORKSPACE_SCALE_EXTREME_THRESHOLD:Cr,WORKSPACE_SCAN_MAX_RESULTS:Sr}=I(),lt=Ni(),Te=null;function Tr(e){return e&&(e.fsPath||e.path)||null}function ut(e,t){let r=Tr(e);!r||typeof t!="number"||(Te={workspaceKey:r,fileCount:t,timestamp:Date.now()})}function ht(e){let t=Tr(e);return!t||!Te||Te.workspaceKey!==t?null:Te}function qi(e,t="default"){if(!e)return`unknown-workspace-${t}`;let r=e.fsPath||e.path||"",n=r.split("/").pop()||"workspace",i=Math.abs(r.split("").reduce((o,s)=>(o=(o<<5)-o+s.charCodeAt(0),o&o),0)).toString(36).substr(0,8),a=Math.abs(t.split("").reduce((o,s)=>(o=(o<<5)-o+s.charCodeAt(0),o&o),0)).toString(36).substr(0,4);return`${n}-${i}-${a}`}async function zi(e){try{if(!e)return"unknown";let t=ht(e),r;t?r=t.fileCount:(r=(await O.workspace.findFiles("**/*",null,Sr)).length,ut(e,r));let n="small";r>=Cr?n="extreme":r>=ve?n="large":r>=1e3&&(n="medium");let i=O.env.remoteName,a=O.env.uiKind===O.UIKind.Web,o=n==="medium"&&r>=Dr&&ru.toLowerCase());if(c.includes("package.json")||c.includes("yarn.lock"))return"web-development";if(c.some(u=>u.endsWith(".ipynb"))||c.includes("requirements.txt"))return"data-science";if(c.includes("docker-compose.yml")||c.includes(".enterprise"))return"enterprise"}catch(s){lt.debug("Project type detection failed:",s)}return"full"}catch(t){return lt.error("Workspace profile detection failed:",t),"unknown"}}async function Ui(e){if(!e)return null;try{let t=ht(e),r;t?r=t.fileCount:(r=(await O.workspace.findFiles("**/*",null,Sr)).length,ut(e,r));let n="small";r>=Cr?n="extreme":r>=ve?n="large":r>=1e3&&(n="medium");let i=!!O.env.remoteName,a=O.env.uiKind===O.UIKind.Web,o=a?"web":i?"remote":"local",s=n==="medium"&&r>=Dr&&r{var vscode=require("vscode"),getFileName,getExtension,normalizePath,getUriPath,ensureDate;try{let e=K();e&&(getFileName=e.getFileName,getExtension=e.getExtension,normalizePath=e.normalizePath,getUriPath=e.getUriPath,ensureDate=e.ensureDate)}catch{}if(!getFileName||!ensureDate){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function")try{let e=dynamicRequire("../utils/pathUtils"),t=dynamicRequire("../utils/dateHelpers");getFileName=getFileName||e.getFileName,getExtension=getExtension||e.getExtension,normalizePath=normalizePath||e.normalizePath,getUriPath=getUriPath||e.getUriPath,ensureDate=ensureDate||t.ensureDate}catch{}}catch{}getFileName||(getFileName=e=>{let t=String(e||""),r=t.replace(/\\/g,"/").lastIndexOf("/");return r===-1?t:t.substring(r+1)}),getExtension||(getExtension=e=>{let t=String(e||""),r=t.lastIndexOf(".");return r<=0?"":t.substring(r).toLowerCase()}),normalizePath||(normalizePath=(e="")=>(e||"").toString().replace(/\\/g,"/")),getUriPath||(getUriPath=(e="")=>e?typeof e=="string"?e:e?.fsPath?e.fsPath:e?.path?e.path:String(e):""),ensureDate||(ensureDate=e=>e instanceof Date?e:typeof e=="number"?new Date(e):typeof e=="string"?isNaN(Date.parse(e))?new Date:new Date(Date.parse(e)):new Date)}var SMART_WATCHER_PRIORITY=new Map([["src",100],["lib",65],["test",30]]);async function performWorkspaceSizeCheck(e){let t=vscode.workspace.getConfiguration("explorerDates"),r=t.get("forceEnableForLargeWorkspaces",!1),n=t.get("performanceMode",!1),i=r||n,a=vscode.workspace.workspaceFolders;if(!a||a.length===0)return;e._logger.info("Checking workspace size for large workspace detection...");let o=await e.an(e._getIndexerMaxFiles()),s=!Array.isArray(o),c=s?e.WORKSPACE_SCAN_TIMEOUT_FALLBACK_COUNT:o.length;if(s){let l=e.WORKSPACE_SCAN_TIMEOUT_MS?`${e.WORKSPACE_SCAN_TIMEOUT_MS}ms`:"the configured timeout";e._logger.warn(`Workspace scan exceeded ${l}; defaulting to extreme scale`)}else{let l=`${e.WORKSPACE_SCALE_LARGE_THRESHOLD}+`;e._logger.info(`Workspace contains ${c>=e.WORKSPACE_SCALE_LARGE_THRESHOLD?l:c} files`)}let u=e.u;e.Ge=c,e.u=c>=e.WORKSPACE_SCALE_EXTREME_THRESHOLD?"extreme":c>=e.WORKSPACE_SCALE_LARGE_THRESHOLD?"large":"normal";try{let l=a[0]?.uri;Fr().setCachedWorkspaceMetrics(l,c)}catch(l){e._logger.debug("Unable to cache workspace file count",l)}u!==e.u&&e.J&&!e._performanceMode&&(e._logger.info(`Workspace scale changed ${u} -> ${e.u}; recalibrating watchers`),e.Q("workspace-scale-update")),e._batchProcessor&&typeof e._batchProcessor.setWorkspaceScale=="function"&&e._batchProcessor.setWorkspaceScale(e.u||"normal"),e.Xe(e.Ye(vscode.workspace.getConfiguration("explorerDates")),"workspace-scale-change"),i&&e._logger.debug("Large workspace prompt suppressed (force/performance mode), but scaling adjustments applied")}async function findWorkspaceFilesWithTimeout(e,t){let r=Number.isFinite(e.WORKSPACE_SCAN_TIMEOUT_MS)?e.WORKSPACE_SCAN_TIMEOUT_MS:0,n=vscode.workspace.findFiles("**/*",null,t);if(!r||r<=0)return n;try{return await new Promise((i,a)=>{let o=null,s=(c,u=!1)=>{o&&(clearTimeout(o),o=null),u?a(c):i(c)};o=setTimeout(()=>s(null),r),n.then(c=>s(c),c=>s(c,!0))})}catch(i){return e._logger.warn("Workspace scan failed, assuming large workspace",{error:i?.message||String(i)}),null}}async function _buildSmartWatcherTargets(e,t,r){let n=[],i=Math.max(1,r.maxPatterns),a=i,o=t.length;for(let s of t){if(a<=0)break;let c=Math.max(1,Math.floor(a/o)),u=new vscode.RelativePattern(s,"*.{md,mdx,json,jsonc,yml,yaml,ts,tsx,js,jsx}");if(n.push({pattern:u,label:`root:${s.name}`}),a-=1,a<=0)break;let l=Math.min(Math.max(c-1,0),a);if(l>0)try{let d=typeof e._fileSystem?.readdir=="function"?await e._fileSystem.readdir(s.uri||s.fsPath||s):[],h=(Array.isArray(d)?d:[]).filter(m=>m&&(typeof m.isDirectory=="function"?m.isDirectory():!0)).map(m=>typeof m=="string"?m:m.name||"").filter(Boolean).filter(m=>!["node_modules",".git","dist","build","out"].includes(m));e._logger?.debug&&e._logger.debug("smart-watcher: top-level dirs",{folder:s.name,dirs:h}),h.sort((m,D)=>(SMART_WATCHER_PRIORITY.get(D)||0)-(SMART_WATCHER_PRIORITY.get(m)||0));let y=h.slice(0,l).map(m=>({pattern:new vscode.RelativePattern(s,`${m}/**/*.{md,mdx,json,jsonc,yml,yaml,ts,tsx,js,jsx}`),label:`sub:${s.name}/${m}`})).slice(0,l);n.push(...y),a-=y.length}catch{}o-=1}return n.slice(0,i)}function _addExclusionValueToSet(e,t,r={}){if(!t)return;let{onlyRootSegment:n=!1}=r,i=typeof t=="string"?t:typeof t?.toString=="function"?t.toString():"";if(!i||typeof i!="string")return;let a=i.trim();if(!a)return;let s=a.replace(/\\/g,"/").replace(/\*\*/g,"").replace(/\*/g,"").split("/").map(c=>c.trim()).filter(Boolean);if(!s.length){if(a.includes("*")||a.includes("?"))return;e.add(a.toLowerCase());return}if(n){e.add(s[0].toLowerCase());return}for(let c of s)e.add(c.toLowerCase())}function registerWatcherHandlers(e,t,r="unknown"){t&&(t.onDidChange(n=>e.W(n,"change",r)),t.onDidCreate(n=>e.W(n,"create",r)),t.onDidDelete(n=>e.W(n,"delete",r)))}function dispatchWatcherEvent(e,t,r,n="unknown"){r==="delete"?e.clearDecoration(t):e.refreshDecoration(t),e._workspaceIntelligence?.incrementalIndexer&&e._workspaceIntelligence.incrementalIndexer.queueDelta(t,r),e.Ze&&e._logger.debug(`Watcher event processed (${r}) for ${e.describeFile(t)} via ${n}`)}module.exports={performWorkspaceSizeCheck,findWorkspaceFilesWithTimeout,K:_buildSmartWatcherTargets,on:_addExclusionValueToSet,registerWatcherHandlers,dispatchWatcherEvent}});var ft=E((exports,module)=>{var vscode=require("vscode"),{DEFAULT_DYNAMIC_WATCHER_LIMIT,DEFAULT_WATCHER_INACTIVITY_MS}=I(),proc=typeof process<"u"?process:null,env=proc?.env||{},normalizePath,getUriPath;try{let e=K();e&&(normalizePath=e.normalizePath,getUriPath=e.getUriPath)}catch{}if(!normalizePath){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function")try{let e=dynamicRequire("../utils/pathUtils");normalizePath=normalizePath||e.normalizePath,getUriPath=getUriPath||e.getUriPath}catch{}}catch(e){}normalizePath||(normalizePath=(e="")=>(e||"").toString().replace(/\\/g,"/")),getUriPath||(getUriPath=(e="")=>e?typeof e=="string"?e:e?.fsPath?e.fsPath:e?.path?e.path:String(e):"")}var{getLogger}=q(),nodePath=null;try{nodePath=require("path")}catch{}var WatcherManager=class{constructor(t){this.t=t,this._logger=t._logger||getLogger(),this.s=new Set,this.h=void 0,this.T=[],this.d=new Map,this.L=null,this._=t._||new Map,this._smartWatcherFallbackManager=t._smartWatcherFallbackManager||null,this.ee=null,this.j="none"}setupFileWatcher(t="initial"){if(this.t._performanceMode||this.t.D){let i=this.t.D?"provider disposed":"performance mode enabled";this._logger.debug(`Skipping file watcher setup (${t}) - ${i}`);return}this.h||(this.h={pending:!0});let r=++this.t.Je;(async()=>{if(this.ee)try{await this.ee}catch(a){this._logger.debug("Previous watcher setup promise rejected",a)}let i=this.Fe(r,t);this.ee=i;try{await i}finally{this.ee===i&&(this.ee=null)}})().catch(i=>this._logger.error("Failed to configure file watchers",i))}async Fe(t,r){if(this.Ae(t))return;if(this.disposeFileWatchers({permanent:!1}),this.Ae(t))return this.Qe("post-dispose");this.h={pending:!0};let n=vscode.workspace.workspaceFolders;if(!n||n.length===0){this._logger.debug("No workspace folders detected; skipping watcher setup"),this.j="none";return}if(this.t._isWeb){this._logger.info("File watchers are unavailable in web environments; skipping watcher setup"),this.j="none";return}let i=vscode.workspace.getConfiguration("explorerDates"),a=env.EXPLORER_DATES_DISABLE_SMART_WATCHERS==="1";this.t.J=!a&&i.get("smartFileWatching",!0),this.t._enableWatcherFallbacks=this.t.J&&i.get("enableSmartWatcherFallbacks","auto");let o=i.get("smartWatcherMaxPatterns",20),s=this.t.gr(i.get("smartWatcherExtensions",[])),c=this.t.mr(o);if(this.t.bt={maxPatterns:c,extensions:s},this.Ae(t))return this.Qe("post-config");if(!this.t.J){this._logger.info("Smart file watching disabled; falling back to global watcher"),await this.Pe("disabled");return}let u=[];try{if(typeof this.t.K=="function")u=await this.t.K(n,this.t.bt);else try{let l=dt();if(l&&typeof l.K=="function")u=await l.K(this.t,n,this.t.bt);else throw new Error("_buildSmartWatcherTargets not implemented on provider or helper")}catch(l){throw l}}catch(l){this._logger.error("Smart watcher analysis failed, falling back to global watcher",l),await this.Pe("analysis-failed");return}if(this.Ae(t))return this.Qe("post-analysis");if(!u||u.length===0){this._logger.warn("Smart watcher analysis yielded no targets; falling back to global watcher"),await this.Pe("no-targets");return}for(let l of u)try{let d=await this.Et(l.pattern,l.label);d&&(this.he(d,l.label),this.s.add(d))}catch(d){this._logger.debug(`Failed to create watcher for pattern ${l.label}`,d)}if(this.s.size===0){this._logger.warn("Smart watcher setup produced zero watchers; using global fallback"),await this.Pe("no-watchers-created");return}this.h=this.s.values().next().value||void 0,this.j="smart",this._logger.info(`Smart file watching enabled (${this.s.size} base watcher${this.s.size===1?"":"s"})`,{reason:r,patterns:u.map(l=>l.label)}),this.pr()}Ae(t){return!!(this.t.D||this.t._performanceMode||typeof t=="number"&&t!==this.t.Je)}Qe(t="unknown"){let r=this.t._performanceMode||this.t.D;this.disposeFileWatchers({permanent:r}),this._logger.debug(`Watcher setup aborted (${t})`,{permanentAbort:r,disposed:this.t.D,performanceMode:this.t._performanceMode})}async Z(){try{let{getFeatureFlagsGlobal:t}=G(),r=t();return(r?await r.decorationsAdvanced():null)||null}catch(t){return this._logger.debug("Failed to load decorationsAdvanced chunk",t),null}}async Et(t,r="unknown"){try{let i=await this.Z();if(i?.createWatcherWithFallback)return await i.createWatcherWithFallback(this.t,t,r)}catch(i){this._logger.debug(`Advanced watcher chunk failed for ${r}`,i)}let n=()=>{let i=this.t._enableWatcherFallbacks;if(i===!1)return!1;if(i==="auto"||i===!0){let a=proc?.platform,o=env.WSL_DISTRO_NAME||env.WSLENV,s=vscode.env.remoteName,c=env.DOCKER_CONTAINER;return o||s||c||a==="android"}return!1};try{let i=vscode.workspace.createFileSystemWatcher(t);return this._logger.debug(`Native watcher created for ${r}`),i}catch(i){return this._logger.debug(`Native watcher failed for ${r}:`,i),n()?this.yr(t,r):null}}async yr(t,r){try{let n=await this.Z();if(n?.createFallbackWatcher)return await n.createFallbackWatcher(this.t,t,r)}catch(n){this._logger.warn(`Fallback watcher creation failed for ${r}:`,n)}try{if(!this._smartWatcherFallbackManager){let{getFeatureFlagsGlobal:n}=G(),i=n(),a=i?await i.loadFeatureModule("smartWatcherFallback"):null;if(a){let{SmartWatcherFallbackManager:o}=a;this._smartWatcherFallbackManager=new o({logger:this._logger}),await this._smartWatcherFallbackManager.initialize()}}if(this._smartWatcherFallbackManager){let i=await(await this._smartWatcherFallbackManager.getFallback()).createWatcherWithFallback(t);return this._logger.debug(`Fallback watcher created for ${r}`),i}}catch(n){this._logger.warn(`Fallback watcher creation failed for ${r}:`,n)}return null}async Pe(t="global-default"){this._t();let r=await this.Et("**/*",`global:${t}`);r?(this.he(r,`global:${t}`),this.s.add(r),this.h=r,this.j="global",this._logger.info(`Global watcher activated (${t})`)):this._logger.error(`Failed to create global watcher (${t})`)}he(t,r="unknown"){t&&(t.onDidChange(n=>this.W(n,"change",r)),t.onDidCreate(n=>this.W(n,"create",r)),t.onDidDelete(n=>this.W(n,"delete",r)))}W(t,r,n="unknown"){if(!t||t.scheme!=="file"||!this.t.je(t,`watcher:${r}`)?.isValid)return;let a=this.br();if(a<=0){this.xe(t,r,n);return}let o=`${t.toString()}:${r}`,s=this._.get(o);s&&clearTimeout(s.timer);let c=setTimeout(()=>{this._.delete(o),this.xe(t,r,n)},a);this._.set(o,{timer:c,source:n})}xe(t,r,n){try{this.t.Me?.(t)}catch{}r==="delete"?this.t.clearDecoration(t):this.t.refreshDecoration(t),this.t._workspaceIntelligence?.incrementalIndexer&&this.t._workspaceIntelligence.incrementalIndexer.queueDelta(t,r),this.t.Ze&&this._logger.debug(`Watcher event processed (${r}) for ${this.t.Ke(t)} via ${n}`)}br(){if(this.t._performanceMode)return 0;switch(this.t.u){case"extreme":return 600;case"large":return 250;default:return 100}}handleWorkspaceFoldersChanged(t){let r=(t?.added||[]).map(a=>a.uri).filter(Boolean),n=(t?.removed||[]).map(a=>a.uri).filter(Boolean);if(r.length===0&&n.length===0)return;let i=async()=>{this._logger.info("Workspace folders changed",{added:r.length,removed:n.length}),await this.t.checkWorkspaceSize();try{this.t.clearAllCaches()}catch{}try{this.t.refreshAll()}catch{}if(!this.t._performanceMode&&(this.setupFileWatcher("workspace-change"),await this.t.wt().catch(a=>this._logger.debug("Failed to reconfigure progressive loading after workspace change",a)),this.t._workspaceIntelligence)){let a=(vscode.workspace.workspaceFolders||[]).map(o=>({uri:o.uri}));await this.t._workspaceIntelligence.onWorkspaceFoldersChanged({added:a,removed:n.map(o=>({uri:o}))})}};this.t.C&&clearTimeout(this.t.C),this.t.C=setTimeout(()=>{this.t.C=null,i().catch(a=>this._logger.debug("Workspace folder change handling failed",a))},250)}disposeFileWatchers(t={}){let r=t.permanent===!0;if(this.s?.size){for(let n of this.s)try{n.dispose()}catch(i){this._logger.debug("Failed to dispose file watcher",i)}this.s.clear()}this.h=r?null:void 0,this._t(),this.kt(!0),this.Er(),this.j="none"}Er(){if(this._?.size){for(let t of this._.values())clearTimeout(t.timer);this._.clear()}}pr(){if(!this.t.J||this.T.length>0)return;let t=(n,i)=>{let a=this.t.fe(vscode.window,n,i);a&&this.T.push(a)},r=(n,i)=>{let a=this.t.fe(vscode.workspace,n,i);a&&this.T.push(a)};t("onDidChangeVisibleTextEditors",n=>{(n||[]).forEach(i=>this.ge(i?.document?.uri,"visible-editor"))}),t("onDidChangeActiveTextEditor",n=>{this.ge(n?.document?.uri,"active-editor")}),r("onDidOpenTextDocument",n=>{this.ge(n?.uri,"open-document")}),r("onDidSaveTextDocument",n=>{this.ge(n?.uri,"save-document")}),this._r(),this.wr()}_t(){if(this.T?.length){for(let t of this.T)try{t.dispose()}catch(r){this._logger.debug("Failed to dispose watcher listener",r)}this.T=[]}this.Dt()}sn(){if(this._smartWatcherFallbackManager){try{this._smartWatcherFallbackManager.dispose()}catch(t){this._logger.debug("Error disposing smart watcher fallback manager:",t)}this._smartWatcherFallbackManager=null}}_r(){(Array.isArray(vscode.window?.visibleTextEditors)?vscode.window.visibleTextEditors:[]).forEach(r=>this.ge(r?.document?.uri,"visible-seed"))}wr(){this.L||(this.L=setInterval(()=>this.kt(),DEFAULT_WATCHER_INACTIVITY_MS))}Dt(){this.L&&(clearInterval(this.L),this.L=null)}kt(t=!1){if(!this.d?.size)return;let r=Date.now()-DEFAULT_WATCHER_INACTIVITY_MS;for(let[n,i]of this.d.entries())if(t||i.lastUsed=DEFAULT_DYNAMIC_WATCHER_LIMIT&&this.kr();try{let o=new vscode.RelativePattern(i,"**/*"),s=vscode.workspace.createFileSystemWatcher(o),c=nodePath.basename(i)||"root";this.he(s,`dynamic:${r}:${c}`),this.d.set(i,{watcher:s,lastUsed:Date.now(),source:r})}catch(o){this._logger.debug(`Failed to create dynamic watcher for ${i}`,o)}}kr(){let t=null,r=Number.POSITIVE_INFINITY;for(let[n,i]of this.d.entries())i.lastUsed{function createViewportManager(provider){let vscode=require("vscode"),normalizePath,getUriPath;try{let e=K();e&&(normalizePath=e.normalizePath,getUriPath=e.getUriPath)}catch{}if(!normalizePath){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function")try{let e=dynamicRequire("../utils/pathUtils");normalizePath=normalizePath||e.normalizePath,getUriPath=getUriPath||e.getUriPath}catch{}}catch{}normalizePath||(normalizePath=(e="")=>(e||"").toString().replace(/\\/g,"/")),getUriPath||(getUriPath=(e="")=>e?typeof e=="string"?e:e?.fsPath?e.fsPath:e?.path?e.path:String(e):"")}class ViewportManager{constructor(){this.t=provider,this.k=new Set,this.y=new Map,this.v=[],this.me=provider.me||400,this.O=provider.O||300*1e3,this.et=Date.now()}cn(){if(this.v.length>0)return;let t=(n,i)=>{let a=this.fe(vscode.window,n,i);a&&this.v.push(a)},r=(n,i)=>{let a=this.fe(vscode.workspace,n,i);a&&this.v.push(a)};t("onDidChangeVisibleTextEditors",n=>this.Ct(n)),t("onDidChangeActiveTextEditor",n=>this.Y(n?.document?.uri,{reason:"active-editor"})),r("onDidOpenTextDocument",n=>this.Y(n?.uri,{reason:"open-document"})),r("onDidSaveTextDocument",n=>this.Y(n?.uri,{reason:"save-document"})),this.Ct(Array.isArray(vscode.window?.visibleTextEditors)?vscode.window.visibleTextEditors:[]),vscode.window?.activeTextEditor?.document?.uri&&this.Y(vscode.window.activeTextEditor.document.uri,{reason:"initial-active"})}Dr(){if(this.v?.length){for(let t of this.v)try{t.dispose()}catch(r){this.t._logger.debug("Failed to dispose viewport listener",r)}this.v=[],this.k.clear(),this.y.clear()}}Ct(t){if(this.k.clear(),!Array.isArray(t))return;let r=Date.now();for(let n of t){let i=n?.document?.uri;if(!i||i.scheme!=="file")continue;let a=normalizePath(getUriPath(i));a&&(this.k.add(a),this.y.set(a,r))}this.tt()}Y(t,r={}){if(!t||t.scheme!=="file")return;let n=normalizePath(getUriPath(t));if(!n)return;let i=Date.now();this.y.set(n,i),r.visible&&this.k.add(n),this.y.size>this.me?this.tt(!0):i-this.et>this.O&&this.tt()}tt(t=!1){let r=Date.now(),n=r-this.O*2;for(let[i,a]of this.y.entries())(t||athis.me&&a{var getFileName,normalizePath,getUriPath;try{let e=K();e&&(getFileName=e.getFileName,normalizePath=e.normalizePath,getUriPath=e.getUriPath)}catch{}if(!getFileName){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function")try{let e=dynamicRequire("../utils/pathUtils");getFileName=getFileName||e.getFileName,normalizePath=normalizePath||e.normalizePath,getUriPath=getUriPath||e.getUriPath}catch{}}catch{}getFileName||(getFileName=e=>{let t=String(e||""),r=t.replace(/\\/g,"/").lastIndexOf("/");return r===-1?t:t.substring(r+1)}),normalizePath||(normalizePath=(e="")=>(e||"").toString().replace(/\\/g,"/")),getUriPath||(getUriPath=(e="")=>e?typeof e=="string"?e:e?.fsPath?e.fsPath:e?.path?e.path:String(e):"")}var VIEWPORT_DEFAULT_WINDOW_MS=300*1e3,VIEWPORT_STANDARD_WINDOW_MS=600*1e3,VIEWPORT_MINIMAL_WINDOW_MS=900*1e3,DEFAULT_SMART_WATCHER_EXTENSIONS=["ts","tsx","js","jsx","mjs","cjs","mts","cts","vue","py","go","rb","rs","java","kt","swift","cs","cpp","c","php","scala","sql","md","mdx","json","jsonc","yml","yaml","toml","ini","txt","html","css","scss"],SMART_WATCHER_PRIORITY=new Map([["src",100],["app",95],["apps",95],["packages",90],["services",85],["service",80],["client",75],["clients",70],["server",70],["servers",65],["lib",65],["libs",60],["api",60],["apis",60],["components",55],["modules",55],["feature",50],["features",50],["extensions",45],["scripts",45],["tools",45],["examples",40],["docs",35],["config",35],["test",30],["tests",30],["spec",30],["specs",30],["demo",25],["demos",25]]);function basename(e){if(!e)return"";try{return require("path").basename(e)}catch{let t=e.replace(/\\/g,"/"),r=t.lastIndexOf("/");return r===-1?t:t.substring(r+1)}}function dirname(e){if(!e)return".";try{return require("path").dirname(e)}catch{let t=e.replace(/\\/g,"/"),r=t.lastIndexOf("/");return r===-1?".":t.substring(0,r)}}function describeFile(e=""){try{let t=typeof e=="string"?e:getUriPath(e),r=normalizePath(t);return getFileName(r)||r||"unknown"}catch{return"unknown"}}function getNormalizedPathsFromEditors(e){let t=Date.now();if(!Array.isArray(e))return[];let r=[];for(let n of e){let i=n?.document?.uri;if(!i||i.scheme!=="file")continue;let a=normalizePath(getUriPath(i));a&&r.push({path:a,ts:t})}return r}function keysToTrimViewportHistory(e,t,r,n=!1,i=Date.now()){let a=i-t*2,o=[];for(let[s,c]of e)(n||cr&&c({value:d,key:h?`badge:${t||"default"}:${h}`:null});switch(t){case"relative-short":case"relative-long":return a<1?l("\u25CF\u25CF","just"):a<60?l(`${Math.min(a,99)}m`,`m:${Math.min(a,99)}`):o<24?l(`${Math.min(o,23)}h`,`h:${Math.min(o,23)}`):s<7?l(`${s}d`,`d:${s}`):c<4?l(`${c}w`,`w:${c}`):u<12?l(`${u}M`,`M:${u}`):l("1y","y:1");case"absolute-short":case"absolute-long":{let d=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],h=e instanceof Date?e.getDate():new Date(e).getDate(),g=`${d[e instanceof Date?e.getMonth():new Date(e).getMonth()]}${h<10?"0"+h:h}`,y=`abs:${e instanceof Date?e.getMonth():new Date(e).getMonth()}-${h}`;return l(g,y)}case"technical":return a<60?l(`${a}m`,`tech:m:${a}`):o<24?l(`${o}h`,`tech:h:${o}`):l(`${s}d`,`tech:d:${s}`);case"minimal":return o<1?l("\u2022\u2022","min:now"):o<24?l("\u25CB\u25CB","min:hours"):l("\u2500\u2500","min:days");default:return a<60?l(`${a}m`,`smart:m:${a}`):o<24?l(`${o}h`,`smart:h:${o}`):l(`${s}d`,`smart:d:${s}`)}}module.exports={VIEWPORT_DEFAULT_WINDOW_MS,VIEWPORT_STANDARD_WINDOW_MS,VIEWPORT_MINIMAL_WINDOW_MS,DEFAULT_SMART_WATCHER_EXTENSIONS,SMART_WATCHER_PRIORITY,FILE_TYPE_COLOR_MAP,COLOR_ENHANCEMENT_MAP,getFileTypeColorMap,getColorEnhancementMap,getNormalizedPathsFromEditors,keysToTrimViewportHistory,computeReadableDescriptor,formatDateBadge,basename,dirname,describeFile}});var Pr=E((exports,module)=>{var vscode=null;try{vscode=require("vscode")}catch{}var proc=typeof process<"u"?process:null,env=proc?.env||{},{getFeatureFlagsGlobal}=G(),featureFlags=getFeatureFlagsGlobal(),FEATURE_LEVELS=["full","enhanced","standard","minimal"];if(!featureFlags)throw new Error("Explorer Dates: feature flags bridge unavailable for decorationsAdvanced chunk");function tryLoadChunk(...names){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function")for(let e of names)try{let t=dynamicRequire(e);if(t)return t}catch{}}catch{}return null}async function loadBatchProcessorIfNeeded(provider){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=dynamicRequire("./decoration-batch-chunk");if(e&&typeof e.loadBatchProcessorIfNeeded=="function")return await e.loadBatchProcessorIfNeeded(provider)}}catch(e){provider._logger?.debug?.("Delegated loadBatchProcessorIfNeeded failed",e)}return provider._logger?.debug?.("BatchProcessor not available (fallback)"),null}async function deferPreloads(e){try{Promise.resolve().then(()=>R(Ar())).then(t=>{try{e.rt=t.createViewportManager?.(e)||null}catch(r){e._logger?.debug?.("Failed to init viewport manager",r)}}).catch(t=>e._logger?.debug?.("Failed to load viewport manager chunk",t)),Promise.resolve().then(()=>R(ot())).then(t=>{try{let r=t.getLocalization();e.p.getString=(...i)=>r.getString(...i),e.p.formatDate=(...i)=>r.formatDate(...i),e.p.getCurrentLocale=()=>r.getCurrentLocale();let n=e.p.dispose;e.p.dispose=()=>{try{r.dispose()}catch{}n()}}catch{}}).catch(()=>{}),Promise.resolve().then(()=>R(st())).then(t=>{try{e.yt=t.createDecorationLogic?.(e)||null}catch(r){e._logger?.debug?.("Failed to initialize decoration logic chunk",r)}}).catch(t=>e._logger?.debug?.("Failed to load decoration logic chunk",t)),Promise.resolve().then(()=>R(Ce())).then(t=>{try{e.dr=t.createDecorationProviderHelpers?.(e)||null}catch(r){e._logger?.debug?.("Failed to initialize decoration provide chunk",r)}}).catch(t=>e._logger?.debug?.("Failed to load decoration provide chunk",t)),e._logger?.debug?.("Deferred preloads scheduled")}catch(t){e._logger?.debug?.("deferPreloads failed",t)}}async function getCachedDecoration(provider,cacheKey,fileLabel){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function")try{let e=dynamicRequire("./decoration-cache-chunk");if(e&&typeof e.getCachedDecoration=="function")return await e.getCachedDecoration(provider,cacheKey,fileLabel)}catch{}if(provider.G)return provider._logger?.debug?.(`\u26A0\uFE0F Cache bypass enabled - recalculating decoration for: ${fileLabel}`),null;if(provider._advancedCache)try{let e=await provider._advancedCache.get(cacheKey);if(e)return provider._metrics.cacheHits++,provider._logger?.debug?.(`\u{1F9E0} Advanced cache hit for: ${fileLabel}`),e}catch(e){provider._logger?.debug?.(`Advanced cache error: ${e.message}`)}if(!provider.e||typeof provider.e.get!="function")return provider._logger?.debug?.("getCachedDecoration: no memory cache available, falling back"),null;let memoryEntry=provider.e.get(cacheKey);if(memoryEntry){if(memoryEntry.forceRefresh){try{provider.e.delete(cacheKey)}catch{}provider._logger?.debug?.(`\u{1F6AB} Memory cache bypassed (forced refresh) for: ${fileLabel}`)}else if(Date.now()-memoryEntry.timestampprovider.l&&typeof provider.e.enforceLimit=="function"&&provider.e.enforceLimit(provider.l,provider._logger)}catch{}let cacheEntry={decoration,timestamp:Date.now()};resourceUri&&(cacheEntry.uri=resourceUri);try{provider.e.set(cacheKey,cacheEntry)}catch{}try{typeof provider.ce=="function"&&provider.ce()}catch(e){provider._logger?.debug?.("monitorCachePressure from store failed",e)}if(provider._advancedCache)try{await provider._advancedCache.set(cacheKey,decoration,{ttl:provider.S}),provider._logger?.debug?.(`\u{1F9E0} Stored in advanced cache: ${fileLabel}`)}catch(e){provider._logger?.debug?.(`Failed to store in advanced cache: ${e.message}`)}try{typeof provider.le=="function"&&provider.le()}catch(e){provider._logger?.debug?.("maybeExtendCacheTimeout from store failed",e)}}catch(e){provider._logger?.debug?.("storeDecorationInCache failed",e)}}function cancelProgressiveWarmupJobs(provider){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=dynamicRequire("./decoration-batch-chunk");if(e&&typeof e.cancelProgressiveWarmupJobs=="function")return e.cancelProgressiveWarmupJobs(provider)}}catch(e){provider._logger?.debug?.("Delegated cancelProgressiveWarmupJobs failed",e)}try{let e=provider._progressiveLoadingJobs;e&&typeof e.clear=="function"&&e.clear()}catch(e){provider._logger?.debug?.("Fallback cancel failed",e)}}async function applyProgressiveLoadingSetting(provider){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=dynamicRequire("./decoration-batch-chunk");if(e&&typeof e.applyProgressiveLoadingSetting=="function")return e.applyProgressiveLoadingSetting(provider)}}catch(e){provider._logger?.debug?.("Delegated applyProgressiveLoadingSetting failed",e)}provider._logger?.debug?.("applyProgressiveLoadingSetting fallback invoked (no batch chunk)")}async function initializeAdvancedSystems(e,t){try{if(e._extensionContext=t,e._isWeb&&await e._maybeWarnAboutGitLimitations?.(),e._performanceMode){e._logger?.info?.("Performance mode enabled - skipping advanced cache, batch processor, and progressive loading");return}let r=await featureFlags.advancedCache();if(r){let i=null;if(typeof r=="function")if(r.name==="createAdvancedCache")e._advancedCache=r(t),await e._advancedCache.initialize(),e._logger?.info?.("Advanced cache initialized via factory function");else try{e._advancedCache=new r(t),await e._advancedCache.initialize(),e._logger?.info?.("Advanced cache initialized via direct constructor")}catch(a){e._logger?.warn?.("Failed to instantiate AdvancedCache via direct constructor, disabling advanced cache:",a.message),e._advancedCache=null}else r.AdvancedCache?(i=r.AdvancedCache,e._advancedCache=new i(t),await e._advancedCache.initialize(),e._logger?.info?.("Advanced cache initialized via module property")):r.createAdvancedCache?(e._advancedCache=r.createAdvancedCache(t),await e._advancedCache.initialize(),e._logger?.info?.("Advanced cache initialized via module factory")):(e._logger?.warn?.("AdvancedCache module format not recognized, disabling advanced cache"),e._advancedCache=null)}else e._logger?.info?.("Advanced cache disabled by feature flag"),e._advancedCache=null;await applyProgressiveLoadingSetting(e),e._batchProcessor&&(e._batchProcessor.initialize(),e._logger?.info?.("Batch processor initialized"));try{let i=tryLoadChunk("./decoration-workspace-intel-chunk","./decorationWorkspaceIntel","./decorationWorkspaceIntel.js","./decoration-workspace-intel-chunk.js");i&&typeof i.initializeWorkspaceIntelligence=="function"?await i.initializeWorkspaceIntelligence(e,t):e._logger?.info?.("Workspace intelligence not initialized (no chunk)")}catch(i){e._logger?.warn?.("Delegated workspace intelligence initialization failed",i?.message||String(i)),e._workspaceIntelligence=null}vscode.workspace.getConfiguration("explorerDates").get("autoThemeAdaptation",!0)&&e._themeIntegration?.autoConfigureForTheme&&(await e._themeIntegration.autoConfigureForTheme(),e._logger?.info?.("Theme integration configured")),e._accessibility?.shouldEnhanceAccessibility?.()&&(await e._accessibility.applyAccessibilityRecommendations?.(),e._logger?.info?.("Accessibility recommendations applied")),e._allocationTelemetryEnabled&&(scheduleTelemetryReport(e),e._logger?.info?.("Allocation telemetry enabled - reports every",e._telemetryReportInterval,"ms")),e._logger?.info?.("Advanced systems initialized successfully")}catch(r){e._logger?.error?.("Failed to initialize advanced systems",r)}}function shouldUseFallbackWatcher(e){return e._enableWatcherFallbacks===!1?!1:e._enableWatcherFallbacks==="auto"||e._enableWatcherFallbacks===!0?isPlatformFallbackRequired():!1}function isPlatformFallbackRequired(){let e=proc?.platform,t=env.WSL_DISTRO_NAME||env.WSLENV,r=vscode.env.remoteName,n=env.DOCKER_CONTAINER;return t||r||n||e==="android"}async function createFallbackWatcher(e,t,r){try{if(!e._smartWatcherFallbackManager){let n=await featureFlags.loadFeatureModule("smartWatcherFallback");if(n){let{SmartWatcherFallbackManager:i}=n;e._smartWatcherFallbackManager=new i({logger:e._logger}),await e._smartWatcherFallbackManager.initialize()}}if(e._smartWatcherFallbackManager){let i=await(await e._smartWatcherFallbackManager.getFallback()).createWatcherWithFallback(t);return e._logger?.debug?.(`Fallback watcher created for ${r}`),i}}catch(n){e._logger?.warn?.(`Fallback watcher creation failed for ${r}:`,n)}return null}async function createWatcherWithFallback(e,t,r="unknown"){try{let n=vscode.workspace.createFileSystemWatcher(t);return e._logger?.debug?.(`Native watcher created for ${r}`),n}catch(n){if(e._logger?.debug?.(`Native watcher failed for ${r}:`,n),!shouldUseFallbackWatcher(e))throw n;return createFallbackWatcher(e,t,r)}}async function ensureWatcherManager(e){try{if(e.f)return e.f;try{let t=await Promise.resolve().then(()=>R(ft()));return e.f=t.createWatcherManager(e),e.f}catch(t){e._logger?.debug?.("Failed to load watcher manager chunk from advanced chunk",t)}}catch(t){e._logger?.debug?.("ensureWatcherManager failed",t)}return null}async function setupFileWatcher(e,t="initial"){try{let r=await ensureWatcherManager(e);if(r&&typeof r.setupFileWatcher=="function")return r.setupFileWatcher(t)}catch(r){e._logger?.debug?.("setupFileWatcher failed in advanced chunk",r)}try{let r=createWatcherWithFallback(e,"**/*",`global:${t}`);if(r)return e.s||(e.s=new Set),e.s.add(r),e._logger?.info?.("Global watcher activated (fallback)",{reason:t}),r}catch(r){e._logger?.debug?.("setupFileWatcher fallback failed",r)}return null}function registerWatcherHandlers(e,t,r="unknown"){try{let n=e.f||null;if(n&&typeof n.he=="function")return n.he(t,r)}catch(n){e._logger?.debug?.("Watcher manager register watcher handlers failed (advanced)",n)}try{if(!t)return;t.onDidChange(n=>e.W(n,"change",r)),t.onDidCreate(n=>e.W(n,"create",r)),t.onDidDelete(n=>e.W(n,"delete",r))}catch(n){e._logger?.debug?.("registerWatcherHandlers fallback failed",n)}}function dispatchWatcherEvent(e,t,r,n){try{let i=e.f||null;if(i&&typeof i.xe=="function")return i.xe(t,r,n)}catch(i){e._logger?.debug?.("Watcher manager dispatch watcher event failed (advanced)",i)}try{try{e.Me?.(t)}catch{}r==="delete"?e.clearDecoration(t):e.refreshDecoration(t),e._workspaceIntelligence?.incrementalIndexer&&e._workspaceIntelligence.incrementalIndexer.queueDelta(t,r),e.Ze&&e._logger?.debug?.(`Watcher event processed (${r}) for ${e.describeFile(t)} via ${n}`)}catch(i){e._logger?.debug?.("dispatchWatcherEvent fallback failed",i)}}function buildSummaryTooltip(e,{filePath:t,stat:r,badgeDetails:n}){try{let i=tryLoadChunk("./decoration-formatters-chunk","./decorationFormatters","./decoration-formatters-chunk.js","./decorationFormatters.js","./decoration-helpers-chunk","./decorationHelpers","./decoration-helpers","./decoration-helpers-chunk.js","./decorationHelpers.js");if(i&&typeof i.buildSummaryTooltip=="function")return i.buildSummaryTooltip(e,{filePath:t,stat:r,badgeDetails:n})}catch(i){e._logger?.debug?.("Delegated buildSummaryTooltip failed",i)}try{let i=[];n?.readableModified&&i.push(`Modified ${n.readableModified}`);let a=n?.fileSizeLabel||(r?.size?e.gt(r.size,"auto"):null);return a&&i.push(a),`${typeof e.describeFile=="function"?e.describeFile(t):t} \u2014 ${i.filter(Boolean).join(" \u2022 ")||e.Cr(r?.mtime||new Date)}`}catch(i){return e._logger?.debug?.("buildSummaryTooltip failed",i),`${typeof e.describeFile=="function"?e.describeFile(t):t} \u2014 ${e.Cr(r?.mtime||new Date)}`}}function formatDateReadable(e,t){try{let r=tryLoadChunk("./decoration-formatters-chunk","./decorationFormatters","./decoration-formatters-chunk.js","./decorationFormatters.js","./decoration-helpers-chunk","./decorationHelpers","./decoration-helpers","./decoration-helpers-chunk.js","./decorationHelpers.js");if(r&&typeof r.formatDateReadable=="function")return r.formatDateReadable(e,t)}catch(r){e._logger?.debug?.("Delegated formatDateReadable failed",r)}try{let r=new Date,n=r.getTime()-t.getTime(),i=Math.floor(n/(1e3*60)),a=Math.floor(n/(1e3*60*60)),o=Math.floor(n/(1e3*60*60*24)),s=e.ln(t,r,i,a,o);return s?e.er(e.N,e.Ie,e.Sr,s.key,s.factory,e.Tr):t.getFullYear()===r.getFullYear()?e.p.formatDate(t,{month:"short",day:"numeric"}):e.p.formatDate(t,{month:"short",day:"numeric",year:"numeric"})}catch(r){return e._logger?.debug?.("formatDateReadable failed",r),e.p.formatDate(t)}}async function getGitBlameInfo(e,t,r=null){if(env.DISABLE_GIT_FEATURES==="1"||e.un)return null;try{let n=await featureFlags.gitInsights();return!n||typeof n.getGitBlameInfo!="function"?null:await n.getGitBlameInfo(t,r)}catch(n){return e._logger?.warn?.("Git blame lookup failed",{filePath:t,message:n?.message||String(n)}),null}}async function findWorkspaceFilesWithTimeout(provider,maxResults){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=dynamicRequire("./workspace-scan-chunk");if(e&&typeof e.findWorkspaceFilesWithTimeout=="function")return e.findWorkspaceFilesWithTimeout(provider,maxResults)}}catch(e){provider._logger?.debug?.("Delegated findWorkspaceFilesWithTimeout failed",e)}try{return require("vscode").workspace.findFiles("**/*",null,maxResults)}catch(e){return provider._logger?.warn?.("Workspace scan fallback failed",e),null}}function startWorkspaceScanWatchdog(provider){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=dynamicRequire("./workspace-scan-chunk");if(e&&typeof e.startWorkspaceScanWatchdog=="function")return e.startWorkspaceScanWatchdog(provider)}}catch(e){provider._logger?.debug?.("Delegated startWorkspaceScanWatchdog failed",e)}return Promise.resolve()}function clearWorkspaceScanWatchdog(provider){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=dynamicRequire("./workspace-scan-chunk");if(e&&typeof e.clearWorkspaceScanWatchdog=="function")return e.clearWorkspaceScanWatchdog(provider)}}catch(e){provider._logger?.debug?.("Delegated clearWorkspaceScanWatchdog failed",e)}provider.te&&(clearTimeout(provider.te),provider.te=null)}async function performWorkspaceSizeCheck(provider){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=dynamicRequire("./workspace-scan-chunk");if(e&&typeof e.performWorkspaceSizeCheck=="function")return e.performWorkspaceSizeCheck(provider)}}catch(e){provider._logger?.debug?.("Delegated performWorkspaceSizeCheck failed",e)}try{let e=require("vscode"),t=e.workspace.workspaceFolders;if(!t||t.length===0)return;provider._logger?.info?.("Checking workspace size (fallback, fast)");let r=await(e.workspace.findFiles?e.workspace.findFiles("**/*",null,1e3):[]),n=Array.isArray(r)?r.length:0;provider.Ge=n,provider.u=n>1e5?"extreme":n>1e4?"large":"normal",provider.Xe(provider.Ye(),"workspace-scale-change-fallback")}catch(e){provider._logger?.debug?.("performWorkspaceSizeCheck fallback failed",e)}}function getInitials(e,t){try{let n=tryLoadChunk("./decoration-formatters-chunk","./decorationFormatters","./decoration-formatters-chunk.js","./decorationFormatters.js","./decoration-helpers-chunk","./decorationHelpers","./decoration-helpers","./decoration-helpers-chunk.js","./decorationHelpers.js");if(n&&typeof n.getInitials=="function")return n.getInitials(e,t)}catch(n){e._logger?.debug?.("Delegated getInitials failed",n)}if(e.pe&&typeof e.pe.getInitials=="function")return e.pe.getInitials(t);if(!t||typeof t!="string")return null;let r=t.trim().split(/\s+/).filter(Boolean);return r.length===0?null:r.length===1?r[0].substring(0,2).toUpperCase():(r[0][0]+(r[1][0]||"")).substring(0,2).toUpperCase()}function formatCompactSize(e,t){try{let r=tryLoadChunk("./decoration-formatters-chunk","./decorationFormatters","./decoration-formatters-chunk.js","./decorationFormatters.js","./decoration-helpers-chunk","./decorationHelpers","./decoration-helpers","./decoration-helpers-chunk.js","./decorationHelpers.js");if(r&&typeof r.formatCompactSize=="function")return r.formatCompactSize(e,t)}catch(r){e._logger?.debug?.("Delegated formatCompactSize failed",r)}try{if(typeof t!="number"||isNaN(t))return null;let r=["B","K","M","G","T"],n=0,i=t;for(;i>=1024&&n=2?s.slice(0,2):s}catch(r){return e._logger?.debug?.("formatCompactSize failed",r),null}}function formatFullDate(e,t){try{let r=tryLoadChunk("./decoration-formatters-chunk","./decorationFormatters","./decoration-formatters-chunk.js","./decorationFormatters.js","./decoration-helpers-chunk","./decorationHelpers","./decoration-helpers","./decoration-helpers-chunk.js","./decorationHelpers.js");if(r&&typeof r.formatFullDate=="function")return r.formatFullDate(e,t)}catch(r){e._logger?.debug?.("Delegated formatFullDate failed",r)}try{let r={year:"numeric",month:"long",day:"numeric",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:"short"};return t.toLocaleString("en-US",r)}catch(r){return e._logger?.debug?.("formatFullDate failed",r),t.toString()}}function scheduleTelemetryReport(e){try{let t=tryLoadChunk("./decoration-telemetry-chunk","./decorationTelemetry","./decorationTelemetry.js","./decoration-telemetry-chunk.js");if(t&&typeof t.scheduleTelemetryReport=="function")return t.scheduleTelemetryReport(e)}catch(t){e._logger?.debug?.("Delegated scheduleTelemetryReport failed",t)}!e._allocationTelemetryEnabled||e._telemetryReportTimer||(e._telemetryReportTimer=setTimeout(()=>{e._telemetryReportTimer=null,reportAllocationTelemetry(e),scheduleTelemetryReport(e)},e._telemetryReportInterval))}function reportAllocationTelemetry(e){try{let i=ct();if(i&&typeof i.reportAllocationTelemetry=="function")return i.reportAllocationTelemetry(e)}catch(i){e._logger?.debug?.("Delegated reportAllocationTelemetry failed",i)}let t=e.getMetrics().allocationTelemetry,r=t.decorationPool.allocations+t.badgeFlyweight.allocations+t.readableFlyweight.allocations,n=t.decorationPool.reuses+t.badgeFlyweight.reuses+t.readableFlyweight.reuses;(r>0||n>0)&&e._logger?.info?.("\u{1F9EE} Allocation telemetry report",{timestamp:new Date().toISOString(),pool:{allocations:t.decorationPool.allocations,reuses:t.decorationPool.reuses,reuseRate:t.decorationPool.reusePercent+"%"},badgeFlyweight:{allocations:t.badgeFlyweight.allocations,reuses:t.badgeFlyweight.reuses,reuseRate:t.badgeFlyweight.reusePercent+"%"},readableFlyweight:{allocations:t.readableFlyweight.allocations,reuses:t.readableFlyweight.reuses,reuseRate:t.readableFlyweight.reusePercent+"%"},summary:{totalAllocations:r,totalReuses:n,overallReuseRate:r+n>0?(n/(r+n)*100).toFixed(1)+"%":"0%"},decorationsProcessed:e._metrics.totalDecorations,cacheHitRate:e.getMetrics().cacheHitRate})}function setupPeriodicRefresh(e){try{let t=vscode.workspace.getConfiguration("explorerDates"),r=t.get("badgeRefreshInterval",6e4),n=e.F||r;if(e.A=n,e._logger?.info?.(`Setting up periodic refresh with interval: ${e.A}ms`),e.a&&(clearInterval(e.a),e.a=null),e.i&&e.i.size){for(let i of e.i)clearTimeout(i);e.i.clear()}if(!t.get("showDateDecorations",!0)){e._logger?.info?.("Decorations disabled, skipping periodic refresh setup");return}e.a=setInterval(()=>{if(e.R){e._logger?.debug?.("Periodic refresh skipped - incremental refresh already running");return}e._logger?.debug?.("Periodic refresh triggered - scheduling incremental refresh"),scheduleIncrementalRefresh(e,"periodic")},e.A),e._logger?.info?.("Periodic refresh timer started")}catch(t){e._logger?.debug?.("Failed to setup periodic refresh",t)}}function cancelIncrementalRefreshTimers(provider){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=dynamicRequire("./decoration-refresh-chunk");if(e&&typeof e.cancelIncrementalRefreshTimers=="function")return e.cancelIncrementalRefreshTimers(provider)}}catch(e){provider._logger?.debug?.("Delegated cancelIncrementalRefreshTimers failed",e)}if(!(!provider.i||provider.i.size===0)){for(let e of provider.i)clearTimeout(e);provider.i.clear(),provider.R=!1}}function scheduleIncrementalRefresh(provider,reason="manual"){try{if(!provider.e||typeof provider.e.entries!="function"){provider._logger?.debug?.("scheduleIncrementalRefresh: missing or invalid memory cache, firing global refresh");try{provider.m.fire(void 0)}catch{}return}let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=dynamicRequire("./decoration-refresh-chunk");if(e&&typeof e.scheduleIncrementalRefresh=="function")return e.scheduleIncrementalRefresh(provider,reason)}}catch(e){provider._logger?.debug?.("Delegated scheduleIncrementalRefresh failed",e)}provider._logger?.debug?.("scheduleIncrementalRefresh fallback invoked");try{provider.m.fire(void 0)}catch{}}function markCacheEntryForRefresh(provider,cacheKey){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=dynamicRequire("./decoration-refresh-chunk");if(e&&typeof e.markCacheEntryForRefresh=="function")return e.markCacheEntryForRefresh(provider,cacheKey)}}catch(e){provider._logger?.debug?.("Delegated markCacheEntryForRefresh failed",e)}if(!cacheKey)return;if(!provider.e||typeof provider.e.get!="function")provider._logger?.debug?.("markCacheEntryForRefresh: no memory cache available, skipping");else{let e=provider.e.get(cacheKey);e&&Date.now()-e.timestamp>provider.S*.75&&(e.forceRefresh=!0)}if(provider._advancedCache)try{provider._advancedCache.invalidateByPattern(cacheKey.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"))}catch(e){provider._logger?.debug?.(`Could not invalidate advanced cache for ${cacheKey}: ${e.message}`)}function maybeShedWorkload(provider){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=dynamicRequire("./decoration-memory-chunk");if(e&&typeof e.maybeShedWorkload=="function")return e.maybeShedWorkload(provider)}}catch(e){provider._logger?.debug?.("Delegated maybeShedWorkload failed",e)}try{if(!provider.St||provider.Tt)return;let e=(()=>{try{return proc?.memoryUsage?proc.memoryUsage().heapUsed/1024/1024:0}catch{return 0}})();if(!e)return;if(!provider.ye){provider.ye=e,provider.re=0,provider.be=!1;return}let t=e-provider.ye;if(t>=provider.vt?(provider.re++,provider.re>=2&&!provider.be&&(provider.be=!0,provider._logger?.warn?.("Memory pressure warning (soft threshold exceeded twice)",{deltaMB:Number(t.toFixed(2)),baselineMB:provider.ye,heapMB:e,rssMB:(()=>{try{return proc?.memoryUsage?proc.memoryUsage().rss/1024/1024:0}catch{return 0}})(),cacheSize:provider.e.size,cacheLimit:provider.l}))):provider.re>0&&(provider.re=0,t=provider.Ft){provider.Tt=!0,provider.l=Math.min(provider.l,provider.vr),provider.F=Math.max(provider.F||provider.A||provider.At,provider.At);let r=(()=>{try{return proc?.memoryUsage?proc.memoryUsage().rss/1024/1024:0}catch{return 0}})(),n={timestamp:new Date().toISOString(),deltaMB:Number(t.toFixed(2)),baselineMB:provider.ye,heapMB:e,rssMB:r,cacheSize:provider.e.size,maxCacheSize:provider.l,watcherStrategy:provider.j,staticWatchers:provider.s.size,dynamicWatchers:provider.d.size};provider.nt.push(n),provider.nt.length>10&&provider.nt.shift(),provider._logger?.warn?.(`Memory shedding activated (delta ${t.toFixed(2)} MB >= ${provider.Ft} MB); cache size capped at ${provider.l} and refresh interval stretched to ${provider.F}ms`,n),setupPeriodicRefresh(provider),provider.be=!1,provider.re=0}}catch(e){provider._logger?.debug?.("maybeShedWorkload failed",e)}}function monitorCachePressure(e){try{if(!e.l||e.l<=0)return;let t=e.e.size/e.l;t>=e.Rt?e.it||(e.it=!0,e._logger?.infoWithOptions?.({throttleKey:"cache-pressure",intervalMs:6e4},`Decoration cache usage is at ${(t*100).toFixed(1)}% of capacity`,{cacheSize:e.e.size,maxCacheSize:e.l})):t0&&e.e.clear();try{typeof e.Fr=="function"&&e.Fr(t)}catch{}e.I.size>0&&(e.I.clear(),e.Se.length=0),e.N.size>0&&(e.N.clear(),e.Ie.length=0),e._logger?.debug?.(`\u{1F9FD} Purged lightweight caches (${t})`)}catch(r){e._logger?.debug?.("purgeLightweightCaches failed",r)}}async function togglePerformanceMode(e,t,{reason:r="unspecified",refresh:n=!0}={}){if(t!==e._performanceMode){if(e._performanceMode=t,e._logger?.info?.(`Performance mode ${t?"enabled":"disabled"} (${r})`),t)e.ot?.({permanent:!0}),e._logger?.info?.("File watchers disabled for performance mode"),e.a&&(clearInterval(e.a),e.a=null,e._logger?.info?.("Periodic refresh disabled for performance mode"));else{try{e.Q?.("performance-mode-toggle"),e._logger?.info?.("File watchers enabled (performance mode off)")}catch{}e.a||(e.Ee?.(),e._logger?.info?.("Periodic refresh enabled (performance mode off)"))}if(n)try{e.refreshAll?.({reason:"performance-mode-change"})}catch(i){e._logger?.debug?.("refreshAll after performance toggle failed",i)}if(t)e._workspaceIntelligence?.dispose&&(e._workspaceIntelligence.dispose(),e._workspaceIntelligence=null);else if(!e._workspaceIntelligence)try{let{getFeatureFlagsGlobal:i}=G(),a=i(),o=a?await a.workspaceIntelligence():null;if(o){let{WorkspaceIntelligenceManager:s}=o;e._workspaceIntelligence=new s(e._fileSystem),await e._workspaceIntelligence.initialize({batchProcessor:e._batchProcessor,enableProgressiveAnalysis:e._shouldEnableProgressiveAnalysis?.()});let c=require("vscode").workspace.workspaceFolders;c?.length&&await e._workspaceIntelligence.analyzeWorkspace(c,{maxFiles:e._getIndexerMaxFiles?.()})}}catch(i){e._logger?.debug?.("Workspace intelligence reinitialization failed after performance mode toggle",i)}}}function applyPerformanceProfile(e,t,r="unspecified"){try{let n=t?.level||e.B;e.hn=!1;let i=computeEffectivePerformanceMode(e);if(i!==e._performanceMode&&(e._logger?.debug?.("Auto performance mode update",{reason:r,featureLevel:n,workspaceScale:e.u,desiredPerformanceMode:i}),togglePerformanceMode(e,i,{reason:`${r}-auto`,refresh:!0}).catch(a=>e._logger?.debug?.("Failed to toggle performance mode automatically",a))),applyConcurrencyLimit(e,r),!e._performanceMode&&(e.u==="large"||e.u==="extreme")){let a={...e.P,applyBackgroundLimits:!0,backgroundTooltipMode:e.P?.backgroundTooltipMode==="rich"?"summary":e.P?.backgroundTooltipMode};e.P=a}if(!e._performanceMode){let a=getRefreshIntervalForScale(e),o=a!==null&&a!==e.F,s=a===null&&e.F!==null;o?(e.F=a,e.Ee?.()):s&&(e.F=null,e.Ee?.())}}catch(n){e._logger?.debug?.("applyPerformanceProfile failed",n)}}function getRefreshIntervalForScale(e){return e.u==="extreme"?6e5:e.u==="large"?18e4:null}function getSmartWatcherDefaults(){try{let e=Rr();return{DEFAULT_SMART_WATCHER_EXTENSIONS:e.DEFAULT_SMART_WATCHER_EXTENSIONS,SMART_WATCHER_PRIORITY:e.SMART_WATCHER_PRIORITY}}catch{return{DEFAULT_SMART_WATCHER_EXTENSIONS:["js","ts","json","md","py","java"],SMART_WATCHER_PRIORITY:new Map([["src",100],["lib",65],["test",30]])}}}function computeEffectivePerformanceMode(e){return e.Ar===!0?!0:e.Ar===!1?!1:e.u==="extreme"}function applyConcurrencyLimit(e,t="unspecified"){let r=e.ue,n=e.Rr?e.Rr():e.st||8;e.ue=Math.max(1,Math.min(n,e.st||8)),e._logger?.info?.(`Adjusted concurrency cap ${r} -> ${e.ue} (${t})`,{workspaceScale:e.u,performanceMode:e._performanceMode})}function _buildFeatureProfile(e,t="full"){let r=FEATURE_LEVELS.includes(t)?t:"full";switch(r){case"enhanced":return{level:r,enableGit:!0,enableProgressiveAnalysis:!0,applyBackgroundLimits:!1,backgroundTooltipMode:"rich",viewportWindowMs:6e4};case"standard":return{level:r,enableGit:!0,enableProgressiveAnalysis:!1,applyBackgroundLimits:!0,backgroundTooltipMode:"summary",viewportWindowMs:48e4};case"minimal":return{level:r,enableGit:!1,enableProgressiveAnalysis:!1,applyBackgroundLimits:!0,backgroundTooltipMode:"summary",viewportWindowMs:12e4};default:return{level:r,enableGit:!0,enableProgressiveAnalysis:!1,applyBackgroundLimits:!1,backgroundTooltipMode:"rich",viewportWindowMs:3e5}}}function applyFeatureLevel(e,t,r="unspecified"){if(!t)return!1;FEATURE_LEVELS.includes(t)||(t="full");let n=e.B!==t||!e.P;e.B=t;let i=n?_buildFeatureProfile(e,t):e.P||_buildFeatureProfile(e,t);return e.P=i,e.O=i.viewportWindowMs,n&&e._logger?.info?.(`Feature level set to "${t}" (${r})`,{viewportWindowMs:e.O,applyBackgroundLimits:i.applyBackgroundLimits,backgroundTooltipMode:i.backgroundTooltipMode}),e._performanceMode?e._logger?.info?.("Performance mode active - skipping feature profile application"):(i.applyBackgroundLimits&&e.dn?.(r),i.backgroundTooltipMode&&e._logger?.info?.("Configuring background tooltip behavior as part of feature profile",{mode:i.backgroundTooltipMode}),i.enableProgressiveAnalysis&&e._logger?.info?.("Progressive analysis enabled by feature profile")),n}function maybePurgeLightweightCaches(e){try{if(!e.at)return;if(e.Pt<=0){purgeLightweightCaches(e,"lightweight-interval");return}let t=e._metrics?.totalDecorations||0;t>0&&t%e.Pt===0&&purgeLightweightCaches(e,"lightweight-interval")}catch(t){e._logger?.debug?.("maybePurgeLightweightCaches failed",t)}}function _getFlyweightValueImpl(cache,order,limit,key,factory,statsTracker){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=dynamicRequire("./decoration-pool-chunk");if(e&&typeof e.xt=="function")return e.xt(cache,order,limit,key,factory,statsTracker)}}catch{}try{return factory()}catch{return null}}function acquireDecorationFromPoolImpl({badge,tooltip,color},createFileDecoration){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=dynamicRequire("./decoration-pool-chunk");if(e&&typeof e.acquireDecorationFromPoolImpl=="function")return e.acquireDecorationFromPoolImpl({badge,tooltip,color},createFileDecoration)}}catch{}return createFileDecoration(badge||"??")}function _trimFlyweightCacheToLimitImpl(cache,order,maxSize){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=dynamicRequire("./decoration-pool-chunk");if(e&&typeof e.Mt=="function")return e.Mt(cache,order,maxSize)}}catch{}}function clearDecorationPoolImpl(provider,reason="unspecified"){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=dynamicRequire("./decoration-pool-chunk");if(e&&typeof e.clearDecorationPoolImpl=="function")return e.clearDecorationPoolImpl(provider,reason)}}catch{}try{provider.c?.size&&(provider.c.clear(),provider.$.length=0)}catch{}}function checkMemoryPressure(e){try{let t=Date.now();if(e.ct||(e.ct=t),t-e.ct<3e4)return;e.ct=t;let r=e.e.size||0,n=1e4;r/n>.8&&(e._logger?.warn?.("\u{1F9E0} Memory pressure detected, performing cleanup",{cacheSize:r,maxSize:n}),purgeLightweightCaches(e,"memory-pressure"),e._metrics.cachePressureEvents=(e._metrics.cachePressureEvents||0)+1)}catch(t){e._logger?.debug?.("checkMemoryPressure failed",t)}}function createLazyHierarchicalDecorationCache(){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=dynamicRequire("./decoration-cache-chunk");if(e&&typeof e.createLazyHierarchicalDecorationCache=="function")return e.createLazyHierarchicalDecorationCache()}}catch{}class SimpleFallbackCache{constructor(){this.ne=new Map}get size(){return this.ne.size}clear(){this.ne.clear()}get(t){return this.ne.get(t)}set(t,r){this.ne.set(t,r)}delete(t){return this.ne.delete(t)}*entries(){yield*this.ne.entries()}hydrateInBackground(){}enforceLimit(){return 0}}return new SimpleFallbackCache}module.exports={applyProgressiveLoadingSetting,cancelProgressiveWarmupJobs,createFallbackWatcher,createWatcherWithFallback,initializeAdvancedSystems,loadBatchProcessorIfNeeded,reportAllocationTelemetry,scheduleTelemetryReport,setupPeriodicRefresh,scheduleIncrementalRefresh,cancelIncrementalRefreshTimers,markCacheEntryForRefresh,maybeShedWorkload,monitorCachePressure,purgeLightweightCaches,maybePurgeLightweightCaches,checkMemoryPressure,getCachedDecoration,storeDecorationInCache,buildSummaryTooltip,formatDateReadable,getGitBlameInfo,getInitials,formatCompactSize,formatFullDate,togglePerformanceMode,applyPerformanceProfile,getRefreshIntervalForScale,computeEffectivePerformanceMode,applyConcurrencyLimit,findWorkspaceFilesWithTimeout,startWorkspaceScanWatchdog,clearWorkspaceScanWatchdog,performWorkspaceSizeCheck,applyFeatureLevel,fn:_buildFeatureProfile,getSmartWatcherDefaults,createLazyHierarchicalDecorationCache,xt:_getFlyweightValueImpl,acquireDecorationFromPoolImpl,Mt:_trimFlyweightCacheToLimitImpl,clearDecorationPoolImpl,deferPreloads,ensureWatcherManager,setupFileWatcher,registerWatcherHandlers,dispatchWatcherEvent}}});var Lr=E((qa,Wr)=>{function Hi(e){try{let t=(()=>{try{return require("vscode")}catch{return null}})(),r=t?t.workspace.getConfiguration("explorerDates"):{get:()=>6e4},n=r.get("badgeRefreshInterval",6e4),i=e.F||n;if(e.A=i,e._logger?.info?.(`Setting up periodic refresh with interval: ${e.A}ms`),e.a&&(clearInterval(e.a),e.a=null),e.i&&e.i.size){for(let a of e.i)clearTimeout(a);e.i.clear()}if(!r.get("showDateDecorations",!0)){e._logger?.info?.("Decorations disabled, skipping periodic refresh setup");return}e.a=setInterval(()=>{if(e.R){e._logger?.debug?.("Periodic refresh skipped - incremental refresh already running");return}e._logger?.debug?.("Periodic refresh triggered - scheduling incremental refresh"),Mr(e,"periodic")},e.A),e._logger?.info?.("Periodic refresh timer started")}catch(t){e._logger?.debug?.("Failed to setup periodic refresh",t)}}function xr(e){if(!(!e.i||e.i.size===0)){for(let t of e.i)clearTimeout(t);e.i.clear(),e.R=!1}}function Mr(e,t="manual"){try{if(e.D){e._logger?.debug?.(`scheduleIncrementalRefresh called after dispose - ignoring (${t})`);return}if(e.ie){e._logger?.debug?.(`Incremental refresh (${t}) skipped - refresh already pending`);return}if(e.R&&(e._logger?.debug?.(`Incremental refresh (${t}) already in progress, cancelling pending timers and rescheduling`),xr(e)),!e.e||typeof e.e.entries!="function"){e._logger?.debug?.("scheduleIncrementalRefresh: no memory cache available, firing global refresh");try{e.m.fire(void 0)}catch{}e.R=!1,e.ie=!1;return}let r=Array.from(e.e.entries());if(r.length===0){e._logger?.debug?.(`No cached decorations to refresh for ${t}, falling back to global refresh`),e.m.fire(void 0);return}let n=r.map(([c,u])=>{let l=u?.uri?u.uri:c?require("vscode").Uri.file(c):null;return l?{cacheKey:c,uri:l}:null}).filter(Boolean);if(n.length===0){e._logger?.debug?.(`Failed to resolve URIs for ${t} incremental refresh, firing global refresh`),e.m.fire(void 0);return}let i=40,a=Math.ceil(n.length/i),o=Math.min(4e3,Math.max(750,Math.floor(e.A*.25))),s=a>1?Math.max(25,Math.floor(o/a)):0;e.R=!0,e.ie=!0,e._logger?.debug?.(`Incremental refresh (${t}) scheduled for ${n.length} items in ${a} batches (spacing: ${s}ms)`);for(let c=0;c{try{if(e.D){e.i.delete(d),e.i.size||(e.R=!1,e.ie=!1);return}u.forEach(({cacheKey:h,uri:g})=>{Ir(e,h),e.m.fire(g)})}finally{e.i.delete(d),e.i.size===0&&(e.R=!1,e.ie=!1,e._logger?.debug?.(`Incremental refresh (${t}) completed`))}},l);e.i.add(d)}}catch(r){e._logger?.debug?.("Failed to schedule incremental refresh",r)}}function Ir(e,t){if(t){if(!e.e||typeof e.e.get!="function")e._logger?.debug?.("markCacheEntryForRefresh: no memory cache available, skipping");else{let r=e.e.get(t);if(r){let n=Date.now()-r.timestamp;n>e.S*.75?(r.forceRefresh=!0,e._logger?.debug?.(`Marked stale entry for refresh: ${t} (age: ${Math.round(n/1e3)}s)`)):e._logger?.debug?.(`Skipped refresh for fresh entry: ${t} (age: ${Math.round(n/1e3)}s)`)}}if(e._advancedCache)try{let r=t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e._advancedCache.invalidateByPattern(r)}catch(r){e._logger?.debug?.(`Could not invalidate advanced cache for ${t}: ${r.message}`)}}}Wr.exports={setupPeriodicRefresh:Hi,cancelIncrementalRefreshTimers:xr,scheduleIncrementalRefresh:Mr,markCacheEntryForRefresh:Ir}});var Br=E((Ba,$r)=>{var f=require("vscode"),{fileSystem:$i}=Be(),{formatFileSize:Bi}=Ke(),{getSettingsCoordinator:Ki}=Ge(),{SecurityValidator:za,SecureFileOperations:Ua,detectSecurityEnvironment:ji}=Je(),{DEFAULT_CACHE_TIMEOUT:Fe,DEFAULT_MAX_CACHE_SIZE:ie,GLOBAL_STATE_KEYS:Ha,DEFAULT_DECORATION_POOL_SIZE:Vi,DEFAULT_FLYWEIGHT_CACHE_SIZE:Or,WORKSPACE_SCALE_EXTREME_THRESHOLD:$a}=I(),{isWebEnvironment:Gi}=J(),{isWebDiagnosticsEnabled:Nr,diagLogOnce:Ae,recordProviderEvent:Xi,recordDecorationCall:Yi,recordRefreshCall:Zi}=he(),{resolveFreshness:Ji,compareFreshness:Qi,resourceIdentity:qr}=it(),S=typeof process<"u"&&process.env?process.env:{},ea=300*1e3,ta=Number(S.EXPLORER_DATES_VIEWPORT_HISTORY_LIMIT||400),zr=Number(S.EXPLORER_DATES_SECURITY_MAX_WARNINGS_PER_FILE??1),Ur=["full","enhanced","standard","minimal"],Hr=new Map([["src",100],["lib",65],["test",30]]);function ra(){try{let e=f?.window?.activeColorTheme?.kind,t=e===f.ColorThemeKind.HighContrast,r=e===f.ColorThemeKind.Light;return t?{veryRecent:new f.ThemeColor("list.highlightForeground"),recent:new f.ThemeColor("list.warningForeground"),old:new f.ThemeColor("list.errorForeground"),javascript:new f.ThemeColor("list.highlightForeground"),css:new f.ThemeColor("list.warningForeground"),html:new f.ThemeColor("list.errorForeground"),json:new f.ThemeColor("list.highlightForeground"),markdown:new f.ThemeColor("list.warningForeground"),python:new f.ThemeColor("list.errorForeground"),subtle:new f.ThemeColor("list.highlightForeground"),muted:new f.ThemeColor("list.inactiveSelectionForeground"),emphasis:new f.ThemeColor("list.focusHighlightForeground")}:r?{veryRecent:new f.ThemeColor("list.highlightForeground"),recent:new f.ThemeColor("list.warningForeground"),old:new f.ThemeColor("list.errorForeground"),javascript:new f.ThemeColor("symbolIcon.functionForeground"),css:new f.ThemeColor("symbolIcon.colorForeground"),html:new f.ThemeColor("symbolIcon.snippetForeground"),json:new f.ThemeColor("symbolIcon.stringForeground"),markdown:new f.ThemeColor("symbolIcon.textForeground"),python:new f.ThemeColor("symbolIcon.classForeground"),subtle:new f.ThemeColor("list.inactiveSelectionForeground"),muted:new f.ThemeColor("list.deemphasizedForeground"),emphasis:new f.ThemeColor("list.highlightForeground")}:{veryRecent:new f.ThemeColor("list.highlightForeground"),recent:new f.ThemeColor("charts.yellow"),old:new f.ThemeColor("charts.red"),javascript:new f.ThemeColor("symbolIcon.functionForeground"),css:new f.ThemeColor("charts.purple"),html:new f.ThemeColor("charts.orange"),json:new f.ThemeColor("symbolIcon.stringForeground"),markdown:new f.ThemeColor("charts.yellow"),python:new f.ThemeColor("symbolIcon.classForeground"),subtle:new f.ThemeColor("list.inactiveSelectionForeground"),muted:new f.ThemeColor("list.deemphasizedForeground"),emphasis:new f.ThemeColor("list.highlightForeground")}}catch{return null}}function na(e,t){if(!t||!e)return null;let r=aa(e);return[".js",".ts",".jsx",".tsx",".mjs"].includes(r)?t.javascript:[".css",".scss",".sass",".less",".stylus"].includes(r)?t.css:[".html",".htm",".xml",".svg"].includes(r)?t.html:[".json",".yaml",".yml",".toml"].includes(r)?t.json:[".md",".markdown",".txt",".rst"].includes(r)?t.markdown:[".py",".pyx",".pyi"].includes(r)?t.python:null}var ia=e=>{try{let r=String(e||"").replace(/\\/g,"/"),n=r.lastIndexOf("/");return n===-1?r:r.substring(n+1)}catch{return"unknown"}},aa=e=>{try{let t=String(e||""),r=t.lastIndexOf(".");return r<=0?"":t.substring(r).toLowerCase()}catch{return""}},oa=e=>String(e||"").toLowerCase().replace(/\\/g,"/"),Re=e=>String(e||"").replace(/\\/g,"/"),ae=(e="")=>{if(!e)return"";if(typeof e=="string")return e;if(typeof e.fsPath=="string"&&e.fsPath.length>0)return e.fsPath;if(typeof e.path=="string"&&e.path.length>0)return e.path;if(typeof e.toString=="function")try{return e.toString(!0)}catch{return e.toString()}return String(e)},sa=(e="")=>{try{let t=typeof e=="string"?e:ae(e),r=Re(t);return ia(r)||r||"unknown"}catch{return"unknown"}},Pe=class{constructor(){this.r=null,this.n=new Map,(async()=>{try{let t=await Promise.resolve().then(()=>R(ir()));if(t&&typeof t.createLazyHierarchicalDecorationCache=="function"){let r=t.createLazyHierarchicalDecorationCache();for(let[n,i]of this.n.entries())r.set(n,i);this.r=r,this.n=null}}catch{}})()}get size(){return this.r?this.r.size:this.n.size}get bucketCount(){return this.r?this.r.bucketCount:0}clear(){if(this.r)return this.r.clear();this.n.clear()}get(t){return this.r?this.r.get(t):this.n.get(t)}set(t,r,n={}){if(this.r)return this.r.set(t,r,n);this.n.set(t,r)}delete(t){return this.r?this.r.delete(t):this.n.delete(t)}*entries(){if(this.r){yield*this.r.entries();return}yield*this.n.entries()}*keys(){if(this.r){yield*this.r.keys();return}yield*this.n.keys()}*values(){if(this.r){yield*this.r.values();return}yield*this.n.values()}[Symbol.iterator](){return this.entries()}enforceLimit(t=0){if(this.r)return this.r.enforceLimit(t);if(!t||this.n.size<=t)return 0;let r=0,i=Array.from(this.n.keys()).slice(0,Math.max(1,Math.ceil(this.n.size-t)));for(let a of i)this.n.delete(a),r++;return r}},ca=S.VSCODE_WEB==="true",xe=class{Pr(){try{let t=typeof process<"u"&&typeof process.memoryUsage=="function"?process.memoryUsage():null,r=Number(t?.heapUsed);return Number.isFinite(r)&&r>=0?Number((r/1024/1024).toFixed(2)):0}catch{return 0}}gn(){try{let t=typeof process<"u"&&typeof process.memoryUsage=="function"?process.memoryUsage():null,r=Number(t?.rss);return Number.isFinite(r)&&r>=0?Number((r/1024/1024).toFixed(2)):0}catch{return 0}}constructor(){this.m=new f.EventEmitter,this.onDidChangeFileDecorations=this.m.event,this.e=new Pe,this.mn=new Map,this.lt=new Map,this.ve=[],this.st=20,this.ue=this.st,this.ir=0,this.Be=!1,this.pn=!1,this.c=new Map,this.$=[],this.H={hits:0,misses:0,allocations:0,reuses:0},this.Jt=Vi,this.I=new Map,this.Se=[],this.Xt=Or,this.Yt={hits:0,misses:0,allocations:0,reuses:0},this.N=new Map,this.Ie=[],this.Sr=Or,this.Tr={hits:0,misses:0,allocations:0,reuses:0},this.Zt=S.EXPLORER_DATES_ENABLE_DECORATION_POOL!=="0",this.Gt=S.EXPLORER_DATES_ENABLE_FLYWEIGHTS!=="0",this.at=S.EXPLORER_DATES_LIGHTWEIGHT_MODE==="1",this._performanceMode=!1;try{let n=f.workspace.getConfiguration("explorerDates");this._performanceMode=!!n.get("performanceMode",this._performanceMode)}catch{}this.St=S.EXPLORER_DATES_MEMORY_SHEDDING==="1",this.Ft=Number(S.EXPLORER_DATES_MEMORY_SHED_THRESHOLD_MB||3),this.Tt=!1,this.ye=this.St?this.Pr():0,this.vr=Number(S.EXPLORER_DATES_MEMORY_SHED_CACHE_LIMIT||1e3),this.At=Number(S.EXPLORER_DATES_MEMORY_SHED_REFRESH_MS||6e4),this.F=null,this.nt=[],this.vt=Number(S.EXPLORER_DATES_SOFT_HEAP_ALERT_MB||2),this.re=0,this.be=!1,this.Rt=Number(S.EXPLORER_DATES_CACHE_PRESSURE_RATIO||.7),this.it=!1,this.A=null,this.a=null,this.i=new Set,this.R=!1,this.ie=!1,this.G=S.EXPLORER_DATES_FORCE_CACHE_BYPASS==="1",this.Pt=Number(S.EXPLORER_DATES_LIGHTWEIGHT_PURGE_INTERVAL||400),this._isWeb=ca||Gi(),Nr()&&(Ae("provider-impl-constructed","info","Provider implementation constructed",{isWeb:this._isWeb}),Xi("created",{source:"impl",isWeb:this._isWeb})),this.xr=Fe*4,this.yn=this.xr,this.bn=0,this.l=ie;try{let n=f.workspace.getConfiguration("explorerDates");this.S=Number(n.get("cacheTimeout",Fe))}catch{this.S=Fe}try{let n=f.workspace.getConfiguration("explorerDates");this.l=Number(n.get("maxCacheSize",ie))||ie}catch{this.l=ie}this._fileSystem=$i,this.En=!this._isWeb,this._n=!1,this.pe=null,this.wn=null,this.z=new Map,this.We=6e4,this.Mr=1e3,this.b=new Map,this.Ir=Number(S.EXPLORER_DATES_FRESHNESS_CACHE_TTL_MS||6e4),this.Wr=Number(S.EXPLORER_DATES_FRESHNESS_CACHE_MAX||2e3),this.It=new Set;try{this.Lr=Math.random().toString(36).slice(2,8),this._logger.debug(`FileDateDecorationProvider created (id=${this.Lr})`)}catch{}this.Or=null,this.kn=null,this.Nr=null,this.Dn=null;let t=Ki(),r=t?.getValue&&t.getValue("enableTelemetry");this._allocationTelemetryEnabled=S.NODE_ENV==="development"||S.EXPLORER_DATES_TELEMETRY==="1"||r===!0,this._telemetryReportInterval=Number(S.EXPLORER_DATES_TELEMETRY_INTERVAL_MS||6e4),this._telemetryReportTimer=null,this.qr=null,this.Cn=new Map,this.k=new Set,this.y=new Map,this.me=ta,this.O=300*1e3,this.et=Date.now(),this.v=[],this.rt=null,this.Sn=null;try{let n=Array.isArray(f.window?.visibleTextEditors)?f.window.visibleTextEditors:[];for(let a of n){let o=a?.document?.uri?.fsPath||a?.document?.uri?.path||"";o&&this.k.add(String(o).replace(/\\/g,"/"))}let i=f.window?.activeTextEditor?.document?.uri;if(i){let a=i.fsPath||i.path||"";a&&this.k.add(String(a).replace(/\\/g,"/"))}}catch{}this.B="full",this.P=null,this._logger=q().getLogger(),this.p={getString:n=>n,formatDate:n=>n instanceof Date?n.toString():String(n),getCurrentLocale:()=>"en",dispose:()=>{}},this._metrics={totalDecorations:0,cacheHits:0,cacheMisses:0,fileStatTimeMs:0,fileStatCalls:0,gitBlameTimeMs:0,gitBlameCalls:0,viewportPriorityDecorations:0,viewportBackgroundDecorations:0},(async()=>{try{let n=await Promise.resolve().then(()=>R(kr()));n&&typeof n.hydrateProviderOptionalSystems=="function"&&await n.hydrateProviderOptionalSystems(this)}catch(n){this._logger.debug("Failed to run provider initialization chunk",n)}})(),this._workspaceIntelligence=null,this._batchProcessor=null,this._batchProcessorModule=null,this._progressiveLoadingJobs=new Set,this._progressiveLoadingEnabled=!1,this.ae=null,this.oe=null,this._advancedCache=null,this.w=null,this.s=new Set,this.h=void 0,this.d=new Map,this.T=[],this.L=null,this.J=!0,this._enableWatcherFallbacks="auto",this._smartWatcherFallbackManager=null,this.ee=null,this.j="none",this._=new Map,this.Wt=!1,this._e=[],this.Ge=null,this.u="unknown",this.Ze=S.EXPLORER_DATES_LOG_WATCHERS==="1",this.Tn=ji(),this.Lt=!0,this.zr=[],this.Ur=!0,this.vn=!1,this.Fn=!1,this.An=new Map,this.Rn=Number(S.EXPLORER_DATES_SECURITY_WARNING_THROTTLE_MS||5e3),this.Pn=Number.isFinite(zr)?Math.max(0,zr):1,this.Le=typeof f.workspace.onDidChangeWorkspaceFolders=="function"?f.workspace.onDidChangeWorkspaceFolders(n=>this.Hr(n)):null,this.C=null,this.xn=null,this.Mn=null,this.te=null,this.In=!1,this.Je=0,this.D=!1,this._accessibility=null;try{let n=f.workspace.getConfiguration("explorerDates"),i=!!n.get("enableContextMenu",!0),a=!!n.get("showStatusBar",!1),o=!!n.get("showWelcomeOnStartup",!0),s=!!n.get("enableExtensionApi",!0);try{f.commands.executeCommand("setContext","explorerDates.enableContextMenu",i).catch(()=>{})}catch{}try{f.commands.executeCommand("setContext","explorerDates.showStatusBar",a).catch(()=>{})}catch{}try{f.commands.executeCommand("setContext","explorerDates.showWelcomeOnStartup",o).catch(()=>{})}catch{}try{f.commands.executeCommand("setContext","explorerDates.enableExtensionApi",s).catch(()=>{})}catch{}}catch(n){this._logger?.debug&&this._logger.debug("Failed to initialize UI contexts",n)}try{typeof f.workspace.onDidChangeConfiguration=="function"&&(this.w=f.workspace.onDidChangeConfiguration(n=>{try{if(!n||typeof n.affectsConfiguration!="function"||!n.affectsConfiguration("explorerDates"))return;let a=!!f.workspace.getConfiguration("explorerDates").get("performanceMode",!1);try{let o=this._performanceMode;this._performanceMode=a,a?(this.ot?.({permanent:!0}),this.a&&(clearInterval(this.a),this.a=null)):!a&&o&&(this.Q?.("runtime-config-change"),this.a||this.Ee?.())}catch(o){this._logger?.debug?.("sync performance-mode toggle failed",o)}(async()=>{try{let o=await this.Z();o&&typeof o.togglePerformanceMode=="function"&&await o.togglePerformanceMode(this,a,{reason:"runtime-config-change",refresh:!0})}catch(o){this._logger?.debug?.("delegated togglePerformanceMode failed",o)}})();try{if(["explorerDates.enableContextMenu","explorerDates.showStatusBar","explorerDates.showWelcomeOnStartup","explorerDates.enableExtensionApi"].some(c=>n.affectsConfiguration&&n.affectsConfiguration(c)))try{let c=f.workspace.getConfiguration("explorerDates"),u=!!c.get("enableContextMenu",!0),l=!!c.get("showStatusBar",!1),d=!!c.get("showWelcomeOnStartup",!0),h=!!c.get("enableExtensionApi",!0);try{f.commands.executeCommand("setContext","explorerDates.enableContextMenu",u).catch(()=>{})}catch{}try{f.commands.executeCommand("setContext","explorerDates.showStatusBar",l).catch(()=>{})}catch{}try{f.commands.executeCommand("setContext","explorerDates.showWelcomeOnStartup",d).catch(()=>{})}catch{}try{f.commands.executeCommand("setContext","explorerDates.enableExtensionApi",h).catch(()=>{})}catch{}}catch(c){this._logger?.debug&&this._logger.debug("Failed to update UI contexts on config change",c)}}catch(o){this._logger?.debug&&this._logger.debug("Failed to evaluate UI-context update condition",o)}try{let o=f.workspace.getConfiguration("explorerDates");if(n.affectsConfiguration&&n.affectsConfiguration("explorerDates.cacheTimeout"))try{this.S=Number(o.get("cacheTimeout",Fe))}catch{}if(n.affectsConfiguration&&n.affectsConfiguration("explorerDates.maxCacheSize"))try{this.l=Number(o.get("maxCacheSize",ie))||ie}catch{}}catch(o){this._logger?.debug&&this._logger.debug("Failed to refresh runtime config values from settings",o)}(async()=>{try{if(n.affectsConfiguration&&n.affectsConfiguration("explorerDates.workspaceExclusionProfiles")&&this._workspaceIntelligence?.smartExclusion?.cleanupAllWorkspaceProfiles&&await this._workspaceIntelligence.smartExclusion.cleanupAllWorkspaceProfiles(),n.affectsConfiguration&&n.affectsConfiguration("explorerDates.showWelcomeOnStartup"))try{let o=!!f.workspace.getConfiguration("explorerDates").get("showWelcomeOnStartup",!0);this._extensionContext&&this._extensionContext.globalState&&typeof this._extensionContext.globalState.update=="function"&&await this._extensionContext.globalState.update("explorerDates.pendingWelcome",o)}catch(o){this._logger?.debug&&this._logger.debug("Failed to persist pending welcome flag",o)}}catch(o){this._logger?.debug&&this._logger.debug("Failed to run workspace exclusion cleanup after config change",o)}})()}catch(i){this._logger?.debug?.("configuration change handler failed",i)}}))}catch(n){this._logger?.debug?.("Failed to register configuration watcher",n)}try{this._performanceMode?(this.h=void 0,this.a=null):(this.Q?.("initial"),this.Ee?.())}catch(n){this._logger?.debug?.("initial watcher/refresh setup failed",n)}try{this.$r?.()}catch{}}ut(){if(this.f)return this.f;try{let t=ft();t&&typeof t.createWatcherManager=="function"&&(this.f=t.createWatcherManager(this))}catch(t){this._logger?.debug?.("Failed to create watcher manager",t)}return this.f}Hr(t){try{let r=this.ut();if(r&&typeof r.handleWorkspaceFoldersChanged=="function"){r.handleWorkspaceFoldersChanged(t);return}let n=(t?.added||[]).map(a=>a.uri).filter(Boolean),i=(t?.removed||[]).map(a=>a.uri).filter(Boolean);if(n.length===0&&i.length===0)return;this.C&&clearTimeout(this.C),this.C=setTimeout(()=>{this.C=null,(async()=>{try{this._logger?.info&&this._logger.info("Workspace folders changed (provider fallback)",{added:n.length,removed:i.length}),await this.checkWorkspaceSize();try{this.clearAllCaches()}catch{}try{this.refreshAll()}catch{}if(this._performanceMode)return;this.Q?.("workspace-change");try{typeof this.wt=="function"&&await this.wt()}catch(a){this._logger?.debug&&this._logger.debug("Failed to reconfigure progressive loading after workspace change",a)}if(this._workspaceIntelligence&&typeof this._workspaceIntelligence.onWorkspaceFoldersChanged=="function"){let a=(f.workspace.workspaceFolders||[]).map(o=>({uri:o.uri}));await this._workspaceIntelligence.onWorkspaceFoldersChanged({added:a,removed:i.map(o=>({uri:o}))})}}catch(a){this._logger?.debug&&this._logger.debug("Workspace folder change handling failed",a)}})()},250)}catch(r){this._logger?.debug&&this._logger.debug("provider._handleWorkspaceFoldersChanged failed",r)}}gr(t=[]){try{if(!Array.isArray(t))return[];let r=new Set;return t.map(n=>String(n||"").replace(/^\./,"").toLowerCase().trim()).filter(n=>!!n).filter(n=>r.has(n)?!1:(r.add(n),!0))}catch{return[]}}mr(t){try{let r=Number(t||0);(!Number.isFinite(r)||r<=0)&&(r=20);let n=Number(S.EXPLORER_DATES_MAX_SMART_WATCHER_PATTERNS||200);return Math.max(1,Math.min(Math.floor(r),Math.max(1,n)))}catch{return 20}}async K(t,r={}){try{try{let s=dt();if(s&&typeof s.K=="function")return await s.K(this,t,r)}catch{}let n=[],i=Math.max(1,r&&r.maxPatterns||1),a=i,o=Array.isArray(t)?t.length:0;for(let s of t||[]){if(a<=0)break;let c=Math.max(1,Math.floor(a/Math.max(1,o))),u=new f.RelativePattern(s,"*.{md,mdx,json,jsonc,yml,yaml,ts,tsx,js,jsx}");if(n.push({pattern:u,label:`root:${s.name}`}),a-=1,a<=0)break;try{let l=typeof this._fileSystem?.readdir=="function"?await this._fileSystem.readdir(s.uri||s.fsPath||s):[],d=(Array.isArray(l)?l:[]).filter(h=>h&&(typeof h.isDirectory=="function"?h.isDirectory():!0)).map(h=>typeof h=="string"?h:h.name||"").filter(Boolean).filter(h=>!["node_modules",".git","dist","build","out"].includes(h));d.sort((h,g)=>(Hr.get(g)||0)-(Hr.get(h)||0));for(let h of d){if(a<=0)break;let g=new f.RelativePattern(s,`${h}/**/*.{md,mdx,json,jsonc,yml,yaml,ts,tsx,js,jsx}`);n.push({pattern:g,label:`sub:${s.name}/${h}`}),a-=1}}catch{}o-=1}return n.slice(0,i)}catch{return[]}}fe(t,r,n){try{if(!t||typeof r!="string"||typeof n!="function")return null;let i=t[r];if(typeof i=="function")try{return i.call(t,n)}catch{return null}return null}catch{return null}}_getIndexerMaxFiles(){try{return Math.max(100,Number(S.EXPLORER_DATES_INDEXER_MAX_FILES||2e3))}catch{return 2e3}}Q(t="initial"){try{if(this._performanceMode||this.D)return;this.h||(this.h={pending:!0});let r=this.ut();if(r&&typeof r.setupFileWatcher=="function")try{r.setupFileWatcher(t);return}catch(n){this._logger?.debug?.("WatcherManager.setupFileWatcher failed",n)}(async()=>{try{let n=await this.Z();n&&typeof n.setupFileWatcher=="function"&&await n.setupFileWatcher(this,t)}catch(n){this._logger?.debug?.("Fallback setupFileWatcher failed",n)}})()}catch(r){this._logger?.debug?.("provider._setupFileWatcher failed",r)}}async Fe(t,r){try{let n="manual",i=typeof t=="number"?t:typeof r=="number"?r:++this.Je;typeof t=="string"&&(n=t);let a=this.ut();if(a&&typeof a.Fe=="function")return await a.Fe(i,n);this.Q(n);return}catch(n){this._logger?.debug&&this._logger.debug("provider._initializeSmartWatchers failed",n)}}ot(t={}){try{let r=t&&t.permanent===!0;if(this.f&&typeof this.f.disposeFileWatchers=="function"){try{this.f.disposeFileWatchers({permanent:r})}catch(n){this._logger?.debug?.("watcherManager.disposeFileWatchers failed",n)}this.h=r?null:void 0}else this.s&&typeof this.s.forEach=="function"&&(this.s.forEach(n=>{try{n&&typeof n.dispose=="function"&&n.dispose()}catch{}}),this.s.clear()),this.h=r?null:void 0;if(this._&&this._.size){for(let n of this._.values())clearTimeout(n.timer);this._.clear()}}catch(r){this._logger?.debug?.("provider._disposeFileWatchers failed",r)}}Ee(){try{let t=(()=>{try{return Pr()}catch{return null}})();if(t&&typeof t.setupPeriodicRefresh=="function")try{t.setupPeriodicRefresh(this);return}catch(a){this._logger?.debug?.("adv.setupPeriodicRefresh failed",a)}try{let a=Lr();if(a&&typeof a.setupPeriodicRefresh=="function"){a.setupPeriodicRefresh(this);return}}catch{}let r=f.workspace.getConfiguration("explorerDates"),n=r.get("badgeRefreshInterval",6e4),i=this.F||n;if(this.A=i,this.a&&(clearInterval(this.a),this.a=null),!r.get("showDateDecorations",!0))return;this.a=setInterval(()=>{try{try{this.m.fire(void 0)}catch{}}catch{}},this.A)}catch(t){this._logger?.debug?.("provider._setupPeriodicRefresh failed",t)}}async initializeAdvancedSystems(t){try{let n=await ge().decorationsAdvanced();if(n&&typeof n.initializeAdvancedSystems=="function")return n.initializeAdvancedSystems(this,t);this._logger.info&&this._logger.info("Advanced systems chunk unavailable - skipping advanced initialization")}catch(r){this._logger.error&&this._logger.error("Failed to initialize advanced systems",r)}}async checkWorkspaceSize(){try{let r=await ge().decorationsAdvanced();if(r&&typeof r.performWorkspaceSizeCheck=="function")return r.performWorkspaceSizeCheck(this)}catch(t){this._logger.debug&&this._logger.debug("Delegated checkWorkspaceSize failed",t)}try{let t=require("vscode"),r=await(t.workspace.findFiles?t.workspace.findFiles("**/*",null,100):[]),n=Array.isArray(r)?r.length:0;this.Ge=n;let{WORKSPACE_SCALE_LARGE_THRESHOLD:i,WORKSPACE_SCALE_EXTREME_THRESHOLD:a}=I();this.u=n>=a?"extreme":n>=i?"large":"normal";try{this.Xe(this.Ye(),"workspace-scale-change-fallback")}catch{}return}catch(t){this._logger.debug&&this._logger.debug("performWorkspaceSizeCheck fallback failed",t)}}async provideFileDecoration(t,r){try{await this.Ot&&this.Ot()}catch{}Yi();try{if(this.U&&typeof this.U.provideDecoration=="function")try{let n=await this.U.provideDecoration(t,r);return n==null?n:typeof n!="object"?void 0:"badge"in n||"tooltip"in n||"color"in n?n:void 0}catch(n){this._logger?.debug&&this._logger.debug("Decoration helper threw",n);return}}catch(n){this._logger?.debug("Decoration provider helper failed",n)}try{if(this.Oe||(this.Oe=Promise.resolve().then(()=>Ce()).then(n=>{this.U=n.createDecorationProviderHelpers?n.createDecorationProviderHelpers(this):n}).finally(()=>{this.Oe=null})),this.Oe&&await this.Oe,this.U&&typeof this.U.provideDecoration=="function")try{let n=await this.U.provideDecoration(t,r);return n==null?n:typeof n!="object"?void 0:"badge"in n||"tooltip"in n||"color"in n?n:void 0}catch(n){this._logger?.debug&&this._logger.debug("Decoration helper threw",n);return}}catch(n){this._logger?.debug("Failed to load decoration provider chunk",n)}}je(t,r=""){try{if(!t)return{isValid:!1};let n=String(t.fsPath||t.path||"");return n?n.indexOf("\0")!==-1?{isValid:!1}:{isValid:!0}:{isValid:!1}}catch{return{isValid:!1}}}async tr(t){try{let r=String(t.fsPath||t.path||"");if(!r)return!1;let n=r.replace(/\\/g,"/");return["node_modules","/.git/","/dist/"].some(a=>n.includes(a))}catch{return!1}}async rr(t,r){try{return await r()}catch(n){throw n}}Ve(t){try{return String(t.fsPath||t.path||"").replace(/\\/g,"/")}catch{return String(t||"")}}Ot(){try{let t=require("vscode").workspace.getConfiguration("explorerDates"),r=t.get("security.allowTestPaths",!0),n=Array.isArray(t.get("security.allowedExtraPaths",[]))?t.get("security.allowedExtraPaths",[]):[],i=t.get("security.enableBoundaryEnforcement"),a=t.get("security.enforceWorkspaceBoundaries");this.Ur=r!==!1;let o=(()=>{try{return require("path")}catch{return null}})(),s=(n||[]).filter(Boolean).map(c=>{try{return o?o.normalize(String(c)):String(c)}catch{return String(c)}});this.zr=s,typeof i=="boolean"?this.Lt=i:typeof a=="boolean"&&(this.Lt=a)}catch(t){this._logger?.debug&&this._logger.debug("Failed to ensure security configuration",t)}}async nr(t,r){try{if(this.G)return this._logger?.debug?.(`Cache bypass enabled - recalculating decoration for: ${r}`),null;if(this._advancedCache)try{let i=await this._advancedCache.get(t);if(i)return this._metrics.cacheHits++,this._logger?.debug?.(`Advanced cache hit for: ${r}`),i}catch(i){this._logger?.debug?.(`Advanced cache error: ${i.message}`)}if(!this.e||typeof this.e.get!="function")return null;let n=this.e.get(t);if(n){if(n.forceRefresh){try{this.e.delete(t)}catch{}this._logger?.debug?.(`Memory cache bypassed (forced refresh) for: ${r}`)}else if(Date.now()-n.timestamp{switch(o){case"enhanced":return{level:o,enableGit:!0,enableProgressiveAnalysis:!0,applyBackgroundLimits:!1,backgroundTooltipMode:"rich",viewportWindowMs:6e4,enableColors:!0};case"standard":return{level:o,enableGit:!0,enableProgressiveAnalysis:!1,applyBackgroundLimits:!0,backgroundTooltipMode:"summary",viewportWindowMs:48e4,enableColors:!0};case"minimal":return{level:o,enableGit:!1,enableProgressiveAnalysis:!1,applyBackgroundLimits:!0,backgroundTooltipMode:"summary",viewportWindowMs:12e4,enableColors:!1};default:return{level:"full",enableGit:!0,enableProgressiveAnalysis:!1,applyBackgroundLimits:!1,backgroundTooltipMode:"rich",viewportWindowMs:ea,enableColors:!0}}},a=n?i(t):this.P||i(t);if(this.P=a,this.O=a.viewportWindowMs,n&&this._logger?.info?.(`Feature level set to "${t}" (${r})`,{viewportWindowMs:this.O,applyBackgroundLimits:a.applyBackgroundLimits,backgroundTooltipMode:a.backgroundTooltipMode}),this._performanceMode)return this._logger?.info&&this._logger.info("Performance mode active - skipping feature profile application"),n;try{a.applyBackgroundLimits&&typeof this.Br=="function"&&this.Br(r)}catch{}return n}catch(n){return this._logger?.debug&&this._logger.debug("Failed to apply feature level",n),!1}}mt(t){try{let r=Re(ae(t)||"");return this.k.has(r)||this.y.has(r)}catch{return!1}}Y(t,{reason:r="unknown",visible:n=!1}={}){try{let i=Re(ae(t)||""),a=Date.now();if(n)this.k.add(i);else for(this.y.set(i,a);this.y.size>(Number(this.me)||400);){let o=this.y.keys().next().value;if(!o)break;this.y.delete(o)}n?this._metrics.viewportPriorityDecorations=(this._metrics.viewportPriorityDecorations||0)+1:this._metrics.viewportBackgroundDecorations=(this._metrics.viewportBackgroundDecorations||0)+1}catch{}}or(){return!1}sr(t){return!!(t&&(t.code==="ENOENT"||/not found/i.test(t.message||"")))}async Z(){try{return this.ae?this.ae:this.oe?await this.oe:(this.oe=(async()=>{try{let{getFeatureFlagsGlobal:t}=G(),r=t(),n=r?await r.decorationsAdvanced():null;return this.ae=n||null,this.ae}catch(t){return this._logger?.debug&&this._logger.debug("Failed to load decorationsAdvanced chunk",t),this.ae=null,null}finally{this.oe=null}})(),await this.oe)}catch(t){try{this._logger?.debug&&this._logger.debug("provider._getDecorationsAdvancedChunk failed",t)}catch{}return null}}Qt(t,r,n){try{let i=Math.floor((Date.now()-t.getTime())/864e5);return i<=0?"\u2022":i<10?String(i):"\u2022"}catch{return"\u2022"}}gt(t,r="auto"){try{return Bi(t,r)}catch{return`${t} bytes`}}lr(t,r,n){try{if(!r||r==="none")return;let i=(()=>{if(!this._isWeb)return!1;try{return!!f.workspace.getConfiguration("explorerDates").get("webDiagnosticsBuiltinColors",!1)}catch{return!1}})(),a=Date.now()-(t instanceof Date?t.getTime():new Date(t).getTime());if(i){let s=new f.ThemeColor("list.warningForeground"),c=new f.ThemeColor("list.deemphasizedForeground"),u=new f.ThemeColor("list.errorForeground");return Nr()&&Ae("web-builtin-color-fallback","info","Web builtin color fallback enabled"),r==="file-type"?s:r==="subtle"?c:a<36e5?s:a<864e5?c:u}if(r==="custom")return a<36e5?new f.ThemeColor("explorerDates.customColor.veryRecent"):a<864e5?new f.ThemeColor("explorerDates.customColor.recent"):new f.ThemeColor("explorerDates.customColor.old");if(r==="recency")return a<36e5?new f.ThemeColor("list.highlightForeground"):a<864e5?new f.ThemeColor("charts.yellow"):new f.ThemeColor("charts.red");let o=ra();if(r==="file-type"||r==="adaptive"){let s=na(n,o);if(s)return s;if(r==="adaptive"&&o)return a<36e5?o.veryRecent:a<864e5?o.recent:o.old}return r==="subtle"&&o?a<36e5?o.subtle:a<6048e5?o.muted:o.emphasis:r==="vibrant"&&o?a<36e5?o.veryRecent:a<864e5?o.recent:o.old:void 0}catch{return}}Kr(t){try{let r=t?.scheme||"file";return this._isWeb||r!=="file"}catch{return this._isWeb}}jr(t){try{if(t?.toString)return t.toString(!0)}catch{}try{let r=t?.scheme||"file",n=t?.path||t?.fsPath||"";return`${r}://${n}`}catch{return String(t||"")}}Vr(t,r){try{return`${qr(t,{platform:process.platform})}::${r||"auto"}`}catch{return String(t||"unknown")}}Gr(t){try{let r=this.b.get(t);return r?r.expiresAt&&r.expiresAt=this.Wr){let i=this.b.keys().next().value;i&&this.b.delete(i)}let n=this.b.get(t);if(n&&n.freshness&&Qi(n.freshness,r)>0)return;this.b.set(t,{freshness:r,expiresAt:Date.now()+this.Ir})}catch{}}Yr(t,r,n="auto"){try{let i=String(n||"auto").toLowerCase(),a=t||"unknown",o=`${i}:${a}`;if(this.It.has(o))return;this.It.add(o);let s=i==="git"||i==="github"?"warn":"debug";this._logger?.[s]?.("Freshness source unavailable, falling back to unknown",{reason:a,policy:i,uri:r?ae(r):null})}catch{}}ht(t=""){try{let r=String(t||"");r=r.replace(/\\/g,"/"),r=r.replace(/\/{2,}/g,"/"),r=r.replace(/^\/+/,"");try{r=decodeURIComponent(r)}catch{}return r}catch{return""}}Ne(t,r){try{if(this.z.size>=this.Mr){let n=this.z.keys().next().value;n&&this.z.delete(n)}this.z.set(t,r)}catch{}}async He(t){let r=this.jr(t),n=Date.now(),i=this.z.get(r);if(i&&i.expiresAt&&i.expiresAt>n)return i;let a={timestampMs:null,available:!1,error:null,expiresAt:n+this.We,repoMatched:null,pathAttempted:null};try{let o=f?.extensions?.getExtension?f.extensions.getExtension("vscode.git"):null;if(!o)return this._isWeb&&Ae("git-extension-unavailable-web","info","Git extension not available in web mode - timestamps will use fs.stat fallback"),a.error="git-extension-missing",this.Ne(r,a),a;if(!o.isActive&&typeof o.activate=="function")try{await o.activate()}catch{}let s=o.exports?.getAPI?.(1);if(!s)return a.error="git-api-unavailable",this.Ne(r,a),a;a.available=!0;let c=typeof s.getRepository=="function"?s.getRepository(t):null,u=t?.path||t?.fsPath||"",l=this.ht(u);if(!c&&Array.isArray(s.repositories)&&(c=s.repositories.find(_=>{let M=_?.rootUri?.path||_?.rootUri?.fsPath||"",F=this.ht(M);return F&&l&&l.startsWith(F)})||null),!c||typeof c.log!="function")return a.error="git-repo-unavailable",a.repoMatched=!1,a.expiresAt=n+Math.min(this.We,5e3),this.Ne(r,a),a;a.repoMatched=!0;let d=this.ht(c?.rootUri?.path||c?.rootUri?.fsPath||""),h=d&&l.startsWith(d)?l.slice(d.length).replace(/^\/+/,""):l;a.pathAttempted=h||l||"";let g=await c.log({maxEntries:1,path:a.pathAttempted}),y=Array.isArray(g)?g[0]:null,m=y?.commitDate||y?.authorDate||y?.date||y?.committerDate,D=m?new Date(m).getTime():null;a.author=y?.authorName||y?.author?.name||y?.author||null,a.message=y?.message||y?.subject||null,Number.isFinite(D)?a.timestampMs=D:(a.error="git-log-empty",a.expiresAt=n+Math.min(this.We,5e3))}catch(o){a.error=o?.message?`git-error:${o.message}`:"git-error",a.expiresAt=n+Math.min(this.We,5e3)}return this.Ne(r,a),a}async Wn(t,r){let n=r?.mtime?r.mtime instanceof Date?r.mtime:new Date(r.mtime):null,i=n&&typeof n.getTime=="function"?n.getTime():NaN,a=Number.isFinite(i)?n:null,o=t?.scheme||"file";if(!this.Kr(t))return{timestamp:a,source:a?"fs-stat":"none",gitAvailable:!1,gitError:null,repoMatched:null,pathAttempted:null};let s;try{s=await this.He(t)}catch(u){s={timestampMs:null,available:!1,error:u?.message?`git-error:${u.message}`:"git-error",repoMatched:null,pathAttempted:null}}if(s?.timestampMs)return{timestamp:new Date(s.timestampMs),source:"git",gitAvailable:s.available,gitError:s.error,repoMatched:s.repoMatched,pathAttempted:s.pathAttempted};let c=a?"fs-stat":"none";if(a&&o!=="file"){let u=Date.now()-a.getTime();u>=0&&u<=6e4?c="fs-stat-suspect":this._isWeb&&u>6e4&&Ae("web-fs-stat-limitation","info","Web mode timestamps may reflect workspace open time, not actual file modification time. Git extension would provide accurate timestamps if available.")}return this._isWeb&&o!=="file"&&(s?.error||!s?.available)?{timestamp:null,source:"web-unknown",gitAvailable:!1,gitError:s?.error||null,repoMatched:s?.repoMatched??null,pathAttempted:s?.pathAttempted||null}:{timestamp:a,source:c,gitAvailable:s?.available||!1,gitError:s?.error||null,repoMatched:s?.repoMatched??null,pathAttempted:s?.pathAttempted||null}}async pt(t,r,n={}){let i=f.workspace.getConfiguration("explorerDates"),a=n.workspaceKind||(this._isWeb?"web":"desktop"),o=i.get("freshnessSourcePolicy","auto"),s=this.Vr(t,o),c=this.Gr(s);if(c)return c;let u=await Ji({uri:t,stat:r,provider:this,config:i,workspaceKind:a});return this.Xr(s,u),u?.source==="unknown"&&this.Yr(u?.reason||"unknown",t,o),u}async Te(t={}){try{let r=t.stat?.mtime||t.stat?.birthtime||new Date;return`Modified: ${(r instanceof Date?r:new Date(r)).toISOString()}`}catch{return""}}clearAllCaches(){try{try{this.e&&typeof this.e.clear=="function"&&this.e.clear()}catch{}try{this.c&&typeof this.c.clear=="function"&&this.c.clear()}catch{}try{this.$&&(this.$.length=0)}catch{}try{this.I&&typeof this.I.clear=="function"&&this.I.clear()}catch{}try{this.Se&&(this.Se.length=0)}catch{}try{this.N&&typeof this.N.clear=="function"&&this.N.clear()}catch{}try{this.Ie&&(this.Ie.length=0)}catch{}try{this._advancedCache&&typeof this._advancedCache.clear=="function"&&this._advancedCache.clear()}catch{}try{this.z&&typeof this.z.clear=="function"&&this.z.clear()}catch{}try{this.b&&typeof this.b.clear=="function"&&this.b.clear()}catch{}}catch(t){this._logger?.debug&&this._logger.debug("clearAllCaches failed",t)}}Me(t){try{if(!this.b||this.b.size===0)return;let r=`${qr(t,{platform:process.platform})}::`;for(let n of this.b.keys())typeof n=="string"&&n.startsWith(r)&&this.b.delete(n)}catch{}}Zr(t={}){try{this.clearAllCaches()}catch{}try{this.refreshAll()}catch{}try{t?.head&&this._logger?.info&&this._logger.info("Git HEAD change detected; caches refreshed",{head:t.head})}catch{}}$r(){this.Wt||(this.Wt=!0,(async()=>{try{let t=f?.extensions?.getExtension?f.extensions.getExtension("vscode.git"):null;if(!t)return;if(!t.isActive&&typeof t.activate=="function")try{await t.activate()}catch{}let r=t.exports?.getAPI?.(1);if(!r)return;let n=i=>{try{if(!i||!i.state||typeof i.state.onDidChange!="function")return;let a=i.state.HEAD?.commit||i.state.HEAD?.name||null,o=i.state.onDidChange(()=>{let s=i.state.HEAD?.commit||i.state.HEAD?.name||null;s!==a&&(a=s,this.Zr({repo:i,head:s}))});o&&this._e.push(o)}catch{}};if(Array.isArray(r.repositories)&&r.repositories.forEach(i=>n(i)),typeof r.onDidOpenRepository=="function"){let i=r.onDidOpenRepository(a=>n(a));i&&this._e.push(i)}}catch(t){this._logger?.debug?.("Failed to register git HEAD watcher",t)}})())}refreshAll(){try{this.m.fire(void 0),Zi()}catch(t){this._logger?.debug&&this._logger.debug("refreshAll failed",t)}}applyPreviewSettings(t){try{t&&typeof t=="object"?(this.X=t,this._logger?.info&&this._logger.info("Preview settings applied",t)):(this.X=null,this._logger?.info&&this._logger.info("Preview settings cleared"));try{this.clearAllCaches()}catch{}this.refreshAll()}catch(r){this._logger?.debug&&this._logger.debug("applyPreviewSettings failed",r)}}refreshDecoration(t){try{try{this.Me(t)}catch{}this.m.fire(t)}catch(r){this._logger?.debug&&this._logger.debug("refreshDecoration failed",r)}}clearDecoration(t){try{try{this.Me(t)}catch{}let r=t?typeof t=="string"?t:ae(t):"",n=this.Ve?this.Ve(t):oa(r);try{this.e&&typeof this.e.delete=="function"&&this.e.delete(n)}catch{}try{this._advancedCache&&typeof this._advancedCache.delete=="function"&&this._advancedCache.delete(n)}catch{}try{this.m.fire(t)}catch{}}catch(r){this._logger?.debug&&this._logger.debug("clearDecoration failed",r)}}cr({badge:t,tooltip:r,color:n}){try{let i=require("vscode"),a=new i.FileDecoration(String(t||""),r||void 0,n||void 0);try{n&&(a.color=n)}catch{}return a}catch{return{badge:t,tooltip:r,color:n}}}ur(t,r,n,i,a){try{if(this.G)return;if(!this.e||typeof this.e.set!="function"||typeof this.e.size!="number")try{this.e=new Pe}catch{}if(!this.e||typeof this.e.set!="function")return;if(typeof this.e.size=="number"&&this.e.size>this.l)try{this.e.enforceLimit(this.l)}catch{}let o={decoration:r,timestamp:Date.now()};a&&(o.freshness=a),i&&(o.uri=i);try{this.e.set(t,o)}catch{}try{typeof this.ce=="function"&&this.ce()}catch(s){this._logger?.debug?.("monitorCachePressure from store failed",s)}if(this._advancedCache)try{this._advancedCache.set(t,r,{ttl:this.S}),this._logger?.debug?.(`Stored in advanced cache: ${n}`)}catch(s){this._logger?.debug?.(`Failed to store in advanced cache: ${s.message}`)}try{typeof this.le=="function"&&this.le()}catch(s){this._logger?.debug?.("maybeExtendCacheTimeout from store failed",s)}}catch(o){this._logger?.debug?.("storeDecorationInCache failed",o)}}getMetrics(){let t={decorationPool:{allocations:0,reuses:0,reusePercent:"0%"},badgeFlyweight:{allocations:0,reuses:0,reusePercent:"0%"},readableFlyweight:{allocations:0,reuses:0,reusePercent:"0%"}},r=this._metrics?.cacheHits||0,n=this._metrics?.cacheMisses||0,i=r+n>0?(r/(r+n)*100).toFixed(2)+"%":"0.00%";return{totalDecorations:this._metrics?.totalDecorations||0,cacheSize:this.c&&this.c.size||0,cacheHits:r,cacheMisses:n,cacheHitRate:i,workspaceScale:this.u||"unknown",allocationTelemetry:t,performanceTiming:{avgGitBlameMs:this._metrics?.gitBlameCalls?(this._metrics.gitBlameTimeMs/this._metrics.gitBlameCalls).toFixed(1):"0.0",avgFileStatMs:this._metrics?.fileStatCalls?(this._metrics.fileStatTimeMs/this._metrics.fileStatCalls).toFixed(1):"0.0",gitBlameCalls:this._metrics?.gitBlameCalls||0,fileStatCalls:this._metrics?.fileStatCalls||0},cacheDebugging:{cacheNamespace:this.qr}}}forceRefreshAllDecorations(){try{this._logger?.info&&this._logger.info("\u{1F504} Force refreshing ALL decorations...");try{this.e&&typeof this.e.clear=="function"&&this.e.clear()}catch{}try{this.c&&typeof this.c.clear=="function"&&this.c.clear()}catch{}try{this._advancedCache&&typeof this._advancedCache.clear=="function"&&this._advancedCache.clear()}catch{}try{this.m.fire(void 0)}catch{}this._logger?.info&&this._logger.info("\u{1F504} Triggered global decoration refresh")}catch(t){this._logger?.debug&&this._logger.debug("forceRefreshAllDecorations failed",t)}}startProviderCallMonitoring(){try{if(this.D){this._logger?.debug&&this._logger.debug("startProviderCallMonitoring called after dispose - no-op");return}if(this.Nt){this.Vt=0,this.Re=new Set,this._logger?.info&&this._logger.info("\u{1F4CA} Provider call monitoring restarted (counters reset)");return}this.Nt=!0,this.Vt=0,this.Re=new Set;let t=this.provideFileDecoration.bind(this);this.qe=t,this.provideFileDecoration=async(r,n)=>{try{this.Vt=(this.Vt||0)+1;let i=ae(r)||(r&&typeof r.toString=="function"?r.toString(!0):"unknown");this.Re.add(Re(i)),this._logger?.info&&this._logger.info(`\u{1F50D} Provider called ${this.Vt} times for: ${sa(r||i)}`)}catch{}return t(r,n)},this._logger?.info&&this._logger.info("\u{1F4CA} Started provider call monitoring")}catch(t){this._logger?.debug&&this._logger.debug("startProviderCallMonitoring failed",t)}}getProviderCallStats(){try{return{totalCalls:this.Vt||0,uniqueFiles:this.Re?this.Re.size:0,calledFiles:this.Re?Array.from(this.Re):[]}}catch{return{totalCalls:0,uniqueFiles:0,calledFiles:[]}}}async dispose(){if(this.D)return;this.D=!0,this.Be=!0;try{this._telemetryReportTimer&&(clearTimeout(this._telemetryReportTimer),this._telemetryReportTimer=null)}catch{}try{this.a&&(clearInterval(this.a),this.a=null)}catch{}try{if(this.i&&this.i.size){for(let r of this.i)clearTimeout(r);this.i.clear()}this.R=!1,this.ie=!1}catch{}try{this.L&&(clearTimeout(this.L),this.L=null)}catch{}try{this.C&&(clearTimeout(this.C),this.C=null)}catch{}try{try{this.ot({permanent:!0})}catch{}if(this.f&&typeof this.f.disposeFileWatchers=="function")try{this.f.disposeFileWatchers({permanent:!0})}catch{}this.f=null}catch{}try{this.te&&(clearTimeout(this.te),this.te=null)}catch{}try{this.m&&typeof this.m.dispose=="function"&&this.m.dispose()}catch{}try{if(Array.isArray(this.T)){for(let r of this.T)try{r.dispose&&r.dispose()}catch{}this.T.length=0}}catch{}try{if(Array.isArray(this._e)){for(let r of this._e)try{r.dispose&&r.dispose()}catch{}this._e.length=0}}catch{}try{if(Array.isArray(this.v)){for(let r of this.v)try{r.dispose&&r.dispose()}catch{}this.v.length=0}}catch{}let t=async r=>{try{r&&typeof r.dispose=="function"&&await r.dispose()}catch{}};await t(this._advancedCache),await t(this._batchProcessor),await t(this.rt),await t(this.pe),await t(this._workspaceIntelligence),await t(this._smartWatcherFallbackManager),await t(this.Or),await t(this.Nr);try{if(this.s&&typeof this.s.forEach=="function"&&(this.s.forEach(r=>{try{r&&typeof r.dispose=="function"&&r.dispose()}catch{}}),this.s.clear()),this.h&&typeof this.h.dispose=="function"){try{this.h.dispose()}catch{}this.h=void 0}this.d&&typeof this.d.forEach=="function"&&(this.d.forEach(r=>{try{r?.watcher?.dispose&&r.watcher.dispose()}catch{}}),this.d.clear())}catch{}try{this.e&&typeof this.e.clear=="function"&&this.e.clear()}catch{}try{this.c&&typeof this.c.clear=="function"&&this.c.clear()}catch{}try{this.I&&typeof this.I.clear=="function"&&this.I.clear()}catch{}try{this.N&&typeof this.N.clear=="function"&&this.N.clear()}catch{}try{this.lt&&this.lt.clear&&this.lt.clear()}catch{}try{this.ve&&this.ve.length&&(this.ve.length=0)}catch{}try{this._advancedCache=null,this._batchProcessor=null,this.rt=null,this.pe=null,this._workspaceIntelligence=null}catch{}try{this.Le&&typeof this.Le.dispose=="function"&&(this.Le.dispose(),this.Le=null)}catch{}try{this.w&&typeof this.w.dispose=="function"&&(this.w.dispose(),this.w=null)}catch{}try{if(this.qe&&typeof this.qe=="function"){try{this.provideFileDecoration=this.qe}catch{}this.qe=null,this.Nt=!1,this.Vt=0,this.Re=new Set}}catch{}try{this.ae=null,this.oe=null}catch{}this._logger?.info&&this._logger.info("FileDateDecorationProvider disposed")}};$r.exports={FileDateDecorationProviderImpl:xe,FileDateDecorationProvider:xe}});var Me=null;try{typeof require=="function"&&(Me=Br())}catch{}if(!Me&&typeof globalThis<"u"){let e=globalThis.explorerDatesChunks||globalThis.hr||null;e&&(Me=e.fileDateProviderImpl||e.fileDateProviderImpl||null)}var gt=Me||{};module.exports={FileDateDecorationProvider:gt.FileDateDecorationProvider,FileDateDecorationProviderImpl:gt.FileDateDecorationProviderImpl||gt.FileDateDecorationProvider}; diff --git a/dist/chunks/providerInit.js b/dist/chunks/providerInit.js index adbd39e..6691a90 100644 --- a/dist/chunks/providerInit.js +++ b/dist/chunks/providerInit.js @@ -1,4 +1,4 @@ -var rr=Object.create;var qe=Object.defineProperty;var nr=Object.getOwnPropertyDescriptor;var or=Object.getOwnPropertyNames;var ir=Object.getPrototypeOf,ar=Object.prototype.hasOwnProperty;var E=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var sr=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of or(t))!ar.call(e,o)&&o!==r&&qe(e,o,{get:()=>t[o],enumerable:!(n=nr(t,o))||n.enumerable});return e};var Se=(e,t,r)=>(r=e!=null?rr(ir(e)):{},sr(t||!e||!e.__esModule?qe(r,"default",{value:e,enumerable:!0}):r,e));var se=E((zn,$e)=>{var Ke=typeof process<"u"&&process.env?process.env:{},He="[ExplorerDates][WebDiag]",Ce="__explorerDatesWebDiagnostics",ae;function lr(){try{let e=require("vscode");return e?.env?.uiKind===e?.UIKind?.Web}catch{return Ke.VSCODE_WEB==="true"}}function F(){return ae!==void 0||(ae=Ke.EXPLORER_DATES_WEB_DIAG==="1"||lr()),ae}function Be(){return{enabled:F(),logs:[],logOnce:new Set,commandsRegistered:new Set,commandsInvoked:[],errors:[],chunkLoads:[],provider:{created:!1,registered:!1,hydrated:!1,decorationCalls:0,refreshCalls:0,lastEvent:null}}}var cr=Be();function _(){return typeof globalThis<"u"?(globalThis[Ce]||(globalThis[Ce]=Be()),globalThis[Ce]):cr}function ur(e){try{return JSON.stringify(e)}catch{return String(e)}}function R(e,t,r){if(!F())return;let n=_(),o={ts:new Date().toISOString(),level:e,message:t,meta:r||null};n.logs.push(o),n.logs.length>400&&n.logs.shift();let i=r?`${He} ${t} ${ur(r)}`:`${He} ${t}`,a=console[e]||console.info;try{a(i)}catch{}}function dr(e,t,r,n){if(!F())return;let o=_();o.logOnce.has(e)||(o.logOnce.add(e),R(t,r,n))}function fr(e){if(!F())return;_().commandsRegistered.add(e),R("info","Command registered",{commandId:e})}function pr(e){if(!F())return;_().commandsInvoked.push({commandId:e,ts:Date.now()}),R("info","Command invoked",{commandId:e})}function mr(e,t,r){F()&&(t?R("info","Command completed",{commandId:e}):(R("error","Command failed",{commandId:e,error:r?.message,stack:r?.stack}),_().errors.push({commandId:e,error:r?.message,stack:r?.stack})))}function gr(e,t,r){if(!F())return;_().chunkLoads.push({chunkName:e,stage:t,ts:Date.now(),error:r?r.message||String(r):null}),R(r?"warn":"info",`Chunk ${t}`,{chunkName:e,error:r?.message})}function hr(e,t){if(!F())return;let r=_();r.provider.lastEvent={event:e,ts:Date.now(),meta:t||null},e==="created"&&(r.provider.created=!0),e==="registered"&&(r.provider.registered=!0),e==="hydrated"&&(r.provider.hydrated=!0),R("info",`Provider ${e}`,t)}function yr(){if(!F())return;let e=_();e.provider.decorationCalls+=1,e.provider.decorationCalls<=3&&R("info","Decoration request observed",{count:e.provider.decorationCalls})}function br(){if(!F())return;let e=_();e.provider.refreshCalls+=1}$e.exports={isWebDiagnosticsEnabled:F,getWebDiagnosticsState:_,diagLog:R,diagLogOnce:dr,recordCommandRegistration:fr,recordCommandInvocation:pr,recordCommandResult:mr,recordChunkEvent:gr,recordProviderEvent:hr,recordDecorationCall:yr,recordRefreshCall:br}});var Z=E((Vn,Ve)=>{var ze=require("vscode");function Er(){try{let e=ze?.env?.uiKind,t=ze?.UIKind?.Web;return e!==void 0&&t!==void 0&&e===t}catch{return!1}}Ve.exports={isWebEnvironment:Er}});var J=E((jn,Ge)=>{var $=typeof process<"u"&&process.env?process.env:{},Dr=12e4,vr=1e4,Sr=1440*60*1e3,Cr=2,kr=["Ja","Fe","Mr","Ap","My","Jn","Jl","Au","Se","Oc","No","De"],wr=Number($.EXPLORER_DATES_DECORATION_POOL_SIZE||2048),Tr=Number($.EXPLORER_DATES_FLYWEIGHT_CACHE_SIZE||4096),Ar=Number($.EXPLORER_DATES_WORKSPACE_BALANCED_THRESHOLD||15e3),Fr=Number($.EXPLORER_DATES_WORKSPACE_LARGE_THRESHOLD||25e4),je=Number($.EXPLORER_DATES_WORKSPACE_EXTREME_THRESHOLD||4e5),_r=Number($.EXPLORER_DATES_WORKSPACE_SCAN_MAX_RESULTS||Math.min(je+1,50001)),Rr={ADVANCED_CACHE:"explorerDates.advancedCache",ADVANCED_CACHE_METADATA:"explorerDates.advancedCacheMetadata",TEMPLATE_STORE:"explorerDates.templates",WEB_GIT_NOTICE:"explorerDates.webGitNotice"},xr="explorerDatesChunks",Pr="__explorerDatesChunks";Ge.exports={DEFAULT_CACHE_TIMEOUT:Dr,DEFAULT_MAX_CACHE_SIZE:vr,DEFAULT_PERSISTENT_CACHE_TTL:Sr,DEFAULT_DECORATION_POOL_SIZE:wr,DEFAULT_FLYWEIGHT_CACHE_SIZE:Tr,MAX_BADGE_LENGTH:Cr,MONTH_ABBREVIATIONS:kr,WORKSPACE_SCALE_BALANCED_THRESHOLD:Ar,WORKSPACE_SCALE_LARGE_THRESHOLD:Fr,WORKSPACE_SCALE_EXTREME_THRESHOLD:je,WORKSPACE_SCAN_MAX_RESULTS:_r,GLOBAL_STATE_KEYS:Rr,WEB_CHUNK_GLOBAL_KEY:xr,LEGACY_WEB_CHUNK_GLOBAL_KEY:Pr}});var Xe=E((Gn,Ir)=>{Ir.exports={migrationDetailsTitle:"Explorer Dates - Settings Migration",migrationDetailsHeader:"Settings Migration",gitAttributionWarning:"Explorer Dates: Git attribution badges are unavailable on VS Code for Web. Time-based decorations remain available.",noOverridesToDocument:"No overrides to document.",overrideNotesHeader:"# Explorer Dates Override Notes\\n\\n",analysisCommandsDisabled:"Explorer Dates analysis commands are disabled. Shortcuts like Ctrl+Shift+M/H/A will not work until you enable explorerDates.enableAnalysisCommands.",analysisEnableNow:"Enable Now",analysisEnablePartially:"Enable partially succeeded. Update explorerDates.enableAnalysisCommands in remaining workspace folders manually.",analysisEnableFailed:"Enable failed: update explorerDates.enableAnalysisCommands in workspace settings.",workspaceTemplatesDisabled:"Workspace templates are disabled. Enable explorerDates.enableWorkspaceTemplates to use this command.",workspaceTemplatesDisabledSave:"Workspace templates are disabled. Enable explorerDates.enableWorkspaceTemplates to save templates.",enterTemplateName:"Enter template name",enterTemplateDescription:"Enter description (optional)",failedToOpenTemplateManager:"Failed to open template manager: {0}",failedToSaveTemplate:"Failed to save template: {0}",reportingDisabled:"Reporting features are disabled. Enable explorerDates.enableExportReporting to generate reports.",failedToGenerateReport:"Failed to generate report: {0}",apiDisabled:"Explorer Dates API is disabled via settings.",failedToShowApiInformation:"Failed to show API information: {0}",failedToShowWorkspaceActivity:"Failed to show workspace activity: {0}",failedToShowPerformanceAnalytics:"Failed to show performance analytics: {0}",failedToShowCacheDebugInfo:"Failed to show cache debug info: {0}",noWorkspaceFolderOpen:"No workspace folder open",now:"now",minutes:"m",hours:"h",days:"d",weeks:"w",months:"mo",years:"y",justNow:"just now",minutesAgo:"{0} minute(s) ago",hoursAgo:"{0} hour(s) ago",daysAgo:"{0} day(s) ago",lastModified:"Last modified",refreshSuccess:"Date decorations refreshed",activationError:"Explorer Dates failed to activate",errorAccessingFile:"Error accessing file for decoration",clearTelemetryPrompt:"This will permanently delete locally-stored telemetry events for Explorer Dates. This action cannot be undone. Proceed?",clearTelemetryConfirm:"Clear Telemetry",clearTelemetryCancel:"Cancel",reportFormatDisabled:'Report format "{0}" is disabled. Allowed formats: {1}',reportDownloadTriggered:"Report download triggered in browser",selectReportTimeRangePlaceholder:"Select report time range",selectReportFormatPlaceholder:"Select report format",cleanupNoDeprecated:"\u2139\uFE0F No deprecated settings found to clean up.",showMigrationHistoryNoHistory:"No migration history found.",resetConfirmation:"This will reset all Explorer Dates settings to their default values. Are you sure?",resetConfirm:"Reset Settings",resetCancel:"Cancel",resetSuccess:"\u2705 Reset {0} settings to defaults.",validateNoIssues:"\u2705 Configuration is valid - no issues found!",validateFoundIssues:"Found {0} configuration issue(s). Would you like to see details?",validateShowDetails:"Show Details",validateDismiss:"Dismiss",migrationNotificationMessage:"Explorer Dates updated {0} setting(s) for compatibility. Your configuration has been preserved.",migrationViewChanges:"View Changes",migrationOpenSettings:"Open Settings",deprecatedPrompt:"Explorer Dates found {0} deprecated setting(s). Would you like to remove them?",deprecatedClean:"Clean Up Now",deprecatedKeep:"Keep Old Settings",deprecatedAskLater:"Ask Later",showFileLocation:"Show File Location",teamConfigCorrupted:"Explorer Dates team configuration file appears to be corrupted. Please check the .explorer-dates-profiles.json file or restore from backup.",appliedFromTeamProfile:'Applied {0} Explorer Dates settings from team profile "{1}".',documentedOverrides:"Documented Explorer Dates overrides in .vscode/explorer-dates-overrides.md",teamConfigMissingProfile:"Team configuration is missing an active profile.",ephemeralStorageEnospc:"Explorer Dates team configuration could not be saved because the disk is full.",ephemeralStorageGeneric:"Explorer Dates team configuration could not be saved because the workspace is read-only or permissions are restricted.",ephemeralStorageSuffix:"Changes will be kept in memory until VS Code restarts, so they may be lost."}});var Ye=E((Xn,Lr)=>{Lr.exports={migrationDetailsTitle:"Explorer Dates - Migraci\xF3n de configuraci\xF3n",migrationDetailsHeader:"Migraci\xF3n de configuraci\xF3n",gitAttributionWarning:"Explorer Dates: Las insignias de atribuci\xF3n de Git no est\xE1n disponibles en VS Code para la Web. Las decoraciones basadas en tiempo siguen disponibles.",noOverridesToDocument:"No hay anulaciones para documentar.",overrideNotesHeader:"# Notas de anulaci\xF3n de Explorer Dates\\n\\n",analysisCommandsDisabled:"Los comandos de an\xE1lisis de Explorer Dates est\xE1n deshabilitados. Atajos como Ctrl+Shift+M/H/A no funcionar\xE1n hasta que habilites explorerDates.enableAnalysisCommands.",analysisEnableNow:"Habilitar ahora",analysisEnablePartially:"La activaci\xF3n se complet\xF3 parcialmente. Actualiza explorerDates.enableAnalysisCommands manualmente en las carpetas de trabajo restantes.",analysisEnableFailed:"Error al habilitar: actualiza explorerDates.enableAnalysisCommands en la configuraci\xF3n del espacio de trabajo.",workspaceTemplatesDisabled:"Las plantillas de espacio de trabajo est\xE1n deshabilitadas. Habilita explorerDates.enableWorkspaceTemplates para usar este comando.",workspaceTemplatesDisabledSave:"Las plantillas de espacio de trabajo est\xE1n deshabilitadas. Habilita explorerDates.enableWorkspaceTemplates para guardar plantillas.",enterTemplateName:"Introduce el nombre de la plantilla",enterTemplateDescription:"Introduce la descripci\xF3n (opcional)",failedToOpenTemplateManager:"Error al abrir el administrador de plantillas: {0}",failedToSaveTemplate:"Error al guardar la plantilla: {0}",reportingDisabled:"Las funciones de informes est\xE1n deshabilitadas. Habilita explorerDates.enableExportReporting para generar informes.",failedToGenerateReport:"Error al generar el informe: {0}",apiDisabled:"La API de Explorer Dates est\xE1 deshabilitada mediante la configuraci\xF3n.",failedToShowApiInformation:"Error al mostrar la informaci\xF3n de la API: {0}",failedToShowWorkspaceActivity:"Error al mostrar la actividad del espacio de trabajo: {0}",failedToShowPerformanceAnalytics:"Error al mostrar los an\xE1lisis de rendimiento: {0}",failedToShowCacheDebugInfo:"Error al mostrar la informaci\xF3n de depuraci\xF3n de la cach\xE9: {0}",noWorkspaceFolderOpen:"No hay ninguna carpeta de espacio de trabajo abierta",now:"ahora",minutes:"m",hours:"h",days:"d",weeks:"sem",months:"mes",years:"a",justNow:"justo ahora",minutesAgo:"hace {0} minuto(s)",hoursAgo:"hace {0} hora(s)",daysAgo:"hace {0} d\xEDa(s)",lastModified:"\xDAltima modificaci\xF3n",refreshSuccess:"Decoraciones de fecha actualizadas",activationError:"Explorer Dates no se pudo activar",errorAccessingFile:"Error al acceder al archivo para la decoraci\xF3n",clearTelemetryPrompt:"Esto eliminar\xE1 permanentemente los eventos de telemetr\xEDa almacenados localmente para Explorer Dates. Esta acci\xF3n no se puede deshacer. \xBFContinuar?",clearTelemetryConfirm:"Borrar telemetr\xEDa",clearTelemetryCancel:"Cancelar",reportFormatDisabled:'El formato de informe "{0}" est\xE1 deshabilitado. Formatos permitidos: {1}',reportDownloadTriggered:"Descarga del informe iniciada en el navegador",selectReportTimeRangePlaceholder:"Seleccionar rango de tiempo del informe",selectReportFormatPlaceholder:"Seleccionar formato del informe",cleanupNoDeprecated:"\u2139\uFE0F No se encontraron configuraciones obsoletas para limpiar.",showMigrationHistoryNoHistory:"No se encontr\xF3 historial de migraci\xF3n.",resetConfirmation:"Esto restablecer\xE1 todas las configuraciones de Explorer Dates a sus valores predeterminados. \xBFEst\xE1s seguro?",resetConfirm:"Restablecer configuraciones",resetCancel:"Cancelar",resetSuccess:"\u2705 Se restablecieron {0} configuraciones a los valores predeterminados.",validateNoIssues:"\u2705 La configuraci\xF3n es v\xE1lida - no se encontraron problemas.",validateFoundIssues:"Se encontraron {0} problema(s) de configuraci\xF3n. \xBFDeseas ver los detalles?",validateShowDetails:"Mostrar detalles",validateDismiss:"Descartar",migrationNotificationMessage:"Explorer Dates actualiz\xF3 {0} configuraci\xF3n(es) por compatibilidad. Tu configuraci\xF3n se ha conservado.",migrationViewChanges:"Ver cambios",migrationOpenSettings:"Abrir configuraciones",deprecatedPrompt:"Explorer Dates encontr\xF3 {0} configuraci\xF3n(es) obsoleta(s). \xBFDeseas eliminarlas?",deprecatedClean:"Limpiar ahora",deprecatedKeep:"Mantener configuraciones antiguas",deprecatedAskLater:"Preguntar m\xE1s tarde",showFileLocation:"Mostrar ubicaci\xF3n del archivo",teamConfigCorrupted:"El archivo de configuraci\xF3n de equipo de Explorer Dates parece estar da\xF1ado. Verifica el archivo .explorer-dates-profiles.json o restaura desde una copia de seguridad.",appliedFromTeamProfile:'Se aplicaron {0} configuraciones de Explorer Dates desde el perfil de equipo "{1}".',documentedOverrides:"Se documentaron las anulaciones de Explorer Dates en .vscode/explorer-dates-overrides.md",teamConfigMissingProfile:"La configuraci\xF3n del equipo no tiene un perfil activo.",ephemeralStorageEnospc:"No se pudo guardar la configuraci\xF3n de equipo de Explorer Dates porque el disco est\xE1 lleno.",ephemeralStorageGeneric:"No se pudo guardar la configuraci\xF3n de equipo de Explorer Dates porque el espacio de trabajo es de solo lectura o los permisos est\xE1n restringidos.",ephemeralStorageSuffix:"Los cambios se mantendr\xE1n en memoria hasta que VS Code se reinicie, por lo que podr\xEDan perderse."}});var Ze=E((Yn,Nr)=>{Nr.exports={migrationDetailsTitle:"Explorer Dates - Migration des param\xE8tres",migrationDetailsHeader:"Migration des param\xE8tres",gitAttributionWarning:"Explorer Dates : Les badges d\u2019attribution Git ne sont pas disponibles sur VS Code pour le Web. Les d\xE9corations bas\xE9es sur le temps restent disponibles.",noOverridesToDocument:"Aucune substitution \xE0 documenter.",overrideNotesHeader:"# Notes de substitution Explorer Dates\\n\\n",analysisCommandsDisabled:"Les commandes d\u2019analyse Explorer Dates sont d\xE9sactiv\xE9es. Les raccourcis comme Ctrl+Shift+M/H/A ne fonctionneront pas tant que vous n\u2019aurez pas activ\xE9 explorerDates.enableAnalysisCommands.",analysisEnableNow:"Activer maintenant",analysisEnablePartially:"L\u2019activation a partiellement r\xE9ussi. Mettez \xE0 jour explorerDates.enableAnalysisCommands manuellement dans les dossiers d\u2019espace de travail restants.",analysisEnableFailed:"\xC9chec de l\u2019activation : mettez \xE0 jour explorerDates.enableAnalysisCommands dans les param\xE8tres de l\u2019espace de travail.",workspaceTemplatesDisabled:"Les mod\xE8les d\u2019espace de travail sont d\xE9sactiv\xE9s. Activez explorerDates.enableWorkspaceTemplates pour utiliser cette commande.",workspaceTemplatesDisabledSave:"Les mod\xE8les d\u2019espace de travail sont d\xE9sactiv\xE9s. Activez explorerDates.enableWorkspaceTemplates pour enregistrer des mod\xE8les.",enterTemplateName:"Entrez le nom du mod\xE8le",enterTemplateDescription:"Entrez la description (facultatif)",failedToOpenTemplateManager:"Impossible d\u2019ouvrir le gestionnaire de mod\xE8les : {0}",failedToSaveTemplate:"Impossible d\u2019enregistrer le mod\xE8le : {0}",reportingDisabled:"Les fonctionnalit\xE9s de rapport sont d\xE9sactiv\xE9es. Activez explorerDates.enableExportReporting pour g\xE9n\xE9rer des rapports.",failedToGenerateReport:"Impossible de g\xE9n\xE9rer le rapport : {0}",apiDisabled:"L\u2019API Explorer Dates est d\xE9sactiv\xE9e via les param\xE8tres.",failedToShowApiInformation:"Impossible d\u2019afficher les informations de l\u2019API : {0}",failedToShowWorkspaceActivity:"Impossible d\u2019afficher l\u2019activit\xE9 de l\u2019espace de travail : {0}",failedToShowPerformanceAnalytics:"Impossible d\u2019afficher les analyses de performance : {0}",failedToShowCacheDebugInfo:"Impossible d\u2019afficher les informations de d\xE9bogage du cache : {0}",noWorkspaceFolderOpen:"Aucun dossier d\u2019espace de travail ouvert",now:"maintenant",minutes:"min",hours:"h",days:"j",weeks:"sem",months:"mois",years:"an",justNow:"\xE0 l\u2019instant",minutesAgo:"il y a {0} minute(s)",hoursAgo:"il y a {0} heure(s)",daysAgo:"il y a {0} jour(s)",lastModified:"Derni\xE8re modification",refreshSuccess:"D\xE9corations de date actualis\xE9es",activationError:"\xC9chec de l\u2019activation d\u2019Explorer Dates",errorAccessingFile:"Erreur lors de l\u2019acc\xE8s au fichier pour la d\xE9coration",clearTelemetryPrompt:"Cela supprimera d\xE9finitivement les \xE9v\xE9nements de t\xE9l\xE9m\xE9trie stock\xE9s localement pour Explorer Dates. Cette action est irr\xE9versible. Continuer ?",clearTelemetryConfirm:"Effacer la t\xE9l\xE9m\xE9trie",clearTelemetryCancel:"Annuler",reportFormatDisabled:'Le format de rapport "{0}" est d\xE9sactiv\xE9. Formats autoris\xE9s : {1}',reportDownloadTriggered:"T\xE9l\xE9chargement du rapport lanc\xE9 dans le navigateur",selectReportTimeRangePlaceholder:"S\xE9lectionner la p\xE9riode du rapport",selectReportFormatPlaceholder:"S\xE9lectionner le format du rapport",cleanupNoDeprecated:"\u2139\uFE0F Aucun param\xE8tre obsol\xE8te \xE0 nettoyer.",showMigrationHistoryNoHistory:"Aucun historique de migration trouv\xE9.",resetConfirmation:"Cela r\xE9initialisera tous les param\xE8tres Explorer Dates \xE0 leurs valeurs par d\xE9faut. \xCAtes-vous s\xFBr ?",resetConfirm:"R\xE9initialiser les param\xE8tres",resetCancel:"Annuler",resetSuccess:"\u2705 {0} param\xE8tres ont \xE9t\xE9 r\xE9initialis\xE9s aux valeurs par d\xE9faut.",validateNoIssues:"\u2705 La configuration est valide - aucun probl\xE8me d\xE9tect\xE9 !",validateFoundIssues:"{0} probl\xE8me(s) de configuration trouv\xE9(s). Voulez-vous voir les d\xE9tails ?",validateShowDetails:"Afficher les d\xE9tails",validateDismiss:"Ignorer",migrationNotificationMessage:"Explorer Dates a mis \xE0 jour {0} param\xE8tre(s) pour compatibilit\xE9. Votre configuration a \xE9t\xE9 conserv\xE9e.",migrationViewChanges:"Voir les modifications",migrationOpenSettings:"Ouvrir les param\xE8tres",deprecatedPrompt:"Explorer Dates a trouv\xE9 {0} param\xE8tre(s) obsol\xE8te(s). Voulez-vous les supprimer ?",deprecatedClean:"Nettoyer maintenant",deprecatedKeep:"Conserver les anciens param\xE8tres",deprecatedAskLater:"Demander plus tard",showFileLocation:"Afficher l\u2019emplacement du fichier",teamConfigCorrupted:"Le fichier de configuration d\u2019\xE9quipe Explorer Dates semble corrompu. V\xE9rifiez le fichier .explorer-dates-profiles.json ou restaurez-le depuis une sauvegarde.",appliedFromTeamProfile:'{0} param\xE8tres Explorer Dates appliqu\xE9s depuis le profil d\u2019\xE9quipe "{1}".',documentedOverrides:"Substitutions Explorer Dates document\xE9es dans .vscode/explorer-dates-overrides.md",teamConfigMissingProfile:"La configuration d\u2019\xE9quipe ne contient aucun profil actif.",ephemeralStorageEnospc:"Impossible d\u2019enregistrer la configuration d\u2019\xE9quipe Explorer Dates car le disque est plein.",ephemeralStorageGeneric:"Impossible d\u2019enregistrer la configuration d\u2019\xE9quipe Explorer Dates car l\u2019espace de travail est en lecture seule ou les permissions sont restreintes.",ephemeralStorageSuffix:"Les modifications seront conserv\xE9es en m\xE9moire jusqu\u2019au red\xE9marrage de VS Code et pourraient \xEAtre perdues."}});var Je=E((Zn,Or)=>{Or.exports={migrationDetailsTitle:"Explorer Dates - Einstellungen migrieren",migrationDetailsHeader:"Einstellungen migrieren",gitAttributionWarning:"Explorer Dates: Git-Zuordnungsabzeichen sind in VS Code f\xFCr das Web nicht verf\xFCgbar. Zeitbasierte Hervorhebungen bleiben verf\xFCgbar.",noOverridesToDocument:"Keine \xDCberschreibungen zu dokumentieren.",overrideNotesHeader:"# Explorer Dates \xDCberschreibungsnotizen\\n\\n",analysisCommandsDisabled:"Die Analysebefehle von Explorer Dates sind deaktiviert. Tastenkombinationen wie Ctrl+Shift+M/H/A funktionieren nicht, bis explorerDates.enableAnalysisCommands aktiviert ist.",analysisEnableNow:"Jetzt aktivieren",analysisEnablePartially:"Die Aktivierung war teilweise erfolgreich. Aktualisieren Sie explorerDates.enableAnalysisCommands manuell in den verbleibenden Workspace-Ordnern.",analysisEnableFailed:"Aktivierung fehlgeschlagen: Aktualisieren Sie explorerDates.enableAnalysisCommands in den Workspace-Einstellungen.",workspaceTemplatesDisabled:"Workspace-Vorlagen sind deaktiviert. Aktivieren Sie explorerDates.enableWorkspaceTemplates, um diesen Befehl zu verwenden.",workspaceTemplatesDisabledSave:"Workspace-Vorlagen sind deaktiviert. Aktivieren Sie explorerDates.enableWorkspaceTemplates, um Vorlagen zu speichern.",enterTemplateName:"Vorlagenname eingeben",enterTemplateDescription:"Beschreibung eingeben (optional)",failedToOpenTemplateManager:"Fehler beim \xD6ffnen des Vorlagenmanagers: {0}",failedToSaveTemplate:"Fehler beim Speichern der Vorlage: {0}",reportingDisabled:"Berichtsfunktionen sind deaktiviert. Aktivieren Sie explorerDates.enableExportReporting, um Berichte zu erstellen.",failedToGenerateReport:"Fehler beim Erstellen des Berichts: {0}",apiDisabled:"Die Explorer Dates API ist in den Einstellungen deaktiviert.",failedToShowApiInformation:"Fehler beim Anzeigen der API-Informationen: {0}",failedToShowWorkspaceActivity:"Fehler beim Anzeigen der Workspace-Aktivit\xE4t: {0}",failedToShowPerformanceAnalytics:"Fehler beim Anzeigen der Leistungsanalysen: {0}",failedToShowCacheDebugInfo:"Fehler beim Anzeigen der Cache-Debug-Informationen: {0}",noWorkspaceFolderOpen:"Kein Workspace-Ordner ge\xF6ffnet",now:"jetzt",minutes:"Min",hours:"Std",days:"T",weeks:"W",months:"Mon",years:"J",justNow:"gerade eben",minutesAgo:"vor {0} Minute(n)",hoursAgo:"vor {0} Stunde(n)",daysAgo:"vor {0} Tag(en)",lastModified:"Zuletzt ge\xE4ndert",refreshSuccess:"Datumsdekorationen aktualisiert",activationError:"Explorer Dates konnte nicht aktiviert werden",errorAccessingFile:"Fehler beim Zugriff auf Datei f\xFCr Dekoration",clearTelemetryPrompt:"Dies l\xF6scht dauerhaft lokal gespeicherte Telemetrieereignisse f\xFCr Explorer Dates. Diese Aktion kann nicht r\xFCckg\xE4ngig gemacht werden. Fortfahren?",clearTelemetryConfirm:"Telemetrie l\xF6schen",clearTelemetryCancel:"Abbrechen",reportFormatDisabled:'Berichtsformat "{0}" ist deaktiviert. Zul\xE4ssige Formate: {1}',reportDownloadTriggered:"Bericht-Download im Browser gestartet",selectReportTimeRangePlaceholder:"Berichtszeitraum ausw\xE4hlen",selectReportFormatPlaceholder:"Berichtsformat ausw\xE4hlen",cleanupNoDeprecated:"\u2139\uFE0F Keine veralteten Einstellungen zum Bereinigen gefunden.",showMigrationHistoryNoHistory:"Kein Migrationsverlauf gefunden.",resetConfirmation:"Dies setzt alle Explorer Dates Einstellungen auf ihre Standardwerte zur\xFCck. Sind Sie sicher?",resetConfirm:"Einstellungen zur\xFCcksetzen",resetCancel:"Abbrechen",resetSuccess:"\u2705 {0} Einstellungen auf Standard zur\xFCckgesetzt.",validateNoIssues:"\u2705 Konfiguration ist g\xFCltig - keine Probleme gefunden!",validateFoundIssues:"{0} Konfigurationsproblem(e) gefunden. M\xF6chten Sie Details sehen?",validateShowDetails:"Details anzeigen",validateDismiss:"Verwerfen",migrationNotificationMessage:"Explorer Dates hat {0} Einstellung(en) zur Kompatibilit\xE4t aktualisiert. Ihre Konfiguration wurde beibehalten.",migrationViewChanges:"\xC4nderungen anzeigen",migrationOpenSettings:"Einstellungen \xF6ffnen",deprecatedPrompt:"Explorer Dates hat {0} veraltete Einstellung(en) gefunden. M\xF6chten Sie sie entfernen?",deprecatedClean:"Jetzt bereinigen",deprecatedKeep:"Alte Einstellungen behalten",deprecatedAskLater:"Sp\xE4ter fragen",showFileLocation:"Dateispeicherort anzeigen",teamConfigCorrupted:"Die Teamkonfigurationsdatei von Explorer Dates scheint besch\xE4digt zu sein. Bitte pr\xFCfen Sie die Datei .explorer-dates-profiles.json oder stellen Sie sie aus einem Backup wieder her.",appliedFromTeamProfile:'{0} Explorer Dates-Einstellungen aus dem Teamprofil "{1}" angewendet.',documentedOverrides:"Explorer Dates-\xDCberschreibungen in .vscode/explorer-dates-overrides.md dokumentiert",teamConfigMissingProfile:"Der Teamkonfiguration fehlt ein aktives Profil.",ephemeralStorageEnospc:"Die Teamkonfiguration von Explorer Dates konnte nicht gespeichert werden, da die Festplatte voll ist.",ephemeralStorageGeneric:"Die Teamkonfiguration von Explorer Dates konnte nicht gespeichert werden, da der Workspace schreibgesch\xFCtzt ist oder die Berechtigungen eingeschr\xE4nkt sind.",ephemeralStorageSuffix:"\xC4nderungen werden im Speicher behalten, bis VS Code neu startet, und k\xF6nnen verloren gehen."}});var Qe=E((Jn,Wr)=>{Wr.exports={migrationDetailsTitle:"Explorer Dates - \u8A2D\u5B9A\u306E\u79FB\u884C",migrationDetailsHeader:"\u8A2D\u5B9A\u306E\u79FB\u884C",gitAttributionWarning:"Explorer Dates: Git \u306E\u5E30\u5C5E\u30D0\u30C3\u30B8\u306F VS Code for Web \u3067\u306F\u5229\u7528\u3067\u304D\u307E\u305B\u3093\u3002\u6642\u9593\u30D9\u30FC\u30B9\u306E\u88C5\u98FE\u306F\u5F15\u304D\u7D9A\u304D\u5229\u7528\u3067\u304D\u307E\u3059\u3002",noOverridesToDocument:"\u30C9\u30AD\u30E5\u30E1\u30F3\u30C8\u5316\u3059\u308B\u4E0A\u66F8\u304D\u306F\u3042\u308A\u307E\u305B\u3093\u3002",overrideNotesHeader:"# Explorer Dates \u4E0A\u66F8\u304D\u30E1\u30E2\\n\\n",analysisCommandsDisabled:"Explorer Dates \u306E\u5206\u6790\u30B3\u30DE\u30F3\u30C9\u306F\u7121\u52B9\u306B\u306A\u3063\u3066\u3044\u307E\u3059\u3002Ctrl+Shift+M/H/A \u306A\u3069\u306E\u30B7\u30E7\u30FC\u30C8\u30AB\u30C3\u30C8\u306F explorerDates.enableAnalysisCommands \u3092\u6709\u52B9\u306B\u3059\u308B\u307E\u3067\u6A5F\u80FD\u3057\u307E\u305B\u3093\u3002",analysisEnableNow:"\u4ECA\u3059\u3050\u6709\u52B9\u306B\u3059\u308B",analysisEnablePartially:"\u6709\u52B9\u5316\u306F\u4E00\u90E8\u6210\u529F\u3057\u307E\u3057\u305F\u3002\u6B8B\u308A\u306E\u30EF\u30FC\u30AF\u30B9\u30DA\u30FC\u30B9\u30D5\u30A9\u30EB\u30C0\u30FC\u3067 explorerDates.enableAnalysisCommands \u3092\u624B\u52D5\u3067\u66F4\u65B0\u3057\u3066\u304F\u3060\u3055\u3044\u3002",analysisEnableFailed:"\u6709\u52B9\u5316\u306B\u5931\u6557\u3057\u307E\u3057\u305F\uFF1A\u30EF\u30FC\u30AF\u30B9\u30DA\u30FC\u30B9\u8A2D\u5B9A\u3067 explorerDates.enableAnalysisCommands \u3092\u66F4\u65B0\u3057\u3066\u304F\u3060\u3055\u3044\u3002",workspaceTemplatesDisabled:"\u30EF\u30FC\u30AF\u30B9\u30DA\u30FC\u30B9\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8\u306F\u7121\u52B9\u306B\u306A\u3063\u3066\u3044\u307E\u3059\u3002\u3053\u306E\u30B3\u30DE\u30F3\u30C9\u3092\u4F7F\u7528\u3059\u308B\u306B\u306F explorerDates.enableWorkspaceTemplates \u3092\u6709\u52B9\u306B\u3057\u3066\u304F\u3060\u3055\u3044\u3002",workspaceTemplatesDisabledSave:"\u30EF\u30FC\u30AF\u30B9\u30DA\u30FC\u30B9\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8\u306F\u7121\u52B9\u306B\u306A\u3063\u3066\u3044\u307E\u3059\u3002\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8\u3092\u4FDD\u5B58\u3059\u308B\u306B\u306F explorerDates.enableWorkspaceTemplates \u3092\u6709\u52B9\u306B\u3057\u3066\u304F\u3060\u3055\u3044\u3002",enterTemplateName:"\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8\u540D\u3092\u5165\u529B",enterTemplateDescription:"\u8AAC\u660E\u3092\u5165\u529B\uFF08\u4EFB\u610F\uFF09",failedToOpenTemplateManager:"\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8\u30DE\u30CD\u30FC\u30B8\u30E3\u30FC\u3092\u958B\u3051\u307E\u305B\u3093\u3067\u3057\u305F: {0}",failedToSaveTemplate:"\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8\u306E\u4FDD\u5B58\u306B\u5931\u6557\u3057\u307E\u3057\u305F: {0}",reportingDisabled:"\u30EC\u30DD\u30FC\u30C8\u6A5F\u80FD\u306F\u7121\u52B9\u306B\u306A\u3063\u3066\u3044\u307E\u3059\u3002\u30EC\u30DD\u30FC\u30C8\u3092\u751F\u6210\u3059\u308B\u306B\u306F explorerDates.enableExportReporting \u3092\u6709\u52B9\u306B\u3057\u3066\u304F\u3060\u3055\u3044\u3002",failedToGenerateReport:"\u30EC\u30DD\u30FC\u30C8\u306E\u751F\u6210\u306B\u5931\u6557\u3057\u307E\u3057\u305F: {0}",apiDisabled:"Explorer Dates API \u306F\u8A2D\u5B9A\u3067\u7121\u52B9\u306B\u306A\u3063\u3066\u3044\u307E\u3059\u3002",failedToShowApiInformation:"API \u60C5\u5831\u306E\u8868\u793A\u306B\u5931\u6557\u3057\u307E\u3057\u305F: {0}",failedToShowWorkspaceActivity:"\u30EF\u30FC\u30AF\u30B9\u30DA\u30FC\u30B9\u306E\u30A2\u30AF\u30C6\u30A3\u30D3\u30C6\u30A3\u3092\u8868\u793A\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F: {0}",failedToShowPerformanceAnalytics:"\u30D1\u30D5\u30A9\u30FC\u30DE\u30F3\u30B9\u5206\u6790\u3092\u8868\u793A\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F: {0}",failedToShowCacheDebugInfo:"\u30AD\u30E3\u30C3\u30B7\u30E5\u306E\u30C7\u30D0\u30C3\u30B0\u60C5\u5831\u3092\u8868\u793A\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F: {0}",noWorkspaceFolderOpen:"\u30EF\u30FC\u30AF\u30B9\u30DA\u30FC\u30B9\u30D5\u30A9\u30EB\u30C0\u30FC\u304C\u958B\u304B\u308C\u3066\u3044\u307E\u305B\u3093",now:"\u4ECA",minutes:"\u5206",hours:"\u6642\u9593",days:"\u65E5",weeks:"\u9031",months:"\u304B\u6708",years:"\u5E74",justNow:"\u305F\u3063\u305F\u4ECA",minutesAgo:"{0} \u5206\u524D",hoursAgo:"{0} \u6642\u9593\u524D",daysAgo:"{0} \u65E5\u524D",lastModified:"\u6700\u7D42\u66F4\u65B0",refreshSuccess:"\u65E5\u4ED8\u88C5\u98FE\u3092\u66F4\u65B0\u3057\u307E\u3057\u305F",activationError:"Explorer Dates \u306E\u6709\u52B9\u5316\u306B\u5931\u6557\u3057\u307E\u3057\u305F",errorAccessingFile:"\u88C5\u98FE\u7528\u30D5\u30A1\u30A4\u30EB\u3078\u306E\u30A2\u30AF\u30BB\u30B9\u30A8\u30E9\u30FC",clearTelemetryPrompt:"Explorer Dates \u306E\u30ED\u30FC\u30AB\u30EB\u4FDD\u5B58\u30C6\u30EC\u30E1\u30C8\u30EA\u30A4\u30D9\u30F3\u30C8\u3092\u5B8C\u5168\u306B\u524A\u9664\u3057\u307E\u3059\u3002\u3053\u306E\u64CD\u4F5C\u306F\u5143\u306B\u623B\u305B\u307E\u305B\u3093\u3002\u7D9A\u884C\u3057\u307E\u3059\u304B\uFF1F",clearTelemetryConfirm:"\u30C6\u30EC\u30E1\u30C8\u30EA\u3092\u524A\u9664",clearTelemetryCancel:"\u30AD\u30E3\u30F3\u30BB\u30EB",reportFormatDisabled:"\u30EC\u30DD\u30FC\u30C8\u5F62\u5F0F\u300C{0}\u300D\u306F\u7121\u52B9\u3067\u3059\u3002\u8A31\u53EF\u3055\u308C\u3066\u3044\u308B\u5F62\u5F0F: {1}",reportDownloadTriggered:"\u30D6\u30E9\u30A6\u30B6\u3067\u30EC\u30DD\u30FC\u30C8\u306E\u30C0\u30A6\u30F3\u30ED\u30FC\u30C9\u3092\u958B\u59CB\u3057\u307E\u3057\u305F",selectReportTimeRangePlaceholder:"\u30EC\u30DD\u30FC\u30C8\u306E\u671F\u9593\u3092\u9078\u629E",selectReportFormatPlaceholder:"\u30EC\u30DD\u30FC\u30C8\u5F62\u5F0F\u3092\u9078\u629E",cleanupNoDeprecated:"\u2139\uFE0F \u30AF\u30EA\u30FC\u30F3\u30A2\u30C3\u30D7\u3059\u308B\u975E\u63A8\u5968\u8A2D\u5B9A\u306F\u3042\u308A\u307E\u305B\u3093\u3002",showMigrationHistoryNoHistory:"\u79FB\u884C\u5C65\u6B74\u304C\u898B\u3064\u304B\u308A\u307E\u305B\u3093\u3002",resetConfirmation:"Explorer Dates \u306E\u3059\u3079\u3066\u306E\u8A2D\u5B9A\u3092\u65E2\u5B9A\u5024\u306B\u30EA\u30BB\u30C3\u30C8\u3057\u307E\u3059\u3002\u3088\u308D\u3057\u3044\u3067\u3059\u304B\uFF1F",resetConfirm:"\u8A2D\u5B9A\u3092\u30EA\u30BB\u30C3\u30C8",resetCancel:"\u30AD\u30E3\u30F3\u30BB\u30EB",resetSuccess:"\u2705 {0} \u4EF6\u306E\u8A2D\u5B9A\u3092\u65E2\u5B9A\u5024\u306B\u30EA\u30BB\u30C3\u30C8\u3057\u307E\u3057\u305F\u3002",validateNoIssues:"\u2705 \u8A2D\u5B9A\u306F\u6709\u52B9\u3067\u3059 - \u554F\u984C\u306F\u898B\u3064\u304B\u308A\u307E\u305B\u3093\u3067\u3057\u305F\uFF01",validateFoundIssues:"{0} \u4EF6\u306E\u8A2D\u5B9A\u554F\u984C\u304C\u898B\u3064\u304B\u308A\u307E\u3057\u305F\u3002\u8A73\u7D30\u3092\u8868\u793A\u3057\u307E\u3059\u304B\uFF1F",validateShowDetails:"\u8A73\u7D30\u3092\u8868\u793A",validateDismiss:"\u9589\u3058\u308B",migrationNotificationMessage:"Explorer Dates \u306F\u4E92\u63DB\u6027\u306E\u305F\u3081\u306B {0} \u4EF6\u306E\u8A2D\u5B9A\u3092\u66F4\u65B0\u3057\u307E\u3057\u305F\u3002\u8A2D\u5B9A\u306F\u4FDD\u6301\u3055\u308C\u3066\u3044\u307E\u3059\u3002",migrationViewChanges:"\u5909\u66F4\u3092\u8868\u793A",migrationOpenSettings:"\u8A2D\u5B9A\u3092\u958B\u304F",deprecatedPrompt:"Explorer Dates \u306F {0} \u4EF6\u306E\u975E\u63A8\u5968\u8A2D\u5B9A\u3092\u691C\u51FA\u3057\u307E\u3057\u305F\u3002\u524A\u9664\u3057\u307E\u3059\u304B\uFF1F",deprecatedClean:"\u4ECA\u3059\u3050\u30AF\u30EA\u30FC\u30F3\u30A2\u30C3\u30D7",deprecatedKeep:"\u53E4\u3044\u8A2D\u5B9A\u3092\u4FDD\u6301",deprecatedAskLater:"\u5F8C\u3067\u78BA\u8A8D",showFileLocation:"\u30D5\u30A1\u30A4\u30EB\u306E\u5834\u6240\u3092\u8868\u793A",teamConfigCorrupted:"Explorer Dates \u306E\u30C1\u30FC\u30E0\u8A2D\u5B9A\u30D5\u30A1\u30A4\u30EB\u304C\u7834\u640D\u3057\u3066\u3044\u308B\u53EF\u80FD\u6027\u304C\u3042\u308A\u307E\u3059\u3002.explorer-dates-profiles.json \u3092\u78BA\u8A8D\u3059\u308B\u304B\u30D0\u30C3\u30AF\u30A2\u30C3\u30D7\u304B\u3089\u5FA9\u5143\u3057\u3066\u304F\u3060\u3055\u3044\u3002",appliedFromTeamProfile:"\u30C1\u30FC\u30E0\u30D7\u30ED\u30D5\u30A1\u30A4\u30EB\u300C{1}\u300D\u304B\u3089 {0} \u4EF6\u306E Explorer Dates \u8A2D\u5B9A\u3092\u9069\u7528\u3057\u307E\u3057\u305F\u3002",documentedOverrides:".vscode/explorer-dates-overrides.md \u306B Explorer Dates \u306E\u4E0A\u66F8\u304D\u3092\u8A18\u9332\u3057\u307E\u3057\u305F",teamConfigMissingProfile:"\u30C1\u30FC\u30E0\u8A2D\u5B9A\u306B\u30A2\u30AF\u30C6\u30A3\u30D6\u306A\u30D7\u30ED\u30D5\u30A1\u30A4\u30EB\u304C\u3042\u308A\u307E\u305B\u3093\u3002",ephemeralStorageEnospc:"\u30C7\u30A3\u30B9\u30AF\u5BB9\u91CF\u4E0D\u8DB3\u306E\u305F\u3081\u3001Explorer Dates \u306E\u30C1\u30FC\u30E0\u8A2D\u5B9A\u3092\u4FDD\u5B58\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002",ephemeralStorageGeneric:"\u30EF\u30FC\u30AF\u30B9\u30DA\u30FC\u30B9\u304C\u8AAD\u307F\u53D6\u308A\u5C02\u7528\u3001\u307E\u305F\u306F\u6A29\u9650\u304C\u5236\u9650\u3055\u308C\u3066\u3044\u308B\u305F\u3081\u3001Explorer Dates \u306E\u30C1\u30FC\u30E0\u8A2D\u5B9A\u3092\u4FDD\u5B58\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002",ephemeralStorageSuffix:"\u5909\u66F4\u306F VS Code \u304C\u518D\u8D77\u52D5\u3059\u308B\u307E\u3067\u30E1\u30E2\u30EA\u306B\u4FDD\u6301\u3055\u308C\u308B\u305F\u3081\u3001\u5931\u308F\u308C\u308B\u53EF\u80FD\u6027\u304C\u3042\u308A\u307E\u3059\u3002"}});var et=E((Qn,Mr)=>{Mr.exports={migrationDetailsTitle:"Explorer Dates - \u8BBE\u7F6E\u8FC1\u79FB",migrationDetailsHeader:"\u8BBE\u7F6E\u8FC1\u79FB",gitAttributionWarning:"Explorer Dates\uFF1AGit \u5F52\u5C5E\u5FBD\u7AE0\u5728 VS Code Web \u7248\u4E2D\u4E0D\u53EF\u7528\u3002\u57FA\u4E8E\u65F6\u95F4\u7684\u88C5\u9970\u4ECD\u7136\u53EF\u7528\u3002",noOverridesToDocument:"\u6CA1\u6709\u9700\u8981\u8BB0\u5F55\u7684\u8986\u76D6\u9879\u3002",overrideNotesHeader:"# Explorer Dates \u8986\u76D6\u8BF4\u660E\\n\\n",analysisCommandsDisabled:"Explorer Dates \u5206\u6790\u547D\u4EE4\u5DF2\u7981\u7528\u3002\u5728\u542F\u7528 explorerDates.enableAnalysisCommands \u4E4B\u524D\uFF0CCtrl+Shift+M/H/A \u7B49\u5FEB\u6377\u952E\u5C06\u65E0\u6CD5\u4F7F\u7528\u3002",analysisEnableNow:"\u7ACB\u5373\u542F\u7528",analysisEnablePartially:"\u542F\u7528\u90E8\u5206\u6210\u529F\u3002\u8BF7\u5728\u5269\u4F59\u7684\u5DE5\u4F5C\u533A\u6587\u4EF6\u5939\u4E2D\u624B\u52A8\u66F4\u65B0 explorerDates.enableAnalysisCommands\u3002",analysisEnableFailed:"\u542F\u7528\u5931\u8D25\uFF1A\u8BF7\u5728\u5DE5\u4F5C\u533A\u8BBE\u7F6E\u4E2D\u66F4\u65B0 explorerDates.enableAnalysisCommands\u3002",workspaceTemplatesDisabled:"\u5DE5\u4F5C\u533A\u6A21\u677F\u5DF2\u7981\u7528\u3002\u542F\u7528 explorerDates.enableWorkspaceTemplates \u4EE5\u4F7F\u7528\u6B64\u547D\u4EE4\u3002",workspaceTemplatesDisabledSave:"\u5DE5\u4F5C\u533A\u6A21\u677F\u5DF2\u7981\u7528\u3002\u542F\u7528 explorerDates.enableWorkspaceTemplates \u4EE5\u4FDD\u5B58\u6A21\u677F\u3002",enterTemplateName:"\u8F93\u5165\u6A21\u677F\u540D\u79F0",enterTemplateDescription:"\u8F93\u5165\u63CF\u8FF0\uFF08\u53EF\u9009\uFF09",failedToOpenTemplateManager:"\u65E0\u6CD5\u6253\u5F00\u6A21\u677F\u7BA1\u7406\u5668\uFF1A{0}",failedToSaveTemplate:"\u4FDD\u5B58\u6A21\u677F\u5931\u8D25\uFF1A{0}",reportingDisabled:"\u62A5\u8868\u529F\u80FD\u5DF2\u7981\u7528\u3002\u542F\u7528 explorerDates.enableExportReporting \u4EE5\u751F\u6210\u62A5\u8868\u3002",failedToGenerateReport:"\u751F\u6210\u62A5\u8868\u5931\u8D25\uFF1A{0}",apiDisabled:"Explorer Dates API \u5DF2\u901A\u8FC7\u8BBE\u7F6E\u7981\u7528\u3002",failedToShowApiInformation:"\u663E\u793A API \u4FE1\u606F\u5931\u8D25\uFF1A{0}",failedToShowWorkspaceActivity:"\u663E\u793A\u5DE5\u4F5C\u533A\u6D3B\u52A8\u5931\u8D25\uFF1A{0}",failedToShowPerformanceAnalytics:"\u663E\u793A\u6027\u80FD\u5206\u6790\u5931\u8D25\uFF1A{0}",failedToShowCacheDebugInfo:"\u663E\u793A\u7F13\u5B58\u8C03\u8BD5\u4FE1\u606F\u5931\u8D25\uFF1A{0}",noWorkspaceFolderOpen:"\u672A\u6253\u5F00\u4EFB\u4F55\u5DE5\u4F5C\u533A\u6587\u4EF6\u5939",now:"\u73B0\u5728",minutes:"\u5206",hours:"\u5C0F\u65F6",days:"\u5929",weeks:"\u5468",months:"\u4E2A\u6708",years:"\u5E74",justNow:"\u521A\u521A",minutesAgo:"{0} \u5206\u949F\u524D",hoursAgo:"{0} \u5C0F\u65F6\u524D",daysAgo:"{0} \u5929\u524D",lastModified:"\u6700\u540E\u4FEE\u6539",refreshSuccess:"\u65E5\u671F\u88C5\u9970\u5DF2\u5237\u65B0",activationError:"Explorer Dates \u542F\u52A8\u5931\u8D25",errorAccessingFile:"\u8BBF\u95EE\u7528\u4E8E\u88C5\u9970\u7684\u6587\u4EF6\u65F6\u51FA\u9519",clearTelemetryPrompt:"\u8FD9\u5C06\u6C38\u4E45\u5220\u9664\u672C\u5730\u5B58\u50A8\u7684 Explorer Dates \u9065\u6D4B\u4E8B\u4EF6\u3002\u6B64\u64CD\u4F5C\u65E0\u6CD5\u64A4\u9500\u3002\u662F\u5426\u7EE7\u7EED\uFF1F",clearTelemetryConfirm:"\u6E05\u9664\u9065\u6D4B",clearTelemetryCancel:"\u53D6\u6D88",reportFormatDisabled:"\u62A5\u8868\u683C\u5F0F\u201C{0}\u201D\u5DF2\u7981\u7528\u3002\u5141\u8BB8\u7684\u683C\u5F0F\uFF1A{1}",reportDownloadTriggered:"\u5DF2\u5728\u6D4F\u89C8\u5668\u4E2D\u89E6\u53D1\u62A5\u8868\u4E0B\u8F7D",selectReportTimeRangePlaceholder:"\u9009\u62E9\u62A5\u8868\u65F6\u95F4\u8303\u56F4",selectReportFormatPlaceholder:"\u9009\u62E9\u62A5\u8868\u683C\u5F0F",cleanupNoDeprecated:"\u2139\uFE0F \u672A\u53D1\u73B0\u9700\u8981\u6E05\u7406\u7684\u5DF2\u5F03\u7528\u8BBE\u7F6E\u3002",showMigrationHistoryNoHistory:"\u672A\u627E\u5230\u8FC1\u79FB\u5386\u53F2\u3002",resetConfirmation:"\u8FD9\u5C06\u628A\u6240\u6709 Explorer Dates \u8BBE\u7F6E\u91CD\u7F6E\u4E3A\u9ED8\u8BA4\u503C\u3002\u786E\u5B9A\u5417\uFF1F",resetConfirm:"\u91CD\u7F6E\u8BBE\u7F6E",resetCancel:"\u53D6\u6D88",resetSuccess:"\u2705 \u5DF2\u5C06 {0} \u9879\u8BBE\u7F6E\u91CD\u7F6E\u4E3A\u9ED8\u8BA4\u503C\u3002",validateNoIssues:"\u2705 \u914D\u7F6E\u6709\u6548 - \u672A\u53D1\u73B0\u95EE\u9898\uFF01",validateFoundIssues:"\u53D1\u73B0 {0} \u4E2A\u914D\u7F6E\u95EE\u9898\u3002\u662F\u5426\u67E5\u770B\u8BE6\u7EC6\u4FE1\u606F\uFF1F",validateShowDetails:"\u663E\u793A\u8BE6\u7EC6\u4FE1\u606F",validateDismiss:"\u5173\u95ED",migrationNotificationMessage:"Explorer Dates \u4E3A\u517C\u5BB9\u6027\u66F4\u65B0\u4E86 {0} \u9879\u8BBE\u7F6E\u3002\u60A8\u7684\u914D\u7F6E\u5DF2\u4FDD\u7559\u3002",migrationViewChanges:"\u67E5\u770B\u66F4\u6539",migrationOpenSettings:"\u6253\u5F00\u8BBE\u7F6E",deprecatedPrompt:"Explorer Dates \u53D1\u73B0 {0} \u4E2A\u5DF2\u5F03\u7528\u8BBE\u7F6E\u3002\u662F\u5426\u5220\u9664\uFF1F",deprecatedClean:"\u7ACB\u5373\u6E05\u7406",deprecatedKeep:"\u4FDD\u7559\u65E7\u8BBE\u7F6E",deprecatedAskLater:"\u7A0D\u540E\u8BE2\u95EE",showFileLocation:"\u663E\u793A\u6587\u4EF6\u4F4D\u7F6E",teamConfigCorrupted:"Explorer Dates \u56E2\u961F\u914D\u7F6E\u6587\u4EF6\u4F3C\u4E4E\u5DF2\u635F\u574F\u3002\u8BF7\u68C0\u67E5 .explorer-dates-profiles.json \u6587\u4EF6\u6216\u4ECE\u5907\u4EFD\u6062\u590D\u3002",appliedFromTeamProfile:"\u5DF2\u4ECE\u56E2\u961F\u914D\u7F6E\u6587\u4EF6\u201C{1}\u201D\u5E94\u7528 {0} \u9879 Explorer Dates \u8BBE\u7F6E\u3002",documentedOverrides:"\u5DF2\u5728 .vscode/explorer-dates-overrides.md \u4E2D\u8BB0\u5F55 Explorer Dates \u8986\u76D6\u9879",teamConfigMissingProfile:"\u56E2\u961F\u914D\u7F6E\u7F3A\u5C11\u6D3B\u52A8\u914D\u7F6E\u6587\u4EF6\u3002",ephemeralStorageEnospc:"\u7531\u4E8E\u78C1\u76D8\u5DF2\u6EE1\uFF0C\u65E0\u6CD5\u4FDD\u5B58 Explorer Dates \u56E2\u961F\u914D\u7F6E\u3002",ephemeralStorageGeneric:"\u7531\u4E8E\u5DE5\u4F5C\u533A\u4E3A\u53EA\u8BFB\u6216\u6743\u9650\u53D7\u9650\uFF0C\u65E0\u6CD5\u4FDD\u5B58 Explorer Dates \u56E2\u961F\u914D\u7F6E\u3002",ephemeralStorageSuffix:"\u66F4\u6539\u5C06\u5728 VS Code \u91CD\u542F\u524D\u4FDD\u5B58\u5728\u5185\u5B58\u4E2D\uFF0C\u56E0\u6B64\u53EF\u80FD\u4F1A\u4E22\u5931\u3002"}});var rt=E((eo,tt)=>{var M={};M.en=Xe();M.es=Ye();M.fr=Ze();M.de=Je();M.ja=Qe();M.zh=et();tt.exports=M});var ot=E((to,nt)=>{var U=require("vscode"),I={en:{now:"now",minutes:"m",hours:"h",days:"d",weeks:"w",months:"mo",years:"y",justNow:"just now",minutesAgo:e=>`${e} minute${e!==1?"s":""} ago`,hoursAgo:e=>`${e} hour${e!==1?"s":""} ago`,yesterday:"yesterday",daysAgo:e=>`${e} day${e!==1?"s":""} ago`,lastModified:"Last modified",refreshSuccess:"Date decorations refreshed",activationError:"Explorer Dates failed to activate",errorAccessingFile:"Error accessing file for decoration",clearTelemetryPrompt:"This will permanently delete locally-stored telemetry events for Explorer Dates. This action cannot be undone. Proceed?",clearTelemetryConfirm:"Clear Telemetry",clearTelemetryCancel:"Cancel",clearTelemetrySuccess:"\u2705 Explorer Dates telemetry cleared.",migrateChecking:"Checking for settings that need migration...",migrateAllUpToDate:"\u2705 All settings are up to date!",migrateApplied:e=>`\u2705 Explorer Dates maintenance applied: ${e}.`,organizeSettingsResult:e=>`Explorer Dates settings organized: ${e}`,cleanupSuccess:"\u2705 Deprecated settings have been cleaned up!",reportFormatDisabled:(e,t)=>`Report format "${e}" is disabled. Allowed formats: ${t}`,reportSaved:e=>`Report saved to ${e}`,reportGenerateFailed:"Failed to generate report",reportDownloadTriggered:"Report download triggered in browser",selectReportTimeRangePlaceholder:"Select report time range",selectReportFormatPlaceholder:"Select report format",cleanupNoDeprecated:"\u2139\uFE0F No deprecated settings found to clean up.",showMigrationHistoryNoHistory:"No migration history found.",resetConfirmation:"This will reset all Explorer Dates settings to their default values. Are you sure?",migrationDetailsTitle:"Explorer Dates - Settings Migration",migrationDetailsHeader:"Settings Migration",gitAttributionWarning:"Explorer Dates: Git attribution badges are unavailable on VS Code for Web. Time-based decorations remain available.",noOverridesToDocument:"No overrides to document.",overrideNotesHeader:`# Explorer Dates Override Notes +var rr=Object.create;var qe=Object.defineProperty;var nr=Object.getOwnPropertyDescriptor;var or=Object.getOwnPropertyNames;var ir=Object.getPrototypeOf,ar=Object.prototype.hasOwnProperty;var E=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var sr=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of or(t))!ar.call(e,o)&&o!==r&&qe(e,o,{get:()=>t[o],enumerable:!(n=nr(t,o))||n.enumerable});return e};var Se=(e,t,r)=>(r=e!=null?rr(ir(e)):{},sr(t||!e||!e.__esModule?qe(r,"default",{value:e,enumerable:!0}):r,e));var se=E((zn,$e)=>{var Ke=typeof process<"u"&&process.env?process.env:{},He="[ExplorerDates][WebDiag]",Ce="__explorerDatesWebDiagnostics",ae;function lr(){try{let e=require("vscode");return e?.env?.uiKind===e?.UIKind?.Web}catch{return Ke.VSCODE_WEB==="true"}}function F(){return ae!==void 0||(ae=Ke.EXPLORER_DATES_WEB_DIAG==="1"||lr()),ae}function Be(){return{enabled:F(),logs:[],logOnce:new Set,commandsRegistered:new Set,commandsInvoked:[],errors:[],chunkLoads:[],provider:{created:!1,registered:!1,hydrated:!1,decorationCalls:0,refreshCalls:0,lastEvent:null}}}var cr=Be();function _(){return typeof globalThis<"u"?(globalThis[Ce]||(globalThis[Ce]=Be()),globalThis[Ce]):cr}function ur(e){try{return JSON.stringify(e)}catch{return String(e)}}function R(e,t,r){if(!F())return;let n=_(),o={ts:new Date().toISOString(),level:e,message:t,meta:r||null};n.logs.push(o),n.logs.length>400&&n.logs.shift();let i=r?`${He} ${t} ${ur(r)}`:`${He} ${t}`,a=console[e]||console.info;try{a(i)}catch{}}function dr(e,t,r,n){if(!F())return;let o=_();o.logOnce.has(e)||(o.logOnce.add(e),R(t,r,n))}function fr(e){if(!F())return;_().commandsRegistered.add(e),R("info","Command registered",{commandId:e})}function pr(e){if(!F())return;_().commandsInvoked.push({commandId:e,ts:Date.now()}),R("info","Command invoked",{commandId:e})}function mr(e,t,r,n,o){if(!F())return;let i=n||(t?"behavioral-success":"unhandled-command-failure"),a=r?{name:r.name||"Error",message:r.message||String(r),code:r.code||null}:null;t?R("info","Command completed",{commandId:e,outcomeCategory:i}):(R("error","Command failed",{commandId:e,outcomeCategory:i,error:a,errorContext:o||null}),_().errors.push({commandId:e,outcomeCategory:i,error:a,errorContext:o||null}))}function gr(e,t,r){if(!F())return;_().chunkLoads.push({chunkName:e,stage:t,ts:Date.now(),error:r?r.message||String(r):null}),R(r?"warn":"info",`Chunk ${t}`,{chunkName:e,error:r?.message})}function hr(e,t){if(!F())return;let r=_();r.provider.lastEvent={event:e,ts:Date.now(),meta:t||null},e==="created"&&(r.provider.created=!0),e==="registered"&&(r.provider.registered=!0),e==="hydrated"&&(r.provider.hydrated=!0),R("info",`Provider ${e}`,t)}function yr(){if(!F())return;let e=_();e.provider.decorationCalls+=1,e.provider.decorationCalls<=3&&R("info","Decoration request observed",{count:e.provider.decorationCalls})}function br(){if(!F())return;let e=_();e.provider.refreshCalls+=1}$e.exports={isWebDiagnosticsEnabled:F,getWebDiagnosticsState:_,diagLog:R,diagLogOnce:dr,recordCommandRegistration:fr,recordCommandInvocation:pr,recordCommandResult:mr,recordChunkEvent:gr,recordProviderEvent:hr,recordDecorationCall:yr,recordRefreshCall:br}});var Z=E((Vn,Ve)=>{var ze=require("vscode");function Er(){try{let e=ze?.env?.uiKind,t=ze?.UIKind?.Web;return e!==void 0&&t!==void 0&&e===t}catch{return!1}}Ve.exports={isWebEnvironment:Er}});var J=E((jn,Ge)=>{var $=typeof process<"u"&&process.env?process.env:{},Dr=12e4,vr=1e4,Sr=1440*60*1e3,Cr=2,kr=["Ja","Fe","Mr","Ap","My","Jn","Jl","Au","Se","Oc","No","De"],wr=Number($.EXPLORER_DATES_DECORATION_POOL_SIZE||2048),Tr=Number($.EXPLORER_DATES_FLYWEIGHT_CACHE_SIZE||4096),Ar=Number($.EXPLORER_DATES_WORKSPACE_BALANCED_THRESHOLD||15e3),Fr=Number($.EXPLORER_DATES_WORKSPACE_LARGE_THRESHOLD||25e4),je=Number($.EXPLORER_DATES_WORKSPACE_EXTREME_THRESHOLD||4e5),_r=Number($.EXPLORER_DATES_WORKSPACE_SCAN_MAX_RESULTS||Math.min(je+1,50001)),Rr={ADVANCED_CACHE:"explorerDates.advancedCache",ADVANCED_CACHE_METADATA:"explorerDates.advancedCacheMetadata",TEMPLATE_STORE:"explorerDates.templates",WEB_GIT_NOTICE:"explorerDates.webGitNotice"},xr="explorerDatesChunks",Pr="__explorerDatesChunks";Ge.exports={DEFAULT_CACHE_TIMEOUT:Dr,DEFAULT_MAX_CACHE_SIZE:vr,DEFAULT_PERSISTENT_CACHE_TTL:Sr,DEFAULT_DECORATION_POOL_SIZE:wr,DEFAULT_FLYWEIGHT_CACHE_SIZE:Tr,MAX_BADGE_LENGTH:Cr,MONTH_ABBREVIATIONS:kr,WORKSPACE_SCALE_BALANCED_THRESHOLD:Ar,WORKSPACE_SCALE_LARGE_THRESHOLD:Fr,WORKSPACE_SCALE_EXTREME_THRESHOLD:je,WORKSPACE_SCAN_MAX_RESULTS:_r,GLOBAL_STATE_KEYS:Rr,WEB_CHUNK_GLOBAL_KEY:xr,LEGACY_WEB_CHUNK_GLOBAL_KEY:Pr}});var Xe=E((Gn,Ir)=>{Ir.exports={migrationDetailsTitle:"Explorer Dates - Settings Migration",migrationDetailsHeader:"Settings Migration",gitAttributionWarning:"Explorer Dates: Git attribution badges are unavailable on VS Code for Web. Time-based decorations remain available.",noOverridesToDocument:"No overrides to document.",overrideNotesHeader:"# Explorer Dates Override Notes\\n\\n",analysisCommandsDisabled:"Explorer Dates analysis commands are disabled. Shortcuts like Ctrl+Shift+M/H/A will not work until you enable explorerDates.enableAnalysisCommands.",analysisEnableNow:"Enable Now",analysisEnablePartially:"Enable partially succeeded. Update explorerDates.enableAnalysisCommands in remaining workspace folders manually.",analysisEnableFailed:"Enable failed: update explorerDates.enableAnalysisCommands in workspace settings.",workspaceTemplatesDisabled:"Workspace templates are disabled. Enable explorerDates.enableWorkspaceTemplates to use this command.",workspaceTemplatesDisabledSave:"Workspace templates are disabled. Enable explorerDates.enableWorkspaceTemplates to save templates.",enterTemplateName:"Enter template name",enterTemplateDescription:"Enter description (optional)",failedToOpenTemplateManager:"Failed to open template manager: {0}",failedToSaveTemplate:"Failed to save template: {0}",reportingDisabled:"Reporting features are disabled. Enable explorerDates.enableExportReporting to generate reports.",failedToGenerateReport:"Failed to generate report: {0}",apiDisabled:"Explorer Dates API is disabled via settings.",failedToShowApiInformation:"Failed to show API information: {0}",failedToShowWorkspaceActivity:"Failed to show workspace activity: {0}",failedToShowPerformanceAnalytics:"Failed to show performance analytics: {0}",failedToShowCacheDebugInfo:"Failed to show cache debug info: {0}",noWorkspaceFolderOpen:"No workspace folder open",now:"now",minutes:"m",hours:"h",days:"d",weeks:"w",months:"mo",years:"y",justNow:"just now",minutesAgo:"{0} minute(s) ago",hoursAgo:"{0} hour(s) ago",daysAgo:"{0} day(s) ago",lastModified:"Last modified",refreshSuccess:"Date decorations refreshed",activationError:"Explorer Dates failed to activate",errorAccessingFile:"Error accessing file for decoration",clearTelemetryPrompt:"This will permanently delete locally-stored telemetry events for Explorer Dates. This action cannot be undone. Proceed?",clearTelemetryConfirm:"Clear Telemetry",clearTelemetryCancel:"Cancel",reportFormatDisabled:'Report format "{0}" is disabled. Allowed formats: {1}',reportDownloadTriggered:"Report download triggered in browser",selectReportTimeRangePlaceholder:"Select report time range",selectReportFormatPlaceholder:"Select report format",cleanupNoDeprecated:"\u2139\uFE0F No deprecated settings found to clean up.",showMigrationHistoryNoHistory:"No migration history found.",resetConfirmation:"This will reset all Explorer Dates settings to their default values. Are you sure?",resetConfirm:"Reset Settings",resetCancel:"Cancel",resetSuccess:"\u2705 Reset {0} settings to defaults.",validateNoIssues:"\u2705 Configuration is valid - no issues found!",validateFoundIssues:"Found {0} configuration issue(s). Would you like to see details?",validateShowDetails:"Show Details",validateDismiss:"Dismiss",migrationNotificationMessage:"Explorer Dates updated {0} setting(s) for compatibility. Your configuration has been preserved.",migrationViewChanges:"View Changes",migrationOpenSettings:"Open Settings",deprecatedPrompt:"Explorer Dates found {0} deprecated setting(s). Would you like to remove them?",deprecatedClean:"Clean Up Now",deprecatedKeep:"Keep Old Settings",deprecatedAskLater:"Ask Later",showFileLocation:"Show File Location",teamConfigCorrupted:"Explorer Dates team configuration file appears to be corrupted. Please check the .explorer-dates-profiles.json file or restore from backup.",appliedFromTeamProfile:'Applied {0} Explorer Dates settings from team profile "{1}".',documentedOverrides:"Documented Explorer Dates overrides in .vscode/explorer-dates-overrides.md",teamConfigMissingProfile:"Team configuration is missing an active profile.",ephemeralStorageEnospc:"Explorer Dates team configuration could not be saved because the disk is full.",ephemeralStorageGeneric:"Explorer Dates team configuration could not be saved because the workspace is read-only or permissions are restricted.",ephemeralStorageSuffix:"Changes will be kept in memory until VS Code restarts, so they may be lost."}});var Ye=E((Xn,Lr)=>{Lr.exports={migrationDetailsTitle:"Explorer Dates - Migraci\xF3n de configuraci\xF3n",migrationDetailsHeader:"Migraci\xF3n de configuraci\xF3n",gitAttributionWarning:"Explorer Dates: Las insignias de atribuci\xF3n de Git no est\xE1n disponibles en VS Code para la Web. Las decoraciones basadas en tiempo siguen disponibles.",noOverridesToDocument:"No hay anulaciones para documentar.",overrideNotesHeader:"# Notas de anulaci\xF3n de Explorer Dates\\n\\n",analysisCommandsDisabled:"Los comandos de an\xE1lisis de Explorer Dates est\xE1n deshabilitados. Atajos como Ctrl+Shift+M/H/A no funcionar\xE1n hasta que habilites explorerDates.enableAnalysisCommands.",analysisEnableNow:"Habilitar ahora",analysisEnablePartially:"La activaci\xF3n se complet\xF3 parcialmente. Actualiza explorerDates.enableAnalysisCommands manualmente en las carpetas de trabajo restantes.",analysisEnableFailed:"Error al habilitar: actualiza explorerDates.enableAnalysisCommands en la configuraci\xF3n del espacio de trabajo.",workspaceTemplatesDisabled:"Las plantillas de espacio de trabajo est\xE1n deshabilitadas. Habilita explorerDates.enableWorkspaceTemplates para usar este comando.",workspaceTemplatesDisabledSave:"Las plantillas de espacio de trabajo est\xE1n deshabilitadas. Habilita explorerDates.enableWorkspaceTemplates para guardar plantillas.",enterTemplateName:"Introduce el nombre de la plantilla",enterTemplateDescription:"Introduce la descripci\xF3n (opcional)",failedToOpenTemplateManager:"Error al abrir el administrador de plantillas: {0}",failedToSaveTemplate:"Error al guardar la plantilla: {0}",reportingDisabled:"Las funciones de informes est\xE1n deshabilitadas. Habilita explorerDates.enableExportReporting para generar informes.",failedToGenerateReport:"Error al generar el informe: {0}",apiDisabled:"La API de Explorer Dates est\xE1 deshabilitada mediante la configuraci\xF3n.",failedToShowApiInformation:"Error al mostrar la informaci\xF3n de la API: {0}",failedToShowWorkspaceActivity:"Error al mostrar la actividad del espacio de trabajo: {0}",failedToShowPerformanceAnalytics:"Error al mostrar los an\xE1lisis de rendimiento: {0}",failedToShowCacheDebugInfo:"Error al mostrar la informaci\xF3n de depuraci\xF3n de la cach\xE9: {0}",noWorkspaceFolderOpen:"No hay ninguna carpeta de espacio de trabajo abierta",now:"ahora",minutes:"m",hours:"h",days:"d",weeks:"sem",months:"mes",years:"a",justNow:"justo ahora",minutesAgo:"hace {0} minuto(s)",hoursAgo:"hace {0} hora(s)",daysAgo:"hace {0} d\xEDa(s)",lastModified:"\xDAltima modificaci\xF3n",refreshSuccess:"Decoraciones de fecha actualizadas",activationError:"Explorer Dates no se pudo activar",errorAccessingFile:"Error al acceder al archivo para la decoraci\xF3n",clearTelemetryPrompt:"Esto eliminar\xE1 permanentemente los eventos de telemetr\xEDa almacenados localmente para Explorer Dates. Esta acci\xF3n no se puede deshacer. \xBFContinuar?",clearTelemetryConfirm:"Borrar telemetr\xEDa",clearTelemetryCancel:"Cancelar",reportFormatDisabled:'El formato de informe "{0}" est\xE1 deshabilitado. Formatos permitidos: {1}',reportDownloadTriggered:"Descarga del informe iniciada en el navegador",selectReportTimeRangePlaceholder:"Seleccionar rango de tiempo del informe",selectReportFormatPlaceholder:"Seleccionar formato del informe",cleanupNoDeprecated:"\u2139\uFE0F No se encontraron configuraciones obsoletas para limpiar.",showMigrationHistoryNoHistory:"No se encontr\xF3 historial de migraci\xF3n.",resetConfirmation:"Esto restablecer\xE1 todas las configuraciones de Explorer Dates a sus valores predeterminados. \xBFEst\xE1s seguro?",resetConfirm:"Restablecer configuraciones",resetCancel:"Cancelar",resetSuccess:"\u2705 Se restablecieron {0} configuraciones a los valores predeterminados.",validateNoIssues:"\u2705 La configuraci\xF3n es v\xE1lida - no se encontraron problemas.",validateFoundIssues:"Se encontraron {0} problema(s) de configuraci\xF3n. \xBFDeseas ver los detalles?",validateShowDetails:"Mostrar detalles",validateDismiss:"Descartar",migrationNotificationMessage:"Explorer Dates actualiz\xF3 {0} configuraci\xF3n(es) por compatibilidad. Tu configuraci\xF3n se ha conservado.",migrationViewChanges:"Ver cambios",migrationOpenSettings:"Abrir configuraciones",deprecatedPrompt:"Explorer Dates encontr\xF3 {0} configuraci\xF3n(es) obsoleta(s). \xBFDeseas eliminarlas?",deprecatedClean:"Limpiar ahora",deprecatedKeep:"Mantener configuraciones antiguas",deprecatedAskLater:"Preguntar m\xE1s tarde",showFileLocation:"Mostrar ubicaci\xF3n del archivo",teamConfigCorrupted:"El archivo de configuraci\xF3n de equipo de Explorer Dates parece estar da\xF1ado. Verifica el archivo .explorer-dates-profiles.json o restaura desde una copia de seguridad.",appliedFromTeamProfile:'Se aplicaron {0} configuraciones de Explorer Dates desde el perfil de equipo "{1}".',documentedOverrides:"Se documentaron las anulaciones de Explorer Dates en .vscode/explorer-dates-overrides.md",teamConfigMissingProfile:"La configuraci\xF3n del equipo no tiene un perfil activo.",ephemeralStorageEnospc:"No se pudo guardar la configuraci\xF3n de equipo de Explorer Dates porque el disco est\xE1 lleno.",ephemeralStorageGeneric:"No se pudo guardar la configuraci\xF3n de equipo de Explorer Dates porque el espacio de trabajo es de solo lectura o los permisos est\xE1n restringidos.",ephemeralStorageSuffix:"Los cambios se mantendr\xE1n en memoria hasta que VS Code se reinicie, por lo que podr\xEDan perderse."}});var Ze=E((Yn,Nr)=>{Nr.exports={migrationDetailsTitle:"Explorer Dates - Migration des param\xE8tres",migrationDetailsHeader:"Migration des param\xE8tres",gitAttributionWarning:"Explorer Dates : Les badges d\u2019attribution Git ne sont pas disponibles sur VS Code pour le Web. Les d\xE9corations bas\xE9es sur le temps restent disponibles.",noOverridesToDocument:"Aucune substitution \xE0 documenter.",overrideNotesHeader:"# Notes de substitution Explorer Dates\\n\\n",analysisCommandsDisabled:"Les commandes d\u2019analyse Explorer Dates sont d\xE9sactiv\xE9es. Les raccourcis comme Ctrl+Shift+M/H/A ne fonctionneront pas tant que vous n\u2019aurez pas activ\xE9 explorerDates.enableAnalysisCommands.",analysisEnableNow:"Activer maintenant",analysisEnablePartially:"L\u2019activation a partiellement r\xE9ussi. Mettez \xE0 jour explorerDates.enableAnalysisCommands manuellement dans les dossiers d\u2019espace de travail restants.",analysisEnableFailed:"\xC9chec de l\u2019activation : mettez \xE0 jour explorerDates.enableAnalysisCommands dans les param\xE8tres de l\u2019espace de travail.",workspaceTemplatesDisabled:"Les mod\xE8les d\u2019espace de travail sont d\xE9sactiv\xE9s. Activez explorerDates.enableWorkspaceTemplates pour utiliser cette commande.",workspaceTemplatesDisabledSave:"Les mod\xE8les d\u2019espace de travail sont d\xE9sactiv\xE9s. Activez explorerDates.enableWorkspaceTemplates pour enregistrer des mod\xE8les.",enterTemplateName:"Entrez le nom du mod\xE8le",enterTemplateDescription:"Entrez la description (facultatif)",failedToOpenTemplateManager:"Impossible d\u2019ouvrir le gestionnaire de mod\xE8les : {0}",failedToSaveTemplate:"Impossible d\u2019enregistrer le mod\xE8le : {0}",reportingDisabled:"Les fonctionnalit\xE9s de rapport sont d\xE9sactiv\xE9es. Activez explorerDates.enableExportReporting pour g\xE9n\xE9rer des rapports.",failedToGenerateReport:"Impossible de g\xE9n\xE9rer le rapport : {0}",apiDisabled:"L\u2019API Explorer Dates est d\xE9sactiv\xE9e via les param\xE8tres.",failedToShowApiInformation:"Impossible d\u2019afficher les informations de l\u2019API : {0}",failedToShowWorkspaceActivity:"Impossible d\u2019afficher l\u2019activit\xE9 de l\u2019espace de travail : {0}",failedToShowPerformanceAnalytics:"Impossible d\u2019afficher les analyses de performance : {0}",failedToShowCacheDebugInfo:"Impossible d\u2019afficher les informations de d\xE9bogage du cache : {0}",noWorkspaceFolderOpen:"Aucun dossier d\u2019espace de travail ouvert",now:"maintenant",minutes:"min",hours:"h",days:"j",weeks:"sem",months:"mois",years:"an",justNow:"\xE0 l\u2019instant",minutesAgo:"il y a {0} minute(s)",hoursAgo:"il y a {0} heure(s)",daysAgo:"il y a {0} jour(s)",lastModified:"Derni\xE8re modification",refreshSuccess:"D\xE9corations de date actualis\xE9es",activationError:"\xC9chec de l\u2019activation d\u2019Explorer Dates",errorAccessingFile:"Erreur lors de l\u2019acc\xE8s au fichier pour la d\xE9coration",clearTelemetryPrompt:"Cela supprimera d\xE9finitivement les \xE9v\xE9nements de t\xE9l\xE9m\xE9trie stock\xE9s localement pour Explorer Dates. Cette action est irr\xE9versible. Continuer ?",clearTelemetryConfirm:"Effacer la t\xE9l\xE9m\xE9trie",clearTelemetryCancel:"Annuler",reportFormatDisabled:'Le format de rapport "{0}" est d\xE9sactiv\xE9. Formats autoris\xE9s : {1}',reportDownloadTriggered:"T\xE9l\xE9chargement du rapport lanc\xE9 dans le navigateur",selectReportTimeRangePlaceholder:"S\xE9lectionner la p\xE9riode du rapport",selectReportFormatPlaceholder:"S\xE9lectionner le format du rapport",cleanupNoDeprecated:"\u2139\uFE0F Aucun param\xE8tre obsol\xE8te \xE0 nettoyer.",showMigrationHistoryNoHistory:"Aucun historique de migration trouv\xE9.",resetConfirmation:"Cela r\xE9initialisera tous les param\xE8tres Explorer Dates \xE0 leurs valeurs par d\xE9faut. \xCAtes-vous s\xFBr ?",resetConfirm:"R\xE9initialiser les param\xE8tres",resetCancel:"Annuler",resetSuccess:"\u2705 {0} param\xE8tres ont \xE9t\xE9 r\xE9initialis\xE9s aux valeurs par d\xE9faut.",validateNoIssues:"\u2705 La configuration est valide - aucun probl\xE8me d\xE9tect\xE9 !",validateFoundIssues:"{0} probl\xE8me(s) de configuration trouv\xE9(s). Voulez-vous voir les d\xE9tails ?",validateShowDetails:"Afficher les d\xE9tails",validateDismiss:"Ignorer",migrationNotificationMessage:"Explorer Dates a mis \xE0 jour {0} param\xE8tre(s) pour compatibilit\xE9. Votre configuration a \xE9t\xE9 conserv\xE9e.",migrationViewChanges:"Voir les modifications",migrationOpenSettings:"Ouvrir les param\xE8tres",deprecatedPrompt:"Explorer Dates a trouv\xE9 {0} param\xE8tre(s) obsol\xE8te(s). Voulez-vous les supprimer ?",deprecatedClean:"Nettoyer maintenant",deprecatedKeep:"Conserver les anciens param\xE8tres",deprecatedAskLater:"Demander plus tard",showFileLocation:"Afficher l\u2019emplacement du fichier",teamConfigCorrupted:"Le fichier de configuration d\u2019\xE9quipe Explorer Dates semble corrompu. V\xE9rifiez le fichier .explorer-dates-profiles.json ou restaurez-le depuis une sauvegarde.",appliedFromTeamProfile:'{0} param\xE8tres Explorer Dates appliqu\xE9s depuis le profil d\u2019\xE9quipe "{1}".',documentedOverrides:"Substitutions Explorer Dates document\xE9es dans .vscode/explorer-dates-overrides.md",teamConfigMissingProfile:"La configuration d\u2019\xE9quipe ne contient aucun profil actif.",ephemeralStorageEnospc:"Impossible d\u2019enregistrer la configuration d\u2019\xE9quipe Explorer Dates car le disque est plein.",ephemeralStorageGeneric:"Impossible d\u2019enregistrer la configuration d\u2019\xE9quipe Explorer Dates car l\u2019espace de travail est en lecture seule ou les permissions sont restreintes.",ephemeralStorageSuffix:"Les modifications seront conserv\xE9es en m\xE9moire jusqu\u2019au red\xE9marrage de VS Code et pourraient \xEAtre perdues."}});var Je=E((Zn,Or)=>{Or.exports={migrationDetailsTitle:"Explorer Dates - Einstellungen migrieren",migrationDetailsHeader:"Einstellungen migrieren",gitAttributionWarning:"Explorer Dates: Git-Zuordnungsabzeichen sind in VS Code f\xFCr das Web nicht verf\xFCgbar. Zeitbasierte Hervorhebungen bleiben verf\xFCgbar.",noOverridesToDocument:"Keine \xDCberschreibungen zu dokumentieren.",overrideNotesHeader:"# Explorer Dates \xDCberschreibungsnotizen\\n\\n",analysisCommandsDisabled:"Die Analysebefehle von Explorer Dates sind deaktiviert. Tastenkombinationen wie Ctrl+Shift+M/H/A funktionieren nicht, bis explorerDates.enableAnalysisCommands aktiviert ist.",analysisEnableNow:"Jetzt aktivieren",analysisEnablePartially:"Die Aktivierung war teilweise erfolgreich. Aktualisieren Sie explorerDates.enableAnalysisCommands manuell in den verbleibenden Workspace-Ordnern.",analysisEnableFailed:"Aktivierung fehlgeschlagen: Aktualisieren Sie explorerDates.enableAnalysisCommands in den Workspace-Einstellungen.",workspaceTemplatesDisabled:"Workspace-Vorlagen sind deaktiviert. Aktivieren Sie explorerDates.enableWorkspaceTemplates, um diesen Befehl zu verwenden.",workspaceTemplatesDisabledSave:"Workspace-Vorlagen sind deaktiviert. Aktivieren Sie explorerDates.enableWorkspaceTemplates, um Vorlagen zu speichern.",enterTemplateName:"Vorlagenname eingeben",enterTemplateDescription:"Beschreibung eingeben (optional)",failedToOpenTemplateManager:"Fehler beim \xD6ffnen des Vorlagenmanagers: {0}",failedToSaveTemplate:"Fehler beim Speichern der Vorlage: {0}",reportingDisabled:"Berichtsfunktionen sind deaktiviert. Aktivieren Sie explorerDates.enableExportReporting, um Berichte zu erstellen.",failedToGenerateReport:"Fehler beim Erstellen des Berichts: {0}",apiDisabled:"Die Explorer Dates API ist in den Einstellungen deaktiviert.",failedToShowApiInformation:"Fehler beim Anzeigen der API-Informationen: {0}",failedToShowWorkspaceActivity:"Fehler beim Anzeigen der Workspace-Aktivit\xE4t: {0}",failedToShowPerformanceAnalytics:"Fehler beim Anzeigen der Leistungsanalysen: {0}",failedToShowCacheDebugInfo:"Fehler beim Anzeigen der Cache-Debug-Informationen: {0}",noWorkspaceFolderOpen:"Kein Workspace-Ordner ge\xF6ffnet",now:"jetzt",minutes:"Min",hours:"Std",days:"T",weeks:"W",months:"Mon",years:"J",justNow:"gerade eben",minutesAgo:"vor {0} Minute(n)",hoursAgo:"vor {0} Stunde(n)",daysAgo:"vor {0} Tag(en)",lastModified:"Zuletzt ge\xE4ndert",refreshSuccess:"Datumsdekorationen aktualisiert",activationError:"Explorer Dates konnte nicht aktiviert werden",errorAccessingFile:"Fehler beim Zugriff auf Datei f\xFCr Dekoration",clearTelemetryPrompt:"Dies l\xF6scht dauerhaft lokal gespeicherte Telemetrieereignisse f\xFCr Explorer Dates. Diese Aktion kann nicht r\xFCckg\xE4ngig gemacht werden. Fortfahren?",clearTelemetryConfirm:"Telemetrie l\xF6schen",clearTelemetryCancel:"Abbrechen",reportFormatDisabled:'Berichtsformat "{0}" ist deaktiviert. Zul\xE4ssige Formate: {1}',reportDownloadTriggered:"Bericht-Download im Browser gestartet",selectReportTimeRangePlaceholder:"Berichtszeitraum ausw\xE4hlen",selectReportFormatPlaceholder:"Berichtsformat ausw\xE4hlen",cleanupNoDeprecated:"\u2139\uFE0F Keine veralteten Einstellungen zum Bereinigen gefunden.",showMigrationHistoryNoHistory:"Kein Migrationsverlauf gefunden.",resetConfirmation:"Dies setzt alle Explorer Dates Einstellungen auf ihre Standardwerte zur\xFCck. Sind Sie sicher?",resetConfirm:"Einstellungen zur\xFCcksetzen",resetCancel:"Abbrechen",resetSuccess:"\u2705 {0} Einstellungen auf Standard zur\xFCckgesetzt.",validateNoIssues:"\u2705 Konfiguration ist g\xFCltig - keine Probleme gefunden!",validateFoundIssues:"{0} Konfigurationsproblem(e) gefunden. M\xF6chten Sie Details sehen?",validateShowDetails:"Details anzeigen",validateDismiss:"Verwerfen",migrationNotificationMessage:"Explorer Dates hat {0} Einstellung(en) zur Kompatibilit\xE4t aktualisiert. Ihre Konfiguration wurde beibehalten.",migrationViewChanges:"\xC4nderungen anzeigen",migrationOpenSettings:"Einstellungen \xF6ffnen",deprecatedPrompt:"Explorer Dates hat {0} veraltete Einstellung(en) gefunden. M\xF6chten Sie sie entfernen?",deprecatedClean:"Jetzt bereinigen",deprecatedKeep:"Alte Einstellungen behalten",deprecatedAskLater:"Sp\xE4ter fragen",showFileLocation:"Dateispeicherort anzeigen",teamConfigCorrupted:"Die Teamkonfigurationsdatei von Explorer Dates scheint besch\xE4digt zu sein. Bitte pr\xFCfen Sie die Datei .explorer-dates-profiles.json oder stellen Sie sie aus einem Backup wieder her.",appliedFromTeamProfile:'{0} Explorer Dates-Einstellungen aus dem Teamprofil "{1}" angewendet.',documentedOverrides:"Explorer Dates-\xDCberschreibungen in .vscode/explorer-dates-overrides.md dokumentiert",teamConfigMissingProfile:"Der Teamkonfiguration fehlt ein aktives Profil.",ephemeralStorageEnospc:"Die Teamkonfiguration von Explorer Dates konnte nicht gespeichert werden, da die Festplatte voll ist.",ephemeralStorageGeneric:"Die Teamkonfiguration von Explorer Dates konnte nicht gespeichert werden, da der Workspace schreibgesch\xFCtzt ist oder die Berechtigungen eingeschr\xE4nkt sind.",ephemeralStorageSuffix:"\xC4nderungen werden im Speicher behalten, bis VS Code neu startet, und k\xF6nnen verloren gehen."}});var Qe=E((Jn,Wr)=>{Wr.exports={migrationDetailsTitle:"Explorer Dates - \u8A2D\u5B9A\u306E\u79FB\u884C",migrationDetailsHeader:"\u8A2D\u5B9A\u306E\u79FB\u884C",gitAttributionWarning:"Explorer Dates: Git \u306E\u5E30\u5C5E\u30D0\u30C3\u30B8\u306F VS Code for Web \u3067\u306F\u5229\u7528\u3067\u304D\u307E\u305B\u3093\u3002\u6642\u9593\u30D9\u30FC\u30B9\u306E\u88C5\u98FE\u306F\u5F15\u304D\u7D9A\u304D\u5229\u7528\u3067\u304D\u307E\u3059\u3002",noOverridesToDocument:"\u30C9\u30AD\u30E5\u30E1\u30F3\u30C8\u5316\u3059\u308B\u4E0A\u66F8\u304D\u306F\u3042\u308A\u307E\u305B\u3093\u3002",overrideNotesHeader:"# Explorer Dates \u4E0A\u66F8\u304D\u30E1\u30E2\\n\\n",analysisCommandsDisabled:"Explorer Dates \u306E\u5206\u6790\u30B3\u30DE\u30F3\u30C9\u306F\u7121\u52B9\u306B\u306A\u3063\u3066\u3044\u307E\u3059\u3002Ctrl+Shift+M/H/A \u306A\u3069\u306E\u30B7\u30E7\u30FC\u30C8\u30AB\u30C3\u30C8\u306F explorerDates.enableAnalysisCommands \u3092\u6709\u52B9\u306B\u3059\u308B\u307E\u3067\u6A5F\u80FD\u3057\u307E\u305B\u3093\u3002",analysisEnableNow:"\u4ECA\u3059\u3050\u6709\u52B9\u306B\u3059\u308B",analysisEnablePartially:"\u6709\u52B9\u5316\u306F\u4E00\u90E8\u6210\u529F\u3057\u307E\u3057\u305F\u3002\u6B8B\u308A\u306E\u30EF\u30FC\u30AF\u30B9\u30DA\u30FC\u30B9\u30D5\u30A9\u30EB\u30C0\u30FC\u3067 explorerDates.enableAnalysisCommands \u3092\u624B\u52D5\u3067\u66F4\u65B0\u3057\u3066\u304F\u3060\u3055\u3044\u3002",analysisEnableFailed:"\u6709\u52B9\u5316\u306B\u5931\u6557\u3057\u307E\u3057\u305F\uFF1A\u30EF\u30FC\u30AF\u30B9\u30DA\u30FC\u30B9\u8A2D\u5B9A\u3067 explorerDates.enableAnalysisCommands \u3092\u66F4\u65B0\u3057\u3066\u304F\u3060\u3055\u3044\u3002",workspaceTemplatesDisabled:"\u30EF\u30FC\u30AF\u30B9\u30DA\u30FC\u30B9\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8\u306F\u7121\u52B9\u306B\u306A\u3063\u3066\u3044\u307E\u3059\u3002\u3053\u306E\u30B3\u30DE\u30F3\u30C9\u3092\u4F7F\u7528\u3059\u308B\u306B\u306F explorerDates.enableWorkspaceTemplates \u3092\u6709\u52B9\u306B\u3057\u3066\u304F\u3060\u3055\u3044\u3002",workspaceTemplatesDisabledSave:"\u30EF\u30FC\u30AF\u30B9\u30DA\u30FC\u30B9\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8\u306F\u7121\u52B9\u306B\u306A\u3063\u3066\u3044\u307E\u3059\u3002\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8\u3092\u4FDD\u5B58\u3059\u308B\u306B\u306F explorerDates.enableWorkspaceTemplates \u3092\u6709\u52B9\u306B\u3057\u3066\u304F\u3060\u3055\u3044\u3002",enterTemplateName:"\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8\u540D\u3092\u5165\u529B",enterTemplateDescription:"\u8AAC\u660E\u3092\u5165\u529B\uFF08\u4EFB\u610F\uFF09",failedToOpenTemplateManager:"\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8\u30DE\u30CD\u30FC\u30B8\u30E3\u30FC\u3092\u958B\u3051\u307E\u305B\u3093\u3067\u3057\u305F: {0}",failedToSaveTemplate:"\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8\u306E\u4FDD\u5B58\u306B\u5931\u6557\u3057\u307E\u3057\u305F: {0}",reportingDisabled:"\u30EC\u30DD\u30FC\u30C8\u6A5F\u80FD\u306F\u7121\u52B9\u306B\u306A\u3063\u3066\u3044\u307E\u3059\u3002\u30EC\u30DD\u30FC\u30C8\u3092\u751F\u6210\u3059\u308B\u306B\u306F explorerDates.enableExportReporting \u3092\u6709\u52B9\u306B\u3057\u3066\u304F\u3060\u3055\u3044\u3002",failedToGenerateReport:"\u30EC\u30DD\u30FC\u30C8\u306E\u751F\u6210\u306B\u5931\u6557\u3057\u307E\u3057\u305F: {0}",apiDisabled:"Explorer Dates API \u306F\u8A2D\u5B9A\u3067\u7121\u52B9\u306B\u306A\u3063\u3066\u3044\u307E\u3059\u3002",failedToShowApiInformation:"API \u60C5\u5831\u306E\u8868\u793A\u306B\u5931\u6557\u3057\u307E\u3057\u305F: {0}",failedToShowWorkspaceActivity:"\u30EF\u30FC\u30AF\u30B9\u30DA\u30FC\u30B9\u306E\u30A2\u30AF\u30C6\u30A3\u30D3\u30C6\u30A3\u3092\u8868\u793A\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F: {0}",failedToShowPerformanceAnalytics:"\u30D1\u30D5\u30A9\u30FC\u30DE\u30F3\u30B9\u5206\u6790\u3092\u8868\u793A\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F: {0}",failedToShowCacheDebugInfo:"\u30AD\u30E3\u30C3\u30B7\u30E5\u306E\u30C7\u30D0\u30C3\u30B0\u60C5\u5831\u3092\u8868\u793A\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F: {0}",noWorkspaceFolderOpen:"\u30EF\u30FC\u30AF\u30B9\u30DA\u30FC\u30B9\u30D5\u30A9\u30EB\u30C0\u30FC\u304C\u958B\u304B\u308C\u3066\u3044\u307E\u305B\u3093",now:"\u4ECA",minutes:"\u5206",hours:"\u6642\u9593",days:"\u65E5",weeks:"\u9031",months:"\u304B\u6708",years:"\u5E74",justNow:"\u305F\u3063\u305F\u4ECA",minutesAgo:"{0} \u5206\u524D",hoursAgo:"{0} \u6642\u9593\u524D",daysAgo:"{0} \u65E5\u524D",lastModified:"\u6700\u7D42\u66F4\u65B0",refreshSuccess:"\u65E5\u4ED8\u88C5\u98FE\u3092\u66F4\u65B0\u3057\u307E\u3057\u305F",activationError:"Explorer Dates \u306E\u6709\u52B9\u5316\u306B\u5931\u6557\u3057\u307E\u3057\u305F",errorAccessingFile:"\u88C5\u98FE\u7528\u30D5\u30A1\u30A4\u30EB\u3078\u306E\u30A2\u30AF\u30BB\u30B9\u30A8\u30E9\u30FC",clearTelemetryPrompt:"Explorer Dates \u306E\u30ED\u30FC\u30AB\u30EB\u4FDD\u5B58\u30C6\u30EC\u30E1\u30C8\u30EA\u30A4\u30D9\u30F3\u30C8\u3092\u5B8C\u5168\u306B\u524A\u9664\u3057\u307E\u3059\u3002\u3053\u306E\u64CD\u4F5C\u306F\u5143\u306B\u623B\u305B\u307E\u305B\u3093\u3002\u7D9A\u884C\u3057\u307E\u3059\u304B\uFF1F",clearTelemetryConfirm:"\u30C6\u30EC\u30E1\u30C8\u30EA\u3092\u524A\u9664",clearTelemetryCancel:"\u30AD\u30E3\u30F3\u30BB\u30EB",reportFormatDisabled:"\u30EC\u30DD\u30FC\u30C8\u5F62\u5F0F\u300C{0}\u300D\u306F\u7121\u52B9\u3067\u3059\u3002\u8A31\u53EF\u3055\u308C\u3066\u3044\u308B\u5F62\u5F0F: {1}",reportDownloadTriggered:"\u30D6\u30E9\u30A6\u30B6\u3067\u30EC\u30DD\u30FC\u30C8\u306E\u30C0\u30A6\u30F3\u30ED\u30FC\u30C9\u3092\u958B\u59CB\u3057\u307E\u3057\u305F",selectReportTimeRangePlaceholder:"\u30EC\u30DD\u30FC\u30C8\u306E\u671F\u9593\u3092\u9078\u629E",selectReportFormatPlaceholder:"\u30EC\u30DD\u30FC\u30C8\u5F62\u5F0F\u3092\u9078\u629E",cleanupNoDeprecated:"\u2139\uFE0F \u30AF\u30EA\u30FC\u30F3\u30A2\u30C3\u30D7\u3059\u308B\u975E\u63A8\u5968\u8A2D\u5B9A\u306F\u3042\u308A\u307E\u305B\u3093\u3002",showMigrationHistoryNoHistory:"\u79FB\u884C\u5C65\u6B74\u304C\u898B\u3064\u304B\u308A\u307E\u305B\u3093\u3002",resetConfirmation:"Explorer Dates \u306E\u3059\u3079\u3066\u306E\u8A2D\u5B9A\u3092\u65E2\u5B9A\u5024\u306B\u30EA\u30BB\u30C3\u30C8\u3057\u307E\u3059\u3002\u3088\u308D\u3057\u3044\u3067\u3059\u304B\uFF1F",resetConfirm:"\u8A2D\u5B9A\u3092\u30EA\u30BB\u30C3\u30C8",resetCancel:"\u30AD\u30E3\u30F3\u30BB\u30EB",resetSuccess:"\u2705 {0} \u4EF6\u306E\u8A2D\u5B9A\u3092\u65E2\u5B9A\u5024\u306B\u30EA\u30BB\u30C3\u30C8\u3057\u307E\u3057\u305F\u3002",validateNoIssues:"\u2705 \u8A2D\u5B9A\u306F\u6709\u52B9\u3067\u3059 - \u554F\u984C\u306F\u898B\u3064\u304B\u308A\u307E\u305B\u3093\u3067\u3057\u305F\uFF01",validateFoundIssues:"{0} \u4EF6\u306E\u8A2D\u5B9A\u554F\u984C\u304C\u898B\u3064\u304B\u308A\u307E\u3057\u305F\u3002\u8A73\u7D30\u3092\u8868\u793A\u3057\u307E\u3059\u304B\uFF1F",validateShowDetails:"\u8A73\u7D30\u3092\u8868\u793A",validateDismiss:"\u9589\u3058\u308B",migrationNotificationMessage:"Explorer Dates \u306F\u4E92\u63DB\u6027\u306E\u305F\u3081\u306B {0} \u4EF6\u306E\u8A2D\u5B9A\u3092\u66F4\u65B0\u3057\u307E\u3057\u305F\u3002\u8A2D\u5B9A\u306F\u4FDD\u6301\u3055\u308C\u3066\u3044\u307E\u3059\u3002",migrationViewChanges:"\u5909\u66F4\u3092\u8868\u793A",migrationOpenSettings:"\u8A2D\u5B9A\u3092\u958B\u304F",deprecatedPrompt:"Explorer Dates \u306F {0} \u4EF6\u306E\u975E\u63A8\u5968\u8A2D\u5B9A\u3092\u691C\u51FA\u3057\u307E\u3057\u305F\u3002\u524A\u9664\u3057\u307E\u3059\u304B\uFF1F",deprecatedClean:"\u4ECA\u3059\u3050\u30AF\u30EA\u30FC\u30F3\u30A2\u30C3\u30D7",deprecatedKeep:"\u53E4\u3044\u8A2D\u5B9A\u3092\u4FDD\u6301",deprecatedAskLater:"\u5F8C\u3067\u78BA\u8A8D",showFileLocation:"\u30D5\u30A1\u30A4\u30EB\u306E\u5834\u6240\u3092\u8868\u793A",teamConfigCorrupted:"Explorer Dates \u306E\u30C1\u30FC\u30E0\u8A2D\u5B9A\u30D5\u30A1\u30A4\u30EB\u304C\u7834\u640D\u3057\u3066\u3044\u308B\u53EF\u80FD\u6027\u304C\u3042\u308A\u307E\u3059\u3002.explorer-dates-profiles.json \u3092\u78BA\u8A8D\u3059\u308B\u304B\u30D0\u30C3\u30AF\u30A2\u30C3\u30D7\u304B\u3089\u5FA9\u5143\u3057\u3066\u304F\u3060\u3055\u3044\u3002",appliedFromTeamProfile:"\u30C1\u30FC\u30E0\u30D7\u30ED\u30D5\u30A1\u30A4\u30EB\u300C{1}\u300D\u304B\u3089 {0} \u4EF6\u306E Explorer Dates \u8A2D\u5B9A\u3092\u9069\u7528\u3057\u307E\u3057\u305F\u3002",documentedOverrides:".vscode/explorer-dates-overrides.md \u306B Explorer Dates \u306E\u4E0A\u66F8\u304D\u3092\u8A18\u9332\u3057\u307E\u3057\u305F",teamConfigMissingProfile:"\u30C1\u30FC\u30E0\u8A2D\u5B9A\u306B\u30A2\u30AF\u30C6\u30A3\u30D6\u306A\u30D7\u30ED\u30D5\u30A1\u30A4\u30EB\u304C\u3042\u308A\u307E\u305B\u3093\u3002",ephemeralStorageEnospc:"\u30C7\u30A3\u30B9\u30AF\u5BB9\u91CF\u4E0D\u8DB3\u306E\u305F\u3081\u3001Explorer Dates \u306E\u30C1\u30FC\u30E0\u8A2D\u5B9A\u3092\u4FDD\u5B58\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002",ephemeralStorageGeneric:"\u30EF\u30FC\u30AF\u30B9\u30DA\u30FC\u30B9\u304C\u8AAD\u307F\u53D6\u308A\u5C02\u7528\u3001\u307E\u305F\u306F\u6A29\u9650\u304C\u5236\u9650\u3055\u308C\u3066\u3044\u308B\u305F\u3081\u3001Explorer Dates \u306E\u30C1\u30FC\u30E0\u8A2D\u5B9A\u3092\u4FDD\u5B58\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002",ephemeralStorageSuffix:"\u5909\u66F4\u306F VS Code \u304C\u518D\u8D77\u52D5\u3059\u308B\u307E\u3067\u30E1\u30E2\u30EA\u306B\u4FDD\u6301\u3055\u308C\u308B\u305F\u3081\u3001\u5931\u308F\u308C\u308B\u53EF\u80FD\u6027\u304C\u3042\u308A\u307E\u3059\u3002"}});var et=E((Qn,Mr)=>{Mr.exports={migrationDetailsTitle:"Explorer Dates - \u8BBE\u7F6E\u8FC1\u79FB",migrationDetailsHeader:"\u8BBE\u7F6E\u8FC1\u79FB",gitAttributionWarning:"Explorer Dates\uFF1AGit \u5F52\u5C5E\u5FBD\u7AE0\u5728 VS Code Web \u7248\u4E2D\u4E0D\u53EF\u7528\u3002\u57FA\u4E8E\u65F6\u95F4\u7684\u88C5\u9970\u4ECD\u7136\u53EF\u7528\u3002",noOverridesToDocument:"\u6CA1\u6709\u9700\u8981\u8BB0\u5F55\u7684\u8986\u76D6\u9879\u3002",overrideNotesHeader:"# Explorer Dates \u8986\u76D6\u8BF4\u660E\\n\\n",analysisCommandsDisabled:"Explorer Dates \u5206\u6790\u547D\u4EE4\u5DF2\u7981\u7528\u3002\u5728\u542F\u7528 explorerDates.enableAnalysisCommands \u4E4B\u524D\uFF0CCtrl+Shift+M/H/A \u7B49\u5FEB\u6377\u952E\u5C06\u65E0\u6CD5\u4F7F\u7528\u3002",analysisEnableNow:"\u7ACB\u5373\u542F\u7528",analysisEnablePartially:"\u542F\u7528\u90E8\u5206\u6210\u529F\u3002\u8BF7\u5728\u5269\u4F59\u7684\u5DE5\u4F5C\u533A\u6587\u4EF6\u5939\u4E2D\u624B\u52A8\u66F4\u65B0 explorerDates.enableAnalysisCommands\u3002",analysisEnableFailed:"\u542F\u7528\u5931\u8D25\uFF1A\u8BF7\u5728\u5DE5\u4F5C\u533A\u8BBE\u7F6E\u4E2D\u66F4\u65B0 explorerDates.enableAnalysisCommands\u3002",workspaceTemplatesDisabled:"\u5DE5\u4F5C\u533A\u6A21\u677F\u5DF2\u7981\u7528\u3002\u542F\u7528 explorerDates.enableWorkspaceTemplates \u4EE5\u4F7F\u7528\u6B64\u547D\u4EE4\u3002",workspaceTemplatesDisabledSave:"\u5DE5\u4F5C\u533A\u6A21\u677F\u5DF2\u7981\u7528\u3002\u542F\u7528 explorerDates.enableWorkspaceTemplates \u4EE5\u4FDD\u5B58\u6A21\u677F\u3002",enterTemplateName:"\u8F93\u5165\u6A21\u677F\u540D\u79F0",enterTemplateDescription:"\u8F93\u5165\u63CF\u8FF0\uFF08\u53EF\u9009\uFF09",failedToOpenTemplateManager:"\u65E0\u6CD5\u6253\u5F00\u6A21\u677F\u7BA1\u7406\u5668\uFF1A{0}",failedToSaveTemplate:"\u4FDD\u5B58\u6A21\u677F\u5931\u8D25\uFF1A{0}",reportingDisabled:"\u62A5\u8868\u529F\u80FD\u5DF2\u7981\u7528\u3002\u542F\u7528 explorerDates.enableExportReporting \u4EE5\u751F\u6210\u62A5\u8868\u3002",failedToGenerateReport:"\u751F\u6210\u62A5\u8868\u5931\u8D25\uFF1A{0}",apiDisabled:"Explorer Dates API \u5DF2\u901A\u8FC7\u8BBE\u7F6E\u7981\u7528\u3002",failedToShowApiInformation:"\u663E\u793A API \u4FE1\u606F\u5931\u8D25\uFF1A{0}",failedToShowWorkspaceActivity:"\u663E\u793A\u5DE5\u4F5C\u533A\u6D3B\u52A8\u5931\u8D25\uFF1A{0}",failedToShowPerformanceAnalytics:"\u663E\u793A\u6027\u80FD\u5206\u6790\u5931\u8D25\uFF1A{0}",failedToShowCacheDebugInfo:"\u663E\u793A\u7F13\u5B58\u8C03\u8BD5\u4FE1\u606F\u5931\u8D25\uFF1A{0}",noWorkspaceFolderOpen:"\u672A\u6253\u5F00\u4EFB\u4F55\u5DE5\u4F5C\u533A\u6587\u4EF6\u5939",now:"\u73B0\u5728",minutes:"\u5206",hours:"\u5C0F\u65F6",days:"\u5929",weeks:"\u5468",months:"\u4E2A\u6708",years:"\u5E74",justNow:"\u521A\u521A",minutesAgo:"{0} \u5206\u949F\u524D",hoursAgo:"{0} \u5C0F\u65F6\u524D",daysAgo:"{0} \u5929\u524D",lastModified:"\u6700\u540E\u4FEE\u6539",refreshSuccess:"\u65E5\u671F\u88C5\u9970\u5DF2\u5237\u65B0",activationError:"Explorer Dates \u542F\u52A8\u5931\u8D25",errorAccessingFile:"\u8BBF\u95EE\u7528\u4E8E\u88C5\u9970\u7684\u6587\u4EF6\u65F6\u51FA\u9519",clearTelemetryPrompt:"\u8FD9\u5C06\u6C38\u4E45\u5220\u9664\u672C\u5730\u5B58\u50A8\u7684 Explorer Dates \u9065\u6D4B\u4E8B\u4EF6\u3002\u6B64\u64CD\u4F5C\u65E0\u6CD5\u64A4\u9500\u3002\u662F\u5426\u7EE7\u7EED\uFF1F",clearTelemetryConfirm:"\u6E05\u9664\u9065\u6D4B",clearTelemetryCancel:"\u53D6\u6D88",reportFormatDisabled:"\u62A5\u8868\u683C\u5F0F\u201C{0}\u201D\u5DF2\u7981\u7528\u3002\u5141\u8BB8\u7684\u683C\u5F0F\uFF1A{1}",reportDownloadTriggered:"\u5DF2\u5728\u6D4F\u89C8\u5668\u4E2D\u89E6\u53D1\u62A5\u8868\u4E0B\u8F7D",selectReportTimeRangePlaceholder:"\u9009\u62E9\u62A5\u8868\u65F6\u95F4\u8303\u56F4",selectReportFormatPlaceholder:"\u9009\u62E9\u62A5\u8868\u683C\u5F0F",cleanupNoDeprecated:"\u2139\uFE0F \u672A\u53D1\u73B0\u9700\u8981\u6E05\u7406\u7684\u5DF2\u5F03\u7528\u8BBE\u7F6E\u3002",showMigrationHistoryNoHistory:"\u672A\u627E\u5230\u8FC1\u79FB\u5386\u53F2\u3002",resetConfirmation:"\u8FD9\u5C06\u628A\u6240\u6709 Explorer Dates \u8BBE\u7F6E\u91CD\u7F6E\u4E3A\u9ED8\u8BA4\u503C\u3002\u786E\u5B9A\u5417\uFF1F",resetConfirm:"\u91CD\u7F6E\u8BBE\u7F6E",resetCancel:"\u53D6\u6D88",resetSuccess:"\u2705 \u5DF2\u5C06 {0} \u9879\u8BBE\u7F6E\u91CD\u7F6E\u4E3A\u9ED8\u8BA4\u503C\u3002",validateNoIssues:"\u2705 \u914D\u7F6E\u6709\u6548 - \u672A\u53D1\u73B0\u95EE\u9898\uFF01",validateFoundIssues:"\u53D1\u73B0 {0} \u4E2A\u914D\u7F6E\u95EE\u9898\u3002\u662F\u5426\u67E5\u770B\u8BE6\u7EC6\u4FE1\u606F\uFF1F",validateShowDetails:"\u663E\u793A\u8BE6\u7EC6\u4FE1\u606F",validateDismiss:"\u5173\u95ED",migrationNotificationMessage:"Explorer Dates \u4E3A\u517C\u5BB9\u6027\u66F4\u65B0\u4E86 {0} \u9879\u8BBE\u7F6E\u3002\u60A8\u7684\u914D\u7F6E\u5DF2\u4FDD\u7559\u3002",migrationViewChanges:"\u67E5\u770B\u66F4\u6539",migrationOpenSettings:"\u6253\u5F00\u8BBE\u7F6E",deprecatedPrompt:"Explorer Dates \u53D1\u73B0 {0} \u4E2A\u5DF2\u5F03\u7528\u8BBE\u7F6E\u3002\u662F\u5426\u5220\u9664\uFF1F",deprecatedClean:"\u7ACB\u5373\u6E05\u7406",deprecatedKeep:"\u4FDD\u7559\u65E7\u8BBE\u7F6E",deprecatedAskLater:"\u7A0D\u540E\u8BE2\u95EE",showFileLocation:"\u663E\u793A\u6587\u4EF6\u4F4D\u7F6E",teamConfigCorrupted:"Explorer Dates \u56E2\u961F\u914D\u7F6E\u6587\u4EF6\u4F3C\u4E4E\u5DF2\u635F\u574F\u3002\u8BF7\u68C0\u67E5 .explorer-dates-profiles.json \u6587\u4EF6\u6216\u4ECE\u5907\u4EFD\u6062\u590D\u3002",appliedFromTeamProfile:"\u5DF2\u4ECE\u56E2\u961F\u914D\u7F6E\u6587\u4EF6\u201C{1}\u201D\u5E94\u7528 {0} \u9879 Explorer Dates \u8BBE\u7F6E\u3002",documentedOverrides:"\u5DF2\u5728 .vscode/explorer-dates-overrides.md \u4E2D\u8BB0\u5F55 Explorer Dates \u8986\u76D6\u9879",teamConfigMissingProfile:"\u56E2\u961F\u914D\u7F6E\u7F3A\u5C11\u6D3B\u52A8\u914D\u7F6E\u6587\u4EF6\u3002",ephemeralStorageEnospc:"\u7531\u4E8E\u78C1\u76D8\u5DF2\u6EE1\uFF0C\u65E0\u6CD5\u4FDD\u5B58 Explorer Dates \u56E2\u961F\u914D\u7F6E\u3002",ephemeralStorageGeneric:"\u7531\u4E8E\u5DE5\u4F5C\u533A\u4E3A\u53EA\u8BFB\u6216\u6743\u9650\u53D7\u9650\uFF0C\u65E0\u6CD5\u4FDD\u5B58 Explorer Dates \u56E2\u961F\u914D\u7F6E\u3002",ephemeralStorageSuffix:"\u66F4\u6539\u5C06\u5728 VS Code \u91CD\u542F\u524D\u4FDD\u5B58\u5728\u5185\u5B58\u4E2D\uFF0C\u56E0\u6B64\u53EF\u80FD\u4F1A\u4E22\u5931\u3002"}});var rt=E((eo,tt)=>{var M={};M.en=Xe();M.es=Ye();M.fr=Ze();M.de=Je();M.ja=Qe();M.zh=et();tt.exports=M});var ot=E((to,nt)=>{var U=require("vscode"),I={en:{now:"now",minutes:"m",hours:"h",days:"d",weeks:"w",months:"mo",years:"y",justNow:"just now",minutesAgo:e=>`${e} minute${e!==1?"s":""} ago`,hoursAgo:e=>`${e} hour${e!==1?"s":""} ago`,yesterday:"yesterday",daysAgo:e=>`${e} day${e!==1?"s":""} ago`,lastModified:"Last modified",refreshSuccess:"Date decorations refreshed",activationError:"Explorer Dates failed to activate",errorAccessingFile:"Error accessing file for decoration",clearTelemetryPrompt:"This will permanently delete locally-stored telemetry events for Explorer Dates. This action cannot be undone. Proceed?",clearTelemetryConfirm:"Clear Telemetry",clearTelemetryCancel:"Cancel",clearTelemetrySuccess:"\u2705 Explorer Dates telemetry cleared.",migrateChecking:"Checking for settings that need migration...",migrateAllUpToDate:"\u2705 All settings are up to date!",migrateApplied:e=>`\u2705 Explorer Dates maintenance applied: ${e}.`,organizeSettingsResult:e=>`Explorer Dates settings organized: ${e}`,cleanupSuccess:"\u2705 Deprecated settings have been cleaned up!",reportFormatDisabled:(e,t)=>`Report format "${e}" is disabled. Allowed formats: ${t}`,reportSaved:e=>`Report saved to ${e}`,reportGenerateFailed:"Failed to generate report",reportDownloadTriggered:"Report download triggered in browser",selectReportTimeRangePlaceholder:"Select report time range",selectReportFormatPlaceholder:"Select report format",cleanupNoDeprecated:"\u2139\uFE0F No deprecated settings found to clean up.",showMigrationHistoryNoHistory:"No migration history found.",resetConfirmation:"This will reset all Explorer Dates settings to their default values. Are you sure?",migrationDetailsTitle:"Explorer Dates - Settings Migration",migrationDetailsHeader:"Settings Migration",gitAttributionWarning:"Explorer Dates: Git attribution badges are unavailable on VS Code for Web. Time-based decorations remain available.",noOverridesToDocument:"No overrides to document.",overrideNotesHeader:`# Explorer Dates Override Notes `,analysisCommandsDisabled:"Explorer Dates analysis commands are disabled. Shortcuts like Ctrl+Shift+M/H/A will not work until you enable explorerDates.enableAnalysisCommands.",analysisEnableNow:"Enable Now",analysisEnablePartially:"Enable partially succeeded. Update explorerDates.enableAnalysisCommands in remaining workspace folders manually.",analysisEnableFailed:"Enable failed: update explorerDates.enableAnalysisCommands in workspace settings.",workspaceTemplatesDisabled:"Workspace templates are disabled. Enable explorerDates.enableWorkspaceTemplates to use this command.",workspaceTemplatesDisabledSave:"Workspace templates are disabled. Enable explorerDates.enableWorkspaceTemplates to save templates.",enterTemplateName:"Enter template name",enterTemplateDescription:"Enter description (optional)",failedToOpenTemplateManager:e=>`Failed to open template manager: ${e}`,failedToSaveTemplate:e=>`Failed to save template: ${e}`,reportingDisabled:"Reporting features are disabled. Enable explorerDates.enableExportReporting to generate reports.",failedToGenerateReport:e=>`Failed to generate report: ${e}`,apiDisabled:"Explorer Dates API is disabled via settings.",failedToShowApiInformation:e=>`Failed to show API information: ${e}`,failedToShowWorkspaceActivity:e=>`Failed to show workspace activity: ${e}`,failedToShowPerformanceAnalytics:e=>`Failed to show performance analytics: ${e}`,failedToShowCacheDebugInfo:e=>`Failed to show cache debug info: ${e}`,noWorkspaceFolderOpen:"No workspace folder open",resetConfirm:"Reset Settings",resetCancel:"Cancel",resetSuccess:e=>`\u2705 Reset ${e} settings to defaults.`,validateNoIssues:"\u2705 Configuration is valid - no issues found!",validateFoundIssues:e=>`Found ${e} configuration issue(s). Would you like to see details?`,validateShowDetails:"Show Details",validateDismiss:"Dismiss",migrationNotificationMessage:e=>`Explorer Dates updated ${e} setting(s) for compatibility. Your configuration has been preserved.`,migrationViewChanges:"View Changes",migrationOpenSettings:"Open Settings",deprecatedPrompt:e=>`Explorer Dates found ${e} deprecated setting(s). Would you like to remove them?`,deprecatedClean:"Clean Up Now",deprecatedKeep:"Keep Old Settings",deprecatedAskLater:"Ask Later",showFileLocation:"Show File Location",teamConfigCorrupted:"Explorer Dates team configuration file appears to be corrupted. Please check the .explorer-dates-profiles.json file or restore from backup.",appliedFromTeamProfile:(e,t)=>`Applied ${e} Explorer Dates settings from team profile "${t}".`,documentedOverrides:"Documented Explorer Dates overrides in .vscode/explorer-dates-overrides.md",teamConfigMissingProfile:"Team configuration is missing an active profile.",ephemeralStorageEnospc:"Explorer Dates team configuration could not be saved because the disk is full.",ephemeralStorageGeneric:"Explorer Dates team configuration could not be saved because the workspace is read-only or permissions are restricted.",ephemeralStorageSuffix:" Changes will be kept in memory until VS Code restarts, so they may be lost."}};try{let e=rt();if(e&&typeof e=="object")for(let[t,r]of Object.entries(e)){I[t]||(I[t]={});for(let[n,o]of Object.entries(r))typeof I[t][n]>"u"&&(I[t][n]=o)}}catch{}var le=class{constructor(){this.u="en",this.a=null,this.E(),typeof U.workspace.onDidChangeConfiguration=="function"?this.a=U.workspace.onDidChangeConfiguration(t=>{t.affectsConfiguration("explorerDates.locale")&&this.E()}):this.a=null}E(){let r=U.workspace.getConfiguration("explorerDates").get("locale","auto");if(r==="auto"){let n=U&&U.env&&typeof U.env.language=="string"?U.env.language:"en";try{r=String(n||"en").split("-")[0]}catch{r="en"}}I[r]||(r="en"),this.u=r}getString(t,...r){let o=(I[this.u]||I.en)[t];return typeof o=="function"?o(...r):o||I.en[t]||t}getCurrentLocale(){return this.u}formatDate(t,r={}){try{return t.toLocaleDateString(this.u,r)}catch{return t.toLocaleDateString("en",r)}}dispose(){this.a&&(this.a.dispose(),this.a=null),Q===this&&(Q=null)}},Q=null;function Ur(){return Q||(Q=new le),Q}nt.exports={LocalizationManager:le,getLocalization:Ur}});var at=E((ro,it)=>{function qr(e){let t=require("vscode");function r(c,d,f,g,y,h){if(!e.P||!g)return h&&(h.misses++,h.allocations++),y();if(c.has(g))return h&&(h.hits++,h.reuses++),c.get(g);h&&(h.misses++,h.allocations++);let k=y();if(c.set(g,k),d.push(g),d.length>f){let D=d.shift();D&&c.delete(D)}return k}function n({formatType:c,diffMinutes:d,diffHours:f,diffDays:g,diffWeeks:y,diffMonths:h,date:k}){let D=(L,T=null)=>({value:L,key:T?`badge:${c||"default"}:${T}`:null});switch(c){case"relative-short":case"relative-long":return d<1?D("\u25CF\u25CF","just"):d<60?D(`${Math.min(d,99)}m`,`m:${Math.min(d,99)}`):f<24?D(`${Math.min(f,23)}h`,`h:${Math.min(f,23)}`):g<7?D(`${g}d`,`d:${g}`):y<4?D(`${y}w`,`w:${y}`):h<12?D(`${h}M`,`M:${h}`):D("1y","y:1");case"absolute-short":case"absolute-long":{let L=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],T=k.getDate(),H=`${L[k.getMonth()]}${T<10?"0"+T:T}`,b=[k.getMonth(),T];return c==="absolute-long"&&b.push(k.getFullYear()),D(H,`abs:${b.join("-")}`)}case"technical":return d<60?D(`${d}m`,`tech:m:${d}`):f<24?D(`${f}h`,`tech:h:${f}`):D(`${g}d`,`tech:d:${g}`);case"minimal":return f<1?D("\u2022\u2022","min:now"):f<24?D("\u25CB\u25CB","min:hours"):D("\u2500\u2500","min:days");default:return d<60?D(`${d}m`,`smart:m:${d}`):f<24?D(`${f}h`,`smart:h:${f}`):D(`${g}d`,`smart:d:${g}`)}}function o(c,d,f=null){let y=f!==null?f:new Date().getTime()-c.getTime();if(y<0)return e._logger.debug(`File has future modification time (diffMs: ${y}), treating as just modified`),"\u25CF\u25CF";let h=Math.floor(y/(1e3*60)),k=Math.floor(y/(1e3*60*60)),D=Math.floor(y/(1e3*60*60*24)),L=Math.floor(D/7),T=Math.floor(D/30),H=n({formatType:d,diffMinutes:h,diffHours:k,diffDays:D,diffWeeks:L,diffMonths:T,date:c});return r(e.I,e.L,e.N,H.key,()=>H.value,e.O)}function i(c){if(!c)return"none";if(typeof c=="string")return c;if(c.id)return c.id;try{return JSON.stringify(c)}catch{return String(c)}}function a(c,d,f){let g=c||"",y=d||"",h=i(f);return`${g}::${h}::${y}`}function s({badge:c,tooltip:d,color:f}){if(!e.W){e.o.misses++,e.o.allocations++;let h=new t.FileDecoration(c||"??");return d&&(h.tooltip=d),f&&(h.color=f),h.propagate=!1,h}if(!c)return e.o.allocations++,new t.FileDecoration("??");let g=a(c,d,f);if(g&&e.s.has(g))return e.o.hits++,e.o.reuses++,e.s.get(g);let y=new t.FileDecoration(c);if(d&&(y.tooltip=d),f&&(y.color=f),y.propagate=!1,e.o.allocations++,g&&(e.s.set(g,y),e.g.push(g),e.g.length>e.M)){let h=e.g.shift();h&&h!==g&&e.s.delete(h)}return e.o.misses++,y}function u(c="unspecified"){e.s.size!==0&&(e.s.clear(),e.g.length=0,e._logger.debug(`\u{1F9FC} Cleared decoration pool (${c})`))}async function l({filePath:c,stat:d,gitBlame:f,shouldUseAccessibleTooltips:g,fileSizeFormat:y}){if(g){let k=e._accessibility?.getAccessibleTooltip?.(c,d.mtime,d.birthtime,d.size,f);if(k)return k}let h=[];try{let k=e.l.formatDate(d.mtime);if(h.push(`${k}`),y&&typeof d.size=="number"){let D=e.U(d.size,y);h.push(D)}f&&f.author&&h.push(`Author: ${f.author}`)}catch(k){e._logger.debug("Tooltip builder failed",k)}return h.join(" \u2014 ")}return{acquireDecorationFromPool:s,clearDecorationPool:u,q:a,H:i,K:o,B:n,$:r,h:l}}it.exports={createDecorationLogic:qr}});var ce=E((exports,module)=>{var chunk=null;try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){try{chunk=dynamicRequire("../chunks/utils-shared-chunk")}catch{}try{chunk||(chunk=dynamicRequire("./chunks/utils-shared-chunk"))}catch{}try{chunk||(chunk=dynamicRequire("../chunks/path-utils-chunk"))}catch{}try{chunk||(chunk=dynamicRequire("./chunks/path-utils-chunk"))}catch{}}}catch{}if(chunk&&chunk.normalizePath)module.exports={normalizePath:chunk.normalizePath,getFileName:chunk.getFileName,getExtension:chunk.getExtension,getDirectory:chunk.getDirectory,joinPath:chunk.joinPath,getCacheKey:chunk.getCacheKey,getUriPath:chunk.getUriPath,getRelativePath:chunk.getRelativePath};else{let e=function(l=""){return l?l.replace(/\\/g,"/"):""},t=function(l=""){let c=e(l);return c?c.split("/").filter(Boolean):[]},r=function(l=""){let c=t(l);return c.length?c[c.length-1]:""},n=function(l=""){let c=r(l),d=c.lastIndexOf(".");return d<=0?"":c.substring(d).toLowerCase()},o=function(l=""){let c=e(l),d=c.lastIndexOf("/");return d===-1?"":c.substring(0,d)},i=function(...l){return e(l.filter(Boolean).join("/")).replace(/\/+/g,"/")},a=function(l=""){return e(l).toLowerCase()},s=function(l=""){if(!l)return"";if(typeof l=="string")return l;if(typeof l.fsPath=="string"&&l.fsPath.length>0)return l.fsPath;if(typeof l.path=="string"&&l.path.length>0)return l.path;if(typeof l.toString=="function")try{return l.toString(!0)}catch{return l.toString()}return String(l)},u=function(l="",c=""){let d=e(l),f=e(c);return d&&f.startsWith(d)?f.substring(d.length).replace(/^\/+/,""):f};normalizePath=e,getSegments=t,getFileName=r,getExtension=n,getDirectory=o,joinPath=i,getCacheKey=a,getUriPath=s,getRelativePath=u,module.exports={normalizePath:e,getFileName:r,getExtension:n,getDirectory:o,joinPath:i,getCacheKey:a,getUriPath:s,getRelativePath:u}}var normalizePath,getSegments,getFileName,getExtension,getDirectory,joinPath,getCacheKey,getUriPath,getRelativePath});var we=E((no,ut)=>{var st="EXPLORER_DATES_FORCE_VSCODE_FS";function lt(e,t=process.env){return String(t?.[e]||"")==="1"}function ue(e){let t=e&&typeof e=="object"?e:null,r=String(t?.scheme||(typeof e=="string"&&/^[a-z][a-z0-9+.-]*:/i.test(e)?e.split(":",1)[0]:"file")).toLowerCase(),n=String(t?.authority||""),o=t?.path||t?.fsPath||(typeof e=="string"?e.replace(/^[a-z][a-z0-9+.-]*:\/\//i,""):"");return{scheme:r,authority:n,path:String(o||"")}}function Hr({uri:e,isWeb:t=!1,remoteName:r="",forceWorkspaceFs:n=lt(st)}={}){let o=ue(e),i=o.scheme!=="file",a=!!t,s=!!r,u=!!(n||a||s||i);return{scheme:o.scheme,authority:o.authority,isFileScheme:!i,isVirtual:i,isBrowser:a,isRemote:s,forceWorkspaceFs:!!n,filesystem:u?"workspace.fs":"node.fs",provider:i?o.scheme==="github"||o.scheme==="vscode-vfs"?"github":"virtual":"filesystem"}}function ct({uri:e,platform:t=process.platform,caseSensitive:r}={}){return typeof r=="boolean"?r:ue(e).scheme!=="file"?!0:t!=="win32"}function Kr(e,t={}){let r=ue(e),n=r.path.replace(/\\/g,"/").replace(/\/+/g,"/"),o=`${r.scheme}://${r.authority}${n}`;return ct({uri:e,...t})?o:o.toLowerCase()}function ke(e){if(e instanceof Date){let t=e.getTime();return Number.isFinite(t)?t:null}if(typeof e=="number")return Number.isFinite(e)?e:null;if(typeof e=="string"&&e.trim()){let t=Date.parse(e);return Number.isFinite(t)?t:null}return null}function Br(e){if(!e||typeof e!="object")return null;let t=ke(e.mtime),r=ke(e.ctime);return{...e,mtimeMs:t,ctimeMs:r}}ut.exports={FORCE_WORKSPACE_FS_ENV:st,envFlag:lt,getUriParts:ue,getEnvironmentContract:Hr,isCaseSensitive:ct,resourceIdentity:Kr,normalizeTimestamp:ke,normalizeStat:Br}});var bt=E((oo,yt)=>{var de=require("vscode"),{normalizePath:Fe,getRelativePath:$r}=ce(),{diagLogOnce:zr}=se(),{normalizeTimestamp:ee,resourceIdentity:Vr}=we(),jr={unknown:0,github:1,git:2,fs:3},Ae={low:1,medium:2,high:3};function x(e,t,r){try{return e?.get?e.get(t,r):r}catch{return r}}function Gr(e){return{nowMinutes:Number(x(e,"freshnessBucketMinutesNow",60))||60,todayHours:Number(x(e,"freshnessBucketHoursToday",24))||24,twoDays:Number(x(e,"freshnessBucketDaysTwo",2))||2,oneWeek:Number(x(e,"freshnessBucketDaysWeek",7))||7}}function dt(e,t){if(!Number.isFinite(e)||e<0)return"unknown";let r=t.nowMinutes*60*1e3,n=t.todayHours*60*60*1e3,o=t.twoDays*24*60*60*1e3,i=t.oneWeek*24*60*60*1e3;return e<=r?"now":e<=n?"today":e<=o?"2d":e<=i?"1w":"stale"}function ft(e){switch(e){case"now":return"now";case"today":return"today";case"2d":return"2d";case"1w":return"1w";case"stale":return"stale";default:return"unknown"}}function pt(e){switch(e){case"fs":return"Filesystem";case"git":return"Git";case"github":return"GitHub";default:return"Unknown"}}function mt(e){switch(e){case"now":return"!!";case"today":return"T";case"2d":return"2d";case"1w":return"1w";case"stale":return"~~";default:return"?"}}function Xr(e,t,r){let n=!!x(r,"freshnessShowUnknown",!0);if(e==="unknown"||t==="unknown")return n?"?":null;let o=mt(e);return!o||o==="unknown"?n?"?":null:o}function Yr(e){try{let t=ee(e);return t===null?null:new Date(t).toISOString().replace("T"," ").replace("Z","")}catch{return null}}function Zr(e,t){if(!e)return;let r=x(t,"freshnessTooltipVerbosity","full"),n=x(t,"badge.sourceLabelMode","auto"),o=[],i=ft(e.bucket),a=pt(e.source);if(o.push(`Freshness: ${i}`),e.exactTimestamp){let l=Yr(e.exactTimestamp);l&&o.push(`Exact time: ${l}`)}let s=e.source==="fs"&&e.confidence==="high";return(n==="always"||n!=="never"&&!s||n!=="never"&&r==="full")&&o.push(`Source: ${a}`),e.author&&o.push(`Author: ${e.author}`),e.message&&o.push(`Message: ${e.message}`),o.push(`Confidence: ${e.confidence}`),e.reason&&r==="full"&&o.push(`Reason: ${e.reason}`),o.join(` `)}function Jr(e,t,r){if(!Number.isFinite(t)||t<=0)return!1;let n=300*1e3;if(t>r+n)return!1;if(e==="file")return!0;let o=r-t,i=300*1e3,a=365*24*60*60*1e3*10;return!(oa)}function _e({source:e,timestampMs:t,author:r,message:n,confidence:o,reason:i},a){if(!Number.isFinite(t))return{bucket:"unknown",source:e||"unknown",confidence:o||"low",reason:i||"no-timestamp"};let s=Gr(a),u=Date.now()-t;return{bucket:dt(u,s),source:e,exactTimestamp:t,author:r||void 0,message:n||void 0,confidence:o,reason:i||void 0}}async function Qr(e,t,r){let n=e?.scheme||"file",o=!!x(r,"freshnessAllowVirtualFs",!1);if(n!=="file"&&!o)return{freshness:null,reason:"fs-virtual-disabled"};let i=t?.mtimeMs??ee(t?.mtime),a=Date.now();return Number.isFinite(i)?Jr(n,i,a)?{freshness:_e({source:"fs",timestampMs:i,confidence:n==="file"?"high":"medium",reason:n==="file"?"fs-trust-high":"fs-trust-medium"},r),reason:null}:{freshness:null,reason:"fs-mtime-untrusted"}:{freshness:null,reason:"fs-mtime-missing"}}async function en(e,t,r){if(!t||typeof t.S!="function")return{freshness:null,reason:"git-provider-missing"};let n;try{n=await t.S(e)}catch(a){return{freshness:null,reason:`git-error:${a?.message||"unknown"}`}}let o=ee(n?.timestampMs);return o===null||o<=0?{freshness:null,reason:n?.error||"git-no-timestamp"}:{freshness:_e({source:"git",timestampMs:o,author:n?.author||void 0,message:n?.message||void 0,confidence:"medium",reason:"git-recency"},r),reason:null}}function gt(e){if(!e||(e.scheme||"")!=="github")return null;let n=Fe(e.path||"").replace(/^\/+/,"").split("/").filter(Boolean);if(n.length<2)return null;let o=n[0],i=n[1],a=n.slice(2).join("/"),s=new URLSearchParams(e.query||""),u=s.get("ref")||s.get("branch")||"HEAD";return{owner:o,repo:i,filePath:a,ref:u}}function tn(e){let t=(e||"").indexOf("+");if(t===-1)return"HEAD";let r=e.slice(t+1);try{let n;if(typeof TextDecoder<"u"){let a=new Uint8Array(r.length/2);for(let s=0;s0)return i}catch{}return"HEAD"}function ht(e){if(!e||e.scheme!=="vscode-vfs"||!String(e.authority||"").startsWith("github"))return null;let r=Fe(e.path||"").replace(/^\/+/,"").split("/").filter(Boolean);if(r.length<2)return null;let n=r[0],o=r[1],i=r.slice(2).join("/"),a=tn(e.authority||"");return{owner:n,repo:o,filePath:i,ref:a}}function rn(e){try{let t=de.workspace.workspaceFolders||[];for(let r of t){let n=r?.uri?.scheme;if(n==="github"){let o=gt(r.uri);if(!o)continue;let i=$r(r.uri.path||"",e?.path||"");return{...o,filePath:i}}if(n==="vscode-vfs"&&String(r?.uri?.authority||"").startsWith("github")){let o=ht(r.uri);if(!o)continue;let a=Fe(e?.path||"").replace(/^\/+/,"").split("/").filter(Boolean).slice(2).join("/");if(!a)continue;return{...o,filePath:a}}}}catch{}return null}async function nn(e,t){let r=gt(e)||ht(e)||rn(e);if(!r||!r.owner||!r.repo||!r.filePath)return{freshness:null,reason:"github-context-missing"};let n=`${r.owner}/${r.repo}@${r.ref}:${r.filePath}`,o=`https://api.github.com/repos/${r.owner}/${r.repo}/commits?path=${encodeURIComponent(r.filePath)}&sha=${encodeURIComponent(r.ref)}&per_page=1`,i={Accept:"application/vnd.github+json"};try{let y=de?.authentication&&typeof de.authentication.getSession=="function"?await de.authentication.getSession("github",["repo"],{createIfNone:!1}):null;y?.accessToken&&(i.Authorization=`Bearer ${y.accessToken}`)}catch{}if(typeof fetch!="function")return{freshness:null,reason:"github-fetch-unavailable"};let a;try{a=await fetch(o,{headers:i})}catch(y){return{freshness:null,reason:`github-fetch-error:${y?.message||"unknown"}`}}if(!a||!a.ok)return{freshness:null,reason:a?`github-http-${a.status}`:"github-no-response"};let s;try{s=await a.json()}catch{return{freshness:null,reason:"github-json-error"}}let u=Array.isArray(s)?s[0]:null,l=u?.commit||null,c=l?.author?.name||u?.author?.login||void 0,d=l?.message||void 0,f=ee(l?.author?.date);return f===null?{freshness:null,reason:"github-no-timestamp"}:{freshness:_e({source:"github",timestampMs:f,author:c,message:d,confidence:"medium",reason:"github-commit"},t),reason:null,cacheKey:n}}function Te(e,t){return!e||e==="auto"?!0:e==="unknown"?t==="unknown":e===t}async function on({uri:e,stat:t,provider:r,config:n,workspaceKind:o}){let i=e?.scheme||"file",a=x(n,"freshnessSourcePolicy","auto"),s=[],u=Date.now();if(Te(a,"fs")){let l=await Qr(e,t,n);if(s.push({source:"fs",reason:l.reason||null}),l.freshness)return{...l.freshness,attempts:s}}if(Te(a,"git")){let l=await en(e,r,n);if(s.push({source:"git",reason:l.reason||null}),l.freshness)return{...l.freshness,attempts:s}}if(Te(a,"github")){let l=await nn(e,n);if(s.push({source:"github",reason:l.reason||null,cacheKey:l.cacheKey||null}),l.freshness)return{...l.freshness,attempts:s}}return zr("freshness-unknown","info","No trustworthy freshness source available",{scheme:i,workspaceKind:o||"unknown",attempts:s}),{bucket:"unknown",source:"unknown",confidence:"low",reason:"no-source",attempts:s,resolvedAt:u}}function an(e,t){if(!e)return-1;if(!t)return 1;let r=Ae[e.confidence]||0,n=Ae[t.confidence]||0;if(r!==n)return r-n;let o=Number(e.exactTimestamp||0),i=Number(t.exactTimestamp||0);return o-i}yt.exports={resolveFreshness:on,formatBadge:Xr,formatTooltip:Zr,bucketFromAge:dt,formatBucketLabel:ft,formatBadgeAge:mt,formatSourceLabel:pt,compareFreshness:an,SOURCE_RANK:jr,CONFIDENCE_RANK:Ae,normalizeTimestamp:ee,resourceIdentity:Vr}});var Re=E((io,vt)=>{function sn(){return typeof Date=="function"&&Date.now?Date.now():16409952e5}function Et(e){return!!(e&&typeof e=="object"&&typeof e.getTime=="function")}function ln(e){if(Et(e))return e;if(typeof e=="number")return new Date(e);if(typeof e=="string"){let t=Date.parse(e);return isNaN(t)?new Date:new Date(t)}return new Date}function q(e=""){return e?e.replace(/\\/g,"/"):""}function cn(e=""){let t=q(e);return t?t.split("/").filter(Boolean):[]}function Dt(e=""){let t=cn(e);return t.length?t[t.length-1]:""}function un(e=""){let t=Dt(e),r=t.lastIndexOf(".");return r<=0?"":t.substring(r).toLowerCase()}function dn(e=""){let t=q(e),r=t.lastIndexOf("/");return r===-1?"":t.substring(0,r)}function fn(...e){return q(e.filter(Boolean).join("/")).replace(/\/+/g,"/")}function pn(e=""){return q(e).toLowerCase()}function mn(e=""){if(!e)return"";if(typeof e=="string")return e;if(typeof e.fsPath=="string"&&e.fsPath.length>0)return e.fsPath;if(typeof e.path=="string"&&e.path.length>0)return e.path;if(typeof e.toString=="function")try{return e.toString(!0)}catch{return e.toString()}return String(e)}function gn(e="",t=""){let r=q(e),n=q(t);return r&&n.startsWith(r)?n.substring(r.length).replace(/^\/+/,""):n}vt.exports={ensureDate:ln,isDateLike:Et,getCurrentTimestamp:sn,normalizePath:q,getFileName:Dt,getExtension:un,getDirectory:dn,joinPath:fn,getCacheKey:pn,getUriPath:mn,getRelativePath:gn}});var St=E((exports,module)=>{function createDecorationProviderHelpers(provider){let vscode=require("vscode"),{diagLogOnce,diagLog,isWebDiagnosticsEnabled}=se(),{formatBadge,formatTooltip}=bt(),decorationDiagCount=0,maxDecorationDiag=20,CONTRIBUTED_CUSTOM_COLOR_TOKENS=new Set(["explorerDates.customColor.veryRecent","explorerDates.customColor.recent","explorerDates.customColor.old"]),isWebRuntime=(()=>{try{return vscode?.env?.uiKind===vscode?.UIKind?.Web}catch{return!1}})(),getFileName,getExtension,normalizePath,getUriPath,ensureDate;try{let e=Re();e&&(getFileName=e.getFileName,getExtension=e.getExtension,normalizePath=e.normalizePath,getUriPath=e.getUriPath,ensureDate=e.ensureDate)}catch{}if(!getFileName||!ensureDate){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function")try{let e=dynamicRequire("../utils/pathUtils"),t=dynamicRequire("../utils/dateHelpers");getFileName=getFileName||e.getFileName,getExtension=getExtension||e.getExtension,normalizePath=normalizePath||e.normalizePath,getUriPath=getUriPath||e.getUriPath,ensureDate=ensureDate||t.ensureDate}catch{}}catch{}getFileName||(getFileName=e=>{let t=String(e||""),r=t.replace(/\\/g,"/").lastIndexOf("/");return r===-1?t:t.substring(r+1)}),getExtension||(getExtension=e=>{let t=String(e||""),r=t.lastIndexOf(".");return r<=0?"":t.substring(r).toLowerCase()}),normalizePath||(normalizePath=(e="")=>(e||"").toString().replace(/\\/g,"/")),getUriPath||(getUriPath=(e="")=>e?typeof e=="string"?e:e?.fsPath?e.fsPath:e?.path?e.path:String(e):""),ensureDate||(ensureDate=e=>e instanceof Date?e:typeof e=="number"?new Date(e):typeof e=="string"?isNaN(Date.parse(e))?new Date:new Date(Date.parse(e)):new Date)}async function provideDecoration(e,t){let r=!1,n=null,o,i=null,a=null,s=null,u=null,l=!1,c=null,d=null,f=null,g=null,y=null,h=null,k=!1,D=()=>isWebDiagnosticsEnabled&&isWebDiagnosticsEnabled()&&decorationDiagCount{let b=null;try{b=vscode.workspace.getConfiguration("explorerDates")}catch{b=null}let N=b?b.get("colorScheme","none"):"none",m=b?b.get("showDateDecorations",!0):!0,O=typeof provider._performanceMode=="boolean"?provider._performanceMode:b?b.get("performanceMode",!1):!1,X=isWebRuntime&&b?!!b.get("webDiagnosticsBuiltinColors",!1):!1;return{isWeb:isWebRuntime,isCanary:!1,builtinColorFallbackActive:X,colorScheme:N,effectiveColorScheme:N,showDateDecorations:m,performanceMode:O,featureLevel:provider.z,previewSettings:!!provider.d}},T=b=>{if(!D()||r)return;decorationDiagCount+=1,r=!0;let m={...L(),...b};!m.scheme&&n&&(m.scheme=n),m.effectiveColorScheme||(m.effectiveColorScheme=m.colorScheme),typeof m.hasColor>"u"&&(m.hasColor=!!m.color),typeof m.badge>"u"&&(m.badge=null),typeof m.propagate>"u"&&(m.propagate=null),typeof m.decorationKeys>"u"&&(m.decorationKeys=null),typeof m.nullReason>"u"&&(m.nullReason=null),typeof m.timestampSource>"u"&&(m.timestampSource="not-attempted"),typeof m.gitRecencyAvailable>"u"&&(m.gitRecencyAvailable=!1),typeof m.gitRecencyError>"u"&&(m.gitRecencyError=null),typeof m.resolvedTimestampMs>"u"&&(m.resolvedTimestampMs=null),typeof m.gitRepoMatched>"u"&&(m.gitRepoMatched=null),typeof m.gitPathAttempted>"u"&&(m.gitPathAttempted=null),m.themeTokenSource||(m.isCanary?m.themeTokenSource="canary":m.builtinColorFallbackActive?m.themeTokenSource="builtin-fallback":typeof m.color=="string"&&m.color.startsWith("explorerDates.")?m.themeTokenSource="custom-token":m.color?m.themeTokenSource="builtin-token":m.themeTokenSource=null),diagLog("info","Decoration return sample",m)},H=b=>{if(!(!D()||r))try{T(b)}catch{}};try{if(provider.C){i="disposed";return}if(!e){i="no-uri";return}let b=e.fsPath||e.path||"";n=e.scheme||"file";let N=vscode.workspace.getConfiguration("explorerDates"),m=N.get("performanceMode",!1);if(m&&typeof m!="boolean")return i="invalid-performanceMode",null;if(b&&b.includes("\0"))return i="invalid-path",null;let O=getUriPath(e);if(!O){i="missing-path";return}let X=provider.D?provider.D(O):getFileName(O)||O,Me=normalizePath(O),Zt=n||"file";if(typeof provider.k!="function"){diagLogOnce("decorations-fallback-provider","warn","Decoration fallback active (missing provider helpers)");try{let A=await provider._fileSystem.stat(e);if(!A){i="no-stat";return}let K=A.mtime instanceof Date?A.mtime:A.mtime?new Date(A.mtime):null,ge=K&&typeof K.getTime=="function"?K.getTime():NaN;if(!Number.isFinite(ge)){i="invalid-stat";return}let Y=Date.now()-K.getTime(),he=Y<1440*60*1e3?"\u2022":Y<10080*60*1e3?"\u25E6":"\xB7",ye=`Modified: ${K.toISOString()}`,oe=new vscode.FileDecoration(he,ye);return o=oe,y=he,f=!1,g=null,h=oe?.propagate,oe}catch{i="fallback-error";return}}if(!provider.k(e,"provideFileDecoration")?.isValid){i="invalid-uri";return}if(await provider.V(e)){i="excluded";return}return o=await provider.j(b,async()=>{if(t?.isCancellationRequested||provider.C){i=t?.isCancellationRequested?"cancelled":"disposed";return}let A=(v,ie)=>provider.d&&Object.prototype.hasOwnProperty.call(provider.d,v)?provider.d[v]:vscode.workspace.getConfiguration("explorerDates").get(v,ie);if(isWebRuntime&&A("webDiagnosticsCanary",!1)&&isWebDiagnosticsEnabled&&isWebDiagnosticsEnabled()&&decorationDiagCount=provider.w;if(provider.ee>provider.w*.8&&ye){diagLogOnce("decorations-backpressure","warn","Decoration backpressure fallback active");let v=provider.te(e,Date.now());return y=v?.badge||null,f=!!v?.color,g=v?.color&&v?.color.id?v.color.id:v?.color||null,h=v?.propagate,i="backpressure",v}provider.re(),provider._metrics.cacheMisses++;let P=null;if(!ge&&provider._workspaceIntelligence?.incrementalIndexer){let v=provider._workspaceIntelligence.incrementalIndexer.getIndexedStat(b);v&&(P=v)}let Ue=Date.now();if(!P){try{P=await provider._fileSystem.stat(e)}catch(v){if(provider._metrics.fileStatTimeMs+=Date.now()-Ue,provider._metrics.fileStatCalls++,provider.ne(v)){i="stat-not-found";return}if(Zt!=="file"){i="stat-failed";return}throw i="stat-failed",v}provider._workspaceIntelligence?.incrementalIndexer&&provider._workspaceIntelligence.incrementalIndexer.primeFromStat(e,P)}if(provider._metrics.fileStatTimeMs+=Date.now()-Ue,provider._metrics.fileStatCalls++,!(typeof P.isFile=="function"?P.isFile():!0)){i="not-regular-file";return}l=!0;let w=null;try{typeof provider.T=="function"&&(w=await provider.T(e,P,{filePath:b,fileLabel:X}))}catch(v){u={source:"unknown",gitAvailable:!1,gitError:v?.message?`resolver-error:${v.message}`:"resolver-error",repoMatched:null,pathAttempted:null}}if((!w||w.bucket==="unknown"||w.source==="unknown")&&!A("freshnessShowUnknown",!0)){i="freshness-unknown";return}let be=A("colorScheme","none");provider._performanceMode&&be!=="custom"&&(be="none");let Jt=A("fileSizeFormat","auto"),B=provider.A,Qt=B&&typeof B.h=="function"?B.h:provider.h,er=B&&typeof B.acquireDecorationFromPool=="function"?B.acquireDecorationFromPool:provider.oe,Ee=formatBadge(w?.bucket||"unknown",w?.source||"unknown",N,w?.confidence||"low");if(!Ee){i="badge-suppressed";return}let W=w?.exactTimestamp?provider.ie(new Date(w.exactTimestamp),be,b):void 0,tr=formatTooltip(w,N)||await Qt({filePath:b,resourceUri:e,stat:P,badgeDetails:{},gitBlame:null,shouldUseAccessibleTooltips:!1,fileSizeFormat:Jt,isCodeFile:!1}),De=er({badge:Ee,tooltip:tr,color:W});return g=W&&typeof W=="object"&&"id"in W?W.id:W||null,f=!!W,y=String(Ee||""),h=De?.propagate,typeof g=="string"&&g.startsWith("explorerDates.customColor.")&&!CONTRIBUTED_CUSTOM_COLOR_TOKENS.has(g)&&diagLogOnce(`missing-custom-color-${g}`,"warn","Custom color token missing from contributes.colors",{colorId:g,knownTokens:Array.from(CONTRIBUTED_CUSTOM_COLOR_TOKENS)}),c=w?.exactTimestamp||null,u=u||{source:w?.source||"unknown",bucket:w?.bucket||"unknown",confidence:w?.confidence||"low",reason:w?.reason||null,attempts:w?.attempts||null,gitAvailable:w?.source==="git",gitError:null,repoMatched:null,pathAttempted:null},provider.ae(Y,De,X,e,w),De}),o}catch(b){a=b?.name||"Error",s=b?.message||String(b),i=i||"exception";return}finally{if(o){if(d==null)try{d=Object.keys(o||{})}catch{d=null}if(y==null&&typeof o.badge<"u"&&(y=o.badge),h==null&&typeof o.propagate<"u"&&(h=o.propagate),g==null&&typeof o.color<"u")try{g=o.color&&o.color.id?o.color.id:o.color}catch{g=o.color}f==null&&typeof g<"u"&&(f=!!g)}let b={uri:e?getFileName(getUriPath(e)||""):null,scheme:n,isCanary:k,badge:y,hasColor:f,color:g,propagate:h,decorationKeys:d,nullReason:o?null:i||"unknown",timestampSource:u?.source||(l?"none":"not-attempted"),gitRecencyAvailable:!!u?.gitAvailable,gitRecencyError:u?.gitError||null,resolvedTimestampMs:c,gitRepoMatched:u?.repoMatched??null,gitPathAttempted:u?.pathAttempted||null,freshnessBucket:u?.bucket||null,freshnessSource:u?.source||null,freshnessConfidence:u?.confidence||null,freshnessReason:u?.reason||null,freshnessAttempts:u?.attempts||null,exceptionName:a,exceptionMessage:s};H(b)}}return{provideDecoration}}module.exports={createDecorationProviderHelpers}});var Tt=E((ao,wt)=>{function Ct(e){!e._allocationTelemetryEnabled||e._telemetryReportTimer||(e._telemetryReportTimer=setTimeout(()=>{e._telemetryReportTimer=null,kt(e),Ct(e)},e._telemetryReportInterval))}function kt(e){let t=e.getMetrics().allocationTelemetry,r=t.decorationPool.allocations+t.badgeFlyweight.allocations+t.readableFlyweight.allocations,n=t.decorationPool.reuses+t.badgeFlyweight.reuses+t.readableFlyweight.reuses;(r>0||n>0)&&e._logger?.info?.("\u{1F9EE} Allocation telemetry report",{timestamp:new Date().toISOString(),pool:{allocations:t.decorationPool.allocations,reuses:t.decorationPool.reuses,reuseRate:t.decorationPool.reusePercent+"%"},badgeFlyweight:{allocations:t.badgeFlyweight.allocations,reuses:t.badgeFlyweight.reuses,reuseRate:t.badgeFlyweight.reusePercent+"%"},readableFlyweight:{allocations:t.readableFlyweight.allocations,reuses:t.readableFlyweight.reuses,reuseRate:t.readableFlyweight.reusePercent+"%"},summary:{totalAllocations:r,totalReuses:n,overallReuseRate:r+n>0?(n/(r+n)*100).toFixed(1)+"%":"0%"},decorationsProcessed:e._metrics.totalDecorations,cacheHitRate:e.getMetrics().cacheHitRate})}wt.exports={scheduleTelemetryReport:Ct,reportAllocationTelemetry:kt}});var te=E((so,At)=>{var z="__explorerDatesLogger",V=class{constructor(){this.f=null}p(t,r){if(this.f&&typeof this.f[t]=="function")try{return this.f[t](...r)}catch{}switch(t){case"debug":break;case"info":break;case"warn":break;case"error":break;default:break}}debug(...t){return this.p("debug",t)}info(...t){return this.p("info",t)}warn(...t){return this.p("warn",t)}error(...t){return this.p("error",t)}se(t){this.f=t}};function hn(){return typeof global<"u"?(global[z]||(global[z]=new V),global[z]):typeof globalThis<"u"?(globalThis[z]||(globalThis[z]=new V),globalThis[z]):(xe||(xe=new V),xe)}var Pe=class extends V{},xe=null;At.exports={Logger:Pe,getLogger:hn}});var Rt=E((lo,_t)=>{var fe=class extends Error{constructor(t,r,n={}){super(r),this.code=t,this.context=n,this.name="ExtensionError"}},Ft={FILE_PERMISSION_DENIED:"FILE_PERMISSION_DENIED",WORKSPACE_TOO_LARGE:"WORKSPACE_TOO_LARGE",CHUNK_LOAD_FAILED:"CHUNK_LOAD_FAILED"};function yn(e){if(!e)return!1;let t=e.code||e?.name;return["EACCES","EPERM","EROFS","NoPermissions"].includes(t)}var Ie=class extends fe{constructor(t,r,n={}){let{recoverable:o=!0,context:i={}}=n;super(Ft.CHUNK_LOAD_FAILED,`Failed to load ${t}: ${r}`,{chunkName:t,recoverable:o,...i}),this.name="ChunkLoadError",this.chunkName=t,this.recoverable=o}};function bn(e,t,r={}){let n=require("vscode"),{userFacing:o=!0}=r,i=t?.recoverable??!0;o&&!i&&n.window.showErrorMessage(`Explorer Dates: ${e} feature unavailable. Please reinstall or rebuild the extension.`)}_t.exports={ExtensionError:fe,ERROR_CODES:Ft,isPermissionError:yn,ChunkLoadError:Ie,handleChunkFailure:bn}});var xt=E((exports,module)=>{var chunk=null;try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){try{chunk=dynamicRequire("../chunks/utils-shared-chunk")}catch{}try{chunk||(chunk=dynamicRequire("./chunks/utils-shared-chunk"))}catch{}try{chunk||(chunk=dynamicRequire("../chunks/date-helpers-chunk"))}catch{}try{chunk||(chunk=dynamicRequire("./chunks/date-helpers-chunk"))}catch{}}}catch{}if(chunk&&(chunk.ensureDate||chunk.isDateLike||chunk.getCurrentTimestamp))module.exports={ensureDate:chunk.ensureDate,isDateLike:chunk.isDateLike,getCurrentTimestamp:chunk.getCurrentTimestamp};else{let e=function(){return typeof Date=="function"&&Date.now?Date.now():16409952e5},t=function(n){return!!(n&&typeof n=="object"&&typeof n.getTime=="function")},r=function(n){if(t(n))return n;if(typeof n=="number")return new Date(n);if(typeof n=="string"){let o=Date.parse(n);return isNaN(o)?new Date:new Date(o)}return new Date};getCurrentTimestamp=e,isDateLike=t,ensureDate=r,module.exports={ensureDate:r,isDateLike:t,getCurrentTimestamp:e}}var getCurrentTimestamp,isDateLike,ensureDate});var Ot=E((co,Nt)=>{var S=require("vscode"),{isWebEnvironment:Pt}=Z(),{normalizePath:En}=ce(),{ExtensionError:Dn,ERROR_CODES:vn,isPermissionError:Sn}=Rt(),{getEnvironmentContract:Cn,normalizeStat:kn,FORCE_WORKSPACE_FS_ENV:wn}=we(),j;try{let e=Re();e&&(j=e.ensureDate)}catch{}j||(j=xt().ensureDate);var It=typeof process<"u"&&process.env?process.env:{},Lt=It.VSCODE_WEB==="true"||Pt(),C=null;if(!Lt)try{C=require("fs").promises}catch{C=null}var pe=class{constructor(){this.isWeb=Lt||Pt()}r(t){try{return Cn({uri:this.e(t),isWeb:this.isWeb,remoteName:S.env?.remoteName,forceWorkspaceFs:It[wn]==="1"}).filesystem==="workspace.fs"}catch{return!1}}t(t){if(!t)return"";if(typeof t=="string")return t;if(t&&typeof t=="object"&&typeof t.fsPath=="string")return t.fsPath;if(t&&typeof t=="object"&&typeof t.path=="string")return t.path;if(typeof t=="object"){if(typeof t.fsPath=="string")return t.fsPath;if(typeof t.path=="string")return t.path}return String(t)}e(t){if(t&&typeof t=="object"&&typeof t.scheme=="string"&&typeof t.path=="string")return t;if(typeof t=="string"){let r=t.trim(),n=/^[a-zA-Z]:[\\/]/.test(r);if(/^[a-zA-Z][a-zA-Z0-9+.-]*:/.test(r)&&!n){let i=S.Uri.parse(r);if(i.scheme&&i.scheme!=="file")return i}return S.Uri.file(t)}if(t&&typeof t=="object"){if(t.uri&&t.uri!==t)try{return this.e(t.uri)}catch{}if(this.isWeb&&typeof t.scheme=="string"&&typeof t.path=="string")return S.Uri.from({scheme:t.scheme,authority:t.authority||"",path:t.path||"",query:t.query||"",fragment:t.fragment||""});if(typeof t.fsPath=="string"&&t.fsPath.length>0)return S.Uri.file(t.fsPath);if(typeof t.path=="string"&&t.path.length>0)return this.isWeb&&typeof t.scheme=="string"&&t.scheme!=="file"?S.Uri.from({scheme:t.scheme,authority:t.authority||"",path:t.path,query:t.query||"",fragment:t.fragment||""}):S.Uri.file(t.path);if(typeof t.href=="string"&&t.href.length>0)return S.Uri.parse(t.href);if(typeof t.scheme=="string")return S.Uri.from({scheme:t.scheme,authority:t.authority||"",path:t.path||t.fsPath||"",query:t.query||"",fragment:t.fragment||""});if(typeof t.toString=="function")try{let r=t.toString(!0);if(r&&r!=="[object Object]")return S.Uri.parse(r)}catch{let r=t.toString();if(r&&r!=="[object Object]")return S.Uri.parse(r)}}throw new Error(`Unsupported target type: ${typeof t}`)}async stat(t){let r=this.r(t);if(!this.isWeb&&C&&!r)return C.stat(this.t(t));let n=this.e(t),o=await S.workspace.fs.stat(n),i=kn(o);return{...i,mtime:i.mtimeMs===null?j(o.mtime):new Date(i.mtimeMs),ctime:i.ctimeMs===null?j(o.ctime):new Date(i.ctimeMs),birthtime:i.ctimeMs===null?j(o.ctime):new Date(i.ctimeMs),isFile:()=>o.type===S.FileType.File,isDirectory:()=>o.type===S.FileType.Directory}}async readFile(t,r="utf8"){let n=this.r(t);if(!this.isWeb&&C&&!n)return C.readFile(this.t(t),r);let o=this.e(t),i=await S.workspace.fs.readFile(o);return r===null||r==="binary"?i:new TextDecoder(r).decode(i)}async writeFile(t,r,n="utf8"){let o=this.t(t);try{let i=this.r(t);if(!this.isWeb&&C&&!i)return C.writeFile(o,r,n);let a=this.e(t),s=typeof r=="string"?new TextEncoder().encode(r):r;await S.workspace.fs.writeFile(a,s)}catch(i){this.y("write file",o,i)}}async rename(t,r,n={overwrite:!1}){let o=this.t(t),i=this.t(r);try{let a=this.r(t)||this.r(r);if(!this.isWeb&&C&&!a)return C.rename(o,i);if(typeof S.workspace.fs.rename=="function")await S.workspace.fs.rename(this.e(t),this.e(r),n);else if(this.e(t).scheme==="file"&&this.e(r).scheme==="file")await(C||require("fs").promises).rename(o,i);else throw new Error("The active filesystem provider cannot rename report output.")}catch(a){this.y("rename file",`${o} -> ${i}`,a)}}async mkdir(t,r={recursive:!0}){let n=this.t(t);try{let o=this.r(t);if(!this.isWeb&&C&&!o)return C.mkdir(n,r);let i=this.e(t);await S.workspace.fs.createDirectory(i)}catch(o){this.y("create directory",n,o)}}async readdir(t,r={withFileTypes:!1}){let n=this.r(t);if(!this.isWeb&&C&&!n)return C.readdir(this.t(t),r);let o=this.e(t),i=await S.workspace.fs.readDirectory(o);return r.withFileTypes?i.map(([a,s])=>({name:a,isDirectory:()=>s===S.FileType.Directory,isFile:()=>s===S.FileType.File})):i.map(([a])=>a)}async delete(t,r={recursive:!1}){let n=this.r(t);if(!this.isWeb&&C&&!n){let i=this.t(t);return r.recursive?C.rm?C.rm(i,r):C.rmdir(i,r):C.unlink(i)}let o=this.e(t);await S.workspace.fs.delete(o,r)}async exists(t){try{return await this.stat(t),!0}catch{return!1}}async ensureDirectory(t){let r=En(this.t(t));await this.mkdir(r,{recursive:!0})}y(t,r,n){throw Sn(n)?new Dn(vn.FILE_PERMISSION_DENIED,`Permission denied while attempting to ${t}`,{path:r,code:n.code}):n}},Tn=new pe;Nt.exports={FileSystemAdapter:pe,fileSystem:Tn}});var Ut=E((uo,Mt)=>{var{MAX_BADGE_LENGTH:Wt}=J();function An(e=0,t="auto"){let r=typeof e=="number"&&!Number.isNaN(e)?e:0;if(t==="bytes")return`~${r}B`;let n=r/1024;if(t==="kb")return`~${n.toFixed(1)}K`;let o=n/1024;return t==="mb"?`~${o.toFixed(1)}M`:r<1024?`~${r}B`:n<1024?`~${Math.round(n)}K`:`~${o.toFixed(1)}M`}function Fn(e){if(e)return e.length>Wt?e.substring(0,Wt):e}Mt.exports={formatFileSize:An,trimBadge:Fn}});var qt=E((exports,module)=>{var{getLogger}=te(),env=typeof process<"u"&&process.env?process.env:{};function createFallbackVscodeMinimal(){return{workspace:{workspaceFolders:[],getConfiguration:()=>({get:()=>{},async update(){},inspect:()=>({defaultValue:void 0,globalValue:void 0,workspaceValue:void 0,workspaceFolderValue:void 0})})},ConfigurationTarget:{Global:1,Workspace:2,WorkspaceFolder:3}}}function resolveVscodeMinimal(){try{return require("vscode")}catch{return createFallbackVscodeMinimal()}}var MinimalSettingsCoordinator=class{constructor(t={}){this.F=t.defaultSection||"explorerDates",this.m=new Map,this.v=new Map,this.le=Number(env.EXPLORER_DATES_LOCK_WAIT_WARN_MS||1e3),this._logger=getLogger()}_(t,r){let o=(this.m.get(t)||Promise.resolve()).then(()=>r()),i=o.catch(()=>{});return this.m.set(t,i),o.finally(()=>{this.m.get(t)===i&&this.m.delete(t)}),o}b(t,r){return resolveVscodeMinimal().workspace.getConfiguration(t||void 0,r)}c(t,r){let n=r||this.F;return n?t.startsWith(`${n}.`)?{section:n,key:t.slice(n.length+1),fullKey:t}:t.includes(".")?{section:void 0,key:t,fullKey:t}:{section:n,key:t,fullKey:`${n}.${t}`}:{section:void 0,key:t,fullKey:t}}async updateSetting(t,r,n={}){return this._(this.c(t,n.section).fullKey,async()=>{let o=this.c(t,n.section),i=this.b(o.section,n.resource);try{let a=this.R(n.scope,n.resource);return await i.update(o.key,r,a),{key:o.fullKey,updated:!0}}catch(a){try{this._logger.warn(`Configuration update failed for ${o.fullKey}: ${a&&a.message}`)}catch{}return{key:o.fullKey,updated:!1,error:a}}})}async applySettings(t,r={}){let n=Array.isArray(t)?t:Object.entries(t).map(([a,s])=>({key:a,value:s})),o=[];for(let a of n)try{o.push(await this.updateSetting(a.key,a.value,r))}catch(s){o.push({key:this.c(a.key,r.section).fullKey,updated:!1,error:s})}let i=o.filter(a=>a&&a.error);if(i.length>0){let a=i.map(u=>`${u.key}: ${u.error&&u.error.message?u.error.message:String(u.error)}`),s=new Error(`Failed to apply ${i.length} setting(s): ${a.join("; ")}`);throw s.details=i,s}return o}R(t,r){return t&&t!=="auto"?this.x(t)||resolveVscodeMinimal().ConfigurationTarget.Workspace:r?resolveVscodeMinimal().ConfigurationTarget.WorkspaceFolder:resolveVscodeMinimal().workspace.workspaceFolders&&resolveVscodeMinimal().workspace.workspaceFolders.length>0?resolveVscodeMinimal().ConfigurationTarget.Workspace:resolveVscodeMinimal().ConfigurationTarget.Global}x(t){switch(t){case"user":return resolveVscodeMinimal().ConfigurationTarget.Global;case"workspace":return resolveVscodeMinimal().ConfigurationTarget.Workspace;case"workspaceFolder":return resolveVscodeMinimal().ConfigurationTarget.WorkspaceFolder;default:return}}getValue(t,r={}){let{section:n,resource:o}=r||{},i=this.c(t,n);return this.b(i.section,o).get(i.key)}inspect(t,r={}){let{section:n,resource:o}=r||{},i=this.c(t,n);return this.b(i.section,o).inspect(i.key)}async clearSetting(t,r={}){return this.updateSetting(t,void 0,r)}getLockWaitStats(){let t={};for(let[r,n]of this.v.entries())t[r]={...n};return t}resetLockWaitStats(){this.v.clear()}},cachedCoordinator=null;function getSettingsCoordinator(options){if(!cachedCoordinator||options&&options.forceNew){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=null;try{e=dynamicRequire("../chunks/settings-coordinator-impl-chunk")}catch{}try{e||(e=dynamicRequire("../chunks/settingsCoordinator-impl-chunk"))}catch{}if(e&&typeof e.createSettingsCoordinatorImpl=="function")return cachedCoordinator=e.createSettingsCoordinatorImpl(options),cachedCoordinator}}catch{}try{let{WEB_CHUNK_GLOBAL_KEY:e,LEGACY_WEB_CHUNK_GLOBAL_KEY:t}=J(),r=typeof globalThis<"u"&&(globalThis[e]||globalThis[t])||null;if(r&&r.settingsCoordinatorImpl&&typeof r.settingsCoordinatorImpl.createSettingsCoordinatorImpl=="function")return cachedCoordinator=r.settingsCoordinatorImpl.createSettingsCoordinatorImpl(options),cachedCoordinator}catch{}cachedCoordinator=new MinimalSettingsCoordinator(options)}return cachedCoordinator}module.exports={getSettingsCoordinator,MinimalSettingsCoordinator}});var zt=E((fo,$t)=>{var{normalizePath:Le,getUriPath:_n}=ce(),{getLogger:Rn}=te(),re=typeof process<"u"&&process.env?process.env:{},xn=Rn(),ne=240,Ne=255,Ht=/[\x00-\x1f\x7f<>:"|?*]/g,Pn=/[\x00-\x1f\x7f<>:"|?*]/,In=[/\.\./,/\.\.[\\/]/,/[\\/]\.\./,/^\.\.$/,/^\.\.[\\/]/,/[\\/]\.\.$/],Kt=new Set(["CON","PRN","AUX","NUL","COM1","COM2","COM3","COM4","COM5","COM6","COM7","COM8","COM9","LPT1","LPT2","LPT3","LPT4","LPT5","LPT6","LPT7","LPT8","LPT9"]),Bt=new Set([".exe",".scr",".bat",".cmd",".pif",".vbs",".js",".jar",".com",".msi",".dll",".dmg",".pkg",".deb",".rpm"]),Ln=new Set([".js",".jsx",".ts",".tsx",".mjs",".cjs",".py",".rb",".rs",".go",".php",".java",".kt",".swift",".cs",".c",".cpp",".h",".hpp",".html",".css",".scss",".less",".json",".jsonc",".md",".mdx",".txt",".sh",".bash",".yml",".yaml"]),Nn=()=>re.EXPLORER_DATES_TEST_MODE==="1"||re.NODE_ENV==="test"||re.VSCODE_TEST==="1"?"test":re.EXPLORER_DATES_DEV_MODE==="1"||re.NODE_ENV==="development"?"development":"production",G=class{static hasPathTraversal(t){let r=this.i(t);if(!r||typeof r!="string")return!1;let n=Le(r);return In.some(o=>o.test(n))}static hasDangerousChars(t){let r=this.i(t);return!r||typeof r!="string"?!1:Pn.test(r)}static isWindowsReservedName(t){if(!t||typeof t!="string")return!1;let r=t.split(".")[0].toUpperCase();return Kt.has(r)}static isSuspiciousExtension(t,r={}){let{workspaceContext:n=!0}=r;if(!t||typeof t!="string")return!1;let o=t.toLowerCase(),i=o.startsWith(".")?o:`.${o}`;return n&&Ln.has(i)?!1:Bt.has(i)}static isPathTooLong(t){let r=this.i(t);return!r||typeof r!="string"?!1:r.length>ne}static isFilenameTooLong(t){return!t||typeof t!="string"?!1:t.length>Ne}static validatePath(t,r={}){let{allowSuspiciousExtensions:n=!1,allowWindowsReservedNames:o=!1,strictLength:i=!0,workspaceContext:a=!0}=r,s=this.i(t),u=[],l=[];if(!s||typeof s!="string")return{isValid:!1,path:s,issues:["Invalid or empty path"],warnings:[],isSafe:!1};this.hasPathTraversal(s)&&u.push("Path contains directory traversal attempts"),this.hasDangerousChars(s)&&u.push("Path contains dangerous characters"),i&&this.isPathTooLong(s)&&u.push(`Path exceeds maximum length (${ne})`);let c=s.split(/[/\\]/).pop()||"";i&&this.isFilenameTooLong(c)&&u.push(`Filename exceeds maximum length (${Ne})`),!o&&this.isWindowsReservedName(c)&&l.push("Filename is a Windows reserved name");let d=c.includes(".")?c.split(".").pop():"";return!n&&this.isSuspiciousExtension(d,{workspaceContext:a})&&l.push("File extension is potentially suspicious"),{isValid:u.length===0,path:s,filename:c,extension:d,issues:u,warnings:l,isSafe:u.length===0&&l.length===0}}static sanitizePath(t,r={}){let{replacementChar:n="_",preserveExtension:o=!0}=r,i=this.i(t);if(!i||typeof i!="string")return"";i=i.replace(/\x00/g,"");let a=i.startsWith("/"),s=Le(i).split("/").filter(Boolean),u=[];for(let l of s){if(l===".."){u.length>0&&u.pop();continue}l!=="."&&u.push(l)}if(i=(a?"/":"")+u.join("/"),i=i.replace(Ht,n),o){let l=i.split("/"),c=l[l.length-1];if(c&&this.isWindowsReservedName(c)){let d=c.split(".");d[0]=d[0]+"_safe",l[l.length-1]=d.join("."),i=l.join("/")}}return i.length>ne&&(i=i.substring(0,ne),xn.warn("Path truncated due to length:",i)),i}static isWithinBoundaries(t,r=[]){let n=this.i(t);if(!n||!Array.isArray(r)||r.length===0)return!1;let o=n.split("/").filter(Boolean),i=[];for(let s of o)s===".."?i.length>0&&i.pop():s!=="."&&i.push(s);let a="/"+i.join("/");return r.some(s=>{let u=Le(s);return a.startsWith(u)})}static validateRegexPattern(t){if(!t||typeof t!="string")return{isValid:!1,issue:"Invalid pattern"};let r=[/\([^)]*\+[^)]*\)\+/,/\([^)]*\*[^)]*\)\*/,/\([^)]*\+[^)]*\)\*/,/\([^)]*\*[^)]*\)\+/,/\+.*\*|{\d+,}.*\*/,/\([^|]*\|[^)]*\)\*/];for(let n of r)if(n.test(t))return{isValid:!1,issue:"Pattern may cause catastrophic backtracking (ReDoS)"};try{return new RegExp(t),{isValid:!0}}catch(n){return{isValid:!1,issue:`Invalid regex syntax: ${n.message}`}}}static i(t){if(!t)return"";if(typeof t=="string")return t;try{return _n(t)}catch{return String(t)}}},Oe=class{static validateFileUri(t,r=[]){if(!t||typeof t!="object")return{isValid:!1,issue:"Invalid URI object"};if(t.scheme!=="file"&&t.scheme!=="vscode-vfs")return{isValid:!1,issue:`Unsupported URI scheme: ${t.scheme}`};let n=G.validatePath(t);return n.isValid?r.length>0&&!G.isWithinBoundaries(t,r)?{isValid:!1,issue:"Path is outside allowed workspace boundaries"}:{isValid:!0,warnings:n.warnings}:{isValid:!1,issue:`Path validation failed: ${n.issues.join(", ")}`}}static validateExclusionPatterns(t){if(!Array.isArray(t))return{isValid:!1,issue:"Patterns must be an array"};let r=[],n=[];for(let o of t){if(typeof o!="string"){n.push(`Invalid pattern type: ${typeof o}`);continue}let i=o.replace(/\./g,"\\.").replace(/\*/g,".*").replace(/\?/g,"."),a=G.validateRegexPattern(i);r.push({pattern:o,isValid:a.isValid,issue:a.issue}),a.isValid||n.push(`Pattern "${o}": ${a.issue}`)}return{isValid:n.length===0,results:r,issues:n}}};$t.exports={SecurityValidator:G,SecureFileOperations:Oe,detectSecurityEnvironment:Nn,MAX_SAFE_PATH_LENGTH:ne,MAX_SAFE_FILENAME_LENGTH:Ne,DANGEROUS_PATH_CHARS:Ht,WINDOWS_RESERVED_NAMES:Array.from(Kt),SUSPICIOUS_EXTENSIONS:Array.from(Bt)}});var Vt=E((exports,module)=>{var CHUNK_SIZES={onboarding:34,analysisCommands:23,exportReporting:17,extensionApi:15,workspaceTemplates:14,advancedCache:28,workspaceIntelligence:31,incrementalWorkers:19},BASE_BUNDLE_SIZE=99;function _getPresetDefinitionsSync(){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=dynamicRequire("./chunks/preset-definitions-chunk");if(e&&e.PRESET_DEFINITIONS)return e.PRESET_DEFINITIONS}}catch{}let FALLBACK_PRESET={minimal:{id:"minimal",name:"Minimal",description:"Lean setup that prioritizes responsiveness in large repos.",targetScenarios:["Large repos","Low resources","Minimal UI"],settings:{"explorerDates.performanceMode":!0,"explorerDates.showDateDecorations":!0}},balanced:{id:"balanced",name:"Balanced",description:"Default feature mix for most workspaces.",targetScenarios:["General development","Mixed workloads"],settings:{"explorerDates.enableOnboardingSystem":!0,"explorerDates.enableAnalysisCommands":!0,"explorerDates.performanceMode":!1,"explorerDates.dateDecorationFormat":"smart","explorerDates.colorScheme":"recency","explorerDates.badgePriority":"time"}},"web-development":{id:"web-development",name:"Web Development",description:"Optimized for frontend and full-stack web projects.",targetScenarios:["Web apps","Frontend teams"],settings:{"explorerDates.enableOnboardingSystem":!0,"explorerDates.dateDecorationFormat":"smart","explorerDates.colorScheme":"file-type","explorerDates.badgePriority":"time"}},enterprise:{id:"enterprise",name:"Enterprise",description:"Full feature set with reporting and integrations enabled.",targetScenarios:["Large teams","Governed environments"],settings:{"explorerDates.enableExportReporting":!0,"explorerDates.enableExtensionApi":!0,"explorerDates.dateDecorationFormat":"smart","explorerDates.colorScheme":"recency","explorerDates.badgePriority":"time"}},"data-science":{id:"data-science",name:"Data Science",description:"Insight-focused profile for data-heavy projects.",targetScenarios:["Data analysis","Research workflows"],settings:{"explorerDates.enableWorkspaceIntelligence":!0,"explorerDates.dateDecorationFormat":"iso-detailed","explorerDates.colorScheme":"recency","explorerDates.badgePriority":"time"}}};return FALLBACK_PRESET}var PRESET_DEFINITIONS=_getPresetDefinitionsSync(),RESTART_REQUIRED_SETTINGS=new Set(["enableOnboardingSystem","enableAnalysisCommands","enableExportReporting","enableExtensionApi","enableWorkspaceTemplates","enableAdvancedCache","enableWorkspaceIntelligence","enableIncrementalWorkers","performanceMode","smartFileWatching"]);function calculateBundleSize(e){let t=BASE_BUNDLE_SIZE;return e["explorerDates.enableOnboardingSystem"]&&(t+=CHUNK_SIZES.onboarding),e["explorerDates.enableAnalysisCommands"]&&(t+=CHUNK_SIZES.analysisCommands),e["explorerDates.enableExportReporting"]&&(t+=CHUNK_SIZES.exportReporting),e["explorerDates.enableExtensionApi"]&&(t+=CHUNK_SIZES.extensionApi),e["explorerDates.enableWorkspaceTemplates"]&&(t+=CHUNK_SIZES.workspaceTemplates),e["explorerDates.enableAdvancedCache"]&&(t+=CHUNK_SIZES.advancedCache),e["explorerDates.enableWorkspaceIntelligence"]&&(t+=CHUNK_SIZES.workspaceIntelligence),e["explorerDates.enableIncrementalWorkers"]&&(t+=CHUNK_SIZES.incrementalWorkers),t}function getDefaultPresetForProfile(e){let t=PRESET_DEFINITIONS;switch(e){case"minimal":case"extreme":return t.minimal||t.minimal;case"balanced":return t.balanced||t.balanced;case"web-development":return t["web-development"]||t["web-development"];case"data-science":return t["data-science"]||t["data-science"];case"enterprise":return t.enterprise||t.enterprise;default:return t.balanced||t.balanced}}module.exports={PRESET_DEFINITIONS,CHUNK_SIZES,BASE_BUNDLE_SIZE,RESTART_REQUIRED_SETTINGS,calculateBundleSize,getDefaultPresetForProfile}});var Gt=E((po,jt)=>{var me={onboarding:"src/chunks/onboarding-chunk",onboardingAssets:"src/chunks/onboarding-assets-chunk",reporting:"src/chunks/reporting-chunk",templates:"src/chunks/templates-chunk",analysis:"src/chunks/analysis-chunk",diagnostics:"src/chunks/diagnostics-chunk",extensionApi:"src/chunks/extension-api-chunk",advancedCache:"src/chunks/advancedCache-chunk",batchProcessor:"src/chunks/batchProcessor-chunk",decorationsAdvanced:"src/chunks/decorations-advanced",decorationsStatic:"src/chunks/decorations-static",workspaceIntelligence:"src/chunks/workspaceIntelligence",decorationLogic:"src/chunks/decoration-logic-chunk",decorationProvide:"src/chunks/decoration-provide-chunk",decorationHelpers:"src/chunks/decoration-helpers-chunk",decorationBatch:"src/chunks/decoration-batch-chunk",decorationWorkspaceIntel:"src/chunks/decoration-workspace-intel-chunk",decorationTelemetry:"src/chunks/decoration-telemetry-chunk",decorationRefresh:"src/chunks/decoration-refresh-chunk",decorationMemory:"src/chunks/decoration-memory-chunk",decorationPool:"src/chunks/decoration-pool-chunk",providerInit:"src/chunks/provider-init-chunk",fileDateProviderImpl:"src/chunks/file-date-provider-impl",fileDateProviderImplExport:"src/chunks/file-date-provider-impl-export",utilsShared:"src/chunks/utils-shared-chunk",incrementalWorkers:"src/chunks/incrementalWorkers",incrementalIndexer:"src/chunks/incrementalIndexer-chunk",uiAdapters:"src/chunks/ui-adapters",gitInsights:"src/chunks/gitInsights-chunk",smartWatcherFallback:"src/chunks/smartWatcherFallback-chunk",runtimeManagement:"src/chunks/runtime-management",runtimeManagementHeavy:"src/chunks/runtime-management-heavy",teamPersistence:"src/chunks/team-persistence-chunk",teamPersistenceUI:"src/chunks/team-persistence-ui-chunk",teamPersistenceLogic:"src/chunks/team-persistence-logic-chunk",settingsCoordinatorImpl:"src/chunks/settings-coordinator-impl-chunk",logger:"src/chunks/logger-chunk",loggerImpl:"src/chunks/logger-impl-chunk"};function On(e){return me[e]||null}function Wn(){return Object.keys(me)}function Mn(e){let t={};for(let[r,n]of Object.entries(me))t[r]=()=>e(`./${n}`);return t}var Un=new Set(["gitInsights","reporting","templates","advancedCache","runtimeManagementHeavy","incrementalWorkers"]);jt.exports={CHUNK_MAP:me,WEB_EXCLUDED_CHUNKS:Un,getChunkSourcePath:On,getAllChunkNames:Wn,generateDevLoaderMap:Mn}});var Xt=E((exports,module)=>{var FEATURE_FLAGS_GLOBAL_KEY="__explorerDatesFeatureFlags";function registerFeatureFlagsGlobal(e){if(e)try{typeof globalThis<"u"&&(globalThis[FEATURE_FLAGS_GLOBAL_KEY]=e)}catch{}}function loadFeatureFlagsFallback(){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function")return dynamicRequire("../featureFlags")}catch{}return null}function getFeatureFlagsGlobal(){try{if(typeof globalThis<"u"&&globalThis[FEATURE_FLAGS_GLOBAL_KEY])return globalThis[FEATURE_FLAGS_GLOBAL_KEY]}catch{}return loadFeatureFlagsFallback()}module.exports={FEATURE_FLAGS_GLOBAL_KEY,registerFeatureFlagsGlobal,getFeatureFlagsGlobal}});var We=E((exports,module)=>{var getLogger=()=>{try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=dynamicRequire("./chunks/logger-chunk");if(e&&typeof e.getLogger=="function")return getLogger=e.getLogger,getLogger()}}catch{}try{return getLogger=te().getLogger,getLogger()}catch{return getLogger=()=>({debug:(()=>{})?.bind(console)||console.log,info:(()=>{}).bind(console),warn:(()=>{}).bind(console),error:(()=>{}).bind(console)}),getLogger()}},{CHUNK_SIZES}=Vt(),{getChunkSourcePath,getAllChunkNames}=Gt(),{registerFeatureFlagsGlobal}=Xt(),{isWebEnvironment}=Z(),featureLogger=null,env=typeof process<"u"&&process.env?process.env:{},DEFAULT_CHUNK_TIMEOUT_MS=Number(env.EXPLORER_DATES_CHUNK_TIMEOUT||(env.NODE_ENV==="test"?1e3:5e3)),NETWORK_ERROR_CODES=new Set(["ENOTFOUND","ECONNRESET","ECONNREFUSED","EAI_AGAIN","ETIMEDOUT","EHOSTUNREACH"]),BUILT_CHUNK_CACHE=new Map,CHUNK_METHOD_ALIASES={reporting:"exportReporting",templates:"workspaceTemplates",analysis:"analysisCommands"},DEV_CHUNK_PATH_CACHE=new Map,LAST_FEATURE_FAILURES=new Map;function getDevChunkImportPath(e){if(DEV_CHUNK_PATH_CACHE.has(e))return DEV_CHUNK_PATH_CACHE.get(e);let t=getChunkSourcePath(e);if(!t)return DEV_CHUNK_PATH_CACHE.set(e,null),null;let r=t;return r.startsWith("src/")&&(r=r.slice(4)),r.startsWith("./")||(r=`./${r}`),DEV_CHUNK_PATH_CACHE.set(e,r),r}function resolveNodeDependencies(){if(nativeDepsResolved)return!!(nativePath&&nativeFs);if(nativeDepsResolved=!0,!isNodeLikeRuntime())return!1;try{nativePath=eval("require")("path"),nativeFs=eval("require")("fs")}catch{nativePath=null,nativeFs=null}return!!(nativePath&&nativeFs)}var nativeDepsResolved=!1,nativePath=null,nativeFs=null;function isWebRuntime(){try{return isWebEnvironment()?!0:typeof process<"u"&&process?.env?.VSCODE_WEB==="true"}catch{return!1}}function isNodeLikeRuntime(){return typeof process<"u"&&!!process.versions?.node&&!isWebRuntime()}function getChunkTimeoutMs(){return DEFAULT_CHUNK_TIMEOUT_MS>0?DEFAULT_CHUNK_TIMEOUT_MS:0}function logFeature(e,t,r){featureLogger||(featureLogger=getLogger());let n=featureLogger;typeof n[e]=="function"?n[e](t,r):n.info(t,r)}function logFeatureDisabled(e,t){logFeature("info","Feature disabled via configuration",{feature:e,savedKB:t&&CHUNK_SIZES[t]!==void 0?CHUNK_SIZES[t]:void 0})}function isLikelyNetworkIssue(e){if(!e)return!1;if(e.code&&NETWORK_ERROR_CODES.has(e.code))return!0;let t=(e.message||"").toLowerCase();return t.includes("network")||t.includes("fetch")||t.includes("timed out")}function runWithChunkTimeout(e,t){let r=getChunkTimeoutMs(),n=()=>{try{return Promise.resolve(e())}catch(o){return Promise.reject(o)}};return r?new Promise((o,i)=>{let a=!1,s=setTimeout(()=>{if(a)return;a=!0;let u=new Error(`Chunk "${t}" load timed out after ${r}ms`);u.code="CHUNK_TIMEOUT",i(u)},r);n().then(u=>{a||(a=!0,clearTimeout(s),o(u))}).catch(u=>{a||(a=!0,clearTimeout(s),i(u))})}):n()}function logResolverFailure(e,t){if(!t)return;let r={chunkName:e,error:t.message,code:t.code,networkIssue:isLikelyNetworkIssue(t),timedOut:t.code==="CHUNK_TIMEOUT"},n=r.networkIssue||r.timedOut?"warn":"error";logFeature(n,"Chunk resolver failed",r)}function tryLoadBuiltChunk(e){if(!e||!resolveNodeDependencies()||typeof nativeFs?.existsSync!="function")return null;if(BUILT_CHUNK_CACHE.has(e))return BUILT_CHUNK_CACHE.get(e);let t=[];typeof __dirname=="string"&&nativePath&&(t.push(nativePath.join(__dirname,"chunks",`${e}.js`)),t.push(nativePath.join(__dirname,"..","dist","chunks",`${e}.js`)));for(let r of t)try{if(!r||!nativeFs.existsSync(r))continue;let n=require(r),o=n?.default||n;return BUILT_CHUNK_CACHE.set(e,o||null),o&&logFeature("info","Loaded chunk via built artifact fallback",{chunkName:e,path:r}),o}catch(n){logFeature("warn","Built chunk fallback failed",{chunkName:e,path:r,error:n.message})}return BUILT_CHUNK_CACHE.set(e,null),null}function tryRequireDevChunk(e){if(isWebRuntime())return null;let t=getDevChunkImportPath(e);if(!t)return null;try{let r=require(t);return r?.default||r}catch(r){(r.code!=="MODULE_NOT_FOUND"||typeof r.message=="string"&&!r.message.includes(t))&&logFeature("debug","Dev chunk require failed",{chunkName:e,importPath:t,error:r.message})}return null}function tryRequireLocalBuiltChunk(e){if(isWebRuntime())return null;let t=`./chunks/${e}`;try{let r=require(t);return r?.default||r}catch(r){r.code==="MODULE_NOT_FOUND"||logFeature("debug","Local chunk require failed",{chunkName:e,importPath:t,error:r.message})}return null}function getSavingsKey(e){return e in CHUNK_SIZES?e:CHUNK_METHOD_ALIASES[e]||null}function announceChunkSavings(e){let t=getSavingsKey(e);if(!t)return;let r=CHUNK_SIZES[t];if(!r)return;let o=`\u{1F4BE} ${t===e||!e?t:`${t} (requested as "${e}")`} chunk unavailable - keeping the feature disabled is saving ~${r}KB`;logFeature("info","Chunk savings applied",{chunkName:t,requestedName:e,savedKB:r})}var getFeatureConfig=()=>{try{let t=require("vscode").workspace.getConfiguration("explorerDates"),r=isWebRuntime(),n=o=>r?!1:o;return{enableOnboarding:t.get("enableOnboardingSystem",!0),enableExportReporting:n(t.get("enableExportReporting",!0)),enableWorkspaceTemplates:n(t.get("enableWorkspaceTemplates",!0)),enableAnalysisCommands:t.get("enableAnalysisCommands",!0),enableAdvancedCache:n(t.get("enableAdvancedCache",!0)),enableWorkspaceIntelligence:n(t.get("enableWorkspaceIntelligence",!0)),enableIncrementalWorkers:n(t.get("enableIncrementalWorkers",!1)),enableGitInsights:n(t.get("enableGitInsights",!0)),enableExtensionApi:t.get("enableExtensionApi",!0)}}catch{let e=isWebRuntime(),t=r=>e?!1:r;return{enableOnboarding:!0,enableExportReporting:t(!0),enableWorkspaceTemplates:t(!0),enableAnalysisCommands:!0,enableAdvancedCache:t(!0),enableWorkspaceIntelligence:t(!0),enableIncrementalWorkers:t(!1),enableGitInsights:t(!0),enableExtensionApi:!0}}},featureLoaders=new Map,chunkResolver=null;function setFeatureChunkResolver(e){if(e&&typeof e!="function")throw new Error("Feature chunk resolver must be a function");chunkResolver=e||null}function registerFeatureLoader(e,t){if(typeof t!="function")throw new Error(`Feature loader for "${e}" must be a function`);featureLoaders.set(e,t)}function unregisterFeatureLoader(e){featureLoaders.delete(e)}function clearFeatureLoaders(){featureLoaders.clear()}async function loadFeatureModule(e){LAST_FEATURE_FAILURES.delete(e);let t=featureLoaders.get(e);if(!t&&chunkResolver&&(t=()=>chunkResolver(e)),!t)return logFeature("warn","No loader registered for feature",{feature:e}),null;try{return await runWithChunkTimeout(()=>t(),e)}catch(r){return LAST_FEATURE_FAILURES.set(e,r),logFeature("warn","Feature loader failed",{feature:e,error:r.message,code:r.code,networkIssue:isLikelyNetworkIssue(r)}),announceChunkSavings(e),null}}function getFeatureLoadFailure(e){return LAST_FEATURE_FAILURES.get(e)}function registerDefaultLoaders(){getAllChunkNames().forEach(t=>{featureLoaders.has(t)||registerFeatureLoader(t,createDefaultLoader(t))})}function createDefaultLoader(e){return async()=>{if(chunkResolver&&typeof chunkResolver=="function")try{let o=await runWithChunkTimeout(()=>chunkResolver(e),e);if(o)return o;logFeature("info","Chunk resolver returned no module",{chunkName:e})}catch(o){logResolverFailure(e,o)}let t=tryRequireDevChunk(e);if(t)return t;let r=tryRequireLocalBuiltChunk(e);if(r)return r;let n=tryLoadBuiltChunk(e);return n||(logFeature("warn","No built artifact available for chunk",{chunkName:e}),null)}}var featureFlags={async onboarding(){return getFeatureConfig().enableOnboarding?loadFeatureModule("onboarding"):(logFeatureDisabled("onboarding","onboarding"),null)},async exportReporting(){return getFeatureConfig().enableExportReporting?loadFeatureModule("reporting"):(logFeatureDisabled("exportReporting","exportReporting"),null)},async workspaceTemplates(){return getFeatureConfig().enableWorkspaceTemplates?loadFeatureModule("templates"):(logFeatureDisabled("workspaceTemplates","workspaceTemplates"),null)},async analysisCommands(){return getFeatureConfig().enableAnalysisCommands?loadFeatureModule("analysis"):(logFeatureDisabled("analysisCommands","analysisCommands"),null)},async advancedCache(){return getFeatureConfig().enableAdvancedCache?loadFeatureModule("advancedCache"):(logFeatureDisabled("advancedCache","advancedCache"),null)},async workspaceIntelligence(){return getFeatureConfig().enableWorkspaceIntelligence?loadFeatureModule("workspaceIntelligence"):(logFeatureDisabled("workspaceIntelligence","workspaceIntelligence"),null)},async incrementalWorkers(){return getFeatureConfig().enableIncrementalWorkers?loadFeatureModule("incrementalWorkers"):(logFeatureDisabled("incrementalWorkers","incrementalWorkers"),null)},async extensionApi(){return getFeatureConfig().enableExtensionApi?loadFeatureModule("extensionApi"):(logFeatureDisabled("extensionApi","extensionApi"),null)},async uiAdapters(){return loadFeatureModule("uiAdapters")},async batchProcessor(){return loadFeatureModule("batchProcessor")},async decorationsAdvanced(){return loadFeatureModule("decorationsAdvanced")},async decorationsProviderImpl(){return loadFeatureModule("decorationsProviderImpl")},async gitInsights(){return getFeatureConfig().enableGitInsights?loadFeatureModule("gitInsights"):(logFeatureDisabled("gitInsights","gitInsights"),null)},isEnabled(e){let t=getFeatureConfig();return{onboarding:t.enableOnboarding,exportReporting:t.enableExportReporting,workspaceTemplates:t.enableWorkspaceTemplates,analysisCommands:t.enableAnalysisCommands,advancedCache:t.enableAdvancedCache,workspaceIntelligence:t.enableWorkspaceIntelligence,incrementalWorkers:t.enableIncrementalWorkers,extensionApi:t.enableExtensionApi}[e]??!0},getEnabledFeatures(){let e=getFeatureConfig(),t=[];return e.enableOnboarding&&t.push("onboarding"),e.enableExportReporting&&t.push("exportReporting"),e.enableWorkspaceTemplates&&t.push("workspaceTemplates"),e.enableAnalysisCommands&&t.push("analysisCommands"),e.enableAdvancedCache&&t.push("advancedCache"),e.enableWorkspaceIntelligence&&t.push("workspaceIntelligence"),e.enableIncrementalWorkers&&t.push("incrementalWorkers"),e.enableExtensionApi&&t.push("extensionApi"),t},calculateSavings(){let e=getFeatureConfig(),t=0;return e.enableOnboarding||(t+=34),e.enableExportReporting||(t+=17),e.enableExtensionApi||(t+=15),e.enableWorkspaceTemplates||(t+=14),e.enableWorkspaceIntelligence||(t+=12),e.enableAnalysisCommands||(t+=8),e.enableAdvancedCache||(t+=5),t}};for(let[e,t]of Object.entries(CHUNK_METHOD_ALIASES))!featureFlags[e]&&typeof featureFlags[t]=="function"&&(featureFlags[e]=(...r)=>featureFlags[t](...r));function calculateSavings(e){e||(e=getFeatureConfig());let t=267,r=0;e.enableOnboarding||(r+=34),e.enableExportReporting||(r+=17),e.enableExtensionApi||(r+=15),e.enableWorkspaceTemplates||(r+=14),e.enableWorkspaceIntelligence||(r+=12),e.enableIncrementalWorkers||(r+=19),e.enableAnalysisCommands||(r+=8),e.enableAdvancedCache||(r+=5);let n=t-r,o=r>0?Math.round(r/t*100):0;return{baseSize:`${t}KB`,totalSavings:`${r}KB`,optimizedSize:`${n}KB`,percentage:o}}registerDefaultLoaders();var exportedFeatureFlags={...featureFlags,getFeatureConfig,calculateSavings,registerFeatureLoader,setFeatureChunkResolver,unregisterFeatureLoader,clearFeatureLoaders,loadFeatureModule,getFeatureLoadFailure,registerDefaultLoaders};registerFeatureFlagsGlobal(exportedFeatureFlags);module.exports=exportedFeatureFlags});var Yt=E((exports,module)=>{var vscode=require("vscode"),getLogger=()=>{try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=dynamicRequire("./chunks/logger-chunk");if(e&&typeof e.getLogger=="function")return getLogger=e.getLogger,getLogger()}}catch{}try{return getLogger=te().getLogger,getLogger()}catch{return getLogger=()=>({debug:(()=>{})?.bind(console)||console.log,info:(()=>{}).bind(console),warn:(()=>{}).bind(console),error:(()=>{}).bind(console)}),getLogger()}},{fileSystem}=Ot(),env=typeof process<"u"&&process.env?process.env:{},{formatFileSize}=Ut(),getFileName=p=>{try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=null;try{e=dynamicRequire("../chunks/utils-shared-chunk")}catch{}try{e||(e=dynamicRequire("./chunks/utils-shared-chunk"))}catch{}try{e||(e=dynamicRequire("./chunks/path-utils-chunk"))}catch{}if(e&&typeof e.getFileName=="function")return getFileName=e.getFileName,getFileName(p)}}catch{}try{let t=String(p||"").replace(/\\/g,"/"),r=t.lastIndexOf("/");return r===-1?t:t.substring(r+1)}catch{return"unknown"}},getExtension=p=>{try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=null;try{e=dynamicRequire("../chunks/utils-shared-chunk")}catch{}try{e||(e=dynamicRequire("./chunks/utils-shared-chunk"))}catch{}try{e||(e=dynamicRequire("./chunks/path-utils-chunk"))}catch{}if(e&&typeof e.getExtension=="function")return getExtension=e.getExtension,getExtension(p)}}catch{}try{let e=String(p||""),t=e.lastIndexOf(".");return t<=0?"":e.substring(t).toLowerCase()}catch{return""}},buildCacheKey=p=>{try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=null;try{e=dynamicRequire("../chunks/utils-shared-chunk")}catch{}try{e||(e=dynamicRequire("./chunks/utils-shared-chunk"))}catch{}try{e||(e=dynamicRequire("./chunks/path-utils-chunk"))}catch{}if(e&&typeof e.getCacheKey=="function")return buildCacheKey=e.getCacheKey,buildCacheKey(p)}}catch{}return String(p||"").toLowerCase().replace(/\\/g,"/")},normalizePath=input=>{try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=null;try{e=dynamicRequire("../chunks/utils-shared-chunk")}catch{}try{e||(e=dynamicRequire("./chunks/utils-shared-chunk"))}catch{}try{e||(e=dynamicRequire("./chunks/path-utils-chunk"))}catch{}if(e&&typeof e.normalizePath=="function")return normalizePath=e.normalizePath,normalizePath(input)}}catch{}return String(input||"").replace(/\\/g,"/")},getUriPath=(target="")=>{try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=null;try{e=dynamicRequire("../chunks/utils-shared-chunk")}catch{}try{e||(e=dynamicRequire("./chunks/utils-shared-chunk"))}catch{}try{e||(e=dynamicRequire("./chunks/path-utils-chunk"))}catch{}if(e&&typeof e.getUriPath=="function")return getUriPath=e.getUriPath,getUriPath(target)}}catch{}if(!target)return"";if(typeof target=="string")return target;if(typeof target.fsPath=="string"&&target.fsPath.length>0)return target.fsPath;if(typeof target.path=="string"&&target.path.length>0)return target.path;if(typeof target.toString=="function")try{return target.toString(!0)}catch{return target.toString()}return String(target)},{DEFAULT_CACHE_TIMEOUT,DEFAULT_MAX_CACHE_SIZE,GLOBAL_STATE_KEYS,DEFAULT_DECORATION_POOL_SIZE,DEFAULT_FLYWEIGHT_CACHE_SIZE,WORKSPACE_SCALE_EXTREME_THRESHOLD}=J(),{isWebEnvironment}=Z(),{getSettingsCoordinator}=qt(),{SecurityValidator,SecureFileOperations,detectSecurityEnvironment}=zt(),DISABLE_GIT_FEATURES=env.EXPLORER_DATES_DISABLE_GIT_FEATURES==="1",IS_WEB_ENV=isWebEnvironment()||env.VSCODE_WEB==="true",nodePath=null;try{IS_WEB_ENV||(nodePath=require("path"))}catch{nodePath=null}var pathCompat={basename:e=>{if(!e)return"";try{if(!IS_WEB_ENV)return require("path").basename(e)}catch{let t=e.replace(/\\/g,"/"),r=t.lastIndexOf("/");return r===-1?t:t.substring(r+1)}},dirname:e=>{if(!e)return".";try{if(!IS_WEB_ENV)return require("path").dirname(e)}catch{let t=e.replace(/\\/g,"/"),r=t.lastIndexOf("/");return r===-1?".":t.substring(0,r)}}};(async()=>{try{let t=await We().decorationsStatic();t&&(t.basename&&t.dirname&&(pathCompat.basename=t.basename,pathCompat.dirname=t.dirname),t.describeFile&&(exports.D=t.describeFile))}catch{}})();var CONFIG_DEFAULT_CACHE_TIMEOUT=3e4,CACHE_NAMESPACE_SEPARATOR="::",DEFAULT_DYNAMIC_WATCHER_LIMIT=Number(env.EXPLORER_DATES_MAX_DYNAMIC_WATCHERS||200),DEFAULT_WATCHER_INACTIVITY_MS=Number(env.EXPLORER_DATES_WATCHER_TTL_MS||600*1e3),DEFAULT_SMART_WATCHER_EXTENSIONS=["js","ts","json","md","py","java"],SMART_WATCHER_PRIORITY=new Map([["src",100],["lib",65],["test",30]]),WORKSPACE_SCAN_TIMEOUT_MS=Number(env.EXPLORER_DATES_WORKSPACE_SCAN_TIMEOUT||7e3),WORKSPACE_SCAN_TIMEOUT_FALLBACK_COUNT=WORKSPACE_SCALE_EXTREME_THRESHOLD,VIEWPORT_DEFAULT_WINDOW_MS=300*1e3,DEFAULT_VIEWPORT_HISTORY_LIMIT=Number(env.EXPLORER_DATES_VIEWPORT_HISTORY_LIMIT||400),FEATURE_LEVELS=["full","enhanced","standard","minimal"],DEFAULT_INDEXER_MAX_FILES=Math.max(100,Number(env.EXPLORER_DATES_INDEXER_MAX_FILES||2e3)),SECURITY_EXTRA_PATHS_ENV="EXPLORER_DATES_SECURITY_EXTRA_PATHS",DEFAULT_SECURITY_THROTTLE_MS=Number(env.EXPLORER_DATES_SECURITY_WARNING_THROTTLE_MS||5e3),SECURITY_WARNING_CACHE_LIMIT=Number(env.EXPLORER_DATES_SECURITY_WARNING_CACHE||500),DEFAULT_SECURITY_MAX_WARNINGS=Number(env.EXPLORER_DATES_SECURITY_MAX_WARNINGS_PER_FILE??1),describeFile=(e="")=>{try{let t=typeof e=="string"?e:getUriPath(e),r=normalizePath(t);return getFileName(r)||r||"unknown"}catch{return"unknown"}};(async()=>{try{let t=await We().decorationsStatic();t&&typeof t.describeFile=="function"&&(describeFile=t.describeFile)}catch{}})();var LazyHierarchicalDecorationCache=class{constructor(){this.n=new Map}get size(){return this.n.size}get bucketCount(){return 0}clear(){this.n.clear()}get(t){return this.n.get(t)}set(t,r){this.n.set(t,r)}delete(t){return this.n.delete(t)}*entries(){yield*this.n.entries()}*keys(){yield*this.n.keys()}*values(){yield*this.n.values()}[Symbol.iterator](){return this.entries()}enforceLimit(){return 0}},FileDateDecorationProviderImpl=class{constructor(...args){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=dynamicRequire("./chunks/file-date-provider-impl");if(e&&typeof e.FileDateDecorationProviderImpl=="function")return new e.FileDateDecorationProviderImpl(...args);if(e&&typeof e.FileDateDecorationProvider=="function")return new e.FileDateDecorationProvider(...args)}}catch(e){}throw new Error("FileDateDecorationProvider implementation is not available in this environment")}},FileDateDecorationProvider=class{constructor(...args){let loaderError=null;try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function")try{let e=null;try{e=dynamicRequire("./chunks/file-date-provider-impl-export")}catch{}if(e){let r=e.FileDateDecorationProvider||e.FileDateDecorationProviderImpl||e.default;return typeof r=="function"?new r(...args):new FileDateDecorationProviderImpl(...args)}e=dynamicRequire("./chunks/file-date-provider-impl");let t=e&&(e.FileDateDecorationProvider||e.FileDateDecorationProviderImpl||e.default);if(typeof t=="function")return new t(...args)}catch(e){loaderError=e}try{let e=null;try{e=require.resolve("./chunks/file-date-provider-impl-export",{paths:[__dirname]})}catch{}e||(e=require.resolve("./chunks/file-date-provider-impl",{paths:[__dirname]}));let t=require(e),r=t&&(t.FileDateDecorationProvider||t.FileDateDecorationProviderImpl||t.default);if(e&&e.endsWith("file-date-provider-impl-export.js")&&!r)return new FileDateDecorationProviderImpl(...args);if(typeof r=="function")return new r(...args)}catch(e){loaderError=loaderError||e}}catch(e){loaderError=loaderError||e}if(loaderError&&loaderError.message){let e=`FileDateDecorationProvider implementation is unavailable: ${loaderError.message}`;throw new Error(e)}throw new Error("FileDateDecorationProvider implementation is unavailable")}};module.exports={FileDateDecorationProvider,FileDateDecorationProviderImpl}});try{require("vscode")}catch{}var env=typeof process<"u"&&process.env?process.env:{},diagLog=null,isWebDiagnosticsEnabled=()=>!1;try{let e=se();e&&(diagLog=e.diagLog,isWebDiagnosticsEnabled=e.isWebDiagnosticsEnabled||(()=>!1))}catch{}function isWebRuntime(){try{let{isWebEnvironment:e}=Z();return e()}catch{return env.VSCODE_WEB==="true"}}function getWebChunkRegistry(){try{let{WEB_CHUNK_GLOBAL_KEY:e,LEGACY_WEB_CHUNK_GLOBAL_KEY:t}=J();if(typeof globalThis<"u")return globalThis[e]||globalThis[t]||null}catch{}return typeof globalThis<"u"&&(globalThis.explorerDatesChunks||globalThis.ce)||null}function resolveProviderModuleFromWebRegistry(){let e=getWebChunkRegistry();if(!e)return null;let t=[e.fileDateProviderImplExport,e.fileDateProviderImpl,e.fileDateProviderImplExport,e.fileDateProviderImpl,e["file-date-provider-impl-export"],e["file-date-provider-impl"]].filter(Boolean);return t.length>0?t[0]:null}function normalizeModuleExports(e){if(!e)return null;let t=e&&typeof e=="object"?e:{default:e},r=t&&typeof t=="object"&&t.default?t.default:null;return r&&typeof r=="object"?{...t,...r}:t}async function hydrateProviderOptionalSystems(e){try{try{let r=(await Promise.resolve().then(()=>Se(ot()))).getLocalization();e.l.getString=(...o)=>r.getString(...o),e.l.formatDate=(...o)=>r.formatDate(...o),e.l.getCurrentLocale=()=>r.getCurrentLocale();let n=e.l.dispose;e.l.dispose=()=>{try{r.dispose()}catch{}n()}}catch(t){e._logger?.debug("provider-init: localization hydrate failed",t)}try{let t=await Promise.resolve().then(()=>Se(at()));t&&typeof t.createDecorationLogic=="function"&&(e.A=t.createDecorationLogic(e))}catch(t){e._logger?.debug("provider-init: preload decoration logic failed",t)}try{let t=await Promise.resolve().then(()=>Se(St())),r=t&&(typeof t.createDecorationProviderHelpers=="function"?t.createDecorationProviderHelpers(e):t);e.ue=r}catch(t){e._logger?.debug("provider-init: preload decoration provider helpers failed",t)}try{let t=await e.fe();t&&typeof t.initializeAdvancedSystems=="function"&&await t.initializeAdvancedSystems(e)}catch(t){e._logger?.debug("provider-init: initializeAdvancedSystems failed",t)}try{let t=Tt();t&&typeof t.scheduleTelemetryReport=="function"&&e._allocationTelemetryEnabled&&t.scheduleTelemetryReport(e)}catch(t){e._logger?.debug("provider-init: scheduling telemetry failed",t)}}catch(t){try{e._logger?.debug("provider-init: hydration failed",t)}catch{}}}function createFileDateDecorationProvider(context){try{let ProviderClass=null,webRuntime=isWebRuntime();if(webRuntime){let e=getWebChunkRegistry(),t=[e?.fileDateProviderImplExport,e?.fileDateProviderImpl,e?.fileDateProviderImplExport,e?.fileDateProviderImpl,e?.["file-date-provider-impl-export"],e?.["file-date-provider-impl"]].filter(Boolean),r=t[0]||resolveProviderModuleFromWebRegistry();!e&&isWebDiagnosticsEnabled()?diagLog?.("warn","Provider registry missing in web runtime"):!r&&isWebDiagnosticsEnabled()&&diagLog?.("warn","Provider module missing from web registry",{hasRegistry:!!e,availableKeys:Object.keys(e||{}),candidateCount:t.length});let n=null;for(let o of t){let i=normalizeModuleExports(o),a=i&&(i.FileDateDecorationProvider||i.FileDateDecorationProviderImpl||i.default);if(a){n=a;break}isWebDiagnosticsEnabled()&&diagLog?.("warn","Provider exports missing expected class",{availableExportKeys:Object.keys(i||{})})}ProviderClass=n,!ProviderClass&&isWebDiagnosticsEnabled()&&t.length>0&&diagLog?.("warn","Provider class unresolved from registry entries",{candidateCount:t.length,availableRegistryKeys:Object.keys(e||{})})}try{if(!webRuntime){let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let e=null;try{e=dynamicRequire("./fileDateProviderImplExport")}catch{}if(!e)try{e=dynamicRequire("./fileDateProviderImpl")}catch{}ProviderClass=e&&(e.FileDateDecorationProvider||e.FileDateDecorationProviderImpl||e.default)}}}catch{}if(!ProviderClass&&!webRuntime){let{FileDateDecorationProvider:e}=Yt();ProviderClass=e}if(!ProviderClass)return isWebDiagnosticsEnabled()&&diagLog?.("warn","Provider class unavailable",{webRuntime,registryKeys:Object.keys(getWebChunkRegistry()||{})}),null;let provider=new ProviderClass;return isWebDiagnosticsEnabled()&&diagLog?.("info","Provider class resolved",{className:ProviderClass?.name||"unknown"}),(async()=>{try{await provider.initializeAdvancedSystems(context)}catch(e){provider._logger?.debug("provider-init: provider factory init failed",e)}})(),{createFileDateDecorationProvider:()=>provider}}catch{return null}}module.exports={hydrateProviderOptionalSystems,createFileDateDecorationProvider}; diff --git a/dist/chunks/reporting.js b/dist/chunks/reporting.js index 35621f0..addcf22 100644 --- a/dist/chunks/reporting.js +++ b/dist/chunks/reporting.js @@ -1,4 +1,4 @@ -var g=(i,e)=>()=>(e||i((e={exports:{}}).exports,e),e.exports);var N=g((dt,$)=>{var k="__explorerDatesLogger",T=class{constructor(){this.f=null}d(e,t){if(this.f&&typeof this.f[e]=="function")try{return this.f[e](...t)}catch{}switch(e){case"debug":break;case"info":break;case"warn":break;case"error":break;default:break}}debug(...e){return this.d("debug",e)}info(...e){return this.d("info",e)}warn(...e){return this.d("warn",e)}error(...e){return this.d("error",e)}U(e){this.f=e}};function De(){return typeof global<"u"?(global[k]||(global[k]=new T),global[k]):typeof globalThis<"u"?(globalThis[k]||(globalThis[k]=new T),globalThis[k]):(x||(x=new T),x)}var P=class extends T{},x=null;$.exports={Logger:P,getLogger:De}});var j=g((mt,W)=>{var U=require("vscode");function Se(){try{let i=U?.env?.uiKind,e=U?.UIKind?.Web;return i!==void 0&&e!==void 0&&i===e}catch{return!1}}W.exports={isWebEnvironment:Se}});var q=g((exports,module)=>{var chunk=null;try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){try{chunk=dynamicRequire("../chunks/utils-shared-chunk")}catch{}try{chunk||(chunk=dynamicRequire("./chunks/utils-shared-chunk"))}catch{}try{chunk||(chunk=dynamicRequire("../chunks/path-utils-chunk"))}catch{}try{chunk||(chunk=dynamicRequire("./chunks/path-utils-chunk"))}catch{}}}catch{}if(chunk&&chunk.normalizePath)module.exports={normalizePath:chunk.normalizePath,getFileName:chunk.getFileName,getExtension:chunk.getExtension,getDirectory:chunk.getDirectory,joinPath:chunk.joinPath,getCacheKey:chunk.getCacheKey,getUriPath:chunk.getUriPath,getRelativePath:chunk.getRelativePath};else{let i=function(c=""){return c?c.replace(/\\/g,"/"):""},e=function(c=""){let u=i(c);return u?u.split("/").filter(Boolean):[]},t=function(c=""){let u=e(c);return u.length?u[u.length-1]:""},r=function(c=""){let u=t(c),h=u.lastIndexOf(".");return h<=0?"":u.substring(h).toLowerCase()},n=function(c=""){let u=i(c),h=u.lastIndexOf("/");return h===-1?"":u.substring(0,h)},s=function(...c){return i(c.filter(Boolean).join("/")).replace(/\/+/g,"/")},o=function(c=""){return i(c).toLowerCase()},l=function(c=""){if(!c)return"";if(typeof c=="string")return c;if(typeof c.fsPath=="string"&&c.fsPath.length>0)return c.fsPath;if(typeof c.path=="string"&&c.path.length>0)return c.path;if(typeof c.toString=="function")try{return c.toString(!0)}catch{return c.toString()}return String(c)},a=function(c="",u=""){let h=i(c),d=i(u);return h&&d.startsWith(h)?d.substring(h.length).replace(/^\/+/,""):d};normalizePath=i,getSegments=e,getFileName=t,getExtension=r,getDirectory=n,joinPath=s,getCacheKey=o,getUriPath=l,getRelativePath=a,module.exports={normalizePath:i,getFileName:t,getExtension:r,getDirectory:n,joinPath:s,getCacheKey:o,getUriPath:l,getRelativePath:a}}var normalizePath,getSegments,getFileName,getExtension,getDirectory,joinPath,getCacheKey,getUriPath,getRelativePath});var K=g((pt,B)=>{var b=class extends Error{constructor(e,t,r={}){super(t),this.code=e,this.context=r,this.name="ExtensionError"}},H={FILE_PERMISSION_DENIED:"FILE_PERMISSION_DENIED",WORKSPACE_TOO_LARGE:"WORKSPACE_TOO_LARGE",CHUNK_LOAD_FAILED:"CHUNK_LOAD_FAILED"};function Fe(i){if(!i)return!1;let e=i.code||i?.name;return["EACCES","EPERM","EROFS","NoPermissions"].includes(e)}var L=class extends b{constructor(e,t,r={}){let{recoverable:n=!0,context:s={}}=r;super(H.CHUNK_LOAD_FAILED,`Failed to load ${e}: ${t}`,{chunkName:e,recoverable:n,...s}),this.name="ChunkLoadError",this.chunkName=e,this.recoverable=n}};function ke(i,e,t={}){let r=require("vscode"),{userFacing:n=!0}=t,s=e?.recoverable??!0;n&&!s&&r.window.showErrorMessage(`Explorer Dates: ${i} feature unavailable. Please reinstall or rebuild the extension.`)}B.exports={ExtensionError:b,ERROR_CODES:H,isPermissionError:Fe,ChunkLoadError:L,handleChunkFailure:ke}});var Z=g((gt,Y)=>{var X="EXPLORER_DATES_FORCE_VSCODE_FS";function G(i,e=process.env){return String(e?.[i]||"")==="1"}function _(i){let e=i&&typeof i=="object"?i:null,t=String(e?.scheme||(typeof i=="string"&&/^[a-z][a-z0-9+.-]*:/i.test(i)?i.split(":",1)[0]:"file")).toLowerCase(),r=String(e?.authority||""),n=e?.path||e?.fsPath||(typeof i=="string"?i.replace(/^[a-z][a-z0-9+.-]*:\/\//i,""):"");return{scheme:t,authority:r,path:String(n||"")}}function Te({uri:i,isWeb:e=!1,remoteName:t="",forceWorkspaceFs:r=G(X)}={}){let n=_(i),s=n.scheme!=="file",o=!!e,l=!!t,a=!!(r||o||l||s);return{scheme:n.scheme,authority:n.authority,isFileScheme:!s,isVirtual:s,isBrowser:o,isRemote:l,forceWorkspaceFs:!!r,filesystem:a?"workspace.fs":"node.fs",provider:s?n.scheme==="github"||n.scheme==="vscode-vfs"?"github":"virtual":"filesystem"}}function V({uri:i,platform:e=process.platform,caseSensitive:t}={}){return typeof t=="boolean"?t:_(i).scheme!=="file"?!0:e!=="win32"}function Ae(i,e={}){let t=_(i),r=t.path.replace(/\\/g,"/").replace(/\/+/g,"/"),n=`${t.scheme}://${t.authority}${r}`;return V({uri:i,...e})?n:n.toLowerCase()}function O(i){if(i instanceof Date){let e=i.getTime();return Number.isFinite(e)?e:null}if(typeof i=="number")return Number.isFinite(i)?i:null;if(typeof i=="string"&&i.trim()){let e=Date.parse(i);return Number.isFinite(e)?e:null}return null}function Re(i){if(!i||typeof i!="object")return null;let e=O(i.mtime),t=O(i.ctime);return{...i,mtimeMs:e,ctimeMs:t}}Y.exports={FORCE_WORKSPACE_FS_ENV:X,envFlag:G,getUriParts:_,getEnvironmentContract:Te,isCaseSensitive:V,resourceIdentity:Ae,normalizeTimestamp:O,normalizeStat:Re}});var M=g((yt,ee)=>{function be(){return typeof Date=="function"&&Date.now?Date.now():16409952e5}function J(i){return!!(i&&typeof i=="object"&&typeof i.getTime=="function")}function _e(i){if(J(i))return i;if(typeof i=="number")return new Date(i);if(typeof i=="string"){let e=Date.parse(i);return isNaN(e)?new Date:new Date(e)}return new Date}function S(i=""){return i?i.replace(/\\/g,"/"):""}function Ce(i=""){let e=S(i);return e?e.split("/").filter(Boolean):[]}function Q(i=""){let e=Ce(i);return e.length?e[e.length-1]:""}function xe(i=""){let e=Q(i),t=e.lastIndexOf(".");return t<=0?"":e.substring(t).toLowerCase()}function Pe(i=""){let e=S(i),t=e.lastIndexOf("/");return t===-1?"":e.substring(0,t)}function Le(...i){return S(i.filter(Boolean).join("/")).replace(/\/+/g,"/")}function Oe(i=""){return S(i).toLowerCase()}function Me(i=""){if(!i)return"";if(typeof i=="string")return i;if(typeof i.fsPath=="string"&&i.fsPath.length>0)return i.fsPath;if(typeof i.path=="string"&&i.path.length>0)return i.path;if(typeof i.toString=="function")try{return i.toString(!0)}catch{return i.toString()}return String(i)}function Ie(i="",e=""){let t=S(i),r=S(e);return t&&r.startsWith(t)?r.substring(t.length).replace(/^\/+/,""):r}ee.exports={ensureDate:_e,isDateLike:J,getCurrentTimestamp:be,normalizePath:S,getFileName:Q,getExtension:xe,getDirectory:Pe,joinPath:Le,getCacheKey:Oe,getUriPath:Me,getRelativePath:Ie}});var I=g((exports,module)=>{var chunk=null;try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){try{chunk=dynamicRequire("../chunks/utils-shared-chunk")}catch{}try{chunk||(chunk=dynamicRequire("./chunks/utils-shared-chunk"))}catch{}try{chunk||(chunk=dynamicRequire("../chunks/date-helpers-chunk"))}catch{}try{chunk||(chunk=dynamicRequire("./chunks/date-helpers-chunk"))}catch{}}}catch{}if(chunk&&(chunk.ensureDate||chunk.isDateLike||chunk.getCurrentTimestamp))module.exports={ensureDate:chunk.ensureDate,isDateLike:chunk.isDateLike,getCurrentTimestamp:chunk.getCurrentTimestamp};else{let i=function(){return typeof Date=="function"&&Date.now?Date.now():16409952e5},e=function(r){return!!(r&&typeof r=="object"&&typeof r.getTime=="function")},t=function(r){if(e(r))return r;if(typeof r=="number")return new Date(r);if(typeof r=="string"){let n=Date.parse(r);return isNaN(n)?new Date:new Date(n)}return new Date};getCurrentTimestamp=i,isDateLike=e,ensureDate=t,module.exports={ensureDate:t,isDateLike:e,getCurrentTimestamp:i}}var getCurrentTimestamp,isDateLike,ensureDate});var se=g((Et,ne)=>{var f=require("vscode"),{isWebEnvironment:te}=j(),{normalizePath:ze}=q(),{ExtensionError:$e,ERROR_CODES:Ne,isPermissionError:Ue}=K(),{getEnvironmentContract:We,normalizeStat:je,FORCE_WORKSPACE_FS_ENV:qe}=Z(),A;try{let i=M();i&&(A=i.ensureDate)}catch{}A||(A=I().ensureDate);var ie=typeof process<"u"&&process.env?process.env:{},re=ie.VSCODE_WEB==="true"||te(),m=null;if(!re)try{m=require("fs").promises}catch{m=null}var C=class{constructor(){this.isWeb=re||te()}r(e){try{return We({uri:this.e(e),isWeb:this.isWeb,remoteName:f.env?.remoteName,forceWorkspaceFs:ie[qe]==="1"}).filesystem==="workspace.fs"}catch{return!1}}i(e){if(!e)return"";if(typeof e=="string")return e;if(e&&typeof e=="object"&&typeof e.fsPath=="string")return e.fsPath;if(e&&typeof e=="object"&&typeof e.path=="string")return e.path;if(typeof e=="object"){if(typeof e.fsPath=="string")return e.fsPath;if(typeof e.path=="string")return e.path}return String(e)}e(e){if(e&&typeof e=="object"&&typeof e.scheme=="string"&&typeof e.path=="string")return e;if(typeof e=="string"){let t=e.trim(),r=/^[a-zA-Z]:[\\/]/.test(t);if(/^[a-zA-Z][a-zA-Z0-9+.-]*:/.test(t)&&!r){let s=f.Uri.parse(t);if(s.scheme&&s.scheme!=="file")return s}return f.Uri.file(e)}if(e&&typeof e=="object"){if(e.uri&&e.uri!==e)try{return this.e(e.uri)}catch{}if(this.isWeb&&typeof e.scheme=="string"&&typeof e.path=="string")return f.Uri.from({scheme:e.scheme,authority:e.authority||"",path:e.path||"",query:e.query||"",fragment:e.fragment||""});if(typeof e.fsPath=="string"&&e.fsPath.length>0)return f.Uri.file(e.fsPath);if(typeof e.path=="string"&&e.path.length>0)return this.isWeb&&typeof e.scheme=="string"&&e.scheme!=="file"?f.Uri.from({scheme:e.scheme,authority:e.authority||"",path:e.path,query:e.query||"",fragment:e.fragment||""}):f.Uri.file(e.path);if(typeof e.href=="string"&&e.href.length>0)return f.Uri.parse(e.href);if(typeof e.scheme=="string")return f.Uri.from({scheme:e.scheme,authority:e.authority||"",path:e.path||e.fsPath||"",query:e.query||"",fragment:e.fragment||""});if(typeof e.toString=="function")try{let t=e.toString(!0);if(t&&t!=="[object Object]")return f.Uri.parse(t)}catch{let t=e.toString();if(t&&t!=="[object Object]")return f.Uri.parse(t)}}throw new Error(`Unsupported target type: ${typeof e}`)}async stat(e){let t=this.r(e);if(!this.isWeb&&m&&!t)return m.stat(this.i(e));let r=this.e(e),n=await f.workspace.fs.stat(r),s=je(n);return{...s,mtime:s.mtimeMs===null?A(n.mtime):new Date(s.mtimeMs),ctime:s.ctimeMs===null?A(n.ctime):new Date(s.ctimeMs),birthtime:s.ctimeMs===null?A(n.ctime):new Date(s.ctimeMs),isFile:()=>n.type===f.FileType.File,isDirectory:()=>n.type===f.FileType.Directory}}async readFile(e,t="utf8"){let r=this.r(e);if(!this.isWeb&&m&&!r)return m.readFile(this.i(e),t);let n=this.e(e),s=await f.workspace.fs.readFile(n);return t===null||t==="binary"?s:new TextDecoder(t).decode(s)}async writeFile(e,t,r="utf8"){let n=this.i(e);try{let s=this.r(e);if(!this.isWeb&&m&&!s)return m.writeFile(n,t,r);let o=this.e(e),l=typeof t=="string"?new TextEncoder().encode(t):t;await f.workspace.fs.writeFile(o,l)}catch(s){this.g("write file",n,s)}}async rename(e,t,r={overwrite:!1}){let n=this.i(e),s=this.i(t);try{let o=this.r(e)||this.r(t);if(!this.isWeb&&m&&!o)return m.rename(n,s);if(typeof f.workspace.fs.rename=="function")await f.workspace.fs.rename(this.e(e),this.e(t),r);else if(this.e(e).scheme==="file"&&this.e(t).scheme==="file")await(m||require("fs").promises).rename(n,s);else throw new Error("The active filesystem provider cannot rename report output.")}catch(o){this.g("rename file",`${n} -> ${s}`,o)}}async mkdir(e,t={recursive:!0}){let r=this.i(e);try{let n=this.r(e);if(!this.isWeb&&m&&!n)return m.mkdir(r,t);let s=this.e(e);await f.workspace.fs.createDirectory(s)}catch(n){this.g("create directory",r,n)}}async readdir(e,t={withFileTypes:!1}){let r=this.r(e);if(!this.isWeb&&m&&!r)return m.readdir(this.i(e),t);let n=this.e(e),s=await f.workspace.fs.readDirectory(n);return t.withFileTypes?s.map(([o,l])=>({name:o,isDirectory:()=>l===f.FileType.Directory,isFile:()=>l===f.FileType.File})):s.map(([o])=>o)}async delete(e,t={recursive:!1}){let r=this.r(e);if(!this.isWeb&&m&&!r){let s=this.i(e);return t.recursive?m.rm?m.rm(s,t):m.rmdir(s,t):m.unlink(s)}let n=this.e(e);await f.workspace.fs.delete(n,t)}async exists(e){try{return await this.stat(e),!0}catch{return!1}}async ensureDirectory(e){let t=ze(this.i(e));await this.mkdir(t,{recursive:!0})}g(e,t,r){throw Ue(r)?new $e(Ne.FILE_PERMISSION_DENIED,`Permission denied while attempting to ${e}`,{path:t,code:r.code}):r}},He=new C;ne.exports={FileSystemAdapter:C,fileSystem:He}});var ce=g((wt,ae)=>{var R=typeof process<"u"&&process.env?process.env:{},Be=12e4,Ke=1e4,Xe=1440*60*1e3,Ge=2,Ve=["Ja","Fe","Mr","Ap","My","Jn","Jl","Au","Se","Oc","No","De"],Ye=Number(R.EXPLORER_DATES_DECORATION_POOL_SIZE||2048),Ze=Number(R.EXPLORER_DATES_FLYWEIGHT_CACHE_SIZE||4096),Je=Number(R.EXPLORER_DATES_WORKSPACE_BALANCED_THRESHOLD||15e3),Qe=Number(R.EXPLORER_DATES_WORKSPACE_LARGE_THRESHOLD||25e4),oe=Number(R.EXPLORER_DATES_WORKSPACE_EXTREME_THRESHOLD||4e5),et=Number(R.EXPLORER_DATES_WORKSPACE_SCAN_MAX_RESULTS||Math.min(oe+1,50001)),tt={ADVANCED_CACHE:"explorerDates.advancedCache",ADVANCED_CACHE_METADATA:"explorerDates.advancedCacheMetadata",TEMPLATE_STORE:"explorerDates.templates",WEB_GIT_NOTICE:"explorerDates.webGitNotice"},it="explorerDatesChunks",rt="__explorerDatesChunks";ae.exports={DEFAULT_CACHE_TIMEOUT:Be,DEFAULT_MAX_CACHE_SIZE:Ke,DEFAULT_PERSISTENT_CACHE_TTL:Xe,DEFAULT_DECORATION_POOL_SIZE:Ye,DEFAULT_FLYWEIGHT_CACHE_SIZE:Ze,MAX_BADGE_LENGTH:Ge,MONTH_ABBREVIATIONS:Ve,WORKSPACE_SCALE_BALANCED_THRESHOLD:Je,WORKSPACE_SCALE_LARGE_THRESHOLD:Qe,WORKSPACE_SCALE_EXTREME_THRESHOLD:oe,WORKSPACE_SCAN_MAX_RESULTS:et,GLOBAL_STATE_KEYS:tt,WEB_CHUNK_GLOBAL_KEY:it,LEGACY_WEB_CHUNK_GLOBAL_KEY:rt}});var he=g((vt,ue)=>{var{MAX_BADGE_LENGTH:le}=ce();function nt(i=0,e="auto"){let t=typeof i=="number"&&!Number.isNaN(i)?i:0;if(e==="bytes")return`~${t}B`;let r=t/1024;if(e==="kb")return`~${r.toFixed(1)}K`;let n=r/1024;return e==="mb"?`~${n.toFixed(1)}M`:t<1024?`~${t}B`:r<1024?`~${Math.round(r)}K`:`~${n.toFixed(1)}M`}function st(i){if(i)return i.length>le?i.substring(0,le):i}ue.exports={formatFileSize:nt,trimBadge:st}});var Ee=g((Dt,ye)=>{var fe=[".git","node_modules","dist","build","out",".vite",".vscode-test","test-results","playwright-report","coverage"],de=["24h","7d","30d","90d","all"];function y(i=""){return String(i||"").replace(/\\/g,"/").replace(/\/+/g,"/").replace(/^\.\//,"")}function me(i){return i==="full"||i==="all"?"all":de.includes(i)?i:"all"}function pe(i,e=Date.now()){let t=me(i);if(t==="all")return null;let r=t==="24h"?24:Number.parseInt(t,10)*24;return e-r*60*60*1e3}function w(i){if(i instanceof Date)return Number.isFinite(i.getTime())?i:null;if(typeof i=="number"&&Number.isFinite(i)){let e=new Date(i<1e12?i*1e3:i);return Number.isFinite(e.getTime())?e:null}if(typeof i=="string"&&i.trim()){let e=new Date(i);return Number.isFinite(e.getTime())?e:null}return null}function ot(i={}){let e=Number.isFinite(Number(i.size))&&Number(i.size)>=0?Number(i.size):null,t=w(i.mtime??i.mtimeMs),r=w(i.birthtime??i.ctime??i.ctimeMs);return{size:e,modified:t,created:r}}function at(i){let t=y(i).replace(/^\*\*\//,"").replace(/\/\*\*$/,"").replace(/[.+^${}()|[\]\\]/g,"\\$&").replace(/\*\*/g,".*").replace(/\*/g,"[^/]*").replace(/\?/g,"[^/]");try{return new RegExp(`(^|/)${t}($|/)`,"i")}catch{return null}}function ct(i={}){let e=new Set([...fe,...i.excludedSegments||[]].map(r=>y(r).replace(/^\/+|\/+$/g,"").toLowerCase()).filter(Boolean)),t=(i.excludedPatterns||[]).map(at).filter(Boolean);return{excludedSegments:[...e],isExcluded(r=""){let n=y(r);return n.split("/").filter(Boolean).some(o=>e.has(o.toLowerCase()))?!0:t.some(o=>o.test(n))},shouldDescend(r=""){return!this.isExcluded(r,!0)}}}function lt(i){let e=w(i?.timestamp);return e?`${e.toISOString()}|${i.action||"modified"}|${i.source||"unknown"}`:null}function ut(i,e,t){let r=w(i),n=pe(e,t);return!!(r&&(n===null||r.getTime()>=n))}function ge(i){return[...i].sort((e,t)=>{let r=w(e.lastActivity||e.modified)?.getTime()||0;return(w(t.lastActivity||t.modified)?.getTime()||0)-r||y(e.path).localeCompare(y(t.path))})}function ht(i){let e={filesystem:0,user:0,watcher:0,git:0,unavailable:0},t={},r={};for(let a of i){t[a.type||"unknown"]=(t[a.type||"unknown"]||0)+1;for(let c of a.evidence||[]){e[c.source]=(e[c.source]||0)+1;let u=w(c.timestamp);u&&(r[u.toISOString().slice(0,10)]=(r[u.toISOString().slice(0,10)]||0)+1)}a.activityUnavailable&&e.unavailable++}let n=ge(i),s=[...i].filter(a=>Number.isFinite(a.activityCount)&&a.activityCount>0).sort((a,c)=>c.activityCount-a.activityCount||y(a.path).localeCompare(y(c.path))),o=[...i].sort((a,c)=>(c.size||0)-(a.size||0)||y(a.path).localeCompare(y(c.path))),l=[...i].filter(a=>w(a.modified)).sort((a,c)=>w(a.modified).getTime()-w(c.modified).getTime()||y(a.path).localeCompare(y(c.path)));return{totalFiles:i.length,totalSize:i.reduce((a,c)=>a+(c.size||0),0),fileTypes:t,activityByDay:r,mostActiveFiles:s.slice(0,10).map(a=>({path:a.path,activityCount:a.activityCount,lastActivity:a.lastActivity})),recentlyModified:n.slice(0,20).map(a=>({path:a.path,modified:a.modified,size:a.size})),largestFiles:o.slice(0,10).map(a=>({path:a.path,size:a.size,modified:a.modified})),oldestFiles:l.slice(0,10).map(a=>({path:a.path,modified:a.modified,size:a.size})),activitySourceBreakdown:e}}ye.exports={REPORT_SCHEMA_VERSION:2,DEFAULT_EXCLUDED_SEGMENTS:fe,REPORT_TIME_RANGES:de,normalizePath:y,normalizeTimeRange:me,rangeStart:pe,validDate:w,normalizeStat:ot,createInclusionPolicy:ct,activityKey:lt,inRange:ut,sortFiles:ge,createSummary:ht}});var we=g((exports,module)=>{var vscode=require("vscode"),{getLogger}=N(),{fileSystem}=se(),getExtension=filePath=>{try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let i=dynamicRequire("./chunks/path-utils-chunk");if(i&&typeof i.getExtension=="function")return getExtension=i.getExtension,getExtension(filePath)}}catch{}try{let i=String(filePath||""),e=i.lastIndexOf(".");return e<=0?"":i.substring(e).toLowerCase()}catch{return""}},normalizePath=input=>{try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let i=dynamicRequire("./chunks/path-utils-chunk");if(i&&typeof i.normalizePath=="function")return normalizePath=i.normalizePath,normalizePath(input)}}catch{}return String(input||"").replace(/\\/g,"/")},ensureDate;try{let i=M();i&&(ensureDate=i.ensureDate)}catch{}ensureDate||(ensureDate=I().ensureDate);var{getLocalization}=require("./utils/localization"),{formatFileSize}=he(),{REPORT_SCHEMA_VERSION,DEFAULT_EXCLUDED_SEGMENTS,normalizePath:normalizeReportPath,normalizeTimeRange,rangeStart,normalizeStat,createInclusionPolicy,inRange,sortFiles,createSummary,validDate}=Ee(),l10n=getLocalization(),logger=getLogger(),env=typeof process<"u"&&process.env?process.env:{},isWeb=env.VSCODE_WEB==="true",DEFAULT_EXCLUDED_FOLDERS=DEFAULT_EXCLUDED_SEGMENTS,DEFAULT_EXCLUDED_PATTERNS=["**/*.tmp","**/*.log"],DEFAULT_MAX_TRACKED_FILES=3e3,MAX_TRACK_HISTORY_PER_FILE=100,MAX_TRACKED_FILES_LIMIT=2e4,ExportReportingManager=class{constructor(){this.fileActivityCache=new Map,this.t=new Map,this.allowedFormats=["json","html"],this.activityTrackingDays=30,this.activityCutoffMs=null,this.timeTrackingIntegration="none",this.maxTrackedActivityFiles=DEFAULT_MAX_TRACKED_FILES,this.excludedFolders=[...DEFAULT_EXCLUDED_FOLDERS],this.excludedPatterns=[...DEFAULT_EXCLUDED_PATTERNS],this.S=[],this.o=null,this.c=null,this.m=[],this.l=[],this.s=new Map,this.x=Number(env.EXPLORER_DATES_USER_ACTIVITY_TTL_MS||300*1e3),this.p={user:0,watcher:0},this.P=env.EXPLORER_DATES_LIGHTWEIGHT_MODE==="1",this.u=!1,this.n=null,this.y=createInclusionPolicy(),this.F(),this.L(),this.initialize()}F(){try{let e=vscode.workspace.getConfiguration("explorerDates"),t=e.get("reportFormats",["json","html"]),r=new Set(["json","csv","html","markdown"]);this.allowedFormats=Array.from(new Set((Array.isArray(t)?t:[]).map(l=>String(l).toLowerCase()).filter(l=>r.has(l)))),this.allowedFormats.length===0&&(this.allowedFormats=["json"]);let n=e.get("activityTrackingDays",30);this.activityTrackingDays=Math.max(1,Math.min(365,n)),this.activityCutoffMs=this.activityTrackingDays*24*60*60*1e3,this.timeTrackingIntegration=e.get("timeTrackingIntegration","none"),this.maxTrackedActivityFiles=this.O(e.get("maxTrackedActivityFiles",DEFAULT_MAX_TRACKED_FILES)),this.excludedFolders=e.get("excludedFolders",DEFAULT_EXCLUDED_FOLDERS)||DEFAULT_EXCLUDED_FOLDERS,this.excludedPatterns=e.get("excludedPatterns",DEFAULT_EXCLUDED_PATTERNS)||DEFAULT_EXCLUDED_PATTERNS,this.S=this.excludedPatterns.map(l=>this.k(l)).filter(Boolean);let s=vscode.workspace.getConfiguration("files").get("exclude",{})||{},o=Object.keys(s).filter(l=>s[l]!==!1);this.y=createInclusionPolicy({excludedSegments:this.excludedFolders,excludedPatterns:[...this.excludedPatterns,...o]})}catch(e){logger.error("Failed to load reporting configuration",e)}}L(){this.o&&this.o.dispose(),this.o=vscode.workspace.onDidChangeConfiguration(e=>{(e.affectsConfiguration("explorerDates.reportFormats")||e.affectsConfiguration("explorerDates.activityTrackingDays")||e.affectsConfiguration("explorerDates.timeTrackingIntegration")||e.affectsConfiguration("explorerDates.maxTrackedActivityFiles")||e.affectsConfiguration("explorerDates.excludedFolders")||e.affectsConfiguration("explorerDates.excludedPatterns")||e.affectsConfiguration("explorerDates.performanceMode"))&&(this.F(),this.T(),logger.info("Reporting configuration updated",{allowedFormats:this.allowedFormats,activityTrackingDays:this.activityTrackingDays,timeTrackingIntegration:this.timeTrackingIntegration,maxTrackedActivityFiles:this.maxTrackedActivityFiles}))})}async initialize(){try{if(this.A()){this.u=!0,this.E(),this.w(),logger.info("Export & Reporting Manager initialized (activity tracking suppressed by performance/lightweight mode)");return}this.u=!1,this.v(),this.T(),logger.info("Export & Reporting Manager initialized")}catch(e){logger.error("Failed to initialize Export & Reporting Manager:",e)}}startFileWatcher(){if(this.c||this.maxTrackedActivityFiles===0||isWeb){this.maxTrackedActivityFiles===0&&logger.info("File activity tracking disabled (maxTrackedActivityFiles=0)"),isWeb&&logger.info("Skipping file activity watcher in web environment");return}let e=vscode.workspace.createFileSystemWatcher("**/*");this.c=e,this.m=[e.onDidChange(t=>this.recordFileActivity(t,"modified",{source:"watcher"})),e.onDidCreate(t=>this.recordFileActivity(t,"created",{source:"watcher"})),e.onDidDelete(t=>this.recordFileActivity(t,"deleted",{source:"watcher"}))]}w(){if(this.m.length){for(let e of this.m)try{e.dispose()}catch{}this.m=[]}if(this.c){try{this.c.dispose()}catch{}this.c=null}}T(){let e=this.A();if(e||this.maxTrackedActivityFiles<=0||isWeb){this.u=e||this.maxTrackedActivityFiles<=0||isWeb,this.w(),this.E(),this.fileActivityCache.clear(),this.t.clear();return}this.u&&(this.u=!1,this.v()),this.v(),this.startFileWatcher(),this.R()}recordFileActivity(e,t,r={}){try{let n=r.source||"system";if(this.maxTrackedActivityFiles===0)return;let s=e?.fsPath||e?.path;if(!s)return;let o=this.a(s);if(!o||!this.M(o))return;let l=this.fileActivityCache.get(o);l?l.path=s:(l={path:s,activities:[]},this.fileActivityCache.set(o,l));let a=new Date;l.activities.push({action:t,timestamp:a,path:s,source:n}),n==="user"&&this.b(o,a.getTime()),this.p[n]===void 0&&(this.p[n]=0),this.p[n]++,this.I(o,l),this.z(o,a.getTime())}catch(n){logger.error("Failed to record file activity:",n)}}I(e,t){let r=t?.activities;if(!(!r||r.length===0)){if(this.activityCutoffMs){let n=Date.now()-this.activityCutoffMs;for(;r.length&&r[0].timestamp.getTime()MAX_TRACK_HISTORY_PER_FILE&&r.splice(0,r.length-MAX_TRACK_HISTORY_PER_FILE),r.length===0&&(this.fileActivityCache.delete(e),this.t.delete(e))}}async generateFileModificationReport(e={}){if(this.n)return vscode.window.showInformationMessage("Explorer Dates is already generating a report. Please wait for it to finish."),null;let t=this._(e);this.n=t;try{return await t}finally{this.n===t&&(this.n=null)}}async _(e={}){try{let{format:t="json",timeRange:r="all",includeDeleted:n=!1,outputPath:s=null,progress:o=null,cancellationToken:l=null}=e,a=normalizeTimeRange(r);if(!this.allowedFormats.includes(t)){let h=l10n.getString("reportFormatDisabled",t,this.allowedFormats.join(", "));return vscode.window.showWarningMessage(h),logger.warn(h),null}let c=await this.collectFileData(a,n,{progress:o,cancellationToken:l}),u=await this.formatReport(c,t);if(s){await this.saveReport(u,s,{cancellationToken:l});let h=s instanceof vscode.Uri?s.fsPath||s.path:s,d=await vscode.window.showInformationMessage(`Report saved to ${h}`,"Open Report","Reveal in File Explorer");d==="Open Report"&&await vscode.commands.executeCommand("vscode.open",s instanceof vscode.Uri?s:vscode.Uri.file(s)),d==="Reveal in File Explorer"&&await vscode.commands.executeCommand("revealFileInOS",s instanceof vscode.Uri?s:vscode.Uri.file(s))}return u}catch(t){return logger.error("Failed to generate file modification report:",t),t?.code==="REPORT_CANCELLED"||vscode.window.showErrorMessage(`Failed to generate report${e.outputPath?` for ${e.outputPath}`:""}: ${t?.message||"unknown error"}`),null}}async collectFileData(e,t,r={}){let n=[],s=vscode.workspace.workspaceFolders;if(!s)return{schemaVersion:REPORT_SCHEMA_VERSION,files:[],summary:createSummary([]),timeRange:normalizeTimeRange(e)};this.D(r.progress,"Preparing workspace roots",0);let o=await this.collectGitEvidence(s,e,r);for(let a of s){let c=await this.scanWorkspaceFolder(a.uri,e,t,{...r,gitEvidence:o,workspaceName:a.name});n.push(...c)}let l=createSummary(n);return l.integrationTarget=this.timeTrackingIntegration,l.activityTrackingDays=this.activityTrackingDays,{schemaVersion:REPORT_SCHEMA_VERSION,generatedAt:new Date().toISOString(),workspace:s.map(a=>a.uri.fsPath),workspaceName:s.map(a=>a.name).join(", "),timeRange:normalizeTimeRange(e),files:sortFiles(n),summary:l}}async scanWorkspaceFolder(e,t,r,n={}){let s=[];try{this.h(n.cancellationToken),this.D(n.progress,"Scanning files");let o=await vscode.workspace.fs.readDirectory(e);for(let[l,a]of o){let c=vscode.Uri.joinPath(e,l),u=vscode.workspace.asRelativePath(c);if(!this.y.isExcluded(u)){if(a===vscode.FileType.File){let h=await this.getFileData(c,t,n);h&&s.push(h)}else if(a===vscode.FileType.Directory){let h=await this.scanWorkspaceFolder(c,t,r,n);s.push(...h)}}}if(r&&e.fsPath){let l=this.getDeletedFiles(e.fsPath,t);s.push(...l)}}catch(o){logger.error(`Failed to scan folder ${e.fsPath||e.path}:`,o)}return s}async getFileData(e,t,r={}){try{this.h(r.cancellationToken);let n=await vscode.workspace.fs.stat(e),s=vscode.workspace.asRelativePath(e),o=e.fsPath||e.path,l=this.a(o),a=this.fileActivityCache.get(l),c=Date.now(),u=normalizeStat(n),h=(a?.activities||[]).filter(p=>inRange(p.timestamp,t,c)),d=[],F=new Set,E=p=>{let v=validDate(p.timestamp);if(!v)return;let z=`${v.toISOString()}|${p.action||"modified"}`;F.has(z)||(F.add(z),d.push({...p,timestamp:v}))};for(let p of h)E(p);inRange(u.modified,t,c)&&E({action:"modified",source:"filesystem",timestamp:u.modified});for(let p of r.gitEvidence?.get(l)||[])inRange(p.timestamp,t,c)&&E(p);if(normalizeTimeRange(t)!=="all"&&d.length===0)return null;d.sort((p,v)=>p.timestamp-v.timestamp);let D=d.length?d[d.length-1].timestamp:u.modified;return{path:s,fullPath:a?.path||o,size:u.size,created:u.created,modified:u.modified,type:this.getFileType(s),extension:getExtension(s),activities:d,evidence:d,activityCount:d.length>0||u.modified?d.length:null,activityUnavailable:d.length===0&&!u.modified,lastActivity:D}}catch(n){return logger.error(`Failed to get file data for ${e.fsPath||e.path}:`,n),null}}h(e){if(e?.isCancellationRequested){let t=new Error("Report generation was cancelled.");throw t.code="REPORT_CANCELLED",t}}D(e,t,r){typeof e=="function"&&e(t,r)}async collectGitEvidence(e,t,r={}){let n=new Map;if(isWeb)return n;let s;try{s=require("child_process").execFile}catch{return n}let o=new Set;for(let l of e){this.h(r.cancellationToken);let a=l.uri.fsPath;if(!a)continue;let c=await new Promise(E=>s("git",["-C",a,"rev-parse","--show-toplevel"],{timeout:3e3},(D,p)=>E(D?null:p.trim())));if(!c||o.has(c))continue;o.add(c),this.D(r.progress,"Collecting Git activity");let u=rangeStart(t),h=["-C",c,"log","--all","--name-only","--format=%ct"];u!==null&&h.push(`--since=${new Date(u).toISOString()}`);let d=await new Promise(E=>s("git",h,{timeout:1e4,maxBuffer:8*1024*1024},(D,p)=>E(D?"":p))),F=null;for(let E of String(d).split(/\r?\n/)){if(/^\d+$/.test(E.trim())){F=new Date(Number(E.trim())*1e3);continue}let D=normalizeReportPath(E.trim());if(!D||!F)continue;let p=normalizeReportPath(require("path").join(c,D)),v=this.a(p);n.has(v)||n.set(v,[]),n.get(v).push({action:"modified",source:"git",timestamp:F})}}return n}filterActivitiesByTimeRange(e,t){let r=e;if(t!=="all"){let n=new Date,s;switch(t){case"24h":s=new Date(n-1440*60*1e3);break;case"7d":s=new Date(n-10080*60*1e3);break;case"30d":s=new Date(n-720*60*60*1e3);break;case"90d":s=new Date(n-2160*60*60*1e3);break;default:s=null}s&&(r=r.filter(o=>o.timestamp>=s))}if(this.activityCutoffMs){let n=new Date(Date.now()-this.activityCutoffMs);r=r.filter(s=>s.timestamp>=n)}return r}getDeletedFiles(e,t){if(!e)return[];let r=[],n=e?this.a(e):"";for(let[s,o]of this.fileActivityCache.entries()){if(!o?.activities||o.activities.length===0||n&&!s.startsWith(n))continue;let l=o.activities.filter(c=>c.action==="deleted"),a=this.filterActivitiesByTimeRange(l,t);a.length>0&&r.push({path:vscode.workspace.asRelativePath(o.path||s),fullPath:o.path||s,size:0,created:null,modified:null,type:"deleted",extension:getExtension(o.path||s),activities:a,activityCount:a.length,lastActivity:a[a.length-1].timestamp})}return r}createSummary(e){return createSummary(e)}async formatReport(e,t){switch(t.toLowerCase()){case"json":return JSON.stringify(e,null,2);case"csv":return this.formatAsCSV(e);case"html":return this.formatAsHTML(e);case"markdown":return this.formatAsMarkdown(e);default:throw new Error(`Unsupported format: ${t}`)}}formatAsCSV(e){let t=n=>{let s=n==null?"":String(n);return/^[=+\-@]/.test(s)&&(s=`'${s}`),/[",\r\n]/.test(s)?`"${s.replace(/"/g,'""')}"`:s},r=["Path,Size,Created,Modified,Type,Extension,ActivityCount,ActivitySources,LastActivity"];for(let n of e.files)r.push([n.path,n.size,validDate(n.created)?.toISOString(),validDate(n.modified)?.toISOString(),n.type,n.extension,n.activityCount??"Unknown",(n.evidence||[]).map(s=>s.source).join("|")||(n.activityUnavailable?"unavailable":""),validDate(n.lastActivity)?.toISOString()].map(t).join(","));return r.join(` +var g=(i,e)=>()=>(e||i((e={exports:{}}).exports,e),e.exports);var j=g((Ft,W)=>{var T="__explorerDatesLogger",A=class{constructor(){this.d=null}f(e,t){if(this.d&&typeof this.d[e]=="function")try{return this.d[e](...t)}catch{}switch(e){case"debug":break;case"info":break;case"warn":break;case"error":break;default:break}}debug(...e){return this.f("debug",e)}info(...e){return this.f("info",e)}warn(...e){return this.f("warn",e)}error(...e){return this.f("error",e)}U(e){this.d=e}};function ke(){return typeof global<"u"?(global[T]||(global[T]=new A),global[T]):typeof globalThis<"u"?(globalThis[T]||(globalThis[T]=new A),globalThis[T]):(L||(L=new A),L)}var O=class extends A{},L=null;W.exports={Logger:O,getLogger:ke}});var B=g((Tt,H)=>{var q=require("vscode");function Ce(){try{let i=q?.env?.uiKind,e=q?.UIKind?.Web;return i!==void 0&&e!==void 0&&i===e}catch{return!1}}H.exports={isWebEnvironment:Ce}});var K=g((exports,module)=>{var chunk=null;try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){try{chunk=dynamicRequire("../chunks/utils-shared-chunk")}catch{}try{chunk||(chunk=dynamicRequire("./chunks/utils-shared-chunk"))}catch{}try{chunk||(chunk=dynamicRequire("../chunks/path-utils-chunk"))}catch{}try{chunk||(chunk=dynamicRequire("./chunks/path-utils-chunk"))}catch{}}}catch{}if(chunk&&chunk.normalizePath)module.exports={normalizePath:chunk.normalizePath,getFileName:chunk.getFileName,getExtension:chunk.getExtension,getDirectory:chunk.getDirectory,joinPath:chunk.joinPath,getCacheKey:chunk.getCacheKey,getUriPath:chunk.getUriPath,getRelativePath:chunk.getRelativePath};else{let i=function(c=""){return c?c.replace(/\\/g,"/"):""},e=function(c=""){let u=i(c);return u?u.split("/").filter(Boolean):[]},t=function(c=""){let u=e(c);return u.length?u[u.length-1]:""},r=function(c=""){let u=t(c),h=u.lastIndexOf(".");return h<=0?"":u.substring(h).toLowerCase()},n=function(c=""){let u=i(c),h=u.lastIndexOf("/");return h===-1?"":u.substring(0,h)},s=function(...c){return i(c.filter(Boolean).join("/")).replace(/\/+/g,"/")},o=function(c=""){return i(c).toLowerCase()},l=function(c=""){if(!c)return"";if(typeof c=="string")return c;if(typeof c.fsPath=="string"&&c.fsPath.length>0)return c.fsPath;if(typeof c.path=="string"&&c.path.length>0)return c.path;if(typeof c.toString=="function")try{return c.toString(!0)}catch{return c.toString()}return String(c)},a=function(c="",u=""){let h=i(c),f=i(u);return h&&f.startsWith(h)?f.substring(h.length).replace(/^\/+/,""):f};normalizePath=i,getSegments=e,getFileName=t,getExtension=r,getDirectory=n,joinPath=s,getCacheKey=o,getUriPath=l,getRelativePath=a,module.exports={normalizePath:i,getFileName:t,getExtension:r,getDirectory:n,joinPath:s,getCacheKey:o,getUriPath:l,getRelativePath:a}}var normalizePath,getSegments,getFileName,getExtension,getDirectory,joinPath,getCacheKey,getUriPath,getRelativePath});var V=g((At,G)=>{var R=class extends Error{constructor(e,t,r={}){super(t),this.code=e,this.context=r,this.name="ExtensionError"}},X={FILE_PERMISSION_DENIED:"FILE_PERMISSION_DENIED",WORKSPACE_TOO_LARGE:"WORKSPACE_TOO_LARGE",CHUNK_LOAD_FAILED:"CHUNK_LOAD_FAILED"};function _e(i){if(!i)return!1;let e=i.code||i?.name;return["EACCES","EPERM","EROFS","NoPermissions"].includes(e)}var M=class extends R{constructor(e,t,r={}){let{recoverable:n=!0,context:s={}}=r;super(X.CHUNK_LOAD_FAILED,`Failed to load ${e}: ${t}`,{chunkName:e,recoverable:n,...s}),this.name="ChunkLoadError",this.chunkName=e,this.recoverable=n}};function Re(i,e,t={}){let r=require("vscode"),{userFacing:n=!0}=t,s=e?.recoverable??!0;n&&!s&&r.window.showErrorMessage(`Explorer Dates: ${i} feature unavailable. Please reinstall or rebuild the extension.`)}G.exports={ExtensionError:R,ERROR_CODES:X,isPermissionError:_e,ChunkLoadError:M,handleChunkFailure:Re}});var ee=g((kt,Q)=>{var Y="EXPLORER_DATES_FORCE_VSCODE_FS";function Z(i,e=process.env){return String(e?.[i]||"")==="1"}function b(i){let e=i&&typeof i=="object"?i:null,t=String(e?.scheme||(typeof i=="string"&&/^[a-z][a-z0-9+.-]*:/i.test(i)?i.split(":",1)[0]:"file")).toLowerCase(),r=String(e?.authority||""),n=e?.path||e?.fsPath||(typeof i=="string"?i.replace(/^[a-z][a-z0-9+.-]*:\/\//i,""):"");return{scheme:t,authority:r,path:String(n||"")}}function be({uri:i,isWeb:e=!1,remoteName:t="",forceWorkspaceFs:r=Z(Y)}={}){let n=b(i),s=n.scheme!=="file",o=!!e,l=!!t,a=!!(r||o||l||s);return{scheme:n.scheme,authority:n.authority,isFileScheme:!s,isVirtual:s,isBrowser:o,isRemote:l,forceWorkspaceFs:!!r,filesystem:a?"workspace.fs":"node.fs",provider:s?n.scheme==="github"||n.scheme==="vscode-vfs"?"github":"virtual":"filesystem"}}function J({uri:i,platform:e=process.platform,caseSensitive:t}={}){return typeof t=="boolean"?t:b(i).scheme!=="file"?!0:e!=="win32"}function xe(i,e={}){let t=b(i),r=t.path.replace(/\\/g,"/").replace(/\/+/g,"/"),n=`${t.scheme}://${t.authority}${r}`;return J({uri:i,...e})?n:n.toLowerCase()}function I(i){if(i instanceof Date){let e=i.getTime();return Number.isFinite(e)?e:null}if(typeof i=="number")return Number.isFinite(i)?i:null;if(typeof i=="string"&&i.trim()){let e=Date.parse(i);return Number.isFinite(e)?e:null}return null}function Pe(i){if(!i||typeof i!="object")return null;let e=I(i.mtime),t=I(i.ctime);return{...i,mtimeMs:e,ctimeMs:t}}Q.exports={FORCE_WORKSPACE_FS_ENV:Y,envFlag:Z,getUriParts:b,getEnvironmentContract:be,isCaseSensitive:J,resourceIdentity:xe,normalizeTimestamp:I,normalizeStat:Pe}});var N=g((Ct,re)=>{function Le(){return typeof Date=="function"&&Date.now?Date.now():16409952e5}function te(i){return!!(i&&typeof i=="object"&&typeof i.getTime=="function")}function Oe(i){if(te(i))return i;if(typeof i=="number")return new Date(i);if(typeof i=="string"){let e=Date.parse(i);return isNaN(e)?new Date:new Date(e)}return new Date}function S(i=""){return i?i.replace(/\\/g,"/"):""}function Me(i=""){let e=S(i);return e?e.split("/").filter(Boolean):[]}function ie(i=""){let e=Me(i);return e.length?e[e.length-1]:""}function Ie(i=""){let e=ie(i),t=e.lastIndexOf(".");return t<=0?"":e.substring(t).toLowerCase()}function Ne(i=""){let e=S(i),t=e.lastIndexOf("/");return t===-1?"":e.substring(0,t)}function ze(...i){return S(i.filter(Boolean).join("/")).replace(/\/+/g,"/")}function $e(i=""){return S(i).toLowerCase()}function Ue(i=""){if(!i)return"";if(typeof i=="string")return i;if(typeof i.fsPath=="string"&&i.fsPath.length>0)return i.fsPath;if(typeof i.path=="string"&&i.path.length>0)return i.path;if(typeof i.toString=="function")try{return i.toString(!0)}catch{return i.toString()}return String(i)}function We(i="",e=""){let t=S(i),r=S(e);return t&&r.startsWith(t)?r.substring(t.length).replace(/^\/+/,""):r}re.exports={ensureDate:Oe,isDateLike:te,getCurrentTimestamp:Le,normalizePath:S,getFileName:ie,getExtension:Ie,getDirectory:Ne,joinPath:ze,getCacheKey:$e,getUriPath:Ue,getRelativePath:We}});var z=g((exports,module)=>{var chunk=null;try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){try{chunk=dynamicRequire("../chunks/utils-shared-chunk")}catch{}try{chunk||(chunk=dynamicRequire("./chunks/utils-shared-chunk"))}catch{}try{chunk||(chunk=dynamicRequire("../chunks/date-helpers-chunk"))}catch{}try{chunk||(chunk=dynamicRequire("./chunks/date-helpers-chunk"))}catch{}}}catch{}if(chunk&&(chunk.ensureDate||chunk.isDateLike||chunk.getCurrentTimestamp))module.exports={ensureDate:chunk.ensureDate,isDateLike:chunk.isDateLike,getCurrentTimestamp:chunk.getCurrentTimestamp};else{let i=function(){return typeof Date=="function"&&Date.now?Date.now():16409952e5},e=function(r){return!!(r&&typeof r=="object"&&typeof r.getTime=="function")},t=function(r){if(e(r))return r;if(typeof r=="number")return new Date(r);if(typeof r=="string"){let n=Date.parse(r);return isNaN(n)?new Date:new Date(n)}return new Date};getCurrentTimestamp=i,isDateLike=e,ensureDate=t,module.exports={ensureDate:t,isDateLike:e,getCurrentTimestamp:i}}var getCurrentTimestamp,isDateLike,ensureDate});var ce=g((_t,ae)=>{var d=require("vscode"),{isWebEnvironment:ne}=B(),{normalizePath:je}=K(),{ExtensionError:qe,ERROR_CODES:He,isPermissionError:Be}=V(),{getEnvironmentContract:Ke,normalizeStat:Xe,FORCE_WORKSPACE_FS_ENV:Ge}=ee(),k;try{let i=N();i&&(k=i.ensureDate)}catch{}k||(k=z().ensureDate);var se=typeof process<"u"&&process.env?process.env:{},oe=se.VSCODE_WEB==="true"||ne(),m=null;if(!oe)try{m=require("fs").promises}catch{m=null}var x=class{constructor(){this.isWeb=oe||ne()}r(e){try{return Ke({uri:this.e(e),isWeb:this.isWeb,remoteName:d.env?.remoteName,forceWorkspaceFs:se[Ge]==="1"}).filesystem==="workspace.fs"}catch{return!1}}i(e){if(!e)return"";if(typeof e=="string")return e;if(e&&typeof e=="object"&&typeof e.fsPath=="string")return e.fsPath;if(e&&typeof e=="object"&&typeof e.path=="string")return e.path;if(typeof e=="object"){if(typeof e.fsPath=="string")return e.fsPath;if(typeof e.path=="string")return e.path}return String(e)}e(e){if(e&&typeof e=="object"&&typeof e.scheme=="string"&&typeof e.path=="string")return e;if(typeof e=="string"){let t=e.trim(),r=/^[a-zA-Z]:[\\/]/.test(t);if(/^[a-zA-Z][a-zA-Z0-9+.-]*:/.test(t)&&!r){let s=d.Uri.parse(t);if(s.scheme&&s.scheme!=="file")return s}return d.Uri.file(e)}if(e&&typeof e=="object"){if(e.uri&&e.uri!==e)try{return this.e(e.uri)}catch{}if(this.isWeb&&typeof e.scheme=="string"&&typeof e.path=="string")return d.Uri.from({scheme:e.scheme,authority:e.authority||"",path:e.path||"",query:e.query||"",fragment:e.fragment||""});if(typeof e.fsPath=="string"&&e.fsPath.length>0)return d.Uri.file(e.fsPath);if(typeof e.path=="string"&&e.path.length>0)return this.isWeb&&typeof e.scheme=="string"&&e.scheme!=="file"?d.Uri.from({scheme:e.scheme,authority:e.authority||"",path:e.path,query:e.query||"",fragment:e.fragment||""}):d.Uri.file(e.path);if(typeof e.href=="string"&&e.href.length>0)return d.Uri.parse(e.href);if(typeof e.scheme=="string")return d.Uri.from({scheme:e.scheme,authority:e.authority||"",path:e.path||e.fsPath||"",query:e.query||"",fragment:e.fragment||""});if(typeof e.toString=="function")try{let t=e.toString(!0);if(t&&t!=="[object Object]")return d.Uri.parse(t)}catch{let t=e.toString();if(t&&t!=="[object Object]")return d.Uri.parse(t)}}throw new Error(`Unsupported target type: ${typeof e}`)}async stat(e){let t=this.r(e);if(!this.isWeb&&m&&!t)return m.stat(this.i(e));let r=this.e(e),n=await d.workspace.fs.stat(r),s=Xe(n);return{...s,mtime:s.mtimeMs===null?k(n.mtime):new Date(s.mtimeMs),ctime:s.ctimeMs===null?k(n.ctime):new Date(s.ctimeMs),birthtime:s.ctimeMs===null?k(n.ctime):new Date(s.ctimeMs),isFile:()=>n.type===d.FileType.File,isDirectory:()=>n.type===d.FileType.Directory}}async readFile(e,t="utf8"){let r=this.r(e);if(!this.isWeb&&m&&!r)return m.readFile(this.i(e),t);let n=this.e(e),s=await d.workspace.fs.readFile(n);return t===null||t==="binary"?s:new TextDecoder(t).decode(s)}async writeFile(e,t,r="utf8"){let n=this.i(e);try{let s=this.r(e);if(!this.isWeb&&m&&!s)return m.writeFile(n,t,r);let o=this.e(e),l=typeof t=="string"?new TextEncoder().encode(t):t;await d.workspace.fs.writeFile(o,l)}catch(s){this.g("write file",n,s)}}async rename(e,t,r={overwrite:!1}){let n=this.i(e),s=this.i(t);try{let o=this.r(e)||this.r(t);if(!this.isWeb&&m&&!o)return m.rename(n,s);if(typeof d.workspace.fs.rename=="function")await d.workspace.fs.rename(this.e(e),this.e(t),r);else if(this.e(e).scheme==="file"&&this.e(t).scheme==="file")await(m||require("fs").promises).rename(n,s);else throw new Error("The active filesystem provider cannot rename report output.")}catch(o){this.g("rename file",`${n} -> ${s}`,o)}}async mkdir(e,t={recursive:!0}){let r=this.i(e);try{let n=this.r(e);if(!this.isWeb&&m&&!n)return m.mkdir(r,t);let s=this.e(e);await d.workspace.fs.createDirectory(s)}catch(n){this.g("create directory",r,n)}}async readdir(e,t={withFileTypes:!1}){let r=this.r(e);if(!this.isWeb&&m&&!r)return m.readdir(this.i(e),t);let n=this.e(e),s=await d.workspace.fs.readDirectory(n);return t.withFileTypes?s.map(([o,l])=>({name:o,isDirectory:()=>l===d.FileType.Directory,isFile:()=>l===d.FileType.File})):s.map(([o])=>o)}async delete(e,t={recursive:!1}){let r=this.r(e);if(!this.isWeb&&m&&!r){let s=this.i(e);return t.recursive?m.rm?m.rm(s,t):m.rmdir(s,t):m.unlink(s)}let n=this.e(e);await d.workspace.fs.delete(n,t)}async exists(e){try{return await this.stat(e),!0}catch{return!1}}async ensureDirectory(e){let t=je(this.i(e));await this.mkdir(t,{recursive:!0})}g(e,t,r){throw Be(r)?new qe(He.FILE_PERMISSION_DENIED,`Permission denied while attempting to ${e}`,{path:t,code:r.code}):r}},Ve=new x;ae.exports={FileSystemAdapter:x,fileSystem:Ve}});var he=g((Rt,ue)=>{var C=typeof process<"u"&&process.env?process.env:{},Ye=12e4,Ze=1e4,Je=1440*60*1e3,Qe=2,et=["Ja","Fe","Mr","Ap","My","Jn","Jl","Au","Se","Oc","No","De"],tt=Number(C.EXPLORER_DATES_DECORATION_POOL_SIZE||2048),it=Number(C.EXPLORER_DATES_FLYWEIGHT_CACHE_SIZE||4096),rt=Number(C.EXPLORER_DATES_WORKSPACE_BALANCED_THRESHOLD||15e3),nt=Number(C.EXPLORER_DATES_WORKSPACE_LARGE_THRESHOLD||25e4),le=Number(C.EXPLORER_DATES_WORKSPACE_EXTREME_THRESHOLD||4e5),st=Number(C.EXPLORER_DATES_WORKSPACE_SCAN_MAX_RESULTS||Math.min(le+1,50001)),ot={ADVANCED_CACHE:"explorerDates.advancedCache",ADVANCED_CACHE_METADATA:"explorerDates.advancedCacheMetadata",TEMPLATE_STORE:"explorerDates.templates",WEB_GIT_NOTICE:"explorerDates.webGitNotice"},at="explorerDatesChunks",ct="__explorerDatesChunks";ue.exports={DEFAULT_CACHE_TIMEOUT:Ye,DEFAULT_MAX_CACHE_SIZE:Ze,DEFAULT_PERSISTENT_CACHE_TTL:Je,DEFAULT_DECORATION_POOL_SIZE:tt,DEFAULT_FLYWEIGHT_CACHE_SIZE:it,MAX_BADGE_LENGTH:Qe,MONTH_ABBREVIATIONS:et,WORKSPACE_SCALE_BALANCED_THRESHOLD:rt,WORKSPACE_SCALE_LARGE_THRESHOLD:nt,WORKSPACE_SCALE_EXTREME_THRESHOLD:le,WORKSPACE_SCAN_MAX_RESULTS:st,GLOBAL_STATE_KEYS:ot,WEB_CHUNK_GLOBAL_KEY:at,LEGACY_WEB_CHUNK_GLOBAL_KEY:ct}});var me=g((bt,fe)=>{var{MAX_BADGE_LENGTH:de}=he();function lt(i=0,e="auto"){let t=typeof i=="number"&&!Number.isNaN(i)?i:0;if(e==="bytes")return`~${t}B`;let r=t/1024;if(e==="kb")return`~${r.toFixed(1)}K`;let n=r/1024;return e==="mb"?`~${n.toFixed(1)}M`:t<1024?`~${t}B`:r<1024?`~${Math.round(r)}K`:`~${n.toFixed(1)}M`}function ut(i){if(i)return i.length>de?i.substring(0,de):i}fe.exports={formatFileSize:lt,trimBadge:ut}});var ge=g((xt,pe)=>{"use strict";var $=Symbol("explorerDates.commandOutcome"),_=Object.freeze({BEHAVIORAL_SUCCESS:"behavioral-success",EXPECTED_CANCELLATION:"expected-cancellation",EXPECTED_EMPTY_RESULT:"expected-empty-result",HANDLED_COMMAND_FAILURE:"handled-command-failure",UNHANDLED_COMMAND_FAILURE:"unhandled-command-failure"});function P(i,e,t,r){return Object.freeze({[$]:!0,category:i,value:e,error:t,errorContext:r||null})}var ht=i=>P(_.BEHAVIORAL_SUCCESS,i),dt=i=>P(_.EXPECTED_CANCELLATION,i),ft=i=>P(_.EXPECTED_EMPTY_RESULT,i),mt=(i,e)=>P(_.HANDLED_COMMAND_FAILURE,void 0,i,e),pt=i=>!!(i&&i[$]===!0);pe.exports={COMMAND_OUTCOME:$,OUTCOME_CATEGORIES:_,commandSuccess:ht,commandCancellation:dt,commandEmpty:ft,commandFailure:mt,isCommandOutcome:pt}});var Fe=g((Pt,Se)=>{var ye=[".git","node_modules","dist","build","out",".vite",".vscode-test","test-results","playwright-report","coverage"],Ee=["24h","7d","30d","90d","all"];function y(i=""){return String(i||"").replace(/\\/g,"/").replace(/\/+/g,"/").replace(/^\.\//,"")}function we(i){return i==="full"||i==="all"?"all":Ee.includes(i)?i:"all"}function De(i,e=Date.now()){let t=we(i);if(t==="all")return null;let r=t==="24h"?24:Number.parseInt(t,10)*24;return e-r*60*60*1e3}function w(i){if(i instanceof Date)return Number.isFinite(i.getTime())?i:null;if(typeof i=="number"&&Number.isFinite(i)){let e=new Date(i<1e12?i*1e3:i);return Number.isFinite(e.getTime())?e:null}if(typeof i=="string"&&i.trim()){let e=new Date(i);return Number.isFinite(e.getTime())?e:null}return null}function gt(i={}){let e=Number.isFinite(Number(i.size))&&Number(i.size)>=0?Number(i.size):null,t=w(i.mtime??i.mtimeMs),r=w(i.birthtime??i.ctime??i.ctimeMs);return{size:e,modified:t,created:r}}function yt(i){let t=y(i).replace(/^\*\*\//,"").replace(/\/\*\*$/,"").replace(/[.+^${}()|[\]\\]/g,"\\$&").replace(/\*\*/g,".*").replace(/\*/g,"[^/]*").replace(/\?/g,"[^/]");try{return new RegExp(`(^|/)${t}($|/)`,"i")}catch{return null}}function Et(i={}){let e=new Set([...ye,...i.excludedSegments||[]].map(r=>y(r).replace(/^\/+|\/+$/g,"").toLowerCase()).filter(Boolean)),t=(i.excludedPatterns||[]).map(yt).filter(Boolean);return{excludedSegments:[...e],isExcluded(r=""){let n=y(r);return n.split("/").filter(Boolean).some(o=>e.has(o.toLowerCase()))?!0:t.some(o=>o.test(n))},shouldDescend(r=""){return!this.isExcluded(r,!0)}}}function wt(i){let e=w(i?.timestamp);return e?`${e.toISOString()}|${i.action||"modified"}|${i.source||"unknown"}`:null}function Dt(i,e,t){let r=w(i),n=De(e,t);return!!(r&&(n===null||r.getTime()>=n))}function ve(i){return[...i].sort((e,t)=>{let r=w(e.lastActivity||e.modified)?.getTime()||0;return(w(t.lastActivity||t.modified)?.getTime()||0)-r||y(e.path).localeCompare(y(t.path))})}function vt(i){let e={filesystem:0,user:0,watcher:0,git:0,unavailable:0},t={},r={};for(let a of i){t[a.type||"unknown"]=(t[a.type||"unknown"]||0)+1;for(let c of a.evidence||[]){e[c.source]=(e[c.source]||0)+1;let u=w(c.timestamp);u&&(r[u.toISOString().slice(0,10)]=(r[u.toISOString().slice(0,10)]||0)+1)}a.activityUnavailable&&e.unavailable++}let n=ve(i),s=[...i].filter(a=>Number.isFinite(a.activityCount)&&a.activityCount>0).sort((a,c)=>c.activityCount-a.activityCount||y(a.path).localeCompare(y(c.path))),o=[...i].sort((a,c)=>(c.size||0)-(a.size||0)||y(a.path).localeCompare(y(c.path))),l=[...i].filter(a=>w(a.modified)).sort((a,c)=>w(a.modified).getTime()-w(c.modified).getTime()||y(a.path).localeCompare(y(c.path)));return{totalFiles:i.length,totalSize:i.reduce((a,c)=>a+(c.size||0),0),fileTypes:t,activityByDay:r,mostActiveFiles:s.slice(0,10).map(a=>({path:a.path,activityCount:a.activityCount,lastActivity:a.lastActivity})),recentlyModified:n.slice(0,20).map(a=>({path:a.path,modified:a.modified,size:a.size})),largestFiles:o.slice(0,10).map(a=>({path:a.path,size:a.size,modified:a.modified})),oldestFiles:l.slice(0,10).map(a=>({path:a.path,modified:a.modified,size:a.size})),activitySourceBreakdown:e}}Se.exports={REPORT_SCHEMA_VERSION:2,DEFAULT_EXCLUDED_SEGMENTS:ye,REPORT_TIME_RANGES:Ee,normalizePath:y,normalizeTimeRange:we,rangeStart:De,validDate:w,normalizeStat:gt,createInclusionPolicy:Et,activityKey:wt,inRange:Dt,sortFiles:ve,createSummary:vt}});var Te=g((exports,module)=>{var vscode=require("vscode"),{getLogger}=j(),{fileSystem}=ce(),getExtension=filePath=>{try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let i=dynamicRequire("./chunks/path-utils-chunk");if(i&&typeof i.getExtension=="function")return getExtension=i.getExtension,getExtension(filePath)}}catch{}try{let i=String(filePath||""),e=i.lastIndexOf(".");return e<=0?"":i.substring(e).toLowerCase()}catch{return""}},normalizePath=input=>{try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let i=dynamicRequire("./chunks/path-utils-chunk");if(i&&typeof i.normalizePath=="function")return normalizePath=i.normalizePath,normalizePath(input)}}catch{}return String(input||"").replace(/\\/g,"/")},ensureDate;try{let i=N();i&&(ensureDate=i.ensureDate)}catch{}ensureDate||(ensureDate=z().ensureDate);var{getLocalization}=require("./utils/localization"),{formatFileSize}=me(),{commandCancellation,commandFailure}=ge(),{REPORT_SCHEMA_VERSION,DEFAULT_EXCLUDED_SEGMENTS,normalizePath:normalizeReportPath,normalizeTimeRange,rangeStart,normalizeStat,createInclusionPolicy,inRange,sortFiles,createSummary,validDate}=Fe(),l10n=getLocalization(),logger=getLogger(),env=typeof process<"u"&&process.env?process.env:{},isWeb=env.VSCODE_WEB==="true",DEFAULT_EXCLUDED_FOLDERS=DEFAULT_EXCLUDED_SEGMENTS,DEFAULT_EXCLUDED_PATTERNS=["**/*.tmp","**/*.log"],DEFAULT_MAX_TRACKED_FILES=3e3,MAX_TRACK_HISTORY_PER_FILE=100,MAX_TRACKED_FILES_LIMIT=2e4,ExportReportingManager=class{constructor(){this.fileActivityCache=new Map,this.t=new Map,this.allowedFormats=["json","html"],this.activityTrackingDays=30,this.activityCutoffMs=null,this.timeTrackingIntegration="none",this.maxTrackedActivityFiles=DEFAULT_MAX_TRACKED_FILES,this.excludedFolders=[...DEFAULT_EXCLUDED_FOLDERS],this.excludedPatterns=[...DEFAULT_EXCLUDED_PATTERNS],this.S=[],this.o=null,this.c=null,this.m=[],this.l=[],this.s=new Map,this.x=Number(env.EXPLORER_DATES_USER_ACTIVITY_TTL_MS||300*1e3),this.p={user:0,watcher:0},this.P=env.EXPLORER_DATES_LIGHTWEIGHT_MODE==="1",this.u=!1,this.n=null,this.y=createInclusionPolicy(),this.F(),this.L(),this.initialize()}F(){try{let e=vscode.workspace.getConfiguration("explorerDates"),t=e.get("reportFormats",["json","html"]),r=new Set(["json","csv","html","markdown"]);this.allowedFormats=Array.from(new Set((Array.isArray(t)?t:[]).map(l=>String(l).toLowerCase()).filter(l=>r.has(l)))),this.allowedFormats.length===0&&(this.allowedFormats=["json"]);let n=e.get("activityTrackingDays",30);this.activityTrackingDays=Math.max(1,Math.min(365,n)),this.activityCutoffMs=this.activityTrackingDays*24*60*60*1e3,this.timeTrackingIntegration=e.get("timeTrackingIntegration","none"),this.maxTrackedActivityFiles=this.O(e.get("maxTrackedActivityFiles",DEFAULT_MAX_TRACKED_FILES)),this.excludedFolders=e.get("excludedFolders",DEFAULT_EXCLUDED_FOLDERS)||DEFAULT_EXCLUDED_FOLDERS,this.excludedPatterns=e.get("excludedPatterns",DEFAULT_EXCLUDED_PATTERNS)||DEFAULT_EXCLUDED_PATTERNS,this.S=this.excludedPatterns.map(l=>this.T(l)).filter(Boolean);let s=vscode.workspace.getConfiguration("files").get("exclude",{})||{},o=Object.keys(s).filter(l=>s[l]!==!1);this.y=createInclusionPolicy({excludedSegments:this.excludedFolders,excludedPatterns:[...this.excludedPatterns,...o]})}catch(e){logger.error("Failed to load reporting configuration",e)}}L(){this.o&&this.o.dispose(),this.o=vscode.workspace.onDidChangeConfiguration(e=>{(e.affectsConfiguration("explorerDates.reportFormats")||e.affectsConfiguration("explorerDates.activityTrackingDays")||e.affectsConfiguration("explorerDates.timeTrackingIntegration")||e.affectsConfiguration("explorerDates.maxTrackedActivityFiles")||e.affectsConfiguration("explorerDates.excludedFolders")||e.affectsConfiguration("explorerDates.excludedPatterns")||e.affectsConfiguration("explorerDates.performanceMode"))&&(this.F(),this.A(),logger.info("Reporting configuration updated",{allowedFormats:this.allowedFormats,activityTrackingDays:this.activityTrackingDays,timeTrackingIntegration:this.timeTrackingIntegration,maxTrackedActivityFiles:this.maxTrackedActivityFiles}))})}async initialize(){try{if(this.k()){this.u=!0,this.E(),this.w(),logger.info("Export & Reporting Manager initialized (activity tracking suppressed by performance/lightweight mode)");return}this.u=!1,this.D(),this.A(),logger.info("Export & Reporting Manager initialized")}catch(e){logger.error("Failed to initialize Export & Reporting Manager:",e)}}startFileWatcher(){if(this.c||this.maxTrackedActivityFiles===0||isWeb){this.maxTrackedActivityFiles===0&&logger.info("File activity tracking disabled (maxTrackedActivityFiles=0)"),isWeb&&logger.info("Skipping file activity watcher in web environment");return}let e=vscode.workspace.createFileSystemWatcher("**/*");this.c=e,this.m=[e.onDidChange(t=>this.recordFileActivity(t,"modified",{source:"watcher"})),e.onDidCreate(t=>this.recordFileActivity(t,"created",{source:"watcher"})),e.onDidDelete(t=>this.recordFileActivity(t,"deleted",{source:"watcher"}))]}w(){if(this.m.length){for(let e of this.m)try{e.dispose()}catch{}this.m=[]}if(this.c){try{this.c.dispose()}catch{}this.c=null}}A(){let e=this.k();if(e||this.maxTrackedActivityFiles<=0||isWeb){this.u=e||this.maxTrackedActivityFiles<=0||isWeb,this.w(),this.E(),this.fileActivityCache.clear(),this.t.clear();return}this.u&&(this.u=!1,this.D()),this.D(),this.startFileWatcher(),this.C()}recordFileActivity(e,t,r={}){try{let n=r.source||"system";if(this.maxTrackedActivityFiles===0)return;let s=e?.fsPath||e?.path;if(!s)return;let o=this.a(s);if(!o||!this.M(o))return;let l=this.fileActivityCache.get(o);l?l.path=s:(l={path:s,activities:[]},this.fileActivityCache.set(o,l));let a=new Date;l.activities.push({action:t,timestamp:a,path:s,source:n}),n==="user"&&this._(o,a.getTime()),this.p[n]===void 0&&(this.p[n]=0),this.p[n]++,this.I(o,l),this.N(o,a.getTime())}catch(n){logger.error("Failed to record file activity:",n)}}I(e,t){let r=t?.activities;if(!(!r||r.length===0)){if(this.activityCutoffMs){let n=Date.now()-this.activityCutoffMs;for(;r.length&&r[0].timestamp.getTime()MAX_TRACK_HISTORY_PER_FILE&&r.splice(0,r.length-MAX_TRACK_HISTORY_PER_FILE),r.length===0&&(this.fileActivityCache.delete(e),this.t.delete(e))}}async generateFileModificationReport(e={}){if(this.n)return vscode.window.showInformationMessage("Explorer Dates is already generating a report. Please wait for it to finish."),null;let t=this.R(e);this.n=t;try{return await t}finally{this.n===t&&(this.n=null)}}async R(e={}){try{let{format:t="json",timeRange:r="all",includeDeleted:n=!1,outputPath:s=null,progress:o=null,cancellationToken:l=null}=e,a=normalizeTimeRange(r);if(!this.allowedFormats.includes(t)){let h=l10n.getString("reportFormatDisabled",t,this.allowedFormats.join(", "));return vscode.window.showWarningMessage(h),logger.warn(h),null}let c=await this.collectFileData(a,n,{progress:o,cancellationToken:l}),u=await this.formatReport(c,t);if(s){await this.saveReport(u,s,{cancellationToken:l});let h=s instanceof vscode.Uri?s.fsPath||s.path:s,f=await vscode.window.showInformationMessage(`Report saved to ${h}`,"Open Report","Reveal in File Explorer");f==="Open Report"&&await vscode.commands.executeCommand("vscode.open",s instanceof vscode.Uri?s:vscode.Uri.file(s)),f==="Reveal in File Explorer"&&await vscode.commands.executeCommand("revealFileInOS",s instanceof vscode.Uri?s:vscode.Uri.file(s))}return u}catch(t){return logger.error("Failed to generate file modification report:",t),t?.code==="REPORT_CANCELLED"?commandCancellation():(vscode.window.showErrorMessage(`Failed to generate report${e.outputPath?` for ${e.outputPath}`:""}: ${t?.message||"unknown error"}`),commandFailure(t,{operation:"report-generation",outputPath:e.outputPath||null}))}}async collectFileData(e,t,r={}){let n=[],s=vscode.workspace.workspaceFolders;if(!s)return{schemaVersion:REPORT_SCHEMA_VERSION,files:[],summary:createSummary([]),timeRange:normalizeTimeRange(e)};this.v(r.progress,"Preparing workspace roots",0);let o=await this.collectGitEvidence(s,e,r);for(let a of s){let c=await this.scanWorkspaceFolder(a.uri,e,t,{...r,gitEvidence:o,workspaceName:a.name});n.push(...c)}let l=createSummary(n);return l.integrationTarget=this.timeTrackingIntegration,l.activityTrackingDays=this.activityTrackingDays,{schemaVersion:REPORT_SCHEMA_VERSION,generatedAt:new Date().toISOString(),workspace:s.map(a=>a.uri.fsPath),workspaceName:s.map(a=>a.name).join(", "),timeRange:normalizeTimeRange(e),files:sortFiles(n),summary:l}}async scanWorkspaceFolder(e,t,r,n={}){let s=[];try{this.h(n.cancellationToken),this.v(n.progress,"Scanning files");let o=await vscode.workspace.fs.readDirectory(e);for(let[l,a]of o){let c=vscode.Uri.joinPath(e,l),u=vscode.workspace.asRelativePath(c);if(!this.y.isExcluded(u)){if(a===vscode.FileType.File){let h=await this.getFileData(c,t,n);h&&s.push(h)}else if(a===vscode.FileType.Directory){let h=await this.scanWorkspaceFolder(c,t,r,n);s.push(...h)}}}if(r&&e.fsPath){let l=this.getDeletedFiles(e.fsPath,t);s.push(...l)}}catch(o){logger.error(`Failed to scan folder ${e.fsPath||e.path}:`,o)}return s}async getFileData(e,t,r={}){try{this.h(r.cancellationToken);let n=await vscode.workspace.fs.stat(e),s=vscode.workspace.asRelativePath(e),o=e.fsPath||e.path,l=this.a(o),a=this.fileActivityCache.get(l),c=Date.now(),u=normalizeStat(n),h=(a?.activities||[]).filter(p=>inRange(p.timestamp,t,c)),f=[],F=new Set,E=p=>{let D=validDate(p.timestamp);if(!D)return;let U=`${D.toISOString()}|${p.action||"modified"}`;F.has(U)||(F.add(U),f.push({...p,timestamp:D}))};for(let p of h)E(p);inRange(u.modified,t,c)&&E({action:"modified",source:"filesystem",timestamp:u.modified});for(let p of r.gitEvidence?.get(l)||[])inRange(p.timestamp,t,c)&&E(p);if(normalizeTimeRange(t)!=="all"&&f.length===0)return null;f.sort((p,D)=>p.timestamp-D.timestamp);let v=f.length?f[f.length-1].timestamp:u.modified;return{path:s,fullPath:a?.path||o,size:u.size,created:u.created,modified:u.modified,type:this.getFileType(s),extension:getExtension(s),activities:f,evidence:f,activityCount:f.length>0||u.modified?f.length:null,activityUnavailable:f.length===0&&!u.modified,lastActivity:v}}catch(n){return logger.error(`Failed to get file data for ${e.fsPath||e.path}:`,n),null}}h(e){if(e?.isCancellationRequested){let t=new Error("Report generation was cancelled.");throw t.code="REPORT_CANCELLED",t}}v(e,t,r){typeof e=="function"&&e(t,r)}async collectGitEvidence(e,t,r={}){let n=new Map;if(isWeb)return n;let s;try{s=require("child_process").execFile}catch{return n}let o=new Set;for(let l of e){this.h(r.cancellationToken);let a=l.uri.fsPath;if(!a)continue;let c=await new Promise(E=>s("git",["-C",a,"rev-parse","--show-toplevel"],{timeout:3e3},(v,p)=>E(v?null:p.trim())));if(!c||o.has(c))continue;o.add(c),this.v(r.progress,"Collecting Git activity");let u=rangeStart(t),h=["-C",c,"log","--all","--name-only","--format=%ct"];u!==null&&h.push(`--since=${new Date(u).toISOString()}`);let f=await new Promise(E=>s("git",h,{timeout:1e4,maxBuffer:8*1024*1024},(v,p)=>E(v?"":p))),F=null;for(let E of String(f).split(/\r?\n/)){if(/^\d+$/.test(E.trim())){F=new Date(Number(E.trim())*1e3);continue}let v=normalizeReportPath(E.trim());if(!v||!F)continue;let p=normalizeReportPath(require("path").join(c,v)),D=this.a(p);n.has(D)||n.set(D,[]),n.get(D).push({action:"modified",source:"git",timestamp:F})}}return n}filterActivitiesByTimeRange(e,t){let r=e;if(t!=="all"){let n=new Date,s;switch(t){case"24h":s=new Date(n-1440*60*1e3);break;case"7d":s=new Date(n-10080*60*1e3);break;case"30d":s=new Date(n-720*60*60*1e3);break;case"90d":s=new Date(n-2160*60*60*1e3);break;default:s=null}s&&(r=r.filter(o=>o.timestamp>=s))}if(this.activityCutoffMs){let n=new Date(Date.now()-this.activityCutoffMs);r=r.filter(s=>s.timestamp>=n)}return r}getDeletedFiles(e,t){if(!e)return[];let r=[],n=e?this.a(e):"";for(let[s,o]of this.fileActivityCache.entries()){if(!o?.activities||o.activities.length===0||n&&!s.startsWith(n))continue;let l=o.activities.filter(c=>c.action==="deleted"),a=this.filterActivitiesByTimeRange(l,t);a.length>0&&r.push({path:vscode.workspace.asRelativePath(o.path||s),fullPath:o.path||s,size:0,created:null,modified:null,type:"deleted",extension:getExtension(o.path||s),activities:a,activityCount:a.length,lastActivity:a[a.length-1].timestamp})}return r}createSummary(e){return createSummary(e)}async formatReport(e,t){switch(t.toLowerCase()){case"json":return JSON.stringify(e,null,2);case"csv":return this.formatAsCSV(e);case"html":return this.formatAsHTML(e);case"markdown":return this.formatAsMarkdown(e);default:throw new Error(`Unsupported format: ${t}`)}}formatAsCSV(e){let t=n=>{let s=n==null?"":String(n);return/^[=+\-@]/.test(s)&&(s=`'${s}`),/[",\r\n]/.test(s)?`"${s.replace(/"/g,'""')}"`:s},r=["Path,Size,Created,Modified,Type,Extension,ActivityCount,ActivitySources,LastActivity"];for(let n of e.files)r.push([n.path,n.size,validDate(n.created)?.toISOString(),validDate(n.modified)?.toISOString(),n.type,n.extension,n.activityCount??"Unknown",(n.evidence||[]).map(s=>s.source).join("|")||(n.activityUnavailable?"unavailable":""),validDate(n.lastActivity)?.toISOString()].map(t).join(","));return r.join(` `)}formatAsHTML(e){let t=o=>String(o??"").replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'"),r=o=>validDate(o)?.toLocaleString()||"Unavailable",n=e.files.map(o=>`${t(o.path)}${t(this.formatFileSize(o.size||0))}${t(r(o.modified))}${t(o.type)}${t(o.activityCount??"Unknown")}${t((o.evidence||[]).map(l=>l.source).join(", ")||(o.activityUnavailable?"Unavailable":""))}`).join(""),s=e.summary.mostActiveFiles.length?e.summary.mostActiveFiles.map(o=>`${t(o.path)}${t(o.activityCount)}${t(r(o.lastActivity))}`).join(""):'No known activity evidence in this range.';return` @@ -14,7 +14,7 @@ var g=(i,e)=>()=>(e||i((e={exports:{}}).exports,e),e.exports);var N=g((dt,$)=>{v -
    Explorer Dates

    Explorer Dates File Report

    Schema ${t(e.schemaVersion)} \xB7 Generated ${t(r(e.generatedAt))}
    +
    Explorer Dates

    Explorer Dates File Report

    Schema ${t(e.schemaVersion)} \xB7 Generated ${t(r(e.generatedAt))}

    Workspace: ${t(e.workspaceName||e.workspace?.join(", "))} \xB7 Selected range: ${t(e.timeRange)}

    ${t(e.summary.totalFiles)}Included files
    ${t(this.formatFileSize(e.summary.totalSize))}Total size
    ${t(e.summary.mostActiveFiles.length)}Known active files
    ${t(Object.values(e.summary.activitySourceBreakdown||{}).reduce((o,l)=>o+l,0))}Evidence events

    Most Active Files

    ${s}
    PathActivity countLast activity
    @@ -59,4 +59,4 @@ ${e.summary.recentlyModified.map(r=>`| ${t(r.path)} | ${t(validDate(r.modified)? |------|------|----------|------|------------| ${e.files.map(r=>`| ${t(r.path)} | ${this.formatFileSize(r.size||0)} | ${t(validDate(r.modified)?.toISOString()||"Unavailable")} | ${t(r.type)} | ${t(r.activityCount??"Unknown")} |`).join(` `)} -`}async saveReport(e,t,r={}){try{if(isWeb){let a=encodeURIComponent(e);await vscode.env.openExternal(vscode.Uri.parse(`data:text/plain;charset=utf-8,${a}`)),vscode.window.showInformationMessage(l10n.getString("reportDownloadTriggered"));return}let n=t instanceof vscode.Uri?t:vscode.Uri.file(t);this.h(r.cancellationToken);let o=`${n.fsPath||n.path}.tmp-${process.pid}-${Date.now()}`;await fileSystem.writeFile(o,e,"utf8"),this.h(r.cancellationToken),await fileSystem.rename(o,n,{overwrite:!0});let l=await fileSystem.stat(n);if(!Number.isFinite(Number(l.size))||Number(l.size)<=0)throw new Error("The saved report is empty or could not be verified.");logger.info(`Report saved to ${n.fsPath||n.path}`)}catch(n){throw logger.error("Failed to save report:",n),n}}async exportToTimeTrackingTools(e={}){try{let{tool:t="generic",timeRange:r="7d"}=e,n=await this.collectFileData(r,!1);return this.formatForTimeTracking(n,t)}catch(t){return logger.error("Failed to export to time tracking tools:",t),null}}formatForTimeTracking(e,t){let r=[];switch(e.files.forEach(n=>{n.activities.forEach(s=>{r.push({file:n.path,action:s.action,timestamp:s.timestamp,duration:this.estimateSessionDuration(s),project:this.extractProjectName(n.path)})})}),t){case"toggl":return this.formatForToggl(r);case"clockify":return this.formatForClockify(r);default:return r}}formatForToggl(e){return e.map(t=>({description:`${t.action}: ${t.file}`,start:t.timestamp.toISOString(),duration:t.duration*60,project:t.project,tags:[t.action,this.getFileType(t.file)]}))}formatForClockify(e){return e.map(t=>({description:`${t.action}: ${t.file}`,start:t.timestamp.toISOString(),end:new Date(t.timestamp.getTime()+t.duration*60*1e3).toISOString(),project:t.project,tags:[t.action,this.getFileType(t.file)]}))}estimateSessionDuration(e){switch(e.action){case"created":return 15;case"modified":return 5;case"deleted":return 1;default:return 5}}extractProjectName(e){return normalizePath(e).split("/")[0]||"Unknown Project"}getFileType(e){let t=getExtension(e);return{".js":"javascript",".ts":"typescript",".py":"python",".java":"java",".cpp":"cpp",".html":"html",".css":"css",".md":"markdown",".json":"json",".xml":"xml",".txt":"text"}[t]||"other"}isExcluded(e,t){return this.y.isExcluded(e)||(t||[]).some(r=>{let n=this.k(r);return n?n.test(normalizeReportPath(e)):!1})}formatFileSize(e){let t=formatFileSize(e,"auto");return t.startsWith("~")?t.slice(1):t}$(){try{let e=require("fs"),t=require("path"),n=[t.join(__dirname,"..","icons","explorer-dates.png"),t.join(__dirname,"..","..","icons","explorer-dates.png")].find(s=>e.existsSync(s));return n?e.readFileSync(n).toString("base64"):""}catch{return""}}async showReportDialog(){if(this.n)return vscode.window.showInformationMessage("Explorer Dates is already generating a report. Please wait for it to finish."),null;let e=this.N();this.n=e;try{return await e}finally{this.n===e&&(this.n=null)}}async N(){try{let e={"\u{1F4CA} Generate Full Report":"full","\u{1F4C5} Last 24 Hours":"24h","\u{1F4C5} Last 7 Days":"7d","\u{1F4C5} Last 30 Days":"30d","\u{1F4C5} Last 90 Days":"90d"},t=await vscode.window.showQuickPick(Object.keys(e),{placeHolder:l10n.getString("selectReportTimeRangePlaceholder")});if(!t)return;let r=e[t],n=this.allowedFormats.map(a=>a.toUpperCase()==="MARKDOWN"?"Markdown":a.toUpperCase()),s=await vscode.window.showQuickPick(n,{placeHolder:l10n.getString("selectReportFormatPlaceholder")});if(!s)return;let o=await vscode.window.showSaveDialog({defaultUri:vscode.Uri.file(`explorer-dates-report-${new Date().toISOString().replace(/[:.]/g,"-")}.${s.toLowerCase()}`),filters:{[s]:[s.toLowerCase()]}});if(!o)return;let l=async a=>this._({format:s.toLowerCase(),timeRange:r,outputPath:o,progress:a.report?(c,u)=>a.report({message:c,increment:u}):null,cancellationToken:a.token});return await vscode.window.withProgress({location:vscode.ProgressLocation?.Notification||15,title:"Generating Explorer Dates report",cancellable:!0},l)}catch(e){logger.error("Failed to show report dialog:",e),vscode.window.showErrorMessage("Failed to generate report")}}dispose(){this.o&&(this.o.dispose(),this.o=null),this.w(),this.E(),this.fileActivityCache.clear(),this.t.clear(),this.s.clear(),this.p={user:0,watcher:0},logger.info("Export & Reporting Manager disposed")}a(e=""){let t=normalizePath(e||"").trim();return t?t.toLowerCase():""}M(e){if(!e)return!1;for(let t of this.excludedFolders){if(!t)continue;let r=t.replace(/^\/+|\/+$/g,"").toLowerCase();if(!r)continue;let n=`/${r}`;if(e.includes(`${n}/`)||e.endsWith(n))return!1}return!this.S.some(t=>t.test(e))}k(e){if(!e||typeof e!="string")return null;let t=e.replace(/([.+^${}()|[\]\\])/g,"\\$1").replace(/\\\*\\\*/g,".*").replace(/\\\*/g,"[^/]*").replace(/\\\?/g,".");try{return new RegExp(t,"i")}catch{return null}}z(e,t){e&&(this.t.has(e)&&this.t.delete(e),this.t.set(e,t),this.R())}R(){if(this.maxTrackedActivityFiles<=0){this.fileActivityCache.clear(),this.t.clear();return}for(;this.t.size>this.maxTrackedActivityFiles;){let e=this.t.keys().next();if(e.done)break;let t=e.value;this.t.delete(t),this.fileActivityCache.delete(t)}}O(e){let t=Number(e);return Number.isFinite(t)?t<=0?0:Math.min(Math.max(Math.floor(t),500),MAX_TRACKED_FILES_LIMIT):DEFAULT_MAX_TRACKED_FILES}A(){return vscode.workspace.getConfiguration("explorerDates").get("performanceMode",!1)||this.P}v(){if(this.l.length>0)return;let e=vscode.workspace||{},t=(c,u)=>typeof c!="function"?null:c.call(e,u),r=[],n=t(e.onDidSaveTextDocument,c=>{this.recordFileActivity(c.uri,"modified",{source:"user"})});n&&r.push(n);let s=t(e.onDidChangeTextDocument,c=>{let u=c?.document;if(!u)return;let h=this.a(u.uri.fsPath||u.uri.path||"");h&&this.b(h,Date.now())});s&&r.push(s);let o=t(e.onDidCreateFiles,c=>{c?.files?.forEach(u=>this.recordFileActivity(u,"created",{source:"user"}))});o&&r.push(o);let l=t(e.onDidDeleteFiles,c=>{c?.files?.forEach(u=>this.recordFileActivity(u,"deleted",{source:"user"}))});l&&r.push(l);let a=t(e.onDidRenameFiles,c=>{c?.files?.forEach(u=>{this.recordFileActivity(u.oldUri,"deleted",{source:"user"}),this.recordFileActivity(u.newUri,"created",{source:"user"})})});a&&r.push(a),r.length>0&&(this.l=r)}E(){if(this.l.length){for(let e of this.l)try{e.dispose()}catch{}this.l=[],this.s.clear()}}b(e,t){e&&(this.C(),this.s.set(e,t||Date.now()))}C(){if(!this.s.size)return;let e=Date.now();for(let[t,r]of this.s.entries())e-r>this.x&&this.s.delete(t)}W(e){return this.C(),this.s.has(e)?!0:!!(Array.isArray(vscode.workspace?.textDocuments)?vscode.workspace.textDocuments:[]).find(n=>(n?.uri?this.a(n.uri.fsPath||n.uri.path):"")===e)}};module.exports={ExportReportingManager}});var{ExportReportingManager:ve}=we();module.exports={ExportReportingManager:ve,createExportReportingManager:i=>new ve(i)}; +`}async saveReport(e,t,r={}){try{if(isWeb){let a=encodeURIComponent(e);await vscode.env.openExternal(vscode.Uri.parse(`data:text/plain;charset=utf-8,${a}`)),vscode.window.showInformationMessage(l10n.getString("reportDownloadTriggered"));return}let n=t instanceof vscode.Uri?t:vscode.Uri.file(t);this.h(r.cancellationToken);let o=`${n.fsPath||n.path}.tmp-${process.pid}-${Date.now()}`;await fileSystem.writeFile(o,e,"utf8"),this.h(r.cancellationToken),await fileSystem.rename(o,n,{overwrite:!0});let l=await fileSystem.stat(n);if(!Number.isFinite(Number(l.size))||Number(l.size)<=0)throw new Error("The saved report is empty or could not be verified.");logger.info(`Report saved to ${n.fsPath||n.path}`)}catch(n){throw logger.error("Failed to save report:",n),n}}async exportToTimeTrackingTools(e={}){try{let{tool:t="generic",timeRange:r="7d"}=e,n=await this.collectFileData(r,!1);return this.formatForTimeTracking(n,t)}catch(t){return logger.error("Failed to export to time tracking tools:",t),null}}formatForTimeTracking(e,t){let r=[];switch(e.files.forEach(n=>{n.activities.forEach(s=>{r.push({file:n.path,action:s.action,timestamp:s.timestamp,duration:this.estimateSessionDuration(s),project:this.extractProjectName(n.path)})})}),t){case"toggl":return this.formatForToggl(r);case"clockify":return this.formatForClockify(r);default:return r}}formatForToggl(e){return e.map(t=>({description:`${t.action}: ${t.file}`,start:t.timestamp.toISOString(),duration:t.duration*60,project:t.project,tags:[t.action,this.getFileType(t.file)]}))}formatForClockify(e){return e.map(t=>({description:`${t.action}: ${t.file}`,start:t.timestamp.toISOString(),end:new Date(t.timestamp.getTime()+t.duration*60*1e3).toISOString(),project:t.project,tags:[t.action,this.getFileType(t.file)]}))}estimateSessionDuration(e){switch(e.action){case"created":return 15;case"modified":return 5;case"deleted":return 1;default:return 5}}extractProjectName(e){return normalizePath(e).split("/")[0]||"Unknown Project"}getFileType(e){let t=getExtension(e);return{".js":"javascript",".ts":"typescript",".py":"python",".java":"java",".cpp":"cpp",".html":"html",".css":"css",".md":"markdown",".json":"json",".xml":"xml",".txt":"text"}[t]||"other"}isExcluded(e,t){return this.y.isExcluded(e)||(t||[]).some(r=>{let n=this.T(r);return n?n.test(normalizeReportPath(e)):!1})}formatFileSize(e){let t=formatFileSize(e,"auto");return t.startsWith("~")?t.slice(1):t}z(){try{let e=require("fs"),t=require("path"),n=[t.join(__dirname,"..","icons","explorer-dates.png"),t.join(__dirname,"..","..","icons","explorer-dates.png")].find(s=>e.existsSync(s));return n?e.readFileSync(n).toString("base64"):""}catch{return""}}async showReportDialog(){if(this.n)return vscode.window.showInformationMessage("Explorer Dates is already generating a report. Please wait for it to finish."),null;let e=this.$();this.n=e;try{return await e}finally{this.n===e&&(this.n=null)}}async $(){try{let e={"\u{1F4CA} Generate Full Report":"full","\u{1F4C5} Last 24 Hours":"24h","\u{1F4C5} Last 7 Days":"7d","\u{1F4C5} Last 30 Days":"30d","\u{1F4C5} Last 90 Days":"90d"},t=await vscode.window.showQuickPick(Object.keys(e),{placeHolder:l10n.getString("selectReportTimeRangePlaceholder")});if(!t)return;let r=e[t],n=this.allowedFormats.map(a=>a.toUpperCase()==="MARKDOWN"?"Markdown":a.toUpperCase()),s=await vscode.window.showQuickPick(n,{placeHolder:l10n.getString("selectReportFormatPlaceholder")});if(!s)return;let o=await vscode.window.showSaveDialog({defaultUri:vscode.Uri.file(`explorer-dates-report-${new Date().toISOString().replace(/[:.]/g,"-")}.${s.toLowerCase()}`),filters:{[s]:[s.toLowerCase()]}});if(!o)return;let l=async a=>this.R({format:s.toLowerCase(),timeRange:r,outputPath:o,progress:a.report?(c,u)=>a.report({message:c,increment:u}):null,cancellationToken:a.token});return await vscode.window.withProgress({location:vscode.ProgressLocation?.Notification||15,title:"Generating Explorer Dates report",cancellable:!0},l)}catch(e){return logger.error("Failed to show report dialog:",e),vscode.window.showErrorMessage("Failed to generate report"),commandFailure(e,{operation:"report-dialog"})}}dispose(){this.o&&(this.o.dispose(),this.o=null),this.w(),this.E(),this.fileActivityCache.clear(),this.t.clear(),this.s.clear(),this.p={user:0,watcher:0},logger.info("Export & Reporting Manager disposed")}a(e=""){let t=normalizePath(e||"").trim();return t?t.toLowerCase():""}M(e){if(!e)return!1;for(let t of this.excludedFolders){if(!t)continue;let r=t.replace(/^\/+|\/+$/g,"").toLowerCase();if(!r)continue;let n=`/${r}`;if(e.includes(`${n}/`)||e.endsWith(n))return!1}return!this.S.some(t=>t.test(e))}T(e){if(!e||typeof e!="string")return null;let t=e.replace(/([.+^${}()|[\]\\])/g,"\\$1").replace(/\\\*\\\*/g,".*").replace(/\\\*/g,"[^/]*").replace(/\\\?/g,".");try{return new RegExp(t,"i")}catch{return null}}N(e,t){e&&(this.t.has(e)&&this.t.delete(e),this.t.set(e,t),this.C())}C(){if(this.maxTrackedActivityFiles<=0){this.fileActivityCache.clear(),this.t.clear();return}for(;this.t.size>this.maxTrackedActivityFiles;){let e=this.t.keys().next();if(e.done)break;let t=e.value;this.t.delete(t),this.fileActivityCache.delete(t)}}O(e){let t=Number(e);return Number.isFinite(t)?t<=0?0:Math.min(Math.max(Math.floor(t),500),MAX_TRACKED_FILES_LIMIT):DEFAULT_MAX_TRACKED_FILES}k(){return vscode.workspace.getConfiguration("explorerDates").get("performanceMode",!1)||this.P}D(){if(this.l.length>0)return;let e=vscode.workspace||{},t=(c,u)=>typeof c!="function"?null:c.call(e,u),r=[],n=t(e.onDidSaveTextDocument,c=>{this.recordFileActivity(c.uri,"modified",{source:"user"})});n&&r.push(n);let s=t(e.onDidChangeTextDocument,c=>{let u=c?.document;if(!u)return;let h=this.a(u.uri.fsPath||u.uri.path||"");h&&this._(h,Date.now())});s&&r.push(s);let o=t(e.onDidCreateFiles,c=>{c?.files?.forEach(u=>this.recordFileActivity(u,"created",{source:"user"}))});o&&r.push(o);let l=t(e.onDidDeleteFiles,c=>{c?.files?.forEach(u=>this.recordFileActivity(u,"deleted",{source:"user"}))});l&&r.push(l);let a=t(e.onDidRenameFiles,c=>{c?.files?.forEach(u=>{this.recordFileActivity(u.oldUri,"deleted",{source:"user"}),this.recordFileActivity(u.newUri,"created",{source:"user"})})});a&&r.push(a),r.length>0&&(this.l=r)}E(){if(this.l.length){for(let e of this.l)try{e.dispose()}catch{}this.l=[],this.s.clear()}}_(e,t){e&&(this.b(),this.s.set(e,t||Date.now()))}b(){if(!this.s.size)return;let e=Date.now();for(let[t,r]of this.s.entries())e-r>this.x&&this.s.delete(t)}W(e){return this.b(),this.s.has(e)?!0:!!(Array.isArray(vscode.workspace?.textDocuments)?vscode.workspace.textDocuments:[]).find(n=>(n?.uri?this.a(n.uri.fsPath||n.uri.path):"")===e)}};module.exports={ExportReportingManager}});var{ExportReportingManager:Ae}=Te();module.exports={ExportReportingManager:Ae,createExportReportingManager:i=>new Ae(i)}; diff --git a/dist/chunks/runtimeManagement.js b/dist/chunks/runtimeManagement.js index 07669e4..1a9b43c 100644 --- a/dist/chunks/runtimeManagement.js +++ b/dist/chunks/runtimeManagement.js @@ -1,4 +1,4 @@ -var We=Object.create;var U=Object.defineProperty;var Le=Object.getOwnPropertyDescriptor;var Ne=Object.getOwnPropertyNames;var Fe=Object.getPrototypeOf,_e=Object.prototype.hasOwnProperty;var d=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var Oe=(t,e,r,a)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of Ne(e))!_e.call(t,s)&&s!==r&&U(t,s,{get:()=>e[s],enumerable:!(a=Le(e,s))||a.enumerable});return t};var O=(t,e,r)=>(r=t!=null?We(Fe(t)):{},Oe(e||!t||!t.__esModule?U(r,"default",{value:t,enumerable:!0}):r,t));var T=d((xt,Z)=>{var y="__explorerDatesLogger",S=class{constructor(){this.c=null}d(e,r){if(this.c&&typeof this.c[e]=="function")try{return this.c[e](...r)}catch{}switch(e){case"debug":break;case"info":break;case"warn":break;case"error":break;default:break}}debug(...e){return this.d("debug",e)}info(...e){return this.d("info",e)}warn(...e){return this.d("warn",e)}error(...e){return this.d("error",e)}O(e){this.c=e}};function $e(){return typeof global<"u"?(global[y]||(global[y]=new S),global[y]):typeof globalThis<"u"?(globalThis[y]||(globalThis[y]=new S),globalThis[y]):($||($=new S),$)}var z=class extends S{},$=null;Z.exports={Logger:z,getLogger:$e}});var P=d((At,J)=>{var X=typeof process<"u"&&process.env?process.env:{},Q="[ExplorerDates][WebDiag]",H="__explorerDatesWebDiagnostics",R;function ze(){try{let t=require("vscode");return t?.env?.uiKind===t?.UIKind?.Web}catch{return X.VSCODE_WEB==="true"}}function p(){return R!==void 0||(R=X.EXPLORER_DATES_WEB_DIAG==="1"||ze()),R}function Y(){return{enabled:p(),logs:[],logOnce:new Set,commandsRegistered:new Set,commandsInvoked:[],errors:[],chunkLoads:[],provider:{created:!1,registered:!1,hydrated:!1,decorationCalls:0,refreshCalls:0,lastEvent:null}}}var He=Y();function m(){return typeof globalThis<"u"?(globalThis[H]||(globalThis[H]=Y()),globalThis[H]):He}function Ke(t){try{return JSON.stringify(t)}catch{return String(t)}}function g(t,e,r){if(!p())return;let a=m(),s={ts:new Date().toISOString(),level:t,message:e,meta:r||null};a.logs.push(s),a.logs.length>400&&a.logs.shift();let o=r?`${Q} ${e} ${Ke(r)}`:`${Q} ${e}`,n=console[t]||console.info;try{n(o)}catch{}}function qe(t,e,r,a){if(!p())return;let s=m();s.logOnce.has(t)||(s.logOnce.add(t),g(e,r,a))}function Be(t){if(!p())return;m().commandsRegistered.add(t),g("info","Command registered",{commandId:t})}function Ve(t){if(!p())return;m().commandsInvoked.push({commandId:t,ts:Date.now()}),g("info","Command invoked",{commandId:t})}function je(t,e,r){p()&&(e?g("info","Command completed",{commandId:t}):(g("error","Command failed",{commandId:t,error:r?.message,stack:r?.stack}),m().errors.push({commandId:t,error:r?.message,stack:r?.stack})))}function Ge(t,e,r){if(!p())return;m().chunkLoads.push({chunkName:t,stage:e,ts:Date.now(),error:r?r.message||String(r):null}),g(r?"warn":"info",`Chunk ${e}`,{chunkName:t,error:r?.message})}function Ue(t,e){if(!p())return;let r=m();r.provider.lastEvent={event:t,ts:Date.now(),meta:e||null},t==="created"&&(r.provider.created=!0),t==="registered"&&(r.provider.registered=!0),t==="hydrated"&&(r.provider.hydrated=!0),g("info",`Provider ${t}`,e)}function Ze(){if(!p())return;let t=m();t.provider.decorationCalls+=1,t.provider.decorationCalls<=3&&g("info","Decoration request observed",{count:t.provider.decorationCalls})}function Qe(){if(!p())return;let t=m();t.provider.refreshCalls+=1}J.exports={isWebDiagnosticsEnabled:p,getWebDiagnosticsState:m,diagLog:g,diagLogOnce:qe,recordCommandRegistration:Be,recordCommandInvocation:Ve,recordCommandResult:je,recordChunkEvent:Ge,recordProviderEvent:Ue,recordDecorationCall:Ze,recordRefreshCall:Qe}});var M=d((Rt,te)=>{var v=typeof process<"u"&&process.env?process.env:{},Xe=12e4,Ye=1e4,Je=1440*60*1e3,et=2,tt=["Ja","Fe","Mr","Ap","My","Jn","Jl","Au","Se","Oc","No","De"],rt=Number(v.EXPLORER_DATES_DECORATION_POOL_SIZE||2048),at=Number(v.EXPLORER_DATES_FLYWEIGHT_CACHE_SIZE||4096),st=Number(v.EXPLORER_DATES_WORKSPACE_BALANCED_THRESHOLD||15e3),ot=Number(v.EXPLORER_DATES_WORKSPACE_LARGE_THRESHOLD||25e4),ee=Number(v.EXPLORER_DATES_WORKSPACE_EXTREME_THRESHOLD||4e5),nt=Number(v.EXPLORER_DATES_WORKSPACE_SCAN_MAX_RESULTS||Math.min(ee+1,50001)),it={ADVANCED_CACHE:"explorerDates.advancedCache",ADVANCED_CACHE_METADATA:"explorerDates.advancedCacheMetadata",TEMPLATE_STORE:"explorerDates.templates",WEB_GIT_NOTICE:"explorerDates.webGitNotice"},lt="explorerDatesChunks",ct="__explorerDatesChunks";te.exports={DEFAULT_CACHE_TIMEOUT:Xe,DEFAULT_MAX_CACHE_SIZE:Ye,DEFAULT_PERSISTENT_CACHE_TTL:Je,DEFAULT_DECORATION_POOL_SIZE:rt,DEFAULT_FLYWEIGHT_CACHE_SIZE:at,MAX_BADGE_LENGTH:et,MONTH_ABBREVIATIONS:tt,WORKSPACE_SCALE_BALANCED_THRESHOLD:st,WORKSPACE_SCALE_LARGE_THRESHOLD:ot,WORKSPACE_SCALE_EXTREME_THRESHOLD:ee,WORKSPACE_SCAN_MAX_RESULTS:nt,GLOBAL_STATE_KEYS:it,WEB_CHUNK_GLOBAL_KEY:lt,LEGACY_WEB_CHUNK_GLOBAL_KEY:ct}});var ie=d((Pt,ne)=>{var f=require("vscode"),{getLogger:dt}=T(),{WORKSPACE_SCALE_BALANCED_THRESHOLD:re,WORKSPACE_SCALE_LARGE_THRESHOLD:W,WORKSPACE_SCALE_EXTREME_THRESHOLD:ae,WORKSPACE_SCAN_MAX_RESULTS:se}=M(),K=dt(),I=null;function oe(t){return t&&(t.fsPath||t.path)||null}function q(t,e){let r=oe(t);!r||typeof e!="number"||(I={workspaceKey:r,fileCount:e,timestamp:Date.now()})}function B(t){let e=oe(t);return!e||!I||I.workspaceKey!==e?null:I}function ut(t,e="default"){if(!t)return`unknown-workspace-${e}`;let r=t.fsPath||t.path||"",a=r.split("/").pop()||"workspace",s=Math.abs(r.split("").reduce((n,i)=>(n=(n<<5)-n+i.charCodeAt(0),n&n),0)).toString(36).substr(0,8),o=Math.abs(e.split("").reduce((n,i)=>(n=(n<<5)-n+i.charCodeAt(0),n&n),0)).toString(36).substr(0,4);return`${a}-${s}-${o}`}async function pt(t){try{if(!t)return"unknown";let e=B(t),r;e?r=e.fileCount:(r=(await f.workspace.findFiles("**/*",null,se)).length,q(t,r));let a="small";r>=ae?a="extreme":r>=W?a="large":r>=1e3&&(a="medium");let s=f.env.remoteName,o=f.env.uiKind===f.UIKind.Web,n=a==="medium"&&r>=re&&rw.toLowerCase());if(l.includes("package.json")||l.includes("yarn.lock"))return"web-development";if(l.some(w=>w.endsWith(".ipynb"))||l.includes("requirements.txt"))return"data-science";if(l.includes("docker-compose.yml")||l.includes(".enterprise"))return"enterprise"}catch(i){K.debug("Project type detection failed:",i)}return"full"}catch(e){return K.error("Workspace profile detection failed:",e),"unknown"}}async function mt(t){if(!t)return null;try{let e=B(t),r;e?r=e.fileCount:(r=(await f.workspace.findFiles("**/*",null,se)).length,q(t,r));let a="small";r>=ae?a="extreme":r>=W?a="large":r>=1e3&&(a="medium");let s=!!f.env.remoteName,o=f.env.uiKind===f.UIKind.Web,n=o?"web":s?"remote":"local",i=a==="medium"&&r>=re&&r{var CHUNK_SIZES={onboarding:34,analysisCommands:23,exportReporting:17,extensionApi:15,workspaceTemplates:14,advancedCache:28,workspaceIntelligence:31,incrementalWorkers:19},BASE_BUNDLE_SIZE=99;function _getPresetDefinitionsSync(){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let t=dynamicRequire("./chunks/preset-definitions-chunk");if(t&&t.PRESET_DEFINITIONS)return t.PRESET_DEFINITIONS}}catch{}let FALLBACK_PRESET={minimal:{id:"minimal",name:"Minimal",description:"Lean setup that prioritizes responsiveness in large repos.",targetScenarios:["Large repos","Low resources","Minimal UI"],settings:{"explorerDates.performanceMode":!0,"explorerDates.showDateDecorations":!0}},balanced:{id:"balanced",name:"Balanced",description:"Default feature mix for most workspaces.",targetScenarios:["General development","Mixed workloads"],settings:{"explorerDates.enableOnboardingSystem":!0,"explorerDates.enableAnalysisCommands":!0,"explorerDates.performanceMode":!1,"explorerDates.dateDecorationFormat":"smart","explorerDates.colorScheme":"recency","explorerDates.badgePriority":"time"}},"web-development":{id:"web-development",name:"Web Development",description:"Optimized for frontend and full-stack web projects.",targetScenarios:["Web apps","Frontend teams"],settings:{"explorerDates.enableOnboardingSystem":!0,"explorerDates.dateDecorationFormat":"smart","explorerDates.colorScheme":"file-type","explorerDates.badgePriority":"time"}},enterprise:{id:"enterprise",name:"Enterprise",description:"Full feature set with reporting and integrations enabled.",targetScenarios:["Large teams","Governed environments"],settings:{"explorerDates.enableExportReporting":!0,"explorerDates.enableExtensionApi":!0,"explorerDates.dateDecorationFormat":"smart","explorerDates.colorScheme":"recency","explorerDates.badgePriority":"time"}},"data-science":{id:"data-science",name:"Data Science",description:"Insight-focused profile for data-heavy projects.",targetScenarios:["Data analysis","Research workflows"],settings:{"explorerDates.enableWorkspaceIntelligence":!0,"explorerDates.dateDecorationFormat":"iso-detailed","explorerDates.colorScheme":"recency","explorerDates.badgePriority":"time"}}};return FALLBACK_PRESET}var PRESET_DEFINITIONS=_getPresetDefinitionsSync(),RESTART_REQUIRED_SETTINGS=new Set(["enableOnboardingSystem","enableAnalysisCommands","enableExportReporting","enableExtensionApi","enableWorkspaceTemplates","enableAdvancedCache","enableWorkspaceIntelligence","enableIncrementalWorkers","performanceMode","smartFileWatching"]);function calculateBundleSize(t){let e=BASE_BUNDLE_SIZE;return t["explorerDates.enableOnboardingSystem"]&&(e+=CHUNK_SIZES.onboarding),t["explorerDates.enableAnalysisCommands"]&&(e+=CHUNK_SIZES.analysisCommands),t["explorerDates.enableExportReporting"]&&(e+=CHUNK_SIZES.exportReporting),t["explorerDates.enableExtensionApi"]&&(e+=CHUNK_SIZES.extensionApi),t["explorerDates.enableWorkspaceTemplates"]&&(e+=CHUNK_SIZES.workspaceTemplates),t["explorerDates.enableAdvancedCache"]&&(e+=CHUNK_SIZES.advancedCache),t["explorerDates.enableWorkspaceIntelligence"]&&(e+=CHUNK_SIZES.workspaceIntelligence),t["explorerDates.enableIncrementalWorkers"]&&(e+=CHUNK_SIZES.incrementalWorkers),e}function getDefaultPresetForProfile(t){let e=PRESET_DEFINITIONS;switch(t){case"minimal":case"extreme":return e.minimal||e.minimal;case"balanced":return e.balanced||e.balanced;case"web-development":return e["web-development"]||e["web-development"];case"data-science":return e["data-science"]||e["data-science"];case"enterprise":return e.enterprise||e.enterprise;default:return e.balanced||e.balanced}}module.exports={PRESET_DEFINITIONS,CHUNK_SIZES,BASE_BUNDLE_SIZE,RESTART_REQUIRED_SETTINGS,calculateBundleSize,getDefaultPresetForProfile}});var le=d((exports,module)=>{var{getLogger}=T(),env=typeof process<"u"&&process.env?process.env:{};function createFallbackVscodeMinimal(){return{workspace:{workspaceFolders:[],getConfiguration:()=>({get:()=>{},async update(){},inspect:()=>({defaultValue:void 0,globalValue:void 0,workspaceValue:void 0,workspaceFolderValue:void 0})})},ConfigurationTarget:{Global:1,Workspace:2,WorkspaceFolder:3}}}function resolveVscodeMinimal(){try{return require("vscode")}catch{return createFallbackVscodeMinimal()}}var MinimalSettingsCoordinator=class{constructor(e={}){this.x=e.defaultSection||"explorerDates",this.u=new Map,this.D=new Map,this.$=Number(env.EXPLORER_DATES_LOCK_WAIT_WARN_MS||1e3),this._logger=getLogger()}A(e,r){let s=(this.u.get(e)||Promise.resolve()).then(()=>r()),o=s.catch(()=>{});return this.u.set(e,o),s.finally(()=>{this.u.get(e)===o&&this.u.delete(e)}),s}g(e,r){return resolveVscodeMinimal().workspace.getConfiguration(e||void 0,r)}i(e,r){let a=r||this.x;return a?e.startsWith(`${a}.`)?{section:a,key:e.slice(a.length+1),fullKey:e}:e.includes(".")?{section:void 0,key:e,fullKey:e}:{section:a,key:e,fullKey:`${a}.${e}`}:{section:void 0,key:e,fullKey:e}}async updateSetting(e,r,a={}){return this.A(this.i(e,a.section).fullKey,async()=>{let s=this.i(e,a.section),o=this.g(s.section,a.resource);try{let n=this.R(a.scope,a.resource);return await o.update(s.key,r,n),{key:s.fullKey,updated:!0}}catch(n){try{this._logger.warn(`Configuration update failed for ${s.fullKey}: ${n&&n.message}`)}catch{}return{key:s.fullKey,updated:!1,error:n}}})}async applySettings(e,r={}){let a=Array.isArray(e)?e:Object.entries(e).map(([n,i])=>({key:n,value:i})),s=[];for(let n of a)try{s.push(await this.updateSetting(n.key,n.value,r))}catch(i){s.push({key:this.i(n.key,r.section).fullKey,updated:!1,error:i})}let o=s.filter(n=>n&&n.error);if(o.length>0){let n=o.map(l=>`${l.key}: ${l.error&&l.error.message?l.error.message:String(l.error)}`),i=new Error(`Failed to apply ${o.length} setting(s): ${n.join("; ")}`);throw i.details=o,i}return s}R(e,r){return e&&e!=="auto"?this.P(e)||resolveVscodeMinimal().ConfigurationTarget.Workspace:r?resolveVscodeMinimal().ConfigurationTarget.WorkspaceFolder:resolveVscodeMinimal().workspace.workspaceFolders&&resolveVscodeMinimal().workspace.workspaceFolders.length>0?resolveVscodeMinimal().ConfigurationTarget.Workspace:resolveVscodeMinimal().ConfigurationTarget.Global}P(e){switch(e){case"user":return resolveVscodeMinimal().ConfigurationTarget.Global;case"workspace":return resolveVscodeMinimal().ConfigurationTarget.Workspace;case"workspaceFolder":return resolveVscodeMinimal().ConfigurationTarget.WorkspaceFolder;default:return}}getValue(e,r={}){let{section:a,resource:s}=r||{},o=this.i(e,a);return this.g(o.section,s).get(o.key)}inspect(e,r={}){let{section:a,resource:s}=r||{},o=this.i(e,a);return this.g(o.section,s).inspect(o.key)}async clearSetting(e,r={}){return this.updateSetting(e,void 0,r)}getLockWaitStats(){let e={};for(let[r,a]of this.D.entries())e[r]={...a};return e}resetLockWaitStats(){this.D.clear()}},cachedCoordinator=null;function getSettingsCoordinator(options){if(!cachedCoordinator||options&&options.forceNew){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let t=null;try{t=dynamicRequire("../chunks/settings-coordinator-impl-chunk")}catch{}try{t||(t=dynamicRequire("../chunks/settingsCoordinator-impl-chunk"))}catch{}if(t&&typeof t.createSettingsCoordinatorImpl=="function")return cachedCoordinator=t.createSettingsCoordinatorImpl(options),cachedCoordinator}}catch{}try{let{WEB_CHUNK_GLOBAL_KEY:t,LEGACY_WEB_CHUNK_GLOBAL_KEY:e}=M(),r=typeof globalThis<"u"&&(globalThis[t]||globalThis[e])||null;if(r&&r.settingsCoordinatorImpl&&typeof r.settingsCoordinatorImpl.createSettingsCoordinatorImpl=="function")return cachedCoordinator=r.settingsCoordinatorImpl.createSettingsCoordinatorImpl(options),cachedCoordinator}catch{}cachedCoordinator=new MinimalSettingsCoordinator(options)}return cachedCoordinator}module.exports={getSettingsCoordinator,MinimalSettingsCoordinator}});var ce=d((exports,module)=>{var vscode=require("vscode"),getLogger=()=>{try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let t=dynamicRequire("./chunks/logger-chunk");if(t&&typeof t.getLogger=="function")return getLogger=t.getLogger,getLogger()}}catch{}try{return getLogger=T().getLogger,getLogger()}catch{return getLogger=()=>({debug:(()=>{})?.bind(console)||console.log,info:(()=>{}).bind(console),warn:(()=>{}).bind(console),error:(()=>{}).bind(console)}),getLogger()}},{generateWorkspaceKey,detectWorkspaceProfile,analyzeWorkspaceEnvironment}=ie(),{PRESET_DEFINITIONS,calculateBundleSize,getDefaultPresetForProfile,RESTART_REQUIRED_SETTINGS}=V(),{getSettingsCoordinator}=le(),{WORKSPACE_SCALE_LARGE_THRESHOLD,WORKSPACE_SCALE_EXTREME_THRESHOLD}=M(),{diagLog}=P(),isWebRuntime=(()=>{try{return vscode?.env?.uiKind===vscode?.UIKind?.Web}catch{return!1}})(),logger=getLogger(),quickPickUnavailableMessage="Explorer Dates: This action is unavailable in this environment.";function ensureQuickPickAvailable(t){if(typeof vscode?.window?.showQuickPick=="function")return!0;diagLog("warn","QuickPick unavailable",{context:t,isWeb:isWebRuntime});try{typeof vscode?.window?.showInformationMessage=="function"&&vscode.window.showInformationMessage(quickPickUnavailableMessage)}catch{}return!1}var RuntimeConfigManager=class{constructor(e){this.z=e,this.e=e.globalState,this.f=null,this.o=null,this.a="explorerDates.pendingRestart",this.E="explorerDates.suggestionHistory",this.p="explorerDates.presetBackup",this.h="explorerDates.lastPreset",this.y=getSettingsCoordinator(),this.M(),logger.info("Runtime configuration manager initialized")}async getCurrentRuntimeState(){let e=vscode.workspace.getConfiguration("explorerDates"),r=this.n(e),a=this.r(null,r),s=vscode.workspace.workspaceFolders?.[0]?.uri,o=await analyzeWorkspaceEnvironment(s);return{currentSettings:r,currentBundleSize:a,analysis:o,availablePresets:Object.keys(PRESET_DEFINITIONS),pendingRestart:this.e.get(this.a,[]),timestamp:Date.now()}}async checkAutoSuggestion(e=!1){try{let r=vscode.workspace.workspaceFolders?.[0]?.uri;if(!r){e&&vscode.window.showInformationMessage("Explorer Dates: No workspace folder is open. Open a folder to receive configuration suggestions.");return}let a=await detectWorkspaceProfile(r),s=generateWorkspaceKey(r,a),o=this.e.get(this.E,{}),n=o[s];if(e||!n||n.profileDetected!==a||await this.I(n)){let l=await this.S(a);if(l){if(e&&l.reason==="minimal savings")vscode.window.showInformationMessage(`Explorer Dates: Your configuration is already well-optimized for a ${a} workspace. No changes recommended.`);else if(l.accepted!==void 0){let w=await analyzeWorkspaceEnvironment(r);o[s]={profileDetected:a,suggestedAt:Date.now(),fileCountAtSuggestion:w?.fileCount||0,accepted:l.accepted,presetId:l.preset},await this.e.update(this.E,o),logger.info("Auto-suggestion updated:",o[s])}}}else e&&(await this.S(a))?.reason==="minimal savings"&&vscode.window.showInformationMessage(`Explorer Dates: Your configuration is already well-optimized for a ${a} workspace. No changes recommended.`)}catch(r){logger.error("Auto-suggestion check failed:",r)}}async S(e){let r=this.n(vscode.workspace.getConfiguration("explorerDates")),a=getDefaultPresetForProfile(e),s=this.r(null,r),o=a?this.r(a.settings,r):s,n=s-o;if(n<=10)return{accepted:!1,preset:e,reason:"minimal savings"};let i=`Explorer Dates detected a ${e} workspace. Would you like to apply ${a.name} settings? This could save ~${n}KB.`;switch(await vscode.window.showInformationMessage(i,{modal:!1},"Apply Settings","Show Details","Not Now")){case"Apply Settings":return await this.b(a.id,a),{accepted:!0,preset:e};case"Show Details":return await this.showPresetComparison(r,a),{accepted:!1,preset:e};default:return{accepted:!1,preset:e}}}async b(e,r=null){let a=r||PRESET_DEFINITIONS[e];if(!a)throw new Error(`Unknown preset: ${e}`);let s=this.n(vscode.workspace.getConfiguration("explorerDates"));await this.W(e,s);let o=Object.entries(a.settings||{}),n=[],i=[],l=[],w=isWebRuntime?"user":"workspace",Re=`apply-preset:${e}`,Pe=c=>{try{if(!c||typeof c!="string")return!1;let A="explorerDates.";if(c.startsWith(A)){let _=c.slice(A.length),k=vscode.workspace.getConfiguration("explorerDates").inspect(_);return k?[k.defaultValue,k.globalValue,k.workspaceValue,k.workspaceFolderValue].some(Ie=>Ie!==void 0):!1}let u=vscode.workspace.getConfiguration().inspect(c);return u?[u.defaultValue,u.globalValue,u.workspaceValue,u.workspaceFolderValue].some(_=>_!==void 0):!1}catch{return!1}};for(let[c,A]of o){if(!Pe(c)){i.push(c),diagLog("warn","Preset skipped unregistered setting",{key:c,presetId:e});continue}try{n.push(await this.y.updateSetting(c,A,{scope:w,reason:Re}))}catch(u){l.push({key:c,error:u}),logger.warn(`Preset application failed for ${c}: ${u&&u.message?u.message:String(u)}`)}}let h=n.filter(c=>c.updated).map(c=>c.key.replace("explorerDates.","")),Me=`Applied "${a.name}" preset. Applied: ${h.length}. Skipped: ${i.length}. Failed: ${l.length}.`;try{vscode.window.showInformationMessage(Me)}catch{}if(logger.info(`Applied ${a.name} preset`,{changedSettings:h,skipped:i,failed:l.length}),diagLog("info","Preset applied summary",{presetId:e,applied:h.length,skipped:i,failed:l.map(c=>c.key),webRuntime:isWebRuntime}),h.length>0){this.v(h);try{await vscode.commands.executeCommand("explorerDates.refreshDateDecorations"),diagLog("info","Preset refresh triggered",{presetId:e,applied:h.length,skipped:i.length})}catch(c){diagLog("warn","Preset refresh failed",{presetId:e,error:c?.message})}}return{applied:h.length,preset:a,requiresRestart:h.some(c=>RESTART_REQUIRED_SETTINGS.has(c)),estimatedBundleSize:this.r()}}async restorePreviousPreset(e={}){let r=this.e.get(this.p,null);if(!r?.settings)return e.silent||vscode.window.showInformationMessage("No previous preset available to restore."),{restored:!1,reason:"no-backup"};let a;try{a=await this.y.applySettings(r.settings,{scope:"workspace",reason:"restore-previous-preset"})}catch(o){throw e.silent||vscode.window.showErrorMessage(`Failed to restore previous preset: ${o.message}`),logger.error("Preset rollback failed:",o),o}let s=a.filter(o=>o.updated).map(o=>o.key.replace("explorerDates.",""));return await this.e.update(this.a,[]),await this.e.update(this.p,null),await this.e.update(this.h,r.previousPreset||null),e.silent||vscode.window.showInformationMessage("Previous preset restored."),{restored:!0,changedSettings:s,restoredPreset:r.previousPreset||"unknown"}}async showPresetComparison(e,r){if(!ensureQuickPickAvailable("runtimeConfig.showPresetComparison"))return;let a=e||this.n(vscode.workspace.getConfiguration("explorerDates")),s=this.r(null,a),o=r?this.r(r.settings,a):s,n=s-o,i=[{label:"\u{1F4E6} Current Configuration",description:`Bundle: ${s}KB total`,detail:this.C(a),action:"current"},r?{label:`\u26A1 Recommended: ${r.name}`,description:`Bundle: ${o}KB total (saves ${Math.max(0,n)}KB)`,detail:this.C(r.settings),action:"apply",preset:r}:null,{label:"\u{1F527} Browse All Presets...",description:`Choose from ${Object.keys(PRESET_DEFINITIONS).length} available presets`,detail:"Minimal, Balanced, Web Development, Enterprise, Data Science",action:"browse"}].filter(Boolean),l=await vscode.window.showQuickPick(i,{placeHolder:"Choose configuration approach",ignoreFocusOut:!0,matchOnDescription:!0,matchOnDetail:!0});if(l)switch(l.action){case"apply":l.preset&&await this.b(l.preset.id,l.preset);break;case"browse":await this.showAllPresets();break}}async showAllPresets(){if(!ensureQuickPickAvailable("runtimeConfig.showAllPresets"))return;let e=this.n(vscode.workspace.getConfiguration("explorerDates")),r=this.r(null,e),a=Object.values(PRESET_DEFINITIONS).map(o=>{let n=this.r(o.settings,e),i=r-n,l=i>0?`saves ${i}KB`:i<0?`adds ${Math.abs(i)}KB`:"same size";return{label:`${o.name}`,description:`${n}KB (${l})`,detail:`${o.description} - ${o.targetScenarios.join(", ")}`,preset:o}}),s=await vscode.window.showQuickPick(a,{placeHolder:"Select a preset configuration",ignoreFocusOut:!0,matchOnDescription:!0,matchOnDetail:!0});s?.preset&&await vscode.window.showInformationMessage(`Apply "${s.preset.name}" preset? +var We=Object.create;var U=Object.defineProperty;var Le=Object.getOwnPropertyDescriptor;var Ne=Object.getOwnPropertyNames;var Fe=Object.getPrototypeOf,_e=Object.prototype.hasOwnProperty;var d=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var Oe=(t,e,r,a)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of Ne(e))!_e.call(t,s)&&s!==r&&U(t,s,{get:()=>e[s],enumerable:!(a=Le(e,s))||a.enumerable});return t};var O=(t,e,r)=>(r=t!=null?We(Fe(t)):{},Oe(e||!t||!t.__esModule?U(r,"default",{value:t,enumerable:!0}):r,t));var T=d((xt,Z)=>{var y="__explorerDatesLogger",S=class{constructor(){this.c=null}d(e,r){if(this.c&&typeof this.c[e]=="function")try{return this.c[e](...r)}catch{}switch(e){case"debug":break;case"info":break;case"warn":break;case"error":break;default:break}}debug(...e){return this.d("debug",e)}info(...e){return this.d("info",e)}warn(...e){return this.d("warn",e)}error(...e){return this.d("error",e)}O(e){this.c=e}};function $e(){return typeof global<"u"?(global[y]||(global[y]=new S),global[y]):typeof globalThis<"u"?(globalThis[y]||(globalThis[y]=new S),globalThis[y]):($||($=new S),$)}var z=class extends S{},$=null;Z.exports={Logger:z,getLogger:$e}});var P=d((At,J)=>{var X=typeof process<"u"&&process.env?process.env:{},Q="[ExplorerDates][WebDiag]",H="__explorerDatesWebDiagnostics",R;function ze(){try{let t=require("vscode");return t?.env?.uiKind===t?.UIKind?.Web}catch{return X.VSCODE_WEB==="true"}}function p(){return R!==void 0||(R=X.EXPLORER_DATES_WEB_DIAG==="1"||ze()),R}function Y(){return{enabled:p(),logs:[],logOnce:new Set,commandsRegistered:new Set,commandsInvoked:[],errors:[],chunkLoads:[],provider:{created:!1,registered:!1,hydrated:!1,decorationCalls:0,refreshCalls:0,lastEvent:null}}}var He=Y();function m(){return typeof globalThis<"u"?(globalThis[H]||(globalThis[H]=Y()),globalThis[H]):He}function Ke(t){try{return JSON.stringify(t)}catch{return String(t)}}function g(t,e,r){if(!p())return;let a=m(),s={ts:new Date().toISOString(),level:t,message:e,meta:r||null};a.logs.push(s),a.logs.length>400&&a.logs.shift();let o=r?`${Q} ${e} ${Ke(r)}`:`${Q} ${e}`,n=console[t]||console.info;try{n(o)}catch{}}function qe(t,e,r,a){if(!p())return;let s=m();s.logOnce.has(t)||(s.logOnce.add(t),g(e,r,a))}function Be(t){if(!p())return;m().commandsRegistered.add(t),g("info","Command registered",{commandId:t})}function Ve(t){if(!p())return;m().commandsInvoked.push({commandId:t,ts:Date.now()}),g("info","Command invoked",{commandId:t})}function je(t,e,r,a,s){if(!p())return;let o=a||(e?"behavioral-success":"unhandled-command-failure"),n=r?{name:r.name||"Error",message:r.message||String(r),code:r.code||null}:null;e?g("info","Command completed",{commandId:t,outcomeCategory:o}):(g("error","Command failed",{commandId:t,outcomeCategory:o,error:n,errorContext:s||null}),m().errors.push({commandId:t,outcomeCategory:o,error:n,errorContext:s||null}))}function Ge(t,e,r){if(!p())return;m().chunkLoads.push({chunkName:t,stage:e,ts:Date.now(),error:r?r.message||String(r):null}),g(r?"warn":"info",`Chunk ${e}`,{chunkName:t,error:r?.message})}function Ue(t,e){if(!p())return;let r=m();r.provider.lastEvent={event:t,ts:Date.now(),meta:e||null},t==="created"&&(r.provider.created=!0),t==="registered"&&(r.provider.registered=!0),t==="hydrated"&&(r.provider.hydrated=!0),g("info",`Provider ${t}`,e)}function Ze(){if(!p())return;let t=m();t.provider.decorationCalls+=1,t.provider.decorationCalls<=3&&g("info","Decoration request observed",{count:t.provider.decorationCalls})}function Qe(){if(!p())return;let t=m();t.provider.refreshCalls+=1}J.exports={isWebDiagnosticsEnabled:p,getWebDiagnosticsState:m,diagLog:g,diagLogOnce:qe,recordCommandRegistration:Be,recordCommandInvocation:Ve,recordCommandResult:je,recordChunkEvent:Ge,recordProviderEvent:Ue,recordDecorationCall:Ze,recordRefreshCall:Qe}});var M=d((Rt,te)=>{var v=typeof process<"u"&&process.env?process.env:{},Xe=12e4,Ye=1e4,Je=1440*60*1e3,et=2,tt=["Ja","Fe","Mr","Ap","My","Jn","Jl","Au","Se","Oc","No","De"],rt=Number(v.EXPLORER_DATES_DECORATION_POOL_SIZE||2048),at=Number(v.EXPLORER_DATES_FLYWEIGHT_CACHE_SIZE||4096),st=Number(v.EXPLORER_DATES_WORKSPACE_BALANCED_THRESHOLD||15e3),ot=Number(v.EXPLORER_DATES_WORKSPACE_LARGE_THRESHOLD||25e4),ee=Number(v.EXPLORER_DATES_WORKSPACE_EXTREME_THRESHOLD||4e5),nt=Number(v.EXPLORER_DATES_WORKSPACE_SCAN_MAX_RESULTS||Math.min(ee+1,50001)),it={ADVANCED_CACHE:"explorerDates.advancedCache",ADVANCED_CACHE_METADATA:"explorerDates.advancedCacheMetadata",TEMPLATE_STORE:"explorerDates.templates",WEB_GIT_NOTICE:"explorerDates.webGitNotice"},lt="explorerDatesChunks",ct="__explorerDatesChunks";te.exports={DEFAULT_CACHE_TIMEOUT:Xe,DEFAULT_MAX_CACHE_SIZE:Ye,DEFAULT_PERSISTENT_CACHE_TTL:Je,DEFAULT_DECORATION_POOL_SIZE:rt,DEFAULT_FLYWEIGHT_CACHE_SIZE:at,MAX_BADGE_LENGTH:et,MONTH_ABBREVIATIONS:tt,WORKSPACE_SCALE_BALANCED_THRESHOLD:st,WORKSPACE_SCALE_LARGE_THRESHOLD:ot,WORKSPACE_SCALE_EXTREME_THRESHOLD:ee,WORKSPACE_SCAN_MAX_RESULTS:nt,GLOBAL_STATE_KEYS:it,WEB_CHUNK_GLOBAL_KEY:lt,LEGACY_WEB_CHUNK_GLOBAL_KEY:ct}});var ie=d((Pt,ne)=>{var f=require("vscode"),{getLogger:dt}=T(),{WORKSPACE_SCALE_BALANCED_THRESHOLD:re,WORKSPACE_SCALE_LARGE_THRESHOLD:W,WORKSPACE_SCALE_EXTREME_THRESHOLD:ae,WORKSPACE_SCAN_MAX_RESULTS:se}=M(),K=dt(),I=null;function oe(t){return t&&(t.fsPath||t.path)||null}function q(t,e){let r=oe(t);!r||typeof e!="number"||(I={workspaceKey:r,fileCount:e,timestamp:Date.now()})}function B(t){let e=oe(t);return!e||!I||I.workspaceKey!==e?null:I}function ut(t,e="default"){if(!t)return`unknown-workspace-${e}`;let r=t.fsPath||t.path||"",a=r.split("/").pop()||"workspace",s=Math.abs(r.split("").reduce((n,i)=>(n=(n<<5)-n+i.charCodeAt(0),n&n),0)).toString(36).substr(0,8),o=Math.abs(e.split("").reduce((n,i)=>(n=(n<<5)-n+i.charCodeAt(0),n&n),0)).toString(36).substr(0,4);return`${a}-${s}-${o}`}async function pt(t){try{if(!t)return"unknown";let e=B(t),r;e?r=e.fileCount:(r=(await f.workspace.findFiles("**/*",null,se)).length,q(t,r));let a="small";r>=ae?a="extreme":r>=W?a="large":r>=1e3&&(a="medium");let s=f.env.remoteName,o=f.env.uiKind===f.UIKind.Web,n=a==="medium"&&r>=re&&rw.toLowerCase());if(l.includes("package.json")||l.includes("yarn.lock"))return"web-development";if(l.some(w=>w.endsWith(".ipynb"))||l.includes("requirements.txt"))return"data-science";if(l.includes("docker-compose.yml")||l.includes(".enterprise"))return"enterprise"}catch(i){K.debug("Project type detection failed:",i)}return"full"}catch(e){return K.error("Workspace profile detection failed:",e),"unknown"}}async function mt(t){if(!t)return null;try{let e=B(t),r;e?r=e.fileCount:(r=(await f.workspace.findFiles("**/*",null,se)).length,q(t,r));let a="small";r>=ae?a="extreme":r>=W?a="large":r>=1e3&&(a="medium");let s=!!f.env.remoteName,o=f.env.uiKind===f.UIKind.Web,n=o?"web":s?"remote":"local",i=a==="medium"&&r>=re&&r{var CHUNK_SIZES={onboarding:34,analysisCommands:23,exportReporting:17,extensionApi:15,workspaceTemplates:14,advancedCache:28,workspaceIntelligence:31,incrementalWorkers:19},BASE_BUNDLE_SIZE=99;function _getPresetDefinitionsSync(){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let t=dynamicRequire("./chunks/preset-definitions-chunk");if(t&&t.PRESET_DEFINITIONS)return t.PRESET_DEFINITIONS}}catch{}let FALLBACK_PRESET={minimal:{id:"minimal",name:"Minimal",description:"Lean setup that prioritizes responsiveness in large repos.",targetScenarios:["Large repos","Low resources","Minimal UI"],settings:{"explorerDates.performanceMode":!0,"explorerDates.showDateDecorations":!0}},balanced:{id:"balanced",name:"Balanced",description:"Default feature mix for most workspaces.",targetScenarios:["General development","Mixed workloads"],settings:{"explorerDates.enableOnboardingSystem":!0,"explorerDates.enableAnalysisCommands":!0,"explorerDates.performanceMode":!1,"explorerDates.dateDecorationFormat":"smart","explorerDates.colorScheme":"recency","explorerDates.badgePriority":"time"}},"web-development":{id:"web-development",name:"Web Development",description:"Optimized for frontend and full-stack web projects.",targetScenarios:["Web apps","Frontend teams"],settings:{"explorerDates.enableOnboardingSystem":!0,"explorerDates.dateDecorationFormat":"smart","explorerDates.colorScheme":"file-type","explorerDates.badgePriority":"time"}},enterprise:{id:"enterprise",name:"Enterprise",description:"Full feature set with reporting and integrations enabled.",targetScenarios:["Large teams","Governed environments"],settings:{"explorerDates.enableExportReporting":!0,"explorerDates.enableExtensionApi":!0,"explorerDates.dateDecorationFormat":"smart","explorerDates.colorScheme":"recency","explorerDates.badgePriority":"time"}},"data-science":{id:"data-science",name:"Data Science",description:"Insight-focused profile for data-heavy projects.",targetScenarios:["Data analysis","Research workflows"],settings:{"explorerDates.enableWorkspaceIntelligence":!0,"explorerDates.dateDecorationFormat":"iso-detailed","explorerDates.colorScheme":"recency","explorerDates.badgePriority":"time"}}};return FALLBACK_PRESET}var PRESET_DEFINITIONS=_getPresetDefinitionsSync(),RESTART_REQUIRED_SETTINGS=new Set(["enableOnboardingSystem","enableAnalysisCommands","enableExportReporting","enableExtensionApi","enableWorkspaceTemplates","enableAdvancedCache","enableWorkspaceIntelligence","enableIncrementalWorkers","performanceMode","smartFileWatching"]);function calculateBundleSize(t){let e=BASE_BUNDLE_SIZE;return t["explorerDates.enableOnboardingSystem"]&&(e+=CHUNK_SIZES.onboarding),t["explorerDates.enableAnalysisCommands"]&&(e+=CHUNK_SIZES.analysisCommands),t["explorerDates.enableExportReporting"]&&(e+=CHUNK_SIZES.exportReporting),t["explorerDates.enableExtensionApi"]&&(e+=CHUNK_SIZES.extensionApi),t["explorerDates.enableWorkspaceTemplates"]&&(e+=CHUNK_SIZES.workspaceTemplates),t["explorerDates.enableAdvancedCache"]&&(e+=CHUNK_SIZES.advancedCache),t["explorerDates.enableWorkspaceIntelligence"]&&(e+=CHUNK_SIZES.workspaceIntelligence),t["explorerDates.enableIncrementalWorkers"]&&(e+=CHUNK_SIZES.incrementalWorkers),e}function getDefaultPresetForProfile(t){let e=PRESET_DEFINITIONS;switch(t){case"minimal":case"extreme":return e.minimal||e.minimal;case"balanced":return e.balanced||e.balanced;case"web-development":return e["web-development"]||e["web-development"];case"data-science":return e["data-science"]||e["data-science"];case"enterprise":return e.enterprise||e.enterprise;default:return e.balanced||e.balanced}}module.exports={PRESET_DEFINITIONS,CHUNK_SIZES,BASE_BUNDLE_SIZE,RESTART_REQUIRED_SETTINGS,calculateBundleSize,getDefaultPresetForProfile}});var le=d((exports,module)=>{var{getLogger}=T(),env=typeof process<"u"&&process.env?process.env:{};function createFallbackVscodeMinimal(){return{workspace:{workspaceFolders:[],getConfiguration:()=>({get:()=>{},async update(){},inspect:()=>({defaultValue:void 0,globalValue:void 0,workspaceValue:void 0,workspaceFolderValue:void 0})})},ConfigurationTarget:{Global:1,Workspace:2,WorkspaceFolder:3}}}function resolveVscodeMinimal(){try{return require("vscode")}catch{return createFallbackVscodeMinimal()}}var MinimalSettingsCoordinator=class{constructor(e={}){this.x=e.defaultSection||"explorerDates",this.u=new Map,this.D=new Map,this.$=Number(env.EXPLORER_DATES_LOCK_WAIT_WARN_MS||1e3),this._logger=getLogger()}A(e,r){let s=(this.u.get(e)||Promise.resolve()).then(()=>r()),o=s.catch(()=>{});return this.u.set(e,o),s.finally(()=>{this.u.get(e)===o&&this.u.delete(e)}),s}g(e,r){return resolveVscodeMinimal().workspace.getConfiguration(e||void 0,r)}i(e,r){let a=r||this.x;return a?e.startsWith(`${a}.`)?{section:a,key:e.slice(a.length+1),fullKey:e}:e.includes(".")?{section:void 0,key:e,fullKey:e}:{section:a,key:e,fullKey:`${a}.${e}`}:{section:void 0,key:e,fullKey:e}}async updateSetting(e,r,a={}){return this.A(this.i(e,a.section).fullKey,async()=>{let s=this.i(e,a.section),o=this.g(s.section,a.resource);try{let n=this.R(a.scope,a.resource);return await o.update(s.key,r,n),{key:s.fullKey,updated:!0}}catch(n){try{this._logger.warn(`Configuration update failed for ${s.fullKey}: ${n&&n.message}`)}catch{}return{key:s.fullKey,updated:!1,error:n}}})}async applySettings(e,r={}){let a=Array.isArray(e)?e:Object.entries(e).map(([n,i])=>({key:n,value:i})),s=[];for(let n of a)try{s.push(await this.updateSetting(n.key,n.value,r))}catch(i){s.push({key:this.i(n.key,r.section).fullKey,updated:!1,error:i})}let o=s.filter(n=>n&&n.error);if(o.length>0){let n=o.map(l=>`${l.key}: ${l.error&&l.error.message?l.error.message:String(l.error)}`),i=new Error(`Failed to apply ${o.length} setting(s): ${n.join("; ")}`);throw i.details=o,i}return s}R(e,r){return e&&e!=="auto"?this.P(e)||resolveVscodeMinimal().ConfigurationTarget.Workspace:r?resolveVscodeMinimal().ConfigurationTarget.WorkspaceFolder:resolveVscodeMinimal().workspace.workspaceFolders&&resolveVscodeMinimal().workspace.workspaceFolders.length>0?resolveVscodeMinimal().ConfigurationTarget.Workspace:resolveVscodeMinimal().ConfigurationTarget.Global}P(e){switch(e){case"user":return resolveVscodeMinimal().ConfigurationTarget.Global;case"workspace":return resolveVscodeMinimal().ConfigurationTarget.Workspace;case"workspaceFolder":return resolveVscodeMinimal().ConfigurationTarget.WorkspaceFolder;default:return}}getValue(e,r={}){let{section:a,resource:s}=r||{},o=this.i(e,a);return this.g(o.section,s).get(o.key)}inspect(e,r={}){let{section:a,resource:s}=r||{},o=this.i(e,a);return this.g(o.section,s).inspect(o.key)}async clearSetting(e,r={}){return this.updateSetting(e,void 0,r)}getLockWaitStats(){let e={};for(let[r,a]of this.D.entries())e[r]={...a};return e}resetLockWaitStats(){this.D.clear()}},cachedCoordinator=null;function getSettingsCoordinator(options){if(!cachedCoordinator||options&&options.forceNew){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let t=null;try{t=dynamicRequire("../chunks/settings-coordinator-impl-chunk")}catch{}try{t||(t=dynamicRequire("../chunks/settingsCoordinator-impl-chunk"))}catch{}if(t&&typeof t.createSettingsCoordinatorImpl=="function")return cachedCoordinator=t.createSettingsCoordinatorImpl(options),cachedCoordinator}}catch{}try{let{WEB_CHUNK_GLOBAL_KEY:t,LEGACY_WEB_CHUNK_GLOBAL_KEY:e}=M(),r=typeof globalThis<"u"&&(globalThis[t]||globalThis[e])||null;if(r&&r.settingsCoordinatorImpl&&typeof r.settingsCoordinatorImpl.createSettingsCoordinatorImpl=="function")return cachedCoordinator=r.settingsCoordinatorImpl.createSettingsCoordinatorImpl(options),cachedCoordinator}catch{}cachedCoordinator=new MinimalSettingsCoordinator(options)}return cachedCoordinator}module.exports={getSettingsCoordinator,MinimalSettingsCoordinator}});var ce=d((exports,module)=>{var vscode=require("vscode"),getLogger=()=>{try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let t=dynamicRequire("./chunks/logger-chunk");if(t&&typeof t.getLogger=="function")return getLogger=t.getLogger,getLogger()}}catch{}try{return getLogger=T().getLogger,getLogger()}catch{return getLogger=()=>({debug:(()=>{})?.bind(console)||console.log,info:(()=>{}).bind(console),warn:(()=>{}).bind(console),error:(()=>{}).bind(console)}),getLogger()}},{generateWorkspaceKey,detectWorkspaceProfile,analyzeWorkspaceEnvironment}=ie(),{PRESET_DEFINITIONS,calculateBundleSize,getDefaultPresetForProfile,RESTART_REQUIRED_SETTINGS}=V(),{getSettingsCoordinator}=le(),{WORKSPACE_SCALE_LARGE_THRESHOLD,WORKSPACE_SCALE_EXTREME_THRESHOLD}=M(),{diagLog}=P(),isWebRuntime=(()=>{try{return vscode?.env?.uiKind===vscode?.UIKind?.Web}catch{return!1}})(),logger=getLogger(),quickPickUnavailableMessage="Explorer Dates: This action is unavailable in this environment.";function ensureQuickPickAvailable(t){if(typeof vscode?.window?.showQuickPick=="function")return!0;diagLog("warn","QuickPick unavailable",{context:t,isWeb:isWebRuntime});try{typeof vscode?.window?.showInformationMessage=="function"&&vscode.window.showInformationMessage(quickPickUnavailableMessage)}catch{}return!1}var RuntimeConfigManager=class{constructor(e){this.z=e,this.e=e.globalState,this.f=null,this.o=null,this.a="explorerDates.pendingRestart",this.E="explorerDates.suggestionHistory",this.p="explorerDates.presetBackup",this.h="explorerDates.lastPreset",this.y=getSettingsCoordinator(),this.M(),logger.info("Runtime configuration manager initialized")}async getCurrentRuntimeState(){let e=vscode.workspace.getConfiguration("explorerDates"),r=this.n(e),a=this.r(null,r),s=vscode.workspace.workspaceFolders?.[0]?.uri,o=await analyzeWorkspaceEnvironment(s);return{currentSettings:r,currentBundleSize:a,analysis:o,availablePresets:Object.keys(PRESET_DEFINITIONS),pendingRestart:this.e.get(this.a,[]),timestamp:Date.now()}}async checkAutoSuggestion(e=!1){try{let r=vscode.workspace.workspaceFolders?.[0]?.uri;if(!r){e&&vscode.window.showInformationMessage("Explorer Dates: No workspace folder is open. Open a folder to receive configuration suggestions.");return}let a=await detectWorkspaceProfile(r),s=generateWorkspaceKey(r,a),o=this.e.get(this.E,{}),n=o[s];if(e||!n||n.profileDetected!==a||await this.I(n)){let l=await this.S(a);if(l){if(e&&l.reason==="minimal savings")vscode.window.showInformationMessage(`Explorer Dates: Your configuration is already well-optimized for a ${a} workspace. No changes recommended.`);else if(l.accepted!==void 0){let w=await analyzeWorkspaceEnvironment(r);o[s]={profileDetected:a,suggestedAt:Date.now(),fileCountAtSuggestion:w?.fileCount||0,accepted:l.accepted,presetId:l.preset},await this.e.update(this.E,o),logger.info("Auto-suggestion updated:",o[s])}}}else e&&(await this.S(a))?.reason==="minimal savings"&&vscode.window.showInformationMessage(`Explorer Dates: Your configuration is already well-optimized for a ${a} workspace. No changes recommended.`)}catch(r){logger.error("Auto-suggestion check failed:",r)}}async S(e){let r=this.n(vscode.workspace.getConfiguration("explorerDates")),a=getDefaultPresetForProfile(e),s=this.r(null,r),o=a?this.r(a.settings,r):s,n=s-o;if(n<=10)return{accepted:!1,preset:e,reason:"minimal savings"};let i=`Explorer Dates detected a ${e} workspace. Would you like to apply ${a.name} settings? This could save ~${n}KB.`;switch(await vscode.window.showInformationMessage(i,{modal:!1},"Apply Settings","Show Details","Not Now")){case"Apply Settings":return await this.b(a.id,a),{accepted:!0,preset:e};case"Show Details":return await this.showPresetComparison(r,a),{accepted:!1,preset:e};default:return{accepted:!1,preset:e}}}async b(e,r=null){let a=r||PRESET_DEFINITIONS[e];if(!a)throw new Error(`Unknown preset: ${e}`);let s=this.n(vscode.workspace.getConfiguration("explorerDates"));await this.W(e,s);let o=Object.entries(a.settings||{}),n=[],i=[],l=[],w=isWebRuntime?"user":"workspace",Re=`apply-preset:${e}`,Pe=c=>{try{if(!c||typeof c!="string")return!1;let A="explorerDates.";if(c.startsWith(A)){let _=c.slice(A.length),k=vscode.workspace.getConfiguration("explorerDates").inspect(_);return k?[k.defaultValue,k.globalValue,k.workspaceValue,k.workspaceFolderValue].some(Ie=>Ie!==void 0):!1}let u=vscode.workspace.getConfiguration().inspect(c);return u?[u.defaultValue,u.globalValue,u.workspaceValue,u.workspaceFolderValue].some(_=>_!==void 0):!1}catch{return!1}};for(let[c,A]of o){if(!Pe(c)){i.push(c),diagLog("warn","Preset skipped unregistered setting",{key:c,presetId:e});continue}try{n.push(await this.y.updateSetting(c,A,{scope:w,reason:Re}))}catch(u){l.push({key:c,error:u}),logger.warn(`Preset application failed for ${c}: ${u&&u.message?u.message:String(u)}`)}}let h=n.filter(c=>c.updated).map(c=>c.key.replace("explorerDates.","")),Me=`Applied "${a.name}" preset. Applied: ${h.length}. Skipped: ${i.length}. Failed: ${l.length}.`;try{vscode.window.showInformationMessage(Me)}catch{}if(logger.info(`Applied ${a.name} preset`,{changedSettings:h,skipped:i,failed:l.length}),diagLog("info","Preset applied summary",{presetId:e,applied:h.length,skipped:i,failed:l.map(c=>c.key),webRuntime:isWebRuntime}),h.length>0){this.v(h);try{await vscode.commands.executeCommand("explorerDates.refreshDateDecorations"),diagLog("info","Preset refresh triggered",{presetId:e,applied:h.length,skipped:i.length})}catch(c){diagLog("warn","Preset refresh failed",{presetId:e,error:c?.message})}}return{applied:h.length,preset:a,requiresRestart:h.some(c=>RESTART_REQUIRED_SETTINGS.has(c)),estimatedBundleSize:this.r()}}async restorePreviousPreset(e={}){let r=this.e.get(this.p,null);if(!r?.settings)return e.silent||vscode.window.showInformationMessage("No previous preset available to restore."),{restored:!1,reason:"no-backup"};let a;try{a=await this.y.applySettings(r.settings,{scope:"workspace",reason:"restore-previous-preset"})}catch(o){throw e.silent||vscode.window.showErrorMessage(`Failed to restore previous preset: ${o.message}`),logger.error("Preset rollback failed:",o),o}let s=a.filter(o=>o.updated).map(o=>o.key.replace("explorerDates.",""));return await this.e.update(this.a,[]),await this.e.update(this.p,null),await this.e.update(this.h,r.previousPreset||null),e.silent||vscode.window.showInformationMessage("Previous preset restored."),{restored:!0,changedSettings:s,restoredPreset:r.previousPreset||"unknown"}}async showPresetComparison(e,r){if(!ensureQuickPickAvailable("runtimeConfig.showPresetComparison"))return;let a=e||this.n(vscode.workspace.getConfiguration("explorerDates")),s=this.r(null,a),o=r?this.r(r.settings,a):s,n=s-o,i=[{label:"\u{1F4E6} Current Configuration",description:`Bundle: ${s}KB total`,detail:this.C(a),action:"current"},r?{label:`\u26A1 Recommended: ${r.name}`,description:`Bundle: ${o}KB total (saves ${Math.max(0,n)}KB)`,detail:this.C(r.settings),action:"apply",preset:r}:null,{label:"\u{1F527} Browse All Presets...",description:`Choose from ${Object.keys(PRESET_DEFINITIONS).length} available presets`,detail:"Minimal, Balanced, Web Development, Enterprise, Data Science",action:"browse"}].filter(Boolean),l=await vscode.window.showQuickPick(i,{placeHolder:"Choose configuration approach",ignoreFocusOut:!0,matchOnDescription:!0,matchOnDetail:!0});if(l)switch(l.action){case"apply":l.preset&&await this.b(l.preset.id,l.preset);break;case"browse":await this.showAllPresets();break}}async showAllPresets(){if(!ensureQuickPickAvailable("runtimeConfig.showAllPresets"))return;let e=this.n(vscode.workspace.getConfiguration("explorerDates")),r=this.r(null,e),a=Object.values(PRESET_DEFINITIONS).map(o=>{let n=this.r(o.settings,e),i=r-n,l=i>0?`saves ${i}KB`:i<0?`adds ${Math.abs(i)}KB`:"same size";return{label:`${o.name}`,description:`${n}KB (${l})`,detail:`${o.description} - ${o.targetScenarios.join(", ")}`,preset:o}}),s=await vscode.window.showQuickPick(a,{placeHolder:"Select a preset configuration",ignoreFocusOut:!0,matchOnDescription:!0,matchOnDetail:!0});s?.preset&&await vscode.window.showInformationMessage(`Apply "${s.preset.name}" preset? ${s.preset.description}`,{modal:!1},"Apply","Cancel")==="Apply"&&await this.b(s.preset.id,s.preset)}M(){this.f=vscode.workspace.onDidChangeConfiguration(e=>{e.affectsConfiguration("explorerDates")&&this.L(e)})}async L(e){let r=Array.from(RESTART_REQUIRED_SETTINGS).filter(a=>e.affectsConfiguration(`explorerDates.${a}`));r.length>0&&this.v(r)}v(e){let r=this.e.get(this.a,[]),a=[...new Set([...r,...e])];try{let s=this.e.update(this.a,a);s&&typeof s.then=="function"&&s.catch(o=>{try{logger.warn("Failed to persist pending restart state:",o&&o.message)}catch{}})}catch(s){try{logger.warn("Failed to persist pending restart state (sync):",s&&s.message)}catch{}}this.o&&clearTimeout(this.o),this.o=setTimeout(()=>{(async()=>{try{await this.N()}catch(s){logger.error("Failed to show batched restart prompt:",s);try{await this.e.update(this.a,[])}catch(o){logger.warn("Failed to clear pending restarts after prompt failure:",o&&o.message)}}finally{this.o=null}})()},2e3)}async N(){try{let e=this.e.get(this.a,[]);if(e.length===0)return;let r=e.map(n=>this.F(n)).join(", "),s=`${e.length===1?`"${r}"`:`${e.length} settings (${r})`} changed. Reload to apply chunk optimizations?`,o;try{o=await vscode.window.showInformationMessage(s,{modal:!1},"Reload Now","Reload Later")}catch(n){logger.warn("User prompt for restart failed:",n&&n.message)}if(o==="Reload Now")try{await vscode.commands.executeCommand("workbench.action.reloadWindow")}catch(n){logger.warn("Failed to execute reload command:",n&&n.message)}}catch(e){logger.error("Error while showing batched restart prompt:",e)}finally{try{await this.e.update(this.a,[])}catch(e){logger.warn("Failed to clear pending restarts:",e&&e.message)}}}async W(e,r={}){if(!this.e||typeof this.e.update!="function")return;let a=this.e.get(this.h,null),s=this.e.get(this.p,null),o=s?.timestamp?Date.parse(s.timestamp):null,n=Number.isFinite(o)?Math.max(Date.now(),o+1):Date.now(),i={timestamp:new Date(n).toISOString(),appliedPreset:e,previousPreset:a||"unknown",settings:{...r}};await this.e.update(this.p,i),await this.e.update(this.h,e)}r(e=null,r=null){let a=r?{...r}:this.n(vscode.workspace.getConfiguration("explorerDates"));return e&&typeof e=="object"&&Object.assign(a,e),calculateBundleSize(a)}n(e){let r={enableOnboardingSystem:!0,enableAnalysisCommands:!0,enableExportReporting:!0,enableExtensionApi:!0,enableWorkspaceTemplates:!0,enableAdvancedCache:!0,enableWorkspaceIntelligence:!0,enableIncrementalWorkers:!1},a={};for(let[s,o]of Object.entries(r))a[`explorerDates.${s}`]=e.get(s,o);return a}C(e){let r=Object.entries(e).filter(([o,n])=>n===!0&&o.includes("enable")).map(([o])=>o.replace("explorerDates.enable","").replace("System","")).slice(0,3),a=Math.max(0,Object.keys(e).length-3),s=a>0?` +${a} more`:"";return`Features: ${r.join(", ")}${s}`}F(e){return e.replace("enable","").replace(/([A-Z])/g," $1").trim()}async I(e){if(!e)return!0;try{let r=vscode.workspace.workspaceFolders?.[0]?.uri,a=await analyzeWorkspaceEnvironment(r);if(!a)return!1;let s=e.fileCountAtSuggestion||0,o=a.fileCount,n=this.k(s),i=this.k(o);return n!==i}catch(r){return logger.debug("Heuristics change check failed:",r),!1}}k(e){return e>=WORKSPACE_SCALE_EXTREME_THRESHOLD?"extreme":e>=WORKSPACE_SCALE_LARGE_THRESHOLD?"large":e>=1e3?"medium":"small"}dispose(){this.f&&this.f.dispose(),this.o&&clearTimeout(this.o)}};module.exports={RuntimeConfigManager}});var pe=d((Mt,ue)=>{var{RuntimeConfigManager:de}=ce();ue.exports={RuntimeConfigManager:de,default:{RuntimeConfigManager:de}}});var j=d((It,gt)=>{gt.exports={migrationDetailsTitle:"Explorer Dates - Settings Migration",migrationDetailsHeader:"Settings Migration",gitAttributionWarning:"Explorer Dates: Git attribution badges are unavailable on VS Code for Web. Time-based decorations remain available.",noOverridesToDocument:"No overrides to document.",overrideNotesHeader:"# Explorer Dates Override Notes\\n\\n",analysisCommandsDisabled:"Explorer Dates analysis commands are disabled. Shortcuts like Ctrl+Shift+M/H/A will not work until you enable explorerDates.enableAnalysisCommands.",analysisEnableNow:"Enable Now",analysisEnablePartially:"Enable partially succeeded. Update explorerDates.enableAnalysisCommands in remaining workspace folders manually.",analysisEnableFailed:"Enable failed: update explorerDates.enableAnalysisCommands in workspace settings.",workspaceTemplatesDisabled:"Workspace templates are disabled. Enable explorerDates.enableWorkspaceTemplates to use this command.",workspaceTemplatesDisabledSave:"Workspace templates are disabled. Enable explorerDates.enableWorkspaceTemplates to save templates.",enterTemplateName:"Enter template name",enterTemplateDescription:"Enter description (optional)",failedToOpenTemplateManager:"Failed to open template manager: {0}",failedToSaveTemplate:"Failed to save template: {0}",reportingDisabled:"Reporting features are disabled. Enable explorerDates.enableExportReporting to generate reports.",failedToGenerateReport:"Failed to generate report: {0}",apiDisabled:"Explorer Dates API is disabled via settings.",failedToShowApiInformation:"Failed to show API information: {0}",failedToShowWorkspaceActivity:"Failed to show workspace activity: {0}",failedToShowPerformanceAnalytics:"Failed to show performance analytics: {0}",failedToShowCacheDebugInfo:"Failed to show cache debug info: {0}",noWorkspaceFolderOpen:"No workspace folder open",now:"now",minutes:"m",hours:"h",days:"d",weeks:"w",months:"mo",years:"y",justNow:"just now",minutesAgo:"{0} minute(s) ago",hoursAgo:"{0} hour(s) ago",daysAgo:"{0} day(s) ago",lastModified:"Last modified",refreshSuccess:"Date decorations refreshed",activationError:"Explorer Dates failed to activate",errorAccessingFile:"Error accessing file for decoration",clearTelemetryPrompt:"This will permanently delete locally-stored telemetry events for Explorer Dates. This action cannot be undone. Proceed?",clearTelemetryConfirm:"Clear Telemetry",clearTelemetryCancel:"Cancel",reportFormatDisabled:'Report format "{0}" is disabled. Allowed formats: {1}',reportDownloadTriggered:"Report download triggered in browser",selectReportTimeRangePlaceholder:"Select report time range",selectReportFormatPlaceholder:"Select report format",cleanupNoDeprecated:"\u2139\uFE0F No deprecated settings found to clean up.",showMigrationHistoryNoHistory:"No migration history found.",resetConfirmation:"This will reset all Explorer Dates settings to their default values. Are you sure?",resetConfirm:"Reset Settings",resetCancel:"Cancel",resetSuccess:"\u2705 Reset {0} settings to defaults.",validateNoIssues:"\u2705 Configuration is valid - no issues found!",validateFoundIssues:"Found {0} configuration issue(s). Would you like to see details?",validateShowDetails:"Show Details",validateDismiss:"Dismiss",migrationNotificationMessage:"Explorer Dates updated {0} setting(s) for compatibility. Your configuration has been preserved.",migrationViewChanges:"View Changes",migrationOpenSettings:"Open Settings",deprecatedPrompt:"Explorer Dates found {0} deprecated setting(s). Would you like to remove them?",deprecatedClean:"Clean Up Now",deprecatedKeep:"Keep Old Settings",deprecatedAskLater:"Ask Later",showFileLocation:"Show File Location",teamConfigCorrupted:"Explorer Dates team configuration file appears to be corrupted. Please check the .explorer-dates-profiles.json file or restore from backup.",appliedFromTeamProfile:'Applied {0} Explorer Dates settings from team profile "{1}".',documentedOverrides:"Documented Explorer Dates overrides in .vscode/explorer-dates-overrides.md",teamConfigMissingProfile:"Team configuration is missing an active profile.",ephemeralStorageEnospc:"Explorer Dates team configuration could not be saved because the disk is full.",ephemeralStorageGeneric:"Explorer Dates team configuration could not be saved because the workspace is read-only or permissions are restricted.",ephemeralStorageSuffix:"Changes will be kept in memory until VS Code restarts, so they may be lost."}});var me=d((Wt,ft)=>{ft.exports={migrationDetailsTitle:"Explorer Dates - Migraci\xF3n de configuraci\xF3n",migrationDetailsHeader:"Migraci\xF3n de configuraci\xF3n",gitAttributionWarning:"Explorer Dates: Las insignias de atribuci\xF3n de Git no est\xE1n disponibles en VS Code para la Web. Las decoraciones basadas en tiempo siguen disponibles.",noOverridesToDocument:"No hay anulaciones para documentar.",overrideNotesHeader:"# Notas de anulaci\xF3n de Explorer Dates\\n\\n",analysisCommandsDisabled:"Los comandos de an\xE1lisis de Explorer Dates est\xE1n deshabilitados. Atajos como Ctrl+Shift+M/H/A no funcionar\xE1n hasta que habilites explorerDates.enableAnalysisCommands.",analysisEnableNow:"Habilitar ahora",analysisEnablePartially:"La activaci\xF3n se complet\xF3 parcialmente. Actualiza explorerDates.enableAnalysisCommands manualmente en las carpetas de trabajo restantes.",analysisEnableFailed:"Error al habilitar: actualiza explorerDates.enableAnalysisCommands en la configuraci\xF3n del espacio de trabajo.",workspaceTemplatesDisabled:"Las plantillas de espacio de trabajo est\xE1n deshabilitadas. Habilita explorerDates.enableWorkspaceTemplates para usar este comando.",workspaceTemplatesDisabledSave:"Las plantillas de espacio de trabajo est\xE1n deshabilitadas. Habilita explorerDates.enableWorkspaceTemplates para guardar plantillas.",enterTemplateName:"Introduce el nombre de la plantilla",enterTemplateDescription:"Introduce la descripci\xF3n (opcional)",failedToOpenTemplateManager:"Error al abrir el administrador de plantillas: {0}",failedToSaveTemplate:"Error al guardar la plantilla: {0}",reportingDisabled:"Las funciones de informes est\xE1n deshabilitadas. Habilita explorerDates.enableExportReporting para generar informes.",failedToGenerateReport:"Error al generar el informe: {0}",apiDisabled:"La API de Explorer Dates est\xE1 deshabilitada mediante la configuraci\xF3n.",failedToShowApiInformation:"Error al mostrar la informaci\xF3n de la API: {0}",failedToShowWorkspaceActivity:"Error al mostrar la actividad del espacio de trabajo: {0}",failedToShowPerformanceAnalytics:"Error al mostrar los an\xE1lisis de rendimiento: {0}",failedToShowCacheDebugInfo:"Error al mostrar la informaci\xF3n de depuraci\xF3n de la cach\xE9: {0}",noWorkspaceFolderOpen:"No hay ninguna carpeta de espacio de trabajo abierta",now:"ahora",minutes:"m",hours:"h",days:"d",weeks:"sem",months:"mes",years:"a",justNow:"justo ahora",minutesAgo:"hace {0} minuto(s)",hoursAgo:"hace {0} hora(s)",daysAgo:"hace {0} d\xEDa(s)",lastModified:"\xDAltima modificaci\xF3n",refreshSuccess:"Decoraciones de fecha actualizadas",activationError:"Explorer Dates no se pudo activar",errorAccessingFile:"Error al acceder al archivo para la decoraci\xF3n",clearTelemetryPrompt:"Esto eliminar\xE1 permanentemente los eventos de telemetr\xEDa almacenados localmente para Explorer Dates. Esta acci\xF3n no se puede deshacer. \xBFContinuar?",clearTelemetryConfirm:"Borrar telemetr\xEDa",clearTelemetryCancel:"Cancelar",reportFormatDisabled:'El formato de informe "{0}" est\xE1 deshabilitado. Formatos permitidos: {1}',reportDownloadTriggered:"Descarga del informe iniciada en el navegador",selectReportTimeRangePlaceholder:"Seleccionar rango de tiempo del informe",selectReportFormatPlaceholder:"Seleccionar formato del informe",cleanupNoDeprecated:"\u2139\uFE0F No se encontraron configuraciones obsoletas para limpiar.",showMigrationHistoryNoHistory:"No se encontr\xF3 historial de migraci\xF3n.",resetConfirmation:"Esto restablecer\xE1 todas las configuraciones de Explorer Dates a sus valores predeterminados. \xBFEst\xE1s seguro?",resetConfirm:"Restablecer configuraciones",resetCancel:"Cancelar",resetSuccess:"\u2705 Se restablecieron {0} configuraciones a los valores predeterminados.",validateNoIssues:"\u2705 La configuraci\xF3n es v\xE1lida - no se encontraron problemas.",validateFoundIssues:"Se encontraron {0} problema(s) de configuraci\xF3n. \xBFDeseas ver los detalles?",validateShowDetails:"Mostrar detalles",validateDismiss:"Descartar",migrationNotificationMessage:"Explorer Dates actualiz\xF3 {0} configuraci\xF3n(es) por compatibilidad. Tu configuraci\xF3n se ha conservado.",migrationViewChanges:"Ver cambios",migrationOpenSettings:"Abrir configuraciones",deprecatedPrompt:"Explorer Dates encontr\xF3 {0} configuraci\xF3n(es) obsoleta(s). \xBFDeseas eliminarlas?",deprecatedClean:"Limpiar ahora",deprecatedKeep:"Mantener configuraciones antiguas",deprecatedAskLater:"Preguntar m\xE1s tarde",showFileLocation:"Mostrar ubicaci\xF3n del archivo",teamConfigCorrupted:"El archivo de configuraci\xF3n de equipo de Explorer Dates parece estar da\xF1ado. Verifica el archivo .explorer-dates-profiles.json o restaura desde una copia de seguridad.",appliedFromTeamProfile:'Se aplicaron {0} configuraciones de Explorer Dates desde el perfil de equipo "{1}".',documentedOverrides:"Se documentaron las anulaciones de Explorer Dates en .vscode/explorer-dates-overrides.md",teamConfigMissingProfile:"La configuraci\xF3n del equipo no tiene un perfil activo.",ephemeralStorageEnospc:"No se pudo guardar la configuraci\xF3n de equipo de Explorer Dates porque el disco est\xE1 lleno.",ephemeralStorageGeneric:"No se pudo guardar la configuraci\xF3n de equipo de Explorer Dates porque el espacio de trabajo es de solo lectura o los permisos est\xE1n restringidos.",ephemeralStorageSuffix:"Los cambios se mantendr\xE1n en memoria hasta que VS Code se reinicie, por lo que podr\xEDan perderse."}});var ge=d((Lt,ht)=>{ht.exports={migrationDetailsTitle:"Explorer Dates - Migration des param\xE8tres",migrationDetailsHeader:"Migration des param\xE8tres",gitAttributionWarning:"Explorer Dates : Les badges d\u2019attribution Git ne sont pas disponibles sur VS Code pour le Web. Les d\xE9corations bas\xE9es sur le temps restent disponibles.",noOverridesToDocument:"Aucune substitution \xE0 documenter.",overrideNotesHeader:"# Notes de substitution Explorer Dates\\n\\n",analysisCommandsDisabled:"Les commandes d\u2019analyse Explorer Dates sont d\xE9sactiv\xE9es. Les raccourcis comme Ctrl+Shift+M/H/A ne fonctionneront pas tant que vous n\u2019aurez pas activ\xE9 explorerDates.enableAnalysisCommands.",analysisEnableNow:"Activer maintenant",analysisEnablePartially:"L\u2019activation a partiellement r\xE9ussi. Mettez \xE0 jour explorerDates.enableAnalysisCommands manuellement dans les dossiers d\u2019espace de travail restants.",analysisEnableFailed:"\xC9chec de l\u2019activation : mettez \xE0 jour explorerDates.enableAnalysisCommands dans les param\xE8tres de l\u2019espace de travail.",workspaceTemplatesDisabled:"Les mod\xE8les d\u2019espace de travail sont d\xE9sactiv\xE9s. Activez explorerDates.enableWorkspaceTemplates pour utiliser cette commande.",workspaceTemplatesDisabledSave:"Les mod\xE8les d\u2019espace de travail sont d\xE9sactiv\xE9s. Activez explorerDates.enableWorkspaceTemplates pour enregistrer des mod\xE8les.",enterTemplateName:"Entrez le nom du mod\xE8le",enterTemplateDescription:"Entrez la description (facultatif)",failedToOpenTemplateManager:"Impossible d\u2019ouvrir le gestionnaire de mod\xE8les : {0}",failedToSaveTemplate:"Impossible d\u2019enregistrer le mod\xE8le : {0}",reportingDisabled:"Les fonctionnalit\xE9s de rapport sont d\xE9sactiv\xE9es. Activez explorerDates.enableExportReporting pour g\xE9n\xE9rer des rapports.",failedToGenerateReport:"Impossible de g\xE9n\xE9rer le rapport : {0}",apiDisabled:"L\u2019API Explorer Dates est d\xE9sactiv\xE9e via les param\xE8tres.",failedToShowApiInformation:"Impossible d\u2019afficher les informations de l\u2019API : {0}",failedToShowWorkspaceActivity:"Impossible d\u2019afficher l\u2019activit\xE9 de l\u2019espace de travail : {0}",failedToShowPerformanceAnalytics:"Impossible d\u2019afficher les analyses de performance : {0}",failedToShowCacheDebugInfo:"Impossible d\u2019afficher les informations de d\xE9bogage du cache : {0}",noWorkspaceFolderOpen:"Aucun dossier d\u2019espace de travail ouvert",now:"maintenant",minutes:"min",hours:"h",days:"j",weeks:"sem",months:"mois",years:"an",justNow:"\xE0 l\u2019instant",minutesAgo:"il y a {0} minute(s)",hoursAgo:"il y a {0} heure(s)",daysAgo:"il y a {0} jour(s)",lastModified:"Derni\xE8re modification",refreshSuccess:"D\xE9corations de date actualis\xE9es",activationError:"\xC9chec de l\u2019activation d\u2019Explorer Dates",errorAccessingFile:"Erreur lors de l\u2019acc\xE8s au fichier pour la d\xE9coration",clearTelemetryPrompt:"Cela supprimera d\xE9finitivement les \xE9v\xE9nements de t\xE9l\xE9m\xE9trie stock\xE9s localement pour Explorer Dates. Cette action est irr\xE9versible. Continuer ?",clearTelemetryConfirm:"Effacer la t\xE9l\xE9m\xE9trie",clearTelemetryCancel:"Annuler",reportFormatDisabled:'Le format de rapport "{0}" est d\xE9sactiv\xE9. Formats autoris\xE9s : {1}',reportDownloadTriggered:"T\xE9l\xE9chargement du rapport lanc\xE9 dans le navigateur",selectReportTimeRangePlaceholder:"S\xE9lectionner la p\xE9riode du rapport",selectReportFormatPlaceholder:"S\xE9lectionner le format du rapport",cleanupNoDeprecated:"\u2139\uFE0F Aucun param\xE8tre obsol\xE8te \xE0 nettoyer.",showMigrationHistoryNoHistory:"Aucun historique de migration trouv\xE9.",resetConfirmation:"Cela r\xE9initialisera tous les param\xE8tres Explorer Dates \xE0 leurs valeurs par d\xE9faut. \xCAtes-vous s\xFBr ?",resetConfirm:"R\xE9initialiser les param\xE8tres",resetCancel:"Annuler",resetSuccess:"\u2705 {0} param\xE8tres ont \xE9t\xE9 r\xE9initialis\xE9s aux valeurs par d\xE9faut.",validateNoIssues:"\u2705 La configuration est valide - aucun probl\xE8me d\xE9tect\xE9 !",validateFoundIssues:"{0} probl\xE8me(s) de configuration trouv\xE9(s). Voulez-vous voir les d\xE9tails ?",validateShowDetails:"Afficher les d\xE9tails",validateDismiss:"Ignorer",migrationNotificationMessage:"Explorer Dates a mis \xE0 jour {0} param\xE8tre(s) pour compatibilit\xE9. Votre configuration a \xE9t\xE9 conserv\xE9e.",migrationViewChanges:"Voir les modifications",migrationOpenSettings:"Ouvrir les param\xE8tres",deprecatedPrompt:"Explorer Dates a trouv\xE9 {0} param\xE8tre(s) obsol\xE8te(s). Voulez-vous les supprimer ?",deprecatedClean:"Nettoyer maintenant",deprecatedKeep:"Conserver les anciens param\xE8tres",deprecatedAskLater:"Demander plus tard",showFileLocation:"Afficher l\u2019emplacement du fichier",teamConfigCorrupted:"Le fichier de configuration d\u2019\xE9quipe Explorer Dates semble corrompu. V\xE9rifiez le fichier .explorer-dates-profiles.json ou restaurez-le depuis une sauvegarde.",appliedFromTeamProfile:'{0} param\xE8tres Explorer Dates appliqu\xE9s depuis le profil d\u2019\xE9quipe "{1}".',documentedOverrides:"Substitutions Explorer Dates document\xE9es dans .vscode/explorer-dates-overrides.md",teamConfigMissingProfile:"La configuration d\u2019\xE9quipe ne contient aucun profil actif.",ephemeralStorageEnospc:"Impossible d\u2019enregistrer la configuration d\u2019\xE9quipe Explorer Dates car le disque est plein.",ephemeralStorageGeneric:"Impossible d\u2019enregistrer la configuration d\u2019\xE9quipe Explorer Dates car l\u2019espace de travail est en lecture seule ou les permissions sont restreintes.",ephemeralStorageSuffix:"Les modifications seront conserv\xE9es en m\xE9moire jusqu\u2019au red\xE9marrage de VS Code et pourraient \xEAtre perdues."}});var fe=d((Nt,bt)=>{bt.exports={migrationDetailsTitle:"Explorer Dates - Einstellungen migrieren",migrationDetailsHeader:"Einstellungen migrieren",gitAttributionWarning:"Explorer Dates: Git-Zuordnungsabzeichen sind in VS Code f\xFCr das Web nicht verf\xFCgbar. Zeitbasierte Hervorhebungen bleiben verf\xFCgbar.",noOverridesToDocument:"Keine \xDCberschreibungen zu dokumentieren.",overrideNotesHeader:"# Explorer Dates \xDCberschreibungsnotizen\\n\\n",analysisCommandsDisabled:"Die Analysebefehle von Explorer Dates sind deaktiviert. Tastenkombinationen wie Ctrl+Shift+M/H/A funktionieren nicht, bis explorerDates.enableAnalysisCommands aktiviert ist.",analysisEnableNow:"Jetzt aktivieren",analysisEnablePartially:"Die Aktivierung war teilweise erfolgreich. Aktualisieren Sie explorerDates.enableAnalysisCommands manuell in den verbleibenden Workspace-Ordnern.",analysisEnableFailed:"Aktivierung fehlgeschlagen: Aktualisieren Sie explorerDates.enableAnalysisCommands in den Workspace-Einstellungen.",workspaceTemplatesDisabled:"Workspace-Vorlagen sind deaktiviert. Aktivieren Sie explorerDates.enableWorkspaceTemplates, um diesen Befehl zu verwenden.",workspaceTemplatesDisabledSave:"Workspace-Vorlagen sind deaktiviert. Aktivieren Sie explorerDates.enableWorkspaceTemplates, um Vorlagen zu speichern.",enterTemplateName:"Vorlagenname eingeben",enterTemplateDescription:"Beschreibung eingeben (optional)",failedToOpenTemplateManager:"Fehler beim \xD6ffnen des Vorlagenmanagers: {0}",failedToSaveTemplate:"Fehler beim Speichern der Vorlage: {0}",reportingDisabled:"Berichtsfunktionen sind deaktiviert. Aktivieren Sie explorerDates.enableExportReporting, um Berichte zu erstellen.",failedToGenerateReport:"Fehler beim Erstellen des Berichts: {0}",apiDisabled:"Die Explorer Dates API ist in den Einstellungen deaktiviert.",failedToShowApiInformation:"Fehler beim Anzeigen der API-Informationen: {0}",failedToShowWorkspaceActivity:"Fehler beim Anzeigen der Workspace-Aktivit\xE4t: {0}",failedToShowPerformanceAnalytics:"Fehler beim Anzeigen der Leistungsanalysen: {0}",failedToShowCacheDebugInfo:"Fehler beim Anzeigen der Cache-Debug-Informationen: {0}",noWorkspaceFolderOpen:"Kein Workspace-Ordner ge\xF6ffnet",now:"jetzt",minutes:"Min",hours:"Std",days:"T",weeks:"W",months:"Mon",years:"J",justNow:"gerade eben",minutesAgo:"vor {0} Minute(n)",hoursAgo:"vor {0} Stunde(n)",daysAgo:"vor {0} Tag(en)",lastModified:"Zuletzt ge\xE4ndert",refreshSuccess:"Datumsdekorationen aktualisiert",activationError:"Explorer Dates konnte nicht aktiviert werden",errorAccessingFile:"Fehler beim Zugriff auf Datei f\xFCr Dekoration",clearTelemetryPrompt:"Dies l\xF6scht dauerhaft lokal gespeicherte Telemetrieereignisse f\xFCr Explorer Dates. Diese Aktion kann nicht r\xFCckg\xE4ngig gemacht werden. Fortfahren?",clearTelemetryConfirm:"Telemetrie l\xF6schen",clearTelemetryCancel:"Abbrechen",reportFormatDisabled:'Berichtsformat "{0}" ist deaktiviert. Zul\xE4ssige Formate: {1}',reportDownloadTriggered:"Bericht-Download im Browser gestartet",selectReportTimeRangePlaceholder:"Berichtszeitraum ausw\xE4hlen",selectReportFormatPlaceholder:"Berichtsformat ausw\xE4hlen",cleanupNoDeprecated:"\u2139\uFE0F Keine veralteten Einstellungen zum Bereinigen gefunden.",showMigrationHistoryNoHistory:"Kein Migrationsverlauf gefunden.",resetConfirmation:"Dies setzt alle Explorer Dates Einstellungen auf ihre Standardwerte zur\xFCck. Sind Sie sicher?",resetConfirm:"Einstellungen zur\xFCcksetzen",resetCancel:"Abbrechen",resetSuccess:"\u2705 {0} Einstellungen auf Standard zur\xFCckgesetzt.",validateNoIssues:"\u2705 Konfiguration ist g\xFCltig - keine Probleme gefunden!",validateFoundIssues:"{0} Konfigurationsproblem(e) gefunden. M\xF6chten Sie Details sehen?",validateShowDetails:"Details anzeigen",validateDismiss:"Verwerfen",migrationNotificationMessage:"Explorer Dates hat {0} Einstellung(en) zur Kompatibilit\xE4t aktualisiert. Ihre Konfiguration wurde beibehalten.",migrationViewChanges:"\xC4nderungen anzeigen",migrationOpenSettings:"Einstellungen \xF6ffnen",deprecatedPrompt:"Explorer Dates hat {0} veraltete Einstellung(en) gefunden. M\xF6chten Sie sie entfernen?",deprecatedClean:"Jetzt bereinigen",deprecatedKeep:"Alte Einstellungen behalten",deprecatedAskLater:"Sp\xE4ter fragen",showFileLocation:"Dateispeicherort anzeigen",teamConfigCorrupted:"Die Teamkonfigurationsdatei von Explorer Dates scheint besch\xE4digt zu sein. Bitte pr\xFCfen Sie die Datei .explorer-dates-profiles.json oder stellen Sie sie aus einem Backup wieder her.",appliedFromTeamProfile:'{0} Explorer Dates-Einstellungen aus dem Teamprofil "{1}" angewendet.',documentedOverrides:"Explorer Dates-\xDCberschreibungen in .vscode/explorer-dates-overrides.md dokumentiert",teamConfigMissingProfile:"Der Teamkonfiguration fehlt ein aktives Profil.",ephemeralStorageEnospc:"Die Teamkonfiguration von Explorer Dates konnte nicht gespeichert werden, da die Festplatte voll ist.",ephemeralStorageGeneric:"Die Teamkonfiguration von Explorer Dates konnte nicht gespeichert werden, da der Workspace schreibgesch\xFCtzt ist oder die Berechtigungen eingeschr\xE4nkt sind.",ephemeralStorageSuffix:"\xC4nderungen werden im Speicher behalten, bis VS Code neu startet, und k\xF6nnen verloren gehen."}});var he=d((Ft,wt)=>{wt.exports={migrationDetailsTitle:"Explorer Dates - \u8A2D\u5B9A\u306E\u79FB\u884C",migrationDetailsHeader:"\u8A2D\u5B9A\u306E\u79FB\u884C",gitAttributionWarning:"Explorer Dates: Git \u306E\u5E30\u5C5E\u30D0\u30C3\u30B8\u306F VS Code for Web \u3067\u306F\u5229\u7528\u3067\u304D\u307E\u305B\u3093\u3002\u6642\u9593\u30D9\u30FC\u30B9\u306E\u88C5\u98FE\u306F\u5F15\u304D\u7D9A\u304D\u5229\u7528\u3067\u304D\u307E\u3059\u3002",noOverridesToDocument:"\u30C9\u30AD\u30E5\u30E1\u30F3\u30C8\u5316\u3059\u308B\u4E0A\u66F8\u304D\u306F\u3042\u308A\u307E\u305B\u3093\u3002",overrideNotesHeader:"# Explorer Dates \u4E0A\u66F8\u304D\u30E1\u30E2\\n\\n",analysisCommandsDisabled:"Explorer Dates \u306E\u5206\u6790\u30B3\u30DE\u30F3\u30C9\u306F\u7121\u52B9\u306B\u306A\u3063\u3066\u3044\u307E\u3059\u3002Ctrl+Shift+M/H/A \u306A\u3069\u306E\u30B7\u30E7\u30FC\u30C8\u30AB\u30C3\u30C8\u306F explorerDates.enableAnalysisCommands \u3092\u6709\u52B9\u306B\u3059\u308B\u307E\u3067\u6A5F\u80FD\u3057\u307E\u305B\u3093\u3002",analysisEnableNow:"\u4ECA\u3059\u3050\u6709\u52B9\u306B\u3059\u308B",analysisEnablePartially:"\u6709\u52B9\u5316\u306F\u4E00\u90E8\u6210\u529F\u3057\u307E\u3057\u305F\u3002\u6B8B\u308A\u306E\u30EF\u30FC\u30AF\u30B9\u30DA\u30FC\u30B9\u30D5\u30A9\u30EB\u30C0\u30FC\u3067 explorerDates.enableAnalysisCommands \u3092\u624B\u52D5\u3067\u66F4\u65B0\u3057\u3066\u304F\u3060\u3055\u3044\u3002",analysisEnableFailed:"\u6709\u52B9\u5316\u306B\u5931\u6557\u3057\u307E\u3057\u305F\uFF1A\u30EF\u30FC\u30AF\u30B9\u30DA\u30FC\u30B9\u8A2D\u5B9A\u3067 explorerDates.enableAnalysisCommands \u3092\u66F4\u65B0\u3057\u3066\u304F\u3060\u3055\u3044\u3002",workspaceTemplatesDisabled:"\u30EF\u30FC\u30AF\u30B9\u30DA\u30FC\u30B9\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8\u306F\u7121\u52B9\u306B\u306A\u3063\u3066\u3044\u307E\u3059\u3002\u3053\u306E\u30B3\u30DE\u30F3\u30C9\u3092\u4F7F\u7528\u3059\u308B\u306B\u306F explorerDates.enableWorkspaceTemplates \u3092\u6709\u52B9\u306B\u3057\u3066\u304F\u3060\u3055\u3044\u3002",workspaceTemplatesDisabledSave:"\u30EF\u30FC\u30AF\u30B9\u30DA\u30FC\u30B9\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8\u306F\u7121\u52B9\u306B\u306A\u3063\u3066\u3044\u307E\u3059\u3002\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8\u3092\u4FDD\u5B58\u3059\u308B\u306B\u306F explorerDates.enableWorkspaceTemplates \u3092\u6709\u52B9\u306B\u3057\u3066\u304F\u3060\u3055\u3044\u3002",enterTemplateName:"\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8\u540D\u3092\u5165\u529B",enterTemplateDescription:"\u8AAC\u660E\u3092\u5165\u529B\uFF08\u4EFB\u610F\uFF09",failedToOpenTemplateManager:"\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8\u30DE\u30CD\u30FC\u30B8\u30E3\u30FC\u3092\u958B\u3051\u307E\u305B\u3093\u3067\u3057\u305F: {0}",failedToSaveTemplate:"\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8\u306E\u4FDD\u5B58\u306B\u5931\u6557\u3057\u307E\u3057\u305F: {0}",reportingDisabled:"\u30EC\u30DD\u30FC\u30C8\u6A5F\u80FD\u306F\u7121\u52B9\u306B\u306A\u3063\u3066\u3044\u307E\u3059\u3002\u30EC\u30DD\u30FC\u30C8\u3092\u751F\u6210\u3059\u308B\u306B\u306F explorerDates.enableExportReporting \u3092\u6709\u52B9\u306B\u3057\u3066\u304F\u3060\u3055\u3044\u3002",failedToGenerateReport:"\u30EC\u30DD\u30FC\u30C8\u306E\u751F\u6210\u306B\u5931\u6557\u3057\u307E\u3057\u305F: {0}",apiDisabled:"Explorer Dates API \u306F\u8A2D\u5B9A\u3067\u7121\u52B9\u306B\u306A\u3063\u3066\u3044\u307E\u3059\u3002",failedToShowApiInformation:"API \u60C5\u5831\u306E\u8868\u793A\u306B\u5931\u6557\u3057\u307E\u3057\u305F: {0}",failedToShowWorkspaceActivity:"\u30EF\u30FC\u30AF\u30B9\u30DA\u30FC\u30B9\u306E\u30A2\u30AF\u30C6\u30A3\u30D3\u30C6\u30A3\u3092\u8868\u793A\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F: {0}",failedToShowPerformanceAnalytics:"\u30D1\u30D5\u30A9\u30FC\u30DE\u30F3\u30B9\u5206\u6790\u3092\u8868\u793A\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F: {0}",failedToShowCacheDebugInfo:"\u30AD\u30E3\u30C3\u30B7\u30E5\u306E\u30C7\u30D0\u30C3\u30B0\u60C5\u5831\u3092\u8868\u793A\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F: {0}",noWorkspaceFolderOpen:"\u30EF\u30FC\u30AF\u30B9\u30DA\u30FC\u30B9\u30D5\u30A9\u30EB\u30C0\u30FC\u304C\u958B\u304B\u308C\u3066\u3044\u307E\u305B\u3093",now:"\u4ECA",minutes:"\u5206",hours:"\u6642\u9593",days:"\u65E5",weeks:"\u9031",months:"\u304B\u6708",years:"\u5E74",justNow:"\u305F\u3063\u305F\u4ECA",minutesAgo:"{0} \u5206\u524D",hoursAgo:"{0} \u6642\u9593\u524D",daysAgo:"{0} \u65E5\u524D",lastModified:"\u6700\u7D42\u66F4\u65B0",refreshSuccess:"\u65E5\u4ED8\u88C5\u98FE\u3092\u66F4\u65B0\u3057\u307E\u3057\u305F",activationError:"Explorer Dates \u306E\u6709\u52B9\u5316\u306B\u5931\u6557\u3057\u307E\u3057\u305F",errorAccessingFile:"\u88C5\u98FE\u7528\u30D5\u30A1\u30A4\u30EB\u3078\u306E\u30A2\u30AF\u30BB\u30B9\u30A8\u30E9\u30FC",clearTelemetryPrompt:"Explorer Dates \u306E\u30ED\u30FC\u30AB\u30EB\u4FDD\u5B58\u30C6\u30EC\u30E1\u30C8\u30EA\u30A4\u30D9\u30F3\u30C8\u3092\u5B8C\u5168\u306B\u524A\u9664\u3057\u307E\u3059\u3002\u3053\u306E\u64CD\u4F5C\u306F\u5143\u306B\u623B\u305B\u307E\u305B\u3093\u3002\u7D9A\u884C\u3057\u307E\u3059\u304B\uFF1F",clearTelemetryConfirm:"\u30C6\u30EC\u30E1\u30C8\u30EA\u3092\u524A\u9664",clearTelemetryCancel:"\u30AD\u30E3\u30F3\u30BB\u30EB",reportFormatDisabled:"\u30EC\u30DD\u30FC\u30C8\u5F62\u5F0F\u300C{0}\u300D\u306F\u7121\u52B9\u3067\u3059\u3002\u8A31\u53EF\u3055\u308C\u3066\u3044\u308B\u5F62\u5F0F: {1}",reportDownloadTriggered:"\u30D6\u30E9\u30A6\u30B6\u3067\u30EC\u30DD\u30FC\u30C8\u306E\u30C0\u30A6\u30F3\u30ED\u30FC\u30C9\u3092\u958B\u59CB\u3057\u307E\u3057\u305F",selectReportTimeRangePlaceholder:"\u30EC\u30DD\u30FC\u30C8\u306E\u671F\u9593\u3092\u9078\u629E",selectReportFormatPlaceholder:"\u30EC\u30DD\u30FC\u30C8\u5F62\u5F0F\u3092\u9078\u629E",cleanupNoDeprecated:"\u2139\uFE0F \u30AF\u30EA\u30FC\u30F3\u30A2\u30C3\u30D7\u3059\u308B\u975E\u63A8\u5968\u8A2D\u5B9A\u306F\u3042\u308A\u307E\u305B\u3093\u3002",showMigrationHistoryNoHistory:"\u79FB\u884C\u5C65\u6B74\u304C\u898B\u3064\u304B\u308A\u307E\u305B\u3093\u3002",resetConfirmation:"Explorer Dates \u306E\u3059\u3079\u3066\u306E\u8A2D\u5B9A\u3092\u65E2\u5B9A\u5024\u306B\u30EA\u30BB\u30C3\u30C8\u3057\u307E\u3059\u3002\u3088\u308D\u3057\u3044\u3067\u3059\u304B\uFF1F",resetConfirm:"\u8A2D\u5B9A\u3092\u30EA\u30BB\u30C3\u30C8",resetCancel:"\u30AD\u30E3\u30F3\u30BB\u30EB",resetSuccess:"\u2705 {0} \u4EF6\u306E\u8A2D\u5B9A\u3092\u65E2\u5B9A\u5024\u306B\u30EA\u30BB\u30C3\u30C8\u3057\u307E\u3057\u305F\u3002",validateNoIssues:"\u2705 \u8A2D\u5B9A\u306F\u6709\u52B9\u3067\u3059 - \u554F\u984C\u306F\u898B\u3064\u304B\u308A\u307E\u305B\u3093\u3067\u3057\u305F\uFF01",validateFoundIssues:"{0} \u4EF6\u306E\u8A2D\u5B9A\u554F\u984C\u304C\u898B\u3064\u304B\u308A\u307E\u3057\u305F\u3002\u8A73\u7D30\u3092\u8868\u793A\u3057\u307E\u3059\u304B\uFF1F",validateShowDetails:"\u8A73\u7D30\u3092\u8868\u793A",validateDismiss:"\u9589\u3058\u308B",migrationNotificationMessage:"Explorer Dates \u306F\u4E92\u63DB\u6027\u306E\u305F\u3081\u306B {0} \u4EF6\u306E\u8A2D\u5B9A\u3092\u66F4\u65B0\u3057\u307E\u3057\u305F\u3002\u8A2D\u5B9A\u306F\u4FDD\u6301\u3055\u308C\u3066\u3044\u307E\u3059\u3002",migrationViewChanges:"\u5909\u66F4\u3092\u8868\u793A",migrationOpenSettings:"\u8A2D\u5B9A\u3092\u958B\u304F",deprecatedPrompt:"Explorer Dates \u306F {0} \u4EF6\u306E\u975E\u63A8\u5968\u8A2D\u5B9A\u3092\u691C\u51FA\u3057\u307E\u3057\u305F\u3002\u524A\u9664\u3057\u307E\u3059\u304B\uFF1F",deprecatedClean:"\u4ECA\u3059\u3050\u30AF\u30EA\u30FC\u30F3\u30A2\u30C3\u30D7",deprecatedKeep:"\u53E4\u3044\u8A2D\u5B9A\u3092\u4FDD\u6301",deprecatedAskLater:"\u5F8C\u3067\u78BA\u8A8D",showFileLocation:"\u30D5\u30A1\u30A4\u30EB\u306E\u5834\u6240\u3092\u8868\u793A",teamConfigCorrupted:"Explorer Dates \u306E\u30C1\u30FC\u30E0\u8A2D\u5B9A\u30D5\u30A1\u30A4\u30EB\u304C\u7834\u640D\u3057\u3066\u3044\u308B\u53EF\u80FD\u6027\u304C\u3042\u308A\u307E\u3059\u3002.explorer-dates-profiles.json \u3092\u78BA\u8A8D\u3059\u308B\u304B\u30D0\u30C3\u30AF\u30A2\u30C3\u30D7\u304B\u3089\u5FA9\u5143\u3057\u3066\u304F\u3060\u3055\u3044\u3002",appliedFromTeamProfile:"\u30C1\u30FC\u30E0\u30D7\u30ED\u30D5\u30A1\u30A4\u30EB\u300C{1}\u300D\u304B\u3089 {0} \u4EF6\u306E Explorer Dates \u8A2D\u5B9A\u3092\u9069\u7528\u3057\u307E\u3057\u305F\u3002",documentedOverrides:".vscode/explorer-dates-overrides.md \u306B Explorer Dates \u306E\u4E0A\u66F8\u304D\u3092\u8A18\u9332\u3057\u307E\u3057\u305F",teamConfigMissingProfile:"\u30C1\u30FC\u30E0\u8A2D\u5B9A\u306B\u30A2\u30AF\u30C6\u30A3\u30D6\u306A\u30D7\u30ED\u30D5\u30A1\u30A4\u30EB\u304C\u3042\u308A\u307E\u305B\u3093\u3002",ephemeralStorageEnospc:"\u30C7\u30A3\u30B9\u30AF\u5BB9\u91CF\u4E0D\u8DB3\u306E\u305F\u3081\u3001Explorer Dates \u306E\u30C1\u30FC\u30E0\u8A2D\u5B9A\u3092\u4FDD\u5B58\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002",ephemeralStorageGeneric:"\u30EF\u30FC\u30AF\u30B9\u30DA\u30FC\u30B9\u304C\u8AAD\u307F\u53D6\u308A\u5C02\u7528\u3001\u307E\u305F\u306F\u6A29\u9650\u304C\u5236\u9650\u3055\u308C\u3066\u3044\u308B\u305F\u3081\u3001Explorer Dates \u306E\u30C1\u30FC\u30E0\u8A2D\u5B9A\u3092\u4FDD\u5B58\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002",ephemeralStorageSuffix:"\u5909\u66F4\u306F VS Code \u304C\u518D\u8D77\u52D5\u3059\u308B\u307E\u3067\u30E1\u30E2\u30EA\u306B\u4FDD\u6301\u3055\u308C\u308B\u305F\u3081\u3001\u5931\u308F\u308C\u308B\u53EF\u80FD\u6027\u304C\u3042\u308A\u307E\u3059\u3002"}});var be=d((_t,Dt)=>{Dt.exports={migrationDetailsTitle:"Explorer Dates - \u8BBE\u7F6E\u8FC1\u79FB",migrationDetailsHeader:"\u8BBE\u7F6E\u8FC1\u79FB",gitAttributionWarning:"Explorer Dates\uFF1AGit \u5F52\u5C5E\u5FBD\u7AE0\u5728 VS Code Web \u7248\u4E2D\u4E0D\u53EF\u7528\u3002\u57FA\u4E8E\u65F6\u95F4\u7684\u88C5\u9970\u4ECD\u7136\u53EF\u7528\u3002",noOverridesToDocument:"\u6CA1\u6709\u9700\u8981\u8BB0\u5F55\u7684\u8986\u76D6\u9879\u3002",overrideNotesHeader:"# Explorer Dates \u8986\u76D6\u8BF4\u660E\\n\\n",analysisCommandsDisabled:"Explorer Dates \u5206\u6790\u547D\u4EE4\u5DF2\u7981\u7528\u3002\u5728\u542F\u7528 explorerDates.enableAnalysisCommands \u4E4B\u524D\uFF0CCtrl+Shift+M/H/A \u7B49\u5FEB\u6377\u952E\u5C06\u65E0\u6CD5\u4F7F\u7528\u3002",analysisEnableNow:"\u7ACB\u5373\u542F\u7528",analysisEnablePartially:"\u542F\u7528\u90E8\u5206\u6210\u529F\u3002\u8BF7\u5728\u5269\u4F59\u7684\u5DE5\u4F5C\u533A\u6587\u4EF6\u5939\u4E2D\u624B\u52A8\u66F4\u65B0 explorerDates.enableAnalysisCommands\u3002",analysisEnableFailed:"\u542F\u7528\u5931\u8D25\uFF1A\u8BF7\u5728\u5DE5\u4F5C\u533A\u8BBE\u7F6E\u4E2D\u66F4\u65B0 explorerDates.enableAnalysisCommands\u3002",workspaceTemplatesDisabled:"\u5DE5\u4F5C\u533A\u6A21\u677F\u5DF2\u7981\u7528\u3002\u542F\u7528 explorerDates.enableWorkspaceTemplates \u4EE5\u4F7F\u7528\u6B64\u547D\u4EE4\u3002",workspaceTemplatesDisabledSave:"\u5DE5\u4F5C\u533A\u6A21\u677F\u5DF2\u7981\u7528\u3002\u542F\u7528 explorerDates.enableWorkspaceTemplates \u4EE5\u4FDD\u5B58\u6A21\u677F\u3002",enterTemplateName:"\u8F93\u5165\u6A21\u677F\u540D\u79F0",enterTemplateDescription:"\u8F93\u5165\u63CF\u8FF0\uFF08\u53EF\u9009\uFF09",failedToOpenTemplateManager:"\u65E0\u6CD5\u6253\u5F00\u6A21\u677F\u7BA1\u7406\u5668\uFF1A{0}",failedToSaveTemplate:"\u4FDD\u5B58\u6A21\u677F\u5931\u8D25\uFF1A{0}",reportingDisabled:"\u62A5\u8868\u529F\u80FD\u5DF2\u7981\u7528\u3002\u542F\u7528 explorerDates.enableExportReporting \u4EE5\u751F\u6210\u62A5\u8868\u3002",failedToGenerateReport:"\u751F\u6210\u62A5\u8868\u5931\u8D25\uFF1A{0}",apiDisabled:"Explorer Dates API \u5DF2\u901A\u8FC7\u8BBE\u7F6E\u7981\u7528\u3002",failedToShowApiInformation:"\u663E\u793A API \u4FE1\u606F\u5931\u8D25\uFF1A{0}",failedToShowWorkspaceActivity:"\u663E\u793A\u5DE5\u4F5C\u533A\u6D3B\u52A8\u5931\u8D25\uFF1A{0}",failedToShowPerformanceAnalytics:"\u663E\u793A\u6027\u80FD\u5206\u6790\u5931\u8D25\uFF1A{0}",failedToShowCacheDebugInfo:"\u663E\u793A\u7F13\u5B58\u8C03\u8BD5\u4FE1\u606F\u5931\u8D25\uFF1A{0}",noWorkspaceFolderOpen:"\u672A\u6253\u5F00\u4EFB\u4F55\u5DE5\u4F5C\u533A\u6587\u4EF6\u5939",now:"\u73B0\u5728",minutes:"\u5206",hours:"\u5C0F\u65F6",days:"\u5929",weeks:"\u5468",months:"\u4E2A\u6708",years:"\u5E74",justNow:"\u521A\u521A",minutesAgo:"{0} \u5206\u949F\u524D",hoursAgo:"{0} \u5C0F\u65F6\u524D",daysAgo:"{0} \u5929\u524D",lastModified:"\u6700\u540E\u4FEE\u6539",refreshSuccess:"\u65E5\u671F\u88C5\u9970\u5DF2\u5237\u65B0",activationError:"Explorer Dates \u542F\u52A8\u5931\u8D25",errorAccessingFile:"\u8BBF\u95EE\u7528\u4E8E\u88C5\u9970\u7684\u6587\u4EF6\u65F6\u51FA\u9519",clearTelemetryPrompt:"\u8FD9\u5C06\u6C38\u4E45\u5220\u9664\u672C\u5730\u5B58\u50A8\u7684 Explorer Dates \u9065\u6D4B\u4E8B\u4EF6\u3002\u6B64\u64CD\u4F5C\u65E0\u6CD5\u64A4\u9500\u3002\u662F\u5426\u7EE7\u7EED\uFF1F",clearTelemetryConfirm:"\u6E05\u9664\u9065\u6D4B",clearTelemetryCancel:"\u53D6\u6D88",reportFormatDisabled:"\u62A5\u8868\u683C\u5F0F\u201C{0}\u201D\u5DF2\u7981\u7528\u3002\u5141\u8BB8\u7684\u683C\u5F0F\uFF1A{1}",reportDownloadTriggered:"\u5DF2\u5728\u6D4F\u89C8\u5668\u4E2D\u89E6\u53D1\u62A5\u8868\u4E0B\u8F7D",selectReportTimeRangePlaceholder:"\u9009\u62E9\u62A5\u8868\u65F6\u95F4\u8303\u56F4",selectReportFormatPlaceholder:"\u9009\u62E9\u62A5\u8868\u683C\u5F0F",cleanupNoDeprecated:"\u2139\uFE0F \u672A\u53D1\u73B0\u9700\u8981\u6E05\u7406\u7684\u5DF2\u5F03\u7528\u8BBE\u7F6E\u3002",showMigrationHistoryNoHistory:"\u672A\u627E\u5230\u8FC1\u79FB\u5386\u53F2\u3002",resetConfirmation:"\u8FD9\u5C06\u628A\u6240\u6709 Explorer Dates \u8BBE\u7F6E\u91CD\u7F6E\u4E3A\u9ED8\u8BA4\u503C\u3002\u786E\u5B9A\u5417\uFF1F",resetConfirm:"\u91CD\u7F6E\u8BBE\u7F6E",resetCancel:"\u53D6\u6D88",resetSuccess:"\u2705 \u5DF2\u5C06 {0} \u9879\u8BBE\u7F6E\u91CD\u7F6E\u4E3A\u9ED8\u8BA4\u503C\u3002",validateNoIssues:"\u2705 \u914D\u7F6E\u6709\u6548 - \u672A\u53D1\u73B0\u95EE\u9898\uFF01",validateFoundIssues:"\u53D1\u73B0 {0} \u4E2A\u914D\u7F6E\u95EE\u9898\u3002\u662F\u5426\u67E5\u770B\u8BE6\u7EC6\u4FE1\u606F\uFF1F",validateShowDetails:"\u663E\u793A\u8BE6\u7EC6\u4FE1\u606F",validateDismiss:"\u5173\u95ED",migrationNotificationMessage:"Explorer Dates \u4E3A\u517C\u5BB9\u6027\u66F4\u65B0\u4E86 {0} \u9879\u8BBE\u7F6E\u3002\u60A8\u7684\u914D\u7F6E\u5DF2\u4FDD\u7559\u3002",migrationViewChanges:"\u67E5\u770B\u66F4\u6539",migrationOpenSettings:"\u6253\u5F00\u8BBE\u7F6E",deprecatedPrompt:"Explorer Dates \u53D1\u73B0 {0} \u4E2A\u5DF2\u5F03\u7528\u8BBE\u7F6E\u3002\u662F\u5426\u5220\u9664\uFF1F",deprecatedClean:"\u7ACB\u5373\u6E05\u7406",deprecatedKeep:"\u4FDD\u7559\u65E7\u8BBE\u7F6E",deprecatedAskLater:"\u7A0D\u540E\u8BE2\u95EE",showFileLocation:"\u663E\u793A\u6587\u4EF6\u4F4D\u7F6E",teamConfigCorrupted:"Explorer Dates \u56E2\u961F\u914D\u7F6E\u6587\u4EF6\u4F3C\u4E4E\u5DF2\u635F\u574F\u3002\u8BF7\u68C0\u67E5 .explorer-dates-profiles.json \u6587\u4EF6\u6216\u4ECE\u5907\u4EFD\u6062\u590D\u3002",appliedFromTeamProfile:"\u5DF2\u4ECE\u56E2\u961F\u914D\u7F6E\u6587\u4EF6\u201C{1}\u201D\u5E94\u7528 {0} \u9879 Explorer Dates \u8BBE\u7F6E\u3002",documentedOverrides:"\u5DF2\u5728 .vscode/explorer-dates-overrides.md \u4E2D\u8BB0\u5F55 Explorer Dates \u8986\u76D6\u9879",teamConfigMissingProfile:"\u56E2\u961F\u914D\u7F6E\u7F3A\u5C11\u6D3B\u52A8\u914D\u7F6E\u6587\u4EF6\u3002",ephemeralStorageEnospc:"\u7531\u4E8E\u78C1\u76D8\u5DF2\u6EE1\uFF0C\u65E0\u6CD5\u4FDD\u5B58 Explorer Dates \u56E2\u961F\u914D\u7F6E\u3002",ephemeralStorageGeneric:"\u7531\u4E8E\u5DE5\u4F5C\u533A\u4E3A\u53EA\u8BFB\u6216\u6743\u9650\u53D7\u9650\uFF0C\u65E0\u6CD5\u4FDD\u5B58 Explorer Dates \u56E2\u961F\u914D\u7F6E\u3002",ephemeralStorageSuffix:"\u66F4\u6539\u5C06\u5728 VS Code \u91CD\u542F\u524D\u4FDD\u5B58\u5728\u5185\u5B58\u4E2D\uFF0C\u56E0\u6B64\u53EF\u80FD\u4F1A\u4E22\u5931\u3002"}});var De=d((Ot,we)=>{var D={};D.en=j();D.es=me();D.fr=ge();D.de=fe();D.ja=he();D.zh=be();we.exports=D});var ye=d(($t,Ee)=>{var E=require("vscode"),b={en:{now:"now",minutes:"m",hours:"h",days:"d",weeks:"w",months:"mo",years:"y",justNow:"just now",minutesAgo:t=>`${t} minute${t!==1?"s":""} ago`,hoursAgo:t=>`${t} hour${t!==1?"s":""} ago`,yesterday:"yesterday",daysAgo:t=>`${t} day${t!==1?"s":""} ago`,lastModified:"Last modified",refreshSuccess:"Date decorations refreshed",activationError:"Explorer Dates failed to activate",errorAccessingFile:"Error accessing file for decoration",clearTelemetryPrompt:"This will permanently delete locally-stored telemetry events for Explorer Dates. This action cannot be undone. Proceed?",clearTelemetryConfirm:"Clear Telemetry",clearTelemetryCancel:"Cancel",clearTelemetrySuccess:"\u2705 Explorer Dates telemetry cleared.",migrateChecking:"Checking for settings that need migration...",migrateAllUpToDate:"\u2705 All settings are up to date!",migrateApplied:t=>`\u2705 Explorer Dates maintenance applied: ${t}.`,organizeSettingsResult:t=>`Explorer Dates settings organized: ${t}`,cleanupSuccess:"\u2705 Deprecated settings have been cleaned up!",reportFormatDisabled:(t,e)=>`Report format "${t}" is disabled. Allowed formats: ${e}`,reportSaved:t=>`Report saved to ${t}`,reportGenerateFailed:"Failed to generate report",reportDownloadTriggered:"Report download triggered in browser",selectReportTimeRangePlaceholder:"Select report time range",selectReportFormatPlaceholder:"Select report format",cleanupNoDeprecated:"\u2139\uFE0F No deprecated settings found to clean up.",showMigrationHistoryNoHistory:"No migration history found.",resetConfirmation:"This will reset all Explorer Dates settings to their default values. Are you sure?",migrationDetailsTitle:"Explorer Dates - Settings Migration",migrationDetailsHeader:"Settings Migration",gitAttributionWarning:"Explorer Dates: Git attribution badges are unavailable on VS Code for Web. Time-based decorations remain available.",noOverridesToDocument:"No overrides to document.",overrideNotesHeader:`# Explorer Dates Override Notes `,analysisCommandsDisabled:"Explorer Dates analysis commands are disabled. Shortcuts like Ctrl+Shift+M/H/A will not work until you enable explorerDates.enableAnalysisCommands.",analysisEnableNow:"Enable Now",analysisEnablePartially:"Enable partially succeeded. Update explorerDates.enableAnalysisCommands in remaining workspace folders manually.",analysisEnableFailed:"Enable failed: update explorerDates.enableAnalysisCommands in workspace settings.",workspaceTemplatesDisabled:"Workspace templates are disabled. Enable explorerDates.enableWorkspaceTemplates to use this command.",workspaceTemplatesDisabledSave:"Workspace templates are disabled. Enable explorerDates.enableWorkspaceTemplates to save templates.",enterTemplateName:"Enter template name",enterTemplateDescription:"Enter description (optional)",failedToOpenTemplateManager:t=>`Failed to open template manager: ${t}`,failedToSaveTemplate:t=>`Failed to save template: ${t}`,reportingDisabled:"Reporting features are disabled. Enable explorerDates.enableExportReporting to generate reports.",failedToGenerateReport:t=>`Failed to generate report: ${t}`,apiDisabled:"Explorer Dates API is disabled via settings.",failedToShowApiInformation:t=>`Failed to show API information: ${t}`,failedToShowWorkspaceActivity:t=>`Failed to show workspace activity: ${t}`,failedToShowPerformanceAnalytics:t=>`Failed to show performance analytics: ${t}`,failedToShowCacheDebugInfo:t=>`Failed to show cache debug info: ${t}`,noWorkspaceFolderOpen:"No workspace folder open",resetConfirm:"Reset Settings",resetCancel:"Cancel",resetSuccess:t=>`\u2705 Reset ${t} settings to defaults.`,validateNoIssues:"\u2705 Configuration is valid - no issues found!",validateFoundIssues:t=>`Found ${t} configuration issue(s). Would you like to see details?`,validateShowDetails:"Show Details",validateDismiss:"Dismiss",migrationNotificationMessage:t=>`Explorer Dates updated ${t} setting(s) for compatibility. Your configuration has been preserved.`,migrationViewChanges:"View Changes",migrationOpenSettings:"Open Settings",deprecatedPrompt:t=>`Explorer Dates found ${t} deprecated setting(s). Would you like to remove them?`,deprecatedClean:"Clean Up Now",deprecatedKeep:"Keep Old Settings",deprecatedAskLater:"Ask Later",showFileLocation:"Show File Location",teamConfigCorrupted:"Explorer Dates team configuration file appears to be corrupted. Please check the .explorer-dates-profiles.json file or restore from backup.",appliedFromTeamProfile:(t,e)=>`Applied ${t} Explorer Dates settings from team profile "${e}".`,documentedOverrides:"Documented Explorer Dates overrides in .vscode/explorer-dates-overrides.md",teamConfigMissingProfile:"Team configuration is missing an active profile.",ephemeralStorageEnospc:"Explorer Dates team configuration could not be saved because the disk is full.",ephemeralStorageGeneric:"Explorer Dates team configuration could not be saved because the workspace is read-only or permissions are restricted.",ephemeralStorageSuffix:" Changes will be kept in memory until VS Code restarts, so they may be lost."}};try{let t=De();if(t&&typeof t=="object")for(let[e,r]of Object.entries(t)){b[e]||(b[e]={});for(let[a,s]of Object.entries(r))typeof b[e][a]>"u"&&(b[e][a]=s)}}catch{}var L=class{constructor(){this.m="en",this.l=null,this.T(),typeof E.workspace.onDidChangeConfiguration=="function"?this.l=E.workspace.onDidChangeConfiguration(e=>{e.affectsConfiguration("explorerDates.locale")&&this.T()}):this.l=null}T(){let r=E.workspace.getConfiguration("explorerDates").get("locale","auto");if(r==="auto"){let a=E&&E.env&&typeof E.env.language=="string"?E.env.language:"en";try{r=String(a||"en").split("-")[0]}catch{r="en"}}b[r]||(r="en"),this.m=r}getString(e,...r){let s=(b[this.m]||b.en)[e];return typeof s=="function"?s(...r):s||b.en[e]||e}getCurrentLocale(){return this.m}formatDate(e,r={}){try{return e.toLocaleDateString(this.m,r)}catch{return e.toLocaleDateString("en",r)}}dispose(){this.l&&(this.l.dispose(),this.l=null),x===this&&(x=null)}},x=null;function Et(){return x||(x=new L),x}Ee.exports={LocalizationManager:L,getLocalization:Et}});var ve=d((zt,Se)=>{var F=class{constructor(){this.t=null,this.s=null}_(){return this.t?Promise.resolve(this.t):this.s?this.s:(this.s=Promise.resolve().then(()=>O(ye())).then(e=>{try{this.t=e.getLocalization()}catch{this.t=null}return this.s=null,this.t}).catch(()=>(this.s=null,null)),this.s)}getString(e,...r){if(this.t&&typeof this.t.getString=="function")return this.t.getString(e,...r);if(this.w&&typeof e=="string"&&Object.prototype.hasOwnProperty.call(this.w,e)){let a=this.w[e];return typeof a=="function"?a(...r):a}return typeof e=="string"?e:""}formatDate(e){return this.t&&typeof this.t.formatDate=="function"?this.t.formatDate(e):e instanceof Date?e.toString():String(e)}getCurrentLocale(){return this.t&&typeof this.t.getCurrentLocale=="function"?this.t.getCurrentLocale():"en"}dispose(){if(this.t&&typeof this.t.dispose=="function")try{this.t.dispose()}catch{}this.t=null,this.s=null}},N={now:"now",justNow:"just now",minutesAgo:t=>`${t} minute${t!==1?"s":""} ago`,hoursAgo:t=>`${t} hour${t!==1?"s":""} ago`,yesterday:"yesterday",daysAgo:t=>`${t} day${t!==1?"s":""} ago`,lastModified:"Last modified",refreshSuccess:"Date decorations refreshed",activationError:"Explorer Dates failed to activate",errorAccessingFile:"Error accessing file for decoration",clearTelemetrySuccess:"\u2705 Explorer Dates telemetry cleared.",migrateChecking:"Checking for settings that need migration...",migrateAllUpToDate:"\u2705 All settings are up to date!",migrateApplied:t=>`\u2705 Explorer Dates maintenance applied: ${t}.`,organizeSettingsResult:t=>`Explorer Dates settings organized: ${t}`,cleanupSuccess:"\u2705 Deprecated settings have been cleaned up!",reportingDisabled:"Reporting features are disabled. Enable explorerDates.enableExportReporting to generate reports.",reportSaved:t=>`Report saved to ${t}`,failedToGenerateReport:t=>`Failed to generate report: ${t}`};try{let t=j();if(t&&typeof t=="object")for(let[e,r]of Object.entries(t))typeof N[e]>"u"&&(typeof r=="string"&&r.includes("{")?N[e]=(...a)=>{let s=r;return a.forEach((o,n)=>{s=s.replace(new RegExp(`\\{${n}\\}`,"g"),String(o))}),s}:N[e]=r)}catch{}var C=null;function yt(){return C||(C=new F,C.w=N,C._().catch(()=>{}),C)}Se.exports={LocalizationManager:F,getLocalization:yt}});var xe=d((Ht,Te)=>{var G=require("vscode"),{getLocalization:St}=ve(),vt=St();function Ce(){return typeof G.workspace.isTrusted>"u"?!0:G.workspace.isTrusted===!0}function ke(t="operation"){if(!Ce()){let e=vt.getString("operationRequiresTrust",t)||`This operation requires a trusted workspace. Please trust this workspace to use ${t}.`;throw G.window.showErrorMessage(e),new Error(`Workspace trust required for ${t}`)}}async function Ct(t,e="operation"){try{return ke(e),await t()}catch{return null}}Te.exports={isWorkspaceTrusted:Ce,requireWorkspaceTrust:ke,withTrustGuard:Ct}});var Ae=d((exports,module)=>{var vscode=require("vscode"),{getLogger}=T(),{recordCommandRegistration,recordCommandInvocation,recordCommandResult}=P(),{diagLog}=P(),logger=getLogger(),isWebRuntime=(()=>{try{return vscode?.env?.uiKind===vscode?.UIKind?.Web}catch{return typeof process>"u"||process?.env?.VSCODE_WEB==="true"}})();function createWebRuntimeManagerStub(){let t=async e=>{diagLog("warn","QuickPick unavailable",{context:"runtimeCommands.webStub",isWeb:isWebRuntime}),typeof vscode?.window?.showInformationMessage=="function"&&await vscode.window.showInformationMessage(e)};return{async showAllPresets(){await t("Runtime presets are unavailable in VS Code for Web.")},async restorePreviousPreset(){return await t("Runtime presets are unavailable in VS Code for Web."),{restored:!1}},async showPresetComparison(){await t("Runtime preset comparisons are unavailable in VS Code for Web.")},async checkAutoSuggestion(){await t("Runtime preset suggestions are unavailable in VS Code for Web.")},async getCurrentRuntimeState(){return{currentSettings:{},analysis:null}}}}function registerRuntimeCommands(context){let runtimeManager=null,teamPersistenceManager=null,managersInitializing=null,runtimeManagerProxy={dispose:()=>{if(runtimeManager&&typeof runtimeManager.dispose=="function")try{runtimeManager.dispose()}catch(t){logger.warn("Error during runtimeManager.dispose proxy",t)}}},teamPersistenceManagerProxy={dispose:()=>{if(teamPersistenceManager&&typeof teamPersistenceManager.dispose=="function")try{teamPersistenceManager.dispose()}catch(t){logger.warn("Error during teamPersistenceManager.dispose proxy",t)}}};function loadTeamPersistenceModule(){if(isWebRuntime)return null;let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire!="function")return null;let candidates=["../chunks/teamPersistence","../chunks/team-persistence-chunk"];for(let t of candidates)try{let e=dynamicRequire(t);if(e)return e.default||e}catch{}return null}async function ensureManagers(){return managersInitializing||(managersInitializing=(async()=>{if(!runtimeManager){if(isWebRuntime){runtimeManager=createWebRuntimeManagerStub();return}let t=await Promise.resolve().then(()=>O(pe()));runtimeManager=new t.RuntimeConfigManager(context)}if(!teamPersistenceManager&&!isWebRuntime){let persistence=loadTeamPersistenceModule();if(persistence?.createTeamPersistenceManager)teamPersistenceManager=persistence.createTeamPersistenceManager(context);else if(persistence?.TeamConfigPersistenceManager)teamPersistenceManager=new persistence.TeamConfigPersistenceManager(context);else{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let t=dynamicRequire("../teamConfigPersistence.proxy");teamPersistenceManager=new t.TeamConfigPersistenceManager(context)}}}})(),managersInitializing)}let registerCommand=(t,e)=>(recordCommandRegistration(t),vscode.commands.registerCommand(t,async(...r)=>{recordCommandInvocation(t);try{let a=await e(...r);return recordCommandResult(t,!0),a}catch(a){throw recordCommandResult(t,!1,a),a}})),commands=[registerCommand("explorerDates.applyPreset",async()=>{try{let{requireWorkspaceTrust:t}=xe();t("apply preset"),await ensureManagers(),await runtimeManager.showAllPresets()}catch(t){logger.error("Apply preset command failed:",t),vscode.window.showErrorMessage(`Failed to apply preset: ${t.message}`)}}),registerCommand("explorerDates.restorePreviousPreset",async()=>{try{await ensureManagers(),(await runtimeManager.restorePreviousPreset()).restored||logger.info("No preset backup available to restore")}catch(t){logger.error("Restore previous preset command failed:",t),vscode.window.showErrorMessage(`Failed to restore previous preset: ${t.message}`)}}),registerCommand("explorerDates.configureRuntime",async()=>{try{await ensureManagers();let t=await runtimeManager.getCurrentRuntimeState();await runtimeManager.showPresetComparison(t.currentSettings)}catch(t){logger.error("Configure runtime command failed:",t),vscode.window.showErrorMessage(`Failed to show runtime configuration: ${t.message}`)}}),registerCommand("explorerDates.suggestOptimalPreset",async()=>{try{await ensureManagers(),await runtimeManager.checkAutoSuggestion(!0)}catch(t){logger.error("Suggest optimal preset command failed:",t),vscode.window.showErrorMessage(`Failed to suggest preset: ${t.message}`)}}),registerCommand("explorerDates.showChunkStatus",async()=>{try{await ensureManagers();let t=await runtimeManager.getCurrentRuntimeState();await showChunkStatusQuickPick(t)}catch(t){logger.warn("Show chunk status: runtime managers unavailable, using fallback state",t);try{let e=vscode.workspace.getConfiguration("explorerDates"),r=[34,23,17,15,14,28,31,19],o={currentBundleSize:99+["enableOnboardingSystem","enableAnalysisCommands","enableExportReporting","enableExtensionApi","enableWorkspaceTemplates","enableAdvancedCache","enableWorkspaceIntelligence","enableIncrementalWorkers"].reduce((n,i,l)=>n+(e.get(i,!0)?r[l]:0),0)};await showChunkStatusQuickPick(o)}catch(e){logger.error("Show chunk status fallback failed:",e),vscode.window.showErrorMessage(`Failed to show chunk status: ${e.message}`)}}}),registerCommand("explorerDates.optimizeBundle",async()=>{try{await ensureManagers();let t=await runtimeManager.getCurrentRuntimeState();if(t.analysis){let e=await determineOptimalProfile(t.analysis);await runtimeManager.showPresetComparison(t.currentSettings,e)}else await runtimeManager.showAllPresets()}catch(t){logger.error("Optimize bundle command failed:",t),vscode.window.showErrorMessage(`Failed to optimize bundle: ${t.message}`)}}),registerCommand("explorerDates.validateTeamConfig",async()=>{try{if(isWebRuntime){vscode.window.showInformationMessage("Team configuration validation is unavailable in VS Code for Web.");return}if(await ensureManagers(),!teamPersistenceManager){vscode.window.showInformationMessage("Team configuration validation is unavailable.");return}let t=await teamPersistenceManager.validateTeamConfiguration();if(t.hasTeamConfig){let e=t.conflicts.length>0?`Found ${t.conflicts.length} conflicts.`:"No conflicts detected.";vscode.window.showInformationMessage(`Team configuration validated. ${e}`)}else vscode.window.showInformationMessage("No team configuration found in workspace.")}catch(t){logger.error("Validate team config command failed:",t),vscode.window.showErrorMessage(`Failed to validate team configuration: ${t.message}`)}})];return commands.forEach(t=>context.subscriptions.push(t)),logger.info("Runtime management commands registered"),{runtimeManager:runtimeManagerProxy,teamPersistenceManager:teamPersistenceManagerProxy}}async function showChunkStatusQuickPick(t){if(typeof vscode?.window?.showQuickPick!="function"){diagLog("warn","QuickPick unavailable",{context:"runtimeCommands.showChunkStatus",isWeb:isWebRuntime});try{typeof vscode?.window?.showInformationMessage=="function"&&vscode.window.showInformationMessage("Explorer Dates: This action is unavailable in this environment.")}catch{}return}let e=vscode.workspace.getConfiguration("explorerDates"),a=[{name:"Onboarding System",key:"enableOnboardingSystem",size:34},{name:"Analysis Commands",key:"enableAnalysisCommands",size:23},{name:"Export Reporting",key:"enableExportReporting",size:17},{name:"Extension API",key:"enableExtensionApi",size:15},{name:"Workspace Templates",key:"enableWorkspaceTemplates",size:14},{name:"Advanced Cache",key:"enableAdvancedCache",size:28},{name:"Workspace Intelligence",key:"enableWorkspaceIntelligence",size:31},{name:"Incremental Workers",key:"enableIncrementalWorkers",size:19}].map(s=>{let o=e.get(s.key,!0),n=o?"\u2705":"\u274C",i=o?"Enabled":"Disabled";return{label:`${n} ${s.name}`,description:`${s.size}KB | ${i}`,detail:getChunkDescription(s.key)}});a.unshift({label:"\u{1F4CA} Bundle Summary",description:`Total: ${t.currentBundleSize}KB`,detail:`Base bundle: 99KB + ${t.currentBundleSize-99}KB chunks`}),await vscode.window.showQuickPick(a,{placeHolder:"Current chunk status",ignoreFocusOut:!0})}function getChunkDescription(t){return{enableOnboardingSystem:"Welcome messages and guided setup",enableAnalysisCommands:"Advanced file analysis and metrics",enableExportReporting:"CSV/JSON export and reporting features",enableExtensionApi:"Public API for other extensions",enableWorkspaceTemplates:"Project templates and scaffolding",enableAdvancedCache:"Intelligent caching and performance",enableWorkspaceIntelligence:"Smart workspace analysis and insights",enableIncrementalWorkers:"Background processing and optimization"}[t]||"Explorer Dates feature chunk"}async function determineOptimalProfile(t){if(!t)return null;let{workspaceSize:e,isRemoteEnvironment:r}=t,a;e==="extreme"||e==="large"&&r?a="minimal":e==="large"||r?a="balanced":a="enterprise";let o=(await Promise.resolve().then(()=>O(V()))).PRESET_DEFINITIONS;return o[a]||o.balanced}module.exports={registerRuntimeCommands}});var{registerRuntimeCommands:kt}=Ae();module.exports={registerRuntimeCommands:kt}; diff --git a/dist/chunks/runtimeManagementHeavy.js b/dist/chunks/runtimeManagementHeavy.js index 94caf53..9935aa5 100644 --- a/dist/chunks/runtimeManagementHeavy.js +++ b/dist/chunks/runtimeManagementHeavy.js @@ -1,2 +1,2 @@ -var E=(n,e)=>()=>(e||n((e={exports:{}}).exports,e),e.exports);var k=E((Oe,W)=>{var S="__explorerDatesLogger",w=class{constructor(){this.a=null}i(e,t){if(this.a&&typeof this.a[e]=="function")try{return this.a[e](...t)}catch{}switch(e){case"debug":break;case"info":break;case"warn":break;case"error":break;default:break}}debug(...e){return this.i("debug",e)}info(...e){return this.i("info",e)}warn(...e){return this.i("warn",e)}error(...e){return this.i("error",e)}x(e){this.a=e}};function ne(){return typeof global<"u"?(global[S]||(global[S]=new w),global[S]):typeof globalThis<"u"?(globalThis[S]||(globalThis[S]=new w),globalThis[S]):(T||(T=new w),T)}var L=class extends w{},T=null;W.exports={Logger:L,getLogger:ne}});var D=E((Pe,M)=>{var y=typeof process<"u"&&process.env?process.env:{},se=12e4,oe=1e4,ae=1440*60*1e3,ie=2,ce=["Ja","Fe","Mr","Ap","My","Jn","Jl","Au","Se","Oc","No","De"],le=Number(y.EXPLORER_DATES_DECORATION_POOL_SIZE||2048),ue=Number(y.EXPLORER_DATES_FLYWEIGHT_CACHE_SIZE||4096),de=Number(y.EXPLORER_DATES_WORKSPACE_BALANCED_THRESHOLD||15e3),pe=Number(y.EXPLORER_DATES_WORKSPACE_LARGE_THRESHOLD||25e4),N=Number(y.EXPLORER_DATES_WORKSPACE_EXTREME_THRESHOLD||4e5),ge=Number(y.EXPLORER_DATES_WORKSPACE_SCAN_MAX_RESULTS||Math.min(N+1,50001)),fe={ADVANCED_CACHE:"explorerDates.advancedCache",ADVANCED_CACHE_METADATA:"explorerDates.advancedCacheMetadata",TEMPLATE_STORE:"explorerDates.templates",WEB_GIT_NOTICE:"explorerDates.webGitNotice"},he="explorerDatesChunks",me="__explorerDatesChunks";M.exports={DEFAULT_CACHE_TIMEOUT:se,DEFAULT_MAX_CACHE_SIZE:oe,DEFAULT_PERSISTENT_CACHE_TTL:ae,DEFAULT_DECORATION_POOL_SIZE:le,DEFAULT_FLYWEIGHT_CACHE_SIZE:ue,MAX_BADGE_LENGTH:ie,MONTH_ABBREVIATIONS:ce,WORKSPACE_SCALE_BALANCED_THRESHOLD:de,WORKSPACE_SCALE_LARGE_THRESHOLD:pe,WORKSPACE_SCALE_EXTREME_THRESHOLD:N,WORKSPACE_SCAN_MAX_RESULTS:ge,GLOBAL_STATE_KEYS:fe,WEB_CHUNK_GLOBAL_KEY:he,LEGACY_WEB_CHUNK_GLOBAL_KEY:me}});var U=E((We,B)=>{var g=require("vscode"),{getLogger:Ee}=k(),{WORKSPACE_SCALE_BALANCED_THRESHOLD:K,WORKSPACE_SCALE_LARGE_THRESHOLD:v,WORKSPACE_SCALE_EXTREME_THRESHOLD:F,WORKSPACE_SCAN_MAX_RESULTS:$}=D(),x=Ee(),_=null;function H(n){return n&&(n.fsPath||n.path)||null}function I(n,e){let t=H(n);!t||typeof e!="number"||(_={workspaceKey:t,fileCount:e,timestamp:Date.now()})}function O(n){let e=H(n);return!e||!_||_.workspaceKey!==e?null:_}function Se(n,e="default"){if(!n)return`unknown-workspace-${e}`;let t=n.fsPath||n.path||"",r=t.split("/").pop()||"workspace",s=Math.abs(t.split("").reduce((a,i)=>(a=(a<<5)-a+i.charCodeAt(0),a&a),0)).toString(36).substr(0,8),o=Math.abs(e.split("").reduce((a,i)=>(a=(a<<5)-a+i.charCodeAt(0),a&a),0)).toString(36).substr(0,4);return`${r}-${s}-${o}`}async function we(n){try{if(!n)return"unknown";let e=O(n),t;e?t=e.fileCount:(t=(await g.workspace.findFiles("**/*",null,$)).length,I(n,t));let r="small";t>=F?r="extreme":t>=v?r="large":t>=1e3&&(r="medium");let s=g.env.remoteName,o=g.env.uiKind===g.UIKind.Web,a=r==="medium"&&t>=K&&tm.toLowerCase());if(c.includes("package.json")||c.includes("yarn.lock"))return"web-development";if(c.some(m=>m.endsWith(".ipynb"))||c.includes("requirements.txt"))return"data-science";if(c.includes("docker-compose.yml")||c.includes(".enterprise"))return"enterprise"}catch(i){x.debug("Project type detection failed:",i)}return"full"}catch(e){return x.error("Workspace profile detection failed:",e),"unknown"}}async function ye(n){if(!n)return null;try{let e=O(n),t;e?t=e.fileCount:(t=(await g.workspace.findFiles("**/*",null,$)).length,I(n,t));let r="small";t>=F?r="extreme":t>=v?r="large":t>=1e3&&(r="medium");let s=!!g.env.remoteName,o=g.env.uiKind===g.UIKind.Web,a=o?"web":s?"remote":"local",i=r==="medium"&&t>=K&&t{var CHUNK_SIZES={onboarding:34,analysisCommands:23,exportReporting:17,extensionApi:15,workspaceTemplates:14,advancedCache:28,workspaceIntelligence:31,incrementalWorkers:19},BASE_BUNDLE_SIZE=99;function _getPresetDefinitionsSync(){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let n=dynamicRequire("./chunks/preset-definitions-chunk");if(n&&n.PRESET_DEFINITIONS)return n.PRESET_DEFINITIONS}}catch{}let FALLBACK_PRESET={minimal:{id:"minimal",name:"Minimal",description:"Lean setup that prioritizes responsiveness in large repos.",targetScenarios:["Large repos","Low resources","Minimal UI"],settings:{"explorerDates.performanceMode":!0,"explorerDates.showDateDecorations":!0}},balanced:{id:"balanced",name:"Balanced",description:"Default feature mix for most workspaces.",targetScenarios:["General development","Mixed workloads"],settings:{"explorerDates.enableOnboardingSystem":!0,"explorerDates.enableAnalysisCommands":!0,"explorerDates.performanceMode":!1,"explorerDates.dateDecorationFormat":"smart","explorerDates.colorScheme":"recency","explorerDates.badgePriority":"time"}},"web-development":{id:"web-development",name:"Web Development",description:"Optimized for frontend and full-stack web projects.",targetScenarios:["Web apps","Frontend teams"],settings:{"explorerDates.enableOnboardingSystem":!0,"explorerDates.dateDecorationFormat":"smart","explorerDates.colorScheme":"file-type","explorerDates.badgePriority":"time"}},enterprise:{id:"enterprise",name:"Enterprise",description:"Full feature set with reporting and integrations enabled.",targetScenarios:["Large teams","Governed environments"],settings:{"explorerDates.enableExportReporting":!0,"explorerDates.enableExtensionApi":!0,"explorerDates.dateDecorationFormat":"smart","explorerDates.colorScheme":"recency","explorerDates.badgePriority":"time"}},"data-science":{id:"data-science",name:"Data Science",description:"Insight-focused profile for data-heavy projects.",targetScenarios:["Data analysis","Research workflows"],settings:{"explorerDates.enableWorkspaceIntelligence":!0,"explorerDates.dateDecorationFormat":"iso-detailed","explorerDates.colorScheme":"recency","explorerDates.badgePriority":"time"}}};return FALLBACK_PRESET}var PRESET_DEFINITIONS=_getPresetDefinitionsSync(),RESTART_REQUIRED_SETTINGS=new Set(["enableOnboardingSystem","enableAnalysisCommands","enableExportReporting","enableExtensionApi","enableWorkspaceTemplates","enableAdvancedCache","enableWorkspaceIntelligence","enableIncrementalWorkers","performanceMode","smartFileWatching"]);function calculateBundleSize(n){let e=BASE_BUNDLE_SIZE;return n["explorerDates.enableOnboardingSystem"]&&(e+=CHUNK_SIZES.onboarding),n["explorerDates.enableAnalysisCommands"]&&(e+=CHUNK_SIZES.analysisCommands),n["explorerDates.enableExportReporting"]&&(e+=CHUNK_SIZES.exportReporting),n["explorerDates.enableExtensionApi"]&&(e+=CHUNK_SIZES.extensionApi),n["explorerDates.enableWorkspaceTemplates"]&&(e+=CHUNK_SIZES.workspaceTemplates),n["explorerDates.enableAdvancedCache"]&&(e+=CHUNK_SIZES.advancedCache),n["explorerDates.enableWorkspaceIntelligence"]&&(e+=CHUNK_SIZES.workspaceIntelligence),n["explorerDates.enableIncrementalWorkers"]&&(e+=CHUNK_SIZES.incrementalWorkers),e}function getDefaultPresetForProfile(n){let e=PRESET_DEFINITIONS;switch(n){case"minimal":case"extreme":return e.minimal||e.minimal;case"balanced":return e.balanced||e.balanced;case"web-development":return e["web-development"]||e["web-development"];case"data-science":return e["data-science"]||e["data-science"];case"enterprise":return e.enterprise||e.enterprise;default:return e.balanced||e.balanced}}module.exports={PRESET_DEFINITIONS,CHUNK_SIZES,BASE_BUNDLE_SIZE,RESTART_REQUIRED_SETTINGS,calculateBundleSize,getDefaultPresetForProfile}});var V=E((exports,module)=>{var{getLogger}=k(),env=typeof process<"u"&&process.env?process.env:{};function createFallbackVscodeMinimal(){return{workspace:{workspaceFolders:[],getConfiguration:()=>({get:()=>{},async update(){},inspect:()=>({defaultValue:void 0,globalValue:void 0,workspaceValue:void 0,workspaceFolderValue:void 0})})},ConfigurationTarget:{Global:1,Workspace:2,WorkspaceFolder:3}}}function resolveVscodeMinimal(){try{return require("vscode")}catch{return createFallbackVscodeMinimal()}}var MinimalSettingsCoordinator=class{constructor(e={}){this.b=e.defaultSection||"explorerDates",this.c=new Map,this.f=new Map,this.I=Number(env.EXPLORER_DATES_LOCK_WAIT_WARN_MS||1e3),this._logger=getLogger()}C(e,t){let s=(this.c.get(e)||Promise.resolve()).then(()=>t()),o=s.catch(()=>{});return this.c.set(e,o),s.finally(()=>{this.c.get(e)===o&&this.c.delete(e)}),s}u(e,t){return resolveVscodeMinimal().workspace.getConfiguration(e||void 0,t)}o(e,t){let r=t||this.b;return r?e.startsWith(`${r}.`)?{section:r,key:e.slice(r.length+1),fullKey:e}:e.includes(".")?{section:void 0,key:e,fullKey:e}:{section:r,key:e,fullKey:`${r}.${e}`}:{section:void 0,key:e,fullKey:e}}async updateSetting(e,t,r={}){return this.C(this.o(e,r.section).fullKey,async()=>{let s=this.o(e,r.section),o=this.u(s.section,r.resource);try{let a=this.k(r.scope,r.resource);return await o.update(s.key,t,a),{key:s.fullKey,updated:!0}}catch(a){try{this._logger.warn(`Configuration update failed for ${s.fullKey}: ${a&&a.message}`)}catch{}return{key:s.fullKey,updated:!1,error:a}}})}async applySettings(e,t={}){let r=Array.isArray(e)?e:Object.entries(e).map(([a,i])=>({key:a,value:i})),s=[];for(let a of r)try{s.push(await this.updateSetting(a.key,a.value,t))}catch(i){s.push({key:this.o(a.key,t.section).fullKey,updated:!1,error:i})}let o=s.filter(a=>a&&a.error);if(o.length>0){let a=o.map(c=>`${c.key}: ${c.error&&c.error.message?c.error.message:String(c.error)}`),i=new Error(`Failed to apply ${o.length} setting(s): ${a.join("; ")}`);throw i.details=o,i}return s}k(e,t){return e&&e!=="auto"?this.D(e)||resolveVscodeMinimal().ConfigurationTarget.Workspace:t?resolveVscodeMinimal().ConfigurationTarget.WorkspaceFolder:resolveVscodeMinimal().workspace.workspaceFolders&&resolveVscodeMinimal().workspace.workspaceFolders.length>0?resolveVscodeMinimal().ConfigurationTarget.Workspace:resolveVscodeMinimal().ConfigurationTarget.Global}D(e){switch(e){case"user":return resolveVscodeMinimal().ConfigurationTarget.Global;case"workspace":return resolveVscodeMinimal().ConfigurationTarget.Workspace;case"workspaceFolder":return resolveVscodeMinimal().ConfigurationTarget.WorkspaceFolder;default:return}}getValue(e,t={}){let{section:r,resource:s}=t||{},o=this.o(e,r);return this.u(o.section,s).get(o.key)}inspect(e,t={}){let{section:r,resource:s}=t||{},o=this.o(e,r);return this.u(o.section,s).inspect(o.key)}async clearSetting(e,t={}){return this.updateSetting(e,void 0,t)}getLockWaitStats(){let e={};for(let[t,r]of this.f.entries())e[t]={...r};return e}resetLockWaitStats(){this.f.clear()}},cachedCoordinator=null;function getSettingsCoordinator(options){if(!cachedCoordinator||options&&options.forceNew){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let n=null;try{n=dynamicRequire("../chunks/settings-coordinator-impl-chunk")}catch{}try{n||(n=dynamicRequire("../chunks/settingsCoordinator-impl-chunk"))}catch{}if(n&&typeof n.createSettingsCoordinatorImpl=="function")return cachedCoordinator=n.createSettingsCoordinatorImpl(options),cachedCoordinator}}catch{}try{let{WEB_CHUNK_GLOBAL_KEY:n,LEGACY_WEB_CHUNK_GLOBAL_KEY:e}=D(),t=typeof globalThis<"u"&&(globalThis[n]||globalThis[e])||null;if(t&&t.settingsCoordinatorImpl&&typeof t.settingsCoordinatorImpl.createSettingsCoordinatorImpl=="function")return cachedCoordinator=t.settingsCoordinatorImpl.createSettingsCoordinatorImpl(options),cachedCoordinator}catch{}cachedCoordinator=new MinimalSettingsCoordinator(options)}return cachedCoordinator}module.exports={getSettingsCoordinator,MinimalSettingsCoordinator}});var j=E((Ne,Z)=>{var z=typeof process<"u"&&process.env?process.env:{},G="[ExplorerDates][WebDiag]",P="__explorerDatesWebDiagnostics",A;function be(){try{let n=require("vscode");return n?.env?.uiKind===n?.UIKind?.Web}catch{return z.VSCODE_WEB==="true"}}function d(){return A!==void 0||(A=z.EXPLORER_DATES_WEB_DIAG==="1"||be()),A}function X(){return{enabled:d(),logs:[],logOnce:new Set,commandsRegistered:new Set,commandsInvoked:[],errors:[],chunkLoads:[],provider:{created:!1,registered:!1,hydrated:!1,decorationCalls:0,refreshCalls:0,lastEvent:null}}}var Ce=X();function p(){return typeof globalThis<"u"?(globalThis[P]||(globalThis[P]=X()),globalThis[P]):Ce}function ke(n){try{return JSON.stringify(n)}catch{return String(n)}}function f(n,e,t){if(!d())return;let r=p(),s={ts:new Date().toISOString(),level:n,message:e,meta:t||null};r.logs.push(s),r.logs.length>400&&r.logs.shift();let o=t?`${G} ${e} ${ke(t)}`:`${G} ${e}`,a=console[n]||console.info;try{a(o)}catch{}}function De(n,e,t,r){if(!d())return;let s=p();s.logOnce.has(n)||(s.logOnce.add(n),f(e,t,r))}function _e(n){if(!d())return;p().commandsRegistered.add(n),f("info","Command registered",{commandId:n})}function ve(n){if(!d())return;p().commandsInvoked.push({commandId:n,ts:Date.now()}),f("info","Command invoked",{commandId:n})}function Ae(n,e,t){d()&&(e?f("info","Command completed",{commandId:n}):(f("error","Command failed",{commandId:n,error:t?.message,stack:t?.stack}),p().errors.push({commandId:n,error:t?.message,stack:t?.stack})))}function Re(n,e,t){if(!d())return;p().chunkLoads.push({chunkName:n,stage:e,ts:Date.now(),error:t?t.message||String(t):null}),f(t?"warn":"info",`Chunk ${e}`,{chunkName:n,error:t?.message})}function Te(n,e){if(!d())return;let t=p();t.provider.lastEvent={event:n,ts:Date.now(),meta:e||null},n==="created"&&(t.provider.created=!0),n==="registered"&&(t.provider.registered=!0),n==="hydrated"&&(t.provider.hydrated=!0),f("info",`Provider ${n}`,e)}function Le(){if(!d())return;let n=p();n.provider.decorationCalls+=1,n.provider.decorationCalls<=3&&f("info","Decoration request observed",{count:n.provider.decorationCalls})}function xe(){if(!d())return;let n=p();n.provider.refreshCalls+=1}Z.exports={isWebDiagnosticsEnabled:d,getWebDiagnosticsState:p,diagLog:f,diagLogOnce:De,recordCommandRegistration:_e,recordCommandInvocation:ve,recordCommandResult:Ae,recordChunkEvent:Re,recordProviderEvent:Te,recordDecorationCall:Le,recordRefreshCall:xe}});var Y=E((exports,module)=>{var vscode=require("vscode"),getLogger=()=>{try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let n=dynamicRequire("./chunks/logger-chunk");if(n&&typeof n.getLogger=="function")return getLogger=n.getLogger,getLogger()}}catch{}try{return getLogger=k().getLogger,getLogger()}catch{return getLogger=()=>({debug:(()=>{})?.bind(console)||console.log,info:(()=>{}).bind(console),warn:(()=>{}).bind(console),error:(()=>{}).bind(console)}),getLogger()}},{generateWorkspaceKey,detectWorkspaceProfile,analyzeWorkspaceEnvironment}=U(),{PRESET_DEFINITIONS,calculateBundleSize,getDefaultPresetForProfile,RESTART_REQUIRED_SETTINGS}=q(),{getSettingsCoordinator}=V(),{WORKSPACE_SCALE_LARGE_THRESHOLD,WORKSPACE_SCALE_EXTREME_THRESHOLD}=D(),{diagLog}=j(),isWebRuntime=(()=>{try{return vscode?.env?.uiKind===vscode?.UIKind?.Web}catch{return!1}})(),logger=getLogger(),quickPickUnavailableMessage="Explorer Dates: This action is unavailable in this environment.";function ensureQuickPickAvailable(n){if(typeof vscode?.window?.showQuickPick=="function")return!0;diagLog("warn","QuickPick unavailable",{context:n,isWeb:isWebRuntime});try{typeof vscode?.window?.showInformationMessage=="function"&&vscode.window.showInformationMessage(quickPickUnavailableMessage)}catch{}return!1}var RuntimeConfigManager=class{constructor(e){this.O=e,this.e=e.globalState,this.d=null,this.n=null,this.r="explorerDates.pendingRestart",this.h="explorerDates.suggestionHistory",this.l="explorerDates.presetBackup",this.p="explorerDates.lastPreset",this.m=getSettingsCoordinator(),this._(),logger.info("Runtime configuration manager initialized")}async getCurrentRuntimeState(){let e=vscode.workspace.getConfiguration("explorerDates"),t=this.s(e),r=this.t(null,t),s=vscode.workspace.workspaceFolders?.[0]?.uri,o=await analyzeWorkspaceEnvironment(s);return{currentSettings:t,currentBundleSize:r,analysis:o,availablePresets:Object.keys(PRESET_DEFINITIONS),pendingRestart:this.e.get(this.r,[]),timestamp:Date.now()}}async checkAutoSuggestion(e=!1){try{let t=vscode.workspace.workspaceFolders?.[0]?.uri;if(!t){e&&vscode.window.showInformationMessage("Explorer Dates: No workspace folder is open. Open a folder to receive configuration suggestions.");return}let r=await detectWorkspaceProfile(t),s=generateWorkspaceKey(t,r),o=this.e.get(this.h,{}),a=o[s];if(e||!a||a.profileDetected!==r||await this.v(a)){let c=await this.E(r);if(c){if(e&&c.reason==="minimal savings")vscode.window.showInformationMessage(`Explorer Dates: Your configuration is already well-optimized for a ${r} workspace. No changes recommended.`);else if(c.accepted!==void 0){let m=await analyzeWorkspaceEnvironment(t);o[s]={profileDetected:r,suggestedAt:Date.now(),fileCountAtSuggestion:m?.fileCount||0,accepted:c.accepted,presetId:c.preset},await this.e.update(this.h,o),logger.info("Auto-suggestion updated:",o[s])}}}else e&&(await this.E(r))?.reason==="minimal savings"&&vscode.window.showInformationMessage(`Explorer Dates: Your configuration is already well-optimized for a ${r} workspace. No changes recommended.`)}catch(t){logger.error("Auto-suggestion check failed:",t)}}async E(e){let t=this.s(vscode.workspace.getConfiguration("explorerDates")),r=getDefaultPresetForProfile(e),s=this.t(null,t),o=r?this.t(r.settings,t):s,a=s-o;if(a<=10)return{accepted:!1,preset:e,reason:"minimal savings"};let i=`Explorer Dates detected a ${e} workspace. Would you like to apply ${r.name} settings? This could save ~${a}KB.`;switch(await vscode.window.showInformationMessage(i,{modal:!1},"Apply Settings","Show Details","Not Now")){case"Apply Settings":return await this.g(r.id,r),{accepted:!0,preset:e};case"Show Details":return await this.showPresetComparison(t,r),{accepted:!1,preset:e};default:return{accepted:!1,preset:e}}}async g(e,t=null){let r=t||PRESET_DEFINITIONS[e];if(!r)throw new Error(`Unknown preset: ${e}`);let s=this.s(vscode.workspace.getConfiguration("explorerDates"));await this.A(e,s);let o=Object.entries(r.settings||{}),a=[],i=[],c=[],m=isWebRuntime?"user":"workspace",J=`apply-preset:${e}`,ee=l=>{try{if(!l||typeof l!="string")return!1;let C="explorerDates.";if(l.startsWith(C)){let R=l.slice(C.length),b=vscode.workspace.getConfiguration("explorerDates").inspect(R);return b?[b.defaultValue,b.globalValue,b.workspaceValue,b.workspaceFolderValue].some(re=>re!==void 0):!1}let u=vscode.workspace.getConfiguration().inspect(l);return u?[u.defaultValue,u.globalValue,u.workspaceValue,u.workspaceFolderValue].some(R=>R!==void 0):!1}catch{return!1}};for(let[l,C]of o){if(!ee(l)){i.push(l),diagLog("warn","Preset skipped unregistered setting",{key:l,presetId:e});continue}try{a.push(await this.m.updateSetting(l,C,{scope:m,reason:J}))}catch(u){c.push({key:l,error:u}),logger.warn(`Preset application failed for ${l}: ${u&&u.message?u.message:String(u)}`)}}let h=a.filter(l=>l.updated).map(l=>l.key.replace("explorerDates.","")),te=`Applied "${r.name}" preset. Applied: ${h.length}. Skipped: ${i.length}. Failed: ${c.length}.`;try{vscode.window.showInformationMessage(te)}catch{}if(logger.info(`Applied ${r.name} preset`,{changedSettings:h,skipped:i,failed:c.length}),diagLog("info","Preset applied summary",{presetId:e,applied:h.length,skipped:i,failed:c.map(l=>l.key),webRuntime:isWebRuntime}),h.length>0){this.S(h);try{await vscode.commands.executeCommand("explorerDates.refreshDateDecorations"),diagLog("info","Preset refresh triggered",{presetId:e,applied:h.length,skipped:i.length})}catch(l){diagLog("warn","Preset refresh failed",{presetId:e,error:l?.message})}}return{applied:h.length,preset:r,requiresRestart:h.some(l=>RESTART_REQUIRED_SETTINGS.has(l)),estimatedBundleSize:this.t()}}async restorePreviousPreset(e={}){let t=this.e.get(this.l,null);if(!t?.settings)return e.silent||vscode.window.showInformationMessage("No previous preset available to restore."),{restored:!1,reason:"no-backup"};let r;try{r=await this.m.applySettings(t.settings,{scope:"workspace",reason:"restore-previous-preset"})}catch(o){throw e.silent||vscode.window.showErrorMessage(`Failed to restore previous preset: ${o.message}`),logger.error("Preset rollback failed:",o),o}let s=r.filter(o=>o.updated).map(o=>o.key.replace("explorerDates.",""));return await this.e.update(this.r,[]),await this.e.update(this.l,null),await this.e.update(this.p,t.previousPreset||null),e.silent||vscode.window.showInformationMessage("Previous preset restored."),{restored:!0,changedSettings:s,restoredPreset:t.previousPreset||"unknown"}}async showPresetComparison(e,t){if(!ensureQuickPickAvailable("runtimeConfig.showPresetComparison"))return;let r=e||this.s(vscode.workspace.getConfiguration("explorerDates")),s=this.t(null,r),o=t?this.t(t.settings,r):s,a=s-o,i=[{label:"\u{1F4E6} Current Configuration",description:`Bundle: ${s}KB total`,detail:this.w(r),action:"current"},t?{label:`\u26A1 Recommended: ${t.name}`,description:`Bundle: ${o}KB total (saves ${Math.max(0,a)}KB)`,detail:this.w(t.settings),action:"apply",preset:t}:null,{label:"\u{1F527} Browse All Presets...",description:`Choose from ${Object.keys(PRESET_DEFINITIONS).length} available presets`,detail:"Minimal, Balanced, Web Development, Enterprise, Data Science",action:"browse"}].filter(Boolean),c=await vscode.window.showQuickPick(i,{placeHolder:"Choose configuration approach",ignoreFocusOut:!0,matchOnDescription:!0,matchOnDetail:!0});if(c)switch(c.action){case"apply":c.preset&&await this.g(c.preset.id,c.preset);break;case"browse":await this.showAllPresets();break}}async showAllPresets(){if(!ensureQuickPickAvailable("runtimeConfig.showAllPresets"))return;let e=this.s(vscode.workspace.getConfiguration("explorerDates")),t=this.t(null,e),r=Object.values(PRESET_DEFINITIONS).map(o=>{let a=this.t(o.settings,e),i=t-a,c=i>0?`saves ${i}KB`:i<0?`adds ${Math.abs(i)}KB`:"same size";return{label:`${o.name}`,description:`${a}KB (${c})`,detail:`${o.description} - ${o.targetScenarios.join(", ")}`,preset:o}}),s=await vscode.window.showQuickPick(r,{placeHolder:"Select a preset configuration",ignoreFocusOut:!0,matchOnDescription:!0,matchOnDetail:!0});s?.preset&&await vscode.window.showInformationMessage(`Apply "${s.preset.name}" preset? +var E=(n,e)=>()=>(e||n((e={exports:{}}).exports,e),e.exports);var D=E((Oe,W)=>{var S="__explorerDatesLogger",w=class{constructor(){this.a=null}i(e,t){if(this.a&&typeof this.a[e]=="function")try{return this.a[e](...t)}catch{}switch(e){case"debug":break;case"info":break;case"warn":break;case"error":break;default:break}}debug(...e){return this.i("debug",e)}info(...e){return this.i("info",e)}warn(...e){return this.i("warn",e)}error(...e){return this.i("error",e)}x(e){this.a=e}};function ne(){return typeof global<"u"?(global[S]||(global[S]=new w),global[S]):typeof globalThis<"u"?(globalThis[S]||(globalThis[S]=new w),globalThis[S]):(T||(T=new w),T)}var L=class extends w{},T=null;W.exports={Logger:L,getLogger:ne}});var k=E((Pe,M)=>{var y=typeof process<"u"&&process.env?process.env:{},se=12e4,oe=1e4,ae=1440*60*1e3,ie=2,ce=["Ja","Fe","Mr","Ap","My","Jn","Jl","Au","Se","Oc","No","De"],le=Number(y.EXPLORER_DATES_DECORATION_POOL_SIZE||2048),ue=Number(y.EXPLORER_DATES_FLYWEIGHT_CACHE_SIZE||4096),de=Number(y.EXPLORER_DATES_WORKSPACE_BALANCED_THRESHOLD||15e3),pe=Number(y.EXPLORER_DATES_WORKSPACE_LARGE_THRESHOLD||25e4),N=Number(y.EXPLORER_DATES_WORKSPACE_EXTREME_THRESHOLD||4e5),ge=Number(y.EXPLORER_DATES_WORKSPACE_SCAN_MAX_RESULTS||Math.min(N+1,50001)),fe={ADVANCED_CACHE:"explorerDates.advancedCache",ADVANCED_CACHE_METADATA:"explorerDates.advancedCacheMetadata",TEMPLATE_STORE:"explorerDates.templates",WEB_GIT_NOTICE:"explorerDates.webGitNotice"},he="explorerDatesChunks",me="__explorerDatesChunks";M.exports={DEFAULT_CACHE_TIMEOUT:se,DEFAULT_MAX_CACHE_SIZE:oe,DEFAULT_PERSISTENT_CACHE_TTL:ae,DEFAULT_DECORATION_POOL_SIZE:le,DEFAULT_FLYWEIGHT_CACHE_SIZE:ue,MAX_BADGE_LENGTH:ie,MONTH_ABBREVIATIONS:ce,WORKSPACE_SCALE_BALANCED_THRESHOLD:de,WORKSPACE_SCALE_LARGE_THRESHOLD:pe,WORKSPACE_SCALE_EXTREME_THRESHOLD:N,WORKSPACE_SCAN_MAX_RESULTS:ge,GLOBAL_STATE_KEYS:fe,WEB_CHUNK_GLOBAL_KEY:he,LEGACY_WEB_CHUNK_GLOBAL_KEY:me}});var U=E((We,B)=>{var g=require("vscode"),{getLogger:Ee}=D(),{WORKSPACE_SCALE_BALANCED_THRESHOLD:K,WORKSPACE_SCALE_LARGE_THRESHOLD:v,WORKSPACE_SCALE_EXTREME_THRESHOLD:F,WORKSPACE_SCAN_MAX_RESULTS:$}=k(),x=Ee(),_=null;function H(n){return n&&(n.fsPath||n.path)||null}function I(n,e){let t=H(n);!t||typeof e!="number"||(_={workspaceKey:t,fileCount:e,timestamp:Date.now()})}function O(n){let e=H(n);return!e||!_||_.workspaceKey!==e?null:_}function Se(n,e="default"){if(!n)return`unknown-workspace-${e}`;let t=n.fsPath||n.path||"",r=t.split("/").pop()||"workspace",s=Math.abs(t.split("").reduce((a,i)=>(a=(a<<5)-a+i.charCodeAt(0),a&a),0)).toString(36).substr(0,8),o=Math.abs(e.split("").reduce((a,i)=>(a=(a<<5)-a+i.charCodeAt(0),a&a),0)).toString(36).substr(0,4);return`${r}-${s}-${o}`}async function we(n){try{if(!n)return"unknown";let e=O(n),t;e?t=e.fileCount:(t=(await g.workspace.findFiles("**/*",null,$)).length,I(n,t));let r="small";t>=F?r="extreme":t>=v?r="large":t>=1e3&&(r="medium");let s=g.env.remoteName,o=g.env.uiKind===g.UIKind.Web,a=r==="medium"&&t>=K&&tm.toLowerCase());if(c.includes("package.json")||c.includes("yarn.lock"))return"web-development";if(c.some(m=>m.endsWith(".ipynb"))||c.includes("requirements.txt"))return"data-science";if(c.includes("docker-compose.yml")||c.includes(".enterprise"))return"enterprise"}catch(i){x.debug("Project type detection failed:",i)}return"full"}catch(e){return x.error("Workspace profile detection failed:",e),"unknown"}}async function ye(n){if(!n)return null;try{let e=O(n),t;e?t=e.fileCount:(t=(await g.workspace.findFiles("**/*",null,$)).length,I(n,t));let r="small";t>=F?r="extreme":t>=v?r="large":t>=1e3&&(r="medium");let s=!!g.env.remoteName,o=g.env.uiKind===g.UIKind.Web,a=o?"web":s?"remote":"local",i=r==="medium"&&t>=K&&t{var CHUNK_SIZES={onboarding:34,analysisCommands:23,exportReporting:17,extensionApi:15,workspaceTemplates:14,advancedCache:28,workspaceIntelligence:31,incrementalWorkers:19},BASE_BUNDLE_SIZE=99;function _getPresetDefinitionsSync(){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let n=dynamicRequire("./chunks/preset-definitions-chunk");if(n&&n.PRESET_DEFINITIONS)return n.PRESET_DEFINITIONS}}catch{}let FALLBACK_PRESET={minimal:{id:"minimal",name:"Minimal",description:"Lean setup that prioritizes responsiveness in large repos.",targetScenarios:["Large repos","Low resources","Minimal UI"],settings:{"explorerDates.performanceMode":!0,"explorerDates.showDateDecorations":!0}},balanced:{id:"balanced",name:"Balanced",description:"Default feature mix for most workspaces.",targetScenarios:["General development","Mixed workloads"],settings:{"explorerDates.enableOnboardingSystem":!0,"explorerDates.enableAnalysisCommands":!0,"explorerDates.performanceMode":!1,"explorerDates.dateDecorationFormat":"smart","explorerDates.colorScheme":"recency","explorerDates.badgePriority":"time"}},"web-development":{id:"web-development",name:"Web Development",description:"Optimized for frontend and full-stack web projects.",targetScenarios:["Web apps","Frontend teams"],settings:{"explorerDates.enableOnboardingSystem":!0,"explorerDates.dateDecorationFormat":"smart","explorerDates.colorScheme":"file-type","explorerDates.badgePriority":"time"}},enterprise:{id:"enterprise",name:"Enterprise",description:"Full feature set with reporting and integrations enabled.",targetScenarios:["Large teams","Governed environments"],settings:{"explorerDates.enableExportReporting":!0,"explorerDates.enableExtensionApi":!0,"explorerDates.dateDecorationFormat":"smart","explorerDates.colorScheme":"recency","explorerDates.badgePriority":"time"}},"data-science":{id:"data-science",name:"Data Science",description:"Insight-focused profile for data-heavy projects.",targetScenarios:["Data analysis","Research workflows"],settings:{"explorerDates.enableWorkspaceIntelligence":!0,"explorerDates.dateDecorationFormat":"iso-detailed","explorerDates.colorScheme":"recency","explorerDates.badgePriority":"time"}}};return FALLBACK_PRESET}var PRESET_DEFINITIONS=_getPresetDefinitionsSync(),RESTART_REQUIRED_SETTINGS=new Set(["enableOnboardingSystem","enableAnalysisCommands","enableExportReporting","enableExtensionApi","enableWorkspaceTemplates","enableAdvancedCache","enableWorkspaceIntelligence","enableIncrementalWorkers","performanceMode","smartFileWatching"]);function calculateBundleSize(n){let e=BASE_BUNDLE_SIZE;return n["explorerDates.enableOnboardingSystem"]&&(e+=CHUNK_SIZES.onboarding),n["explorerDates.enableAnalysisCommands"]&&(e+=CHUNK_SIZES.analysisCommands),n["explorerDates.enableExportReporting"]&&(e+=CHUNK_SIZES.exportReporting),n["explorerDates.enableExtensionApi"]&&(e+=CHUNK_SIZES.extensionApi),n["explorerDates.enableWorkspaceTemplates"]&&(e+=CHUNK_SIZES.workspaceTemplates),n["explorerDates.enableAdvancedCache"]&&(e+=CHUNK_SIZES.advancedCache),n["explorerDates.enableWorkspaceIntelligence"]&&(e+=CHUNK_SIZES.workspaceIntelligence),n["explorerDates.enableIncrementalWorkers"]&&(e+=CHUNK_SIZES.incrementalWorkers),e}function getDefaultPresetForProfile(n){let e=PRESET_DEFINITIONS;switch(n){case"minimal":case"extreme":return e.minimal||e.minimal;case"balanced":return e.balanced||e.balanced;case"web-development":return e["web-development"]||e["web-development"];case"data-science":return e["data-science"]||e["data-science"];case"enterprise":return e.enterprise||e.enterprise;default:return e.balanced||e.balanced}}module.exports={PRESET_DEFINITIONS,CHUNK_SIZES,BASE_BUNDLE_SIZE,RESTART_REQUIRED_SETTINGS,calculateBundleSize,getDefaultPresetForProfile}});var V=E((exports,module)=>{var{getLogger}=D(),env=typeof process<"u"&&process.env?process.env:{};function createFallbackVscodeMinimal(){return{workspace:{workspaceFolders:[],getConfiguration:()=>({get:()=>{},async update(){},inspect:()=>({defaultValue:void 0,globalValue:void 0,workspaceValue:void 0,workspaceFolderValue:void 0})})},ConfigurationTarget:{Global:1,Workspace:2,WorkspaceFolder:3}}}function resolveVscodeMinimal(){try{return require("vscode")}catch{return createFallbackVscodeMinimal()}}var MinimalSettingsCoordinator=class{constructor(e={}){this.b=e.defaultSection||"explorerDates",this.c=new Map,this.f=new Map,this.I=Number(env.EXPLORER_DATES_LOCK_WAIT_WARN_MS||1e3),this._logger=getLogger()}C(e,t){let s=(this.c.get(e)||Promise.resolve()).then(()=>t()),o=s.catch(()=>{});return this.c.set(e,o),s.finally(()=>{this.c.get(e)===o&&this.c.delete(e)}),s}u(e,t){return resolveVscodeMinimal().workspace.getConfiguration(e||void 0,t)}o(e,t){let r=t||this.b;return r?e.startsWith(`${r}.`)?{section:r,key:e.slice(r.length+1),fullKey:e}:e.includes(".")?{section:void 0,key:e,fullKey:e}:{section:r,key:e,fullKey:`${r}.${e}`}:{section:void 0,key:e,fullKey:e}}async updateSetting(e,t,r={}){return this.C(this.o(e,r.section).fullKey,async()=>{let s=this.o(e,r.section),o=this.u(s.section,r.resource);try{let a=this.D(r.scope,r.resource);return await o.update(s.key,t,a),{key:s.fullKey,updated:!0}}catch(a){try{this._logger.warn(`Configuration update failed for ${s.fullKey}: ${a&&a.message}`)}catch{}return{key:s.fullKey,updated:!1,error:a}}})}async applySettings(e,t={}){let r=Array.isArray(e)?e:Object.entries(e).map(([a,i])=>({key:a,value:i})),s=[];for(let a of r)try{s.push(await this.updateSetting(a.key,a.value,t))}catch(i){s.push({key:this.o(a.key,t.section).fullKey,updated:!1,error:i})}let o=s.filter(a=>a&&a.error);if(o.length>0){let a=o.map(c=>`${c.key}: ${c.error&&c.error.message?c.error.message:String(c.error)}`),i=new Error(`Failed to apply ${o.length} setting(s): ${a.join("; ")}`);throw i.details=o,i}return s}D(e,t){return e&&e!=="auto"?this.k(e)||resolveVscodeMinimal().ConfigurationTarget.Workspace:t?resolveVscodeMinimal().ConfigurationTarget.WorkspaceFolder:resolveVscodeMinimal().workspace.workspaceFolders&&resolveVscodeMinimal().workspace.workspaceFolders.length>0?resolveVscodeMinimal().ConfigurationTarget.Workspace:resolveVscodeMinimal().ConfigurationTarget.Global}k(e){switch(e){case"user":return resolveVscodeMinimal().ConfigurationTarget.Global;case"workspace":return resolveVscodeMinimal().ConfigurationTarget.Workspace;case"workspaceFolder":return resolveVscodeMinimal().ConfigurationTarget.WorkspaceFolder;default:return}}getValue(e,t={}){let{section:r,resource:s}=t||{},o=this.o(e,r);return this.u(o.section,s).get(o.key)}inspect(e,t={}){let{section:r,resource:s}=t||{},o=this.o(e,r);return this.u(o.section,s).inspect(o.key)}async clearSetting(e,t={}){return this.updateSetting(e,void 0,t)}getLockWaitStats(){let e={};for(let[t,r]of this.f.entries())e[t]={...r};return e}resetLockWaitStats(){this.f.clear()}},cachedCoordinator=null;function getSettingsCoordinator(options){if(!cachedCoordinator||options&&options.forceNew){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let n=null;try{n=dynamicRequire("../chunks/settings-coordinator-impl-chunk")}catch{}try{n||(n=dynamicRequire("../chunks/settingsCoordinator-impl-chunk"))}catch{}if(n&&typeof n.createSettingsCoordinatorImpl=="function")return cachedCoordinator=n.createSettingsCoordinatorImpl(options),cachedCoordinator}}catch{}try{let{WEB_CHUNK_GLOBAL_KEY:n,LEGACY_WEB_CHUNK_GLOBAL_KEY:e}=k(),t=typeof globalThis<"u"&&(globalThis[n]||globalThis[e])||null;if(t&&t.settingsCoordinatorImpl&&typeof t.settingsCoordinatorImpl.createSettingsCoordinatorImpl=="function")return cachedCoordinator=t.settingsCoordinatorImpl.createSettingsCoordinatorImpl(options),cachedCoordinator}catch{}cachedCoordinator=new MinimalSettingsCoordinator(options)}return cachedCoordinator}module.exports={getSettingsCoordinator,MinimalSettingsCoordinator}});var j=E((Ne,Z)=>{var z=typeof process<"u"&&process.env?process.env:{},G="[ExplorerDates][WebDiag]",P="__explorerDatesWebDiagnostics",A;function be(){try{let n=require("vscode");return n?.env?.uiKind===n?.UIKind?.Web}catch{return z.VSCODE_WEB==="true"}}function d(){return A!==void 0||(A=z.EXPLORER_DATES_WEB_DIAG==="1"||be()),A}function X(){return{enabled:d(),logs:[],logOnce:new Set,commandsRegistered:new Set,commandsInvoked:[],errors:[],chunkLoads:[],provider:{created:!1,registered:!1,hydrated:!1,decorationCalls:0,refreshCalls:0,lastEvent:null}}}var Ce=X();function p(){return typeof globalThis<"u"?(globalThis[P]||(globalThis[P]=X()),globalThis[P]):Ce}function De(n){try{return JSON.stringify(n)}catch{return String(n)}}function f(n,e,t){if(!d())return;let r=p(),s={ts:new Date().toISOString(),level:n,message:e,meta:t||null};r.logs.push(s),r.logs.length>400&&r.logs.shift();let o=t?`${G} ${e} ${De(t)}`:`${G} ${e}`,a=console[n]||console.info;try{a(o)}catch{}}function ke(n,e,t,r){if(!d())return;let s=p();s.logOnce.has(n)||(s.logOnce.add(n),f(e,t,r))}function _e(n){if(!d())return;p().commandsRegistered.add(n),f("info","Command registered",{commandId:n})}function ve(n){if(!d())return;p().commandsInvoked.push({commandId:n,ts:Date.now()}),f("info","Command invoked",{commandId:n})}function Ae(n,e,t,r,s){if(!d())return;let o=r||(e?"behavioral-success":"unhandled-command-failure"),a=t?{name:t.name||"Error",message:t.message||String(t),code:t.code||null}:null;e?f("info","Command completed",{commandId:n,outcomeCategory:o}):(f("error","Command failed",{commandId:n,outcomeCategory:o,error:a,errorContext:s||null}),p().errors.push({commandId:n,outcomeCategory:o,error:a,errorContext:s||null}))}function Re(n,e,t){if(!d())return;p().chunkLoads.push({chunkName:n,stage:e,ts:Date.now(),error:t?t.message||String(t):null}),f(t?"warn":"info",`Chunk ${e}`,{chunkName:n,error:t?.message})}function Te(n,e){if(!d())return;let t=p();t.provider.lastEvent={event:n,ts:Date.now(),meta:e||null},n==="created"&&(t.provider.created=!0),n==="registered"&&(t.provider.registered=!0),n==="hydrated"&&(t.provider.hydrated=!0),f("info",`Provider ${n}`,e)}function Le(){if(!d())return;let n=p();n.provider.decorationCalls+=1,n.provider.decorationCalls<=3&&f("info","Decoration request observed",{count:n.provider.decorationCalls})}function xe(){if(!d())return;let n=p();n.provider.refreshCalls+=1}Z.exports={isWebDiagnosticsEnabled:d,getWebDiagnosticsState:p,diagLog:f,diagLogOnce:ke,recordCommandRegistration:_e,recordCommandInvocation:ve,recordCommandResult:Ae,recordChunkEvent:Re,recordProviderEvent:Te,recordDecorationCall:Le,recordRefreshCall:xe}});var Y=E((exports,module)=>{var vscode=require("vscode"),getLogger=()=>{try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let n=dynamicRequire("./chunks/logger-chunk");if(n&&typeof n.getLogger=="function")return getLogger=n.getLogger,getLogger()}}catch{}try{return getLogger=D().getLogger,getLogger()}catch{return getLogger=()=>({debug:(()=>{})?.bind(console)||console.log,info:(()=>{}).bind(console),warn:(()=>{}).bind(console),error:(()=>{}).bind(console)}),getLogger()}},{generateWorkspaceKey,detectWorkspaceProfile,analyzeWorkspaceEnvironment}=U(),{PRESET_DEFINITIONS,calculateBundleSize,getDefaultPresetForProfile,RESTART_REQUIRED_SETTINGS}=q(),{getSettingsCoordinator}=V(),{WORKSPACE_SCALE_LARGE_THRESHOLD,WORKSPACE_SCALE_EXTREME_THRESHOLD}=k(),{diagLog}=j(),isWebRuntime=(()=>{try{return vscode?.env?.uiKind===vscode?.UIKind?.Web}catch{return!1}})(),logger=getLogger(),quickPickUnavailableMessage="Explorer Dates: This action is unavailable in this environment.";function ensureQuickPickAvailable(n){if(typeof vscode?.window?.showQuickPick=="function")return!0;diagLog("warn","QuickPick unavailable",{context:n,isWeb:isWebRuntime});try{typeof vscode?.window?.showInformationMessage=="function"&&vscode.window.showInformationMessage(quickPickUnavailableMessage)}catch{}return!1}var RuntimeConfigManager=class{constructor(e){this.O=e,this.e=e.globalState,this.d=null,this.n=null,this.r="explorerDates.pendingRestart",this.h="explorerDates.suggestionHistory",this.l="explorerDates.presetBackup",this.p="explorerDates.lastPreset",this.m=getSettingsCoordinator(),this._(),logger.info("Runtime configuration manager initialized")}async getCurrentRuntimeState(){let e=vscode.workspace.getConfiguration("explorerDates"),t=this.s(e),r=this.t(null,t),s=vscode.workspace.workspaceFolders?.[0]?.uri,o=await analyzeWorkspaceEnvironment(s);return{currentSettings:t,currentBundleSize:r,analysis:o,availablePresets:Object.keys(PRESET_DEFINITIONS),pendingRestart:this.e.get(this.r,[]),timestamp:Date.now()}}async checkAutoSuggestion(e=!1){try{let t=vscode.workspace.workspaceFolders?.[0]?.uri;if(!t){e&&vscode.window.showInformationMessage("Explorer Dates: No workspace folder is open. Open a folder to receive configuration suggestions.");return}let r=await detectWorkspaceProfile(t),s=generateWorkspaceKey(t,r),o=this.e.get(this.h,{}),a=o[s];if(e||!a||a.profileDetected!==r||await this.v(a)){let c=await this.E(r);if(c){if(e&&c.reason==="minimal savings")vscode.window.showInformationMessage(`Explorer Dates: Your configuration is already well-optimized for a ${r} workspace. No changes recommended.`);else if(c.accepted!==void 0){let m=await analyzeWorkspaceEnvironment(t);o[s]={profileDetected:r,suggestedAt:Date.now(),fileCountAtSuggestion:m?.fileCount||0,accepted:c.accepted,presetId:c.preset},await this.e.update(this.h,o),logger.info("Auto-suggestion updated:",o[s])}}}else e&&(await this.E(r))?.reason==="minimal savings"&&vscode.window.showInformationMessage(`Explorer Dates: Your configuration is already well-optimized for a ${r} workspace. No changes recommended.`)}catch(t){logger.error("Auto-suggestion check failed:",t)}}async E(e){let t=this.s(vscode.workspace.getConfiguration("explorerDates")),r=getDefaultPresetForProfile(e),s=this.t(null,t),o=r?this.t(r.settings,t):s,a=s-o;if(a<=10)return{accepted:!1,preset:e,reason:"minimal savings"};let i=`Explorer Dates detected a ${e} workspace. Would you like to apply ${r.name} settings? This could save ~${a}KB.`;switch(await vscode.window.showInformationMessage(i,{modal:!1},"Apply Settings","Show Details","Not Now")){case"Apply Settings":return await this.g(r.id,r),{accepted:!0,preset:e};case"Show Details":return await this.showPresetComparison(t,r),{accepted:!1,preset:e};default:return{accepted:!1,preset:e}}}async g(e,t=null){let r=t||PRESET_DEFINITIONS[e];if(!r)throw new Error(`Unknown preset: ${e}`);let s=this.s(vscode.workspace.getConfiguration("explorerDates"));await this.A(e,s);let o=Object.entries(r.settings||{}),a=[],i=[],c=[],m=isWebRuntime?"user":"workspace",J=`apply-preset:${e}`,ee=l=>{try{if(!l||typeof l!="string")return!1;let C="explorerDates.";if(l.startsWith(C)){let R=l.slice(C.length),b=vscode.workspace.getConfiguration("explorerDates").inspect(R);return b?[b.defaultValue,b.globalValue,b.workspaceValue,b.workspaceFolderValue].some(re=>re!==void 0):!1}let u=vscode.workspace.getConfiguration().inspect(l);return u?[u.defaultValue,u.globalValue,u.workspaceValue,u.workspaceFolderValue].some(R=>R!==void 0):!1}catch{return!1}};for(let[l,C]of o){if(!ee(l)){i.push(l),diagLog("warn","Preset skipped unregistered setting",{key:l,presetId:e});continue}try{a.push(await this.m.updateSetting(l,C,{scope:m,reason:J}))}catch(u){c.push({key:l,error:u}),logger.warn(`Preset application failed for ${l}: ${u&&u.message?u.message:String(u)}`)}}let h=a.filter(l=>l.updated).map(l=>l.key.replace("explorerDates.","")),te=`Applied "${r.name}" preset. Applied: ${h.length}. Skipped: ${i.length}. Failed: ${c.length}.`;try{vscode.window.showInformationMessage(te)}catch{}if(logger.info(`Applied ${r.name} preset`,{changedSettings:h,skipped:i,failed:c.length}),diagLog("info","Preset applied summary",{presetId:e,applied:h.length,skipped:i,failed:c.map(l=>l.key),webRuntime:isWebRuntime}),h.length>0){this.S(h);try{await vscode.commands.executeCommand("explorerDates.refreshDateDecorations"),diagLog("info","Preset refresh triggered",{presetId:e,applied:h.length,skipped:i.length})}catch(l){diagLog("warn","Preset refresh failed",{presetId:e,error:l?.message})}}return{applied:h.length,preset:r,requiresRestart:h.some(l=>RESTART_REQUIRED_SETTINGS.has(l)),estimatedBundleSize:this.t()}}async restorePreviousPreset(e={}){let t=this.e.get(this.l,null);if(!t?.settings)return e.silent||vscode.window.showInformationMessage("No previous preset available to restore."),{restored:!1,reason:"no-backup"};let r;try{r=await this.m.applySettings(t.settings,{scope:"workspace",reason:"restore-previous-preset"})}catch(o){throw e.silent||vscode.window.showErrorMessage(`Failed to restore previous preset: ${o.message}`),logger.error("Preset rollback failed:",o),o}let s=r.filter(o=>o.updated).map(o=>o.key.replace("explorerDates.",""));return await this.e.update(this.r,[]),await this.e.update(this.l,null),await this.e.update(this.p,t.previousPreset||null),e.silent||vscode.window.showInformationMessage("Previous preset restored."),{restored:!0,changedSettings:s,restoredPreset:t.previousPreset||"unknown"}}async showPresetComparison(e,t){if(!ensureQuickPickAvailable("runtimeConfig.showPresetComparison"))return;let r=e||this.s(vscode.workspace.getConfiguration("explorerDates")),s=this.t(null,r),o=t?this.t(t.settings,r):s,a=s-o,i=[{label:"\u{1F4E6} Current Configuration",description:`Bundle: ${s}KB total`,detail:this.w(r),action:"current"},t?{label:`\u26A1 Recommended: ${t.name}`,description:`Bundle: ${o}KB total (saves ${Math.max(0,a)}KB)`,detail:this.w(t.settings),action:"apply",preset:t}:null,{label:"\u{1F527} Browse All Presets...",description:`Choose from ${Object.keys(PRESET_DEFINITIONS).length} available presets`,detail:"Minimal, Balanced, Web Development, Enterprise, Data Science",action:"browse"}].filter(Boolean),c=await vscode.window.showQuickPick(i,{placeHolder:"Choose configuration approach",ignoreFocusOut:!0,matchOnDescription:!0,matchOnDetail:!0});if(c)switch(c.action){case"apply":c.preset&&await this.g(c.preset.id,c.preset);break;case"browse":await this.showAllPresets();break}}async showAllPresets(){if(!ensureQuickPickAvailable("runtimeConfig.showAllPresets"))return;let e=this.s(vscode.workspace.getConfiguration("explorerDates")),t=this.t(null,e),r=Object.values(PRESET_DEFINITIONS).map(o=>{let a=this.t(o.settings,e),i=t-a,c=i>0?`saves ${i}KB`:i<0?`adds ${Math.abs(i)}KB`:"same size";return{label:`${o.name}`,description:`${a}KB (${c})`,detail:`${o.description} - ${o.targetScenarios.join(", ")}`,preset:o}}),s=await vscode.window.showQuickPick(r,{placeHolder:"Select a preset configuration",ignoreFocusOut:!0,matchOnDescription:!0,matchOnDetail:!0});s?.preset&&await vscode.window.showInformationMessage(`Apply "${s.preset.name}" preset? ${s.preset.description}`,{modal:!1},"Apply","Cancel")==="Apply"&&await this.g(s.preset.id,s.preset)}_(){this.d=vscode.workspace.onDidChangeConfiguration(e=>{e.affectsConfiguration("explorerDates")&&this.R(e)})}async R(e){let t=Array.from(RESTART_REQUIRED_SETTINGS).filter(r=>e.affectsConfiguration(`explorerDates.${r}`));t.length>0&&this.S(t)}S(e){let t=this.e.get(this.r,[]),r=[...new Set([...t,...e])];try{let s=this.e.update(this.r,r);s&&typeof s.then=="function"&&s.catch(o=>{try{logger.warn("Failed to persist pending restart state:",o&&o.message)}catch{}})}catch(s){try{logger.warn("Failed to persist pending restart state (sync):",s&&s.message)}catch{}}this.n&&clearTimeout(this.n),this.n=setTimeout(()=>{(async()=>{try{await this.T()}catch(s){logger.error("Failed to show batched restart prompt:",s);try{await this.e.update(this.r,[])}catch(o){logger.warn("Failed to clear pending restarts after prompt failure:",o&&o.message)}}finally{this.n=null}})()},2e3)}async T(){try{let e=this.e.get(this.r,[]);if(e.length===0)return;let t=e.map(a=>this.L(a)).join(", "),s=`${e.length===1?`"${t}"`:`${e.length} settings (${t})`} changed. Reload to apply chunk optimizations?`,o;try{o=await vscode.window.showInformationMessage(s,{modal:!1},"Reload Now","Reload Later")}catch(a){logger.warn("User prompt for restart failed:",a&&a.message)}if(o==="Reload Now")try{await vscode.commands.executeCommand("workbench.action.reloadWindow")}catch(a){logger.warn("Failed to execute reload command:",a&&a.message)}}catch(e){logger.error("Error while showing batched restart prompt:",e)}finally{try{await this.e.update(this.r,[])}catch(e){logger.warn("Failed to clear pending restarts:",e&&e.message)}}}async A(e,t={}){if(!this.e||typeof this.e.update!="function")return;let r=this.e.get(this.p,null),s=this.e.get(this.l,null),o=s?.timestamp?Date.parse(s.timestamp):null,a=Number.isFinite(o)?Math.max(Date.now(),o+1):Date.now(),i={timestamp:new Date(a).toISOString(),appliedPreset:e,previousPreset:r||"unknown",settings:{...t}};await this.e.update(this.l,i),await this.e.update(this.p,e)}t(e=null,t=null){let r=t?{...t}:this.s(vscode.workspace.getConfiguration("explorerDates"));return e&&typeof e=="object"&&Object.assign(r,e),calculateBundleSize(r)}s(e){let t={enableOnboardingSystem:!0,enableAnalysisCommands:!0,enableExportReporting:!0,enableExtensionApi:!0,enableWorkspaceTemplates:!0,enableAdvancedCache:!0,enableWorkspaceIntelligence:!0,enableIncrementalWorkers:!1},r={};for(let[s,o]of Object.entries(t))r[`explorerDates.${s}`]=e.get(s,o);return r}w(e){let t=Object.entries(e).filter(([o,a])=>a===!0&&o.includes("enable")).map(([o])=>o.replace("explorerDates.enable","").replace("System","")).slice(0,3),r=Math.max(0,Object.keys(e).length-3),s=r>0?` +${r} more`:"";return`Features: ${t.join(", ")}${s}`}L(e){return e.replace("enable","").replace(/([A-Z])/g," $1").trim()}async v(e){if(!e)return!0;try{let t=vscode.workspace.workspaceFolders?.[0]?.uri,r=await analyzeWorkspaceEnvironment(t);if(!r)return!1;let s=e.fileCountAtSuggestion||0,o=r.fileCount,a=this.y(s),i=this.y(o);return a!==i}catch(t){return logger.debug("Heuristics change check failed:",t),!1}}y(e){return e>=WORKSPACE_SCALE_EXTREME_THRESHOLD?"extreme":e>=WORKSPACE_SCALE_LARGE_THRESHOLD?"large":e>=1e3?"medium":"small"}dispose(){this.d&&this.d.dispose(),this.n&&clearTimeout(this.n)}};module.exports={RuntimeConfigManager}});var{RuntimeConfigManager:Q}=Y();module.exports={RuntimeConfigManager:Q,default:{RuntimeConfigManager:Q}}; diff --git a/dist/extension.js b/dist/extension.js index 7f9026e..cc96315 100644 --- a/dist/extension.js +++ b/dist/extension.js @@ -1,34 +1,34 @@ -var Er=Object.create;var Ke=Object.defineProperty;var vr=Object.getOwnPropertyDescriptor;var Cr=Object.getOwnPropertyNames;var Sr=Object.getPrototypeOf,kr=Object.prototype.hasOwnProperty;var f=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var Dr=(t,e,r,a)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of Cr(e))!kr.call(t,n)&&n!==r&&Ke(t,n,{get:()=>e[n],enumerable:!(a=vr(e,n))||a.enumerable});return t};var J=(t,e,r)=>(r=t!=null?Er(Sr(t)):{},Dr(e||!t||!t.__esModule?Ke(r,"default",{value:t,enumerable:!0}):r,t));var T=f((va,Ve)=>{var z="__explorerDatesLogger",H=class{constructor(){this.b=null}y(e,r){if(this.b&&typeof this.b[e]=="function")try{return this.b[e](...r)}catch{}switch(e){case"debug":break;case"info":break;case"warn":break;case"error":break;default:break}}debug(...e){return this.y("debug",e)}info(...e){return this.y("info",e)}warn(...e){return this.y("warn",e)}error(...e){return this.y("error",e)}Oe(e){this.b=e}};function Tr(){return typeof global<"u"?(global[z]||(global[z]=new H),global[z]):typeof globalThis<"u"?(globalThis[z]||(globalThis[z]=new H),globalThis[z]):(Se||(Se=new H),Se)}var ke=class extends H{},Se=null;Ve.exports={Logger:ke,getLogger:Tr}});var De=f((Ca,xr)=>{xr.exports={migrationDetailsTitle:"Explorer Dates - Settings Migration",migrationDetailsHeader:"Settings Migration",gitAttributionWarning:"Explorer Dates: Git attribution badges are unavailable on VS Code for Web. Time-based decorations remain available.",noOverridesToDocument:"No overrides to document.",overrideNotesHeader:"# Explorer Dates Override Notes\\n\\n",analysisCommandsDisabled:"Explorer Dates analysis commands are disabled. Shortcuts like Ctrl+Shift+M/H/A will not work until you enable explorerDates.enableAnalysisCommands.",analysisEnableNow:"Enable Now",analysisEnablePartially:"Enable partially succeeded. Update explorerDates.enableAnalysisCommands in remaining workspace folders manually.",analysisEnableFailed:"Enable failed: update explorerDates.enableAnalysisCommands in workspace settings.",workspaceTemplatesDisabled:"Workspace templates are disabled. Enable explorerDates.enableWorkspaceTemplates to use this command.",workspaceTemplatesDisabledSave:"Workspace templates are disabled. Enable explorerDates.enableWorkspaceTemplates to save templates.",enterTemplateName:"Enter template name",enterTemplateDescription:"Enter description (optional)",failedToOpenTemplateManager:"Failed to open template manager: {0}",failedToSaveTemplate:"Failed to save template: {0}",reportingDisabled:"Reporting features are disabled. Enable explorerDates.enableExportReporting to generate reports.",failedToGenerateReport:"Failed to generate report: {0}",apiDisabled:"Explorer Dates API is disabled via settings.",failedToShowApiInformation:"Failed to show API information: {0}",failedToShowWorkspaceActivity:"Failed to show workspace activity: {0}",failedToShowPerformanceAnalytics:"Failed to show performance analytics: {0}",failedToShowCacheDebugInfo:"Failed to show cache debug info: {0}",noWorkspaceFolderOpen:"No workspace folder open",now:"now",minutes:"m",hours:"h",days:"d",weeks:"w",months:"mo",years:"y",justNow:"just now",minutesAgo:"{0} minute(s) ago",hoursAgo:"{0} hour(s) ago",daysAgo:"{0} day(s) ago",lastModified:"Last modified",refreshSuccess:"Date decorations refreshed",activationError:"Explorer Dates failed to activate",errorAccessingFile:"Error accessing file for decoration",clearTelemetryPrompt:"This will permanently delete locally-stored telemetry events for Explorer Dates. This action cannot be undone. Proceed?",clearTelemetryConfirm:"Clear Telemetry",clearTelemetryCancel:"Cancel",reportFormatDisabled:'Report format "{0}" is disabled. Allowed formats: {1}',reportDownloadTriggered:"Report download triggered in browser",selectReportTimeRangePlaceholder:"Select report time range",selectReportFormatPlaceholder:"Select report format",cleanupNoDeprecated:"\u2139\uFE0F No deprecated settings found to clean up.",showMigrationHistoryNoHistory:"No migration history found.",resetConfirmation:"This will reset all Explorer Dates settings to their default values. Are you sure?",resetConfirm:"Reset Settings",resetCancel:"Cancel",resetSuccess:"\u2705 Reset {0} settings to defaults.",validateNoIssues:"\u2705 Configuration is valid - no issues found!",validateFoundIssues:"Found {0} configuration issue(s). Would you like to see details?",validateShowDetails:"Show Details",validateDismiss:"Dismiss",migrationNotificationMessage:"Explorer Dates updated {0} setting(s) for compatibility. Your configuration has been preserved.",migrationViewChanges:"View Changes",migrationOpenSettings:"Open Settings",deprecatedPrompt:"Explorer Dates found {0} deprecated setting(s). Would you like to remove them?",deprecatedClean:"Clean Up Now",deprecatedKeep:"Keep Old Settings",deprecatedAskLater:"Ask Later",showFileLocation:"Show File Location",teamConfigCorrupted:"Explorer Dates team configuration file appears to be corrupted. Please check the .explorer-dates-profiles.json file or restore from backup.",appliedFromTeamProfile:'Applied {0} Explorer Dates settings from team profile "{1}".',documentedOverrides:"Documented Explorer Dates overrides in .vscode/explorer-dates-overrides.md",teamConfigMissingProfile:"Team configuration is missing an active profile.",ephemeralStorageEnospc:"Explorer Dates team configuration could not be saved because the disk is full.",ephemeralStorageGeneric:"Explorer Dates team configuration could not be saved because the workspace is read-only or permissions are restricted.",ephemeralStorageSuffix:"Changes will be kept in memory until VS Code restarts, so they may be lost."}});var Be=f((Sa,Ar)=>{Ar.exports={migrationDetailsTitle:"Explorer Dates - Migraci\xF3n de configuraci\xF3n",migrationDetailsHeader:"Migraci\xF3n de configuraci\xF3n",gitAttributionWarning:"Explorer Dates: Las insignias de atribuci\xF3n de Git no est\xE1n disponibles en VS Code para la Web. Las decoraciones basadas en tiempo siguen disponibles.",noOverridesToDocument:"No hay anulaciones para documentar.",overrideNotesHeader:"# Notas de anulaci\xF3n de Explorer Dates\\n\\n",analysisCommandsDisabled:"Los comandos de an\xE1lisis de Explorer Dates est\xE1n deshabilitados. Atajos como Ctrl+Shift+M/H/A no funcionar\xE1n hasta que habilites explorerDates.enableAnalysisCommands.",analysisEnableNow:"Habilitar ahora",analysisEnablePartially:"La activaci\xF3n se complet\xF3 parcialmente. Actualiza explorerDates.enableAnalysisCommands manualmente en las carpetas de trabajo restantes.",analysisEnableFailed:"Error al habilitar: actualiza explorerDates.enableAnalysisCommands en la configuraci\xF3n del espacio de trabajo.",workspaceTemplatesDisabled:"Las plantillas de espacio de trabajo est\xE1n deshabilitadas. Habilita explorerDates.enableWorkspaceTemplates para usar este comando.",workspaceTemplatesDisabledSave:"Las plantillas de espacio de trabajo est\xE1n deshabilitadas. Habilita explorerDates.enableWorkspaceTemplates para guardar plantillas.",enterTemplateName:"Introduce el nombre de la plantilla",enterTemplateDescription:"Introduce la descripci\xF3n (opcional)",failedToOpenTemplateManager:"Error al abrir el administrador de plantillas: {0}",failedToSaveTemplate:"Error al guardar la plantilla: {0}",reportingDisabled:"Las funciones de informes est\xE1n deshabilitadas. Habilita explorerDates.enableExportReporting para generar informes.",failedToGenerateReport:"Error al generar el informe: {0}",apiDisabled:"La API de Explorer Dates est\xE1 deshabilitada mediante la configuraci\xF3n.",failedToShowApiInformation:"Error al mostrar la informaci\xF3n de la API: {0}",failedToShowWorkspaceActivity:"Error al mostrar la actividad del espacio de trabajo: {0}",failedToShowPerformanceAnalytics:"Error al mostrar los an\xE1lisis de rendimiento: {0}",failedToShowCacheDebugInfo:"Error al mostrar la informaci\xF3n de depuraci\xF3n de la cach\xE9: {0}",noWorkspaceFolderOpen:"No hay ninguna carpeta de espacio de trabajo abierta",now:"ahora",minutes:"m",hours:"h",days:"d",weeks:"sem",months:"mes",years:"a",justNow:"justo ahora",minutesAgo:"hace {0} minuto(s)",hoursAgo:"hace {0} hora(s)",daysAgo:"hace {0} d\xEDa(s)",lastModified:"\xDAltima modificaci\xF3n",refreshSuccess:"Decoraciones de fecha actualizadas",activationError:"Explorer Dates no se pudo activar",errorAccessingFile:"Error al acceder al archivo para la decoraci\xF3n",clearTelemetryPrompt:"Esto eliminar\xE1 permanentemente los eventos de telemetr\xEDa almacenados localmente para Explorer Dates. Esta acci\xF3n no se puede deshacer. \xBFContinuar?",clearTelemetryConfirm:"Borrar telemetr\xEDa",clearTelemetryCancel:"Cancelar",reportFormatDisabled:'El formato de informe "{0}" est\xE1 deshabilitado. Formatos permitidos: {1}',reportDownloadTriggered:"Descarga del informe iniciada en el navegador",selectReportTimeRangePlaceholder:"Seleccionar rango de tiempo del informe",selectReportFormatPlaceholder:"Seleccionar formato del informe",cleanupNoDeprecated:"\u2139\uFE0F No se encontraron configuraciones obsoletas para limpiar.",showMigrationHistoryNoHistory:"No se encontr\xF3 historial de migraci\xF3n.",resetConfirmation:"Esto restablecer\xE1 todas las configuraciones de Explorer Dates a sus valores predeterminados. \xBFEst\xE1s seguro?",resetConfirm:"Restablecer configuraciones",resetCancel:"Cancelar",resetSuccess:"\u2705 Se restablecieron {0} configuraciones a los valores predeterminados.",validateNoIssues:"\u2705 La configuraci\xF3n es v\xE1lida - no se encontraron problemas.",validateFoundIssues:"Se encontraron {0} problema(s) de configuraci\xF3n. \xBFDeseas ver los detalles?",validateShowDetails:"Mostrar detalles",validateDismiss:"Descartar",migrationNotificationMessage:"Explorer Dates actualiz\xF3 {0} configuraci\xF3n(es) por compatibilidad. Tu configuraci\xF3n se ha conservado.",migrationViewChanges:"Ver cambios",migrationOpenSettings:"Abrir configuraciones",deprecatedPrompt:"Explorer Dates encontr\xF3 {0} configuraci\xF3n(es) obsoleta(s). \xBFDeseas eliminarlas?",deprecatedClean:"Limpiar ahora",deprecatedKeep:"Mantener configuraciones antiguas",deprecatedAskLater:"Preguntar m\xE1s tarde",showFileLocation:"Mostrar ubicaci\xF3n del archivo",teamConfigCorrupted:"El archivo de configuraci\xF3n de equipo de Explorer Dates parece estar da\xF1ado. Verifica el archivo .explorer-dates-profiles.json o restaura desde una copia de seguridad.",appliedFromTeamProfile:'Se aplicaron {0} configuraciones de Explorer Dates desde el perfil de equipo "{1}".',documentedOverrides:"Se documentaron las anulaciones de Explorer Dates en .vscode/explorer-dates-overrides.md",teamConfigMissingProfile:"La configuraci\xF3n del equipo no tiene un perfil activo.",ephemeralStorageEnospc:"No se pudo guardar la configuraci\xF3n de equipo de Explorer Dates porque el disco est\xE1 lleno.",ephemeralStorageGeneric:"No se pudo guardar la configuraci\xF3n de equipo de Explorer Dates porque el espacio de trabajo es de solo lectura o los permisos est\xE1n restringidos.",ephemeralStorageSuffix:"Los cambios se mantendr\xE1n en memoria hasta que VS Code se reinicie, por lo que podr\xEDan perderse."}});var Ge=f((ka,Fr)=>{Fr.exports={migrationDetailsTitle:"Explorer Dates - Migration des param\xE8tres",migrationDetailsHeader:"Migration des param\xE8tres",gitAttributionWarning:"Explorer Dates : Les badges d\u2019attribution Git ne sont pas disponibles sur VS Code pour le Web. Les d\xE9corations bas\xE9es sur le temps restent disponibles.",noOverridesToDocument:"Aucune substitution \xE0 documenter.",overrideNotesHeader:"# Notes de substitution Explorer Dates\\n\\n",analysisCommandsDisabled:"Les commandes d\u2019analyse Explorer Dates sont d\xE9sactiv\xE9es. Les raccourcis comme Ctrl+Shift+M/H/A ne fonctionneront pas tant que vous n\u2019aurez pas activ\xE9 explorerDates.enableAnalysisCommands.",analysisEnableNow:"Activer maintenant",analysisEnablePartially:"L\u2019activation a partiellement r\xE9ussi. Mettez \xE0 jour explorerDates.enableAnalysisCommands manuellement dans les dossiers d\u2019espace de travail restants.",analysisEnableFailed:"\xC9chec de l\u2019activation : mettez \xE0 jour explorerDates.enableAnalysisCommands dans les param\xE8tres de l\u2019espace de travail.",workspaceTemplatesDisabled:"Les mod\xE8les d\u2019espace de travail sont d\xE9sactiv\xE9s. Activez explorerDates.enableWorkspaceTemplates pour utiliser cette commande.",workspaceTemplatesDisabledSave:"Les mod\xE8les d\u2019espace de travail sont d\xE9sactiv\xE9s. Activez explorerDates.enableWorkspaceTemplates pour enregistrer des mod\xE8les.",enterTemplateName:"Entrez le nom du mod\xE8le",enterTemplateDescription:"Entrez la description (facultatif)",failedToOpenTemplateManager:"Impossible d\u2019ouvrir le gestionnaire de mod\xE8les : {0}",failedToSaveTemplate:"Impossible d\u2019enregistrer le mod\xE8le : {0}",reportingDisabled:"Les fonctionnalit\xE9s de rapport sont d\xE9sactiv\xE9es. Activez explorerDates.enableExportReporting pour g\xE9n\xE9rer des rapports.",failedToGenerateReport:"Impossible de g\xE9n\xE9rer le rapport : {0}",apiDisabled:"L\u2019API Explorer Dates est d\xE9sactiv\xE9e via les param\xE8tres.",failedToShowApiInformation:"Impossible d\u2019afficher les informations de l\u2019API : {0}",failedToShowWorkspaceActivity:"Impossible d\u2019afficher l\u2019activit\xE9 de l\u2019espace de travail : {0}",failedToShowPerformanceAnalytics:"Impossible d\u2019afficher les analyses de performance : {0}",failedToShowCacheDebugInfo:"Impossible d\u2019afficher les informations de d\xE9bogage du cache : {0}",noWorkspaceFolderOpen:"Aucun dossier d\u2019espace de travail ouvert",now:"maintenant",minutes:"min",hours:"h",days:"j",weeks:"sem",months:"mois",years:"an",justNow:"\xE0 l\u2019instant",minutesAgo:"il y a {0} minute(s)",hoursAgo:"il y a {0} heure(s)",daysAgo:"il y a {0} jour(s)",lastModified:"Derni\xE8re modification",refreshSuccess:"D\xE9corations de date actualis\xE9es",activationError:"\xC9chec de l\u2019activation d\u2019Explorer Dates",errorAccessingFile:"Erreur lors de l\u2019acc\xE8s au fichier pour la d\xE9coration",clearTelemetryPrompt:"Cela supprimera d\xE9finitivement les \xE9v\xE9nements de t\xE9l\xE9m\xE9trie stock\xE9s localement pour Explorer Dates. Cette action est irr\xE9versible. Continuer ?",clearTelemetryConfirm:"Effacer la t\xE9l\xE9m\xE9trie",clearTelemetryCancel:"Annuler",reportFormatDisabled:'Le format de rapport "{0}" est d\xE9sactiv\xE9. Formats autoris\xE9s : {1}',reportDownloadTriggered:"T\xE9l\xE9chargement du rapport lanc\xE9 dans le navigateur",selectReportTimeRangePlaceholder:"S\xE9lectionner la p\xE9riode du rapport",selectReportFormatPlaceholder:"S\xE9lectionner le format du rapport",cleanupNoDeprecated:"\u2139\uFE0F Aucun param\xE8tre obsol\xE8te \xE0 nettoyer.",showMigrationHistoryNoHistory:"Aucun historique de migration trouv\xE9.",resetConfirmation:"Cela r\xE9initialisera tous les param\xE8tres Explorer Dates \xE0 leurs valeurs par d\xE9faut. \xCAtes-vous s\xFBr ?",resetConfirm:"R\xE9initialiser les param\xE8tres",resetCancel:"Annuler",resetSuccess:"\u2705 {0} param\xE8tres ont \xE9t\xE9 r\xE9initialis\xE9s aux valeurs par d\xE9faut.",validateNoIssues:"\u2705 La configuration est valide - aucun probl\xE8me d\xE9tect\xE9 !",validateFoundIssues:"{0} probl\xE8me(s) de configuration trouv\xE9(s). Voulez-vous voir les d\xE9tails ?",validateShowDetails:"Afficher les d\xE9tails",validateDismiss:"Ignorer",migrationNotificationMessage:"Explorer Dates a mis \xE0 jour {0} param\xE8tre(s) pour compatibilit\xE9. Votre configuration a \xE9t\xE9 conserv\xE9e.",migrationViewChanges:"Voir les modifications",migrationOpenSettings:"Ouvrir les param\xE8tres",deprecatedPrompt:"Explorer Dates a trouv\xE9 {0} param\xE8tre(s) obsol\xE8te(s). Voulez-vous les supprimer ?",deprecatedClean:"Nettoyer maintenant",deprecatedKeep:"Conserver les anciens param\xE8tres",deprecatedAskLater:"Demander plus tard",showFileLocation:"Afficher l\u2019emplacement du fichier",teamConfigCorrupted:"Le fichier de configuration d\u2019\xE9quipe Explorer Dates semble corrompu. V\xE9rifiez le fichier .explorer-dates-profiles.json ou restaurez-le depuis une sauvegarde.",appliedFromTeamProfile:'{0} param\xE8tres Explorer Dates appliqu\xE9s depuis le profil d\u2019\xE9quipe "{1}".',documentedOverrides:"Substitutions Explorer Dates document\xE9es dans .vscode/explorer-dates-overrides.md",teamConfigMissingProfile:"La configuration d\u2019\xE9quipe ne contient aucun profil actif.",ephemeralStorageEnospc:"Impossible d\u2019enregistrer la configuration d\u2019\xE9quipe Explorer Dates car le disque est plein.",ephemeralStorageGeneric:"Impossible d\u2019enregistrer la configuration d\u2019\xE9quipe Explorer Dates car l\u2019espace de travail est en lecture seule ou les permissions sont restreintes.",ephemeralStorageSuffix:"Les modifications seront conserv\xE9es en m\xE9moire jusqu\u2019au red\xE9marrage de VS Code et pourraient \xEAtre perdues."}});var je=f((Da,Rr)=>{Rr.exports={migrationDetailsTitle:"Explorer Dates - Einstellungen migrieren",migrationDetailsHeader:"Einstellungen migrieren",gitAttributionWarning:"Explorer Dates: Git-Zuordnungsabzeichen sind in VS Code f\xFCr das Web nicht verf\xFCgbar. Zeitbasierte Hervorhebungen bleiben verf\xFCgbar.",noOverridesToDocument:"Keine \xDCberschreibungen zu dokumentieren.",overrideNotesHeader:"# Explorer Dates \xDCberschreibungsnotizen\\n\\n",analysisCommandsDisabled:"Die Analysebefehle von Explorer Dates sind deaktiviert. Tastenkombinationen wie Ctrl+Shift+M/H/A funktionieren nicht, bis explorerDates.enableAnalysisCommands aktiviert ist.",analysisEnableNow:"Jetzt aktivieren",analysisEnablePartially:"Die Aktivierung war teilweise erfolgreich. Aktualisieren Sie explorerDates.enableAnalysisCommands manuell in den verbleibenden Workspace-Ordnern.",analysisEnableFailed:"Aktivierung fehlgeschlagen: Aktualisieren Sie explorerDates.enableAnalysisCommands in den Workspace-Einstellungen.",workspaceTemplatesDisabled:"Workspace-Vorlagen sind deaktiviert. Aktivieren Sie explorerDates.enableWorkspaceTemplates, um diesen Befehl zu verwenden.",workspaceTemplatesDisabledSave:"Workspace-Vorlagen sind deaktiviert. Aktivieren Sie explorerDates.enableWorkspaceTemplates, um Vorlagen zu speichern.",enterTemplateName:"Vorlagenname eingeben",enterTemplateDescription:"Beschreibung eingeben (optional)",failedToOpenTemplateManager:"Fehler beim \xD6ffnen des Vorlagenmanagers: {0}",failedToSaveTemplate:"Fehler beim Speichern der Vorlage: {0}",reportingDisabled:"Berichtsfunktionen sind deaktiviert. Aktivieren Sie explorerDates.enableExportReporting, um Berichte zu erstellen.",failedToGenerateReport:"Fehler beim Erstellen des Berichts: {0}",apiDisabled:"Die Explorer Dates API ist in den Einstellungen deaktiviert.",failedToShowApiInformation:"Fehler beim Anzeigen der API-Informationen: {0}",failedToShowWorkspaceActivity:"Fehler beim Anzeigen der Workspace-Aktivit\xE4t: {0}",failedToShowPerformanceAnalytics:"Fehler beim Anzeigen der Leistungsanalysen: {0}",failedToShowCacheDebugInfo:"Fehler beim Anzeigen der Cache-Debug-Informationen: {0}",noWorkspaceFolderOpen:"Kein Workspace-Ordner ge\xF6ffnet",now:"jetzt",minutes:"Min",hours:"Std",days:"T",weeks:"W",months:"Mon",years:"J",justNow:"gerade eben",minutesAgo:"vor {0} Minute(n)",hoursAgo:"vor {0} Stunde(n)",daysAgo:"vor {0} Tag(en)",lastModified:"Zuletzt ge\xE4ndert",refreshSuccess:"Datumsdekorationen aktualisiert",activationError:"Explorer Dates konnte nicht aktiviert werden",errorAccessingFile:"Fehler beim Zugriff auf Datei f\xFCr Dekoration",clearTelemetryPrompt:"Dies l\xF6scht dauerhaft lokal gespeicherte Telemetrieereignisse f\xFCr Explorer Dates. Diese Aktion kann nicht r\xFCckg\xE4ngig gemacht werden. Fortfahren?",clearTelemetryConfirm:"Telemetrie l\xF6schen",clearTelemetryCancel:"Abbrechen",reportFormatDisabled:'Berichtsformat "{0}" ist deaktiviert. Zul\xE4ssige Formate: {1}',reportDownloadTriggered:"Bericht-Download im Browser gestartet",selectReportTimeRangePlaceholder:"Berichtszeitraum ausw\xE4hlen",selectReportFormatPlaceholder:"Berichtsformat ausw\xE4hlen",cleanupNoDeprecated:"\u2139\uFE0F Keine veralteten Einstellungen zum Bereinigen gefunden.",showMigrationHistoryNoHistory:"Kein Migrationsverlauf gefunden.",resetConfirmation:"Dies setzt alle Explorer Dates Einstellungen auf ihre Standardwerte zur\xFCck. Sind Sie sicher?",resetConfirm:"Einstellungen zur\xFCcksetzen",resetCancel:"Abbrechen",resetSuccess:"\u2705 {0} Einstellungen auf Standard zur\xFCckgesetzt.",validateNoIssues:"\u2705 Konfiguration ist g\xFCltig - keine Probleme gefunden!",validateFoundIssues:"{0} Konfigurationsproblem(e) gefunden. M\xF6chten Sie Details sehen?",validateShowDetails:"Details anzeigen",validateDismiss:"Verwerfen",migrationNotificationMessage:"Explorer Dates hat {0} Einstellung(en) zur Kompatibilit\xE4t aktualisiert. Ihre Konfiguration wurde beibehalten.",migrationViewChanges:"\xC4nderungen anzeigen",migrationOpenSettings:"Einstellungen \xF6ffnen",deprecatedPrompt:"Explorer Dates hat {0} veraltete Einstellung(en) gefunden. M\xF6chten Sie sie entfernen?",deprecatedClean:"Jetzt bereinigen",deprecatedKeep:"Alte Einstellungen behalten",deprecatedAskLater:"Sp\xE4ter fragen",showFileLocation:"Dateispeicherort anzeigen",teamConfigCorrupted:"Die Teamkonfigurationsdatei von Explorer Dates scheint besch\xE4digt zu sein. Bitte pr\xFCfen Sie die Datei .explorer-dates-profiles.json oder stellen Sie sie aus einem Backup wieder her.",appliedFromTeamProfile:'{0} Explorer Dates-Einstellungen aus dem Teamprofil "{1}" angewendet.',documentedOverrides:"Explorer Dates-\xDCberschreibungen in .vscode/explorer-dates-overrides.md dokumentiert",teamConfigMissingProfile:"Der Teamkonfiguration fehlt ein aktives Profil.",ephemeralStorageEnospc:"Die Teamkonfiguration von Explorer Dates konnte nicht gespeichert werden, da die Festplatte voll ist.",ephemeralStorageGeneric:"Die Teamkonfiguration von Explorer Dates konnte nicht gespeichert werden, da der Workspace schreibgesch\xFCtzt ist oder die Berechtigungen eingeschr\xE4nkt sind.",ephemeralStorageSuffix:"\xC4nderungen werden im Speicher behalten, bis VS Code neu startet, und k\xF6nnen verloren gehen."}});var Ye=f((Ta,Pr)=>{Pr.exports={migrationDetailsTitle:"Explorer Dates - \u8A2D\u5B9A\u306E\u79FB\u884C",migrationDetailsHeader:"\u8A2D\u5B9A\u306E\u79FB\u884C",gitAttributionWarning:"Explorer Dates: Git \u306E\u5E30\u5C5E\u30D0\u30C3\u30B8\u306F VS Code for Web \u3067\u306F\u5229\u7528\u3067\u304D\u307E\u305B\u3093\u3002\u6642\u9593\u30D9\u30FC\u30B9\u306E\u88C5\u98FE\u306F\u5F15\u304D\u7D9A\u304D\u5229\u7528\u3067\u304D\u307E\u3059\u3002",noOverridesToDocument:"\u30C9\u30AD\u30E5\u30E1\u30F3\u30C8\u5316\u3059\u308B\u4E0A\u66F8\u304D\u306F\u3042\u308A\u307E\u305B\u3093\u3002",overrideNotesHeader:"# Explorer Dates \u4E0A\u66F8\u304D\u30E1\u30E2\\n\\n",analysisCommandsDisabled:"Explorer Dates \u306E\u5206\u6790\u30B3\u30DE\u30F3\u30C9\u306F\u7121\u52B9\u306B\u306A\u3063\u3066\u3044\u307E\u3059\u3002Ctrl+Shift+M/H/A \u306A\u3069\u306E\u30B7\u30E7\u30FC\u30C8\u30AB\u30C3\u30C8\u306F explorerDates.enableAnalysisCommands \u3092\u6709\u52B9\u306B\u3059\u308B\u307E\u3067\u6A5F\u80FD\u3057\u307E\u305B\u3093\u3002",analysisEnableNow:"\u4ECA\u3059\u3050\u6709\u52B9\u306B\u3059\u308B",analysisEnablePartially:"\u6709\u52B9\u5316\u306F\u4E00\u90E8\u6210\u529F\u3057\u307E\u3057\u305F\u3002\u6B8B\u308A\u306E\u30EF\u30FC\u30AF\u30B9\u30DA\u30FC\u30B9\u30D5\u30A9\u30EB\u30C0\u30FC\u3067 explorerDates.enableAnalysisCommands \u3092\u624B\u52D5\u3067\u66F4\u65B0\u3057\u3066\u304F\u3060\u3055\u3044\u3002",analysisEnableFailed:"\u6709\u52B9\u5316\u306B\u5931\u6557\u3057\u307E\u3057\u305F\uFF1A\u30EF\u30FC\u30AF\u30B9\u30DA\u30FC\u30B9\u8A2D\u5B9A\u3067 explorerDates.enableAnalysisCommands \u3092\u66F4\u65B0\u3057\u3066\u304F\u3060\u3055\u3044\u3002",workspaceTemplatesDisabled:"\u30EF\u30FC\u30AF\u30B9\u30DA\u30FC\u30B9\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8\u306F\u7121\u52B9\u306B\u306A\u3063\u3066\u3044\u307E\u3059\u3002\u3053\u306E\u30B3\u30DE\u30F3\u30C9\u3092\u4F7F\u7528\u3059\u308B\u306B\u306F explorerDates.enableWorkspaceTemplates \u3092\u6709\u52B9\u306B\u3057\u3066\u304F\u3060\u3055\u3044\u3002",workspaceTemplatesDisabledSave:"\u30EF\u30FC\u30AF\u30B9\u30DA\u30FC\u30B9\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8\u306F\u7121\u52B9\u306B\u306A\u3063\u3066\u3044\u307E\u3059\u3002\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8\u3092\u4FDD\u5B58\u3059\u308B\u306B\u306F explorerDates.enableWorkspaceTemplates \u3092\u6709\u52B9\u306B\u3057\u3066\u304F\u3060\u3055\u3044\u3002",enterTemplateName:"\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8\u540D\u3092\u5165\u529B",enterTemplateDescription:"\u8AAC\u660E\u3092\u5165\u529B\uFF08\u4EFB\u610F\uFF09",failedToOpenTemplateManager:"\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8\u30DE\u30CD\u30FC\u30B8\u30E3\u30FC\u3092\u958B\u3051\u307E\u305B\u3093\u3067\u3057\u305F: {0}",failedToSaveTemplate:"\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8\u306E\u4FDD\u5B58\u306B\u5931\u6557\u3057\u307E\u3057\u305F: {0}",reportingDisabled:"\u30EC\u30DD\u30FC\u30C8\u6A5F\u80FD\u306F\u7121\u52B9\u306B\u306A\u3063\u3066\u3044\u307E\u3059\u3002\u30EC\u30DD\u30FC\u30C8\u3092\u751F\u6210\u3059\u308B\u306B\u306F explorerDates.enableExportReporting \u3092\u6709\u52B9\u306B\u3057\u3066\u304F\u3060\u3055\u3044\u3002",failedToGenerateReport:"\u30EC\u30DD\u30FC\u30C8\u306E\u751F\u6210\u306B\u5931\u6557\u3057\u307E\u3057\u305F: {0}",apiDisabled:"Explorer Dates API \u306F\u8A2D\u5B9A\u3067\u7121\u52B9\u306B\u306A\u3063\u3066\u3044\u307E\u3059\u3002",failedToShowApiInformation:"API \u60C5\u5831\u306E\u8868\u793A\u306B\u5931\u6557\u3057\u307E\u3057\u305F: {0}",failedToShowWorkspaceActivity:"\u30EF\u30FC\u30AF\u30B9\u30DA\u30FC\u30B9\u306E\u30A2\u30AF\u30C6\u30A3\u30D3\u30C6\u30A3\u3092\u8868\u793A\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F: {0}",failedToShowPerformanceAnalytics:"\u30D1\u30D5\u30A9\u30FC\u30DE\u30F3\u30B9\u5206\u6790\u3092\u8868\u793A\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F: {0}",failedToShowCacheDebugInfo:"\u30AD\u30E3\u30C3\u30B7\u30E5\u306E\u30C7\u30D0\u30C3\u30B0\u60C5\u5831\u3092\u8868\u793A\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F: {0}",noWorkspaceFolderOpen:"\u30EF\u30FC\u30AF\u30B9\u30DA\u30FC\u30B9\u30D5\u30A9\u30EB\u30C0\u30FC\u304C\u958B\u304B\u308C\u3066\u3044\u307E\u305B\u3093",now:"\u4ECA",minutes:"\u5206",hours:"\u6642\u9593",days:"\u65E5",weeks:"\u9031",months:"\u304B\u6708",years:"\u5E74",justNow:"\u305F\u3063\u305F\u4ECA",minutesAgo:"{0} \u5206\u524D",hoursAgo:"{0} \u6642\u9593\u524D",daysAgo:"{0} \u65E5\u524D",lastModified:"\u6700\u7D42\u66F4\u65B0",refreshSuccess:"\u65E5\u4ED8\u88C5\u98FE\u3092\u66F4\u65B0\u3057\u307E\u3057\u305F",activationError:"Explorer Dates \u306E\u6709\u52B9\u5316\u306B\u5931\u6557\u3057\u307E\u3057\u305F",errorAccessingFile:"\u88C5\u98FE\u7528\u30D5\u30A1\u30A4\u30EB\u3078\u306E\u30A2\u30AF\u30BB\u30B9\u30A8\u30E9\u30FC",clearTelemetryPrompt:"Explorer Dates \u306E\u30ED\u30FC\u30AB\u30EB\u4FDD\u5B58\u30C6\u30EC\u30E1\u30C8\u30EA\u30A4\u30D9\u30F3\u30C8\u3092\u5B8C\u5168\u306B\u524A\u9664\u3057\u307E\u3059\u3002\u3053\u306E\u64CD\u4F5C\u306F\u5143\u306B\u623B\u305B\u307E\u305B\u3093\u3002\u7D9A\u884C\u3057\u307E\u3059\u304B\uFF1F",clearTelemetryConfirm:"\u30C6\u30EC\u30E1\u30C8\u30EA\u3092\u524A\u9664",clearTelemetryCancel:"\u30AD\u30E3\u30F3\u30BB\u30EB",reportFormatDisabled:"\u30EC\u30DD\u30FC\u30C8\u5F62\u5F0F\u300C{0}\u300D\u306F\u7121\u52B9\u3067\u3059\u3002\u8A31\u53EF\u3055\u308C\u3066\u3044\u308B\u5F62\u5F0F: {1}",reportDownloadTriggered:"\u30D6\u30E9\u30A6\u30B6\u3067\u30EC\u30DD\u30FC\u30C8\u306E\u30C0\u30A6\u30F3\u30ED\u30FC\u30C9\u3092\u958B\u59CB\u3057\u307E\u3057\u305F",selectReportTimeRangePlaceholder:"\u30EC\u30DD\u30FC\u30C8\u306E\u671F\u9593\u3092\u9078\u629E",selectReportFormatPlaceholder:"\u30EC\u30DD\u30FC\u30C8\u5F62\u5F0F\u3092\u9078\u629E",cleanupNoDeprecated:"\u2139\uFE0F \u30AF\u30EA\u30FC\u30F3\u30A2\u30C3\u30D7\u3059\u308B\u975E\u63A8\u5968\u8A2D\u5B9A\u306F\u3042\u308A\u307E\u305B\u3093\u3002",showMigrationHistoryNoHistory:"\u79FB\u884C\u5C65\u6B74\u304C\u898B\u3064\u304B\u308A\u307E\u305B\u3093\u3002",resetConfirmation:"Explorer Dates \u306E\u3059\u3079\u3066\u306E\u8A2D\u5B9A\u3092\u65E2\u5B9A\u5024\u306B\u30EA\u30BB\u30C3\u30C8\u3057\u307E\u3059\u3002\u3088\u308D\u3057\u3044\u3067\u3059\u304B\uFF1F",resetConfirm:"\u8A2D\u5B9A\u3092\u30EA\u30BB\u30C3\u30C8",resetCancel:"\u30AD\u30E3\u30F3\u30BB\u30EB",resetSuccess:"\u2705 {0} \u4EF6\u306E\u8A2D\u5B9A\u3092\u65E2\u5B9A\u5024\u306B\u30EA\u30BB\u30C3\u30C8\u3057\u307E\u3057\u305F\u3002",validateNoIssues:"\u2705 \u8A2D\u5B9A\u306F\u6709\u52B9\u3067\u3059 - \u554F\u984C\u306F\u898B\u3064\u304B\u308A\u307E\u305B\u3093\u3067\u3057\u305F\uFF01",validateFoundIssues:"{0} \u4EF6\u306E\u8A2D\u5B9A\u554F\u984C\u304C\u898B\u3064\u304B\u308A\u307E\u3057\u305F\u3002\u8A73\u7D30\u3092\u8868\u793A\u3057\u307E\u3059\u304B\uFF1F",validateShowDetails:"\u8A73\u7D30\u3092\u8868\u793A",validateDismiss:"\u9589\u3058\u308B",migrationNotificationMessage:"Explorer Dates \u306F\u4E92\u63DB\u6027\u306E\u305F\u3081\u306B {0} \u4EF6\u306E\u8A2D\u5B9A\u3092\u66F4\u65B0\u3057\u307E\u3057\u305F\u3002\u8A2D\u5B9A\u306F\u4FDD\u6301\u3055\u308C\u3066\u3044\u307E\u3059\u3002",migrationViewChanges:"\u5909\u66F4\u3092\u8868\u793A",migrationOpenSettings:"\u8A2D\u5B9A\u3092\u958B\u304F",deprecatedPrompt:"Explorer Dates \u306F {0} \u4EF6\u306E\u975E\u63A8\u5968\u8A2D\u5B9A\u3092\u691C\u51FA\u3057\u307E\u3057\u305F\u3002\u524A\u9664\u3057\u307E\u3059\u304B\uFF1F",deprecatedClean:"\u4ECA\u3059\u3050\u30AF\u30EA\u30FC\u30F3\u30A2\u30C3\u30D7",deprecatedKeep:"\u53E4\u3044\u8A2D\u5B9A\u3092\u4FDD\u6301",deprecatedAskLater:"\u5F8C\u3067\u78BA\u8A8D",showFileLocation:"\u30D5\u30A1\u30A4\u30EB\u306E\u5834\u6240\u3092\u8868\u793A",teamConfigCorrupted:"Explorer Dates \u306E\u30C1\u30FC\u30E0\u8A2D\u5B9A\u30D5\u30A1\u30A4\u30EB\u304C\u7834\u640D\u3057\u3066\u3044\u308B\u53EF\u80FD\u6027\u304C\u3042\u308A\u307E\u3059\u3002.explorer-dates-profiles.json \u3092\u78BA\u8A8D\u3059\u308B\u304B\u30D0\u30C3\u30AF\u30A2\u30C3\u30D7\u304B\u3089\u5FA9\u5143\u3057\u3066\u304F\u3060\u3055\u3044\u3002",appliedFromTeamProfile:"\u30C1\u30FC\u30E0\u30D7\u30ED\u30D5\u30A1\u30A4\u30EB\u300C{1}\u300D\u304B\u3089 {0} \u4EF6\u306E Explorer Dates \u8A2D\u5B9A\u3092\u9069\u7528\u3057\u307E\u3057\u305F\u3002",documentedOverrides:".vscode/explorer-dates-overrides.md \u306B Explorer Dates \u306E\u4E0A\u66F8\u304D\u3092\u8A18\u9332\u3057\u307E\u3057\u305F",teamConfigMissingProfile:"\u30C1\u30FC\u30E0\u8A2D\u5B9A\u306B\u30A2\u30AF\u30C6\u30A3\u30D6\u306A\u30D7\u30ED\u30D5\u30A1\u30A4\u30EB\u304C\u3042\u308A\u307E\u305B\u3093\u3002",ephemeralStorageEnospc:"\u30C7\u30A3\u30B9\u30AF\u5BB9\u91CF\u4E0D\u8DB3\u306E\u305F\u3081\u3001Explorer Dates \u306E\u30C1\u30FC\u30E0\u8A2D\u5B9A\u3092\u4FDD\u5B58\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002",ephemeralStorageGeneric:"\u30EF\u30FC\u30AF\u30B9\u30DA\u30FC\u30B9\u304C\u8AAD\u307F\u53D6\u308A\u5C02\u7528\u3001\u307E\u305F\u306F\u6A29\u9650\u304C\u5236\u9650\u3055\u308C\u3066\u3044\u308B\u305F\u3081\u3001Explorer Dates \u306E\u30C1\u30FC\u30E0\u8A2D\u5B9A\u3092\u4FDD\u5B58\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002",ephemeralStorageSuffix:"\u5909\u66F4\u306F VS Code \u304C\u518D\u8D77\u52D5\u3059\u308B\u307E\u3067\u30E1\u30E2\u30EA\u306B\u4FDD\u6301\u3055\u308C\u308B\u305F\u3081\u3001\u5931\u308F\u308C\u308B\u53EF\u80FD\u6027\u304C\u3042\u308A\u307E\u3059\u3002"}});var Xe=f((xa,_r)=>{_r.exports={migrationDetailsTitle:"Explorer Dates - \u8BBE\u7F6E\u8FC1\u79FB",migrationDetailsHeader:"\u8BBE\u7F6E\u8FC1\u79FB",gitAttributionWarning:"Explorer Dates\uFF1AGit \u5F52\u5C5E\u5FBD\u7AE0\u5728 VS Code Web \u7248\u4E2D\u4E0D\u53EF\u7528\u3002\u57FA\u4E8E\u65F6\u95F4\u7684\u88C5\u9970\u4ECD\u7136\u53EF\u7528\u3002",noOverridesToDocument:"\u6CA1\u6709\u9700\u8981\u8BB0\u5F55\u7684\u8986\u76D6\u9879\u3002",overrideNotesHeader:"# Explorer Dates \u8986\u76D6\u8BF4\u660E\\n\\n",analysisCommandsDisabled:"Explorer Dates \u5206\u6790\u547D\u4EE4\u5DF2\u7981\u7528\u3002\u5728\u542F\u7528 explorerDates.enableAnalysisCommands \u4E4B\u524D\uFF0CCtrl+Shift+M/H/A \u7B49\u5FEB\u6377\u952E\u5C06\u65E0\u6CD5\u4F7F\u7528\u3002",analysisEnableNow:"\u7ACB\u5373\u542F\u7528",analysisEnablePartially:"\u542F\u7528\u90E8\u5206\u6210\u529F\u3002\u8BF7\u5728\u5269\u4F59\u7684\u5DE5\u4F5C\u533A\u6587\u4EF6\u5939\u4E2D\u624B\u52A8\u66F4\u65B0 explorerDates.enableAnalysisCommands\u3002",analysisEnableFailed:"\u542F\u7528\u5931\u8D25\uFF1A\u8BF7\u5728\u5DE5\u4F5C\u533A\u8BBE\u7F6E\u4E2D\u66F4\u65B0 explorerDates.enableAnalysisCommands\u3002",workspaceTemplatesDisabled:"\u5DE5\u4F5C\u533A\u6A21\u677F\u5DF2\u7981\u7528\u3002\u542F\u7528 explorerDates.enableWorkspaceTemplates \u4EE5\u4F7F\u7528\u6B64\u547D\u4EE4\u3002",workspaceTemplatesDisabledSave:"\u5DE5\u4F5C\u533A\u6A21\u677F\u5DF2\u7981\u7528\u3002\u542F\u7528 explorerDates.enableWorkspaceTemplates \u4EE5\u4FDD\u5B58\u6A21\u677F\u3002",enterTemplateName:"\u8F93\u5165\u6A21\u677F\u540D\u79F0",enterTemplateDescription:"\u8F93\u5165\u63CF\u8FF0\uFF08\u53EF\u9009\uFF09",failedToOpenTemplateManager:"\u65E0\u6CD5\u6253\u5F00\u6A21\u677F\u7BA1\u7406\u5668\uFF1A{0}",failedToSaveTemplate:"\u4FDD\u5B58\u6A21\u677F\u5931\u8D25\uFF1A{0}",reportingDisabled:"\u62A5\u8868\u529F\u80FD\u5DF2\u7981\u7528\u3002\u542F\u7528 explorerDates.enableExportReporting \u4EE5\u751F\u6210\u62A5\u8868\u3002",failedToGenerateReport:"\u751F\u6210\u62A5\u8868\u5931\u8D25\uFF1A{0}",apiDisabled:"Explorer Dates API \u5DF2\u901A\u8FC7\u8BBE\u7F6E\u7981\u7528\u3002",failedToShowApiInformation:"\u663E\u793A API \u4FE1\u606F\u5931\u8D25\uFF1A{0}",failedToShowWorkspaceActivity:"\u663E\u793A\u5DE5\u4F5C\u533A\u6D3B\u52A8\u5931\u8D25\uFF1A{0}",failedToShowPerformanceAnalytics:"\u663E\u793A\u6027\u80FD\u5206\u6790\u5931\u8D25\uFF1A{0}",failedToShowCacheDebugInfo:"\u663E\u793A\u7F13\u5B58\u8C03\u8BD5\u4FE1\u606F\u5931\u8D25\uFF1A{0}",noWorkspaceFolderOpen:"\u672A\u6253\u5F00\u4EFB\u4F55\u5DE5\u4F5C\u533A\u6587\u4EF6\u5939",now:"\u73B0\u5728",minutes:"\u5206",hours:"\u5C0F\u65F6",days:"\u5929",weeks:"\u5468",months:"\u4E2A\u6708",years:"\u5E74",justNow:"\u521A\u521A",minutesAgo:"{0} \u5206\u949F\u524D",hoursAgo:"{0} \u5C0F\u65F6\u524D",daysAgo:"{0} \u5929\u524D",lastModified:"\u6700\u540E\u4FEE\u6539",refreshSuccess:"\u65E5\u671F\u88C5\u9970\u5DF2\u5237\u65B0",activationError:"Explorer Dates \u542F\u52A8\u5931\u8D25",errorAccessingFile:"\u8BBF\u95EE\u7528\u4E8E\u88C5\u9970\u7684\u6587\u4EF6\u65F6\u51FA\u9519",clearTelemetryPrompt:"\u8FD9\u5C06\u6C38\u4E45\u5220\u9664\u672C\u5730\u5B58\u50A8\u7684 Explorer Dates \u9065\u6D4B\u4E8B\u4EF6\u3002\u6B64\u64CD\u4F5C\u65E0\u6CD5\u64A4\u9500\u3002\u662F\u5426\u7EE7\u7EED\uFF1F",clearTelemetryConfirm:"\u6E05\u9664\u9065\u6D4B",clearTelemetryCancel:"\u53D6\u6D88",reportFormatDisabled:"\u62A5\u8868\u683C\u5F0F\u201C{0}\u201D\u5DF2\u7981\u7528\u3002\u5141\u8BB8\u7684\u683C\u5F0F\uFF1A{1}",reportDownloadTriggered:"\u5DF2\u5728\u6D4F\u89C8\u5668\u4E2D\u89E6\u53D1\u62A5\u8868\u4E0B\u8F7D",selectReportTimeRangePlaceholder:"\u9009\u62E9\u62A5\u8868\u65F6\u95F4\u8303\u56F4",selectReportFormatPlaceholder:"\u9009\u62E9\u62A5\u8868\u683C\u5F0F",cleanupNoDeprecated:"\u2139\uFE0F \u672A\u53D1\u73B0\u9700\u8981\u6E05\u7406\u7684\u5DF2\u5F03\u7528\u8BBE\u7F6E\u3002",showMigrationHistoryNoHistory:"\u672A\u627E\u5230\u8FC1\u79FB\u5386\u53F2\u3002",resetConfirmation:"\u8FD9\u5C06\u628A\u6240\u6709 Explorer Dates \u8BBE\u7F6E\u91CD\u7F6E\u4E3A\u9ED8\u8BA4\u503C\u3002\u786E\u5B9A\u5417\uFF1F",resetConfirm:"\u91CD\u7F6E\u8BBE\u7F6E",resetCancel:"\u53D6\u6D88",resetSuccess:"\u2705 \u5DF2\u5C06 {0} \u9879\u8BBE\u7F6E\u91CD\u7F6E\u4E3A\u9ED8\u8BA4\u503C\u3002",validateNoIssues:"\u2705 \u914D\u7F6E\u6709\u6548 - \u672A\u53D1\u73B0\u95EE\u9898\uFF01",validateFoundIssues:"\u53D1\u73B0 {0} \u4E2A\u914D\u7F6E\u95EE\u9898\u3002\u662F\u5426\u67E5\u770B\u8BE6\u7EC6\u4FE1\u606F\uFF1F",validateShowDetails:"\u663E\u793A\u8BE6\u7EC6\u4FE1\u606F",validateDismiss:"\u5173\u95ED",migrationNotificationMessage:"Explorer Dates \u4E3A\u517C\u5BB9\u6027\u66F4\u65B0\u4E86 {0} \u9879\u8BBE\u7F6E\u3002\u60A8\u7684\u914D\u7F6E\u5DF2\u4FDD\u7559\u3002",migrationViewChanges:"\u67E5\u770B\u66F4\u6539",migrationOpenSettings:"\u6253\u5F00\u8BBE\u7F6E",deprecatedPrompt:"Explorer Dates \u53D1\u73B0 {0} \u4E2A\u5DF2\u5F03\u7528\u8BBE\u7F6E\u3002\u662F\u5426\u5220\u9664\uFF1F",deprecatedClean:"\u7ACB\u5373\u6E05\u7406",deprecatedKeep:"\u4FDD\u7559\u65E7\u8BBE\u7F6E",deprecatedAskLater:"\u7A0D\u540E\u8BE2\u95EE",showFileLocation:"\u663E\u793A\u6587\u4EF6\u4F4D\u7F6E",teamConfigCorrupted:"Explorer Dates \u56E2\u961F\u914D\u7F6E\u6587\u4EF6\u4F3C\u4E4E\u5DF2\u635F\u574F\u3002\u8BF7\u68C0\u67E5 .explorer-dates-profiles.json \u6587\u4EF6\u6216\u4ECE\u5907\u4EFD\u6062\u590D\u3002",appliedFromTeamProfile:"\u5DF2\u4ECE\u56E2\u961F\u914D\u7F6E\u6587\u4EF6\u201C{1}\u201D\u5E94\u7528 {0} \u9879 Explorer Dates \u8BBE\u7F6E\u3002",documentedOverrides:"\u5DF2\u5728 .vscode/explorer-dates-overrides.md \u4E2D\u8BB0\u5F55 Explorer Dates \u8986\u76D6\u9879",teamConfigMissingProfile:"\u56E2\u961F\u914D\u7F6E\u7F3A\u5C11\u6D3B\u52A8\u914D\u7F6E\u6587\u4EF6\u3002",ephemeralStorageEnospc:"\u7531\u4E8E\u78C1\u76D8\u5DF2\u6EE1\uFF0C\u65E0\u6CD5\u4FDD\u5B58 Explorer Dates \u56E2\u961F\u914D\u7F6E\u3002",ephemeralStorageGeneric:"\u7531\u4E8E\u5DE5\u4F5C\u533A\u4E3A\u53EA\u8BFB\u6216\u6743\u9650\u53D7\u9650\uFF0C\u65E0\u6CD5\u4FDD\u5B58 Explorer Dates \u56E2\u961F\u914D\u7F6E\u3002",ephemeralStorageSuffix:"\u66F4\u6539\u5C06\u5728 VS Code \u91CD\u542F\u524D\u4FDD\u5B58\u5728\u5185\u5B58\u4E2D\uFF0C\u56E0\u6B64\u53EF\u80FD\u4F1A\u4E22\u5931\u3002"}});var Je=f((Aa,Ze)=>{var I={};I.en=De();I.es=Be();I.fr=Ge();I.de=je();I.ja=Ye();I.zh=Xe();Ze.exports=I});var et=f((Fa,Qe)=>{var L=require("vscode"),M={en:{now:"now",minutes:"m",hours:"h",days:"d",weeks:"w",months:"mo",years:"y",justNow:"just now",minutesAgo:t=>`${t} minute${t!==1?"s":""} ago`,hoursAgo:t=>`${t} hour${t!==1?"s":""} ago`,yesterday:"yesterday",daysAgo:t=>`${t} day${t!==1?"s":""} ago`,lastModified:"Last modified",refreshSuccess:"Date decorations refreshed",activationError:"Explorer Dates failed to activate",errorAccessingFile:"Error accessing file for decoration",clearTelemetryPrompt:"This will permanently delete locally-stored telemetry events for Explorer Dates. This action cannot be undone. Proceed?",clearTelemetryConfirm:"Clear Telemetry",clearTelemetryCancel:"Cancel",clearTelemetrySuccess:"\u2705 Explorer Dates telemetry cleared.",migrateChecking:"Checking for settings that need migration...",migrateAllUpToDate:"\u2705 All settings are up to date!",migrateApplied:t=>`\u2705 Explorer Dates maintenance applied: ${t}.`,organizeSettingsResult:t=>`Explorer Dates settings organized: ${t}`,cleanupSuccess:"\u2705 Deprecated settings have been cleaned up!",reportFormatDisabled:(t,e)=>`Report format "${t}" is disabled. Allowed formats: ${e}`,reportSaved:t=>`Report saved to ${t}`,reportGenerateFailed:"Failed to generate report",reportDownloadTriggered:"Report download triggered in browser",selectReportTimeRangePlaceholder:"Select report time range",selectReportFormatPlaceholder:"Select report format",cleanupNoDeprecated:"\u2139\uFE0F No deprecated settings found to clean up.",showMigrationHistoryNoHistory:"No migration history found.",resetConfirmation:"This will reset all Explorer Dates settings to their default values. Are you sure?",migrationDetailsTitle:"Explorer Dates - Settings Migration",migrationDetailsHeader:"Settings Migration",gitAttributionWarning:"Explorer Dates: Git attribution badges are unavailable on VS Code for Web. Time-based decorations remain available.",noOverridesToDocument:"No overrides to document.",overrideNotesHeader:`# Explorer Dates Override Notes +var kr=Object.create;var je=Object.defineProperty;var Tr=Object.getOwnPropertyDescriptor;var Ar=Object.getOwnPropertyNames;var xr=Object.getPrototypeOf,Rr=Object.prototype.hasOwnProperty;var m=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var Fr=(t,e,r,a)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of Ar(e))!Rr.call(t,n)&&n!==r&&je(t,n,{get:()=>e[n],enumerable:!(a=Tr(e,n))||a.enumerable});return t};var J=(t,e,r)=>(r=t!=null?kr(xr(t)):{},Fr(e||!t||!t.__esModule?je(r,"default",{value:t,enumerable:!0}):r,t));var T=m((_a,Ye)=>{var z="__explorerDatesLogger",H=class{constructor(){this.b=null}y(e,r){if(this.b&&typeof this.b[e]=="function")try{return this.b[e](...r)}catch{}switch(e){case"debug":break;case"info":break;case"warn":break;case"error":break;default:break}}debug(...e){return this.y("debug",e)}info(...e){return this.y("info",e)}warn(...e){return this.y("warn",e)}error(...e){return this.y("error",e)}Oe(e){this.b=e}};function _r(){return typeof global<"u"?(global[z]||(global[z]=new H),global[z]):typeof globalThis<"u"?(globalThis[z]||(globalThis[z]=new H),globalThis[z]):(ke||(ke=new H),ke)}var Te=class extends H{},ke=null;Ye.exports={Logger:Te,getLogger:_r}});var Ae=m((Pa,Pr)=>{Pr.exports={migrationDetailsTitle:"Explorer Dates - Settings Migration",migrationDetailsHeader:"Settings Migration",gitAttributionWarning:"Explorer Dates: Git attribution badges are unavailable on VS Code for Web. Time-based decorations remain available.",noOverridesToDocument:"No overrides to document.",overrideNotesHeader:"# Explorer Dates Override Notes\\n\\n",analysisCommandsDisabled:"Explorer Dates analysis commands are disabled. Shortcuts like Ctrl+Shift+M/H/A will not work until you enable explorerDates.enableAnalysisCommands.",analysisEnableNow:"Enable Now",analysisEnablePartially:"Enable partially succeeded. Update explorerDates.enableAnalysisCommands in remaining workspace folders manually.",analysisEnableFailed:"Enable failed: update explorerDates.enableAnalysisCommands in workspace settings.",workspaceTemplatesDisabled:"Workspace templates are disabled. Enable explorerDates.enableWorkspaceTemplates to use this command.",workspaceTemplatesDisabledSave:"Workspace templates are disabled. Enable explorerDates.enableWorkspaceTemplates to save templates.",enterTemplateName:"Enter template name",enterTemplateDescription:"Enter description (optional)",failedToOpenTemplateManager:"Failed to open template manager: {0}",failedToSaveTemplate:"Failed to save template: {0}",reportingDisabled:"Reporting features are disabled. Enable explorerDates.enableExportReporting to generate reports.",failedToGenerateReport:"Failed to generate report: {0}",apiDisabled:"Explorer Dates API is disabled via settings.",failedToShowApiInformation:"Failed to show API information: {0}",failedToShowWorkspaceActivity:"Failed to show workspace activity: {0}",failedToShowPerformanceAnalytics:"Failed to show performance analytics: {0}",failedToShowCacheDebugInfo:"Failed to show cache debug info: {0}",noWorkspaceFolderOpen:"No workspace folder open",now:"now",minutes:"m",hours:"h",days:"d",weeks:"w",months:"mo",years:"y",justNow:"just now",minutesAgo:"{0} minute(s) ago",hoursAgo:"{0} hour(s) ago",daysAgo:"{0} day(s) ago",lastModified:"Last modified",refreshSuccess:"Date decorations refreshed",activationError:"Explorer Dates failed to activate",errorAccessingFile:"Error accessing file for decoration",clearTelemetryPrompt:"This will permanently delete locally-stored telemetry events for Explorer Dates. This action cannot be undone. Proceed?",clearTelemetryConfirm:"Clear Telemetry",clearTelemetryCancel:"Cancel",reportFormatDisabled:'Report format "{0}" is disabled. Allowed formats: {1}',reportDownloadTriggered:"Report download triggered in browser",selectReportTimeRangePlaceholder:"Select report time range",selectReportFormatPlaceholder:"Select report format",cleanupNoDeprecated:"\u2139\uFE0F No deprecated settings found to clean up.",showMigrationHistoryNoHistory:"No migration history found.",resetConfirmation:"This will reset all Explorer Dates settings to their default values. Are you sure?",resetConfirm:"Reset Settings",resetCancel:"Cancel",resetSuccess:"\u2705 Reset {0} settings to defaults.",validateNoIssues:"\u2705 Configuration is valid - no issues found!",validateFoundIssues:"Found {0} configuration issue(s). Would you like to see details?",validateShowDetails:"Show Details",validateDismiss:"Dismiss",migrationNotificationMessage:"Explorer Dates updated {0} setting(s) for compatibility. Your configuration has been preserved.",migrationViewChanges:"View Changes",migrationOpenSettings:"Open Settings",deprecatedPrompt:"Explorer Dates found {0} deprecated setting(s). Would you like to remove them?",deprecatedClean:"Clean Up Now",deprecatedKeep:"Keep Old Settings",deprecatedAskLater:"Ask Later",showFileLocation:"Show File Location",teamConfigCorrupted:"Explorer Dates team configuration file appears to be corrupted. Please check the .explorer-dates-profiles.json file or restore from backup.",appliedFromTeamProfile:'Applied {0} Explorer Dates settings from team profile "{1}".',documentedOverrides:"Documented Explorer Dates overrides in .vscode/explorer-dates-overrides.md",teamConfigMissingProfile:"Team configuration is missing an active profile.",ephemeralStorageEnospc:"Explorer Dates team configuration could not be saved because the disk is full.",ephemeralStorageGeneric:"Explorer Dates team configuration could not be saved because the workspace is read-only or permissions are restricted.",ephemeralStorageSuffix:"Changes will be kept in memory until VS Code restarts, so they may be lost."}});var Xe=m((Ma,Mr)=>{Mr.exports={migrationDetailsTitle:"Explorer Dates - Migraci\xF3n de configuraci\xF3n",migrationDetailsHeader:"Migraci\xF3n de configuraci\xF3n",gitAttributionWarning:"Explorer Dates: Las insignias de atribuci\xF3n de Git no est\xE1n disponibles en VS Code para la Web. Las decoraciones basadas en tiempo siguen disponibles.",noOverridesToDocument:"No hay anulaciones para documentar.",overrideNotesHeader:"# Notas de anulaci\xF3n de Explorer Dates\\n\\n",analysisCommandsDisabled:"Los comandos de an\xE1lisis de Explorer Dates est\xE1n deshabilitados. Atajos como Ctrl+Shift+M/H/A no funcionar\xE1n hasta que habilites explorerDates.enableAnalysisCommands.",analysisEnableNow:"Habilitar ahora",analysisEnablePartially:"La activaci\xF3n se complet\xF3 parcialmente. Actualiza explorerDates.enableAnalysisCommands manualmente en las carpetas de trabajo restantes.",analysisEnableFailed:"Error al habilitar: actualiza explorerDates.enableAnalysisCommands en la configuraci\xF3n del espacio de trabajo.",workspaceTemplatesDisabled:"Las plantillas de espacio de trabajo est\xE1n deshabilitadas. Habilita explorerDates.enableWorkspaceTemplates para usar este comando.",workspaceTemplatesDisabledSave:"Las plantillas de espacio de trabajo est\xE1n deshabilitadas. Habilita explorerDates.enableWorkspaceTemplates para guardar plantillas.",enterTemplateName:"Introduce el nombre de la plantilla",enterTemplateDescription:"Introduce la descripci\xF3n (opcional)",failedToOpenTemplateManager:"Error al abrir el administrador de plantillas: {0}",failedToSaveTemplate:"Error al guardar la plantilla: {0}",reportingDisabled:"Las funciones de informes est\xE1n deshabilitadas. Habilita explorerDates.enableExportReporting para generar informes.",failedToGenerateReport:"Error al generar el informe: {0}",apiDisabled:"La API de Explorer Dates est\xE1 deshabilitada mediante la configuraci\xF3n.",failedToShowApiInformation:"Error al mostrar la informaci\xF3n de la API: {0}",failedToShowWorkspaceActivity:"Error al mostrar la actividad del espacio de trabajo: {0}",failedToShowPerformanceAnalytics:"Error al mostrar los an\xE1lisis de rendimiento: {0}",failedToShowCacheDebugInfo:"Error al mostrar la informaci\xF3n de depuraci\xF3n de la cach\xE9: {0}",noWorkspaceFolderOpen:"No hay ninguna carpeta de espacio de trabajo abierta",now:"ahora",minutes:"m",hours:"h",days:"d",weeks:"sem",months:"mes",years:"a",justNow:"justo ahora",minutesAgo:"hace {0} minuto(s)",hoursAgo:"hace {0} hora(s)",daysAgo:"hace {0} d\xEDa(s)",lastModified:"\xDAltima modificaci\xF3n",refreshSuccess:"Decoraciones de fecha actualizadas",activationError:"Explorer Dates no se pudo activar",errorAccessingFile:"Error al acceder al archivo para la decoraci\xF3n",clearTelemetryPrompt:"Esto eliminar\xE1 permanentemente los eventos de telemetr\xEDa almacenados localmente para Explorer Dates. Esta acci\xF3n no se puede deshacer. \xBFContinuar?",clearTelemetryConfirm:"Borrar telemetr\xEDa",clearTelemetryCancel:"Cancelar",reportFormatDisabled:'El formato de informe "{0}" est\xE1 deshabilitado. Formatos permitidos: {1}',reportDownloadTriggered:"Descarga del informe iniciada en el navegador",selectReportTimeRangePlaceholder:"Seleccionar rango de tiempo del informe",selectReportFormatPlaceholder:"Seleccionar formato del informe",cleanupNoDeprecated:"\u2139\uFE0F No se encontraron configuraciones obsoletas para limpiar.",showMigrationHistoryNoHistory:"No se encontr\xF3 historial de migraci\xF3n.",resetConfirmation:"Esto restablecer\xE1 todas las configuraciones de Explorer Dates a sus valores predeterminados. \xBFEst\xE1s seguro?",resetConfirm:"Restablecer configuraciones",resetCancel:"Cancelar",resetSuccess:"\u2705 Se restablecieron {0} configuraciones a los valores predeterminados.",validateNoIssues:"\u2705 La configuraci\xF3n es v\xE1lida - no se encontraron problemas.",validateFoundIssues:"Se encontraron {0} problema(s) de configuraci\xF3n. \xBFDeseas ver los detalles?",validateShowDetails:"Mostrar detalles",validateDismiss:"Descartar",migrationNotificationMessage:"Explorer Dates actualiz\xF3 {0} configuraci\xF3n(es) por compatibilidad. Tu configuraci\xF3n se ha conservado.",migrationViewChanges:"Ver cambios",migrationOpenSettings:"Abrir configuraciones",deprecatedPrompt:"Explorer Dates encontr\xF3 {0} configuraci\xF3n(es) obsoleta(s). \xBFDeseas eliminarlas?",deprecatedClean:"Limpiar ahora",deprecatedKeep:"Mantener configuraciones antiguas",deprecatedAskLater:"Preguntar m\xE1s tarde",showFileLocation:"Mostrar ubicaci\xF3n del archivo",teamConfigCorrupted:"El archivo de configuraci\xF3n de equipo de Explorer Dates parece estar da\xF1ado. Verifica el archivo .explorer-dates-profiles.json o restaura desde una copia de seguridad.",appliedFromTeamProfile:'Se aplicaron {0} configuraciones de Explorer Dates desde el perfil de equipo "{1}".',documentedOverrides:"Se documentaron las anulaciones de Explorer Dates en .vscode/explorer-dates-overrides.md",teamConfigMissingProfile:"La configuraci\xF3n del equipo no tiene un perfil activo.",ephemeralStorageEnospc:"No se pudo guardar la configuraci\xF3n de equipo de Explorer Dates porque el disco est\xE1 lleno.",ephemeralStorageGeneric:"No se pudo guardar la configuraci\xF3n de equipo de Explorer Dates porque el espacio de trabajo es de solo lectura o los permisos est\xE1n restringidos.",ephemeralStorageSuffix:"Los cambios se mantendr\xE1n en memoria hasta que VS Code se reinicie, por lo que podr\xEDan perderse."}});var Ze=m((Wa,Wr)=>{Wr.exports={migrationDetailsTitle:"Explorer Dates - Migration des param\xE8tres",migrationDetailsHeader:"Migration des param\xE8tres",gitAttributionWarning:"Explorer Dates : Les badges d\u2019attribution Git ne sont pas disponibles sur VS Code pour le Web. Les d\xE9corations bas\xE9es sur le temps restent disponibles.",noOverridesToDocument:"Aucune substitution \xE0 documenter.",overrideNotesHeader:"# Notes de substitution Explorer Dates\\n\\n",analysisCommandsDisabled:"Les commandes d\u2019analyse Explorer Dates sont d\xE9sactiv\xE9es. Les raccourcis comme Ctrl+Shift+M/H/A ne fonctionneront pas tant que vous n\u2019aurez pas activ\xE9 explorerDates.enableAnalysisCommands.",analysisEnableNow:"Activer maintenant",analysisEnablePartially:"L\u2019activation a partiellement r\xE9ussi. Mettez \xE0 jour explorerDates.enableAnalysisCommands manuellement dans les dossiers d\u2019espace de travail restants.",analysisEnableFailed:"\xC9chec de l\u2019activation : mettez \xE0 jour explorerDates.enableAnalysisCommands dans les param\xE8tres de l\u2019espace de travail.",workspaceTemplatesDisabled:"Les mod\xE8les d\u2019espace de travail sont d\xE9sactiv\xE9s. Activez explorerDates.enableWorkspaceTemplates pour utiliser cette commande.",workspaceTemplatesDisabledSave:"Les mod\xE8les d\u2019espace de travail sont d\xE9sactiv\xE9s. Activez explorerDates.enableWorkspaceTemplates pour enregistrer des mod\xE8les.",enterTemplateName:"Entrez le nom du mod\xE8le",enterTemplateDescription:"Entrez la description (facultatif)",failedToOpenTemplateManager:"Impossible d\u2019ouvrir le gestionnaire de mod\xE8les : {0}",failedToSaveTemplate:"Impossible d\u2019enregistrer le mod\xE8le : {0}",reportingDisabled:"Les fonctionnalit\xE9s de rapport sont d\xE9sactiv\xE9es. Activez explorerDates.enableExportReporting pour g\xE9n\xE9rer des rapports.",failedToGenerateReport:"Impossible de g\xE9n\xE9rer le rapport : {0}",apiDisabled:"L\u2019API Explorer Dates est d\xE9sactiv\xE9e via les param\xE8tres.",failedToShowApiInformation:"Impossible d\u2019afficher les informations de l\u2019API : {0}",failedToShowWorkspaceActivity:"Impossible d\u2019afficher l\u2019activit\xE9 de l\u2019espace de travail : {0}",failedToShowPerformanceAnalytics:"Impossible d\u2019afficher les analyses de performance : {0}",failedToShowCacheDebugInfo:"Impossible d\u2019afficher les informations de d\xE9bogage du cache : {0}",noWorkspaceFolderOpen:"Aucun dossier d\u2019espace de travail ouvert",now:"maintenant",minutes:"min",hours:"h",days:"j",weeks:"sem",months:"mois",years:"an",justNow:"\xE0 l\u2019instant",minutesAgo:"il y a {0} minute(s)",hoursAgo:"il y a {0} heure(s)",daysAgo:"il y a {0} jour(s)",lastModified:"Derni\xE8re modification",refreshSuccess:"D\xE9corations de date actualis\xE9es",activationError:"\xC9chec de l\u2019activation d\u2019Explorer Dates",errorAccessingFile:"Erreur lors de l\u2019acc\xE8s au fichier pour la d\xE9coration",clearTelemetryPrompt:"Cela supprimera d\xE9finitivement les \xE9v\xE9nements de t\xE9l\xE9m\xE9trie stock\xE9s localement pour Explorer Dates. Cette action est irr\xE9versible. Continuer ?",clearTelemetryConfirm:"Effacer la t\xE9l\xE9m\xE9trie",clearTelemetryCancel:"Annuler",reportFormatDisabled:'Le format de rapport "{0}" est d\xE9sactiv\xE9. Formats autoris\xE9s : {1}',reportDownloadTriggered:"T\xE9l\xE9chargement du rapport lanc\xE9 dans le navigateur",selectReportTimeRangePlaceholder:"S\xE9lectionner la p\xE9riode du rapport",selectReportFormatPlaceholder:"S\xE9lectionner le format du rapport",cleanupNoDeprecated:"\u2139\uFE0F Aucun param\xE8tre obsol\xE8te \xE0 nettoyer.",showMigrationHistoryNoHistory:"Aucun historique de migration trouv\xE9.",resetConfirmation:"Cela r\xE9initialisera tous les param\xE8tres Explorer Dates \xE0 leurs valeurs par d\xE9faut. \xCAtes-vous s\xFBr ?",resetConfirm:"R\xE9initialiser les param\xE8tres",resetCancel:"Annuler",resetSuccess:"\u2705 {0} param\xE8tres ont \xE9t\xE9 r\xE9initialis\xE9s aux valeurs par d\xE9faut.",validateNoIssues:"\u2705 La configuration est valide - aucun probl\xE8me d\xE9tect\xE9 !",validateFoundIssues:"{0} probl\xE8me(s) de configuration trouv\xE9(s). Voulez-vous voir les d\xE9tails ?",validateShowDetails:"Afficher les d\xE9tails",validateDismiss:"Ignorer",migrationNotificationMessage:"Explorer Dates a mis \xE0 jour {0} param\xE8tre(s) pour compatibilit\xE9. Votre configuration a \xE9t\xE9 conserv\xE9e.",migrationViewChanges:"Voir les modifications",migrationOpenSettings:"Ouvrir les param\xE8tres",deprecatedPrompt:"Explorer Dates a trouv\xE9 {0} param\xE8tre(s) obsol\xE8te(s). Voulez-vous les supprimer ?",deprecatedClean:"Nettoyer maintenant",deprecatedKeep:"Conserver les anciens param\xE8tres",deprecatedAskLater:"Demander plus tard",showFileLocation:"Afficher l\u2019emplacement du fichier",teamConfigCorrupted:"Le fichier de configuration d\u2019\xE9quipe Explorer Dates semble corrompu. V\xE9rifiez le fichier .explorer-dates-profiles.json ou restaurez-le depuis une sauvegarde.",appliedFromTeamProfile:'{0} param\xE8tres Explorer Dates appliqu\xE9s depuis le profil d\u2019\xE9quipe "{1}".',documentedOverrides:"Substitutions Explorer Dates document\xE9es dans .vscode/explorer-dates-overrides.md",teamConfigMissingProfile:"La configuration d\u2019\xE9quipe ne contient aucun profil actif.",ephemeralStorageEnospc:"Impossible d\u2019enregistrer la configuration d\u2019\xE9quipe Explorer Dates car le disque est plein.",ephemeralStorageGeneric:"Impossible d\u2019enregistrer la configuration d\u2019\xE9quipe Explorer Dates car l\u2019espace de travail est en lecture seule ou les permissions sont restreintes.",ephemeralStorageSuffix:"Les modifications seront conserv\xE9es en m\xE9moire jusqu\u2019au red\xE9marrage de VS Code et pourraient \xEAtre perdues."}});var Je=m((Ia,Ir)=>{Ir.exports={migrationDetailsTitle:"Explorer Dates - Einstellungen migrieren",migrationDetailsHeader:"Einstellungen migrieren",gitAttributionWarning:"Explorer Dates: Git-Zuordnungsabzeichen sind in VS Code f\xFCr das Web nicht verf\xFCgbar. Zeitbasierte Hervorhebungen bleiben verf\xFCgbar.",noOverridesToDocument:"Keine \xDCberschreibungen zu dokumentieren.",overrideNotesHeader:"# Explorer Dates \xDCberschreibungsnotizen\\n\\n",analysisCommandsDisabled:"Die Analysebefehle von Explorer Dates sind deaktiviert. Tastenkombinationen wie Ctrl+Shift+M/H/A funktionieren nicht, bis explorerDates.enableAnalysisCommands aktiviert ist.",analysisEnableNow:"Jetzt aktivieren",analysisEnablePartially:"Die Aktivierung war teilweise erfolgreich. Aktualisieren Sie explorerDates.enableAnalysisCommands manuell in den verbleibenden Workspace-Ordnern.",analysisEnableFailed:"Aktivierung fehlgeschlagen: Aktualisieren Sie explorerDates.enableAnalysisCommands in den Workspace-Einstellungen.",workspaceTemplatesDisabled:"Workspace-Vorlagen sind deaktiviert. Aktivieren Sie explorerDates.enableWorkspaceTemplates, um diesen Befehl zu verwenden.",workspaceTemplatesDisabledSave:"Workspace-Vorlagen sind deaktiviert. Aktivieren Sie explorerDates.enableWorkspaceTemplates, um Vorlagen zu speichern.",enterTemplateName:"Vorlagenname eingeben",enterTemplateDescription:"Beschreibung eingeben (optional)",failedToOpenTemplateManager:"Fehler beim \xD6ffnen des Vorlagenmanagers: {0}",failedToSaveTemplate:"Fehler beim Speichern der Vorlage: {0}",reportingDisabled:"Berichtsfunktionen sind deaktiviert. Aktivieren Sie explorerDates.enableExportReporting, um Berichte zu erstellen.",failedToGenerateReport:"Fehler beim Erstellen des Berichts: {0}",apiDisabled:"Die Explorer Dates API ist in den Einstellungen deaktiviert.",failedToShowApiInformation:"Fehler beim Anzeigen der API-Informationen: {0}",failedToShowWorkspaceActivity:"Fehler beim Anzeigen der Workspace-Aktivit\xE4t: {0}",failedToShowPerformanceAnalytics:"Fehler beim Anzeigen der Leistungsanalysen: {0}",failedToShowCacheDebugInfo:"Fehler beim Anzeigen der Cache-Debug-Informationen: {0}",noWorkspaceFolderOpen:"Kein Workspace-Ordner ge\xF6ffnet",now:"jetzt",minutes:"Min",hours:"Std",days:"T",weeks:"W",months:"Mon",years:"J",justNow:"gerade eben",minutesAgo:"vor {0} Minute(n)",hoursAgo:"vor {0} Stunde(n)",daysAgo:"vor {0} Tag(en)",lastModified:"Zuletzt ge\xE4ndert",refreshSuccess:"Datumsdekorationen aktualisiert",activationError:"Explorer Dates konnte nicht aktiviert werden",errorAccessingFile:"Fehler beim Zugriff auf Datei f\xFCr Dekoration",clearTelemetryPrompt:"Dies l\xF6scht dauerhaft lokal gespeicherte Telemetrieereignisse f\xFCr Explorer Dates. Diese Aktion kann nicht r\xFCckg\xE4ngig gemacht werden. Fortfahren?",clearTelemetryConfirm:"Telemetrie l\xF6schen",clearTelemetryCancel:"Abbrechen",reportFormatDisabled:'Berichtsformat "{0}" ist deaktiviert. Zul\xE4ssige Formate: {1}',reportDownloadTriggered:"Bericht-Download im Browser gestartet",selectReportTimeRangePlaceholder:"Berichtszeitraum ausw\xE4hlen",selectReportFormatPlaceholder:"Berichtsformat ausw\xE4hlen",cleanupNoDeprecated:"\u2139\uFE0F Keine veralteten Einstellungen zum Bereinigen gefunden.",showMigrationHistoryNoHistory:"Kein Migrationsverlauf gefunden.",resetConfirmation:"Dies setzt alle Explorer Dates Einstellungen auf ihre Standardwerte zur\xFCck. Sind Sie sicher?",resetConfirm:"Einstellungen zur\xFCcksetzen",resetCancel:"Abbrechen",resetSuccess:"\u2705 {0} Einstellungen auf Standard zur\xFCckgesetzt.",validateNoIssues:"\u2705 Konfiguration ist g\xFCltig - keine Probleme gefunden!",validateFoundIssues:"{0} Konfigurationsproblem(e) gefunden. M\xF6chten Sie Details sehen?",validateShowDetails:"Details anzeigen",validateDismiss:"Verwerfen",migrationNotificationMessage:"Explorer Dates hat {0} Einstellung(en) zur Kompatibilit\xE4t aktualisiert. Ihre Konfiguration wurde beibehalten.",migrationViewChanges:"\xC4nderungen anzeigen",migrationOpenSettings:"Einstellungen \xF6ffnen",deprecatedPrompt:"Explorer Dates hat {0} veraltete Einstellung(en) gefunden. M\xF6chten Sie sie entfernen?",deprecatedClean:"Jetzt bereinigen",deprecatedKeep:"Alte Einstellungen behalten",deprecatedAskLater:"Sp\xE4ter fragen",showFileLocation:"Dateispeicherort anzeigen",teamConfigCorrupted:"Die Teamkonfigurationsdatei von Explorer Dates scheint besch\xE4digt zu sein. Bitte pr\xFCfen Sie die Datei .explorer-dates-profiles.json oder stellen Sie sie aus einem Backup wieder her.",appliedFromTeamProfile:'{0} Explorer Dates-Einstellungen aus dem Teamprofil "{1}" angewendet.',documentedOverrides:"Explorer Dates-\xDCberschreibungen in .vscode/explorer-dates-overrides.md dokumentiert",teamConfigMissingProfile:"Der Teamkonfiguration fehlt ein aktives Profil.",ephemeralStorageEnospc:"Die Teamkonfiguration von Explorer Dates konnte nicht gespeichert werden, da die Festplatte voll ist.",ephemeralStorageGeneric:"Die Teamkonfiguration von Explorer Dates konnte nicht gespeichert werden, da der Workspace schreibgesch\xFCtzt ist oder die Berechtigungen eingeschr\xE4nkt sind.",ephemeralStorageSuffix:"\xC4nderungen werden im Speicher behalten, bis VS Code neu startet, und k\xF6nnen verloren gehen."}});var Qe=m((La,Lr)=>{Lr.exports={migrationDetailsTitle:"Explorer Dates - \u8A2D\u5B9A\u306E\u79FB\u884C",migrationDetailsHeader:"\u8A2D\u5B9A\u306E\u79FB\u884C",gitAttributionWarning:"Explorer Dates: Git \u306E\u5E30\u5C5E\u30D0\u30C3\u30B8\u306F VS Code for Web \u3067\u306F\u5229\u7528\u3067\u304D\u307E\u305B\u3093\u3002\u6642\u9593\u30D9\u30FC\u30B9\u306E\u88C5\u98FE\u306F\u5F15\u304D\u7D9A\u304D\u5229\u7528\u3067\u304D\u307E\u3059\u3002",noOverridesToDocument:"\u30C9\u30AD\u30E5\u30E1\u30F3\u30C8\u5316\u3059\u308B\u4E0A\u66F8\u304D\u306F\u3042\u308A\u307E\u305B\u3093\u3002",overrideNotesHeader:"# Explorer Dates \u4E0A\u66F8\u304D\u30E1\u30E2\\n\\n",analysisCommandsDisabled:"Explorer Dates \u306E\u5206\u6790\u30B3\u30DE\u30F3\u30C9\u306F\u7121\u52B9\u306B\u306A\u3063\u3066\u3044\u307E\u3059\u3002Ctrl+Shift+M/H/A \u306A\u3069\u306E\u30B7\u30E7\u30FC\u30C8\u30AB\u30C3\u30C8\u306F explorerDates.enableAnalysisCommands \u3092\u6709\u52B9\u306B\u3059\u308B\u307E\u3067\u6A5F\u80FD\u3057\u307E\u305B\u3093\u3002",analysisEnableNow:"\u4ECA\u3059\u3050\u6709\u52B9\u306B\u3059\u308B",analysisEnablePartially:"\u6709\u52B9\u5316\u306F\u4E00\u90E8\u6210\u529F\u3057\u307E\u3057\u305F\u3002\u6B8B\u308A\u306E\u30EF\u30FC\u30AF\u30B9\u30DA\u30FC\u30B9\u30D5\u30A9\u30EB\u30C0\u30FC\u3067 explorerDates.enableAnalysisCommands \u3092\u624B\u52D5\u3067\u66F4\u65B0\u3057\u3066\u304F\u3060\u3055\u3044\u3002",analysisEnableFailed:"\u6709\u52B9\u5316\u306B\u5931\u6557\u3057\u307E\u3057\u305F\uFF1A\u30EF\u30FC\u30AF\u30B9\u30DA\u30FC\u30B9\u8A2D\u5B9A\u3067 explorerDates.enableAnalysisCommands \u3092\u66F4\u65B0\u3057\u3066\u304F\u3060\u3055\u3044\u3002",workspaceTemplatesDisabled:"\u30EF\u30FC\u30AF\u30B9\u30DA\u30FC\u30B9\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8\u306F\u7121\u52B9\u306B\u306A\u3063\u3066\u3044\u307E\u3059\u3002\u3053\u306E\u30B3\u30DE\u30F3\u30C9\u3092\u4F7F\u7528\u3059\u308B\u306B\u306F explorerDates.enableWorkspaceTemplates \u3092\u6709\u52B9\u306B\u3057\u3066\u304F\u3060\u3055\u3044\u3002",workspaceTemplatesDisabledSave:"\u30EF\u30FC\u30AF\u30B9\u30DA\u30FC\u30B9\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8\u306F\u7121\u52B9\u306B\u306A\u3063\u3066\u3044\u307E\u3059\u3002\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8\u3092\u4FDD\u5B58\u3059\u308B\u306B\u306F explorerDates.enableWorkspaceTemplates \u3092\u6709\u52B9\u306B\u3057\u3066\u304F\u3060\u3055\u3044\u3002",enterTemplateName:"\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8\u540D\u3092\u5165\u529B",enterTemplateDescription:"\u8AAC\u660E\u3092\u5165\u529B\uFF08\u4EFB\u610F\uFF09",failedToOpenTemplateManager:"\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8\u30DE\u30CD\u30FC\u30B8\u30E3\u30FC\u3092\u958B\u3051\u307E\u305B\u3093\u3067\u3057\u305F: {0}",failedToSaveTemplate:"\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8\u306E\u4FDD\u5B58\u306B\u5931\u6557\u3057\u307E\u3057\u305F: {0}",reportingDisabled:"\u30EC\u30DD\u30FC\u30C8\u6A5F\u80FD\u306F\u7121\u52B9\u306B\u306A\u3063\u3066\u3044\u307E\u3059\u3002\u30EC\u30DD\u30FC\u30C8\u3092\u751F\u6210\u3059\u308B\u306B\u306F explorerDates.enableExportReporting \u3092\u6709\u52B9\u306B\u3057\u3066\u304F\u3060\u3055\u3044\u3002",failedToGenerateReport:"\u30EC\u30DD\u30FC\u30C8\u306E\u751F\u6210\u306B\u5931\u6557\u3057\u307E\u3057\u305F: {0}",apiDisabled:"Explorer Dates API \u306F\u8A2D\u5B9A\u3067\u7121\u52B9\u306B\u306A\u3063\u3066\u3044\u307E\u3059\u3002",failedToShowApiInformation:"API \u60C5\u5831\u306E\u8868\u793A\u306B\u5931\u6557\u3057\u307E\u3057\u305F: {0}",failedToShowWorkspaceActivity:"\u30EF\u30FC\u30AF\u30B9\u30DA\u30FC\u30B9\u306E\u30A2\u30AF\u30C6\u30A3\u30D3\u30C6\u30A3\u3092\u8868\u793A\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F: {0}",failedToShowPerformanceAnalytics:"\u30D1\u30D5\u30A9\u30FC\u30DE\u30F3\u30B9\u5206\u6790\u3092\u8868\u793A\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F: {0}",failedToShowCacheDebugInfo:"\u30AD\u30E3\u30C3\u30B7\u30E5\u306E\u30C7\u30D0\u30C3\u30B0\u60C5\u5831\u3092\u8868\u793A\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F: {0}",noWorkspaceFolderOpen:"\u30EF\u30FC\u30AF\u30B9\u30DA\u30FC\u30B9\u30D5\u30A9\u30EB\u30C0\u30FC\u304C\u958B\u304B\u308C\u3066\u3044\u307E\u305B\u3093",now:"\u4ECA",minutes:"\u5206",hours:"\u6642\u9593",days:"\u65E5",weeks:"\u9031",months:"\u304B\u6708",years:"\u5E74",justNow:"\u305F\u3063\u305F\u4ECA",minutesAgo:"{0} \u5206\u524D",hoursAgo:"{0} \u6642\u9593\u524D",daysAgo:"{0} \u65E5\u524D",lastModified:"\u6700\u7D42\u66F4\u65B0",refreshSuccess:"\u65E5\u4ED8\u88C5\u98FE\u3092\u66F4\u65B0\u3057\u307E\u3057\u305F",activationError:"Explorer Dates \u306E\u6709\u52B9\u5316\u306B\u5931\u6557\u3057\u307E\u3057\u305F",errorAccessingFile:"\u88C5\u98FE\u7528\u30D5\u30A1\u30A4\u30EB\u3078\u306E\u30A2\u30AF\u30BB\u30B9\u30A8\u30E9\u30FC",clearTelemetryPrompt:"Explorer Dates \u306E\u30ED\u30FC\u30AB\u30EB\u4FDD\u5B58\u30C6\u30EC\u30E1\u30C8\u30EA\u30A4\u30D9\u30F3\u30C8\u3092\u5B8C\u5168\u306B\u524A\u9664\u3057\u307E\u3059\u3002\u3053\u306E\u64CD\u4F5C\u306F\u5143\u306B\u623B\u305B\u307E\u305B\u3093\u3002\u7D9A\u884C\u3057\u307E\u3059\u304B\uFF1F",clearTelemetryConfirm:"\u30C6\u30EC\u30E1\u30C8\u30EA\u3092\u524A\u9664",clearTelemetryCancel:"\u30AD\u30E3\u30F3\u30BB\u30EB",reportFormatDisabled:"\u30EC\u30DD\u30FC\u30C8\u5F62\u5F0F\u300C{0}\u300D\u306F\u7121\u52B9\u3067\u3059\u3002\u8A31\u53EF\u3055\u308C\u3066\u3044\u308B\u5F62\u5F0F: {1}",reportDownloadTriggered:"\u30D6\u30E9\u30A6\u30B6\u3067\u30EC\u30DD\u30FC\u30C8\u306E\u30C0\u30A6\u30F3\u30ED\u30FC\u30C9\u3092\u958B\u59CB\u3057\u307E\u3057\u305F",selectReportTimeRangePlaceholder:"\u30EC\u30DD\u30FC\u30C8\u306E\u671F\u9593\u3092\u9078\u629E",selectReportFormatPlaceholder:"\u30EC\u30DD\u30FC\u30C8\u5F62\u5F0F\u3092\u9078\u629E",cleanupNoDeprecated:"\u2139\uFE0F \u30AF\u30EA\u30FC\u30F3\u30A2\u30C3\u30D7\u3059\u308B\u975E\u63A8\u5968\u8A2D\u5B9A\u306F\u3042\u308A\u307E\u305B\u3093\u3002",showMigrationHistoryNoHistory:"\u79FB\u884C\u5C65\u6B74\u304C\u898B\u3064\u304B\u308A\u307E\u305B\u3093\u3002",resetConfirmation:"Explorer Dates \u306E\u3059\u3079\u3066\u306E\u8A2D\u5B9A\u3092\u65E2\u5B9A\u5024\u306B\u30EA\u30BB\u30C3\u30C8\u3057\u307E\u3059\u3002\u3088\u308D\u3057\u3044\u3067\u3059\u304B\uFF1F",resetConfirm:"\u8A2D\u5B9A\u3092\u30EA\u30BB\u30C3\u30C8",resetCancel:"\u30AD\u30E3\u30F3\u30BB\u30EB",resetSuccess:"\u2705 {0} \u4EF6\u306E\u8A2D\u5B9A\u3092\u65E2\u5B9A\u5024\u306B\u30EA\u30BB\u30C3\u30C8\u3057\u307E\u3057\u305F\u3002",validateNoIssues:"\u2705 \u8A2D\u5B9A\u306F\u6709\u52B9\u3067\u3059 - \u554F\u984C\u306F\u898B\u3064\u304B\u308A\u307E\u305B\u3093\u3067\u3057\u305F\uFF01",validateFoundIssues:"{0} \u4EF6\u306E\u8A2D\u5B9A\u554F\u984C\u304C\u898B\u3064\u304B\u308A\u307E\u3057\u305F\u3002\u8A73\u7D30\u3092\u8868\u793A\u3057\u307E\u3059\u304B\uFF1F",validateShowDetails:"\u8A73\u7D30\u3092\u8868\u793A",validateDismiss:"\u9589\u3058\u308B",migrationNotificationMessage:"Explorer Dates \u306F\u4E92\u63DB\u6027\u306E\u305F\u3081\u306B {0} \u4EF6\u306E\u8A2D\u5B9A\u3092\u66F4\u65B0\u3057\u307E\u3057\u305F\u3002\u8A2D\u5B9A\u306F\u4FDD\u6301\u3055\u308C\u3066\u3044\u307E\u3059\u3002",migrationViewChanges:"\u5909\u66F4\u3092\u8868\u793A",migrationOpenSettings:"\u8A2D\u5B9A\u3092\u958B\u304F",deprecatedPrompt:"Explorer Dates \u306F {0} \u4EF6\u306E\u975E\u63A8\u5968\u8A2D\u5B9A\u3092\u691C\u51FA\u3057\u307E\u3057\u305F\u3002\u524A\u9664\u3057\u307E\u3059\u304B\uFF1F",deprecatedClean:"\u4ECA\u3059\u3050\u30AF\u30EA\u30FC\u30F3\u30A2\u30C3\u30D7",deprecatedKeep:"\u53E4\u3044\u8A2D\u5B9A\u3092\u4FDD\u6301",deprecatedAskLater:"\u5F8C\u3067\u78BA\u8A8D",showFileLocation:"\u30D5\u30A1\u30A4\u30EB\u306E\u5834\u6240\u3092\u8868\u793A",teamConfigCorrupted:"Explorer Dates \u306E\u30C1\u30FC\u30E0\u8A2D\u5B9A\u30D5\u30A1\u30A4\u30EB\u304C\u7834\u640D\u3057\u3066\u3044\u308B\u53EF\u80FD\u6027\u304C\u3042\u308A\u307E\u3059\u3002.explorer-dates-profiles.json \u3092\u78BA\u8A8D\u3059\u308B\u304B\u30D0\u30C3\u30AF\u30A2\u30C3\u30D7\u304B\u3089\u5FA9\u5143\u3057\u3066\u304F\u3060\u3055\u3044\u3002",appliedFromTeamProfile:"\u30C1\u30FC\u30E0\u30D7\u30ED\u30D5\u30A1\u30A4\u30EB\u300C{1}\u300D\u304B\u3089 {0} \u4EF6\u306E Explorer Dates \u8A2D\u5B9A\u3092\u9069\u7528\u3057\u307E\u3057\u305F\u3002",documentedOverrides:".vscode/explorer-dates-overrides.md \u306B Explorer Dates \u306E\u4E0A\u66F8\u304D\u3092\u8A18\u9332\u3057\u307E\u3057\u305F",teamConfigMissingProfile:"\u30C1\u30FC\u30E0\u8A2D\u5B9A\u306B\u30A2\u30AF\u30C6\u30A3\u30D6\u306A\u30D7\u30ED\u30D5\u30A1\u30A4\u30EB\u304C\u3042\u308A\u307E\u305B\u3093\u3002",ephemeralStorageEnospc:"\u30C7\u30A3\u30B9\u30AF\u5BB9\u91CF\u4E0D\u8DB3\u306E\u305F\u3081\u3001Explorer Dates \u306E\u30C1\u30FC\u30E0\u8A2D\u5B9A\u3092\u4FDD\u5B58\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002",ephemeralStorageGeneric:"\u30EF\u30FC\u30AF\u30B9\u30DA\u30FC\u30B9\u304C\u8AAD\u307F\u53D6\u308A\u5C02\u7528\u3001\u307E\u305F\u306F\u6A29\u9650\u304C\u5236\u9650\u3055\u308C\u3066\u3044\u308B\u305F\u3081\u3001Explorer Dates \u306E\u30C1\u30FC\u30E0\u8A2D\u5B9A\u3092\u4FDD\u5B58\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002",ephemeralStorageSuffix:"\u5909\u66F4\u306F VS Code \u304C\u518D\u8D77\u52D5\u3059\u308B\u307E\u3067\u30E1\u30E2\u30EA\u306B\u4FDD\u6301\u3055\u308C\u308B\u305F\u3081\u3001\u5931\u308F\u308C\u308B\u53EF\u80FD\u6027\u304C\u3042\u308A\u307E\u3059\u3002"}});var et=m((Oa,Or)=>{Or.exports={migrationDetailsTitle:"Explorer Dates - \u8BBE\u7F6E\u8FC1\u79FB",migrationDetailsHeader:"\u8BBE\u7F6E\u8FC1\u79FB",gitAttributionWarning:"Explorer Dates\uFF1AGit \u5F52\u5C5E\u5FBD\u7AE0\u5728 VS Code Web \u7248\u4E2D\u4E0D\u53EF\u7528\u3002\u57FA\u4E8E\u65F6\u95F4\u7684\u88C5\u9970\u4ECD\u7136\u53EF\u7528\u3002",noOverridesToDocument:"\u6CA1\u6709\u9700\u8981\u8BB0\u5F55\u7684\u8986\u76D6\u9879\u3002",overrideNotesHeader:"# Explorer Dates \u8986\u76D6\u8BF4\u660E\\n\\n",analysisCommandsDisabled:"Explorer Dates \u5206\u6790\u547D\u4EE4\u5DF2\u7981\u7528\u3002\u5728\u542F\u7528 explorerDates.enableAnalysisCommands \u4E4B\u524D\uFF0CCtrl+Shift+M/H/A \u7B49\u5FEB\u6377\u952E\u5C06\u65E0\u6CD5\u4F7F\u7528\u3002",analysisEnableNow:"\u7ACB\u5373\u542F\u7528",analysisEnablePartially:"\u542F\u7528\u90E8\u5206\u6210\u529F\u3002\u8BF7\u5728\u5269\u4F59\u7684\u5DE5\u4F5C\u533A\u6587\u4EF6\u5939\u4E2D\u624B\u52A8\u66F4\u65B0 explorerDates.enableAnalysisCommands\u3002",analysisEnableFailed:"\u542F\u7528\u5931\u8D25\uFF1A\u8BF7\u5728\u5DE5\u4F5C\u533A\u8BBE\u7F6E\u4E2D\u66F4\u65B0 explorerDates.enableAnalysisCommands\u3002",workspaceTemplatesDisabled:"\u5DE5\u4F5C\u533A\u6A21\u677F\u5DF2\u7981\u7528\u3002\u542F\u7528 explorerDates.enableWorkspaceTemplates \u4EE5\u4F7F\u7528\u6B64\u547D\u4EE4\u3002",workspaceTemplatesDisabledSave:"\u5DE5\u4F5C\u533A\u6A21\u677F\u5DF2\u7981\u7528\u3002\u542F\u7528 explorerDates.enableWorkspaceTemplates \u4EE5\u4FDD\u5B58\u6A21\u677F\u3002",enterTemplateName:"\u8F93\u5165\u6A21\u677F\u540D\u79F0",enterTemplateDescription:"\u8F93\u5165\u63CF\u8FF0\uFF08\u53EF\u9009\uFF09",failedToOpenTemplateManager:"\u65E0\u6CD5\u6253\u5F00\u6A21\u677F\u7BA1\u7406\u5668\uFF1A{0}",failedToSaveTemplate:"\u4FDD\u5B58\u6A21\u677F\u5931\u8D25\uFF1A{0}",reportingDisabled:"\u62A5\u8868\u529F\u80FD\u5DF2\u7981\u7528\u3002\u542F\u7528 explorerDates.enableExportReporting \u4EE5\u751F\u6210\u62A5\u8868\u3002",failedToGenerateReport:"\u751F\u6210\u62A5\u8868\u5931\u8D25\uFF1A{0}",apiDisabled:"Explorer Dates API \u5DF2\u901A\u8FC7\u8BBE\u7F6E\u7981\u7528\u3002",failedToShowApiInformation:"\u663E\u793A API \u4FE1\u606F\u5931\u8D25\uFF1A{0}",failedToShowWorkspaceActivity:"\u663E\u793A\u5DE5\u4F5C\u533A\u6D3B\u52A8\u5931\u8D25\uFF1A{0}",failedToShowPerformanceAnalytics:"\u663E\u793A\u6027\u80FD\u5206\u6790\u5931\u8D25\uFF1A{0}",failedToShowCacheDebugInfo:"\u663E\u793A\u7F13\u5B58\u8C03\u8BD5\u4FE1\u606F\u5931\u8D25\uFF1A{0}",noWorkspaceFolderOpen:"\u672A\u6253\u5F00\u4EFB\u4F55\u5DE5\u4F5C\u533A\u6587\u4EF6\u5939",now:"\u73B0\u5728",minutes:"\u5206",hours:"\u5C0F\u65F6",days:"\u5929",weeks:"\u5468",months:"\u4E2A\u6708",years:"\u5E74",justNow:"\u521A\u521A",minutesAgo:"{0} \u5206\u949F\u524D",hoursAgo:"{0} \u5C0F\u65F6\u524D",daysAgo:"{0} \u5929\u524D",lastModified:"\u6700\u540E\u4FEE\u6539",refreshSuccess:"\u65E5\u671F\u88C5\u9970\u5DF2\u5237\u65B0",activationError:"Explorer Dates \u542F\u52A8\u5931\u8D25",errorAccessingFile:"\u8BBF\u95EE\u7528\u4E8E\u88C5\u9970\u7684\u6587\u4EF6\u65F6\u51FA\u9519",clearTelemetryPrompt:"\u8FD9\u5C06\u6C38\u4E45\u5220\u9664\u672C\u5730\u5B58\u50A8\u7684 Explorer Dates \u9065\u6D4B\u4E8B\u4EF6\u3002\u6B64\u64CD\u4F5C\u65E0\u6CD5\u64A4\u9500\u3002\u662F\u5426\u7EE7\u7EED\uFF1F",clearTelemetryConfirm:"\u6E05\u9664\u9065\u6D4B",clearTelemetryCancel:"\u53D6\u6D88",reportFormatDisabled:"\u62A5\u8868\u683C\u5F0F\u201C{0}\u201D\u5DF2\u7981\u7528\u3002\u5141\u8BB8\u7684\u683C\u5F0F\uFF1A{1}",reportDownloadTriggered:"\u5DF2\u5728\u6D4F\u89C8\u5668\u4E2D\u89E6\u53D1\u62A5\u8868\u4E0B\u8F7D",selectReportTimeRangePlaceholder:"\u9009\u62E9\u62A5\u8868\u65F6\u95F4\u8303\u56F4",selectReportFormatPlaceholder:"\u9009\u62E9\u62A5\u8868\u683C\u5F0F",cleanupNoDeprecated:"\u2139\uFE0F \u672A\u53D1\u73B0\u9700\u8981\u6E05\u7406\u7684\u5DF2\u5F03\u7528\u8BBE\u7F6E\u3002",showMigrationHistoryNoHistory:"\u672A\u627E\u5230\u8FC1\u79FB\u5386\u53F2\u3002",resetConfirmation:"\u8FD9\u5C06\u628A\u6240\u6709 Explorer Dates \u8BBE\u7F6E\u91CD\u7F6E\u4E3A\u9ED8\u8BA4\u503C\u3002\u786E\u5B9A\u5417\uFF1F",resetConfirm:"\u91CD\u7F6E\u8BBE\u7F6E",resetCancel:"\u53D6\u6D88",resetSuccess:"\u2705 \u5DF2\u5C06 {0} \u9879\u8BBE\u7F6E\u91CD\u7F6E\u4E3A\u9ED8\u8BA4\u503C\u3002",validateNoIssues:"\u2705 \u914D\u7F6E\u6709\u6548 - \u672A\u53D1\u73B0\u95EE\u9898\uFF01",validateFoundIssues:"\u53D1\u73B0 {0} \u4E2A\u914D\u7F6E\u95EE\u9898\u3002\u662F\u5426\u67E5\u770B\u8BE6\u7EC6\u4FE1\u606F\uFF1F",validateShowDetails:"\u663E\u793A\u8BE6\u7EC6\u4FE1\u606F",validateDismiss:"\u5173\u95ED",migrationNotificationMessage:"Explorer Dates \u4E3A\u517C\u5BB9\u6027\u66F4\u65B0\u4E86 {0} \u9879\u8BBE\u7F6E\u3002\u60A8\u7684\u914D\u7F6E\u5DF2\u4FDD\u7559\u3002",migrationViewChanges:"\u67E5\u770B\u66F4\u6539",migrationOpenSettings:"\u6253\u5F00\u8BBE\u7F6E",deprecatedPrompt:"Explorer Dates \u53D1\u73B0 {0} \u4E2A\u5DF2\u5F03\u7528\u8BBE\u7F6E\u3002\u662F\u5426\u5220\u9664\uFF1F",deprecatedClean:"\u7ACB\u5373\u6E05\u7406",deprecatedKeep:"\u4FDD\u7559\u65E7\u8BBE\u7F6E",deprecatedAskLater:"\u7A0D\u540E\u8BE2\u95EE",showFileLocation:"\u663E\u793A\u6587\u4EF6\u4F4D\u7F6E",teamConfigCorrupted:"Explorer Dates \u56E2\u961F\u914D\u7F6E\u6587\u4EF6\u4F3C\u4E4E\u5DF2\u635F\u574F\u3002\u8BF7\u68C0\u67E5 .explorer-dates-profiles.json \u6587\u4EF6\u6216\u4ECE\u5907\u4EFD\u6062\u590D\u3002",appliedFromTeamProfile:"\u5DF2\u4ECE\u56E2\u961F\u914D\u7F6E\u6587\u4EF6\u201C{1}\u201D\u5E94\u7528 {0} \u9879 Explorer Dates \u8BBE\u7F6E\u3002",documentedOverrides:"\u5DF2\u5728 .vscode/explorer-dates-overrides.md \u4E2D\u8BB0\u5F55 Explorer Dates \u8986\u76D6\u9879",teamConfigMissingProfile:"\u56E2\u961F\u914D\u7F6E\u7F3A\u5C11\u6D3B\u52A8\u914D\u7F6E\u6587\u4EF6\u3002",ephemeralStorageEnospc:"\u7531\u4E8E\u78C1\u76D8\u5DF2\u6EE1\uFF0C\u65E0\u6CD5\u4FDD\u5B58 Explorer Dates \u56E2\u961F\u914D\u7F6E\u3002",ephemeralStorageGeneric:"\u7531\u4E8E\u5DE5\u4F5C\u533A\u4E3A\u53EA\u8BFB\u6216\u6743\u9650\u53D7\u9650\uFF0C\u65E0\u6CD5\u4FDD\u5B58 Explorer Dates \u56E2\u961F\u914D\u7F6E\u3002",ephemeralStorageSuffix:"\u66F4\u6539\u5C06\u5728 VS Code \u91CD\u542F\u524D\u4FDD\u5B58\u5728\u5185\u5B58\u4E2D\uFF0C\u56E0\u6B64\u53EF\u80FD\u4F1A\u4E22\u5931\u3002"}});var rt=m((Na,tt)=>{var L={};L.en=Ae();L.es=Xe();L.fr=Ze();L.de=Je();L.ja=Qe();L.zh=et();tt.exports=L});var at=m(($a,nt)=>{var O=require("vscode"),M={en:{now:"now",minutes:"m",hours:"h",days:"d",weeks:"w",months:"mo",years:"y",justNow:"just now",minutesAgo:t=>`${t} minute${t!==1?"s":""} ago`,hoursAgo:t=>`${t} hour${t!==1?"s":""} ago`,yesterday:"yesterday",daysAgo:t=>`${t} day${t!==1?"s":""} ago`,lastModified:"Last modified",refreshSuccess:"Date decorations refreshed",activationError:"Explorer Dates failed to activate",errorAccessingFile:"Error accessing file for decoration",clearTelemetryPrompt:"This will permanently delete locally-stored telemetry events for Explorer Dates. This action cannot be undone. Proceed?",clearTelemetryConfirm:"Clear Telemetry",clearTelemetryCancel:"Cancel",clearTelemetrySuccess:"\u2705 Explorer Dates telemetry cleared.",migrateChecking:"Checking for settings that need migration...",migrateAllUpToDate:"\u2705 All settings are up to date!",migrateApplied:t=>`\u2705 Explorer Dates maintenance applied: ${t}.`,organizeSettingsResult:t=>`Explorer Dates settings organized: ${t}`,cleanupSuccess:"\u2705 Deprecated settings have been cleaned up!",reportFormatDisabled:(t,e)=>`Report format "${t}" is disabled. Allowed formats: ${e}`,reportSaved:t=>`Report saved to ${t}`,reportGenerateFailed:"Failed to generate report",reportDownloadTriggered:"Report download triggered in browser",selectReportTimeRangePlaceholder:"Select report time range",selectReportFormatPlaceholder:"Select report format",cleanupNoDeprecated:"\u2139\uFE0F No deprecated settings found to clean up.",showMigrationHistoryNoHistory:"No migration history found.",resetConfirmation:"This will reset all Explorer Dates settings to their default values. Are you sure?",migrationDetailsTitle:"Explorer Dates - Settings Migration",migrationDetailsHeader:"Settings Migration",gitAttributionWarning:"Explorer Dates: Git attribution badges are unavailable on VS Code for Web. Time-based decorations remain available.",noOverridesToDocument:"No overrides to document.",overrideNotesHeader:`# Explorer Dates Override Notes -`,analysisCommandsDisabled:"Explorer Dates analysis commands are disabled. Shortcuts like Ctrl+Shift+M/H/A will not work until you enable explorerDates.enableAnalysisCommands.",analysisEnableNow:"Enable Now",analysisEnablePartially:"Enable partially succeeded. Update explorerDates.enableAnalysisCommands in remaining workspace folders manually.",analysisEnableFailed:"Enable failed: update explorerDates.enableAnalysisCommands in workspace settings.",workspaceTemplatesDisabled:"Workspace templates are disabled. Enable explorerDates.enableWorkspaceTemplates to use this command.",workspaceTemplatesDisabledSave:"Workspace templates are disabled. Enable explorerDates.enableWorkspaceTemplates to save templates.",enterTemplateName:"Enter template name",enterTemplateDescription:"Enter description (optional)",failedToOpenTemplateManager:t=>`Failed to open template manager: ${t}`,failedToSaveTemplate:t=>`Failed to save template: ${t}`,reportingDisabled:"Reporting features are disabled. Enable explorerDates.enableExportReporting to generate reports.",failedToGenerateReport:t=>`Failed to generate report: ${t}`,apiDisabled:"Explorer Dates API is disabled via settings.",failedToShowApiInformation:t=>`Failed to show API information: ${t}`,failedToShowWorkspaceActivity:t=>`Failed to show workspace activity: ${t}`,failedToShowPerformanceAnalytics:t=>`Failed to show performance analytics: ${t}`,failedToShowCacheDebugInfo:t=>`Failed to show cache debug info: ${t}`,noWorkspaceFolderOpen:"No workspace folder open",resetConfirm:"Reset Settings",resetCancel:"Cancel",resetSuccess:t=>`\u2705 Reset ${t} settings to defaults.`,validateNoIssues:"\u2705 Configuration is valid - no issues found!",validateFoundIssues:t=>`Found ${t} configuration issue(s). Would you like to see details?`,validateShowDetails:"Show Details",validateDismiss:"Dismiss",migrationNotificationMessage:t=>`Explorer Dates updated ${t} setting(s) for compatibility. Your configuration has been preserved.`,migrationViewChanges:"View Changes",migrationOpenSettings:"Open Settings",deprecatedPrompt:t=>`Explorer Dates found ${t} deprecated setting(s). Would you like to remove them?`,deprecatedClean:"Clean Up Now",deprecatedKeep:"Keep Old Settings",deprecatedAskLater:"Ask Later",showFileLocation:"Show File Location",teamConfigCorrupted:"Explorer Dates team configuration file appears to be corrupted. Please check the .explorer-dates-profiles.json file or restore from backup.",appliedFromTeamProfile:(t,e)=>`Applied ${t} Explorer Dates settings from team profile "${e}".`,documentedOverrides:"Documented Explorer Dates overrides in .vscode/explorer-dates-overrides.md",teamConfigMissingProfile:"Team configuration is missing an active profile.",ephemeralStorageEnospc:"Explorer Dates team configuration could not be saved because the disk is full.",ephemeralStorageGeneric:"Explorer Dates team configuration could not be saved because the workspace is read-only or permissions are restricted.",ephemeralStorageSuffix:" Changes will be kept in memory until VS Code restarts, so they may be lost."}};try{let t=Je();if(t&&typeof t=="object")for(let[e,r]of Object.entries(t)){M[e]||(M[e]={});for(let[a,n]of Object.entries(r))typeof M[e][a]>"u"&&(M[e][a]=n)}}catch{}var oe=class{constructor(){this.E="en",this.m=null,this.q(),typeof L.workspace.onDidChangeConfiguration=="function"?this.m=L.workspace.onDidChangeConfiguration(e=>{e.affectsConfiguration("explorerDates.locale")&&this.q()}):this.m=null}q(){let r=L.workspace.getConfiguration("explorerDates").get("locale","auto");if(r==="auto"){let a=L&&L.env&&typeof L.env.language=="string"?L.env.language:"en";try{r=String(a||"en").split("-")[0]}catch{r="en"}}M[r]||(r="en"),this.E=r}getString(e,...r){let n=(M[this.E]||M.en)[e];return typeof n=="function"?n(...r):n||M.en[e]||e}getCurrentLocale(){return this.E}formatDate(e,r={}){try{return e.toLocaleDateString(this.E,r)}catch{return e.toLocaleDateString("en",r)}}dispose(){this.m&&(this.m.dispose(),this.m=null),Q===this&&(Q=null)}},Q=null;function Mr(){return Q||(Q=new oe),Q}Qe.exports={LocalizationManager:oe,getLocalization:Mr}});var ee=f((Ra,tt)=>{var ie=class{constructor(){this.t=null,this.u=null}ne(){return this.t?Promise.resolve(this.t):this.u?this.u:(this.u=Promise.resolve().then(()=>J(et())).then(e=>{try{this.t=e.getLocalization()}catch{this.t=null}return this.u=null,this.t}).catch(()=>(this.u=null,null)),this.u)}getString(e,...r){if(this.t&&typeof this.t.getString=="function")return this.t.getString(e,...r);if(this.x&&typeof e=="string"&&Object.prototype.hasOwnProperty.call(this.x,e)){let a=this.x[e];return typeof a=="function"?a(...r):a}return typeof e=="string"?e:""}formatDate(e){return this.t&&typeof this.t.formatDate=="function"?this.t.formatDate(e):e instanceof Date?e.toString():String(e)}getCurrentLocale(){return this.t&&typeof this.t.getCurrentLocale=="function"?this.t.getCurrentLocale():"en"}dispose(){if(this.t&&typeof this.t.dispose=="function")try{this.t.dispose()}catch{}this.t=null,this.u=null}},se={now:"now",justNow:"just now",minutesAgo:t=>`${t} minute${t!==1?"s":""} ago`,hoursAgo:t=>`${t} hour${t!==1?"s":""} ago`,yesterday:"yesterday",daysAgo:t=>`${t} day${t!==1?"s":""} ago`,lastModified:"Last modified",refreshSuccess:"Date decorations refreshed",activationError:"Explorer Dates failed to activate",errorAccessingFile:"Error accessing file for decoration",clearTelemetrySuccess:"\u2705 Explorer Dates telemetry cleared.",migrateChecking:"Checking for settings that need migration...",migrateAllUpToDate:"\u2705 All settings are up to date!",migrateApplied:t=>`\u2705 Explorer Dates maintenance applied: ${t}.`,organizeSettingsResult:t=>`Explorer Dates settings organized: ${t}`,cleanupSuccess:"\u2705 Deprecated settings have been cleaned up!",reportingDisabled:"Reporting features are disabled. Enable explorerDates.enableExportReporting to generate reports.",reportSaved:t=>`Report saved to ${t}`,failedToGenerateReport:t=>`Failed to generate report: ${t}`};try{let t=De();if(t&&typeof t=="object")for(let[e,r]of Object.entries(t))typeof se[e]>"u"&&(typeof r=="string"&&r.includes("{")?se[e]=(...a)=>{let n=r;return a.forEach((o,s)=>{n=n.replace(new RegExp(`\\{${s}\\}`,"g"),String(o))}),n}:se[e]=r)}catch{}var U=null;function Wr(){return U||(U=new ie,U.x=se,U.ne().catch(()=>{}),U)}tt.exports={LocalizationManager:ie,getLocalization:Wr}});var te=f((Pa,rt)=>{var K=require("vscode");function Ir(){var t,e;try{let r=(t=K==null?void 0:K.env)==null?void 0:t.uiKind,a=(e=K==null?void 0:K.UIKind)==null?void 0:e.Web;return r!==void 0&&a!==void 0&&r===a}catch{return!1}}rt.exports={isWebEnvironment:Ir}});var le=f((exports,module)=>{var chunk=null;try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){try{chunk=dynamicRequire("../chunks/utils-shared-chunk")}catch{}try{chunk||(chunk=dynamicRequire("./chunks/utils-shared-chunk"))}catch{}try{chunk||(chunk=dynamicRequire("../chunks/path-utils-chunk"))}catch{}try{chunk||(chunk=dynamicRequire("./chunks/path-utils-chunk"))}catch{}}}catch{}if(chunk&&chunk.normalizePath)module.exports={normalizePath:chunk.normalizePath,getFileName:chunk.getFileName,getExtension:chunk.getExtension,getDirectory:chunk.getDirectory,joinPath:chunk.joinPath,getCacheKey:chunk.getCacheKey,getUriPath:chunk.getUriPath,getRelativePath:chunk.getRelativePath};else{let t=function(c=""){return c?c.replace(/\\/g,"/"):""},e=function(c=""){let u=t(c);return u?u.split("/").filter(Boolean):[]},r=function(c=""){let u=e(c);return u.length?u[u.length-1]:""},a=function(c=""){let u=r(c),g=u.lastIndexOf(".");return g<=0?"":u.substring(g).toLowerCase()},n=function(c=""){let u=t(c),g=u.lastIndexOf("/");return g===-1?"":u.substring(0,g)},o=function(...c){return t(c.filter(Boolean).join("/")).replace(/\/+/g,"/")},s=function(c=""){return t(c).toLowerCase()},i=function(c=""){if(!c)return"";if(typeof c=="string")return c;if(typeof c.fsPath=="string"&&c.fsPath.length>0)return c.fsPath;if(typeof c.path=="string"&&c.path.length>0)return c.path;if(typeof c.toString=="function")try{return c.toString(!0)}catch{return c.toString()}return String(c)},l=function(c="",u=""){let g=t(c),m=t(u);return g&&m.startsWith(g)?m.substring(g.length).replace(/^\/+/,""):m};normalizePath=t,getSegments=e,getFileName=r,getExtension=a,getDirectory=n,joinPath=o,getCacheKey=s,getUriPath=i,getRelativePath=l,module.exports={normalizePath:t,getFileName:r,getExtension:a,getDirectory:n,joinPath:o,getCacheKey:s,getUriPath:i,getRelativePath:l}}var normalizePath,getSegments,getFileName,getExtension,getDirectory,joinPath,getCacheKey,getUriPath,getRelativePath});var xe=f((_a,at)=>{var ce=class extends Error{constructor(e,r,a={}){super(r),this.code=e,this.context=a,this.name="ExtensionError"}},nt={FILE_PERMISSION_DENIED:"FILE_PERMISSION_DENIED",WORKSPACE_TOO_LARGE:"WORKSPACE_TOO_LARGE",CHUNK_LOAD_FAILED:"CHUNK_LOAD_FAILED"};function Lr(t){if(!t)return!1;let e=t.code||(t==null?void 0:t.name);return["EACCES","EPERM","EROFS","NoPermissions"].includes(e)}var Te=class extends ce{constructor(e,r,a={}){let{recoverable:n=!0,context:o={}}=a;super(nt.CHUNK_LOAD_FAILED,`Failed to load ${e}: ${r}`,{chunkName:e,recoverable:n,...o}),this.name="ChunkLoadError",this.chunkName=e,this.recoverable=n}};function Or(t,e,r={}){let a=require("vscode"),{userFacing:n=!0}=r,o=(e==null?void 0:e.recoverable)??!0;n&&!o&&a.window.showErrorMessage(`Explorer Dates: ${t} feature unavailable. Please reinstall or rebuild the extension.`)}at.exports={ExtensionError:ce,ERROR_CODES:nt,isPermissionError:Lr,ChunkLoadError:Te,handleChunkFailure:Or}});var ct=f((Ma,lt)=>{var ot="EXPLORER_DATES_FORCE_VSCODE_FS";function st(t,e=process.env){return String((e==null?void 0:e[t])||"")==="1"}function ue(t){let e=t&&typeof t=="object"?t:null,r=String((e==null?void 0:e.scheme)||(typeof t=="string"&&/^[a-z][a-z0-9+.-]*:/i.test(t)?t.split(":",1)[0]:"file")).toLowerCase(),a=String((e==null?void 0:e.authority)||""),n=(e==null?void 0:e.path)||(e==null?void 0:e.fsPath)||(typeof t=="string"?t.replace(/^[a-z][a-z0-9+.-]*:\/\//i,""):"");return{scheme:r,authority:a,path:String(n||"")}}function Nr({uri:t,isWeb:e=!1,remoteName:r="",forceWorkspaceFs:a=st(ot)}={}){let n=ue(t),o=n.scheme!=="file",s=!!e,i=!!r,l=!!(a||s||i||o);return{scheme:n.scheme,authority:n.authority,isFileScheme:!o,isVirtual:o,isBrowser:s,isRemote:i,forceWorkspaceFs:!!a,filesystem:l?"workspace.fs":"node.fs",provider:o?n.scheme==="github"||n.scheme==="vscode-vfs"?"github":"virtual":"filesystem"}}function it({uri:t,platform:e=process.platform,caseSensitive:r}={}){return typeof r=="boolean"?r:ue(t).scheme!=="file"?!0:e!=="win32"}function $r(t,e={}){let r=ue(t),a=r.path.replace(/\\/g,"/").replace(/\/+/g,"/"),n=`${r.scheme}://${r.authority}${a}`;return it({uri:t,...e})?n:n.toLowerCase()}function Ae(t){if(t instanceof Date){let e=t.getTime();return Number.isFinite(e)?e:null}if(typeof t=="number")return Number.isFinite(t)?t:null;if(typeof t=="string"&&t.trim()){let e=Date.parse(t);return Number.isFinite(e)?e:null}return null}function qr(t){if(!t||typeof t!="object")return null;let e=Ae(t.mtime),r=Ae(t.ctime);return{...t,mtimeMs:e,ctimeMs:r}}lt.exports={FORCE_WORKSPACE_FS_ENV:ot,envFlag:st,getUriParts:ue,getEnvironmentContract:Nr,isCaseSensitive:it,resourceIdentity:$r,normalizeTimestamp:Ae,normalizeStat:qr}});var de=f((Wa,gt)=>{function zr(){return typeof Date=="function"&&Date.now?Date.now():16409952e5}function ut(t){return!!(t&&typeof t=="object"&&typeof t.getTime=="function")}function Hr(t){if(ut(t))return t;if(typeof t=="number")return new Date(t);if(typeof t=="string"){let e=Date.parse(t);return isNaN(e)?new Date:new Date(e)}return new Date}function O(t=""){return t?t.replace(/\\/g,"/"):""}function Ur(t=""){let e=O(t);return e?e.split("/").filter(Boolean):[]}function dt(t=""){let e=Ur(t);return e.length?e[e.length-1]:""}function Kr(t=""){let e=dt(t),r=e.lastIndexOf(".");return r<=0?"":e.substring(r).toLowerCase()}function Vr(t=""){let e=O(t),r=e.lastIndexOf("/");return r===-1?"":e.substring(0,r)}function Br(...t){return O(t.filter(Boolean).join("/")).replace(/\/+/g,"/")}function Gr(t=""){return O(t).toLowerCase()}function jr(t=""){if(!t)return"";if(typeof t=="string")return t;if(typeof t.fsPath=="string"&&t.fsPath.length>0)return t.fsPath;if(typeof t.path=="string"&&t.path.length>0)return t.path;if(typeof t.toString=="function")try{return t.toString(!0)}catch{return t.toString()}return String(t)}function Yr(t="",e=""){let r=O(t),a=O(e);return r&&a.startsWith(r)?a.substring(r.length).replace(/^\/+/,""):a}gt.exports={ensureDate:Hr,isDateLike:ut,getCurrentTimestamp:zr,normalizePath:O,getFileName:dt,getExtension:Kr,getDirectory:Vr,joinPath:Br,getCacheKey:Gr,getUriPath:jr,getRelativePath:Yr}});var Fe=f((exports,module)=>{var chunk=null;try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){try{chunk=dynamicRequire("../chunks/utils-shared-chunk")}catch{}try{chunk||(chunk=dynamicRequire("./chunks/utils-shared-chunk"))}catch{}try{chunk||(chunk=dynamicRequire("../chunks/date-helpers-chunk"))}catch{}try{chunk||(chunk=dynamicRequire("./chunks/date-helpers-chunk"))}catch{}}}catch{}if(chunk&&(chunk.ensureDate||chunk.isDateLike||chunk.getCurrentTimestamp))module.exports={ensureDate:chunk.ensureDate,isDateLike:chunk.isDateLike,getCurrentTimestamp:chunk.getCurrentTimestamp};else{let t=function(){return typeof Date=="function"&&Date.now?Date.now():16409952e5},e=function(a){return!!(a&&typeof a=="object"&&typeof a.getTime=="function")},r=function(a){if(e(a))return a;if(typeof a=="number")return new Date(a);if(typeof a=="string"){let n=Date.parse(a);return isNaN(n)?new Date:new Date(n)}return new Date};getCurrentTimestamp=t,isDateLike=e,ensureDate=r,module.exports={ensureDate:r,isDateLike:e,getCurrentTimestamp:t}}var getCurrentTimestamp,isDateLike,ensureDate});var pe=f((Ia,ht)=>{var b=require("vscode"),{isWebEnvironment:pt}=te(),{normalizePath:Xr}=le(),{ExtensionError:Zr,ERROR_CODES:Jr,isPermissionError:Qr}=xe(),{getEnvironmentContract:en,normalizeStat:tn,FORCE_WORKSPACE_FS_ENV:rn}=ct(),V;try{let t=de();t&&(V=t.ensureDate)}catch{}V||(V=Fe().ensureDate);var ft=typeof process<"u"&&process.env?process.env:{},mt=ft.VSCODE_WEB==="true"||pt(),y=null;if(!mt)try{y=require("fs").promises}catch{y=null}var ge=class{constructor(){this.isWeb=mt||pt()}s(e){var r;try{return en({uri:this.a(e),isWeb:this.isWeb,remoteName:(r=b.env)==null?void 0:r.remoteName,forceWorkspaceFs:ft[rn]==="1"}).filesystem==="workspace.fs"}catch{return!1}}o(e){if(!e)return"";if(typeof e=="string")return e;if(e&&typeof e=="object"&&typeof e.fsPath=="string")return e.fsPath;if(e&&typeof e=="object"&&typeof e.path=="string")return e.path;if(typeof e=="object"){if(typeof e.fsPath=="string")return e.fsPath;if(typeof e.path=="string")return e.path}return String(e)}a(e){if(e&&typeof e=="object"&&typeof e.scheme=="string"&&typeof e.path=="string")return e;if(typeof e=="string"){let r=e.trim(),a=/^[a-zA-Z]:[\\/]/.test(r);if(/^[a-zA-Z][a-zA-Z0-9+.-]*:/.test(r)&&!a){let o=b.Uri.parse(r);if(o.scheme&&o.scheme!=="file")return o}return b.Uri.file(e)}if(e&&typeof e=="object"){if(e.uri&&e.uri!==e)try{return this.a(e.uri)}catch{}if(this.isWeb&&typeof e.scheme=="string"&&typeof e.path=="string")return b.Uri.from({scheme:e.scheme,authority:e.authority||"",path:e.path||"",query:e.query||"",fragment:e.fragment||""});if(typeof e.fsPath=="string"&&e.fsPath.length>0)return b.Uri.file(e.fsPath);if(typeof e.path=="string"&&e.path.length>0)return this.isWeb&&typeof e.scheme=="string"&&e.scheme!=="file"?b.Uri.from({scheme:e.scheme,authority:e.authority||"",path:e.path,query:e.query||"",fragment:e.fragment||""}):b.Uri.file(e.path);if(typeof e.href=="string"&&e.href.length>0)return b.Uri.parse(e.href);if(typeof e.scheme=="string")return b.Uri.from({scheme:e.scheme,authority:e.authority||"",path:e.path||e.fsPath||"",query:e.query||"",fragment:e.fragment||""});if(typeof e.toString=="function")try{let r=e.toString(!0);if(r&&r!=="[object Object]")return b.Uri.parse(r)}catch{let r=e.toString();if(r&&r!=="[object Object]")return b.Uri.parse(r)}}throw new Error(`Unsupported target type: ${typeof e}`)}async stat(e){let r=this.s(e);if(!this.isWeb&&y&&!r)return y.stat(this.o(e));let a=this.a(e),n=await b.workspace.fs.stat(a),o=tn(n);return{...o,mtime:o.mtimeMs===null?V(n.mtime):new Date(o.mtimeMs),ctime:o.ctimeMs===null?V(n.ctime):new Date(o.ctimeMs),birthtime:o.ctimeMs===null?V(n.ctime):new Date(o.ctimeMs),isFile:()=>n.type===b.FileType.File,isDirectory:()=>n.type===b.FileType.Directory}}async readFile(e,r="utf8"){let a=this.s(e);if(!this.isWeb&&y&&!a)return y.readFile(this.o(e),r);let n=this.a(e),o=await b.workspace.fs.readFile(n);return r===null||r==="binary"?o:new TextDecoder(r).decode(o)}async writeFile(e,r,a="utf8"){let n=this.o(e);try{let o=this.s(e);if(!this.isWeb&&y&&!o)return y.writeFile(n,r,a);let s=this.a(e),i=typeof r=="string"?new TextEncoder().encode(r):r;await b.workspace.fs.writeFile(s,i)}catch(o){this.A("write file",n,o)}}async rename(e,r,a={overwrite:!1}){let n=this.o(e),o=this.o(r);try{let s=this.s(e)||this.s(r);if(!this.isWeb&&y&&!s)return y.rename(n,o);if(typeof b.workspace.fs.rename=="function")await b.workspace.fs.rename(this.a(e),this.a(r),a);else if(this.a(e).scheme==="file"&&this.a(r).scheme==="file")await(y||require("fs").promises).rename(n,o);else throw new Error("The active filesystem provider cannot rename report output.")}catch(s){this.A("rename file",`${n} -> ${o}`,s)}}async mkdir(e,r={recursive:!0}){let a=this.o(e);try{let n=this.s(e);if(!this.isWeb&&y&&!n)return y.mkdir(a,r);let o=this.a(e);await b.workspace.fs.createDirectory(o)}catch(n){this.A("create directory",a,n)}}async readdir(e,r={withFileTypes:!1}){let a=this.s(e);if(!this.isWeb&&y&&!a)return y.readdir(this.o(e),r);let n=this.a(e),o=await b.workspace.fs.readDirectory(n);return r.withFileTypes?o.map(([s,i])=>({name:s,isDirectory:()=>i===b.FileType.Directory,isFile:()=>i===b.FileType.File})):o.map(([s])=>s)}async delete(e,r={recursive:!1}){let a=this.s(e);if(!this.isWeb&&y&&!a){let o=this.o(e);return r.recursive?y.rm?y.rm(o,r):y.rmdir(o,r):y.unlink(o)}let n=this.a(e);await b.workspace.fs.delete(n,r)}async exists(e){try{return await this.stat(e),!0}catch{return!1}}async ensureDirectory(e){let r=Xr(this.o(e));await this.mkdir(r,{recursive:!0})}A(e,r,a){throw Qr(a)?new Zr(Jr.FILE_PERMISSION_DENIED,`Permission denied while attempting to ${e}`,{path:r,code:a.code}):a}},nn=new ge;ht.exports={FileSystemAdapter:ge,fileSystem:nn}});var N=f((La,bt)=>{var B=typeof process<"u"&&process.env?process.env:{},an=12e4,on=1e4,sn=1440*60*1e3,ln=2,cn=["Ja","Fe","Mr","Ap","My","Jn","Jl","Au","Se","Oc","No","De"],un=Number(B.EXPLORER_DATES_DECORATION_POOL_SIZE||2048),dn=Number(B.EXPLORER_DATES_FLYWEIGHT_CACHE_SIZE||4096),gn=Number(B.EXPLORER_DATES_WORKSPACE_BALANCED_THRESHOLD||15e3),pn=Number(B.EXPLORER_DATES_WORKSPACE_LARGE_THRESHOLD||25e4),wt=Number(B.EXPLORER_DATES_WORKSPACE_EXTREME_THRESHOLD||4e5),fn=Number(B.EXPLORER_DATES_WORKSPACE_SCAN_MAX_RESULTS||Math.min(wt+1,50001)),mn={ADVANCED_CACHE:"explorerDates.advancedCache",ADVANCED_CACHE_METADATA:"explorerDates.advancedCacheMetadata",TEMPLATE_STORE:"explorerDates.templates",WEB_GIT_NOTICE:"explorerDates.webGitNotice"},hn="explorerDatesChunks",wn="__explorerDatesChunks";bt.exports={DEFAULT_CACHE_TIMEOUT:an,DEFAULT_MAX_CACHE_SIZE:on,DEFAULT_PERSISTENT_CACHE_TTL:sn,DEFAULT_DECORATION_POOL_SIZE:un,DEFAULT_FLYWEIGHT_CACHE_SIZE:dn,MAX_BADGE_LENGTH:ln,MONTH_ABBREVIATIONS:cn,WORKSPACE_SCALE_BALANCED_THRESHOLD:gn,WORKSPACE_SCALE_LARGE_THRESHOLD:pn,WORKSPACE_SCALE_EXTREME_THRESHOLD:wt,WORKSPACE_SCAN_MAX_RESULTS:fn,GLOBAL_STATE_KEYS:mn,WEB_CHUNK_GLOBAL_KEY:hn,LEGACY_WEB_CHUNK_GLOBAL_KEY:wn}});var Re=f((Oa,Et)=>{var{MAX_BADGE_LENGTH:yt}=N();function bn(t=0,e="auto"){let r=typeof t=="number"&&!Number.isNaN(t)?t:0;if(e==="bytes")return`~${r}B`;let a=r/1024;if(e==="kb")return`~${a.toFixed(1)}K`;let n=a/1024;return e==="mb"?`~${n.toFixed(1)}M`:r<1024?`~${r}B`:a<1024?`~${Math.round(a)}K`:`~${n.toFixed(1)}M`}function yn(t){if(t)return t.length>yt?t.substring(0,yt):t}Et.exports={formatFileSize:bn,trimBadge:yn}});var xt=f((Na,Tt)=>{var vt=[".git","node_modules","dist","build","out",".vite",".vscode-test","test-results","playwright-report","coverage"],Ct=["24h","7d","30d","90d","all"];function D(t=""){return String(t||"").replace(/\\/g,"/").replace(/\/+/g,"/").replace(/^\.\//,"")}function St(t){return t==="full"||t==="all"?"all":Ct.includes(t)?t:"all"}function kt(t,e=Date.now()){let r=St(t);if(r==="all")return null;let a=r==="24h"?24:Number.parseInt(r,10)*24;return e-a*60*60*1e3}function x(t){if(t instanceof Date)return Number.isFinite(t.getTime())?t:null;if(typeof t=="number"&&Number.isFinite(t)){let e=new Date(t<1e12?t*1e3:t);return Number.isFinite(e.getTime())?e:null}if(typeof t=="string"&&t.trim()){let e=new Date(t);return Number.isFinite(e.getTime())?e:null}return null}function En(t={}){let e=Number.isFinite(Number(t.size))&&Number(t.size)>=0?Number(t.size):null,r=x(t.mtime??t.mtimeMs),a=x(t.birthtime??t.ctime??t.ctimeMs);return{size:e,modified:r,created:a}}function vn(t){let r=D(t).replace(/^\*\*\//,"").replace(/\/\*\*$/,"").replace(/[.+^${}()|[\]\\]/g,"\\$&").replace(/\*\*/g,".*").replace(/\*/g,"[^/]*").replace(/\?/g,"[^/]");try{return new RegExp(`(^|/)${r}($|/)`,"i")}catch{return null}}function Cn(t={}){let e=new Set([...vt,...t.excludedSegments||[]].map(a=>D(a).replace(/^\/+|\/+$/g,"").toLowerCase()).filter(Boolean)),r=(t.excludedPatterns||[]).map(vn).filter(Boolean);return{excludedSegments:[...e],isExcluded(a=""){let n=D(a);return n.split("/").filter(Boolean).some(s=>e.has(s.toLowerCase()))?!0:r.some(s=>s.test(n))},shouldDescend(a=""){return!this.isExcluded(a,!0)}}}function Sn(t){let e=x(t==null?void 0:t.timestamp);return e?`${e.toISOString()}|${t.action||"modified"}|${t.source||"unknown"}`:null}function kn(t,e,r){let a=x(t),n=kt(e,r);return!!(a&&(n===null||a.getTime()>=n))}function Dt(t){return[...t].sort((e,r)=>{var o,s;let a=((o=x(e.lastActivity||e.modified))==null?void 0:o.getTime())||0;return(((s=x(r.lastActivity||r.modified))==null?void 0:s.getTime())||0)-a||D(e.path).localeCompare(D(r.path))})}function Dn(t){let e={filesystem:0,user:0,watcher:0,git:0,unavailable:0},r={},a={};for(let l of t){r[l.type||"unknown"]=(r[l.type||"unknown"]||0)+1;for(let c of l.evidence||[]){e[c.source]=(e[c.source]||0)+1;let u=x(c.timestamp);u&&(a[u.toISOString().slice(0,10)]=(a[u.toISOString().slice(0,10)]||0)+1)}l.activityUnavailable&&e.unavailable++}let n=Dt(t),o=[...t].filter(l=>Number.isFinite(l.activityCount)&&l.activityCount>0).sort((l,c)=>c.activityCount-l.activityCount||D(l.path).localeCompare(D(c.path))),s=[...t].sort((l,c)=>(c.size||0)-(l.size||0)||D(l.path).localeCompare(D(c.path))),i=[...t].filter(l=>x(l.modified)).sort((l,c)=>x(l.modified).getTime()-x(c.modified).getTime()||D(l.path).localeCompare(D(c.path)));return{totalFiles:t.length,totalSize:t.reduce((l,c)=>l+(c.size||0),0),fileTypes:r,activityByDay:a,mostActiveFiles:o.slice(0,10).map(l=>({path:l.path,activityCount:l.activityCount,lastActivity:l.lastActivity})),recentlyModified:n.slice(0,20).map(l=>({path:l.path,modified:l.modified,size:l.size})),largestFiles:s.slice(0,10).map(l=>({path:l.path,size:l.size,modified:l.modified})),oldestFiles:i.slice(0,10).map(l=>({path:l.path,modified:l.modified,size:l.size})),activitySourceBreakdown:e}}Tt.exports={REPORT_SCHEMA_VERSION:2,DEFAULT_EXCLUDED_SEGMENTS:vt,REPORT_TIME_RANGES:Ct,normalizePath:D,normalizeTimeRange:St,rangeStart:kt,validDate:x,normalizeStat:En,createInclusionPolicy:Cn,activityKey:Sn,inRange:kn,sortFiles:Dt,createSummary:Dn}});var G=f(($a,Pt)=>{var Ft=typeof process<"u"&&process.env?process.env:{},At="[ExplorerDates][WebDiag]",Pe="__explorerDatesWebDiagnostics",fe;function Tn(){var t,e;try{let r=require("vscode");return((t=r==null?void 0:r.env)==null?void 0:t.uiKind)===((e=r==null?void 0:r.UIKind)==null?void 0:e.Web)}catch{return Ft.VSCODE_WEB==="true"}}function A(){return fe!==void 0||(fe=Ft.EXPLORER_DATES_WEB_DIAG==="1"||Tn()),fe}function Rt(){return{enabled:A(),logs:[],logOnce:new Set,commandsRegistered:new Set,commandsInvoked:[],errors:[],chunkLoads:[],provider:{created:!1,registered:!1,hydrated:!1,decorationCalls:0,refreshCalls:0,lastEvent:null}}}var xn=Rt();function F(){return typeof globalThis<"u"?(globalThis[Pe]||(globalThis[Pe]=Rt()),globalThis[Pe]):xn}function An(t){try{return JSON.stringify(t)}catch{return String(t)}}function R(t,e,r){if(!A())return;let a=F(),n={ts:new Date().toISOString(),level:t,message:e,meta:r||null};a.logs.push(n),a.logs.length>400&&a.logs.shift();let o=r?`${At} ${e} ${An(r)}`:`${At} ${e}`,s=console[t]||console.info;try{s(o)}catch{}}function Fn(t,e,r,a){if(!A())return;let n=F();n.logOnce.has(t)||(n.logOnce.add(t),R(e,r,a))}function Rn(t){if(!A())return;F().commandsRegistered.add(t),R("info","Command registered",{commandId:t})}function Pn(t){if(!A())return;F().commandsInvoked.push({commandId:t,ts:Date.now()}),R("info","Command invoked",{commandId:t})}function _n(t,e,r){A()&&(e?R("info","Command completed",{commandId:t}):(R("error","Command failed",{commandId:t,error:r==null?void 0:r.message,stack:r==null?void 0:r.stack}),F().errors.push({commandId:t,error:r==null?void 0:r.message,stack:r==null?void 0:r.stack})))}function Mn(t,e,r){if(!A())return;F().chunkLoads.push({chunkName:t,stage:e,ts:Date.now(),error:r?r.message||String(r):null}),R(r?"warn":"info",`Chunk ${e}`,{chunkName:t,error:r==null?void 0:r.message})}function Wn(t,e){if(!A())return;let r=F();r.provider.lastEvent={event:t,ts:Date.now(),meta:e||null},t==="created"&&(r.provider.created=!0),t==="registered"&&(r.provider.registered=!0),t==="hydrated"&&(r.provider.hydrated=!0),R("info",`Provider ${t}`,e)}function In(){if(!A())return;let t=F();t.provider.decorationCalls+=1,t.provider.decorationCalls<=3&&R("info","Decoration request observed",{count:t.provider.decorationCalls})}function Ln(){if(!A())return;let t=F();t.provider.refreshCalls+=1}Pt.exports={isWebDiagnosticsEnabled:A,getWebDiagnosticsState:F,diagLog:R,diagLogOnce:Fn,recordCommandRegistration:Rn,recordCommandInvocation:Pn,recordCommandResult:_n,recordChunkEvent:Mn,recordProviderEvent:Wn,recordDecorationCall:In,recordRefreshCall:Ln}});var j=f((qa,Wt)=>{var _e=require("vscode"),{getLocalization:On}=ee(),Nn=On();function _t(){return typeof _e.workspace.isTrusted>"u"?!0:_e.workspace.isTrusted===!0}function Mt(t="operation"){if(!_t()){let e=Nn.getString("operationRequiresTrust",t)||`This operation requires a trusted workspace. Please trust this workspace to use ${t}.`;throw _e.window.showErrorMessage(e),new Error(`Workspace trust required for ${t}`)}}async function $n(t,e="operation"){try{return Mt(e),await t()}catch{return null}}Wt.exports={isWorkspaceTrusted:_t,requireWorkspaceTrust:Mt,withTrustGuard:$n}});var It=f((exports,module)=>{var vscode=require("vscode"),{fileSystem}=pe(),{formatFileSize}=Re(),{normalizeStat,validDate}=xt(),{recordCommandRegistration,recordCommandInvocation,recordCommandResult,diagLog}=G(),getFileName,getRelativePath;try{let t=de();t&&(getFileName=t.getFileName,getRelativePath=t.getRelativePath)}catch{}if(!getFileName){let t=le();getFileName=getFileName||t.getFileName,getRelativePath=getRelativePath||t.getRelativePath}var env=typeof process<"u"&&process.env?process.env:{},isWeb=env.VSCODE_WEB==="true",childProcess=null;function loadChildProcess(){return!childProcess&&!isWeb&&(childProcess=eval("require")("child_process")),childProcess}function registerCoreCommands({context:t,fileDateProvider:e,logger:r,l10n:a}){let n=[],o=(s,i)=>(recordCommandRegistration(s),vscode.commands.registerCommand(s,async(...l)=>{recordCommandInvocation(s);try{let c=await i(...l);return recordCommandResult(s,!0),c}catch(c){throw recordCommandResult(s,!1,c),c}}));n.push(o("explorerDates.refreshDateDecorations",()=>{try{if(e){e.clearAllCaches(),e.refreshAll();let s=(a==null?void 0:a.getString("refreshSuccess"))||"Date decorations refreshed - all caches cleared";vscode.window.showInformationMessage(s),r.info("Date decorations refreshed manually with cache clear")}}catch(s){r.error("Failed to refresh decorations",s),vscode.window.showErrorMessage(`Failed to refresh decorations: ${s.message}`)}})),n.push(o("explorerDates.previewConfiguration",s=>{try{e&&(e.applyPreviewSettings(s),r.info("Configuration preview applied",s))}catch(i){r.error("Failed to apply configuration preview",i)}})),n.push(o("explorerDates.clearPreview",()=>{try{e&&(e.applyPreviewSettings(null),r.info("Configuration preview cleared"))}catch(s){r.error("Failed to clear configuration preview",s)}})),n.push(o("explorerDates.showMetrics",()=>{try{if(e){let s=e.getMetrics(),i=`Explorer Dates Metrics: -Total Decorations: ${s.totalDecorations} -Cache Size: ${s.cacheSize} -Cache Hits: ${s.cacheHits} -Cache Misses: ${s.cacheMisses} -Cache Hit Rate: ${s.cacheHitRate} -Errors: ${s.errors}`;s.advancedCache&&(i+=` +`,analysisCommandsDisabled:"Explorer Dates analysis commands are disabled. Shortcuts like Ctrl+Shift+M/H/A will not work until you enable explorerDates.enableAnalysisCommands.",analysisEnableNow:"Enable Now",analysisEnablePartially:"Enable partially succeeded. Update explorerDates.enableAnalysisCommands in remaining workspace folders manually.",analysisEnableFailed:"Enable failed: update explorerDates.enableAnalysisCommands in workspace settings.",workspaceTemplatesDisabled:"Workspace templates are disabled. Enable explorerDates.enableWorkspaceTemplates to use this command.",workspaceTemplatesDisabledSave:"Workspace templates are disabled. Enable explorerDates.enableWorkspaceTemplates to save templates.",enterTemplateName:"Enter template name",enterTemplateDescription:"Enter description (optional)",failedToOpenTemplateManager:t=>`Failed to open template manager: ${t}`,failedToSaveTemplate:t=>`Failed to save template: ${t}`,reportingDisabled:"Reporting features are disabled. Enable explorerDates.enableExportReporting to generate reports.",failedToGenerateReport:t=>`Failed to generate report: ${t}`,apiDisabled:"Explorer Dates API is disabled via settings.",failedToShowApiInformation:t=>`Failed to show API information: ${t}`,failedToShowWorkspaceActivity:t=>`Failed to show workspace activity: ${t}`,failedToShowPerformanceAnalytics:t=>`Failed to show performance analytics: ${t}`,failedToShowCacheDebugInfo:t=>`Failed to show cache debug info: ${t}`,noWorkspaceFolderOpen:"No workspace folder open",resetConfirm:"Reset Settings",resetCancel:"Cancel",resetSuccess:t=>`\u2705 Reset ${t} settings to defaults.`,validateNoIssues:"\u2705 Configuration is valid - no issues found!",validateFoundIssues:t=>`Found ${t} configuration issue(s). Would you like to see details?`,validateShowDetails:"Show Details",validateDismiss:"Dismiss",migrationNotificationMessage:t=>`Explorer Dates updated ${t} setting(s) for compatibility. Your configuration has been preserved.`,migrationViewChanges:"View Changes",migrationOpenSettings:"Open Settings",deprecatedPrompt:t=>`Explorer Dates found ${t} deprecated setting(s). Would you like to remove them?`,deprecatedClean:"Clean Up Now",deprecatedKeep:"Keep Old Settings",deprecatedAskLater:"Ask Later",showFileLocation:"Show File Location",teamConfigCorrupted:"Explorer Dates team configuration file appears to be corrupted. Please check the .explorer-dates-profiles.json file or restore from backup.",appliedFromTeamProfile:(t,e)=>`Applied ${t} Explorer Dates settings from team profile "${e}".`,documentedOverrides:"Documented Explorer Dates overrides in .vscode/explorer-dates-overrides.md",teamConfigMissingProfile:"Team configuration is missing an active profile.",ephemeralStorageEnospc:"Explorer Dates team configuration could not be saved because the disk is full.",ephemeralStorageGeneric:"Explorer Dates team configuration could not be saved because the workspace is read-only or permissions are restricted.",ephemeralStorageSuffix:" Changes will be kept in memory until VS Code restarts, so they may be lost."}};try{let t=rt();if(t&&typeof t=="object")for(let[e,r]of Object.entries(t)){M[e]||(M[e]={});for(let[a,n]of Object.entries(r))typeof M[e][a]>"u"&&(M[e][a]=n)}}catch{}var se=class{constructor(){this.E="en",this.m=null,this.q(),typeof O.workspace.onDidChangeConfiguration=="function"?this.m=O.workspace.onDidChangeConfiguration(e=>{e.affectsConfiguration("explorerDates.locale")&&this.q()}):this.m=null}q(){let r=O.workspace.getConfiguration("explorerDates").get("locale","auto");if(r==="auto"){let a=O&&O.env&&typeof O.env.language=="string"?O.env.language:"en";try{r=String(a||"en").split("-")[0]}catch{r="en"}}M[r]||(r="en"),this.E=r}getString(e,...r){let n=(M[this.E]||M.en)[e];return typeof n=="function"?n(...r):n||M.en[e]||e}getCurrentLocale(){return this.E}formatDate(e,r={}){try{return e.toLocaleDateString(this.E,r)}catch{return e.toLocaleDateString("en",r)}}dispose(){this.m&&(this.m.dispose(),this.m=null),Q===this&&(Q=null)}},Q=null;function Nr(){return Q||(Q=new se),Q}nt.exports={LocalizationManager:se,getLocalization:Nr}});var ee=m((qa,ot)=>{var le=class{constructor(){this.t=null,this.u=null}ne(){return this.t?Promise.resolve(this.t):this.u?this.u:(this.u=Promise.resolve().then(()=>J(at())).then(e=>{try{this.t=e.getLocalization()}catch{this.t=null}return this.u=null,this.t}).catch(()=>(this.u=null,null)),this.u)}getString(e,...r){if(this.t&&typeof this.t.getString=="function")return this.t.getString(e,...r);if(this.A&&typeof e=="string"&&Object.prototype.hasOwnProperty.call(this.A,e)){let a=this.A[e];return typeof a=="function"?a(...r):a}return typeof e=="string"?e:""}formatDate(e){return this.t&&typeof this.t.formatDate=="function"?this.t.formatDate(e):e instanceof Date?e.toString():String(e)}getCurrentLocale(){return this.t&&typeof this.t.getCurrentLocale=="function"?this.t.getCurrentLocale():"en"}dispose(){if(this.t&&typeof this.t.dispose=="function")try{this.t.dispose()}catch{}this.t=null,this.u=null}},ie={now:"now",justNow:"just now",minutesAgo:t=>`${t} minute${t!==1?"s":""} ago`,hoursAgo:t=>`${t} hour${t!==1?"s":""} ago`,yesterday:"yesterday",daysAgo:t=>`${t} day${t!==1?"s":""} ago`,lastModified:"Last modified",refreshSuccess:"Date decorations refreshed",activationError:"Explorer Dates failed to activate",errorAccessingFile:"Error accessing file for decoration",clearTelemetrySuccess:"\u2705 Explorer Dates telemetry cleared.",migrateChecking:"Checking for settings that need migration...",migrateAllUpToDate:"\u2705 All settings are up to date!",migrateApplied:t=>`\u2705 Explorer Dates maintenance applied: ${t}.`,organizeSettingsResult:t=>`Explorer Dates settings organized: ${t}`,cleanupSuccess:"\u2705 Deprecated settings have been cleaned up!",reportingDisabled:"Reporting features are disabled. Enable explorerDates.enableExportReporting to generate reports.",reportSaved:t=>`Report saved to ${t}`,failedToGenerateReport:t=>`Failed to generate report: ${t}`};try{let t=Ae();if(t&&typeof t=="object")for(let[e,r]of Object.entries(t))typeof ie[e]>"u"&&(typeof r=="string"&&r.includes("{")?ie[e]=(...a)=>{let n=r;return a.forEach((o,s)=>{n=n.replace(new RegExp(`\\{${s}\\}`,"g"),String(o))}),n}:ie[e]=r)}catch{}var K=null;function $r(){return K||(K=new le,K.A=ie,K.ne().catch(()=>{}),K)}ot.exports={LocalizationManager:le,getLocalization:$r}});var te=m((Ua,st)=>{var V=require("vscode");function qr(){var t,e;try{let r=(t=V==null?void 0:V.env)==null?void 0:t.uiKind,a=(e=V==null?void 0:V.UIKind)==null?void 0:e.Web;return r!==void 0&&a!==void 0&&r===a}catch{return!1}}st.exports={isWebEnvironment:qr}});var ce=m((exports,module)=>{var chunk=null;try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){try{chunk=dynamicRequire("../chunks/utils-shared-chunk")}catch{}try{chunk||(chunk=dynamicRequire("./chunks/utils-shared-chunk"))}catch{}try{chunk||(chunk=dynamicRequire("../chunks/path-utils-chunk"))}catch{}try{chunk||(chunk=dynamicRequire("./chunks/path-utils-chunk"))}catch{}}}catch{}if(chunk&&chunk.normalizePath)module.exports={normalizePath:chunk.normalizePath,getFileName:chunk.getFileName,getExtension:chunk.getExtension,getDirectory:chunk.getDirectory,joinPath:chunk.joinPath,getCacheKey:chunk.getCacheKey,getUriPath:chunk.getUriPath,getRelativePath:chunk.getRelativePath};else{let t=function(c=""){return c?c.replace(/\\/g,"/"):""},e=function(c=""){let u=t(c);return u?u.split("/").filter(Boolean):[]},r=function(c=""){let u=e(c);return u.length?u[u.length-1]:""},a=function(c=""){let u=r(c),d=u.lastIndexOf(".");return d<=0?"":u.substring(d).toLowerCase()},n=function(c=""){let u=t(c),d=u.lastIndexOf("/");return d===-1?"":u.substring(0,d)},o=function(...c){return t(c.filter(Boolean).join("/")).replace(/\/+/g,"/")},s=function(c=""){return t(c).toLowerCase()},i=function(c=""){if(!c)return"";if(typeof c=="string")return c;if(typeof c.fsPath=="string"&&c.fsPath.length>0)return c.fsPath;if(typeof c.path=="string"&&c.path.length>0)return c.path;if(typeof c.toString=="function")try{return c.toString(!0)}catch{return c.toString()}return String(c)},l=function(c="",u=""){let d=t(c),h=t(u);return d&&h.startsWith(d)?h.substring(d.length).replace(/^\/+/,""):h};normalizePath=t,getSegments=e,getFileName=r,getExtension=a,getDirectory=n,joinPath=o,getCacheKey=s,getUriPath=i,getRelativePath=l,module.exports={normalizePath:t,getFileName:r,getExtension:a,getDirectory:n,joinPath:o,getCacheKey:s,getUriPath:i,getRelativePath:l}}var normalizePath,getSegments,getFileName,getExtension,getDirectory,joinPath,getCacheKey,getUriPath,getRelativePath});var Re=m((za,lt)=>{var ue=class extends Error{constructor(e,r,a={}){super(r),this.code=e,this.context=a,this.name="ExtensionError"}},it={FILE_PERMISSION_DENIED:"FILE_PERMISSION_DENIED",WORKSPACE_TOO_LARGE:"WORKSPACE_TOO_LARGE",CHUNK_LOAD_FAILED:"CHUNK_LOAD_FAILED"};function Ur(t){if(!t)return!1;let e=t.code||(t==null?void 0:t.name);return["EACCES","EPERM","EROFS","NoPermissions"].includes(e)}var xe=class extends ue{constructor(e,r,a={}){let{recoverable:n=!0,context:o={}}=a;super(it.CHUNK_LOAD_FAILED,`Failed to load ${e}: ${r}`,{chunkName:e,recoverable:n,...o}),this.name="ChunkLoadError",this.chunkName=e,this.recoverable=n}};function zr(t,e,r={}){let a=require("vscode"),{userFacing:n=!0}=r,o=(e==null?void 0:e.recoverable)??!0;n&&!o&&a.window.showErrorMessage(`Explorer Dates: ${t} feature unavailable. Please reinstall or rebuild the extension.`)}lt.exports={ExtensionError:ue,ERROR_CODES:it,isPermissionError:Ur,ChunkLoadError:xe,handleChunkFailure:zr}});var pt=m((Ha,gt)=>{var ct="EXPLORER_DATES_FORCE_VSCODE_FS";function ut(t,e=process.env){return String((e==null?void 0:e[t])||"")==="1"}function de(t){let e=t&&typeof t=="object"?t:null,r=String((e==null?void 0:e.scheme)||(typeof t=="string"&&/^[a-z][a-z0-9+.-]*:/i.test(t)?t.split(":",1)[0]:"file")).toLowerCase(),a=String((e==null?void 0:e.authority)||""),n=(e==null?void 0:e.path)||(e==null?void 0:e.fsPath)||(typeof t=="string"?t.replace(/^[a-z][a-z0-9+.-]*:\/\//i,""):"");return{scheme:r,authority:a,path:String(n||"")}}function Hr({uri:t,isWeb:e=!1,remoteName:r="",forceWorkspaceFs:a=ut(ct)}={}){let n=de(t),o=n.scheme!=="file",s=!!e,i=!!r,l=!!(a||s||i||o);return{scheme:n.scheme,authority:n.authority,isFileScheme:!o,isVirtual:o,isBrowser:s,isRemote:i,forceWorkspaceFs:!!a,filesystem:l?"workspace.fs":"node.fs",provider:o?n.scheme==="github"||n.scheme==="vscode-vfs"?"github":"virtual":"filesystem"}}function dt({uri:t,platform:e=process.platform,caseSensitive:r}={}){return typeof r=="boolean"?r:de(t).scheme!=="file"?!0:e!=="win32"}function Kr(t,e={}){let r=de(t),a=r.path.replace(/\\/g,"/").replace(/\/+/g,"/"),n=`${r.scheme}://${r.authority}${a}`;return dt({uri:t,...e})?n:n.toLowerCase()}function Fe(t){if(t instanceof Date){let e=t.getTime();return Number.isFinite(e)?e:null}if(typeof t=="number")return Number.isFinite(t)?t:null;if(typeof t=="string"&&t.trim()){let e=Date.parse(t);return Number.isFinite(e)?e:null}return null}function Vr(t){if(!t||typeof t!="object")return null;let e=Fe(t.mtime),r=Fe(t.ctime);return{...t,mtimeMs:e,ctimeMs:r}}gt.exports={FORCE_WORKSPACE_FS_ENV:ct,envFlag:ut,getUriParts:de,getEnvironmentContract:Hr,isCaseSensitive:dt,resourceIdentity:Kr,normalizeTimestamp:Fe,normalizeStat:Vr}});var ge=m((Ka,ht)=>{function Br(){return typeof Date=="function"&&Date.now?Date.now():16409952e5}function ft(t){return!!(t&&typeof t=="object"&&typeof t.getTime=="function")}function Gr(t){if(ft(t))return t;if(typeof t=="number")return new Date(t);if(typeof t=="string"){let e=Date.parse(t);return isNaN(e)?new Date:new Date(e)}return new Date}function N(t=""){return t?t.replace(/\\/g,"/"):""}function jr(t=""){let e=N(t);return e?e.split("/").filter(Boolean):[]}function mt(t=""){let e=jr(t);return e.length?e[e.length-1]:""}function Yr(t=""){let e=mt(t),r=e.lastIndexOf(".");return r<=0?"":e.substring(r).toLowerCase()}function Xr(t=""){let e=N(t),r=e.lastIndexOf("/");return r===-1?"":e.substring(0,r)}function Zr(...t){return N(t.filter(Boolean).join("/")).replace(/\/+/g,"/")}function Jr(t=""){return N(t).toLowerCase()}function Qr(t=""){if(!t)return"";if(typeof t=="string")return t;if(typeof t.fsPath=="string"&&t.fsPath.length>0)return t.fsPath;if(typeof t.path=="string"&&t.path.length>0)return t.path;if(typeof t.toString=="function")try{return t.toString(!0)}catch{return t.toString()}return String(t)}function en(t="",e=""){let r=N(t),a=N(e);return r&&a.startsWith(r)?a.substring(r.length).replace(/^\/+/,""):a}ht.exports={ensureDate:Gr,isDateLike:ft,getCurrentTimestamp:Br,normalizePath:N,getFileName:mt,getExtension:Yr,getDirectory:Xr,joinPath:Zr,getCacheKey:Jr,getUriPath:Qr,getRelativePath:en}});var _e=m((exports,module)=>{var chunk=null;try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){try{chunk=dynamicRequire("../chunks/utils-shared-chunk")}catch{}try{chunk||(chunk=dynamicRequire("./chunks/utils-shared-chunk"))}catch{}try{chunk||(chunk=dynamicRequire("../chunks/date-helpers-chunk"))}catch{}try{chunk||(chunk=dynamicRequire("./chunks/date-helpers-chunk"))}catch{}}}catch{}if(chunk&&(chunk.ensureDate||chunk.isDateLike||chunk.getCurrentTimestamp))module.exports={ensureDate:chunk.ensureDate,isDateLike:chunk.isDateLike,getCurrentTimestamp:chunk.getCurrentTimestamp};else{let t=function(){return typeof Date=="function"&&Date.now?Date.now():16409952e5},e=function(a){return!!(a&&typeof a=="object"&&typeof a.getTime=="function")},r=function(a){if(e(a))return a;if(typeof a=="number")return new Date(a);if(typeof a=="string"){let n=Date.parse(a);return isNaN(n)?new Date:new Date(n)}return new Date};getCurrentTimestamp=t,isDateLike=e,ensureDate=r,module.exports={ensureDate:r,isDateLike:e,getCurrentTimestamp:t}}var getCurrentTimestamp,isDateLike,ensureDate});var fe=m((Va,Et)=>{var b=require("vscode"),{isWebEnvironment:wt}=te(),{normalizePath:tn}=ce(),{ExtensionError:rn,ERROR_CODES:nn,isPermissionError:an}=Re(),{getEnvironmentContract:on,normalizeStat:sn,FORCE_WORKSPACE_FS_ENV:ln}=pt(),B;try{let t=ge();t&&(B=t.ensureDate)}catch{}B||(B=_e().ensureDate);var bt=typeof process<"u"&&process.env?process.env:{},yt=bt.VSCODE_WEB==="true"||wt(),y=null;if(!yt)try{y=require("fs").promises}catch{y=null}var pe=class{constructor(){this.isWeb=yt||wt()}s(e){var r;try{return on({uri:this.a(e),isWeb:this.isWeb,remoteName:(r=b.env)==null?void 0:r.remoteName,forceWorkspaceFs:bt[ln]==="1"}).filesystem==="workspace.fs"}catch{return!1}}o(e){if(!e)return"";if(typeof e=="string")return e;if(e&&typeof e=="object"&&typeof e.fsPath=="string")return e.fsPath;if(e&&typeof e=="object"&&typeof e.path=="string")return e.path;if(typeof e=="object"){if(typeof e.fsPath=="string")return e.fsPath;if(typeof e.path=="string")return e.path}return String(e)}a(e){if(e&&typeof e=="object"&&typeof e.scheme=="string"&&typeof e.path=="string")return e;if(typeof e=="string"){let r=e.trim(),a=/^[a-zA-Z]:[\\/]/.test(r);if(/^[a-zA-Z][a-zA-Z0-9+.-]*:/.test(r)&&!a){let o=b.Uri.parse(r);if(o.scheme&&o.scheme!=="file")return o}return b.Uri.file(e)}if(e&&typeof e=="object"){if(e.uri&&e.uri!==e)try{return this.a(e.uri)}catch{}if(this.isWeb&&typeof e.scheme=="string"&&typeof e.path=="string")return b.Uri.from({scheme:e.scheme,authority:e.authority||"",path:e.path||"",query:e.query||"",fragment:e.fragment||""});if(typeof e.fsPath=="string"&&e.fsPath.length>0)return b.Uri.file(e.fsPath);if(typeof e.path=="string"&&e.path.length>0)return this.isWeb&&typeof e.scheme=="string"&&e.scheme!=="file"?b.Uri.from({scheme:e.scheme,authority:e.authority||"",path:e.path,query:e.query||"",fragment:e.fragment||""}):b.Uri.file(e.path);if(typeof e.href=="string"&&e.href.length>0)return b.Uri.parse(e.href);if(typeof e.scheme=="string")return b.Uri.from({scheme:e.scheme,authority:e.authority||"",path:e.path||e.fsPath||"",query:e.query||"",fragment:e.fragment||""});if(typeof e.toString=="function")try{let r=e.toString(!0);if(r&&r!=="[object Object]")return b.Uri.parse(r)}catch{let r=e.toString();if(r&&r!=="[object Object]")return b.Uri.parse(r)}}throw new Error(`Unsupported target type: ${typeof e}`)}async stat(e){let r=this.s(e);if(!this.isWeb&&y&&!r)return y.stat(this.o(e));let a=this.a(e),n=await b.workspace.fs.stat(a),o=sn(n);return{...o,mtime:o.mtimeMs===null?B(n.mtime):new Date(o.mtimeMs),ctime:o.ctimeMs===null?B(n.ctime):new Date(o.ctimeMs),birthtime:o.ctimeMs===null?B(n.ctime):new Date(o.ctimeMs),isFile:()=>n.type===b.FileType.File,isDirectory:()=>n.type===b.FileType.Directory}}async readFile(e,r="utf8"){let a=this.s(e);if(!this.isWeb&&y&&!a)return y.readFile(this.o(e),r);let n=this.a(e),o=await b.workspace.fs.readFile(n);return r===null||r==="binary"?o:new TextDecoder(r).decode(o)}async writeFile(e,r,a="utf8"){let n=this.o(e);try{let o=this.s(e);if(!this.isWeb&&y&&!o)return y.writeFile(n,r,a);let s=this.a(e),i=typeof r=="string"?new TextEncoder().encode(r):r;await b.workspace.fs.writeFile(s,i)}catch(o){this.x("write file",n,o)}}async rename(e,r,a={overwrite:!1}){let n=this.o(e),o=this.o(r);try{let s=this.s(e)||this.s(r);if(!this.isWeb&&y&&!s)return y.rename(n,o);if(typeof b.workspace.fs.rename=="function")await b.workspace.fs.rename(this.a(e),this.a(r),a);else if(this.a(e).scheme==="file"&&this.a(r).scheme==="file")await(y||require("fs").promises).rename(n,o);else throw new Error("The active filesystem provider cannot rename report output.")}catch(s){this.x("rename file",`${n} -> ${o}`,s)}}async mkdir(e,r={recursive:!0}){let a=this.o(e);try{let n=this.s(e);if(!this.isWeb&&y&&!n)return y.mkdir(a,r);let o=this.a(e);await b.workspace.fs.createDirectory(o)}catch(n){this.x("create directory",a,n)}}async readdir(e,r={withFileTypes:!1}){let a=this.s(e);if(!this.isWeb&&y&&!a)return y.readdir(this.o(e),r);let n=this.a(e),o=await b.workspace.fs.readDirectory(n);return r.withFileTypes?o.map(([s,i])=>({name:s,isDirectory:()=>i===b.FileType.Directory,isFile:()=>i===b.FileType.File})):o.map(([s])=>s)}async delete(e,r={recursive:!1}){let a=this.s(e);if(!this.isWeb&&y&&!a){let o=this.o(e);return r.recursive?y.rm?y.rm(o,r):y.rmdir(o,r):y.unlink(o)}let n=this.a(e);await b.workspace.fs.delete(n,r)}async exists(e){try{return await this.stat(e),!0}catch{return!1}}async ensureDirectory(e){let r=tn(this.o(e));await this.mkdir(r,{recursive:!0})}x(e,r,a){throw an(a)?new rn(nn.FILE_PERMISSION_DENIED,`Permission denied while attempting to ${e}`,{path:r,code:a.code}):a}},cn=new pe;Et.exports={FileSystemAdapter:pe,fileSystem:cn}});var $=m((Ba,Ct)=>{var G=typeof process<"u"&&process.env?process.env:{},un=12e4,dn=1e4,gn=1440*60*1e3,pn=2,fn=["Ja","Fe","Mr","Ap","My","Jn","Jl","Au","Se","Oc","No","De"],mn=Number(G.EXPLORER_DATES_DECORATION_POOL_SIZE||2048),hn=Number(G.EXPLORER_DATES_FLYWEIGHT_CACHE_SIZE||4096),wn=Number(G.EXPLORER_DATES_WORKSPACE_BALANCED_THRESHOLD||15e3),bn=Number(G.EXPLORER_DATES_WORKSPACE_LARGE_THRESHOLD||25e4),vt=Number(G.EXPLORER_DATES_WORKSPACE_EXTREME_THRESHOLD||4e5),yn=Number(G.EXPLORER_DATES_WORKSPACE_SCAN_MAX_RESULTS||Math.min(vt+1,50001)),En={ADVANCED_CACHE:"explorerDates.advancedCache",ADVANCED_CACHE_METADATA:"explorerDates.advancedCacheMetadata",TEMPLATE_STORE:"explorerDates.templates",WEB_GIT_NOTICE:"explorerDates.webGitNotice"},vn="explorerDatesChunks",Cn="__explorerDatesChunks";Ct.exports={DEFAULT_CACHE_TIMEOUT:un,DEFAULT_MAX_CACHE_SIZE:dn,DEFAULT_PERSISTENT_CACHE_TTL:gn,DEFAULT_DECORATION_POOL_SIZE:mn,DEFAULT_FLYWEIGHT_CACHE_SIZE:hn,MAX_BADGE_LENGTH:pn,MONTH_ABBREVIATIONS:fn,WORKSPACE_SCALE_BALANCED_THRESHOLD:wn,WORKSPACE_SCALE_LARGE_THRESHOLD:bn,WORKSPACE_SCALE_EXTREME_THRESHOLD:vt,WORKSPACE_SCAN_MAX_RESULTS:yn,GLOBAL_STATE_KEYS:En,WEB_CHUNK_GLOBAL_KEY:vn,LEGACY_WEB_CHUNK_GLOBAL_KEY:Cn}});var Pe=m((Ga,Dt)=>{var{MAX_BADGE_LENGTH:St}=$();function Sn(t=0,e="auto"){let r=typeof t=="number"&&!Number.isNaN(t)?t:0;if(e==="bytes")return`~${r}B`;let a=r/1024;if(e==="kb")return`~${a.toFixed(1)}K`;let n=a/1024;return e==="mb"?`~${n.toFixed(1)}M`:r<1024?`~${r}B`:a<1024?`~${Math.round(a)}K`:`~${n.toFixed(1)}M`}function Dn(t){if(t)return t.length>St?t.substring(0,St):t}Dt.exports={formatFileSize:Sn,trimBadge:Dn}});var _t=m((ja,Ft)=>{var kt=[".git","node_modules","dist","build","out",".vite",".vscode-test","test-results","playwright-report","coverage"],Tt=["24h","7d","30d","90d","all"];function k(t=""){return String(t||"").replace(/\\/g,"/").replace(/\/+/g,"/").replace(/^\.\//,"")}function At(t){return t==="full"||t==="all"?"all":Tt.includes(t)?t:"all"}function xt(t,e=Date.now()){let r=At(t);if(r==="all")return null;let a=r==="24h"?24:Number.parseInt(r,10)*24;return e-a*60*60*1e3}function A(t){if(t instanceof Date)return Number.isFinite(t.getTime())?t:null;if(typeof t=="number"&&Number.isFinite(t)){let e=new Date(t<1e12?t*1e3:t);return Number.isFinite(e.getTime())?e:null}if(typeof t=="string"&&t.trim()){let e=new Date(t);return Number.isFinite(e.getTime())?e:null}return null}function kn(t={}){let e=Number.isFinite(Number(t.size))&&Number(t.size)>=0?Number(t.size):null,r=A(t.mtime??t.mtimeMs),a=A(t.birthtime??t.ctime??t.ctimeMs);return{size:e,modified:r,created:a}}function Tn(t){let r=k(t).replace(/^\*\*\//,"").replace(/\/\*\*$/,"").replace(/[.+^${}()|[\]\\]/g,"\\$&").replace(/\*\*/g,".*").replace(/\*/g,"[^/]*").replace(/\?/g,"[^/]");try{return new RegExp(`(^|/)${r}($|/)`,"i")}catch{return null}}function An(t={}){let e=new Set([...kt,...t.excludedSegments||[]].map(a=>k(a).replace(/^\/+|\/+$/g,"").toLowerCase()).filter(Boolean)),r=(t.excludedPatterns||[]).map(Tn).filter(Boolean);return{excludedSegments:[...e],isExcluded(a=""){let n=k(a);return n.split("/").filter(Boolean).some(s=>e.has(s.toLowerCase()))?!0:r.some(s=>s.test(n))},shouldDescend(a=""){return!this.isExcluded(a,!0)}}}function xn(t){let e=A(t==null?void 0:t.timestamp);return e?`${e.toISOString()}|${t.action||"modified"}|${t.source||"unknown"}`:null}function Rn(t,e,r){let a=A(t),n=xt(e,r);return!!(a&&(n===null||a.getTime()>=n))}function Rt(t){return[...t].sort((e,r)=>{var o,s;let a=((o=A(e.lastActivity||e.modified))==null?void 0:o.getTime())||0;return(((s=A(r.lastActivity||r.modified))==null?void 0:s.getTime())||0)-a||k(e.path).localeCompare(k(r.path))})}function Fn(t){let e={filesystem:0,user:0,watcher:0,git:0,unavailable:0},r={},a={};for(let l of t){r[l.type||"unknown"]=(r[l.type||"unknown"]||0)+1;for(let c of l.evidence||[]){e[c.source]=(e[c.source]||0)+1;let u=A(c.timestamp);u&&(a[u.toISOString().slice(0,10)]=(a[u.toISOString().slice(0,10)]||0)+1)}l.activityUnavailable&&e.unavailable++}let n=Rt(t),o=[...t].filter(l=>Number.isFinite(l.activityCount)&&l.activityCount>0).sort((l,c)=>c.activityCount-l.activityCount||k(l.path).localeCompare(k(c.path))),s=[...t].sort((l,c)=>(c.size||0)-(l.size||0)||k(l.path).localeCompare(k(c.path))),i=[...t].filter(l=>A(l.modified)).sort((l,c)=>A(l.modified).getTime()-A(c.modified).getTime()||k(l.path).localeCompare(k(c.path)));return{totalFiles:t.length,totalSize:t.reduce((l,c)=>l+(c.size||0),0),fileTypes:r,activityByDay:a,mostActiveFiles:o.slice(0,10).map(l=>({path:l.path,activityCount:l.activityCount,lastActivity:l.lastActivity})),recentlyModified:n.slice(0,20).map(l=>({path:l.path,modified:l.modified,size:l.size})),largestFiles:s.slice(0,10).map(l=>({path:l.path,size:l.size,modified:l.modified})),oldestFiles:i.slice(0,10).map(l=>({path:l.path,modified:l.modified,size:l.size})),activitySourceBreakdown:e}}Ft.exports={REPORT_SCHEMA_VERSION:2,DEFAULT_EXCLUDED_SEGMENTS:kt,REPORT_TIME_RANGES:Tt,normalizePath:k,normalizeTimeRange:At,rangeStart:xt,validDate:A,normalizeStat:kn,createInclusionPolicy:An,activityKey:xn,inRange:Rn,sortFiles:Rt,createSummary:Fn}});var We=m((Ya,Pt)=>{"use strict";var Me=Symbol("explorerDates.commandOutcome"),re=Object.freeze({BEHAVIORAL_SUCCESS:"behavioral-success",EXPECTED_CANCELLATION:"expected-cancellation",EXPECTED_EMPTY_RESULT:"expected-empty-result",HANDLED_COMMAND_FAILURE:"handled-command-failure",UNHANDLED_COMMAND_FAILURE:"unhandled-command-failure"});function me(t,e,r,a){return Object.freeze({[Me]:!0,category:t,value:e,error:r,errorContext:a||null})}var _n=t=>me(re.BEHAVIORAL_SUCCESS,t),Pn=t=>me(re.EXPECTED_CANCELLATION,t),Mn=t=>me(re.EXPECTED_EMPTY_RESULT,t),Wn=(t,e)=>me(re.HANDLED_COMMAND_FAILURE,void 0,t,e),In=t=>!!(t&&t[Me]===!0);Pt.exports={COMMAND_OUTCOME:Me,OUTCOME_CATEGORIES:re,commandSuccess:_n,commandCancellation:Pn,commandEmpty:Mn,commandFailure:Wn,isCommandOutcome:In}});var j=m((Xa,Lt)=>{var Wt=typeof process<"u"&&process.env?process.env:{},Mt="[ExplorerDates][WebDiag]",Ie="__explorerDatesWebDiagnostics",he;function Ln(){var t,e;try{let r=require("vscode");return((t=r==null?void 0:r.env)==null?void 0:t.uiKind)===((e=r==null?void 0:r.UIKind)==null?void 0:e.Web)}catch{return Wt.VSCODE_WEB==="true"}}function x(){return he!==void 0||(he=Wt.EXPLORER_DATES_WEB_DIAG==="1"||Ln()),he}function It(){return{enabled:x(),logs:[],logOnce:new Set,commandsRegistered:new Set,commandsInvoked:[],errors:[],chunkLoads:[],provider:{created:!1,registered:!1,hydrated:!1,decorationCalls:0,refreshCalls:0,lastEvent:null}}}var On=It();function R(){return typeof globalThis<"u"?(globalThis[Ie]||(globalThis[Ie]=It()),globalThis[Ie]):On}function Nn(t){try{return JSON.stringify(t)}catch{return String(t)}}function F(t,e,r){if(!x())return;let a=R(),n={ts:new Date().toISOString(),level:t,message:e,meta:r||null};a.logs.push(n),a.logs.length>400&&a.logs.shift();let o=r?`${Mt} ${e} ${Nn(r)}`:`${Mt} ${e}`,s=console[t]||console.info;try{s(o)}catch{}}function $n(t,e,r,a){if(!x())return;let n=R();n.logOnce.has(t)||(n.logOnce.add(t),F(e,r,a))}function qn(t){if(!x())return;R().commandsRegistered.add(t),F("info","Command registered",{commandId:t})}function Un(t){if(!x())return;R().commandsInvoked.push({commandId:t,ts:Date.now()}),F("info","Command invoked",{commandId:t})}function zn(t,e,r,a,n){if(!x())return;let o=a||(e?"behavioral-success":"unhandled-command-failure"),s=r?{name:r.name||"Error",message:r.message||String(r),code:r.code||null}:null;e?F("info","Command completed",{commandId:t,outcomeCategory:o}):(F("error","Command failed",{commandId:t,outcomeCategory:o,error:s,errorContext:n||null}),R().errors.push({commandId:t,outcomeCategory:o,error:s,errorContext:n||null}))}function Hn(t,e,r){if(!x())return;R().chunkLoads.push({chunkName:t,stage:e,ts:Date.now(),error:r?r.message||String(r):null}),F(r?"warn":"info",`Chunk ${e}`,{chunkName:t,error:r==null?void 0:r.message})}function Kn(t,e){if(!x())return;let r=R();r.provider.lastEvent={event:t,ts:Date.now(),meta:e||null},t==="created"&&(r.provider.created=!0),t==="registered"&&(r.provider.registered=!0),t==="hydrated"&&(r.provider.hydrated=!0),F("info",`Provider ${t}`,e)}function Vn(){if(!x())return;let t=R();t.provider.decorationCalls+=1,t.provider.decorationCalls<=3&&F("info","Decoration request observed",{count:t.provider.decorationCalls})}function Bn(){if(!x())return;let t=R();t.provider.refreshCalls+=1}Lt.exports={isWebDiagnosticsEnabled:x,getWebDiagnosticsState:R,diagLog:F,diagLogOnce:$n,recordCommandRegistration:qn,recordCommandInvocation:Un,recordCommandResult:zn,recordChunkEvent:Hn,recordProviderEvent:Kn,recordDecorationCall:Vn,recordRefreshCall:Bn}});var Y=m((Za,$t)=>{var Le=require("vscode"),{getLocalization:Gn}=ee(),jn=Gn();function Ot(){return typeof Le.workspace.isTrusted>"u"?!0:Le.workspace.isTrusted===!0}function Nt(t="operation"){if(!Ot()){let e=jn.getString("operationRequiresTrust",t)||`This operation requires a trusted workspace. Please trust this workspace to use ${t}.`;throw Le.window.showErrorMessage(e),new Error(`Workspace trust required for ${t}`)}}async function Yn(t,e="operation"){try{return Nt(e),await t()}catch{return null}}$t.exports={isWorkspaceTrusted:Ot,requireWorkspaceTrust:Nt,withTrustGuard:Yn}});var qt=m((exports,module)=>{var vscode=require("vscode"),{fileSystem}=fe(),{formatFileSize}=Pe(),{normalizeStat,validDate}=_t(),{commandEmpty,commandFailure,commandSuccess,isCommandOutcome,OUTCOME_CATEGORIES}=We(),{recordCommandRegistration,recordCommandInvocation,recordCommandResult,diagLog}=j(),getFileName,getRelativePath;try{let t=ge();t&&(getFileName=t.getFileName,getRelativePath=t.getRelativePath)}catch{}if(!getFileName){let t=ce();getFileName=getFileName||t.getFileName,getRelativePath=getRelativePath||t.getRelativePath}var env=typeof process<"u"&&process.env?process.env:{},isWeb=env.VSCODE_WEB==="true",childProcess=null;function loadChildProcess(){return!childProcess&&!isWeb&&(childProcess=eval("require")("child_process")),childProcess}function registerCoreCommands({context:t,fileDateProvider:e,logger:r,l10n:a}){let n=[],o=new WeakSet,s=(i,l)=>(recordCommandRegistration(i),vscode.commands.registerCommand(i,async(...c)=>{recordCommandInvocation(i);try{let u=await l(...c),d=isCommandOutcome(u)?u:commandSuccess(u),h=d.category===OUTCOME_CATEGORIES.HANDLED_COMMAND_FAILURE||d.category===OUTCOME_CATEGORIES.UNHANDLED_COMMAND_FAILURE;if(recordCommandResult(i,!h,d.error,d.category,d.errorContext),h){let f=d.error||new Error(`Command failed: ${i}`);throw f&&(typeof f=="object"||typeof f=="function")&&o.add(f),f}return d.value}catch(u){throw o.has(u)||recordCommandResult(i,!1,u,OUTCOME_CATEGORIES.UNHANDLED_COMMAND_FAILURE),u}}));n.push(s("explorerDates.refreshDateDecorations",()=>{try{if(e){e.clearAllCaches(),e.refreshAll();let i=(a==null?void 0:a.getString("refreshSuccess"))||"Date decorations refreshed - all caches cleared";vscode.window.showInformationMessage(i),r.info("Date decorations refreshed manually with cache clear")}}catch(i){r.error("Failed to refresh decorations",i),vscode.window.showErrorMessage(`Failed to refresh decorations: ${i.message}`)}})),n.push(s("explorerDates.previewConfiguration",i=>{try{e&&(e.applyPreviewSettings(i),r.info("Configuration preview applied",i))}catch(l){r.error("Failed to apply configuration preview",l)}})),n.push(s("explorerDates.clearPreview",()=>{try{e&&(e.applyPreviewSettings(null),r.info("Configuration preview cleared"))}catch(i){r.error("Failed to clear configuration preview",i)}})),n.push(s("explorerDates.showMetrics",()=>{try{if(e){let i=e.getMetrics(),l=`Explorer Dates Metrics: +Total Decorations: ${i.totalDecorations} +Cache Size: ${i.cacheSize} +Cache Hits: ${i.cacheHits} +Cache Misses: ${i.cacheMisses} +Cache Hit Rate: ${i.cacheHitRate} +Errors: ${i.errors}`;i.advancedCache&&(l+=` Advanced Cache: -Memory Items: ${s.advancedCache.memoryItems} -Memory Usage: ${(s.advancedCache.memoryUsage/1024/1024).toFixed(2)} MB -Memory Hit Rate: ${s.advancedCache.memoryHitRate} -Disk Hit Rate: ${s.advancedCache.diskHitRate} -Evictions: ${s.advancedCache.evictions}`),s.batchProcessor&&(i+=` +Memory Items: ${i.advancedCache.memoryItems} +Memory Usage: ${(i.advancedCache.memoryUsage/1024/1024).toFixed(2)} MB +Memory Hit Rate: ${i.advancedCache.memoryHitRate} +Disk Hit Rate: ${i.advancedCache.diskHitRate} +Evictions: ${i.advancedCache.evictions}`),i.batchProcessor&&(l+=` Batch Processor: -Queue Length: ${s.batchProcessor.queueLength} -Is Processing: ${s.batchProcessor.isProcessing} -Average Batch Time: ${s.batchProcessor.averageBatchTime.toFixed(2)}ms`),vscode.window.showInformationMessage(i,{modal:!0}),r.info("Metrics displayed",s)}}catch(s){r.error("Failed to show metrics",s),vscode.window.showErrorMessage(`Failed to show metrics: ${s.message}`)}})),n.push(o("explorerDates.openLogs",()=>{try{if(r&&typeof r.show=="function"){r.show();return}diagLog("info","Logger channel unavailable; showing fallback message"),vscode.window.showInformationMessage("Explorer Dates logs are unavailable in this environment.")}catch(s){r.error("Failed to open logs",s),vscode.window.showErrorMessage(`Failed to open logs: ${s.message}`)}})),n.push(o("explorerDates.showCurrentConfig",()=>{try{let s=vscode.workspace.getConfiguration("explorerDates"),i={showDateDecorations:s.get("showDateDecorations",!0),performanceMode:s.get("performanceMode",!1),featureLevel:s.get("featureLevel","auto"),highContrastMode:s.get("highContrastMode"),badgePriority:s.get("badgePriority"),colorScheme:s.get("colorScheme"),accessibilityMode:s.get("accessibilityMode"),dateDecorationFormat:s.get("dateDecorationFormat"),fileSizeFormat:s.get("fileSizeFormat","auto"),showGitInfo:s.get("showGitInfo"),showFileSize:s.get("showFileSize")},l=`Current Explorer Dates Configuration: +Queue Length: ${i.batchProcessor.queueLength} +Is Processing: ${i.batchProcessor.isProcessing} +Average Batch Time: ${i.batchProcessor.averageBatchTime.toFixed(2)}ms`),vscode.window.showInformationMessage(l,{modal:!0}),r.info("Metrics displayed",i)}}catch(i){r.error("Failed to show metrics",i),vscode.window.showErrorMessage(`Failed to show metrics: ${i.message}`)}})),n.push(s("explorerDates.openLogs",()=>{try{if(r&&typeof r.show=="function"){r.show();return}diagLog("info","Logger channel unavailable; showing fallback message"),vscode.window.showInformationMessage("Explorer Dates logs are unavailable in this environment.")}catch(i){r.error("Failed to open logs",i),vscode.window.showErrorMessage(`Failed to open logs: ${i.message}`)}})),n.push(s("explorerDates.showCurrentConfig",()=>{try{let i=vscode.workspace.getConfiguration("explorerDates"),l={showDateDecorations:i.get("showDateDecorations",!0),performanceMode:i.get("performanceMode",!1),featureLevel:i.get("featureLevel","auto"),highContrastMode:i.get("highContrastMode"),badgePriority:i.get("badgePriority"),colorScheme:i.get("colorScheme"),accessibilityMode:i.get("accessibilityMode"),dateDecorationFormat:i.get("dateDecorationFormat"),fileSizeFormat:i.get("fileSizeFormat","auto"),showGitInfo:i.get("showGitInfo"),showFileSize:i.get("showFileSize")},c=`Current Explorer Dates Configuration: -${Object.entries(i).map(([c,u])=>`${c}: ${JSON.stringify(u)}`).join(` -`)}`;vscode.window.showInformationMessage(l,{modal:!0}),r.info("Current configuration displayed",i)}catch(s){r.error("Failed to show configuration",s)}})),n.push(o("explorerDates.resetToDefaults",async()=>{try{let{requireWorkspaceTrust:s}=j();s("reset settings to defaults");let i=vscode.workspace.getConfiguration("explorerDates");await i.update("highContrastMode",!1,vscode.ConfigurationTarget.Global),await i.update("badgePriority","time",vscode.ConfigurationTarget.Global),await i.update("accessibilityMode",!1,vscode.ConfigurationTarget.Global),vscode.window.showInformationMessage("Reset high contrast, badge priority, and accessibility mode to defaults. Changes should take effect immediately."),r.info("Reset problematic settings to defaults"),e&&(e.clearAllCaches(),e.refreshAll())}catch(s){r.error("Failed to reset settings",s),vscode.window.showErrorMessage(`Failed to reset settings: ${s.message}`)}})),n.push(o("explorerDates.toggleDecorations",()=>{try{let s=vscode.workspace.getConfiguration("explorerDates"),i=s.get("showDateDecorations",!0);s.update("showDateDecorations",!i,vscode.ConfigurationTarget.Global);let l=i?(a==null?void 0:a.getString("decorationsDisabled"))||"Date decorations disabled":(a==null?void 0:a.getString("decorationsEnabled"))||"Date decorations enabled";vscode.window.showInformationMessage(l),r.info(`Date decorations toggled to: ${!i}`)}catch(s){r.error("Failed to toggle decorations",s),vscode.window.showErrorMessage(`Failed to toggle decorations: ${s.message}`)}})),n.push(o("explorerDates.copyFileDate",async s=>{try{let i=s;if(!i&&vscode.window.activeTextEditor&&(i=vscode.window.activeTextEditor.document.uri),!i){vscode.window.showWarningMessage("No file selected");return}let l=await fileSystem.stat(i),c=(l.mtime instanceof Date?l.mtime:new Date(l.mtime)).toLocaleString();await vscode.env.clipboard.writeText(c),vscode.window.showInformationMessage(`Copied to clipboard: ${c}`),r.info(`File date copied for: ${i.fsPath||i.path}`)}catch(i){r.error("Failed to copy file date",i),vscode.window.showErrorMessage(`Failed to copy file date: ${i.message}`)}})),n.push(o("explorerDates.showFileDetails",async s=>{var i,l;try{let c=s;if(!c&&vscode.window.activeTextEditor&&(c=vscode.window.activeTextEditor.document.uri),!c){vscode.window.showWarningMessage("No file selected");return}let u=await fileSystem.stat(c),g=normalizeStat(u),m=c.fsPath||c.path||c.toString(),w=getFileName(m),h=g.size===null?"Unavailable":formatFileSize(g.size,"auto"),C=((i=validDate(g.modified))==null?void 0:i.toLocaleString())||"Unavailable",S=((l=validDate(g.created))==null?void 0:l.toLocaleString())||"Unavailable (not provided)",X=`File: ${w} -Size: ${h} -Modified: ${C} -Created: ${S} -Path: ${m}`;vscode.window.showInformationMessage(X,{modal:!0}),r.info(`File details shown for: ${m}`)}catch(c){r.error("Failed to show file details",c),vscode.window.showErrorMessage(`Failed to show file details: ${(c==null?void 0:c.code)==="ENOENT"?"The selected resource no longer exists.":"The selected resource could not be read."}`)}})),n.push(o("explorerDates.toggleFadeOldFiles",()=>{try{let s=vscode.workspace.getConfiguration("explorerDates"),i=s.get("fadeOldFiles",!1);s.update("fadeOldFiles",!i,vscode.ConfigurationTarget.Global);let l=i?"Fade old files disabled":"Fade old files enabled";vscode.window.showInformationMessage(l),r.info(`Fade old files toggled to: ${!i}`)}catch(s){r.error("Failed to toggle fade old files",s),vscode.window.showErrorMessage(`Failed to toggle fade old files: ${s.message}`)}})),n.push(o("explorerDates.showFileHistory",async s=>{try{if(isWeb){vscode.window.showInformationMessage("Git history is unavailable on VS Code for Web.");return}let i=s;if(!i&&vscode.window.activeTextEditor&&(i=vscode.window.activeTextEditor.document.uri),!i){vscode.window.showWarningMessage("No file selected");return}let l=vscode.workspace.getWorkspaceFolder(i);if(!l){vscode.window.showWarningMessage("File is not in a workspace");return}let u=`git log --oneline -10 -- "${getRelativePath(l.uri.fsPath||l.uri.path,i.fsPath||i.path)}"`;loadChildProcess().exec(u,{cwd:l.uri.fsPath,timeout:3e3},(m,w)=>{if(m){m.message.includes("not a git repository")?vscode.window.showWarningMessage("This file is not in a Git repository"):vscode.window.showErrorMessage(`Git error: ${m.message}`);return}if(!w.trim()){vscode.window.showInformationMessage("No Git history found for this file");return}let h=w.trim(),C=getFileName(i.fsPath||i.path);vscode.window.showInformationMessage(`Recent commits for ${C}: +${Object.entries(l).map(([u,d])=>`${u}: ${JSON.stringify(d)}`).join(` +`)}`;vscode.window.showInformationMessage(c,{modal:!0}),r.info("Current configuration displayed",l)}catch(i){r.error("Failed to show configuration",i)}})),n.push(s("explorerDates.resetToDefaults",async()=>{try{let{requireWorkspaceTrust:i}=Y();i("reset settings to defaults");let l=vscode.workspace.getConfiguration("explorerDates");await l.update("highContrastMode",!1,vscode.ConfigurationTarget.Global),await l.update("badgePriority","time",vscode.ConfigurationTarget.Global),await l.update("accessibilityMode",!1,vscode.ConfigurationTarget.Global),vscode.window.showInformationMessage("Reset high contrast, badge priority, and accessibility mode to defaults. Changes should take effect immediately."),r.info("Reset problematic settings to defaults"),e&&(e.clearAllCaches(),e.refreshAll())}catch(i){r.error("Failed to reset settings",i),vscode.window.showErrorMessage(`Failed to reset settings: ${i.message}`)}})),n.push(s("explorerDates.toggleDecorations",()=>{try{let i=vscode.workspace.getConfiguration("explorerDates"),l=i.get("showDateDecorations",!0);i.update("showDateDecorations",!l,vscode.ConfigurationTarget.Global);let c=l?(a==null?void 0:a.getString("decorationsDisabled"))||"Date decorations disabled":(a==null?void 0:a.getString("decorationsEnabled"))||"Date decorations enabled";vscode.window.showInformationMessage(c),r.info(`Date decorations toggled to: ${!l}`)}catch(i){r.error("Failed to toggle decorations",i),vscode.window.showErrorMessage(`Failed to toggle decorations: ${i.message}`)}})),n.push(s("explorerDates.copyFileDate",async i=>{try{let l=i;if(!l&&vscode.window.activeTextEditor&&(l=vscode.window.activeTextEditor.document.uri),!l){vscode.window.showWarningMessage("No file selected");return}let c=await fileSystem.stat(l),u=(c.mtime instanceof Date?c.mtime:new Date(c.mtime)).toLocaleString();await vscode.env.clipboard.writeText(u),vscode.window.showInformationMessage(`Copied to clipboard: ${u}`),r.info(`File date copied for: ${l.fsPath||l.path}`)}catch(l){r.error("Failed to copy file date",l),vscode.window.showErrorMessage(`Failed to copy file date: ${l.message}`)}})),n.push(s("explorerDates.showFileDetails",async i=>{var l,c;try{let u=i;if(!u&&vscode.window.activeTextEditor&&(u=vscode.window.activeTextEditor.document.uri),!u)return vscode.window.showWarningMessage("No file selected"),commandEmpty();let d=await fileSystem.stat(u),h=normalizeStat(d),f=u.fsPath||u.path||u.toString(),w=getFileName(f),S=h.size===null?"Unavailable":formatFileSize(h.size,"auto"),v=((l=validDate(h.modified))==null?void 0:l.toLocaleString())||"Unavailable",Z=((c=validDate(h.created))==null?void 0:c.toLocaleString())||"Unavailable (not provided)",I=`File: ${w} +Size: ${S} +Modified: ${v} +Created: ${Z} +Path: ${f}`;return vscode.window.showInformationMessage(I,{modal:!0}),r.info(`File details shown for: ${f}`),commandSuccess()}catch(u){return r.error("Failed to show file details",u),vscode.window.showErrorMessage(`Failed to show file details: ${(u==null?void 0:u.code)==="ENOENT"?"The selected resource no longer exists.":"The selected resource could not be read."}`),commandFailure(u,{operation:"show-file-details",errorCode:(u==null?void 0:u.code)||null})}})),n.push(s("explorerDates.toggleFadeOldFiles",()=>{try{let i=vscode.workspace.getConfiguration("explorerDates"),l=i.get("fadeOldFiles",!1);i.update("fadeOldFiles",!l,vscode.ConfigurationTarget.Global);let c=l?"Fade old files disabled":"Fade old files enabled";vscode.window.showInformationMessage(c),r.info(`Fade old files toggled to: ${!l}`)}catch(i){r.error("Failed to toggle fade old files",i),vscode.window.showErrorMessage(`Failed to toggle fade old files: ${i.message}`)}})),n.push(s("explorerDates.showFileHistory",async i=>{try{if(isWeb){vscode.window.showInformationMessage("Git history is unavailable on VS Code for Web.");return}let l=i;if(!l&&vscode.window.activeTextEditor&&(l=vscode.window.activeTextEditor.document.uri),!l){vscode.window.showWarningMessage("No file selected");return}let c=vscode.workspace.getWorkspaceFolder(l);if(!c){vscode.window.showWarningMessage("File is not in a workspace");return}let d=`git log --oneline -10 -- "${getRelativePath(c.uri.fsPath||c.uri.path,l.fsPath||l.path)}"`;loadChildProcess().exec(d,{cwd:c.uri.fsPath,timeout:3e3},(f,w)=>{if(f){f.message.includes("not a git repository")?vscode.window.showWarningMessage("This file is not in a Git repository"):vscode.window.showErrorMessage(`Git error: ${f.message}`);return}if(!w.trim()){vscode.window.showInformationMessage("No Git history found for this file");return}let S=w.trim(),v=getFileName(l.fsPath||l.path);vscode.window.showInformationMessage(`Recent commits for ${v}: -${h}`,{modal:!0})}),r.info(`File history requested for: ${i.fsPath||i.path}`)}catch(i){r.error("Failed to show file history",i),vscode.window.showErrorMessage(`Failed to show file history: ${i.message}`)}})),n.push(vscode.commands.registerCommand("explorerDates.compareWithPrevious",async s=>{try{if(isWeb){vscode.window.showInformationMessage("Git comparisons are unavailable on VS Code for Web.");return}let i=s;if(!i&&vscode.window.activeTextEditor&&(i=vscode.window.activeTextEditor.document.uri),!i){vscode.window.showWarningMessage("No file selected");return}if(!vscode.workspace.getWorkspaceFolder(i)){vscode.window.showWarningMessage("File is not in a workspace");return}await vscode.commands.executeCommand("git.openChange",i),r.info(`Git diff opened for: ${i.fsPath||i.path}`)}catch(i){r.error("Failed to compare with previous version",i),vscode.window.showErrorMessage(`Failed to compare with previous version: ${i.message}`)}})),n.forEach(s=>t.subscriptions.push(s))}module.exports={registerCoreCommands}});var Ot=f((za,Lt)=>{var P=require("vscode");function qn({context:t,logger:e,getOnboardingManager:r}){let a=[];a.push(P.commands.registerCommand("explorerDates.showFeatureTour",async()=>{try{let n=await r();if(!n){P.window.showWarningMessage("Onboarding system unavailable.");return}await n.showFeatureTour(),e.info("Feature tour opened")}catch(n){e.error("Failed to show feature tour",n),P.window.showErrorMessage(`Failed to show feature tour: ${n.message}`)}})),a.push(P.commands.registerCommand("explorerDates.showQuickSetup",async()=>{try{let n=await r();if(!n){P.window.showWarningMessage("Onboarding system unavailable.");return}await n.showQuickSetupWizard(),e.info("Quick setup wizard opened")}catch(n){e.error("Failed to show quick setup wizard",n),P.window.showErrorMessage(`Failed to show quick setup wizard: ${n.message}`)}})),a.push(P.commands.registerCommand("explorerDates.showWhatsNew",async()=>{try{let n=await r();if(!n){P.window.showWarningMessage("Onboarding system unavailable.");return}let o=t.extension.packageJSON.version;await n.showWhatsNew(o),e.info("What's new panel opened")}catch(n){e.error("Failed to show what's new",n),P.window.showErrorMessage(`Failed to show what's new: ${n.message}`)}})),a.forEach(n=>t.subscriptions.push(n))}Lt.exports={registerOnboardingCommands:qn}});var re=f((exports,module)=>{var{getLogger}=T(),env=typeof process<"u"&&process.env?process.env:{};function createFallbackVscodeMinimal(){return{workspace:{workspaceFolders:[],getConfiguration:()=>({get:()=>{},async update(){},inspect:()=>({defaultValue:void 0,globalValue:void 0,workspaceValue:void 0,workspaceFolderValue:void 0})})},ConfigurationTarget:{Global:1,Workspace:2,WorkspaceFolder:3}}}function resolveVscodeMinimal(){try{return require("vscode")}catch{return createFallbackVscodeMinimal()}}var MinimalSettingsCoordinator=class{constructor(e={}){this.ae=e.defaultSection||"explorerDates",this.v=new Map,this.z=new Map,this.Ne=Number(env.EXPLORER_DATES_LOCK_WAIT_WARN_MS||1e3),this._logger=getLogger()}oe(e,r){let n=(this.v.get(e)||Promise.resolve()).then(()=>r()),o=n.catch(()=>{});return this.v.set(e,o),n.finally(()=>{this.v.get(e)===o&&this.v.delete(e)}),n}F(e,r){return resolveVscodeMinimal().workspace.getConfiguration(e||void 0,r)}h(e,r){let a=r||this.ae;return a?e.startsWith(`${a}.`)?{section:a,key:e.slice(a.length+1),fullKey:e}:e.includes(".")?{section:void 0,key:e,fullKey:e}:{section:a,key:e,fullKey:`${a}.${e}`}:{section:void 0,key:e,fullKey:e}}async updateSetting(e,r,a={}){return this.oe(this.h(e,a.section).fullKey,async()=>{let n=this.h(e,a.section),o=this.F(n.section,a.resource);try{let s=this.se(a.scope,a.resource);return await o.update(n.key,r,s),{key:n.fullKey,updated:!0}}catch(s){try{this._logger.warn(`Configuration update failed for ${n.fullKey}: ${s&&s.message}`)}catch{}return{key:n.fullKey,updated:!1,error:s}}})}async applySettings(e,r={}){let a=Array.isArray(e)?e:Object.entries(e).map(([s,i])=>({key:s,value:i})),n=[];for(let s of a)try{n.push(await this.updateSetting(s.key,s.value,r))}catch(i){n.push({key:this.h(s.key,r.section).fullKey,updated:!1,error:i})}let o=n.filter(s=>s&&s.error);if(o.length>0){let s=o.map(l=>`${l.key}: ${l.error&&l.error.message?l.error.message:String(l.error)}`),i=new Error(`Failed to apply ${o.length} setting(s): ${s.join("; ")}`);throw i.details=o,i}return n}se(e,r){return e&&e!=="auto"?this.ie(e)||resolveVscodeMinimal().ConfigurationTarget.Workspace:r?resolveVscodeMinimal().ConfigurationTarget.WorkspaceFolder:resolveVscodeMinimal().workspace.workspaceFolders&&resolveVscodeMinimal().workspace.workspaceFolders.length>0?resolveVscodeMinimal().ConfigurationTarget.Workspace:resolveVscodeMinimal().ConfigurationTarget.Global}ie(e){switch(e){case"user":return resolveVscodeMinimal().ConfigurationTarget.Global;case"workspace":return resolveVscodeMinimal().ConfigurationTarget.Workspace;case"workspaceFolder":return resolveVscodeMinimal().ConfigurationTarget.WorkspaceFolder;default:return}}getValue(e,r={}){let{section:a,resource:n}=r||{},o=this.h(e,a);return this.F(o.section,n).get(o.key)}inspect(e,r={}){let{section:a,resource:n}=r||{},o=this.h(e,a);return this.F(o.section,n).inspect(o.key)}async clearSetting(e,r={}){return this.updateSetting(e,void 0,r)}getLockWaitStats(){let e={};for(let[r,a]of this.z.entries())e[r]={...a};return e}resetLockWaitStats(){this.z.clear()}},cachedCoordinator=null;function getSettingsCoordinator(options){if(!cachedCoordinator||options&&options.forceNew){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let t=null;try{t=dynamicRequire("../chunks/settings-coordinator-impl-chunk")}catch{}try{t||(t=dynamicRequire("../chunks/settingsCoordinator-impl-chunk"))}catch{}if(t&&typeof t.createSettingsCoordinatorImpl=="function")return cachedCoordinator=t.createSettingsCoordinatorImpl(options),cachedCoordinator}}catch{}try{let{WEB_CHUNK_GLOBAL_KEY:t,LEGACY_WEB_CHUNK_GLOBAL_KEY:e}=N(),r=typeof globalThis<"u"&&(globalThis[t]||globalThis[e])||null;if(r&&r.settingsCoordinatorImpl&&typeof r.settingsCoordinatorImpl.createSettingsCoordinatorImpl=="function")return cachedCoordinator=r.settingsCoordinatorImpl.createSettingsCoordinatorImpl(options),cachedCoordinator}catch{}cachedCoordinator=new MinimalSettingsCoordinator(options)}return cachedCoordinator}module.exports={getSettingsCoordinator,MinimalSettingsCoordinator}});var We=f((Ha,$t)=>{var v=require("vscode"),{getLogger:zn}=T(),$="explorerDates.",Nt=["performanceMode","featureLevel","smartFileWatching","smartWatcherMaxPatterns","smartWatcherExtensions","enableSmartWatcherFallbacks","enableOnboardingSystem","enableExportReporting","enableAnalysisCommands","enableAdvancedCache","enableWorkspaceTemplates","enableWorkspaceIntelligence","enableExtensionApi","enableIncrementalWorkers","enableProgressiveAnalysis"],Hn=/^\.?explorer-dates.*\.json$/i,Un=new Set([`${$}customColors`,`${$}enableReporting`]),Me=class{constructor(e){this.H=e,this._logger=zn()}async getOrganizationPlan(){let e=v.workspace.getConfiguration("explorerDates"),r=this.R();return this.U(e,r)}async organize(e={}){let r=v.workspace.getConfiguration("explorerDates"),a=this.R(),n=e.plan||await this.U(r,a),o={changed:!1,movedToWorkspace:[],reorderedWorkspace:!1,sortedFiles:[]};return!n.needsWork&&!e.force||(await this.le(r,o,n.keysToMove),await this.ce(r,n.workspaceEntries,o,n.workspaceOutOfOrder),await this.ue(o,n.filesToSort)),o}async U(e,r){let a=this.ge(e),n=this.K(e,r),o=this.pe(n),s=await this.V(),i=await this.B(s);return{keysToMove:a,workspaceEntries:n,workspaceOutOfOrder:o,filesToSort:i,needsWork:a.length>0||o||i.length>0}}ge(e){let r=[];for(let a of Nt){let n=e.inspect(a);if(!n)continue;let o=n.globalValue!==void 0,s=n.workspaceValue!==void 0,i=n.workspaceFolderValue!==void 0;o&&!s&&!i&&r.push(a)}return r}K(e,r){let a=[];for(let n of r){if(this.fe(n))continue;let o=this.me(n),s=e.inspect(o);s&&s.workspaceValue!==void 0&&a.push({fullKey:n,shortKey:o,value:s.workspaceValue})}return a}pe(e){if(!e||e.length===0)return!1;let r=[...e].sort((a,n)=>a.fullKey.localeCompare(n.fullKey));return!e.every((a,n)=>a.fullKey===r[n].fullKey)}async B(e){if(!e||e.length===0)return[];let r=[];for(let a of e)await this.he(a)&&r.push(a);return r}async V(){let e=this.we();if(!e.length||!v.workspace.fs)return[];let r=new Map;for(let a of e){await this.G(a,r);let n=v.Uri.joinPath(a,".vscode");await this.G(n,r)}return Array.from(r.values())}async G(e,r){if(e)try{let a=await v.workspace.fs.readDirectory(e);for(let[n,o]of a){if(o!==v.FileType.File||!this.be(n))continue;let s=v.Uri.joinPath(e,n),i=s.fsPath||s.path;r.has(i)||r.set(i,s)}}catch(a){if((a==null?void 0:a.code)==="FileNotFound"||(a==null?void 0:a.code)==="ENOENT")return;this._logger.warn(`Failed to scan Explorer Dates directory ${e.fsPath||e.path}`,a)}}we(){return(v.workspace.workspaceFolders||[]).map(e=>e==null?void 0:e.uri).filter(Boolean)}be(e=""){return Hn.test(e)}async le(e,r,a){let n=Array.isArray(a)?a:Nt;if(n.length)for(let o of n){let s=e.inspect(o);if(!s)continue;let i=s.globalValue!==void 0,l=s.workspaceValue!==void 0,c=s.workspaceFolderValue!==void 0;i&&!l&&!c&&(await e.update(o,s.globalValue,v.ConfigurationTarget.Workspace),await e.update(o,void 0,v.ConfigurationTarget.Global),r.movedToWorkspace.push(`${$}${o}`),r.changed=!0,this._logger.info(`Moved ${$}${o} from user settings to workspace settings.`))}}async ce(e,r,a,n=!1){let o=Array.isArray(r)&&r.length>0?r:this.K(e,this.R());if(o.length===0)return;let s=[...o].sort((l,c)=>l.fullKey.localeCompare(c.fullKey));if(!(!n&&o.every((l,c)=>l.fullKey===s[c].fullKey))){for(let l of o)await e.update(l.shortKey,void 0,v.ConfigurationTarget.Workspace);for(let l of s)await e.update(l.shortKey,l.value,v.ConfigurationTarget.Workspace);a.reorderedWorkspace=!0,a.changed=!0,this._logger.info("Reordered Explorer Dates workspace settings alphabetically.")}}async ue(e,r){let a=Array.isArray(r)?r:await this.B(await this.V());if(a.length)for(let n of a)await this.ye(n)&&(e.sortedFiles.push(this.C(n)),e.changed=!0)}async ye(e){try{let r=await v.workspace.fs.readFile(e),a=Buffer.from(r).toString("utf8").trim();if(!a)return!1;let n=JSON.parse(a),o=this.S(n),s=JSON.stringify(o,null,2);return await v.workspace.fs.writeFile(e,Buffer.from(`${s} -`,"utf8")),this._logger.info(`Sorted Explorer Dates file: ${this.C(e)}`),!0}catch(r){return(r==null?void 0:r.code)==="FileNotFound"||(r==null?void 0:r.code)==="ENOENT"||this._logger.warn(`Failed to sort Explorer Dates file ${this.C(e)}`,r),!1}}async he(e){try{let r=await v.workspace.fs.readFile(e),a=Buffer.from(r).toString("utf8").trim();if(!a)return!1;let n=JSON.parse(a),o=JSON.stringify(n,null,2),s=JSON.stringify(this.S(n),null,2);return o!==s}catch(r){return(r==null?void 0:r.code)==="FileNotFound"||(r==null?void 0:r.code)==="ENOENT"||this._logger.warn(`Failed to inspect Explorer Dates file ${this.C(e)}`,r),!1}}S(e){return Array.isArray(e)?e.map(r=>this.S(r)):e&&typeof e=="object"?Object.keys(e).sort((r,a)=>r.localeCompare(a)).reduce((r,a)=>(r[a]=this.S(e[a]),r),{}):e}R(){var r,a,n,o,s;let e=((s=(o=(n=(a=(r=this.H)==null?void 0:r.extension)==null?void 0:a.packageJSON)==null?void 0:n.contributes)==null?void 0:o.configuration)==null?void 0:s.properties)||{};return Object.keys(e).filter(i=>i.startsWith($))}me(e){return e.startsWith($)?e.substring($.length):e}fe(e){return Un.has(e)}C(e){return(e==null?void 0:e.fsPath)||(e==null?void 0:e.path)||String(e)}};$t.exports={SettingsOrganizer:Me}});var Kt=f((Ua,Ut)=>{var d=require("vscode"),{getSettingsCoordinator:Kn}=re(),{SettingsOrganizer:Vn}=We(),{getLocalization:Bn}=ee(),{requireWorkspaceTrust:q}=j(),E=Bn(),me=Kn(),qt="explorerDates.resetToDefaults",Ht=Symbol.for("explorerDates.resetToDefaults.registered");function Gn(){return!!globalThis[Ht]}function zt(){globalThis[Ht]=!0}async function jn({context:t,logger:e,getSettingsMigrationManager:r}){let a=[];a.push(d.commands.registerCommand("explorerDates.migrateSettings",async()=>{try{q("settings migration");let o=await r();if(!o){d.window.showWarningMessage(E.getString("migrateChecking"));return}d.window.showInformationMessage(E.getString("migrateChecking"));let s=await o.migrateAllSettings(t),i=await o.autoOrganizeSettingsIfNeeded(t,{trigger:"manual-migrate",silent:!0}),l=[];s.length>0&&l.push(`${s.length} migration${s.length===1?"":"s"}`),i!=null&&i.changed&&l.push("settings reorganized"),l.length===0?d.window.showInformationMessage(E.getString("migrateAllUpToDate")):d.window.showInformationMessage(E.getString("migrateApplied",l.join(" + "))),e.info("Manual settings migration completed",{results:s,organizationSummary:i})}catch(o){e.error("Failed to run settings migration",o),d.window.showErrorMessage(`Failed to migrate settings: ${o.message}`)}})),a.push(d.commands.registerCommand("explorerDates.organizeSettings",async()=>{try{q("settings organization");let s=await new Vn(t).organize(),i=s.movedToWorkspace.length,l=s.sortedFiles.length,c=[s.reorderedWorkspace?"workspace settings reordered":null,i?`${i} setting(s) moved to workspace scope`:null,l?`${l} explorer-dates file(s) sorted`:null].filter(Boolean).join(" \u2022 ")||"No changes were necessary.";d.window.showInformationMessage(E.getString("organizeSettingsResult",c)),e.info("Organize settings command executed",s)}catch(o){e.error("Failed to organize Explorer Dates settings",o),d.window.showErrorMessage(`Failed to organize settings: ${o.message}`)}})),a.push(d.commands.registerCommand("explorerDates.validateConfiguration",async()=>{try{let o=await r();if(!o){d.window.showWarningMessage("Settings validation system unavailable.");return}let s=await o.validateConfiguration();if(s.length===0)d.window.showInformationMessage("\u2705 Configuration is valid - no issues found!");else{let i=`Found ${s.length} configuration issue(s). Would you like to see details?`;await d.window.showWarningMessage(i,"Show Details","Dismiss")==="Show Details"&&await Yn(s)}e.info("Configuration validation completed",{issuesFound:s.length,issues:s})}catch(o){e.error("Failed to validate configuration",o),d.window.showErrorMessage(`Failed to validate configuration: ${o.message}`)}})),a.push(d.commands.registerCommand("explorerDates.cleanLegacySettings",async()=>{try{q("legacy settings cleanup");let o=await r();if(!o){d.window.showWarningMessage(E.getString("migrateChecking"));return}let s=await o.cleanupDeprecatedSettings();s?d.window.showInformationMessage(E.getString("cleanupSuccess")):d.window.showInformationMessage(E.getString("cleanupNoDeprecated")),e.info("Legacy settings cleanup completed",{cleaned:s})}catch(o){e.error("Failed to clean legacy settings",o),d.window.showErrorMessage(`Failed to clean legacy settings: ${o.message}`)}})),a.push(d.commands.registerCommand("explorerDates.showMigrationHistory",async()=>{try{let o=await r();if(!o){d.window.showWarningMessage(E.getString("migrateChecking"));return}let s=o.getMigrationHistory(t);if(s.length===0){d.window.showInformationMessage(E.getString("showMigrationHistoryNoHistory"));return}await Xn(s),e.info("Displayed migration history",{historyLength:s.length})}catch(o){e.error("Failed to show migration history",o),d.window.showErrorMessage(`Failed to show migration history: ${o.message}`)}}));async function n(o={}){try{q("clear telemetry data");let s=o&&o.force===!0,i=null;if(!s&&(i=await d.window.showWarningMessage(E.getString("clearTelemetryPrompt"),{modal:!0},E.getString("clearTelemetryConfirm"),E.getString("clearTelemetryCancel")),i!==E.getString("clearTelemetryConfirm")))return;t!=null&&t.globalState&&typeof t.globalState.update=="function"&&await t.globalState.update("explorerDates.telemetryEvents",[]),d.window.showInformationMessage(E.getString("clearTelemetrySuccess")),e.info("Cleared telemetry events from globalState")}catch(s){e.error("Failed to clear telemetry data",s),d.window.showErrorMessage(`Failed to clear telemetry data: ${s.message}`)}}return a.push(d.commands.registerCommand("explorerDates.clearTelemetryData",n)),a.push(d.commands.registerCommand("explorerDates.clearTelemetryData.force",async()=>{await n({force:!0})})),a.push(d.commands.registerCommand("explorerDates.applyCustomColors",async()=>{try{let o=await d.window.showQuickPick([{label:"Copy to Clipboard",description:"Copy color configuration to clipboard"},{label:"Open Settings",description:"Open VS Code settings to workbench.colorCustomizations"},{label:"Apply Default Colors",description:"Apply default Explorer Dates colors"}],{placeHolder:"How would you like to set up custom colors?",ignoreFocusOut:!0});if(!o)return;let s={"explorerDates.customColor.veryRecent":"#00ff00","explorerDates.customColor.recent":"#ffff00","explorerDates.customColor.old":"#ff0000"};switch(o.label){case"Copy to Clipboard":let i=JSON.stringify({"workbench.colorCustomizations":s},null,2);await d.env.clipboard.writeText(i),d.window.showInformationMessage("Color configuration copied to clipboard!");break;case"Open Settings":await d.commands.executeCommand("workbench.action.openSettings","workbench.colorCustomizations");break;case"Apply Default Colors":q("apply custom colors");let u={...d.workspace.getConfiguration("workbench").get("colorCustomizations",{}),...s};await me.updateSetting("workbench.colorCustomizations",u,{scope:"user",reason:"custom-colors-command"}),await me.updateSetting("colorScheme","custom",{scope:"user",reason:"custom-colors-command"}),d.window.showInformationMessage("\u2705 Custom colors applied successfully!");break}e.info("Custom colors command executed",{action:o.label})}catch(o){e.error("Failed to apply custom colors",o),d.window.showErrorMessage(`Failed to apply custom colors: ${o.message}`)}})),await Zn({context:t,logger:e,subscriptions:a}),a.push(d.commands.registerCommand("explorerDates.exportConfiguration",async()=>{var o,s;try{let i=d.workspace.getConfiguration("explorerDates"),l={},c=t.extension.packageJSON,u=((s=(o=c==null?void 0:c.contributes)==null?void 0:o.configuration)==null?void 0:s.properties)||{};for(let w of Object.keys(u))if(w.startsWith("explorerDates.")){let h=w.replace("explorerDates.",""),C=i.get(h);C!==void 0&&(l[w]=C)}let g=JSON.stringify(l,null,2),m=await d.window.showQuickPick([{label:"Copy to Clipboard",description:"Copy configuration to clipboard"},{label:"Save to File",description:"Save configuration to a JSON file"}],{placeHolder:"How would you like to export the configuration?"});if(!m)return;switch(m.label){case"Copy to Clipboard":await d.env.clipboard.writeText(g),d.window.showInformationMessage("Configuration copied to clipboard!");break;case"Save to File":q("save configuration to file");let w=await d.window.showSaveDialog({defaultUri:d.Uri.file("explorer-dates-config.json"),filters:{JSON:["json"]}});w&&(await d.workspace.fs.writeFile(w,Buffer.from(g,"utf8")),d.window.showInformationMessage(`Configuration saved to ${w.fsPath}`));break}e.info("Configuration exported",{action:m.label,settingsCount:Object.keys(l).length})}catch(i){e.error("Failed to export configuration",i),d.window.showErrorMessage(`Failed to export configuration: ${i.message}`)}})),a}async function Yn(t){let e=d.window.createWebviewPanel("explorerDatesConfigIssues","Explorer Dates - Configuration Issues",d.ViewColumn.One,{enableScripts:!1}),r=t.map(a=>` +${S}`,{modal:!0})}),r.info(`File history requested for: ${l.fsPath||l.path}`)}catch(l){r.error("Failed to show file history",l),vscode.window.showErrorMessage(`Failed to show file history: ${l.message}`)}})),n.push(vscode.commands.registerCommand("explorerDates.compareWithPrevious",async i=>{try{if(isWeb){vscode.window.showInformationMessage("Git comparisons are unavailable on VS Code for Web.");return}let l=i;if(!l&&vscode.window.activeTextEditor&&(l=vscode.window.activeTextEditor.document.uri),!l){vscode.window.showWarningMessage("No file selected");return}if(!vscode.workspace.getWorkspaceFolder(l)){vscode.window.showWarningMessage("File is not in a workspace");return}await vscode.commands.executeCommand("git.openChange",l),r.info(`Git diff opened for: ${l.fsPath||l.path}`)}catch(l){r.error("Failed to compare with previous version",l),vscode.window.showErrorMessage(`Failed to compare with previous version: ${l.message}`)}})),n.forEach(i=>t.subscriptions.push(i))}module.exports={registerCoreCommands}});var zt=m((Ja,Ut)=>{var _=require("vscode");function Xn({context:t,logger:e,getOnboardingManager:r}){let a=[];a.push(_.commands.registerCommand("explorerDates.showFeatureTour",async()=>{try{let n=await r();if(!n){_.window.showWarningMessage("Onboarding system unavailable.");return}await n.showFeatureTour(),e.info("Feature tour opened")}catch(n){e.error("Failed to show feature tour",n),_.window.showErrorMessage(`Failed to show feature tour: ${n.message}`)}})),a.push(_.commands.registerCommand("explorerDates.showQuickSetup",async()=>{try{let n=await r();if(!n){_.window.showWarningMessage("Onboarding system unavailable.");return}await n.showQuickSetupWizard(),e.info("Quick setup wizard opened")}catch(n){e.error("Failed to show quick setup wizard",n),_.window.showErrorMessage(`Failed to show quick setup wizard: ${n.message}`)}})),a.push(_.commands.registerCommand("explorerDates.showWhatsNew",async()=>{try{let n=await r();if(!n){_.window.showWarningMessage("Onboarding system unavailable.");return}let o=t.extension.packageJSON.version;await n.showWhatsNew(o),e.info("What's new panel opened")}catch(n){e.error("Failed to show what's new",n),_.window.showErrorMessage(`Failed to show what's new: ${n.message}`)}})),a.forEach(n=>t.subscriptions.push(n))}Ut.exports={registerOnboardingCommands:Xn}});var ne=m((exports,module)=>{var{getLogger}=T(),env=typeof process<"u"&&process.env?process.env:{};function createFallbackVscodeMinimal(){return{workspace:{workspaceFolders:[],getConfiguration:()=>({get:()=>{},async update(){},inspect:()=>({defaultValue:void 0,globalValue:void 0,workspaceValue:void 0,workspaceFolderValue:void 0})})},ConfigurationTarget:{Global:1,Workspace:2,WorkspaceFolder:3}}}function resolveVscodeMinimal(){try{return require("vscode")}catch{return createFallbackVscodeMinimal()}}var MinimalSettingsCoordinator=class{constructor(e={}){this.ae=e.defaultSection||"explorerDates",this.v=new Map,this.U=new Map,this.Ne=Number(env.EXPLORER_DATES_LOCK_WAIT_WARN_MS||1e3),this._logger=getLogger()}oe(e,r){let n=(this.v.get(e)||Promise.resolve()).then(()=>r()),o=n.catch(()=>{});return this.v.set(e,o),n.finally(()=>{this.v.get(e)===o&&this.v.delete(e)}),n}R(e,r){return resolveVscodeMinimal().workspace.getConfiguration(e||void 0,r)}h(e,r){let a=r||this.ae;return a?e.startsWith(`${a}.`)?{section:a,key:e.slice(a.length+1),fullKey:e}:e.includes(".")?{section:void 0,key:e,fullKey:e}:{section:a,key:e,fullKey:`${a}.${e}`}:{section:void 0,key:e,fullKey:e}}async updateSetting(e,r,a={}){return this.oe(this.h(e,a.section).fullKey,async()=>{let n=this.h(e,a.section),o=this.R(n.section,a.resource);try{let s=this.se(a.scope,a.resource);return await o.update(n.key,r,s),{key:n.fullKey,updated:!0}}catch(s){try{this._logger.warn(`Configuration update failed for ${n.fullKey}: ${s&&s.message}`)}catch{}return{key:n.fullKey,updated:!1,error:s}}})}async applySettings(e,r={}){let a=Array.isArray(e)?e:Object.entries(e).map(([s,i])=>({key:s,value:i})),n=[];for(let s of a)try{n.push(await this.updateSetting(s.key,s.value,r))}catch(i){n.push({key:this.h(s.key,r.section).fullKey,updated:!1,error:i})}let o=n.filter(s=>s&&s.error);if(o.length>0){let s=o.map(l=>`${l.key}: ${l.error&&l.error.message?l.error.message:String(l.error)}`),i=new Error(`Failed to apply ${o.length} setting(s): ${s.join("; ")}`);throw i.details=o,i}return n}se(e,r){return e&&e!=="auto"?this.ie(e)||resolveVscodeMinimal().ConfigurationTarget.Workspace:r?resolveVscodeMinimal().ConfigurationTarget.WorkspaceFolder:resolveVscodeMinimal().workspace.workspaceFolders&&resolveVscodeMinimal().workspace.workspaceFolders.length>0?resolveVscodeMinimal().ConfigurationTarget.Workspace:resolveVscodeMinimal().ConfigurationTarget.Global}ie(e){switch(e){case"user":return resolveVscodeMinimal().ConfigurationTarget.Global;case"workspace":return resolveVscodeMinimal().ConfigurationTarget.Workspace;case"workspaceFolder":return resolveVscodeMinimal().ConfigurationTarget.WorkspaceFolder;default:return}}getValue(e,r={}){let{section:a,resource:n}=r||{},o=this.h(e,a);return this.R(o.section,n).get(o.key)}inspect(e,r={}){let{section:a,resource:n}=r||{},o=this.h(e,a);return this.R(o.section,n).inspect(o.key)}async clearSetting(e,r={}){return this.updateSetting(e,void 0,r)}getLockWaitStats(){let e={};for(let[r,a]of this.U.entries())e[r]={...a};return e}resetLockWaitStats(){this.U.clear()}},cachedCoordinator=null;function getSettingsCoordinator(options){if(!cachedCoordinator||options&&options.forceNew){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let t=null;try{t=dynamicRequire("../chunks/settings-coordinator-impl-chunk")}catch{}try{t||(t=dynamicRequire("../chunks/settingsCoordinator-impl-chunk"))}catch{}if(t&&typeof t.createSettingsCoordinatorImpl=="function")return cachedCoordinator=t.createSettingsCoordinatorImpl(options),cachedCoordinator}}catch{}try{let{WEB_CHUNK_GLOBAL_KEY:t,LEGACY_WEB_CHUNK_GLOBAL_KEY:e}=$(),r=typeof globalThis<"u"&&(globalThis[t]||globalThis[e])||null;if(r&&r.settingsCoordinatorImpl&&typeof r.settingsCoordinatorImpl.createSettingsCoordinatorImpl=="function")return cachedCoordinator=r.settingsCoordinatorImpl.createSettingsCoordinatorImpl(options),cachedCoordinator}catch{}cachedCoordinator=new MinimalSettingsCoordinator(options)}return cachedCoordinator}module.exports={getSettingsCoordinator,MinimalSettingsCoordinator}});var Ne=m((Qa,Kt)=>{var C=require("vscode"),{getLogger:Zn}=T(),q="explorerDates.",Ht=["performanceMode","featureLevel","smartFileWatching","smartWatcherMaxPatterns","smartWatcherExtensions","enableSmartWatcherFallbacks","enableOnboardingSystem","enableExportReporting","enableAnalysisCommands","enableAdvancedCache","enableWorkspaceTemplates","enableWorkspaceIntelligence","enableExtensionApi","enableIncrementalWorkers","enableProgressiveAnalysis"],Jn=/^\.?explorer-dates.*\.json$/i,Qn=new Set([`${q}customColors`,`${q}enableReporting`]),Oe=class{constructor(e){this.z=e,this._logger=Zn()}async getOrganizationPlan(){let e=C.workspace.getConfiguration("explorerDates"),r=this.F();return this.H(e,r)}async organize(e={}){let r=C.workspace.getConfiguration("explorerDates"),a=this.F(),n=e.plan||await this.H(r,a),o={changed:!1,movedToWorkspace:[],reorderedWorkspace:!1,sortedFiles:[]};return!n.needsWork&&!e.force||(await this.le(r,o,n.keysToMove),await this.ce(r,n.workspaceEntries,o,n.workspaceOutOfOrder),await this.ue(o,n.filesToSort)),o}async H(e,r){let a=this.ge(e),n=this.K(e,r),o=this.pe(n),s=await this.V(),i=await this.B(s);return{keysToMove:a,workspaceEntries:n,workspaceOutOfOrder:o,filesToSort:i,needsWork:a.length>0||o||i.length>0}}ge(e){let r=[];for(let a of Ht){let n=e.inspect(a);if(!n)continue;let o=n.globalValue!==void 0,s=n.workspaceValue!==void 0,i=n.workspaceFolderValue!==void 0;o&&!s&&!i&&r.push(a)}return r}K(e,r){let a=[];for(let n of r){if(this.fe(n))continue;let o=this.me(n),s=e.inspect(o);s&&s.workspaceValue!==void 0&&a.push({fullKey:n,shortKey:o,value:s.workspaceValue})}return a}pe(e){if(!e||e.length===0)return!1;let r=[...e].sort((a,n)=>a.fullKey.localeCompare(n.fullKey));return!e.every((a,n)=>a.fullKey===r[n].fullKey)}async B(e){if(!e||e.length===0)return[];let r=[];for(let a of e)await this.he(a)&&r.push(a);return r}async V(){let e=this.we();if(!e.length||!C.workspace.fs)return[];let r=new Map;for(let a of e){await this.G(a,r);let n=C.Uri.joinPath(a,".vscode");await this.G(n,r)}return Array.from(r.values())}async G(e,r){if(e)try{let a=await C.workspace.fs.readDirectory(e);for(let[n,o]of a){if(o!==C.FileType.File||!this.be(n))continue;let s=C.Uri.joinPath(e,n),i=s.fsPath||s.path;r.has(i)||r.set(i,s)}}catch(a){if((a==null?void 0:a.code)==="FileNotFound"||(a==null?void 0:a.code)==="ENOENT")return;this._logger.warn(`Failed to scan Explorer Dates directory ${e.fsPath||e.path}`,a)}}we(){return(C.workspace.workspaceFolders||[]).map(e=>e==null?void 0:e.uri).filter(Boolean)}be(e=""){return Jn.test(e)}async le(e,r,a){let n=Array.isArray(a)?a:Ht;if(n.length)for(let o of n){let s=e.inspect(o);if(!s)continue;let i=s.globalValue!==void 0,l=s.workspaceValue!==void 0,c=s.workspaceFolderValue!==void 0;i&&!l&&!c&&(await e.update(o,s.globalValue,C.ConfigurationTarget.Workspace),await e.update(o,void 0,C.ConfigurationTarget.Global),r.movedToWorkspace.push(`${q}${o}`),r.changed=!0,this._logger.info(`Moved ${q}${o} from user settings to workspace settings.`))}}async ce(e,r,a,n=!1){let o=Array.isArray(r)&&r.length>0?r:this.K(e,this.F());if(o.length===0)return;let s=[...o].sort((l,c)=>l.fullKey.localeCompare(c.fullKey));if(!(!n&&o.every((l,c)=>l.fullKey===s[c].fullKey))){for(let l of o)await e.update(l.shortKey,void 0,C.ConfigurationTarget.Workspace);for(let l of s)await e.update(l.shortKey,l.value,C.ConfigurationTarget.Workspace);a.reorderedWorkspace=!0,a.changed=!0,this._logger.info("Reordered Explorer Dates workspace settings alphabetically.")}}async ue(e,r){let a=Array.isArray(r)?r:await this.B(await this.V());if(a.length)for(let n of a)await this.ye(n)&&(e.sortedFiles.push(this.C(n)),e.changed=!0)}async ye(e){try{let r=await C.workspace.fs.readFile(e),a=Buffer.from(r).toString("utf8").trim();if(!a)return!1;let n=JSON.parse(a),o=this.S(n),s=JSON.stringify(o,null,2);return await C.workspace.fs.writeFile(e,Buffer.from(`${s} +`,"utf8")),this._logger.info(`Sorted Explorer Dates file: ${this.C(e)}`),!0}catch(r){return(r==null?void 0:r.code)==="FileNotFound"||(r==null?void 0:r.code)==="ENOENT"||this._logger.warn(`Failed to sort Explorer Dates file ${this.C(e)}`,r),!1}}async he(e){try{let r=await C.workspace.fs.readFile(e),a=Buffer.from(r).toString("utf8").trim();if(!a)return!1;let n=JSON.parse(a),o=JSON.stringify(n,null,2),s=JSON.stringify(this.S(n),null,2);return o!==s}catch(r){return(r==null?void 0:r.code)==="FileNotFound"||(r==null?void 0:r.code)==="ENOENT"||this._logger.warn(`Failed to inspect Explorer Dates file ${this.C(e)}`,r),!1}}S(e){return Array.isArray(e)?e.map(r=>this.S(r)):e&&typeof e=="object"?Object.keys(e).sort((r,a)=>r.localeCompare(a)).reduce((r,a)=>(r[a]=this.S(e[a]),r),{}):e}F(){var r,a,n,o,s;let e=((s=(o=(n=(a=(r=this.z)==null?void 0:r.extension)==null?void 0:a.packageJSON)==null?void 0:n.contributes)==null?void 0:o.configuration)==null?void 0:s.properties)||{};return Object.keys(e).filter(i=>i.startsWith(q))}me(e){return e.startsWith(q)?e.substring(q.length):e}fe(e){return Qn.has(e)}C(e){return(e==null?void 0:e.fsPath)||(e==null?void 0:e.path)||String(e)}};Kt.exports={SettingsOrganizer:Oe}});var Yt=m((eo,jt)=>{var g=require("vscode"),{getSettingsCoordinator:ea}=ne(),{SettingsOrganizer:ta}=Ne(),{getLocalization:ra}=ee(),{requireWorkspaceTrust:U}=Y(),E=ra(),we=ea(),Vt="explorerDates.resetToDefaults",Gt=Symbol.for("explorerDates.resetToDefaults.registered");function na(){return!!globalThis[Gt]}function Bt(){globalThis[Gt]=!0}async function aa({context:t,logger:e,getSettingsMigrationManager:r}){let a=[];a.push(g.commands.registerCommand("explorerDates.migrateSettings",async()=>{try{U("settings migration");let o=await r();if(!o){g.window.showWarningMessage(E.getString("migrateChecking"));return}g.window.showInformationMessage(E.getString("migrateChecking"));let s=await o.migrateAllSettings(t),i=await o.autoOrganizeSettingsIfNeeded(t,{trigger:"manual-migrate",silent:!0}),l=[];s.length>0&&l.push(`${s.length} migration${s.length===1?"":"s"}`),i!=null&&i.changed&&l.push("settings reorganized"),l.length===0?g.window.showInformationMessage(E.getString("migrateAllUpToDate")):g.window.showInformationMessage(E.getString("migrateApplied",l.join(" + "))),e.info("Manual settings migration completed",{results:s,organizationSummary:i})}catch(o){e.error("Failed to run settings migration",o),g.window.showErrorMessage(`Failed to migrate settings: ${o.message}`)}})),a.push(g.commands.registerCommand("explorerDates.organizeSettings",async()=>{try{U("settings organization");let s=await new ta(t).organize(),i=s.movedToWorkspace.length,l=s.sortedFiles.length,c=[s.reorderedWorkspace?"workspace settings reordered":null,i?`${i} setting(s) moved to workspace scope`:null,l?`${l} explorer-dates file(s) sorted`:null].filter(Boolean).join(" \u2022 ")||"No changes were necessary.";g.window.showInformationMessage(E.getString("organizeSettingsResult",c)),e.info("Organize settings command executed",s)}catch(o){e.error("Failed to organize Explorer Dates settings",o),g.window.showErrorMessage(`Failed to organize settings: ${o.message}`)}})),a.push(g.commands.registerCommand("explorerDates.validateConfiguration",async()=>{try{let o=await r();if(!o){g.window.showWarningMessage("Settings validation system unavailable.");return}let s=await o.validateConfiguration();if(s.length===0)g.window.showInformationMessage("\u2705 Configuration is valid - no issues found!");else{let i=`Found ${s.length} configuration issue(s). Would you like to see details?`;await g.window.showWarningMessage(i,"Show Details","Dismiss")==="Show Details"&&await oa(s)}e.info("Configuration validation completed",{issuesFound:s.length,issues:s})}catch(o){e.error("Failed to validate configuration",o),g.window.showErrorMessage(`Failed to validate configuration: ${o.message}`)}})),a.push(g.commands.registerCommand("explorerDates.cleanLegacySettings",async()=>{try{U("legacy settings cleanup");let o=await r();if(!o){g.window.showWarningMessage(E.getString("migrateChecking"));return}let s=await o.cleanupDeprecatedSettings();s?g.window.showInformationMessage(E.getString("cleanupSuccess")):g.window.showInformationMessage(E.getString("cleanupNoDeprecated")),e.info("Legacy settings cleanup completed",{cleaned:s})}catch(o){e.error("Failed to clean legacy settings",o),g.window.showErrorMessage(`Failed to clean legacy settings: ${o.message}`)}})),a.push(g.commands.registerCommand("explorerDates.showMigrationHistory",async()=>{try{let o=await r();if(!o){g.window.showWarningMessage(E.getString("migrateChecking"));return}let s=o.getMigrationHistory(t);if(s.length===0){g.window.showInformationMessage(E.getString("showMigrationHistoryNoHistory"));return}await sa(s),e.info("Displayed migration history",{historyLength:s.length})}catch(o){e.error("Failed to show migration history",o),g.window.showErrorMessage(`Failed to show migration history: ${o.message}`)}}));async function n(o={}){try{U("clear telemetry data");let s=o&&o.force===!0,i=null;if(!s&&(i=await g.window.showWarningMessage(E.getString("clearTelemetryPrompt"),{modal:!0},E.getString("clearTelemetryConfirm"),E.getString("clearTelemetryCancel")),i!==E.getString("clearTelemetryConfirm")))return;t!=null&&t.globalState&&typeof t.globalState.update=="function"&&await t.globalState.update("explorerDates.telemetryEvents",[]),g.window.showInformationMessage(E.getString("clearTelemetrySuccess")),e.info("Cleared telemetry events from globalState")}catch(s){e.error("Failed to clear telemetry data",s),g.window.showErrorMessage(`Failed to clear telemetry data: ${s.message}`)}}return a.push(g.commands.registerCommand("explorerDates.clearTelemetryData",n)),a.push(g.commands.registerCommand("explorerDates.clearTelemetryData.force",async()=>{await n({force:!0})})),a.push(g.commands.registerCommand("explorerDates.applyCustomColors",async()=>{try{let o=await g.window.showQuickPick([{label:"Copy to Clipboard",description:"Copy color configuration to clipboard"},{label:"Open Settings",description:"Open VS Code settings to workbench.colorCustomizations"},{label:"Apply Default Colors",description:"Apply default Explorer Dates colors"}],{placeHolder:"How would you like to set up custom colors?",ignoreFocusOut:!0});if(!o)return;let s={"explorerDates.customColor.veryRecent":"#00ff00","explorerDates.customColor.recent":"#ffff00","explorerDates.customColor.old":"#ff0000"};switch(o.label){case"Copy to Clipboard":let i=JSON.stringify({"workbench.colorCustomizations":s},null,2);await g.env.clipboard.writeText(i),g.window.showInformationMessage("Color configuration copied to clipboard!");break;case"Open Settings":await g.commands.executeCommand("workbench.action.openSettings","workbench.colorCustomizations");break;case"Apply Default Colors":U("apply custom colors");let u={...g.workspace.getConfiguration("workbench").get("colorCustomizations",{}),...s};await we.updateSetting("workbench.colorCustomizations",u,{scope:"user",reason:"custom-colors-command"}),await we.updateSetting("colorScheme","custom",{scope:"user",reason:"custom-colors-command"}),g.window.showInformationMessage("\u2705 Custom colors applied successfully!");break}e.info("Custom colors command executed",{action:o.label})}catch(o){e.error("Failed to apply custom colors",o),g.window.showErrorMessage(`Failed to apply custom colors: ${o.message}`)}})),await ia({context:t,logger:e,subscriptions:a}),a.push(g.commands.registerCommand("explorerDates.exportConfiguration",async()=>{var o,s;try{let i=g.workspace.getConfiguration("explorerDates"),l={},c=t.extension.packageJSON,u=((s=(o=c==null?void 0:c.contributes)==null?void 0:o.configuration)==null?void 0:s.properties)||{};for(let f of Object.keys(u))if(f.startsWith("explorerDates.")){let w=f.replace("explorerDates.",""),S=i.get(w);S!==void 0&&(l[f]=S)}let d=JSON.stringify(l,null,2),h=await g.window.showQuickPick([{label:"Copy to Clipboard",description:"Copy configuration to clipboard"},{label:"Save to File",description:"Save configuration to a JSON file"}],{placeHolder:"How would you like to export the configuration?"});if(!h)return;switch(h.label){case"Copy to Clipboard":await g.env.clipboard.writeText(d),g.window.showInformationMessage("Configuration copied to clipboard!");break;case"Save to File":U("save configuration to file");let f=await g.window.showSaveDialog({defaultUri:g.Uri.file("explorer-dates-config.json"),filters:{JSON:["json"]}});f&&(await g.workspace.fs.writeFile(f,Buffer.from(d,"utf8")),g.window.showInformationMessage(`Configuration saved to ${f.fsPath}`));break}e.info("Configuration exported",{action:h.label,settingsCount:Object.keys(l).length})}catch(i){e.error("Failed to export configuration",i),g.window.showErrorMessage(`Failed to export configuration: ${i.message}`)}})),a}async function oa(t){let e=g.window.createWebviewPanel("explorerDatesConfigIssues","Explorer Dates - Configuration Issues",g.ViewColumn.One,{enableScripts:!1}),r=t.map(a=>`

    ${a.setting}

    Current value: ${JSON.stringify(a.value)}

    @@ -53,7 +53,7 @@ ${h}`,{modal:!0})}),r.info(`File history requested for: ${i.fsPath||i.path}`)}ca

    To fix these issues: Open VS Code Settings and update the highlighted settings with valid values.

    - `}async function Xn(t){let e=d.window.createWebviewPanel("explorerDatesMigrationHistory","Explorer Dates - Migration History",d.ViewColumn.One,{enableScripts:!1}),r=t.slice().reverse().map((a,n)=>` + `}async function sa(t){let e=g.window.createWebviewPanel("explorerDatesMigrationHistory","Explorer Dates - Migration History",g.ViewColumn.One,{enableScripts:!1}),r=t.slice().reverse().map((a,n)=>`

    Migration #${t.length-n}

    Date: ${new Date(a.timestamp).toLocaleString()}

    @@ -82,11 +82,11 @@ ${h}`,{modal:!0})}),r.info(`File history requested for: ${i.fsPath||i.path}`)}ca ${r} - `}async function Zn({context:t,logger:e,subscriptions:r}){var n,o,s;if(Gn()){(n=e==null?void 0:e.warn)==null||n.call(e,"Duplicate explorerDates.resetToDefaults registration skipped");return}let a;try{a=await d.commands.getCommands(!0)}catch(i){(o=e==null?void 0:e.warn)==null||o.call(e,"Unable to inspect VS Code command registry; proceeding with reset command registration",i)}if(Array.isArray(a)&&a.includes(qt)){zt(),(s=e==null?void 0:e.warn)==null||s.call(e,"Detected existing explorerDates.resetToDefaults handler; skipping duplicate registration");return}zt(),r.push(d.commands.registerCommand(qt,async()=>{var i,l;try{if(await d.window.showWarningMessage(E.getString("resetConfirmation"),{modal:!0},E.getString("resetConfirm"),E.getString("resetCancel"))!==E.getString("resetConfirm"))return;q("reset settings to defaults");let u=t.extension.packageJSON,g=((l=(i=u==null?void 0:u.contributes)==null?void 0:i.configuration)==null?void 0:l.properties)||{},m=0;for(let w of Object.keys(g))if(w.startsWith("explorerDates.")){let h=w.replace("explorerDates.","");try{await me.clearSetting(h,{scope:"user",reason:"reset-to-defaults"}),await me.clearSetting(h,{scope:"workspace",reason:"reset-to-defaults"}),m++}catch(C){e.warn(`Failed to reset setting ${h}`,C)}}d.window.showInformationMessage(E.getString("resetSuccess",m)),e.info("Settings reset to defaults",{resetCount:m})}catch(c){e.error("Failed to reset settings to defaults",c),d.window.showErrorMessage(`Failed to reset settings: ${c.message}`)}}))}Ut.exports={registerMigrationCommands:jn}});var Bt=f((exports,module)=>{var vscode=require("vscode"),{isWebEnvironment}=te(),fs=null,path=null,Vt;try{let isWeb=isWebEnvironment()||typeof process<"u"&&!1;!isWeb&&typeof process<"u"&&((Vt=process.versions)!=null&&Vt.node)&&(fs=eval("require")("fs"),path=eval("require")("path"))}catch{fs=null,path=null}var textDecoder=typeof globalThis.TextDecoder=="function"?new globalThis.TextDecoder("utf-8"):new(require("util")).TextDecoder("utf-8"),TemplateStore=class{constructor(){this.P=new Map,this._=null}initialize(e){this._=(e==null?void 0:e.extensionUri)??null}async getTemplate(e){if(this.P.has(e))return this.P.get(e);let r=await this.Ee(e);return this.P.set(e,r),r}async Ee(e){let r=`${e}.html`;if(this._){let a=vscode.Uri.joinPath(this._,"assets","templates",r),n=await vscode.workspace.fs.readFile(a);return textDecoder.decode(n)}if(fs&&path){let a=path.resolve(__dirname,"..","..","assets","templates",r);return await fs.promises.readFile(a,"utf8")}throw new Error(`TemplateStore: Unable to load template "${e}" (missing extension context)`)}},templateStore=new TemplateStore;module.exports={templateStore,initializeTemplateStore:t=>templateStore.initialize(t)}});var Yt=f((Ka,jt)=>{var W=require("vscode"),{getLogger:Jn}=T(),{getSettingsCoordinator:Qn}=re(),{SettingsOrganizer:ea}=We(),{getLocalization:ta}=ee(),k=ta(),Gt=typeof process<"u"&&process.env?process.env:{},Ie=class{constructor(){this._logger=Jn(),this.n=new Set,this.e=Qn(),this.M=null,this.j=null}async migrateAllSettings(e){var n,o;let r=[()=>this.migrateReportingSettings(),()=>this.migrateCustomColorSettings(),()=>this.validateFeatureFlags(),()=>this.cleanupDeprecatedSettings(e),()=>this.trackMigrationMetrics(e)],a=[];for(let s of r)try{let i=await s();i&&a.push(i)}catch(i){this._logger.error("Settings migration failed:",i)}if(a.length>0){this._logger.info("Settings migration completed",{migratedSettings:a});try{let s=(n=e==null?void 0:e.globalState)!=null&&n.get?e.globalState.get("explorerDates.lastMigrationNotificationShown"):null,i=Date.now(),l=1440*60*1e3;!s||i-new Date(s).getTime()>l?(await this.ve(a,e),(o=e==null?void 0:e.globalState)!=null&&o.update&&await e.globalState.update("explorerDates.lastMigrationNotificationShown",new Date().toISOString())):this._logger.info("Skipping migration notification - recently shown")}catch(s){this._logger.debug("Failed to persist migration notification timestamp",(s==null?void 0:s.message)||s)}}return a}async migrateReportingSettings(){let e=this.e.inspect("enableReporting"),r=this.e.inspect("enableExportReporting"),a=!1;if((e==null?void 0:e.globalValue)!==void 0)try{(r==null?void 0:r.globalValue)===void 0&&(await this.e.updateSetting("enableExportReporting",e.globalValue,{scope:"user",reason:"migrate-enableReporting-global"}),this.n.add("enableReporting\u2192enableExportReporting (Global)"),this._logger.info("Migrated global enableReporting to enableExportReporting",{oldValue:e.globalValue})),await this.e.clearSetting("enableReporting",{scope:"user",reason:"cleanup-migrated-enableReporting-global"}),a=!0}catch(n){this._logger.error("Failed to migrate global enableReporting setting",n)}if((e==null?void 0:e.workspaceValue)!==void 0)try{(r==null?void 0:r.workspaceValue)===void 0&&(await this.e.updateSetting("enableExportReporting",e.workspaceValue,{scope:"workspace",reason:"migrate-enableReporting-workspace"}),this.n.add("enableReporting\u2192enableExportReporting (Workspace)"),this._logger.info("Migrated workspace enableReporting to enableExportReporting",{oldValue:e.workspaceValue})),await this.e.clearSetting("enableReporting",{scope:"workspace",reason:"cleanup-migrated-enableReporting-workspace"}),a=!0}catch(n){this._logger.error("Failed to migrate workspace enableReporting setting",n)}if((e==null?void 0:e.workspaceFolderValue)!==void 0)try{(r==null?void 0:r.workspaceFolderValue)===void 0&&(await this.e.updateSetting("enableExportReporting",e.workspaceFolderValue,{scope:"workspaceFolder",reason:"migrate-enableReporting-folder"}),this.n.add("enableReporting\u2192enableExportReporting (WorkspaceFolder)"),this._logger.info("Migrated workspace folder enableReporting to enableExportReporting",{oldValue:e.workspaceFolderValue})),await this.e.clearSetting("enableReporting",{scope:"workspaceFolder",reason:"cleanup-migrated-enableReporting-folder"}),a=!0}catch(n){this._logger.error("Failed to migrate workspace folder enableReporting setting",n)}return a&&this.n.add("deprecatedSettings\u2192removed"),this.n.has("enableReporting\u2192enableExportReporting (Global)")||this.n.has("enableReporting\u2192enableExportReporting (Workspace)")||this.n.has("enableReporting\u2192enableExportReporting (WorkspaceFolder)")}async migrateCustomColorSettings(){let e=W.workspace.getConfiguration("explorerDates"),r=e.get("migrateLegacyCustomColorsOnStartup",!1),a=e.get("customColors");if(!a||typeof a!="object")return!1;if(!r)return this._logger.info("Skipping custom color migration (opt-in disabled)",{reason:"migrateLegacyCustomColorsOnStartup=false"}),!1;let n=this.e.getValue("workbench.colorCustomizations")||{};if(n["explorerDates.customColor.veryRecent"]!==void 0||n["explorerDates.customColor.recent"]!==void 0||n["explorerDates.customColor.old"]!==void 0)return!1;let s={...n,"explorerDates.customColor.veryRecent":a.veryRecent||"#00ff00","explorerDates.customColor.recent":a.recent||"#ffff00","explorerDates.customColor.old":a.old||"#ff0000"};try{await this.e.updateSetting("workbench.colorCustomizations",s,{scope:"user",reason:"migrate-customColors"}),this.n.add("customColors\u2192workbench.colorCustomizations");let i=e.inspect("customColors"),l=!1;return(i==null?void 0:i.globalValue)!==void 0&&(await this.e.clearSetting("customColors",{scope:"user",reason:"cleanup-migrated-customColors-global"}),l=!0),(i==null?void 0:i.workspaceValue)!==void 0&&(await this.e.clearSetting("customColors",{scope:"workspace",reason:"cleanup-migrated-customColors-workspace"}),l=!0),(i==null?void 0:i.workspaceFolderValue)!==void 0&&(await this.e.clearSetting("customColors",{scope:"workspaceFolder",reason:"cleanup-migrated-customColors-folder"}),l=!0),l&&this.n.add("deprecatedSettings\u2192removed"),this._logger.info("Migrated custom colors to workbench.colorCustomizations",{oldColors:a,newColors:s}),!0}catch(i){return this._logger.error("Failed to migrate custom colors",i),!1}}async validateFeatureFlags(){let e={enableOnboardingSystem:{default:!0,type:"boolean"},enableExportReporting:{default:!0,type:"boolean"},enableAnalysisCommands:{default:!0,type:"boolean"},enableAdvancedCache:{default:!0,type:"boolean"},enableWorkspaceIntelligence:{default:!0,type:"boolean"},enableWorkspaceTemplates:{default:!0,type:"boolean"},enableExtensionApi:{default:!0,type:"boolean"},enableProgressiveAnalysis:{default:null,type:"boolean",allowNull:!0}},r=!1,a=[],n=[];for(let[o,s]of Object.entries(e)){let i=this.e.inspect(o),l=this.e.getValue(o),c=(i==null?void 0:i.globalValue)!==void 0,u=(i==null?void 0:i.workspaceValue)!==void 0;if(!c&&!u)n.push(o);else if(l!==void 0&&!(s.allowNull&&l===null?!0:typeof l===s.type))try{await this.e.updateSetting(o,s.default,{scope:"user",reason:`feature-flag-validation:${o}`}),a.push(`${o}: corrected type mismatch`),r=!0}catch(m){this._logger.error(`Failed to fix feature flag ${o}`,m)}}return r?(this.n.add("featureFlags\u2192validated"),this._logger.info("Validated feature flags",{fixes:a})):n.length>0&&this._logger.info("Feature flags relying on defaults (no migration needed)",{flags:n}),r}async cleanupDeprecatedSettings(e){let r=["customColors","enableReporting"];try{if(e!=null&&e.globalState&&e.globalState.get("explorerDates.deprecatedSettingsAsked"))return this._logger.debug("Skipping deprecated settings prompt - already asked this workspace."),!1}catch(o){this._logger.debug("Failed to read deprecatedSettingsAsked flag",(o==null?void 0:o.message)||o)}let a=[];for(let o of r){let s=this.e.inspect(o);((s==null?void 0:s.globalValue)!==void 0||(s==null?void 0:s.workspaceValue)!==void 0||(s==null?void 0:s.workspaceFolderValue)!==void 0)&&a.push(o)}if(a.length===0)return!1;await this.w(e,"migrationPromptShown",{type:"deprecatedSettings",found:a.length,settings:a});let n=await W.window.showInformationMessage(k.getString("deprecatedPrompt",a.length),{modal:!1},k.getString("deprecatedClean"),k.getString("deprecatedKeep"),k.getString("deprecatedAskLater"));await this.w(e,"migrationPromptResponded",{type:"deprecatedSettings",action:n});try{e!=null&&e.globalState&&e.globalState.update&&await e.globalState.update("explorerDates.deprecatedSettingsAsked",new Date().toISOString())}catch(o){this._logger.debug("Failed to persist deprecatedSettingsAsked flag",(o==null?void 0:o.message)||o)}if(n===k.getString("deprecatedClean")){for(let o of a)try{await this.e.clearSetting(o,{scope:"user",reason:"cleanup-deprecated"}),await this.e.clearSetting(o,{scope:"workspace",reason:"cleanup-deprecated"}),await this.e.clearSetting(o,{scope:"workspaceFolder",reason:"cleanup-deprecated"}),this._logger.info(`Removed deprecated setting: ${o}`)}catch(s){this._logger.error(`Failed to remove deprecated setting ${o}`,s)}return this.n.add("deprecatedSettings\u2192removed"),!0}return!1}async w(e,r,a){var n,o,s,i;try{let l=this.e&&typeof this.e.getValue=="function"?this.e.getValue("enableTelemetry"):!1;if(Gt.EXPLORER_DATES_TELEMETRY!=="1"&&!l||!((n=e==null?void 0:e.globalState)!=null&&n.update)||!((o=e==null?void 0:e.globalState)!=null&&o.get))return;let c=e.globalState.get("explorerDates.telemetryEvents",[]),u=Gt.EXPLORER_DATES_TELEMETRY==="1"?"env":l?"config":"unknown",g=((i=(s=e==null?void 0:e.extension)==null?void 0:s.packageJSON)==null?void 0:i.version)||null,m={timestamp:new Date().toISOString(),event:r,payload:a,source:u,extensionVersion:g};c.push(m);let w=100;c.length>w&&c.splice(0,c.length-w),await e.globalState.update("explorerDates.telemetryEvents",c),this._logger.debug("Telemetry emitted",m)}catch(l){this._logger.debug("Failed to emit telemetry event",(l==null?void 0:l.message)||l)}}async trackMigrationMetrics(e){if(this.n.size===0)return!1;let r=e.globalState.get("explorerDates.migrationHistory",[]),a={timestamp:new Date().toISOString(),extensionVersion:e.extension.packageJSON.version,migratedSettings:Array.from(this.n)};return r.push(a),r.length>5&&r.splice(0,r.length-5),await e.globalState.update("explorerDates.migrationHistory",r),this._logger.info("Recorded migration metrics",a),await this.w(e,"migrationMetricsRecorded",{record:a}),!0}async autoOrganizeSettingsIfNeeded(e,r={}){let a=this.Ce(e);if(!a)return null;try{let n=await a.getOrganizationPlan();if(!(n!=null&&n.needsWork))return this._logger.debug("Auto organization skipped - no Explorer Dates settings to tidy."),null;let o=await a.organize({plan:n});if(o!=null&&o.changed){if(!r.silent){let s=[];o.movedToWorkspace.length&&s.push(`${o.movedToWorkspace.length} moved to workspace`),o.reorderedWorkspace&&s.push("workspace keys sorted"),o.sortedFiles.length&&s.push(`${o.sortedFiles.length} file(s) tidied`);let i=s.length?` (${s.join(" \u2022 ")})`:"";W.window.showInformationMessage(k.getString("organizeSettingsResult",i))}this._logger.info("Explorer Dates settings auto-organized",{trigger:r.trigger||"unknown",summary:o})}return o}catch(n){return this._logger.warn("Automatic Explorer Dates settings organization failed",n),null}}Ce(e){return e?((!this.M||this.j!==e)&&(this.M=new ea(e),this.j=e),this.M):(this._logger.debug("Settings organizer unavailable - missing extension context."),null)}async ve(e,r){let a=e.length;await this.w(r,"migrationPromptShown",{type:"migrationNotification",count:a,details:e});let n=await W.window.showInformationMessage(k.getString("migrationNotificationMessage",a),{modal:!1},k.getString("migrationViewChanges"),k.getString("migrationOpenSettings"));switch(await this.w(r,"migrationPromptResponded",{type:"migrationNotification",action:n}),n){case k.getString("migrationViewChanges"):await this.Se();break;case k.getString("migrationOpenSettings"):await W.commands.executeCommand("workbench.action.openSettings","explorerDates");break}}async Se(){let e=W.window.createWebviewPanel("explorerDatesMigration",k.getString("migrationDetailsTitle"),W.ViewColumn.One,{enableScripts:!1}),r=Array.from(this.n).map(a=>`
  • ${a}
  • `).join("");e.webview.html=` + `}async function ia({context:t,logger:e,subscriptions:r}){var n,o,s;if(na()){(n=e==null?void 0:e.warn)==null||n.call(e,"Duplicate explorerDates.resetToDefaults registration skipped");return}let a;try{a=await g.commands.getCommands(!0)}catch(i){(o=e==null?void 0:e.warn)==null||o.call(e,"Unable to inspect VS Code command registry; proceeding with reset command registration",i)}if(Array.isArray(a)&&a.includes(Vt)){Bt(),(s=e==null?void 0:e.warn)==null||s.call(e,"Detected existing explorerDates.resetToDefaults handler; skipping duplicate registration");return}Bt(),r.push(g.commands.registerCommand(Vt,async()=>{var i,l;try{if(await g.window.showWarningMessage(E.getString("resetConfirmation"),{modal:!0},E.getString("resetConfirm"),E.getString("resetCancel"))!==E.getString("resetConfirm"))return;U("reset settings to defaults");let u=t.extension.packageJSON,d=((l=(i=u==null?void 0:u.contributes)==null?void 0:i.configuration)==null?void 0:l.properties)||{},h=0;for(let f of Object.keys(d))if(f.startsWith("explorerDates.")){let w=f.replace("explorerDates.","");try{await we.clearSetting(w,{scope:"user",reason:"reset-to-defaults"}),await we.clearSetting(w,{scope:"workspace",reason:"reset-to-defaults"}),h++}catch(S){e.warn(`Failed to reset setting ${w}`,S)}}g.window.showInformationMessage(E.getString("resetSuccess",h)),e.info("Settings reset to defaults",{resetCount:h})}catch(c){e.error("Failed to reset settings to defaults",c),g.window.showErrorMessage(`Failed to reset settings: ${c.message}`)}}))}jt.exports={registerMigrationCommands:aa}});var Zt=m((exports,module)=>{var vscode=require("vscode"),{isWebEnvironment}=te(),fs=null,path=null,Xt;try{let isWeb=isWebEnvironment()||typeof process<"u"&&!1;!isWeb&&typeof process<"u"&&((Xt=process.versions)!=null&&Xt.node)&&(fs=eval("require")("fs"),path=eval("require")("path"))}catch{fs=null,path=null}var textDecoder=typeof globalThis.TextDecoder=="function"?new globalThis.TextDecoder("utf-8"):new(require("util")).TextDecoder("utf-8"),TemplateStore=class{constructor(){this._=new Map,this.P=null}initialize(e){this.P=(e==null?void 0:e.extensionUri)??null}async getTemplate(e){if(this._.has(e))return this._.get(e);let r=await this.Ee(e);return this._.set(e,r),r}async Ee(e){let r=`${e}.html`;if(this.P){let a=vscode.Uri.joinPath(this.P,"assets","templates",r),n=await vscode.workspace.fs.readFile(a);return textDecoder.decode(n)}if(fs&&path){let a=path.resolve(__dirname,"..","..","assets","templates",r);return await fs.promises.readFile(a,"utf8")}throw new Error(`TemplateStore: Unable to load template "${e}" (missing extension context)`)}},templateStore=new TemplateStore;module.exports={templateStore,initializeTemplateStore:t=>templateStore.initialize(t)}});var er=m((to,Qt)=>{var W=require("vscode"),{getLogger:la}=T(),{getSettingsCoordinator:ca}=ne(),{SettingsOrganizer:ua}=Ne(),{getLocalization:da}=ee(),D=da(),Jt=typeof process<"u"&&process.env?process.env:{},$e=class{constructor(){this._logger=la(),this.n=new Set,this.e=ca(),this.M=null,this.j=null}async migrateAllSettings(e){var n,o;let r=[()=>this.migrateReportingSettings(),()=>this.migrateCustomColorSettings(),()=>this.validateFeatureFlags(),()=>this.cleanupDeprecatedSettings(e),()=>this.trackMigrationMetrics(e)],a=[];for(let s of r)try{let i=await s();i&&a.push(i)}catch(i){this._logger.error("Settings migration failed:",i)}if(a.length>0){this._logger.info("Settings migration completed",{migratedSettings:a});try{let s=(n=e==null?void 0:e.globalState)!=null&&n.get?e.globalState.get("explorerDates.lastMigrationNotificationShown"):null,i=Date.now(),l=1440*60*1e3;!s||i-new Date(s).getTime()>l?(await this.ve(a,e),(o=e==null?void 0:e.globalState)!=null&&o.update&&await e.globalState.update("explorerDates.lastMigrationNotificationShown",new Date().toISOString())):this._logger.info("Skipping migration notification - recently shown")}catch(s){this._logger.debug("Failed to persist migration notification timestamp",(s==null?void 0:s.message)||s)}}return a}async migrateReportingSettings(){let e=this.e.inspect("enableReporting"),r=this.e.inspect("enableExportReporting"),a=!1;if((e==null?void 0:e.globalValue)!==void 0)try{(r==null?void 0:r.globalValue)===void 0&&(await this.e.updateSetting("enableExportReporting",e.globalValue,{scope:"user",reason:"migrate-enableReporting-global"}),this.n.add("enableReporting\u2192enableExportReporting (Global)"),this._logger.info("Migrated global enableReporting to enableExportReporting",{oldValue:e.globalValue})),await this.e.clearSetting("enableReporting",{scope:"user",reason:"cleanup-migrated-enableReporting-global"}),a=!0}catch(n){this._logger.error("Failed to migrate global enableReporting setting",n)}if((e==null?void 0:e.workspaceValue)!==void 0)try{(r==null?void 0:r.workspaceValue)===void 0&&(await this.e.updateSetting("enableExportReporting",e.workspaceValue,{scope:"workspace",reason:"migrate-enableReporting-workspace"}),this.n.add("enableReporting\u2192enableExportReporting (Workspace)"),this._logger.info("Migrated workspace enableReporting to enableExportReporting",{oldValue:e.workspaceValue})),await this.e.clearSetting("enableReporting",{scope:"workspace",reason:"cleanup-migrated-enableReporting-workspace"}),a=!0}catch(n){this._logger.error("Failed to migrate workspace enableReporting setting",n)}if((e==null?void 0:e.workspaceFolderValue)!==void 0)try{(r==null?void 0:r.workspaceFolderValue)===void 0&&(await this.e.updateSetting("enableExportReporting",e.workspaceFolderValue,{scope:"workspaceFolder",reason:"migrate-enableReporting-folder"}),this.n.add("enableReporting\u2192enableExportReporting (WorkspaceFolder)"),this._logger.info("Migrated workspace folder enableReporting to enableExportReporting",{oldValue:e.workspaceFolderValue})),await this.e.clearSetting("enableReporting",{scope:"workspaceFolder",reason:"cleanup-migrated-enableReporting-folder"}),a=!0}catch(n){this._logger.error("Failed to migrate workspace folder enableReporting setting",n)}return a&&this.n.add("deprecatedSettings\u2192removed"),this.n.has("enableReporting\u2192enableExportReporting (Global)")||this.n.has("enableReporting\u2192enableExportReporting (Workspace)")||this.n.has("enableReporting\u2192enableExportReporting (WorkspaceFolder)")}async migrateCustomColorSettings(){let e=W.workspace.getConfiguration("explorerDates"),r=e.get("migrateLegacyCustomColorsOnStartup",!1),a=e.get("customColors");if(!a||typeof a!="object")return!1;if(!r)return this._logger.info("Skipping custom color migration (opt-in disabled)",{reason:"migrateLegacyCustomColorsOnStartup=false"}),!1;let n=this.e.getValue("workbench.colorCustomizations")||{};if(n["explorerDates.customColor.veryRecent"]!==void 0||n["explorerDates.customColor.recent"]!==void 0||n["explorerDates.customColor.old"]!==void 0)return!1;let s={...n,"explorerDates.customColor.veryRecent":a.veryRecent||"#00ff00","explorerDates.customColor.recent":a.recent||"#ffff00","explorerDates.customColor.old":a.old||"#ff0000"};try{await this.e.updateSetting("workbench.colorCustomizations",s,{scope:"user",reason:"migrate-customColors"}),this.n.add("customColors\u2192workbench.colorCustomizations");let i=e.inspect("customColors"),l=!1;return(i==null?void 0:i.globalValue)!==void 0&&(await this.e.clearSetting("customColors",{scope:"user",reason:"cleanup-migrated-customColors-global"}),l=!0),(i==null?void 0:i.workspaceValue)!==void 0&&(await this.e.clearSetting("customColors",{scope:"workspace",reason:"cleanup-migrated-customColors-workspace"}),l=!0),(i==null?void 0:i.workspaceFolderValue)!==void 0&&(await this.e.clearSetting("customColors",{scope:"workspaceFolder",reason:"cleanup-migrated-customColors-folder"}),l=!0),l&&this.n.add("deprecatedSettings\u2192removed"),this._logger.info("Migrated custom colors to workbench.colorCustomizations",{oldColors:a,newColors:s}),!0}catch(i){return this._logger.error("Failed to migrate custom colors",i),!1}}async validateFeatureFlags(){let e={enableOnboardingSystem:{default:!0,type:"boolean"},enableExportReporting:{default:!0,type:"boolean"},enableAnalysisCommands:{default:!0,type:"boolean"},enableAdvancedCache:{default:!0,type:"boolean"},enableWorkspaceIntelligence:{default:!0,type:"boolean"},enableWorkspaceTemplates:{default:!0,type:"boolean"},enableExtensionApi:{default:!0,type:"boolean"},enableProgressiveAnalysis:{default:null,type:"boolean",allowNull:!0}},r=!1,a=[],n=[];for(let[o,s]of Object.entries(e)){let i=this.e.inspect(o),l=this.e.getValue(o),c=(i==null?void 0:i.globalValue)!==void 0,u=(i==null?void 0:i.workspaceValue)!==void 0;if(!c&&!u)n.push(o);else if(l!==void 0&&!(s.allowNull&&l===null?!0:typeof l===s.type))try{await this.e.updateSetting(o,s.default,{scope:"user",reason:`feature-flag-validation:${o}`}),a.push(`${o}: corrected type mismatch`),r=!0}catch(h){this._logger.error(`Failed to fix feature flag ${o}`,h)}}return r?(this.n.add("featureFlags\u2192validated"),this._logger.info("Validated feature flags",{fixes:a})):n.length>0&&this._logger.info("Feature flags relying on defaults (no migration needed)",{flags:n}),r}async cleanupDeprecatedSettings(e){let r=["customColors","enableReporting"];try{if(e!=null&&e.globalState&&e.globalState.get("explorerDates.deprecatedSettingsAsked"))return this._logger.debug("Skipping deprecated settings prompt - already asked this workspace."),!1}catch(o){this._logger.debug("Failed to read deprecatedSettingsAsked flag",(o==null?void 0:o.message)||o)}let a=[];for(let o of r){let s=this.e.inspect(o);((s==null?void 0:s.globalValue)!==void 0||(s==null?void 0:s.workspaceValue)!==void 0||(s==null?void 0:s.workspaceFolderValue)!==void 0)&&a.push(o)}if(a.length===0)return!1;await this.w(e,"migrationPromptShown",{type:"deprecatedSettings",found:a.length,settings:a});let n=await W.window.showInformationMessage(D.getString("deprecatedPrompt",a.length),{modal:!1},D.getString("deprecatedClean"),D.getString("deprecatedKeep"),D.getString("deprecatedAskLater"));await this.w(e,"migrationPromptResponded",{type:"deprecatedSettings",action:n});try{e!=null&&e.globalState&&e.globalState.update&&await e.globalState.update("explorerDates.deprecatedSettingsAsked",new Date().toISOString())}catch(o){this._logger.debug("Failed to persist deprecatedSettingsAsked flag",(o==null?void 0:o.message)||o)}if(n===D.getString("deprecatedClean")){for(let o of a)try{await this.e.clearSetting(o,{scope:"user",reason:"cleanup-deprecated"}),await this.e.clearSetting(o,{scope:"workspace",reason:"cleanup-deprecated"}),await this.e.clearSetting(o,{scope:"workspaceFolder",reason:"cleanup-deprecated"}),this._logger.info(`Removed deprecated setting: ${o}`)}catch(s){this._logger.error(`Failed to remove deprecated setting ${o}`,s)}return this.n.add("deprecatedSettings\u2192removed"),!0}return!1}async w(e,r,a){var n,o,s,i;try{let l=this.e&&typeof this.e.getValue=="function"?this.e.getValue("enableTelemetry"):!1;if(Jt.EXPLORER_DATES_TELEMETRY!=="1"&&!l||!((n=e==null?void 0:e.globalState)!=null&&n.update)||!((o=e==null?void 0:e.globalState)!=null&&o.get))return;let c=e.globalState.get("explorerDates.telemetryEvents",[]),u=Jt.EXPLORER_DATES_TELEMETRY==="1"?"env":l?"config":"unknown",d=((i=(s=e==null?void 0:e.extension)==null?void 0:s.packageJSON)==null?void 0:i.version)||null,h={timestamp:new Date().toISOString(),event:r,payload:a,source:u,extensionVersion:d};c.push(h);let f=100;c.length>f&&c.splice(0,c.length-f),await e.globalState.update("explorerDates.telemetryEvents",c),this._logger.debug("Telemetry emitted",h)}catch(l){this._logger.debug("Failed to emit telemetry event",(l==null?void 0:l.message)||l)}}async trackMigrationMetrics(e){if(this.n.size===0)return!1;let r=e.globalState.get("explorerDates.migrationHistory",[]),a={timestamp:new Date().toISOString(),extensionVersion:e.extension.packageJSON.version,migratedSettings:Array.from(this.n)};return r.push(a),r.length>5&&r.splice(0,r.length-5),await e.globalState.update("explorerDates.migrationHistory",r),this._logger.info("Recorded migration metrics",a),await this.w(e,"migrationMetricsRecorded",{record:a}),!0}async autoOrganizeSettingsIfNeeded(e,r={}){let a=this.Ce(e);if(!a)return null;try{let n=await a.getOrganizationPlan();if(!(n!=null&&n.needsWork))return this._logger.debug("Auto organization skipped - no Explorer Dates settings to tidy."),null;let o=await a.organize({plan:n});if(o!=null&&o.changed){if(!r.silent){let s=[];o.movedToWorkspace.length&&s.push(`${o.movedToWorkspace.length} moved to workspace`),o.reorderedWorkspace&&s.push("workspace keys sorted"),o.sortedFiles.length&&s.push(`${o.sortedFiles.length} file(s) tidied`);let i=s.length?` (${s.join(" \u2022 ")})`:"";W.window.showInformationMessage(D.getString("organizeSettingsResult",i))}this._logger.info("Explorer Dates settings auto-organized",{trigger:r.trigger||"unknown",summary:o})}return o}catch(n){return this._logger.warn("Automatic Explorer Dates settings organization failed",n),null}}Ce(e){return e?((!this.M||this.j!==e)&&(this.M=new ua(e),this.j=e),this.M):(this._logger.debug("Settings organizer unavailable - missing extension context."),null)}async ve(e,r){let a=e.length;await this.w(r,"migrationPromptShown",{type:"migrationNotification",count:a,details:e});let n=await W.window.showInformationMessage(D.getString("migrationNotificationMessage",a),{modal:!1},D.getString("migrationViewChanges"),D.getString("migrationOpenSettings"));switch(await this.w(r,"migrationPromptResponded",{type:"migrationNotification",action:n}),n){case D.getString("migrationViewChanges"):await this.Se();break;case D.getString("migrationOpenSettings"):await W.commands.executeCommand("workbench.action.openSettings","explorerDates");break}}async Se(){let e=W.window.createWebviewPanel("explorerDatesMigration",D.getString("migrationDetailsTitle"),W.ViewColumn.One,{enableScripts:!1}),r=Array.from(this.n).map(a=>`
  • ${a}
  • `).join("");e.webview.html=` - ${k.getString("migrationDetailsTitle")} + ${D.getString("migrationDetailsTitle")} -
    Explorer Dates

    Explorer Dates File Report

    Schema ${t(e.schemaVersion)} \xB7 Generated ${t(r(e.generatedAt))}
    +
    Explorer Dates

    Explorer Dates File Report

    Schema ${t(e.schemaVersion)} \xB7 Generated ${t(r(e.generatedAt))}

    Workspace: ${t(e.workspaceName||e.workspace?.join(", "))} \xB7 Selected range: ${t(e.timeRange)}

    ${t(e.summary.totalFiles)}Included files
    ${t(this.formatFileSize(e.summary.totalSize))}Total size
    ${t(e.summary.mostActiveFiles.length)}Known active files
    ${t(Object.values(e.summary.activitySourceBreakdown||{}).reduce((o,l)=>o+l,0))}Evidence events

    Most Active Files

    ${s}
    PathActivity countLast activity
    @@ -59,4 +59,4 @@ ${e.summary.recentlyModified.map(r=>`| ${t(r.path)} | ${t(validDate(r.modified)? |------|------|----------|------|------------| ${e.files.map(r=>`| ${t(r.path)} | ${this.formatFileSize(r.size||0)} | ${t(validDate(r.modified)?.toISOString()||"Unavailable")} | ${t(r.type)} | ${t(r.activityCount??"Unknown")} |`).join(` `)} -`}async saveReport(e,t,r={}){try{if(isWeb){let a=encodeURIComponent(e);await vscode.env.openExternal(vscode.Uri.parse(`data:text/plain;charset=utf-8,${a}`)),vscode.window.showInformationMessage(l10n.getString("reportDownloadTriggered"));return}let n=t instanceof vscode.Uri?t:vscode.Uri.file(t);this.h(r.cancellationToken);let o=`${n.fsPath||n.path}.tmp-${process.pid}-${Date.now()}`;await fileSystem.writeFile(o,e,"utf8"),this.h(r.cancellationToken),await fileSystem.rename(o,n,{overwrite:!0});let l=await fileSystem.stat(n);if(!Number.isFinite(Number(l.size))||Number(l.size)<=0)throw new Error("The saved report is empty or could not be verified.");logger.info(`Report saved to ${n.fsPath||n.path}`)}catch(n){throw logger.error("Failed to save report:",n),n}}async exportToTimeTrackingTools(e={}){try{let{tool:t="generic",timeRange:r="7d"}=e,n=await this.collectFileData(r,!1);return this.formatForTimeTracking(n,t)}catch(t){return logger.error("Failed to export to time tracking tools:",t),null}}formatForTimeTracking(e,t){let r=[];switch(e.files.forEach(n=>{n.activities.forEach(s=>{r.push({file:n.path,action:s.action,timestamp:s.timestamp,duration:this.estimateSessionDuration(s),project:this.extractProjectName(n.path)})})}),t){case"toggl":return this.formatForToggl(r);case"clockify":return this.formatForClockify(r);default:return r}}formatForToggl(e){return e.map(t=>({description:`${t.action}: ${t.file}`,start:t.timestamp.toISOString(),duration:t.duration*60,project:t.project,tags:[t.action,this.getFileType(t.file)]}))}formatForClockify(e){return e.map(t=>({description:`${t.action}: ${t.file}`,start:t.timestamp.toISOString(),end:new Date(t.timestamp.getTime()+t.duration*60*1e3).toISOString(),project:t.project,tags:[t.action,this.getFileType(t.file)]}))}estimateSessionDuration(e){switch(e.action){case"created":return 15;case"modified":return 5;case"deleted":return 1;default:return 5}}extractProjectName(e){return normalizePath(e).split("/")[0]||"Unknown Project"}getFileType(e){let t=getExtension(e);return{".js":"javascript",".ts":"typescript",".py":"python",".java":"java",".cpp":"cpp",".html":"html",".css":"css",".md":"markdown",".json":"json",".xml":"xml",".txt":"text"}[t]||"other"}isExcluded(e,t){return this.y.isExcluded(e)||(t||[]).some(r=>{let n=this.T(r);return n?n.test(normalizeReportPath(e)):!1})}formatFileSize(e){let t=formatFileSize(e,"auto");return t.startsWith("~")?t.slice(1):t}z(){try{let e=require("fs"),t=require("path"),n=[t.join(__dirname,"..","icons","explorer-dates.png"),t.join(__dirname,"..","..","icons","explorer-dates.png")].find(s=>e.existsSync(s));return n?e.readFileSync(n).toString("base64"):""}catch{return""}}async showReportDialog(){if(this.n)return vscode.window.showInformationMessage("Explorer Dates is already generating a report. Please wait for it to finish."),null;let e=this.$();this.n=e;try{return await e}finally{this.n===e&&(this.n=null)}}async $(){try{let e={"\u{1F4CA} Generate Full Report":"full","\u{1F4C5} Last 24 Hours":"24h","\u{1F4C5} Last 7 Days":"7d","\u{1F4C5} Last 30 Days":"30d","\u{1F4C5} Last 90 Days":"90d"},t=await vscode.window.showQuickPick(Object.keys(e),{placeHolder:l10n.getString("selectReportTimeRangePlaceholder")});if(!t)return;let r=e[t],n=this.allowedFormats.map(a=>a.toUpperCase()==="MARKDOWN"?"Markdown":a.toUpperCase()),s=await vscode.window.showQuickPick(n,{placeHolder:l10n.getString("selectReportFormatPlaceholder")});if(!s)return;let o=await vscode.window.showSaveDialog({defaultUri:vscode.Uri.file(`explorer-dates-report-${new Date().toISOString().replace(/[:.]/g,"-")}.${s.toLowerCase()}`),filters:{[s]:[s.toLowerCase()]}});if(!o)return;let l=async a=>this.R({format:s.toLowerCase(),timeRange:r,outputPath:o,progress:a.report?(c,u)=>a.report({message:c,increment:u}):null,cancellationToken:a.token});return await vscode.window.withProgress({location:vscode.ProgressLocation?.Notification||15,title:"Generating Explorer Dates report",cancellable:!0},l)}catch(e){return logger.error("Failed to show report dialog:",e),vscode.window.showErrorMessage("Failed to generate report"),commandFailure(e,{operation:"report-dialog"})}}dispose(){this.o&&(this.o.dispose(),this.o=null),this.w(),this.E(),this.fileActivityCache.clear(),this.t.clear(),this.s.clear(),this.p={user:0,watcher:0},logger.info("Export & Reporting Manager disposed")}a(e=""){let t=normalizePath(e||"").trim();return t?t.toLowerCase():""}M(e){if(!e)return!1;for(let t of this.excludedFolders){if(!t)continue;let r=t.replace(/^\/+|\/+$/g,"").toLowerCase();if(!r)continue;let n=`/${r}`;if(e.includes(`${n}/`)||e.endsWith(n))return!1}return!this.S.some(t=>t.test(e))}T(e){if(!e||typeof e!="string")return null;let t=e.replace(/([.+^${}()|[\]\\])/g,"\\$1").replace(/\\\*\\\*/g,".*").replace(/\\\*/g,"[^/]*").replace(/\\\?/g,".");try{return new RegExp(t,"i")}catch{return null}}N(e,t){e&&(this.t.has(e)&&this.t.delete(e),this.t.set(e,t),this.C())}C(){if(this.maxTrackedActivityFiles<=0){this.fileActivityCache.clear(),this.t.clear();return}for(;this.t.size>this.maxTrackedActivityFiles;){let e=this.t.keys().next();if(e.done)break;let t=e.value;this.t.delete(t),this.fileActivityCache.delete(t)}}O(e){let t=Number(e);return Number.isFinite(t)?t<=0?0:Math.min(Math.max(Math.floor(t),500),MAX_TRACKED_FILES_LIMIT):DEFAULT_MAX_TRACKED_FILES}k(){return vscode.workspace.getConfiguration("explorerDates").get("performanceMode",!1)||this.P}D(){if(this.l.length>0)return;let e=vscode.workspace||{},t=(c,u)=>typeof c!="function"?null:c.call(e,u),r=[],n=t(e.onDidSaveTextDocument,c=>{this.recordFileActivity(c.uri,"modified",{source:"user"})});n&&r.push(n);let s=t(e.onDidChangeTextDocument,c=>{let u=c?.document;if(!u)return;let h=this.a(u.uri.fsPath||u.uri.path||"");h&&this._(h,Date.now())});s&&r.push(s);let o=t(e.onDidCreateFiles,c=>{c?.files?.forEach(u=>this.recordFileActivity(u,"created",{source:"user"}))});o&&r.push(o);let l=t(e.onDidDeleteFiles,c=>{c?.files?.forEach(u=>this.recordFileActivity(u,"deleted",{source:"user"}))});l&&r.push(l);let a=t(e.onDidRenameFiles,c=>{c?.files?.forEach(u=>{this.recordFileActivity(u.oldUri,"deleted",{source:"user"}),this.recordFileActivity(u.newUri,"created",{source:"user"})})});a&&r.push(a),r.length>0&&(this.l=r)}E(){if(this.l.length){for(let e of this.l)try{e.dispose()}catch{}this.l=[],this.s.clear()}}_(e,t){e&&(this.b(),this.s.set(e,t||Date.now()))}b(){if(!this.s.size)return;let e=Date.now();for(let[t,r]of this.s.entries())e-r>this.x&&this.s.delete(t)}W(e){return this.b(),this.s.has(e)?!0:!!(Array.isArray(vscode.workspace?.textDocuments)?vscode.workspace.textDocuments:[]).find(n=>(n?.uri?this.a(n.uri.fsPath||n.uri.path):"")===e)}};module.exports={ExportReportingManager}});var{ExportReportingManager:Ae}=Te();module.exports={ExportReportingManager:Ae,createExportReportingManager:i=>new Ae(i)}; +`}async saveReport(e,t,r={}){let n=null;try{if(isWeb){let c=encodeURIComponent(e);await vscode.env.openExternal(vscode.Uri.parse(`data:text/plain;charset=utf-8,${c}`)),vscode.window.showInformationMessage(this.F.getString("reportDownloadTriggered"));return}let s=t instanceof vscode.Uri?t:vscode.Uri.file(t);this.s(r.cancellationToken),n=`${s.fsPath||s.path}.tmp-${process.pid}-${Date.now()}-${Math.random().toString(16).slice(2)}`,await this.a("writing-temporary-file",r),await this._fileSystem.writeFile(n,e,"utf8"),await this.a("verifying-temporary-file",r);let l=await this._fileSystem.stat(n);if(!Number.isFinite(Number(l.size))||Number(l.size)<=0)throw new Error("The temporary report is empty or could not be verified.");this.s(r.cancellationToken),await this.a("promoting-final-file",r),await this._fileSystem.rename(n,s,{overwrite:!0}),n=null,await this.a("verifying-final-file",r);let a=await this._fileSystem.stat(s);if(!Number.isFinite(Number(a.size))||Number(a.size)<=0)throw new Error("The saved report is empty or could not be verified.");this._logger.info(`Report saved to ${s.fsPath||s.path}`)}catch(s){throw this._logger.error("Failed to save report:",s),s}finally{if(n&&typeof this._fileSystem.delete=="function")try{await this._fileSystem.delete(n,{recursive:!1,useTrash:!1})}catch(s){this._logger.warn("Failed to clean temporary report file:",s)}}}async exportToTimeTrackingTools(e={}){try{let{tool:t="generic",timeRange:r="7d"}=e,n=await this.collectFileData(r,!1);return this.formatForTimeTracking(n,t)}catch(t){return logger.error("Failed to export to time tracking tools:",t),null}}formatForTimeTracking(e,t){let r=[];switch(e.files.forEach(n=>{n.activities.forEach(s=>{r.push({file:n.path,action:s.action,timestamp:s.timestamp,duration:this.estimateSessionDuration(s),project:this.extractProjectName(n.path)})})}),t){case"toggl":return this.formatForToggl(r);case"clockify":return this.formatForClockify(r);default:return r}}formatForToggl(e){return e.map(t=>({description:`${t.action}: ${t.file}`,start:t.timestamp.toISOString(),duration:t.duration*60,project:t.project,tags:[t.action,this.getFileType(t.file)]}))}formatForClockify(e){return e.map(t=>({description:`${t.action}: ${t.file}`,start:t.timestamp.toISOString(),end:new Date(t.timestamp.getTime()+t.duration*60*1e3).toISOString(),project:t.project,tags:[t.action,this.getFileType(t.file)]}))}estimateSessionDuration(e){switch(e.action){case"created":return 15;case"modified":return 5;case"deleted":return 1;default:return 5}}extractProjectName(e){return normalizePath(e).split("/")[0]||"Unknown Project"}getFileType(e){let t=getExtension(e);return{".js":"javascript",".ts":"typescript",".py":"python",".java":"java",".cpp":"cpp",".html":"html",".css":"css",".md":"markdown",".json":"json",".xml":"xml",".txt":"text"}[t]||"other"}isExcluded(e,t){return this.w.isExcluded(e)||(t||[]).some(r=>{let n=this.R(r);return n?n.test(normalizeReportPath(e)):!1})}formatFileSize(e){let t=formatFileSize(e,"auto");return t.startsWith("~")?t.slice(1):t}j(){try{let e=require("fs"),t=require("path"),n=[t.join(__dirname,"..","icons","explorer-dates.png"),t.join(__dirname,"..","..","icons","explorer-dates.png")].find(s=>e.existsSync(s));return n?e.readFileSync(n).toString("base64"):""}catch{return""}}async showReportDialog(){if(this.A)return commandFailure(new Error("Reporting manager is disposed."),{operation:"report-dialog",code:"DISPOSED"});if(this.n)return vscode.window.showInformationMessage("Explorer Dates is already generating a report. Please wait for it to finish."),commandAlreadyRunning();let e=this.q();this.n=e;try{return await e}finally{this.n===e&&(this.n=null)}}async q(){try{let e={"\u{1F4CA} Generate Full Report":"full","\u{1F4C5} Last 24 Hours":"24h","\u{1F4C5} Last 7 Days":"7d","\u{1F4C5} Last 30 Days":"30d","\u{1F4C5} Last 90 Days":"90d"},t=await vscode.window.showQuickPick(Object.keys(e),{placeHolder:l10n.getString("selectReportTimeRangePlaceholder")});if(!t)return;let r=e[t],n=this.allowedFormats.map(a=>a.toUpperCase()==="MARKDOWN"?"Markdown":a.toUpperCase()),s=await vscode.window.showQuickPick(n,{placeHolder:l10n.getString("selectReportFormatPlaceholder")});if(!s)return;let o=await vscode.window.showSaveDialog({defaultUri:vscode.Uri.file(`explorer-dates-report-${new Date().toISOString().replace(/[:.]/g,"-")}.${s.toLowerCase()}`),filters:{[s]:[s.toLowerCase()]}});if(!o)return;let l=async a=>this.L({format:s.toLowerCase(),timeRange:r,outputPath:o,progress:a.report?(c,u)=>a.report({message:c,increment:u}):null,cancellationToken:a.token});return await vscode.window.withProgress({location:vscode.ProgressLocation?.Notification||15,title:"Generating Explorer Dates report",cancellable:!0},l)}catch(e){return logger.error("Failed to show report dialog:",e),vscode.window.showErrorMessage("Failed to generate report"),commandFailure(e,{operation:"report-dialog"})}}dispose(){this.c&&(this.c.dispose(),this.c=null),this.v(),this.D(),this.fileActivityCache.clear(),this.t.clear(),this.o.clear(),this.g={user:0,watcher:0},logger.info("Export & Reporting Manager disposed")}l(e=""){let t=normalizePath(e||"").trim();return t?t.toLowerCase():""}$(e){if(!e)return!1;for(let t of this.excludedFolders){if(!t)continue;let r=t.replace(/^\/+|\/+$/g,"").toLowerCase();if(!r)continue;let n=`/${r}`;if(e.includes(`${n}/`)||e.endsWith(n))return!1}return!this.k.some(t=>t.test(e))}R(e){if(!e||typeof e!="string")return null;let t=e.replace(/([.+^${}()|[\]\\])/g,"\\$1").replace(/\\\*\\\*/g,".*").replace(/\\\*/g,"[^/]*").replace(/\\\?/g,".");try{return new RegExp(t,"i")}catch{return null}}W(e,t){e&&(this.t.has(e)&&this.t.delete(e),this.t.set(e,t),this.x())}x(){if(this.maxTrackedActivityFiles<=0){this.fileActivityCache.clear(),this.t.clear();return}for(;this.t.size>this.maxTrackedActivityFiles;){let e=this.t.keys().next();if(e.done)break;let t=e.value;this.t.delete(t),this.fileActivityCache.delete(t)}}z(e){let t=Number(e);return Number.isFinite(t)?t<=0?0:Math.min(Math.max(Math.floor(t),500),MAX_TRACKED_FILES_LIMIT):DEFAULT_MAX_TRACKED_FILES}b(){return vscode.workspace.getConfiguration("explorerDates").get("performanceMode",!1)||this.N}S(){if(this.h.length>0)return;let e=vscode.workspace||{},t=(c,u)=>typeof c!="function"?null:c.call(e,u),r=[],n=t(e.onDidSaveTextDocument,c=>{this.recordFileActivity(c.uri,"modified",{source:"user"})});n&&r.push(n);let s=t(e.onDidChangeTextDocument,c=>{let u=c?.document;if(!u)return;let h=this.l(u.uri.fsPath||u.uri.path||"");h&&this.P(h,Date.now())});s&&r.push(s);let o=t(e.onDidCreateFiles,c=>{c?.files?.forEach(u=>this.recordFileActivity(u,"created",{source:"user"}))});o&&r.push(o);let l=t(e.onDidDeleteFiles,c=>{c?.files?.forEach(u=>this.recordFileActivity(u,"deleted",{source:"user"}))});l&&r.push(l);let a=t(e.onDidRenameFiles,c=>{c?.files?.forEach(u=>{this.recordFileActivity(u.oldUri,"deleted",{source:"user"}),this.recordFileActivity(u.newUri,"created",{source:"user"})})});a&&r.push(a),r.length>0&&(this.h=r)}D(){if(this.h.length){for(let e of this.h)try{e.dispose()}catch{}this.h=[],this.o.clear()}}P(e,t){e&&(this.O(),this.o.set(e,t||Date.now()))}O(){if(!this.o.size)return;let e=Date.now();for(let[t,r]of this.o.entries())e-r>this.M&&this.o.delete(t)}B(e){return this.O(),this.o.has(e)?!0:!!(Array.isArray(vscode.workspace?.textDocuments)?vscode.workspace.textDocuments:[]).find(n=>(n?.uri?this.l(n.uri.fsPath||n.uri.path):"")===e)}};module.exports={ExportReportingManager}});var{ExportReportingManager:Ae}=Fe();module.exports={ExportReportingManager:Ae,createExportReportingManager:i=>new Ae(i)}; diff --git a/dist/extension.js b/dist/extension.js index cc96315..b713a04 100644 --- a/dist/extension.js +++ b/dist/extension.js @@ -1,6 +1,6 @@ -var kr=Object.create;var je=Object.defineProperty;var Tr=Object.getOwnPropertyDescriptor;var Ar=Object.getOwnPropertyNames;var xr=Object.getPrototypeOf,Rr=Object.prototype.hasOwnProperty;var m=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var Fr=(t,e,r,a)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of Ar(e))!Rr.call(t,n)&&n!==r&&je(t,n,{get:()=>e[n],enumerable:!(a=Tr(e,n))||a.enumerable});return t};var J=(t,e,r)=>(r=t!=null?kr(xr(t)):{},Fr(e||!t||!t.__esModule?je(r,"default",{value:t,enumerable:!0}):r,t));var T=m((_a,Ye)=>{var z="__explorerDatesLogger",H=class{constructor(){this.b=null}y(e,r){if(this.b&&typeof this.b[e]=="function")try{return this.b[e](...r)}catch{}switch(e){case"debug":break;case"info":break;case"warn":break;case"error":break;default:break}}debug(...e){return this.y("debug",e)}info(...e){return this.y("info",e)}warn(...e){return this.y("warn",e)}error(...e){return this.y("error",e)}Oe(e){this.b=e}};function _r(){return typeof global<"u"?(global[z]||(global[z]=new H),global[z]):typeof globalThis<"u"?(globalThis[z]||(globalThis[z]=new H),globalThis[z]):(ke||(ke=new H),ke)}var Te=class extends H{},ke=null;Ye.exports={Logger:Te,getLogger:_r}});var Ae=m((Pa,Pr)=>{Pr.exports={migrationDetailsTitle:"Explorer Dates - Settings Migration",migrationDetailsHeader:"Settings Migration",gitAttributionWarning:"Explorer Dates: Git attribution badges are unavailable on VS Code for Web. Time-based decorations remain available.",noOverridesToDocument:"No overrides to document.",overrideNotesHeader:"# Explorer Dates Override Notes\\n\\n",analysisCommandsDisabled:"Explorer Dates analysis commands are disabled. Shortcuts like Ctrl+Shift+M/H/A will not work until you enable explorerDates.enableAnalysisCommands.",analysisEnableNow:"Enable Now",analysisEnablePartially:"Enable partially succeeded. Update explorerDates.enableAnalysisCommands in remaining workspace folders manually.",analysisEnableFailed:"Enable failed: update explorerDates.enableAnalysisCommands in workspace settings.",workspaceTemplatesDisabled:"Workspace templates are disabled. Enable explorerDates.enableWorkspaceTemplates to use this command.",workspaceTemplatesDisabledSave:"Workspace templates are disabled. Enable explorerDates.enableWorkspaceTemplates to save templates.",enterTemplateName:"Enter template name",enterTemplateDescription:"Enter description (optional)",failedToOpenTemplateManager:"Failed to open template manager: {0}",failedToSaveTemplate:"Failed to save template: {0}",reportingDisabled:"Reporting features are disabled. Enable explorerDates.enableExportReporting to generate reports.",failedToGenerateReport:"Failed to generate report: {0}",apiDisabled:"Explorer Dates API is disabled via settings.",failedToShowApiInformation:"Failed to show API information: {0}",failedToShowWorkspaceActivity:"Failed to show workspace activity: {0}",failedToShowPerformanceAnalytics:"Failed to show performance analytics: {0}",failedToShowCacheDebugInfo:"Failed to show cache debug info: {0}",noWorkspaceFolderOpen:"No workspace folder open",now:"now",minutes:"m",hours:"h",days:"d",weeks:"w",months:"mo",years:"y",justNow:"just now",minutesAgo:"{0} minute(s) ago",hoursAgo:"{0} hour(s) ago",daysAgo:"{0} day(s) ago",lastModified:"Last modified",refreshSuccess:"Date decorations refreshed",activationError:"Explorer Dates failed to activate",errorAccessingFile:"Error accessing file for decoration",clearTelemetryPrompt:"This will permanently delete locally-stored telemetry events for Explorer Dates. This action cannot be undone. Proceed?",clearTelemetryConfirm:"Clear Telemetry",clearTelemetryCancel:"Cancel",reportFormatDisabled:'Report format "{0}" is disabled. Allowed formats: {1}',reportDownloadTriggered:"Report download triggered in browser",selectReportTimeRangePlaceholder:"Select report time range",selectReportFormatPlaceholder:"Select report format",cleanupNoDeprecated:"\u2139\uFE0F No deprecated settings found to clean up.",showMigrationHistoryNoHistory:"No migration history found.",resetConfirmation:"This will reset all Explorer Dates settings to their default values. Are you sure?",resetConfirm:"Reset Settings",resetCancel:"Cancel",resetSuccess:"\u2705 Reset {0} settings to defaults.",validateNoIssues:"\u2705 Configuration is valid - no issues found!",validateFoundIssues:"Found {0} configuration issue(s). Would you like to see details?",validateShowDetails:"Show Details",validateDismiss:"Dismiss",migrationNotificationMessage:"Explorer Dates updated {0} setting(s) for compatibility. Your configuration has been preserved.",migrationViewChanges:"View Changes",migrationOpenSettings:"Open Settings",deprecatedPrompt:"Explorer Dates found {0} deprecated setting(s). Would you like to remove them?",deprecatedClean:"Clean Up Now",deprecatedKeep:"Keep Old Settings",deprecatedAskLater:"Ask Later",showFileLocation:"Show File Location",teamConfigCorrupted:"Explorer Dates team configuration file appears to be corrupted. Please check the .explorer-dates-profiles.json file or restore from backup.",appliedFromTeamProfile:'Applied {0} Explorer Dates settings from team profile "{1}".',documentedOverrides:"Documented Explorer Dates overrides in .vscode/explorer-dates-overrides.md",teamConfigMissingProfile:"Team configuration is missing an active profile.",ephemeralStorageEnospc:"Explorer Dates team configuration could not be saved because the disk is full.",ephemeralStorageGeneric:"Explorer Dates team configuration could not be saved because the workspace is read-only or permissions are restricted.",ephemeralStorageSuffix:"Changes will be kept in memory until VS Code restarts, so they may be lost."}});var Xe=m((Ma,Mr)=>{Mr.exports={migrationDetailsTitle:"Explorer Dates - Migraci\xF3n de configuraci\xF3n",migrationDetailsHeader:"Migraci\xF3n de configuraci\xF3n",gitAttributionWarning:"Explorer Dates: Las insignias de atribuci\xF3n de Git no est\xE1n disponibles en VS Code para la Web. Las decoraciones basadas en tiempo siguen disponibles.",noOverridesToDocument:"No hay anulaciones para documentar.",overrideNotesHeader:"# Notas de anulaci\xF3n de Explorer Dates\\n\\n",analysisCommandsDisabled:"Los comandos de an\xE1lisis de Explorer Dates est\xE1n deshabilitados. Atajos como Ctrl+Shift+M/H/A no funcionar\xE1n hasta que habilites explorerDates.enableAnalysisCommands.",analysisEnableNow:"Habilitar ahora",analysisEnablePartially:"La activaci\xF3n se complet\xF3 parcialmente. Actualiza explorerDates.enableAnalysisCommands manualmente en las carpetas de trabajo restantes.",analysisEnableFailed:"Error al habilitar: actualiza explorerDates.enableAnalysisCommands en la configuraci\xF3n del espacio de trabajo.",workspaceTemplatesDisabled:"Las plantillas de espacio de trabajo est\xE1n deshabilitadas. Habilita explorerDates.enableWorkspaceTemplates para usar este comando.",workspaceTemplatesDisabledSave:"Las plantillas de espacio de trabajo est\xE1n deshabilitadas. Habilita explorerDates.enableWorkspaceTemplates para guardar plantillas.",enterTemplateName:"Introduce el nombre de la plantilla",enterTemplateDescription:"Introduce la descripci\xF3n (opcional)",failedToOpenTemplateManager:"Error al abrir el administrador de plantillas: {0}",failedToSaveTemplate:"Error al guardar la plantilla: {0}",reportingDisabled:"Las funciones de informes est\xE1n deshabilitadas. Habilita explorerDates.enableExportReporting para generar informes.",failedToGenerateReport:"Error al generar el informe: {0}",apiDisabled:"La API de Explorer Dates est\xE1 deshabilitada mediante la configuraci\xF3n.",failedToShowApiInformation:"Error al mostrar la informaci\xF3n de la API: {0}",failedToShowWorkspaceActivity:"Error al mostrar la actividad del espacio de trabajo: {0}",failedToShowPerformanceAnalytics:"Error al mostrar los an\xE1lisis de rendimiento: {0}",failedToShowCacheDebugInfo:"Error al mostrar la informaci\xF3n de depuraci\xF3n de la cach\xE9: {0}",noWorkspaceFolderOpen:"No hay ninguna carpeta de espacio de trabajo abierta",now:"ahora",minutes:"m",hours:"h",days:"d",weeks:"sem",months:"mes",years:"a",justNow:"justo ahora",minutesAgo:"hace {0} minuto(s)",hoursAgo:"hace {0} hora(s)",daysAgo:"hace {0} d\xEDa(s)",lastModified:"\xDAltima modificaci\xF3n",refreshSuccess:"Decoraciones de fecha actualizadas",activationError:"Explorer Dates no se pudo activar",errorAccessingFile:"Error al acceder al archivo para la decoraci\xF3n",clearTelemetryPrompt:"Esto eliminar\xE1 permanentemente los eventos de telemetr\xEDa almacenados localmente para Explorer Dates. Esta acci\xF3n no se puede deshacer. \xBFContinuar?",clearTelemetryConfirm:"Borrar telemetr\xEDa",clearTelemetryCancel:"Cancelar",reportFormatDisabled:'El formato de informe "{0}" est\xE1 deshabilitado. Formatos permitidos: {1}',reportDownloadTriggered:"Descarga del informe iniciada en el navegador",selectReportTimeRangePlaceholder:"Seleccionar rango de tiempo del informe",selectReportFormatPlaceholder:"Seleccionar formato del informe",cleanupNoDeprecated:"\u2139\uFE0F No se encontraron configuraciones obsoletas para limpiar.",showMigrationHistoryNoHistory:"No se encontr\xF3 historial de migraci\xF3n.",resetConfirmation:"Esto restablecer\xE1 todas las configuraciones de Explorer Dates a sus valores predeterminados. \xBFEst\xE1s seguro?",resetConfirm:"Restablecer configuraciones",resetCancel:"Cancelar",resetSuccess:"\u2705 Se restablecieron {0} configuraciones a los valores predeterminados.",validateNoIssues:"\u2705 La configuraci\xF3n es v\xE1lida - no se encontraron problemas.",validateFoundIssues:"Se encontraron {0} problema(s) de configuraci\xF3n. \xBFDeseas ver los detalles?",validateShowDetails:"Mostrar detalles",validateDismiss:"Descartar",migrationNotificationMessage:"Explorer Dates actualiz\xF3 {0} configuraci\xF3n(es) por compatibilidad. Tu configuraci\xF3n se ha conservado.",migrationViewChanges:"Ver cambios",migrationOpenSettings:"Abrir configuraciones",deprecatedPrompt:"Explorer Dates encontr\xF3 {0} configuraci\xF3n(es) obsoleta(s). \xBFDeseas eliminarlas?",deprecatedClean:"Limpiar ahora",deprecatedKeep:"Mantener configuraciones antiguas",deprecatedAskLater:"Preguntar m\xE1s tarde",showFileLocation:"Mostrar ubicaci\xF3n del archivo",teamConfigCorrupted:"El archivo de configuraci\xF3n de equipo de Explorer Dates parece estar da\xF1ado. Verifica el archivo .explorer-dates-profiles.json o restaura desde una copia de seguridad.",appliedFromTeamProfile:'Se aplicaron {0} configuraciones de Explorer Dates desde el perfil de equipo "{1}".',documentedOverrides:"Se documentaron las anulaciones de Explorer Dates en .vscode/explorer-dates-overrides.md",teamConfigMissingProfile:"La configuraci\xF3n del equipo no tiene un perfil activo.",ephemeralStorageEnospc:"No se pudo guardar la configuraci\xF3n de equipo de Explorer Dates porque el disco est\xE1 lleno.",ephemeralStorageGeneric:"No se pudo guardar la configuraci\xF3n de equipo de Explorer Dates porque el espacio de trabajo es de solo lectura o los permisos est\xE1n restringidos.",ephemeralStorageSuffix:"Los cambios se mantendr\xE1n en memoria hasta que VS Code se reinicie, por lo que podr\xEDan perderse."}});var Ze=m((Wa,Wr)=>{Wr.exports={migrationDetailsTitle:"Explorer Dates - Migration des param\xE8tres",migrationDetailsHeader:"Migration des param\xE8tres",gitAttributionWarning:"Explorer Dates : Les badges d\u2019attribution Git ne sont pas disponibles sur VS Code pour le Web. Les d\xE9corations bas\xE9es sur le temps restent disponibles.",noOverridesToDocument:"Aucune substitution \xE0 documenter.",overrideNotesHeader:"# Notes de substitution Explorer Dates\\n\\n",analysisCommandsDisabled:"Les commandes d\u2019analyse Explorer Dates sont d\xE9sactiv\xE9es. Les raccourcis comme Ctrl+Shift+M/H/A ne fonctionneront pas tant que vous n\u2019aurez pas activ\xE9 explorerDates.enableAnalysisCommands.",analysisEnableNow:"Activer maintenant",analysisEnablePartially:"L\u2019activation a partiellement r\xE9ussi. Mettez \xE0 jour explorerDates.enableAnalysisCommands manuellement dans les dossiers d\u2019espace de travail restants.",analysisEnableFailed:"\xC9chec de l\u2019activation : mettez \xE0 jour explorerDates.enableAnalysisCommands dans les param\xE8tres de l\u2019espace de travail.",workspaceTemplatesDisabled:"Les mod\xE8les d\u2019espace de travail sont d\xE9sactiv\xE9s. Activez explorerDates.enableWorkspaceTemplates pour utiliser cette commande.",workspaceTemplatesDisabledSave:"Les mod\xE8les d\u2019espace de travail sont d\xE9sactiv\xE9s. Activez explorerDates.enableWorkspaceTemplates pour enregistrer des mod\xE8les.",enterTemplateName:"Entrez le nom du mod\xE8le",enterTemplateDescription:"Entrez la description (facultatif)",failedToOpenTemplateManager:"Impossible d\u2019ouvrir le gestionnaire de mod\xE8les : {0}",failedToSaveTemplate:"Impossible d\u2019enregistrer le mod\xE8le : {0}",reportingDisabled:"Les fonctionnalit\xE9s de rapport sont d\xE9sactiv\xE9es. Activez explorerDates.enableExportReporting pour g\xE9n\xE9rer des rapports.",failedToGenerateReport:"Impossible de g\xE9n\xE9rer le rapport : {0}",apiDisabled:"L\u2019API Explorer Dates est d\xE9sactiv\xE9e via les param\xE8tres.",failedToShowApiInformation:"Impossible d\u2019afficher les informations de l\u2019API : {0}",failedToShowWorkspaceActivity:"Impossible d\u2019afficher l\u2019activit\xE9 de l\u2019espace de travail : {0}",failedToShowPerformanceAnalytics:"Impossible d\u2019afficher les analyses de performance : {0}",failedToShowCacheDebugInfo:"Impossible d\u2019afficher les informations de d\xE9bogage du cache : {0}",noWorkspaceFolderOpen:"Aucun dossier d\u2019espace de travail ouvert",now:"maintenant",minutes:"min",hours:"h",days:"j",weeks:"sem",months:"mois",years:"an",justNow:"\xE0 l\u2019instant",minutesAgo:"il y a {0} minute(s)",hoursAgo:"il y a {0} heure(s)",daysAgo:"il y a {0} jour(s)",lastModified:"Derni\xE8re modification",refreshSuccess:"D\xE9corations de date actualis\xE9es",activationError:"\xC9chec de l\u2019activation d\u2019Explorer Dates",errorAccessingFile:"Erreur lors de l\u2019acc\xE8s au fichier pour la d\xE9coration",clearTelemetryPrompt:"Cela supprimera d\xE9finitivement les \xE9v\xE9nements de t\xE9l\xE9m\xE9trie stock\xE9s localement pour Explorer Dates. Cette action est irr\xE9versible. Continuer ?",clearTelemetryConfirm:"Effacer la t\xE9l\xE9m\xE9trie",clearTelemetryCancel:"Annuler",reportFormatDisabled:'Le format de rapport "{0}" est d\xE9sactiv\xE9. Formats autoris\xE9s : {1}',reportDownloadTriggered:"T\xE9l\xE9chargement du rapport lanc\xE9 dans le navigateur",selectReportTimeRangePlaceholder:"S\xE9lectionner la p\xE9riode du rapport",selectReportFormatPlaceholder:"S\xE9lectionner le format du rapport",cleanupNoDeprecated:"\u2139\uFE0F Aucun param\xE8tre obsol\xE8te \xE0 nettoyer.",showMigrationHistoryNoHistory:"Aucun historique de migration trouv\xE9.",resetConfirmation:"Cela r\xE9initialisera tous les param\xE8tres Explorer Dates \xE0 leurs valeurs par d\xE9faut. \xCAtes-vous s\xFBr ?",resetConfirm:"R\xE9initialiser les param\xE8tres",resetCancel:"Annuler",resetSuccess:"\u2705 {0} param\xE8tres ont \xE9t\xE9 r\xE9initialis\xE9s aux valeurs par d\xE9faut.",validateNoIssues:"\u2705 La configuration est valide - aucun probl\xE8me d\xE9tect\xE9 !",validateFoundIssues:"{0} probl\xE8me(s) de configuration trouv\xE9(s). Voulez-vous voir les d\xE9tails ?",validateShowDetails:"Afficher les d\xE9tails",validateDismiss:"Ignorer",migrationNotificationMessage:"Explorer Dates a mis \xE0 jour {0} param\xE8tre(s) pour compatibilit\xE9. Votre configuration a \xE9t\xE9 conserv\xE9e.",migrationViewChanges:"Voir les modifications",migrationOpenSettings:"Ouvrir les param\xE8tres",deprecatedPrompt:"Explorer Dates a trouv\xE9 {0} param\xE8tre(s) obsol\xE8te(s). Voulez-vous les supprimer ?",deprecatedClean:"Nettoyer maintenant",deprecatedKeep:"Conserver les anciens param\xE8tres",deprecatedAskLater:"Demander plus tard",showFileLocation:"Afficher l\u2019emplacement du fichier",teamConfigCorrupted:"Le fichier de configuration d\u2019\xE9quipe Explorer Dates semble corrompu. V\xE9rifiez le fichier .explorer-dates-profiles.json ou restaurez-le depuis une sauvegarde.",appliedFromTeamProfile:'{0} param\xE8tres Explorer Dates appliqu\xE9s depuis le profil d\u2019\xE9quipe "{1}".',documentedOverrides:"Substitutions Explorer Dates document\xE9es dans .vscode/explorer-dates-overrides.md",teamConfigMissingProfile:"La configuration d\u2019\xE9quipe ne contient aucun profil actif.",ephemeralStorageEnospc:"Impossible d\u2019enregistrer la configuration d\u2019\xE9quipe Explorer Dates car le disque est plein.",ephemeralStorageGeneric:"Impossible d\u2019enregistrer la configuration d\u2019\xE9quipe Explorer Dates car l\u2019espace de travail est en lecture seule ou les permissions sont restreintes.",ephemeralStorageSuffix:"Les modifications seront conserv\xE9es en m\xE9moire jusqu\u2019au red\xE9marrage de VS Code et pourraient \xEAtre perdues."}});var Je=m((Ia,Ir)=>{Ir.exports={migrationDetailsTitle:"Explorer Dates - Einstellungen migrieren",migrationDetailsHeader:"Einstellungen migrieren",gitAttributionWarning:"Explorer Dates: Git-Zuordnungsabzeichen sind in VS Code f\xFCr das Web nicht verf\xFCgbar. Zeitbasierte Hervorhebungen bleiben verf\xFCgbar.",noOverridesToDocument:"Keine \xDCberschreibungen zu dokumentieren.",overrideNotesHeader:"# Explorer Dates \xDCberschreibungsnotizen\\n\\n",analysisCommandsDisabled:"Die Analysebefehle von Explorer Dates sind deaktiviert. Tastenkombinationen wie Ctrl+Shift+M/H/A funktionieren nicht, bis explorerDates.enableAnalysisCommands aktiviert ist.",analysisEnableNow:"Jetzt aktivieren",analysisEnablePartially:"Die Aktivierung war teilweise erfolgreich. Aktualisieren Sie explorerDates.enableAnalysisCommands manuell in den verbleibenden Workspace-Ordnern.",analysisEnableFailed:"Aktivierung fehlgeschlagen: Aktualisieren Sie explorerDates.enableAnalysisCommands in den Workspace-Einstellungen.",workspaceTemplatesDisabled:"Workspace-Vorlagen sind deaktiviert. Aktivieren Sie explorerDates.enableWorkspaceTemplates, um diesen Befehl zu verwenden.",workspaceTemplatesDisabledSave:"Workspace-Vorlagen sind deaktiviert. Aktivieren Sie explorerDates.enableWorkspaceTemplates, um Vorlagen zu speichern.",enterTemplateName:"Vorlagenname eingeben",enterTemplateDescription:"Beschreibung eingeben (optional)",failedToOpenTemplateManager:"Fehler beim \xD6ffnen des Vorlagenmanagers: {0}",failedToSaveTemplate:"Fehler beim Speichern der Vorlage: {0}",reportingDisabled:"Berichtsfunktionen sind deaktiviert. Aktivieren Sie explorerDates.enableExportReporting, um Berichte zu erstellen.",failedToGenerateReport:"Fehler beim Erstellen des Berichts: {0}",apiDisabled:"Die Explorer Dates API ist in den Einstellungen deaktiviert.",failedToShowApiInformation:"Fehler beim Anzeigen der API-Informationen: {0}",failedToShowWorkspaceActivity:"Fehler beim Anzeigen der Workspace-Aktivit\xE4t: {0}",failedToShowPerformanceAnalytics:"Fehler beim Anzeigen der Leistungsanalysen: {0}",failedToShowCacheDebugInfo:"Fehler beim Anzeigen der Cache-Debug-Informationen: {0}",noWorkspaceFolderOpen:"Kein Workspace-Ordner ge\xF6ffnet",now:"jetzt",minutes:"Min",hours:"Std",days:"T",weeks:"W",months:"Mon",years:"J",justNow:"gerade eben",minutesAgo:"vor {0} Minute(n)",hoursAgo:"vor {0} Stunde(n)",daysAgo:"vor {0} Tag(en)",lastModified:"Zuletzt ge\xE4ndert",refreshSuccess:"Datumsdekorationen aktualisiert",activationError:"Explorer Dates konnte nicht aktiviert werden",errorAccessingFile:"Fehler beim Zugriff auf Datei f\xFCr Dekoration",clearTelemetryPrompt:"Dies l\xF6scht dauerhaft lokal gespeicherte Telemetrieereignisse f\xFCr Explorer Dates. Diese Aktion kann nicht r\xFCckg\xE4ngig gemacht werden. Fortfahren?",clearTelemetryConfirm:"Telemetrie l\xF6schen",clearTelemetryCancel:"Abbrechen",reportFormatDisabled:'Berichtsformat "{0}" ist deaktiviert. Zul\xE4ssige Formate: {1}',reportDownloadTriggered:"Bericht-Download im Browser gestartet",selectReportTimeRangePlaceholder:"Berichtszeitraum ausw\xE4hlen",selectReportFormatPlaceholder:"Berichtsformat ausw\xE4hlen",cleanupNoDeprecated:"\u2139\uFE0F Keine veralteten Einstellungen zum Bereinigen gefunden.",showMigrationHistoryNoHistory:"Kein Migrationsverlauf gefunden.",resetConfirmation:"Dies setzt alle Explorer Dates Einstellungen auf ihre Standardwerte zur\xFCck. Sind Sie sicher?",resetConfirm:"Einstellungen zur\xFCcksetzen",resetCancel:"Abbrechen",resetSuccess:"\u2705 {0} Einstellungen auf Standard zur\xFCckgesetzt.",validateNoIssues:"\u2705 Konfiguration ist g\xFCltig - keine Probleme gefunden!",validateFoundIssues:"{0} Konfigurationsproblem(e) gefunden. M\xF6chten Sie Details sehen?",validateShowDetails:"Details anzeigen",validateDismiss:"Verwerfen",migrationNotificationMessage:"Explorer Dates hat {0} Einstellung(en) zur Kompatibilit\xE4t aktualisiert. Ihre Konfiguration wurde beibehalten.",migrationViewChanges:"\xC4nderungen anzeigen",migrationOpenSettings:"Einstellungen \xF6ffnen",deprecatedPrompt:"Explorer Dates hat {0} veraltete Einstellung(en) gefunden. M\xF6chten Sie sie entfernen?",deprecatedClean:"Jetzt bereinigen",deprecatedKeep:"Alte Einstellungen behalten",deprecatedAskLater:"Sp\xE4ter fragen",showFileLocation:"Dateispeicherort anzeigen",teamConfigCorrupted:"Die Teamkonfigurationsdatei von Explorer Dates scheint besch\xE4digt zu sein. Bitte pr\xFCfen Sie die Datei .explorer-dates-profiles.json oder stellen Sie sie aus einem Backup wieder her.",appliedFromTeamProfile:'{0} Explorer Dates-Einstellungen aus dem Teamprofil "{1}" angewendet.',documentedOverrides:"Explorer Dates-\xDCberschreibungen in .vscode/explorer-dates-overrides.md dokumentiert",teamConfigMissingProfile:"Der Teamkonfiguration fehlt ein aktives Profil.",ephemeralStorageEnospc:"Die Teamkonfiguration von Explorer Dates konnte nicht gespeichert werden, da die Festplatte voll ist.",ephemeralStorageGeneric:"Die Teamkonfiguration von Explorer Dates konnte nicht gespeichert werden, da der Workspace schreibgesch\xFCtzt ist oder die Berechtigungen eingeschr\xE4nkt sind.",ephemeralStorageSuffix:"\xC4nderungen werden im Speicher behalten, bis VS Code neu startet, und k\xF6nnen verloren gehen."}});var Qe=m((La,Lr)=>{Lr.exports={migrationDetailsTitle:"Explorer Dates - \u8A2D\u5B9A\u306E\u79FB\u884C",migrationDetailsHeader:"\u8A2D\u5B9A\u306E\u79FB\u884C",gitAttributionWarning:"Explorer Dates: Git \u306E\u5E30\u5C5E\u30D0\u30C3\u30B8\u306F VS Code for Web \u3067\u306F\u5229\u7528\u3067\u304D\u307E\u305B\u3093\u3002\u6642\u9593\u30D9\u30FC\u30B9\u306E\u88C5\u98FE\u306F\u5F15\u304D\u7D9A\u304D\u5229\u7528\u3067\u304D\u307E\u3059\u3002",noOverridesToDocument:"\u30C9\u30AD\u30E5\u30E1\u30F3\u30C8\u5316\u3059\u308B\u4E0A\u66F8\u304D\u306F\u3042\u308A\u307E\u305B\u3093\u3002",overrideNotesHeader:"# Explorer Dates \u4E0A\u66F8\u304D\u30E1\u30E2\\n\\n",analysisCommandsDisabled:"Explorer Dates \u306E\u5206\u6790\u30B3\u30DE\u30F3\u30C9\u306F\u7121\u52B9\u306B\u306A\u3063\u3066\u3044\u307E\u3059\u3002Ctrl+Shift+M/H/A \u306A\u3069\u306E\u30B7\u30E7\u30FC\u30C8\u30AB\u30C3\u30C8\u306F explorerDates.enableAnalysisCommands \u3092\u6709\u52B9\u306B\u3059\u308B\u307E\u3067\u6A5F\u80FD\u3057\u307E\u305B\u3093\u3002",analysisEnableNow:"\u4ECA\u3059\u3050\u6709\u52B9\u306B\u3059\u308B",analysisEnablePartially:"\u6709\u52B9\u5316\u306F\u4E00\u90E8\u6210\u529F\u3057\u307E\u3057\u305F\u3002\u6B8B\u308A\u306E\u30EF\u30FC\u30AF\u30B9\u30DA\u30FC\u30B9\u30D5\u30A9\u30EB\u30C0\u30FC\u3067 explorerDates.enableAnalysisCommands \u3092\u624B\u52D5\u3067\u66F4\u65B0\u3057\u3066\u304F\u3060\u3055\u3044\u3002",analysisEnableFailed:"\u6709\u52B9\u5316\u306B\u5931\u6557\u3057\u307E\u3057\u305F\uFF1A\u30EF\u30FC\u30AF\u30B9\u30DA\u30FC\u30B9\u8A2D\u5B9A\u3067 explorerDates.enableAnalysisCommands \u3092\u66F4\u65B0\u3057\u3066\u304F\u3060\u3055\u3044\u3002",workspaceTemplatesDisabled:"\u30EF\u30FC\u30AF\u30B9\u30DA\u30FC\u30B9\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8\u306F\u7121\u52B9\u306B\u306A\u3063\u3066\u3044\u307E\u3059\u3002\u3053\u306E\u30B3\u30DE\u30F3\u30C9\u3092\u4F7F\u7528\u3059\u308B\u306B\u306F explorerDates.enableWorkspaceTemplates \u3092\u6709\u52B9\u306B\u3057\u3066\u304F\u3060\u3055\u3044\u3002",workspaceTemplatesDisabledSave:"\u30EF\u30FC\u30AF\u30B9\u30DA\u30FC\u30B9\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8\u306F\u7121\u52B9\u306B\u306A\u3063\u3066\u3044\u307E\u3059\u3002\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8\u3092\u4FDD\u5B58\u3059\u308B\u306B\u306F explorerDates.enableWorkspaceTemplates \u3092\u6709\u52B9\u306B\u3057\u3066\u304F\u3060\u3055\u3044\u3002",enterTemplateName:"\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8\u540D\u3092\u5165\u529B",enterTemplateDescription:"\u8AAC\u660E\u3092\u5165\u529B\uFF08\u4EFB\u610F\uFF09",failedToOpenTemplateManager:"\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8\u30DE\u30CD\u30FC\u30B8\u30E3\u30FC\u3092\u958B\u3051\u307E\u305B\u3093\u3067\u3057\u305F: {0}",failedToSaveTemplate:"\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8\u306E\u4FDD\u5B58\u306B\u5931\u6557\u3057\u307E\u3057\u305F: {0}",reportingDisabled:"\u30EC\u30DD\u30FC\u30C8\u6A5F\u80FD\u306F\u7121\u52B9\u306B\u306A\u3063\u3066\u3044\u307E\u3059\u3002\u30EC\u30DD\u30FC\u30C8\u3092\u751F\u6210\u3059\u308B\u306B\u306F explorerDates.enableExportReporting \u3092\u6709\u52B9\u306B\u3057\u3066\u304F\u3060\u3055\u3044\u3002",failedToGenerateReport:"\u30EC\u30DD\u30FC\u30C8\u306E\u751F\u6210\u306B\u5931\u6557\u3057\u307E\u3057\u305F: {0}",apiDisabled:"Explorer Dates API \u306F\u8A2D\u5B9A\u3067\u7121\u52B9\u306B\u306A\u3063\u3066\u3044\u307E\u3059\u3002",failedToShowApiInformation:"API \u60C5\u5831\u306E\u8868\u793A\u306B\u5931\u6557\u3057\u307E\u3057\u305F: {0}",failedToShowWorkspaceActivity:"\u30EF\u30FC\u30AF\u30B9\u30DA\u30FC\u30B9\u306E\u30A2\u30AF\u30C6\u30A3\u30D3\u30C6\u30A3\u3092\u8868\u793A\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F: {0}",failedToShowPerformanceAnalytics:"\u30D1\u30D5\u30A9\u30FC\u30DE\u30F3\u30B9\u5206\u6790\u3092\u8868\u793A\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F: {0}",failedToShowCacheDebugInfo:"\u30AD\u30E3\u30C3\u30B7\u30E5\u306E\u30C7\u30D0\u30C3\u30B0\u60C5\u5831\u3092\u8868\u793A\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F: {0}",noWorkspaceFolderOpen:"\u30EF\u30FC\u30AF\u30B9\u30DA\u30FC\u30B9\u30D5\u30A9\u30EB\u30C0\u30FC\u304C\u958B\u304B\u308C\u3066\u3044\u307E\u305B\u3093",now:"\u4ECA",minutes:"\u5206",hours:"\u6642\u9593",days:"\u65E5",weeks:"\u9031",months:"\u304B\u6708",years:"\u5E74",justNow:"\u305F\u3063\u305F\u4ECA",minutesAgo:"{0} \u5206\u524D",hoursAgo:"{0} \u6642\u9593\u524D",daysAgo:"{0} \u65E5\u524D",lastModified:"\u6700\u7D42\u66F4\u65B0",refreshSuccess:"\u65E5\u4ED8\u88C5\u98FE\u3092\u66F4\u65B0\u3057\u307E\u3057\u305F",activationError:"Explorer Dates \u306E\u6709\u52B9\u5316\u306B\u5931\u6557\u3057\u307E\u3057\u305F",errorAccessingFile:"\u88C5\u98FE\u7528\u30D5\u30A1\u30A4\u30EB\u3078\u306E\u30A2\u30AF\u30BB\u30B9\u30A8\u30E9\u30FC",clearTelemetryPrompt:"Explorer Dates \u306E\u30ED\u30FC\u30AB\u30EB\u4FDD\u5B58\u30C6\u30EC\u30E1\u30C8\u30EA\u30A4\u30D9\u30F3\u30C8\u3092\u5B8C\u5168\u306B\u524A\u9664\u3057\u307E\u3059\u3002\u3053\u306E\u64CD\u4F5C\u306F\u5143\u306B\u623B\u305B\u307E\u305B\u3093\u3002\u7D9A\u884C\u3057\u307E\u3059\u304B\uFF1F",clearTelemetryConfirm:"\u30C6\u30EC\u30E1\u30C8\u30EA\u3092\u524A\u9664",clearTelemetryCancel:"\u30AD\u30E3\u30F3\u30BB\u30EB",reportFormatDisabled:"\u30EC\u30DD\u30FC\u30C8\u5F62\u5F0F\u300C{0}\u300D\u306F\u7121\u52B9\u3067\u3059\u3002\u8A31\u53EF\u3055\u308C\u3066\u3044\u308B\u5F62\u5F0F: {1}",reportDownloadTriggered:"\u30D6\u30E9\u30A6\u30B6\u3067\u30EC\u30DD\u30FC\u30C8\u306E\u30C0\u30A6\u30F3\u30ED\u30FC\u30C9\u3092\u958B\u59CB\u3057\u307E\u3057\u305F",selectReportTimeRangePlaceholder:"\u30EC\u30DD\u30FC\u30C8\u306E\u671F\u9593\u3092\u9078\u629E",selectReportFormatPlaceholder:"\u30EC\u30DD\u30FC\u30C8\u5F62\u5F0F\u3092\u9078\u629E",cleanupNoDeprecated:"\u2139\uFE0F \u30AF\u30EA\u30FC\u30F3\u30A2\u30C3\u30D7\u3059\u308B\u975E\u63A8\u5968\u8A2D\u5B9A\u306F\u3042\u308A\u307E\u305B\u3093\u3002",showMigrationHistoryNoHistory:"\u79FB\u884C\u5C65\u6B74\u304C\u898B\u3064\u304B\u308A\u307E\u305B\u3093\u3002",resetConfirmation:"Explorer Dates \u306E\u3059\u3079\u3066\u306E\u8A2D\u5B9A\u3092\u65E2\u5B9A\u5024\u306B\u30EA\u30BB\u30C3\u30C8\u3057\u307E\u3059\u3002\u3088\u308D\u3057\u3044\u3067\u3059\u304B\uFF1F",resetConfirm:"\u8A2D\u5B9A\u3092\u30EA\u30BB\u30C3\u30C8",resetCancel:"\u30AD\u30E3\u30F3\u30BB\u30EB",resetSuccess:"\u2705 {0} \u4EF6\u306E\u8A2D\u5B9A\u3092\u65E2\u5B9A\u5024\u306B\u30EA\u30BB\u30C3\u30C8\u3057\u307E\u3057\u305F\u3002",validateNoIssues:"\u2705 \u8A2D\u5B9A\u306F\u6709\u52B9\u3067\u3059 - \u554F\u984C\u306F\u898B\u3064\u304B\u308A\u307E\u305B\u3093\u3067\u3057\u305F\uFF01",validateFoundIssues:"{0} \u4EF6\u306E\u8A2D\u5B9A\u554F\u984C\u304C\u898B\u3064\u304B\u308A\u307E\u3057\u305F\u3002\u8A73\u7D30\u3092\u8868\u793A\u3057\u307E\u3059\u304B\uFF1F",validateShowDetails:"\u8A73\u7D30\u3092\u8868\u793A",validateDismiss:"\u9589\u3058\u308B",migrationNotificationMessage:"Explorer Dates \u306F\u4E92\u63DB\u6027\u306E\u305F\u3081\u306B {0} \u4EF6\u306E\u8A2D\u5B9A\u3092\u66F4\u65B0\u3057\u307E\u3057\u305F\u3002\u8A2D\u5B9A\u306F\u4FDD\u6301\u3055\u308C\u3066\u3044\u307E\u3059\u3002",migrationViewChanges:"\u5909\u66F4\u3092\u8868\u793A",migrationOpenSettings:"\u8A2D\u5B9A\u3092\u958B\u304F",deprecatedPrompt:"Explorer Dates \u306F {0} \u4EF6\u306E\u975E\u63A8\u5968\u8A2D\u5B9A\u3092\u691C\u51FA\u3057\u307E\u3057\u305F\u3002\u524A\u9664\u3057\u307E\u3059\u304B\uFF1F",deprecatedClean:"\u4ECA\u3059\u3050\u30AF\u30EA\u30FC\u30F3\u30A2\u30C3\u30D7",deprecatedKeep:"\u53E4\u3044\u8A2D\u5B9A\u3092\u4FDD\u6301",deprecatedAskLater:"\u5F8C\u3067\u78BA\u8A8D",showFileLocation:"\u30D5\u30A1\u30A4\u30EB\u306E\u5834\u6240\u3092\u8868\u793A",teamConfigCorrupted:"Explorer Dates \u306E\u30C1\u30FC\u30E0\u8A2D\u5B9A\u30D5\u30A1\u30A4\u30EB\u304C\u7834\u640D\u3057\u3066\u3044\u308B\u53EF\u80FD\u6027\u304C\u3042\u308A\u307E\u3059\u3002.explorer-dates-profiles.json \u3092\u78BA\u8A8D\u3059\u308B\u304B\u30D0\u30C3\u30AF\u30A2\u30C3\u30D7\u304B\u3089\u5FA9\u5143\u3057\u3066\u304F\u3060\u3055\u3044\u3002",appliedFromTeamProfile:"\u30C1\u30FC\u30E0\u30D7\u30ED\u30D5\u30A1\u30A4\u30EB\u300C{1}\u300D\u304B\u3089 {0} \u4EF6\u306E Explorer Dates \u8A2D\u5B9A\u3092\u9069\u7528\u3057\u307E\u3057\u305F\u3002",documentedOverrides:".vscode/explorer-dates-overrides.md \u306B Explorer Dates \u306E\u4E0A\u66F8\u304D\u3092\u8A18\u9332\u3057\u307E\u3057\u305F",teamConfigMissingProfile:"\u30C1\u30FC\u30E0\u8A2D\u5B9A\u306B\u30A2\u30AF\u30C6\u30A3\u30D6\u306A\u30D7\u30ED\u30D5\u30A1\u30A4\u30EB\u304C\u3042\u308A\u307E\u305B\u3093\u3002",ephemeralStorageEnospc:"\u30C7\u30A3\u30B9\u30AF\u5BB9\u91CF\u4E0D\u8DB3\u306E\u305F\u3081\u3001Explorer Dates \u306E\u30C1\u30FC\u30E0\u8A2D\u5B9A\u3092\u4FDD\u5B58\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002",ephemeralStorageGeneric:"\u30EF\u30FC\u30AF\u30B9\u30DA\u30FC\u30B9\u304C\u8AAD\u307F\u53D6\u308A\u5C02\u7528\u3001\u307E\u305F\u306F\u6A29\u9650\u304C\u5236\u9650\u3055\u308C\u3066\u3044\u308B\u305F\u3081\u3001Explorer Dates \u306E\u30C1\u30FC\u30E0\u8A2D\u5B9A\u3092\u4FDD\u5B58\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002",ephemeralStorageSuffix:"\u5909\u66F4\u306F VS Code \u304C\u518D\u8D77\u52D5\u3059\u308B\u307E\u3067\u30E1\u30E2\u30EA\u306B\u4FDD\u6301\u3055\u308C\u308B\u305F\u3081\u3001\u5931\u308F\u308C\u308B\u53EF\u80FD\u6027\u304C\u3042\u308A\u307E\u3059\u3002"}});var et=m((Oa,Or)=>{Or.exports={migrationDetailsTitle:"Explorer Dates - \u8BBE\u7F6E\u8FC1\u79FB",migrationDetailsHeader:"\u8BBE\u7F6E\u8FC1\u79FB",gitAttributionWarning:"Explorer Dates\uFF1AGit \u5F52\u5C5E\u5FBD\u7AE0\u5728 VS Code Web \u7248\u4E2D\u4E0D\u53EF\u7528\u3002\u57FA\u4E8E\u65F6\u95F4\u7684\u88C5\u9970\u4ECD\u7136\u53EF\u7528\u3002",noOverridesToDocument:"\u6CA1\u6709\u9700\u8981\u8BB0\u5F55\u7684\u8986\u76D6\u9879\u3002",overrideNotesHeader:"# Explorer Dates \u8986\u76D6\u8BF4\u660E\\n\\n",analysisCommandsDisabled:"Explorer Dates \u5206\u6790\u547D\u4EE4\u5DF2\u7981\u7528\u3002\u5728\u542F\u7528 explorerDates.enableAnalysisCommands \u4E4B\u524D\uFF0CCtrl+Shift+M/H/A \u7B49\u5FEB\u6377\u952E\u5C06\u65E0\u6CD5\u4F7F\u7528\u3002",analysisEnableNow:"\u7ACB\u5373\u542F\u7528",analysisEnablePartially:"\u542F\u7528\u90E8\u5206\u6210\u529F\u3002\u8BF7\u5728\u5269\u4F59\u7684\u5DE5\u4F5C\u533A\u6587\u4EF6\u5939\u4E2D\u624B\u52A8\u66F4\u65B0 explorerDates.enableAnalysisCommands\u3002",analysisEnableFailed:"\u542F\u7528\u5931\u8D25\uFF1A\u8BF7\u5728\u5DE5\u4F5C\u533A\u8BBE\u7F6E\u4E2D\u66F4\u65B0 explorerDates.enableAnalysisCommands\u3002",workspaceTemplatesDisabled:"\u5DE5\u4F5C\u533A\u6A21\u677F\u5DF2\u7981\u7528\u3002\u542F\u7528 explorerDates.enableWorkspaceTemplates \u4EE5\u4F7F\u7528\u6B64\u547D\u4EE4\u3002",workspaceTemplatesDisabledSave:"\u5DE5\u4F5C\u533A\u6A21\u677F\u5DF2\u7981\u7528\u3002\u542F\u7528 explorerDates.enableWorkspaceTemplates \u4EE5\u4FDD\u5B58\u6A21\u677F\u3002",enterTemplateName:"\u8F93\u5165\u6A21\u677F\u540D\u79F0",enterTemplateDescription:"\u8F93\u5165\u63CF\u8FF0\uFF08\u53EF\u9009\uFF09",failedToOpenTemplateManager:"\u65E0\u6CD5\u6253\u5F00\u6A21\u677F\u7BA1\u7406\u5668\uFF1A{0}",failedToSaveTemplate:"\u4FDD\u5B58\u6A21\u677F\u5931\u8D25\uFF1A{0}",reportingDisabled:"\u62A5\u8868\u529F\u80FD\u5DF2\u7981\u7528\u3002\u542F\u7528 explorerDates.enableExportReporting \u4EE5\u751F\u6210\u62A5\u8868\u3002",failedToGenerateReport:"\u751F\u6210\u62A5\u8868\u5931\u8D25\uFF1A{0}",apiDisabled:"Explorer Dates API \u5DF2\u901A\u8FC7\u8BBE\u7F6E\u7981\u7528\u3002",failedToShowApiInformation:"\u663E\u793A API \u4FE1\u606F\u5931\u8D25\uFF1A{0}",failedToShowWorkspaceActivity:"\u663E\u793A\u5DE5\u4F5C\u533A\u6D3B\u52A8\u5931\u8D25\uFF1A{0}",failedToShowPerformanceAnalytics:"\u663E\u793A\u6027\u80FD\u5206\u6790\u5931\u8D25\uFF1A{0}",failedToShowCacheDebugInfo:"\u663E\u793A\u7F13\u5B58\u8C03\u8BD5\u4FE1\u606F\u5931\u8D25\uFF1A{0}",noWorkspaceFolderOpen:"\u672A\u6253\u5F00\u4EFB\u4F55\u5DE5\u4F5C\u533A\u6587\u4EF6\u5939",now:"\u73B0\u5728",minutes:"\u5206",hours:"\u5C0F\u65F6",days:"\u5929",weeks:"\u5468",months:"\u4E2A\u6708",years:"\u5E74",justNow:"\u521A\u521A",minutesAgo:"{0} \u5206\u949F\u524D",hoursAgo:"{0} \u5C0F\u65F6\u524D",daysAgo:"{0} \u5929\u524D",lastModified:"\u6700\u540E\u4FEE\u6539",refreshSuccess:"\u65E5\u671F\u88C5\u9970\u5DF2\u5237\u65B0",activationError:"Explorer Dates \u542F\u52A8\u5931\u8D25",errorAccessingFile:"\u8BBF\u95EE\u7528\u4E8E\u88C5\u9970\u7684\u6587\u4EF6\u65F6\u51FA\u9519",clearTelemetryPrompt:"\u8FD9\u5C06\u6C38\u4E45\u5220\u9664\u672C\u5730\u5B58\u50A8\u7684 Explorer Dates \u9065\u6D4B\u4E8B\u4EF6\u3002\u6B64\u64CD\u4F5C\u65E0\u6CD5\u64A4\u9500\u3002\u662F\u5426\u7EE7\u7EED\uFF1F",clearTelemetryConfirm:"\u6E05\u9664\u9065\u6D4B",clearTelemetryCancel:"\u53D6\u6D88",reportFormatDisabled:"\u62A5\u8868\u683C\u5F0F\u201C{0}\u201D\u5DF2\u7981\u7528\u3002\u5141\u8BB8\u7684\u683C\u5F0F\uFF1A{1}",reportDownloadTriggered:"\u5DF2\u5728\u6D4F\u89C8\u5668\u4E2D\u89E6\u53D1\u62A5\u8868\u4E0B\u8F7D",selectReportTimeRangePlaceholder:"\u9009\u62E9\u62A5\u8868\u65F6\u95F4\u8303\u56F4",selectReportFormatPlaceholder:"\u9009\u62E9\u62A5\u8868\u683C\u5F0F",cleanupNoDeprecated:"\u2139\uFE0F \u672A\u53D1\u73B0\u9700\u8981\u6E05\u7406\u7684\u5DF2\u5F03\u7528\u8BBE\u7F6E\u3002",showMigrationHistoryNoHistory:"\u672A\u627E\u5230\u8FC1\u79FB\u5386\u53F2\u3002",resetConfirmation:"\u8FD9\u5C06\u628A\u6240\u6709 Explorer Dates \u8BBE\u7F6E\u91CD\u7F6E\u4E3A\u9ED8\u8BA4\u503C\u3002\u786E\u5B9A\u5417\uFF1F",resetConfirm:"\u91CD\u7F6E\u8BBE\u7F6E",resetCancel:"\u53D6\u6D88",resetSuccess:"\u2705 \u5DF2\u5C06 {0} \u9879\u8BBE\u7F6E\u91CD\u7F6E\u4E3A\u9ED8\u8BA4\u503C\u3002",validateNoIssues:"\u2705 \u914D\u7F6E\u6709\u6548 - \u672A\u53D1\u73B0\u95EE\u9898\uFF01",validateFoundIssues:"\u53D1\u73B0 {0} \u4E2A\u914D\u7F6E\u95EE\u9898\u3002\u662F\u5426\u67E5\u770B\u8BE6\u7EC6\u4FE1\u606F\uFF1F",validateShowDetails:"\u663E\u793A\u8BE6\u7EC6\u4FE1\u606F",validateDismiss:"\u5173\u95ED",migrationNotificationMessage:"Explorer Dates \u4E3A\u517C\u5BB9\u6027\u66F4\u65B0\u4E86 {0} \u9879\u8BBE\u7F6E\u3002\u60A8\u7684\u914D\u7F6E\u5DF2\u4FDD\u7559\u3002",migrationViewChanges:"\u67E5\u770B\u66F4\u6539",migrationOpenSettings:"\u6253\u5F00\u8BBE\u7F6E",deprecatedPrompt:"Explorer Dates \u53D1\u73B0 {0} \u4E2A\u5DF2\u5F03\u7528\u8BBE\u7F6E\u3002\u662F\u5426\u5220\u9664\uFF1F",deprecatedClean:"\u7ACB\u5373\u6E05\u7406",deprecatedKeep:"\u4FDD\u7559\u65E7\u8BBE\u7F6E",deprecatedAskLater:"\u7A0D\u540E\u8BE2\u95EE",showFileLocation:"\u663E\u793A\u6587\u4EF6\u4F4D\u7F6E",teamConfigCorrupted:"Explorer Dates \u56E2\u961F\u914D\u7F6E\u6587\u4EF6\u4F3C\u4E4E\u5DF2\u635F\u574F\u3002\u8BF7\u68C0\u67E5 .explorer-dates-profiles.json \u6587\u4EF6\u6216\u4ECE\u5907\u4EFD\u6062\u590D\u3002",appliedFromTeamProfile:"\u5DF2\u4ECE\u56E2\u961F\u914D\u7F6E\u6587\u4EF6\u201C{1}\u201D\u5E94\u7528 {0} \u9879 Explorer Dates \u8BBE\u7F6E\u3002",documentedOverrides:"\u5DF2\u5728 .vscode/explorer-dates-overrides.md \u4E2D\u8BB0\u5F55 Explorer Dates \u8986\u76D6\u9879",teamConfigMissingProfile:"\u56E2\u961F\u914D\u7F6E\u7F3A\u5C11\u6D3B\u52A8\u914D\u7F6E\u6587\u4EF6\u3002",ephemeralStorageEnospc:"\u7531\u4E8E\u78C1\u76D8\u5DF2\u6EE1\uFF0C\u65E0\u6CD5\u4FDD\u5B58 Explorer Dates \u56E2\u961F\u914D\u7F6E\u3002",ephemeralStorageGeneric:"\u7531\u4E8E\u5DE5\u4F5C\u533A\u4E3A\u53EA\u8BFB\u6216\u6743\u9650\u53D7\u9650\uFF0C\u65E0\u6CD5\u4FDD\u5B58 Explorer Dates \u56E2\u961F\u914D\u7F6E\u3002",ephemeralStorageSuffix:"\u66F4\u6539\u5C06\u5728 VS Code \u91CD\u542F\u524D\u4FDD\u5B58\u5728\u5185\u5B58\u4E2D\uFF0C\u56E0\u6B64\u53EF\u80FD\u4F1A\u4E22\u5931\u3002"}});var rt=m((Na,tt)=>{var L={};L.en=Ae();L.es=Xe();L.fr=Ze();L.de=Je();L.ja=Qe();L.zh=et();tt.exports=L});var at=m(($a,nt)=>{var O=require("vscode"),M={en:{now:"now",minutes:"m",hours:"h",days:"d",weeks:"w",months:"mo",years:"y",justNow:"just now",minutesAgo:t=>`${t} minute${t!==1?"s":""} ago`,hoursAgo:t=>`${t} hour${t!==1?"s":""} ago`,yesterday:"yesterday",daysAgo:t=>`${t} day${t!==1?"s":""} ago`,lastModified:"Last modified",refreshSuccess:"Date decorations refreshed",activationError:"Explorer Dates failed to activate",errorAccessingFile:"Error accessing file for decoration",clearTelemetryPrompt:"This will permanently delete locally-stored telemetry events for Explorer Dates. This action cannot be undone. Proceed?",clearTelemetryConfirm:"Clear Telemetry",clearTelemetryCancel:"Cancel",clearTelemetrySuccess:"\u2705 Explorer Dates telemetry cleared.",migrateChecking:"Checking for settings that need migration...",migrateAllUpToDate:"\u2705 All settings are up to date!",migrateApplied:t=>`\u2705 Explorer Dates maintenance applied: ${t}.`,organizeSettingsResult:t=>`Explorer Dates settings organized: ${t}`,cleanupSuccess:"\u2705 Deprecated settings have been cleaned up!",reportFormatDisabled:(t,e)=>`Report format "${t}" is disabled. Allowed formats: ${e}`,reportSaved:t=>`Report saved to ${t}`,reportGenerateFailed:"Failed to generate report",reportDownloadTriggered:"Report download triggered in browser",selectReportTimeRangePlaceholder:"Select report time range",selectReportFormatPlaceholder:"Select report format",cleanupNoDeprecated:"\u2139\uFE0F No deprecated settings found to clean up.",showMigrationHistoryNoHistory:"No migration history found.",resetConfirmation:"This will reset all Explorer Dates settings to their default values. Are you sure?",migrationDetailsTitle:"Explorer Dates - Settings Migration",migrationDetailsHeader:"Settings Migration",gitAttributionWarning:"Explorer Dates: Git attribution badges are unavailable on VS Code for Web. Time-based decorations remain available.",noOverridesToDocument:"No overrides to document.",overrideNotesHeader:`# Explorer Dates Override Notes +var kr=Object.create;var je=Object.defineProperty;var Tr=Object.getOwnPropertyDescriptor;var Ar=Object.getOwnPropertyNames;var xr=Object.getPrototypeOf,Rr=Object.prototype.hasOwnProperty;var m=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var Fr=(t,e,r,a)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of Ar(e))!Rr.call(t,n)&&n!==r&&je(t,n,{get:()=>e[n],enumerable:!(a=Tr(e,n))||a.enumerable});return t};var Q=(t,e,r)=>(r=t!=null?kr(xr(t)):{},Fr(e||!t||!t.__esModule?je(r,"default",{value:t,enumerable:!0}):r,t));var T=m((Pa,Ye)=>{var z="__explorerDatesLogger",H=class{constructor(){this.b=null}y(e,r){if(this.b&&typeof this.b[e]=="function")try{return this.b[e](...r)}catch{}switch(e){case"debug":break;case"info":break;case"warn":break;case"error":break;default:break}}debug(...e){return this.y("debug",e)}info(...e){return this.y("info",e)}warn(...e){return this.y("warn",e)}error(...e){return this.y("error",e)}Oe(e){this.b=e}};function _r(){return typeof global<"u"?(global[z]||(global[z]=new H),global[z]):typeof globalThis<"u"?(globalThis[z]||(globalThis[z]=new H),globalThis[z]):(ke||(ke=new H),ke)}var Te=class extends H{},ke=null;Ye.exports={Logger:Te,getLogger:_r}});var Ae=m((Ma,Pr)=>{Pr.exports={migrationDetailsTitle:"Explorer Dates - Settings Migration",migrationDetailsHeader:"Settings Migration",gitAttributionWarning:"Explorer Dates: Git attribution badges are unavailable on VS Code for Web. Time-based decorations remain available.",noOverridesToDocument:"No overrides to document.",overrideNotesHeader:"# Explorer Dates Override Notes\\n\\n",analysisCommandsDisabled:"Explorer Dates analysis commands are disabled. Shortcuts like Ctrl+Shift+M/H/A will not work until you enable explorerDates.enableAnalysisCommands.",analysisEnableNow:"Enable Now",analysisEnablePartially:"Enable partially succeeded. Update explorerDates.enableAnalysisCommands in remaining workspace folders manually.",analysisEnableFailed:"Enable failed: update explorerDates.enableAnalysisCommands in workspace settings.",workspaceTemplatesDisabled:"Workspace templates are disabled. Enable explorerDates.enableWorkspaceTemplates to use this command.",workspaceTemplatesDisabledSave:"Workspace templates are disabled. Enable explorerDates.enableWorkspaceTemplates to save templates.",enterTemplateName:"Enter template name",enterTemplateDescription:"Enter description (optional)",failedToOpenTemplateManager:"Failed to open template manager: {0}",failedToSaveTemplate:"Failed to save template: {0}",reportingDisabled:"Reporting features are disabled. Enable explorerDates.enableExportReporting to generate reports.",failedToGenerateReport:"Failed to generate report: {0}",apiDisabled:"Explorer Dates API is disabled via settings.",failedToShowApiInformation:"Failed to show API information: {0}",failedToShowWorkspaceActivity:"Failed to show workspace activity: {0}",failedToShowPerformanceAnalytics:"Failed to show performance analytics: {0}",failedToShowCacheDebugInfo:"Failed to show cache debug info: {0}",noWorkspaceFolderOpen:"No workspace folder open",now:"now",minutes:"m",hours:"h",days:"d",weeks:"w",months:"mo",years:"y",justNow:"just now",minutesAgo:"{0} minute(s) ago",hoursAgo:"{0} hour(s) ago",daysAgo:"{0} day(s) ago",lastModified:"Last modified",refreshSuccess:"Date decorations refreshed",activationError:"Explorer Dates failed to activate",errorAccessingFile:"Error accessing file for decoration",clearTelemetryPrompt:"This will permanently delete locally-stored telemetry events for Explorer Dates. This action cannot be undone. Proceed?",clearTelemetryConfirm:"Clear Telemetry",clearTelemetryCancel:"Cancel",reportFormatDisabled:'Report format "{0}" is disabled. Allowed formats: {1}',reportDownloadTriggered:"Report download triggered in browser",selectReportTimeRangePlaceholder:"Select report time range",selectReportFormatPlaceholder:"Select report format",cleanupNoDeprecated:"\u2139\uFE0F No deprecated settings found to clean up.",showMigrationHistoryNoHistory:"No migration history found.",resetConfirmation:"This will reset all Explorer Dates settings to their default values. Are you sure?",resetConfirm:"Reset Settings",resetCancel:"Cancel",resetSuccess:"\u2705 Reset {0} settings to defaults.",validateNoIssues:"\u2705 Configuration is valid - no issues found!",validateFoundIssues:"Found {0} configuration issue(s). Would you like to see details?",validateShowDetails:"Show Details",validateDismiss:"Dismiss",migrationNotificationMessage:"Explorer Dates updated {0} setting(s) for compatibility. Your configuration has been preserved.",migrationViewChanges:"View Changes",migrationOpenSettings:"Open Settings",deprecatedPrompt:"Explorer Dates found {0} deprecated setting(s). Would you like to remove them?",deprecatedClean:"Clean Up Now",deprecatedKeep:"Keep Old Settings",deprecatedAskLater:"Ask Later",showFileLocation:"Show File Location",teamConfigCorrupted:"Explorer Dates team configuration file appears to be corrupted. Please check the .explorer-dates-profiles.json file or restore from backup.",appliedFromTeamProfile:'Applied {0} Explorer Dates settings from team profile "{1}".',documentedOverrides:"Documented Explorer Dates overrides in .vscode/explorer-dates-overrides.md",teamConfigMissingProfile:"Team configuration is missing an active profile.",ephemeralStorageEnospc:"Explorer Dates team configuration could not be saved because the disk is full.",ephemeralStorageGeneric:"Explorer Dates team configuration could not be saved because the workspace is read-only or permissions are restricted.",ephemeralStorageSuffix:"Changes will be kept in memory until VS Code restarts, so they may be lost."}});var Xe=m((Wa,Mr)=>{Mr.exports={migrationDetailsTitle:"Explorer Dates - Migraci\xF3n de configuraci\xF3n",migrationDetailsHeader:"Migraci\xF3n de configuraci\xF3n",gitAttributionWarning:"Explorer Dates: Las insignias de atribuci\xF3n de Git no est\xE1n disponibles en VS Code para la Web. Las decoraciones basadas en tiempo siguen disponibles.",noOverridesToDocument:"No hay anulaciones para documentar.",overrideNotesHeader:"# Notas de anulaci\xF3n de Explorer Dates\\n\\n",analysisCommandsDisabled:"Los comandos de an\xE1lisis de Explorer Dates est\xE1n deshabilitados. Atajos como Ctrl+Shift+M/H/A no funcionar\xE1n hasta que habilites explorerDates.enableAnalysisCommands.",analysisEnableNow:"Habilitar ahora",analysisEnablePartially:"La activaci\xF3n se complet\xF3 parcialmente. Actualiza explorerDates.enableAnalysisCommands manualmente en las carpetas de trabajo restantes.",analysisEnableFailed:"Error al habilitar: actualiza explorerDates.enableAnalysisCommands en la configuraci\xF3n del espacio de trabajo.",workspaceTemplatesDisabled:"Las plantillas de espacio de trabajo est\xE1n deshabilitadas. Habilita explorerDates.enableWorkspaceTemplates para usar este comando.",workspaceTemplatesDisabledSave:"Las plantillas de espacio de trabajo est\xE1n deshabilitadas. Habilita explorerDates.enableWorkspaceTemplates para guardar plantillas.",enterTemplateName:"Introduce el nombre de la plantilla",enterTemplateDescription:"Introduce la descripci\xF3n (opcional)",failedToOpenTemplateManager:"Error al abrir el administrador de plantillas: {0}",failedToSaveTemplate:"Error al guardar la plantilla: {0}",reportingDisabled:"Las funciones de informes est\xE1n deshabilitadas. Habilita explorerDates.enableExportReporting para generar informes.",failedToGenerateReport:"Error al generar el informe: {0}",apiDisabled:"La API de Explorer Dates est\xE1 deshabilitada mediante la configuraci\xF3n.",failedToShowApiInformation:"Error al mostrar la informaci\xF3n de la API: {0}",failedToShowWorkspaceActivity:"Error al mostrar la actividad del espacio de trabajo: {0}",failedToShowPerformanceAnalytics:"Error al mostrar los an\xE1lisis de rendimiento: {0}",failedToShowCacheDebugInfo:"Error al mostrar la informaci\xF3n de depuraci\xF3n de la cach\xE9: {0}",noWorkspaceFolderOpen:"No hay ninguna carpeta de espacio de trabajo abierta",now:"ahora",minutes:"m",hours:"h",days:"d",weeks:"sem",months:"mes",years:"a",justNow:"justo ahora",minutesAgo:"hace {0} minuto(s)",hoursAgo:"hace {0} hora(s)",daysAgo:"hace {0} d\xEDa(s)",lastModified:"\xDAltima modificaci\xF3n",refreshSuccess:"Decoraciones de fecha actualizadas",activationError:"Explorer Dates no se pudo activar",errorAccessingFile:"Error al acceder al archivo para la decoraci\xF3n",clearTelemetryPrompt:"Esto eliminar\xE1 permanentemente los eventos de telemetr\xEDa almacenados localmente para Explorer Dates. Esta acci\xF3n no se puede deshacer. \xBFContinuar?",clearTelemetryConfirm:"Borrar telemetr\xEDa",clearTelemetryCancel:"Cancelar",reportFormatDisabled:'El formato de informe "{0}" est\xE1 deshabilitado. Formatos permitidos: {1}',reportDownloadTriggered:"Descarga del informe iniciada en el navegador",selectReportTimeRangePlaceholder:"Seleccionar rango de tiempo del informe",selectReportFormatPlaceholder:"Seleccionar formato del informe",cleanupNoDeprecated:"\u2139\uFE0F No se encontraron configuraciones obsoletas para limpiar.",showMigrationHistoryNoHistory:"No se encontr\xF3 historial de migraci\xF3n.",resetConfirmation:"Esto restablecer\xE1 todas las configuraciones de Explorer Dates a sus valores predeterminados. \xBFEst\xE1s seguro?",resetConfirm:"Restablecer configuraciones",resetCancel:"Cancelar",resetSuccess:"\u2705 Se restablecieron {0} configuraciones a los valores predeterminados.",validateNoIssues:"\u2705 La configuraci\xF3n es v\xE1lida - no se encontraron problemas.",validateFoundIssues:"Se encontraron {0} problema(s) de configuraci\xF3n. \xBFDeseas ver los detalles?",validateShowDetails:"Mostrar detalles",validateDismiss:"Descartar",migrationNotificationMessage:"Explorer Dates actualiz\xF3 {0} configuraci\xF3n(es) por compatibilidad. Tu configuraci\xF3n se ha conservado.",migrationViewChanges:"Ver cambios",migrationOpenSettings:"Abrir configuraciones",deprecatedPrompt:"Explorer Dates encontr\xF3 {0} configuraci\xF3n(es) obsoleta(s). \xBFDeseas eliminarlas?",deprecatedClean:"Limpiar ahora",deprecatedKeep:"Mantener configuraciones antiguas",deprecatedAskLater:"Preguntar m\xE1s tarde",showFileLocation:"Mostrar ubicaci\xF3n del archivo",teamConfigCorrupted:"El archivo de configuraci\xF3n de equipo de Explorer Dates parece estar da\xF1ado. Verifica el archivo .explorer-dates-profiles.json o restaura desde una copia de seguridad.",appliedFromTeamProfile:'Se aplicaron {0} configuraciones de Explorer Dates desde el perfil de equipo "{1}".',documentedOverrides:"Se documentaron las anulaciones de Explorer Dates en .vscode/explorer-dates-overrides.md",teamConfigMissingProfile:"La configuraci\xF3n del equipo no tiene un perfil activo.",ephemeralStorageEnospc:"No se pudo guardar la configuraci\xF3n de equipo de Explorer Dates porque el disco est\xE1 lleno.",ephemeralStorageGeneric:"No se pudo guardar la configuraci\xF3n de equipo de Explorer Dates porque el espacio de trabajo es de solo lectura o los permisos est\xE1n restringidos.",ephemeralStorageSuffix:"Los cambios se mantendr\xE1n en memoria hasta que VS Code se reinicie, por lo que podr\xEDan perderse."}});var Ze=m((Ia,Wr)=>{Wr.exports={migrationDetailsTitle:"Explorer Dates - Migration des param\xE8tres",migrationDetailsHeader:"Migration des param\xE8tres",gitAttributionWarning:"Explorer Dates : Les badges d\u2019attribution Git ne sont pas disponibles sur VS Code pour le Web. Les d\xE9corations bas\xE9es sur le temps restent disponibles.",noOverridesToDocument:"Aucune substitution \xE0 documenter.",overrideNotesHeader:"# Notes de substitution Explorer Dates\\n\\n",analysisCommandsDisabled:"Les commandes d\u2019analyse Explorer Dates sont d\xE9sactiv\xE9es. Les raccourcis comme Ctrl+Shift+M/H/A ne fonctionneront pas tant que vous n\u2019aurez pas activ\xE9 explorerDates.enableAnalysisCommands.",analysisEnableNow:"Activer maintenant",analysisEnablePartially:"L\u2019activation a partiellement r\xE9ussi. Mettez \xE0 jour explorerDates.enableAnalysisCommands manuellement dans les dossiers d\u2019espace de travail restants.",analysisEnableFailed:"\xC9chec de l\u2019activation : mettez \xE0 jour explorerDates.enableAnalysisCommands dans les param\xE8tres de l\u2019espace de travail.",workspaceTemplatesDisabled:"Les mod\xE8les d\u2019espace de travail sont d\xE9sactiv\xE9s. Activez explorerDates.enableWorkspaceTemplates pour utiliser cette commande.",workspaceTemplatesDisabledSave:"Les mod\xE8les d\u2019espace de travail sont d\xE9sactiv\xE9s. Activez explorerDates.enableWorkspaceTemplates pour enregistrer des mod\xE8les.",enterTemplateName:"Entrez le nom du mod\xE8le",enterTemplateDescription:"Entrez la description (facultatif)",failedToOpenTemplateManager:"Impossible d\u2019ouvrir le gestionnaire de mod\xE8les : {0}",failedToSaveTemplate:"Impossible d\u2019enregistrer le mod\xE8le : {0}",reportingDisabled:"Les fonctionnalit\xE9s de rapport sont d\xE9sactiv\xE9es. Activez explorerDates.enableExportReporting pour g\xE9n\xE9rer des rapports.",failedToGenerateReport:"Impossible de g\xE9n\xE9rer le rapport : {0}",apiDisabled:"L\u2019API Explorer Dates est d\xE9sactiv\xE9e via les param\xE8tres.",failedToShowApiInformation:"Impossible d\u2019afficher les informations de l\u2019API : {0}",failedToShowWorkspaceActivity:"Impossible d\u2019afficher l\u2019activit\xE9 de l\u2019espace de travail : {0}",failedToShowPerformanceAnalytics:"Impossible d\u2019afficher les analyses de performance : {0}",failedToShowCacheDebugInfo:"Impossible d\u2019afficher les informations de d\xE9bogage du cache : {0}",noWorkspaceFolderOpen:"Aucun dossier d\u2019espace de travail ouvert",now:"maintenant",minutes:"min",hours:"h",days:"j",weeks:"sem",months:"mois",years:"an",justNow:"\xE0 l\u2019instant",minutesAgo:"il y a {0} minute(s)",hoursAgo:"il y a {0} heure(s)",daysAgo:"il y a {0} jour(s)",lastModified:"Derni\xE8re modification",refreshSuccess:"D\xE9corations de date actualis\xE9es",activationError:"\xC9chec de l\u2019activation d\u2019Explorer Dates",errorAccessingFile:"Erreur lors de l\u2019acc\xE8s au fichier pour la d\xE9coration",clearTelemetryPrompt:"Cela supprimera d\xE9finitivement les \xE9v\xE9nements de t\xE9l\xE9m\xE9trie stock\xE9s localement pour Explorer Dates. Cette action est irr\xE9versible. Continuer ?",clearTelemetryConfirm:"Effacer la t\xE9l\xE9m\xE9trie",clearTelemetryCancel:"Annuler",reportFormatDisabled:'Le format de rapport "{0}" est d\xE9sactiv\xE9. Formats autoris\xE9s : {1}',reportDownloadTriggered:"T\xE9l\xE9chargement du rapport lanc\xE9 dans le navigateur",selectReportTimeRangePlaceholder:"S\xE9lectionner la p\xE9riode du rapport",selectReportFormatPlaceholder:"S\xE9lectionner le format du rapport",cleanupNoDeprecated:"\u2139\uFE0F Aucun param\xE8tre obsol\xE8te \xE0 nettoyer.",showMigrationHistoryNoHistory:"Aucun historique de migration trouv\xE9.",resetConfirmation:"Cela r\xE9initialisera tous les param\xE8tres Explorer Dates \xE0 leurs valeurs par d\xE9faut. \xCAtes-vous s\xFBr ?",resetConfirm:"R\xE9initialiser les param\xE8tres",resetCancel:"Annuler",resetSuccess:"\u2705 {0} param\xE8tres ont \xE9t\xE9 r\xE9initialis\xE9s aux valeurs par d\xE9faut.",validateNoIssues:"\u2705 La configuration est valide - aucun probl\xE8me d\xE9tect\xE9 !",validateFoundIssues:"{0} probl\xE8me(s) de configuration trouv\xE9(s). Voulez-vous voir les d\xE9tails ?",validateShowDetails:"Afficher les d\xE9tails",validateDismiss:"Ignorer",migrationNotificationMessage:"Explorer Dates a mis \xE0 jour {0} param\xE8tre(s) pour compatibilit\xE9. Votre configuration a \xE9t\xE9 conserv\xE9e.",migrationViewChanges:"Voir les modifications",migrationOpenSettings:"Ouvrir les param\xE8tres",deprecatedPrompt:"Explorer Dates a trouv\xE9 {0} param\xE8tre(s) obsol\xE8te(s). Voulez-vous les supprimer ?",deprecatedClean:"Nettoyer maintenant",deprecatedKeep:"Conserver les anciens param\xE8tres",deprecatedAskLater:"Demander plus tard",showFileLocation:"Afficher l\u2019emplacement du fichier",teamConfigCorrupted:"Le fichier de configuration d\u2019\xE9quipe Explorer Dates semble corrompu. V\xE9rifiez le fichier .explorer-dates-profiles.json ou restaurez-le depuis une sauvegarde.",appliedFromTeamProfile:'{0} param\xE8tres Explorer Dates appliqu\xE9s depuis le profil d\u2019\xE9quipe "{1}".',documentedOverrides:"Substitutions Explorer Dates document\xE9es dans .vscode/explorer-dates-overrides.md",teamConfigMissingProfile:"La configuration d\u2019\xE9quipe ne contient aucun profil actif.",ephemeralStorageEnospc:"Impossible d\u2019enregistrer la configuration d\u2019\xE9quipe Explorer Dates car le disque est plein.",ephemeralStorageGeneric:"Impossible d\u2019enregistrer la configuration d\u2019\xE9quipe Explorer Dates car l\u2019espace de travail est en lecture seule ou les permissions sont restreintes.",ephemeralStorageSuffix:"Les modifications seront conserv\xE9es en m\xE9moire jusqu\u2019au red\xE9marrage de VS Code et pourraient \xEAtre perdues."}});var Je=m((La,Ir)=>{Ir.exports={migrationDetailsTitle:"Explorer Dates - Einstellungen migrieren",migrationDetailsHeader:"Einstellungen migrieren",gitAttributionWarning:"Explorer Dates: Git-Zuordnungsabzeichen sind in VS Code f\xFCr das Web nicht verf\xFCgbar. Zeitbasierte Hervorhebungen bleiben verf\xFCgbar.",noOverridesToDocument:"Keine \xDCberschreibungen zu dokumentieren.",overrideNotesHeader:"# Explorer Dates \xDCberschreibungsnotizen\\n\\n",analysisCommandsDisabled:"Die Analysebefehle von Explorer Dates sind deaktiviert. Tastenkombinationen wie Ctrl+Shift+M/H/A funktionieren nicht, bis explorerDates.enableAnalysisCommands aktiviert ist.",analysisEnableNow:"Jetzt aktivieren",analysisEnablePartially:"Die Aktivierung war teilweise erfolgreich. Aktualisieren Sie explorerDates.enableAnalysisCommands manuell in den verbleibenden Workspace-Ordnern.",analysisEnableFailed:"Aktivierung fehlgeschlagen: Aktualisieren Sie explorerDates.enableAnalysisCommands in den Workspace-Einstellungen.",workspaceTemplatesDisabled:"Workspace-Vorlagen sind deaktiviert. Aktivieren Sie explorerDates.enableWorkspaceTemplates, um diesen Befehl zu verwenden.",workspaceTemplatesDisabledSave:"Workspace-Vorlagen sind deaktiviert. Aktivieren Sie explorerDates.enableWorkspaceTemplates, um Vorlagen zu speichern.",enterTemplateName:"Vorlagenname eingeben",enterTemplateDescription:"Beschreibung eingeben (optional)",failedToOpenTemplateManager:"Fehler beim \xD6ffnen des Vorlagenmanagers: {0}",failedToSaveTemplate:"Fehler beim Speichern der Vorlage: {0}",reportingDisabled:"Berichtsfunktionen sind deaktiviert. Aktivieren Sie explorerDates.enableExportReporting, um Berichte zu erstellen.",failedToGenerateReport:"Fehler beim Erstellen des Berichts: {0}",apiDisabled:"Die Explorer Dates API ist in den Einstellungen deaktiviert.",failedToShowApiInformation:"Fehler beim Anzeigen der API-Informationen: {0}",failedToShowWorkspaceActivity:"Fehler beim Anzeigen der Workspace-Aktivit\xE4t: {0}",failedToShowPerformanceAnalytics:"Fehler beim Anzeigen der Leistungsanalysen: {0}",failedToShowCacheDebugInfo:"Fehler beim Anzeigen der Cache-Debug-Informationen: {0}",noWorkspaceFolderOpen:"Kein Workspace-Ordner ge\xF6ffnet",now:"jetzt",minutes:"Min",hours:"Std",days:"T",weeks:"W",months:"Mon",years:"J",justNow:"gerade eben",minutesAgo:"vor {0} Minute(n)",hoursAgo:"vor {0} Stunde(n)",daysAgo:"vor {0} Tag(en)",lastModified:"Zuletzt ge\xE4ndert",refreshSuccess:"Datumsdekorationen aktualisiert",activationError:"Explorer Dates konnte nicht aktiviert werden",errorAccessingFile:"Fehler beim Zugriff auf Datei f\xFCr Dekoration",clearTelemetryPrompt:"Dies l\xF6scht dauerhaft lokal gespeicherte Telemetrieereignisse f\xFCr Explorer Dates. Diese Aktion kann nicht r\xFCckg\xE4ngig gemacht werden. Fortfahren?",clearTelemetryConfirm:"Telemetrie l\xF6schen",clearTelemetryCancel:"Abbrechen",reportFormatDisabled:'Berichtsformat "{0}" ist deaktiviert. Zul\xE4ssige Formate: {1}',reportDownloadTriggered:"Bericht-Download im Browser gestartet",selectReportTimeRangePlaceholder:"Berichtszeitraum ausw\xE4hlen",selectReportFormatPlaceholder:"Berichtsformat ausw\xE4hlen",cleanupNoDeprecated:"\u2139\uFE0F Keine veralteten Einstellungen zum Bereinigen gefunden.",showMigrationHistoryNoHistory:"Kein Migrationsverlauf gefunden.",resetConfirmation:"Dies setzt alle Explorer Dates Einstellungen auf ihre Standardwerte zur\xFCck. Sind Sie sicher?",resetConfirm:"Einstellungen zur\xFCcksetzen",resetCancel:"Abbrechen",resetSuccess:"\u2705 {0} Einstellungen auf Standard zur\xFCckgesetzt.",validateNoIssues:"\u2705 Konfiguration ist g\xFCltig - keine Probleme gefunden!",validateFoundIssues:"{0} Konfigurationsproblem(e) gefunden. M\xF6chten Sie Details sehen?",validateShowDetails:"Details anzeigen",validateDismiss:"Verwerfen",migrationNotificationMessage:"Explorer Dates hat {0} Einstellung(en) zur Kompatibilit\xE4t aktualisiert. Ihre Konfiguration wurde beibehalten.",migrationViewChanges:"\xC4nderungen anzeigen",migrationOpenSettings:"Einstellungen \xF6ffnen",deprecatedPrompt:"Explorer Dates hat {0} veraltete Einstellung(en) gefunden. M\xF6chten Sie sie entfernen?",deprecatedClean:"Jetzt bereinigen",deprecatedKeep:"Alte Einstellungen behalten",deprecatedAskLater:"Sp\xE4ter fragen",showFileLocation:"Dateispeicherort anzeigen",teamConfigCorrupted:"Die Teamkonfigurationsdatei von Explorer Dates scheint besch\xE4digt zu sein. Bitte pr\xFCfen Sie die Datei .explorer-dates-profiles.json oder stellen Sie sie aus einem Backup wieder her.",appliedFromTeamProfile:'{0} Explorer Dates-Einstellungen aus dem Teamprofil "{1}" angewendet.',documentedOverrides:"Explorer Dates-\xDCberschreibungen in .vscode/explorer-dates-overrides.md dokumentiert",teamConfigMissingProfile:"Der Teamkonfiguration fehlt ein aktives Profil.",ephemeralStorageEnospc:"Die Teamkonfiguration von Explorer Dates konnte nicht gespeichert werden, da die Festplatte voll ist.",ephemeralStorageGeneric:"Die Teamkonfiguration von Explorer Dates konnte nicht gespeichert werden, da der Workspace schreibgesch\xFCtzt ist oder die Berechtigungen eingeschr\xE4nkt sind.",ephemeralStorageSuffix:"\xC4nderungen werden im Speicher behalten, bis VS Code neu startet, und k\xF6nnen verloren gehen."}});var Qe=m((Oa,Lr)=>{Lr.exports={migrationDetailsTitle:"Explorer Dates - \u8A2D\u5B9A\u306E\u79FB\u884C",migrationDetailsHeader:"\u8A2D\u5B9A\u306E\u79FB\u884C",gitAttributionWarning:"Explorer Dates: Git \u306E\u5E30\u5C5E\u30D0\u30C3\u30B8\u306F VS Code for Web \u3067\u306F\u5229\u7528\u3067\u304D\u307E\u305B\u3093\u3002\u6642\u9593\u30D9\u30FC\u30B9\u306E\u88C5\u98FE\u306F\u5F15\u304D\u7D9A\u304D\u5229\u7528\u3067\u304D\u307E\u3059\u3002",noOverridesToDocument:"\u30C9\u30AD\u30E5\u30E1\u30F3\u30C8\u5316\u3059\u308B\u4E0A\u66F8\u304D\u306F\u3042\u308A\u307E\u305B\u3093\u3002",overrideNotesHeader:"# Explorer Dates \u4E0A\u66F8\u304D\u30E1\u30E2\\n\\n",analysisCommandsDisabled:"Explorer Dates \u306E\u5206\u6790\u30B3\u30DE\u30F3\u30C9\u306F\u7121\u52B9\u306B\u306A\u3063\u3066\u3044\u307E\u3059\u3002Ctrl+Shift+M/H/A \u306A\u3069\u306E\u30B7\u30E7\u30FC\u30C8\u30AB\u30C3\u30C8\u306F explorerDates.enableAnalysisCommands \u3092\u6709\u52B9\u306B\u3059\u308B\u307E\u3067\u6A5F\u80FD\u3057\u307E\u305B\u3093\u3002",analysisEnableNow:"\u4ECA\u3059\u3050\u6709\u52B9\u306B\u3059\u308B",analysisEnablePartially:"\u6709\u52B9\u5316\u306F\u4E00\u90E8\u6210\u529F\u3057\u307E\u3057\u305F\u3002\u6B8B\u308A\u306E\u30EF\u30FC\u30AF\u30B9\u30DA\u30FC\u30B9\u30D5\u30A9\u30EB\u30C0\u30FC\u3067 explorerDates.enableAnalysisCommands \u3092\u624B\u52D5\u3067\u66F4\u65B0\u3057\u3066\u304F\u3060\u3055\u3044\u3002",analysisEnableFailed:"\u6709\u52B9\u5316\u306B\u5931\u6557\u3057\u307E\u3057\u305F\uFF1A\u30EF\u30FC\u30AF\u30B9\u30DA\u30FC\u30B9\u8A2D\u5B9A\u3067 explorerDates.enableAnalysisCommands \u3092\u66F4\u65B0\u3057\u3066\u304F\u3060\u3055\u3044\u3002",workspaceTemplatesDisabled:"\u30EF\u30FC\u30AF\u30B9\u30DA\u30FC\u30B9\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8\u306F\u7121\u52B9\u306B\u306A\u3063\u3066\u3044\u307E\u3059\u3002\u3053\u306E\u30B3\u30DE\u30F3\u30C9\u3092\u4F7F\u7528\u3059\u308B\u306B\u306F explorerDates.enableWorkspaceTemplates \u3092\u6709\u52B9\u306B\u3057\u3066\u304F\u3060\u3055\u3044\u3002",workspaceTemplatesDisabledSave:"\u30EF\u30FC\u30AF\u30B9\u30DA\u30FC\u30B9\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8\u306F\u7121\u52B9\u306B\u306A\u3063\u3066\u3044\u307E\u3059\u3002\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8\u3092\u4FDD\u5B58\u3059\u308B\u306B\u306F explorerDates.enableWorkspaceTemplates \u3092\u6709\u52B9\u306B\u3057\u3066\u304F\u3060\u3055\u3044\u3002",enterTemplateName:"\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8\u540D\u3092\u5165\u529B",enterTemplateDescription:"\u8AAC\u660E\u3092\u5165\u529B\uFF08\u4EFB\u610F\uFF09",failedToOpenTemplateManager:"\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8\u30DE\u30CD\u30FC\u30B8\u30E3\u30FC\u3092\u958B\u3051\u307E\u305B\u3093\u3067\u3057\u305F: {0}",failedToSaveTemplate:"\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8\u306E\u4FDD\u5B58\u306B\u5931\u6557\u3057\u307E\u3057\u305F: {0}",reportingDisabled:"\u30EC\u30DD\u30FC\u30C8\u6A5F\u80FD\u306F\u7121\u52B9\u306B\u306A\u3063\u3066\u3044\u307E\u3059\u3002\u30EC\u30DD\u30FC\u30C8\u3092\u751F\u6210\u3059\u308B\u306B\u306F explorerDates.enableExportReporting \u3092\u6709\u52B9\u306B\u3057\u3066\u304F\u3060\u3055\u3044\u3002",failedToGenerateReport:"\u30EC\u30DD\u30FC\u30C8\u306E\u751F\u6210\u306B\u5931\u6557\u3057\u307E\u3057\u305F: {0}",apiDisabled:"Explorer Dates API \u306F\u8A2D\u5B9A\u3067\u7121\u52B9\u306B\u306A\u3063\u3066\u3044\u307E\u3059\u3002",failedToShowApiInformation:"API \u60C5\u5831\u306E\u8868\u793A\u306B\u5931\u6557\u3057\u307E\u3057\u305F: {0}",failedToShowWorkspaceActivity:"\u30EF\u30FC\u30AF\u30B9\u30DA\u30FC\u30B9\u306E\u30A2\u30AF\u30C6\u30A3\u30D3\u30C6\u30A3\u3092\u8868\u793A\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F: {0}",failedToShowPerformanceAnalytics:"\u30D1\u30D5\u30A9\u30FC\u30DE\u30F3\u30B9\u5206\u6790\u3092\u8868\u793A\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F: {0}",failedToShowCacheDebugInfo:"\u30AD\u30E3\u30C3\u30B7\u30E5\u306E\u30C7\u30D0\u30C3\u30B0\u60C5\u5831\u3092\u8868\u793A\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F: {0}",noWorkspaceFolderOpen:"\u30EF\u30FC\u30AF\u30B9\u30DA\u30FC\u30B9\u30D5\u30A9\u30EB\u30C0\u30FC\u304C\u958B\u304B\u308C\u3066\u3044\u307E\u305B\u3093",now:"\u4ECA",minutes:"\u5206",hours:"\u6642\u9593",days:"\u65E5",weeks:"\u9031",months:"\u304B\u6708",years:"\u5E74",justNow:"\u305F\u3063\u305F\u4ECA",minutesAgo:"{0} \u5206\u524D",hoursAgo:"{0} \u6642\u9593\u524D",daysAgo:"{0} \u65E5\u524D",lastModified:"\u6700\u7D42\u66F4\u65B0",refreshSuccess:"\u65E5\u4ED8\u88C5\u98FE\u3092\u66F4\u65B0\u3057\u307E\u3057\u305F",activationError:"Explorer Dates \u306E\u6709\u52B9\u5316\u306B\u5931\u6557\u3057\u307E\u3057\u305F",errorAccessingFile:"\u88C5\u98FE\u7528\u30D5\u30A1\u30A4\u30EB\u3078\u306E\u30A2\u30AF\u30BB\u30B9\u30A8\u30E9\u30FC",clearTelemetryPrompt:"Explorer Dates \u306E\u30ED\u30FC\u30AB\u30EB\u4FDD\u5B58\u30C6\u30EC\u30E1\u30C8\u30EA\u30A4\u30D9\u30F3\u30C8\u3092\u5B8C\u5168\u306B\u524A\u9664\u3057\u307E\u3059\u3002\u3053\u306E\u64CD\u4F5C\u306F\u5143\u306B\u623B\u305B\u307E\u305B\u3093\u3002\u7D9A\u884C\u3057\u307E\u3059\u304B\uFF1F",clearTelemetryConfirm:"\u30C6\u30EC\u30E1\u30C8\u30EA\u3092\u524A\u9664",clearTelemetryCancel:"\u30AD\u30E3\u30F3\u30BB\u30EB",reportFormatDisabled:"\u30EC\u30DD\u30FC\u30C8\u5F62\u5F0F\u300C{0}\u300D\u306F\u7121\u52B9\u3067\u3059\u3002\u8A31\u53EF\u3055\u308C\u3066\u3044\u308B\u5F62\u5F0F: {1}",reportDownloadTriggered:"\u30D6\u30E9\u30A6\u30B6\u3067\u30EC\u30DD\u30FC\u30C8\u306E\u30C0\u30A6\u30F3\u30ED\u30FC\u30C9\u3092\u958B\u59CB\u3057\u307E\u3057\u305F",selectReportTimeRangePlaceholder:"\u30EC\u30DD\u30FC\u30C8\u306E\u671F\u9593\u3092\u9078\u629E",selectReportFormatPlaceholder:"\u30EC\u30DD\u30FC\u30C8\u5F62\u5F0F\u3092\u9078\u629E",cleanupNoDeprecated:"\u2139\uFE0F \u30AF\u30EA\u30FC\u30F3\u30A2\u30C3\u30D7\u3059\u308B\u975E\u63A8\u5968\u8A2D\u5B9A\u306F\u3042\u308A\u307E\u305B\u3093\u3002",showMigrationHistoryNoHistory:"\u79FB\u884C\u5C65\u6B74\u304C\u898B\u3064\u304B\u308A\u307E\u305B\u3093\u3002",resetConfirmation:"Explorer Dates \u306E\u3059\u3079\u3066\u306E\u8A2D\u5B9A\u3092\u65E2\u5B9A\u5024\u306B\u30EA\u30BB\u30C3\u30C8\u3057\u307E\u3059\u3002\u3088\u308D\u3057\u3044\u3067\u3059\u304B\uFF1F",resetConfirm:"\u8A2D\u5B9A\u3092\u30EA\u30BB\u30C3\u30C8",resetCancel:"\u30AD\u30E3\u30F3\u30BB\u30EB",resetSuccess:"\u2705 {0} \u4EF6\u306E\u8A2D\u5B9A\u3092\u65E2\u5B9A\u5024\u306B\u30EA\u30BB\u30C3\u30C8\u3057\u307E\u3057\u305F\u3002",validateNoIssues:"\u2705 \u8A2D\u5B9A\u306F\u6709\u52B9\u3067\u3059 - \u554F\u984C\u306F\u898B\u3064\u304B\u308A\u307E\u305B\u3093\u3067\u3057\u305F\uFF01",validateFoundIssues:"{0} \u4EF6\u306E\u8A2D\u5B9A\u554F\u984C\u304C\u898B\u3064\u304B\u308A\u307E\u3057\u305F\u3002\u8A73\u7D30\u3092\u8868\u793A\u3057\u307E\u3059\u304B\uFF1F",validateShowDetails:"\u8A73\u7D30\u3092\u8868\u793A",validateDismiss:"\u9589\u3058\u308B",migrationNotificationMessage:"Explorer Dates \u306F\u4E92\u63DB\u6027\u306E\u305F\u3081\u306B {0} \u4EF6\u306E\u8A2D\u5B9A\u3092\u66F4\u65B0\u3057\u307E\u3057\u305F\u3002\u8A2D\u5B9A\u306F\u4FDD\u6301\u3055\u308C\u3066\u3044\u307E\u3059\u3002",migrationViewChanges:"\u5909\u66F4\u3092\u8868\u793A",migrationOpenSettings:"\u8A2D\u5B9A\u3092\u958B\u304F",deprecatedPrompt:"Explorer Dates \u306F {0} \u4EF6\u306E\u975E\u63A8\u5968\u8A2D\u5B9A\u3092\u691C\u51FA\u3057\u307E\u3057\u305F\u3002\u524A\u9664\u3057\u307E\u3059\u304B\uFF1F",deprecatedClean:"\u4ECA\u3059\u3050\u30AF\u30EA\u30FC\u30F3\u30A2\u30C3\u30D7",deprecatedKeep:"\u53E4\u3044\u8A2D\u5B9A\u3092\u4FDD\u6301",deprecatedAskLater:"\u5F8C\u3067\u78BA\u8A8D",showFileLocation:"\u30D5\u30A1\u30A4\u30EB\u306E\u5834\u6240\u3092\u8868\u793A",teamConfigCorrupted:"Explorer Dates \u306E\u30C1\u30FC\u30E0\u8A2D\u5B9A\u30D5\u30A1\u30A4\u30EB\u304C\u7834\u640D\u3057\u3066\u3044\u308B\u53EF\u80FD\u6027\u304C\u3042\u308A\u307E\u3059\u3002.explorer-dates-profiles.json \u3092\u78BA\u8A8D\u3059\u308B\u304B\u30D0\u30C3\u30AF\u30A2\u30C3\u30D7\u304B\u3089\u5FA9\u5143\u3057\u3066\u304F\u3060\u3055\u3044\u3002",appliedFromTeamProfile:"\u30C1\u30FC\u30E0\u30D7\u30ED\u30D5\u30A1\u30A4\u30EB\u300C{1}\u300D\u304B\u3089 {0} \u4EF6\u306E Explorer Dates \u8A2D\u5B9A\u3092\u9069\u7528\u3057\u307E\u3057\u305F\u3002",documentedOverrides:".vscode/explorer-dates-overrides.md \u306B Explorer Dates \u306E\u4E0A\u66F8\u304D\u3092\u8A18\u9332\u3057\u307E\u3057\u305F",teamConfigMissingProfile:"\u30C1\u30FC\u30E0\u8A2D\u5B9A\u306B\u30A2\u30AF\u30C6\u30A3\u30D6\u306A\u30D7\u30ED\u30D5\u30A1\u30A4\u30EB\u304C\u3042\u308A\u307E\u305B\u3093\u3002",ephemeralStorageEnospc:"\u30C7\u30A3\u30B9\u30AF\u5BB9\u91CF\u4E0D\u8DB3\u306E\u305F\u3081\u3001Explorer Dates \u306E\u30C1\u30FC\u30E0\u8A2D\u5B9A\u3092\u4FDD\u5B58\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002",ephemeralStorageGeneric:"\u30EF\u30FC\u30AF\u30B9\u30DA\u30FC\u30B9\u304C\u8AAD\u307F\u53D6\u308A\u5C02\u7528\u3001\u307E\u305F\u306F\u6A29\u9650\u304C\u5236\u9650\u3055\u308C\u3066\u3044\u308B\u305F\u3081\u3001Explorer Dates \u306E\u30C1\u30FC\u30E0\u8A2D\u5B9A\u3092\u4FDD\u5B58\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002",ephemeralStorageSuffix:"\u5909\u66F4\u306F VS Code \u304C\u518D\u8D77\u52D5\u3059\u308B\u307E\u3067\u30E1\u30E2\u30EA\u306B\u4FDD\u6301\u3055\u308C\u308B\u305F\u3081\u3001\u5931\u308F\u308C\u308B\u53EF\u80FD\u6027\u304C\u3042\u308A\u307E\u3059\u3002"}});var et=m((Na,Or)=>{Or.exports={migrationDetailsTitle:"Explorer Dates - \u8BBE\u7F6E\u8FC1\u79FB",migrationDetailsHeader:"\u8BBE\u7F6E\u8FC1\u79FB",gitAttributionWarning:"Explorer Dates\uFF1AGit \u5F52\u5C5E\u5FBD\u7AE0\u5728 VS Code Web \u7248\u4E2D\u4E0D\u53EF\u7528\u3002\u57FA\u4E8E\u65F6\u95F4\u7684\u88C5\u9970\u4ECD\u7136\u53EF\u7528\u3002",noOverridesToDocument:"\u6CA1\u6709\u9700\u8981\u8BB0\u5F55\u7684\u8986\u76D6\u9879\u3002",overrideNotesHeader:"# Explorer Dates \u8986\u76D6\u8BF4\u660E\\n\\n",analysisCommandsDisabled:"Explorer Dates \u5206\u6790\u547D\u4EE4\u5DF2\u7981\u7528\u3002\u5728\u542F\u7528 explorerDates.enableAnalysisCommands \u4E4B\u524D\uFF0CCtrl+Shift+M/H/A \u7B49\u5FEB\u6377\u952E\u5C06\u65E0\u6CD5\u4F7F\u7528\u3002",analysisEnableNow:"\u7ACB\u5373\u542F\u7528",analysisEnablePartially:"\u542F\u7528\u90E8\u5206\u6210\u529F\u3002\u8BF7\u5728\u5269\u4F59\u7684\u5DE5\u4F5C\u533A\u6587\u4EF6\u5939\u4E2D\u624B\u52A8\u66F4\u65B0 explorerDates.enableAnalysisCommands\u3002",analysisEnableFailed:"\u542F\u7528\u5931\u8D25\uFF1A\u8BF7\u5728\u5DE5\u4F5C\u533A\u8BBE\u7F6E\u4E2D\u66F4\u65B0 explorerDates.enableAnalysisCommands\u3002",workspaceTemplatesDisabled:"\u5DE5\u4F5C\u533A\u6A21\u677F\u5DF2\u7981\u7528\u3002\u542F\u7528 explorerDates.enableWorkspaceTemplates \u4EE5\u4F7F\u7528\u6B64\u547D\u4EE4\u3002",workspaceTemplatesDisabledSave:"\u5DE5\u4F5C\u533A\u6A21\u677F\u5DF2\u7981\u7528\u3002\u542F\u7528 explorerDates.enableWorkspaceTemplates \u4EE5\u4FDD\u5B58\u6A21\u677F\u3002",enterTemplateName:"\u8F93\u5165\u6A21\u677F\u540D\u79F0",enterTemplateDescription:"\u8F93\u5165\u63CF\u8FF0\uFF08\u53EF\u9009\uFF09",failedToOpenTemplateManager:"\u65E0\u6CD5\u6253\u5F00\u6A21\u677F\u7BA1\u7406\u5668\uFF1A{0}",failedToSaveTemplate:"\u4FDD\u5B58\u6A21\u677F\u5931\u8D25\uFF1A{0}",reportingDisabled:"\u62A5\u8868\u529F\u80FD\u5DF2\u7981\u7528\u3002\u542F\u7528 explorerDates.enableExportReporting \u4EE5\u751F\u6210\u62A5\u8868\u3002",failedToGenerateReport:"\u751F\u6210\u62A5\u8868\u5931\u8D25\uFF1A{0}",apiDisabled:"Explorer Dates API \u5DF2\u901A\u8FC7\u8BBE\u7F6E\u7981\u7528\u3002",failedToShowApiInformation:"\u663E\u793A API \u4FE1\u606F\u5931\u8D25\uFF1A{0}",failedToShowWorkspaceActivity:"\u663E\u793A\u5DE5\u4F5C\u533A\u6D3B\u52A8\u5931\u8D25\uFF1A{0}",failedToShowPerformanceAnalytics:"\u663E\u793A\u6027\u80FD\u5206\u6790\u5931\u8D25\uFF1A{0}",failedToShowCacheDebugInfo:"\u663E\u793A\u7F13\u5B58\u8C03\u8BD5\u4FE1\u606F\u5931\u8D25\uFF1A{0}",noWorkspaceFolderOpen:"\u672A\u6253\u5F00\u4EFB\u4F55\u5DE5\u4F5C\u533A\u6587\u4EF6\u5939",now:"\u73B0\u5728",minutes:"\u5206",hours:"\u5C0F\u65F6",days:"\u5929",weeks:"\u5468",months:"\u4E2A\u6708",years:"\u5E74",justNow:"\u521A\u521A",minutesAgo:"{0} \u5206\u949F\u524D",hoursAgo:"{0} \u5C0F\u65F6\u524D",daysAgo:"{0} \u5929\u524D",lastModified:"\u6700\u540E\u4FEE\u6539",refreshSuccess:"\u65E5\u671F\u88C5\u9970\u5DF2\u5237\u65B0",activationError:"Explorer Dates \u542F\u52A8\u5931\u8D25",errorAccessingFile:"\u8BBF\u95EE\u7528\u4E8E\u88C5\u9970\u7684\u6587\u4EF6\u65F6\u51FA\u9519",clearTelemetryPrompt:"\u8FD9\u5C06\u6C38\u4E45\u5220\u9664\u672C\u5730\u5B58\u50A8\u7684 Explorer Dates \u9065\u6D4B\u4E8B\u4EF6\u3002\u6B64\u64CD\u4F5C\u65E0\u6CD5\u64A4\u9500\u3002\u662F\u5426\u7EE7\u7EED\uFF1F",clearTelemetryConfirm:"\u6E05\u9664\u9065\u6D4B",clearTelemetryCancel:"\u53D6\u6D88",reportFormatDisabled:"\u62A5\u8868\u683C\u5F0F\u201C{0}\u201D\u5DF2\u7981\u7528\u3002\u5141\u8BB8\u7684\u683C\u5F0F\uFF1A{1}",reportDownloadTriggered:"\u5DF2\u5728\u6D4F\u89C8\u5668\u4E2D\u89E6\u53D1\u62A5\u8868\u4E0B\u8F7D",selectReportTimeRangePlaceholder:"\u9009\u62E9\u62A5\u8868\u65F6\u95F4\u8303\u56F4",selectReportFormatPlaceholder:"\u9009\u62E9\u62A5\u8868\u683C\u5F0F",cleanupNoDeprecated:"\u2139\uFE0F \u672A\u53D1\u73B0\u9700\u8981\u6E05\u7406\u7684\u5DF2\u5F03\u7528\u8BBE\u7F6E\u3002",showMigrationHistoryNoHistory:"\u672A\u627E\u5230\u8FC1\u79FB\u5386\u53F2\u3002",resetConfirmation:"\u8FD9\u5C06\u628A\u6240\u6709 Explorer Dates \u8BBE\u7F6E\u91CD\u7F6E\u4E3A\u9ED8\u8BA4\u503C\u3002\u786E\u5B9A\u5417\uFF1F",resetConfirm:"\u91CD\u7F6E\u8BBE\u7F6E",resetCancel:"\u53D6\u6D88",resetSuccess:"\u2705 \u5DF2\u5C06 {0} \u9879\u8BBE\u7F6E\u91CD\u7F6E\u4E3A\u9ED8\u8BA4\u503C\u3002",validateNoIssues:"\u2705 \u914D\u7F6E\u6709\u6548 - \u672A\u53D1\u73B0\u95EE\u9898\uFF01",validateFoundIssues:"\u53D1\u73B0 {0} \u4E2A\u914D\u7F6E\u95EE\u9898\u3002\u662F\u5426\u67E5\u770B\u8BE6\u7EC6\u4FE1\u606F\uFF1F",validateShowDetails:"\u663E\u793A\u8BE6\u7EC6\u4FE1\u606F",validateDismiss:"\u5173\u95ED",migrationNotificationMessage:"Explorer Dates \u4E3A\u517C\u5BB9\u6027\u66F4\u65B0\u4E86 {0} \u9879\u8BBE\u7F6E\u3002\u60A8\u7684\u914D\u7F6E\u5DF2\u4FDD\u7559\u3002",migrationViewChanges:"\u67E5\u770B\u66F4\u6539",migrationOpenSettings:"\u6253\u5F00\u8BBE\u7F6E",deprecatedPrompt:"Explorer Dates \u53D1\u73B0 {0} \u4E2A\u5DF2\u5F03\u7528\u8BBE\u7F6E\u3002\u662F\u5426\u5220\u9664\uFF1F",deprecatedClean:"\u7ACB\u5373\u6E05\u7406",deprecatedKeep:"\u4FDD\u7559\u65E7\u8BBE\u7F6E",deprecatedAskLater:"\u7A0D\u540E\u8BE2\u95EE",showFileLocation:"\u663E\u793A\u6587\u4EF6\u4F4D\u7F6E",teamConfigCorrupted:"Explorer Dates \u56E2\u961F\u914D\u7F6E\u6587\u4EF6\u4F3C\u4E4E\u5DF2\u635F\u574F\u3002\u8BF7\u68C0\u67E5 .explorer-dates-profiles.json \u6587\u4EF6\u6216\u4ECE\u5907\u4EFD\u6062\u590D\u3002",appliedFromTeamProfile:"\u5DF2\u4ECE\u56E2\u961F\u914D\u7F6E\u6587\u4EF6\u201C{1}\u201D\u5E94\u7528 {0} \u9879 Explorer Dates \u8BBE\u7F6E\u3002",documentedOverrides:"\u5DF2\u5728 .vscode/explorer-dates-overrides.md \u4E2D\u8BB0\u5F55 Explorer Dates \u8986\u76D6\u9879",teamConfigMissingProfile:"\u56E2\u961F\u914D\u7F6E\u7F3A\u5C11\u6D3B\u52A8\u914D\u7F6E\u6587\u4EF6\u3002",ephemeralStorageEnospc:"\u7531\u4E8E\u78C1\u76D8\u5DF2\u6EE1\uFF0C\u65E0\u6CD5\u4FDD\u5B58 Explorer Dates \u56E2\u961F\u914D\u7F6E\u3002",ephemeralStorageGeneric:"\u7531\u4E8E\u5DE5\u4F5C\u533A\u4E3A\u53EA\u8BFB\u6216\u6743\u9650\u53D7\u9650\uFF0C\u65E0\u6CD5\u4FDD\u5B58 Explorer Dates \u56E2\u961F\u914D\u7F6E\u3002",ephemeralStorageSuffix:"\u66F4\u6539\u5C06\u5728 VS Code \u91CD\u542F\u524D\u4FDD\u5B58\u5728\u5185\u5B58\u4E2D\uFF0C\u56E0\u6B64\u53EF\u80FD\u4F1A\u4E22\u5931\u3002"}});var rt=m(($a,tt)=>{var L={};L.en=Ae();L.es=Xe();L.fr=Ze();L.de=Je();L.ja=Qe();L.zh=et();tt.exports=L});var at=m((qa,nt)=>{var O=require("vscode"),M={en:{now:"now",minutes:"m",hours:"h",days:"d",weeks:"w",months:"mo",years:"y",justNow:"just now",minutesAgo:t=>`${t} minute${t!==1?"s":""} ago`,hoursAgo:t=>`${t} hour${t!==1?"s":""} ago`,yesterday:"yesterday",daysAgo:t=>`${t} day${t!==1?"s":""} ago`,lastModified:"Last modified",refreshSuccess:"Date decorations refreshed",activationError:"Explorer Dates failed to activate",errorAccessingFile:"Error accessing file for decoration",clearTelemetryPrompt:"This will permanently delete locally-stored telemetry events for Explorer Dates. This action cannot be undone. Proceed?",clearTelemetryConfirm:"Clear Telemetry",clearTelemetryCancel:"Cancel",clearTelemetrySuccess:"\u2705 Explorer Dates telemetry cleared.",migrateChecking:"Checking for settings that need migration...",migrateAllUpToDate:"\u2705 All settings are up to date!",migrateApplied:t=>`\u2705 Explorer Dates maintenance applied: ${t}.`,organizeSettingsResult:t=>`Explorer Dates settings organized: ${t}`,cleanupSuccess:"\u2705 Deprecated settings have been cleaned up!",reportFormatDisabled:(t,e)=>`Report format "${t}" is disabled. Allowed formats: ${e}`,reportSaved:t=>`Report saved to ${t}`,reportGenerateFailed:"Failed to generate report",reportDownloadTriggered:"Report download triggered in browser",selectReportTimeRangePlaceholder:"Select report time range",selectReportFormatPlaceholder:"Select report format",cleanupNoDeprecated:"\u2139\uFE0F No deprecated settings found to clean up.",showMigrationHistoryNoHistory:"No migration history found.",resetConfirmation:"This will reset all Explorer Dates settings to their default values. Are you sure?",migrationDetailsTitle:"Explorer Dates - Settings Migration",migrationDetailsHeader:"Settings Migration",gitAttributionWarning:"Explorer Dates: Git attribution badges are unavailable on VS Code for Web. Time-based decorations remain available.",noOverridesToDocument:"No overrides to document.",overrideNotesHeader:`# Explorer Dates Override Notes -`,analysisCommandsDisabled:"Explorer Dates analysis commands are disabled. Shortcuts like Ctrl+Shift+M/H/A will not work until you enable explorerDates.enableAnalysisCommands.",analysisEnableNow:"Enable Now",analysisEnablePartially:"Enable partially succeeded. Update explorerDates.enableAnalysisCommands in remaining workspace folders manually.",analysisEnableFailed:"Enable failed: update explorerDates.enableAnalysisCommands in workspace settings.",workspaceTemplatesDisabled:"Workspace templates are disabled. Enable explorerDates.enableWorkspaceTemplates to use this command.",workspaceTemplatesDisabledSave:"Workspace templates are disabled. Enable explorerDates.enableWorkspaceTemplates to save templates.",enterTemplateName:"Enter template name",enterTemplateDescription:"Enter description (optional)",failedToOpenTemplateManager:t=>`Failed to open template manager: ${t}`,failedToSaveTemplate:t=>`Failed to save template: ${t}`,reportingDisabled:"Reporting features are disabled. Enable explorerDates.enableExportReporting to generate reports.",failedToGenerateReport:t=>`Failed to generate report: ${t}`,apiDisabled:"Explorer Dates API is disabled via settings.",failedToShowApiInformation:t=>`Failed to show API information: ${t}`,failedToShowWorkspaceActivity:t=>`Failed to show workspace activity: ${t}`,failedToShowPerformanceAnalytics:t=>`Failed to show performance analytics: ${t}`,failedToShowCacheDebugInfo:t=>`Failed to show cache debug info: ${t}`,noWorkspaceFolderOpen:"No workspace folder open",resetConfirm:"Reset Settings",resetCancel:"Cancel",resetSuccess:t=>`\u2705 Reset ${t} settings to defaults.`,validateNoIssues:"\u2705 Configuration is valid - no issues found!",validateFoundIssues:t=>`Found ${t} configuration issue(s). Would you like to see details?`,validateShowDetails:"Show Details",validateDismiss:"Dismiss",migrationNotificationMessage:t=>`Explorer Dates updated ${t} setting(s) for compatibility. Your configuration has been preserved.`,migrationViewChanges:"View Changes",migrationOpenSettings:"Open Settings",deprecatedPrompt:t=>`Explorer Dates found ${t} deprecated setting(s). Would you like to remove them?`,deprecatedClean:"Clean Up Now",deprecatedKeep:"Keep Old Settings",deprecatedAskLater:"Ask Later",showFileLocation:"Show File Location",teamConfigCorrupted:"Explorer Dates team configuration file appears to be corrupted. Please check the .explorer-dates-profiles.json file or restore from backup.",appliedFromTeamProfile:(t,e)=>`Applied ${t} Explorer Dates settings from team profile "${e}".`,documentedOverrides:"Documented Explorer Dates overrides in .vscode/explorer-dates-overrides.md",teamConfigMissingProfile:"Team configuration is missing an active profile.",ephemeralStorageEnospc:"Explorer Dates team configuration could not be saved because the disk is full.",ephemeralStorageGeneric:"Explorer Dates team configuration could not be saved because the workspace is read-only or permissions are restricted.",ephemeralStorageSuffix:" Changes will be kept in memory until VS Code restarts, so they may be lost."}};try{let t=rt();if(t&&typeof t=="object")for(let[e,r]of Object.entries(t)){M[e]||(M[e]={});for(let[a,n]of Object.entries(r))typeof M[e][a]>"u"&&(M[e][a]=n)}}catch{}var se=class{constructor(){this.E="en",this.m=null,this.q(),typeof O.workspace.onDidChangeConfiguration=="function"?this.m=O.workspace.onDidChangeConfiguration(e=>{e.affectsConfiguration("explorerDates.locale")&&this.q()}):this.m=null}q(){let r=O.workspace.getConfiguration("explorerDates").get("locale","auto");if(r==="auto"){let a=O&&O.env&&typeof O.env.language=="string"?O.env.language:"en";try{r=String(a||"en").split("-")[0]}catch{r="en"}}M[r]||(r="en"),this.E=r}getString(e,...r){let n=(M[this.E]||M.en)[e];return typeof n=="function"?n(...r):n||M.en[e]||e}getCurrentLocale(){return this.E}formatDate(e,r={}){try{return e.toLocaleDateString(this.E,r)}catch{return e.toLocaleDateString("en",r)}}dispose(){this.m&&(this.m.dispose(),this.m=null),Q===this&&(Q=null)}},Q=null;function Nr(){return Q||(Q=new se),Q}nt.exports={LocalizationManager:se,getLocalization:Nr}});var ee=m((qa,ot)=>{var le=class{constructor(){this.t=null,this.u=null}ne(){return this.t?Promise.resolve(this.t):this.u?this.u:(this.u=Promise.resolve().then(()=>J(at())).then(e=>{try{this.t=e.getLocalization()}catch{this.t=null}return this.u=null,this.t}).catch(()=>(this.u=null,null)),this.u)}getString(e,...r){if(this.t&&typeof this.t.getString=="function")return this.t.getString(e,...r);if(this.A&&typeof e=="string"&&Object.prototype.hasOwnProperty.call(this.A,e)){let a=this.A[e];return typeof a=="function"?a(...r):a}return typeof e=="string"?e:""}formatDate(e){return this.t&&typeof this.t.formatDate=="function"?this.t.formatDate(e):e instanceof Date?e.toString():String(e)}getCurrentLocale(){return this.t&&typeof this.t.getCurrentLocale=="function"?this.t.getCurrentLocale():"en"}dispose(){if(this.t&&typeof this.t.dispose=="function")try{this.t.dispose()}catch{}this.t=null,this.u=null}},ie={now:"now",justNow:"just now",minutesAgo:t=>`${t} minute${t!==1?"s":""} ago`,hoursAgo:t=>`${t} hour${t!==1?"s":""} ago`,yesterday:"yesterday",daysAgo:t=>`${t} day${t!==1?"s":""} ago`,lastModified:"Last modified",refreshSuccess:"Date decorations refreshed",activationError:"Explorer Dates failed to activate",errorAccessingFile:"Error accessing file for decoration",clearTelemetrySuccess:"\u2705 Explorer Dates telemetry cleared.",migrateChecking:"Checking for settings that need migration...",migrateAllUpToDate:"\u2705 All settings are up to date!",migrateApplied:t=>`\u2705 Explorer Dates maintenance applied: ${t}.`,organizeSettingsResult:t=>`Explorer Dates settings organized: ${t}`,cleanupSuccess:"\u2705 Deprecated settings have been cleaned up!",reportingDisabled:"Reporting features are disabled. Enable explorerDates.enableExportReporting to generate reports.",reportSaved:t=>`Report saved to ${t}`,failedToGenerateReport:t=>`Failed to generate report: ${t}`};try{let t=Ae();if(t&&typeof t=="object")for(let[e,r]of Object.entries(t))typeof ie[e]>"u"&&(typeof r=="string"&&r.includes("{")?ie[e]=(...a)=>{let n=r;return a.forEach((o,s)=>{n=n.replace(new RegExp(`\\{${s}\\}`,"g"),String(o))}),n}:ie[e]=r)}catch{}var K=null;function $r(){return K||(K=new le,K.A=ie,K.ne().catch(()=>{}),K)}ot.exports={LocalizationManager:le,getLocalization:$r}});var te=m((Ua,st)=>{var V=require("vscode");function qr(){var t,e;try{let r=(t=V==null?void 0:V.env)==null?void 0:t.uiKind,a=(e=V==null?void 0:V.UIKind)==null?void 0:e.Web;return r!==void 0&&a!==void 0&&r===a}catch{return!1}}st.exports={isWebEnvironment:qr}});var ce=m((exports,module)=>{var chunk=null;try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){try{chunk=dynamicRequire("../chunks/utils-shared-chunk")}catch{}try{chunk||(chunk=dynamicRequire("./chunks/utils-shared-chunk"))}catch{}try{chunk||(chunk=dynamicRequire("../chunks/path-utils-chunk"))}catch{}try{chunk||(chunk=dynamicRequire("./chunks/path-utils-chunk"))}catch{}}}catch{}if(chunk&&chunk.normalizePath)module.exports={normalizePath:chunk.normalizePath,getFileName:chunk.getFileName,getExtension:chunk.getExtension,getDirectory:chunk.getDirectory,joinPath:chunk.joinPath,getCacheKey:chunk.getCacheKey,getUriPath:chunk.getUriPath,getRelativePath:chunk.getRelativePath};else{let t=function(c=""){return c?c.replace(/\\/g,"/"):""},e=function(c=""){let u=t(c);return u?u.split("/").filter(Boolean):[]},r=function(c=""){let u=e(c);return u.length?u[u.length-1]:""},a=function(c=""){let u=r(c),d=u.lastIndexOf(".");return d<=0?"":u.substring(d).toLowerCase()},n=function(c=""){let u=t(c),d=u.lastIndexOf("/");return d===-1?"":u.substring(0,d)},o=function(...c){return t(c.filter(Boolean).join("/")).replace(/\/+/g,"/")},s=function(c=""){return t(c).toLowerCase()},i=function(c=""){if(!c)return"";if(typeof c=="string")return c;if(typeof c.fsPath=="string"&&c.fsPath.length>0)return c.fsPath;if(typeof c.path=="string"&&c.path.length>0)return c.path;if(typeof c.toString=="function")try{return c.toString(!0)}catch{return c.toString()}return String(c)},l=function(c="",u=""){let d=t(c),h=t(u);return d&&h.startsWith(d)?h.substring(d.length).replace(/^\/+/,""):h};normalizePath=t,getSegments=e,getFileName=r,getExtension=a,getDirectory=n,joinPath=o,getCacheKey=s,getUriPath=i,getRelativePath=l,module.exports={normalizePath:t,getFileName:r,getExtension:a,getDirectory:n,joinPath:o,getCacheKey:s,getUriPath:i,getRelativePath:l}}var normalizePath,getSegments,getFileName,getExtension,getDirectory,joinPath,getCacheKey,getUriPath,getRelativePath});var Re=m((za,lt)=>{var ue=class extends Error{constructor(e,r,a={}){super(r),this.code=e,this.context=a,this.name="ExtensionError"}},it={FILE_PERMISSION_DENIED:"FILE_PERMISSION_DENIED",WORKSPACE_TOO_LARGE:"WORKSPACE_TOO_LARGE",CHUNK_LOAD_FAILED:"CHUNK_LOAD_FAILED"};function Ur(t){if(!t)return!1;let e=t.code||(t==null?void 0:t.name);return["EACCES","EPERM","EROFS","NoPermissions"].includes(e)}var xe=class extends ue{constructor(e,r,a={}){let{recoverable:n=!0,context:o={}}=a;super(it.CHUNK_LOAD_FAILED,`Failed to load ${e}: ${r}`,{chunkName:e,recoverable:n,...o}),this.name="ChunkLoadError",this.chunkName=e,this.recoverable=n}};function zr(t,e,r={}){let a=require("vscode"),{userFacing:n=!0}=r,o=(e==null?void 0:e.recoverable)??!0;n&&!o&&a.window.showErrorMessage(`Explorer Dates: ${t} feature unavailable. Please reinstall or rebuild the extension.`)}lt.exports={ExtensionError:ue,ERROR_CODES:it,isPermissionError:Ur,ChunkLoadError:xe,handleChunkFailure:zr}});var pt=m((Ha,gt)=>{var ct="EXPLORER_DATES_FORCE_VSCODE_FS";function ut(t,e=process.env){return String((e==null?void 0:e[t])||"")==="1"}function de(t){let e=t&&typeof t=="object"?t:null,r=String((e==null?void 0:e.scheme)||(typeof t=="string"&&/^[a-z][a-z0-9+.-]*:/i.test(t)?t.split(":",1)[0]:"file")).toLowerCase(),a=String((e==null?void 0:e.authority)||""),n=(e==null?void 0:e.path)||(e==null?void 0:e.fsPath)||(typeof t=="string"?t.replace(/^[a-z][a-z0-9+.-]*:\/\//i,""):"");return{scheme:r,authority:a,path:String(n||"")}}function Hr({uri:t,isWeb:e=!1,remoteName:r="",forceWorkspaceFs:a=ut(ct)}={}){let n=de(t),o=n.scheme!=="file",s=!!e,i=!!r,l=!!(a||s||i||o);return{scheme:n.scheme,authority:n.authority,isFileScheme:!o,isVirtual:o,isBrowser:s,isRemote:i,forceWorkspaceFs:!!a,filesystem:l?"workspace.fs":"node.fs",provider:o?n.scheme==="github"||n.scheme==="vscode-vfs"?"github":"virtual":"filesystem"}}function dt({uri:t,platform:e=process.platform,caseSensitive:r}={}){return typeof r=="boolean"?r:de(t).scheme!=="file"?!0:e!=="win32"}function Kr(t,e={}){let r=de(t),a=r.path.replace(/\\/g,"/").replace(/\/+/g,"/"),n=`${r.scheme}://${r.authority}${a}`;return dt({uri:t,...e})?n:n.toLowerCase()}function Fe(t){if(t instanceof Date){let e=t.getTime();return Number.isFinite(e)?e:null}if(typeof t=="number")return Number.isFinite(t)?t:null;if(typeof t=="string"&&t.trim()){let e=Date.parse(t);return Number.isFinite(e)?e:null}return null}function Vr(t){if(!t||typeof t!="object")return null;let e=Fe(t.mtime),r=Fe(t.ctime);return{...t,mtimeMs:e,ctimeMs:r}}gt.exports={FORCE_WORKSPACE_FS_ENV:ct,envFlag:ut,getUriParts:de,getEnvironmentContract:Hr,isCaseSensitive:dt,resourceIdentity:Kr,normalizeTimestamp:Fe,normalizeStat:Vr}});var ge=m((Ka,ht)=>{function Br(){return typeof Date=="function"&&Date.now?Date.now():16409952e5}function ft(t){return!!(t&&typeof t=="object"&&typeof t.getTime=="function")}function Gr(t){if(ft(t))return t;if(typeof t=="number")return new Date(t);if(typeof t=="string"){let e=Date.parse(t);return isNaN(e)?new Date:new Date(e)}return new Date}function N(t=""){return t?t.replace(/\\/g,"/"):""}function jr(t=""){let e=N(t);return e?e.split("/").filter(Boolean):[]}function mt(t=""){let e=jr(t);return e.length?e[e.length-1]:""}function Yr(t=""){let e=mt(t),r=e.lastIndexOf(".");return r<=0?"":e.substring(r).toLowerCase()}function Xr(t=""){let e=N(t),r=e.lastIndexOf("/");return r===-1?"":e.substring(0,r)}function Zr(...t){return N(t.filter(Boolean).join("/")).replace(/\/+/g,"/")}function Jr(t=""){return N(t).toLowerCase()}function Qr(t=""){if(!t)return"";if(typeof t=="string")return t;if(typeof t.fsPath=="string"&&t.fsPath.length>0)return t.fsPath;if(typeof t.path=="string"&&t.path.length>0)return t.path;if(typeof t.toString=="function")try{return t.toString(!0)}catch{return t.toString()}return String(t)}function en(t="",e=""){let r=N(t),a=N(e);return r&&a.startsWith(r)?a.substring(r.length).replace(/^\/+/,""):a}ht.exports={ensureDate:Gr,isDateLike:ft,getCurrentTimestamp:Br,normalizePath:N,getFileName:mt,getExtension:Yr,getDirectory:Xr,joinPath:Zr,getCacheKey:Jr,getUriPath:Qr,getRelativePath:en}});var _e=m((exports,module)=>{var chunk=null;try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){try{chunk=dynamicRequire("../chunks/utils-shared-chunk")}catch{}try{chunk||(chunk=dynamicRequire("./chunks/utils-shared-chunk"))}catch{}try{chunk||(chunk=dynamicRequire("../chunks/date-helpers-chunk"))}catch{}try{chunk||(chunk=dynamicRequire("./chunks/date-helpers-chunk"))}catch{}}}catch{}if(chunk&&(chunk.ensureDate||chunk.isDateLike||chunk.getCurrentTimestamp))module.exports={ensureDate:chunk.ensureDate,isDateLike:chunk.isDateLike,getCurrentTimestamp:chunk.getCurrentTimestamp};else{let t=function(){return typeof Date=="function"&&Date.now?Date.now():16409952e5},e=function(a){return!!(a&&typeof a=="object"&&typeof a.getTime=="function")},r=function(a){if(e(a))return a;if(typeof a=="number")return new Date(a);if(typeof a=="string"){let n=Date.parse(a);return isNaN(n)?new Date:new Date(n)}return new Date};getCurrentTimestamp=t,isDateLike=e,ensureDate=r,module.exports={ensureDate:r,isDateLike:e,getCurrentTimestamp:t}}var getCurrentTimestamp,isDateLike,ensureDate});var fe=m((Va,Et)=>{var b=require("vscode"),{isWebEnvironment:wt}=te(),{normalizePath:tn}=ce(),{ExtensionError:rn,ERROR_CODES:nn,isPermissionError:an}=Re(),{getEnvironmentContract:on,normalizeStat:sn,FORCE_WORKSPACE_FS_ENV:ln}=pt(),B;try{let t=ge();t&&(B=t.ensureDate)}catch{}B||(B=_e().ensureDate);var bt=typeof process<"u"&&process.env?process.env:{},yt=bt.VSCODE_WEB==="true"||wt(),y=null;if(!yt)try{y=require("fs").promises}catch{y=null}var pe=class{constructor(){this.isWeb=yt||wt()}s(e){var r;try{return on({uri:this.a(e),isWeb:this.isWeb,remoteName:(r=b.env)==null?void 0:r.remoteName,forceWorkspaceFs:bt[ln]==="1"}).filesystem==="workspace.fs"}catch{return!1}}o(e){if(!e)return"";if(typeof e=="string")return e;if(e&&typeof e=="object"&&typeof e.fsPath=="string")return e.fsPath;if(e&&typeof e=="object"&&typeof e.path=="string")return e.path;if(typeof e=="object"){if(typeof e.fsPath=="string")return e.fsPath;if(typeof e.path=="string")return e.path}return String(e)}a(e){if(e&&typeof e=="object"&&typeof e.scheme=="string"&&typeof e.path=="string")return e;if(typeof e=="string"){let r=e.trim(),a=/^[a-zA-Z]:[\\/]/.test(r);if(/^[a-zA-Z][a-zA-Z0-9+.-]*:/.test(r)&&!a){let o=b.Uri.parse(r);if(o.scheme&&o.scheme!=="file")return o}return b.Uri.file(e)}if(e&&typeof e=="object"){if(e.uri&&e.uri!==e)try{return this.a(e.uri)}catch{}if(this.isWeb&&typeof e.scheme=="string"&&typeof e.path=="string")return b.Uri.from({scheme:e.scheme,authority:e.authority||"",path:e.path||"",query:e.query||"",fragment:e.fragment||""});if(typeof e.fsPath=="string"&&e.fsPath.length>0)return b.Uri.file(e.fsPath);if(typeof e.path=="string"&&e.path.length>0)return this.isWeb&&typeof e.scheme=="string"&&e.scheme!=="file"?b.Uri.from({scheme:e.scheme,authority:e.authority||"",path:e.path,query:e.query||"",fragment:e.fragment||""}):b.Uri.file(e.path);if(typeof e.href=="string"&&e.href.length>0)return b.Uri.parse(e.href);if(typeof e.scheme=="string")return b.Uri.from({scheme:e.scheme,authority:e.authority||"",path:e.path||e.fsPath||"",query:e.query||"",fragment:e.fragment||""});if(typeof e.toString=="function")try{let r=e.toString(!0);if(r&&r!=="[object Object]")return b.Uri.parse(r)}catch{let r=e.toString();if(r&&r!=="[object Object]")return b.Uri.parse(r)}}throw new Error(`Unsupported target type: ${typeof e}`)}async stat(e){let r=this.s(e);if(!this.isWeb&&y&&!r)return y.stat(this.o(e));let a=this.a(e),n=await b.workspace.fs.stat(a),o=sn(n);return{...o,mtime:o.mtimeMs===null?B(n.mtime):new Date(o.mtimeMs),ctime:o.ctimeMs===null?B(n.ctime):new Date(o.ctimeMs),birthtime:o.ctimeMs===null?B(n.ctime):new Date(o.ctimeMs),isFile:()=>n.type===b.FileType.File,isDirectory:()=>n.type===b.FileType.Directory}}async readFile(e,r="utf8"){let a=this.s(e);if(!this.isWeb&&y&&!a)return y.readFile(this.o(e),r);let n=this.a(e),o=await b.workspace.fs.readFile(n);return r===null||r==="binary"?o:new TextDecoder(r).decode(o)}async writeFile(e,r,a="utf8"){let n=this.o(e);try{let o=this.s(e);if(!this.isWeb&&y&&!o)return y.writeFile(n,r,a);let s=this.a(e),i=typeof r=="string"?new TextEncoder().encode(r):r;await b.workspace.fs.writeFile(s,i)}catch(o){this.x("write file",n,o)}}async rename(e,r,a={overwrite:!1}){let n=this.o(e),o=this.o(r);try{let s=this.s(e)||this.s(r);if(!this.isWeb&&y&&!s)return y.rename(n,o);if(typeof b.workspace.fs.rename=="function")await b.workspace.fs.rename(this.a(e),this.a(r),a);else if(this.a(e).scheme==="file"&&this.a(r).scheme==="file")await(y||require("fs").promises).rename(n,o);else throw new Error("The active filesystem provider cannot rename report output.")}catch(s){this.x("rename file",`${n} -> ${o}`,s)}}async mkdir(e,r={recursive:!0}){let a=this.o(e);try{let n=this.s(e);if(!this.isWeb&&y&&!n)return y.mkdir(a,r);let o=this.a(e);await b.workspace.fs.createDirectory(o)}catch(n){this.x("create directory",a,n)}}async readdir(e,r={withFileTypes:!1}){let a=this.s(e);if(!this.isWeb&&y&&!a)return y.readdir(this.o(e),r);let n=this.a(e),o=await b.workspace.fs.readDirectory(n);return r.withFileTypes?o.map(([s,i])=>({name:s,isDirectory:()=>i===b.FileType.Directory,isFile:()=>i===b.FileType.File})):o.map(([s])=>s)}async delete(e,r={recursive:!1}){let a=this.s(e);if(!this.isWeb&&y&&!a){let o=this.o(e);return r.recursive?y.rm?y.rm(o,r):y.rmdir(o,r):y.unlink(o)}let n=this.a(e);await b.workspace.fs.delete(n,r)}async exists(e){try{return await this.stat(e),!0}catch{return!1}}async ensureDirectory(e){let r=tn(this.o(e));await this.mkdir(r,{recursive:!0})}x(e,r,a){throw an(a)?new rn(nn.FILE_PERMISSION_DENIED,`Permission denied while attempting to ${e}`,{path:r,code:a.code}):a}},cn=new pe;Et.exports={FileSystemAdapter:pe,fileSystem:cn}});var $=m((Ba,Ct)=>{var G=typeof process<"u"&&process.env?process.env:{},un=12e4,dn=1e4,gn=1440*60*1e3,pn=2,fn=["Ja","Fe","Mr","Ap","My","Jn","Jl","Au","Se","Oc","No","De"],mn=Number(G.EXPLORER_DATES_DECORATION_POOL_SIZE||2048),hn=Number(G.EXPLORER_DATES_FLYWEIGHT_CACHE_SIZE||4096),wn=Number(G.EXPLORER_DATES_WORKSPACE_BALANCED_THRESHOLD||15e3),bn=Number(G.EXPLORER_DATES_WORKSPACE_LARGE_THRESHOLD||25e4),vt=Number(G.EXPLORER_DATES_WORKSPACE_EXTREME_THRESHOLD||4e5),yn=Number(G.EXPLORER_DATES_WORKSPACE_SCAN_MAX_RESULTS||Math.min(vt+1,50001)),En={ADVANCED_CACHE:"explorerDates.advancedCache",ADVANCED_CACHE_METADATA:"explorerDates.advancedCacheMetadata",TEMPLATE_STORE:"explorerDates.templates",WEB_GIT_NOTICE:"explorerDates.webGitNotice"},vn="explorerDatesChunks",Cn="__explorerDatesChunks";Ct.exports={DEFAULT_CACHE_TIMEOUT:un,DEFAULT_MAX_CACHE_SIZE:dn,DEFAULT_PERSISTENT_CACHE_TTL:gn,DEFAULT_DECORATION_POOL_SIZE:mn,DEFAULT_FLYWEIGHT_CACHE_SIZE:hn,MAX_BADGE_LENGTH:pn,MONTH_ABBREVIATIONS:fn,WORKSPACE_SCALE_BALANCED_THRESHOLD:wn,WORKSPACE_SCALE_LARGE_THRESHOLD:bn,WORKSPACE_SCALE_EXTREME_THRESHOLD:vt,WORKSPACE_SCAN_MAX_RESULTS:yn,GLOBAL_STATE_KEYS:En,WEB_CHUNK_GLOBAL_KEY:vn,LEGACY_WEB_CHUNK_GLOBAL_KEY:Cn}});var Pe=m((Ga,Dt)=>{var{MAX_BADGE_LENGTH:St}=$();function Sn(t=0,e="auto"){let r=typeof t=="number"&&!Number.isNaN(t)?t:0;if(e==="bytes")return`~${r}B`;let a=r/1024;if(e==="kb")return`~${a.toFixed(1)}K`;let n=a/1024;return e==="mb"?`~${n.toFixed(1)}M`:r<1024?`~${r}B`:a<1024?`~${Math.round(a)}K`:`~${n.toFixed(1)}M`}function Dn(t){if(t)return t.length>St?t.substring(0,St):t}Dt.exports={formatFileSize:Sn,trimBadge:Dn}});var _t=m((ja,Ft)=>{var kt=[".git","node_modules","dist","build","out",".vite",".vscode-test","test-results","playwright-report","coverage"],Tt=["24h","7d","30d","90d","all"];function k(t=""){return String(t||"").replace(/\\/g,"/").replace(/\/+/g,"/").replace(/^\.\//,"")}function At(t){return t==="full"||t==="all"?"all":Tt.includes(t)?t:"all"}function xt(t,e=Date.now()){let r=At(t);if(r==="all")return null;let a=r==="24h"?24:Number.parseInt(r,10)*24;return e-a*60*60*1e3}function A(t){if(t instanceof Date)return Number.isFinite(t.getTime())?t:null;if(typeof t=="number"&&Number.isFinite(t)){let e=new Date(t<1e12?t*1e3:t);return Number.isFinite(e.getTime())?e:null}if(typeof t=="string"&&t.trim()){let e=new Date(t);return Number.isFinite(e.getTime())?e:null}return null}function kn(t={}){let e=Number.isFinite(Number(t.size))&&Number(t.size)>=0?Number(t.size):null,r=A(t.mtime??t.mtimeMs),a=A(t.birthtime??t.ctime??t.ctimeMs);return{size:e,modified:r,created:a}}function Tn(t){let r=k(t).replace(/^\*\*\//,"").replace(/\/\*\*$/,"").replace(/[.+^${}()|[\]\\]/g,"\\$&").replace(/\*\*/g,".*").replace(/\*/g,"[^/]*").replace(/\?/g,"[^/]");try{return new RegExp(`(^|/)${r}($|/)`,"i")}catch{return null}}function An(t={}){let e=new Set([...kt,...t.excludedSegments||[]].map(a=>k(a).replace(/^\/+|\/+$/g,"").toLowerCase()).filter(Boolean)),r=(t.excludedPatterns||[]).map(Tn).filter(Boolean);return{excludedSegments:[...e],isExcluded(a=""){let n=k(a);return n.split("/").filter(Boolean).some(s=>e.has(s.toLowerCase()))?!0:r.some(s=>s.test(n))},shouldDescend(a=""){return!this.isExcluded(a,!0)}}}function xn(t){let e=A(t==null?void 0:t.timestamp);return e?`${e.toISOString()}|${t.action||"modified"}|${t.source||"unknown"}`:null}function Rn(t,e,r){let a=A(t),n=xt(e,r);return!!(a&&(n===null||a.getTime()>=n))}function Rt(t){return[...t].sort((e,r)=>{var o,s;let a=((o=A(e.lastActivity||e.modified))==null?void 0:o.getTime())||0;return(((s=A(r.lastActivity||r.modified))==null?void 0:s.getTime())||0)-a||k(e.path).localeCompare(k(r.path))})}function Fn(t){let e={filesystem:0,user:0,watcher:0,git:0,unavailable:0},r={},a={};for(let l of t){r[l.type||"unknown"]=(r[l.type||"unknown"]||0)+1;for(let c of l.evidence||[]){e[c.source]=(e[c.source]||0)+1;let u=A(c.timestamp);u&&(a[u.toISOString().slice(0,10)]=(a[u.toISOString().slice(0,10)]||0)+1)}l.activityUnavailable&&e.unavailable++}let n=Rt(t),o=[...t].filter(l=>Number.isFinite(l.activityCount)&&l.activityCount>0).sort((l,c)=>c.activityCount-l.activityCount||k(l.path).localeCompare(k(c.path))),s=[...t].sort((l,c)=>(c.size||0)-(l.size||0)||k(l.path).localeCompare(k(c.path))),i=[...t].filter(l=>A(l.modified)).sort((l,c)=>A(l.modified).getTime()-A(c.modified).getTime()||k(l.path).localeCompare(k(c.path)));return{totalFiles:t.length,totalSize:t.reduce((l,c)=>l+(c.size||0),0),fileTypes:r,activityByDay:a,mostActiveFiles:o.slice(0,10).map(l=>({path:l.path,activityCount:l.activityCount,lastActivity:l.lastActivity})),recentlyModified:n.slice(0,20).map(l=>({path:l.path,modified:l.modified,size:l.size})),largestFiles:s.slice(0,10).map(l=>({path:l.path,size:l.size,modified:l.modified})),oldestFiles:i.slice(0,10).map(l=>({path:l.path,modified:l.modified,size:l.size})),activitySourceBreakdown:e}}Ft.exports={REPORT_SCHEMA_VERSION:2,DEFAULT_EXCLUDED_SEGMENTS:kt,REPORT_TIME_RANGES:Tt,normalizePath:k,normalizeTimeRange:At,rangeStart:xt,validDate:A,normalizeStat:kn,createInclusionPolicy:An,activityKey:xn,inRange:Rn,sortFiles:Rt,createSummary:Fn}});var We=m((Ya,Pt)=>{"use strict";var Me=Symbol("explorerDates.commandOutcome"),re=Object.freeze({BEHAVIORAL_SUCCESS:"behavioral-success",EXPECTED_CANCELLATION:"expected-cancellation",EXPECTED_EMPTY_RESULT:"expected-empty-result",HANDLED_COMMAND_FAILURE:"handled-command-failure",UNHANDLED_COMMAND_FAILURE:"unhandled-command-failure"});function me(t,e,r,a){return Object.freeze({[Me]:!0,category:t,value:e,error:r,errorContext:a||null})}var _n=t=>me(re.BEHAVIORAL_SUCCESS,t),Pn=t=>me(re.EXPECTED_CANCELLATION,t),Mn=t=>me(re.EXPECTED_EMPTY_RESULT,t),Wn=(t,e)=>me(re.HANDLED_COMMAND_FAILURE,void 0,t,e),In=t=>!!(t&&t[Me]===!0);Pt.exports={COMMAND_OUTCOME:Me,OUTCOME_CATEGORIES:re,commandSuccess:_n,commandCancellation:Pn,commandEmpty:Mn,commandFailure:Wn,isCommandOutcome:In}});var j=m((Xa,Lt)=>{var Wt=typeof process<"u"&&process.env?process.env:{},Mt="[ExplorerDates][WebDiag]",Ie="__explorerDatesWebDiagnostics",he;function Ln(){var t,e;try{let r=require("vscode");return((t=r==null?void 0:r.env)==null?void 0:t.uiKind)===((e=r==null?void 0:r.UIKind)==null?void 0:e.Web)}catch{return Wt.VSCODE_WEB==="true"}}function x(){return he!==void 0||(he=Wt.EXPLORER_DATES_WEB_DIAG==="1"||Ln()),he}function It(){return{enabled:x(),logs:[],logOnce:new Set,commandsRegistered:new Set,commandsInvoked:[],errors:[],chunkLoads:[],provider:{created:!1,registered:!1,hydrated:!1,decorationCalls:0,refreshCalls:0,lastEvent:null}}}var On=It();function R(){return typeof globalThis<"u"?(globalThis[Ie]||(globalThis[Ie]=It()),globalThis[Ie]):On}function Nn(t){try{return JSON.stringify(t)}catch{return String(t)}}function F(t,e,r){if(!x())return;let a=R(),n={ts:new Date().toISOString(),level:t,message:e,meta:r||null};a.logs.push(n),a.logs.length>400&&a.logs.shift();let o=r?`${Mt} ${e} ${Nn(r)}`:`${Mt} ${e}`,s=console[t]||console.info;try{s(o)}catch{}}function $n(t,e,r,a){if(!x())return;let n=R();n.logOnce.has(t)||(n.logOnce.add(t),F(e,r,a))}function qn(t){if(!x())return;R().commandsRegistered.add(t),F("info","Command registered",{commandId:t})}function Un(t){if(!x())return;R().commandsInvoked.push({commandId:t,ts:Date.now()}),F("info","Command invoked",{commandId:t})}function zn(t,e,r,a,n){if(!x())return;let o=a||(e?"behavioral-success":"unhandled-command-failure"),s=r?{name:r.name||"Error",message:r.message||String(r),code:r.code||null}:null;e?F("info","Command completed",{commandId:t,outcomeCategory:o}):(F("error","Command failed",{commandId:t,outcomeCategory:o,error:s,errorContext:n||null}),R().errors.push({commandId:t,outcomeCategory:o,error:s,errorContext:n||null}))}function Hn(t,e,r){if(!x())return;R().chunkLoads.push({chunkName:t,stage:e,ts:Date.now(),error:r?r.message||String(r):null}),F(r?"warn":"info",`Chunk ${e}`,{chunkName:t,error:r==null?void 0:r.message})}function Kn(t,e){if(!x())return;let r=R();r.provider.lastEvent={event:t,ts:Date.now(),meta:e||null},t==="created"&&(r.provider.created=!0),t==="registered"&&(r.provider.registered=!0),t==="hydrated"&&(r.provider.hydrated=!0),F("info",`Provider ${t}`,e)}function Vn(){if(!x())return;let t=R();t.provider.decorationCalls+=1,t.provider.decorationCalls<=3&&F("info","Decoration request observed",{count:t.provider.decorationCalls})}function Bn(){if(!x())return;let t=R();t.provider.refreshCalls+=1}Lt.exports={isWebDiagnosticsEnabled:x,getWebDiagnosticsState:R,diagLog:F,diagLogOnce:$n,recordCommandRegistration:qn,recordCommandInvocation:Un,recordCommandResult:zn,recordChunkEvent:Hn,recordProviderEvent:Kn,recordDecorationCall:Vn,recordRefreshCall:Bn}});var Y=m((Za,$t)=>{var Le=require("vscode"),{getLocalization:Gn}=ee(),jn=Gn();function Ot(){return typeof Le.workspace.isTrusted>"u"?!0:Le.workspace.isTrusted===!0}function Nt(t="operation"){if(!Ot()){let e=jn.getString("operationRequiresTrust",t)||`This operation requires a trusted workspace. Please trust this workspace to use ${t}.`;throw Le.window.showErrorMessage(e),new Error(`Workspace trust required for ${t}`)}}async function Yn(t,e="operation"){try{return Nt(e),await t()}catch{return null}}$t.exports={isWorkspaceTrusted:Ot,requireWorkspaceTrust:Nt,withTrustGuard:Yn}});var qt=m((exports,module)=>{var vscode=require("vscode"),{fileSystem}=fe(),{formatFileSize}=Pe(),{normalizeStat,validDate}=_t(),{commandEmpty,commandFailure,commandSuccess,isCommandOutcome,OUTCOME_CATEGORIES}=We(),{recordCommandRegistration,recordCommandInvocation,recordCommandResult,diagLog}=j(),getFileName,getRelativePath;try{let t=ge();t&&(getFileName=t.getFileName,getRelativePath=t.getRelativePath)}catch{}if(!getFileName){let t=ce();getFileName=getFileName||t.getFileName,getRelativePath=getRelativePath||t.getRelativePath}var env=typeof process<"u"&&process.env?process.env:{},isWeb=env.VSCODE_WEB==="true",childProcess=null;function loadChildProcess(){return!childProcess&&!isWeb&&(childProcess=eval("require")("child_process")),childProcess}function registerCoreCommands({context:t,fileDateProvider:e,logger:r,l10n:a}){let n=[],o=new WeakSet,s=(i,l)=>(recordCommandRegistration(i),vscode.commands.registerCommand(i,async(...c)=>{recordCommandInvocation(i);try{let u=await l(...c),d=isCommandOutcome(u)?u:commandSuccess(u),h=d.category===OUTCOME_CATEGORIES.HANDLED_COMMAND_FAILURE||d.category===OUTCOME_CATEGORIES.UNHANDLED_COMMAND_FAILURE;if(recordCommandResult(i,!h,d.error,d.category,d.errorContext),h){let f=d.error||new Error(`Command failed: ${i}`);throw f&&(typeof f=="object"||typeof f=="function")&&o.add(f),f}return d.value}catch(u){throw o.has(u)||recordCommandResult(i,!1,u,OUTCOME_CATEGORIES.UNHANDLED_COMMAND_FAILURE),u}}));n.push(s("explorerDates.refreshDateDecorations",()=>{try{if(e){e.clearAllCaches(),e.refreshAll();let i=(a==null?void 0:a.getString("refreshSuccess"))||"Date decorations refreshed - all caches cleared";vscode.window.showInformationMessage(i),r.info("Date decorations refreshed manually with cache clear")}}catch(i){r.error("Failed to refresh decorations",i),vscode.window.showErrorMessage(`Failed to refresh decorations: ${i.message}`)}})),n.push(s("explorerDates.previewConfiguration",i=>{try{e&&(e.applyPreviewSettings(i),r.info("Configuration preview applied",i))}catch(l){r.error("Failed to apply configuration preview",l)}})),n.push(s("explorerDates.clearPreview",()=>{try{e&&(e.applyPreviewSettings(null),r.info("Configuration preview cleared"))}catch(i){r.error("Failed to clear configuration preview",i)}})),n.push(s("explorerDates.showMetrics",()=>{try{if(e){let i=e.getMetrics(),l=`Explorer Dates Metrics: +`,analysisCommandsDisabled:"Explorer Dates analysis commands are disabled. Shortcuts like Ctrl+Shift+M/H/A will not work until you enable explorerDates.enableAnalysisCommands.",analysisEnableNow:"Enable Now",analysisEnablePartially:"Enable partially succeeded. Update explorerDates.enableAnalysisCommands in remaining workspace folders manually.",analysisEnableFailed:"Enable failed: update explorerDates.enableAnalysisCommands in workspace settings.",workspaceTemplatesDisabled:"Workspace templates are disabled. Enable explorerDates.enableWorkspaceTemplates to use this command.",workspaceTemplatesDisabledSave:"Workspace templates are disabled. Enable explorerDates.enableWorkspaceTemplates to save templates.",enterTemplateName:"Enter template name",enterTemplateDescription:"Enter description (optional)",failedToOpenTemplateManager:t=>`Failed to open template manager: ${t}`,failedToSaveTemplate:t=>`Failed to save template: ${t}`,reportingDisabled:"Reporting features are disabled. Enable explorerDates.enableExportReporting to generate reports.",failedToGenerateReport:t=>`Failed to generate report: ${t}`,apiDisabled:"Explorer Dates API is disabled via settings.",failedToShowApiInformation:t=>`Failed to show API information: ${t}`,failedToShowWorkspaceActivity:t=>`Failed to show workspace activity: ${t}`,failedToShowPerformanceAnalytics:t=>`Failed to show performance analytics: ${t}`,failedToShowCacheDebugInfo:t=>`Failed to show cache debug info: ${t}`,noWorkspaceFolderOpen:"No workspace folder open",resetConfirm:"Reset Settings",resetCancel:"Cancel",resetSuccess:t=>`\u2705 Reset ${t} settings to defaults.`,validateNoIssues:"\u2705 Configuration is valid - no issues found!",validateFoundIssues:t=>`Found ${t} configuration issue(s). Would you like to see details?`,validateShowDetails:"Show Details",validateDismiss:"Dismiss",migrationNotificationMessage:t=>`Explorer Dates updated ${t} setting(s) for compatibility. Your configuration has been preserved.`,migrationViewChanges:"View Changes",migrationOpenSettings:"Open Settings",deprecatedPrompt:t=>`Explorer Dates found ${t} deprecated setting(s). Would you like to remove them?`,deprecatedClean:"Clean Up Now",deprecatedKeep:"Keep Old Settings",deprecatedAskLater:"Ask Later",showFileLocation:"Show File Location",teamConfigCorrupted:"Explorer Dates team configuration file appears to be corrupted. Please check the .explorer-dates-profiles.json file or restore from backup.",appliedFromTeamProfile:(t,e)=>`Applied ${t} Explorer Dates settings from team profile "${e}".`,documentedOverrides:"Documented Explorer Dates overrides in .vscode/explorer-dates-overrides.md",teamConfigMissingProfile:"Team configuration is missing an active profile.",ephemeralStorageEnospc:"Explorer Dates team configuration could not be saved because the disk is full.",ephemeralStorageGeneric:"Explorer Dates team configuration could not be saved because the workspace is read-only or permissions are restricted.",ephemeralStorageSuffix:" Changes will be kept in memory until VS Code restarts, so they may be lost."}};try{let t=rt();if(t&&typeof t=="object")for(let[e,r]of Object.entries(t)){M[e]||(M[e]={});for(let[a,n]of Object.entries(r))typeof M[e][a]>"u"&&(M[e][a]=n)}}catch{}var ie=class{constructor(){this.E="en",this.m=null,this.q(),typeof O.workspace.onDidChangeConfiguration=="function"?this.m=O.workspace.onDidChangeConfiguration(e=>{e.affectsConfiguration("explorerDates.locale")&&this.q()}):this.m=null}q(){let r=O.workspace.getConfiguration("explorerDates").get("locale","auto");if(r==="auto"){let a=O&&O.env&&typeof O.env.language=="string"?O.env.language:"en";try{r=String(a||"en").split("-")[0]}catch{r="en"}}M[r]||(r="en"),this.E=r}getString(e,...r){let n=(M[this.E]||M.en)[e];return typeof n=="function"?n(...r):n||M.en[e]||e}getCurrentLocale(){return this.E}formatDate(e,r={}){try{return e.toLocaleDateString(this.E,r)}catch{return e.toLocaleDateString("en",r)}}dispose(){this.m&&(this.m.dispose(),this.m=null),ee===this&&(ee=null)}},ee=null;function Nr(){return ee||(ee=new ie),ee}nt.exports={LocalizationManager:ie,getLocalization:Nr}});var te=m((Ua,ot)=>{var ce=class{constructor(){this.t=null,this.u=null}ne(){return this.t?Promise.resolve(this.t):this.u?this.u:(this.u=Promise.resolve().then(()=>Q(at())).then(e=>{try{this.t=e.getLocalization()}catch{this.t=null}return this.u=null,this.t}).catch(()=>(this.u=null,null)),this.u)}getString(e,...r){if(this.t&&typeof this.t.getString=="function")return this.t.getString(e,...r);if(this.A&&typeof e=="string"&&Object.prototype.hasOwnProperty.call(this.A,e)){let a=this.A[e];return typeof a=="function"?a(...r):a}return typeof e=="string"?e:""}formatDate(e){return this.t&&typeof this.t.formatDate=="function"?this.t.formatDate(e):e instanceof Date?e.toString():String(e)}getCurrentLocale(){return this.t&&typeof this.t.getCurrentLocale=="function"?this.t.getCurrentLocale():"en"}dispose(){if(this.t&&typeof this.t.dispose=="function")try{this.t.dispose()}catch{}this.t=null,this.u=null}},le={now:"now",justNow:"just now",minutesAgo:t=>`${t} minute${t!==1?"s":""} ago`,hoursAgo:t=>`${t} hour${t!==1?"s":""} ago`,yesterday:"yesterday",daysAgo:t=>`${t} day${t!==1?"s":""} ago`,lastModified:"Last modified",refreshSuccess:"Date decorations refreshed",activationError:"Explorer Dates failed to activate",errorAccessingFile:"Error accessing file for decoration",clearTelemetrySuccess:"\u2705 Explorer Dates telemetry cleared.",migrateChecking:"Checking for settings that need migration...",migrateAllUpToDate:"\u2705 All settings are up to date!",migrateApplied:t=>`\u2705 Explorer Dates maintenance applied: ${t}.`,organizeSettingsResult:t=>`Explorer Dates settings organized: ${t}`,cleanupSuccess:"\u2705 Deprecated settings have been cleaned up!",reportingDisabled:"Reporting features are disabled. Enable explorerDates.enableExportReporting to generate reports.",reportSaved:t=>`Report saved to ${t}`,failedToGenerateReport:t=>`Failed to generate report: ${t}`};try{let t=Ae();if(t&&typeof t=="object")for(let[e,r]of Object.entries(t))typeof le[e]>"u"&&(typeof r=="string"&&r.includes("{")?le[e]=(...a)=>{let n=r;return a.forEach((o,s)=>{n=n.replace(new RegExp(`\\{${s}\\}`,"g"),String(o))}),n}:le[e]=r)}catch{}var K=null;function $r(){return K||(K=new ce,K.A=le,K.ne().catch(()=>{}),K)}ot.exports={LocalizationManager:ce,getLocalization:$r}});var re=m((za,st)=>{var V=require("vscode");function qr(){var t,e;try{let r=(t=V==null?void 0:V.env)==null?void 0:t.uiKind,a=(e=V==null?void 0:V.UIKind)==null?void 0:e.Web;return r!==void 0&&a!==void 0&&r===a}catch{return!1}}st.exports={isWebEnvironment:qr}});var ue=m((exports,module)=>{var chunk=null;try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){try{chunk=dynamicRequire("../chunks/utils-shared-chunk")}catch{}try{chunk||(chunk=dynamicRequire("./chunks/utils-shared-chunk"))}catch{}try{chunk||(chunk=dynamicRequire("../chunks/path-utils-chunk"))}catch{}try{chunk||(chunk=dynamicRequire("./chunks/path-utils-chunk"))}catch{}}}catch{}if(chunk&&chunk.normalizePath)module.exports={normalizePath:chunk.normalizePath,getFileName:chunk.getFileName,getExtension:chunk.getExtension,getDirectory:chunk.getDirectory,joinPath:chunk.joinPath,getCacheKey:chunk.getCacheKey,getUriPath:chunk.getUriPath,getRelativePath:chunk.getRelativePath};else{let t=function(c=""){return c?c.replace(/\\/g,"/"):""},e=function(c=""){let u=t(c);return u?u.split("/").filter(Boolean):[]},r=function(c=""){let u=e(c);return u.length?u[u.length-1]:""},a=function(c=""){let u=r(c),d=u.lastIndexOf(".");return d<=0?"":u.substring(d).toLowerCase()},n=function(c=""){let u=t(c),d=u.lastIndexOf("/");return d===-1?"":u.substring(0,d)},o=function(...c){return t(c.filter(Boolean).join("/")).replace(/\/+/g,"/")},s=function(c=""){return t(c).toLowerCase()},i=function(c=""){if(!c)return"";if(typeof c=="string")return c;if(typeof c.fsPath=="string"&&c.fsPath.length>0)return c.fsPath;if(typeof c.path=="string"&&c.path.length>0)return c.path;if(typeof c.toString=="function")try{return c.toString(!0)}catch{return c.toString()}return String(c)},l=function(c="",u=""){let d=t(c),h=t(u);return d&&h.startsWith(d)?h.substring(d.length).replace(/^\/+/,""):h};normalizePath=t,getSegments=e,getFileName=r,getExtension=a,getDirectory=n,joinPath=o,getCacheKey=s,getUriPath=i,getRelativePath=l,module.exports={normalizePath:t,getFileName:r,getExtension:a,getDirectory:n,joinPath:o,getCacheKey:s,getUriPath:i,getRelativePath:l}}var normalizePath,getSegments,getFileName,getExtension,getDirectory,joinPath,getCacheKey,getUriPath,getRelativePath});var Re=m((Ha,lt)=>{var de=class extends Error{constructor(e,r,a={}){super(r),this.code=e,this.context=a,this.name="ExtensionError"}},it={FILE_PERMISSION_DENIED:"FILE_PERMISSION_DENIED",WORKSPACE_TOO_LARGE:"WORKSPACE_TOO_LARGE",CHUNK_LOAD_FAILED:"CHUNK_LOAD_FAILED"};function Ur(t){if(!t)return!1;let e=t.code||(t==null?void 0:t.name);return["EACCES","EPERM","EROFS","NoPermissions"].includes(e)}var xe=class extends de{constructor(e,r,a={}){let{recoverable:n=!0,context:o={}}=a;super(it.CHUNK_LOAD_FAILED,`Failed to load ${e}: ${r}`,{chunkName:e,recoverable:n,...o}),this.name="ChunkLoadError",this.chunkName=e,this.recoverable=n}};function zr(t,e,r={}){let a=require("vscode"),{userFacing:n=!0}=r,o=(e==null?void 0:e.recoverable)??!0;n&&!o&&a.window.showErrorMessage(`Explorer Dates: ${t} feature unavailable. Please reinstall or rebuild the extension.`)}lt.exports={ExtensionError:de,ERROR_CODES:it,isPermissionError:Ur,ChunkLoadError:xe,handleChunkFailure:zr}});var pt=m((Ka,gt)=>{var ct="EXPLORER_DATES_FORCE_VSCODE_FS";function ut(t,e=process.env){return String((e==null?void 0:e[t])||"")==="1"}function ge(t){let e=t&&typeof t=="object"?t:null,r=String((e==null?void 0:e.scheme)||(typeof t=="string"&&/^[a-z][a-z0-9+.-]*:/i.test(t)?t.split(":",1)[0]:"file")).toLowerCase(),a=String((e==null?void 0:e.authority)||""),n=(e==null?void 0:e.path)||(e==null?void 0:e.fsPath)||(typeof t=="string"?t.replace(/^[a-z][a-z0-9+.-]*:\/\//i,""):"");return{scheme:r,authority:a,path:String(n||"")}}function Hr({uri:t,isWeb:e=!1,remoteName:r="",forceWorkspaceFs:a=ut(ct)}={}){let n=ge(t),o=n.scheme!=="file",s=!!e,i=!!r,l=!!(a||s||i||o);return{scheme:n.scheme,authority:n.authority,isFileScheme:!o,isVirtual:o,isBrowser:s,isRemote:i,forceWorkspaceFs:!!a,filesystem:l?"workspace.fs":"node.fs",provider:o?n.scheme==="github"||n.scheme==="vscode-vfs"?"github":"virtual":"filesystem"}}function dt({uri:t,platform:e=process.platform,caseSensitive:r}={}){return typeof r=="boolean"?r:ge(t).scheme!=="file"?!0:e!=="win32"}function Kr(t,e={}){let r=ge(t),a=r.path.replace(/\\/g,"/").replace(/\/+/g,"/"),n=`${r.scheme}://${r.authority}${a}`;return dt({uri:t,...e})?n:n.toLowerCase()}function Fe(t){if(t instanceof Date){let e=t.getTime();return Number.isFinite(e)?e:null}if(typeof t=="number")return Number.isFinite(t)?t:null;if(typeof t=="string"&&t.trim()){let e=Date.parse(t);return Number.isFinite(e)?e:null}return null}function Vr(t){if(!t||typeof t!="object")return null;let e=Fe(t.mtime),r=Fe(t.ctime);return{...t,mtimeMs:e,ctimeMs:r}}gt.exports={FORCE_WORKSPACE_FS_ENV:ct,envFlag:ut,getUriParts:ge,getEnvironmentContract:Hr,isCaseSensitive:dt,resourceIdentity:Kr,normalizeTimestamp:Fe,normalizeStat:Vr}});var pe=m((Va,ht)=>{function Br(){return typeof Date=="function"&&Date.now?Date.now():16409952e5}function ft(t){return!!(t&&typeof t=="object"&&typeof t.getTime=="function")}function Gr(t){if(ft(t))return t;if(typeof t=="number")return new Date(t);if(typeof t=="string"){let e=Date.parse(t);return isNaN(e)?new Date:new Date(e)}return new Date}function N(t=""){return t?t.replace(/\\/g,"/"):""}function jr(t=""){let e=N(t);return e?e.split("/").filter(Boolean):[]}function mt(t=""){let e=jr(t);return e.length?e[e.length-1]:""}function Yr(t=""){let e=mt(t),r=e.lastIndexOf(".");return r<=0?"":e.substring(r).toLowerCase()}function Xr(t=""){let e=N(t),r=e.lastIndexOf("/");return r===-1?"":e.substring(0,r)}function Zr(...t){return N(t.filter(Boolean).join("/")).replace(/\/+/g,"/")}function Jr(t=""){return N(t).toLowerCase()}function Qr(t=""){if(!t)return"";if(typeof t=="string")return t;if(typeof t.fsPath=="string"&&t.fsPath.length>0)return t.fsPath;if(typeof t.path=="string"&&t.path.length>0)return t.path;if(typeof t.toString=="function")try{return t.toString(!0)}catch{return t.toString()}return String(t)}function en(t="",e=""){let r=N(t),a=N(e);return r&&a.startsWith(r)?a.substring(r.length).replace(/^\/+/,""):a}ht.exports={ensureDate:Gr,isDateLike:ft,getCurrentTimestamp:Br,normalizePath:N,getFileName:mt,getExtension:Yr,getDirectory:Xr,joinPath:Zr,getCacheKey:Jr,getUriPath:Qr,getRelativePath:en}});var _e=m((exports,module)=>{var chunk=null;try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){try{chunk=dynamicRequire("../chunks/utils-shared-chunk")}catch{}try{chunk||(chunk=dynamicRequire("./chunks/utils-shared-chunk"))}catch{}try{chunk||(chunk=dynamicRequire("../chunks/date-helpers-chunk"))}catch{}try{chunk||(chunk=dynamicRequire("./chunks/date-helpers-chunk"))}catch{}}}catch{}if(chunk&&(chunk.ensureDate||chunk.isDateLike||chunk.getCurrentTimestamp))module.exports={ensureDate:chunk.ensureDate,isDateLike:chunk.isDateLike,getCurrentTimestamp:chunk.getCurrentTimestamp};else{let t=function(){return typeof Date=="function"&&Date.now?Date.now():16409952e5},e=function(a){return!!(a&&typeof a=="object"&&typeof a.getTime=="function")},r=function(a){if(e(a))return a;if(typeof a=="number")return new Date(a);if(typeof a=="string"){let n=Date.parse(a);return isNaN(n)?new Date:new Date(n)}return new Date};getCurrentTimestamp=t,isDateLike=e,ensureDate=r,module.exports={ensureDate:r,isDateLike:e,getCurrentTimestamp:t}}var getCurrentTimestamp,isDateLike,ensureDate});var me=m((Ba,Et)=>{var b=require("vscode"),{isWebEnvironment:wt}=re(),{normalizePath:tn}=ue(),{ExtensionError:rn,ERROR_CODES:nn,isPermissionError:an}=Re(),{getEnvironmentContract:on,normalizeStat:sn,FORCE_WORKSPACE_FS_ENV:ln}=pt(),B;try{let t=pe();t&&(B=t.ensureDate)}catch{}B||(B=_e().ensureDate);var bt=typeof process<"u"&&process.env?process.env:{},yt=bt.VSCODE_WEB==="true"||wt(),y=null;if(!yt)try{y=require("fs").promises}catch{y=null}var fe=class{constructor(){this.isWeb=yt||wt()}s(e){var r;try{return on({uri:this.a(e),isWeb:this.isWeb,remoteName:(r=b.env)==null?void 0:r.remoteName,forceWorkspaceFs:bt[ln]==="1"}).filesystem==="workspace.fs"}catch{return!1}}o(e){if(!e)return"";if(typeof e=="string")return e;if(e&&typeof e=="object"&&typeof e.fsPath=="string")return e.fsPath;if(e&&typeof e=="object"&&typeof e.path=="string")return e.path;if(typeof e=="object"){if(typeof e.fsPath=="string")return e.fsPath;if(typeof e.path=="string")return e.path}return String(e)}a(e){if(e&&typeof e=="object"&&typeof e.scheme=="string"&&typeof e.path=="string")return e;if(typeof e=="string"){let r=e.trim(),a=/^[a-zA-Z]:[\\/]/.test(r);if(/^[a-zA-Z][a-zA-Z0-9+.-]*:/.test(r)&&!a){let o=b.Uri.parse(r);if(o.scheme&&o.scheme!=="file")return o}return b.Uri.file(e)}if(e&&typeof e=="object"){if(e.uri&&e.uri!==e)try{return this.a(e.uri)}catch{}if(this.isWeb&&typeof e.scheme=="string"&&typeof e.path=="string")return b.Uri.from({scheme:e.scheme,authority:e.authority||"",path:e.path||"",query:e.query||"",fragment:e.fragment||""});if(typeof e.fsPath=="string"&&e.fsPath.length>0)return b.Uri.file(e.fsPath);if(typeof e.path=="string"&&e.path.length>0)return this.isWeb&&typeof e.scheme=="string"&&e.scheme!=="file"?b.Uri.from({scheme:e.scheme,authority:e.authority||"",path:e.path,query:e.query||"",fragment:e.fragment||""}):b.Uri.file(e.path);if(typeof e.href=="string"&&e.href.length>0)return b.Uri.parse(e.href);if(typeof e.scheme=="string")return b.Uri.from({scheme:e.scheme,authority:e.authority||"",path:e.path||e.fsPath||"",query:e.query||"",fragment:e.fragment||""});if(typeof e.toString=="function")try{let r=e.toString(!0);if(r&&r!=="[object Object]")return b.Uri.parse(r)}catch{let r=e.toString();if(r&&r!=="[object Object]")return b.Uri.parse(r)}}throw new Error(`Unsupported target type: ${typeof e}`)}async stat(e){let r=this.s(e);if(!this.isWeb&&y&&!r)return y.stat(this.o(e));let a=this.a(e),n=await b.workspace.fs.stat(a),o=sn(n);return{...o,mtime:o.mtimeMs===null?B(n.mtime):new Date(o.mtimeMs),ctime:o.ctimeMs===null?B(n.ctime):new Date(o.ctimeMs),birthtime:o.ctimeMs===null?B(n.ctime):new Date(o.ctimeMs),isFile:()=>n.type===b.FileType.File,isDirectory:()=>n.type===b.FileType.Directory}}async readFile(e,r="utf8"){let a=this.s(e);if(!this.isWeb&&y&&!a)return y.readFile(this.o(e),r);let n=this.a(e),o=await b.workspace.fs.readFile(n);return r===null||r==="binary"?o:new TextDecoder(r).decode(o)}async writeFile(e,r,a="utf8"){let n=this.o(e);try{let o=this.s(e);if(!this.isWeb&&y&&!o)return y.writeFile(n,r,a);let s=this.a(e),i=typeof r=="string"?new TextEncoder().encode(r):r;await b.workspace.fs.writeFile(s,i)}catch(o){this.x("write file",n,o)}}async rename(e,r,a={overwrite:!1}){let n=this.o(e),o=this.o(r);try{let s=this.s(e)||this.s(r);if(!this.isWeb&&y&&!s)return y.rename(n,o);if(typeof b.workspace.fs.rename=="function")await b.workspace.fs.rename(this.a(e),this.a(r),a);else if(this.a(e).scheme==="file"&&this.a(r).scheme==="file")await(y||require("fs").promises).rename(n,o);else throw new Error("The active filesystem provider cannot rename report output.")}catch(s){this.x("rename file",`${n} -> ${o}`,s)}}async mkdir(e,r={recursive:!0}){let a=this.o(e);try{let n=this.s(e);if(!this.isWeb&&y&&!n)return y.mkdir(a,r);let o=this.a(e);await b.workspace.fs.createDirectory(o)}catch(n){this.x("create directory",a,n)}}async readdir(e,r={withFileTypes:!1}){let a=this.s(e);if(!this.isWeb&&y&&!a)return y.readdir(this.o(e),r);let n=this.a(e),o=await b.workspace.fs.readDirectory(n);return r.withFileTypes?o.map(([s,i])=>({name:s,isDirectory:()=>i===b.FileType.Directory,isFile:()=>i===b.FileType.File})):o.map(([s])=>s)}async delete(e,r={recursive:!1}){let a=this.s(e);if(!this.isWeb&&y&&!a){let o=this.o(e);return r.recursive?y.rm?y.rm(o,r):y.rmdir(o,r):y.unlink(o)}let n=this.a(e);await b.workspace.fs.delete(n,r)}async exists(e){try{return await this.stat(e),!0}catch{return!1}}async ensureDirectory(e){let r=tn(this.o(e));await this.mkdir(r,{recursive:!0})}x(e,r,a){throw an(a)?new rn(nn.FILE_PERMISSION_DENIED,`Permission denied while attempting to ${e}`,{path:r,code:a.code}):a}},cn=new fe;Et.exports={FileSystemAdapter:fe,fileSystem:cn}});var $=m((Ga,Ct)=>{var G=typeof process<"u"&&process.env?process.env:{},un=12e4,dn=1e4,gn=1440*60*1e3,pn=2,fn=["Ja","Fe","Mr","Ap","My","Jn","Jl","Au","Se","Oc","No","De"],mn=Number(G.EXPLORER_DATES_DECORATION_POOL_SIZE||2048),hn=Number(G.EXPLORER_DATES_FLYWEIGHT_CACHE_SIZE||4096),wn=Number(G.EXPLORER_DATES_WORKSPACE_BALANCED_THRESHOLD||15e3),bn=Number(G.EXPLORER_DATES_WORKSPACE_LARGE_THRESHOLD||25e4),vt=Number(G.EXPLORER_DATES_WORKSPACE_EXTREME_THRESHOLD||4e5),yn=Number(G.EXPLORER_DATES_WORKSPACE_SCAN_MAX_RESULTS||Math.min(vt+1,50001)),En={ADVANCED_CACHE:"explorerDates.advancedCache",ADVANCED_CACHE_METADATA:"explorerDates.advancedCacheMetadata",TEMPLATE_STORE:"explorerDates.templates",WEB_GIT_NOTICE:"explorerDates.webGitNotice"},vn="explorerDatesChunks",Cn="__explorerDatesChunks";Ct.exports={DEFAULT_CACHE_TIMEOUT:un,DEFAULT_MAX_CACHE_SIZE:dn,DEFAULT_PERSISTENT_CACHE_TTL:gn,DEFAULT_DECORATION_POOL_SIZE:mn,DEFAULT_FLYWEIGHT_CACHE_SIZE:hn,MAX_BADGE_LENGTH:pn,MONTH_ABBREVIATIONS:fn,WORKSPACE_SCALE_BALANCED_THRESHOLD:wn,WORKSPACE_SCALE_LARGE_THRESHOLD:bn,WORKSPACE_SCALE_EXTREME_THRESHOLD:vt,WORKSPACE_SCAN_MAX_RESULTS:yn,GLOBAL_STATE_KEYS:En,WEB_CHUNK_GLOBAL_KEY:vn,LEGACY_WEB_CHUNK_GLOBAL_KEY:Cn}});var Pe=m((ja,Dt)=>{var{MAX_BADGE_LENGTH:St}=$();function Sn(t=0,e="auto"){let r=typeof t=="number"&&!Number.isNaN(t)?t:0;if(e==="bytes")return`~${r}B`;let a=r/1024;if(e==="kb")return`~${a.toFixed(1)}K`;let n=a/1024;return e==="mb"?`~${n.toFixed(1)}M`:r<1024?`~${r}B`:a<1024?`~${Math.round(a)}K`:`~${n.toFixed(1)}M`}function Dn(t){if(t)return t.length>St?t.substring(0,St):t}Dt.exports={formatFileSize:Sn,trimBadge:Dn}});var _t=m((Ya,Ft)=>{var kt=[".git","node_modules","dist","build","out",".vite",".vscode-test","test-results","playwright-report","coverage"],Tt=["24h","7d","30d","90d","all"];function k(t=""){return String(t||"").replace(/\\/g,"/").replace(/\/+/g,"/").replace(/^\.\//,"")}function At(t){return t==="full"||t==="all"?"all":Tt.includes(t)?t:"all"}function xt(t,e=Date.now()){let r=At(t);if(r==="all")return null;let a=r==="24h"?24:Number.parseInt(r,10)*24;return e-a*60*60*1e3}function A(t){if(t instanceof Date)return Number.isFinite(t.getTime())?t:null;if(typeof t=="number"&&Number.isFinite(t)){let e=new Date(t<1e12?t*1e3:t);return Number.isFinite(e.getTime())?e:null}if(typeof t=="string"&&t.trim()){let e=new Date(t);return Number.isFinite(e.getTime())?e:null}return null}function kn(t={}){let e=Number.isFinite(Number(t.size))&&Number(t.size)>=0?Number(t.size):null,r=A(t.mtime??t.mtimeMs),a=A(t.birthtime??t.ctime??t.ctimeMs);return{size:e,modified:r,created:a}}function Tn(t){let r=k(t).replace(/^\*\*\//,"").replace(/\/\*\*$/,"").replace(/[.+^${}()|[\]\\]/g,"\\$&").replace(/\*\*/g,".*").replace(/\*/g,"[^/]*").replace(/\?/g,"[^/]");try{return new RegExp(`(^|/)${r}($|/)`,"i")}catch{return null}}function An(t={}){let e=new Set([...kt,...t.excludedSegments||[]].map(a=>k(a).replace(/^\/+|\/+$/g,"").toLowerCase()).filter(Boolean)),r=(t.excludedPatterns||[]).map(Tn).filter(Boolean);return{excludedSegments:[...e],isExcluded(a=""){let n=k(a);return n.split("/").filter(Boolean).some(s=>e.has(s.toLowerCase()))?!0:r.some(s=>s.test(n))},shouldDescend(a=""){return!this.isExcluded(a,!0)}}}function xn(t){let e=A(t==null?void 0:t.timestamp);return e?`${e.toISOString()}|${t.action||"modified"}|${t.source||"unknown"}`:null}function Rn(t,e,r){let a=A(t),n=xt(e,r);return!!(a&&(n===null||a.getTime()>=n))}function Rt(t){return[...t].sort((e,r)=>{var o,s;let a=((o=A(e.lastActivity||e.modified))==null?void 0:o.getTime())||0;return(((s=A(r.lastActivity||r.modified))==null?void 0:s.getTime())||0)-a||k(e.path).localeCompare(k(r.path))})}function Fn(t){let e={filesystem:0,user:0,watcher:0,git:0,unavailable:0},r={},a={};for(let l of t){r[l.type||"unknown"]=(r[l.type||"unknown"]||0)+1;for(let c of l.evidence||[]){e[c.source]=(e[c.source]||0)+1;let u=A(c.timestamp);u&&(a[u.toISOString().slice(0,10)]=(a[u.toISOString().slice(0,10)]||0)+1)}l.activityUnavailable&&e.unavailable++}let n=Rt(t),o=[...t].filter(l=>Number.isFinite(l.activityCount)&&l.activityCount>0).sort((l,c)=>c.activityCount-l.activityCount||k(l.path).localeCompare(k(c.path))),s=[...t].sort((l,c)=>(c.size||0)-(l.size||0)||k(l.path).localeCompare(k(c.path))),i=[...t].filter(l=>A(l.modified)).sort((l,c)=>A(l.modified).getTime()-A(c.modified).getTime()||k(l.path).localeCompare(k(c.path)));return{totalFiles:t.length,totalSize:t.reduce((l,c)=>l+(c.size||0),0),fileTypes:r,activityByDay:a,mostActiveFiles:o.slice(0,10).map(l=>({path:l.path,activityCount:l.activityCount,lastActivity:l.lastActivity})),recentlyModified:n.slice(0,20).map(l=>({path:l.path,modified:l.modified,size:l.size})),largestFiles:s.slice(0,10).map(l=>({path:l.path,size:l.size,modified:l.modified})),oldestFiles:i.slice(0,10).map(l=>({path:l.path,modified:l.modified,size:l.size})),activitySourceBreakdown:e}}Ft.exports={REPORT_SCHEMA_VERSION:2,DEFAULT_EXCLUDED_SEGMENTS:kt,REPORT_TIME_RANGES:Tt,normalizePath:k,normalizeTimeRange:At,rangeStart:xt,validDate:A,normalizeStat:kn,createInclusionPolicy:An,activityKey:xn,inRange:Rn,sortFiles:Rt,createSummary:Fn}});var We=m((Xa,Pt)=>{"use strict";var Me=Symbol("explorerDates.commandOutcome"),j=Object.freeze({BEHAVIORAL_SUCCESS:"behavioral-success",EXPECTED_CANCELLATION:"expected-cancellation",EXPECTED_EMPTY_RESULT:"expected-empty-result",EXPECTED_ALREADY_RUNNING:"expected-already-running",HANDLED_COMMAND_FAILURE:"handled-command-failure",UNHANDLED_COMMAND_FAILURE:"unhandled-command-failure"});function ne(t,e,r,a){return Object.freeze({[Me]:!0,category:t,value:e,error:r,errorContext:a||null})}var _n=t=>ne(j.BEHAVIORAL_SUCCESS,t),Pn=t=>ne(j.EXPECTED_CANCELLATION,t),Mn=t=>ne(j.EXPECTED_EMPTY_RESULT,t),Wn=t=>ne(j.EXPECTED_ALREADY_RUNNING,t),In=(t,e)=>ne(j.HANDLED_COMMAND_FAILURE,void 0,t,e),Ln=t=>!!(t&&t[Me]===!0);Pt.exports={COMMAND_OUTCOME:Me,OUTCOME_CATEGORIES:j,commandSuccess:_n,commandCancellation:Pn,commandEmpty:Mn,commandAlreadyRunning:Wn,commandFailure:In,isCommandOutcome:Ln}});var Y=m((Za,Lt)=>{var Wt=typeof process<"u"&&process.env?process.env:{},Mt="[ExplorerDates][WebDiag]",Ie="__explorerDatesWebDiagnostics",he;function On(){var t,e;try{let r=require("vscode");return((t=r==null?void 0:r.env)==null?void 0:t.uiKind)===((e=r==null?void 0:r.UIKind)==null?void 0:e.Web)}catch{return Wt.VSCODE_WEB==="true"}}function x(){return he!==void 0||(he=Wt.EXPLORER_DATES_WEB_DIAG==="1"||On()),he}function It(){return{enabled:x(),logs:[],logOnce:new Set,commandsRegistered:new Set,commandsInvoked:[],errors:[],chunkLoads:[],provider:{created:!1,registered:!1,hydrated:!1,decorationCalls:0,refreshCalls:0,lastEvent:null}}}var Nn=It();function R(){return typeof globalThis<"u"?(globalThis[Ie]||(globalThis[Ie]=It()),globalThis[Ie]):Nn}function $n(t){try{return JSON.stringify(t)}catch{return String(t)}}function F(t,e,r){if(!x())return;let a=R(),n={ts:new Date().toISOString(),level:t,message:e,meta:r||null};a.logs.push(n),a.logs.length>400&&a.logs.shift();let o=r?`${Mt} ${e} ${$n(r)}`:`${Mt} ${e}`,s=console[t]||console.info;try{s(o)}catch{}}function qn(t,e,r,a){if(!x())return;let n=R();n.logOnce.has(t)||(n.logOnce.add(t),F(e,r,a))}function Un(t){if(!x())return;R().commandsRegistered.add(t),F("info","Command registered",{commandId:t})}function zn(t){if(!x())return;R().commandsInvoked.push({commandId:t,ts:Date.now()}),F("info","Command invoked",{commandId:t})}function Hn(t,e,r,a,n){if(!x())return;let o=a||(e?"behavioral-success":"unhandled-command-failure"),s=r?{name:r.name||"Error",message:r.message||String(r),code:r.code||null}:null;e?F("info","Command completed",{commandId:t,outcomeCategory:o}):(F("error","Command failed",{commandId:t,outcomeCategory:o,error:s,errorContext:n||null}),R().errors.push({commandId:t,outcomeCategory:o,error:s,errorContext:n||null}))}function Kn(t,e,r){if(!x())return;R().chunkLoads.push({chunkName:t,stage:e,ts:Date.now(),error:r?r.message||String(r):null}),F(r?"warn":"info",`Chunk ${e}`,{chunkName:t,error:r==null?void 0:r.message})}function Vn(t,e){if(!x())return;let r=R();r.provider.lastEvent={event:t,ts:Date.now(),meta:e||null},t==="created"&&(r.provider.created=!0),t==="registered"&&(r.provider.registered=!0),t==="hydrated"&&(r.provider.hydrated=!0),F("info",`Provider ${t}`,e)}function Bn(){if(!x())return;let t=R();t.provider.decorationCalls+=1,t.provider.decorationCalls<=3&&F("info","Decoration request observed",{count:t.provider.decorationCalls})}function Gn(){if(!x())return;let t=R();t.provider.refreshCalls+=1}Lt.exports={isWebDiagnosticsEnabled:x,getWebDiagnosticsState:R,diagLog:F,diagLogOnce:qn,recordCommandRegistration:Un,recordCommandInvocation:zn,recordCommandResult:Hn,recordChunkEvent:Kn,recordProviderEvent:Vn,recordDecorationCall:Bn,recordRefreshCall:Gn}});var X=m((Ja,$t)=>{var Le=require("vscode"),{getLocalization:jn}=te(),Yn=jn();function Ot(){return typeof Le.workspace.isTrusted>"u"?!0:Le.workspace.isTrusted===!0}function Nt(t="operation"){if(!Ot()){let e=Yn.getString("operationRequiresTrust",t)||`This operation requires a trusted workspace. Please trust this workspace to use ${t}.`;throw Le.window.showErrorMessage(e),new Error(`Workspace trust required for ${t}`)}}async function Xn(t,e="operation"){try{return Nt(e),await t()}catch{return null}}$t.exports={isWorkspaceTrusted:Ot,requireWorkspaceTrust:Nt,withTrustGuard:Xn}});var qt=m((exports,module)=>{var vscode=require("vscode"),{fileSystem}=me(),{formatFileSize}=Pe(),{normalizeStat,validDate}=_t(),{commandEmpty,commandFailure,commandSuccess,isCommandOutcome,OUTCOME_CATEGORIES}=We(),{recordCommandRegistration,recordCommandInvocation,recordCommandResult,diagLog}=Y(),getFileName,getRelativePath;try{let t=pe();t&&(getFileName=t.getFileName,getRelativePath=t.getRelativePath)}catch{}if(!getFileName){let t=ue();getFileName=getFileName||t.getFileName,getRelativePath=getRelativePath||t.getRelativePath}var env=typeof process<"u"&&process.env?process.env:{},isWeb=env.VSCODE_WEB==="true",childProcess=null;function loadChildProcess(){return!childProcess&&!isWeb&&(childProcess=eval("require")("child_process")),childProcess}function registerCoreCommands({context:t,fileDateProvider:e,logger:r,l10n:a}){let n=[],o=new WeakSet,s=(i,l)=>(recordCommandRegistration(i),vscode.commands.registerCommand(i,async(...c)=>{recordCommandInvocation(i);try{let u=await l(...c),d=isCommandOutcome(u)?u:commandSuccess(u),h=d.category===OUTCOME_CATEGORIES.HANDLED_COMMAND_FAILURE||d.category===OUTCOME_CATEGORIES.UNHANDLED_COMMAND_FAILURE;if(recordCommandResult(i,!h,d.error,d.category,d.errorContext),h){let f=d.error||new Error(`Command failed: ${i}`);throw f&&(typeof f=="object"||typeof f=="function")&&o.add(f),f}return d.value}catch(u){throw o.has(u)||recordCommandResult(i,!1,u,OUTCOME_CATEGORIES.UNHANDLED_COMMAND_FAILURE),u}}));n.push(s("explorerDates.refreshDateDecorations",()=>{try{if(e){e.clearAllCaches(),e.refreshAll();let i=(a==null?void 0:a.getString("refreshSuccess"))||"Date decorations refreshed - all caches cleared";vscode.window.showInformationMessage(i),r.info("Date decorations refreshed manually with cache clear")}}catch(i){r.error("Failed to refresh decorations",i),vscode.window.showErrorMessage(`Failed to refresh decorations: ${i.message}`)}})),n.push(s("explorerDates.previewConfiguration",i=>{try{e&&(e.applyPreviewSettings(i),r.info("Configuration preview applied",i))}catch(l){r.error("Failed to apply configuration preview",l)}})),n.push(s("explorerDates.clearPreview",()=>{try{e&&(e.applyPreviewSettings(null),r.info("Configuration preview cleared"))}catch(i){r.error("Failed to clear configuration preview",i)}})),n.push(s("explorerDates.showMetrics",()=>{try{if(e){let i=e.getMetrics(),l=`Explorer Dates Metrics: Total Decorations: ${i.totalDecorations} Cache Size: ${i.cacheSize} Cache Hits: ${i.cacheHits} @@ -21,14 +21,14 @@ Is Processing: ${i.batchProcessor.isProcessing} Average Batch Time: ${i.batchProcessor.averageBatchTime.toFixed(2)}ms`),vscode.window.showInformationMessage(l,{modal:!0}),r.info("Metrics displayed",i)}}catch(i){r.error("Failed to show metrics",i),vscode.window.showErrorMessage(`Failed to show metrics: ${i.message}`)}})),n.push(s("explorerDates.openLogs",()=>{try{if(r&&typeof r.show=="function"){r.show();return}diagLog("info","Logger channel unavailable; showing fallback message"),vscode.window.showInformationMessage("Explorer Dates logs are unavailable in this environment.")}catch(i){r.error("Failed to open logs",i),vscode.window.showErrorMessage(`Failed to open logs: ${i.message}`)}})),n.push(s("explorerDates.showCurrentConfig",()=>{try{let i=vscode.workspace.getConfiguration("explorerDates"),l={showDateDecorations:i.get("showDateDecorations",!0),performanceMode:i.get("performanceMode",!1),featureLevel:i.get("featureLevel","auto"),highContrastMode:i.get("highContrastMode"),badgePriority:i.get("badgePriority"),colorScheme:i.get("colorScheme"),accessibilityMode:i.get("accessibilityMode"),dateDecorationFormat:i.get("dateDecorationFormat"),fileSizeFormat:i.get("fileSizeFormat","auto"),showGitInfo:i.get("showGitInfo"),showFileSize:i.get("showFileSize")},c=`Current Explorer Dates Configuration: ${Object.entries(l).map(([u,d])=>`${u}: ${JSON.stringify(d)}`).join(` -`)}`;vscode.window.showInformationMessage(c,{modal:!0}),r.info("Current configuration displayed",l)}catch(i){r.error("Failed to show configuration",i)}})),n.push(s("explorerDates.resetToDefaults",async()=>{try{let{requireWorkspaceTrust:i}=Y();i("reset settings to defaults");let l=vscode.workspace.getConfiguration("explorerDates");await l.update("highContrastMode",!1,vscode.ConfigurationTarget.Global),await l.update("badgePriority","time",vscode.ConfigurationTarget.Global),await l.update("accessibilityMode",!1,vscode.ConfigurationTarget.Global),vscode.window.showInformationMessage("Reset high contrast, badge priority, and accessibility mode to defaults. Changes should take effect immediately."),r.info("Reset problematic settings to defaults"),e&&(e.clearAllCaches(),e.refreshAll())}catch(i){r.error("Failed to reset settings",i),vscode.window.showErrorMessage(`Failed to reset settings: ${i.message}`)}})),n.push(s("explorerDates.toggleDecorations",()=>{try{let i=vscode.workspace.getConfiguration("explorerDates"),l=i.get("showDateDecorations",!0);i.update("showDateDecorations",!l,vscode.ConfigurationTarget.Global);let c=l?(a==null?void 0:a.getString("decorationsDisabled"))||"Date decorations disabled":(a==null?void 0:a.getString("decorationsEnabled"))||"Date decorations enabled";vscode.window.showInformationMessage(c),r.info(`Date decorations toggled to: ${!l}`)}catch(i){r.error("Failed to toggle decorations",i),vscode.window.showErrorMessage(`Failed to toggle decorations: ${i.message}`)}})),n.push(s("explorerDates.copyFileDate",async i=>{try{let l=i;if(!l&&vscode.window.activeTextEditor&&(l=vscode.window.activeTextEditor.document.uri),!l){vscode.window.showWarningMessage("No file selected");return}let c=await fileSystem.stat(l),u=(c.mtime instanceof Date?c.mtime:new Date(c.mtime)).toLocaleString();await vscode.env.clipboard.writeText(u),vscode.window.showInformationMessage(`Copied to clipboard: ${u}`),r.info(`File date copied for: ${l.fsPath||l.path}`)}catch(l){r.error("Failed to copy file date",l),vscode.window.showErrorMessage(`Failed to copy file date: ${l.message}`)}})),n.push(s("explorerDates.showFileDetails",async i=>{var l,c;try{let u=i;if(!u&&vscode.window.activeTextEditor&&(u=vscode.window.activeTextEditor.document.uri),!u)return vscode.window.showWarningMessage("No file selected"),commandEmpty();let d=await fileSystem.stat(u),h=normalizeStat(d),f=u.fsPath||u.path||u.toString(),w=getFileName(f),S=h.size===null?"Unavailable":formatFileSize(h.size,"auto"),v=((l=validDate(h.modified))==null?void 0:l.toLocaleString())||"Unavailable",Z=((c=validDate(h.created))==null?void 0:c.toLocaleString())||"Unavailable (not provided)",I=`File: ${w} +`)}`;vscode.window.showInformationMessage(c,{modal:!0}),r.info("Current configuration displayed",l)}catch(i){r.error("Failed to show configuration",i)}})),n.push(s("explorerDates.resetToDefaults",async()=>{try{let{requireWorkspaceTrust:i}=X();i("reset settings to defaults");let l=vscode.workspace.getConfiguration("explorerDates");await l.update("highContrastMode",!1,vscode.ConfigurationTarget.Global),await l.update("badgePriority","time",vscode.ConfigurationTarget.Global),await l.update("accessibilityMode",!1,vscode.ConfigurationTarget.Global),vscode.window.showInformationMessage("Reset high contrast, badge priority, and accessibility mode to defaults. Changes should take effect immediately."),r.info("Reset problematic settings to defaults"),e&&(e.clearAllCaches(),e.refreshAll())}catch(i){r.error("Failed to reset settings",i),vscode.window.showErrorMessage(`Failed to reset settings: ${i.message}`)}})),n.push(s("explorerDates.toggleDecorations",()=>{try{let i=vscode.workspace.getConfiguration("explorerDates"),l=i.get("showDateDecorations",!0);i.update("showDateDecorations",!l,vscode.ConfigurationTarget.Global);let c=l?(a==null?void 0:a.getString("decorationsDisabled"))||"Date decorations disabled":(a==null?void 0:a.getString("decorationsEnabled"))||"Date decorations enabled";vscode.window.showInformationMessage(c),r.info(`Date decorations toggled to: ${!l}`)}catch(i){r.error("Failed to toggle decorations",i),vscode.window.showErrorMessage(`Failed to toggle decorations: ${i.message}`)}})),n.push(s("explorerDates.copyFileDate",async i=>{try{let l=i;if(!l&&vscode.window.activeTextEditor&&(l=vscode.window.activeTextEditor.document.uri),!l){vscode.window.showWarningMessage("No file selected");return}let c=await fileSystem.stat(l),u=(c.mtime instanceof Date?c.mtime:new Date(c.mtime)).toLocaleString();await vscode.env.clipboard.writeText(u),vscode.window.showInformationMessage(`Copied to clipboard: ${u}`),r.info(`File date copied for: ${l.fsPath||l.path}`)}catch(l){r.error("Failed to copy file date",l),vscode.window.showErrorMessage(`Failed to copy file date: ${l.message}`)}})),n.push(s("explorerDates.showFileDetails",async i=>{var l,c;try{let u=i;if(!u&&vscode.window.activeTextEditor&&(u=vscode.window.activeTextEditor.document.uri),!u)return vscode.window.showWarningMessage("No file selected"),commandEmpty();let d=await fileSystem.stat(u),h=normalizeStat(d),f=u.fsPath||u.path||u.toString(),w=getFileName(f),S=h.size===null?"Unavailable":formatFileSize(h.size,"auto"),v=((l=validDate(h.modified))==null?void 0:l.toLocaleString())||"Unavailable",J=((c=validDate(h.created))==null?void 0:c.toLocaleString())||"Unavailable (not provided)",I=`File: ${w} Size: ${S} Modified: ${v} -Created: ${Z} +Created: ${J} Path: ${f}`;return vscode.window.showInformationMessage(I,{modal:!0}),r.info(`File details shown for: ${f}`),commandSuccess()}catch(u){return r.error("Failed to show file details",u),vscode.window.showErrorMessage(`Failed to show file details: ${(u==null?void 0:u.code)==="ENOENT"?"The selected resource no longer exists.":"The selected resource could not be read."}`),commandFailure(u,{operation:"show-file-details",errorCode:(u==null?void 0:u.code)||null})}})),n.push(s("explorerDates.toggleFadeOldFiles",()=>{try{let i=vscode.workspace.getConfiguration("explorerDates"),l=i.get("fadeOldFiles",!1);i.update("fadeOldFiles",!l,vscode.ConfigurationTarget.Global);let c=l?"Fade old files disabled":"Fade old files enabled";vscode.window.showInformationMessage(c),r.info(`Fade old files toggled to: ${!l}`)}catch(i){r.error("Failed to toggle fade old files",i),vscode.window.showErrorMessage(`Failed to toggle fade old files: ${i.message}`)}})),n.push(s("explorerDates.showFileHistory",async i=>{try{if(isWeb){vscode.window.showInformationMessage("Git history is unavailable on VS Code for Web.");return}let l=i;if(!l&&vscode.window.activeTextEditor&&(l=vscode.window.activeTextEditor.document.uri),!l){vscode.window.showWarningMessage("No file selected");return}let c=vscode.workspace.getWorkspaceFolder(l);if(!c){vscode.window.showWarningMessage("File is not in a workspace");return}let d=`git log --oneline -10 -- "${getRelativePath(c.uri.fsPath||c.uri.path,l.fsPath||l.path)}"`;loadChildProcess().exec(d,{cwd:c.uri.fsPath,timeout:3e3},(f,w)=>{if(f){f.message.includes("not a git repository")?vscode.window.showWarningMessage("This file is not in a Git repository"):vscode.window.showErrorMessage(`Git error: ${f.message}`);return}if(!w.trim()){vscode.window.showInformationMessage("No Git history found for this file");return}let S=w.trim(),v=getFileName(l.fsPath||l.path);vscode.window.showInformationMessage(`Recent commits for ${v}: -${S}`,{modal:!0})}),r.info(`File history requested for: ${l.fsPath||l.path}`)}catch(l){r.error("Failed to show file history",l),vscode.window.showErrorMessage(`Failed to show file history: ${l.message}`)}})),n.push(vscode.commands.registerCommand("explorerDates.compareWithPrevious",async i=>{try{if(isWeb){vscode.window.showInformationMessage("Git comparisons are unavailable on VS Code for Web.");return}let l=i;if(!l&&vscode.window.activeTextEditor&&(l=vscode.window.activeTextEditor.document.uri),!l){vscode.window.showWarningMessage("No file selected");return}if(!vscode.workspace.getWorkspaceFolder(l)){vscode.window.showWarningMessage("File is not in a workspace");return}await vscode.commands.executeCommand("git.openChange",l),r.info(`Git diff opened for: ${l.fsPath||l.path}`)}catch(l){r.error("Failed to compare with previous version",l),vscode.window.showErrorMessage(`Failed to compare with previous version: ${l.message}`)}})),n.forEach(i=>t.subscriptions.push(i))}module.exports={registerCoreCommands}});var zt=m((Ja,Ut)=>{var _=require("vscode");function Xn({context:t,logger:e,getOnboardingManager:r}){let a=[];a.push(_.commands.registerCommand("explorerDates.showFeatureTour",async()=>{try{let n=await r();if(!n){_.window.showWarningMessage("Onboarding system unavailable.");return}await n.showFeatureTour(),e.info("Feature tour opened")}catch(n){e.error("Failed to show feature tour",n),_.window.showErrorMessage(`Failed to show feature tour: ${n.message}`)}})),a.push(_.commands.registerCommand("explorerDates.showQuickSetup",async()=>{try{let n=await r();if(!n){_.window.showWarningMessage("Onboarding system unavailable.");return}await n.showQuickSetupWizard(),e.info("Quick setup wizard opened")}catch(n){e.error("Failed to show quick setup wizard",n),_.window.showErrorMessage(`Failed to show quick setup wizard: ${n.message}`)}})),a.push(_.commands.registerCommand("explorerDates.showWhatsNew",async()=>{try{let n=await r();if(!n){_.window.showWarningMessage("Onboarding system unavailable.");return}let o=t.extension.packageJSON.version;await n.showWhatsNew(o),e.info("What's new panel opened")}catch(n){e.error("Failed to show what's new",n),_.window.showErrorMessage(`Failed to show what's new: ${n.message}`)}})),a.forEach(n=>t.subscriptions.push(n))}Ut.exports={registerOnboardingCommands:Xn}});var ne=m((exports,module)=>{var{getLogger}=T(),env=typeof process<"u"&&process.env?process.env:{};function createFallbackVscodeMinimal(){return{workspace:{workspaceFolders:[],getConfiguration:()=>({get:()=>{},async update(){},inspect:()=>({defaultValue:void 0,globalValue:void 0,workspaceValue:void 0,workspaceFolderValue:void 0})})},ConfigurationTarget:{Global:1,Workspace:2,WorkspaceFolder:3}}}function resolveVscodeMinimal(){try{return require("vscode")}catch{return createFallbackVscodeMinimal()}}var MinimalSettingsCoordinator=class{constructor(e={}){this.ae=e.defaultSection||"explorerDates",this.v=new Map,this.U=new Map,this.Ne=Number(env.EXPLORER_DATES_LOCK_WAIT_WARN_MS||1e3),this._logger=getLogger()}oe(e,r){let n=(this.v.get(e)||Promise.resolve()).then(()=>r()),o=n.catch(()=>{});return this.v.set(e,o),n.finally(()=>{this.v.get(e)===o&&this.v.delete(e)}),n}R(e,r){return resolveVscodeMinimal().workspace.getConfiguration(e||void 0,r)}h(e,r){let a=r||this.ae;return a?e.startsWith(`${a}.`)?{section:a,key:e.slice(a.length+1),fullKey:e}:e.includes(".")?{section:void 0,key:e,fullKey:e}:{section:a,key:e,fullKey:`${a}.${e}`}:{section:void 0,key:e,fullKey:e}}async updateSetting(e,r,a={}){return this.oe(this.h(e,a.section).fullKey,async()=>{let n=this.h(e,a.section),o=this.R(n.section,a.resource);try{let s=this.se(a.scope,a.resource);return await o.update(n.key,r,s),{key:n.fullKey,updated:!0}}catch(s){try{this._logger.warn(`Configuration update failed for ${n.fullKey}: ${s&&s.message}`)}catch{}return{key:n.fullKey,updated:!1,error:s}}})}async applySettings(e,r={}){let a=Array.isArray(e)?e:Object.entries(e).map(([s,i])=>({key:s,value:i})),n=[];for(let s of a)try{n.push(await this.updateSetting(s.key,s.value,r))}catch(i){n.push({key:this.h(s.key,r.section).fullKey,updated:!1,error:i})}let o=n.filter(s=>s&&s.error);if(o.length>0){let s=o.map(l=>`${l.key}: ${l.error&&l.error.message?l.error.message:String(l.error)}`),i=new Error(`Failed to apply ${o.length} setting(s): ${s.join("; ")}`);throw i.details=o,i}return n}se(e,r){return e&&e!=="auto"?this.ie(e)||resolveVscodeMinimal().ConfigurationTarget.Workspace:r?resolveVscodeMinimal().ConfigurationTarget.WorkspaceFolder:resolveVscodeMinimal().workspace.workspaceFolders&&resolveVscodeMinimal().workspace.workspaceFolders.length>0?resolveVscodeMinimal().ConfigurationTarget.Workspace:resolveVscodeMinimal().ConfigurationTarget.Global}ie(e){switch(e){case"user":return resolveVscodeMinimal().ConfigurationTarget.Global;case"workspace":return resolveVscodeMinimal().ConfigurationTarget.Workspace;case"workspaceFolder":return resolveVscodeMinimal().ConfigurationTarget.WorkspaceFolder;default:return}}getValue(e,r={}){let{section:a,resource:n}=r||{},o=this.h(e,a);return this.R(o.section,n).get(o.key)}inspect(e,r={}){let{section:a,resource:n}=r||{},o=this.h(e,a);return this.R(o.section,n).inspect(o.key)}async clearSetting(e,r={}){return this.updateSetting(e,void 0,r)}getLockWaitStats(){let e={};for(let[r,a]of this.U.entries())e[r]={...a};return e}resetLockWaitStats(){this.U.clear()}},cachedCoordinator=null;function getSettingsCoordinator(options){if(!cachedCoordinator||options&&options.forceNew){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let t=null;try{t=dynamicRequire("../chunks/settings-coordinator-impl-chunk")}catch{}try{t||(t=dynamicRequire("../chunks/settingsCoordinator-impl-chunk"))}catch{}if(t&&typeof t.createSettingsCoordinatorImpl=="function")return cachedCoordinator=t.createSettingsCoordinatorImpl(options),cachedCoordinator}}catch{}try{let{WEB_CHUNK_GLOBAL_KEY:t,LEGACY_WEB_CHUNK_GLOBAL_KEY:e}=$(),r=typeof globalThis<"u"&&(globalThis[t]||globalThis[e])||null;if(r&&r.settingsCoordinatorImpl&&typeof r.settingsCoordinatorImpl.createSettingsCoordinatorImpl=="function")return cachedCoordinator=r.settingsCoordinatorImpl.createSettingsCoordinatorImpl(options),cachedCoordinator}catch{}cachedCoordinator=new MinimalSettingsCoordinator(options)}return cachedCoordinator}module.exports={getSettingsCoordinator,MinimalSettingsCoordinator}});var Ne=m((Qa,Kt)=>{var C=require("vscode"),{getLogger:Zn}=T(),q="explorerDates.",Ht=["performanceMode","featureLevel","smartFileWatching","smartWatcherMaxPatterns","smartWatcherExtensions","enableSmartWatcherFallbacks","enableOnboardingSystem","enableExportReporting","enableAnalysisCommands","enableAdvancedCache","enableWorkspaceTemplates","enableWorkspaceIntelligence","enableExtensionApi","enableIncrementalWorkers","enableProgressiveAnalysis"],Jn=/^\.?explorer-dates.*\.json$/i,Qn=new Set([`${q}customColors`,`${q}enableReporting`]),Oe=class{constructor(e){this.z=e,this._logger=Zn()}async getOrganizationPlan(){let e=C.workspace.getConfiguration("explorerDates"),r=this.F();return this.H(e,r)}async organize(e={}){let r=C.workspace.getConfiguration("explorerDates"),a=this.F(),n=e.plan||await this.H(r,a),o={changed:!1,movedToWorkspace:[],reorderedWorkspace:!1,sortedFiles:[]};return!n.needsWork&&!e.force||(await this.le(r,o,n.keysToMove),await this.ce(r,n.workspaceEntries,o,n.workspaceOutOfOrder),await this.ue(o,n.filesToSort)),o}async H(e,r){let a=this.ge(e),n=this.K(e,r),o=this.pe(n),s=await this.V(),i=await this.B(s);return{keysToMove:a,workspaceEntries:n,workspaceOutOfOrder:o,filesToSort:i,needsWork:a.length>0||o||i.length>0}}ge(e){let r=[];for(let a of Ht){let n=e.inspect(a);if(!n)continue;let o=n.globalValue!==void 0,s=n.workspaceValue!==void 0,i=n.workspaceFolderValue!==void 0;o&&!s&&!i&&r.push(a)}return r}K(e,r){let a=[];for(let n of r){if(this.fe(n))continue;let o=this.me(n),s=e.inspect(o);s&&s.workspaceValue!==void 0&&a.push({fullKey:n,shortKey:o,value:s.workspaceValue})}return a}pe(e){if(!e||e.length===0)return!1;let r=[...e].sort((a,n)=>a.fullKey.localeCompare(n.fullKey));return!e.every((a,n)=>a.fullKey===r[n].fullKey)}async B(e){if(!e||e.length===0)return[];let r=[];for(let a of e)await this.he(a)&&r.push(a);return r}async V(){let e=this.we();if(!e.length||!C.workspace.fs)return[];let r=new Map;for(let a of e){await this.G(a,r);let n=C.Uri.joinPath(a,".vscode");await this.G(n,r)}return Array.from(r.values())}async G(e,r){if(e)try{let a=await C.workspace.fs.readDirectory(e);for(let[n,o]of a){if(o!==C.FileType.File||!this.be(n))continue;let s=C.Uri.joinPath(e,n),i=s.fsPath||s.path;r.has(i)||r.set(i,s)}}catch(a){if((a==null?void 0:a.code)==="FileNotFound"||(a==null?void 0:a.code)==="ENOENT")return;this._logger.warn(`Failed to scan Explorer Dates directory ${e.fsPath||e.path}`,a)}}we(){return(C.workspace.workspaceFolders||[]).map(e=>e==null?void 0:e.uri).filter(Boolean)}be(e=""){return Jn.test(e)}async le(e,r,a){let n=Array.isArray(a)?a:Ht;if(n.length)for(let o of n){let s=e.inspect(o);if(!s)continue;let i=s.globalValue!==void 0,l=s.workspaceValue!==void 0,c=s.workspaceFolderValue!==void 0;i&&!l&&!c&&(await e.update(o,s.globalValue,C.ConfigurationTarget.Workspace),await e.update(o,void 0,C.ConfigurationTarget.Global),r.movedToWorkspace.push(`${q}${o}`),r.changed=!0,this._logger.info(`Moved ${q}${o} from user settings to workspace settings.`))}}async ce(e,r,a,n=!1){let o=Array.isArray(r)&&r.length>0?r:this.K(e,this.F());if(o.length===0)return;let s=[...o].sort((l,c)=>l.fullKey.localeCompare(c.fullKey));if(!(!n&&o.every((l,c)=>l.fullKey===s[c].fullKey))){for(let l of o)await e.update(l.shortKey,void 0,C.ConfigurationTarget.Workspace);for(let l of s)await e.update(l.shortKey,l.value,C.ConfigurationTarget.Workspace);a.reorderedWorkspace=!0,a.changed=!0,this._logger.info("Reordered Explorer Dates workspace settings alphabetically.")}}async ue(e,r){let a=Array.isArray(r)?r:await this.B(await this.V());if(a.length)for(let n of a)await this.ye(n)&&(e.sortedFiles.push(this.C(n)),e.changed=!0)}async ye(e){try{let r=await C.workspace.fs.readFile(e),a=Buffer.from(r).toString("utf8").trim();if(!a)return!1;let n=JSON.parse(a),o=this.S(n),s=JSON.stringify(o,null,2);return await C.workspace.fs.writeFile(e,Buffer.from(`${s} -`,"utf8")),this._logger.info(`Sorted Explorer Dates file: ${this.C(e)}`),!0}catch(r){return(r==null?void 0:r.code)==="FileNotFound"||(r==null?void 0:r.code)==="ENOENT"||this._logger.warn(`Failed to sort Explorer Dates file ${this.C(e)}`,r),!1}}async he(e){try{let r=await C.workspace.fs.readFile(e),a=Buffer.from(r).toString("utf8").trim();if(!a)return!1;let n=JSON.parse(a),o=JSON.stringify(n,null,2),s=JSON.stringify(this.S(n),null,2);return o!==s}catch(r){return(r==null?void 0:r.code)==="FileNotFound"||(r==null?void 0:r.code)==="ENOENT"||this._logger.warn(`Failed to inspect Explorer Dates file ${this.C(e)}`,r),!1}}S(e){return Array.isArray(e)?e.map(r=>this.S(r)):e&&typeof e=="object"?Object.keys(e).sort((r,a)=>r.localeCompare(a)).reduce((r,a)=>(r[a]=this.S(e[a]),r),{}):e}F(){var r,a,n,o,s;let e=((s=(o=(n=(a=(r=this.z)==null?void 0:r.extension)==null?void 0:a.packageJSON)==null?void 0:n.contributes)==null?void 0:o.configuration)==null?void 0:s.properties)||{};return Object.keys(e).filter(i=>i.startsWith(q))}me(e){return e.startsWith(q)?e.substring(q.length):e}fe(e){return Qn.has(e)}C(e){return(e==null?void 0:e.fsPath)||(e==null?void 0:e.path)||String(e)}};Kt.exports={SettingsOrganizer:Oe}});var Yt=m((eo,jt)=>{var g=require("vscode"),{getSettingsCoordinator:ea}=ne(),{SettingsOrganizer:ta}=Ne(),{getLocalization:ra}=ee(),{requireWorkspaceTrust:U}=Y(),E=ra(),we=ea(),Vt="explorerDates.resetToDefaults",Gt=Symbol.for("explorerDates.resetToDefaults.registered");function na(){return!!globalThis[Gt]}function Bt(){globalThis[Gt]=!0}async function aa({context:t,logger:e,getSettingsMigrationManager:r}){let a=[];a.push(g.commands.registerCommand("explorerDates.migrateSettings",async()=>{try{U("settings migration");let o=await r();if(!o){g.window.showWarningMessage(E.getString("migrateChecking"));return}g.window.showInformationMessage(E.getString("migrateChecking"));let s=await o.migrateAllSettings(t),i=await o.autoOrganizeSettingsIfNeeded(t,{trigger:"manual-migrate",silent:!0}),l=[];s.length>0&&l.push(`${s.length} migration${s.length===1?"":"s"}`),i!=null&&i.changed&&l.push("settings reorganized"),l.length===0?g.window.showInformationMessage(E.getString("migrateAllUpToDate")):g.window.showInformationMessage(E.getString("migrateApplied",l.join(" + "))),e.info("Manual settings migration completed",{results:s,organizationSummary:i})}catch(o){e.error("Failed to run settings migration",o),g.window.showErrorMessage(`Failed to migrate settings: ${o.message}`)}})),a.push(g.commands.registerCommand("explorerDates.organizeSettings",async()=>{try{U("settings organization");let s=await new ta(t).organize(),i=s.movedToWorkspace.length,l=s.sortedFiles.length,c=[s.reorderedWorkspace?"workspace settings reordered":null,i?`${i} setting(s) moved to workspace scope`:null,l?`${l} explorer-dates file(s) sorted`:null].filter(Boolean).join(" \u2022 ")||"No changes were necessary.";g.window.showInformationMessage(E.getString("organizeSettingsResult",c)),e.info("Organize settings command executed",s)}catch(o){e.error("Failed to organize Explorer Dates settings",o),g.window.showErrorMessage(`Failed to organize settings: ${o.message}`)}})),a.push(g.commands.registerCommand("explorerDates.validateConfiguration",async()=>{try{let o=await r();if(!o){g.window.showWarningMessage("Settings validation system unavailable.");return}let s=await o.validateConfiguration();if(s.length===0)g.window.showInformationMessage("\u2705 Configuration is valid - no issues found!");else{let i=`Found ${s.length} configuration issue(s). Would you like to see details?`;await g.window.showWarningMessage(i,"Show Details","Dismiss")==="Show Details"&&await oa(s)}e.info("Configuration validation completed",{issuesFound:s.length,issues:s})}catch(o){e.error("Failed to validate configuration",o),g.window.showErrorMessage(`Failed to validate configuration: ${o.message}`)}})),a.push(g.commands.registerCommand("explorerDates.cleanLegacySettings",async()=>{try{U("legacy settings cleanup");let o=await r();if(!o){g.window.showWarningMessage(E.getString("migrateChecking"));return}let s=await o.cleanupDeprecatedSettings();s?g.window.showInformationMessage(E.getString("cleanupSuccess")):g.window.showInformationMessage(E.getString("cleanupNoDeprecated")),e.info("Legacy settings cleanup completed",{cleaned:s})}catch(o){e.error("Failed to clean legacy settings",o),g.window.showErrorMessage(`Failed to clean legacy settings: ${o.message}`)}})),a.push(g.commands.registerCommand("explorerDates.showMigrationHistory",async()=>{try{let o=await r();if(!o){g.window.showWarningMessage(E.getString("migrateChecking"));return}let s=o.getMigrationHistory(t);if(s.length===0){g.window.showInformationMessage(E.getString("showMigrationHistoryNoHistory"));return}await sa(s),e.info("Displayed migration history",{historyLength:s.length})}catch(o){e.error("Failed to show migration history",o),g.window.showErrorMessage(`Failed to show migration history: ${o.message}`)}}));async function n(o={}){try{U("clear telemetry data");let s=o&&o.force===!0,i=null;if(!s&&(i=await g.window.showWarningMessage(E.getString("clearTelemetryPrompt"),{modal:!0},E.getString("clearTelemetryConfirm"),E.getString("clearTelemetryCancel")),i!==E.getString("clearTelemetryConfirm")))return;t!=null&&t.globalState&&typeof t.globalState.update=="function"&&await t.globalState.update("explorerDates.telemetryEvents",[]),g.window.showInformationMessage(E.getString("clearTelemetrySuccess")),e.info("Cleared telemetry events from globalState")}catch(s){e.error("Failed to clear telemetry data",s),g.window.showErrorMessage(`Failed to clear telemetry data: ${s.message}`)}}return a.push(g.commands.registerCommand("explorerDates.clearTelemetryData",n)),a.push(g.commands.registerCommand("explorerDates.clearTelemetryData.force",async()=>{await n({force:!0})})),a.push(g.commands.registerCommand("explorerDates.applyCustomColors",async()=>{try{let o=await g.window.showQuickPick([{label:"Copy to Clipboard",description:"Copy color configuration to clipboard"},{label:"Open Settings",description:"Open VS Code settings to workbench.colorCustomizations"},{label:"Apply Default Colors",description:"Apply default Explorer Dates colors"}],{placeHolder:"How would you like to set up custom colors?",ignoreFocusOut:!0});if(!o)return;let s={"explorerDates.customColor.veryRecent":"#00ff00","explorerDates.customColor.recent":"#ffff00","explorerDates.customColor.old":"#ff0000"};switch(o.label){case"Copy to Clipboard":let i=JSON.stringify({"workbench.colorCustomizations":s},null,2);await g.env.clipboard.writeText(i),g.window.showInformationMessage("Color configuration copied to clipboard!");break;case"Open Settings":await g.commands.executeCommand("workbench.action.openSettings","workbench.colorCustomizations");break;case"Apply Default Colors":U("apply custom colors");let u={...g.workspace.getConfiguration("workbench").get("colorCustomizations",{}),...s};await we.updateSetting("workbench.colorCustomizations",u,{scope:"user",reason:"custom-colors-command"}),await we.updateSetting("colorScheme","custom",{scope:"user",reason:"custom-colors-command"}),g.window.showInformationMessage("\u2705 Custom colors applied successfully!");break}e.info("Custom colors command executed",{action:o.label})}catch(o){e.error("Failed to apply custom colors",o),g.window.showErrorMessage(`Failed to apply custom colors: ${o.message}`)}})),await ia({context:t,logger:e,subscriptions:a}),a.push(g.commands.registerCommand("explorerDates.exportConfiguration",async()=>{var o,s;try{let i=g.workspace.getConfiguration("explorerDates"),l={},c=t.extension.packageJSON,u=((s=(o=c==null?void 0:c.contributes)==null?void 0:o.configuration)==null?void 0:s.properties)||{};for(let f of Object.keys(u))if(f.startsWith("explorerDates.")){let w=f.replace("explorerDates.",""),S=i.get(w);S!==void 0&&(l[f]=S)}let d=JSON.stringify(l,null,2),h=await g.window.showQuickPick([{label:"Copy to Clipboard",description:"Copy configuration to clipboard"},{label:"Save to File",description:"Save configuration to a JSON file"}],{placeHolder:"How would you like to export the configuration?"});if(!h)return;switch(h.label){case"Copy to Clipboard":await g.env.clipboard.writeText(d),g.window.showInformationMessage("Configuration copied to clipboard!");break;case"Save to File":U("save configuration to file");let f=await g.window.showSaveDialog({defaultUri:g.Uri.file("explorer-dates-config.json"),filters:{JSON:["json"]}});f&&(await g.workspace.fs.writeFile(f,Buffer.from(d,"utf8")),g.window.showInformationMessage(`Configuration saved to ${f.fsPath}`));break}e.info("Configuration exported",{action:h.label,settingsCount:Object.keys(l).length})}catch(i){e.error("Failed to export configuration",i),g.window.showErrorMessage(`Failed to export configuration: ${i.message}`)}})),a}async function oa(t){let e=g.window.createWebviewPanel("explorerDatesConfigIssues","Explorer Dates - Configuration Issues",g.ViewColumn.One,{enableScripts:!1}),r=t.map(a=>` +${S}`,{modal:!0})}),r.info(`File history requested for: ${l.fsPath||l.path}`)}catch(l){r.error("Failed to show file history",l),vscode.window.showErrorMessage(`Failed to show file history: ${l.message}`)}})),n.push(vscode.commands.registerCommand("explorerDates.compareWithPrevious",async i=>{try{if(isWeb){vscode.window.showInformationMessage("Git comparisons are unavailable on VS Code for Web.");return}let l=i;if(!l&&vscode.window.activeTextEditor&&(l=vscode.window.activeTextEditor.document.uri),!l){vscode.window.showWarningMessage("No file selected");return}if(!vscode.workspace.getWorkspaceFolder(l)){vscode.window.showWarningMessage("File is not in a workspace");return}await vscode.commands.executeCommand("git.openChange",l),r.info(`Git diff opened for: ${l.fsPath||l.path}`)}catch(l){r.error("Failed to compare with previous version",l),vscode.window.showErrorMessage(`Failed to compare with previous version: ${l.message}`)}})),n.forEach(i=>t.subscriptions.push(i))}module.exports={registerCoreCommands}});var zt=m((Qa,Ut)=>{var _=require("vscode");function Zn({context:t,logger:e,getOnboardingManager:r}){let a=[];a.push(_.commands.registerCommand("explorerDates.showFeatureTour",async()=>{try{let n=await r();if(!n){_.window.showWarningMessage("Onboarding system unavailable.");return}await n.showFeatureTour(),e.info("Feature tour opened")}catch(n){e.error("Failed to show feature tour",n),_.window.showErrorMessage(`Failed to show feature tour: ${n.message}`)}})),a.push(_.commands.registerCommand("explorerDates.showQuickSetup",async()=>{try{let n=await r();if(!n){_.window.showWarningMessage("Onboarding system unavailable.");return}await n.showQuickSetupWizard(),e.info("Quick setup wizard opened")}catch(n){e.error("Failed to show quick setup wizard",n),_.window.showErrorMessage(`Failed to show quick setup wizard: ${n.message}`)}})),a.push(_.commands.registerCommand("explorerDates.showWhatsNew",async()=>{try{let n=await r();if(!n){_.window.showWarningMessage("Onboarding system unavailable.");return}let o=t.extension.packageJSON.version;await n.showWhatsNew(o),e.info("What's new panel opened")}catch(n){e.error("Failed to show what's new",n),_.window.showErrorMessage(`Failed to show what's new: ${n.message}`)}})),a.forEach(n=>t.subscriptions.push(n))}Ut.exports={registerOnboardingCommands:Zn}});var ae=m((exports,module)=>{var{getLogger}=T(),env=typeof process<"u"&&process.env?process.env:{};function createFallbackVscodeMinimal(){return{workspace:{workspaceFolders:[],getConfiguration:()=>({get:()=>{},async update(){},inspect:()=>({defaultValue:void 0,globalValue:void 0,workspaceValue:void 0,workspaceFolderValue:void 0})})},ConfigurationTarget:{Global:1,Workspace:2,WorkspaceFolder:3}}}function resolveVscodeMinimal(){try{return require("vscode")}catch{return createFallbackVscodeMinimal()}}var MinimalSettingsCoordinator=class{constructor(e={}){this.ae=e.defaultSection||"explorerDates",this.v=new Map,this.U=new Map,this.Ne=Number(env.EXPLORER_DATES_LOCK_WAIT_WARN_MS||1e3),this._logger=getLogger()}oe(e,r){let n=(this.v.get(e)||Promise.resolve()).then(()=>r()),o=n.catch(()=>{});return this.v.set(e,o),n.finally(()=>{this.v.get(e)===o&&this.v.delete(e)}),n}R(e,r){return resolveVscodeMinimal().workspace.getConfiguration(e||void 0,r)}h(e,r){let a=r||this.ae;return a?e.startsWith(`${a}.`)?{section:a,key:e.slice(a.length+1),fullKey:e}:e.includes(".")?{section:void 0,key:e,fullKey:e}:{section:a,key:e,fullKey:`${a}.${e}`}:{section:void 0,key:e,fullKey:e}}async updateSetting(e,r,a={}){return this.oe(this.h(e,a.section).fullKey,async()=>{let n=this.h(e,a.section),o=this.R(n.section,a.resource);try{let s=this.se(a.scope,a.resource);return await o.update(n.key,r,s),{key:n.fullKey,updated:!0}}catch(s){try{this._logger.warn(`Configuration update failed for ${n.fullKey}: ${s&&s.message}`)}catch{}return{key:n.fullKey,updated:!1,error:s}}})}async applySettings(e,r={}){let a=Array.isArray(e)?e:Object.entries(e).map(([s,i])=>({key:s,value:i})),n=[];for(let s of a)try{n.push(await this.updateSetting(s.key,s.value,r))}catch(i){n.push({key:this.h(s.key,r.section).fullKey,updated:!1,error:i})}let o=n.filter(s=>s&&s.error);if(o.length>0){let s=o.map(l=>`${l.key}: ${l.error&&l.error.message?l.error.message:String(l.error)}`),i=new Error(`Failed to apply ${o.length} setting(s): ${s.join("; ")}`);throw i.details=o,i}return n}se(e,r){return e&&e!=="auto"?this.ie(e)||resolveVscodeMinimal().ConfigurationTarget.Workspace:r?resolveVscodeMinimal().ConfigurationTarget.WorkspaceFolder:resolveVscodeMinimal().workspace.workspaceFolders&&resolveVscodeMinimal().workspace.workspaceFolders.length>0?resolveVscodeMinimal().ConfigurationTarget.Workspace:resolveVscodeMinimal().ConfigurationTarget.Global}ie(e){switch(e){case"user":return resolveVscodeMinimal().ConfigurationTarget.Global;case"workspace":return resolveVscodeMinimal().ConfigurationTarget.Workspace;case"workspaceFolder":return resolveVscodeMinimal().ConfigurationTarget.WorkspaceFolder;default:return}}getValue(e,r={}){let{section:a,resource:n}=r||{},o=this.h(e,a);return this.R(o.section,n).get(o.key)}inspect(e,r={}){let{section:a,resource:n}=r||{},o=this.h(e,a);return this.R(o.section,n).inspect(o.key)}async clearSetting(e,r={}){return this.updateSetting(e,void 0,r)}getLockWaitStats(){let e={};for(let[r,a]of this.U.entries())e[r]={...a};return e}resetLockWaitStats(){this.U.clear()}},cachedCoordinator=null;function getSettingsCoordinator(options){if(!cachedCoordinator||options&&options.forceNew){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let t=null;try{t=dynamicRequire("../chunks/settings-coordinator-impl-chunk")}catch{}try{t||(t=dynamicRequire("../chunks/settingsCoordinator-impl-chunk"))}catch{}if(t&&typeof t.createSettingsCoordinatorImpl=="function")return cachedCoordinator=t.createSettingsCoordinatorImpl(options),cachedCoordinator}}catch{}try{let{WEB_CHUNK_GLOBAL_KEY:t,LEGACY_WEB_CHUNK_GLOBAL_KEY:e}=$(),r=typeof globalThis<"u"&&(globalThis[t]||globalThis[e])||null;if(r&&r.settingsCoordinatorImpl&&typeof r.settingsCoordinatorImpl.createSettingsCoordinatorImpl=="function")return cachedCoordinator=r.settingsCoordinatorImpl.createSettingsCoordinatorImpl(options),cachedCoordinator}catch{}cachedCoordinator=new MinimalSettingsCoordinator(options)}return cachedCoordinator}module.exports={getSettingsCoordinator,MinimalSettingsCoordinator}});var Ne=m((eo,Kt)=>{var C=require("vscode"),{getLogger:Jn}=T(),q="explorerDates.",Ht=["performanceMode","featureLevel","smartFileWatching","smartWatcherMaxPatterns","smartWatcherExtensions","enableSmartWatcherFallbacks","enableOnboardingSystem","enableExportReporting","enableAnalysisCommands","enableAdvancedCache","enableWorkspaceTemplates","enableWorkspaceIntelligence","enableExtensionApi","enableIncrementalWorkers","enableProgressiveAnalysis"],Qn=/^\.?explorer-dates.*\.json$/i,ea=new Set([`${q}customColors`,`${q}enableReporting`]),Oe=class{constructor(e){this.z=e,this._logger=Jn()}async getOrganizationPlan(){let e=C.workspace.getConfiguration("explorerDates"),r=this.F();return this.H(e,r)}async organize(e={}){let r=C.workspace.getConfiguration("explorerDates"),a=this.F(),n=e.plan||await this.H(r,a),o={changed:!1,movedToWorkspace:[],reorderedWorkspace:!1,sortedFiles:[]};return!n.needsWork&&!e.force||(await this.le(r,o,n.keysToMove),await this.ce(r,n.workspaceEntries,o,n.workspaceOutOfOrder),await this.ue(o,n.filesToSort)),o}async H(e,r){let a=this.ge(e),n=this.K(e,r),o=this.pe(n),s=await this.V(),i=await this.B(s);return{keysToMove:a,workspaceEntries:n,workspaceOutOfOrder:o,filesToSort:i,needsWork:a.length>0||o||i.length>0}}ge(e){let r=[];for(let a of Ht){let n=e.inspect(a);if(!n)continue;let o=n.globalValue!==void 0,s=n.workspaceValue!==void 0,i=n.workspaceFolderValue!==void 0;o&&!s&&!i&&r.push(a)}return r}K(e,r){let a=[];for(let n of r){if(this.fe(n))continue;let o=this.me(n),s=e.inspect(o);s&&s.workspaceValue!==void 0&&a.push({fullKey:n,shortKey:o,value:s.workspaceValue})}return a}pe(e){if(!e||e.length===0)return!1;let r=[...e].sort((a,n)=>a.fullKey.localeCompare(n.fullKey));return!e.every((a,n)=>a.fullKey===r[n].fullKey)}async B(e){if(!e||e.length===0)return[];let r=[];for(let a of e)await this.he(a)&&r.push(a);return r}async V(){let e=this.we();if(!e.length||!C.workspace.fs)return[];let r=new Map;for(let a of e){await this.G(a,r);let n=C.Uri.joinPath(a,".vscode");await this.G(n,r)}return Array.from(r.values())}async G(e,r){if(e)try{let a=await C.workspace.fs.readDirectory(e);for(let[n,o]of a){if(o!==C.FileType.File||!this.be(n))continue;let s=C.Uri.joinPath(e,n),i=s.fsPath||s.path;r.has(i)||r.set(i,s)}}catch(a){if((a==null?void 0:a.code)==="FileNotFound"||(a==null?void 0:a.code)==="ENOENT")return;this._logger.warn(`Failed to scan Explorer Dates directory ${e.fsPath||e.path}`,a)}}we(){return(C.workspace.workspaceFolders||[]).map(e=>e==null?void 0:e.uri).filter(Boolean)}be(e=""){return Qn.test(e)}async le(e,r,a){let n=Array.isArray(a)?a:Ht;if(n.length)for(let o of n){let s=e.inspect(o);if(!s)continue;let i=s.globalValue!==void 0,l=s.workspaceValue!==void 0,c=s.workspaceFolderValue!==void 0;i&&!l&&!c&&(await e.update(o,s.globalValue,C.ConfigurationTarget.Workspace),await e.update(o,void 0,C.ConfigurationTarget.Global),r.movedToWorkspace.push(`${q}${o}`),r.changed=!0,this._logger.info(`Moved ${q}${o} from user settings to workspace settings.`))}}async ce(e,r,a,n=!1){let o=Array.isArray(r)&&r.length>0?r:this.K(e,this.F());if(o.length===0)return;let s=[...o].sort((l,c)=>l.fullKey.localeCompare(c.fullKey));if(!(!n&&o.every((l,c)=>l.fullKey===s[c].fullKey))){for(let l of o)await e.update(l.shortKey,void 0,C.ConfigurationTarget.Workspace);for(let l of s)await e.update(l.shortKey,l.value,C.ConfigurationTarget.Workspace);a.reorderedWorkspace=!0,a.changed=!0,this._logger.info("Reordered Explorer Dates workspace settings alphabetically.")}}async ue(e,r){let a=Array.isArray(r)?r:await this.B(await this.V());if(a.length)for(let n of a)await this.ye(n)&&(e.sortedFiles.push(this.C(n)),e.changed=!0)}async ye(e){try{let r=await C.workspace.fs.readFile(e),a=Buffer.from(r).toString("utf8").trim();if(!a)return!1;let n=JSON.parse(a),o=this.S(n),s=JSON.stringify(o,null,2);return await C.workspace.fs.writeFile(e,Buffer.from(`${s} +`,"utf8")),this._logger.info(`Sorted Explorer Dates file: ${this.C(e)}`),!0}catch(r){return(r==null?void 0:r.code)==="FileNotFound"||(r==null?void 0:r.code)==="ENOENT"||this._logger.warn(`Failed to sort Explorer Dates file ${this.C(e)}`,r),!1}}async he(e){try{let r=await C.workspace.fs.readFile(e),a=Buffer.from(r).toString("utf8").trim();if(!a)return!1;let n=JSON.parse(a),o=JSON.stringify(n,null,2),s=JSON.stringify(this.S(n),null,2);return o!==s}catch(r){return(r==null?void 0:r.code)==="FileNotFound"||(r==null?void 0:r.code)==="ENOENT"||this._logger.warn(`Failed to inspect Explorer Dates file ${this.C(e)}`,r),!1}}S(e){return Array.isArray(e)?e.map(r=>this.S(r)):e&&typeof e=="object"?Object.keys(e).sort((r,a)=>r.localeCompare(a)).reduce((r,a)=>(r[a]=this.S(e[a]),r),{}):e}F(){var r,a,n,o,s;let e=((s=(o=(n=(a=(r=this.z)==null?void 0:r.extension)==null?void 0:a.packageJSON)==null?void 0:n.contributes)==null?void 0:o.configuration)==null?void 0:s.properties)||{};return Object.keys(e).filter(i=>i.startsWith(q))}me(e){return e.startsWith(q)?e.substring(q.length):e}fe(e){return ea.has(e)}C(e){return(e==null?void 0:e.fsPath)||(e==null?void 0:e.path)||String(e)}};Kt.exports={SettingsOrganizer:Oe}});var Yt=m((to,jt)=>{var g=require("vscode"),{getSettingsCoordinator:ta}=ae(),{SettingsOrganizer:ra}=Ne(),{getLocalization:na}=te(),{requireWorkspaceTrust:U}=X(),E=na(),we=ta(),Vt="explorerDates.resetToDefaults",Gt=Symbol.for("explorerDates.resetToDefaults.registered");function aa(){return!!globalThis[Gt]}function Bt(){globalThis[Gt]=!0}async function oa({context:t,logger:e,getSettingsMigrationManager:r}){let a=[];a.push(g.commands.registerCommand("explorerDates.migrateSettings",async()=>{try{U("settings migration");let o=await r();if(!o){g.window.showWarningMessage(E.getString("migrateChecking"));return}g.window.showInformationMessage(E.getString("migrateChecking"));let s=await o.migrateAllSettings(t),i=await o.autoOrganizeSettingsIfNeeded(t,{trigger:"manual-migrate",silent:!0}),l=[];s.length>0&&l.push(`${s.length} migration${s.length===1?"":"s"}`),i!=null&&i.changed&&l.push("settings reorganized"),l.length===0?g.window.showInformationMessage(E.getString("migrateAllUpToDate")):g.window.showInformationMessage(E.getString("migrateApplied",l.join(" + "))),e.info("Manual settings migration completed",{results:s,organizationSummary:i})}catch(o){e.error("Failed to run settings migration",o),g.window.showErrorMessage(`Failed to migrate settings: ${o.message}`)}})),a.push(g.commands.registerCommand("explorerDates.organizeSettings",async()=>{try{U("settings organization");let s=await new ra(t).organize(),i=s.movedToWorkspace.length,l=s.sortedFiles.length,c=[s.reorderedWorkspace?"workspace settings reordered":null,i?`${i} setting(s) moved to workspace scope`:null,l?`${l} explorer-dates file(s) sorted`:null].filter(Boolean).join(" \u2022 ")||"No changes were necessary.";g.window.showInformationMessage(E.getString("organizeSettingsResult",c)),e.info("Organize settings command executed",s)}catch(o){e.error("Failed to organize Explorer Dates settings",o),g.window.showErrorMessage(`Failed to organize settings: ${o.message}`)}})),a.push(g.commands.registerCommand("explorerDates.validateConfiguration",async()=>{try{let o=await r();if(!o){g.window.showWarningMessage("Settings validation system unavailable.");return}let s=await o.validateConfiguration();if(s.length===0)g.window.showInformationMessage("\u2705 Configuration is valid - no issues found!");else{let i=`Found ${s.length} configuration issue(s). Would you like to see details?`;await g.window.showWarningMessage(i,"Show Details","Dismiss")==="Show Details"&&await sa(s)}e.info("Configuration validation completed",{issuesFound:s.length,issues:s})}catch(o){e.error("Failed to validate configuration",o),g.window.showErrorMessage(`Failed to validate configuration: ${o.message}`)}})),a.push(g.commands.registerCommand("explorerDates.cleanLegacySettings",async()=>{try{U("legacy settings cleanup");let o=await r();if(!o){g.window.showWarningMessage(E.getString("migrateChecking"));return}let s=await o.cleanupDeprecatedSettings();s?g.window.showInformationMessage(E.getString("cleanupSuccess")):g.window.showInformationMessage(E.getString("cleanupNoDeprecated")),e.info("Legacy settings cleanup completed",{cleaned:s})}catch(o){e.error("Failed to clean legacy settings",o),g.window.showErrorMessage(`Failed to clean legacy settings: ${o.message}`)}})),a.push(g.commands.registerCommand("explorerDates.showMigrationHistory",async()=>{try{let o=await r();if(!o){g.window.showWarningMessage(E.getString("migrateChecking"));return}let s=o.getMigrationHistory(t);if(s.length===0){g.window.showInformationMessage(E.getString("showMigrationHistoryNoHistory"));return}await ia(s),e.info("Displayed migration history",{historyLength:s.length})}catch(o){e.error("Failed to show migration history",o),g.window.showErrorMessage(`Failed to show migration history: ${o.message}`)}}));async function n(o={}){try{U("clear telemetry data");let s=o&&o.force===!0,i=null;if(!s&&(i=await g.window.showWarningMessage(E.getString("clearTelemetryPrompt"),{modal:!0},E.getString("clearTelemetryConfirm"),E.getString("clearTelemetryCancel")),i!==E.getString("clearTelemetryConfirm")))return;t!=null&&t.globalState&&typeof t.globalState.update=="function"&&await t.globalState.update("explorerDates.telemetryEvents",[]),g.window.showInformationMessage(E.getString("clearTelemetrySuccess")),e.info("Cleared telemetry events from globalState")}catch(s){e.error("Failed to clear telemetry data",s),g.window.showErrorMessage(`Failed to clear telemetry data: ${s.message}`)}}return a.push(g.commands.registerCommand("explorerDates.clearTelemetryData",n)),a.push(g.commands.registerCommand("explorerDates.clearTelemetryData.force",async()=>{await n({force:!0})})),a.push(g.commands.registerCommand("explorerDates.applyCustomColors",async()=>{try{let o=await g.window.showQuickPick([{label:"Copy to Clipboard",description:"Copy color configuration to clipboard"},{label:"Open Settings",description:"Open VS Code settings to workbench.colorCustomizations"},{label:"Apply Default Colors",description:"Apply default Explorer Dates colors"}],{placeHolder:"How would you like to set up custom colors?",ignoreFocusOut:!0});if(!o)return;let s={"explorerDates.customColor.veryRecent":"#00ff00","explorerDates.customColor.recent":"#ffff00","explorerDates.customColor.old":"#ff0000"};switch(o.label){case"Copy to Clipboard":let i=JSON.stringify({"workbench.colorCustomizations":s},null,2);await g.env.clipboard.writeText(i),g.window.showInformationMessage("Color configuration copied to clipboard!");break;case"Open Settings":await g.commands.executeCommand("workbench.action.openSettings","workbench.colorCustomizations");break;case"Apply Default Colors":U("apply custom colors");let u={...g.workspace.getConfiguration("workbench").get("colorCustomizations",{}),...s};await we.updateSetting("workbench.colorCustomizations",u,{scope:"user",reason:"custom-colors-command"}),await we.updateSetting("colorScheme","custom",{scope:"user",reason:"custom-colors-command"}),g.window.showInformationMessage("\u2705 Custom colors applied successfully!");break}e.info("Custom colors command executed",{action:o.label})}catch(o){e.error("Failed to apply custom colors",o),g.window.showErrorMessage(`Failed to apply custom colors: ${o.message}`)}})),await la({context:t,logger:e,subscriptions:a}),a.push(g.commands.registerCommand("explorerDates.exportConfiguration",async()=>{var o,s;try{let i=g.workspace.getConfiguration("explorerDates"),l={},c=t.extension.packageJSON,u=((s=(o=c==null?void 0:c.contributes)==null?void 0:o.configuration)==null?void 0:s.properties)||{};for(let f of Object.keys(u))if(f.startsWith("explorerDates.")){let w=f.replace("explorerDates.",""),S=i.get(w);S!==void 0&&(l[f]=S)}let d=JSON.stringify(l,null,2),h=await g.window.showQuickPick([{label:"Copy to Clipboard",description:"Copy configuration to clipboard"},{label:"Save to File",description:"Save configuration to a JSON file"}],{placeHolder:"How would you like to export the configuration?"});if(!h)return;switch(h.label){case"Copy to Clipboard":await g.env.clipboard.writeText(d),g.window.showInformationMessage("Configuration copied to clipboard!");break;case"Save to File":U("save configuration to file");let f=await g.window.showSaveDialog({defaultUri:g.Uri.file("explorer-dates-config.json"),filters:{JSON:["json"]}});f&&(await g.workspace.fs.writeFile(f,Buffer.from(d,"utf8")),g.window.showInformationMessage(`Configuration saved to ${f.fsPath}`));break}e.info("Configuration exported",{action:h.label,settingsCount:Object.keys(l).length})}catch(i){e.error("Failed to export configuration",i),g.window.showErrorMessage(`Failed to export configuration: ${i.message}`)}})),a}async function sa(t){let e=g.window.createWebviewPanel("explorerDatesConfigIssues","Explorer Dates - Configuration Issues",g.ViewColumn.One,{enableScripts:!1}),r=t.map(a=>`

    ${a.setting}

    Current value: ${JSON.stringify(a.value)}

    @@ -53,7 +53,7 @@ ${S}`,{modal:!0})}),r.info(`File history requested for: ${l.fsPath||l.path}`)}ca

    To fix these issues: Open VS Code Settings and update the highlighted settings with valid values.

    - `}async function sa(t){let e=g.window.createWebviewPanel("explorerDatesMigrationHistory","Explorer Dates - Migration History",g.ViewColumn.One,{enableScripts:!1}),r=t.slice().reverse().map((a,n)=>` + `}async function ia(t){let e=g.window.createWebviewPanel("explorerDatesMigrationHistory","Explorer Dates - Migration History",g.ViewColumn.One,{enableScripts:!1}),r=t.slice().reverse().map((a,n)=>`

    Migration #${t.length-n}

    Date: ${new Date(a.timestamp).toLocaleString()}

    @@ -82,7 +82,7 @@ ${S}`,{modal:!0})}),r.info(`File history requested for: ${l.fsPath||l.path}`)}ca ${r} - `}async function ia({context:t,logger:e,subscriptions:r}){var n,o,s;if(na()){(n=e==null?void 0:e.warn)==null||n.call(e,"Duplicate explorerDates.resetToDefaults registration skipped");return}let a;try{a=await g.commands.getCommands(!0)}catch(i){(o=e==null?void 0:e.warn)==null||o.call(e,"Unable to inspect VS Code command registry; proceeding with reset command registration",i)}if(Array.isArray(a)&&a.includes(Vt)){Bt(),(s=e==null?void 0:e.warn)==null||s.call(e,"Detected existing explorerDates.resetToDefaults handler; skipping duplicate registration");return}Bt(),r.push(g.commands.registerCommand(Vt,async()=>{var i,l;try{if(await g.window.showWarningMessage(E.getString("resetConfirmation"),{modal:!0},E.getString("resetConfirm"),E.getString("resetCancel"))!==E.getString("resetConfirm"))return;U("reset settings to defaults");let u=t.extension.packageJSON,d=((l=(i=u==null?void 0:u.contributes)==null?void 0:i.configuration)==null?void 0:l.properties)||{},h=0;for(let f of Object.keys(d))if(f.startsWith("explorerDates.")){let w=f.replace("explorerDates.","");try{await we.clearSetting(w,{scope:"user",reason:"reset-to-defaults"}),await we.clearSetting(w,{scope:"workspace",reason:"reset-to-defaults"}),h++}catch(S){e.warn(`Failed to reset setting ${w}`,S)}}g.window.showInformationMessage(E.getString("resetSuccess",h)),e.info("Settings reset to defaults",{resetCount:h})}catch(c){e.error("Failed to reset settings to defaults",c),g.window.showErrorMessage(`Failed to reset settings: ${c.message}`)}}))}jt.exports={registerMigrationCommands:aa}});var Zt=m((exports,module)=>{var vscode=require("vscode"),{isWebEnvironment}=te(),fs=null,path=null,Xt;try{let isWeb=isWebEnvironment()||typeof process<"u"&&!1;!isWeb&&typeof process<"u"&&((Xt=process.versions)!=null&&Xt.node)&&(fs=eval("require")("fs"),path=eval("require")("path"))}catch{fs=null,path=null}var textDecoder=typeof globalThis.TextDecoder=="function"?new globalThis.TextDecoder("utf-8"):new(require("util")).TextDecoder("utf-8"),TemplateStore=class{constructor(){this._=new Map,this.P=null}initialize(e){this.P=(e==null?void 0:e.extensionUri)??null}async getTemplate(e){if(this._.has(e))return this._.get(e);let r=await this.Ee(e);return this._.set(e,r),r}async Ee(e){let r=`${e}.html`;if(this.P){let a=vscode.Uri.joinPath(this.P,"assets","templates",r),n=await vscode.workspace.fs.readFile(a);return textDecoder.decode(n)}if(fs&&path){let a=path.resolve(__dirname,"..","..","assets","templates",r);return await fs.promises.readFile(a,"utf8")}throw new Error(`TemplateStore: Unable to load template "${e}" (missing extension context)`)}},templateStore=new TemplateStore;module.exports={templateStore,initializeTemplateStore:t=>templateStore.initialize(t)}});var er=m((to,Qt)=>{var W=require("vscode"),{getLogger:la}=T(),{getSettingsCoordinator:ca}=ne(),{SettingsOrganizer:ua}=Ne(),{getLocalization:da}=ee(),D=da(),Jt=typeof process<"u"&&process.env?process.env:{},$e=class{constructor(){this._logger=la(),this.n=new Set,this.e=ca(),this.M=null,this.j=null}async migrateAllSettings(e){var n,o;let r=[()=>this.migrateReportingSettings(),()=>this.migrateCustomColorSettings(),()=>this.validateFeatureFlags(),()=>this.cleanupDeprecatedSettings(e),()=>this.trackMigrationMetrics(e)],a=[];for(let s of r)try{let i=await s();i&&a.push(i)}catch(i){this._logger.error("Settings migration failed:",i)}if(a.length>0){this._logger.info("Settings migration completed",{migratedSettings:a});try{let s=(n=e==null?void 0:e.globalState)!=null&&n.get?e.globalState.get("explorerDates.lastMigrationNotificationShown"):null,i=Date.now(),l=1440*60*1e3;!s||i-new Date(s).getTime()>l?(await this.ve(a,e),(o=e==null?void 0:e.globalState)!=null&&o.update&&await e.globalState.update("explorerDates.lastMigrationNotificationShown",new Date().toISOString())):this._logger.info("Skipping migration notification - recently shown")}catch(s){this._logger.debug("Failed to persist migration notification timestamp",(s==null?void 0:s.message)||s)}}return a}async migrateReportingSettings(){let e=this.e.inspect("enableReporting"),r=this.e.inspect("enableExportReporting"),a=!1;if((e==null?void 0:e.globalValue)!==void 0)try{(r==null?void 0:r.globalValue)===void 0&&(await this.e.updateSetting("enableExportReporting",e.globalValue,{scope:"user",reason:"migrate-enableReporting-global"}),this.n.add("enableReporting\u2192enableExportReporting (Global)"),this._logger.info("Migrated global enableReporting to enableExportReporting",{oldValue:e.globalValue})),await this.e.clearSetting("enableReporting",{scope:"user",reason:"cleanup-migrated-enableReporting-global"}),a=!0}catch(n){this._logger.error("Failed to migrate global enableReporting setting",n)}if((e==null?void 0:e.workspaceValue)!==void 0)try{(r==null?void 0:r.workspaceValue)===void 0&&(await this.e.updateSetting("enableExportReporting",e.workspaceValue,{scope:"workspace",reason:"migrate-enableReporting-workspace"}),this.n.add("enableReporting\u2192enableExportReporting (Workspace)"),this._logger.info("Migrated workspace enableReporting to enableExportReporting",{oldValue:e.workspaceValue})),await this.e.clearSetting("enableReporting",{scope:"workspace",reason:"cleanup-migrated-enableReporting-workspace"}),a=!0}catch(n){this._logger.error("Failed to migrate workspace enableReporting setting",n)}if((e==null?void 0:e.workspaceFolderValue)!==void 0)try{(r==null?void 0:r.workspaceFolderValue)===void 0&&(await this.e.updateSetting("enableExportReporting",e.workspaceFolderValue,{scope:"workspaceFolder",reason:"migrate-enableReporting-folder"}),this.n.add("enableReporting\u2192enableExportReporting (WorkspaceFolder)"),this._logger.info("Migrated workspace folder enableReporting to enableExportReporting",{oldValue:e.workspaceFolderValue})),await this.e.clearSetting("enableReporting",{scope:"workspaceFolder",reason:"cleanup-migrated-enableReporting-folder"}),a=!0}catch(n){this._logger.error("Failed to migrate workspace folder enableReporting setting",n)}return a&&this.n.add("deprecatedSettings\u2192removed"),this.n.has("enableReporting\u2192enableExportReporting (Global)")||this.n.has("enableReporting\u2192enableExportReporting (Workspace)")||this.n.has("enableReporting\u2192enableExportReporting (WorkspaceFolder)")}async migrateCustomColorSettings(){let e=W.workspace.getConfiguration("explorerDates"),r=e.get("migrateLegacyCustomColorsOnStartup",!1),a=e.get("customColors");if(!a||typeof a!="object")return!1;if(!r)return this._logger.info("Skipping custom color migration (opt-in disabled)",{reason:"migrateLegacyCustomColorsOnStartup=false"}),!1;let n=this.e.getValue("workbench.colorCustomizations")||{};if(n["explorerDates.customColor.veryRecent"]!==void 0||n["explorerDates.customColor.recent"]!==void 0||n["explorerDates.customColor.old"]!==void 0)return!1;let s={...n,"explorerDates.customColor.veryRecent":a.veryRecent||"#00ff00","explorerDates.customColor.recent":a.recent||"#ffff00","explorerDates.customColor.old":a.old||"#ff0000"};try{await this.e.updateSetting("workbench.colorCustomizations",s,{scope:"user",reason:"migrate-customColors"}),this.n.add("customColors\u2192workbench.colorCustomizations");let i=e.inspect("customColors"),l=!1;return(i==null?void 0:i.globalValue)!==void 0&&(await this.e.clearSetting("customColors",{scope:"user",reason:"cleanup-migrated-customColors-global"}),l=!0),(i==null?void 0:i.workspaceValue)!==void 0&&(await this.e.clearSetting("customColors",{scope:"workspace",reason:"cleanup-migrated-customColors-workspace"}),l=!0),(i==null?void 0:i.workspaceFolderValue)!==void 0&&(await this.e.clearSetting("customColors",{scope:"workspaceFolder",reason:"cleanup-migrated-customColors-folder"}),l=!0),l&&this.n.add("deprecatedSettings\u2192removed"),this._logger.info("Migrated custom colors to workbench.colorCustomizations",{oldColors:a,newColors:s}),!0}catch(i){return this._logger.error("Failed to migrate custom colors",i),!1}}async validateFeatureFlags(){let e={enableOnboardingSystem:{default:!0,type:"boolean"},enableExportReporting:{default:!0,type:"boolean"},enableAnalysisCommands:{default:!0,type:"boolean"},enableAdvancedCache:{default:!0,type:"boolean"},enableWorkspaceIntelligence:{default:!0,type:"boolean"},enableWorkspaceTemplates:{default:!0,type:"boolean"},enableExtensionApi:{default:!0,type:"boolean"},enableProgressiveAnalysis:{default:null,type:"boolean",allowNull:!0}},r=!1,a=[],n=[];for(let[o,s]of Object.entries(e)){let i=this.e.inspect(o),l=this.e.getValue(o),c=(i==null?void 0:i.globalValue)!==void 0,u=(i==null?void 0:i.workspaceValue)!==void 0;if(!c&&!u)n.push(o);else if(l!==void 0&&!(s.allowNull&&l===null?!0:typeof l===s.type))try{await this.e.updateSetting(o,s.default,{scope:"user",reason:`feature-flag-validation:${o}`}),a.push(`${o}: corrected type mismatch`),r=!0}catch(h){this._logger.error(`Failed to fix feature flag ${o}`,h)}}return r?(this.n.add("featureFlags\u2192validated"),this._logger.info("Validated feature flags",{fixes:a})):n.length>0&&this._logger.info("Feature flags relying on defaults (no migration needed)",{flags:n}),r}async cleanupDeprecatedSettings(e){let r=["customColors","enableReporting"];try{if(e!=null&&e.globalState&&e.globalState.get("explorerDates.deprecatedSettingsAsked"))return this._logger.debug("Skipping deprecated settings prompt - already asked this workspace."),!1}catch(o){this._logger.debug("Failed to read deprecatedSettingsAsked flag",(o==null?void 0:o.message)||o)}let a=[];for(let o of r){let s=this.e.inspect(o);((s==null?void 0:s.globalValue)!==void 0||(s==null?void 0:s.workspaceValue)!==void 0||(s==null?void 0:s.workspaceFolderValue)!==void 0)&&a.push(o)}if(a.length===0)return!1;await this.w(e,"migrationPromptShown",{type:"deprecatedSettings",found:a.length,settings:a});let n=await W.window.showInformationMessage(D.getString("deprecatedPrompt",a.length),{modal:!1},D.getString("deprecatedClean"),D.getString("deprecatedKeep"),D.getString("deprecatedAskLater"));await this.w(e,"migrationPromptResponded",{type:"deprecatedSettings",action:n});try{e!=null&&e.globalState&&e.globalState.update&&await e.globalState.update("explorerDates.deprecatedSettingsAsked",new Date().toISOString())}catch(o){this._logger.debug("Failed to persist deprecatedSettingsAsked flag",(o==null?void 0:o.message)||o)}if(n===D.getString("deprecatedClean")){for(let o of a)try{await this.e.clearSetting(o,{scope:"user",reason:"cleanup-deprecated"}),await this.e.clearSetting(o,{scope:"workspace",reason:"cleanup-deprecated"}),await this.e.clearSetting(o,{scope:"workspaceFolder",reason:"cleanup-deprecated"}),this._logger.info(`Removed deprecated setting: ${o}`)}catch(s){this._logger.error(`Failed to remove deprecated setting ${o}`,s)}return this.n.add("deprecatedSettings\u2192removed"),!0}return!1}async w(e,r,a){var n,o,s,i;try{let l=this.e&&typeof this.e.getValue=="function"?this.e.getValue("enableTelemetry"):!1;if(Jt.EXPLORER_DATES_TELEMETRY!=="1"&&!l||!((n=e==null?void 0:e.globalState)!=null&&n.update)||!((o=e==null?void 0:e.globalState)!=null&&o.get))return;let c=e.globalState.get("explorerDates.telemetryEvents",[]),u=Jt.EXPLORER_DATES_TELEMETRY==="1"?"env":l?"config":"unknown",d=((i=(s=e==null?void 0:e.extension)==null?void 0:s.packageJSON)==null?void 0:i.version)||null,h={timestamp:new Date().toISOString(),event:r,payload:a,source:u,extensionVersion:d};c.push(h);let f=100;c.length>f&&c.splice(0,c.length-f),await e.globalState.update("explorerDates.telemetryEvents",c),this._logger.debug("Telemetry emitted",h)}catch(l){this._logger.debug("Failed to emit telemetry event",(l==null?void 0:l.message)||l)}}async trackMigrationMetrics(e){if(this.n.size===0)return!1;let r=e.globalState.get("explorerDates.migrationHistory",[]),a={timestamp:new Date().toISOString(),extensionVersion:e.extension.packageJSON.version,migratedSettings:Array.from(this.n)};return r.push(a),r.length>5&&r.splice(0,r.length-5),await e.globalState.update("explorerDates.migrationHistory",r),this._logger.info("Recorded migration metrics",a),await this.w(e,"migrationMetricsRecorded",{record:a}),!0}async autoOrganizeSettingsIfNeeded(e,r={}){let a=this.Ce(e);if(!a)return null;try{let n=await a.getOrganizationPlan();if(!(n!=null&&n.needsWork))return this._logger.debug("Auto organization skipped - no Explorer Dates settings to tidy."),null;let o=await a.organize({plan:n});if(o!=null&&o.changed){if(!r.silent){let s=[];o.movedToWorkspace.length&&s.push(`${o.movedToWorkspace.length} moved to workspace`),o.reorderedWorkspace&&s.push("workspace keys sorted"),o.sortedFiles.length&&s.push(`${o.sortedFiles.length} file(s) tidied`);let i=s.length?` (${s.join(" \u2022 ")})`:"";W.window.showInformationMessage(D.getString("organizeSettingsResult",i))}this._logger.info("Explorer Dates settings auto-organized",{trigger:r.trigger||"unknown",summary:o})}return o}catch(n){return this._logger.warn("Automatic Explorer Dates settings organization failed",n),null}}Ce(e){return e?((!this.M||this.j!==e)&&(this.M=new ua(e),this.j=e),this.M):(this._logger.debug("Settings organizer unavailable - missing extension context."),null)}async ve(e,r){let a=e.length;await this.w(r,"migrationPromptShown",{type:"migrationNotification",count:a,details:e});let n=await W.window.showInformationMessage(D.getString("migrationNotificationMessage",a),{modal:!1},D.getString("migrationViewChanges"),D.getString("migrationOpenSettings"));switch(await this.w(r,"migrationPromptResponded",{type:"migrationNotification",action:n}),n){case D.getString("migrationViewChanges"):await this.Se();break;case D.getString("migrationOpenSettings"):await W.commands.executeCommand("workbench.action.openSettings","explorerDates");break}}async Se(){let e=W.window.createWebviewPanel("explorerDatesMigration",D.getString("migrationDetailsTitle"),W.ViewColumn.One,{enableScripts:!1}),r=Array.from(this.n).map(a=>`
  • ${a}
  • `).join("");e.webview.html=` + `}async function la({context:t,logger:e,subscriptions:r}){var n,o,s;if(aa()){(n=e==null?void 0:e.warn)==null||n.call(e,"Duplicate explorerDates.resetToDefaults registration skipped");return}let a;try{a=await g.commands.getCommands(!0)}catch(i){(o=e==null?void 0:e.warn)==null||o.call(e,"Unable to inspect VS Code command registry; proceeding with reset command registration",i)}if(Array.isArray(a)&&a.includes(Vt)){Bt(),(s=e==null?void 0:e.warn)==null||s.call(e,"Detected existing explorerDates.resetToDefaults handler; skipping duplicate registration");return}Bt(),r.push(g.commands.registerCommand(Vt,async()=>{var i,l;try{if(await g.window.showWarningMessage(E.getString("resetConfirmation"),{modal:!0},E.getString("resetConfirm"),E.getString("resetCancel"))!==E.getString("resetConfirm"))return;U("reset settings to defaults");let u=t.extension.packageJSON,d=((l=(i=u==null?void 0:u.contributes)==null?void 0:i.configuration)==null?void 0:l.properties)||{},h=0;for(let f of Object.keys(d))if(f.startsWith("explorerDates.")){let w=f.replace("explorerDates.","");try{await we.clearSetting(w,{scope:"user",reason:"reset-to-defaults"}),await we.clearSetting(w,{scope:"workspace",reason:"reset-to-defaults"}),h++}catch(S){e.warn(`Failed to reset setting ${w}`,S)}}g.window.showInformationMessage(E.getString("resetSuccess",h)),e.info("Settings reset to defaults",{resetCount:h})}catch(c){e.error("Failed to reset settings to defaults",c),g.window.showErrorMessage(`Failed to reset settings: ${c.message}`)}}))}jt.exports={registerMigrationCommands:oa}});var Zt=m((exports,module)=>{var vscode=require("vscode"),{isWebEnvironment}=re(),fs=null,path=null,Xt;try{let isWeb=isWebEnvironment()||typeof process<"u"&&!1;!isWeb&&typeof process<"u"&&((Xt=process.versions)!=null&&Xt.node)&&(fs=eval("require")("fs"),path=eval("require")("path"))}catch{fs=null,path=null}var textDecoder=typeof globalThis.TextDecoder=="function"?new globalThis.TextDecoder("utf-8"):new(require("util")).TextDecoder("utf-8"),TemplateStore=class{constructor(){this._=new Map,this.P=null}initialize(e){this.P=(e==null?void 0:e.extensionUri)??null}async getTemplate(e){if(this._.has(e))return this._.get(e);let r=await this.Ee(e);return this._.set(e,r),r}async Ee(e){let r=`${e}.html`;if(this.P){let a=vscode.Uri.joinPath(this.P,"assets","templates",r),n=await vscode.workspace.fs.readFile(a);return textDecoder.decode(n)}if(fs&&path){let a=path.resolve(__dirname,"..","..","assets","templates",r);return await fs.promises.readFile(a,"utf8")}throw new Error(`TemplateStore: Unable to load template "${e}" (missing extension context)`)}},templateStore=new TemplateStore;module.exports={templateStore,initializeTemplateStore:t=>templateStore.initialize(t)}});var er=m((ro,Qt)=>{var W=require("vscode"),{getLogger:ca}=T(),{getSettingsCoordinator:ua}=ae(),{SettingsOrganizer:da}=Ne(),{getLocalization:ga}=te(),D=ga(),Jt=typeof process<"u"&&process.env?process.env:{},$e=class{constructor(){this._logger=ca(),this.n=new Set,this.e=ua(),this.M=null,this.j=null}async migrateAllSettings(e){var n,o;let r=[()=>this.migrateReportingSettings(),()=>this.migrateCustomColorSettings(),()=>this.validateFeatureFlags(),()=>this.cleanupDeprecatedSettings(e),()=>this.trackMigrationMetrics(e)],a=[];for(let s of r)try{let i=await s();i&&a.push(i)}catch(i){this._logger.error("Settings migration failed:",i)}if(a.length>0){this._logger.info("Settings migration completed",{migratedSettings:a});try{let s=(n=e==null?void 0:e.globalState)!=null&&n.get?e.globalState.get("explorerDates.lastMigrationNotificationShown"):null,i=Date.now(),l=1440*60*1e3;!s||i-new Date(s).getTime()>l?(await this.ve(a,e),(o=e==null?void 0:e.globalState)!=null&&o.update&&await e.globalState.update("explorerDates.lastMigrationNotificationShown",new Date().toISOString())):this._logger.info("Skipping migration notification - recently shown")}catch(s){this._logger.debug("Failed to persist migration notification timestamp",(s==null?void 0:s.message)||s)}}return a}async migrateReportingSettings(){let e=this.e.inspect("enableReporting"),r=this.e.inspect("enableExportReporting"),a=!1;if((e==null?void 0:e.globalValue)!==void 0)try{(r==null?void 0:r.globalValue)===void 0&&(await this.e.updateSetting("enableExportReporting",e.globalValue,{scope:"user",reason:"migrate-enableReporting-global"}),this.n.add("enableReporting\u2192enableExportReporting (Global)"),this._logger.info("Migrated global enableReporting to enableExportReporting",{oldValue:e.globalValue})),await this.e.clearSetting("enableReporting",{scope:"user",reason:"cleanup-migrated-enableReporting-global"}),a=!0}catch(n){this._logger.error("Failed to migrate global enableReporting setting",n)}if((e==null?void 0:e.workspaceValue)!==void 0)try{(r==null?void 0:r.workspaceValue)===void 0&&(await this.e.updateSetting("enableExportReporting",e.workspaceValue,{scope:"workspace",reason:"migrate-enableReporting-workspace"}),this.n.add("enableReporting\u2192enableExportReporting (Workspace)"),this._logger.info("Migrated workspace enableReporting to enableExportReporting",{oldValue:e.workspaceValue})),await this.e.clearSetting("enableReporting",{scope:"workspace",reason:"cleanup-migrated-enableReporting-workspace"}),a=!0}catch(n){this._logger.error("Failed to migrate workspace enableReporting setting",n)}if((e==null?void 0:e.workspaceFolderValue)!==void 0)try{(r==null?void 0:r.workspaceFolderValue)===void 0&&(await this.e.updateSetting("enableExportReporting",e.workspaceFolderValue,{scope:"workspaceFolder",reason:"migrate-enableReporting-folder"}),this.n.add("enableReporting\u2192enableExportReporting (WorkspaceFolder)"),this._logger.info("Migrated workspace folder enableReporting to enableExportReporting",{oldValue:e.workspaceFolderValue})),await this.e.clearSetting("enableReporting",{scope:"workspaceFolder",reason:"cleanup-migrated-enableReporting-folder"}),a=!0}catch(n){this._logger.error("Failed to migrate workspace folder enableReporting setting",n)}return a&&this.n.add("deprecatedSettings\u2192removed"),this.n.has("enableReporting\u2192enableExportReporting (Global)")||this.n.has("enableReporting\u2192enableExportReporting (Workspace)")||this.n.has("enableReporting\u2192enableExportReporting (WorkspaceFolder)")}async migrateCustomColorSettings(){let e=W.workspace.getConfiguration("explorerDates"),r=e.get("migrateLegacyCustomColorsOnStartup",!1),a=e.get("customColors");if(!a||typeof a!="object")return!1;if(!r)return this._logger.info("Skipping custom color migration (opt-in disabled)",{reason:"migrateLegacyCustomColorsOnStartup=false"}),!1;let n=this.e.getValue("workbench.colorCustomizations")||{};if(n["explorerDates.customColor.veryRecent"]!==void 0||n["explorerDates.customColor.recent"]!==void 0||n["explorerDates.customColor.old"]!==void 0)return!1;let s={...n,"explorerDates.customColor.veryRecent":a.veryRecent||"#00ff00","explorerDates.customColor.recent":a.recent||"#ffff00","explorerDates.customColor.old":a.old||"#ff0000"};try{await this.e.updateSetting("workbench.colorCustomizations",s,{scope:"user",reason:"migrate-customColors"}),this.n.add("customColors\u2192workbench.colorCustomizations");let i=e.inspect("customColors"),l=!1;return(i==null?void 0:i.globalValue)!==void 0&&(await this.e.clearSetting("customColors",{scope:"user",reason:"cleanup-migrated-customColors-global"}),l=!0),(i==null?void 0:i.workspaceValue)!==void 0&&(await this.e.clearSetting("customColors",{scope:"workspace",reason:"cleanup-migrated-customColors-workspace"}),l=!0),(i==null?void 0:i.workspaceFolderValue)!==void 0&&(await this.e.clearSetting("customColors",{scope:"workspaceFolder",reason:"cleanup-migrated-customColors-folder"}),l=!0),l&&this.n.add("deprecatedSettings\u2192removed"),this._logger.info("Migrated custom colors to workbench.colorCustomizations",{oldColors:a,newColors:s}),!0}catch(i){return this._logger.error("Failed to migrate custom colors",i),!1}}async validateFeatureFlags(){let e={enableOnboardingSystem:{default:!0,type:"boolean"},enableExportReporting:{default:!0,type:"boolean"},enableAnalysisCommands:{default:!0,type:"boolean"},enableAdvancedCache:{default:!0,type:"boolean"},enableWorkspaceIntelligence:{default:!0,type:"boolean"},enableWorkspaceTemplates:{default:!0,type:"boolean"},enableExtensionApi:{default:!0,type:"boolean"},enableProgressiveAnalysis:{default:null,type:"boolean",allowNull:!0}},r=!1,a=[],n=[];for(let[o,s]of Object.entries(e)){let i=this.e.inspect(o),l=this.e.getValue(o),c=(i==null?void 0:i.globalValue)!==void 0,u=(i==null?void 0:i.workspaceValue)!==void 0;if(!c&&!u)n.push(o);else if(l!==void 0&&!(s.allowNull&&l===null?!0:typeof l===s.type))try{await this.e.updateSetting(o,s.default,{scope:"user",reason:`feature-flag-validation:${o}`}),a.push(`${o}: corrected type mismatch`),r=!0}catch(h){this._logger.error(`Failed to fix feature flag ${o}`,h)}}return r?(this.n.add("featureFlags\u2192validated"),this._logger.info("Validated feature flags",{fixes:a})):n.length>0&&this._logger.info("Feature flags relying on defaults (no migration needed)",{flags:n}),r}async cleanupDeprecatedSettings(e){let r=["customColors","enableReporting"];try{if(e!=null&&e.globalState&&e.globalState.get("explorerDates.deprecatedSettingsAsked"))return this._logger.debug("Skipping deprecated settings prompt - already asked this workspace."),!1}catch(o){this._logger.debug("Failed to read deprecatedSettingsAsked flag",(o==null?void 0:o.message)||o)}let a=[];for(let o of r){let s=this.e.inspect(o);((s==null?void 0:s.globalValue)!==void 0||(s==null?void 0:s.workspaceValue)!==void 0||(s==null?void 0:s.workspaceFolderValue)!==void 0)&&a.push(o)}if(a.length===0)return!1;await this.w(e,"migrationPromptShown",{type:"deprecatedSettings",found:a.length,settings:a});let n=await W.window.showInformationMessage(D.getString("deprecatedPrompt",a.length),{modal:!1},D.getString("deprecatedClean"),D.getString("deprecatedKeep"),D.getString("deprecatedAskLater"));await this.w(e,"migrationPromptResponded",{type:"deprecatedSettings",action:n});try{e!=null&&e.globalState&&e.globalState.update&&await e.globalState.update("explorerDates.deprecatedSettingsAsked",new Date().toISOString())}catch(o){this._logger.debug("Failed to persist deprecatedSettingsAsked flag",(o==null?void 0:o.message)||o)}if(n===D.getString("deprecatedClean")){for(let o of a)try{await this.e.clearSetting(o,{scope:"user",reason:"cleanup-deprecated"}),await this.e.clearSetting(o,{scope:"workspace",reason:"cleanup-deprecated"}),await this.e.clearSetting(o,{scope:"workspaceFolder",reason:"cleanup-deprecated"}),this._logger.info(`Removed deprecated setting: ${o}`)}catch(s){this._logger.error(`Failed to remove deprecated setting ${o}`,s)}return this.n.add("deprecatedSettings\u2192removed"),!0}return!1}async w(e,r,a){var n,o,s,i;try{let l=this.e&&typeof this.e.getValue=="function"?this.e.getValue("enableTelemetry"):!1;if(Jt.EXPLORER_DATES_TELEMETRY!=="1"&&!l||!((n=e==null?void 0:e.globalState)!=null&&n.update)||!((o=e==null?void 0:e.globalState)!=null&&o.get))return;let c=e.globalState.get("explorerDates.telemetryEvents",[]),u=Jt.EXPLORER_DATES_TELEMETRY==="1"?"env":l?"config":"unknown",d=((i=(s=e==null?void 0:e.extension)==null?void 0:s.packageJSON)==null?void 0:i.version)||null,h={timestamp:new Date().toISOString(),event:r,payload:a,source:u,extensionVersion:d};c.push(h);let f=100;c.length>f&&c.splice(0,c.length-f),await e.globalState.update("explorerDates.telemetryEvents",c),this._logger.debug("Telemetry emitted",h)}catch(l){this._logger.debug("Failed to emit telemetry event",(l==null?void 0:l.message)||l)}}async trackMigrationMetrics(e){if(this.n.size===0)return!1;let r=e.globalState.get("explorerDates.migrationHistory",[]),a={timestamp:new Date().toISOString(),extensionVersion:e.extension.packageJSON.version,migratedSettings:Array.from(this.n)};return r.push(a),r.length>5&&r.splice(0,r.length-5),await e.globalState.update("explorerDates.migrationHistory",r),this._logger.info("Recorded migration metrics",a),await this.w(e,"migrationMetricsRecorded",{record:a}),!0}async autoOrganizeSettingsIfNeeded(e,r={}){let a=this.Ce(e);if(!a)return null;try{let n=await a.getOrganizationPlan();if(!(n!=null&&n.needsWork))return this._logger.debug("Auto organization skipped - no Explorer Dates settings to tidy."),null;let o=await a.organize({plan:n});if(o!=null&&o.changed){if(!r.silent){let s=[];o.movedToWorkspace.length&&s.push(`${o.movedToWorkspace.length} moved to workspace`),o.reorderedWorkspace&&s.push("workspace keys sorted"),o.sortedFiles.length&&s.push(`${o.sortedFiles.length} file(s) tidied`);let i=s.length?` (${s.join(" \u2022 ")})`:"";W.window.showInformationMessage(D.getString("organizeSettingsResult",i))}this._logger.info("Explorer Dates settings auto-organized",{trigger:r.trigger||"unknown",summary:o})}return o}catch(n){return this._logger.warn("Automatic Explorer Dates settings organization failed",n),null}}Ce(e){return e?((!this.M||this.j!==e)&&(this.M=new da(e),this.j=e),this.M):(this._logger.debug("Settings organizer unavailable - missing extension context."),null)}async ve(e,r){let a=e.length;await this.w(r,"migrationPromptShown",{type:"migrationNotification",count:a,details:e});let n=await W.window.showInformationMessage(D.getString("migrationNotificationMessage",a),{modal:!1},D.getString("migrationViewChanges"),D.getString("migrationOpenSettings"));switch(await this.w(r,"migrationPromptResponded",{type:"migrationNotification",action:n}),n){case D.getString("migrationViewChanges"):await this.Se();break;case D.getString("migrationOpenSettings"):await W.commands.executeCommand("workbench.action.openSettings","explorerDates");break}}async Se(){let e=W.window.createWebviewPanel("explorerDatesMigration",D.getString("migrationDetailsTitle"),W.ViewColumn.One,{enableScripts:!1}),r=Array.from(this.n).map(a=>`
  • ${a}
  • `).join("");e.webview.html=` @@ -123,5 +123,5 @@ ${S}`,{modal:!0})}),r.info(`File history requested for: ${l.fsPath||l.path}`)}ca - `}async validateConfiguration(){let e=[],r=W.workspace.getConfiguration("explorerDates"),a=[{setting:"dateDecorationFormat",validate:n=>["smart","relative-short","relative-long","absolute-short","absolute-long"].includes(n),message:"Invalid date decoration format"},{setting:"colorScheme",validate:n=>["none","recency","file-type","subtle","vibrant","custom"].includes(n),message:"Invalid color scheme"},{setting:"badgePriority",validate:n=>["time","author","size"].includes(n),message:"Invalid badge priority"},{setting:"maxCacheSize",validate:n=>typeof n=="number"&&n>=100&&n<=5e4,message:"Cache size must be between 100 and 50,000"},{setting:"cacheTimeout",validate:n=>typeof n=="number"&&n>=5e3&&n<=3e5,message:"Cache timeout must be between 5,000 and 300,000 milliseconds"}];for(let n of a){let o=r.get(n.setting);o!==void 0&&!n.validate(o)&&e.push({setting:n.setting,value:o,message:n.message})}return e}getMigrationHistory(e){return e.globalState.get("explorerDates.migrationHistory",[])}};Qt.exports={SettingsMigrationManager:$e}});var sr=m((ro,or)=>{var P=require("vscode"),{getLogger:ga}=T(),{WORKSPACE_SCALE_BALANCED_THRESHOLD:tr,WORKSPACE_SCALE_LARGE_THRESHOLD:ye,WORKSPACE_SCALE_EXTREME_THRESHOLD:rr,WORKSPACE_SCAN_MAX_RESULTS:nr}=$(),qe=ga(),be=null;function ar(t){return t&&(t.fsPath||t.path)||null}function Ue(t,e){let r=ar(t);!r||typeof e!="number"||(be={workspaceKey:r,fileCount:e,timestamp:Date.now()})}function ze(t){let e=ar(t);return!e||!be||be.workspaceKey!==e?null:be}function pa(t,e="default"){if(!t)return`unknown-workspace-${e}`;let r=t.fsPath||t.path||"",a=r.split("/").pop()||"workspace",n=Math.abs(r.split("").reduce((s,i)=>(s=(s<<5)-s+i.charCodeAt(0),s&s),0)).toString(36).substr(0,8),o=Math.abs(e.split("").reduce((s,i)=>(s=(s<<5)-s+i.charCodeAt(0),s&s),0)).toString(36).substr(0,4);return`${a}-${n}-${o}`}async function fa(t){try{if(!t)return"unknown";let e=ze(t),r;e?r=e.fileCount:(r=(await P.workspace.findFiles("**/*",null,nr)).length,Ue(t,r));let a="small";r>=rr?a="extreme":r>=ye?a="large":r>=1e3&&(a="medium");let n=P.env.remoteName,o=P.env.uiKind===P.UIKind.Web,s=a==="medium"&&r>=tr&&rc.toLowerCase());if(l.includes("package.json")||l.includes("yarn.lock"))return"web-development";if(l.some(c=>c.endsWith(".ipynb"))||l.includes("requirements.txt"))return"data-science";if(l.includes("docker-compose.yml")||l.includes(".enterprise"))return"enterprise"}catch(i){qe.debug("Project type detection failed:",i)}return"full"}catch(e){return qe.error("Workspace profile detection failed:",e),"unknown"}}async function ma(t){if(!t)return null;try{let e=ze(t),r;e?r=e.fileCount:(r=(await P.workspace.findFiles("**/*",null,nr)).length,Ue(t,r));let a="small";r>=rr?a="extreme":r>=ye?a="large":r>=1e3&&(a="medium");let n=!!P.env.remoteName,o=P.env.uiKind===P.UIKind.Web,s=o?"web":n?"remote":"local",i=a==="medium"&&r>=tr&&r{var CHUNK_SIZES={onboarding:34,analysisCommands:23,exportReporting:17,extensionApi:15,workspaceTemplates:14,advancedCache:28,workspaceIntelligence:31,incrementalWorkers:19},BASE_BUNDLE_SIZE=99;function _getPresetDefinitionsSync(){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let t=dynamicRequire("./chunks/preset-definitions-chunk");if(t&&t.PRESET_DEFINITIONS)return t.PRESET_DEFINITIONS}}catch{}let FALLBACK_PRESET={minimal:{id:"minimal",name:"Minimal",description:"Lean setup that prioritizes responsiveness in large repos.",targetScenarios:["Large repos","Low resources","Minimal UI"],settings:{"explorerDates.performanceMode":!0,"explorerDates.showDateDecorations":!0}},balanced:{id:"balanced",name:"Balanced",description:"Default feature mix for most workspaces.",targetScenarios:["General development","Mixed workloads"],settings:{"explorerDates.enableOnboardingSystem":!0,"explorerDates.enableAnalysisCommands":!0,"explorerDates.performanceMode":!1,"explorerDates.dateDecorationFormat":"smart","explorerDates.colorScheme":"recency","explorerDates.badgePriority":"time"}},"web-development":{id:"web-development",name:"Web Development",description:"Optimized for frontend and full-stack web projects.",targetScenarios:["Web apps","Frontend teams"],settings:{"explorerDates.enableOnboardingSystem":!0,"explorerDates.dateDecorationFormat":"smart","explorerDates.colorScheme":"file-type","explorerDates.badgePriority":"time"}},enterprise:{id:"enterprise",name:"Enterprise",description:"Full feature set with reporting and integrations enabled.",targetScenarios:["Large teams","Governed environments"],settings:{"explorerDates.enableExportReporting":!0,"explorerDates.enableExtensionApi":!0,"explorerDates.dateDecorationFormat":"smart","explorerDates.colorScheme":"recency","explorerDates.badgePriority":"time"}},"data-science":{id:"data-science",name:"Data Science",description:"Insight-focused profile for data-heavy projects.",targetScenarios:["Data analysis","Research workflows"],settings:{"explorerDates.enableWorkspaceIntelligence":!0,"explorerDates.dateDecorationFormat":"iso-detailed","explorerDates.colorScheme":"recency","explorerDates.badgePriority":"time"}}};return FALLBACK_PRESET}var PRESET_DEFINITIONS=_getPresetDefinitionsSync(),RESTART_REQUIRED_SETTINGS=new Set(["enableOnboardingSystem","enableAnalysisCommands","enableExportReporting","enableExtensionApi","enableWorkspaceTemplates","enableAdvancedCache","enableWorkspaceIntelligence","enableIncrementalWorkers","performanceMode","smartFileWatching"]);function calculateBundleSize(t){let e=BASE_BUNDLE_SIZE;return t["explorerDates.enableOnboardingSystem"]&&(e+=CHUNK_SIZES.onboarding),t["explorerDates.enableAnalysisCommands"]&&(e+=CHUNK_SIZES.analysisCommands),t["explorerDates.enableExportReporting"]&&(e+=CHUNK_SIZES.exportReporting),t["explorerDates.enableExtensionApi"]&&(e+=CHUNK_SIZES.extensionApi),t["explorerDates.enableWorkspaceTemplates"]&&(e+=CHUNK_SIZES.workspaceTemplates),t["explorerDates.enableAdvancedCache"]&&(e+=CHUNK_SIZES.advancedCache),t["explorerDates.enableWorkspaceIntelligence"]&&(e+=CHUNK_SIZES.workspaceIntelligence),t["explorerDates.enableIncrementalWorkers"]&&(e+=CHUNK_SIZES.incrementalWorkers),e}function getDefaultPresetForProfile(t){let e=PRESET_DEFINITIONS;switch(t){case"minimal":case"extreme":return e.minimal||e.minimal;case"balanced":return e.balanced||e.balanced;case"web-development":return e["web-development"]||e["web-development"];case"data-science":return e["data-science"]||e["data-science"];case"enterprise":return e.enterprise||e.enterprise;default:return e.balanced||e.balanced}}module.exports={PRESET_DEFINITIONS,CHUNK_SIZES,BASE_BUNDLE_SIZE,RESTART_REQUIRED_SETTINGS,calculateBundleSize,getDefaultPresetForProfile}});var ir=m((exports,module)=>{var vscode=require("vscode"),getLogger=()=>{try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let t=dynamicRequire("./chunks/logger-chunk");if(t&&typeof t.getLogger=="function")return getLogger=t.getLogger,getLogger()}}catch{}try{return getLogger=T().getLogger,getLogger()}catch{return getLogger=()=>{var t;return{debug:((t=()=>{})==null?void 0:t.bind(console))||console.log,info:(()=>{}).bind(console),warn:(()=>{}).bind(console),error:(()=>{}).bind(console)}},getLogger()}},{generateWorkspaceKey,detectWorkspaceProfile,analyzeWorkspaceEnvironment}=sr(),{PRESET_DEFINITIONS,calculateBundleSize,getDefaultPresetForProfile,RESTART_REQUIRED_SETTINGS}=Ee(),{getSettingsCoordinator}=ne(),{WORKSPACE_SCALE_LARGE_THRESHOLD,WORKSPACE_SCALE_EXTREME_THRESHOLD}=$(),{diagLog}=j(),isWebRuntime=(()=>{var t,e;try{return((t=vscode==null?void 0:vscode.env)==null?void 0:t.uiKind)===((e=vscode==null?void 0:vscode.UIKind)==null?void 0:e.Web)}catch{return!1}})(),logger=getLogger(),quickPickUnavailableMessage="Explorer Dates: This action is unavailable in this environment.";function ensureQuickPickAvailable(t){var e,r;if(typeof((e=vscode==null?void 0:vscode.window)==null?void 0:e.showQuickPick)=="function")return!0;diagLog("warn","QuickPick unavailable",{context:t,isWeb:isWebRuntime});try{typeof((r=vscode==null?void 0:vscode.window)==null?void 0:r.showInformationMessage)=="function"&&vscode.window.showInformationMessage(quickPickUnavailableMessage)}catch{}return!1}var RuntimeConfigManager=class{constructor(e){this.z=e,this.r=e.globalState,this.W=null,this.g=null,this.d="explorerDates.pendingRestart",this.Y="explorerDates.suggestionHistory",this.D="explorerDates.presetBackup",this.I="explorerDates.lastPreset",this.e=getSettingsCoordinator(),this.De(),logger.info("Runtime configuration manager initialized")}async getCurrentRuntimeState(){var s,i;let e=vscode.workspace.getConfiguration("explorerDates"),r=this.p(e),a=this.i(null,r),n=(i=(s=vscode.workspace.workspaceFolders)==null?void 0:s[0])==null?void 0:i.uri,o=await analyzeWorkspaceEnvironment(n);return{currentSettings:r,currentBundleSize:a,analysis:o,availablePresets:Object.keys(PRESET_DEFINITIONS),pendingRestart:this.r.get(this.d,[]),timestamp:Date.now()}}async checkAutoSuggestion(e=!1){var r,a;try{let n=(a=(r=vscode.workspace.workspaceFolders)==null?void 0:r[0])==null?void 0:a.uri;if(!n){e&&vscode.window.showInformationMessage("Explorer Dates: No workspace folder is open. Open a folder to receive configuration suggestions.");return}let o=await detectWorkspaceProfile(n),s=generateWorkspaceKey(n,o),i=this.r.get(this.Y,{}),l=i[s];if(e||!l||l.profileDetected!==o||await this.ke(l)){let u=await this.X(o);if(u){if(e&&u.reason==="minimal savings")vscode.window.showInformationMessage(`Explorer Dates: Your configuration is already well-optimized for a ${o} workspace. No changes recommended.`);else if(u.accepted!==void 0){let d=await analyzeWorkspaceEnvironment(n);i[s]={profileDetected:o,suggestedAt:Date.now(),fileCountAtSuggestion:(d==null?void 0:d.fileCount)||0,accepted:u.accepted,presetId:u.preset},await this.r.update(this.Y,i),logger.info("Auto-suggestion updated:",i[s])}}}else if(e){let u=await this.X(o);(u==null?void 0:u.reason)==="minimal savings"&&vscode.window.showInformationMessage(`Explorer Dates: Your configuration is already well-optimized for a ${o} workspace. No changes recommended.`)}}catch(n){logger.error("Auto-suggestion check failed:",n)}}async X(e){let r=this.p(vscode.workspace.getConfiguration("explorerDates")),a=getDefaultPresetForProfile(e),n=this.i(null,r),o=a?this.i(a.settings,r):n,s=n-o;if(s<=10)return{accepted:!1,preset:e,reason:"minimal savings"};let i=`Explorer Dates detected a ${e} workspace. Would you like to apply ${a.name} settings? This could save ~${s}KB.`;switch(await vscode.window.showInformationMessage(i,{modal:!1},"Apply Settings","Show Details","Not Now")){case"Apply Settings":return await this.L(a.id,a),{accepted:!0,preset:e};case"Show Details":return await this.showPresetComparison(r,a),{accepted:!1,preset:e};default:return{accepted:!1,preset:e}}}async L(e,r=null){let a=r||PRESET_DEFINITIONS[e];if(!a)throw new Error(`Unknown preset: ${e}`);let n=this.p(vscode.workspace.getConfiguration("explorerDates"));await this.Te(e,n);let o=Object.entries(a.settings||{}),s=[],i=[],l=[],c=isWebRuntime?"user":"workspace",u=`apply-preset:${e}`,d=w=>{try{if(!w||typeof w!="string")return!1;let S="explorerDates.";if(w.startsWith(S)){let Z=w.slice(S.length),I=vscode.workspace.getConfiguration("explorerDates").inspect(Z);return I?[I.defaultValue,I.globalValue,I.workspaceValue,I.workspaceFolderValue].some(Dr=>Dr!==void 0):!1}let v=vscode.workspace.getConfiguration().inspect(w);return v?[v.defaultValue,v.globalValue,v.workspaceValue,v.workspaceFolderValue].some(Z=>Z!==void 0):!1}catch{return!1}};for(let[w,S]of o){if(!d(w)){i.push(w),diagLog("warn","Preset skipped unregistered setting",{key:w,presetId:e});continue}try{s.push(await this.e.updateSetting(w,S,{scope:c,reason:u}))}catch(v){l.push({key:w,error:v}),logger.warn(`Preset application failed for ${w}: ${v&&v.message?v.message:String(v)}`)}}let h=s.filter(w=>w.updated).map(w=>w.key.replace("explorerDates.","")),f=`Applied "${a.name}" preset. Applied: ${h.length}. Skipped: ${i.length}. Failed: ${l.length}.`;try{vscode.window.showInformationMessage(f)}catch{}if(logger.info(`Applied ${a.name} preset`,{changedSettings:h,skipped:i,failed:l.length}),diagLog("info","Preset applied summary",{presetId:e,applied:h.length,skipped:i,failed:l.map(w=>w.key),webRuntime:isWebRuntime}),h.length>0){this.Z(h);try{await vscode.commands.executeCommand("explorerDates.refreshDateDecorations"),diagLog("info","Preset refresh triggered",{presetId:e,applied:h.length,skipped:i.length})}catch(w){diagLog("warn","Preset refresh failed",{presetId:e,error:w==null?void 0:w.message})}}return{applied:h.length,preset:a,requiresRestart:h.some(w=>RESTART_REQUIRED_SETTINGS.has(w)),estimatedBundleSize:this.i()}}async restorePreviousPreset(e={}){let r=this.r.get(this.D,null);if(!(r!=null&&r.settings))return e.silent||vscode.window.showInformationMessage("No previous preset available to restore."),{restored:!1,reason:"no-backup"};let a;try{a=await this.e.applySettings(r.settings,{scope:"workspace",reason:"restore-previous-preset"})}catch(o){throw e.silent||vscode.window.showErrorMessage(`Failed to restore previous preset: ${o.message}`),logger.error("Preset rollback failed:",o),o}let n=a.filter(o=>o.updated).map(o=>o.key.replace("explorerDates.",""));return await this.r.update(this.d,[]),await this.r.update(this.D,null),await this.r.update(this.I,r.previousPreset||null),e.silent||vscode.window.showInformationMessage("Previous preset restored."),{restored:!0,changedSettings:n,restoredPreset:r.previousPreset||"unknown"}}async showPresetComparison(e,r){if(!ensureQuickPickAvailable("runtimeConfig.showPresetComparison"))return;let a=e||this.p(vscode.workspace.getConfiguration("explorerDates")),n=this.i(null,a),o=r?this.i(r.settings,a):n,s=n-o,i=[{label:"\u{1F4E6} Current Configuration",description:`Bundle: ${n}KB total`,detail:this.J(a),action:"current"},r?{label:`\u26A1 Recommended: ${r.name}`,description:`Bundle: ${o}KB total (saves ${Math.max(0,s)}KB)`,detail:this.J(r.settings),action:"apply",preset:r}:null,{label:"\u{1F527} Browse All Presets...",description:`Choose from ${Object.keys(PRESET_DEFINITIONS).length} available presets`,detail:"Minimal, Balanced, Web Development, Enterprise, Data Science",action:"browse"}].filter(Boolean),l=await vscode.window.showQuickPick(i,{placeHolder:"Choose configuration approach",ignoreFocusOut:!0,matchOnDescription:!0,matchOnDetail:!0});if(l)switch(l.action){case"apply":l.preset&&await this.L(l.preset.id,l.preset);break;case"browse":await this.showAllPresets();break}}async showAllPresets(){if(!ensureQuickPickAvailable("runtimeConfig.showAllPresets"))return;let e=this.p(vscode.workspace.getConfiguration("explorerDates")),r=this.i(null,e),a=Object.values(PRESET_DEFINITIONS).map(o=>{let s=this.i(o.settings,e),i=r-s,l=i>0?`saves ${i}KB`:i<0?`adds ${Math.abs(i)}KB`:"same size";return{label:`${o.name}`,description:`${s}KB (${l})`,detail:`${o.description} - ${o.targetScenarios.join(", ")}`,preset:o}}),n=await vscode.window.showQuickPick(a,{placeHolder:"Select a preset configuration",ignoreFocusOut:!0,matchOnDescription:!0,matchOnDetail:!0});n!=null&&n.preset&&await vscode.window.showInformationMessage(`Apply "${n.preset.name}" preset? -${n.preset.description}`,{modal:!1},"Apply","Cancel")==="Apply"&&await this.L(n.preset.id,n.preset)}De(){this.W=vscode.workspace.onDidChangeConfiguration(e=>{e.affectsConfiguration("explorerDates")&&this.Ae(e)})}async Ae(e){let r=Array.from(RESTART_REQUIRED_SETTINGS).filter(a=>e.affectsConfiguration(`explorerDates.${a}`));r.length>0&&this.Z(r)}Z(e){let r=this.r.get(this.d,[]),a=[...new Set([...r,...e])];try{let n=this.r.update(this.d,a);n&&typeof n.then=="function"&&n.catch(o=>{try{logger.warn("Failed to persist pending restart state:",o&&o.message)}catch{}})}catch(n){try{logger.warn("Failed to persist pending restart state (sync):",n&&n.message)}catch{}}this.g&&clearTimeout(this.g),this.g=setTimeout(()=>{(async()=>{try{await this.xe()}catch(n){logger.error("Failed to show batched restart prompt:",n);try{await this.r.update(this.d,[])}catch(o){logger.warn("Failed to clear pending restarts after prompt failure:",o&&o.message)}}finally{this.g=null}})()},2e3)}async xe(){try{let e=this.r.get(this.d,[]);if(e.length===0)return;let r=e.map(s=>this.Re(s)).join(", "),n=`${e.length===1?`"${r}"`:`${e.length} settings (${r})`} changed. Reload to apply chunk optimizations?`,o;try{o=await vscode.window.showInformationMessage(n,{modal:!1},"Reload Now","Reload Later")}catch(s){logger.warn("User prompt for restart failed:",s&&s.message)}if(o==="Reload Now")try{await vscode.commands.executeCommand("workbench.action.reloadWindow")}catch(s){logger.warn("Failed to execute reload command:",s&&s.message)}}catch(e){logger.error("Error while showing batched restart prompt:",e)}finally{try{await this.r.update(this.d,[])}catch(e){logger.warn("Failed to clear pending restarts:",e&&e.message)}}}async Te(e,r={}){if(!this.r||typeof this.r.update!="function")return;let a=this.r.get(this.I,null),n=this.r.get(this.D,null),o=n!=null&&n.timestamp?Date.parse(n.timestamp):null,s=Number.isFinite(o)?Math.max(Date.now(),o+1):Date.now(),i={timestamp:new Date(s).toISOString(),appliedPreset:e,previousPreset:a||"unknown",settings:{...r}};await this.r.update(this.D,i),await this.r.update(this.I,e)}i(e=null,r=null){let a=r?{...r}:this.p(vscode.workspace.getConfiguration("explorerDates"));return e&&typeof e=="object"&&Object.assign(a,e),calculateBundleSize(a)}p(e){let r={enableOnboardingSystem:!0,enableAnalysisCommands:!0,enableExportReporting:!0,enableExtensionApi:!0,enableWorkspaceTemplates:!0,enableAdvancedCache:!0,enableWorkspaceIntelligence:!0,enableIncrementalWorkers:!1},a={};for(let[n,o]of Object.entries(r))a[`explorerDates.${n}`]=e.get(n,o);return a}J(e){let r=Object.entries(e).filter(([o,s])=>s===!0&&o.includes("enable")).map(([o])=>o.replace("explorerDates.enable","").replace("System","")).slice(0,3),a=Math.max(0,Object.keys(e).length-3),n=a>0?` +${a} more`:"";return`Features: ${r.join(", ")}${n}`}Re(e){return e.replace("enable","").replace(/([A-Z])/g," $1").trim()}async ke(e){var r,a;if(!e)return!0;try{let n=(a=(r=vscode.workspace.workspaceFolders)==null?void 0:r[0])==null?void 0:a.uri,o=await analyzeWorkspaceEnvironment(n);if(!o)return!1;let s=e.fileCountAtSuggestion||0,i=o.fileCount,l=this.Q(s),c=this.Q(i);return l!==c}catch(n){return logger.debug("Heuristics change check failed:",n),!1}}Q(e){return e>=WORKSPACE_SCALE_EXTREME_THRESHOLD?"extreme":e>=WORKSPACE_SCALE_LARGE_THRESHOLD?"large":e>=1e3?"medium":"small"}dispose(){this.W&&this.W.dispose(),this.g&&clearTimeout(this.g)}};module.exports={RuntimeConfigManager}});var ur=m((no,cr)=>{var{RuntimeConfigManager:lr}=ir();cr.exports={RuntimeConfigManager:lr,default:{RuntimeConfigManager:lr}}});var He=m((exports,module)=>{var vscode=require("vscode"),{getLogger}=T(),{recordCommandRegistration,recordCommandInvocation,recordCommandResult}=j(),{diagLog}=j(),logger=getLogger(),isWebRuntime=(()=>{var t,e;try{return((t=vscode==null?void 0:vscode.env)==null?void 0:t.uiKind)===((e=vscode==null?void 0:vscode.UIKind)==null?void 0:e.Web)}catch{return typeof process>"u"||!1}})();function createWebRuntimeManagerStub(){let t=async e=>{var r;diagLog("warn","QuickPick unavailable",{context:"runtimeCommands.webStub",isWeb:isWebRuntime}),typeof((r=vscode==null?void 0:vscode.window)==null?void 0:r.showInformationMessage)=="function"&&await vscode.window.showInformationMessage(e)};return{async showAllPresets(){await t("Runtime presets are unavailable in VS Code for Web.")},async restorePreviousPreset(){return await t("Runtime presets are unavailable in VS Code for Web."),{restored:!1}},async showPresetComparison(){await t("Runtime preset comparisons are unavailable in VS Code for Web.")},async checkAutoSuggestion(){await t("Runtime preset suggestions are unavailable in VS Code for Web.")},async getCurrentRuntimeState(){return{currentSettings:{},analysis:null}}}}function registerRuntimeCommands(context){let runtimeManager=null,teamPersistenceManager=null,managersInitializing=null,runtimeManagerProxy={dispose:()=>{if(runtimeManager&&typeof runtimeManager.dispose=="function")try{runtimeManager.dispose()}catch(t){logger.warn("Error during runtimeManager.dispose proxy",t)}}},teamPersistenceManagerProxy={dispose:()=>{if(teamPersistenceManager&&typeof teamPersistenceManager.dispose=="function")try{teamPersistenceManager.dispose()}catch(t){logger.warn("Error during teamPersistenceManager.dispose proxy",t)}}};function loadTeamPersistenceModule(){if(isWebRuntime)return null;let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire!="function")return null;let candidates=["../chunks/teamPersistence","../chunks/team-persistence-chunk"];for(let t of candidates)try{let e=dynamicRequire(t);if(e)return e.default||e}catch{}return null}async function ensureManagers(){return managersInitializing||(managersInitializing=(async()=>{if(!runtimeManager){if(isWebRuntime){runtimeManager=createWebRuntimeManagerStub();return}let t=await Promise.resolve().then(()=>J(ur()));runtimeManager=new t.RuntimeConfigManager(context)}if(!teamPersistenceManager&&!isWebRuntime){let persistence=loadTeamPersistenceModule();if(persistence!=null&&persistence.createTeamPersistenceManager)teamPersistenceManager=persistence.createTeamPersistenceManager(context);else if(persistence!=null&&persistence.TeamConfigPersistenceManager)teamPersistenceManager=new persistence.TeamConfigPersistenceManager(context);else{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let t=dynamicRequire("../teamConfigPersistence.proxy");teamPersistenceManager=new t.TeamConfigPersistenceManager(context)}}}})(),managersInitializing)}let registerCommand=(t,e)=>(recordCommandRegistration(t),vscode.commands.registerCommand(t,async(...r)=>{recordCommandInvocation(t);try{let a=await e(...r);return recordCommandResult(t,!0),a}catch(a){throw recordCommandResult(t,!1,a),a}})),commands=[registerCommand("explorerDates.applyPreset",async()=>{try{let{requireWorkspaceTrust:t}=Y();t("apply preset"),await ensureManagers(),await runtimeManager.showAllPresets()}catch(t){logger.error("Apply preset command failed:",t),vscode.window.showErrorMessage(`Failed to apply preset: ${t.message}`)}}),registerCommand("explorerDates.restorePreviousPreset",async()=>{try{await ensureManagers(),(await runtimeManager.restorePreviousPreset()).restored||logger.info("No preset backup available to restore")}catch(t){logger.error("Restore previous preset command failed:",t),vscode.window.showErrorMessage(`Failed to restore previous preset: ${t.message}`)}}),registerCommand("explorerDates.configureRuntime",async()=>{try{await ensureManagers();let t=await runtimeManager.getCurrentRuntimeState();await runtimeManager.showPresetComparison(t.currentSettings)}catch(t){logger.error("Configure runtime command failed:",t),vscode.window.showErrorMessage(`Failed to show runtime configuration: ${t.message}`)}}),registerCommand("explorerDates.suggestOptimalPreset",async()=>{try{await ensureManagers(),await runtimeManager.checkAutoSuggestion(!0)}catch(t){logger.error("Suggest optimal preset command failed:",t),vscode.window.showErrorMessage(`Failed to suggest preset: ${t.message}`)}}),registerCommand("explorerDates.showChunkStatus",async()=>{try{await ensureManagers();let t=await runtimeManager.getCurrentRuntimeState();await showChunkStatusQuickPick(t)}catch(t){logger.warn("Show chunk status: runtime managers unavailable, using fallback state",t);try{let e=vscode.workspace.getConfiguration("explorerDates"),r=[34,23,17,15,14,28,31,19],o={currentBundleSize:99+["enableOnboardingSystem","enableAnalysisCommands","enableExportReporting","enableExtensionApi","enableWorkspaceTemplates","enableAdvancedCache","enableWorkspaceIntelligence","enableIncrementalWorkers"].reduce((s,i,l)=>s+(e.get(i,!0)?r[l]:0),0)};await showChunkStatusQuickPick(o)}catch(e){logger.error("Show chunk status fallback failed:",e),vscode.window.showErrorMessage(`Failed to show chunk status: ${e.message}`)}}}),registerCommand("explorerDates.optimizeBundle",async()=>{try{await ensureManagers();let t=await runtimeManager.getCurrentRuntimeState();if(t.analysis){let e=await determineOptimalProfile(t.analysis);await runtimeManager.showPresetComparison(t.currentSettings,e)}else await runtimeManager.showAllPresets()}catch(t){logger.error("Optimize bundle command failed:",t),vscode.window.showErrorMessage(`Failed to optimize bundle: ${t.message}`)}}),registerCommand("explorerDates.validateTeamConfig",async()=>{try{if(isWebRuntime){vscode.window.showInformationMessage("Team configuration validation is unavailable in VS Code for Web.");return}if(await ensureManagers(),!teamPersistenceManager){vscode.window.showInformationMessage("Team configuration validation is unavailable.");return}let t=await teamPersistenceManager.validateTeamConfiguration();if(t.hasTeamConfig){let e=t.conflicts.length>0?`Found ${t.conflicts.length} conflicts.`:"No conflicts detected.";vscode.window.showInformationMessage(`Team configuration validated. ${e}`)}else vscode.window.showInformationMessage("No team configuration found in workspace.")}catch(t){logger.error("Validate team config command failed:",t),vscode.window.showErrorMessage(`Failed to validate team configuration: ${t.message}`)}})];return commands.forEach(t=>context.subscriptions.push(t)),logger.info("Runtime management commands registered"),{runtimeManager:runtimeManagerProxy,teamPersistenceManager:teamPersistenceManagerProxy}}async function showChunkStatusQuickPick(t){var n,o;if(typeof((n=vscode==null?void 0:vscode.window)==null?void 0:n.showQuickPick)!="function"){diagLog("warn","QuickPick unavailable",{context:"runtimeCommands.showChunkStatus",isWeb:isWebRuntime});try{typeof((o=vscode==null?void 0:vscode.window)==null?void 0:o.showInformationMessage)=="function"&&vscode.window.showInformationMessage("Explorer Dates: This action is unavailable in this environment.")}catch{}return}let e=vscode.workspace.getConfiguration("explorerDates"),a=[{name:"Onboarding System",key:"enableOnboardingSystem",size:34},{name:"Analysis Commands",key:"enableAnalysisCommands",size:23},{name:"Export Reporting",key:"enableExportReporting",size:17},{name:"Extension API",key:"enableExtensionApi",size:15},{name:"Workspace Templates",key:"enableWorkspaceTemplates",size:14},{name:"Advanced Cache",key:"enableAdvancedCache",size:28},{name:"Workspace Intelligence",key:"enableWorkspaceIntelligence",size:31},{name:"Incremental Workers",key:"enableIncrementalWorkers",size:19}].map(s=>{let i=e.get(s.key,!0),l=i?"\u2705":"\u274C",c=i?"Enabled":"Disabled";return{label:`${l} ${s.name}`,description:`${s.size}KB | ${c}`,detail:getChunkDescription(s.key)}});a.unshift({label:"\u{1F4CA} Bundle Summary",description:`Total: ${t.currentBundleSize}KB`,detail:`Base bundle: 99KB + ${t.currentBundleSize-99}KB chunks`}),await vscode.window.showQuickPick(a,{placeHolder:"Current chunk status",ignoreFocusOut:!0})}function getChunkDescription(t){return{enableOnboardingSystem:"Welcome messages and guided setup",enableAnalysisCommands:"Advanced file analysis and metrics",enableExportReporting:"CSV/JSON export and reporting features",enableExtensionApi:"Public API for other extensions",enableWorkspaceTemplates:"Project templates and scaffolding",enableAdvancedCache:"Intelligent caching and performance",enableWorkspaceIntelligence:"Smart workspace analysis and insights",enableIncrementalWorkers:"Background processing and optimization"}[t]||"Explorer Dates feature chunk"}async function determineOptimalProfile(t){if(!t)return null;let{workspaceSize:e,isRemoteEnvironment:r}=t,a;e==="extreme"||e==="large"&&r?a="minimal":e==="large"||r?a="balanced":a="enterprise";let o=(await Promise.resolve().then(()=>J(Ee()))).PRESET_DEFINITIONS;return o[a]||o.balanced}module.exports={registerRuntimeCommands}});var ve=m((exports,module)=>{var FEATURE_FLAGS_GLOBAL_KEY="__explorerDatesFeatureFlags";function registerFeatureFlagsGlobal(t){if(t)try{typeof globalThis<"u"&&(globalThis[FEATURE_FLAGS_GLOBAL_KEY]=t)}catch{}}function loadFeatureFlagsFallback(){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function")return dynamicRequire("../featureFlags")}catch{}return null}function getFeatureFlagsGlobal(){try{if(typeof globalThis<"u"&&globalThis[FEATURE_FLAGS_GLOBAL_KEY])return globalThis[FEATURE_FLAGS_GLOBAL_KEY]}catch{}return loadFeatureFlagsFallback()}module.exports={FEATURE_FLAGS_GLOBAL_KEY,registerFeatureFlagsGlobal,getFeatureFlagsGlobal}});var Ke=m((ao,dr)=>{var Ce={onboarding:"src/chunks/onboarding-chunk",onboardingAssets:"src/chunks/onboarding-assets-chunk",reporting:"src/chunks/reporting-chunk",templates:"src/chunks/templates-chunk",analysis:"src/chunks/analysis-chunk",diagnostics:"src/chunks/diagnostics-chunk",extensionApi:"src/chunks/extension-api-chunk",advancedCache:"src/chunks/advancedCache-chunk",batchProcessor:"src/chunks/batchProcessor-chunk",decorationsAdvanced:"src/chunks/decorations-advanced",decorationsStatic:"src/chunks/decorations-static",workspaceIntelligence:"src/chunks/workspaceIntelligence",decorationLogic:"src/chunks/decoration-logic-chunk",decorationProvide:"src/chunks/decoration-provide-chunk",decorationHelpers:"src/chunks/decoration-helpers-chunk",decorationBatch:"src/chunks/decoration-batch-chunk",decorationWorkspaceIntel:"src/chunks/decoration-workspace-intel-chunk",decorationTelemetry:"src/chunks/decoration-telemetry-chunk",decorationRefresh:"src/chunks/decoration-refresh-chunk",decorationMemory:"src/chunks/decoration-memory-chunk",decorationPool:"src/chunks/decoration-pool-chunk",providerInit:"src/chunks/provider-init-chunk",fileDateProviderImpl:"src/chunks/file-date-provider-impl",fileDateProviderImplExport:"src/chunks/file-date-provider-impl-export",utilsShared:"src/chunks/utils-shared-chunk",incrementalWorkers:"src/chunks/incrementalWorkers",incrementalIndexer:"src/chunks/incrementalIndexer-chunk",uiAdapters:"src/chunks/ui-adapters",gitInsights:"src/chunks/gitInsights-chunk",smartWatcherFallback:"src/chunks/smartWatcherFallback-chunk",runtimeManagement:"src/chunks/runtime-management",runtimeManagementHeavy:"src/chunks/runtime-management-heavy",teamPersistence:"src/chunks/team-persistence-chunk",teamPersistenceUI:"src/chunks/team-persistence-ui-chunk",teamPersistenceLogic:"src/chunks/team-persistence-logic-chunk",settingsCoordinatorImpl:"src/chunks/settings-coordinator-impl-chunk",logger:"src/chunks/logger-chunk",loggerImpl:"src/chunks/logger-impl-chunk"};function ha(t){return Ce[t]||null}function wa(){return Object.keys(Ce)}function ba(t){let e={};for(let[r,a]of Object.entries(Ce))e[r]=()=>t(`./${a}`);return e}var ya=new Set(["gitInsights","reporting","templates","advancedCache","runtimeManagementHeavy","incrementalWorkers"]);dr.exports={CHUNK_MAP:Ce,WEB_EXCLUDED_CHUNKS:ya,getChunkSourcePath:ha,getAllChunkNames:wa,generateDevLoaderMap:ba}});var Se=m((exports,module)=>{var getLogger=()=>{try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let t=dynamicRequire("./chunks/logger-chunk");if(t&&typeof t.getLogger=="function")return getLogger=t.getLogger,getLogger()}}catch{}try{return getLogger=T().getLogger,getLogger()}catch{return getLogger=()=>{var t;return{debug:((t=()=>{})==null?void 0:t.bind(console))||console.log,info:(()=>{}).bind(console),warn:(()=>{}).bind(console),error:(()=>{}).bind(console)}},getLogger()}},{CHUNK_SIZES}=Ee(),{getChunkSourcePath,getAllChunkNames}=Ke(),{registerFeatureFlagsGlobal}=ve(),{isWebEnvironment}=te(),featureLogger=null,env=typeof process<"u"&&process.env?process.env:{},DEFAULT_CHUNK_TIMEOUT_MS=Number(env.EXPLORER_DATES_CHUNK_TIMEOUT||(env.NODE_ENV==="test"?1e3:5e3)),NETWORK_ERROR_CODES=new Set(["ENOTFOUND","ECONNRESET","ECONNREFUSED","EAI_AGAIN","ETIMEDOUT","EHOSTUNREACH"]),BUILT_CHUNK_CACHE=new Map,CHUNK_METHOD_ALIASES={reporting:"exportReporting",templates:"workspaceTemplates",analysis:"analysisCommands"},DEV_CHUNK_PATH_CACHE=new Map,LAST_FEATURE_FAILURES=new Map;function getDevChunkImportPath(t){if(DEV_CHUNK_PATH_CACHE.has(t))return DEV_CHUNK_PATH_CACHE.get(t);let e=getChunkSourcePath(t);if(!e)return DEV_CHUNK_PATH_CACHE.set(t,null),null;let r=e;return r.startsWith("src/")&&(r=r.slice(4)),r.startsWith("./")||(r=`./${r}`),DEV_CHUNK_PATH_CACHE.set(t,r),r}function resolveNodeDependencies(){if(nativeDepsResolved)return!!(nativePath&&nativeFs);if(nativeDepsResolved=!0,!isNodeLikeRuntime())return!1;try{nativePath=eval("require")("path"),nativeFs=eval("require")("fs")}catch{nativePath=null,nativeFs=null}return!!(nativePath&&nativeFs)}var nativeDepsResolved=!1,nativePath=null,nativeFs=null;function isWebRuntime(){try{return isWebEnvironment()?!0:typeof process<"u"&&!1}catch{return!1}}function isNodeLikeRuntime(){var t;return typeof process<"u"&&!!((t=process.versions)!=null&&t.node)&&!isWebRuntime()}function getChunkTimeoutMs(){return DEFAULT_CHUNK_TIMEOUT_MS>0?DEFAULT_CHUNK_TIMEOUT_MS:0}function logFeature(t,e,r){featureLogger||(featureLogger=getLogger());let a=featureLogger;typeof a[t]=="function"?a[t](e,r):a.info(e,r)}function logFeatureDisabled(t,e){logFeature("info","Feature disabled via configuration",{feature:t,savedKB:e&&CHUNK_SIZES[e]!==void 0?CHUNK_SIZES[e]:void 0})}function isLikelyNetworkIssue(t){if(!t)return!1;if(t.code&&NETWORK_ERROR_CODES.has(t.code))return!0;let e=(t.message||"").toLowerCase();return e.includes("network")||e.includes("fetch")||e.includes("timed out")}function runWithChunkTimeout(t,e){let r=getChunkTimeoutMs(),a=()=>{try{return Promise.resolve(t())}catch(n){return Promise.reject(n)}};return r?new Promise((n,o)=>{let s=!1,i=setTimeout(()=>{if(s)return;s=!0;let l=new Error(`Chunk "${e}" load timed out after ${r}ms`);l.code="CHUNK_TIMEOUT",o(l)},r);a().then(l=>{s||(s=!0,clearTimeout(i),n(l))}).catch(l=>{s||(s=!0,clearTimeout(i),o(l))})}):a()}function logResolverFailure(t,e){if(!e)return;let r={chunkName:t,error:e.message,code:e.code,networkIssue:isLikelyNetworkIssue(e),timedOut:e.code==="CHUNK_TIMEOUT"},a=r.networkIssue||r.timedOut?"warn":"error";logFeature(a,"Chunk resolver failed",r)}function tryLoadBuiltChunk(t){if(!t||!resolveNodeDependencies()||typeof(nativeFs==null?void 0:nativeFs.existsSync)!="function")return null;if(BUILT_CHUNK_CACHE.has(t))return BUILT_CHUNK_CACHE.get(t);let e=[];typeof __dirname=="string"&&nativePath&&(e.push(nativePath.join(__dirname,"chunks",`${t}.js`)),e.push(nativePath.join(__dirname,"..","dist","chunks",`${t}.js`)));for(let r of e)try{if(!r||!nativeFs.existsSync(r))continue;let a=require(r),n=(a==null?void 0:a.default)||a;return BUILT_CHUNK_CACHE.set(t,n||null),n&&logFeature("info","Loaded chunk via built artifact fallback",{chunkName:t,path:r}),n}catch(a){logFeature("warn","Built chunk fallback failed",{chunkName:t,path:r,error:a.message})}return BUILT_CHUNK_CACHE.set(t,null),null}function tryRequireDevChunk(t){if(isWebRuntime())return null;let e=getDevChunkImportPath(t);if(!e)return null;try{let r=require(e);return(r==null?void 0:r.default)||r}catch(r){(r.code!=="MODULE_NOT_FOUND"||typeof r.message=="string"&&!r.message.includes(e))&&logFeature("debug","Dev chunk require failed",{chunkName:t,importPath:e,error:r.message})}return null}function tryRequireLocalBuiltChunk(t){if(isWebRuntime())return null;let e=`./chunks/${t}`;try{let r=require(e);return(r==null?void 0:r.default)||r}catch(r){r.code==="MODULE_NOT_FOUND"||logFeature("debug","Local chunk require failed",{chunkName:t,importPath:e,error:r.message})}return null}function getSavingsKey(t){return t in CHUNK_SIZES?t:CHUNK_METHOD_ALIASES[t]||null}function announceChunkSavings(t){let e=getSavingsKey(t);if(!e)return;let r=CHUNK_SIZES[e];if(!r)return;let n=`\u{1F4BE} ${e===t||!t?e:`${e} (requested as "${t}")`} chunk unavailable - keeping the feature disabled is saving ~${r}KB`;logFeature("info","Chunk savings applied",{chunkName:e,requestedName:t,savedKB:r})}var getFeatureConfig=()=>{try{let e=require("vscode").workspace.getConfiguration("explorerDates"),r=isWebRuntime(),a=n=>r?!1:n;return{enableOnboarding:e.get("enableOnboardingSystem",!0),enableExportReporting:a(e.get("enableExportReporting",!0)),enableWorkspaceTemplates:a(e.get("enableWorkspaceTemplates",!0)),enableAnalysisCommands:e.get("enableAnalysisCommands",!0),enableAdvancedCache:a(e.get("enableAdvancedCache",!0)),enableWorkspaceIntelligence:a(e.get("enableWorkspaceIntelligence",!0)),enableIncrementalWorkers:a(e.get("enableIncrementalWorkers",!1)),enableGitInsights:a(e.get("enableGitInsights",!0)),enableExtensionApi:e.get("enableExtensionApi",!0)}}catch{let t=isWebRuntime(),e=r=>t?!1:r;return{enableOnboarding:!0,enableExportReporting:e(!0),enableWorkspaceTemplates:e(!0),enableAnalysisCommands:!0,enableAdvancedCache:e(!0),enableWorkspaceIntelligence:e(!0),enableIncrementalWorkers:e(!1),enableGitInsights:e(!0),enableExtensionApi:!0}}},featureLoaders=new Map,chunkResolver=null;function setFeatureChunkResolver(t){if(t&&typeof t!="function")throw new Error("Feature chunk resolver must be a function");chunkResolver=t||null}function registerFeatureLoader(t,e){if(typeof e!="function")throw new Error(`Feature loader for "${t}" must be a function`);featureLoaders.set(t,e)}function unregisterFeatureLoader(t){featureLoaders.delete(t)}function clearFeatureLoaders(){featureLoaders.clear()}async function loadFeatureModule(t){LAST_FEATURE_FAILURES.delete(t);let e=featureLoaders.get(t);if(!e&&chunkResolver&&(e=()=>chunkResolver(t)),!e)return logFeature("warn","No loader registered for feature",{feature:t}),null;try{return await runWithChunkTimeout(()=>e(),t)}catch(r){return LAST_FEATURE_FAILURES.set(t,r),logFeature("warn","Feature loader failed",{feature:t,error:r.message,code:r.code,networkIssue:isLikelyNetworkIssue(r)}),announceChunkSavings(t),null}}function getFeatureLoadFailure(t){return LAST_FEATURE_FAILURES.get(t)}function registerDefaultLoaders(){getAllChunkNames().forEach(e=>{featureLoaders.has(e)||registerFeatureLoader(e,createDefaultLoader(e))})}function createDefaultLoader(t){return async()=>{if(chunkResolver&&typeof chunkResolver=="function")try{let n=await runWithChunkTimeout(()=>chunkResolver(t),t);if(n)return n;logFeature("info","Chunk resolver returned no module",{chunkName:t})}catch(n){logResolverFailure(t,n)}let e=tryRequireDevChunk(t);if(e)return e;let r=tryRequireLocalBuiltChunk(t);if(r)return r;let a=tryLoadBuiltChunk(t);return a||(logFeature("warn","No built artifact available for chunk",{chunkName:t}),null)}}var featureFlags={async onboarding(){return getFeatureConfig().enableOnboarding?loadFeatureModule("onboarding"):(logFeatureDisabled("onboarding","onboarding"),null)},async exportReporting(){return getFeatureConfig().enableExportReporting?loadFeatureModule("reporting"):(logFeatureDisabled("exportReporting","exportReporting"),null)},async workspaceTemplates(){return getFeatureConfig().enableWorkspaceTemplates?loadFeatureModule("templates"):(logFeatureDisabled("workspaceTemplates","workspaceTemplates"),null)},async analysisCommands(){return getFeatureConfig().enableAnalysisCommands?loadFeatureModule("analysis"):(logFeatureDisabled("analysisCommands","analysisCommands"),null)},async advancedCache(){return getFeatureConfig().enableAdvancedCache?loadFeatureModule("advancedCache"):(logFeatureDisabled("advancedCache","advancedCache"),null)},async workspaceIntelligence(){return getFeatureConfig().enableWorkspaceIntelligence?loadFeatureModule("workspaceIntelligence"):(logFeatureDisabled("workspaceIntelligence","workspaceIntelligence"),null)},async incrementalWorkers(){return getFeatureConfig().enableIncrementalWorkers?loadFeatureModule("incrementalWorkers"):(logFeatureDisabled("incrementalWorkers","incrementalWorkers"),null)},async extensionApi(){return getFeatureConfig().enableExtensionApi?loadFeatureModule("extensionApi"):(logFeatureDisabled("extensionApi","extensionApi"),null)},async uiAdapters(){return loadFeatureModule("uiAdapters")},async batchProcessor(){return loadFeatureModule("batchProcessor")},async decorationsAdvanced(){return loadFeatureModule("decorationsAdvanced")},async decorationsProviderImpl(){return loadFeatureModule("decorationsProviderImpl")},async gitInsights(){return getFeatureConfig().enableGitInsights?loadFeatureModule("gitInsights"):(logFeatureDisabled("gitInsights","gitInsights"),null)},isEnabled(t){let e=getFeatureConfig();return{onboarding:e.enableOnboarding,exportReporting:e.enableExportReporting,workspaceTemplates:e.enableWorkspaceTemplates,analysisCommands:e.enableAnalysisCommands,advancedCache:e.enableAdvancedCache,workspaceIntelligence:e.enableWorkspaceIntelligence,incrementalWorkers:e.enableIncrementalWorkers,extensionApi:e.enableExtensionApi}[t]??!0},getEnabledFeatures(){let t=getFeatureConfig(),e=[];return t.enableOnboarding&&e.push("onboarding"),t.enableExportReporting&&e.push("exportReporting"),t.enableWorkspaceTemplates&&e.push("workspaceTemplates"),t.enableAnalysisCommands&&e.push("analysisCommands"),t.enableAdvancedCache&&e.push("advancedCache"),t.enableWorkspaceIntelligence&&e.push("workspaceIntelligence"),t.enableIncrementalWorkers&&e.push("incrementalWorkers"),t.enableExtensionApi&&e.push("extensionApi"),e},calculateSavings(){let t=getFeatureConfig(),e=0;return t.enableOnboarding||(e+=34),t.enableExportReporting||(e+=17),t.enableExtensionApi||(e+=15),t.enableWorkspaceTemplates||(e+=14),t.enableWorkspaceIntelligence||(e+=12),t.enableAnalysisCommands||(e+=8),t.enableAdvancedCache||(e+=5),e}};for(let[t,e]of Object.entries(CHUNK_METHOD_ALIASES))!featureFlags[t]&&typeof featureFlags[e]=="function"&&(featureFlags[t]=(...r)=>featureFlags[e](...r));function calculateSavings(t){t||(t=getFeatureConfig());let e=267,r=0;t.enableOnboarding||(r+=34),t.enableExportReporting||(r+=17),t.enableExtensionApi||(r+=15),t.enableWorkspaceTemplates||(r+=14),t.enableWorkspaceIntelligence||(r+=12),t.enableIncrementalWorkers||(r+=19),t.enableAnalysisCommands||(r+=8),t.enableAdvancedCache||(r+=5);let a=e-r,n=r>0?Math.round(r/e*100):0;return{baseSize:`${e}KB`,totalSavings:`${r}KB`,optimizedSize:`${a}KB`,percentage:n}}registerDefaultLoaders();var exportedFeatureFlags={...featureFlags,getFeatureConfig,calculateSavings,registerFeatureLoader,setFeatureChunkResolver,unregisterFeatureLoader,clearFeatureLoaders,loadFeatureModule,getFeatureLoadFailure,registerDefaultLoaders};registerFeatureFlagsGlobal(exportedFeatureFlags);module.exports=exportedFeatureFlags});var wr=m((oo,hr)=>{var De=require("vscode");function gr(){try{let t=De.workspace.workspaceFolders;return!t||t.length===0?!1:t.every(e=>e.uri.scheme!=="file")}catch{return!1}}function pr(){try{let t=De.workspace.workspaceFolders;return!t||t.length===0?!1:t.some(e=>e.uri.scheme!=="file")}catch{return!1}}function fr(){var t,e,r;try{return((r=(e=(t=De.workspace.workspaceFolders)==null?void 0:t[0])==null?void 0:e.uri)==null?void 0:r.scheme)||"file"}catch{return"file"}}function mr(){try{let t=De.workspace.workspaceFolders||[],e=new Set(t.map(r=>r.uri.scheme||"file"));return Array.from(e)}catch{return["file"]}}function Ea(t){if(!t)return!1;try{return typeof t=="string"?t.startsWith("file://")||!t.includes("://"):t.scheme==="file"||!t.scheme}catch{return!1}}function va(t){return!!t}function Ca(){let t=gr(),e=pr(),r=mr(),a=fr(),n="local",o="Local file system workspace";return t?(n="virtual",a==="vscode-vfs"?o="VS Code for Web (browser-based)":a==="github"?o="GitHub Repositories (remote)":o=`Virtual workspace (${a} scheme)`):e&&(n="mixed",o="Mixed local and virtual folders"),{type:n,description:o,primaryScheme:a,schemes:r,isVirtual:t,hasVirtual:e}}hr.exports={isVirtualWorkspace:gr,hasVirtualFolders:pr,getPrimaryWorkspaceScheme:fr,getWorkspaceSchemes:mr,canUseNodeFS:Ea,canUseVSCodeFS:va,getWorkspaceTypeInfo:Ca}});var Cr=m((so,vr)=>{var{normalizePath:Ve,getUriPath:Sa}=ce(),{getLogger:Da}=T(),ae=typeof process<"u"&&process.env?process.env:{},ka=Da(),oe=240,Be=255,br=/[\x00-\x1f\x7f<>:"|?*]/g,Ta=/[\x00-\x1f\x7f<>:"|?*]/,Aa=[/\.\./,/\.\.[\\/]/,/[\\/]\.\./,/^\.\.$/,/^\.\.[\\/]/,/[\\/]\.\.$/],yr=new Set(["CON","PRN","AUX","NUL","COM1","COM2","COM3","COM4","COM5","COM6","COM7","COM8","COM9","LPT1","LPT2","LPT3","LPT4","LPT5","LPT6","LPT7","LPT8","LPT9"]),Er=new Set([".exe",".scr",".bat",".cmd",".pif",".vbs",".js",".jar",".com",".msi",".dll",".dmg",".pkg",".deb",".rpm"]),xa=new Set([".js",".jsx",".ts",".tsx",".mjs",".cjs",".py",".rb",".rs",".go",".php",".java",".kt",".swift",".cs",".c",".cpp",".h",".hpp",".html",".css",".scss",".less",".json",".jsonc",".md",".mdx",".txt",".sh",".bash",".yml",".yaml"]),Ra=()=>ae.EXPLORER_DATES_TEST_MODE==="1"||ae.NODE_ENV==="test"||ae.VSCODE_TEST==="1"?"test":ae.EXPLORER_DATES_DEV_MODE==="1"||ae.NODE_ENV==="development"?"development":"production",X=class{static hasPathTraversal(e){let r=this.f(e);if(!r||typeof r!="string")return!1;let a=Ve(r);return Aa.some(n=>n.test(a))}static hasDangerousChars(e){let r=this.f(e);return!r||typeof r!="string"?!1:Ta.test(r)}static isWindowsReservedName(e){if(!e||typeof e!="string")return!1;let r=e.split(".")[0].toUpperCase();return yr.has(r)}static isSuspiciousExtension(e,r={}){let{workspaceContext:a=!0}=r;if(!e||typeof e!="string")return!1;let n=e.toLowerCase(),o=n.startsWith(".")?n:`.${n}`;return a&&xa.has(o)?!1:Er.has(o)}static isPathTooLong(e){let r=this.f(e);return!r||typeof r!="string"?!1:r.length>oe}static isFilenameTooLong(e){return!e||typeof e!="string"?!1:e.length>Be}static validatePath(e,r={}){let{allowSuspiciousExtensions:a=!1,allowWindowsReservedNames:n=!1,strictLength:o=!0,workspaceContext:s=!0}=r,i=this.f(e),l=[],c=[];if(!i||typeof i!="string")return{isValid:!1,path:i,issues:["Invalid or empty path"],warnings:[],isSafe:!1};this.hasPathTraversal(i)&&l.push("Path contains directory traversal attempts"),this.hasDangerousChars(i)&&l.push("Path contains dangerous characters"),o&&this.isPathTooLong(i)&&l.push(`Path exceeds maximum length (${oe})`);let u=i.split(/[/\\]/).pop()||"";o&&this.isFilenameTooLong(u)&&l.push(`Filename exceeds maximum length (${Be})`),!n&&this.isWindowsReservedName(u)&&c.push("Filename is a Windows reserved name");let d=u.includes(".")?u.split(".").pop():"";return!a&&this.isSuspiciousExtension(d,{workspaceContext:s})&&c.push("File extension is potentially suspicious"),{isValid:l.length===0,path:i,filename:u,extension:d,issues:l,warnings:c,isSafe:l.length===0&&c.length===0}}static sanitizePath(e,r={}){let{replacementChar:a="_",preserveExtension:n=!0}=r,o=this.f(e);if(!o||typeof o!="string")return"";o=o.replace(/\x00/g,"");let s=o.startsWith("/"),i=Ve(o).split("/").filter(Boolean),l=[];for(let c of i){if(c===".."){l.length>0&&l.pop();continue}c!=="."&&l.push(c)}if(o=(s?"/":"")+l.join("/"),o=o.replace(br,a),n){let c=o.split("/"),u=c[c.length-1];if(u&&this.isWindowsReservedName(u)){let d=u.split(".");d[0]=d[0]+"_safe",c[c.length-1]=d.join("."),o=c.join("/")}}return o.length>oe&&(o=o.substring(0,oe),ka.warn("Path truncated due to length:",o)),o}static isWithinBoundaries(e,r=[]){let a=this.f(e);if(!a||!Array.isArray(r)||r.length===0)return!1;let n=a.split("/").filter(Boolean),o=[];for(let i of n)i===".."?o.length>0&&o.pop():i!=="."&&o.push(i);let s="/"+o.join("/");return r.some(i=>{let l=Ve(i);return s.startsWith(l)})}static validateRegexPattern(e){if(!e||typeof e!="string")return{isValid:!1,issue:"Invalid pattern"};let r=[/\([^)]*\+[^)]*\)\+/,/\([^)]*\*[^)]*\)\*/,/\([^)]*\+[^)]*\)\*/,/\([^)]*\*[^)]*\)\+/,/\+.*\*|{\d+,}.*\*/,/\([^|]*\|[^)]*\)\*/];for(let a of r)if(a.test(e))return{isValid:!1,issue:"Pattern may cause catastrophic backtracking (ReDoS)"};try{return new RegExp(e),{isValid:!0}}catch(a){return{isValid:!1,issue:`Invalid regex syntax: ${a.message}`}}}static f(e){if(!e)return"";if(typeof e=="string")return e;try{return Sa(e)}catch{return String(e)}}},Ge=class{static validateFileUri(e,r=[]){if(!e||typeof e!="object")return{isValid:!1,issue:"Invalid URI object"};if(e.scheme!=="file"&&e.scheme!=="vscode-vfs")return{isValid:!1,issue:`Unsupported URI scheme: ${e.scheme}`};let a=X.validatePath(e);return a.isValid?r.length>0&&!X.isWithinBoundaries(e,r)?{isValid:!1,issue:"Path is outside allowed workspace boundaries"}:{isValid:!0,warnings:a.warnings}:{isValid:!1,issue:`Path validation failed: ${a.issues.join(", ")}`}}static validateExclusionPatterns(e){if(!Array.isArray(e))return{isValid:!1,issue:"Patterns must be an array"};let r=[],a=[];for(let n of e){if(typeof n!="string"){a.push(`Invalid pattern type: ${typeof n}`);continue}let o=n.replace(/\./g,"\\.").replace(/\*/g,".*").replace(/\?/g,"."),s=X.validateRegexPattern(o);r.push({pattern:n,isValid:s.isValid,issue:s.issue}),s.isValid||a.push(`Pattern "${n}": ${s.issue}`)}return{isValid:a.length===0,results:r,issues:a}}};vr.exports={SecurityValidator:X,SecureFileOperations:Ge,detectSecurityEnvironment:Ra,MAX_SAFE_PATH_LENGTH:oe,MAX_SAFE_FILENAME_LENGTH:Be,DANGEROUS_PATH_CHARS:br,WINDOWS_RESERVED_NAMES:Array.from(yr),SUSPICIOUS_EXTENSIONS:Array.from(Er)}});var Sr=m((exports,module)=>{var vscode=require("vscode"),getLogger=()=>{try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let t=dynamicRequire("./chunks/logger-chunk");if(t&&typeof t.getLogger=="function")return getLogger=t.getLogger,getLogger()}}catch{}try{return getLogger=T().getLogger,getLogger()}catch{return getLogger=()=>{var t;return{debug:((t=()=>{})==null?void 0:t.bind(console))||console.log,info:(()=>{}).bind(console),warn:(()=>{}).bind(console),error:(()=>{}).bind(console)}},getLogger()}},{fileSystem}=fe(),env=typeof process<"u"&&process.env?process.env:{},{formatFileSize}=Pe(),getFileName=p=>{try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let t=null;try{t=dynamicRequire("../chunks/utils-shared-chunk")}catch{}try{t||(t=dynamicRequire("./chunks/utils-shared-chunk"))}catch{}try{t||(t=dynamicRequire("./chunks/path-utils-chunk"))}catch{}if(t&&typeof t.getFileName=="function")return getFileName=t.getFileName,getFileName(p)}}catch{}try{let e=String(p||"").replace(/\\/g,"/"),r=e.lastIndexOf("/");return r===-1?e:e.substring(r+1)}catch{return"unknown"}},getExtension=p=>{try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let t=null;try{t=dynamicRequire("../chunks/utils-shared-chunk")}catch{}try{t||(t=dynamicRequire("./chunks/utils-shared-chunk"))}catch{}try{t||(t=dynamicRequire("./chunks/path-utils-chunk"))}catch{}if(t&&typeof t.getExtension=="function")return getExtension=t.getExtension,getExtension(p)}}catch{}try{let t=String(p||""),e=t.lastIndexOf(".");return e<=0?"":t.substring(e).toLowerCase()}catch{return""}},buildCacheKey=p=>{try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let t=null;try{t=dynamicRequire("../chunks/utils-shared-chunk")}catch{}try{t||(t=dynamicRequire("./chunks/utils-shared-chunk"))}catch{}try{t||(t=dynamicRequire("./chunks/path-utils-chunk"))}catch{}if(t&&typeof t.getCacheKey=="function")return buildCacheKey=t.getCacheKey,buildCacheKey(p)}}catch{}return String(p||"").toLowerCase().replace(/\\/g,"/")},normalizePath=input=>{try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let t=null;try{t=dynamicRequire("../chunks/utils-shared-chunk")}catch{}try{t||(t=dynamicRequire("./chunks/utils-shared-chunk"))}catch{}try{t||(t=dynamicRequire("./chunks/path-utils-chunk"))}catch{}if(t&&typeof t.normalizePath=="function")return normalizePath=t.normalizePath,normalizePath(input)}}catch{}return String(input||"").replace(/\\/g,"/")},getUriPath=(target="")=>{try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let t=null;try{t=dynamicRequire("../chunks/utils-shared-chunk")}catch{}try{t||(t=dynamicRequire("./chunks/utils-shared-chunk"))}catch{}try{t||(t=dynamicRequire("./chunks/path-utils-chunk"))}catch{}if(t&&typeof t.getUriPath=="function")return getUriPath=t.getUriPath,getUriPath(target)}}catch{}if(!target)return"";if(typeof target=="string")return target;if(typeof target.fsPath=="string"&&target.fsPath.length>0)return target.fsPath;if(typeof target.path=="string"&&target.path.length>0)return target.path;if(typeof target.toString=="function")try{return target.toString(!0)}catch{return target.toString()}return String(target)},{DEFAULT_CACHE_TIMEOUT,DEFAULT_MAX_CACHE_SIZE,GLOBAL_STATE_KEYS,DEFAULT_DECORATION_POOL_SIZE,DEFAULT_FLYWEIGHT_CACHE_SIZE,WORKSPACE_SCALE_EXTREME_THRESHOLD}=$(),{isWebEnvironment}=te(),{getSettingsCoordinator}=ne(),{SecurityValidator,SecureFileOperations,detectSecurityEnvironment}=Cr(),DISABLE_GIT_FEATURES=env.EXPLORER_DATES_DISABLE_GIT_FEATURES==="1",IS_WEB_ENV=isWebEnvironment()||env.VSCODE_WEB==="true",nodePath=null;try{IS_WEB_ENV||(nodePath=require("path"))}catch{nodePath=null}var pathCompat={basename:t=>{if(!t)return"";try{if(!IS_WEB_ENV)return require("path").basename(t)}catch{let e=t.replace(/\\/g,"/"),r=e.lastIndexOf("/");return r===-1?e:e.substring(r+1)}},dirname:t=>{if(!t)return".";try{if(!IS_WEB_ENV)return require("path").dirname(t)}catch{let e=t.replace(/\\/g,"/"),r=e.lastIndexOf("/");return r===-1?".":e.substring(0,r)}}};(async()=>{try{let e=await Se().decorationsStatic();e&&(e.basename&&e.dirname&&(pathCompat.basename=e.basename,pathCompat.dirname=e.dirname),e.describeFile&&(exports.$e=e.describeFile))}catch{}})();var CONFIG_DEFAULT_CACHE_TIMEOUT=3e4,CACHE_NAMESPACE_SEPARATOR="::",DEFAULT_DYNAMIC_WATCHER_LIMIT=Number(env.EXPLORER_DATES_MAX_DYNAMIC_WATCHERS||200),DEFAULT_WATCHER_INACTIVITY_MS=Number(env.EXPLORER_DATES_WATCHER_TTL_MS||600*1e3),DEFAULT_SMART_WATCHER_EXTENSIONS=["js","ts","json","md","py","java"],SMART_WATCHER_PRIORITY=new Map([["src",100],["lib",65],["test",30]]),WORKSPACE_SCAN_TIMEOUT_MS=Number(env.EXPLORER_DATES_WORKSPACE_SCAN_TIMEOUT||7e3),WORKSPACE_SCAN_TIMEOUT_FALLBACK_COUNT=WORKSPACE_SCALE_EXTREME_THRESHOLD,VIEWPORT_DEFAULT_WINDOW_MS=300*1e3,DEFAULT_VIEWPORT_HISTORY_LIMIT=Number(env.EXPLORER_DATES_VIEWPORT_HISTORY_LIMIT||400),FEATURE_LEVELS=["full","enhanced","standard","minimal"],DEFAULT_INDEXER_MAX_FILES=Math.max(100,Number(env.EXPLORER_DATES_INDEXER_MAX_FILES||2e3)),SECURITY_EXTRA_PATHS_ENV="EXPLORER_DATES_SECURITY_EXTRA_PATHS",DEFAULT_SECURITY_THROTTLE_MS=Number(env.EXPLORER_DATES_SECURITY_WARNING_THROTTLE_MS||5e3),SECURITY_WARNING_CACHE_LIMIT=Number(env.EXPLORER_DATES_SECURITY_WARNING_CACHE||500),DEFAULT_SECURITY_MAX_WARNINGS=Number(env.EXPLORER_DATES_SECURITY_MAX_WARNINGS_PER_FILE??1),describeFile=(t="")=>{try{let e=typeof t=="string"?t:getUriPath(t),r=normalizePath(e);return getFileName(r)||r||"unknown"}catch{return"unknown"}};(async()=>{try{let e=await Se().decorationsStatic();e&&typeof e.describeFile=="function"&&(describeFile=e.describeFile)}catch{}})();var LazyHierarchicalDecorationCache=class{constructor(){this.l=new Map}get size(){return this.l.size}get bucketCount(){return 0}clear(){this.l.clear()}get(e){return this.l.get(e)}set(e,r){this.l.set(e,r)}delete(e){return this.l.delete(e)}*entries(){yield*this.l.entries()}*keys(){yield*this.l.keys()}*values(){yield*this.l.values()}[Symbol.iterator](){return this.entries()}enforceLimit(){return 0}},FileDateDecorationProviderImpl=class{constructor(...args){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let t=dynamicRequire("./chunks/file-date-provider-impl");if(t&&typeof t.FileDateDecorationProviderImpl=="function")return new t.FileDateDecorationProviderImpl(...args);if(t&&typeof t.FileDateDecorationProvider=="function")return new t.FileDateDecorationProvider(...args)}}catch(t){}throw new Error("FileDateDecorationProvider implementation is not available in this environment")}},FileDateDecorationProvider=class{constructor(...args){let loaderError=null;try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function")try{let t=null;try{t=dynamicRequire("./chunks/file-date-provider-impl-export")}catch{}if(t){let r=t.FileDateDecorationProvider||t.FileDateDecorationProviderImpl||t.default;return typeof r=="function"?new r(...args):new FileDateDecorationProviderImpl(...args)}t=dynamicRequire("./chunks/file-date-provider-impl");let e=t&&(t.FileDateDecorationProvider||t.FileDateDecorationProviderImpl||t.default);if(typeof e=="function")return new e(...args)}catch(t){loaderError=t}try{let t=null;try{t=require.resolve("./chunks/file-date-provider-impl-export",{paths:[__dirname]})}catch{}t||(t=require.resolve("./chunks/file-date-provider-impl",{paths:[__dirname]}));let e=require(t),r=e&&(e.FileDateDecorationProvider||e.FileDateDecorationProviderImpl||e.default);if(t&&t.endsWith("file-date-provider-impl-export.js")&&!r)return new FileDateDecorationProviderImpl(...args);if(typeof r=="function")return new r(...args)}catch(t){loaderError=loaderError||t}}catch(t){loaderError=loaderError||t}if(loaderError&&loaderError.message){let t=`FileDateDecorationProvider implementation is unavailable: ${loaderError.message}`;throw new Error(t)}throw new Error("FileDateDecorationProvider implementation is unavailable")}};module.exports={FileDateDecorationProvider,FileDateDecorationProviderImpl}});var vscode=require("vscode"),env=typeof process<"u"&&process.env?process.env:{},{getLogger}=T(),l10n;async function ensureLocalization(){return l10n||(l10n=(await Promise.resolve().then(()=>J(ee()))).getLocalization()),l10n}var{fileSystem}=fe(),{registerCoreCommands}=qt(),{registerOnboardingCommands}=zt(),{registerMigrationCommands}=Yt(),{commandCancellation,commandEmpty,commandSuccess,isCommandOutcome,OUTCOME_CATEGORIES}=We(),{initializeTemplateStore}=Zt(),{SettingsMigrationManager}=er(),{ExtensionError,ERROR_CODES,ChunkLoadError,handleChunkFailure}=Re(),{isWebDiagnosticsEnabled,diagLog,recordCommandRegistration,recordCommandInvocation,recordCommandResult,recordChunkEvent,recordProviderEvent,getWebDiagnosticsState}=j(),ensureDate;try{let t=ge();t&&(ensureDate=t.ensureDate)}catch{}ensureDate||(ensureDate=_e().ensureDate);var{WEB_CHUNK_GLOBAL_KEY,LEGACY_WEB_CHUNK_GLOBAL_KEY}=$(),isWebEnvironment=()=>{var t,e;try{typeof process<"u"}catch{}try{return((t=vscode==null?void 0:vscode.env)==null?void 0:t.uiKind)===((e=vscode==null?void 0:vscode.UIKind)==null?void 0:e.Web)}catch{return!1}};if(isWebEnvironment()&&typeof globalThis<"u"&&!globalThis.O)try{globalThis.O=He()}catch{}var nodeFs=null,nodePath=null,webTextDecoder=typeof TextDecoder=="function"?new TextDecoder("utf-8"):null;if(!isWebEnvironment()){try{nodeFs=require("fs")}catch{nodeFs=null}try{nodePath=require("path")}catch{nodePath=null}}var AUTO_SUGGESTION_DELAY_MS=3e3;function getCriticalChunks(){return isWebEnvironment()?[]:["incrementalWorkers"]}function resolveDefaultDistPath(){return!nodePath||typeof nodePath.basename!="function"||typeof nodePath.join!="function"?null:nodePath.basename(__dirname)==="dist"?__dirname:nodePath.join(__dirname,"dist")}var DEFAULT_DIST_PATH=resolveDefaultDistPath(),fileDateProvider,logger,runtimeAutoSuggestionTimer=null,activeRuntimeManager=null,activeTeamPersistenceManager=null,_warnedWorkspaces=new Set,ANALYSIS_WARNING_WORKSPACE_KEY="explorerDates.analysisCommandsDisabledWarningByWorkspace";if(typeof globalThis<"u"&&!globalThis.k)try{globalThis.k=new WeakMap}catch{globalThis.k=null}function getActiveLogger(){return logger||(logger=getLogger()),logger}function getWorkspaceId(){var e,r;let t=(e=vscode.workspace.workspaceFolders)==null?void 0:e[0];return((r=t==null?void 0:t.uri)==null?void 0:r.toString())||"global"}function hasShownAnalysisWarning(t){var o;let e=getWorkspaceId(),r=(o=t==null?void 0:t.globalState)!=null&&o.get?t.globalState.get(ANALYSIS_WARNING_WORKSPACE_KEY,{}):{},a=typeof globalThis<"u"?globalThis.k:null,n=a&&a.has(t)?a.get(t):{};return!!r[e]||!!n[e]||_warnedWorkspaces.has(e)}async function setAnalysisWarningShown(t,e){var o;let r=getWorkspaceId(),a=(o=t==null?void 0:t.globalState)!=null&&o.get?t.globalState.get(ANALYSIS_WARNING_WORKSPACE_KEY,{}):{};a[r]=e,e?_warnedWorkspaces.add(r):_warnedWorkspaces.delete(r);let n=typeof globalThis<"u"?globalThis.k:null;if(n&&t)try{n.set(t,a)}catch{}await t.globalState.update(ANALYSIS_WARNING_WORKSPACE_KEY,a)}var{registerFeatureFlagsGlobal}=ve(),featureFlagsModule=Se();registerFeatureFlagsGlobal(featureFlagsModule);var featureFlags=featureFlagsModule,{setFeatureChunkResolver}=featureFlagsModule,{CHUNK_MAP,generateDevLoaderMap}=Ke(),sourceChunkLoader=(()=>{if(typeof process>"u"||env.NODE_ENV==="production")return null;try{let localRequire=eval("require");return t=>{var e;try{let r=generateDevLoaderMap(localRequire),a=(e=r[t])==null?void 0:e.call(r);return(a==null?void 0:a.default)||a||null}catch(r){let a=new ExtensionError(ERROR_CODES.CHUNK_LOAD_FAILED,`Source chunk fallback failed for ${t}`,{chunkName:t,source:"development",error:r.message});return getActiveLogger().warn(a.message,a.context),null}}}catch{return null}})(),chunkLoader={loadedChunks:new Map,distPath:DEFAULT_DIST_PATH,extensionUri:null,webChunkPromises:new Map,ee:new Set,N:new Set,c:null,initialize(t){nodePath&&(typeof(t==null?void 0:t.asAbsolutePath)=="function"?this.distPath=t.asAbsolutePath("dist"):t!=null&&t.extensionPath&&(this.distPath=nodePath.join(t.extensionPath,"dist"))),t!=null&&t.extensionUri&&(this.extensionUri=t.extensionUri),this.c||(this.c=this.Fe())},async loadChunk(t){var e;if(this.loadedChunks.has(t))return this.loadedChunks.get(t);try{isWebDiagnosticsEnabled()&&recordChunkEvent(t,"load:start");let r=isWebEnvironment()?null:this._e(t);if(isWebEnvironment()){let a=((e=this.$())==null?void 0:e[t])??null;return a&&(this.loadedChunks.set(t,a),getActiveLogger().info("Chunk loaded",{chunkName:t,target:"web"}),isWebDiagnosticsEnabled()&&recordChunkEvent(t,"load:success")),a}return r&&(this.loadedChunks.set(t,r),getActiveLogger().info("Chunk loaded",{chunkName:t,target:"node"}),isWebDiagnosticsEnabled()&&recordChunkEvent(t,"load:success")),r}catch(r){isWebDiagnosticsEnabled()&&recordChunkEvent(t,"load:failure",r);let a=r instanceof ExtensionError?r:new ExtensionError(ERROR_CODES.CHUNK_LOAD_FAILED,`Failed to load chunk ${t}`,{chunkName:t,target:isWebEnvironment()?"web":"node",error:r==null?void 0:r.message});return getActiveLogger().warn(a.message,a.context),null}},assertChunkArtifacts(t=[]){if(!nodeFs||!this.distPath||!Array.isArray(t)||t.length===0)return;let e=t.filter(r=>!this.Pe(r));if(e.length>0){let r=new ChunkLoadError(e.join(", "),"missing built artifacts",{recoverable:!1,context:{chunkNames:e,distPath:this.distPath,fix:'Run "npm run package-chunks" before packaging or testing.'}});throw handleChunkFailure(e.join(", "),r,{userFacing:!0}),r}},Pe(t){if(!nodeFs||!this.distPath)return!0;let e=nodePath.join(this.distPath,"chunks",`${t}.js`),r=nodePath.join(this.distPath,"web-chunks",`${t}.js`);return isWebEnvironment()?nodeFs.existsSync(r):nodeFs.existsSync(e)},_e(t){if(nodeFs&&nodePath&&this.distPath){let e=nodePath.join(this.distPath,"chunks",`${t}.js`);if(nodeFs.existsSync(e))try{let r=require(e);return r!=null&&r.default&&(r=r.default),r}catch(r){let a=new ExtensionError(ERROR_CODES.CHUNK_LOAD_FAILED,`Failed to require built chunk ${t}`,{chunkName:t,path:e,error:r.message});getActiveLogger().warn(a.message,a.context)}}return sourceChunkLoader?sourceChunkLoader(t):(this.te(t),null)},async T(t){if(!this.extensionUri){let e=new ExtensionError(ERROR_CODES.CHUNK_LOAD_FAILED,"Missing extensionUri for web chunk loading",{chunkName:t});return getActiveLogger().warn(e.message,e.context),null}if(!this.webChunkPromises.has(t)){let e=(async()=>{await this.Me(t);let r=this.$(),a=r==null?void 0:r[t];if(!a)throw new Error(`Web chunk ${t} failed to register`);return a})();this.webChunkPromises.set(t,e)}return this.webChunkPromises.get(t)},async Me(t){var r;if(this.ee.has(t))return;let e=vscode.Uri.joinPath(this.extensionUri,"dist","web-chunks",`${t}.js`);if(!((r=vscode.workspace)!=null&&r.fs)||!webTextDecoder)throw new Error("Workspace FS or TextDecoder unavailable for web chunk loading");try{let a=await vscode.workspace.fs.readFile(e),n=webTextDecoder.decode(a),o=i=>this.We(i);new Function("require",n).call(globalThis,o),this.re(),this.ee.add(t)}catch(a){throw this.te(t),a}},$(){let t=globalThis[WEB_CHUNK_GLOBAL_KEY]||globalThis[LEGACY_WEB_CHUNK_GLOBAL_KEY]||null;return t&&this.re(),t},re(){let t=globalThis[WEB_CHUNK_GLOBAL_KEY]||globalThis[LEGACY_WEB_CHUNK_GLOBAL_KEY]||{};globalThis[WEB_CHUNK_GLOBAL_KEY]||(globalThis[WEB_CHUNK_GLOBAL_KEY]=t),globalThis[LEGACY_WEB_CHUNK_GLOBAL_KEY]||(globalThis[LEGACY_WEB_CHUNK_GLOBAL_KEY]=t)},Fe(){let t=new Map,e=Object.entries(CHUNK_MAP||{});for(let[r,a]of e){let n=String(a||"").split("/").pop();n&&t.set(n,r)}return t},Ie(t){if(!t)return null;let e=String(t).replace(/^[.\\/]+/,"").replace(/\.js$/,"");if(this.c&&this.c.has(e))return this.c.get(e);let r=e.split("/").pop();return this.c&&this.c.has(r)?this.c.get(r):null},We(t){if(t==="vscode")return vscode;let e=this.$();if(!e)throw new Error(`Web require failed: registry unavailable for ${t}`);let r=this.Ie(t);if(r&&e[r])return e[r];if(e[t])return e[t];if((t==="../commands/runtimeCommands"||t==="./commands/runtimeCommands")&&typeof globalThis<"u"&&globalThis.O)return globalThis.O;throw new Error(`Web require unsupported: ${t}`)},te(t){if(this.N.has(t))return;this.N.add(t);let e=new ChunkLoadError(t,"artifact unavailable",{recoverable:!1,context:{chunkName:t,distPath:this.distPath,fix:'Run "npm run package-chunks" to rebuild runtime chunks.'}});getActiveLogger().error(e.message,e),handleChunkFailure(t,e,{userFacing:!1})}},dynamicImports={async loadOnboarding(t){let e=await featureFlags.onboarding();return e?typeof e.createOnboardingManager=="function"?e.createOnboardingManager(t):e.OnboardingManager?new e.OnboardingManager(t):null:null},async loadExportReporting(t){let e=await featureFlags.exportReporting();return typeof(e==null?void 0:e.createExportReportingManager)=="function"?e.createExportReportingManager(t):null},async loadWorkspaceTemplates(t){let e=await featureFlags.workspaceTemplates();return typeof(e==null?void 0:e.createWorkspaceTemplatesManager)=="function"?e.createWorkspaceTemplatesManager(t):e!=null&&e.WorkspaceTemplatesManager?new e.WorkspaceTemplatesManager(t):null},async loadAnalysisCommands(){return featureFlags.analysisCommands()},async loadExtensionApi(t){let e=await featureFlags.extensionApi();if(!e)return null;if(typeof e=="function"){if(e.name==="createExtensionApiManager")return e(t);try{return new e}catch{return null}}else{if(typeof e.createExtensionApiManager=="function")return e.createExtensionApiManager(t);if(e.ExtensionApiManager)return new e.ExtensionApiManager}return null}},onboardingManagerPromise=null,workspaceTemplatesManagerPromise=null,exportReportingManagerPromise=null,extensionApiManagerPromise=null;function shouldPrimeOnboardingChunk(t){var o,s;if(!(t!=null&&t.globalState))return!0;let e=t.globalState.get("explorerDates.hasShownWelcome",!1),r=t.globalState.get("explorerDates.hasCompletedSetup",!1),a=t.globalState.get("explorerDates.onboardingVersion","0.0.0"),n=((s=(o=t.extension)==null?void 0:o.packageJSON)==null?void 0:s.version)||"0.0.0";return!e||!r?!0:isMajorVersionUpdate(a,n)}function isMajorVersionUpdate(t,e){let r=o=>{let[s="0"]=(o||"").split("."),i=Number.parseInt(s,10);return Number.isFinite(i)?i:0},a=r(t);return r(e)>a}function ensureOnboardingManager(t){return onboardingManagerPromise||(onboardingManagerPromise=dynamicImports.loadOnboarding(t)),onboardingManagerPromise}function ensureWorkspaceTemplatesManager(t){return workspaceTemplatesManagerPromise||(workspaceTemplatesManagerPromise=dynamicImports.loadWorkspaceTemplates(t)),workspaceTemplatesManagerPromise}function ensureExportReportingManager(t){return exportReportingManagerPromise||(exportReportingManagerPromise=dynamicImports.loadExportReporting(t)),exportReportingManagerPromise}function ensureExtensionApiManager(t){return extensionApiManagerPromise||(extensionApiManagerPromise=dynamicImports.loadExtensionApi(t)),extensionApiManagerPromise}function raiseChunkUnavailable(t,e){let r=`${t} is not available because the required "${e}" runtime chunk failed to load. Reinstall Explorer Dates or run "npm run package-chunks" and reload VS Code.`;throw getActiveLogger().warn(r,{chunkName:e}),vscode.window.showErrorMessage(r),new ChunkLoadError(e,"chunk missing at runtime",{recoverable:!1,context:{featureLabel:t}})}function initializeStatusBar(t){let e=vscode.window.createStatusBarItem(vscode.StatusBarAlignment.Right,100);e.command="explorerDates.showFileDetails",e.tooltip="Click to show detailed file information";let r=async()=>{try{let o=vscode.window.activeTextEditor;if(!o){e.hide();return}let s=o.document.uri;if(s.scheme!=="file"){e.hide();return}let i=await fileSystem.stat(s),l=ensureDate(i.mtime),c=fileDateProvider.qe(l,"smart"),u=fileDateProvider.Ue(i.size,"auto");e.text=`$(clock) ${c} $(file) ${u}`,e.show()}catch(o){e.hide(),logger.debug("Failed to update status bar",o)}},a=vscode.window.onDidChangeActiveTextEditor(r),n=vscode.window.onDidChangeTextEditorSelection(r);return r(),t.subscriptions.push(e,a,n),e}async function activate(context){var t,e,r,a;try{isWebDiagnosticsEnabled()&&diagLog("info","Activation start",{uiKind:(t=vscode==null?void 0:vscode.env)==null?void 0:t.uiKind,isWeb:isWebEnvironment()}),logger=getLogger(),l10n=await ensureLocalization(),context.subscriptions.push(l10n),initializeTemplateStore(context),chunkLoader.initialize(context),chunkLoader.assertChunkArtifacts(getCriticalChunks()),setFeatureChunkResolver(n=>isWebEnvironment()?chunkLoader.T(n):chunkLoader.loadChunk(n));let remoteName=((e=vscode==null?void 0:vscode.env)==null?void 0:e.remoteName)||null,uiKind=((r=vscode==null?void 0:vscode.env)==null?void 0:r.uiKind)||null,isWebRuntime=uiKind===vscode.UIKind.Web,workspaceSchemes=(vscode.workspace.workspaceFolders||[]).map(n=>{var o;return(o=n==null?void 0:n.uri)==null?void 0:o.scheme}).filter(Boolean);logger.info("Explorer Dates: Extension activated"),logger.info("Explorer Dates: Activation context",{uiKind,remoteName,isWeb:isWebRuntime,workspaceSchemes}),(async()=>{try{let{getFeatureFlagsGlobal:n}=ve(),o=n(),s=o?await o.loadFeatureModule("loggerImpl"):null;if(s&&typeof s.getOrCreateLogger=="function")try{let i=s.getOrCreateLogger(),l="__explorerDatesLogger";i&&(typeof global<"u"?global[l]=i:typeof globalThis<"u"&&(globalThis[l]=i))}catch{}}catch{}})();let settingsMigrationManager=new SettingsMigrationManager;try{await settingsMigrationManager.migrateAllSettings(context)}catch(n){logger.warn("Settings migration encountered issues:",n)}let isWebUi=vscode.env.uiKind===vscode.UIKind.Web;if(isWebUi)logger.info("Skipping settings auto-organization in web runtime");else try{await settingsMigrationManager.autoOrganizeSettingsIfNeeded(context,{trigger:"activation",silent:!0})}catch(n){logger.warn("Settings organization encountered issues:",n)}let isWeb=vscode.env.uiKind===vscode.UIKind.Web,featureConfig=vscode.workspace.getConfiguration("explorerDates"),reportingEnabled=featureConfig.get("enableExportReporting",featureConfig.get("enableReporting",!0)),apiEnabled=featureConfig.get("enableExtensionApi",!0),onboardingEnabled=featureConfig.get("enableOnboardingSystem",!0),analysisEnabled=featureConfig.get("enableAnalysisCommands",!0),updateCommandContexts=async()=>{let n=vscode.workspace.getConfiguration("explorerDates"),o=n.get("enableExportReporting",n.get("enableReporting",!0)),s=n.get("enableWorkspaceTemplates",!0),i=n.get("enableWorkspaceIntelligence",!0),l=n.get("enableAnalysisCommands",!0),c=n.get("enableExtensionApi",!0),u=n.get("enableGitInsights",!0)&&!isWeb,d=typeof vscode.workspace.isTrusted<"u"?vscode.workspace.isTrusted:!0;await vscode.commands.executeCommand("setContext","explorerDates.isWeb",isWeb),await vscode.commands.executeCommand("setContext","explorerDates.isWorkspaceTrusted",d),await vscode.commands.executeCommand("setContext","explorerDates.gitFeaturesAvailable",!isWeb),await vscode.commands.executeCommand("setContext","explorerDates.gitCommandsAvailable",u),await vscode.commands.executeCommand("setContext","explorerDates.exportReportingAvailable",o&&!isWeb),await vscode.commands.executeCommand("setContext","explorerDates.workspaceTemplatesAvailable",s&&!isWeb),await vscode.commands.executeCommand("setContext","explorerDates.workspaceIntelligenceAvailable",i&&!isWeb),await vscode.commands.executeCommand("setContext","explorerDates.analysisCommandsAvailable",l&&!isWeb),await vscode.commands.executeCommand("setContext","explorerDates.extensionApiAvailable",c),await vscode.commands.executeCommand("setContext","explorerDates.runtimeCommandsAvailable",!isWeb)};await updateCommandContexts(),context.subscriptions.push(vscode.workspace.onDidChangeConfiguration(n=>{n.affectsConfiguration("explorerDates")&&updateCommandContexts().catch(o=>{logger.warn("Failed to update command contexts",o)})})),typeof vscode.workspace.onDidGrantWorkspaceTrust=="function"&&context.subscriptions.push(vscode.workspace.onDidGrantWorkspaceTrust(()=>{updateCommandContexts().catch(n=>{logger.warn("Failed to update command contexts after trust change",n)})}));let{isVirtualWorkspace}=wr(),isVirtual=isVirtualWorkspace();await vscode.commands.executeCommand("setContext","explorerDates.isVirtualWorkspace",isVirtual);let providerChunk=null;try{if(providerChunk=await(isWebEnvironment()?chunkLoader.T("providerInit"):chunkLoader.loadChunk("providerInit")),providerChunk&&typeof providerChunk.createFileDateDecorationProvider=="function"){if(isWebDiagnosticsEnabled()&&diagLog("info","Provider factory located",{source:"providerInit"}),isWeb)try{await chunkLoader.T("fileDateProviderImplExport"),isWebDiagnosticsEnabled()&&diagLog("info","Provider impl export chunk loaded",{chunkName:"fileDateProviderImplExport"}),await chunkLoader.T("fileDateProviderImpl"),isWebDiagnosticsEnabled()&&diagLog("info","Provider impl chunk loaded",{chunkName:"fileDateProviderImpl"})}catch(o){logger.warn("Failed to load provider impl chunk in web runtime",(o==null?void 0:o.message)||o),isWebDiagnosticsEnabled()&&diagLog("warn","Provider impl chunk load failed",{error:(o==null?void 0:o.message)||String(o)})}let n=providerChunk.createFileDateDecorationProvider(context);n&&typeof n.createFileDateDecorationProvider=="function"&&(fileDateProvider=n.createFileDateDecorationProvider(),isWebDiagnosticsEnabled()&&recordProviderEvent("created",{source:"providerInit"}))}}catch(n){logger.warn("Failed to load fileDateProvider chunk, falling back to local provider",(n==null?void 0:n.message)||n),isWebDiagnosticsEnabled()&&diagLog("warn","Provider chunk load failed",{error:(n==null?void 0:n.message)||String(n)})}if(!fileDateProvider)try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(!isWebEnvironment()&&typeof dynamicRequire=="function"){let n=dynamicRequire("./src/fileDateDecorationProvider"),o=n&&(n.FileDateDecorationProvider||n.default||n);fileDateProvider=new o,isWebDiagnosticsEnabled()&&recordProviderEvent("created",{source:"local"})}else if(isWebEnvironment())logger.warn("No FileDateDecorationProvider available for web runtime; some features may be disabled."),isWebDiagnosticsEnabled()&&diagLog("warn","Provider unavailable in web runtime");else{let{FileDateDecorationProvider:n}=Sr();fileDateProvider=new n,isWebDiagnosticsEnabled()&&recordProviderEvent("created",{source:"local"})}}catch(n){throw logger.error("Failed to create FileDateDecorationProvider",n),isWebDiagnosticsEnabled()&&diagLog("error","Provider creation failed",{error:n==null?void 0:n.message,stack:n==null?void 0:n.stack}),n}if(fileDateProvider){providerChunk&&typeof providerChunk.hydrateProviderOptionalSystems=="function"&&((async()=>{try{await providerChunk.hydrateProviderOptionalSystems(fileDateProvider)}catch(n){logger.debug("provider-init hydration failed",n)}})(),isWebDiagnosticsEnabled()&&recordProviderEvent("hydrated",{source:"providerInit"}));try{let n=vscode.window.registerFileDecorationProvider(fileDateProvider);context.subscriptions.push(n),logger.info("Explorer Dates: File decoration provider registered",{isWeb:isWebRuntime,remoteName})}catch(n){logger.error("Explorer Dates: Failed to register FileDecorationProvider",n)}context.subscriptions.push(fileDateProvider),context.subscriptions.push(logger),isWebDiagnosticsEnabled()&&recordProviderEvent("registered");try{await fileDateProvider.initializeAdvancedSystems(context)}catch(n){logger.debug("FileDateDecorationProvider.initializeAdvancedSystems failed",n)}try{await fileDateProvider.checkWorkspaceSize()}catch(n){logger.debug("FileDateDecorationProvider.checkWorkspaceSize failed",n)}}else logger.warn("FileDateDecorationProvider unavailable \u2014 continuing without file decorations."),isWebDiagnosticsEnabled()&&diagLog("warn","Provider unavailable for decorations");let extensionApiManager=null,exportReportingRegistered=!1,getExtensionApiManager=async()=>{if(!apiEnabled)throw new Error("Extension API is disabled via explorerDates.enableExtensionApi");return extensionApiManager||(extensionApiManager=await ensureExtensionApiManager(context),extensionApiManager&&context.subscriptions&&context.subscriptions.push(extensionApiManager)),extensionApiManager},getExportReportingManager=async()=>{if(!reportingEnabled)throw new Error("Reporting is disabled via explorerDates.enableExportReporting");if(!exportReportingRegistered){let s=vscode.workspace.getConfiguration("explorerDates").get("performanceMode",!1),i=env.EXPLORER_DATES_LIGHTWEIGHT_MODE==="1";(s||i)&&logger.warn("Initializing Export Reporting Manager while performance/lightweight mode is active; activity tracking will remain suppressed.")}let n=await ensureExportReportingManager(context);return n&&!exportReportingRegistered&&(context.subscriptions.push(n),exportReportingRegistered=!0),n},cachedApi=null,apiPromise=null,apiFactory=async()=>(apiPromise||(apiPromise=(async()=>{let n=await getExtensionApiManager();return cachedApi=n?n.getApi():null,cachedApi})()),apiPromise);apiEnabled||logger.info("Explorer Dates API exports disabled via explorerDates.enableExtensionApi");let showWelcomeOnStartup=featureConfig.get("showWelcomeOnStartup",!0);if(onboardingEnabled&&showWelcomeOnStartup)try{if(shouldPrimeOnboardingChunk(context)){let n=await ensureOnboardingManager(context);n&&await n.shouldShowOnboarding()&&setTimeout(()=>{try{n.showWelcomeMessage()}catch(o){logger.warn("Onboarding showWelcomeMessage() failed (non-fatal):",o)}},5e3)}else logger.debug("Skipping onboarding preload \u2013 user already completed onboarding for this major version.")}catch(n){logger.warn("Onboarding preload failed (non-fatal):",n)}registerCoreCommands({context,fileDateProvider,logger,l10n}),recordCommandRegistration("explorerDates.runWebDiagnostics");let runWebDiagnosticsCommand=vscode.commands.registerCommand("explorerDates.runWebDiagnostics",async()=>{var n,o,s,i;recordCommandInvocation("explorerDates.runWebDiagnostics");try{let l=getWebDiagnosticsState(),c=[];try{c=await vscode.commands.getCommands(!0)}catch(f){diagLog("warn","Failed to query command registry",{error:f==null?void 0:f.message})}let u=(((s=(o=(n=context==null?void 0:context.extension)==null?void 0:n.packageJSON)==null?void 0:o.contributes)==null?void 0:s.commands)||[]).map(f=>f.command),d=u.filter(f=>!c.includes(f)),h={uiKind:(i=vscode==null?void 0:vscode.env)==null?void 0:i.uiKind,isWeb:isWebEnvironment(),registeredCount:c.length,contributedCount:u.length,missingCommands:d.slice(0,20),provider:l.provider,chunkLoads:l.chunkLoads.slice(-10)};diagLog("info","Web diagnostics summary",h);try{let f=d.length?`Web diagnostics: ${d.length} missing commands`:"Web diagnostics: commands registered";vscode.window.showInformationMessage(f)}catch{}recordCommandResult("explorerDates.runWebDiagnostics",!0)}catch(l){throw recordCommandResult("explorerDates.runWebDiagnostics",!1,l),l}});context.subscriptions.push(runWebDiagnosticsCommand);let registerAnalysisCommandsLazy=async()=>{let n=await dynamicImports.loadAnalysisCommands();if(!n){let s=typeof featureFlags.getFeatureLoadFailure=="function"?featureFlags.getFeatureLoadFailure("analysis"):null;if(s)throw s;let l=Array.from((chunkLoader==null?void 0:chunkLoader.N)||[]).includes("analysis")?'Analysis chunk is missing. Rebuild with "npm run package-bundle" and reload.':"Analysis bundle did not load. Rebuild the extension and reload.";return vscode.window.showWarningMessage(`Analysis commands unavailable. ${l}`),null}let o=n.registerAnalysisCommands||n;return typeof o!="function"?(vscode.window.showWarningMessage("Analysis commands registration function not found."),null):o({context,fileDateProvider,logger,chunkLoader})};if(analysisEnabled){try{await registerAnalysisCommandsLazy(),logger.info("Analysis commands registered successfully")}catch(n){logger.warn("Failed to register analysis commands:",n),vscode.window.showWarningMessage("Explorer Dates analysis commands failed to initialize. Check build artifacts for the analysis chunk and reload.")}await setAnalysisWarningShown(context,!1)}else try{let n=hasShownAnalysisWarning(context);if(getActiveLogger().debug("analysisWarningState",{alreadyWarned:n,map:context.globalState.get(ANALYSIS_WARNING_WORKSPACE_KEY,{}),warnedSet:Array.from(_warnedWorkspaces)}),!n){if(env.EXPLORER_DATES_TEST_MODE==="1")try{await setAnalysisWarningShown(context,!0)}catch(o){logger.debug("Failed to pre-mark analysis warning in test mode",(o==null?void 0:o.message)||o)}vscode.window.showInformationMessage("Explorer Dates analysis commands are disabled. Shortcuts like Ctrl+Shift+M/H/A will not work until you enable explorerDates.enableAnalysisCommands.","Enable Now","Dismiss").then(async o=>{var i;if((env.EXPLORER_DATES_TEST_MODE==="1"?"Dismiss":o)===l10n.getString("analysisEnableNow"))try{let l=featureConfig.inspect("enableAnalysisCommands"),c=vscode.workspace.workspaceFolders||[],u=!1;for(let d of c){let h=vscode.workspace.getConfiguration("explorerDates",d.uri),f=h.inspect("enableAnalysisCommands");if((f==null?void 0:f.workspaceFolderValue)===!1)try{await h.update("enableAnalysisCommands",!0,vscode.ConfigurationTarget.WorkspaceFolder)}catch(w){u=!0,logger.warn("Failed to auto-enable analysis commands for workspace folder",{folder:(i=d.uri)==null?void 0:i.toString(),error:w==null?void 0:w.message})}}if((l==null?void 0:l.workspaceValue)===!1)try{await featureConfig.update("enableAnalysisCommands",!0,vscode.ConfigurationTarget.Workspace)}catch(d){u=!0,logger.warn("Failed to auto-enable analysis commands for workspace scope",d)}if((l==null?void 0:l.globalValue)===!1)try{await featureConfig.update("enableAnalysisCommands",!0,vscode.ConfigurationTarget.Global)}catch(d){u=!0,logger.warn("Failed to auto-enable analysis commands for user scope",d)}u?(await setAnalysisWarningShown(context,!1),vscode.window.showWarningMessage(l10n.getString("analysisEnablePartially"))):(await setAnalysisWarningShown(context,!1),await vscode.commands.executeCommand("workbench.action.reloadWindow"))}catch(l){await setAnalysisWarningShown(context,!1),vscode.window.showWarningMessage(l10n.getString("analysisEnableFailed")),logger.warn("Failed to auto-enable analysis commands",l)}else await setAnalysisWarningShown(context,!0)})}}catch(n){logger.debug("Unable to show analysis disabled warning",n)}registerOnboardingCommands({context,logger,getOnboardingManager:()=>ensureOnboardingManager(context)});let migrationSubscriptions=await registerMigrationCommands({context,logger,getSettingsMigrationManager:()=>Promise.resolve(settingsMigrationManager)});context.subscriptions.push(...migrationSubscriptions);let openTemplateManager=vscode.commands.registerCommand("explorerDates.openTemplateManager",async()=>{try{if(isWebEnvironment()){vscode.window.showInformationMessage("Workspace templates are unavailable in VS Code for Web.");return}if(!vscode.workspace.getConfiguration("explorerDates").get("enableWorkspaceTemplates",!0))throw vscode.window.showInformationMessage(l10n.getString("workspaceTemplatesDisabled")),new Error("Workspace templates feature disabled via settings.");await featureFlags.workspaceTemplates()||raiseChunkUnavailable("Workspace templates","workspaceTemplates");let i=await ensureWorkspaceTemplatesManager(context);i||raiseChunkUnavailable("Workspace templates","workspaceTemplates"),await i.showTemplateManager(),logger.info("Template manager opened")}catch(n){throw logger.error("Failed to open template manager",n),vscode.window.showErrorMessage(l10n.getString("failedToOpenTemplateManager",n.message)),n}});context.subscriptions.push(openTemplateManager);let saveTemplate=vscode.commands.registerCommand("explorerDates.saveTemplate",async()=>{try{if(isWebEnvironment()){vscode.window.showInformationMessage("Workspace templates are unavailable in VS Code for Web.");return}let{requireWorkspaceTrust:n}=Y();if(n("save template"),!vscode.workspace.getConfiguration("explorerDates").get("enableWorkspaceTemplates",!0))throw vscode.window.showInformationMessage(l10n.getString("workspaceTemplatesDisabledSave")),new Error("Workspace templates feature disabled via settings.");await featureFlags.workspaceTemplates()||raiseChunkUnavailable("Workspace templates","workspaceTemplates");let l=await vscode.window.showInputBox({prompt:"Enter template name",placeHolder:"e.g., My Project Setup"});if(l){let c=await vscode.window.showInputBox({prompt:l10n.getString("enterTemplateDescription"),placeHolder:l10n.getString("enterTemplateDescription")})||"",u=await ensureWorkspaceTemplatesManager(context);u||raiseChunkUnavailable("Workspace templates","workspaceTemplates"),await u.saveCurrentConfiguration(l,c)}logger.info("Template saved")}catch(n){throw logger.error("Failed to save template",n),vscode.window.showErrorMessage(l10n.getString("failedToSaveTemplate",n.message)),n}});context.subscriptions.push(saveTemplate);let recordedReportErrors=new WeakSet,generateReport=vscode.commands.registerCommand("explorerDates.generateReport",async()=>{recordCommandInvocation("explorerDates.generateReport");try{if(isWebEnvironment()){vscode.window.showInformationMessage("Export reporting is unavailable in VS Code for Web.");let u=commandEmpty();return recordCommandResult("explorerDates.generateReport",!0,null,u.category),u.value}let{requireWorkspaceTrust:n}=Y();if(n("generate report"),!reportingEnabled)throw vscode.window.showInformationMessage(l10n.getString("reportingDisabled")),new Error("Reporting features disabled via settings.");await featureFlags.exportReporting()||raiseChunkUnavailable("Export reporting","exportReporting");let s=await getExportReportingManager();s||raiseChunkUnavailable("Export reporting","exportReporting");let i=await s.showReportDialog(),l=isCommandOutcome(i)?i:i===void 0?commandCancellation():i===null?commandEmpty():commandSuccess(i),c=l.category===OUTCOME_CATEGORIES.HANDLED_COMMAND_FAILURE||l.category===OUTCOME_CATEGORIES.UNHANDLED_COMMAND_FAILURE;if(recordCommandResult("explorerDates.generateReport",!c,l.error,l.category,l.errorContext),c){let u=l.error||new Error("Report generation failed");throw u&&(typeof u=="object"||typeof u=="function")&&recordedReportErrors.add(u),u}return logger.info("Report generation completed",{outcomeCategory:l.category}),l.value}catch(n){throw recordedReportErrors.has(n)||recordCommandResult("explorerDates.generateReport",!1,n,OUTCOME_CATEGORIES.UNHANDLED_COMMAND_FAILURE),logger.error("Failed to generate report",n),vscode.window.showErrorMessage(l10n.getString("failedToGenerateReport",n.message)),n}});context.subscriptions.push(generateReport);let showApiInfo=vscode.commands.registerCommand("explorerDates.showApiInfo",async()=>{try{if(!apiEnabled)throw vscode.window.showInformationMessage(l10n.getString("apiDisabled")),new Error("Explorer Dates API disabled via settings.");await featureFlags.extensionApi()||raiseChunkUnavailable("Extension API","extensionApi");let o=vscode.window.createWebviewPanel("apiInfo","Explorer Dates API Information",vscode.ViewColumn.One,{enableScripts:!0}),s=await chunkLoader.loadChunk("diagnostics");if(!s)throw new Error("Diagnostics chunk failed to load");s.ensureInitialized(context);let i=await apiFactory();if(!i)throw new Error("API factory returned null - extension API may be disabled");o.webview.html=await s.getApiInformationHtml(i),logger.info("API information panel opened")}catch(n){throw logger.error("Failed to show API information",n),vscode.window.showErrorMessage(l10n.getString("failedToShowApiInformation",n.message)),n}});context.subscriptions.push(showApiInfo);let statusBarItem,config=vscode.workspace.getConfiguration("explorerDates"),performanceMode=config.get("performanceMode",!1),showStatusBar=config.get("showStatusBar",!1);showStatusBar&&!performanceMode&&(statusBarItem=initializeStatusBar(context));let statusBarConfigWatcher=vscode.workspace.onDidChangeConfiguration(n=>{if(n.affectsConfiguration("explorerDates.showStatusBar")||n.affectsConfiguration("explorerDates.performanceMode")){let o=vscode.workspace.getConfiguration("explorerDates"),s=o.get("showStatusBar",!1),i=o.get("performanceMode",!1),l=s&&!i;l&&!statusBarItem?statusBarItem=initializeStatusBar(context):!l&&statusBarItem&&(statusBarItem.dispose(),statusBarItem=null)}});context.subscriptions.push(statusBarConfigWatcher),logger.info("Explorer Dates: Date decorations ready");let loadRuntimeCommands=async()=>{let n=await featureFlags.loadFeatureModule("runtimeManagement");if(n!=null&&n.registerRuntimeCommands)return n.registerRuntimeCommands;if(isWeb)try{let o=await Promise.resolve().then(()=>J(He()));if(o!=null&&o.registerRuntimeCommands)return logger.warn("Runtime chunk missing in web; using bundled runtime commands fallback"),o.registerRuntimeCommands}catch(o){logger.warn("Web runtime fallback for runtime commands failed",o)}return logger.warn("Runtime chunk missing; runtime commands not initialized"),null};try{let n=await loadRuntimeCommands();if(n){isWebDiagnosticsEnabled()&&diagLog("info","Runtime commands registration starting");let{runtimeManager:o,teamPersistenceManager:s}=n(context);activeRuntimeManager!=null&&activeRuntimeManager.dispose&&activeRuntimeManager.dispose(),activeTeamPersistenceManager!=null&&activeTeamPersistenceManager.dispose&&activeTeamPersistenceManager.dispose(),activeRuntimeManager=o,activeTeamPersistenceManager=s,env.EXPLORER_DATES_TEST_MODE!=="1"?runtimeAutoSuggestionTimer=setTimeout(async()=>{try{await o.checkAutoSuggestion(),await s.validateTeamConfiguration()}catch(l){logger.debug("Runtime system auto-suggestion failed:",l)}},AUTO_SUGGESTION_DELAY_MS):logger.debug("Skipping runtime auto-suggestion timer in test mode"),logger.info("Runtime chunk management system initialized")}else logger.warn("Runtime chunk management system unavailable")}catch(n){logger.error("Failed to initialize runtime chunk management:",n),isWebDiagnosticsEnabled()&&diagLog("error","Runtime command initialization failed",{error:n==null?void 0:n.message,stack:n==null?void 0:n.stack})}if(isWebDiagnosticsEnabled()){let n=getWebDiagnosticsState();diagLog("info","Activation complete",{commandsRegistered:((a=n.commandsRegistered)==null?void 0:a.size)||0,provider:n.provider})}if(apiEnabled)return apiFactory}catch(n){let o=`${l10n?l10n.getString("activationError"):"Explorer Dates failed to activate"}: ${n.message}`;throw getActiveLogger().error("Extension activation failed",n),vscode.window.showErrorMessage(o),isWebDiagnosticsEnabled()&&diagLog("error","Activation failed",{error:n==null?void 0:n.message,stack:n==null?void 0:n.stack}),n}}async function deactivate(){try{if(getActiveLogger().info("Explorer Dates extension is being deactivated"),runtimeAutoSuggestionTimer&&(clearTimeout(runtimeAutoSuggestionTimer),runtimeAutoSuggestionTimer=null),activeRuntimeManager!=null&&activeRuntimeManager.dispose&&(activeRuntimeManager.dispose(),activeRuntimeManager=null),activeTeamPersistenceManager!=null&&activeTeamPersistenceManager.dispose&&(activeTeamPersistenceManager.dispose(),activeTeamPersistenceManager=null),fileDateProvider&&typeof fileDateProvider.dispose=="function"&&(await fileDateProvider.dispose(),fileDateProvider=null),env.EXPLORER_DATES_TEST_MODE==="1"&&typeof process<"u"&&typeof process.Le=="function"){let t=Date.now();for(;(process.Le()||[]).length>0&&Date.now()-t<500;)await new Promise(e=>setTimeout(e,5))}getActiveLogger().info("Explorer Dates extension deactivated successfully")}catch(t){getActiveLogger().error("Explorer Dates: Error during deactivation",t)}}module.exports={activate,deactivate}; + `}async validateConfiguration(){let e=[],r=W.workspace.getConfiguration("explorerDates"),a=[{setting:"dateDecorationFormat",validate:n=>["smart","relative-short","relative-long","absolute-short","absolute-long"].includes(n),message:"Invalid date decoration format"},{setting:"colorScheme",validate:n=>["none","recency","file-type","subtle","vibrant","custom"].includes(n),message:"Invalid color scheme"},{setting:"badgePriority",validate:n=>["time","author","size"].includes(n),message:"Invalid badge priority"},{setting:"maxCacheSize",validate:n=>typeof n=="number"&&n>=100&&n<=5e4,message:"Cache size must be between 100 and 50,000"},{setting:"cacheTimeout",validate:n=>typeof n=="number"&&n>=5e3&&n<=3e5,message:"Cache timeout must be between 5,000 and 300,000 milliseconds"}];for(let n of a){let o=r.get(n.setting);o!==void 0&&!n.validate(o)&&e.push({setting:n.setting,value:o,message:n.message})}return e}getMigrationHistory(e){return e.globalState.get("explorerDates.migrationHistory",[])}};Qt.exports={SettingsMigrationManager:$e}});var sr=m((no,or)=>{var P=require("vscode"),{getLogger:pa}=T(),{WORKSPACE_SCALE_BALANCED_THRESHOLD:tr,WORKSPACE_SCALE_LARGE_THRESHOLD:ye,WORKSPACE_SCALE_EXTREME_THRESHOLD:rr,WORKSPACE_SCAN_MAX_RESULTS:nr}=$(),qe=pa(),be=null;function ar(t){return t&&(t.fsPath||t.path)||null}function Ue(t,e){let r=ar(t);!r||typeof e!="number"||(be={workspaceKey:r,fileCount:e,timestamp:Date.now()})}function ze(t){let e=ar(t);return!e||!be||be.workspaceKey!==e?null:be}function fa(t,e="default"){if(!t)return`unknown-workspace-${e}`;let r=t.fsPath||t.path||"",a=r.split("/").pop()||"workspace",n=Math.abs(r.split("").reduce((s,i)=>(s=(s<<5)-s+i.charCodeAt(0),s&s),0)).toString(36).substr(0,8),o=Math.abs(e.split("").reduce((s,i)=>(s=(s<<5)-s+i.charCodeAt(0),s&s),0)).toString(36).substr(0,4);return`${a}-${n}-${o}`}async function ma(t){try{if(!t)return"unknown";let e=ze(t),r;e?r=e.fileCount:(r=(await P.workspace.findFiles("**/*",null,nr)).length,Ue(t,r));let a="small";r>=rr?a="extreme":r>=ye?a="large":r>=1e3&&(a="medium");let n=P.env.remoteName,o=P.env.uiKind===P.UIKind.Web,s=a==="medium"&&r>=tr&&rc.toLowerCase());if(l.includes("package.json")||l.includes("yarn.lock"))return"web-development";if(l.some(c=>c.endsWith(".ipynb"))||l.includes("requirements.txt"))return"data-science";if(l.includes("docker-compose.yml")||l.includes(".enterprise"))return"enterprise"}catch(i){qe.debug("Project type detection failed:",i)}return"full"}catch(e){return qe.error("Workspace profile detection failed:",e),"unknown"}}async function ha(t){if(!t)return null;try{let e=ze(t),r;e?r=e.fileCount:(r=(await P.workspace.findFiles("**/*",null,nr)).length,Ue(t,r));let a="small";r>=rr?a="extreme":r>=ye?a="large":r>=1e3&&(a="medium");let n=!!P.env.remoteName,o=P.env.uiKind===P.UIKind.Web,s=o?"web":n?"remote":"local",i=a==="medium"&&r>=tr&&r{var CHUNK_SIZES={onboarding:34,analysisCommands:23,exportReporting:17,extensionApi:15,workspaceTemplates:14,advancedCache:28,workspaceIntelligence:31,incrementalWorkers:19},BASE_BUNDLE_SIZE=99;function _getPresetDefinitionsSync(){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let t=dynamicRequire("./chunks/preset-definitions-chunk");if(t&&t.PRESET_DEFINITIONS)return t.PRESET_DEFINITIONS}}catch{}let FALLBACK_PRESET={minimal:{id:"minimal",name:"Minimal",description:"Lean setup that prioritizes responsiveness in large repos.",targetScenarios:["Large repos","Low resources","Minimal UI"],settings:{"explorerDates.performanceMode":!0,"explorerDates.showDateDecorations":!0}},balanced:{id:"balanced",name:"Balanced",description:"Default feature mix for most workspaces.",targetScenarios:["General development","Mixed workloads"],settings:{"explorerDates.enableOnboardingSystem":!0,"explorerDates.enableAnalysisCommands":!0,"explorerDates.performanceMode":!1,"explorerDates.dateDecorationFormat":"smart","explorerDates.colorScheme":"recency","explorerDates.badgePriority":"time"}},"web-development":{id:"web-development",name:"Web Development",description:"Optimized for frontend and full-stack web projects.",targetScenarios:["Web apps","Frontend teams"],settings:{"explorerDates.enableOnboardingSystem":!0,"explorerDates.dateDecorationFormat":"smart","explorerDates.colorScheme":"file-type","explorerDates.badgePriority":"time"}},enterprise:{id:"enterprise",name:"Enterprise",description:"Full feature set with reporting and integrations enabled.",targetScenarios:["Large teams","Governed environments"],settings:{"explorerDates.enableExportReporting":!0,"explorerDates.enableExtensionApi":!0,"explorerDates.dateDecorationFormat":"smart","explorerDates.colorScheme":"recency","explorerDates.badgePriority":"time"}},"data-science":{id:"data-science",name:"Data Science",description:"Insight-focused profile for data-heavy projects.",targetScenarios:["Data analysis","Research workflows"],settings:{"explorerDates.enableWorkspaceIntelligence":!0,"explorerDates.dateDecorationFormat":"iso-detailed","explorerDates.colorScheme":"recency","explorerDates.badgePriority":"time"}}};return FALLBACK_PRESET}var PRESET_DEFINITIONS=_getPresetDefinitionsSync(),RESTART_REQUIRED_SETTINGS=new Set(["enableOnboardingSystem","enableAnalysisCommands","enableExportReporting","enableExtensionApi","enableWorkspaceTemplates","enableAdvancedCache","enableWorkspaceIntelligence","enableIncrementalWorkers","performanceMode","smartFileWatching"]);function calculateBundleSize(t){let e=BASE_BUNDLE_SIZE;return t["explorerDates.enableOnboardingSystem"]&&(e+=CHUNK_SIZES.onboarding),t["explorerDates.enableAnalysisCommands"]&&(e+=CHUNK_SIZES.analysisCommands),t["explorerDates.enableExportReporting"]&&(e+=CHUNK_SIZES.exportReporting),t["explorerDates.enableExtensionApi"]&&(e+=CHUNK_SIZES.extensionApi),t["explorerDates.enableWorkspaceTemplates"]&&(e+=CHUNK_SIZES.workspaceTemplates),t["explorerDates.enableAdvancedCache"]&&(e+=CHUNK_SIZES.advancedCache),t["explorerDates.enableWorkspaceIntelligence"]&&(e+=CHUNK_SIZES.workspaceIntelligence),t["explorerDates.enableIncrementalWorkers"]&&(e+=CHUNK_SIZES.incrementalWorkers),e}function getDefaultPresetForProfile(t){let e=PRESET_DEFINITIONS;switch(t){case"minimal":case"extreme":return e.minimal||e.minimal;case"balanced":return e.balanced||e.balanced;case"web-development":return e["web-development"]||e["web-development"];case"data-science":return e["data-science"]||e["data-science"];case"enterprise":return e.enterprise||e.enterprise;default:return e.balanced||e.balanced}}module.exports={PRESET_DEFINITIONS,CHUNK_SIZES,BASE_BUNDLE_SIZE,RESTART_REQUIRED_SETTINGS,calculateBundleSize,getDefaultPresetForProfile}});var ir=m((exports,module)=>{var vscode=require("vscode"),getLogger=()=>{try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let t=dynamicRequire("./chunks/logger-chunk");if(t&&typeof t.getLogger=="function")return getLogger=t.getLogger,getLogger()}}catch{}try{return getLogger=T().getLogger,getLogger()}catch{return getLogger=()=>{var t;return{debug:((t=()=>{})==null?void 0:t.bind(console))||console.log,info:(()=>{}).bind(console),warn:(()=>{}).bind(console),error:(()=>{}).bind(console)}},getLogger()}},{generateWorkspaceKey,detectWorkspaceProfile,analyzeWorkspaceEnvironment}=sr(),{PRESET_DEFINITIONS,calculateBundleSize,getDefaultPresetForProfile,RESTART_REQUIRED_SETTINGS}=Ee(),{getSettingsCoordinator}=ae(),{WORKSPACE_SCALE_LARGE_THRESHOLD,WORKSPACE_SCALE_EXTREME_THRESHOLD}=$(),{diagLog}=Y(),isWebRuntime=(()=>{var t,e;try{return((t=vscode==null?void 0:vscode.env)==null?void 0:t.uiKind)===((e=vscode==null?void 0:vscode.UIKind)==null?void 0:e.Web)}catch{return!1}})(),logger=getLogger(),quickPickUnavailableMessage="Explorer Dates: This action is unavailable in this environment.";function ensureQuickPickAvailable(t){var e,r;if(typeof((e=vscode==null?void 0:vscode.window)==null?void 0:e.showQuickPick)=="function")return!0;diagLog("warn","QuickPick unavailable",{context:t,isWeb:isWebRuntime});try{typeof((r=vscode==null?void 0:vscode.window)==null?void 0:r.showInformationMessage)=="function"&&vscode.window.showInformationMessage(quickPickUnavailableMessage)}catch{}return!1}var RuntimeConfigManager=class{constructor(e){this.z=e,this.r=e.globalState,this.W=null,this.g=null,this.d="explorerDates.pendingRestart",this.Y="explorerDates.suggestionHistory",this.D="explorerDates.presetBackup",this.I="explorerDates.lastPreset",this.e=getSettingsCoordinator(),this.De(),logger.info("Runtime configuration manager initialized")}async getCurrentRuntimeState(){var s,i;let e=vscode.workspace.getConfiguration("explorerDates"),r=this.p(e),a=this.i(null,r),n=(i=(s=vscode.workspace.workspaceFolders)==null?void 0:s[0])==null?void 0:i.uri,o=await analyzeWorkspaceEnvironment(n);return{currentSettings:r,currentBundleSize:a,analysis:o,availablePresets:Object.keys(PRESET_DEFINITIONS),pendingRestart:this.r.get(this.d,[]),timestamp:Date.now()}}async checkAutoSuggestion(e=!1){var r,a;try{let n=(a=(r=vscode.workspace.workspaceFolders)==null?void 0:r[0])==null?void 0:a.uri;if(!n){e&&vscode.window.showInformationMessage("Explorer Dates: No workspace folder is open. Open a folder to receive configuration suggestions.");return}let o=await detectWorkspaceProfile(n),s=generateWorkspaceKey(n,o),i=this.r.get(this.Y,{}),l=i[s];if(e||!l||l.profileDetected!==o||await this.ke(l)){let u=await this.X(o);if(u){if(e&&u.reason==="minimal savings")vscode.window.showInformationMessage(`Explorer Dates: Your configuration is already well-optimized for a ${o} workspace. No changes recommended.`);else if(u.accepted!==void 0){let d=await analyzeWorkspaceEnvironment(n);i[s]={profileDetected:o,suggestedAt:Date.now(),fileCountAtSuggestion:(d==null?void 0:d.fileCount)||0,accepted:u.accepted,presetId:u.preset},await this.r.update(this.Y,i),logger.info("Auto-suggestion updated:",i[s])}}}else if(e){let u=await this.X(o);(u==null?void 0:u.reason)==="minimal savings"&&vscode.window.showInformationMessage(`Explorer Dates: Your configuration is already well-optimized for a ${o} workspace. No changes recommended.`)}}catch(n){logger.error("Auto-suggestion check failed:",n)}}async X(e){let r=this.p(vscode.workspace.getConfiguration("explorerDates")),a=getDefaultPresetForProfile(e),n=this.i(null,r),o=a?this.i(a.settings,r):n,s=n-o;if(s<=10)return{accepted:!1,preset:e,reason:"minimal savings"};let i=`Explorer Dates detected a ${e} workspace. Would you like to apply ${a.name} settings? This could save ~${s}KB.`;switch(await vscode.window.showInformationMessage(i,{modal:!1},"Apply Settings","Show Details","Not Now")){case"Apply Settings":return await this.L(a.id,a),{accepted:!0,preset:e};case"Show Details":return await this.showPresetComparison(r,a),{accepted:!1,preset:e};default:return{accepted:!1,preset:e}}}async L(e,r=null){let a=r||PRESET_DEFINITIONS[e];if(!a)throw new Error(`Unknown preset: ${e}`);let n=this.p(vscode.workspace.getConfiguration("explorerDates"));await this.Te(e,n);let o=Object.entries(a.settings||{}),s=[],i=[],l=[],c=isWebRuntime?"user":"workspace",u=`apply-preset:${e}`,d=w=>{try{if(!w||typeof w!="string")return!1;let S="explorerDates.";if(w.startsWith(S)){let J=w.slice(S.length),I=vscode.workspace.getConfiguration("explorerDates").inspect(J);return I?[I.defaultValue,I.globalValue,I.workspaceValue,I.workspaceFolderValue].some(Dr=>Dr!==void 0):!1}let v=vscode.workspace.getConfiguration().inspect(w);return v?[v.defaultValue,v.globalValue,v.workspaceValue,v.workspaceFolderValue].some(J=>J!==void 0):!1}catch{return!1}};for(let[w,S]of o){if(!d(w)){i.push(w),diagLog("warn","Preset skipped unregistered setting",{key:w,presetId:e});continue}try{s.push(await this.e.updateSetting(w,S,{scope:c,reason:u}))}catch(v){l.push({key:w,error:v}),logger.warn(`Preset application failed for ${w}: ${v&&v.message?v.message:String(v)}`)}}let h=s.filter(w=>w.updated).map(w=>w.key.replace("explorerDates.","")),f=`Applied "${a.name}" preset. Applied: ${h.length}. Skipped: ${i.length}. Failed: ${l.length}.`;try{vscode.window.showInformationMessage(f)}catch{}if(logger.info(`Applied ${a.name} preset`,{changedSettings:h,skipped:i,failed:l.length}),diagLog("info","Preset applied summary",{presetId:e,applied:h.length,skipped:i,failed:l.map(w=>w.key),webRuntime:isWebRuntime}),h.length>0){this.Z(h);try{await vscode.commands.executeCommand("explorerDates.refreshDateDecorations"),diagLog("info","Preset refresh triggered",{presetId:e,applied:h.length,skipped:i.length})}catch(w){diagLog("warn","Preset refresh failed",{presetId:e,error:w==null?void 0:w.message})}}return{applied:h.length,preset:a,requiresRestart:h.some(w=>RESTART_REQUIRED_SETTINGS.has(w)),estimatedBundleSize:this.i()}}async restorePreviousPreset(e={}){let r=this.r.get(this.D,null);if(!(r!=null&&r.settings))return e.silent||vscode.window.showInformationMessage("No previous preset available to restore."),{restored:!1,reason:"no-backup"};let a;try{a=await this.e.applySettings(r.settings,{scope:"workspace",reason:"restore-previous-preset"})}catch(o){throw e.silent||vscode.window.showErrorMessage(`Failed to restore previous preset: ${o.message}`),logger.error("Preset rollback failed:",o),o}let n=a.filter(o=>o.updated).map(o=>o.key.replace("explorerDates.",""));return await this.r.update(this.d,[]),await this.r.update(this.D,null),await this.r.update(this.I,r.previousPreset||null),e.silent||vscode.window.showInformationMessage("Previous preset restored."),{restored:!0,changedSettings:n,restoredPreset:r.previousPreset||"unknown"}}async showPresetComparison(e,r){if(!ensureQuickPickAvailable("runtimeConfig.showPresetComparison"))return;let a=e||this.p(vscode.workspace.getConfiguration("explorerDates")),n=this.i(null,a),o=r?this.i(r.settings,a):n,s=n-o,i=[{label:"\u{1F4E6} Current Configuration",description:`Bundle: ${n}KB total`,detail:this.J(a),action:"current"},r?{label:`\u26A1 Recommended: ${r.name}`,description:`Bundle: ${o}KB total (saves ${Math.max(0,s)}KB)`,detail:this.J(r.settings),action:"apply",preset:r}:null,{label:"\u{1F527} Browse All Presets...",description:`Choose from ${Object.keys(PRESET_DEFINITIONS).length} available presets`,detail:"Minimal, Balanced, Web Development, Enterprise, Data Science",action:"browse"}].filter(Boolean),l=await vscode.window.showQuickPick(i,{placeHolder:"Choose configuration approach",ignoreFocusOut:!0,matchOnDescription:!0,matchOnDetail:!0});if(l)switch(l.action){case"apply":l.preset&&await this.L(l.preset.id,l.preset);break;case"browse":await this.showAllPresets();break}}async showAllPresets(){if(!ensureQuickPickAvailable("runtimeConfig.showAllPresets"))return;let e=this.p(vscode.workspace.getConfiguration("explorerDates")),r=this.i(null,e),a=Object.values(PRESET_DEFINITIONS).map(o=>{let s=this.i(o.settings,e),i=r-s,l=i>0?`saves ${i}KB`:i<0?`adds ${Math.abs(i)}KB`:"same size";return{label:`${o.name}`,description:`${s}KB (${l})`,detail:`${o.description} - ${o.targetScenarios.join(", ")}`,preset:o}}),n=await vscode.window.showQuickPick(a,{placeHolder:"Select a preset configuration",ignoreFocusOut:!0,matchOnDescription:!0,matchOnDetail:!0});n!=null&&n.preset&&await vscode.window.showInformationMessage(`Apply "${n.preset.name}" preset? +${n.preset.description}`,{modal:!1},"Apply","Cancel")==="Apply"&&await this.L(n.preset.id,n.preset)}De(){this.W=vscode.workspace.onDidChangeConfiguration(e=>{e.affectsConfiguration("explorerDates")&&this.Ae(e)})}async Ae(e){let r=Array.from(RESTART_REQUIRED_SETTINGS).filter(a=>e.affectsConfiguration(`explorerDates.${a}`));r.length>0&&this.Z(r)}Z(e){let r=this.r.get(this.d,[]),a=[...new Set([...r,...e])];try{let n=this.r.update(this.d,a);n&&typeof n.then=="function"&&n.catch(o=>{try{logger.warn("Failed to persist pending restart state:",o&&o.message)}catch{}})}catch(n){try{logger.warn("Failed to persist pending restart state (sync):",n&&n.message)}catch{}}this.g&&clearTimeout(this.g),this.g=setTimeout(()=>{(async()=>{try{await this.xe()}catch(n){logger.error("Failed to show batched restart prompt:",n);try{await this.r.update(this.d,[])}catch(o){logger.warn("Failed to clear pending restarts after prompt failure:",o&&o.message)}}finally{this.g=null}})()},2e3)}async xe(){try{let e=this.r.get(this.d,[]);if(e.length===0)return;let r=e.map(s=>this.Re(s)).join(", "),n=`${e.length===1?`"${r}"`:`${e.length} settings (${r})`} changed. Reload to apply chunk optimizations?`,o;try{o=await vscode.window.showInformationMessage(n,{modal:!1},"Reload Now","Reload Later")}catch(s){logger.warn("User prompt for restart failed:",s&&s.message)}if(o==="Reload Now")try{await vscode.commands.executeCommand("workbench.action.reloadWindow")}catch(s){logger.warn("Failed to execute reload command:",s&&s.message)}}catch(e){logger.error("Error while showing batched restart prompt:",e)}finally{try{await this.r.update(this.d,[])}catch(e){logger.warn("Failed to clear pending restarts:",e&&e.message)}}}async Te(e,r={}){if(!this.r||typeof this.r.update!="function")return;let a=this.r.get(this.I,null),n=this.r.get(this.D,null),o=n!=null&&n.timestamp?Date.parse(n.timestamp):null,s=Number.isFinite(o)?Math.max(Date.now(),o+1):Date.now(),i={timestamp:new Date(s).toISOString(),appliedPreset:e,previousPreset:a||"unknown",settings:{...r}};await this.r.update(this.D,i),await this.r.update(this.I,e)}i(e=null,r=null){let a=r?{...r}:this.p(vscode.workspace.getConfiguration("explorerDates"));return e&&typeof e=="object"&&Object.assign(a,e),calculateBundleSize(a)}p(e){let r={enableOnboardingSystem:!0,enableAnalysisCommands:!0,enableExportReporting:!0,enableExtensionApi:!0,enableWorkspaceTemplates:!0,enableAdvancedCache:!0,enableWorkspaceIntelligence:!0,enableIncrementalWorkers:!1},a={};for(let[n,o]of Object.entries(r))a[`explorerDates.${n}`]=e.get(n,o);return a}J(e){let r=Object.entries(e).filter(([o,s])=>s===!0&&o.includes("enable")).map(([o])=>o.replace("explorerDates.enable","").replace("System","")).slice(0,3),a=Math.max(0,Object.keys(e).length-3),n=a>0?` +${a} more`:"";return`Features: ${r.join(", ")}${n}`}Re(e){return e.replace("enable","").replace(/([A-Z])/g," $1").trim()}async ke(e){var r,a;if(!e)return!0;try{let n=(a=(r=vscode.workspace.workspaceFolders)==null?void 0:r[0])==null?void 0:a.uri,o=await analyzeWorkspaceEnvironment(n);if(!o)return!1;let s=e.fileCountAtSuggestion||0,i=o.fileCount,l=this.Q(s),c=this.Q(i);return l!==c}catch(n){return logger.debug("Heuristics change check failed:",n),!1}}Q(e){return e>=WORKSPACE_SCALE_EXTREME_THRESHOLD?"extreme":e>=WORKSPACE_SCALE_LARGE_THRESHOLD?"large":e>=1e3?"medium":"small"}dispose(){this.W&&this.W.dispose(),this.g&&clearTimeout(this.g)}};module.exports={RuntimeConfigManager}});var ur=m((ao,cr)=>{var{RuntimeConfigManager:lr}=ir();cr.exports={RuntimeConfigManager:lr,default:{RuntimeConfigManager:lr}}});var He=m((exports,module)=>{var vscode=require("vscode"),{getLogger}=T(),{recordCommandRegistration,recordCommandInvocation,recordCommandResult}=Y(),{diagLog}=Y(),logger=getLogger(),isWebRuntime=(()=>{var t,e;try{return((t=vscode==null?void 0:vscode.env)==null?void 0:t.uiKind)===((e=vscode==null?void 0:vscode.UIKind)==null?void 0:e.Web)}catch{return typeof process>"u"||!1}})();function createWebRuntimeManagerStub(){let t=async e=>{var r;diagLog("warn","QuickPick unavailable",{context:"runtimeCommands.webStub",isWeb:isWebRuntime}),typeof((r=vscode==null?void 0:vscode.window)==null?void 0:r.showInformationMessage)=="function"&&await vscode.window.showInformationMessage(e)};return{async showAllPresets(){await t("Runtime presets are unavailable in VS Code for Web.")},async restorePreviousPreset(){return await t("Runtime presets are unavailable in VS Code for Web."),{restored:!1}},async showPresetComparison(){await t("Runtime preset comparisons are unavailable in VS Code for Web.")},async checkAutoSuggestion(){await t("Runtime preset suggestions are unavailable in VS Code for Web.")},async getCurrentRuntimeState(){return{currentSettings:{},analysis:null}}}}function registerRuntimeCommands(context){let runtimeManager=null,teamPersistenceManager=null,managersInitializing=null,runtimeManagerProxy={dispose:()=>{if(runtimeManager&&typeof runtimeManager.dispose=="function")try{runtimeManager.dispose()}catch(t){logger.warn("Error during runtimeManager.dispose proxy",t)}}},teamPersistenceManagerProxy={dispose:()=>{if(teamPersistenceManager&&typeof teamPersistenceManager.dispose=="function")try{teamPersistenceManager.dispose()}catch(t){logger.warn("Error during teamPersistenceManager.dispose proxy",t)}}};function loadTeamPersistenceModule(){if(isWebRuntime)return null;let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire!="function")return null;let candidates=["../chunks/teamPersistence","../chunks/team-persistence-chunk"];for(let t of candidates)try{let e=dynamicRequire(t);if(e)return e.default||e}catch{}return null}async function ensureManagers(){return managersInitializing||(managersInitializing=(async()=>{if(!runtimeManager){if(isWebRuntime){runtimeManager=createWebRuntimeManagerStub();return}let t=await Promise.resolve().then(()=>Q(ur()));runtimeManager=new t.RuntimeConfigManager(context)}if(!teamPersistenceManager&&!isWebRuntime){let persistence=loadTeamPersistenceModule();if(persistence!=null&&persistence.createTeamPersistenceManager)teamPersistenceManager=persistence.createTeamPersistenceManager(context);else if(persistence!=null&&persistence.TeamConfigPersistenceManager)teamPersistenceManager=new persistence.TeamConfigPersistenceManager(context);else{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let t=dynamicRequire("../teamConfigPersistence.proxy");teamPersistenceManager=new t.TeamConfigPersistenceManager(context)}}}})(),managersInitializing)}let registerCommand=(t,e)=>(recordCommandRegistration(t),vscode.commands.registerCommand(t,async(...r)=>{recordCommandInvocation(t);try{let a=await e(...r);return recordCommandResult(t,!0),a}catch(a){throw recordCommandResult(t,!1,a),a}})),commands=[registerCommand("explorerDates.applyPreset",async()=>{try{let{requireWorkspaceTrust:t}=X();t("apply preset"),await ensureManagers(),await runtimeManager.showAllPresets()}catch(t){logger.error("Apply preset command failed:",t),vscode.window.showErrorMessage(`Failed to apply preset: ${t.message}`)}}),registerCommand("explorerDates.restorePreviousPreset",async()=>{try{await ensureManagers(),(await runtimeManager.restorePreviousPreset()).restored||logger.info("No preset backup available to restore")}catch(t){logger.error("Restore previous preset command failed:",t),vscode.window.showErrorMessage(`Failed to restore previous preset: ${t.message}`)}}),registerCommand("explorerDates.configureRuntime",async()=>{try{await ensureManagers();let t=await runtimeManager.getCurrentRuntimeState();await runtimeManager.showPresetComparison(t.currentSettings)}catch(t){logger.error("Configure runtime command failed:",t),vscode.window.showErrorMessage(`Failed to show runtime configuration: ${t.message}`)}}),registerCommand("explorerDates.suggestOptimalPreset",async()=>{try{await ensureManagers(),await runtimeManager.checkAutoSuggestion(!0)}catch(t){logger.error("Suggest optimal preset command failed:",t),vscode.window.showErrorMessage(`Failed to suggest preset: ${t.message}`)}}),registerCommand("explorerDates.showChunkStatus",async()=>{try{await ensureManagers();let t=await runtimeManager.getCurrentRuntimeState();await showChunkStatusQuickPick(t)}catch(t){logger.warn("Show chunk status: runtime managers unavailable, using fallback state",t);try{let e=vscode.workspace.getConfiguration("explorerDates"),r=[34,23,17,15,14,28,31,19],o={currentBundleSize:99+["enableOnboardingSystem","enableAnalysisCommands","enableExportReporting","enableExtensionApi","enableWorkspaceTemplates","enableAdvancedCache","enableWorkspaceIntelligence","enableIncrementalWorkers"].reduce((s,i,l)=>s+(e.get(i,!0)?r[l]:0),0)};await showChunkStatusQuickPick(o)}catch(e){logger.error("Show chunk status fallback failed:",e),vscode.window.showErrorMessage(`Failed to show chunk status: ${e.message}`)}}}),registerCommand("explorerDates.optimizeBundle",async()=>{try{await ensureManagers();let t=await runtimeManager.getCurrentRuntimeState();if(t.analysis){let e=await determineOptimalProfile(t.analysis);await runtimeManager.showPresetComparison(t.currentSettings,e)}else await runtimeManager.showAllPresets()}catch(t){logger.error("Optimize bundle command failed:",t),vscode.window.showErrorMessage(`Failed to optimize bundle: ${t.message}`)}}),registerCommand("explorerDates.validateTeamConfig",async()=>{try{if(isWebRuntime){vscode.window.showInformationMessage("Team configuration validation is unavailable in VS Code for Web.");return}if(await ensureManagers(),!teamPersistenceManager){vscode.window.showInformationMessage("Team configuration validation is unavailable.");return}let t=await teamPersistenceManager.validateTeamConfiguration();if(t.hasTeamConfig){let e=t.conflicts.length>0?`Found ${t.conflicts.length} conflicts.`:"No conflicts detected.";vscode.window.showInformationMessage(`Team configuration validated. ${e}`)}else vscode.window.showInformationMessage("No team configuration found in workspace.")}catch(t){logger.error("Validate team config command failed:",t),vscode.window.showErrorMessage(`Failed to validate team configuration: ${t.message}`)}})];return commands.forEach(t=>context.subscriptions.push(t)),logger.info("Runtime management commands registered"),{runtimeManager:runtimeManagerProxy,teamPersistenceManager:teamPersistenceManagerProxy}}async function showChunkStatusQuickPick(t){var n,o;if(typeof((n=vscode==null?void 0:vscode.window)==null?void 0:n.showQuickPick)!="function"){diagLog("warn","QuickPick unavailable",{context:"runtimeCommands.showChunkStatus",isWeb:isWebRuntime});try{typeof((o=vscode==null?void 0:vscode.window)==null?void 0:o.showInformationMessage)=="function"&&vscode.window.showInformationMessage("Explorer Dates: This action is unavailable in this environment.")}catch{}return}let e=vscode.workspace.getConfiguration("explorerDates"),a=[{name:"Onboarding System",key:"enableOnboardingSystem",size:34},{name:"Analysis Commands",key:"enableAnalysisCommands",size:23},{name:"Export Reporting",key:"enableExportReporting",size:17},{name:"Extension API",key:"enableExtensionApi",size:15},{name:"Workspace Templates",key:"enableWorkspaceTemplates",size:14},{name:"Advanced Cache",key:"enableAdvancedCache",size:28},{name:"Workspace Intelligence",key:"enableWorkspaceIntelligence",size:31},{name:"Incremental Workers",key:"enableIncrementalWorkers",size:19}].map(s=>{let i=e.get(s.key,!0),l=i?"\u2705":"\u274C",c=i?"Enabled":"Disabled";return{label:`${l} ${s.name}`,description:`${s.size}KB | ${c}`,detail:getChunkDescription(s.key)}});a.unshift({label:"\u{1F4CA} Bundle Summary",description:`Total: ${t.currentBundleSize}KB`,detail:`Base bundle: 99KB + ${t.currentBundleSize-99}KB chunks`}),await vscode.window.showQuickPick(a,{placeHolder:"Current chunk status",ignoreFocusOut:!0})}function getChunkDescription(t){return{enableOnboardingSystem:"Welcome messages and guided setup",enableAnalysisCommands:"Advanced file analysis and metrics",enableExportReporting:"CSV/JSON export and reporting features",enableExtensionApi:"Public API for other extensions",enableWorkspaceTemplates:"Project templates and scaffolding",enableAdvancedCache:"Intelligent caching and performance",enableWorkspaceIntelligence:"Smart workspace analysis and insights",enableIncrementalWorkers:"Background processing and optimization"}[t]||"Explorer Dates feature chunk"}async function determineOptimalProfile(t){if(!t)return null;let{workspaceSize:e,isRemoteEnvironment:r}=t,a;e==="extreme"||e==="large"&&r?a="minimal":e==="large"||r?a="balanced":a="enterprise";let o=(await Promise.resolve().then(()=>Q(Ee()))).PRESET_DEFINITIONS;return o[a]||o.balanced}module.exports={registerRuntimeCommands}});var ve=m((exports,module)=>{var FEATURE_FLAGS_GLOBAL_KEY="__explorerDatesFeatureFlags";function registerFeatureFlagsGlobal(t){if(t)try{typeof globalThis<"u"&&(globalThis[FEATURE_FLAGS_GLOBAL_KEY]=t)}catch{}}function loadFeatureFlagsFallback(){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function")return dynamicRequire("../featureFlags")}catch{}return null}function getFeatureFlagsGlobal(){try{if(typeof globalThis<"u"&&globalThis[FEATURE_FLAGS_GLOBAL_KEY])return globalThis[FEATURE_FLAGS_GLOBAL_KEY]}catch{}return loadFeatureFlagsFallback()}module.exports={FEATURE_FLAGS_GLOBAL_KEY,registerFeatureFlagsGlobal,getFeatureFlagsGlobal}});var Ke=m((oo,dr)=>{var Ce={onboarding:"src/chunks/onboarding-chunk",onboardingAssets:"src/chunks/onboarding-assets-chunk",reporting:"src/chunks/reporting-chunk",templates:"src/chunks/templates-chunk",analysis:"src/chunks/analysis-chunk",diagnostics:"src/chunks/diagnostics-chunk",extensionApi:"src/chunks/extension-api-chunk",advancedCache:"src/chunks/advancedCache-chunk",batchProcessor:"src/chunks/batchProcessor-chunk",decorationsAdvanced:"src/chunks/decorations-advanced",decorationsStatic:"src/chunks/decorations-static",workspaceIntelligence:"src/chunks/workspaceIntelligence",decorationLogic:"src/chunks/decoration-logic-chunk",decorationProvide:"src/chunks/decoration-provide-chunk",decorationHelpers:"src/chunks/decoration-helpers-chunk",decorationBatch:"src/chunks/decoration-batch-chunk",decorationWorkspaceIntel:"src/chunks/decoration-workspace-intel-chunk",decorationTelemetry:"src/chunks/decoration-telemetry-chunk",decorationRefresh:"src/chunks/decoration-refresh-chunk",decorationMemory:"src/chunks/decoration-memory-chunk",decorationPool:"src/chunks/decoration-pool-chunk",providerInit:"src/chunks/provider-init-chunk",fileDateProviderImpl:"src/chunks/file-date-provider-impl",fileDateProviderImplExport:"src/chunks/file-date-provider-impl-export",utilsShared:"src/chunks/utils-shared-chunk",incrementalWorkers:"src/chunks/incrementalWorkers",incrementalIndexer:"src/chunks/incrementalIndexer-chunk",uiAdapters:"src/chunks/ui-adapters",gitInsights:"src/chunks/gitInsights-chunk",smartWatcherFallback:"src/chunks/smartWatcherFallback-chunk",runtimeManagement:"src/chunks/runtime-management",runtimeManagementHeavy:"src/chunks/runtime-management-heavy",teamPersistence:"src/chunks/team-persistence-chunk",teamPersistenceUI:"src/chunks/team-persistence-ui-chunk",teamPersistenceLogic:"src/chunks/team-persistence-logic-chunk",settingsCoordinatorImpl:"src/chunks/settings-coordinator-impl-chunk",logger:"src/chunks/logger-chunk",loggerImpl:"src/chunks/logger-impl-chunk"};function wa(t){return Ce[t]||null}function ba(){return Object.keys(Ce)}function ya(t){let e={};for(let[r,a]of Object.entries(Ce))e[r]=()=>t(`./${a}`);return e}var Ea=new Set(["gitInsights","reporting","templates","advancedCache","runtimeManagementHeavy","incrementalWorkers"]);dr.exports={CHUNK_MAP:Ce,WEB_EXCLUDED_CHUNKS:Ea,getChunkSourcePath:wa,getAllChunkNames:ba,generateDevLoaderMap:ya}});var Se=m((exports,module)=>{var getLogger=()=>{try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let t=dynamicRequire("./chunks/logger-chunk");if(t&&typeof t.getLogger=="function")return getLogger=t.getLogger,getLogger()}}catch{}try{return getLogger=T().getLogger,getLogger()}catch{return getLogger=()=>{var t;return{debug:((t=()=>{})==null?void 0:t.bind(console))||console.log,info:(()=>{}).bind(console),warn:(()=>{}).bind(console),error:(()=>{}).bind(console)}},getLogger()}},{CHUNK_SIZES}=Ee(),{getChunkSourcePath,getAllChunkNames}=Ke(),{registerFeatureFlagsGlobal}=ve(),{isWebEnvironment}=re(),featureLogger=null,env=typeof process<"u"&&process.env?process.env:{},DEFAULT_CHUNK_TIMEOUT_MS=Number(env.EXPLORER_DATES_CHUNK_TIMEOUT||(env.NODE_ENV==="test"?1e3:5e3)),NETWORK_ERROR_CODES=new Set(["ENOTFOUND","ECONNRESET","ECONNREFUSED","EAI_AGAIN","ETIMEDOUT","EHOSTUNREACH"]),BUILT_CHUNK_CACHE=new Map,CHUNK_METHOD_ALIASES={reporting:"exportReporting",templates:"workspaceTemplates",analysis:"analysisCommands"},DEV_CHUNK_PATH_CACHE=new Map,LAST_FEATURE_FAILURES=new Map;function getDevChunkImportPath(t){if(DEV_CHUNK_PATH_CACHE.has(t))return DEV_CHUNK_PATH_CACHE.get(t);let e=getChunkSourcePath(t);if(!e)return DEV_CHUNK_PATH_CACHE.set(t,null),null;let r=e;return r.startsWith("src/")&&(r=r.slice(4)),r.startsWith("./")||(r=`./${r}`),DEV_CHUNK_PATH_CACHE.set(t,r),r}function resolveNodeDependencies(){if(nativeDepsResolved)return!!(nativePath&&nativeFs);if(nativeDepsResolved=!0,!isNodeLikeRuntime())return!1;try{nativePath=eval("require")("path"),nativeFs=eval("require")("fs")}catch{nativePath=null,nativeFs=null}return!!(nativePath&&nativeFs)}var nativeDepsResolved=!1,nativePath=null,nativeFs=null;function isWebRuntime(){try{return isWebEnvironment()?!0:typeof process<"u"&&!1}catch{return!1}}function isNodeLikeRuntime(){var t;return typeof process<"u"&&!!((t=process.versions)!=null&&t.node)&&!isWebRuntime()}function getChunkTimeoutMs(){return DEFAULT_CHUNK_TIMEOUT_MS>0?DEFAULT_CHUNK_TIMEOUT_MS:0}function logFeature(t,e,r){featureLogger||(featureLogger=getLogger());let a=featureLogger;typeof a[t]=="function"?a[t](e,r):a.info(e,r)}function logFeatureDisabled(t,e){logFeature("info","Feature disabled via configuration",{feature:t,savedKB:e&&CHUNK_SIZES[e]!==void 0?CHUNK_SIZES[e]:void 0})}function isLikelyNetworkIssue(t){if(!t)return!1;if(t.code&&NETWORK_ERROR_CODES.has(t.code))return!0;let e=(t.message||"").toLowerCase();return e.includes("network")||e.includes("fetch")||e.includes("timed out")}function runWithChunkTimeout(t,e){let r=getChunkTimeoutMs(),a=()=>{try{return Promise.resolve(t())}catch(n){return Promise.reject(n)}};return r?new Promise((n,o)=>{let s=!1,i=setTimeout(()=>{if(s)return;s=!0;let l=new Error(`Chunk "${e}" load timed out after ${r}ms`);l.code="CHUNK_TIMEOUT",o(l)},r);a().then(l=>{s||(s=!0,clearTimeout(i),n(l))}).catch(l=>{s||(s=!0,clearTimeout(i),o(l))})}):a()}function logResolverFailure(t,e){if(!e)return;let r={chunkName:t,error:e.message,code:e.code,networkIssue:isLikelyNetworkIssue(e),timedOut:e.code==="CHUNK_TIMEOUT"},a=r.networkIssue||r.timedOut?"warn":"error";logFeature(a,"Chunk resolver failed",r)}function tryLoadBuiltChunk(t){if(!t||!resolveNodeDependencies()||typeof(nativeFs==null?void 0:nativeFs.existsSync)!="function")return null;if(BUILT_CHUNK_CACHE.has(t))return BUILT_CHUNK_CACHE.get(t);let e=[];typeof __dirname=="string"&&nativePath&&(e.push(nativePath.join(__dirname,"chunks",`${t}.js`)),e.push(nativePath.join(__dirname,"..","dist","chunks",`${t}.js`)));for(let r of e)try{if(!r||!nativeFs.existsSync(r))continue;let a=require(r),n=(a==null?void 0:a.default)||a;return BUILT_CHUNK_CACHE.set(t,n||null),n&&logFeature("info","Loaded chunk via built artifact fallback",{chunkName:t,path:r}),n}catch(a){logFeature("warn","Built chunk fallback failed",{chunkName:t,path:r,error:a.message})}return BUILT_CHUNK_CACHE.set(t,null),null}function tryRequireDevChunk(t){if(isWebRuntime())return null;let e=getDevChunkImportPath(t);if(!e)return null;try{let r=require(e);return(r==null?void 0:r.default)||r}catch(r){(r.code!=="MODULE_NOT_FOUND"||typeof r.message=="string"&&!r.message.includes(e))&&logFeature("debug","Dev chunk require failed",{chunkName:t,importPath:e,error:r.message})}return null}function tryRequireLocalBuiltChunk(t){if(isWebRuntime())return null;let e=`./chunks/${t}`;try{let r=require(e);return(r==null?void 0:r.default)||r}catch(r){r.code==="MODULE_NOT_FOUND"||logFeature("debug","Local chunk require failed",{chunkName:t,importPath:e,error:r.message})}return null}function getSavingsKey(t){return t in CHUNK_SIZES?t:CHUNK_METHOD_ALIASES[t]||null}function announceChunkSavings(t){let e=getSavingsKey(t);if(!e)return;let r=CHUNK_SIZES[e];if(!r)return;let n=`\u{1F4BE} ${e===t||!t?e:`${e} (requested as "${t}")`} chunk unavailable - keeping the feature disabled is saving ~${r}KB`;logFeature("info","Chunk savings applied",{chunkName:e,requestedName:t,savedKB:r})}var getFeatureConfig=()=>{try{let e=require("vscode").workspace.getConfiguration("explorerDates"),r=isWebRuntime(),a=n=>r?!1:n;return{enableOnboarding:e.get("enableOnboardingSystem",!0),enableExportReporting:a(e.get("enableExportReporting",!0)),enableWorkspaceTemplates:a(e.get("enableWorkspaceTemplates",!0)),enableAnalysisCommands:e.get("enableAnalysisCommands",!0),enableAdvancedCache:a(e.get("enableAdvancedCache",!0)),enableWorkspaceIntelligence:a(e.get("enableWorkspaceIntelligence",!0)),enableIncrementalWorkers:a(e.get("enableIncrementalWorkers",!1)),enableGitInsights:a(e.get("enableGitInsights",!0)),enableExtensionApi:e.get("enableExtensionApi",!0)}}catch{let t=isWebRuntime(),e=r=>t?!1:r;return{enableOnboarding:!0,enableExportReporting:e(!0),enableWorkspaceTemplates:e(!0),enableAnalysisCommands:!0,enableAdvancedCache:e(!0),enableWorkspaceIntelligence:e(!0),enableIncrementalWorkers:e(!1),enableGitInsights:e(!0),enableExtensionApi:!0}}},featureLoaders=new Map,chunkResolver=null;function setFeatureChunkResolver(t){if(t&&typeof t!="function")throw new Error("Feature chunk resolver must be a function");chunkResolver=t||null}function registerFeatureLoader(t,e){if(typeof e!="function")throw new Error(`Feature loader for "${t}" must be a function`);featureLoaders.set(t,e)}function unregisterFeatureLoader(t){featureLoaders.delete(t)}function clearFeatureLoaders(){featureLoaders.clear()}async function loadFeatureModule(t){LAST_FEATURE_FAILURES.delete(t);let e=featureLoaders.get(t);if(!e&&chunkResolver&&(e=()=>chunkResolver(t)),!e)return logFeature("warn","No loader registered for feature",{feature:t}),null;try{return await runWithChunkTimeout(()=>e(),t)}catch(r){return LAST_FEATURE_FAILURES.set(t,r),logFeature("warn","Feature loader failed",{feature:t,error:r.message,code:r.code,networkIssue:isLikelyNetworkIssue(r)}),announceChunkSavings(t),null}}function getFeatureLoadFailure(t){return LAST_FEATURE_FAILURES.get(t)}function registerDefaultLoaders(){getAllChunkNames().forEach(e=>{featureLoaders.has(e)||registerFeatureLoader(e,createDefaultLoader(e))})}function createDefaultLoader(t){return async()=>{if(chunkResolver&&typeof chunkResolver=="function")try{let n=await runWithChunkTimeout(()=>chunkResolver(t),t);if(n)return n;logFeature("info","Chunk resolver returned no module",{chunkName:t})}catch(n){logResolverFailure(t,n)}let e=tryRequireDevChunk(t);if(e)return e;let r=tryRequireLocalBuiltChunk(t);if(r)return r;let a=tryLoadBuiltChunk(t);return a||(logFeature("warn","No built artifact available for chunk",{chunkName:t}),null)}}var featureFlags={async onboarding(){return getFeatureConfig().enableOnboarding?loadFeatureModule("onboarding"):(logFeatureDisabled("onboarding","onboarding"),null)},async exportReporting(){return getFeatureConfig().enableExportReporting?loadFeatureModule("reporting"):(logFeatureDisabled("exportReporting","exportReporting"),null)},async workspaceTemplates(){return getFeatureConfig().enableWorkspaceTemplates?loadFeatureModule("templates"):(logFeatureDisabled("workspaceTemplates","workspaceTemplates"),null)},async analysisCommands(){return getFeatureConfig().enableAnalysisCommands?loadFeatureModule("analysis"):(logFeatureDisabled("analysisCommands","analysisCommands"),null)},async advancedCache(){return getFeatureConfig().enableAdvancedCache?loadFeatureModule("advancedCache"):(logFeatureDisabled("advancedCache","advancedCache"),null)},async workspaceIntelligence(){return getFeatureConfig().enableWorkspaceIntelligence?loadFeatureModule("workspaceIntelligence"):(logFeatureDisabled("workspaceIntelligence","workspaceIntelligence"),null)},async incrementalWorkers(){return getFeatureConfig().enableIncrementalWorkers?loadFeatureModule("incrementalWorkers"):(logFeatureDisabled("incrementalWorkers","incrementalWorkers"),null)},async extensionApi(){return getFeatureConfig().enableExtensionApi?loadFeatureModule("extensionApi"):(logFeatureDisabled("extensionApi","extensionApi"),null)},async uiAdapters(){return loadFeatureModule("uiAdapters")},async batchProcessor(){return loadFeatureModule("batchProcessor")},async decorationsAdvanced(){return loadFeatureModule("decorationsAdvanced")},async decorationsProviderImpl(){return loadFeatureModule("decorationsProviderImpl")},async gitInsights(){return getFeatureConfig().enableGitInsights?loadFeatureModule("gitInsights"):(logFeatureDisabled("gitInsights","gitInsights"),null)},isEnabled(t){let e=getFeatureConfig();return{onboarding:e.enableOnboarding,exportReporting:e.enableExportReporting,workspaceTemplates:e.enableWorkspaceTemplates,analysisCommands:e.enableAnalysisCommands,advancedCache:e.enableAdvancedCache,workspaceIntelligence:e.enableWorkspaceIntelligence,incrementalWorkers:e.enableIncrementalWorkers,extensionApi:e.enableExtensionApi}[t]??!0},getEnabledFeatures(){let t=getFeatureConfig(),e=[];return t.enableOnboarding&&e.push("onboarding"),t.enableExportReporting&&e.push("exportReporting"),t.enableWorkspaceTemplates&&e.push("workspaceTemplates"),t.enableAnalysisCommands&&e.push("analysisCommands"),t.enableAdvancedCache&&e.push("advancedCache"),t.enableWorkspaceIntelligence&&e.push("workspaceIntelligence"),t.enableIncrementalWorkers&&e.push("incrementalWorkers"),t.enableExtensionApi&&e.push("extensionApi"),e},calculateSavings(){let t=getFeatureConfig(),e=0;return t.enableOnboarding||(e+=34),t.enableExportReporting||(e+=17),t.enableExtensionApi||(e+=15),t.enableWorkspaceTemplates||(e+=14),t.enableWorkspaceIntelligence||(e+=12),t.enableAnalysisCommands||(e+=8),t.enableAdvancedCache||(e+=5),e}};for(let[t,e]of Object.entries(CHUNK_METHOD_ALIASES))!featureFlags[t]&&typeof featureFlags[e]=="function"&&(featureFlags[t]=(...r)=>featureFlags[e](...r));function calculateSavings(t){t||(t=getFeatureConfig());let e=267,r=0;t.enableOnboarding||(r+=34),t.enableExportReporting||(r+=17),t.enableExtensionApi||(r+=15),t.enableWorkspaceTemplates||(r+=14),t.enableWorkspaceIntelligence||(r+=12),t.enableIncrementalWorkers||(r+=19),t.enableAnalysisCommands||(r+=8),t.enableAdvancedCache||(r+=5);let a=e-r,n=r>0?Math.round(r/e*100):0;return{baseSize:`${e}KB`,totalSavings:`${r}KB`,optimizedSize:`${a}KB`,percentage:n}}registerDefaultLoaders();var exportedFeatureFlags={...featureFlags,getFeatureConfig,calculateSavings,registerFeatureLoader,setFeatureChunkResolver,unregisterFeatureLoader,clearFeatureLoaders,loadFeatureModule,getFeatureLoadFailure,registerDefaultLoaders};registerFeatureFlagsGlobal(exportedFeatureFlags);module.exports=exportedFeatureFlags});var wr=m((so,hr)=>{var De=require("vscode");function gr(){try{let t=De.workspace.workspaceFolders;return!t||t.length===0?!1:t.every(e=>e.uri.scheme!=="file")}catch{return!1}}function pr(){try{let t=De.workspace.workspaceFolders;return!t||t.length===0?!1:t.some(e=>e.uri.scheme!=="file")}catch{return!1}}function fr(){var t,e,r;try{return((r=(e=(t=De.workspace.workspaceFolders)==null?void 0:t[0])==null?void 0:e.uri)==null?void 0:r.scheme)||"file"}catch{return"file"}}function mr(){try{let t=De.workspace.workspaceFolders||[],e=new Set(t.map(r=>r.uri.scheme||"file"));return Array.from(e)}catch{return["file"]}}function va(t){if(!t)return!1;try{return typeof t=="string"?t.startsWith("file://")||!t.includes("://"):t.scheme==="file"||!t.scheme}catch{return!1}}function Ca(t){return!!t}function Sa(){let t=gr(),e=pr(),r=mr(),a=fr(),n="local",o="Local file system workspace";return t?(n="virtual",a==="vscode-vfs"?o="VS Code for Web (browser-based)":a==="github"?o="GitHub Repositories (remote)":o=`Virtual workspace (${a} scheme)`):e&&(n="mixed",o="Mixed local and virtual folders"),{type:n,description:o,primaryScheme:a,schemes:r,isVirtual:t,hasVirtual:e}}hr.exports={isVirtualWorkspace:gr,hasVirtualFolders:pr,getPrimaryWorkspaceScheme:fr,getWorkspaceSchemes:mr,canUseNodeFS:va,canUseVSCodeFS:Ca,getWorkspaceTypeInfo:Sa}});var Cr=m((io,vr)=>{var{normalizePath:Ve,getUriPath:Da}=ue(),{getLogger:ka}=T(),oe=typeof process<"u"&&process.env?process.env:{},Ta=ka(),se=240,Be=255,br=/[\x00-\x1f\x7f<>:"|?*]/g,Aa=/[\x00-\x1f\x7f<>:"|?*]/,xa=[/\.\./,/\.\.[\\/]/,/[\\/]\.\./,/^\.\.$/,/^\.\.[\\/]/,/[\\/]\.\.$/],yr=new Set(["CON","PRN","AUX","NUL","COM1","COM2","COM3","COM4","COM5","COM6","COM7","COM8","COM9","LPT1","LPT2","LPT3","LPT4","LPT5","LPT6","LPT7","LPT8","LPT9"]),Er=new Set([".exe",".scr",".bat",".cmd",".pif",".vbs",".js",".jar",".com",".msi",".dll",".dmg",".pkg",".deb",".rpm"]),Ra=new Set([".js",".jsx",".ts",".tsx",".mjs",".cjs",".py",".rb",".rs",".go",".php",".java",".kt",".swift",".cs",".c",".cpp",".h",".hpp",".html",".css",".scss",".less",".json",".jsonc",".md",".mdx",".txt",".sh",".bash",".yml",".yaml"]),Fa=()=>oe.EXPLORER_DATES_TEST_MODE==="1"||oe.NODE_ENV==="test"||oe.VSCODE_TEST==="1"?"test":oe.EXPLORER_DATES_DEV_MODE==="1"||oe.NODE_ENV==="development"?"development":"production",Z=class{static hasPathTraversal(e){let r=this.f(e);if(!r||typeof r!="string")return!1;let a=Ve(r);return xa.some(n=>n.test(a))}static hasDangerousChars(e){let r=this.f(e);return!r||typeof r!="string"?!1:Aa.test(r)}static isWindowsReservedName(e){if(!e||typeof e!="string")return!1;let r=e.split(".")[0].toUpperCase();return yr.has(r)}static isSuspiciousExtension(e,r={}){let{workspaceContext:a=!0}=r;if(!e||typeof e!="string")return!1;let n=e.toLowerCase(),o=n.startsWith(".")?n:`.${n}`;return a&&Ra.has(o)?!1:Er.has(o)}static isPathTooLong(e){let r=this.f(e);return!r||typeof r!="string"?!1:r.length>se}static isFilenameTooLong(e){return!e||typeof e!="string"?!1:e.length>Be}static validatePath(e,r={}){let{allowSuspiciousExtensions:a=!1,allowWindowsReservedNames:n=!1,strictLength:o=!0,workspaceContext:s=!0}=r,i=this.f(e),l=[],c=[];if(!i||typeof i!="string")return{isValid:!1,path:i,issues:["Invalid or empty path"],warnings:[],isSafe:!1};this.hasPathTraversal(i)&&l.push("Path contains directory traversal attempts"),this.hasDangerousChars(i)&&l.push("Path contains dangerous characters"),o&&this.isPathTooLong(i)&&l.push(`Path exceeds maximum length (${se})`);let u=i.split(/[/\\]/).pop()||"";o&&this.isFilenameTooLong(u)&&l.push(`Filename exceeds maximum length (${Be})`),!n&&this.isWindowsReservedName(u)&&c.push("Filename is a Windows reserved name");let d=u.includes(".")?u.split(".").pop():"";return!a&&this.isSuspiciousExtension(d,{workspaceContext:s})&&c.push("File extension is potentially suspicious"),{isValid:l.length===0,path:i,filename:u,extension:d,issues:l,warnings:c,isSafe:l.length===0&&c.length===0}}static sanitizePath(e,r={}){let{replacementChar:a="_",preserveExtension:n=!0}=r,o=this.f(e);if(!o||typeof o!="string")return"";o=o.replace(/\x00/g,"");let s=o.startsWith("/"),i=Ve(o).split("/").filter(Boolean),l=[];for(let c of i){if(c===".."){l.length>0&&l.pop();continue}c!=="."&&l.push(c)}if(o=(s?"/":"")+l.join("/"),o=o.replace(br,a),n){let c=o.split("/"),u=c[c.length-1];if(u&&this.isWindowsReservedName(u)){let d=u.split(".");d[0]=d[0]+"_safe",c[c.length-1]=d.join("."),o=c.join("/")}}return o.length>se&&(o=o.substring(0,se),Ta.warn("Path truncated due to length:",o)),o}static isWithinBoundaries(e,r=[]){let a=this.f(e);if(!a||!Array.isArray(r)||r.length===0)return!1;let n=a.split("/").filter(Boolean),o=[];for(let i of n)i===".."?o.length>0&&o.pop():i!=="."&&o.push(i);let s="/"+o.join("/");return r.some(i=>{let l=Ve(i);return s.startsWith(l)})}static validateRegexPattern(e){if(!e||typeof e!="string")return{isValid:!1,issue:"Invalid pattern"};let r=[/\([^)]*\+[^)]*\)\+/,/\([^)]*\*[^)]*\)\*/,/\([^)]*\+[^)]*\)\*/,/\([^)]*\*[^)]*\)\+/,/\+.*\*|{\d+,}.*\*/,/\([^|]*\|[^)]*\)\*/];for(let a of r)if(a.test(e))return{isValid:!1,issue:"Pattern may cause catastrophic backtracking (ReDoS)"};try{return new RegExp(e),{isValid:!0}}catch(a){return{isValid:!1,issue:`Invalid regex syntax: ${a.message}`}}}static f(e){if(!e)return"";if(typeof e=="string")return e;try{return Da(e)}catch{return String(e)}}},Ge=class{static validateFileUri(e,r=[]){if(!e||typeof e!="object")return{isValid:!1,issue:"Invalid URI object"};if(e.scheme!=="file"&&e.scheme!=="vscode-vfs")return{isValid:!1,issue:`Unsupported URI scheme: ${e.scheme}`};let a=Z.validatePath(e);return a.isValid?r.length>0&&!Z.isWithinBoundaries(e,r)?{isValid:!1,issue:"Path is outside allowed workspace boundaries"}:{isValid:!0,warnings:a.warnings}:{isValid:!1,issue:`Path validation failed: ${a.issues.join(", ")}`}}static validateExclusionPatterns(e){if(!Array.isArray(e))return{isValid:!1,issue:"Patterns must be an array"};let r=[],a=[];for(let n of e){if(typeof n!="string"){a.push(`Invalid pattern type: ${typeof n}`);continue}let o=n.replace(/\./g,"\\.").replace(/\*/g,".*").replace(/\?/g,"."),s=Z.validateRegexPattern(o);r.push({pattern:n,isValid:s.isValid,issue:s.issue}),s.isValid||a.push(`Pattern "${n}": ${s.issue}`)}return{isValid:a.length===0,results:r,issues:a}}};vr.exports={SecurityValidator:Z,SecureFileOperations:Ge,detectSecurityEnvironment:Fa,MAX_SAFE_PATH_LENGTH:se,MAX_SAFE_FILENAME_LENGTH:Be,DANGEROUS_PATH_CHARS:br,WINDOWS_RESERVED_NAMES:Array.from(yr),SUSPICIOUS_EXTENSIONS:Array.from(Er)}});var Sr=m((exports,module)=>{var vscode=require("vscode"),getLogger=()=>{try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let t=dynamicRequire("./chunks/logger-chunk");if(t&&typeof t.getLogger=="function")return getLogger=t.getLogger,getLogger()}}catch{}try{return getLogger=T().getLogger,getLogger()}catch{return getLogger=()=>{var t;return{debug:((t=()=>{})==null?void 0:t.bind(console))||console.log,info:(()=>{}).bind(console),warn:(()=>{}).bind(console),error:(()=>{}).bind(console)}},getLogger()}},{fileSystem}=me(),env=typeof process<"u"&&process.env?process.env:{},{formatFileSize}=Pe(),getFileName=p=>{try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let t=null;try{t=dynamicRequire("../chunks/utils-shared-chunk")}catch{}try{t||(t=dynamicRequire("./chunks/utils-shared-chunk"))}catch{}try{t||(t=dynamicRequire("./chunks/path-utils-chunk"))}catch{}if(t&&typeof t.getFileName=="function")return getFileName=t.getFileName,getFileName(p)}}catch{}try{let e=String(p||"").replace(/\\/g,"/"),r=e.lastIndexOf("/");return r===-1?e:e.substring(r+1)}catch{return"unknown"}},getExtension=p=>{try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let t=null;try{t=dynamicRequire("../chunks/utils-shared-chunk")}catch{}try{t||(t=dynamicRequire("./chunks/utils-shared-chunk"))}catch{}try{t||(t=dynamicRequire("./chunks/path-utils-chunk"))}catch{}if(t&&typeof t.getExtension=="function")return getExtension=t.getExtension,getExtension(p)}}catch{}try{let t=String(p||""),e=t.lastIndexOf(".");return e<=0?"":t.substring(e).toLowerCase()}catch{return""}},buildCacheKey=p=>{try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let t=null;try{t=dynamicRequire("../chunks/utils-shared-chunk")}catch{}try{t||(t=dynamicRequire("./chunks/utils-shared-chunk"))}catch{}try{t||(t=dynamicRequire("./chunks/path-utils-chunk"))}catch{}if(t&&typeof t.getCacheKey=="function")return buildCacheKey=t.getCacheKey,buildCacheKey(p)}}catch{}return String(p||"").toLowerCase().replace(/\\/g,"/")},normalizePath=input=>{try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let t=null;try{t=dynamicRequire("../chunks/utils-shared-chunk")}catch{}try{t||(t=dynamicRequire("./chunks/utils-shared-chunk"))}catch{}try{t||(t=dynamicRequire("./chunks/path-utils-chunk"))}catch{}if(t&&typeof t.normalizePath=="function")return normalizePath=t.normalizePath,normalizePath(input)}}catch{}return String(input||"").replace(/\\/g,"/")},getUriPath=(target="")=>{try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let t=null;try{t=dynamicRequire("../chunks/utils-shared-chunk")}catch{}try{t||(t=dynamicRequire("./chunks/utils-shared-chunk"))}catch{}try{t||(t=dynamicRequire("./chunks/path-utils-chunk"))}catch{}if(t&&typeof t.getUriPath=="function")return getUriPath=t.getUriPath,getUriPath(target)}}catch{}if(!target)return"";if(typeof target=="string")return target;if(typeof target.fsPath=="string"&&target.fsPath.length>0)return target.fsPath;if(typeof target.path=="string"&&target.path.length>0)return target.path;if(typeof target.toString=="function")try{return target.toString(!0)}catch{return target.toString()}return String(target)},{DEFAULT_CACHE_TIMEOUT,DEFAULT_MAX_CACHE_SIZE,GLOBAL_STATE_KEYS,DEFAULT_DECORATION_POOL_SIZE,DEFAULT_FLYWEIGHT_CACHE_SIZE,WORKSPACE_SCALE_EXTREME_THRESHOLD}=$(),{isWebEnvironment}=re(),{getSettingsCoordinator}=ae(),{SecurityValidator,SecureFileOperations,detectSecurityEnvironment}=Cr(),DISABLE_GIT_FEATURES=env.EXPLORER_DATES_DISABLE_GIT_FEATURES==="1",IS_WEB_ENV=isWebEnvironment()||env.VSCODE_WEB==="true",nodePath=null;try{IS_WEB_ENV||(nodePath=require("path"))}catch{nodePath=null}var pathCompat={basename:t=>{if(!t)return"";try{if(!IS_WEB_ENV)return require("path").basename(t)}catch{let e=t.replace(/\\/g,"/"),r=e.lastIndexOf("/");return r===-1?e:e.substring(r+1)}},dirname:t=>{if(!t)return".";try{if(!IS_WEB_ENV)return require("path").dirname(t)}catch{let e=t.replace(/\\/g,"/"),r=e.lastIndexOf("/");return r===-1?".":e.substring(0,r)}}};(async()=>{try{let e=await Se().decorationsStatic();e&&(e.basename&&e.dirname&&(pathCompat.basename=e.basename,pathCompat.dirname=e.dirname),e.describeFile&&(exports.$e=e.describeFile))}catch{}})();var CONFIG_DEFAULT_CACHE_TIMEOUT=3e4,CACHE_NAMESPACE_SEPARATOR="::",DEFAULT_DYNAMIC_WATCHER_LIMIT=Number(env.EXPLORER_DATES_MAX_DYNAMIC_WATCHERS||200),DEFAULT_WATCHER_INACTIVITY_MS=Number(env.EXPLORER_DATES_WATCHER_TTL_MS||600*1e3),DEFAULT_SMART_WATCHER_EXTENSIONS=["js","ts","json","md","py","java"],SMART_WATCHER_PRIORITY=new Map([["src",100],["lib",65],["test",30]]),WORKSPACE_SCAN_TIMEOUT_MS=Number(env.EXPLORER_DATES_WORKSPACE_SCAN_TIMEOUT||7e3),WORKSPACE_SCAN_TIMEOUT_FALLBACK_COUNT=WORKSPACE_SCALE_EXTREME_THRESHOLD,VIEWPORT_DEFAULT_WINDOW_MS=300*1e3,DEFAULT_VIEWPORT_HISTORY_LIMIT=Number(env.EXPLORER_DATES_VIEWPORT_HISTORY_LIMIT||400),FEATURE_LEVELS=["full","enhanced","standard","minimal"],DEFAULT_INDEXER_MAX_FILES=Math.max(100,Number(env.EXPLORER_DATES_INDEXER_MAX_FILES||2e3)),SECURITY_EXTRA_PATHS_ENV="EXPLORER_DATES_SECURITY_EXTRA_PATHS",DEFAULT_SECURITY_THROTTLE_MS=Number(env.EXPLORER_DATES_SECURITY_WARNING_THROTTLE_MS||5e3),SECURITY_WARNING_CACHE_LIMIT=Number(env.EXPLORER_DATES_SECURITY_WARNING_CACHE||500),DEFAULT_SECURITY_MAX_WARNINGS=Number(env.EXPLORER_DATES_SECURITY_MAX_WARNINGS_PER_FILE??1),describeFile=(t="")=>{try{let e=typeof t=="string"?t:getUriPath(t),r=normalizePath(e);return getFileName(r)||r||"unknown"}catch{return"unknown"}};(async()=>{try{let e=await Se().decorationsStatic();e&&typeof e.describeFile=="function"&&(describeFile=e.describeFile)}catch{}})();var LazyHierarchicalDecorationCache=class{constructor(){this.l=new Map}get size(){return this.l.size}get bucketCount(){return 0}clear(){this.l.clear()}get(e){return this.l.get(e)}set(e,r){this.l.set(e,r)}delete(e){return this.l.delete(e)}*entries(){yield*this.l.entries()}*keys(){yield*this.l.keys()}*values(){yield*this.l.values()}[Symbol.iterator](){return this.entries()}enforceLimit(){return 0}},FileDateDecorationProviderImpl=class{constructor(...args){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let t=dynamicRequire("./chunks/file-date-provider-impl");if(t&&typeof t.FileDateDecorationProviderImpl=="function")return new t.FileDateDecorationProviderImpl(...args);if(t&&typeof t.FileDateDecorationProvider=="function")return new t.FileDateDecorationProvider(...args)}}catch(t){}throw new Error("FileDateDecorationProvider implementation is not available in this environment")}},FileDateDecorationProvider=class{constructor(...args){let loaderError=null;try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function")try{let t=null;try{t=dynamicRequire("./chunks/file-date-provider-impl-export")}catch{}if(t){let r=t.FileDateDecorationProvider||t.FileDateDecorationProviderImpl||t.default;return typeof r=="function"?new r(...args):new FileDateDecorationProviderImpl(...args)}t=dynamicRequire("./chunks/file-date-provider-impl");let e=t&&(t.FileDateDecorationProvider||t.FileDateDecorationProviderImpl||t.default);if(typeof e=="function")return new e(...args)}catch(t){loaderError=t}try{let t=null;try{t=require.resolve("./chunks/file-date-provider-impl-export",{paths:[__dirname]})}catch{}t||(t=require.resolve("./chunks/file-date-provider-impl",{paths:[__dirname]}));let e=require(t),r=e&&(e.FileDateDecorationProvider||e.FileDateDecorationProviderImpl||e.default);if(t&&t.endsWith("file-date-provider-impl-export.js")&&!r)return new FileDateDecorationProviderImpl(...args);if(typeof r=="function")return new r(...args)}catch(t){loaderError=loaderError||t}}catch(t){loaderError=loaderError||t}if(loaderError&&loaderError.message){let t=`FileDateDecorationProvider implementation is unavailable: ${loaderError.message}`;throw new Error(t)}throw new Error("FileDateDecorationProvider implementation is unavailable")}};module.exports={FileDateDecorationProvider,FileDateDecorationProviderImpl}});var vscode=require("vscode"),env=typeof process<"u"&&process.env?process.env:{},{getLogger}=T(),l10n;async function ensureLocalization(){return l10n||(l10n=(await Promise.resolve().then(()=>Q(te()))).getLocalization()),l10n}var{fileSystem}=me(),{registerCoreCommands}=qt(),{registerOnboardingCommands}=zt(),{registerMigrationCommands}=Yt(),{commandCancellation,commandEmpty,commandSuccess,isCommandOutcome,OUTCOME_CATEGORIES}=We(),{initializeTemplateStore}=Zt(),{SettingsMigrationManager}=er(),{ExtensionError,ERROR_CODES,ChunkLoadError,handleChunkFailure}=Re(),{isWebDiagnosticsEnabled,diagLog,recordCommandRegistration,recordCommandInvocation,recordCommandResult,recordChunkEvent,recordProviderEvent,getWebDiagnosticsState}=Y(),ensureDate;try{let t=pe();t&&(ensureDate=t.ensureDate)}catch{}ensureDate||(ensureDate=_e().ensureDate);var{WEB_CHUNK_GLOBAL_KEY,LEGACY_WEB_CHUNK_GLOBAL_KEY}=$(),isWebEnvironment=()=>{var t,e;try{typeof process<"u"}catch{}try{return((t=vscode==null?void 0:vscode.env)==null?void 0:t.uiKind)===((e=vscode==null?void 0:vscode.UIKind)==null?void 0:e.Web)}catch{return!1}};if(isWebEnvironment()&&typeof globalThis<"u"&&!globalThis.O)try{globalThis.O=He()}catch{}var nodeFs=null,nodePath=null,webTextDecoder=typeof TextDecoder=="function"?new TextDecoder("utf-8"):null;if(!isWebEnvironment()){try{nodeFs=require("fs")}catch{nodeFs=null}try{nodePath=require("path")}catch{nodePath=null}}var AUTO_SUGGESTION_DELAY_MS=3e3;function getCriticalChunks(){return isWebEnvironment()?[]:["incrementalWorkers"]}function resolveDefaultDistPath(){return!nodePath||typeof nodePath.basename!="function"||typeof nodePath.join!="function"?null:nodePath.basename(__dirname)==="dist"?__dirname:nodePath.join(__dirname,"dist")}var DEFAULT_DIST_PATH=resolveDefaultDistPath(),fileDateProvider,logger,runtimeAutoSuggestionTimer=null,activeRuntimeManager=null,activeTeamPersistenceManager=null,_warnedWorkspaces=new Set,ANALYSIS_WARNING_WORKSPACE_KEY="explorerDates.analysisCommandsDisabledWarningByWorkspace";if(typeof globalThis<"u"&&!globalThis.k)try{globalThis.k=new WeakMap}catch{globalThis.k=null}function getActiveLogger(){return logger||(logger=getLogger()),logger}function getWorkspaceId(){var e,r;let t=(e=vscode.workspace.workspaceFolders)==null?void 0:e[0];return((r=t==null?void 0:t.uri)==null?void 0:r.toString())||"global"}function hasShownAnalysisWarning(t){var o;let e=getWorkspaceId(),r=(o=t==null?void 0:t.globalState)!=null&&o.get?t.globalState.get(ANALYSIS_WARNING_WORKSPACE_KEY,{}):{},a=typeof globalThis<"u"?globalThis.k:null,n=a&&a.has(t)?a.get(t):{};return!!r[e]||!!n[e]||_warnedWorkspaces.has(e)}async function setAnalysisWarningShown(t,e){var o;let r=getWorkspaceId(),a=(o=t==null?void 0:t.globalState)!=null&&o.get?t.globalState.get(ANALYSIS_WARNING_WORKSPACE_KEY,{}):{};a[r]=e,e?_warnedWorkspaces.add(r):_warnedWorkspaces.delete(r);let n=typeof globalThis<"u"?globalThis.k:null;if(n&&t)try{n.set(t,a)}catch{}await t.globalState.update(ANALYSIS_WARNING_WORKSPACE_KEY,a)}var{registerFeatureFlagsGlobal}=ve(),featureFlagsModule=Se();registerFeatureFlagsGlobal(featureFlagsModule);var featureFlags=featureFlagsModule,{setFeatureChunkResolver}=featureFlagsModule,{CHUNK_MAP,generateDevLoaderMap}=Ke(),sourceChunkLoader=(()=>{if(typeof process>"u"||env.NODE_ENV==="production")return null;try{let localRequire=eval("require");return t=>{var e;try{let r=generateDevLoaderMap(localRequire),a=(e=r[t])==null?void 0:e.call(r);return(a==null?void 0:a.default)||a||null}catch(r){let a=new ExtensionError(ERROR_CODES.CHUNK_LOAD_FAILED,`Source chunk fallback failed for ${t}`,{chunkName:t,source:"development",error:r.message});return getActiveLogger().warn(a.message,a.context),null}}}catch{return null}})(),chunkLoader={loadedChunks:new Map,distPath:DEFAULT_DIST_PATH,extensionUri:null,webChunkPromises:new Map,ee:new Set,N:new Set,c:null,initialize(t){nodePath&&(typeof(t==null?void 0:t.asAbsolutePath)=="function"?this.distPath=t.asAbsolutePath("dist"):t!=null&&t.extensionPath&&(this.distPath=nodePath.join(t.extensionPath,"dist"))),t!=null&&t.extensionUri&&(this.extensionUri=t.extensionUri),this.c||(this.c=this.Fe())},async loadChunk(t){var e;if(this.loadedChunks.has(t))return this.loadedChunks.get(t);try{isWebDiagnosticsEnabled()&&recordChunkEvent(t,"load:start");let r=isWebEnvironment()?null:this._e(t);if(isWebEnvironment()){let a=((e=this.$())==null?void 0:e[t])??null;return a&&(this.loadedChunks.set(t,a),getActiveLogger().info("Chunk loaded",{chunkName:t,target:"web"}),isWebDiagnosticsEnabled()&&recordChunkEvent(t,"load:success")),a}return r&&(this.loadedChunks.set(t,r),getActiveLogger().info("Chunk loaded",{chunkName:t,target:"node"}),isWebDiagnosticsEnabled()&&recordChunkEvent(t,"load:success")),r}catch(r){isWebDiagnosticsEnabled()&&recordChunkEvent(t,"load:failure",r);let a=r instanceof ExtensionError?r:new ExtensionError(ERROR_CODES.CHUNK_LOAD_FAILED,`Failed to load chunk ${t}`,{chunkName:t,target:isWebEnvironment()?"web":"node",error:r==null?void 0:r.message});return getActiveLogger().warn(a.message,a.context),null}},assertChunkArtifacts(t=[]){if(!nodeFs||!this.distPath||!Array.isArray(t)||t.length===0)return;let e=t.filter(r=>!this.Pe(r));if(e.length>0){let r=new ChunkLoadError(e.join(", "),"missing built artifacts",{recoverable:!1,context:{chunkNames:e,distPath:this.distPath,fix:'Run "npm run package-chunks" before packaging or testing.'}});throw handleChunkFailure(e.join(", "),r,{userFacing:!0}),r}},Pe(t){if(!nodeFs||!this.distPath)return!0;let e=nodePath.join(this.distPath,"chunks",`${t}.js`),r=nodePath.join(this.distPath,"web-chunks",`${t}.js`);return isWebEnvironment()?nodeFs.existsSync(r):nodeFs.existsSync(e)},_e(t){if(nodeFs&&nodePath&&this.distPath){let e=nodePath.join(this.distPath,"chunks",`${t}.js`);if(nodeFs.existsSync(e))try{let r=require(e);return r!=null&&r.default&&(r=r.default),r}catch(r){let a=new ExtensionError(ERROR_CODES.CHUNK_LOAD_FAILED,`Failed to require built chunk ${t}`,{chunkName:t,path:e,error:r.message});getActiveLogger().warn(a.message,a.context)}}return sourceChunkLoader?sourceChunkLoader(t):(this.te(t),null)},async T(t){if(!this.extensionUri){let e=new ExtensionError(ERROR_CODES.CHUNK_LOAD_FAILED,"Missing extensionUri for web chunk loading",{chunkName:t});return getActiveLogger().warn(e.message,e.context),null}if(!this.webChunkPromises.has(t)){let e=(async()=>{await this.Me(t);let r=this.$(),a=r==null?void 0:r[t];if(!a)throw new Error(`Web chunk ${t} failed to register`);return a})();this.webChunkPromises.set(t,e)}return this.webChunkPromises.get(t)},async Me(t){var r;if(this.ee.has(t))return;let e=vscode.Uri.joinPath(this.extensionUri,"dist","web-chunks",`${t}.js`);if(!((r=vscode.workspace)!=null&&r.fs)||!webTextDecoder)throw new Error("Workspace FS or TextDecoder unavailable for web chunk loading");try{let a=await vscode.workspace.fs.readFile(e),n=webTextDecoder.decode(a),o=i=>this.We(i);new Function("require",n).call(globalThis,o),this.re(),this.ee.add(t)}catch(a){throw this.te(t),a}},$(){let t=globalThis[WEB_CHUNK_GLOBAL_KEY]||globalThis[LEGACY_WEB_CHUNK_GLOBAL_KEY]||null;return t&&this.re(),t},re(){let t=globalThis[WEB_CHUNK_GLOBAL_KEY]||globalThis[LEGACY_WEB_CHUNK_GLOBAL_KEY]||{};globalThis[WEB_CHUNK_GLOBAL_KEY]||(globalThis[WEB_CHUNK_GLOBAL_KEY]=t),globalThis[LEGACY_WEB_CHUNK_GLOBAL_KEY]||(globalThis[LEGACY_WEB_CHUNK_GLOBAL_KEY]=t)},Fe(){let t=new Map,e=Object.entries(CHUNK_MAP||{});for(let[r,a]of e){let n=String(a||"").split("/").pop();n&&t.set(n,r)}return t},Ie(t){if(!t)return null;let e=String(t).replace(/^[.\\/]+/,"").replace(/\.js$/,"");if(this.c&&this.c.has(e))return this.c.get(e);let r=e.split("/").pop();return this.c&&this.c.has(r)?this.c.get(r):null},We(t){if(t==="vscode")return vscode;let e=this.$();if(!e)throw new Error(`Web require failed: registry unavailable for ${t}`);let r=this.Ie(t);if(r&&e[r])return e[r];if(e[t])return e[t];if((t==="../commands/runtimeCommands"||t==="./commands/runtimeCommands")&&typeof globalThis<"u"&&globalThis.O)return globalThis.O;throw new Error(`Web require unsupported: ${t}`)},te(t){if(this.N.has(t))return;this.N.add(t);let e=new ChunkLoadError(t,"artifact unavailable",{recoverable:!1,context:{chunkName:t,distPath:this.distPath,fix:'Run "npm run package-chunks" to rebuild runtime chunks.'}});getActiveLogger().error(e.message,e),handleChunkFailure(t,e,{userFacing:!1})}},dynamicImports={async loadOnboarding(t){let e=await featureFlags.onboarding();return e?typeof e.createOnboardingManager=="function"?e.createOnboardingManager(t):e.OnboardingManager?new e.OnboardingManager(t):null:null},async loadExportReporting(t){let e=await featureFlags.exportReporting();return typeof(e==null?void 0:e.createExportReportingManager)=="function"?e.createExportReportingManager(t):null},async loadWorkspaceTemplates(t){let e=await featureFlags.workspaceTemplates();return typeof(e==null?void 0:e.createWorkspaceTemplatesManager)=="function"?e.createWorkspaceTemplatesManager(t):e!=null&&e.WorkspaceTemplatesManager?new e.WorkspaceTemplatesManager(t):null},async loadAnalysisCommands(){return featureFlags.analysisCommands()},async loadExtensionApi(t){let e=await featureFlags.extensionApi();if(!e)return null;if(typeof e=="function"){if(e.name==="createExtensionApiManager")return e(t);try{return new e}catch{return null}}else{if(typeof e.createExtensionApiManager=="function")return e.createExtensionApiManager(t);if(e.ExtensionApiManager)return new e.ExtensionApiManager}return null}},onboardingManagerPromise=null,workspaceTemplatesManagerPromise=null,exportReportingManagerPromise=null,extensionApiManagerPromise=null;function shouldPrimeOnboardingChunk(t){var o,s;if(!(t!=null&&t.globalState))return!0;let e=t.globalState.get("explorerDates.hasShownWelcome",!1),r=t.globalState.get("explorerDates.hasCompletedSetup",!1),a=t.globalState.get("explorerDates.onboardingVersion","0.0.0"),n=((s=(o=t.extension)==null?void 0:o.packageJSON)==null?void 0:s.version)||"0.0.0";return!e||!r?!0:isMajorVersionUpdate(a,n)}function isMajorVersionUpdate(t,e){let r=o=>{let[s="0"]=(o||"").split("."),i=Number.parseInt(s,10);return Number.isFinite(i)?i:0},a=r(t);return r(e)>a}function ensureOnboardingManager(t){return onboardingManagerPromise||(onboardingManagerPromise=dynamicImports.loadOnboarding(t)),onboardingManagerPromise}function ensureWorkspaceTemplatesManager(t){return workspaceTemplatesManagerPromise||(workspaceTemplatesManagerPromise=dynamicImports.loadWorkspaceTemplates(t)),workspaceTemplatesManagerPromise}function ensureExportReportingManager(t){return exportReportingManagerPromise||(exportReportingManagerPromise=dynamicImports.loadExportReporting(t)),exportReportingManagerPromise}function ensureExtensionApiManager(t){return extensionApiManagerPromise||(extensionApiManagerPromise=dynamicImports.loadExtensionApi(t)),extensionApiManagerPromise}function raiseChunkUnavailable(t,e){let r=`${t} is not available because the required "${e}" runtime chunk failed to load. Reinstall Explorer Dates or run "npm run package-chunks" and reload VS Code.`;throw getActiveLogger().warn(r,{chunkName:e}),vscode.window.showErrorMessage(r),new ChunkLoadError(e,"chunk missing at runtime",{recoverable:!1,context:{featureLabel:t}})}function initializeStatusBar(t){let e=vscode.window.createStatusBarItem(vscode.StatusBarAlignment.Right,100);e.command="explorerDates.showFileDetails",e.tooltip="Click to show detailed file information";let r=async()=>{try{let o=vscode.window.activeTextEditor;if(!o){e.hide();return}let s=o.document.uri;if(s.scheme!=="file"){e.hide();return}let i=await fileSystem.stat(s),l=ensureDate(i.mtime),c=fileDateProvider.qe(l,"smart"),u=fileDateProvider.Ue(i.size,"auto");e.text=`$(clock) ${c} $(file) ${u}`,e.show()}catch(o){e.hide(),logger.debug("Failed to update status bar",o)}},a=vscode.window.onDidChangeActiveTextEditor(r),n=vscode.window.onDidChangeTextEditorSelection(r);return r(),t.subscriptions.push(e,a,n),e}async function activate(context){var t,e,r,a;try{isWebDiagnosticsEnabled()&&diagLog("info","Activation start",{uiKind:(t=vscode==null?void 0:vscode.env)==null?void 0:t.uiKind,isWeb:isWebEnvironment()}),logger=getLogger(),l10n=await ensureLocalization(),context.subscriptions.push(l10n),initializeTemplateStore(context),chunkLoader.initialize(context),chunkLoader.assertChunkArtifacts(getCriticalChunks()),setFeatureChunkResolver(n=>isWebEnvironment()?chunkLoader.T(n):chunkLoader.loadChunk(n));let remoteName=((e=vscode==null?void 0:vscode.env)==null?void 0:e.remoteName)||null,uiKind=((r=vscode==null?void 0:vscode.env)==null?void 0:r.uiKind)||null,isWebRuntime=uiKind===vscode.UIKind.Web,workspaceSchemes=(vscode.workspace.workspaceFolders||[]).map(n=>{var o;return(o=n==null?void 0:n.uri)==null?void 0:o.scheme}).filter(Boolean);logger.info("Explorer Dates: Extension activated"),logger.info("Explorer Dates: Activation context",{uiKind,remoteName,isWeb:isWebRuntime,workspaceSchemes}),(async()=>{try{let{getFeatureFlagsGlobal:n}=ve(),o=n(),s=o?await o.loadFeatureModule("loggerImpl"):null;if(s&&typeof s.getOrCreateLogger=="function")try{let i=s.getOrCreateLogger(),l="__explorerDatesLogger";i&&(typeof global<"u"?global[l]=i:typeof globalThis<"u"&&(globalThis[l]=i))}catch{}}catch{}})();let settingsMigrationManager=new SettingsMigrationManager;try{await settingsMigrationManager.migrateAllSettings(context)}catch(n){logger.warn("Settings migration encountered issues:",n)}let isWebUi=vscode.env.uiKind===vscode.UIKind.Web;if(isWebUi)logger.info("Skipping settings auto-organization in web runtime");else try{await settingsMigrationManager.autoOrganizeSettingsIfNeeded(context,{trigger:"activation",silent:!0})}catch(n){logger.warn("Settings organization encountered issues:",n)}let isWeb=vscode.env.uiKind===vscode.UIKind.Web,featureConfig=vscode.workspace.getConfiguration("explorerDates"),reportingEnabled=featureConfig.get("enableExportReporting",featureConfig.get("enableReporting",!0)),apiEnabled=featureConfig.get("enableExtensionApi",!0),onboardingEnabled=featureConfig.get("enableOnboardingSystem",!0),analysisEnabled=featureConfig.get("enableAnalysisCommands",!0),updateCommandContexts=async()=>{let n=vscode.workspace.getConfiguration("explorerDates"),o=n.get("enableExportReporting",n.get("enableReporting",!0)),s=n.get("enableWorkspaceTemplates",!0),i=n.get("enableWorkspaceIntelligence",!0),l=n.get("enableAnalysisCommands",!0),c=n.get("enableExtensionApi",!0),u=n.get("enableGitInsights",!0)&&!isWeb,d=typeof vscode.workspace.isTrusted<"u"?vscode.workspace.isTrusted:!0;await vscode.commands.executeCommand("setContext","explorerDates.isWeb",isWeb),await vscode.commands.executeCommand("setContext","explorerDates.isWorkspaceTrusted",d),await vscode.commands.executeCommand("setContext","explorerDates.gitFeaturesAvailable",!isWeb),await vscode.commands.executeCommand("setContext","explorerDates.gitCommandsAvailable",u),await vscode.commands.executeCommand("setContext","explorerDates.exportReportingAvailable",o&&!isWeb),await vscode.commands.executeCommand("setContext","explorerDates.workspaceTemplatesAvailable",s&&!isWeb),await vscode.commands.executeCommand("setContext","explorerDates.workspaceIntelligenceAvailable",i&&!isWeb),await vscode.commands.executeCommand("setContext","explorerDates.analysisCommandsAvailable",l&&!isWeb),await vscode.commands.executeCommand("setContext","explorerDates.extensionApiAvailable",c),await vscode.commands.executeCommand("setContext","explorerDates.runtimeCommandsAvailable",!isWeb)};await updateCommandContexts(),context.subscriptions.push(vscode.workspace.onDidChangeConfiguration(n=>{n.affectsConfiguration("explorerDates")&&updateCommandContexts().catch(o=>{logger.warn("Failed to update command contexts",o)})})),typeof vscode.workspace.onDidGrantWorkspaceTrust=="function"&&context.subscriptions.push(vscode.workspace.onDidGrantWorkspaceTrust(()=>{updateCommandContexts().catch(n=>{logger.warn("Failed to update command contexts after trust change",n)})}));let{isVirtualWorkspace}=wr(),isVirtual=isVirtualWorkspace();await vscode.commands.executeCommand("setContext","explorerDates.isVirtualWorkspace",isVirtual);let providerChunk=null;try{if(providerChunk=await(isWebEnvironment()?chunkLoader.T("providerInit"):chunkLoader.loadChunk("providerInit")),providerChunk&&typeof providerChunk.createFileDateDecorationProvider=="function"){if(isWebDiagnosticsEnabled()&&diagLog("info","Provider factory located",{source:"providerInit"}),isWeb)try{await chunkLoader.T("fileDateProviderImplExport"),isWebDiagnosticsEnabled()&&diagLog("info","Provider impl export chunk loaded",{chunkName:"fileDateProviderImplExport"}),await chunkLoader.T("fileDateProviderImpl"),isWebDiagnosticsEnabled()&&diagLog("info","Provider impl chunk loaded",{chunkName:"fileDateProviderImpl"})}catch(o){logger.warn("Failed to load provider impl chunk in web runtime",(o==null?void 0:o.message)||o),isWebDiagnosticsEnabled()&&diagLog("warn","Provider impl chunk load failed",{error:(o==null?void 0:o.message)||String(o)})}let n=providerChunk.createFileDateDecorationProvider(context);n&&typeof n.createFileDateDecorationProvider=="function"&&(fileDateProvider=n.createFileDateDecorationProvider(),isWebDiagnosticsEnabled()&&recordProviderEvent("created",{source:"providerInit"}))}}catch(n){logger.warn("Failed to load fileDateProvider chunk, falling back to local provider",(n==null?void 0:n.message)||n),isWebDiagnosticsEnabled()&&diagLog("warn","Provider chunk load failed",{error:(n==null?void 0:n.message)||String(n)})}if(!fileDateProvider)try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(!isWebEnvironment()&&typeof dynamicRequire=="function"){let n=dynamicRequire("./src/fileDateDecorationProvider"),o=n&&(n.FileDateDecorationProvider||n.default||n);fileDateProvider=new o,isWebDiagnosticsEnabled()&&recordProviderEvent("created",{source:"local"})}else if(isWebEnvironment())logger.warn("No FileDateDecorationProvider available for web runtime; some features may be disabled."),isWebDiagnosticsEnabled()&&diagLog("warn","Provider unavailable in web runtime");else{let{FileDateDecorationProvider:n}=Sr();fileDateProvider=new n,isWebDiagnosticsEnabled()&&recordProviderEvent("created",{source:"local"})}}catch(n){throw logger.error("Failed to create FileDateDecorationProvider",n),isWebDiagnosticsEnabled()&&diagLog("error","Provider creation failed",{error:n==null?void 0:n.message,stack:n==null?void 0:n.stack}),n}if(fileDateProvider){providerChunk&&typeof providerChunk.hydrateProviderOptionalSystems=="function"&&((async()=>{try{await providerChunk.hydrateProviderOptionalSystems(fileDateProvider)}catch(n){logger.debug("provider-init hydration failed",n)}})(),isWebDiagnosticsEnabled()&&recordProviderEvent("hydrated",{source:"providerInit"}));try{let n=vscode.window.registerFileDecorationProvider(fileDateProvider);context.subscriptions.push(n),logger.info("Explorer Dates: File decoration provider registered",{isWeb:isWebRuntime,remoteName})}catch(n){logger.error("Explorer Dates: Failed to register FileDecorationProvider",n)}context.subscriptions.push(fileDateProvider),context.subscriptions.push(logger),isWebDiagnosticsEnabled()&&recordProviderEvent("registered");try{await fileDateProvider.initializeAdvancedSystems(context)}catch(n){logger.debug("FileDateDecorationProvider.initializeAdvancedSystems failed",n)}try{await fileDateProvider.checkWorkspaceSize()}catch(n){logger.debug("FileDateDecorationProvider.checkWorkspaceSize failed",n)}}else logger.warn("FileDateDecorationProvider unavailable \u2014 continuing without file decorations."),isWebDiagnosticsEnabled()&&diagLog("warn","Provider unavailable for decorations");let extensionApiManager=null,exportReportingRegistered=!1,getExtensionApiManager=async()=>{if(!apiEnabled)throw new Error("Extension API is disabled via explorerDates.enableExtensionApi");return extensionApiManager||(extensionApiManager=await ensureExtensionApiManager(context),extensionApiManager&&context.subscriptions&&context.subscriptions.push(extensionApiManager)),extensionApiManager},getExportReportingManager=async()=>{if(!reportingEnabled)throw new Error("Reporting is disabled via explorerDates.enableExportReporting");if(!exportReportingRegistered){let s=vscode.workspace.getConfiguration("explorerDates").get("performanceMode",!1),i=env.EXPLORER_DATES_LIGHTWEIGHT_MODE==="1";(s||i)&&logger.warn("Initializing Export Reporting Manager while performance/lightweight mode is active; activity tracking will remain suppressed.")}let n=await ensureExportReportingManager(context);return n&&!exportReportingRegistered&&(context.subscriptions.push(n),exportReportingRegistered=!0),n},cachedApi=null,apiPromise=null,apiFactory=async()=>(apiPromise||(apiPromise=(async()=>{let n=await getExtensionApiManager();return cachedApi=n?n.getApi():null,cachedApi})()),apiPromise);apiEnabled||logger.info("Explorer Dates API exports disabled via explorerDates.enableExtensionApi");let showWelcomeOnStartup=featureConfig.get("showWelcomeOnStartup",!0);if(onboardingEnabled&&showWelcomeOnStartup)try{if(shouldPrimeOnboardingChunk(context)){let n=await ensureOnboardingManager(context);n&&await n.shouldShowOnboarding()&&setTimeout(()=>{try{n.showWelcomeMessage()}catch(o){logger.warn("Onboarding showWelcomeMessage() failed (non-fatal):",o)}},5e3)}else logger.debug("Skipping onboarding preload \u2013 user already completed onboarding for this major version.")}catch(n){logger.warn("Onboarding preload failed (non-fatal):",n)}registerCoreCommands({context,fileDateProvider,logger,l10n}),recordCommandRegistration("explorerDates.runWebDiagnostics");let runWebDiagnosticsCommand=vscode.commands.registerCommand("explorerDates.runWebDiagnostics",async()=>{var n,o,s,i;recordCommandInvocation("explorerDates.runWebDiagnostics");try{let l=getWebDiagnosticsState(),c=[];try{c=await vscode.commands.getCommands(!0)}catch(f){diagLog("warn","Failed to query command registry",{error:f==null?void 0:f.message})}let u=(((s=(o=(n=context==null?void 0:context.extension)==null?void 0:n.packageJSON)==null?void 0:o.contributes)==null?void 0:s.commands)||[]).map(f=>f.command),d=u.filter(f=>!c.includes(f)),h={uiKind:(i=vscode==null?void 0:vscode.env)==null?void 0:i.uiKind,isWeb:isWebEnvironment(),registeredCount:c.length,contributedCount:u.length,missingCommands:d.slice(0,20),provider:l.provider,chunkLoads:l.chunkLoads.slice(-10)};diagLog("info","Web diagnostics summary",h);try{let f=d.length?`Web diagnostics: ${d.length} missing commands`:"Web diagnostics: commands registered";vscode.window.showInformationMessage(f)}catch{}recordCommandResult("explorerDates.runWebDiagnostics",!0)}catch(l){throw recordCommandResult("explorerDates.runWebDiagnostics",!1,l),l}});context.subscriptions.push(runWebDiagnosticsCommand);let registerAnalysisCommandsLazy=async()=>{let n=await dynamicImports.loadAnalysisCommands();if(!n){let s=typeof featureFlags.getFeatureLoadFailure=="function"?featureFlags.getFeatureLoadFailure("analysis"):null;if(s)throw s;let l=Array.from((chunkLoader==null?void 0:chunkLoader.N)||[]).includes("analysis")?'Analysis chunk is missing. Rebuild with "npm run package-bundle" and reload.':"Analysis bundle did not load. Rebuild the extension and reload.";return vscode.window.showWarningMessage(`Analysis commands unavailable. ${l}`),null}let o=n.registerAnalysisCommands||n;return typeof o!="function"?(vscode.window.showWarningMessage("Analysis commands registration function not found."),null):o({context,fileDateProvider,logger,chunkLoader})};if(analysisEnabled){try{await registerAnalysisCommandsLazy(),logger.info("Analysis commands registered successfully")}catch(n){logger.warn("Failed to register analysis commands:",n),vscode.window.showWarningMessage("Explorer Dates analysis commands failed to initialize. Check build artifacts for the analysis chunk and reload.")}await setAnalysisWarningShown(context,!1)}else try{let n=hasShownAnalysisWarning(context);if(getActiveLogger().debug("analysisWarningState",{alreadyWarned:n,map:context.globalState.get(ANALYSIS_WARNING_WORKSPACE_KEY,{}),warnedSet:Array.from(_warnedWorkspaces)}),!n){if(env.EXPLORER_DATES_TEST_MODE==="1")try{await setAnalysisWarningShown(context,!0)}catch(o){logger.debug("Failed to pre-mark analysis warning in test mode",(o==null?void 0:o.message)||o)}vscode.window.showInformationMessage("Explorer Dates analysis commands are disabled. Shortcuts like Ctrl+Shift+M/H/A will not work until you enable explorerDates.enableAnalysisCommands.","Enable Now","Dismiss").then(async o=>{var i;if((env.EXPLORER_DATES_TEST_MODE==="1"?"Dismiss":o)===l10n.getString("analysisEnableNow"))try{let l=featureConfig.inspect("enableAnalysisCommands"),c=vscode.workspace.workspaceFolders||[],u=!1;for(let d of c){let h=vscode.workspace.getConfiguration("explorerDates",d.uri),f=h.inspect("enableAnalysisCommands");if((f==null?void 0:f.workspaceFolderValue)===!1)try{await h.update("enableAnalysisCommands",!0,vscode.ConfigurationTarget.WorkspaceFolder)}catch(w){u=!0,logger.warn("Failed to auto-enable analysis commands for workspace folder",{folder:(i=d.uri)==null?void 0:i.toString(),error:w==null?void 0:w.message})}}if((l==null?void 0:l.workspaceValue)===!1)try{await featureConfig.update("enableAnalysisCommands",!0,vscode.ConfigurationTarget.Workspace)}catch(d){u=!0,logger.warn("Failed to auto-enable analysis commands for workspace scope",d)}if((l==null?void 0:l.globalValue)===!1)try{await featureConfig.update("enableAnalysisCommands",!0,vscode.ConfigurationTarget.Global)}catch(d){u=!0,logger.warn("Failed to auto-enable analysis commands for user scope",d)}u?(await setAnalysisWarningShown(context,!1),vscode.window.showWarningMessage(l10n.getString("analysisEnablePartially"))):(await setAnalysisWarningShown(context,!1),await vscode.commands.executeCommand("workbench.action.reloadWindow"))}catch(l){await setAnalysisWarningShown(context,!1),vscode.window.showWarningMessage(l10n.getString("analysisEnableFailed")),logger.warn("Failed to auto-enable analysis commands",l)}else await setAnalysisWarningShown(context,!0)})}}catch(n){logger.debug("Unable to show analysis disabled warning",n)}registerOnboardingCommands({context,logger,getOnboardingManager:()=>ensureOnboardingManager(context)});let migrationSubscriptions=await registerMigrationCommands({context,logger,getSettingsMigrationManager:()=>Promise.resolve(settingsMigrationManager)});context.subscriptions.push(...migrationSubscriptions);let openTemplateManager=vscode.commands.registerCommand("explorerDates.openTemplateManager",async()=>{try{if(isWebEnvironment()){vscode.window.showInformationMessage("Workspace templates are unavailable in VS Code for Web.");return}if(!vscode.workspace.getConfiguration("explorerDates").get("enableWorkspaceTemplates",!0))throw vscode.window.showInformationMessage(l10n.getString("workspaceTemplatesDisabled")),new Error("Workspace templates feature disabled via settings.");await featureFlags.workspaceTemplates()||raiseChunkUnavailable("Workspace templates","workspaceTemplates");let i=await ensureWorkspaceTemplatesManager(context);i||raiseChunkUnavailable("Workspace templates","workspaceTemplates"),await i.showTemplateManager(),logger.info("Template manager opened")}catch(n){throw logger.error("Failed to open template manager",n),vscode.window.showErrorMessage(l10n.getString("failedToOpenTemplateManager",n.message)),n}});context.subscriptions.push(openTemplateManager);let saveTemplate=vscode.commands.registerCommand("explorerDates.saveTemplate",async()=>{try{if(isWebEnvironment()){vscode.window.showInformationMessage("Workspace templates are unavailable in VS Code for Web.");return}let{requireWorkspaceTrust:n}=X();if(n("save template"),!vscode.workspace.getConfiguration("explorerDates").get("enableWorkspaceTemplates",!0))throw vscode.window.showInformationMessage(l10n.getString("workspaceTemplatesDisabledSave")),new Error("Workspace templates feature disabled via settings.");await featureFlags.workspaceTemplates()||raiseChunkUnavailable("Workspace templates","workspaceTemplates");let l=await vscode.window.showInputBox({prompt:"Enter template name",placeHolder:"e.g., My Project Setup"});if(l){let c=await vscode.window.showInputBox({prompt:l10n.getString("enterTemplateDescription"),placeHolder:l10n.getString("enterTemplateDescription")})||"",u=await ensureWorkspaceTemplatesManager(context);u||raiseChunkUnavailable("Workspace templates","workspaceTemplates"),await u.saveCurrentConfiguration(l,c)}logger.info("Template saved")}catch(n){throw logger.error("Failed to save template",n),vscode.window.showErrorMessage(l10n.getString("failedToSaveTemplate",n.message)),n}});context.subscriptions.push(saveTemplate);let recordedReportErrors=new WeakSet,generateReport=vscode.commands.registerCommand("explorerDates.generateReport",async()=>{recordCommandInvocation("explorerDates.generateReport");try{if(isWebEnvironment()){vscode.window.showInformationMessage("Export reporting is unavailable in VS Code for Web.");let u=commandEmpty();return recordCommandResult("explorerDates.generateReport",!0,null,u.category),u.value}let{requireWorkspaceTrust:n}=X();if(n("generate report"),!reportingEnabled)throw vscode.window.showInformationMessage(l10n.getString("reportingDisabled")),new Error("Reporting features disabled via settings.");await featureFlags.exportReporting()||raiseChunkUnavailable("Export reporting","exportReporting");let s=await getExportReportingManager();s||raiseChunkUnavailable("Export reporting","exportReporting");let i=await s.showReportDialog(),l=isCommandOutcome(i)?i:i===void 0?commandCancellation():i===null?commandEmpty():commandSuccess(i),c=l.category===OUTCOME_CATEGORIES.HANDLED_COMMAND_FAILURE||l.category===OUTCOME_CATEGORIES.UNHANDLED_COMMAND_FAILURE;if(recordCommandResult("explorerDates.generateReport",!c,l.error,l.category,l.errorContext),c){let u=l.error||new Error("Report generation failed");throw u&&(typeof u=="object"||typeof u=="function")&&recordedReportErrors.add(u),u}return logger.info("Report generation completed",{outcomeCategory:l.category}),l.value}catch(n){throw recordedReportErrors.has(n)||recordCommandResult("explorerDates.generateReport",!1,n,OUTCOME_CATEGORIES.UNHANDLED_COMMAND_FAILURE),logger.error("Failed to generate report",n),vscode.window.showErrorMessage(l10n.getString("failedToGenerateReport",n.message)),n}});context.subscriptions.push(generateReport);let showApiInfo=vscode.commands.registerCommand("explorerDates.showApiInfo",async()=>{try{if(!apiEnabled)throw vscode.window.showInformationMessage(l10n.getString("apiDisabled")),new Error("Explorer Dates API disabled via settings.");await featureFlags.extensionApi()||raiseChunkUnavailable("Extension API","extensionApi");let o=vscode.window.createWebviewPanel("apiInfo","Explorer Dates API Information",vscode.ViewColumn.One,{enableScripts:!0}),s=await chunkLoader.loadChunk("diagnostics");if(!s)throw new Error("Diagnostics chunk failed to load");s.ensureInitialized(context);let i=await apiFactory();if(!i)throw new Error("API factory returned null - extension API may be disabled");o.webview.html=await s.getApiInformationHtml(i),logger.info("API information panel opened")}catch(n){throw logger.error("Failed to show API information",n),vscode.window.showErrorMessage(l10n.getString("failedToShowApiInformation",n.message)),n}});context.subscriptions.push(showApiInfo);let statusBarItem,config=vscode.workspace.getConfiguration("explorerDates"),performanceMode=config.get("performanceMode",!1),showStatusBar=config.get("showStatusBar",!1);showStatusBar&&!performanceMode&&(statusBarItem=initializeStatusBar(context));let statusBarConfigWatcher=vscode.workspace.onDidChangeConfiguration(n=>{if(n.affectsConfiguration("explorerDates.showStatusBar")||n.affectsConfiguration("explorerDates.performanceMode")){let o=vscode.workspace.getConfiguration("explorerDates"),s=o.get("showStatusBar",!1),i=o.get("performanceMode",!1),l=s&&!i;l&&!statusBarItem?statusBarItem=initializeStatusBar(context):!l&&statusBarItem&&(statusBarItem.dispose(),statusBarItem=null)}});context.subscriptions.push(statusBarConfigWatcher),logger.info("Explorer Dates: Date decorations ready");let loadRuntimeCommands=async()=>{let n=await featureFlags.loadFeatureModule("runtimeManagement");if(n!=null&&n.registerRuntimeCommands)return n.registerRuntimeCommands;if(isWeb)try{let o=await Promise.resolve().then(()=>Q(He()));if(o!=null&&o.registerRuntimeCommands)return logger.warn("Runtime chunk missing in web; using bundled runtime commands fallback"),o.registerRuntimeCommands}catch(o){logger.warn("Web runtime fallback for runtime commands failed",o)}return logger.warn("Runtime chunk missing; runtime commands not initialized"),null};try{let n=await loadRuntimeCommands();if(n){isWebDiagnosticsEnabled()&&diagLog("info","Runtime commands registration starting");let{runtimeManager:o,teamPersistenceManager:s}=n(context);activeRuntimeManager!=null&&activeRuntimeManager.dispose&&activeRuntimeManager.dispose(),activeTeamPersistenceManager!=null&&activeTeamPersistenceManager.dispose&&activeTeamPersistenceManager.dispose(),activeRuntimeManager=o,activeTeamPersistenceManager=s,env.EXPLORER_DATES_TEST_MODE!=="1"?runtimeAutoSuggestionTimer=setTimeout(async()=>{try{await o.checkAutoSuggestion(),await s.validateTeamConfiguration()}catch(l){logger.debug("Runtime system auto-suggestion failed:",l)}},AUTO_SUGGESTION_DELAY_MS):logger.debug("Skipping runtime auto-suggestion timer in test mode"),logger.info("Runtime chunk management system initialized")}else logger.warn("Runtime chunk management system unavailable")}catch(n){logger.error("Failed to initialize runtime chunk management:",n),isWebDiagnosticsEnabled()&&diagLog("error","Runtime command initialization failed",{error:n==null?void 0:n.message,stack:n==null?void 0:n.stack})}if(isWebDiagnosticsEnabled()){let n=getWebDiagnosticsState();diagLog("info","Activation complete",{commandsRegistered:((a=n.commandsRegistered)==null?void 0:a.size)||0,provider:n.provider})}if(apiEnabled)return apiFactory}catch(n){let o=`${l10n?l10n.getString("activationError"):"Explorer Dates failed to activate"}: ${n.message}`;throw getActiveLogger().error("Extension activation failed",n),vscode.window.showErrorMessage(o),isWebDiagnosticsEnabled()&&diagLog("error","Activation failed",{error:n==null?void 0:n.message,stack:n==null?void 0:n.stack}),n}}async function deactivate(){try{if(getActiveLogger().info("Explorer Dates extension is being deactivated"),runtimeAutoSuggestionTimer&&(clearTimeout(runtimeAutoSuggestionTimer),runtimeAutoSuggestionTimer=null),activeRuntimeManager!=null&&activeRuntimeManager.dispose&&(activeRuntimeManager.dispose(),activeRuntimeManager=null),activeTeamPersistenceManager!=null&&activeTeamPersistenceManager.dispose&&(activeTeamPersistenceManager.dispose(),activeTeamPersistenceManager=null),fileDateProvider&&typeof fileDateProvider.dispose=="function"&&(await fileDateProvider.dispose(),fileDateProvider=null),env.EXPLORER_DATES_TEST_MODE==="1"&&typeof process<"u"&&typeof process.Le=="function"){let t=Date.now();for(;(process.Le()||[]).length>0&&Date.now()-t<500;)await new Promise(e=>setTimeout(e,5))}getActiveLogger().info("Explorer Dates extension deactivated successfully")}catch(t){getActiveLogger().error("Explorer Dates: Error during deactivation",t)}}module.exports={activate,deactivate}; diff --git a/dist/extension.web.js b/dist/extension.web.js index c2d7ddf..5cae9bf 100644 --- a/dist/extension.web.js +++ b/dist/extension.web.js @@ -1,6 +1,6 @@ -var xr=Object.create;var Ge=Object.defineProperty;var Tr=Object.getOwnPropertyDescriptor;var Ar=Object.getOwnPropertyNames;var Rr=Object.getPrototypeOf,Fr=Object.prototype.hasOwnProperty;var f=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var _r=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of Ar(e))!Fr.call(t,o)&&o!==r&&Ge(t,o,{get:()=>e[o],enumerable:!(n=Tr(e,o))||n.enumerable});return t};var X=(t,e,r)=>(r=t!=null?xr(Rr(t)):{},_r(e||!t||!t.__esModule?Ge(r,"default",{value:t,enumerable:!0}):r,t));var k=f((Mo,je)=>{var q="__explorerDatesLogger",z=class{constructor(){this.b=null}y(e,r){if(this.b&&typeof this.b[e]=="function")try{return this.b[e](...r)}catch{}switch(e){case"debug":break;case"info":break;case"warn":break;case"error":break;default:break}}debug(...e){return this.y("debug",e)}info(...e){return this.y("info",e)}warn(...e){return this.y("warn",e)}error(...e){return this.y("error",e)}Oe(e){this.b=e}};function Pr(){return typeof global<"u"?(global[q]||(global[q]=new z),global[q]):typeof globalThis<"u"?(globalThis[q]||(globalThis[q]=new z),globalThis[q]):(De||(De=new z),De)}var ke=class extends z{},De=null;je.exports={Logger:ke,getLogger:Pr}});var xe=f((Wo,Mr)=>{Mr.exports={migrationDetailsTitle:"Explorer Dates - Settings Migration",migrationDetailsHeader:"Settings Migration",gitAttributionWarning:"Explorer Dates: Git attribution badges are unavailable on VS Code for Web. Time-based decorations remain available.",noOverridesToDocument:"No overrides to document.",overrideNotesHeader:"# Explorer Dates Override Notes\\n\\n",analysisCommandsDisabled:"Explorer Dates analysis commands are disabled. Shortcuts like Ctrl+Shift+M/H/A will not work until you enable explorerDates.enableAnalysisCommands.",analysisEnableNow:"Enable Now",analysisEnablePartially:"Enable partially succeeded. Update explorerDates.enableAnalysisCommands in remaining workspace folders manually.",analysisEnableFailed:"Enable failed: update explorerDates.enableAnalysisCommands in workspace settings.",workspaceTemplatesDisabled:"Workspace templates are disabled. Enable explorerDates.enableWorkspaceTemplates to use this command.",workspaceTemplatesDisabledSave:"Workspace templates are disabled. Enable explorerDates.enableWorkspaceTemplates to save templates.",enterTemplateName:"Enter template name",enterTemplateDescription:"Enter description (optional)",failedToOpenTemplateManager:"Failed to open template manager: {0}",failedToSaveTemplate:"Failed to save template: {0}",reportingDisabled:"Reporting features are disabled. Enable explorerDates.enableExportReporting to generate reports.",failedToGenerateReport:"Failed to generate report: {0}",apiDisabled:"Explorer Dates API is disabled via settings.",failedToShowApiInformation:"Failed to show API information: {0}",failedToShowWorkspaceActivity:"Failed to show workspace activity: {0}",failedToShowPerformanceAnalytics:"Failed to show performance analytics: {0}",failedToShowCacheDebugInfo:"Failed to show cache debug info: {0}",noWorkspaceFolderOpen:"No workspace folder open",now:"now",minutes:"m",hours:"h",days:"d",weeks:"w",months:"mo",years:"y",justNow:"just now",minutesAgo:"{0} minute(s) ago",hoursAgo:"{0} hour(s) ago",daysAgo:"{0} day(s) ago",lastModified:"Last modified",refreshSuccess:"Date decorations refreshed",activationError:"Explorer Dates failed to activate",errorAccessingFile:"Error accessing file for decoration",clearTelemetryPrompt:"This will permanently delete locally-stored telemetry events for Explorer Dates. This action cannot be undone. Proceed?",clearTelemetryConfirm:"Clear Telemetry",clearTelemetryCancel:"Cancel",reportFormatDisabled:'Report format "{0}" is disabled. Allowed formats: {1}',reportDownloadTriggered:"Report download triggered in browser",selectReportTimeRangePlaceholder:"Select report time range",selectReportFormatPlaceholder:"Select report format",cleanupNoDeprecated:"\u2139\uFE0F No deprecated settings found to clean up.",showMigrationHistoryNoHistory:"No migration history found.",resetConfirmation:"This will reset all Explorer Dates settings to their default values. Are you sure?",resetConfirm:"Reset Settings",resetCancel:"Cancel",resetSuccess:"\u2705 Reset {0} settings to defaults.",validateNoIssues:"\u2705 Configuration is valid - no issues found!",validateFoundIssues:"Found {0} configuration issue(s). Would you like to see details?",validateShowDetails:"Show Details",validateDismiss:"Dismiss",migrationNotificationMessage:"Explorer Dates updated {0} setting(s) for compatibility. Your configuration has been preserved.",migrationViewChanges:"View Changes",migrationOpenSettings:"Open Settings",deprecatedPrompt:"Explorer Dates found {0} deprecated setting(s). Would you like to remove them?",deprecatedClean:"Clean Up Now",deprecatedKeep:"Keep Old Settings",deprecatedAskLater:"Ask Later",showFileLocation:"Show File Location",teamConfigCorrupted:"Explorer Dates team configuration file appears to be corrupted. Please check the .explorer-dates-profiles.json file or restore from backup.",appliedFromTeamProfile:'Applied {0} Explorer Dates settings from team profile "{1}".',documentedOverrides:"Documented Explorer Dates overrides in .vscode/explorer-dates-overrides.md",teamConfigMissingProfile:"Team configuration is missing an active profile.",ephemeralStorageEnospc:"Explorer Dates team configuration could not be saved because the disk is full.",ephemeralStorageGeneric:"Explorer Dates team configuration could not be saved because the workspace is read-only or permissions are restricted.",ephemeralStorageSuffix:"Changes will be kept in memory until VS Code restarts, so they may be lost."}});var Ye=f((Io,Wr)=>{Wr.exports={migrationDetailsTitle:"Explorer Dates - Migraci\xF3n de configuraci\xF3n",migrationDetailsHeader:"Migraci\xF3n de configuraci\xF3n",gitAttributionWarning:"Explorer Dates: Las insignias de atribuci\xF3n de Git no est\xE1n disponibles en VS Code para la Web. Las decoraciones basadas en tiempo siguen disponibles.",noOverridesToDocument:"No hay anulaciones para documentar.",overrideNotesHeader:"# Notas de anulaci\xF3n de Explorer Dates\\n\\n",analysisCommandsDisabled:"Los comandos de an\xE1lisis de Explorer Dates est\xE1n deshabilitados. Atajos como Ctrl+Shift+M/H/A no funcionar\xE1n hasta que habilites explorerDates.enableAnalysisCommands.",analysisEnableNow:"Habilitar ahora",analysisEnablePartially:"La activaci\xF3n se complet\xF3 parcialmente. Actualiza explorerDates.enableAnalysisCommands manualmente en las carpetas de trabajo restantes.",analysisEnableFailed:"Error al habilitar: actualiza explorerDates.enableAnalysisCommands en la configuraci\xF3n del espacio de trabajo.",workspaceTemplatesDisabled:"Las plantillas de espacio de trabajo est\xE1n deshabilitadas. Habilita explorerDates.enableWorkspaceTemplates para usar este comando.",workspaceTemplatesDisabledSave:"Las plantillas de espacio de trabajo est\xE1n deshabilitadas. Habilita explorerDates.enableWorkspaceTemplates para guardar plantillas.",enterTemplateName:"Introduce el nombre de la plantilla",enterTemplateDescription:"Introduce la descripci\xF3n (opcional)",failedToOpenTemplateManager:"Error al abrir el administrador de plantillas: {0}",failedToSaveTemplate:"Error al guardar la plantilla: {0}",reportingDisabled:"Las funciones de informes est\xE1n deshabilitadas. Habilita explorerDates.enableExportReporting para generar informes.",failedToGenerateReport:"Error al generar el informe: {0}",apiDisabled:"La API de Explorer Dates est\xE1 deshabilitada mediante la configuraci\xF3n.",failedToShowApiInformation:"Error al mostrar la informaci\xF3n de la API: {0}",failedToShowWorkspaceActivity:"Error al mostrar la actividad del espacio de trabajo: {0}",failedToShowPerformanceAnalytics:"Error al mostrar los an\xE1lisis de rendimiento: {0}",failedToShowCacheDebugInfo:"Error al mostrar la informaci\xF3n de depuraci\xF3n de la cach\xE9: {0}",noWorkspaceFolderOpen:"No hay ninguna carpeta de espacio de trabajo abierta",now:"ahora",minutes:"m",hours:"h",days:"d",weeks:"sem",months:"mes",years:"a",justNow:"justo ahora",minutesAgo:"hace {0} minuto(s)",hoursAgo:"hace {0} hora(s)",daysAgo:"hace {0} d\xEDa(s)",lastModified:"\xDAltima modificaci\xF3n",refreshSuccess:"Decoraciones de fecha actualizadas",activationError:"Explorer Dates no se pudo activar",errorAccessingFile:"Error al acceder al archivo para la decoraci\xF3n",clearTelemetryPrompt:"Esto eliminar\xE1 permanentemente los eventos de telemetr\xEDa almacenados localmente para Explorer Dates. Esta acci\xF3n no se puede deshacer. \xBFContinuar?",clearTelemetryConfirm:"Borrar telemetr\xEDa",clearTelemetryCancel:"Cancelar",reportFormatDisabled:'El formato de informe "{0}" est\xE1 deshabilitado. Formatos permitidos: {1}',reportDownloadTriggered:"Descarga del informe iniciada en el navegador",selectReportTimeRangePlaceholder:"Seleccionar rango de tiempo del informe",selectReportFormatPlaceholder:"Seleccionar formato del informe",cleanupNoDeprecated:"\u2139\uFE0F No se encontraron configuraciones obsoletas para limpiar.",showMigrationHistoryNoHistory:"No se encontr\xF3 historial de migraci\xF3n.",resetConfirmation:"Esto restablecer\xE1 todas las configuraciones de Explorer Dates a sus valores predeterminados. \xBFEst\xE1s seguro?",resetConfirm:"Restablecer configuraciones",resetCancel:"Cancelar",resetSuccess:"\u2705 Se restablecieron {0} configuraciones a los valores predeterminados.",validateNoIssues:"\u2705 La configuraci\xF3n es v\xE1lida - no se encontraron problemas.",validateFoundIssues:"Se encontraron {0} problema(s) de configuraci\xF3n. \xBFDeseas ver los detalles?",validateShowDetails:"Mostrar detalles",validateDismiss:"Descartar",migrationNotificationMessage:"Explorer Dates actualiz\xF3 {0} configuraci\xF3n(es) por compatibilidad. Tu configuraci\xF3n se ha conservado.",migrationViewChanges:"Ver cambios",migrationOpenSettings:"Abrir configuraciones",deprecatedPrompt:"Explorer Dates encontr\xF3 {0} configuraci\xF3n(es) obsoleta(s). \xBFDeseas eliminarlas?",deprecatedClean:"Limpiar ahora",deprecatedKeep:"Mantener configuraciones antiguas",deprecatedAskLater:"Preguntar m\xE1s tarde",showFileLocation:"Mostrar ubicaci\xF3n del archivo",teamConfigCorrupted:"El archivo de configuraci\xF3n de equipo de Explorer Dates parece estar da\xF1ado. Verifica el archivo .explorer-dates-profiles.json o restaura desde una copia de seguridad.",appliedFromTeamProfile:'Se aplicaron {0} configuraciones de Explorer Dates desde el perfil de equipo "{1}".',documentedOverrides:"Se documentaron las anulaciones de Explorer Dates en .vscode/explorer-dates-overrides.md",teamConfigMissingProfile:"La configuraci\xF3n del equipo no tiene un perfil activo.",ephemeralStorageEnospc:"No se pudo guardar la configuraci\xF3n de equipo de Explorer Dates porque el disco est\xE1 lleno.",ephemeralStorageGeneric:"No se pudo guardar la configuraci\xF3n de equipo de Explorer Dates porque el espacio de trabajo es de solo lectura o los permisos est\xE1n restringidos.",ephemeralStorageSuffix:"Los cambios se mantendr\xE1n en memoria hasta que VS Code se reinicie, por lo que podr\xEDan perderse."}});var Xe=f((Lo,Ir)=>{Ir.exports={migrationDetailsTitle:"Explorer Dates - Migration des param\xE8tres",migrationDetailsHeader:"Migration des param\xE8tres",gitAttributionWarning:"Explorer Dates : Les badges d\u2019attribution Git ne sont pas disponibles sur VS Code pour le Web. Les d\xE9corations bas\xE9es sur le temps restent disponibles.",noOverridesToDocument:"Aucune substitution \xE0 documenter.",overrideNotesHeader:"# Notes de substitution Explorer Dates\\n\\n",analysisCommandsDisabled:"Les commandes d\u2019analyse Explorer Dates sont d\xE9sactiv\xE9es. Les raccourcis comme Ctrl+Shift+M/H/A ne fonctionneront pas tant que vous n\u2019aurez pas activ\xE9 explorerDates.enableAnalysisCommands.",analysisEnableNow:"Activer maintenant",analysisEnablePartially:"L\u2019activation a partiellement r\xE9ussi. Mettez \xE0 jour explorerDates.enableAnalysisCommands manuellement dans les dossiers d\u2019espace de travail restants.",analysisEnableFailed:"\xC9chec de l\u2019activation : mettez \xE0 jour explorerDates.enableAnalysisCommands dans les param\xE8tres de l\u2019espace de travail.",workspaceTemplatesDisabled:"Les mod\xE8les d\u2019espace de travail sont d\xE9sactiv\xE9s. Activez explorerDates.enableWorkspaceTemplates pour utiliser cette commande.",workspaceTemplatesDisabledSave:"Les mod\xE8les d\u2019espace de travail sont d\xE9sactiv\xE9s. Activez explorerDates.enableWorkspaceTemplates pour enregistrer des mod\xE8les.",enterTemplateName:"Entrez le nom du mod\xE8le",enterTemplateDescription:"Entrez la description (facultatif)",failedToOpenTemplateManager:"Impossible d\u2019ouvrir le gestionnaire de mod\xE8les : {0}",failedToSaveTemplate:"Impossible d\u2019enregistrer le mod\xE8le : {0}",reportingDisabled:"Les fonctionnalit\xE9s de rapport sont d\xE9sactiv\xE9es. Activez explorerDates.enableExportReporting pour g\xE9n\xE9rer des rapports.",failedToGenerateReport:"Impossible de g\xE9n\xE9rer le rapport : {0}",apiDisabled:"L\u2019API Explorer Dates est d\xE9sactiv\xE9e via les param\xE8tres.",failedToShowApiInformation:"Impossible d\u2019afficher les informations de l\u2019API : {0}",failedToShowWorkspaceActivity:"Impossible d\u2019afficher l\u2019activit\xE9 de l\u2019espace de travail : {0}",failedToShowPerformanceAnalytics:"Impossible d\u2019afficher les analyses de performance : {0}",failedToShowCacheDebugInfo:"Impossible d\u2019afficher les informations de d\xE9bogage du cache : {0}",noWorkspaceFolderOpen:"Aucun dossier d\u2019espace de travail ouvert",now:"maintenant",minutes:"min",hours:"h",days:"j",weeks:"sem",months:"mois",years:"an",justNow:"\xE0 l\u2019instant",minutesAgo:"il y a {0} minute(s)",hoursAgo:"il y a {0} heure(s)",daysAgo:"il y a {0} jour(s)",lastModified:"Derni\xE8re modification",refreshSuccess:"D\xE9corations de date actualis\xE9es",activationError:"\xC9chec de l\u2019activation d\u2019Explorer Dates",errorAccessingFile:"Erreur lors de l\u2019acc\xE8s au fichier pour la d\xE9coration",clearTelemetryPrompt:"Cela supprimera d\xE9finitivement les \xE9v\xE9nements de t\xE9l\xE9m\xE9trie stock\xE9s localement pour Explorer Dates. Cette action est irr\xE9versible. Continuer ?",clearTelemetryConfirm:"Effacer la t\xE9l\xE9m\xE9trie",clearTelemetryCancel:"Annuler",reportFormatDisabled:'Le format de rapport "{0}" est d\xE9sactiv\xE9. Formats autoris\xE9s : {1}',reportDownloadTriggered:"T\xE9l\xE9chargement du rapport lanc\xE9 dans le navigateur",selectReportTimeRangePlaceholder:"S\xE9lectionner la p\xE9riode du rapport",selectReportFormatPlaceholder:"S\xE9lectionner le format du rapport",cleanupNoDeprecated:"\u2139\uFE0F Aucun param\xE8tre obsol\xE8te \xE0 nettoyer.",showMigrationHistoryNoHistory:"Aucun historique de migration trouv\xE9.",resetConfirmation:"Cela r\xE9initialisera tous les param\xE8tres Explorer Dates \xE0 leurs valeurs par d\xE9faut. \xCAtes-vous s\xFBr ?",resetConfirm:"R\xE9initialiser les param\xE8tres",resetCancel:"Annuler",resetSuccess:"\u2705 {0} param\xE8tres ont \xE9t\xE9 r\xE9initialis\xE9s aux valeurs par d\xE9faut.",validateNoIssues:"\u2705 La configuration est valide - aucun probl\xE8me d\xE9tect\xE9 !",validateFoundIssues:"{0} probl\xE8me(s) de configuration trouv\xE9(s). Voulez-vous voir les d\xE9tails ?",validateShowDetails:"Afficher les d\xE9tails",validateDismiss:"Ignorer",migrationNotificationMessage:"Explorer Dates a mis \xE0 jour {0} param\xE8tre(s) pour compatibilit\xE9. Votre configuration a \xE9t\xE9 conserv\xE9e.",migrationViewChanges:"Voir les modifications",migrationOpenSettings:"Ouvrir les param\xE8tres",deprecatedPrompt:"Explorer Dates a trouv\xE9 {0} param\xE8tre(s) obsol\xE8te(s). Voulez-vous les supprimer ?",deprecatedClean:"Nettoyer maintenant",deprecatedKeep:"Conserver les anciens param\xE8tres",deprecatedAskLater:"Demander plus tard",showFileLocation:"Afficher l\u2019emplacement du fichier",teamConfigCorrupted:"Le fichier de configuration d\u2019\xE9quipe Explorer Dates semble corrompu. V\xE9rifiez le fichier .explorer-dates-profiles.json ou restaurez-le depuis une sauvegarde.",appliedFromTeamProfile:'{0} param\xE8tres Explorer Dates appliqu\xE9s depuis le profil d\u2019\xE9quipe "{1}".',documentedOverrides:"Substitutions Explorer Dates document\xE9es dans .vscode/explorer-dates-overrides.md",teamConfigMissingProfile:"La configuration d\u2019\xE9quipe ne contient aucun profil actif.",ephemeralStorageEnospc:"Impossible d\u2019enregistrer la configuration d\u2019\xE9quipe Explorer Dates car le disque est plein.",ephemeralStorageGeneric:"Impossible d\u2019enregistrer la configuration d\u2019\xE9quipe Explorer Dates car l\u2019espace de travail est en lecture seule ou les permissions sont restreintes.",ephemeralStorageSuffix:"Les modifications seront conserv\xE9es en m\xE9moire jusqu\u2019au red\xE9marrage de VS Code et pourraient \xEAtre perdues."}});var Ze=f((Oo,Lr)=>{Lr.exports={migrationDetailsTitle:"Explorer Dates - Einstellungen migrieren",migrationDetailsHeader:"Einstellungen migrieren",gitAttributionWarning:"Explorer Dates: Git-Zuordnungsabzeichen sind in VS Code f\xFCr das Web nicht verf\xFCgbar. Zeitbasierte Hervorhebungen bleiben verf\xFCgbar.",noOverridesToDocument:"Keine \xDCberschreibungen zu dokumentieren.",overrideNotesHeader:"# Explorer Dates \xDCberschreibungsnotizen\\n\\n",analysisCommandsDisabled:"Die Analysebefehle von Explorer Dates sind deaktiviert. Tastenkombinationen wie Ctrl+Shift+M/H/A funktionieren nicht, bis explorerDates.enableAnalysisCommands aktiviert ist.",analysisEnableNow:"Jetzt aktivieren",analysisEnablePartially:"Die Aktivierung war teilweise erfolgreich. Aktualisieren Sie explorerDates.enableAnalysisCommands manuell in den verbleibenden Workspace-Ordnern.",analysisEnableFailed:"Aktivierung fehlgeschlagen: Aktualisieren Sie explorerDates.enableAnalysisCommands in den Workspace-Einstellungen.",workspaceTemplatesDisabled:"Workspace-Vorlagen sind deaktiviert. Aktivieren Sie explorerDates.enableWorkspaceTemplates, um diesen Befehl zu verwenden.",workspaceTemplatesDisabledSave:"Workspace-Vorlagen sind deaktiviert. Aktivieren Sie explorerDates.enableWorkspaceTemplates, um Vorlagen zu speichern.",enterTemplateName:"Vorlagenname eingeben",enterTemplateDescription:"Beschreibung eingeben (optional)",failedToOpenTemplateManager:"Fehler beim \xD6ffnen des Vorlagenmanagers: {0}",failedToSaveTemplate:"Fehler beim Speichern der Vorlage: {0}",reportingDisabled:"Berichtsfunktionen sind deaktiviert. Aktivieren Sie explorerDates.enableExportReporting, um Berichte zu erstellen.",failedToGenerateReport:"Fehler beim Erstellen des Berichts: {0}",apiDisabled:"Die Explorer Dates API ist in den Einstellungen deaktiviert.",failedToShowApiInformation:"Fehler beim Anzeigen der API-Informationen: {0}",failedToShowWorkspaceActivity:"Fehler beim Anzeigen der Workspace-Aktivit\xE4t: {0}",failedToShowPerformanceAnalytics:"Fehler beim Anzeigen der Leistungsanalysen: {0}",failedToShowCacheDebugInfo:"Fehler beim Anzeigen der Cache-Debug-Informationen: {0}",noWorkspaceFolderOpen:"Kein Workspace-Ordner ge\xF6ffnet",now:"jetzt",minutes:"Min",hours:"Std",days:"T",weeks:"W",months:"Mon",years:"J",justNow:"gerade eben",minutesAgo:"vor {0} Minute(n)",hoursAgo:"vor {0} Stunde(n)",daysAgo:"vor {0} Tag(en)",lastModified:"Zuletzt ge\xE4ndert",refreshSuccess:"Datumsdekorationen aktualisiert",activationError:"Explorer Dates konnte nicht aktiviert werden",errorAccessingFile:"Fehler beim Zugriff auf Datei f\xFCr Dekoration",clearTelemetryPrompt:"Dies l\xF6scht dauerhaft lokal gespeicherte Telemetrieereignisse f\xFCr Explorer Dates. Diese Aktion kann nicht r\xFCckg\xE4ngig gemacht werden. Fortfahren?",clearTelemetryConfirm:"Telemetrie l\xF6schen",clearTelemetryCancel:"Abbrechen",reportFormatDisabled:'Berichtsformat "{0}" ist deaktiviert. Zul\xE4ssige Formate: {1}',reportDownloadTriggered:"Bericht-Download im Browser gestartet",selectReportTimeRangePlaceholder:"Berichtszeitraum ausw\xE4hlen",selectReportFormatPlaceholder:"Berichtsformat ausw\xE4hlen",cleanupNoDeprecated:"\u2139\uFE0F Keine veralteten Einstellungen zum Bereinigen gefunden.",showMigrationHistoryNoHistory:"Kein Migrationsverlauf gefunden.",resetConfirmation:"Dies setzt alle Explorer Dates Einstellungen auf ihre Standardwerte zur\xFCck. Sind Sie sicher?",resetConfirm:"Einstellungen zur\xFCcksetzen",resetCancel:"Abbrechen",resetSuccess:"\u2705 {0} Einstellungen auf Standard zur\xFCckgesetzt.",validateNoIssues:"\u2705 Konfiguration ist g\xFCltig - keine Probleme gefunden!",validateFoundIssues:"{0} Konfigurationsproblem(e) gefunden. M\xF6chten Sie Details sehen?",validateShowDetails:"Details anzeigen",validateDismiss:"Verwerfen",migrationNotificationMessage:"Explorer Dates hat {0} Einstellung(en) zur Kompatibilit\xE4t aktualisiert. Ihre Konfiguration wurde beibehalten.",migrationViewChanges:"\xC4nderungen anzeigen",migrationOpenSettings:"Einstellungen \xF6ffnen",deprecatedPrompt:"Explorer Dates hat {0} veraltete Einstellung(en) gefunden. M\xF6chten Sie sie entfernen?",deprecatedClean:"Jetzt bereinigen",deprecatedKeep:"Alte Einstellungen behalten",deprecatedAskLater:"Sp\xE4ter fragen",showFileLocation:"Dateispeicherort anzeigen",teamConfigCorrupted:"Die Teamkonfigurationsdatei von Explorer Dates scheint besch\xE4digt zu sein. Bitte pr\xFCfen Sie die Datei .explorer-dates-profiles.json oder stellen Sie sie aus einem Backup wieder her.",appliedFromTeamProfile:'{0} Explorer Dates-Einstellungen aus dem Teamprofil "{1}" angewendet.',documentedOverrides:"Explorer Dates-\xDCberschreibungen in .vscode/explorer-dates-overrides.md dokumentiert",teamConfigMissingProfile:"Der Teamkonfiguration fehlt ein aktives Profil.",ephemeralStorageEnospc:"Die Teamkonfiguration von Explorer Dates konnte nicht gespeichert werden, da die Festplatte voll ist.",ephemeralStorageGeneric:"Die Teamkonfiguration von Explorer Dates konnte nicht gespeichert werden, da der Workspace schreibgesch\xFCtzt ist oder die Berechtigungen eingeschr\xE4nkt sind.",ephemeralStorageSuffix:"\xC4nderungen werden im Speicher behalten, bis VS Code neu startet, und k\xF6nnen verloren gehen."}});var Je=f((No,Or)=>{Or.exports={migrationDetailsTitle:"Explorer Dates - \u8A2D\u5B9A\u306E\u79FB\u884C",migrationDetailsHeader:"\u8A2D\u5B9A\u306E\u79FB\u884C",gitAttributionWarning:"Explorer Dates: Git \u306E\u5E30\u5C5E\u30D0\u30C3\u30B8\u306F VS Code for Web \u3067\u306F\u5229\u7528\u3067\u304D\u307E\u305B\u3093\u3002\u6642\u9593\u30D9\u30FC\u30B9\u306E\u88C5\u98FE\u306F\u5F15\u304D\u7D9A\u304D\u5229\u7528\u3067\u304D\u307E\u3059\u3002",noOverridesToDocument:"\u30C9\u30AD\u30E5\u30E1\u30F3\u30C8\u5316\u3059\u308B\u4E0A\u66F8\u304D\u306F\u3042\u308A\u307E\u305B\u3093\u3002",overrideNotesHeader:"# Explorer Dates \u4E0A\u66F8\u304D\u30E1\u30E2\\n\\n",analysisCommandsDisabled:"Explorer Dates \u306E\u5206\u6790\u30B3\u30DE\u30F3\u30C9\u306F\u7121\u52B9\u306B\u306A\u3063\u3066\u3044\u307E\u3059\u3002Ctrl+Shift+M/H/A \u306A\u3069\u306E\u30B7\u30E7\u30FC\u30C8\u30AB\u30C3\u30C8\u306F explorerDates.enableAnalysisCommands \u3092\u6709\u52B9\u306B\u3059\u308B\u307E\u3067\u6A5F\u80FD\u3057\u307E\u305B\u3093\u3002",analysisEnableNow:"\u4ECA\u3059\u3050\u6709\u52B9\u306B\u3059\u308B",analysisEnablePartially:"\u6709\u52B9\u5316\u306F\u4E00\u90E8\u6210\u529F\u3057\u307E\u3057\u305F\u3002\u6B8B\u308A\u306E\u30EF\u30FC\u30AF\u30B9\u30DA\u30FC\u30B9\u30D5\u30A9\u30EB\u30C0\u30FC\u3067 explorerDates.enableAnalysisCommands \u3092\u624B\u52D5\u3067\u66F4\u65B0\u3057\u3066\u304F\u3060\u3055\u3044\u3002",analysisEnableFailed:"\u6709\u52B9\u5316\u306B\u5931\u6557\u3057\u307E\u3057\u305F\uFF1A\u30EF\u30FC\u30AF\u30B9\u30DA\u30FC\u30B9\u8A2D\u5B9A\u3067 explorerDates.enableAnalysisCommands \u3092\u66F4\u65B0\u3057\u3066\u304F\u3060\u3055\u3044\u3002",workspaceTemplatesDisabled:"\u30EF\u30FC\u30AF\u30B9\u30DA\u30FC\u30B9\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8\u306F\u7121\u52B9\u306B\u306A\u3063\u3066\u3044\u307E\u3059\u3002\u3053\u306E\u30B3\u30DE\u30F3\u30C9\u3092\u4F7F\u7528\u3059\u308B\u306B\u306F explorerDates.enableWorkspaceTemplates \u3092\u6709\u52B9\u306B\u3057\u3066\u304F\u3060\u3055\u3044\u3002",workspaceTemplatesDisabledSave:"\u30EF\u30FC\u30AF\u30B9\u30DA\u30FC\u30B9\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8\u306F\u7121\u52B9\u306B\u306A\u3063\u3066\u3044\u307E\u3059\u3002\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8\u3092\u4FDD\u5B58\u3059\u308B\u306B\u306F explorerDates.enableWorkspaceTemplates \u3092\u6709\u52B9\u306B\u3057\u3066\u304F\u3060\u3055\u3044\u3002",enterTemplateName:"\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8\u540D\u3092\u5165\u529B",enterTemplateDescription:"\u8AAC\u660E\u3092\u5165\u529B\uFF08\u4EFB\u610F\uFF09",failedToOpenTemplateManager:"\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8\u30DE\u30CD\u30FC\u30B8\u30E3\u30FC\u3092\u958B\u3051\u307E\u305B\u3093\u3067\u3057\u305F: {0}",failedToSaveTemplate:"\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8\u306E\u4FDD\u5B58\u306B\u5931\u6557\u3057\u307E\u3057\u305F: {0}",reportingDisabled:"\u30EC\u30DD\u30FC\u30C8\u6A5F\u80FD\u306F\u7121\u52B9\u306B\u306A\u3063\u3066\u3044\u307E\u3059\u3002\u30EC\u30DD\u30FC\u30C8\u3092\u751F\u6210\u3059\u308B\u306B\u306F explorerDates.enableExportReporting \u3092\u6709\u52B9\u306B\u3057\u3066\u304F\u3060\u3055\u3044\u3002",failedToGenerateReport:"\u30EC\u30DD\u30FC\u30C8\u306E\u751F\u6210\u306B\u5931\u6557\u3057\u307E\u3057\u305F: {0}",apiDisabled:"Explorer Dates API \u306F\u8A2D\u5B9A\u3067\u7121\u52B9\u306B\u306A\u3063\u3066\u3044\u307E\u3059\u3002",failedToShowApiInformation:"API \u60C5\u5831\u306E\u8868\u793A\u306B\u5931\u6557\u3057\u307E\u3057\u305F: {0}",failedToShowWorkspaceActivity:"\u30EF\u30FC\u30AF\u30B9\u30DA\u30FC\u30B9\u306E\u30A2\u30AF\u30C6\u30A3\u30D3\u30C6\u30A3\u3092\u8868\u793A\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F: {0}",failedToShowPerformanceAnalytics:"\u30D1\u30D5\u30A9\u30FC\u30DE\u30F3\u30B9\u5206\u6790\u3092\u8868\u793A\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F: {0}",failedToShowCacheDebugInfo:"\u30AD\u30E3\u30C3\u30B7\u30E5\u306E\u30C7\u30D0\u30C3\u30B0\u60C5\u5831\u3092\u8868\u793A\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F: {0}",noWorkspaceFolderOpen:"\u30EF\u30FC\u30AF\u30B9\u30DA\u30FC\u30B9\u30D5\u30A9\u30EB\u30C0\u30FC\u304C\u958B\u304B\u308C\u3066\u3044\u307E\u305B\u3093",now:"\u4ECA",minutes:"\u5206",hours:"\u6642\u9593",days:"\u65E5",weeks:"\u9031",months:"\u304B\u6708",years:"\u5E74",justNow:"\u305F\u3063\u305F\u4ECA",minutesAgo:"{0} \u5206\u524D",hoursAgo:"{0} \u6642\u9593\u524D",daysAgo:"{0} \u65E5\u524D",lastModified:"\u6700\u7D42\u66F4\u65B0",refreshSuccess:"\u65E5\u4ED8\u88C5\u98FE\u3092\u66F4\u65B0\u3057\u307E\u3057\u305F",activationError:"Explorer Dates \u306E\u6709\u52B9\u5316\u306B\u5931\u6557\u3057\u307E\u3057\u305F",errorAccessingFile:"\u88C5\u98FE\u7528\u30D5\u30A1\u30A4\u30EB\u3078\u306E\u30A2\u30AF\u30BB\u30B9\u30A8\u30E9\u30FC",clearTelemetryPrompt:"Explorer Dates \u306E\u30ED\u30FC\u30AB\u30EB\u4FDD\u5B58\u30C6\u30EC\u30E1\u30C8\u30EA\u30A4\u30D9\u30F3\u30C8\u3092\u5B8C\u5168\u306B\u524A\u9664\u3057\u307E\u3059\u3002\u3053\u306E\u64CD\u4F5C\u306F\u5143\u306B\u623B\u305B\u307E\u305B\u3093\u3002\u7D9A\u884C\u3057\u307E\u3059\u304B\uFF1F",clearTelemetryConfirm:"\u30C6\u30EC\u30E1\u30C8\u30EA\u3092\u524A\u9664",clearTelemetryCancel:"\u30AD\u30E3\u30F3\u30BB\u30EB",reportFormatDisabled:"\u30EC\u30DD\u30FC\u30C8\u5F62\u5F0F\u300C{0}\u300D\u306F\u7121\u52B9\u3067\u3059\u3002\u8A31\u53EF\u3055\u308C\u3066\u3044\u308B\u5F62\u5F0F: {1}",reportDownloadTriggered:"\u30D6\u30E9\u30A6\u30B6\u3067\u30EC\u30DD\u30FC\u30C8\u306E\u30C0\u30A6\u30F3\u30ED\u30FC\u30C9\u3092\u958B\u59CB\u3057\u307E\u3057\u305F",selectReportTimeRangePlaceholder:"\u30EC\u30DD\u30FC\u30C8\u306E\u671F\u9593\u3092\u9078\u629E",selectReportFormatPlaceholder:"\u30EC\u30DD\u30FC\u30C8\u5F62\u5F0F\u3092\u9078\u629E",cleanupNoDeprecated:"\u2139\uFE0F \u30AF\u30EA\u30FC\u30F3\u30A2\u30C3\u30D7\u3059\u308B\u975E\u63A8\u5968\u8A2D\u5B9A\u306F\u3042\u308A\u307E\u305B\u3093\u3002",showMigrationHistoryNoHistory:"\u79FB\u884C\u5C65\u6B74\u304C\u898B\u3064\u304B\u308A\u307E\u305B\u3093\u3002",resetConfirmation:"Explorer Dates \u306E\u3059\u3079\u3066\u306E\u8A2D\u5B9A\u3092\u65E2\u5B9A\u5024\u306B\u30EA\u30BB\u30C3\u30C8\u3057\u307E\u3059\u3002\u3088\u308D\u3057\u3044\u3067\u3059\u304B\uFF1F",resetConfirm:"\u8A2D\u5B9A\u3092\u30EA\u30BB\u30C3\u30C8",resetCancel:"\u30AD\u30E3\u30F3\u30BB\u30EB",resetSuccess:"\u2705 {0} \u4EF6\u306E\u8A2D\u5B9A\u3092\u65E2\u5B9A\u5024\u306B\u30EA\u30BB\u30C3\u30C8\u3057\u307E\u3057\u305F\u3002",validateNoIssues:"\u2705 \u8A2D\u5B9A\u306F\u6709\u52B9\u3067\u3059 - \u554F\u984C\u306F\u898B\u3064\u304B\u308A\u307E\u305B\u3093\u3067\u3057\u305F\uFF01",validateFoundIssues:"{0} \u4EF6\u306E\u8A2D\u5B9A\u554F\u984C\u304C\u898B\u3064\u304B\u308A\u307E\u3057\u305F\u3002\u8A73\u7D30\u3092\u8868\u793A\u3057\u307E\u3059\u304B\uFF1F",validateShowDetails:"\u8A73\u7D30\u3092\u8868\u793A",validateDismiss:"\u9589\u3058\u308B",migrationNotificationMessage:"Explorer Dates \u306F\u4E92\u63DB\u6027\u306E\u305F\u3081\u306B {0} \u4EF6\u306E\u8A2D\u5B9A\u3092\u66F4\u65B0\u3057\u307E\u3057\u305F\u3002\u8A2D\u5B9A\u306F\u4FDD\u6301\u3055\u308C\u3066\u3044\u307E\u3059\u3002",migrationViewChanges:"\u5909\u66F4\u3092\u8868\u793A",migrationOpenSettings:"\u8A2D\u5B9A\u3092\u958B\u304F",deprecatedPrompt:"Explorer Dates \u306F {0} \u4EF6\u306E\u975E\u63A8\u5968\u8A2D\u5B9A\u3092\u691C\u51FA\u3057\u307E\u3057\u305F\u3002\u524A\u9664\u3057\u307E\u3059\u304B\uFF1F",deprecatedClean:"\u4ECA\u3059\u3050\u30AF\u30EA\u30FC\u30F3\u30A2\u30C3\u30D7",deprecatedKeep:"\u53E4\u3044\u8A2D\u5B9A\u3092\u4FDD\u6301",deprecatedAskLater:"\u5F8C\u3067\u78BA\u8A8D",showFileLocation:"\u30D5\u30A1\u30A4\u30EB\u306E\u5834\u6240\u3092\u8868\u793A",teamConfigCorrupted:"Explorer Dates \u306E\u30C1\u30FC\u30E0\u8A2D\u5B9A\u30D5\u30A1\u30A4\u30EB\u304C\u7834\u640D\u3057\u3066\u3044\u308B\u53EF\u80FD\u6027\u304C\u3042\u308A\u307E\u3059\u3002.explorer-dates-profiles.json \u3092\u78BA\u8A8D\u3059\u308B\u304B\u30D0\u30C3\u30AF\u30A2\u30C3\u30D7\u304B\u3089\u5FA9\u5143\u3057\u3066\u304F\u3060\u3055\u3044\u3002",appliedFromTeamProfile:"\u30C1\u30FC\u30E0\u30D7\u30ED\u30D5\u30A1\u30A4\u30EB\u300C{1}\u300D\u304B\u3089 {0} \u4EF6\u306E Explorer Dates \u8A2D\u5B9A\u3092\u9069\u7528\u3057\u307E\u3057\u305F\u3002",documentedOverrides:".vscode/explorer-dates-overrides.md \u306B Explorer Dates \u306E\u4E0A\u66F8\u304D\u3092\u8A18\u9332\u3057\u307E\u3057\u305F",teamConfigMissingProfile:"\u30C1\u30FC\u30E0\u8A2D\u5B9A\u306B\u30A2\u30AF\u30C6\u30A3\u30D6\u306A\u30D7\u30ED\u30D5\u30A1\u30A4\u30EB\u304C\u3042\u308A\u307E\u305B\u3093\u3002",ephemeralStorageEnospc:"\u30C7\u30A3\u30B9\u30AF\u5BB9\u91CF\u4E0D\u8DB3\u306E\u305F\u3081\u3001Explorer Dates \u306E\u30C1\u30FC\u30E0\u8A2D\u5B9A\u3092\u4FDD\u5B58\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002",ephemeralStorageGeneric:"\u30EF\u30FC\u30AF\u30B9\u30DA\u30FC\u30B9\u304C\u8AAD\u307F\u53D6\u308A\u5C02\u7528\u3001\u307E\u305F\u306F\u6A29\u9650\u304C\u5236\u9650\u3055\u308C\u3066\u3044\u308B\u305F\u3081\u3001Explorer Dates \u306E\u30C1\u30FC\u30E0\u8A2D\u5B9A\u3092\u4FDD\u5B58\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002",ephemeralStorageSuffix:"\u5909\u66F4\u306F VS Code \u304C\u518D\u8D77\u52D5\u3059\u308B\u307E\u3067\u30E1\u30E2\u30EA\u306B\u4FDD\u6301\u3055\u308C\u308B\u305F\u3081\u3001\u5931\u308F\u308C\u308B\u53EF\u80FD\u6027\u304C\u3042\u308A\u307E\u3059\u3002"}});var Qe=f((Uo,Nr)=>{Nr.exports={migrationDetailsTitle:"Explorer Dates - \u8BBE\u7F6E\u8FC1\u79FB",migrationDetailsHeader:"\u8BBE\u7F6E\u8FC1\u79FB",gitAttributionWarning:"Explorer Dates\uFF1AGit \u5F52\u5C5E\u5FBD\u7AE0\u5728 VS Code Web \u7248\u4E2D\u4E0D\u53EF\u7528\u3002\u57FA\u4E8E\u65F6\u95F4\u7684\u88C5\u9970\u4ECD\u7136\u53EF\u7528\u3002",noOverridesToDocument:"\u6CA1\u6709\u9700\u8981\u8BB0\u5F55\u7684\u8986\u76D6\u9879\u3002",overrideNotesHeader:"# Explorer Dates \u8986\u76D6\u8BF4\u660E\\n\\n",analysisCommandsDisabled:"Explorer Dates \u5206\u6790\u547D\u4EE4\u5DF2\u7981\u7528\u3002\u5728\u542F\u7528 explorerDates.enableAnalysisCommands \u4E4B\u524D\uFF0CCtrl+Shift+M/H/A \u7B49\u5FEB\u6377\u952E\u5C06\u65E0\u6CD5\u4F7F\u7528\u3002",analysisEnableNow:"\u7ACB\u5373\u542F\u7528",analysisEnablePartially:"\u542F\u7528\u90E8\u5206\u6210\u529F\u3002\u8BF7\u5728\u5269\u4F59\u7684\u5DE5\u4F5C\u533A\u6587\u4EF6\u5939\u4E2D\u624B\u52A8\u66F4\u65B0 explorerDates.enableAnalysisCommands\u3002",analysisEnableFailed:"\u542F\u7528\u5931\u8D25\uFF1A\u8BF7\u5728\u5DE5\u4F5C\u533A\u8BBE\u7F6E\u4E2D\u66F4\u65B0 explorerDates.enableAnalysisCommands\u3002",workspaceTemplatesDisabled:"\u5DE5\u4F5C\u533A\u6A21\u677F\u5DF2\u7981\u7528\u3002\u542F\u7528 explorerDates.enableWorkspaceTemplates \u4EE5\u4F7F\u7528\u6B64\u547D\u4EE4\u3002",workspaceTemplatesDisabledSave:"\u5DE5\u4F5C\u533A\u6A21\u677F\u5DF2\u7981\u7528\u3002\u542F\u7528 explorerDates.enableWorkspaceTemplates \u4EE5\u4FDD\u5B58\u6A21\u677F\u3002",enterTemplateName:"\u8F93\u5165\u6A21\u677F\u540D\u79F0",enterTemplateDescription:"\u8F93\u5165\u63CF\u8FF0\uFF08\u53EF\u9009\uFF09",failedToOpenTemplateManager:"\u65E0\u6CD5\u6253\u5F00\u6A21\u677F\u7BA1\u7406\u5668\uFF1A{0}",failedToSaveTemplate:"\u4FDD\u5B58\u6A21\u677F\u5931\u8D25\uFF1A{0}",reportingDisabled:"\u62A5\u8868\u529F\u80FD\u5DF2\u7981\u7528\u3002\u542F\u7528 explorerDates.enableExportReporting \u4EE5\u751F\u6210\u62A5\u8868\u3002",failedToGenerateReport:"\u751F\u6210\u62A5\u8868\u5931\u8D25\uFF1A{0}",apiDisabled:"Explorer Dates API \u5DF2\u901A\u8FC7\u8BBE\u7F6E\u7981\u7528\u3002",failedToShowApiInformation:"\u663E\u793A API \u4FE1\u606F\u5931\u8D25\uFF1A{0}",failedToShowWorkspaceActivity:"\u663E\u793A\u5DE5\u4F5C\u533A\u6D3B\u52A8\u5931\u8D25\uFF1A{0}",failedToShowPerformanceAnalytics:"\u663E\u793A\u6027\u80FD\u5206\u6790\u5931\u8D25\uFF1A{0}",failedToShowCacheDebugInfo:"\u663E\u793A\u7F13\u5B58\u8C03\u8BD5\u4FE1\u606F\u5931\u8D25\uFF1A{0}",noWorkspaceFolderOpen:"\u672A\u6253\u5F00\u4EFB\u4F55\u5DE5\u4F5C\u533A\u6587\u4EF6\u5939",now:"\u73B0\u5728",minutes:"\u5206",hours:"\u5C0F\u65F6",days:"\u5929",weeks:"\u5468",months:"\u4E2A\u6708",years:"\u5E74",justNow:"\u521A\u521A",minutesAgo:"{0} \u5206\u949F\u524D",hoursAgo:"{0} \u5C0F\u65F6\u524D",daysAgo:"{0} \u5929\u524D",lastModified:"\u6700\u540E\u4FEE\u6539",refreshSuccess:"\u65E5\u671F\u88C5\u9970\u5DF2\u5237\u65B0",activationError:"Explorer Dates \u542F\u52A8\u5931\u8D25",errorAccessingFile:"\u8BBF\u95EE\u7528\u4E8E\u88C5\u9970\u7684\u6587\u4EF6\u65F6\u51FA\u9519",clearTelemetryPrompt:"\u8FD9\u5C06\u6C38\u4E45\u5220\u9664\u672C\u5730\u5B58\u50A8\u7684 Explorer Dates \u9065\u6D4B\u4E8B\u4EF6\u3002\u6B64\u64CD\u4F5C\u65E0\u6CD5\u64A4\u9500\u3002\u662F\u5426\u7EE7\u7EED\uFF1F",clearTelemetryConfirm:"\u6E05\u9664\u9065\u6D4B",clearTelemetryCancel:"\u53D6\u6D88",reportFormatDisabled:"\u62A5\u8868\u683C\u5F0F\u201C{0}\u201D\u5DF2\u7981\u7528\u3002\u5141\u8BB8\u7684\u683C\u5F0F\uFF1A{1}",reportDownloadTriggered:"\u5DF2\u5728\u6D4F\u89C8\u5668\u4E2D\u89E6\u53D1\u62A5\u8868\u4E0B\u8F7D",selectReportTimeRangePlaceholder:"\u9009\u62E9\u62A5\u8868\u65F6\u95F4\u8303\u56F4",selectReportFormatPlaceholder:"\u9009\u62E9\u62A5\u8868\u683C\u5F0F",cleanupNoDeprecated:"\u2139\uFE0F \u672A\u53D1\u73B0\u9700\u8981\u6E05\u7406\u7684\u5DF2\u5F03\u7528\u8BBE\u7F6E\u3002",showMigrationHistoryNoHistory:"\u672A\u627E\u5230\u8FC1\u79FB\u5386\u53F2\u3002",resetConfirmation:"\u8FD9\u5C06\u628A\u6240\u6709 Explorer Dates \u8BBE\u7F6E\u91CD\u7F6E\u4E3A\u9ED8\u8BA4\u503C\u3002\u786E\u5B9A\u5417\uFF1F",resetConfirm:"\u91CD\u7F6E\u8BBE\u7F6E",resetCancel:"\u53D6\u6D88",resetSuccess:"\u2705 \u5DF2\u5C06 {0} \u9879\u8BBE\u7F6E\u91CD\u7F6E\u4E3A\u9ED8\u8BA4\u503C\u3002",validateNoIssues:"\u2705 \u914D\u7F6E\u6709\u6548 - \u672A\u53D1\u73B0\u95EE\u9898\uFF01",validateFoundIssues:"\u53D1\u73B0 {0} \u4E2A\u914D\u7F6E\u95EE\u9898\u3002\u662F\u5426\u67E5\u770B\u8BE6\u7EC6\u4FE1\u606F\uFF1F",validateShowDetails:"\u663E\u793A\u8BE6\u7EC6\u4FE1\u606F",validateDismiss:"\u5173\u95ED",migrationNotificationMessage:"Explorer Dates \u4E3A\u517C\u5BB9\u6027\u66F4\u65B0\u4E86 {0} \u9879\u8BBE\u7F6E\u3002\u60A8\u7684\u914D\u7F6E\u5DF2\u4FDD\u7559\u3002",migrationViewChanges:"\u67E5\u770B\u66F4\u6539",migrationOpenSettings:"\u6253\u5F00\u8BBE\u7F6E",deprecatedPrompt:"Explorer Dates \u53D1\u73B0 {0} \u4E2A\u5DF2\u5F03\u7528\u8BBE\u7F6E\u3002\u662F\u5426\u5220\u9664\uFF1F",deprecatedClean:"\u7ACB\u5373\u6E05\u7406",deprecatedKeep:"\u4FDD\u7559\u65E7\u8BBE\u7F6E",deprecatedAskLater:"\u7A0D\u540E\u8BE2\u95EE",showFileLocation:"\u663E\u793A\u6587\u4EF6\u4F4D\u7F6E",teamConfigCorrupted:"Explorer Dates \u56E2\u961F\u914D\u7F6E\u6587\u4EF6\u4F3C\u4E4E\u5DF2\u635F\u574F\u3002\u8BF7\u68C0\u67E5 .explorer-dates-profiles.json \u6587\u4EF6\u6216\u4ECE\u5907\u4EFD\u6062\u590D\u3002",appliedFromTeamProfile:"\u5DF2\u4ECE\u56E2\u961F\u914D\u7F6E\u6587\u4EF6\u201C{1}\u201D\u5E94\u7528 {0} \u9879 Explorer Dates \u8BBE\u7F6E\u3002",documentedOverrides:"\u5DF2\u5728 .vscode/explorer-dates-overrides.md \u4E2D\u8BB0\u5F55 Explorer Dates \u8986\u76D6\u9879",teamConfigMissingProfile:"\u56E2\u961F\u914D\u7F6E\u7F3A\u5C11\u6D3B\u52A8\u914D\u7F6E\u6587\u4EF6\u3002",ephemeralStorageEnospc:"\u7531\u4E8E\u78C1\u76D8\u5DF2\u6EE1\uFF0C\u65E0\u6CD5\u4FDD\u5B58 Explorer Dates \u56E2\u961F\u914D\u7F6E\u3002",ephemeralStorageGeneric:"\u7531\u4E8E\u5DE5\u4F5C\u533A\u4E3A\u53EA\u8BFB\u6216\u6743\u9650\u53D7\u9650\uFF0C\u65E0\u6CD5\u4FDD\u5B58 Explorer Dates \u56E2\u961F\u914D\u7F6E\u3002",ephemeralStorageSuffix:"\u66F4\u6539\u5C06\u5728 VS Code \u91CD\u542F\u524D\u4FDD\u5B58\u5728\u5185\u5B58\u4E2D\uFF0C\u56E0\u6B64\u53EF\u80FD\u4F1A\u4E22\u5931\u3002"}});var tt=f(($o,et)=>{var I={};I.en=xe();I.es=Ye();I.fr=Xe();I.de=Ze();I.ja=Je();I.zh=Qe();et.exports=I});var nt=f((qo,rt)=>{var L=require("vscode"),M={en:{now:"now",minutes:"m",hours:"h",days:"d",weeks:"w",months:"mo",years:"y",justNow:"just now",minutesAgo:t=>`${t} minute${t!==1?"s":""} ago`,hoursAgo:t=>`${t} hour${t!==1?"s":""} ago`,yesterday:"yesterday",daysAgo:t=>`${t} day${t!==1?"s":""} ago`,lastModified:"Last modified",refreshSuccess:"Date decorations refreshed",activationError:"Explorer Dates failed to activate",errorAccessingFile:"Error accessing file for decoration",clearTelemetryPrompt:"This will permanently delete locally-stored telemetry events for Explorer Dates. This action cannot be undone. Proceed?",clearTelemetryConfirm:"Clear Telemetry",clearTelemetryCancel:"Cancel",clearTelemetrySuccess:"\u2705 Explorer Dates telemetry cleared.",migrateChecking:"Checking for settings that need migration...",migrateAllUpToDate:"\u2705 All settings are up to date!",migrateApplied:t=>`\u2705 Explorer Dates maintenance applied: ${t}.`,organizeSettingsResult:t=>`Explorer Dates settings organized: ${t}`,cleanupSuccess:"\u2705 Deprecated settings have been cleaned up!",reportFormatDisabled:(t,e)=>`Report format "${t}" is disabled. Allowed formats: ${e}`,reportSaved:t=>`Report saved to ${t}`,reportGenerateFailed:"Failed to generate report",reportDownloadTriggered:"Report download triggered in browser",selectReportTimeRangePlaceholder:"Select report time range",selectReportFormatPlaceholder:"Select report format",cleanupNoDeprecated:"\u2139\uFE0F No deprecated settings found to clean up.",showMigrationHistoryNoHistory:"No migration history found.",resetConfirmation:"This will reset all Explorer Dates settings to their default values. Are you sure?",migrationDetailsTitle:"Explorer Dates - Settings Migration",migrationDetailsHeader:"Settings Migration",gitAttributionWarning:"Explorer Dates: Git attribution badges are unavailable on VS Code for Web. Time-based decorations remain available.",noOverridesToDocument:"No overrides to document.",overrideNotesHeader:`# Explorer Dates Override Notes +var xr=Object.create;var Ge=Object.defineProperty;var Tr=Object.getOwnPropertyDescriptor;var Ar=Object.getOwnPropertyNames;var Rr=Object.getPrototypeOf,Fr=Object.prototype.hasOwnProperty;var f=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var _r=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of Ar(e))!Fr.call(t,o)&&o!==r&&Ge(t,o,{get:()=>e[o],enumerable:!(n=Tr(e,o))||n.enumerable});return t};var Z=(t,e,r)=>(r=t!=null?xr(Rr(t)):{},_r(e||!t||!t.__esModule?Ge(r,"default",{value:t,enumerable:!0}):r,t));var k=f((Wo,je)=>{var q="__explorerDatesLogger",z=class{constructor(){this.b=null}y(e,r){if(this.b&&typeof this.b[e]=="function")try{return this.b[e](...r)}catch{}switch(e){case"debug":break;case"info":break;case"warn":break;case"error":break;default:break}}debug(...e){return this.y("debug",e)}info(...e){return this.y("info",e)}warn(...e){return this.y("warn",e)}error(...e){return this.y("error",e)}Oe(e){this.b=e}};function Pr(){return typeof global<"u"?(global[q]||(global[q]=new z),global[q]):typeof globalThis<"u"?(globalThis[q]||(globalThis[q]=new z),globalThis[q]):(De||(De=new z),De)}var ke=class extends z{},De=null;je.exports={Logger:ke,getLogger:Pr}});var xe=f((Io,Mr)=>{Mr.exports={migrationDetailsTitle:"Explorer Dates - Settings Migration",migrationDetailsHeader:"Settings Migration",gitAttributionWarning:"Explorer Dates: Git attribution badges are unavailable on VS Code for Web. Time-based decorations remain available.",noOverridesToDocument:"No overrides to document.",overrideNotesHeader:"# Explorer Dates Override Notes\\n\\n",analysisCommandsDisabled:"Explorer Dates analysis commands are disabled. Shortcuts like Ctrl+Shift+M/H/A will not work until you enable explorerDates.enableAnalysisCommands.",analysisEnableNow:"Enable Now",analysisEnablePartially:"Enable partially succeeded. Update explorerDates.enableAnalysisCommands in remaining workspace folders manually.",analysisEnableFailed:"Enable failed: update explorerDates.enableAnalysisCommands in workspace settings.",workspaceTemplatesDisabled:"Workspace templates are disabled. Enable explorerDates.enableWorkspaceTemplates to use this command.",workspaceTemplatesDisabledSave:"Workspace templates are disabled. Enable explorerDates.enableWorkspaceTemplates to save templates.",enterTemplateName:"Enter template name",enterTemplateDescription:"Enter description (optional)",failedToOpenTemplateManager:"Failed to open template manager: {0}",failedToSaveTemplate:"Failed to save template: {0}",reportingDisabled:"Reporting features are disabled. Enable explorerDates.enableExportReporting to generate reports.",failedToGenerateReport:"Failed to generate report: {0}",apiDisabled:"Explorer Dates API is disabled via settings.",failedToShowApiInformation:"Failed to show API information: {0}",failedToShowWorkspaceActivity:"Failed to show workspace activity: {0}",failedToShowPerformanceAnalytics:"Failed to show performance analytics: {0}",failedToShowCacheDebugInfo:"Failed to show cache debug info: {0}",noWorkspaceFolderOpen:"No workspace folder open",now:"now",minutes:"m",hours:"h",days:"d",weeks:"w",months:"mo",years:"y",justNow:"just now",minutesAgo:"{0} minute(s) ago",hoursAgo:"{0} hour(s) ago",daysAgo:"{0} day(s) ago",lastModified:"Last modified",refreshSuccess:"Date decorations refreshed",activationError:"Explorer Dates failed to activate",errorAccessingFile:"Error accessing file for decoration",clearTelemetryPrompt:"This will permanently delete locally-stored telemetry events for Explorer Dates. This action cannot be undone. Proceed?",clearTelemetryConfirm:"Clear Telemetry",clearTelemetryCancel:"Cancel",reportFormatDisabled:'Report format "{0}" is disabled. Allowed formats: {1}',reportDownloadTriggered:"Report download triggered in browser",selectReportTimeRangePlaceholder:"Select report time range",selectReportFormatPlaceholder:"Select report format",cleanupNoDeprecated:"\u2139\uFE0F No deprecated settings found to clean up.",showMigrationHistoryNoHistory:"No migration history found.",resetConfirmation:"This will reset all Explorer Dates settings to their default values. Are you sure?",resetConfirm:"Reset Settings",resetCancel:"Cancel",resetSuccess:"\u2705 Reset {0} settings to defaults.",validateNoIssues:"\u2705 Configuration is valid - no issues found!",validateFoundIssues:"Found {0} configuration issue(s). Would you like to see details?",validateShowDetails:"Show Details",validateDismiss:"Dismiss",migrationNotificationMessage:"Explorer Dates updated {0} setting(s) for compatibility. Your configuration has been preserved.",migrationViewChanges:"View Changes",migrationOpenSettings:"Open Settings",deprecatedPrompt:"Explorer Dates found {0} deprecated setting(s). Would you like to remove them?",deprecatedClean:"Clean Up Now",deprecatedKeep:"Keep Old Settings",deprecatedAskLater:"Ask Later",showFileLocation:"Show File Location",teamConfigCorrupted:"Explorer Dates team configuration file appears to be corrupted. Please check the .explorer-dates-profiles.json file or restore from backup.",appliedFromTeamProfile:'Applied {0} Explorer Dates settings from team profile "{1}".',documentedOverrides:"Documented Explorer Dates overrides in .vscode/explorer-dates-overrides.md",teamConfigMissingProfile:"Team configuration is missing an active profile.",ephemeralStorageEnospc:"Explorer Dates team configuration could not be saved because the disk is full.",ephemeralStorageGeneric:"Explorer Dates team configuration could not be saved because the workspace is read-only or permissions are restricted.",ephemeralStorageSuffix:"Changes will be kept in memory until VS Code restarts, so they may be lost."}});var Ye=f((Lo,Wr)=>{Wr.exports={migrationDetailsTitle:"Explorer Dates - Migraci\xF3n de configuraci\xF3n",migrationDetailsHeader:"Migraci\xF3n de configuraci\xF3n",gitAttributionWarning:"Explorer Dates: Las insignias de atribuci\xF3n de Git no est\xE1n disponibles en VS Code para la Web. Las decoraciones basadas en tiempo siguen disponibles.",noOverridesToDocument:"No hay anulaciones para documentar.",overrideNotesHeader:"# Notas de anulaci\xF3n de Explorer Dates\\n\\n",analysisCommandsDisabled:"Los comandos de an\xE1lisis de Explorer Dates est\xE1n deshabilitados. Atajos como Ctrl+Shift+M/H/A no funcionar\xE1n hasta que habilites explorerDates.enableAnalysisCommands.",analysisEnableNow:"Habilitar ahora",analysisEnablePartially:"La activaci\xF3n se complet\xF3 parcialmente. Actualiza explorerDates.enableAnalysisCommands manualmente en las carpetas de trabajo restantes.",analysisEnableFailed:"Error al habilitar: actualiza explorerDates.enableAnalysisCommands en la configuraci\xF3n del espacio de trabajo.",workspaceTemplatesDisabled:"Las plantillas de espacio de trabajo est\xE1n deshabilitadas. Habilita explorerDates.enableWorkspaceTemplates para usar este comando.",workspaceTemplatesDisabledSave:"Las plantillas de espacio de trabajo est\xE1n deshabilitadas. Habilita explorerDates.enableWorkspaceTemplates para guardar plantillas.",enterTemplateName:"Introduce el nombre de la plantilla",enterTemplateDescription:"Introduce la descripci\xF3n (opcional)",failedToOpenTemplateManager:"Error al abrir el administrador de plantillas: {0}",failedToSaveTemplate:"Error al guardar la plantilla: {0}",reportingDisabled:"Las funciones de informes est\xE1n deshabilitadas. Habilita explorerDates.enableExportReporting para generar informes.",failedToGenerateReport:"Error al generar el informe: {0}",apiDisabled:"La API de Explorer Dates est\xE1 deshabilitada mediante la configuraci\xF3n.",failedToShowApiInformation:"Error al mostrar la informaci\xF3n de la API: {0}",failedToShowWorkspaceActivity:"Error al mostrar la actividad del espacio de trabajo: {0}",failedToShowPerformanceAnalytics:"Error al mostrar los an\xE1lisis de rendimiento: {0}",failedToShowCacheDebugInfo:"Error al mostrar la informaci\xF3n de depuraci\xF3n de la cach\xE9: {0}",noWorkspaceFolderOpen:"No hay ninguna carpeta de espacio de trabajo abierta",now:"ahora",minutes:"m",hours:"h",days:"d",weeks:"sem",months:"mes",years:"a",justNow:"justo ahora",minutesAgo:"hace {0} minuto(s)",hoursAgo:"hace {0} hora(s)",daysAgo:"hace {0} d\xEDa(s)",lastModified:"\xDAltima modificaci\xF3n",refreshSuccess:"Decoraciones de fecha actualizadas",activationError:"Explorer Dates no se pudo activar",errorAccessingFile:"Error al acceder al archivo para la decoraci\xF3n",clearTelemetryPrompt:"Esto eliminar\xE1 permanentemente los eventos de telemetr\xEDa almacenados localmente para Explorer Dates. Esta acci\xF3n no se puede deshacer. \xBFContinuar?",clearTelemetryConfirm:"Borrar telemetr\xEDa",clearTelemetryCancel:"Cancelar",reportFormatDisabled:'El formato de informe "{0}" est\xE1 deshabilitado. Formatos permitidos: {1}',reportDownloadTriggered:"Descarga del informe iniciada en el navegador",selectReportTimeRangePlaceholder:"Seleccionar rango de tiempo del informe",selectReportFormatPlaceholder:"Seleccionar formato del informe",cleanupNoDeprecated:"\u2139\uFE0F No se encontraron configuraciones obsoletas para limpiar.",showMigrationHistoryNoHistory:"No se encontr\xF3 historial de migraci\xF3n.",resetConfirmation:"Esto restablecer\xE1 todas las configuraciones de Explorer Dates a sus valores predeterminados. \xBFEst\xE1s seguro?",resetConfirm:"Restablecer configuraciones",resetCancel:"Cancelar",resetSuccess:"\u2705 Se restablecieron {0} configuraciones a los valores predeterminados.",validateNoIssues:"\u2705 La configuraci\xF3n es v\xE1lida - no se encontraron problemas.",validateFoundIssues:"Se encontraron {0} problema(s) de configuraci\xF3n. \xBFDeseas ver los detalles?",validateShowDetails:"Mostrar detalles",validateDismiss:"Descartar",migrationNotificationMessage:"Explorer Dates actualiz\xF3 {0} configuraci\xF3n(es) por compatibilidad. Tu configuraci\xF3n se ha conservado.",migrationViewChanges:"Ver cambios",migrationOpenSettings:"Abrir configuraciones",deprecatedPrompt:"Explorer Dates encontr\xF3 {0} configuraci\xF3n(es) obsoleta(s). \xBFDeseas eliminarlas?",deprecatedClean:"Limpiar ahora",deprecatedKeep:"Mantener configuraciones antiguas",deprecatedAskLater:"Preguntar m\xE1s tarde",showFileLocation:"Mostrar ubicaci\xF3n del archivo",teamConfigCorrupted:"El archivo de configuraci\xF3n de equipo de Explorer Dates parece estar da\xF1ado. Verifica el archivo .explorer-dates-profiles.json o restaura desde una copia de seguridad.",appliedFromTeamProfile:'Se aplicaron {0} configuraciones de Explorer Dates desde el perfil de equipo "{1}".',documentedOverrides:"Se documentaron las anulaciones de Explorer Dates en .vscode/explorer-dates-overrides.md",teamConfigMissingProfile:"La configuraci\xF3n del equipo no tiene un perfil activo.",ephemeralStorageEnospc:"No se pudo guardar la configuraci\xF3n de equipo de Explorer Dates porque el disco est\xE1 lleno.",ephemeralStorageGeneric:"No se pudo guardar la configuraci\xF3n de equipo de Explorer Dates porque el espacio de trabajo es de solo lectura o los permisos est\xE1n restringidos.",ephemeralStorageSuffix:"Los cambios se mantendr\xE1n en memoria hasta que VS Code se reinicie, por lo que podr\xEDan perderse."}});var Xe=f((Oo,Ir)=>{Ir.exports={migrationDetailsTitle:"Explorer Dates - Migration des param\xE8tres",migrationDetailsHeader:"Migration des param\xE8tres",gitAttributionWarning:"Explorer Dates : Les badges d\u2019attribution Git ne sont pas disponibles sur VS Code pour le Web. Les d\xE9corations bas\xE9es sur le temps restent disponibles.",noOverridesToDocument:"Aucune substitution \xE0 documenter.",overrideNotesHeader:"# Notes de substitution Explorer Dates\\n\\n",analysisCommandsDisabled:"Les commandes d\u2019analyse Explorer Dates sont d\xE9sactiv\xE9es. Les raccourcis comme Ctrl+Shift+M/H/A ne fonctionneront pas tant que vous n\u2019aurez pas activ\xE9 explorerDates.enableAnalysisCommands.",analysisEnableNow:"Activer maintenant",analysisEnablePartially:"L\u2019activation a partiellement r\xE9ussi. Mettez \xE0 jour explorerDates.enableAnalysisCommands manuellement dans les dossiers d\u2019espace de travail restants.",analysisEnableFailed:"\xC9chec de l\u2019activation : mettez \xE0 jour explorerDates.enableAnalysisCommands dans les param\xE8tres de l\u2019espace de travail.",workspaceTemplatesDisabled:"Les mod\xE8les d\u2019espace de travail sont d\xE9sactiv\xE9s. Activez explorerDates.enableWorkspaceTemplates pour utiliser cette commande.",workspaceTemplatesDisabledSave:"Les mod\xE8les d\u2019espace de travail sont d\xE9sactiv\xE9s. Activez explorerDates.enableWorkspaceTemplates pour enregistrer des mod\xE8les.",enterTemplateName:"Entrez le nom du mod\xE8le",enterTemplateDescription:"Entrez la description (facultatif)",failedToOpenTemplateManager:"Impossible d\u2019ouvrir le gestionnaire de mod\xE8les : {0}",failedToSaveTemplate:"Impossible d\u2019enregistrer le mod\xE8le : {0}",reportingDisabled:"Les fonctionnalit\xE9s de rapport sont d\xE9sactiv\xE9es. Activez explorerDates.enableExportReporting pour g\xE9n\xE9rer des rapports.",failedToGenerateReport:"Impossible de g\xE9n\xE9rer le rapport : {0}",apiDisabled:"L\u2019API Explorer Dates est d\xE9sactiv\xE9e via les param\xE8tres.",failedToShowApiInformation:"Impossible d\u2019afficher les informations de l\u2019API : {0}",failedToShowWorkspaceActivity:"Impossible d\u2019afficher l\u2019activit\xE9 de l\u2019espace de travail : {0}",failedToShowPerformanceAnalytics:"Impossible d\u2019afficher les analyses de performance : {0}",failedToShowCacheDebugInfo:"Impossible d\u2019afficher les informations de d\xE9bogage du cache : {0}",noWorkspaceFolderOpen:"Aucun dossier d\u2019espace de travail ouvert",now:"maintenant",minutes:"min",hours:"h",days:"j",weeks:"sem",months:"mois",years:"an",justNow:"\xE0 l\u2019instant",minutesAgo:"il y a {0} minute(s)",hoursAgo:"il y a {0} heure(s)",daysAgo:"il y a {0} jour(s)",lastModified:"Derni\xE8re modification",refreshSuccess:"D\xE9corations de date actualis\xE9es",activationError:"\xC9chec de l\u2019activation d\u2019Explorer Dates",errorAccessingFile:"Erreur lors de l\u2019acc\xE8s au fichier pour la d\xE9coration",clearTelemetryPrompt:"Cela supprimera d\xE9finitivement les \xE9v\xE9nements de t\xE9l\xE9m\xE9trie stock\xE9s localement pour Explorer Dates. Cette action est irr\xE9versible. Continuer ?",clearTelemetryConfirm:"Effacer la t\xE9l\xE9m\xE9trie",clearTelemetryCancel:"Annuler",reportFormatDisabled:'Le format de rapport "{0}" est d\xE9sactiv\xE9. Formats autoris\xE9s : {1}',reportDownloadTriggered:"T\xE9l\xE9chargement du rapport lanc\xE9 dans le navigateur",selectReportTimeRangePlaceholder:"S\xE9lectionner la p\xE9riode du rapport",selectReportFormatPlaceholder:"S\xE9lectionner le format du rapport",cleanupNoDeprecated:"\u2139\uFE0F Aucun param\xE8tre obsol\xE8te \xE0 nettoyer.",showMigrationHistoryNoHistory:"Aucun historique de migration trouv\xE9.",resetConfirmation:"Cela r\xE9initialisera tous les param\xE8tres Explorer Dates \xE0 leurs valeurs par d\xE9faut. \xCAtes-vous s\xFBr ?",resetConfirm:"R\xE9initialiser les param\xE8tres",resetCancel:"Annuler",resetSuccess:"\u2705 {0} param\xE8tres ont \xE9t\xE9 r\xE9initialis\xE9s aux valeurs par d\xE9faut.",validateNoIssues:"\u2705 La configuration est valide - aucun probl\xE8me d\xE9tect\xE9 !",validateFoundIssues:"{0} probl\xE8me(s) de configuration trouv\xE9(s). Voulez-vous voir les d\xE9tails ?",validateShowDetails:"Afficher les d\xE9tails",validateDismiss:"Ignorer",migrationNotificationMessage:"Explorer Dates a mis \xE0 jour {0} param\xE8tre(s) pour compatibilit\xE9. Votre configuration a \xE9t\xE9 conserv\xE9e.",migrationViewChanges:"Voir les modifications",migrationOpenSettings:"Ouvrir les param\xE8tres",deprecatedPrompt:"Explorer Dates a trouv\xE9 {0} param\xE8tre(s) obsol\xE8te(s). Voulez-vous les supprimer ?",deprecatedClean:"Nettoyer maintenant",deprecatedKeep:"Conserver les anciens param\xE8tres",deprecatedAskLater:"Demander plus tard",showFileLocation:"Afficher l\u2019emplacement du fichier",teamConfigCorrupted:"Le fichier de configuration d\u2019\xE9quipe Explorer Dates semble corrompu. V\xE9rifiez le fichier .explorer-dates-profiles.json ou restaurez-le depuis une sauvegarde.",appliedFromTeamProfile:'{0} param\xE8tres Explorer Dates appliqu\xE9s depuis le profil d\u2019\xE9quipe "{1}".',documentedOverrides:"Substitutions Explorer Dates document\xE9es dans .vscode/explorer-dates-overrides.md",teamConfigMissingProfile:"La configuration d\u2019\xE9quipe ne contient aucun profil actif.",ephemeralStorageEnospc:"Impossible d\u2019enregistrer la configuration d\u2019\xE9quipe Explorer Dates car le disque est plein.",ephemeralStorageGeneric:"Impossible d\u2019enregistrer la configuration d\u2019\xE9quipe Explorer Dates car l\u2019espace de travail est en lecture seule ou les permissions sont restreintes.",ephemeralStorageSuffix:"Les modifications seront conserv\xE9es en m\xE9moire jusqu\u2019au red\xE9marrage de VS Code et pourraient \xEAtre perdues."}});var Ze=f((No,Lr)=>{Lr.exports={migrationDetailsTitle:"Explorer Dates - Einstellungen migrieren",migrationDetailsHeader:"Einstellungen migrieren",gitAttributionWarning:"Explorer Dates: Git-Zuordnungsabzeichen sind in VS Code f\xFCr das Web nicht verf\xFCgbar. Zeitbasierte Hervorhebungen bleiben verf\xFCgbar.",noOverridesToDocument:"Keine \xDCberschreibungen zu dokumentieren.",overrideNotesHeader:"# Explorer Dates \xDCberschreibungsnotizen\\n\\n",analysisCommandsDisabled:"Die Analysebefehle von Explorer Dates sind deaktiviert. Tastenkombinationen wie Ctrl+Shift+M/H/A funktionieren nicht, bis explorerDates.enableAnalysisCommands aktiviert ist.",analysisEnableNow:"Jetzt aktivieren",analysisEnablePartially:"Die Aktivierung war teilweise erfolgreich. Aktualisieren Sie explorerDates.enableAnalysisCommands manuell in den verbleibenden Workspace-Ordnern.",analysisEnableFailed:"Aktivierung fehlgeschlagen: Aktualisieren Sie explorerDates.enableAnalysisCommands in den Workspace-Einstellungen.",workspaceTemplatesDisabled:"Workspace-Vorlagen sind deaktiviert. Aktivieren Sie explorerDates.enableWorkspaceTemplates, um diesen Befehl zu verwenden.",workspaceTemplatesDisabledSave:"Workspace-Vorlagen sind deaktiviert. Aktivieren Sie explorerDates.enableWorkspaceTemplates, um Vorlagen zu speichern.",enterTemplateName:"Vorlagenname eingeben",enterTemplateDescription:"Beschreibung eingeben (optional)",failedToOpenTemplateManager:"Fehler beim \xD6ffnen des Vorlagenmanagers: {0}",failedToSaveTemplate:"Fehler beim Speichern der Vorlage: {0}",reportingDisabled:"Berichtsfunktionen sind deaktiviert. Aktivieren Sie explorerDates.enableExportReporting, um Berichte zu erstellen.",failedToGenerateReport:"Fehler beim Erstellen des Berichts: {0}",apiDisabled:"Die Explorer Dates API ist in den Einstellungen deaktiviert.",failedToShowApiInformation:"Fehler beim Anzeigen der API-Informationen: {0}",failedToShowWorkspaceActivity:"Fehler beim Anzeigen der Workspace-Aktivit\xE4t: {0}",failedToShowPerformanceAnalytics:"Fehler beim Anzeigen der Leistungsanalysen: {0}",failedToShowCacheDebugInfo:"Fehler beim Anzeigen der Cache-Debug-Informationen: {0}",noWorkspaceFolderOpen:"Kein Workspace-Ordner ge\xF6ffnet",now:"jetzt",minutes:"Min",hours:"Std",days:"T",weeks:"W",months:"Mon",years:"J",justNow:"gerade eben",minutesAgo:"vor {0} Minute(n)",hoursAgo:"vor {0} Stunde(n)",daysAgo:"vor {0} Tag(en)",lastModified:"Zuletzt ge\xE4ndert",refreshSuccess:"Datumsdekorationen aktualisiert",activationError:"Explorer Dates konnte nicht aktiviert werden",errorAccessingFile:"Fehler beim Zugriff auf Datei f\xFCr Dekoration",clearTelemetryPrompt:"Dies l\xF6scht dauerhaft lokal gespeicherte Telemetrieereignisse f\xFCr Explorer Dates. Diese Aktion kann nicht r\xFCckg\xE4ngig gemacht werden. Fortfahren?",clearTelemetryConfirm:"Telemetrie l\xF6schen",clearTelemetryCancel:"Abbrechen",reportFormatDisabled:'Berichtsformat "{0}" ist deaktiviert. Zul\xE4ssige Formate: {1}',reportDownloadTriggered:"Bericht-Download im Browser gestartet",selectReportTimeRangePlaceholder:"Berichtszeitraum ausw\xE4hlen",selectReportFormatPlaceholder:"Berichtsformat ausw\xE4hlen",cleanupNoDeprecated:"\u2139\uFE0F Keine veralteten Einstellungen zum Bereinigen gefunden.",showMigrationHistoryNoHistory:"Kein Migrationsverlauf gefunden.",resetConfirmation:"Dies setzt alle Explorer Dates Einstellungen auf ihre Standardwerte zur\xFCck. Sind Sie sicher?",resetConfirm:"Einstellungen zur\xFCcksetzen",resetCancel:"Abbrechen",resetSuccess:"\u2705 {0} Einstellungen auf Standard zur\xFCckgesetzt.",validateNoIssues:"\u2705 Konfiguration ist g\xFCltig - keine Probleme gefunden!",validateFoundIssues:"{0} Konfigurationsproblem(e) gefunden. M\xF6chten Sie Details sehen?",validateShowDetails:"Details anzeigen",validateDismiss:"Verwerfen",migrationNotificationMessage:"Explorer Dates hat {0} Einstellung(en) zur Kompatibilit\xE4t aktualisiert. Ihre Konfiguration wurde beibehalten.",migrationViewChanges:"\xC4nderungen anzeigen",migrationOpenSettings:"Einstellungen \xF6ffnen",deprecatedPrompt:"Explorer Dates hat {0} veraltete Einstellung(en) gefunden. M\xF6chten Sie sie entfernen?",deprecatedClean:"Jetzt bereinigen",deprecatedKeep:"Alte Einstellungen behalten",deprecatedAskLater:"Sp\xE4ter fragen",showFileLocation:"Dateispeicherort anzeigen",teamConfigCorrupted:"Die Teamkonfigurationsdatei von Explorer Dates scheint besch\xE4digt zu sein. Bitte pr\xFCfen Sie die Datei .explorer-dates-profiles.json oder stellen Sie sie aus einem Backup wieder her.",appliedFromTeamProfile:'{0} Explorer Dates-Einstellungen aus dem Teamprofil "{1}" angewendet.',documentedOverrides:"Explorer Dates-\xDCberschreibungen in .vscode/explorer-dates-overrides.md dokumentiert",teamConfigMissingProfile:"Der Teamkonfiguration fehlt ein aktives Profil.",ephemeralStorageEnospc:"Die Teamkonfiguration von Explorer Dates konnte nicht gespeichert werden, da die Festplatte voll ist.",ephemeralStorageGeneric:"Die Teamkonfiguration von Explorer Dates konnte nicht gespeichert werden, da der Workspace schreibgesch\xFCtzt ist oder die Berechtigungen eingeschr\xE4nkt sind.",ephemeralStorageSuffix:"\xC4nderungen werden im Speicher behalten, bis VS Code neu startet, und k\xF6nnen verloren gehen."}});var Je=f((Uo,Or)=>{Or.exports={migrationDetailsTitle:"Explorer Dates - \u8A2D\u5B9A\u306E\u79FB\u884C",migrationDetailsHeader:"\u8A2D\u5B9A\u306E\u79FB\u884C",gitAttributionWarning:"Explorer Dates: Git \u306E\u5E30\u5C5E\u30D0\u30C3\u30B8\u306F VS Code for Web \u3067\u306F\u5229\u7528\u3067\u304D\u307E\u305B\u3093\u3002\u6642\u9593\u30D9\u30FC\u30B9\u306E\u88C5\u98FE\u306F\u5F15\u304D\u7D9A\u304D\u5229\u7528\u3067\u304D\u307E\u3059\u3002",noOverridesToDocument:"\u30C9\u30AD\u30E5\u30E1\u30F3\u30C8\u5316\u3059\u308B\u4E0A\u66F8\u304D\u306F\u3042\u308A\u307E\u305B\u3093\u3002",overrideNotesHeader:"# Explorer Dates \u4E0A\u66F8\u304D\u30E1\u30E2\\n\\n",analysisCommandsDisabled:"Explorer Dates \u306E\u5206\u6790\u30B3\u30DE\u30F3\u30C9\u306F\u7121\u52B9\u306B\u306A\u3063\u3066\u3044\u307E\u3059\u3002Ctrl+Shift+M/H/A \u306A\u3069\u306E\u30B7\u30E7\u30FC\u30C8\u30AB\u30C3\u30C8\u306F explorerDates.enableAnalysisCommands \u3092\u6709\u52B9\u306B\u3059\u308B\u307E\u3067\u6A5F\u80FD\u3057\u307E\u305B\u3093\u3002",analysisEnableNow:"\u4ECA\u3059\u3050\u6709\u52B9\u306B\u3059\u308B",analysisEnablePartially:"\u6709\u52B9\u5316\u306F\u4E00\u90E8\u6210\u529F\u3057\u307E\u3057\u305F\u3002\u6B8B\u308A\u306E\u30EF\u30FC\u30AF\u30B9\u30DA\u30FC\u30B9\u30D5\u30A9\u30EB\u30C0\u30FC\u3067 explorerDates.enableAnalysisCommands \u3092\u624B\u52D5\u3067\u66F4\u65B0\u3057\u3066\u304F\u3060\u3055\u3044\u3002",analysisEnableFailed:"\u6709\u52B9\u5316\u306B\u5931\u6557\u3057\u307E\u3057\u305F\uFF1A\u30EF\u30FC\u30AF\u30B9\u30DA\u30FC\u30B9\u8A2D\u5B9A\u3067 explorerDates.enableAnalysisCommands \u3092\u66F4\u65B0\u3057\u3066\u304F\u3060\u3055\u3044\u3002",workspaceTemplatesDisabled:"\u30EF\u30FC\u30AF\u30B9\u30DA\u30FC\u30B9\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8\u306F\u7121\u52B9\u306B\u306A\u3063\u3066\u3044\u307E\u3059\u3002\u3053\u306E\u30B3\u30DE\u30F3\u30C9\u3092\u4F7F\u7528\u3059\u308B\u306B\u306F explorerDates.enableWorkspaceTemplates \u3092\u6709\u52B9\u306B\u3057\u3066\u304F\u3060\u3055\u3044\u3002",workspaceTemplatesDisabledSave:"\u30EF\u30FC\u30AF\u30B9\u30DA\u30FC\u30B9\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8\u306F\u7121\u52B9\u306B\u306A\u3063\u3066\u3044\u307E\u3059\u3002\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8\u3092\u4FDD\u5B58\u3059\u308B\u306B\u306F explorerDates.enableWorkspaceTemplates \u3092\u6709\u52B9\u306B\u3057\u3066\u304F\u3060\u3055\u3044\u3002",enterTemplateName:"\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8\u540D\u3092\u5165\u529B",enterTemplateDescription:"\u8AAC\u660E\u3092\u5165\u529B\uFF08\u4EFB\u610F\uFF09",failedToOpenTemplateManager:"\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8\u30DE\u30CD\u30FC\u30B8\u30E3\u30FC\u3092\u958B\u3051\u307E\u305B\u3093\u3067\u3057\u305F: {0}",failedToSaveTemplate:"\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8\u306E\u4FDD\u5B58\u306B\u5931\u6557\u3057\u307E\u3057\u305F: {0}",reportingDisabled:"\u30EC\u30DD\u30FC\u30C8\u6A5F\u80FD\u306F\u7121\u52B9\u306B\u306A\u3063\u3066\u3044\u307E\u3059\u3002\u30EC\u30DD\u30FC\u30C8\u3092\u751F\u6210\u3059\u308B\u306B\u306F explorerDates.enableExportReporting \u3092\u6709\u52B9\u306B\u3057\u3066\u304F\u3060\u3055\u3044\u3002",failedToGenerateReport:"\u30EC\u30DD\u30FC\u30C8\u306E\u751F\u6210\u306B\u5931\u6557\u3057\u307E\u3057\u305F: {0}",apiDisabled:"Explorer Dates API \u306F\u8A2D\u5B9A\u3067\u7121\u52B9\u306B\u306A\u3063\u3066\u3044\u307E\u3059\u3002",failedToShowApiInformation:"API \u60C5\u5831\u306E\u8868\u793A\u306B\u5931\u6557\u3057\u307E\u3057\u305F: {0}",failedToShowWorkspaceActivity:"\u30EF\u30FC\u30AF\u30B9\u30DA\u30FC\u30B9\u306E\u30A2\u30AF\u30C6\u30A3\u30D3\u30C6\u30A3\u3092\u8868\u793A\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F: {0}",failedToShowPerformanceAnalytics:"\u30D1\u30D5\u30A9\u30FC\u30DE\u30F3\u30B9\u5206\u6790\u3092\u8868\u793A\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F: {0}",failedToShowCacheDebugInfo:"\u30AD\u30E3\u30C3\u30B7\u30E5\u306E\u30C7\u30D0\u30C3\u30B0\u60C5\u5831\u3092\u8868\u793A\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F: {0}",noWorkspaceFolderOpen:"\u30EF\u30FC\u30AF\u30B9\u30DA\u30FC\u30B9\u30D5\u30A9\u30EB\u30C0\u30FC\u304C\u958B\u304B\u308C\u3066\u3044\u307E\u305B\u3093",now:"\u4ECA",minutes:"\u5206",hours:"\u6642\u9593",days:"\u65E5",weeks:"\u9031",months:"\u304B\u6708",years:"\u5E74",justNow:"\u305F\u3063\u305F\u4ECA",minutesAgo:"{0} \u5206\u524D",hoursAgo:"{0} \u6642\u9593\u524D",daysAgo:"{0} \u65E5\u524D",lastModified:"\u6700\u7D42\u66F4\u65B0",refreshSuccess:"\u65E5\u4ED8\u88C5\u98FE\u3092\u66F4\u65B0\u3057\u307E\u3057\u305F",activationError:"Explorer Dates \u306E\u6709\u52B9\u5316\u306B\u5931\u6557\u3057\u307E\u3057\u305F",errorAccessingFile:"\u88C5\u98FE\u7528\u30D5\u30A1\u30A4\u30EB\u3078\u306E\u30A2\u30AF\u30BB\u30B9\u30A8\u30E9\u30FC",clearTelemetryPrompt:"Explorer Dates \u306E\u30ED\u30FC\u30AB\u30EB\u4FDD\u5B58\u30C6\u30EC\u30E1\u30C8\u30EA\u30A4\u30D9\u30F3\u30C8\u3092\u5B8C\u5168\u306B\u524A\u9664\u3057\u307E\u3059\u3002\u3053\u306E\u64CD\u4F5C\u306F\u5143\u306B\u623B\u305B\u307E\u305B\u3093\u3002\u7D9A\u884C\u3057\u307E\u3059\u304B\uFF1F",clearTelemetryConfirm:"\u30C6\u30EC\u30E1\u30C8\u30EA\u3092\u524A\u9664",clearTelemetryCancel:"\u30AD\u30E3\u30F3\u30BB\u30EB",reportFormatDisabled:"\u30EC\u30DD\u30FC\u30C8\u5F62\u5F0F\u300C{0}\u300D\u306F\u7121\u52B9\u3067\u3059\u3002\u8A31\u53EF\u3055\u308C\u3066\u3044\u308B\u5F62\u5F0F: {1}",reportDownloadTriggered:"\u30D6\u30E9\u30A6\u30B6\u3067\u30EC\u30DD\u30FC\u30C8\u306E\u30C0\u30A6\u30F3\u30ED\u30FC\u30C9\u3092\u958B\u59CB\u3057\u307E\u3057\u305F",selectReportTimeRangePlaceholder:"\u30EC\u30DD\u30FC\u30C8\u306E\u671F\u9593\u3092\u9078\u629E",selectReportFormatPlaceholder:"\u30EC\u30DD\u30FC\u30C8\u5F62\u5F0F\u3092\u9078\u629E",cleanupNoDeprecated:"\u2139\uFE0F \u30AF\u30EA\u30FC\u30F3\u30A2\u30C3\u30D7\u3059\u308B\u975E\u63A8\u5968\u8A2D\u5B9A\u306F\u3042\u308A\u307E\u305B\u3093\u3002",showMigrationHistoryNoHistory:"\u79FB\u884C\u5C65\u6B74\u304C\u898B\u3064\u304B\u308A\u307E\u305B\u3093\u3002",resetConfirmation:"Explorer Dates \u306E\u3059\u3079\u3066\u306E\u8A2D\u5B9A\u3092\u65E2\u5B9A\u5024\u306B\u30EA\u30BB\u30C3\u30C8\u3057\u307E\u3059\u3002\u3088\u308D\u3057\u3044\u3067\u3059\u304B\uFF1F",resetConfirm:"\u8A2D\u5B9A\u3092\u30EA\u30BB\u30C3\u30C8",resetCancel:"\u30AD\u30E3\u30F3\u30BB\u30EB",resetSuccess:"\u2705 {0} \u4EF6\u306E\u8A2D\u5B9A\u3092\u65E2\u5B9A\u5024\u306B\u30EA\u30BB\u30C3\u30C8\u3057\u307E\u3057\u305F\u3002",validateNoIssues:"\u2705 \u8A2D\u5B9A\u306F\u6709\u52B9\u3067\u3059 - \u554F\u984C\u306F\u898B\u3064\u304B\u308A\u307E\u305B\u3093\u3067\u3057\u305F\uFF01",validateFoundIssues:"{0} \u4EF6\u306E\u8A2D\u5B9A\u554F\u984C\u304C\u898B\u3064\u304B\u308A\u307E\u3057\u305F\u3002\u8A73\u7D30\u3092\u8868\u793A\u3057\u307E\u3059\u304B\uFF1F",validateShowDetails:"\u8A73\u7D30\u3092\u8868\u793A",validateDismiss:"\u9589\u3058\u308B",migrationNotificationMessage:"Explorer Dates \u306F\u4E92\u63DB\u6027\u306E\u305F\u3081\u306B {0} \u4EF6\u306E\u8A2D\u5B9A\u3092\u66F4\u65B0\u3057\u307E\u3057\u305F\u3002\u8A2D\u5B9A\u306F\u4FDD\u6301\u3055\u308C\u3066\u3044\u307E\u3059\u3002",migrationViewChanges:"\u5909\u66F4\u3092\u8868\u793A",migrationOpenSettings:"\u8A2D\u5B9A\u3092\u958B\u304F",deprecatedPrompt:"Explorer Dates \u306F {0} \u4EF6\u306E\u975E\u63A8\u5968\u8A2D\u5B9A\u3092\u691C\u51FA\u3057\u307E\u3057\u305F\u3002\u524A\u9664\u3057\u307E\u3059\u304B\uFF1F",deprecatedClean:"\u4ECA\u3059\u3050\u30AF\u30EA\u30FC\u30F3\u30A2\u30C3\u30D7",deprecatedKeep:"\u53E4\u3044\u8A2D\u5B9A\u3092\u4FDD\u6301",deprecatedAskLater:"\u5F8C\u3067\u78BA\u8A8D",showFileLocation:"\u30D5\u30A1\u30A4\u30EB\u306E\u5834\u6240\u3092\u8868\u793A",teamConfigCorrupted:"Explorer Dates \u306E\u30C1\u30FC\u30E0\u8A2D\u5B9A\u30D5\u30A1\u30A4\u30EB\u304C\u7834\u640D\u3057\u3066\u3044\u308B\u53EF\u80FD\u6027\u304C\u3042\u308A\u307E\u3059\u3002.explorer-dates-profiles.json \u3092\u78BA\u8A8D\u3059\u308B\u304B\u30D0\u30C3\u30AF\u30A2\u30C3\u30D7\u304B\u3089\u5FA9\u5143\u3057\u3066\u304F\u3060\u3055\u3044\u3002",appliedFromTeamProfile:"\u30C1\u30FC\u30E0\u30D7\u30ED\u30D5\u30A1\u30A4\u30EB\u300C{1}\u300D\u304B\u3089 {0} \u4EF6\u306E Explorer Dates \u8A2D\u5B9A\u3092\u9069\u7528\u3057\u307E\u3057\u305F\u3002",documentedOverrides:".vscode/explorer-dates-overrides.md \u306B Explorer Dates \u306E\u4E0A\u66F8\u304D\u3092\u8A18\u9332\u3057\u307E\u3057\u305F",teamConfigMissingProfile:"\u30C1\u30FC\u30E0\u8A2D\u5B9A\u306B\u30A2\u30AF\u30C6\u30A3\u30D6\u306A\u30D7\u30ED\u30D5\u30A1\u30A4\u30EB\u304C\u3042\u308A\u307E\u305B\u3093\u3002",ephemeralStorageEnospc:"\u30C7\u30A3\u30B9\u30AF\u5BB9\u91CF\u4E0D\u8DB3\u306E\u305F\u3081\u3001Explorer Dates \u306E\u30C1\u30FC\u30E0\u8A2D\u5B9A\u3092\u4FDD\u5B58\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002",ephemeralStorageGeneric:"\u30EF\u30FC\u30AF\u30B9\u30DA\u30FC\u30B9\u304C\u8AAD\u307F\u53D6\u308A\u5C02\u7528\u3001\u307E\u305F\u306F\u6A29\u9650\u304C\u5236\u9650\u3055\u308C\u3066\u3044\u308B\u305F\u3081\u3001Explorer Dates \u306E\u30C1\u30FC\u30E0\u8A2D\u5B9A\u3092\u4FDD\u5B58\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002",ephemeralStorageSuffix:"\u5909\u66F4\u306F VS Code \u304C\u518D\u8D77\u52D5\u3059\u308B\u307E\u3067\u30E1\u30E2\u30EA\u306B\u4FDD\u6301\u3055\u308C\u308B\u305F\u3081\u3001\u5931\u308F\u308C\u308B\u53EF\u80FD\u6027\u304C\u3042\u308A\u307E\u3059\u3002"}});var Qe=f(($o,Nr)=>{Nr.exports={migrationDetailsTitle:"Explorer Dates - \u8BBE\u7F6E\u8FC1\u79FB",migrationDetailsHeader:"\u8BBE\u7F6E\u8FC1\u79FB",gitAttributionWarning:"Explorer Dates\uFF1AGit \u5F52\u5C5E\u5FBD\u7AE0\u5728 VS Code Web \u7248\u4E2D\u4E0D\u53EF\u7528\u3002\u57FA\u4E8E\u65F6\u95F4\u7684\u88C5\u9970\u4ECD\u7136\u53EF\u7528\u3002",noOverridesToDocument:"\u6CA1\u6709\u9700\u8981\u8BB0\u5F55\u7684\u8986\u76D6\u9879\u3002",overrideNotesHeader:"# Explorer Dates \u8986\u76D6\u8BF4\u660E\\n\\n",analysisCommandsDisabled:"Explorer Dates \u5206\u6790\u547D\u4EE4\u5DF2\u7981\u7528\u3002\u5728\u542F\u7528 explorerDates.enableAnalysisCommands \u4E4B\u524D\uFF0CCtrl+Shift+M/H/A \u7B49\u5FEB\u6377\u952E\u5C06\u65E0\u6CD5\u4F7F\u7528\u3002",analysisEnableNow:"\u7ACB\u5373\u542F\u7528",analysisEnablePartially:"\u542F\u7528\u90E8\u5206\u6210\u529F\u3002\u8BF7\u5728\u5269\u4F59\u7684\u5DE5\u4F5C\u533A\u6587\u4EF6\u5939\u4E2D\u624B\u52A8\u66F4\u65B0 explorerDates.enableAnalysisCommands\u3002",analysisEnableFailed:"\u542F\u7528\u5931\u8D25\uFF1A\u8BF7\u5728\u5DE5\u4F5C\u533A\u8BBE\u7F6E\u4E2D\u66F4\u65B0 explorerDates.enableAnalysisCommands\u3002",workspaceTemplatesDisabled:"\u5DE5\u4F5C\u533A\u6A21\u677F\u5DF2\u7981\u7528\u3002\u542F\u7528 explorerDates.enableWorkspaceTemplates \u4EE5\u4F7F\u7528\u6B64\u547D\u4EE4\u3002",workspaceTemplatesDisabledSave:"\u5DE5\u4F5C\u533A\u6A21\u677F\u5DF2\u7981\u7528\u3002\u542F\u7528 explorerDates.enableWorkspaceTemplates \u4EE5\u4FDD\u5B58\u6A21\u677F\u3002",enterTemplateName:"\u8F93\u5165\u6A21\u677F\u540D\u79F0",enterTemplateDescription:"\u8F93\u5165\u63CF\u8FF0\uFF08\u53EF\u9009\uFF09",failedToOpenTemplateManager:"\u65E0\u6CD5\u6253\u5F00\u6A21\u677F\u7BA1\u7406\u5668\uFF1A{0}",failedToSaveTemplate:"\u4FDD\u5B58\u6A21\u677F\u5931\u8D25\uFF1A{0}",reportingDisabled:"\u62A5\u8868\u529F\u80FD\u5DF2\u7981\u7528\u3002\u542F\u7528 explorerDates.enableExportReporting \u4EE5\u751F\u6210\u62A5\u8868\u3002",failedToGenerateReport:"\u751F\u6210\u62A5\u8868\u5931\u8D25\uFF1A{0}",apiDisabled:"Explorer Dates API \u5DF2\u901A\u8FC7\u8BBE\u7F6E\u7981\u7528\u3002",failedToShowApiInformation:"\u663E\u793A API \u4FE1\u606F\u5931\u8D25\uFF1A{0}",failedToShowWorkspaceActivity:"\u663E\u793A\u5DE5\u4F5C\u533A\u6D3B\u52A8\u5931\u8D25\uFF1A{0}",failedToShowPerformanceAnalytics:"\u663E\u793A\u6027\u80FD\u5206\u6790\u5931\u8D25\uFF1A{0}",failedToShowCacheDebugInfo:"\u663E\u793A\u7F13\u5B58\u8C03\u8BD5\u4FE1\u606F\u5931\u8D25\uFF1A{0}",noWorkspaceFolderOpen:"\u672A\u6253\u5F00\u4EFB\u4F55\u5DE5\u4F5C\u533A\u6587\u4EF6\u5939",now:"\u73B0\u5728",minutes:"\u5206",hours:"\u5C0F\u65F6",days:"\u5929",weeks:"\u5468",months:"\u4E2A\u6708",years:"\u5E74",justNow:"\u521A\u521A",minutesAgo:"{0} \u5206\u949F\u524D",hoursAgo:"{0} \u5C0F\u65F6\u524D",daysAgo:"{0} \u5929\u524D",lastModified:"\u6700\u540E\u4FEE\u6539",refreshSuccess:"\u65E5\u671F\u88C5\u9970\u5DF2\u5237\u65B0",activationError:"Explorer Dates \u542F\u52A8\u5931\u8D25",errorAccessingFile:"\u8BBF\u95EE\u7528\u4E8E\u88C5\u9970\u7684\u6587\u4EF6\u65F6\u51FA\u9519",clearTelemetryPrompt:"\u8FD9\u5C06\u6C38\u4E45\u5220\u9664\u672C\u5730\u5B58\u50A8\u7684 Explorer Dates \u9065\u6D4B\u4E8B\u4EF6\u3002\u6B64\u64CD\u4F5C\u65E0\u6CD5\u64A4\u9500\u3002\u662F\u5426\u7EE7\u7EED\uFF1F",clearTelemetryConfirm:"\u6E05\u9664\u9065\u6D4B",clearTelemetryCancel:"\u53D6\u6D88",reportFormatDisabled:"\u62A5\u8868\u683C\u5F0F\u201C{0}\u201D\u5DF2\u7981\u7528\u3002\u5141\u8BB8\u7684\u683C\u5F0F\uFF1A{1}",reportDownloadTriggered:"\u5DF2\u5728\u6D4F\u89C8\u5668\u4E2D\u89E6\u53D1\u62A5\u8868\u4E0B\u8F7D",selectReportTimeRangePlaceholder:"\u9009\u62E9\u62A5\u8868\u65F6\u95F4\u8303\u56F4",selectReportFormatPlaceholder:"\u9009\u62E9\u62A5\u8868\u683C\u5F0F",cleanupNoDeprecated:"\u2139\uFE0F \u672A\u53D1\u73B0\u9700\u8981\u6E05\u7406\u7684\u5DF2\u5F03\u7528\u8BBE\u7F6E\u3002",showMigrationHistoryNoHistory:"\u672A\u627E\u5230\u8FC1\u79FB\u5386\u53F2\u3002",resetConfirmation:"\u8FD9\u5C06\u628A\u6240\u6709 Explorer Dates \u8BBE\u7F6E\u91CD\u7F6E\u4E3A\u9ED8\u8BA4\u503C\u3002\u786E\u5B9A\u5417\uFF1F",resetConfirm:"\u91CD\u7F6E\u8BBE\u7F6E",resetCancel:"\u53D6\u6D88",resetSuccess:"\u2705 \u5DF2\u5C06 {0} \u9879\u8BBE\u7F6E\u91CD\u7F6E\u4E3A\u9ED8\u8BA4\u503C\u3002",validateNoIssues:"\u2705 \u914D\u7F6E\u6709\u6548 - \u672A\u53D1\u73B0\u95EE\u9898\uFF01",validateFoundIssues:"\u53D1\u73B0 {0} \u4E2A\u914D\u7F6E\u95EE\u9898\u3002\u662F\u5426\u67E5\u770B\u8BE6\u7EC6\u4FE1\u606F\uFF1F",validateShowDetails:"\u663E\u793A\u8BE6\u7EC6\u4FE1\u606F",validateDismiss:"\u5173\u95ED",migrationNotificationMessage:"Explorer Dates \u4E3A\u517C\u5BB9\u6027\u66F4\u65B0\u4E86 {0} \u9879\u8BBE\u7F6E\u3002\u60A8\u7684\u914D\u7F6E\u5DF2\u4FDD\u7559\u3002",migrationViewChanges:"\u67E5\u770B\u66F4\u6539",migrationOpenSettings:"\u6253\u5F00\u8BBE\u7F6E",deprecatedPrompt:"Explorer Dates \u53D1\u73B0 {0} \u4E2A\u5DF2\u5F03\u7528\u8BBE\u7F6E\u3002\u662F\u5426\u5220\u9664\uFF1F",deprecatedClean:"\u7ACB\u5373\u6E05\u7406",deprecatedKeep:"\u4FDD\u7559\u65E7\u8BBE\u7F6E",deprecatedAskLater:"\u7A0D\u540E\u8BE2\u95EE",showFileLocation:"\u663E\u793A\u6587\u4EF6\u4F4D\u7F6E",teamConfigCorrupted:"Explorer Dates \u56E2\u961F\u914D\u7F6E\u6587\u4EF6\u4F3C\u4E4E\u5DF2\u635F\u574F\u3002\u8BF7\u68C0\u67E5 .explorer-dates-profiles.json \u6587\u4EF6\u6216\u4ECE\u5907\u4EFD\u6062\u590D\u3002",appliedFromTeamProfile:"\u5DF2\u4ECE\u56E2\u961F\u914D\u7F6E\u6587\u4EF6\u201C{1}\u201D\u5E94\u7528 {0} \u9879 Explorer Dates \u8BBE\u7F6E\u3002",documentedOverrides:"\u5DF2\u5728 .vscode/explorer-dates-overrides.md \u4E2D\u8BB0\u5F55 Explorer Dates \u8986\u76D6\u9879",teamConfigMissingProfile:"\u56E2\u961F\u914D\u7F6E\u7F3A\u5C11\u6D3B\u52A8\u914D\u7F6E\u6587\u4EF6\u3002",ephemeralStorageEnospc:"\u7531\u4E8E\u78C1\u76D8\u5DF2\u6EE1\uFF0C\u65E0\u6CD5\u4FDD\u5B58 Explorer Dates \u56E2\u961F\u914D\u7F6E\u3002",ephemeralStorageGeneric:"\u7531\u4E8E\u5DE5\u4F5C\u533A\u4E3A\u53EA\u8BFB\u6216\u6743\u9650\u53D7\u9650\uFF0C\u65E0\u6CD5\u4FDD\u5B58 Explorer Dates \u56E2\u961F\u914D\u7F6E\u3002",ephemeralStorageSuffix:"\u66F4\u6539\u5C06\u5728 VS Code \u91CD\u542F\u524D\u4FDD\u5B58\u5728\u5185\u5B58\u4E2D\uFF0C\u56E0\u6B64\u53EF\u80FD\u4F1A\u4E22\u5931\u3002"}});var tt=f((qo,et)=>{var I={};I.en=xe();I.es=Ye();I.fr=Xe();I.de=Ze();I.ja=Je();I.zh=Qe();et.exports=I});var nt=f((zo,rt)=>{var L=require("vscode"),M={en:{now:"now",minutes:"m",hours:"h",days:"d",weeks:"w",months:"mo",years:"y",justNow:"just now",minutesAgo:t=>`${t} minute${t!==1?"s":""} ago`,hoursAgo:t=>`${t} hour${t!==1?"s":""} ago`,yesterday:"yesterday",daysAgo:t=>`${t} day${t!==1?"s":""} ago`,lastModified:"Last modified",refreshSuccess:"Date decorations refreshed",activationError:"Explorer Dates failed to activate",errorAccessingFile:"Error accessing file for decoration",clearTelemetryPrompt:"This will permanently delete locally-stored telemetry events for Explorer Dates. This action cannot be undone. Proceed?",clearTelemetryConfirm:"Clear Telemetry",clearTelemetryCancel:"Cancel",clearTelemetrySuccess:"\u2705 Explorer Dates telemetry cleared.",migrateChecking:"Checking for settings that need migration...",migrateAllUpToDate:"\u2705 All settings are up to date!",migrateApplied:t=>`\u2705 Explorer Dates maintenance applied: ${t}.`,organizeSettingsResult:t=>`Explorer Dates settings organized: ${t}`,cleanupSuccess:"\u2705 Deprecated settings have been cleaned up!",reportFormatDisabled:(t,e)=>`Report format "${t}" is disabled. Allowed formats: ${e}`,reportSaved:t=>`Report saved to ${t}`,reportGenerateFailed:"Failed to generate report",reportDownloadTriggered:"Report download triggered in browser",selectReportTimeRangePlaceholder:"Select report time range",selectReportFormatPlaceholder:"Select report format",cleanupNoDeprecated:"\u2139\uFE0F No deprecated settings found to clean up.",showMigrationHistoryNoHistory:"No migration history found.",resetConfirmation:"This will reset all Explorer Dates settings to their default values. Are you sure?",migrationDetailsTitle:"Explorer Dates - Settings Migration",migrationDetailsHeader:"Settings Migration",gitAttributionWarning:"Explorer Dates: Git attribution badges are unavailable on VS Code for Web. Time-based decorations remain available.",noOverridesToDocument:"No overrides to document.",overrideNotesHeader:`# Explorer Dates Override Notes -`,analysisCommandsDisabled:"Explorer Dates analysis commands are disabled. Shortcuts like Ctrl+Shift+M/H/A will not work until you enable explorerDates.enableAnalysisCommands.",analysisEnableNow:"Enable Now",analysisEnablePartially:"Enable partially succeeded. Update explorerDates.enableAnalysisCommands in remaining workspace folders manually.",analysisEnableFailed:"Enable failed: update explorerDates.enableAnalysisCommands in workspace settings.",workspaceTemplatesDisabled:"Workspace templates are disabled. Enable explorerDates.enableWorkspaceTemplates to use this command.",workspaceTemplatesDisabledSave:"Workspace templates are disabled. Enable explorerDates.enableWorkspaceTemplates to save templates.",enterTemplateName:"Enter template name",enterTemplateDescription:"Enter description (optional)",failedToOpenTemplateManager:t=>`Failed to open template manager: ${t}`,failedToSaveTemplate:t=>`Failed to save template: ${t}`,reportingDisabled:"Reporting features are disabled. Enable explorerDates.enableExportReporting to generate reports.",failedToGenerateReport:t=>`Failed to generate report: ${t}`,apiDisabled:"Explorer Dates API is disabled via settings.",failedToShowApiInformation:t=>`Failed to show API information: ${t}`,failedToShowWorkspaceActivity:t=>`Failed to show workspace activity: ${t}`,failedToShowPerformanceAnalytics:t=>`Failed to show performance analytics: ${t}`,failedToShowCacheDebugInfo:t=>`Failed to show cache debug info: ${t}`,noWorkspaceFolderOpen:"No workspace folder open",resetConfirm:"Reset Settings",resetCancel:"Cancel",resetSuccess:t=>`\u2705 Reset ${t} settings to defaults.`,validateNoIssues:"\u2705 Configuration is valid - no issues found!",validateFoundIssues:t=>`Found ${t} configuration issue(s). Would you like to see details?`,validateShowDetails:"Show Details",validateDismiss:"Dismiss",migrationNotificationMessage:t=>`Explorer Dates updated ${t} setting(s) for compatibility. Your configuration has been preserved.`,migrationViewChanges:"View Changes",migrationOpenSettings:"Open Settings",deprecatedPrompt:t=>`Explorer Dates found ${t} deprecated setting(s). Would you like to remove them?`,deprecatedClean:"Clean Up Now",deprecatedKeep:"Keep Old Settings",deprecatedAskLater:"Ask Later",showFileLocation:"Show File Location",teamConfigCorrupted:"Explorer Dates team configuration file appears to be corrupted. Please check the .explorer-dates-profiles.json file or restore from backup.",appliedFromTeamProfile:(t,e)=>`Applied ${t} Explorer Dates settings from team profile "${e}".`,documentedOverrides:"Documented Explorer Dates overrides in .vscode/explorer-dates-overrides.md",teamConfigMissingProfile:"Team configuration is missing an active profile.",ephemeralStorageEnospc:"Explorer Dates team configuration could not be saved because the disk is full.",ephemeralStorageGeneric:"Explorer Dates team configuration could not be saved because the workspace is read-only or permissions are restricted.",ephemeralStorageSuffix:" Changes will be kept in memory until VS Code restarts, so they may be lost."}};try{let t=tt();if(t&&typeof t=="object")for(let[e,r]of Object.entries(t)){M[e]||(M[e]={});for(let[n,o]of Object.entries(r))typeof M[e][n]>"u"&&(M[e][n]=o)}}catch{}var oe=class{constructor(){this.E="en",this.m=null,this.$(),typeof L.workspace.onDidChangeConfiguration=="function"?this.m=L.workspace.onDidChangeConfiguration(e=>{e.affectsConfiguration("explorerDates.locale")&&this.$()}):this.m=null}$(){let r=L.workspace.getConfiguration("explorerDates").get("locale","auto");if(r==="auto"){let n=L&&L.env&&typeof L.env.language=="string"?L.env.language:"en";try{r=String(n||"en").split("-")[0]}catch{r="en"}}M[r]||(r="en"),this.E=r}getString(e,...r){let o=(M[this.E]||M.en)[e];return typeof o=="function"?o(...r):o||M.en[e]||e}getCurrentLocale(){return this.E}formatDate(e,r={}){try{return e.toLocaleDateString(this.E,r)}catch{return e.toLocaleDateString("en",r)}}dispose(){this.m&&(this.m.dispose(),this.m=null),Z===this&&(Z=null)}},Z=null;function Ur(){return Z||(Z=new oe),Z}rt.exports={LocalizationManager:oe,getLocalization:Ur}});var J=f((zo,ot)=>{var se=class{constructor(){this.t=null,this.u=null}ne(){return this.t?Promise.resolve(this.t):this.u?this.u:(this.u=Promise.resolve().then(()=>X(nt())).then(e=>{try{this.t=e.getLocalization()}catch{this.t=null}return this.u=null,this.t}).catch(()=>(this.u=null,null)),this.u)}getString(e,...r){if(this.t&&typeof this.t.getString=="function")return this.t.getString(e,...r);if(this.T&&typeof e=="string"&&Object.prototype.hasOwnProperty.call(this.T,e)){let n=this.T[e];return typeof n=="function"?n(...r):n}return typeof e=="string"?e:""}formatDate(e){return this.t&&typeof this.t.formatDate=="function"?this.t.formatDate(e):e instanceof Date?e.toString():String(e)}getCurrentLocale(){return this.t&&typeof this.t.getCurrentLocale=="function"?this.t.getCurrentLocale():"en"}dispose(){if(this.t&&typeof this.t.dispose=="function")try{this.t.dispose()}catch{}this.t=null,this.u=null}},ae={now:"now",justNow:"just now",minutesAgo:t=>`${t} minute${t!==1?"s":""} ago`,hoursAgo:t=>`${t} hour${t!==1?"s":""} ago`,yesterday:"yesterday",daysAgo:t=>`${t} day${t!==1?"s":""} ago`,lastModified:"Last modified",refreshSuccess:"Date decorations refreshed",activationError:"Explorer Dates failed to activate",errorAccessingFile:"Error accessing file for decoration",clearTelemetrySuccess:"\u2705 Explorer Dates telemetry cleared.",migrateChecking:"Checking for settings that need migration...",migrateAllUpToDate:"\u2705 All settings are up to date!",migrateApplied:t=>`\u2705 Explorer Dates maintenance applied: ${t}.`,organizeSettingsResult:t=>`Explorer Dates settings organized: ${t}`,cleanupSuccess:"\u2705 Deprecated settings have been cleaned up!",reportingDisabled:"Reporting features are disabled. Enable explorerDates.enableExportReporting to generate reports.",reportSaved:t=>`Report saved to ${t}`,failedToGenerateReport:t=>`Failed to generate report: ${t}`};try{let t=xe();if(t&&typeof t=="object")for(let[e,r]of Object.entries(t))typeof ae[e]>"u"&&(typeof r=="string"&&r.includes("{")?ae[e]=(...n)=>{let o=r;return n.forEach((a,s)=>{o=o.replace(new RegExp(`\\{${s}\\}`,"g"),String(a))}),o}:ae[e]=r)}catch{}var H=null;function $r(){return H||(H=new se,H.T=ae,H.ne().catch(()=>{}),H)}ot.exports={LocalizationManager:se,getLocalization:$r}});var Q=f((Ho,st)=>{var at=require("vscode");function qr(){try{let t=at?.env?.uiKind,e=at?.UIKind?.Web;return t!==void 0&&e!==void 0&&t===e}catch{return!1}}st.exports={isWebEnvironment:qr}});var ie=f((exports,module)=>{var chunk=null;try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){try{chunk=dynamicRequire("../chunks/utils-shared-chunk")}catch{}try{chunk||(chunk=dynamicRequire("./chunks/utils-shared-chunk"))}catch{}try{chunk||(chunk=dynamicRequire("../chunks/path-utils-chunk"))}catch{}try{chunk||(chunk=dynamicRequire("./chunks/path-utils-chunk"))}catch{}}}catch{}if(chunk&&chunk.normalizePath)module.exports={normalizePath:chunk.normalizePath,getFileName:chunk.getFileName,getExtension:chunk.getExtension,getDirectory:chunk.getDirectory,joinPath:chunk.joinPath,getCacheKey:chunk.getCacheKey,getUriPath:chunk.getUriPath,getRelativePath:chunk.getRelativePath};else{let t=function(c=""){return c?c.replace(/\\/g,"/"):""},e=function(c=""){let u=t(c);return u?u.split("/").filter(Boolean):[]},r=function(c=""){let u=e(c);return u.length?u[u.length-1]:""},n=function(c=""){let u=r(c),g=u.lastIndexOf(".");return g<=0?"":u.substring(g).toLowerCase()},o=function(c=""){let u=t(c),g=u.lastIndexOf("/");return g===-1?"":u.substring(0,g)},a=function(...c){return t(c.filter(Boolean).join("/")).replace(/\/+/g,"/")},s=function(c=""){return t(c).toLowerCase()},l=function(c=""){if(!c)return"";if(typeof c=="string")return c;if(typeof c.fsPath=="string"&&c.fsPath.length>0)return c.fsPath;if(typeof c.path=="string"&&c.path.length>0)return c.path;if(typeof c.toString=="function")try{return c.toString(!0)}catch{return c.toString()}return String(c)},i=function(c="",u=""){let g=t(c),h=t(u);return g&&h.startsWith(g)?h.substring(g.length).replace(/^\/+/,""):h};normalizePath=t,getSegments=e,getFileName=r,getExtension=n,getDirectory=o,joinPath=a,getCacheKey=s,getUriPath=l,getRelativePath=i,module.exports={normalizePath:t,getFileName:r,getExtension:n,getDirectory:o,joinPath:a,getCacheKey:s,getUriPath:l,getRelativePath:i}}var normalizePath,getSegments,getFileName,getExtension,getDirectory,joinPath,getCacheKey,getUriPath,getRelativePath});var Ae=f((Ko,lt)=>{var le=class extends Error{constructor(e,r,n={}){super(r),this.code=e,this.context=n,this.name="ExtensionError"}},it={FILE_PERMISSION_DENIED:"FILE_PERMISSION_DENIED",WORKSPACE_TOO_LARGE:"WORKSPACE_TOO_LARGE",CHUNK_LOAD_FAILED:"CHUNK_LOAD_FAILED"};function zr(t){if(!t)return!1;let e=t.code||t?.name;return["EACCES","EPERM","EROFS","NoPermissions"].includes(e)}var Te=class extends le{constructor(e,r,n={}){let{recoverable:o=!0,context:a={}}=n;super(it.CHUNK_LOAD_FAILED,`Failed to load ${e}: ${r}`,{chunkName:e,recoverable:o,...a}),this.name="ChunkLoadError",this.chunkName=e,this.recoverable=o}};function Hr(t,e,r={}){let n=require("vscode"),{userFacing:o=!0}=r,a=e?.recoverable??!0;o&&!a&&n.window.showErrorMessage(`Explorer Dates: ${t} feature unavailable. Please reinstall or rebuild the extension.`)}lt.exports={ExtensionError:le,ERROR_CODES:it,isPermissionError:zr,ChunkLoadError:Te,handleChunkFailure:Hr}});var pt=f((Vo,gt)=>{var ct="EXPLORER_DATES_FORCE_VSCODE_FS";function ut(t,e=process.env){return String(e?.[t]||"")==="1"}function ce(t){let e=t&&typeof t=="object"?t:null,r=String(e?.scheme||(typeof t=="string"&&/^[a-z][a-z0-9+.-]*:/i.test(t)?t.split(":",1)[0]:"file")).toLowerCase(),n=String(e?.authority||""),o=e?.path||e?.fsPath||(typeof t=="string"?t.replace(/^[a-z][a-z0-9+.-]*:\/\//i,""):"");return{scheme:r,authority:n,path:String(o||"")}}function Kr({uri:t,isWeb:e=!1,remoteName:r="",forceWorkspaceFs:n=ut(ct)}={}){let o=ce(t),a=o.scheme!=="file",s=!!e,l=!!r,i=!!(n||s||l||a);return{scheme:o.scheme,authority:o.authority,isFileScheme:!a,isVirtual:a,isBrowser:s,isRemote:l,forceWorkspaceFs:!!n,filesystem:i?"workspace.fs":"node.fs",provider:a?o.scheme==="github"||o.scheme==="vscode-vfs"?"github":"virtual":"filesystem"}}function dt({uri:t,platform:e=process.platform,caseSensitive:r}={}){return typeof r=="boolean"?r:ce(t).scheme!=="file"?!0:e!=="win32"}function Vr(t,e={}){let r=ce(t),n=r.path.replace(/\\/g,"/").replace(/\/+/g,"/"),o=`${r.scheme}://${r.authority}${n}`;return dt({uri:t,...e})?o:o.toLowerCase()}function Re(t){if(t instanceof Date){let e=t.getTime();return Number.isFinite(e)?e:null}if(typeof t=="number")return Number.isFinite(t)?t:null;if(typeof t=="string"&&t.trim()){let e=Date.parse(t);return Number.isFinite(e)?e:null}return null}function Br(t){if(!t||typeof t!="object")return null;let e=Re(t.mtime),r=Re(t.ctime);return{...t,mtimeMs:e,ctimeMs:r}}gt.exports={FORCE_WORKSPACE_FS_ENV:ct,envFlag:ut,getUriParts:ce,getEnvironmentContract:Kr,isCaseSensitive:dt,resourceIdentity:Vr,normalizeTimestamp:Re,normalizeStat:Br}});var ue=f((Bo,ht)=>{function Gr(){return typeof Date=="function"&&Date.now?Date.now():16409952e5}function ft(t){return!!(t&&typeof t=="object"&&typeof t.getTime=="function")}function jr(t){if(ft(t))return t;if(typeof t=="number")return new Date(t);if(typeof t=="string"){let e=Date.parse(t);return isNaN(e)?new Date:new Date(e)}return new Date}function O(t=""){return t?t.replace(/\\/g,"/"):""}function Yr(t=""){let e=O(t);return e?e.split("/").filter(Boolean):[]}function mt(t=""){let e=Yr(t);return e.length?e[e.length-1]:""}function Xr(t=""){let e=mt(t),r=e.lastIndexOf(".");return r<=0?"":e.substring(r).toLowerCase()}function Zr(t=""){let e=O(t),r=e.lastIndexOf("/");return r===-1?"":e.substring(0,r)}function Jr(...t){return O(t.filter(Boolean).join("/")).replace(/\/+/g,"/")}function Qr(t=""){return O(t).toLowerCase()}function en(t=""){if(!t)return"";if(typeof t=="string")return t;if(typeof t.fsPath=="string"&&t.fsPath.length>0)return t.fsPath;if(typeof t.path=="string"&&t.path.length>0)return t.path;if(typeof t.toString=="function")try{return t.toString(!0)}catch{return t.toString()}return String(t)}function tn(t="",e=""){let r=O(t),n=O(e);return r&&n.startsWith(r)?n.substring(r.length).replace(/^\/+/,""):n}ht.exports={ensureDate:jr,isDateLike:ft,getCurrentTimestamp:Gr,normalizePath:O,getFileName:mt,getExtension:Xr,getDirectory:Zr,joinPath:Jr,getCacheKey:Qr,getUriPath:en,getRelativePath:tn}});var Fe=f((exports,module)=>{var chunk=null;try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){try{chunk=dynamicRequire("../chunks/utils-shared-chunk")}catch{}try{chunk||(chunk=dynamicRequire("./chunks/utils-shared-chunk"))}catch{}try{chunk||(chunk=dynamicRequire("../chunks/date-helpers-chunk"))}catch{}try{chunk||(chunk=dynamicRequire("./chunks/date-helpers-chunk"))}catch{}}}catch{}if(chunk&&(chunk.ensureDate||chunk.isDateLike||chunk.getCurrentTimestamp))module.exports={ensureDate:chunk.ensureDate,isDateLike:chunk.isDateLike,getCurrentTimestamp:chunk.getCurrentTimestamp};else{let t=function(){return typeof Date=="function"&&Date.now?Date.now():16409952e5},e=function(n){return!!(n&&typeof n=="object"&&typeof n.getTime=="function")},r=function(n){if(e(n))return n;if(typeof n=="number")return new Date(n);if(typeof n=="string"){let o=Date.parse(n);return isNaN(o)?new Date:new Date(o)}return new Date};getCurrentTimestamp=t,isDateLike=e,ensureDate=r,module.exports={ensureDate:r,isDateLike:e,getCurrentTimestamp:t}}var getCurrentTimestamp,isDateLike,ensureDate});var ge=f((Go,Et)=>{var w=require("vscode"),{isWebEnvironment:wt}=Q(),{normalizePath:rn}=ie(),{ExtensionError:nn,ERROR_CODES:on,isPermissionError:an}=Ae(),{getEnvironmentContract:sn,normalizeStat:ln,FORCE_WORKSPACE_FS_ENV:cn}=pt(),K;try{let t=ue();t&&(K=t.ensureDate)}catch{}K||(K=Fe().ensureDate);var bt=typeof process<"u"&&process.env?process.env:{},yt=bt.VSCODE_WEB==="true"||wt(),b=null;if(!yt)try{b=require("fs").promises}catch{b=null}var de=class{constructor(){this.isWeb=yt||wt()}s(e){try{return sn({uri:this.o(e),isWeb:this.isWeb,remoteName:w.env?.remoteName,forceWorkspaceFs:bt[cn]==="1"}).filesystem==="workspace.fs"}catch{return!1}}a(e){if(!e)return"";if(typeof e=="string")return e;if(e&&typeof e=="object"&&typeof e.fsPath=="string")return e.fsPath;if(e&&typeof e=="object"&&typeof e.path=="string")return e.path;if(typeof e=="object"){if(typeof e.fsPath=="string")return e.fsPath;if(typeof e.path=="string")return e.path}return String(e)}o(e){if(e&&typeof e=="object"&&typeof e.scheme=="string"&&typeof e.path=="string")return e;if(typeof e=="string"){let r=e.trim(),n=/^[a-zA-Z]:[\\/]/.test(r);if(/^[a-zA-Z][a-zA-Z0-9+.-]*:/.test(r)&&!n){let a=w.Uri.parse(r);if(a.scheme&&a.scheme!=="file")return a}return w.Uri.file(e)}if(e&&typeof e=="object"){if(e.uri&&e.uri!==e)try{return this.o(e.uri)}catch{}if(this.isWeb&&typeof e.scheme=="string"&&typeof e.path=="string")return w.Uri.from({scheme:e.scheme,authority:e.authority||"",path:e.path||"",query:e.query||"",fragment:e.fragment||""});if(typeof e.fsPath=="string"&&e.fsPath.length>0)return w.Uri.file(e.fsPath);if(typeof e.path=="string"&&e.path.length>0)return this.isWeb&&typeof e.scheme=="string"&&e.scheme!=="file"?w.Uri.from({scheme:e.scheme,authority:e.authority||"",path:e.path,query:e.query||"",fragment:e.fragment||""}):w.Uri.file(e.path);if(typeof e.href=="string"&&e.href.length>0)return w.Uri.parse(e.href);if(typeof e.scheme=="string")return w.Uri.from({scheme:e.scheme,authority:e.authority||"",path:e.path||e.fsPath||"",query:e.query||"",fragment:e.fragment||""});if(typeof e.toString=="function")try{let r=e.toString(!0);if(r&&r!=="[object Object]")return w.Uri.parse(r)}catch{let r=e.toString();if(r&&r!=="[object Object]")return w.Uri.parse(r)}}throw new Error(`Unsupported target type: ${typeof e}`)}async stat(e){let r=this.s(e);if(!this.isWeb&&b&&!r)return b.stat(this.a(e));let n=this.o(e),o=await w.workspace.fs.stat(n),a=ln(o);return{...a,mtime:a.mtimeMs===null?K(o.mtime):new Date(a.mtimeMs),ctime:a.ctimeMs===null?K(o.ctime):new Date(a.ctimeMs),birthtime:a.ctimeMs===null?K(o.ctime):new Date(a.ctimeMs),isFile:()=>o.type===w.FileType.File,isDirectory:()=>o.type===w.FileType.Directory}}async readFile(e,r="utf8"){let n=this.s(e);if(!this.isWeb&&b&&!n)return b.readFile(this.a(e),r);let o=this.o(e),a=await w.workspace.fs.readFile(o);return r===null||r==="binary"?a:new TextDecoder(r).decode(a)}async writeFile(e,r,n="utf8"){let o=this.a(e);try{let a=this.s(e);if(!this.isWeb&&b&&!a)return b.writeFile(o,r,n);let s=this.o(e),l=typeof r=="string"?new TextEncoder().encode(r):r;await w.workspace.fs.writeFile(s,l)}catch(a){this.A("write file",o,a)}}async rename(e,r,n={overwrite:!1}){let o=this.a(e),a=this.a(r);try{let s=this.s(e)||this.s(r);if(!this.isWeb&&b&&!s)return b.rename(o,a);if(typeof w.workspace.fs.rename=="function")await w.workspace.fs.rename(this.o(e),this.o(r),n);else if(this.o(e).scheme==="file"&&this.o(r).scheme==="file")await(b||require("fs").promises).rename(o,a);else throw new Error("The active filesystem provider cannot rename report output.")}catch(s){this.A("rename file",`${o} -> ${a}`,s)}}async mkdir(e,r={recursive:!0}){let n=this.a(e);try{let o=this.s(e);if(!this.isWeb&&b&&!o)return b.mkdir(n,r);let a=this.o(e);await w.workspace.fs.createDirectory(a)}catch(o){this.A("create directory",n,o)}}async readdir(e,r={withFileTypes:!1}){let n=this.s(e);if(!this.isWeb&&b&&!n)return b.readdir(this.a(e),r);let o=this.o(e),a=await w.workspace.fs.readDirectory(o);return r.withFileTypes?a.map(([s,l])=>({name:s,isDirectory:()=>l===w.FileType.Directory,isFile:()=>l===w.FileType.File})):a.map(([s])=>s)}async delete(e,r={recursive:!1}){let n=this.s(e);if(!this.isWeb&&b&&!n){let a=this.a(e);return r.recursive?b.rm?b.rm(a,r):b.rmdir(a,r):b.unlink(a)}let o=this.o(e);await w.workspace.fs.delete(o,r)}async exists(e){try{return await this.stat(e),!0}catch{return!1}}async ensureDirectory(e){let r=rn(this.a(e));await this.mkdir(r,{recursive:!0})}A(e,r,n){throw an(n)?new nn(on.FILE_PERMISSION_DENIED,`Permission denied while attempting to ${e}`,{path:r,code:n.code}):n}},un=new de;Et.exports={FileSystemAdapter:de,fileSystem:un}});var N=f((jo,Ct)=>{var V=typeof process<"u"&&process.env?process.env:{},dn=12e4,gn=1e4,pn=1440*60*1e3,fn=2,mn=["Ja","Fe","Mr","Ap","My","Jn","Jl","Au","Se","Oc","No","De"],hn=Number(V.EXPLORER_DATES_DECORATION_POOL_SIZE||2048),wn=Number(V.EXPLORER_DATES_FLYWEIGHT_CACHE_SIZE||4096),bn=Number(V.EXPLORER_DATES_WORKSPACE_BALANCED_THRESHOLD||15e3),yn=Number(V.EXPLORER_DATES_WORKSPACE_LARGE_THRESHOLD||25e4),vt=Number(V.EXPLORER_DATES_WORKSPACE_EXTREME_THRESHOLD||4e5),En=Number(V.EXPLORER_DATES_WORKSPACE_SCAN_MAX_RESULTS||Math.min(vt+1,50001)),vn={ADVANCED_CACHE:"explorerDates.advancedCache",ADVANCED_CACHE_METADATA:"explorerDates.advancedCacheMetadata",TEMPLATE_STORE:"explorerDates.templates",WEB_GIT_NOTICE:"explorerDates.webGitNotice"},Cn="explorerDatesChunks",Sn="__explorerDatesChunks";Ct.exports={DEFAULT_CACHE_TIMEOUT:dn,DEFAULT_MAX_CACHE_SIZE:gn,DEFAULT_PERSISTENT_CACHE_TTL:pn,DEFAULT_DECORATION_POOL_SIZE:hn,DEFAULT_FLYWEIGHT_CACHE_SIZE:wn,MAX_BADGE_LENGTH:fn,MONTH_ABBREVIATIONS:mn,WORKSPACE_SCALE_BALANCED_THRESHOLD:bn,WORKSPACE_SCALE_LARGE_THRESHOLD:yn,WORKSPACE_SCALE_EXTREME_THRESHOLD:vt,WORKSPACE_SCAN_MAX_RESULTS:En,GLOBAL_STATE_KEYS:vn,WEB_CHUNK_GLOBAL_KEY:Cn,LEGACY_WEB_CHUNK_GLOBAL_KEY:Sn}});var _e=f((Yo,Dt)=>{var{MAX_BADGE_LENGTH:St}=N();function Dn(t=0,e="auto"){let r=typeof t=="number"&&!Number.isNaN(t)?t:0;if(e==="bytes")return`~${r}B`;let n=r/1024;if(e==="kb")return`~${n.toFixed(1)}K`;let o=n/1024;return e==="mb"?`~${o.toFixed(1)}M`:r<1024?`~${r}B`:n<1024?`~${Math.round(n)}K`:`~${o.toFixed(1)}M`}function kn(t){if(t)return t.length>St?t.substring(0,St):t}Dt.exports={formatFileSize:Dn,trimBadge:kn}});var _t=f((Xo,Ft)=>{var kt=[".git","node_modules","dist","build","out",".vite",".vscode-test","test-results","playwright-report","coverage"],xt=["24h","7d","30d","90d","all"];function D(t=""){return String(t||"").replace(/\\/g,"/").replace(/\/+/g,"/").replace(/^\.\//,"")}function Tt(t){return t==="full"||t==="all"?"all":xt.includes(t)?t:"all"}function At(t,e=Date.now()){let r=Tt(t);if(r==="all")return null;let n=r==="24h"?24:Number.parseInt(r,10)*24;return e-n*60*60*1e3}function x(t){if(t instanceof Date)return Number.isFinite(t.getTime())?t:null;if(typeof t=="number"&&Number.isFinite(t)){let e=new Date(t<1e12?t*1e3:t);return Number.isFinite(e.getTime())?e:null}if(typeof t=="string"&&t.trim()){let e=new Date(t);return Number.isFinite(e.getTime())?e:null}return null}function xn(t={}){let e=Number.isFinite(Number(t.size))&&Number(t.size)>=0?Number(t.size):null,r=x(t.mtime??t.mtimeMs),n=x(t.birthtime??t.ctime??t.ctimeMs);return{size:e,modified:r,created:n}}function Tn(t){let r=D(t).replace(/^\*\*\//,"").replace(/\/\*\*$/,"").replace(/[.+^${}()|[\]\\]/g,"\\$&").replace(/\*\*/g,".*").replace(/\*/g,"[^/]*").replace(/\?/g,"[^/]");try{return new RegExp(`(^|/)${r}($|/)`,"i")}catch{return null}}function An(t={}){let e=new Set([...kt,...t.excludedSegments||[]].map(n=>D(n).replace(/^\/+|\/+$/g,"").toLowerCase()).filter(Boolean)),r=(t.excludedPatterns||[]).map(Tn).filter(Boolean);return{excludedSegments:[...e],isExcluded(n=""){let o=D(n);return o.split("/").filter(Boolean).some(s=>e.has(s.toLowerCase()))?!0:r.some(s=>s.test(o))},shouldDescend(n=""){return!this.isExcluded(n,!0)}}}function Rn(t){let e=x(t?.timestamp);return e?`${e.toISOString()}|${t.action||"modified"}|${t.source||"unknown"}`:null}function Fn(t,e,r){let n=x(t),o=At(e,r);return!!(n&&(o===null||n.getTime()>=o))}function Rt(t){return[...t].sort((e,r)=>{let n=x(e.lastActivity||e.modified)?.getTime()||0;return(x(r.lastActivity||r.modified)?.getTime()||0)-n||D(e.path).localeCompare(D(r.path))})}function _n(t){let e={filesystem:0,user:0,watcher:0,git:0,unavailable:0},r={},n={};for(let i of t){r[i.type||"unknown"]=(r[i.type||"unknown"]||0)+1;for(let c of i.evidence||[]){e[c.source]=(e[c.source]||0)+1;let u=x(c.timestamp);u&&(n[u.toISOString().slice(0,10)]=(n[u.toISOString().slice(0,10)]||0)+1)}i.activityUnavailable&&e.unavailable++}let o=Rt(t),a=[...t].filter(i=>Number.isFinite(i.activityCount)&&i.activityCount>0).sort((i,c)=>c.activityCount-i.activityCount||D(i.path).localeCompare(D(c.path))),s=[...t].sort((i,c)=>(c.size||0)-(i.size||0)||D(i.path).localeCompare(D(c.path))),l=[...t].filter(i=>x(i.modified)).sort((i,c)=>x(i.modified).getTime()-x(c.modified).getTime()||D(i.path).localeCompare(D(c.path)));return{totalFiles:t.length,totalSize:t.reduce((i,c)=>i+(c.size||0),0),fileTypes:r,activityByDay:n,mostActiveFiles:a.slice(0,10).map(i=>({path:i.path,activityCount:i.activityCount,lastActivity:i.lastActivity})),recentlyModified:o.slice(0,20).map(i=>({path:i.path,modified:i.modified,size:i.size})),largestFiles:s.slice(0,10).map(i=>({path:i.path,size:i.size,modified:i.modified})),oldestFiles:l.slice(0,10).map(i=>({path:i.path,modified:i.modified,size:i.size})),activitySourceBreakdown:e}}Ft.exports={REPORT_SCHEMA_VERSION:2,DEFAULT_EXCLUDED_SEGMENTS:kt,REPORT_TIME_RANGES:xt,normalizePath:D,normalizeTimeRange:Tt,rangeStart:At,validDate:x,normalizeStat:xn,createInclusionPolicy:An,activityKey:Rn,inRange:Fn,sortFiles:Rt,createSummary:_n}});var Me=f((Zo,Pt)=>{"use strict";var Pe=Symbol("explorerDates.commandOutcome"),ee=Object.freeze({BEHAVIORAL_SUCCESS:"behavioral-success",EXPECTED_CANCELLATION:"expected-cancellation",EXPECTED_EMPTY_RESULT:"expected-empty-result",HANDLED_COMMAND_FAILURE:"handled-command-failure",UNHANDLED_COMMAND_FAILURE:"unhandled-command-failure"});function pe(t,e,r,n){return Object.freeze({[Pe]:!0,category:t,value:e,error:r,errorContext:n||null})}var Pn=t=>pe(ee.BEHAVIORAL_SUCCESS,t),Mn=t=>pe(ee.EXPECTED_CANCELLATION,t),Wn=t=>pe(ee.EXPECTED_EMPTY_RESULT,t),In=(t,e)=>pe(ee.HANDLED_COMMAND_FAILURE,void 0,t,e),Ln=t=>!!(t&&t[Pe]===!0);Pt.exports={COMMAND_OUTCOME:Pe,OUTCOME_CATEGORIES:ee,commandSuccess:Pn,commandCancellation:Mn,commandEmpty:Wn,commandFailure:In,isCommandOutcome:Ln}});var B=f((Jo,Lt)=>{var Wt=typeof process<"u"&&process.env?process.env:{},Mt="[ExplorerDates][WebDiag]",We="__explorerDatesWebDiagnostics",fe;function On(){try{let t=require("vscode");return t?.env?.uiKind===t?.UIKind?.Web}catch{return Wt.VSCODE_WEB==="true"}}function T(){return fe!==void 0||(fe=Wt.EXPLORER_DATES_WEB_DIAG==="1"||On()),fe}function It(){return{enabled:T(),logs:[],logOnce:new Set,commandsRegistered:new Set,commandsInvoked:[],errors:[],chunkLoads:[],provider:{created:!1,registered:!1,hydrated:!1,decorationCalls:0,refreshCalls:0,lastEvent:null}}}var Nn=It();function A(){return typeof globalThis<"u"?(globalThis[We]||(globalThis[We]=It()),globalThis[We]):Nn}function Un(t){try{return JSON.stringify(t)}catch{return String(t)}}function R(t,e,r){if(!T())return;let n=A(),o={ts:new Date().toISOString(),level:t,message:e,meta:r||null};n.logs.push(o),n.logs.length>400&&n.logs.shift();let a=r?`${Mt} ${e} ${Un(r)}`:`${Mt} ${e}`,s=console[t]||console.info;try{s(a)}catch{}}function $n(t,e,r,n){if(!T())return;let o=A();o.logOnce.has(t)||(o.logOnce.add(t),R(e,r,n))}function qn(t){if(!T())return;A().commandsRegistered.add(t),R("info","Command registered",{commandId:t})}function zn(t){if(!T())return;A().commandsInvoked.push({commandId:t,ts:Date.now()}),R("info","Command invoked",{commandId:t})}function Hn(t,e,r,n,o){if(!T())return;let a=n||(e?"behavioral-success":"unhandled-command-failure"),s=r?{name:r.name||"Error",message:r.message||String(r),code:r.code||null}:null;e?R("info","Command completed",{commandId:t,outcomeCategory:a}):(R("error","Command failed",{commandId:t,outcomeCategory:a,error:s,errorContext:o||null}),A().errors.push({commandId:t,outcomeCategory:a,error:s,errorContext:o||null}))}function Kn(t,e,r){if(!T())return;A().chunkLoads.push({chunkName:t,stage:e,ts:Date.now(),error:r?r.message||String(r):null}),R(r?"warn":"info",`Chunk ${e}`,{chunkName:t,error:r?.message})}function Vn(t,e){if(!T())return;let r=A();r.provider.lastEvent={event:t,ts:Date.now(),meta:e||null},t==="created"&&(r.provider.created=!0),t==="registered"&&(r.provider.registered=!0),t==="hydrated"&&(r.provider.hydrated=!0),R("info",`Provider ${t}`,e)}function Bn(){if(!T())return;let t=A();t.provider.decorationCalls+=1,t.provider.decorationCalls<=3&&R("info","Decoration request observed",{count:t.provider.decorationCalls})}function Gn(){if(!T())return;let t=A();t.provider.refreshCalls+=1}Lt.exports={isWebDiagnosticsEnabled:T,getWebDiagnosticsState:A,diagLog:R,diagLogOnce:$n,recordCommandRegistration:qn,recordCommandInvocation:zn,recordCommandResult:Hn,recordChunkEvent:Kn,recordProviderEvent:Vn,recordDecorationCall:Bn,recordRefreshCall:Gn}});var G=f((Qo,Ut)=>{var Ie=require("vscode"),{getLocalization:jn}=J(),Yn=jn();function Ot(){return typeof Ie.workspace.isTrusted>"u"?!0:Ie.workspace.isTrusted===!0}function Nt(t="operation"){if(!Ot()){let e=Yn.getString("operationRequiresTrust",t)||`This operation requires a trusted workspace. Please trust this workspace to use ${t}.`;throw Ie.window.showErrorMessage(e),new Error(`Workspace trust required for ${t}`)}}async function Xn(t,e="operation"){try{return Nt(e),await t()}catch{return null}}Ut.exports={isWorkspaceTrusted:Ot,requireWorkspaceTrust:Nt,withTrustGuard:Xn}});var $t=f((exports,module)=>{var vscode=require("vscode"),{fileSystem}=ge(),{formatFileSize}=_e(),{normalizeStat,validDate}=_t(),{commandEmpty,commandFailure,commandSuccess,isCommandOutcome,OUTCOME_CATEGORIES}=Me(),{recordCommandRegistration,recordCommandInvocation,recordCommandResult,diagLog}=B(),getFileName,getRelativePath;try{let t=ue();t&&(getFileName=t.getFileName,getRelativePath=t.getRelativePath)}catch{}if(!getFileName){let t=ie();getFileName=getFileName||t.getFileName,getRelativePath=getRelativePath||t.getRelativePath}var env=typeof process<"u"&&process.env?process.env:{},isWeb=env.VSCODE_WEB==="true",childProcess=null;function loadChildProcess(){return!childProcess&&!isWeb&&(childProcess=eval("require")("child_process")),childProcess}function registerCoreCommands({context:t,fileDateProvider:e,logger:r,l10n:n}){let o=[],a=new WeakSet,s=(l,i)=>(recordCommandRegistration(l),vscode.commands.registerCommand(l,async(...c)=>{recordCommandInvocation(l);try{let u=await i(...c),g=isCommandOutcome(u)?u:commandSuccess(u),h=g.category===OUTCOME_CATEGORIES.HANDLED_COMMAND_FAILURE||g.category===OUTCOME_CATEGORIES.UNHANDLED_COMMAND_FAILURE;if(recordCommandResult(l,!h,g.error,g.category,g.errorContext),h){let E=g.error||new Error(`Command failed: ${l}`);throw E&&(typeof E=="object"||typeof E=="function")&&a.add(E),E}return g.value}catch(u){throw a.has(u)||recordCommandResult(l,!1,u,OUTCOME_CATEGORIES.UNHANDLED_COMMAND_FAILURE),u}}));o.push(s("explorerDates.refreshDateDecorations",()=>{try{if(e){e.clearAllCaches(),e.refreshAll();let l=n?.getString("refreshSuccess")||"Date decorations refreshed - all caches cleared";vscode.window.showInformationMessage(l),r.info("Date decorations refreshed manually with cache clear")}}catch(l){r.error("Failed to refresh decorations",l),vscode.window.showErrorMessage(`Failed to refresh decorations: ${l.message}`)}})),o.push(s("explorerDates.previewConfiguration",l=>{try{e&&(e.applyPreviewSettings(l),r.info("Configuration preview applied",l))}catch(i){r.error("Failed to apply configuration preview",i)}})),o.push(s("explorerDates.clearPreview",()=>{try{e&&(e.applyPreviewSettings(null),r.info("Configuration preview cleared"))}catch(l){r.error("Failed to clear configuration preview",l)}})),o.push(s("explorerDates.showMetrics",()=>{try{if(e){let l=e.getMetrics(),i=`Explorer Dates Metrics: +`,analysisCommandsDisabled:"Explorer Dates analysis commands are disabled. Shortcuts like Ctrl+Shift+M/H/A will not work until you enable explorerDates.enableAnalysisCommands.",analysisEnableNow:"Enable Now",analysisEnablePartially:"Enable partially succeeded. Update explorerDates.enableAnalysisCommands in remaining workspace folders manually.",analysisEnableFailed:"Enable failed: update explorerDates.enableAnalysisCommands in workspace settings.",workspaceTemplatesDisabled:"Workspace templates are disabled. Enable explorerDates.enableWorkspaceTemplates to use this command.",workspaceTemplatesDisabledSave:"Workspace templates are disabled. Enable explorerDates.enableWorkspaceTemplates to save templates.",enterTemplateName:"Enter template name",enterTemplateDescription:"Enter description (optional)",failedToOpenTemplateManager:t=>`Failed to open template manager: ${t}`,failedToSaveTemplate:t=>`Failed to save template: ${t}`,reportingDisabled:"Reporting features are disabled. Enable explorerDates.enableExportReporting to generate reports.",failedToGenerateReport:t=>`Failed to generate report: ${t}`,apiDisabled:"Explorer Dates API is disabled via settings.",failedToShowApiInformation:t=>`Failed to show API information: ${t}`,failedToShowWorkspaceActivity:t=>`Failed to show workspace activity: ${t}`,failedToShowPerformanceAnalytics:t=>`Failed to show performance analytics: ${t}`,failedToShowCacheDebugInfo:t=>`Failed to show cache debug info: ${t}`,noWorkspaceFolderOpen:"No workspace folder open",resetConfirm:"Reset Settings",resetCancel:"Cancel",resetSuccess:t=>`\u2705 Reset ${t} settings to defaults.`,validateNoIssues:"\u2705 Configuration is valid - no issues found!",validateFoundIssues:t=>`Found ${t} configuration issue(s). Would you like to see details?`,validateShowDetails:"Show Details",validateDismiss:"Dismiss",migrationNotificationMessage:t=>`Explorer Dates updated ${t} setting(s) for compatibility. Your configuration has been preserved.`,migrationViewChanges:"View Changes",migrationOpenSettings:"Open Settings",deprecatedPrompt:t=>`Explorer Dates found ${t} deprecated setting(s). Would you like to remove them?`,deprecatedClean:"Clean Up Now",deprecatedKeep:"Keep Old Settings",deprecatedAskLater:"Ask Later",showFileLocation:"Show File Location",teamConfigCorrupted:"Explorer Dates team configuration file appears to be corrupted. Please check the .explorer-dates-profiles.json file or restore from backup.",appliedFromTeamProfile:(t,e)=>`Applied ${t} Explorer Dates settings from team profile "${e}".`,documentedOverrides:"Documented Explorer Dates overrides in .vscode/explorer-dates-overrides.md",teamConfigMissingProfile:"Team configuration is missing an active profile.",ephemeralStorageEnospc:"Explorer Dates team configuration could not be saved because the disk is full.",ephemeralStorageGeneric:"Explorer Dates team configuration could not be saved because the workspace is read-only or permissions are restricted.",ephemeralStorageSuffix:" Changes will be kept in memory until VS Code restarts, so they may be lost."}};try{let t=tt();if(t&&typeof t=="object")for(let[e,r]of Object.entries(t)){M[e]||(M[e]={});for(let[n,o]of Object.entries(r))typeof M[e][n]>"u"&&(M[e][n]=o)}}catch{}var ae=class{constructor(){this.E="en",this.m=null,this.$(),typeof L.workspace.onDidChangeConfiguration=="function"?this.m=L.workspace.onDidChangeConfiguration(e=>{e.affectsConfiguration("explorerDates.locale")&&this.$()}):this.m=null}$(){let r=L.workspace.getConfiguration("explorerDates").get("locale","auto");if(r==="auto"){let n=L&&L.env&&typeof L.env.language=="string"?L.env.language:"en";try{r=String(n||"en").split("-")[0]}catch{r="en"}}M[r]||(r="en"),this.E=r}getString(e,...r){let o=(M[this.E]||M.en)[e];return typeof o=="function"?o(...r):o||M.en[e]||e}getCurrentLocale(){return this.E}formatDate(e,r={}){try{return e.toLocaleDateString(this.E,r)}catch{return e.toLocaleDateString("en",r)}}dispose(){this.m&&(this.m.dispose(),this.m=null),J===this&&(J=null)}},J=null;function Ur(){return J||(J=new ae),J}rt.exports={LocalizationManager:ae,getLocalization:Ur}});var Q=f((Ho,ot)=>{var ie=class{constructor(){this.t=null,this.u=null}ne(){return this.t?Promise.resolve(this.t):this.u?this.u:(this.u=Promise.resolve().then(()=>Z(nt())).then(e=>{try{this.t=e.getLocalization()}catch{this.t=null}return this.u=null,this.t}).catch(()=>(this.u=null,null)),this.u)}getString(e,...r){if(this.t&&typeof this.t.getString=="function")return this.t.getString(e,...r);if(this.T&&typeof e=="string"&&Object.prototype.hasOwnProperty.call(this.T,e)){let n=this.T[e];return typeof n=="function"?n(...r):n}return typeof e=="string"?e:""}formatDate(e){return this.t&&typeof this.t.formatDate=="function"?this.t.formatDate(e):e instanceof Date?e.toString():String(e)}getCurrentLocale(){return this.t&&typeof this.t.getCurrentLocale=="function"?this.t.getCurrentLocale():"en"}dispose(){if(this.t&&typeof this.t.dispose=="function")try{this.t.dispose()}catch{}this.t=null,this.u=null}},se={now:"now",justNow:"just now",minutesAgo:t=>`${t} minute${t!==1?"s":""} ago`,hoursAgo:t=>`${t} hour${t!==1?"s":""} ago`,yesterday:"yesterday",daysAgo:t=>`${t} day${t!==1?"s":""} ago`,lastModified:"Last modified",refreshSuccess:"Date decorations refreshed",activationError:"Explorer Dates failed to activate",errorAccessingFile:"Error accessing file for decoration",clearTelemetrySuccess:"\u2705 Explorer Dates telemetry cleared.",migrateChecking:"Checking for settings that need migration...",migrateAllUpToDate:"\u2705 All settings are up to date!",migrateApplied:t=>`\u2705 Explorer Dates maintenance applied: ${t}.`,organizeSettingsResult:t=>`Explorer Dates settings organized: ${t}`,cleanupSuccess:"\u2705 Deprecated settings have been cleaned up!",reportingDisabled:"Reporting features are disabled. Enable explorerDates.enableExportReporting to generate reports.",reportSaved:t=>`Report saved to ${t}`,failedToGenerateReport:t=>`Failed to generate report: ${t}`};try{let t=xe();if(t&&typeof t=="object")for(let[e,r]of Object.entries(t))typeof se[e]>"u"&&(typeof r=="string"&&r.includes("{")?se[e]=(...n)=>{let o=r;return n.forEach((a,s)=>{o=o.replace(new RegExp(`\\{${s}\\}`,"g"),String(a))}),o}:se[e]=r)}catch{}var H=null;function $r(){return H||(H=new ie,H.T=se,H.ne().catch(()=>{}),H)}ot.exports={LocalizationManager:ie,getLocalization:$r}});var ee=f((Ko,st)=>{var at=require("vscode");function qr(){try{let t=at?.env?.uiKind,e=at?.UIKind?.Web;return t!==void 0&&e!==void 0&&t===e}catch{return!1}}st.exports={isWebEnvironment:qr}});var le=f((exports,module)=>{var chunk=null;try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){try{chunk=dynamicRequire("../chunks/utils-shared-chunk")}catch{}try{chunk||(chunk=dynamicRequire("./chunks/utils-shared-chunk"))}catch{}try{chunk||(chunk=dynamicRequire("../chunks/path-utils-chunk"))}catch{}try{chunk||(chunk=dynamicRequire("./chunks/path-utils-chunk"))}catch{}}}catch{}if(chunk&&chunk.normalizePath)module.exports={normalizePath:chunk.normalizePath,getFileName:chunk.getFileName,getExtension:chunk.getExtension,getDirectory:chunk.getDirectory,joinPath:chunk.joinPath,getCacheKey:chunk.getCacheKey,getUriPath:chunk.getUriPath,getRelativePath:chunk.getRelativePath};else{let t=function(c=""){return c?c.replace(/\\/g,"/"):""},e=function(c=""){let u=t(c);return u?u.split("/").filter(Boolean):[]},r=function(c=""){let u=e(c);return u.length?u[u.length-1]:""},n=function(c=""){let u=r(c),g=u.lastIndexOf(".");return g<=0?"":u.substring(g).toLowerCase()},o=function(c=""){let u=t(c),g=u.lastIndexOf("/");return g===-1?"":u.substring(0,g)},a=function(...c){return t(c.filter(Boolean).join("/")).replace(/\/+/g,"/")},s=function(c=""){return t(c).toLowerCase()},l=function(c=""){if(!c)return"";if(typeof c=="string")return c;if(typeof c.fsPath=="string"&&c.fsPath.length>0)return c.fsPath;if(typeof c.path=="string"&&c.path.length>0)return c.path;if(typeof c.toString=="function")try{return c.toString(!0)}catch{return c.toString()}return String(c)},i=function(c="",u=""){let g=t(c),h=t(u);return g&&h.startsWith(g)?h.substring(g.length).replace(/^\/+/,""):h};normalizePath=t,getSegments=e,getFileName=r,getExtension=n,getDirectory=o,joinPath=a,getCacheKey=s,getUriPath=l,getRelativePath=i,module.exports={normalizePath:t,getFileName:r,getExtension:n,getDirectory:o,joinPath:a,getCacheKey:s,getUriPath:l,getRelativePath:i}}var normalizePath,getSegments,getFileName,getExtension,getDirectory,joinPath,getCacheKey,getUriPath,getRelativePath});var Ae=f((Vo,lt)=>{var ce=class extends Error{constructor(e,r,n={}){super(r),this.code=e,this.context=n,this.name="ExtensionError"}},it={FILE_PERMISSION_DENIED:"FILE_PERMISSION_DENIED",WORKSPACE_TOO_LARGE:"WORKSPACE_TOO_LARGE",CHUNK_LOAD_FAILED:"CHUNK_LOAD_FAILED"};function zr(t){if(!t)return!1;let e=t.code||t?.name;return["EACCES","EPERM","EROFS","NoPermissions"].includes(e)}var Te=class extends ce{constructor(e,r,n={}){let{recoverable:o=!0,context:a={}}=n;super(it.CHUNK_LOAD_FAILED,`Failed to load ${e}: ${r}`,{chunkName:e,recoverable:o,...a}),this.name="ChunkLoadError",this.chunkName=e,this.recoverable=o}};function Hr(t,e,r={}){let n=require("vscode"),{userFacing:o=!0}=r,a=e?.recoverable??!0;o&&!a&&n.window.showErrorMessage(`Explorer Dates: ${t} feature unavailable. Please reinstall or rebuild the extension.`)}lt.exports={ExtensionError:ce,ERROR_CODES:it,isPermissionError:zr,ChunkLoadError:Te,handleChunkFailure:Hr}});var pt=f((Bo,gt)=>{var ct="EXPLORER_DATES_FORCE_VSCODE_FS";function ut(t,e=process.env){return String(e?.[t]||"")==="1"}function ue(t){let e=t&&typeof t=="object"?t:null,r=String(e?.scheme||(typeof t=="string"&&/^[a-z][a-z0-9+.-]*:/i.test(t)?t.split(":",1)[0]:"file")).toLowerCase(),n=String(e?.authority||""),o=e?.path||e?.fsPath||(typeof t=="string"?t.replace(/^[a-z][a-z0-9+.-]*:\/\//i,""):"");return{scheme:r,authority:n,path:String(o||"")}}function Kr({uri:t,isWeb:e=!1,remoteName:r="",forceWorkspaceFs:n=ut(ct)}={}){let o=ue(t),a=o.scheme!=="file",s=!!e,l=!!r,i=!!(n||s||l||a);return{scheme:o.scheme,authority:o.authority,isFileScheme:!a,isVirtual:a,isBrowser:s,isRemote:l,forceWorkspaceFs:!!n,filesystem:i?"workspace.fs":"node.fs",provider:a?o.scheme==="github"||o.scheme==="vscode-vfs"?"github":"virtual":"filesystem"}}function dt({uri:t,platform:e=process.platform,caseSensitive:r}={}){return typeof r=="boolean"?r:ue(t).scheme!=="file"?!0:e!=="win32"}function Vr(t,e={}){let r=ue(t),n=r.path.replace(/\\/g,"/").replace(/\/+/g,"/"),o=`${r.scheme}://${r.authority}${n}`;return dt({uri:t,...e})?o:o.toLowerCase()}function Re(t){if(t instanceof Date){let e=t.getTime();return Number.isFinite(e)?e:null}if(typeof t=="number")return Number.isFinite(t)?t:null;if(typeof t=="string"&&t.trim()){let e=Date.parse(t);return Number.isFinite(e)?e:null}return null}function Br(t){if(!t||typeof t!="object")return null;let e=Re(t.mtime),r=Re(t.ctime);return{...t,mtimeMs:e,ctimeMs:r}}gt.exports={FORCE_WORKSPACE_FS_ENV:ct,envFlag:ut,getUriParts:ue,getEnvironmentContract:Kr,isCaseSensitive:dt,resourceIdentity:Vr,normalizeTimestamp:Re,normalizeStat:Br}});var de=f((Go,ht)=>{function Gr(){return typeof Date=="function"&&Date.now?Date.now():16409952e5}function ft(t){return!!(t&&typeof t=="object"&&typeof t.getTime=="function")}function jr(t){if(ft(t))return t;if(typeof t=="number")return new Date(t);if(typeof t=="string"){let e=Date.parse(t);return isNaN(e)?new Date:new Date(e)}return new Date}function O(t=""){return t?t.replace(/\\/g,"/"):""}function Yr(t=""){let e=O(t);return e?e.split("/").filter(Boolean):[]}function mt(t=""){let e=Yr(t);return e.length?e[e.length-1]:""}function Xr(t=""){let e=mt(t),r=e.lastIndexOf(".");return r<=0?"":e.substring(r).toLowerCase()}function Zr(t=""){let e=O(t),r=e.lastIndexOf("/");return r===-1?"":e.substring(0,r)}function Jr(...t){return O(t.filter(Boolean).join("/")).replace(/\/+/g,"/")}function Qr(t=""){return O(t).toLowerCase()}function en(t=""){if(!t)return"";if(typeof t=="string")return t;if(typeof t.fsPath=="string"&&t.fsPath.length>0)return t.fsPath;if(typeof t.path=="string"&&t.path.length>0)return t.path;if(typeof t.toString=="function")try{return t.toString(!0)}catch{return t.toString()}return String(t)}function tn(t="",e=""){let r=O(t),n=O(e);return r&&n.startsWith(r)?n.substring(r.length).replace(/^\/+/,""):n}ht.exports={ensureDate:jr,isDateLike:ft,getCurrentTimestamp:Gr,normalizePath:O,getFileName:mt,getExtension:Xr,getDirectory:Zr,joinPath:Jr,getCacheKey:Qr,getUriPath:en,getRelativePath:tn}});var Fe=f((exports,module)=>{var chunk=null;try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){try{chunk=dynamicRequire("../chunks/utils-shared-chunk")}catch{}try{chunk||(chunk=dynamicRequire("./chunks/utils-shared-chunk"))}catch{}try{chunk||(chunk=dynamicRequire("../chunks/date-helpers-chunk"))}catch{}try{chunk||(chunk=dynamicRequire("./chunks/date-helpers-chunk"))}catch{}}}catch{}if(chunk&&(chunk.ensureDate||chunk.isDateLike||chunk.getCurrentTimestamp))module.exports={ensureDate:chunk.ensureDate,isDateLike:chunk.isDateLike,getCurrentTimestamp:chunk.getCurrentTimestamp};else{let t=function(){return typeof Date=="function"&&Date.now?Date.now():16409952e5},e=function(n){return!!(n&&typeof n=="object"&&typeof n.getTime=="function")},r=function(n){if(e(n))return n;if(typeof n=="number")return new Date(n);if(typeof n=="string"){let o=Date.parse(n);return isNaN(o)?new Date:new Date(o)}return new Date};getCurrentTimestamp=t,isDateLike=e,ensureDate=r,module.exports={ensureDate:r,isDateLike:e,getCurrentTimestamp:t}}var getCurrentTimestamp,isDateLike,ensureDate});var pe=f((jo,Et)=>{var w=require("vscode"),{isWebEnvironment:wt}=ee(),{normalizePath:rn}=le(),{ExtensionError:nn,ERROR_CODES:on,isPermissionError:an}=Ae(),{getEnvironmentContract:sn,normalizeStat:ln,FORCE_WORKSPACE_FS_ENV:cn}=pt(),K;try{let t=de();t&&(K=t.ensureDate)}catch{}K||(K=Fe().ensureDate);var bt=typeof process<"u"&&process.env?process.env:{},yt=bt.VSCODE_WEB==="true"||wt(),b=null;if(!yt)try{b=require("fs").promises}catch{b=null}var ge=class{constructor(){this.isWeb=yt||wt()}s(e){try{return sn({uri:this.o(e),isWeb:this.isWeb,remoteName:w.env?.remoteName,forceWorkspaceFs:bt[cn]==="1"}).filesystem==="workspace.fs"}catch{return!1}}a(e){if(!e)return"";if(typeof e=="string")return e;if(e&&typeof e=="object"&&typeof e.fsPath=="string")return e.fsPath;if(e&&typeof e=="object"&&typeof e.path=="string")return e.path;if(typeof e=="object"){if(typeof e.fsPath=="string")return e.fsPath;if(typeof e.path=="string")return e.path}return String(e)}o(e){if(e&&typeof e=="object"&&typeof e.scheme=="string"&&typeof e.path=="string")return e;if(typeof e=="string"){let r=e.trim(),n=/^[a-zA-Z]:[\\/]/.test(r);if(/^[a-zA-Z][a-zA-Z0-9+.-]*:/.test(r)&&!n){let a=w.Uri.parse(r);if(a.scheme&&a.scheme!=="file")return a}return w.Uri.file(e)}if(e&&typeof e=="object"){if(e.uri&&e.uri!==e)try{return this.o(e.uri)}catch{}if(this.isWeb&&typeof e.scheme=="string"&&typeof e.path=="string")return w.Uri.from({scheme:e.scheme,authority:e.authority||"",path:e.path||"",query:e.query||"",fragment:e.fragment||""});if(typeof e.fsPath=="string"&&e.fsPath.length>0)return w.Uri.file(e.fsPath);if(typeof e.path=="string"&&e.path.length>0)return this.isWeb&&typeof e.scheme=="string"&&e.scheme!=="file"?w.Uri.from({scheme:e.scheme,authority:e.authority||"",path:e.path,query:e.query||"",fragment:e.fragment||""}):w.Uri.file(e.path);if(typeof e.href=="string"&&e.href.length>0)return w.Uri.parse(e.href);if(typeof e.scheme=="string")return w.Uri.from({scheme:e.scheme,authority:e.authority||"",path:e.path||e.fsPath||"",query:e.query||"",fragment:e.fragment||""});if(typeof e.toString=="function")try{let r=e.toString(!0);if(r&&r!=="[object Object]")return w.Uri.parse(r)}catch{let r=e.toString();if(r&&r!=="[object Object]")return w.Uri.parse(r)}}throw new Error(`Unsupported target type: ${typeof e}`)}async stat(e){let r=this.s(e);if(!this.isWeb&&b&&!r)return b.stat(this.a(e));let n=this.o(e),o=await w.workspace.fs.stat(n),a=ln(o);return{...a,mtime:a.mtimeMs===null?K(o.mtime):new Date(a.mtimeMs),ctime:a.ctimeMs===null?K(o.ctime):new Date(a.ctimeMs),birthtime:a.ctimeMs===null?K(o.ctime):new Date(a.ctimeMs),isFile:()=>o.type===w.FileType.File,isDirectory:()=>o.type===w.FileType.Directory}}async readFile(e,r="utf8"){let n=this.s(e);if(!this.isWeb&&b&&!n)return b.readFile(this.a(e),r);let o=this.o(e),a=await w.workspace.fs.readFile(o);return r===null||r==="binary"?a:new TextDecoder(r).decode(a)}async writeFile(e,r,n="utf8"){let o=this.a(e);try{let a=this.s(e);if(!this.isWeb&&b&&!a)return b.writeFile(o,r,n);let s=this.o(e),l=typeof r=="string"?new TextEncoder().encode(r):r;await w.workspace.fs.writeFile(s,l)}catch(a){this.A("write file",o,a)}}async rename(e,r,n={overwrite:!1}){let o=this.a(e),a=this.a(r);try{let s=this.s(e)||this.s(r);if(!this.isWeb&&b&&!s)return b.rename(o,a);if(typeof w.workspace.fs.rename=="function")await w.workspace.fs.rename(this.o(e),this.o(r),n);else if(this.o(e).scheme==="file"&&this.o(r).scheme==="file")await(b||require("fs").promises).rename(o,a);else throw new Error("The active filesystem provider cannot rename report output.")}catch(s){this.A("rename file",`${o} -> ${a}`,s)}}async mkdir(e,r={recursive:!0}){let n=this.a(e);try{let o=this.s(e);if(!this.isWeb&&b&&!o)return b.mkdir(n,r);let a=this.o(e);await w.workspace.fs.createDirectory(a)}catch(o){this.A("create directory",n,o)}}async readdir(e,r={withFileTypes:!1}){let n=this.s(e);if(!this.isWeb&&b&&!n)return b.readdir(this.a(e),r);let o=this.o(e),a=await w.workspace.fs.readDirectory(o);return r.withFileTypes?a.map(([s,l])=>({name:s,isDirectory:()=>l===w.FileType.Directory,isFile:()=>l===w.FileType.File})):a.map(([s])=>s)}async delete(e,r={recursive:!1}){let n=this.s(e);if(!this.isWeb&&b&&!n){let a=this.a(e);return r.recursive?b.rm?b.rm(a,r):b.rmdir(a,r):b.unlink(a)}let o=this.o(e);await w.workspace.fs.delete(o,r)}async exists(e){try{return await this.stat(e),!0}catch{return!1}}async ensureDirectory(e){let r=rn(this.a(e));await this.mkdir(r,{recursive:!0})}A(e,r,n){throw an(n)?new nn(on.FILE_PERMISSION_DENIED,`Permission denied while attempting to ${e}`,{path:r,code:n.code}):n}},un=new ge;Et.exports={FileSystemAdapter:ge,fileSystem:un}});var N=f((Yo,Ct)=>{var V=typeof process<"u"&&process.env?process.env:{},dn=12e4,gn=1e4,pn=1440*60*1e3,fn=2,mn=["Ja","Fe","Mr","Ap","My","Jn","Jl","Au","Se","Oc","No","De"],hn=Number(V.EXPLORER_DATES_DECORATION_POOL_SIZE||2048),wn=Number(V.EXPLORER_DATES_FLYWEIGHT_CACHE_SIZE||4096),bn=Number(V.EXPLORER_DATES_WORKSPACE_BALANCED_THRESHOLD||15e3),yn=Number(V.EXPLORER_DATES_WORKSPACE_LARGE_THRESHOLD||25e4),vt=Number(V.EXPLORER_DATES_WORKSPACE_EXTREME_THRESHOLD||4e5),En=Number(V.EXPLORER_DATES_WORKSPACE_SCAN_MAX_RESULTS||Math.min(vt+1,50001)),vn={ADVANCED_CACHE:"explorerDates.advancedCache",ADVANCED_CACHE_METADATA:"explorerDates.advancedCacheMetadata",TEMPLATE_STORE:"explorerDates.templates",WEB_GIT_NOTICE:"explorerDates.webGitNotice"},Cn="explorerDatesChunks",Sn="__explorerDatesChunks";Ct.exports={DEFAULT_CACHE_TIMEOUT:dn,DEFAULT_MAX_CACHE_SIZE:gn,DEFAULT_PERSISTENT_CACHE_TTL:pn,DEFAULT_DECORATION_POOL_SIZE:hn,DEFAULT_FLYWEIGHT_CACHE_SIZE:wn,MAX_BADGE_LENGTH:fn,MONTH_ABBREVIATIONS:mn,WORKSPACE_SCALE_BALANCED_THRESHOLD:bn,WORKSPACE_SCALE_LARGE_THRESHOLD:yn,WORKSPACE_SCALE_EXTREME_THRESHOLD:vt,WORKSPACE_SCAN_MAX_RESULTS:En,GLOBAL_STATE_KEYS:vn,WEB_CHUNK_GLOBAL_KEY:Cn,LEGACY_WEB_CHUNK_GLOBAL_KEY:Sn}});var _e=f((Xo,Dt)=>{var{MAX_BADGE_LENGTH:St}=N();function Dn(t=0,e="auto"){let r=typeof t=="number"&&!Number.isNaN(t)?t:0;if(e==="bytes")return`~${r}B`;let n=r/1024;if(e==="kb")return`~${n.toFixed(1)}K`;let o=n/1024;return e==="mb"?`~${o.toFixed(1)}M`:r<1024?`~${r}B`:n<1024?`~${Math.round(n)}K`:`~${o.toFixed(1)}M`}function kn(t){if(t)return t.length>St?t.substring(0,St):t}Dt.exports={formatFileSize:Dn,trimBadge:kn}});var _t=f((Zo,Ft)=>{var kt=[".git","node_modules","dist","build","out",".vite",".vscode-test","test-results","playwright-report","coverage"],xt=["24h","7d","30d","90d","all"];function D(t=""){return String(t||"").replace(/\\/g,"/").replace(/\/+/g,"/").replace(/^\.\//,"")}function Tt(t){return t==="full"||t==="all"?"all":xt.includes(t)?t:"all"}function At(t,e=Date.now()){let r=Tt(t);if(r==="all")return null;let n=r==="24h"?24:Number.parseInt(r,10)*24;return e-n*60*60*1e3}function x(t){if(t instanceof Date)return Number.isFinite(t.getTime())?t:null;if(typeof t=="number"&&Number.isFinite(t)){let e=new Date(t<1e12?t*1e3:t);return Number.isFinite(e.getTime())?e:null}if(typeof t=="string"&&t.trim()){let e=new Date(t);return Number.isFinite(e.getTime())?e:null}return null}function xn(t={}){let e=Number.isFinite(Number(t.size))&&Number(t.size)>=0?Number(t.size):null,r=x(t.mtime??t.mtimeMs),n=x(t.birthtime??t.ctime??t.ctimeMs);return{size:e,modified:r,created:n}}function Tn(t){let r=D(t).replace(/^\*\*\//,"").replace(/\/\*\*$/,"").replace(/[.+^${}()|[\]\\]/g,"\\$&").replace(/\*\*/g,".*").replace(/\*/g,"[^/]*").replace(/\?/g,"[^/]");try{return new RegExp(`(^|/)${r}($|/)`,"i")}catch{return null}}function An(t={}){let e=new Set([...kt,...t.excludedSegments||[]].map(n=>D(n).replace(/^\/+|\/+$/g,"").toLowerCase()).filter(Boolean)),r=(t.excludedPatterns||[]).map(Tn).filter(Boolean);return{excludedSegments:[...e],isExcluded(n=""){let o=D(n);return o.split("/").filter(Boolean).some(s=>e.has(s.toLowerCase()))?!0:r.some(s=>s.test(o))},shouldDescend(n=""){return!this.isExcluded(n,!0)}}}function Rn(t){let e=x(t?.timestamp);return e?`${e.toISOString()}|${t.action||"modified"}|${t.source||"unknown"}`:null}function Fn(t,e,r){let n=x(t),o=At(e,r);return!!(n&&(o===null||n.getTime()>=o))}function Rt(t){return[...t].sort((e,r)=>{let n=x(e.lastActivity||e.modified)?.getTime()||0;return(x(r.lastActivity||r.modified)?.getTime()||0)-n||D(e.path).localeCompare(D(r.path))})}function _n(t){let e={filesystem:0,user:0,watcher:0,git:0,unavailable:0},r={},n={};for(let i of t){r[i.type||"unknown"]=(r[i.type||"unknown"]||0)+1;for(let c of i.evidence||[]){e[c.source]=(e[c.source]||0)+1;let u=x(c.timestamp);u&&(n[u.toISOString().slice(0,10)]=(n[u.toISOString().slice(0,10)]||0)+1)}i.activityUnavailable&&e.unavailable++}let o=Rt(t),a=[...t].filter(i=>Number.isFinite(i.activityCount)&&i.activityCount>0).sort((i,c)=>c.activityCount-i.activityCount||D(i.path).localeCompare(D(c.path))),s=[...t].sort((i,c)=>(c.size||0)-(i.size||0)||D(i.path).localeCompare(D(c.path))),l=[...t].filter(i=>x(i.modified)).sort((i,c)=>x(i.modified).getTime()-x(c.modified).getTime()||D(i.path).localeCompare(D(c.path)));return{totalFiles:t.length,totalSize:t.reduce((i,c)=>i+(c.size||0),0),fileTypes:r,activityByDay:n,mostActiveFiles:a.slice(0,10).map(i=>({path:i.path,activityCount:i.activityCount,lastActivity:i.lastActivity})),recentlyModified:o.slice(0,20).map(i=>({path:i.path,modified:i.modified,size:i.size})),largestFiles:s.slice(0,10).map(i=>({path:i.path,size:i.size,modified:i.modified})),oldestFiles:l.slice(0,10).map(i=>({path:i.path,modified:i.modified,size:i.size})),activitySourceBreakdown:e}}Ft.exports={REPORT_SCHEMA_VERSION:2,DEFAULT_EXCLUDED_SEGMENTS:kt,REPORT_TIME_RANGES:xt,normalizePath:D,normalizeTimeRange:Tt,rangeStart:At,validDate:x,normalizeStat:xn,createInclusionPolicy:An,activityKey:Rn,inRange:Fn,sortFiles:Rt,createSummary:_n}});var Me=f((Jo,Pt)=>{"use strict";var Pe=Symbol("explorerDates.commandOutcome"),B=Object.freeze({BEHAVIORAL_SUCCESS:"behavioral-success",EXPECTED_CANCELLATION:"expected-cancellation",EXPECTED_EMPTY_RESULT:"expected-empty-result",EXPECTED_ALREADY_RUNNING:"expected-already-running",HANDLED_COMMAND_FAILURE:"handled-command-failure",UNHANDLED_COMMAND_FAILURE:"unhandled-command-failure"});function te(t,e,r,n){return Object.freeze({[Pe]:!0,category:t,value:e,error:r,errorContext:n||null})}var Pn=t=>te(B.BEHAVIORAL_SUCCESS,t),Mn=t=>te(B.EXPECTED_CANCELLATION,t),Wn=t=>te(B.EXPECTED_EMPTY_RESULT,t),In=t=>te(B.EXPECTED_ALREADY_RUNNING,t),Ln=(t,e)=>te(B.HANDLED_COMMAND_FAILURE,void 0,t,e),On=t=>!!(t&&t[Pe]===!0);Pt.exports={COMMAND_OUTCOME:Pe,OUTCOME_CATEGORIES:B,commandSuccess:Pn,commandCancellation:Mn,commandEmpty:Wn,commandAlreadyRunning:In,commandFailure:Ln,isCommandOutcome:On}});var G=f((Qo,Lt)=>{var Wt=typeof process<"u"&&process.env?process.env:{},Mt="[ExplorerDates][WebDiag]",We="__explorerDatesWebDiagnostics",fe;function Nn(){try{let t=require("vscode");return t?.env?.uiKind===t?.UIKind?.Web}catch{return Wt.VSCODE_WEB==="true"}}function T(){return fe!==void 0||(fe=Wt.EXPLORER_DATES_WEB_DIAG==="1"||Nn()),fe}function It(){return{enabled:T(),logs:[],logOnce:new Set,commandsRegistered:new Set,commandsInvoked:[],errors:[],chunkLoads:[],provider:{created:!1,registered:!1,hydrated:!1,decorationCalls:0,refreshCalls:0,lastEvent:null}}}var Un=It();function A(){return typeof globalThis<"u"?(globalThis[We]||(globalThis[We]=It()),globalThis[We]):Un}function $n(t){try{return JSON.stringify(t)}catch{return String(t)}}function R(t,e,r){if(!T())return;let n=A(),o={ts:new Date().toISOString(),level:t,message:e,meta:r||null};n.logs.push(o),n.logs.length>400&&n.logs.shift();let a=r?`${Mt} ${e} ${$n(r)}`:`${Mt} ${e}`,s=console[t]||console.info;try{s(a)}catch{}}function qn(t,e,r,n){if(!T())return;let o=A();o.logOnce.has(t)||(o.logOnce.add(t),R(e,r,n))}function zn(t){if(!T())return;A().commandsRegistered.add(t),R("info","Command registered",{commandId:t})}function Hn(t){if(!T())return;A().commandsInvoked.push({commandId:t,ts:Date.now()}),R("info","Command invoked",{commandId:t})}function Kn(t,e,r,n,o){if(!T())return;let a=n||(e?"behavioral-success":"unhandled-command-failure"),s=r?{name:r.name||"Error",message:r.message||String(r),code:r.code||null}:null;e?R("info","Command completed",{commandId:t,outcomeCategory:a}):(R("error","Command failed",{commandId:t,outcomeCategory:a,error:s,errorContext:o||null}),A().errors.push({commandId:t,outcomeCategory:a,error:s,errorContext:o||null}))}function Vn(t,e,r){if(!T())return;A().chunkLoads.push({chunkName:t,stage:e,ts:Date.now(),error:r?r.message||String(r):null}),R(r?"warn":"info",`Chunk ${e}`,{chunkName:t,error:r?.message})}function Bn(t,e){if(!T())return;let r=A();r.provider.lastEvent={event:t,ts:Date.now(),meta:e||null},t==="created"&&(r.provider.created=!0),t==="registered"&&(r.provider.registered=!0),t==="hydrated"&&(r.provider.hydrated=!0),R("info",`Provider ${t}`,e)}function Gn(){if(!T())return;let t=A();t.provider.decorationCalls+=1,t.provider.decorationCalls<=3&&R("info","Decoration request observed",{count:t.provider.decorationCalls})}function jn(){if(!T())return;let t=A();t.provider.refreshCalls+=1}Lt.exports={isWebDiagnosticsEnabled:T,getWebDiagnosticsState:A,diagLog:R,diagLogOnce:qn,recordCommandRegistration:zn,recordCommandInvocation:Hn,recordCommandResult:Kn,recordChunkEvent:Vn,recordProviderEvent:Bn,recordDecorationCall:Gn,recordRefreshCall:jn}});var j=f((ea,Ut)=>{var Ie=require("vscode"),{getLocalization:Yn}=Q(),Xn=Yn();function Ot(){return typeof Ie.workspace.isTrusted>"u"?!0:Ie.workspace.isTrusted===!0}function Nt(t="operation"){if(!Ot()){let e=Xn.getString("operationRequiresTrust",t)||`This operation requires a trusted workspace. Please trust this workspace to use ${t}.`;throw Ie.window.showErrorMessage(e),new Error(`Workspace trust required for ${t}`)}}async function Zn(t,e="operation"){try{return Nt(e),await t()}catch{return null}}Ut.exports={isWorkspaceTrusted:Ot,requireWorkspaceTrust:Nt,withTrustGuard:Zn}});var $t=f((exports,module)=>{var vscode=require("vscode"),{fileSystem}=pe(),{formatFileSize}=_e(),{normalizeStat,validDate}=_t(),{commandEmpty,commandFailure,commandSuccess,isCommandOutcome,OUTCOME_CATEGORIES}=Me(),{recordCommandRegistration,recordCommandInvocation,recordCommandResult,diagLog}=G(),getFileName,getRelativePath;try{let t=de();t&&(getFileName=t.getFileName,getRelativePath=t.getRelativePath)}catch{}if(!getFileName){let t=le();getFileName=getFileName||t.getFileName,getRelativePath=getRelativePath||t.getRelativePath}var env=typeof process<"u"&&process.env?process.env:{},isWeb=env.VSCODE_WEB==="true",childProcess=null;function loadChildProcess(){return!childProcess&&!isWeb&&(childProcess=eval("require")("child_process")),childProcess}function registerCoreCommands({context:t,fileDateProvider:e,logger:r,l10n:n}){let o=[],a=new WeakSet,s=(l,i)=>(recordCommandRegistration(l),vscode.commands.registerCommand(l,async(...c)=>{recordCommandInvocation(l);try{let u=await i(...c),g=isCommandOutcome(u)?u:commandSuccess(u),h=g.category===OUTCOME_CATEGORIES.HANDLED_COMMAND_FAILURE||g.category===OUTCOME_CATEGORIES.UNHANDLED_COMMAND_FAILURE;if(recordCommandResult(l,!h,g.error,g.category,g.errorContext),h){let E=g.error||new Error(`Command failed: ${l}`);throw E&&(typeof E=="object"||typeof E=="function")&&a.add(E),E}return g.value}catch(u){throw a.has(u)||recordCommandResult(l,!1,u,OUTCOME_CATEGORIES.UNHANDLED_COMMAND_FAILURE),u}}));o.push(s("explorerDates.refreshDateDecorations",()=>{try{if(e){e.clearAllCaches(),e.refreshAll();let l=n?.getString("refreshSuccess")||"Date decorations refreshed - all caches cleared";vscode.window.showInformationMessage(l),r.info("Date decorations refreshed manually with cache clear")}}catch(l){r.error("Failed to refresh decorations",l),vscode.window.showErrorMessage(`Failed to refresh decorations: ${l.message}`)}})),o.push(s("explorerDates.previewConfiguration",l=>{try{e&&(e.applyPreviewSettings(l),r.info("Configuration preview applied",l))}catch(i){r.error("Failed to apply configuration preview",i)}})),o.push(s("explorerDates.clearPreview",()=>{try{e&&(e.applyPreviewSettings(null),r.info("Configuration preview cleared"))}catch(l){r.error("Failed to clear configuration preview",l)}})),o.push(s("explorerDates.showMetrics",()=>{try{if(e){let l=e.getMetrics(),i=`Explorer Dates Metrics: Total Decorations: ${l.totalDecorations} Cache Size: ${l.cacheSize} Cache Hits: ${l.cacheHits} @@ -21,14 +21,14 @@ Is Processing: ${l.batchProcessor.isProcessing} Average Batch Time: ${l.batchProcessor.averageBatchTime.toFixed(2)}ms`),vscode.window.showInformationMessage(i,{modal:!0}),r.info("Metrics displayed",l)}}catch(l){r.error("Failed to show metrics",l),vscode.window.showErrorMessage(`Failed to show metrics: ${l.message}`)}})),o.push(s("explorerDates.openLogs",()=>{try{if(r&&typeof r.show=="function"){r.show();return}diagLog("info","Logger channel unavailable; showing fallback message"),vscode.window.showInformationMessage("Explorer Dates logs are unavailable in this environment.")}catch(l){r.error("Failed to open logs",l),vscode.window.showErrorMessage(`Failed to open logs: ${l.message}`)}})),o.push(s("explorerDates.showCurrentConfig",()=>{try{let l=vscode.workspace.getConfiguration("explorerDates"),i={showDateDecorations:l.get("showDateDecorations",!0),performanceMode:l.get("performanceMode",!1),featureLevel:l.get("featureLevel","auto"),highContrastMode:l.get("highContrastMode"),badgePriority:l.get("badgePriority"),colorScheme:l.get("colorScheme"),accessibilityMode:l.get("accessibilityMode"),dateDecorationFormat:l.get("dateDecorationFormat"),fileSizeFormat:l.get("fileSizeFormat","auto"),showGitInfo:l.get("showGitInfo"),showFileSize:l.get("showFileSize")},c=`Current Explorer Dates Configuration: ${Object.entries(i).map(([u,g])=>`${u}: ${JSON.stringify(g)}`).join(` -`)}`;vscode.window.showInformationMessage(c,{modal:!0}),r.info("Current configuration displayed",i)}catch(l){r.error("Failed to show configuration",l)}})),o.push(s("explorerDates.resetToDefaults",async()=>{try{let{requireWorkspaceTrust:l}=G();l("reset settings to defaults");let i=vscode.workspace.getConfiguration("explorerDates");await i.update("highContrastMode",!1,vscode.ConfigurationTarget.Global),await i.update("badgePriority","time",vscode.ConfigurationTarget.Global),await i.update("accessibilityMode",!1,vscode.ConfigurationTarget.Global),vscode.window.showInformationMessage("Reset high contrast, badge priority, and accessibility mode to defaults. Changes should take effect immediately."),r.info("Reset problematic settings to defaults"),e&&(e.clearAllCaches(),e.refreshAll())}catch(l){r.error("Failed to reset settings",l),vscode.window.showErrorMessage(`Failed to reset settings: ${l.message}`)}})),o.push(s("explorerDates.toggleDecorations",()=>{try{let l=vscode.workspace.getConfiguration("explorerDates"),i=l.get("showDateDecorations",!0);l.update("showDateDecorations",!i,vscode.ConfigurationTarget.Global);let c=i?n?.getString("decorationsDisabled")||"Date decorations disabled":n?.getString("decorationsEnabled")||"Date decorations enabled";vscode.window.showInformationMessage(c),r.info(`Date decorations toggled to: ${!i}`)}catch(l){r.error("Failed to toggle decorations",l),vscode.window.showErrorMessage(`Failed to toggle decorations: ${l.message}`)}})),o.push(s("explorerDates.copyFileDate",async l=>{try{let i=l;if(!i&&vscode.window.activeTextEditor&&(i=vscode.window.activeTextEditor.document.uri),!i){vscode.window.showWarningMessage("No file selected");return}let c=await fileSystem.stat(i),u=(c.mtime instanceof Date?c.mtime:new Date(c.mtime)).toLocaleString();await vscode.env.clipboard.writeText(u),vscode.window.showInformationMessage(`Copied to clipboard: ${u}`),r.info(`File date copied for: ${i.fsPath||i.path}`)}catch(i){r.error("Failed to copy file date",i),vscode.window.showErrorMessage(`Failed to copy file date: ${i.message}`)}})),o.push(s("explorerDates.showFileDetails",async l=>{try{let i=l;if(!i&&vscode.window.activeTextEditor&&(i=vscode.window.activeTextEditor.document.uri),!i)return vscode.window.showWarningMessage("No file selected"),commandEmpty();let c=await fileSystem.stat(i),u=normalizeStat(c),g=i.fsPath||i.path||i.toString(),h=getFileName(g),E=u.size===null?"Unavailable":formatFileSize(u.size,"auto"),m=validDate(u.modified)?.toLocaleString()||"Unavailable",P=validDate(u.created)?.toLocaleString()||"Unavailable (not provided)",v=`File: ${h} +`)}`;vscode.window.showInformationMessage(c,{modal:!0}),r.info("Current configuration displayed",i)}catch(l){r.error("Failed to show configuration",l)}})),o.push(s("explorerDates.resetToDefaults",async()=>{try{let{requireWorkspaceTrust:l}=j();l("reset settings to defaults");let i=vscode.workspace.getConfiguration("explorerDates");await i.update("highContrastMode",!1,vscode.ConfigurationTarget.Global),await i.update("badgePriority","time",vscode.ConfigurationTarget.Global),await i.update("accessibilityMode",!1,vscode.ConfigurationTarget.Global),vscode.window.showInformationMessage("Reset high contrast, badge priority, and accessibility mode to defaults. Changes should take effect immediately."),r.info("Reset problematic settings to defaults"),e&&(e.clearAllCaches(),e.refreshAll())}catch(l){r.error("Failed to reset settings",l),vscode.window.showErrorMessage(`Failed to reset settings: ${l.message}`)}})),o.push(s("explorerDates.toggleDecorations",()=>{try{let l=vscode.workspace.getConfiguration("explorerDates"),i=l.get("showDateDecorations",!0);l.update("showDateDecorations",!i,vscode.ConfigurationTarget.Global);let c=i?n?.getString("decorationsDisabled")||"Date decorations disabled":n?.getString("decorationsEnabled")||"Date decorations enabled";vscode.window.showInformationMessage(c),r.info(`Date decorations toggled to: ${!i}`)}catch(l){r.error("Failed to toggle decorations",l),vscode.window.showErrorMessage(`Failed to toggle decorations: ${l.message}`)}})),o.push(s("explorerDates.copyFileDate",async l=>{try{let i=l;if(!i&&vscode.window.activeTextEditor&&(i=vscode.window.activeTextEditor.document.uri),!i){vscode.window.showWarningMessage("No file selected");return}let c=await fileSystem.stat(i),u=(c.mtime instanceof Date?c.mtime:new Date(c.mtime)).toLocaleString();await vscode.env.clipboard.writeText(u),vscode.window.showInformationMessage(`Copied to clipboard: ${u}`),r.info(`File date copied for: ${i.fsPath||i.path}`)}catch(i){r.error("Failed to copy file date",i),vscode.window.showErrorMessage(`Failed to copy file date: ${i.message}`)}})),o.push(s("explorerDates.showFileDetails",async l=>{try{let i=l;if(!i&&vscode.window.activeTextEditor&&(i=vscode.window.activeTextEditor.document.uri),!i)return vscode.window.showWarningMessage("No file selected"),commandEmpty();let c=await fileSystem.stat(i),u=normalizeStat(c),g=i.fsPath||i.path||i.toString(),h=getFileName(g),E=u.size===null?"Unavailable":formatFileSize(u.size,"auto"),m=validDate(u.modified)?.toLocaleString()||"Unavailable",P=validDate(u.created)?.toLocaleString()||"Unavailable (not provided)",v=`File: ${h} Size: ${E} Modified: ${m} Created: ${P} Path: ${g}`;return vscode.window.showInformationMessage(v,{modal:!0}),r.info(`File details shown for: ${g}`),commandSuccess()}catch(i){return r.error("Failed to show file details",i),vscode.window.showErrorMessage(`Failed to show file details: ${i?.code==="ENOENT"?"The selected resource no longer exists.":"The selected resource could not be read."}`),commandFailure(i,{operation:"show-file-details",errorCode:i?.code||null})}})),o.push(s("explorerDates.toggleFadeOldFiles",()=>{try{let l=vscode.workspace.getConfiguration("explorerDates"),i=l.get("fadeOldFiles",!1);l.update("fadeOldFiles",!i,vscode.ConfigurationTarget.Global);let c=i?"Fade old files disabled":"Fade old files enabled";vscode.window.showInformationMessage(c),r.info(`Fade old files toggled to: ${!i}`)}catch(l){r.error("Failed to toggle fade old files",l),vscode.window.showErrorMessage(`Failed to toggle fade old files: ${l.message}`)}})),o.push(s("explorerDates.showFileHistory",async l=>{try{if(isWeb){vscode.window.showInformationMessage("Git history is unavailable on VS Code for Web.");return}let i=l;if(!i&&vscode.window.activeTextEditor&&(i=vscode.window.activeTextEditor.document.uri),!i){vscode.window.showWarningMessage("No file selected");return}let c=vscode.workspace.getWorkspaceFolder(i);if(!c){vscode.window.showWarningMessage("File is not in a workspace");return}let g=`git log --oneline -10 -- "${getRelativePath(c.uri.fsPath||c.uri.path,i.fsPath||i.path)}"`;loadChildProcess().exec(g,{cwd:c.uri.fsPath,timeout:3e3},(E,m)=>{if(E){E.message.includes("not a git repository")?vscode.window.showWarningMessage("This file is not in a Git repository"):vscode.window.showErrorMessage(`Git error: ${E.message}`);return}if(!m.trim()){vscode.window.showInformationMessage("No Git history found for this file");return}let P=m.trim(),v=getFileName(i.fsPath||i.path);vscode.window.showInformationMessage(`Recent commits for ${v}: -${P}`,{modal:!0})}),r.info(`File history requested for: ${i.fsPath||i.path}`)}catch(i){r.error("Failed to show file history",i),vscode.window.showErrorMessage(`Failed to show file history: ${i.message}`)}})),o.push(vscode.commands.registerCommand("explorerDates.compareWithPrevious",async l=>{try{if(isWeb){vscode.window.showInformationMessage("Git comparisons are unavailable on VS Code for Web.");return}let i=l;if(!i&&vscode.window.activeTextEditor&&(i=vscode.window.activeTextEditor.document.uri),!i){vscode.window.showWarningMessage("No file selected");return}if(!vscode.workspace.getWorkspaceFolder(i)){vscode.window.showWarningMessage("File is not in a workspace");return}await vscode.commands.executeCommand("git.openChange",i),r.info(`Git diff opened for: ${i.fsPath||i.path}`)}catch(i){r.error("Failed to compare with previous version",i),vscode.window.showErrorMessage(`Failed to compare with previous version: ${i.message}`)}})),o.forEach(l=>t.subscriptions.push(l))}module.exports={registerCoreCommands}});var zt=f((ea,qt)=>{var F=require("vscode");function Zn({context:t,logger:e,getOnboardingManager:r}){let n=[];n.push(F.commands.registerCommand("explorerDates.showFeatureTour",async()=>{try{let o=await r();if(!o){F.window.showWarningMessage("Onboarding system unavailable.");return}await o.showFeatureTour(),e.info("Feature tour opened")}catch(o){e.error("Failed to show feature tour",o),F.window.showErrorMessage(`Failed to show feature tour: ${o.message}`)}})),n.push(F.commands.registerCommand("explorerDates.showQuickSetup",async()=>{try{let o=await r();if(!o){F.window.showWarningMessage("Onboarding system unavailable.");return}await o.showQuickSetupWizard(),e.info("Quick setup wizard opened")}catch(o){e.error("Failed to show quick setup wizard",o),F.window.showErrorMessage(`Failed to show quick setup wizard: ${o.message}`)}})),n.push(F.commands.registerCommand("explorerDates.showWhatsNew",async()=>{try{let o=await r();if(!o){F.window.showWarningMessage("Onboarding system unavailable.");return}let a=t.extension.packageJSON.version;await o.showWhatsNew(a),e.info("What's new panel opened")}catch(o){e.error("Failed to show what's new",o),F.window.showErrorMessage(`Failed to show what's new: ${o.message}`)}})),n.forEach(o=>t.subscriptions.push(o))}qt.exports={registerOnboardingCommands:Zn}});var te=f((exports,module)=>{var{getLogger}=k(),env=typeof process<"u"&&process.env?process.env:{};function createFallbackVscodeMinimal(){return{workspace:{workspaceFolders:[],getConfiguration:()=>({get:()=>{},async update(){},inspect:()=>({defaultValue:void 0,globalValue:void 0,workspaceValue:void 0,workspaceFolderValue:void 0})})},ConfigurationTarget:{Global:1,Workspace:2,WorkspaceFolder:3}}}function resolveVscodeMinimal(){try{return require("vscode")}catch{return createFallbackVscodeMinimal()}}var MinimalSettingsCoordinator=class{constructor(e={}){this.oe=e.defaultSection||"explorerDates",this.v=new Map,this.q=new Map,this.Ne=Number(env.EXPLORER_DATES_LOCK_WAIT_WARN_MS||1e3),this._logger=getLogger()}ae(e,r){let o=(this.v.get(e)||Promise.resolve()).then(()=>r()),a=o.catch(()=>{});return this.v.set(e,a),o.finally(()=>{this.v.get(e)===a&&this.v.delete(e)}),o}R(e,r){return resolveVscodeMinimal().workspace.getConfiguration(e||void 0,r)}h(e,r){let n=r||this.oe;return n?e.startsWith(`${n}.`)?{section:n,key:e.slice(n.length+1),fullKey:e}:e.includes(".")?{section:void 0,key:e,fullKey:e}:{section:n,key:e,fullKey:`${n}.${e}`}:{section:void 0,key:e,fullKey:e}}async updateSetting(e,r,n={}){return this.ae(this.h(e,n.section).fullKey,async()=>{let o=this.h(e,n.section),a=this.R(o.section,n.resource);try{let s=this.se(n.scope,n.resource);return await a.update(o.key,r,s),{key:o.fullKey,updated:!0}}catch(s){try{this._logger.warn(`Configuration update failed for ${o.fullKey}: ${s&&s.message}`)}catch{}return{key:o.fullKey,updated:!1,error:s}}})}async applySettings(e,r={}){let n=Array.isArray(e)?e:Object.entries(e).map(([s,l])=>({key:s,value:l})),o=[];for(let s of n)try{o.push(await this.updateSetting(s.key,s.value,r))}catch(l){o.push({key:this.h(s.key,r.section).fullKey,updated:!1,error:l})}let a=o.filter(s=>s&&s.error);if(a.length>0){let s=a.map(i=>`${i.key}: ${i.error&&i.error.message?i.error.message:String(i.error)}`),l=new Error(`Failed to apply ${a.length} setting(s): ${s.join("; ")}`);throw l.details=a,l}return o}se(e,r){return e&&e!=="auto"?this.ie(e)||resolveVscodeMinimal().ConfigurationTarget.Workspace:r?resolveVscodeMinimal().ConfigurationTarget.WorkspaceFolder:resolveVscodeMinimal().workspace.workspaceFolders&&resolveVscodeMinimal().workspace.workspaceFolders.length>0?resolveVscodeMinimal().ConfigurationTarget.Workspace:resolveVscodeMinimal().ConfigurationTarget.Global}ie(e){switch(e){case"user":return resolveVscodeMinimal().ConfigurationTarget.Global;case"workspace":return resolveVscodeMinimal().ConfigurationTarget.Workspace;case"workspaceFolder":return resolveVscodeMinimal().ConfigurationTarget.WorkspaceFolder;default:return}}getValue(e,r={}){let{section:n,resource:o}=r||{},a=this.h(e,n);return this.R(a.section,o).get(a.key)}inspect(e,r={}){let{section:n,resource:o}=r||{},a=this.h(e,n);return this.R(a.section,o).inspect(a.key)}async clearSetting(e,r={}){return this.updateSetting(e,void 0,r)}getLockWaitStats(){let e={};for(let[r,n]of this.q.entries())e[r]={...n};return e}resetLockWaitStats(){this.q.clear()}},cachedCoordinator=null;function getSettingsCoordinator(options){if(!cachedCoordinator||options&&options.forceNew){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let t=null;try{t=dynamicRequire("../chunks/settings-coordinator-impl-chunk")}catch{}try{t||(t=dynamicRequire("../chunks/settingsCoordinator-impl-chunk"))}catch{}if(t&&typeof t.createSettingsCoordinatorImpl=="function")return cachedCoordinator=t.createSettingsCoordinatorImpl(options),cachedCoordinator}}catch{}try{let{WEB_CHUNK_GLOBAL_KEY:t,LEGACY_WEB_CHUNK_GLOBAL_KEY:e}=N(),r=typeof globalThis<"u"&&(globalThis[t]||globalThis[e])||null;if(r&&r.settingsCoordinatorImpl&&typeof r.settingsCoordinatorImpl.createSettingsCoordinatorImpl=="function")return cachedCoordinator=r.settingsCoordinatorImpl.createSettingsCoordinatorImpl(options),cachedCoordinator}catch{}cachedCoordinator=new MinimalSettingsCoordinator(options)}return cachedCoordinator}module.exports={getSettingsCoordinator,MinimalSettingsCoordinator}});var Oe=f((ta,Kt)=>{var C=require("vscode"),{getLogger:Jn}=k(),U="explorerDates.",Ht=["performanceMode","featureLevel","smartFileWatching","smartWatcherMaxPatterns","smartWatcherExtensions","enableSmartWatcherFallbacks","enableOnboardingSystem","enableExportReporting","enableAnalysisCommands","enableAdvancedCache","enableWorkspaceTemplates","enableWorkspaceIntelligence","enableExtensionApi","enableIncrementalWorkers","enableProgressiveAnalysis"],Qn=/^\.?explorer-dates.*\.json$/i,eo=new Set([`${U}customColors`,`${U}enableReporting`]),Le=class{constructor(e){this.z=e,this._logger=Jn()}async getOrganizationPlan(){let e=C.workspace.getConfiguration("explorerDates"),r=this.F();return this.H(e,r)}async organize(e={}){let r=C.workspace.getConfiguration("explorerDates"),n=this.F(),o=e.plan||await this.H(r,n),a={changed:!1,movedToWorkspace:[],reorderedWorkspace:!1,sortedFiles:[]};return!o.needsWork&&!e.force||(await this.le(r,a,o.keysToMove),await this.ce(r,o.workspaceEntries,a,o.workspaceOutOfOrder),await this.ue(a,o.filesToSort)),a}async H(e,r){let n=this.ge(e),o=this.K(e,r),a=this.pe(o),s=await this.V(),l=await this.B(s);return{keysToMove:n,workspaceEntries:o,workspaceOutOfOrder:a,filesToSort:l,needsWork:n.length>0||a||l.length>0}}ge(e){let r=[];for(let n of Ht){let o=e.inspect(n);if(!o)continue;let a=o.globalValue!==void 0,s=o.workspaceValue!==void 0,l=o.workspaceFolderValue!==void 0;a&&!s&&!l&&r.push(n)}return r}K(e,r){let n=[];for(let o of r){if(this.fe(o))continue;let a=this.me(o),s=e.inspect(a);s&&s.workspaceValue!==void 0&&n.push({fullKey:o,shortKey:a,value:s.workspaceValue})}return n}pe(e){if(!e||e.length===0)return!1;let r=[...e].sort((n,o)=>n.fullKey.localeCompare(o.fullKey));return!e.every((n,o)=>n.fullKey===r[o].fullKey)}async B(e){if(!e||e.length===0)return[];let r=[];for(let n of e)await this.he(n)&&r.push(n);return r}async V(){let e=this.we();if(!e.length||!C.workspace.fs)return[];let r=new Map;for(let n of e){await this.G(n,r);let o=C.Uri.joinPath(n,".vscode");await this.G(o,r)}return Array.from(r.values())}async G(e,r){if(e)try{let n=await C.workspace.fs.readDirectory(e);for(let[o,a]of n){if(a!==C.FileType.File||!this.be(o))continue;let s=C.Uri.joinPath(e,o),l=s.fsPath||s.path;r.has(l)||r.set(l,s)}}catch(n){if(n?.code==="FileNotFound"||n?.code==="ENOENT")return;this._logger.warn(`Failed to scan Explorer Dates directory ${e.fsPath||e.path}`,n)}}we(){return(C.workspace.workspaceFolders||[]).map(e=>e?.uri).filter(Boolean)}be(e=""){return Qn.test(e)}async le(e,r,n){let o=Array.isArray(n)?n:Ht;if(o.length)for(let a of o){let s=e.inspect(a);if(!s)continue;let l=s.globalValue!==void 0,i=s.workspaceValue!==void 0,c=s.workspaceFolderValue!==void 0;l&&!i&&!c&&(await e.update(a,s.globalValue,C.ConfigurationTarget.Workspace),await e.update(a,void 0,C.ConfigurationTarget.Global),r.movedToWorkspace.push(`${U}${a}`),r.changed=!0,this._logger.info(`Moved ${U}${a} from user settings to workspace settings.`))}}async ce(e,r,n,o=!1){let a=Array.isArray(r)&&r.length>0?r:this.K(e,this.F());if(a.length===0)return;let s=[...a].sort((i,c)=>i.fullKey.localeCompare(c.fullKey));if(!(!o&&a.every((i,c)=>i.fullKey===s[c].fullKey))){for(let i of a)await e.update(i.shortKey,void 0,C.ConfigurationTarget.Workspace);for(let i of s)await e.update(i.shortKey,i.value,C.ConfigurationTarget.Workspace);n.reorderedWorkspace=!0,n.changed=!0,this._logger.info("Reordered Explorer Dates workspace settings alphabetically.")}}async ue(e,r){let n=Array.isArray(r)?r:await this.B(await this.V());if(n.length)for(let o of n)await this.ye(o)&&(e.sortedFiles.push(this.C(o)),e.changed=!0)}async ye(e){try{let r=await C.workspace.fs.readFile(e),n=Buffer.from(r).toString("utf8").trim();if(!n)return!1;let o=JSON.parse(n),a=this.S(o),s=JSON.stringify(a,null,2);return await C.workspace.fs.writeFile(e,Buffer.from(`${s} -`,"utf8")),this._logger.info(`Sorted Explorer Dates file: ${this.C(e)}`),!0}catch(r){return r?.code==="FileNotFound"||r?.code==="ENOENT"||this._logger.warn(`Failed to sort Explorer Dates file ${this.C(e)}`,r),!1}}async he(e){try{let r=await C.workspace.fs.readFile(e),n=Buffer.from(r).toString("utf8").trim();if(!n)return!1;let o=JSON.parse(n),a=JSON.stringify(o,null,2),s=JSON.stringify(this.S(o),null,2);return a!==s}catch(r){return r?.code==="FileNotFound"||r?.code==="ENOENT"||this._logger.warn(`Failed to inspect Explorer Dates file ${this.C(e)}`,r),!1}}S(e){return Array.isArray(e)?e.map(r=>this.S(r)):e&&typeof e=="object"?Object.keys(e).sort((r,n)=>r.localeCompare(n)).reduce((r,n)=>(r[n]=this.S(e[n]),r),{}):e}F(){let e=this.z?.extension?.packageJSON?.contributes?.configuration?.properties||{};return Object.keys(e).filter(r=>r.startsWith(U))}me(e){return e.startsWith(U)?e.substring(U.length):e}fe(e){return eo.has(e)}C(e){return e?.fsPath||e?.path||String(e)}};Kt.exports={SettingsOrganizer:Le}});var Yt=f((ra,jt)=>{var d=require("vscode"),{getSettingsCoordinator:to}=te(),{SettingsOrganizer:ro}=Oe(),{getLocalization:no}=J(),{requireWorkspaceTrust:$}=G(),y=no(),me=to(),Vt="explorerDates.resetToDefaults",Gt=Symbol.for("explorerDates.resetToDefaults.registered");function oo(){return!!globalThis[Gt]}function Bt(){globalThis[Gt]=!0}async function ao({context:t,logger:e,getSettingsMigrationManager:r}){let n=[];n.push(d.commands.registerCommand("explorerDates.migrateSettings",async()=>{try{$("settings migration");let a=await r();if(!a){d.window.showWarningMessage(y.getString("migrateChecking"));return}d.window.showInformationMessage(y.getString("migrateChecking"));let s=await a.migrateAllSettings(t),l=await a.autoOrganizeSettingsIfNeeded(t,{trigger:"manual-migrate",silent:!0}),i=[];s.length>0&&i.push(`${s.length} migration${s.length===1?"":"s"}`),l?.changed&&i.push("settings reorganized"),i.length===0?d.window.showInformationMessage(y.getString("migrateAllUpToDate")):d.window.showInformationMessage(y.getString("migrateApplied",i.join(" + "))),e.info("Manual settings migration completed",{results:s,organizationSummary:l})}catch(a){e.error("Failed to run settings migration",a),d.window.showErrorMessage(`Failed to migrate settings: ${a.message}`)}})),n.push(d.commands.registerCommand("explorerDates.organizeSettings",async()=>{try{$("settings organization");let s=await new ro(t).organize(),l=s.movedToWorkspace.length,i=s.sortedFiles.length,c=[s.reorderedWorkspace?"workspace settings reordered":null,l?`${l} setting(s) moved to workspace scope`:null,i?`${i} explorer-dates file(s) sorted`:null].filter(Boolean).join(" \u2022 ")||"No changes were necessary.";d.window.showInformationMessage(y.getString("organizeSettingsResult",c)),e.info("Organize settings command executed",s)}catch(a){e.error("Failed to organize Explorer Dates settings",a),d.window.showErrorMessage(`Failed to organize settings: ${a.message}`)}})),n.push(d.commands.registerCommand("explorerDates.validateConfiguration",async()=>{try{let a=await r();if(!a){d.window.showWarningMessage("Settings validation system unavailable.");return}let s=await a.validateConfiguration();if(s.length===0)d.window.showInformationMessage("\u2705 Configuration is valid - no issues found!");else{let l=`Found ${s.length} configuration issue(s). Would you like to see details?`;await d.window.showWarningMessage(l,"Show Details","Dismiss")==="Show Details"&&await so(s)}e.info("Configuration validation completed",{issuesFound:s.length,issues:s})}catch(a){e.error("Failed to validate configuration",a),d.window.showErrorMessage(`Failed to validate configuration: ${a.message}`)}})),n.push(d.commands.registerCommand("explorerDates.cleanLegacySettings",async()=>{try{$("legacy settings cleanup");let a=await r();if(!a){d.window.showWarningMessage(y.getString("migrateChecking"));return}let s=await a.cleanupDeprecatedSettings();s?d.window.showInformationMessage(y.getString("cleanupSuccess")):d.window.showInformationMessage(y.getString("cleanupNoDeprecated")),e.info("Legacy settings cleanup completed",{cleaned:s})}catch(a){e.error("Failed to clean legacy settings",a),d.window.showErrorMessage(`Failed to clean legacy settings: ${a.message}`)}})),n.push(d.commands.registerCommand("explorerDates.showMigrationHistory",async()=>{try{let a=await r();if(!a){d.window.showWarningMessage(y.getString("migrateChecking"));return}let s=a.getMigrationHistory(t);if(s.length===0){d.window.showInformationMessage(y.getString("showMigrationHistoryNoHistory"));return}await io(s),e.info("Displayed migration history",{historyLength:s.length})}catch(a){e.error("Failed to show migration history",a),d.window.showErrorMessage(`Failed to show migration history: ${a.message}`)}}));async function o(a={}){try{$("clear telemetry data");let s=a&&a.force===!0,l=null;if(!s&&(l=await d.window.showWarningMessage(y.getString("clearTelemetryPrompt"),{modal:!0},y.getString("clearTelemetryConfirm"),y.getString("clearTelemetryCancel")),l!==y.getString("clearTelemetryConfirm")))return;t?.globalState&&typeof t.globalState.update=="function"&&await t.globalState.update("explorerDates.telemetryEvents",[]),d.window.showInformationMessage(y.getString("clearTelemetrySuccess")),e.info("Cleared telemetry events from globalState")}catch(s){e.error("Failed to clear telemetry data",s),d.window.showErrorMessage(`Failed to clear telemetry data: ${s.message}`)}}return n.push(d.commands.registerCommand("explorerDates.clearTelemetryData",o)),n.push(d.commands.registerCommand("explorerDates.clearTelemetryData.force",async()=>{await o({force:!0})})),n.push(d.commands.registerCommand("explorerDates.applyCustomColors",async()=>{try{let a=await d.window.showQuickPick([{label:"Copy to Clipboard",description:"Copy color configuration to clipboard"},{label:"Open Settings",description:"Open VS Code settings to workbench.colorCustomizations"},{label:"Apply Default Colors",description:"Apply default Explorer Dates colors"}],{placeHolder:"How would you like to set up custom colors?",ignoreFocusOut:!0});if(!a)return;let s={"explorerDates.customColor.veryRecent":"#00ff00","explorerDates.customColor.recent":"#ffff00","explorerDates.customColor.old":"#ff0000"};switch(a.label){case"Copy to Clipboard":let l=JSON.stringify({"workbench.colorCustomizations":s},null,2);await d.env.clipboard.writeText(l),d.window.showInformationMessage("Color configuration copied to clipboard!");break;case"Open Settings":await d.commands.executeCommand("workbench.action.openSettings","workbench.colorCustomizations");break;case"Apply Default Colors":$("apply custom colors");let u={...d.workspace.getConfiguration("workbench").get("colorCustomizations",{}),...s};await me.updateSetting("workbench.colorCustomizations",u,{scope:"user",reason:"custom-colors-command"}),await me.updateSetting("colorScheme","custom",{scope:"user",reason:"custom-colors-command"}),d.window.showInformationMessage("\u2705 Custom colors applied successfully!");break}e.info("Custom colors command executed",{action:a.label})}catch(a){e.error("Failed to apply custom colors",a),d.window.showErrorMessage(`Failed to apply custom colors: ${a.message}`)}})),await lo({context:t,logger:e,subscriptions:n}),n.push(d.commands.registerCommand("explorerDates.exportConfiguration",async()=>{try{let a=d.workspace.getConfiguration("explorerDates"),s={},i=t.extension.packageJSON?.contributes?.configuration?.properties||{};for(let g of Object.keys(i))if(g.startsWith("explorerDates.")){let h=g.replace("explorerDates.",""),E=a.get(h);E!==void 0&&(s[g]=E)}let c=JSON.stringify(s,null,2),u=await d.window.showQuickPick([{label:"Copy to Clipboard",description:"Copy configuration to clipboard"},{label:"Save to File",description:"Save configuration to a JSON file"}],{placeHolder:"How would you like to export the configuration?"});if(!u)return;switch(u.label){case"Copy to Clipboard":await d.env.clipboard.writeText(c),d.window.showInformationMessage("Configuration copied to clipboard!");break;case"Save to File":$("save configuration to file");let g=await d.window.showSaveDialog({defaultUri:d.Uri.file("explorer-dates-config.json"),filters:{JSON:["json"]}});g&&(await d.workspace.fs.writeFile(g,Buffer.from(c,"utf8")),d.window.showInformationMessage(`Configuration saved to ${g.fsPath}`));break}e.info("Configuration exported",{action:u.label,settingsCount:Object.keys(s).length})}catch(a){e.error("Failed to export configuration",a),d.window.showErrorMessage(`Failed to export configuration: ${a.message}`)}})),n}async function so(t){let e=d.window.createWebviewPanel("explorerDatesConfigIssues","Explorer Dates - Configuration Issues",d.ViewColumn.One,{enableScripts:!1}),r=t.map(n=>` +${P}`,{modal:!0})}),r.info(`File history requested for: ${i.fsPath||i.path}`)}catch(i){r.error("Failed to show file history",i),vscode.window.showErrorMessage(`Failed to show file history: ${i.message}`)}})),o.push(vscode.commands.registerCommand("explorerDates.compareWithPrevious",async l=>{try{if(isWeb){vscode.window.showInformationMessage("Git comparisons are unavailable on VS Code for Web.");return}let i=l;if(!i&&vscode.window.activeTextEditor&&(i=vscode.window.activeTextEditor.document.uri),!i){vscode.window.showWarningMessage("No file selected");return}if(!vscode.workspace.getWorkspaceFolder(i)){vscode.window.showWarningMessage("File is not in a workspace");return}await vscode.commands.executeCommand("git.openChange",i),r.info(`Git diff opened for: ${i.fsPath||i.path}`)}catch(i){r.error("Failed to compare with previous version",i),vscode.window.showErrorMessage(`Failed to compare with previous version: ${i.message}`)}})),o.forEach(l=>t.subscriptions.push(l))}module.exports={registerCoreCommands}});var zt=f((ta,qt)=>{var F=require("vscode");function Jn({context:t,logger:e,getOnboardingManager:r}){let n=[];n.push(F.commands.registerCommand("explorerDates.showFeatureTour",async()=>{try{let o=await r();if(!o){F.window.showWarningMessage("Onboarding system unavailable.");return}await o.showFeatureTour(),e.info("Feature tour opened")}catch(o){e.error("Failed to show feature tour",o),F.window.showErrorMessage(`Failed to show feature tour: ${o.message}`)}})),n.push(F.commands.registerCommand("explorerDates.showQuickSetup",async()=>{try{let o=await r();if(!o){F.window.showWarningMessage("Onboarding system unavailable.");return}await o.showQuickSetupWizard(),e.info("Quick setup wizard opened")}catch(o){e.error("Failed to show quick setup wizard",o),F.window.showErrorMessage(`Failed to show quick setup wizard: ${o.message}`)}})),n.push(F.commands.registerCommand("explorerDates.showWhatsNew",async()=>{try{let o=await r();if(!o){F.window.showWarningMessage("Onboarding system unavailable.");return}let a=t.extension.packageJSON.version;await o.showWhatsNew(a),e.info("What's new panel opened")}catch(o){e.error("Failed to show what's new",o),F.window.showErrorMessage(`Failed to show what's new: ${o.message}`)}})),n.forEach(o=>t.subscriptions.push(o))}qt.exports={registerOnboardingCommands:Jn}});var re=f((exports,module)=>{var{getLogger}=k(),env=typeof process<"u"&&process.env?process.env:{};function createFallbackVscodeMinimal(){return{workspace:{workspaceFolders:[],getConfiguration:()=>({get:()=>{},async update(){},inspect:()=>({defaultValue:void 0,globalValue:void 0,workspaceValue:void 0,workspaceFolderValue:void 0})})},ConfigurationTarget:{Global:1,Workspace:2,WorkspaceFolder:3}}}function resolveVscodeMinimal(){try{return require("vscode")}catch{return createFallbackVscodeMinimal()}}var MinimalSettingsCoordinator=class{constructor(e={}){this.oe=e.defaultSection||"explorerDates",this.v=new Map,this.q=new Map,this.Ne=Number(env.EXPLORER_DATES_LOCK_WAIT_WARN_MS||1e3),this._logger=getLogger()}ae(e,r){let o=(this.v.get(e)||Promise.resolve()).then(()=>r()),a=o.catch(()=>{});return this.v.set(e,a),o.finally(()=>{this.v.get(e)===a&&this.v.delete(e)}),o}R(e,r){return resolveVscodeMinimal().workspace.getConfiguration(e||void 0,r)}h(e,r){let n=r||this.oe;return n?e.startsWith(`${n}.`)?{section:n,key:e.slice(n.length+1),fullKey:e}:e.includes(".")?{section:void 0,key:e,fullKey:e}:{section:n,key:e,fullKey:`${n}.${e}`}:{section:void 0,key:e,fullKey:e}}async updateSetting(e,r,n={}){return this.ae(this.h(e,n.section).fullKey,async()=>{let o=this.h(e,n.section),a=this.R(o.section,n.resource);try{let s=this.se(n.scope,n.resource);return await a.update(o.key,r,s),{key:o.fullKey,updated:!0}}catch(s){try{this._logger.warn(`Configuration update failed for ${o.fullKey}: ${s&&s.message}`)}catch{}return{key:o.fullKey,updated:!1,error:s}}})}async applySettings(e,r={}){let n=Array.isArray(e)?e:Object.entries(e).map(([s,l])=>({key:s,value:l})),o=[];for(let s of n)try{o.push(await this.updateSetting(s.key,s.value,r))}catch(l){o.push({key:this.h(s.key,r.section).fullKey,updated:!1,error:l})}let a=o.filter(s=>s&&s.error);if(a.length>0){let s=a.map(i=>`${i.key}: ${i.error&&i.error.message?i.error.message:String(i.error)}`),l=new Error(`Failed to apply ${a.length} setting(s): ${s.join("; ")}`);throw l.details=a,l}return o}se(e,r){return e&&e!=="auto"?this.ie(e)||resolveVscodeMinimal().ConfigurationTarget.Workspace:r?resolveVscodeMinimal().ConfigurationTarget.WorkspaceFolder:resolveVscodeMinimal().workspace.workspaceFolders&&resolveVscodeMinimal().workspace.workspaceFolders.length>0?resolveVscodeMinimal().ConfigurationTarget.Workspace:resolveVscodeMinimal().ConfigurationTarget.Global}ie(e){switch(e){case"user":return resolveVscodeMinimal().ConfigurationTarget.Global;case"workspace":return resolveVscodeMinimal().ConfigurationTarget.Workspace;case"workspaceFolder":return resolveVscodeMinimal().ConfigurationTarget.WorkspaceFolder;default:return}}getValue(e,r={}){let{section:n,resource:o}=r||{},a=this.h(e,n);return this.R(a.section,o).get(a.key)}inspect(e,r={}){let{section:n,resource:o}=r||{},a=this.h(e,n);return this.R(a.section,o).inspect(a.key)}async clearSetting(e,r={}){return this.updateSetting(e,void 0,r)}getLockWaitStats(){let e={};for(let[r,n]of this.q.entries())e[r]={...n};return e}resetLockWaitStats(){this.q.clear()}},cachedCoordinator=null;function getSettingsCoordinator(options){if(!cachedCoordinator||options&&options.forceNew){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let t=null;try{t=dynamicRequire("../chunks/settings-coordinator-impl-chunk")}catch{}try{t||(t=dynamicRequire("../chunks/settingsCoordinator-impl-chunk"))}catch{}if(t&&typeof t.createSettingsCoordinatorImpl=="function")return cachedCoordinator=t.createSettingsCoordinatorImpl(options),cachedCoordinator}}catch{}try{let{WEB_CHUNK_GLOBAL_KEY:t,LEGACY_WEB_CHUNK_GLOBAL_KEY:e}=N(),r=typeof globalThis<"u"&&(globalThis[t]||globalThis[e])||null;if(r&&r.settingsCoordinatorImpl&&typeof r.settingsCoordinatorImpl.createSettingsCoordinatorImpl=="function")return cachedCoordinator=r.settingsCoordinatorImpl.createSettingsCoordinatorImpl(options),cachedCoordinator}catch{}cachedCoordinator=new MinimalSettingsCoordinator(options)}return cachedCoordinator}module.exports={getSettingsCoordinator,MinimalSettingsCoordinator}});var Oe=f((ra,Kt)=>{var C=require("vscode"),{getLogger:Qn}=k(),U="explorerDates.",Ht=["performanceMode","featureLevel","smartFileWatching","smartWatcherMaxPatterns","smartWatcherExtensions","enableSmartWatcherFallbacks","enableOnboardingSystem","enableExportReporting","enableAnalysisCommands","enableAdvancedCache","enableWorkspaceTemplates","enableWorkspaceIntelligence","enableExtensionApi","enableIncrementalWorkers","enableProgressiveAnalysis"],eo=/^\.?explorer-dates.*\.json$/i,to=new Set([`${U}customColors`,`${U}enableReporting`]),Le=class{constructor(e){this.z=e,this._logger=Qn()}async getOrganizationPlan(){let e=C.workspace.getConfiguration("explorerDates"),r=this.F();return this.H(e,r)}async organize(e={}){let r=C.workspace.getConfiguration("explorerDates"),n=this.F(),o=e.plan||await this.H(r,n),a={changed:!1,movedToWorkspace:[],reorderedWorkspace:!1,sortedFiles:[]};return!o.needsWork&&!e.force||(await this.le(r,a,o.keysToMove),await this.ce(r,o.workspaceEntries,a,o.workspaceOutOfOrder),await this.ue(a,o.filesToSort)),a}async H(e,r){let n=this.ge(e),o=this.K(e,r),a=this.pe(o),s=await this.V(),l=await this.B(s);return{keysToMove:n,workspaceEntries:o,workspaceOutOfOrder:a,filesToSort:l,needsWork:n.length>0||a||l.length>0}}ge(e){let r=[];for(let n of Ht){let o=e.inspect(n);if(!o)continue;let a=o.globalValue!==void 0,s=o.workspaceValue!==void 0,l=o.workspaceFolderValue!==void 0;a&&!s&&!l&&r.push(n)}return r}K(e,r){let n=[];for(let o of r){if(this.fe(o))continue;let a=this.me(o),s=e.inspect(a);s&&s.workspaceValue!==void 0&&n.push({fullKey:o,shortKey:a,value:s.workspaceValue})}return n}pe(e){if(!e||e.length===0)return!1;let r=[...e].sort((n,o)=>n.fullKey.localeCompare(o.fullKey));return!e.every((n,o)=>n.fullKey===r[o].fullKey)}async B(e){if(!e||e.length===0)return[];let r=[];for(let n of e)await this.he(n)&&r.push(n);return r}async V(){let e=this.we();if(!e.length||!C.workspace.fs)return[];let r=new Map;for(let n of e){await this.G(n,r);let o=C.Uri.joinPath(n,".vscode");await this.G(o,r)}return Array.from(r.values())}async G(e,r){if(e)try{let n=await C.workspace.fs.readDirectory(e);for(let[o,a]of n){if(a!==C.FileType.File||!this.be(o))continue;let s=C.Uri.joinPath(e,o),l=s.fsPath||s.path;r.has(l)||r.set(l,s)}}catch(n){if(n?.code==="FileNotFound"||n?.code==="ENOENT")return;this._logger.warn(`Failed to scan Explorer Dates directory ${e.fsPath||e.path}`,n)}}we(){return(C.workspace.workspaceFolders||[]).map(e=>e?.uri).filter(Boolean)}be(e=""){return eo.test(e)}async le(e,r,n){let o=Array.isArray(n)?n:Ht;if(o.length)for(let a of o){let s=e.inspect(a);if(!s)continue;let l=s.globalValue!==void 0,i=s.workspaceValue!==void 0,c=s.workspaceFolderValue!==void 0;l&&!i&&!c&&(await e.update(a,s.globalValue,C.ConfigurationTarget.Workspace),await e.update(a,void 0,C.ConfigurationTarget.Global),r.movedToWorkspace.push(`${U}${a}`),r.changed=!0,this._logger.info(`Moved ${U}${a} from user settings to workspace settings.`))}}async ce(e,r,n,o=!1){let a=Array.isArray(r)&&r.length>0?r:this.K(e,this.F());if(a.length===0)return;let s=[...a].sort((i,c)=>i.fullKey.localeCompare(c.fullKey));if(!(!o&&a.every((i,c)=>i.fullKey===s[c].fullKey))){for(let i of a)await e.update(i.shortKey,void 0,C.ConfigurationTarget.Workspace);for(let i of s)await e.update(i.shortKey,i.value,C.ConfigurationTarget.Workspace);n.reorderedWorkspace=!0,n.changed=!0,this._logger.info("Reordered Explorer Dates workspace settings alphabetically.")}}async ue(e,r){let n=Array.isArray(r)?r:await this.B(await this.V());if(n.length)for(let o of n)await this.ye(o)&&(e.sortedFiles.push(this.C(o)),e.changed=!0)}async ye(e){try{let r=await C.workspace.fs.readFile(e),n=Buffer.from(r).toString("utf8").trim();if(!n)return!1;let o=JSON.parse(n),a=this.S(o),s=JSON.stringify(a,null,2);return await C.workspace.fs.writeFile(e,Buffer.from(`${s} +`,"utf8")),this._logger.info(`Sorted Explorer Dates file: ${this.C(e)}`),!0}catch(r){return r?.code==="FileNotFound"||r?.code==="ENOENT"||this._logger.warn(`Failed to sort Explorer Dates file ${this.C(e)}`,r),!1}}async he(e){try{let r=await C.workspace.fs.readFile(e),n=Buffer.from(r).toString("utf8").trim();if(!n)return!1;let o=JSON.parse(n),a=JSON.stringify(o,null,2),s=JSON.stringify(this.S(o),null,2);return a!==s}catch(r){return r?.code==="FileNotFound"||r?.code==="ENOENT"||this._logger.warn(`Failed to inspect Explorer Dates file ${this.C(e)}`,r),!1}}S(e){return Array.isArray(e)?e.map(r=>this.S(r)):e&&typeof e=="object"?Object.keys(e).sort((r,n)=>r.localeCompare(n)).reduce((r,n)=>(r[n]=this.S(e[n]),r),{}):e}F(){let e=this.z?.extension?.packageJSON?.contributes?.configuration?.properties||{};return Object.keys(e).filter(r=>r.startsWith(U))}me(e){return e.startsWith(U)?e.substring(U.length):e}fe(e){return to.has(e)}C(e){return e?.fsPath||e?.path||String(e)}};Kt.exports={SettingsOrganizer:Le}});var Yt=f((na,jt)=>{var d=require("vscode"),{getSettingsCoordinator:ro}=re(),{SettingsOrganizer:no}=Oe(),{getLocalization:oo}=Q(),{requireWorkspaceTrust:$}=j(),y=oo(),me=ro(),Vt="explorerDates.resetToDefaults",Gt=Symbol.for("explorerDates.resetToDefaults.registered");function ao(){return!!globalThis[Gt]}function Bt(){globalThis[Gt]=!0}async function so({context:t,logger:e,getSettingsMigrationManager:r}){let n=[];n.push(d.commands.registerCommand("explorerDates.migrateSettings",async()=>{try{$("settings migration");let a=await r();if(!a){d.window.showWarningMessage(y.getString("migrateChecking"));return}d.window.showInformationMessage(y.getString("migrateChecking"));let s=await a.migrateAllSettings(t),l=await a.autoOrganizeSettingsIfNeeded(t,{trigger:"manual-migrate",silent:!0}),i=[];s.length>0&&i.push(`${s.length} migration${s.length===1?"":"s"}`),l?.changed&&i.push("settings reorganized"),i.length===0?d.window.showInformationMessage(y.getString("migrateAllUpToDate")):d.window.showInformationMessage(y.getString("migrateApplied",i.join(" + "))),e.info("Manual settings migration completed",{results:s,organizationSummary:l})}catch(a){e.error("Failed to run settings migration",a),d.window.showErrorMessage(`Failed to migrate settings: ${a.message}`)}})),n.push(d.commands.registerCommand("explorerDates.organizeSettings",async()=>{try{$("settings organization");let s=await new no(t).organize(),l=s.movedToWorkspace.length,i=s.sortedFiles.length,c=[s.reorderedWorkspace?"workspace settings reordered":null,l?`${l} setting(s) moved to workspace scope`:null,i?`${i} explorer-dates file(s) sorted`:null].filter(Boolean).join(" \u2022 ")||"No changes were necessary.";d.window.showInformationMessage(y.getString("organizeSettingsResult",c)),e.info("Organize settings command executed",s)}catch(a){e.error("Failed to organize Explorer Dates settings",a),d.window.showErrorMessage(`Failed to organize settings: ${a.message}`)}})),n.push(d.commands.registerCommand("explorerDates.validateConfiguration",async()=>{try{let a=await r();if(!a){d.window.showWarningMessage("Settings validation system unavailable.");return}let s=await a.validateConfiguration();if(s.length===0)d.window.showInformationMessage("\u2705 Configuration is valid - no issues found!");else{let l=`Found ${s.length} configuration issue(s). Would you like to see details?`;await d.window.showWarningMessage(l,"Show Details","Dismiss")==="Show Details"&&await io(s)}e.info("Configuration validation completed",{issuesFound:s.length,issues:s})}catch(a){e.error("Failed to validate configuration",a),d.window.showErrorMessage(`Failed to validate configuration: ${a.message}`)}})),n.push(d.commands.registerCommand("explorerDates.cleanLegacySettings",async()=>{try{$("legacy settings cleanup");let a=await r();if(!a){d.window.showWarningMessage(y.getString("migrateChecking"));return}let s=await a.cleanupDeprecatedSettings();s?d.window.showInformationMessage(y.getString("cleanupSuccess")):d.window.showInformationMessage(y.getString("cleanupNoDeprecated")),e.info("Legacy settings cleanup completed",{cleaned:s})}catch(a){e.error("Failed to clean legacy settings",a),d.window.showErrorMessage(`Failed to clean legacy settings: ${a.message}`)}})),n.push(d.commands.registerCommand("explorerDates.showMigrationHistory",async()=>{try{let a=await r();if(!a){d.window.showWarningMessage(y.getString("migrateChecking"));return}let s=a.getMigrationHistory(t);if(s.length===0){d.window.showInformationMessage(y.getString("showMigrationHistoryNoHistory"));return}await lo(s),e.info("Displayed migration history",{historyLength:s.length})}catch(a){e.error("Failed to show migration history",a),d.window.showErrorMessage(`Failed to show migration history: ${a.message}`)}}));async function o(a={}){try{$("clear telemetry data");let s=a&&a.force===!0,l=null;if(!s&&(l=await d.window.showWarningMessage(y.getString("clearTelemetryPrompt"),{modal:!0},y.getString("clearTelemetryConfirm"),y.getString("clearTelemetryCancel")),l!==y.getString("clearTelemetryConfirm")))return;t?.globalState&&typeof t.globalState.update=="function"&&await t.globalState.update("explorerDates.telemetryEvents",[]),d.window.showInformationMessage(y.getString("clearTelemetrySuccess")),e.info("Cleared telemetry events from globalState")}catch(s){e.error("Failed to clear telemetry data",s),d.window.showErrorMessage(`Failed to clear telemetry data: ${s.message}`)}}return n.push(d.commands.registerCommand("explorerDates.clearTelemetryData",o)),n.push(d.commands.registerCommand("explorerDates.clearTelemetryData.force",async()=>{await o({force:!0})})),n.push(d.commands.registerCommand("explorerDates.applyCustomColors",async()=>{try{let a=await d.window.showQuickPick([{label:"Copy to Clipboard",description:"Copy color configuration to clipboard"},{label:"Open Settings",description:"Open VS Code settings to workbench.colorCustomizations"},{label:"Apply Default Colors",description:"Apply default Explorer Dates colors"}],{placeHolder:"How would you like to set up custom colors?",ignoreFocusOut:!0});if(!a)return;let s={"explorerDates.customColor.veryRecent":"#00ff00","explorerDates.customColor.recent":"#ffff00","explorerDates.customColor.old":"#ff0000"};switch(a.label){case"Copy to Clipboard":let l=JSON.stringify({"workbench.colorCustomizations":s},null,2);await d.env.clipboard.writeText(l),d.window.showInformationMessage("Color configuration copied to clipboard!");break;case"Open Settings":await d.commands.executeCommand("workbench.action.openSettings","workbench.colorCustomizations");break;case"Apply Default Colors":$("apply custom colors");let u={...d.workspace.getConfiguration("workbench").get("colorCustomizations",{}),...s};await me.updateSetting("workbench.colorCustomizations",u,{scope:"user",reason:"custom-colors-command"}),await me.updateSetting("colorScheme","custom",{scope:"user",reason:"custom-colors-command"}),d.window.showInformationMessage("\u2705 Custom colors applied successfully!");break}e.info("Custom colors command executed",{action:a.label})}catch(a){e.error("Failed to apply custom colors",a),d.window.showErrorMessage(`Failed to apply custom colors: ${a.message}`)}})),await co({context:t,logger:e,subscriptions:n}),n.push(d.commands.registerCommand("explorerDates.exportConfiguration",async()=>{try{let a=d.workspace.getConfiguration("explorerDates"),s={},i=t.extension.packageJSON?.contributes?.configuration?.properties||{};for(let g of Object.keys(i))if(g.startsWith("explorerDates.")){let h=g.replace("explorerDates.",""),E=a.get(h);E!==void 0&&(s[g]=E)}let c=JSON.stringify(s,null,2),u=await d.window.showQuickPick([{label:"Copy to Clipboard",description:"Copy configuration to clipboard"},{label:"Save to File",description:"Save configuration to a JSON file"}],{placeHolder:"How would you like to export the configuration?"});if(!u)return;switch(u.label){case"Copy to Clipboard":await d.env.clipboard.writeText(c),d.window.showInformationMessage("Configuration copied to clipboard!");break;case"Save to File":$("save configuration to file");let g=await d.window.showSaveDialog({defaultUri:d.Uri.file("explorer-dates-config.json"),filters:{JSON:["json"]}});g&&(await d.workspace.fs.writeFile(g,Buffer.from(c,"utf8")),d.window.showInformationMessage(`Configuration saved to ${g.fsPath}`));break}e.info("Configuration exported",{action:u.label,settingsCount:Object.keys(s).length})}catch(a){e.error("Failed to export configuration",a),d.window.showErrorMessage(`Failed to export configuration: ${a.message}`)}})),n}async function io(t){let e=d.window.createWebviewPanel("explorerDatesConfigIssues","Explorer Dates - Configuration Issues",d.ViewColumn.One,{enableScripts:!1}),r=t.map(n=>`

    ${n.setting}

    Current value: ${JSON.stringify(n.value)}

    @@ -53,7 +53,7 @@ ${P}`,{modal:!0})}),r.info(`File history requested for: ${i.fsPath||i.path}`)}ca

    To fix these issues: Open VS Code Settings and update the highlighted settings with valid values.

    - `}async function io(t){let e=d.window.createWebviewPanel("explorerDatesMigrationHistory","Explorer Dates - Migration History",d.ViewColumn.One,{enableScripts:!1}),r=t.slice().reverse().map((n,o)=>` + `}async function lo(t){let e=d.window.createWebviewPanel("explorerDatesMigrationHistory","Explorer Dates - Migration History",d.ViewColumn.One,{enableScripts:!1}),r=t.slice().reverse().map((n,o)=>`

    Migration #${t.length-o}

    Date: ${new Date(n.timestamp).toLocaleString()}

    @@ -82,7 +82,7 @@ ${P}`,{modal:!0})}),r.info(`File history requested for: ${i.fsPath||i.path}`)}ca ${r} - `}async function lo({context:t,logger:e,subscriptions:r}){if(oo()){e?.warn?.("Duplicate explorerDates.resetToDefaults registration skipped");return}let n;try{n=await d.commands.getCommands(!0)}catch(o){e?.warn?.("Unable to inspect VS Code command registry; proceeding with reset command registration",o)}if(Array.isArray(n)&&n.includes(Vt)){Bt(),e?.warn?.("Detected existing explorerDates.resetToDefaults handler; skipping duplicate registration");return}Bt(),r.push(d.commands.registerCommand(Vt,async()=>{try{if(await d.window.showWarningMessage(y.getString("resetConfirmation"),{modal:!0},y.getString("resetConfirm"),y.getString("resetCancel"))!==y.getString("resetConfirm"))return;$("reset settings to defaults");let s=t.extension.packageJSON?.contributes?.configuration?.properties||{},l=0;for(let i of Object.keys(s))if(i.startsWith("explorerDates.")){let c=i.replace("explorerDates.","");try{await me.clearSetting(c,{scope:"user",reason:"reset-to-defaults"}),await me.clearSetting(c,{scope:"workspace",reason:"reset-to-defaults"}),l++}catch(u){e.warn(`Failed to reset setting ${c}`,u)}}d.window.showInformationMessage(y.getString("resetSuccess",l)),e.info("Settings reset to defaults",{resetCount:l})}catch(o){e.error("Failed to reset settings to defaults",o),d.window.showErrorMessage(`Failed to reset settings: ${o.message}`)}}))}jt.exports={registerMigrationCommands:ao}});var Xt=f((exports,module)=>{var vscode=require("vscode"),{isWebEnvironment}=Q(),fs=null,path=null;try{let isWeb=isWebEnvironment()||typeof process<"u"&&!0;!isWeb&&typeof process<"u"&&process.versions?.node&&(fs=eval("require")("fs"),path=eval("require")("path"))}catch{fs=null,path=null}var textDecoder=typeof globalThis.TextDecoder=="function"?new globalThis.TextDecoder("utf-8"):new(require("util")).TextDecoder("utf-8"),TemplateStore=class{constructor(){this._=new Map,this.P=null}initialize(e){this.P=e?.extensionUri??null}async getTemplate(e){if(this._.has(e))return this._.get(e);let r=await this.Ee(e);return this._.set(e,r),r}async Ee(e){let r=`${e}.html`;if(this.P){let n=vscode.Uri.joinPath(this.P,"assets","templates",r),o=await vscode.workspace.fs.readFile(n);return textDecoder.decode(o)}if(fs&&path){let n=path.resolve(__dirname,"..","..","assets","templates",r);return await fs.promises.readFile(n,"utf8")}throw new Error(`TemplateStore: Unable to load template "${e}" (missing extension context)`)}},templateStore=new TemplateStore;module.exports={templateStore,initializeTemplateStore:t=>templateStore.initialize(t)}});var Qt=f((na,Jt)=>{var W=require("vscode"),{getLogger:co}=k(),{getSettingsCoordinator:uo}=te(),{SettingsOrganizer:go}=Oe(),{getLocalization:po}=J(),S=po(),Zt=typeof process<"u"&&process.env?process.env:{},Ne=class{constructor(){this._logger=co(),this.n=new Set,this.e=uo(),this.M=null,this.j=null}async migrateAllSettings(e){let r=[()=>this.migrateReportingSettings(),()=>this.migrateCustomColorSettings(),()=>this.validateFeatureFlags(),()=>this.cleanupDeprecatedSettings(e),()=>this.trackMigrationMetrics(e)],n=[];for(let o of r)try{let a=await o();a&&n.push(a)}catch(a){this._logger.error("Settings migration failed:",a)}if(n.length>0){this._logger.info("Settings migration completed",{migratedSettings:n});try{let o=e?.globalState?.get?e.globalState.get("explorerDates.lastMigrationNotificationShown"):null,a=Date.now(),s=1440*60*1e3;!o||a-new Date(o).getTime()>s?(await this.ve(n,e),e?.globalState?.update&&await e.globalState.update("explorerDates.lastMigrationNotificationShown",new Date().toISOString())):this._logger.info("Skipping migration notification - recently shown")}catch(o){this._logger.debug("Failed to persist migration notification timestamp",o?.message||o)}}return n}async migrateReportingSettings(){let e=this.e.inspect("enableReporting"),r=this.e.inspect("enableExportReporting"),n=!1;if(e?.globalValue!==void 0)try{r?.globalValue===void 0&&(await this.e.updateSetting("enableExportReporting",e.globalValue,{scope:"user",reason:"migrate-enableReporting-global"}),this.n.add("enableReporting\u2192enableExportReporting (Global)"),this._logger.info("Migrated global enableReporting to enableExportReporting",{oldValue:e.globalValue})),await this.e.clearSetting("enableReporting",{scope:"user",reason:"cleanup-migrated-enableReporting-global"}),n=!0}catch(o){this._logger.error("Failed to migrate global enableReporting setting",o)}if(e?.workspaceValue!==void 0)try{r?.workspaceValue===void 0&&(await this.e.updateSetting("enableExportReporting",e.workspaceValue,{scope:"workspace",reason:"migrate-enableReporting-workspace"}),this.n.add("enableReporting\u2192enableExportReporting (Workspace)"),this._logger.info("Migrated workspace enableReporting to enableExportReporting",{oldValue:e.workspaceValue})),await this.e.clearSetting("enableReporting",{scope:"workspace",reason:"cleanup-migrated-enableReporting-workspace"}),n=!0}catch(o){this._logger.error("Failed to migrate workspace enableReporting setting",o)}if(e?.workspaceFolderValue!==void 0)try{r?.workspaceFolderValue===void 0&&(await this.e.updateSetting("enableExportReporting",e.workspaceFolderValue,{scope:"workspaceFolder",reason:"migrate-enableReporting-folder"}),this.n.add("enableReporting\u2192enableExportReporting (WorkspaceFolder)"),this._logger.info("Migrated workspace folder enableReporting to enableExportReporting",{oldValue:e.workspaceFolderValue})),await this.e.clearSetting("enableReporting",{scope:"workspaceFolder",reason:"cleanup-migrated-enableReporting-folder"}),n=!0}catch(o){this._logger.error("Failed to migrate workspace folder enableReporting setting",o)}return n&&this.n.add("deprecatedSettings\u2192removed"),this.n.has("enableReporting\u2192enableExportReporting (Global)")||this.n.has("enableReporting\u2192enableExportReporting (Workspace)")||this.n.has("enableReporting\u2192enableExportReporting (WorkspaceFolder)")}async migrateCustomColorSettings(){let e=W.workspace.getConfiguration("explorerDates"),r=e.get("migrateLegacyCustomColorsOnStartup",!1),n=e.get("customColors");if(!n||typeof n!="object")return!1;if(!r)return this._logger.info("Skipping custom color migration (opt-in disabled)",{reason:"migrateLegacyCustomColorsOnStartup=false"}),!1;let o=this.e.getValue("workbench.colorCustomizations")||{};if(o["explorerDates.customColor.veryRecent"]!==void 0||o["explorerDates.customColor.recent"]!==void 0||o["explorerDates.customColor.old"]!==void 0)return!1;let s={...o,"explorerDates.customColor.veryRecent":n.veryRecent||"#00ff00","explorerDates.customColor.recent":n.recent||"#ffff00","explorerDates.customColor.old":n.old||"#ff0000"};try{await this.e.updateSetting("workbench.colorCustomizations",s,{scope:"user",reason:"migrate-customColors"}),this.n.add("customColors\u2192workbench.colorCustomizations");let l=e.inspect("customColors"),i=!1;return l?.globalValue!==void 0&&(await this.e.clearSetting("customColors",{scope:"user",reason:"cleanup-migrated-customColors-global"}),i=!0),l?.workspaceValue!==void 0&&(await this.e.clearSetting("customColors",{scope:"workspace",reason:"cleanup-migrated-customColors-workspace"}),i=!0),l?.workspaceFolderValue!==void 0&&(await this.e.clearSetting("customColors",{scope:"workspaceFolder",reason:"cleanup-migrated-customColors-folder"}),i=!0),i&&this.n.add("deprecatedSettings\u2192removed"),this._logger.info("Migrated custom colors to workbench.colorCustomizations",{oldColors:n,newColors:s}),!0}catch(l){return this._logger.error("Failed to migrate custom colors",l),!1}}async validateFeatureFlags(){let e={enableOnboardingSystem:{default:!0,type:"boolean"},enableExportReporting:{default:!0,type:"boolean"},enableAnalysisCommands:{default:!0,type:"boolean"},enableAdvancedCache:{default:!0,type:"boolean"},enableWorkspaceIntelligence:{default:!0,type:"boolean"},enableWorkspaceTemplates:{default:!0,type:"boolean"},enableExtensionApi:{default:!0,type:"boolean"},enableProgressiveAnalysis:{default:null,type:"boolean",allowNull:!0}},r=!1,n=[],o=[];for(let[a,s]of Object.entries(e)){let l=this.e.inspect(a),i=this.e.getValue(a),c=l?.globalValue!==void 0,u=l?.workspaceValue!==void 0;if(!c&&!u)o.push(a);else if(i!==void 0&&!(s.allowNull&&i===null?!0:typeof i===s.type))try{await this.e.updateSetting(a,s.default,{scope:"user",reason:`feature-flag-validation:${a}`}),n.push(`${a}: corrected type mismatch`),r=!0}catch(h){this._logger.error(`Failed to fix feature flag ${a}`,h)}}return r?(this.n.add("featureFlags\u2192validated"),this._logger.info("Validated feature flags",{fixes:n})):o.length>0&&this._logger.info("Feature flags relying on defaults (no migration needed)",{flags:o}),r}async cleanupDeprecatedSettings(e){let r=["customColors","enableReporting"];try{if(e?.globalState&&e.globalState.get("explorerDates.deprecatedSettingsAsked"))return this._logger.debug("Skipping deprecated settings prompt - already asked this workspace."),!1}catch(a){this._logger.debug("Failed to read deprecatedSettingsAsked flag",a?.message||a)}let n=[];for(let a of r){let s=this.e.inspect(a);(s?.globalValue!==void 0||s?.workspaceValue!==void 0||s?.workspaceFolderValue!==void 0)&&n.push(a)}if(n.length===0)return!1;await this.w(e,"migrationPromptShown",{type:"deprecatedSettings",found:n.length,settings:n});let o=await W.window.showInformationMessage(S.getString("deprecatedPrompt",n.length),{modal:!1},S.getString("deprecatedClean"),S.getString("deprecatedKeep"),S.getString("deprecatedAskLater"));await this.w(e,"migrationPromptResponded",{type:"deprecatedSettings",action:o});try{e?.globalState&&e.globalState.update&&await e.globalState.update("explorerDates.deprecatedSettingsAsked",new Date().toISOString())}catch(a){this._logger.debug("Failed to persist deprecatedSettingsAsked flag",a?.message||a)}if(o===S.getString("deprecatedClean")){for(let a of n)try{await this.e.clearSetting(a,{scope:"user",reason:"cleanup-deprecated"}),await this.e.clearSetting(a,{scope:"workspace",reason:"cleanup-deprecated"}),await this.e.clearSetting(a,{scope:"workspaceFolder",reason:"cleanup-deprecated"}),this._logger.info(`Removed deprecated setting: ${a}`)}catch(s){this._logger.error(`Failed to remove deprecated setting ${a}`,s)}return this.n.add("deprecatedSettings\u2192removed"),!0}return!1}async w(e,r,n){try{let o=this.e&&typeof this.e.getValue=="function"?this.e.getValue("enableTelemetry"):!1;if(Zt.EXPLORER_DATES_TELEMETRY!=="1"&&!o||!e?.globalState?.update||!e?.globalState?.get)return;let a=e.globalState.get("explorerDates.telemetryEvents",[]),s=Zt.EXPLORER_DATES_TELEMETRY==="1"?"env":o?"config":"unknown",l=e?.extension?.packageJSON?.version||null,i={timestamp:new Date().toISOString(),event:r,payload:n,source:s,extensionVersion:l};a.push(i);let c=100;a.length>c&&a.splice(0,a.length-c),await e.globalState.update("explorerDates.telemetryEvents",a),this._logger.debug("Telemetry emitted",i)}catch(o){this._logger.debug("Failed to emit telemetry event",o?.message||o)}}async trackMigrationMetrics(e){if(this.n.size===0)return!1;let r=e.globalState.get("explorerDates.migrationHistory",[]),n={timestamp:new Date().toISOString(),extensionVersion:e.extension.packageJSON.version,migratedSettings:Array.from(this.n)};return r.push(n),r.length>5&&r.splice(0,r.length-5),await e.globalState.update("explorerDates.migrationHistory",r),this._logger.info("Recorded migration metrics",n),await this.w(e,"migrationMetricsRecorded",{record:n}),!0}async autoOrganizeSettingsIfNeeded(e,r={}){let n=this.Ce(e);if(!n)return null;try{let o=await n.getOrganizationPlan();if(!o?.needsWork)return this._logger.debug("Auto organization skipped - no Explorer Dates settings to tidy."),null;let a=await n.organize({plan:o});if(a?.changed){if(!r.silent){let s=[];a.movedToWorkspace.length&&s.push(`${a.movedToWorkspace.length} moved to workspace`),a.reorderedWorkspace&&s.push("workspace keys sorted"),a.sortedFiles.length&&s.push(`${a.sortedFiles.length} file(s) tidied`);let l=s.length?` (${s.join(" \u2022 ")})`:"";W.window.showInformationMessage(S.getString("organizeSettingsResult",l))}this._logger.info("Explorer Dates settings auto-organized",{trigger:r.trigger||"unknown",summary:a})}return a}catch(o){return this._logger.warn("Automatic Explorer Dates settings organization failed",o),null}}Ce(e){return e?((!this.M||this.j!==e)&&(this.M=new go(e),this.j=e),this.M):(this._logger.debug("Settings organizer unavailable - missing extension context."),null)}async ve(e,r){let n=e.length;await this.w(r,"migrationPromptShown",{type:"migrationNotification",count:n,details:e});let o=await W.window.showInformationMessage(S.getString("migrationNotificationMessage",n),{modal:!1},S.getString("migrationViewChanges"),S.getString("migrationOpenSettings"));switch(await this.w(r,"migrationPromptResponded",{type:"migrationNotification",action:o}),o){case S.getString("migrationViewChanges"):await this.Se();break;case S.getString("migrationOpenSettings"):await W.commands.executeCommand("workbench.action.openSettings","explorerDates");break}}async Se(){let e=W.window.createWebviewPanel("explorerDatesMigration",S.getString("migrationDetailsTitle"),W.ViewColumn.One,{enableScripts:!1}),r=Array.from(this.n).map(n=>`
  • ${n}
  • `).join("");e.webview.html=` + `}async function co({context:t,logger:e,subscriptions:r}){if(ao()){e?.warn?.("Duplicate explorerDates.resetToDefaults registration skipped");return}let n;try{n=await d.commands.getCommands(!0)}catch(o){e?.warn?.("Unable to inspect VS Code command registry; proceeding with reset command registration",o)}if(Array.isArray(n)&&n.includes(Vt)){Bt(),e?.warn?.("Detected existing explorerDates.resetToDefaults handler; skipping duplicate registration");return}Bt(),r.push(d.commands.registerCommand(Vt,async()=>{try{if(await d.window.showWarningMessage(y.getString("resetConfirmation"),{modal:!0},y.getString("resetConfirm"),y.getString("resetCancel"))!==y.getString("resetConfirm"))return;$("reset settings to defaults");let s=t.extension.packageJSON?.contributes?.configuration?.properties||{},l=0;for(let i of Object.keys(s))if(i.startsWith("explorerDates.")){let c=i.replace("explorerDates.","");try{await me.clearSetting(c,{scope:"user",reason:"reset-to-defaults"}),await me.clearSetting(c,{scope:"workspace",reason:"reset-to-defaults"}),l++}catch(u){e.warn(`Failed to reset setting ${c}`,u)}}d.window.showInformationMessage(y.getString("resetSuccess",l)),e.info("Settings reset to defaults",{resetCount:l})}catch(o){e.error("Failed to reset settings to defaults",o),d.window.showErrorMessage(`Failed to reset settings: ${o.message}`)}}))}jt.exports={registerMigrationCommands:so}});var Xt=f((exports,module)=>{var vscode=require("vscode"),{isWebEnvironment}=ee(),fs=null,path=null;try{let isWeb=isWebEnvironment()||typeof process<"u"&&!0;!isWeb&&typeof process<"u"&&process.versions?.node&&(fs=eval("require")("fs"),path=eval("require")("path"))}catch{fs=null,path=null}var textDecoder=typeof globalThis.TextDecoder=="function"?new globalThis.TextDecoder("utf-8"):new(require("util")).TextDecoder("utf-8"),TemplateStore=class{constructor(){this._=new Map,this.P=null}initialize(e){this.P=e?.extensionUri??null}async getTemplate(e){if(this._.has(e))return this._.get(e);let r=await this.Ee(e);return this._.set(e,r),r}async Ee(e){let r=`${e}.html`;if(this.P){let n=vscode.Uri.joinPath(this.P,"assets","templates",r),o=await vscode.workspace.fs.readFile(n);return textDecoder.decode(o)}if(fs&&path){let n=path.resolve(__dirname,"..","..","assets","templates",r);return await fs.promises.readFile(n,"utf8")}throw new Error(`TemplateStore: Unable to load template "${e}" (missing extension context)`)}},templateStore=new TemplateStore;module.exports={templateStore,initializeTemplateStore:t=>templateStore.initialize(t)}});var Qt=f((oa,Jt)=>{var W=require("vscode"),{getLogger:uo}=k(),{getSettingsCoordinator:go}=re(),{SettingsOrganizer:po}=Oe(),{getLocalization:fo}=Q(),S=fo(),Zt=typeof process<"u"&&process.env?process.env:{},Ne=class{constructor(){this._logger=uo(),this.n=new Set,this.e=go(),this.M=null,this.j=null}async migrateAllSettings(e){let r=[()=>this.migrateReportingSettings(),()=>this.migrateCustomColorSettings(),()=>this.validateFeatureFlags(),()=>this.cleanupDeprecatedSettings(e),()=>this.trackMigrationMetrics(e)],n=[];for(let o of r)try{let a=await o();a&&n.push(a)}catch(a){this._logger.error("Settings migration failed:",a)}if(n.length>0){this._logger.info("Settings migration completed",{migratedSettings:n});try{let o=e?.globalState?.get?e.globalState.get("explorerDates.lastMigrationNotificationShown"):null,a=Date.now(),s=1440*60*1e3;!o||a-new Date(o).getTime()>s?(await this.ve(n,e),e?.globalState?.update&&await e.globalState.update("explorerDates.lastMigrationNotificationShown",new Date().toISOString())):this._logger.info("Skipping migration notification - recently shown")}catch(o){this._logger.debug("Failed to persist migration notification timestamp",o?.message||o)}}return n}async migrateReportingSettings(){let e=this.e.inspect("enableReporting"),r=this.e.inspect("enableExportReporting"),n=!1;if(e?.globalValue!==void 0)try{r?.globalValue===void 0&&(await this.e.updateSetting("enableExportReporting",e.globalValue,{scope:"user",reason:"migrate-enableReporting-global"}),this.n.add("enableReporting\u2192enableExportReporting (Global)"),this._logger.info("Migrated global enableReporting to enableExportReporting",{oldValue:e.globalValue})),await this.e.clearSetting("enableReporting",{scope:"user",reason:"cleanup-migrated-enableReporting-global"}),n=!0}catch(o){this._logger.error("Failed to migrate global enableReporting setting",o)}if(e?.workspaceValue!==void 0)try{r?.workspaceValue===void 0&&(await this.e.updateSetting("enableExportReporting",e.workspaceValue,{scope:"workspace",reason:"migrate-enableReporting-workspace"}),this.n.add("enableReporting\u2192enableExportReporting (Workspace)"),this._logger.info("Migrated workspace enableReporting to enableExportReporting",{oldValue:e.workspaceValue})),await this.e.clearSetting("enableReporting",{scope:"workspace",reason:"cleanup-migrated-enableReporting-workspace"}),n=!0}catch(o){this._logger.error("Failed to migrate workspace enableReporting setting",o)}if(e?.workspaceFolderValue!==void 0)try{r?.workspaceFolderValue===void 0&&(await this.e.updateSetting("enableExportReporting",e.workspaceFolderValue,{scope:"workspaceFolder",reason:"migrate-enableReporting-folder"}),this.n.add("enableReporting\u2192enableExportReporting (WorkspaceFolder)"),this._logger.info("Migrated workspace folder enableReporting to enableExportReporting",{oldValue:e.workspaceFolderValue})),await this.e.clearSetting("enableReporting",{scope:"workspaceFolder",reason:"cleanup-migrated-enableReporting-folder"}),n=!0}catch(o){this._logger.error("Failed to migrate workspace folder enableReporting setting",o)}return n&&this.n.add("deprecatedSettings\u2192removed"),this.n.has("enableReporting\u2192enableExportReporting (Global)")||this.n.has("enableReporting\u2192enableExportReporting (Workspace)")||this.n.has("enableReporting\u2192enableExportReporting (WorkspaceFolder)")}async migrateCustomColorSettings(){let e=W.workspace.getConfiguration("explorerDates"),r=e.get("migrateLegacyCustomColorsOnStartup",!1),n=e.get("customColors");if(!n||typeof n!="object")return!1;if(!r)return this._logger.info("Skipping custom color migration (opt-in disabled)",{reason:"migrateLegacyCustomColorsOnStartup=false"}),!1;let o=this.e.getValue("workbench.colorCustomizations")||{};if(o["explorerDates.customColor.veryRecent"]!==void 0||o["explorerDates.customColor.recent"]!==void 0||o["explorerDates.customColor.old"]!==void 0)return!1;let s={...o,"explorerDates.customColor.veryRecent":n.veryRecent||"#00ff00","explorerDates.customColor.recent":n.recent||"#ffff00","explorerDates.customColor.old":n.old||"#ff0000"};try{await this.e.updateSetting("workbench.colorCustomizations",s,{scope:"user",reason:"migrate-customColors"}),this.n.add("customColors\u2192workbench.colorCustomizations");let l=e.inspect("customColors"),i=!1;return l?.globalValue!==void 0&&(await this.e.clearSetting("customColors",{scope:"user",reason:"cleanup-migrated-customColors-global"}),i=!0),l?.workspaceValue!==void 0&&(await this.e.clearSetting("customColors",{scope:"workspace",reason:"cleanup-migrated-customColors-workspace"}),i=!0),l?.workspaceFolderValue!==void 0&&(await this.e.clearSetting("customColors",{scope:"workspaceFolder",reason:"cleanup-migrated-customColors-folder"}),i=!0),i&&this.n.add("deprecatedSettings\u2192removed"),this._logger.info("Migrated custom colors to workbench.colorCustomizations",{oldColors:n,newColors:s}),!0}catch(l){return this._logger.error("Failed to migrate custom colors",l),!1}}async validateFeatureFlags(){let e={enableOnboardingSystem:{default:!0,type:"boolean"},enableExportReporting:{default:!0,type:"boolean"},enableAnalysisCommands:{default:!0,type:"boolean"},enableAdvancedCache:{default:!0,type:"boolean"},enableWorkspaceIntelligence:{default:!0,type:"boolean"},enableWorkspaceTemplates:{default:!0,type:"boolean"},enableExtensionApi:{default:!0,type:"boolean"},enableProgressiveAnalysis:{default:null,type:"boolean",allowNull:!0}},r=!1,n=[],o=[];for(let[a,s]of Object.entries(e)){let l=this.e.inspect(a),i=this.e.getValue(a),c=l?.globalValue!==void 0,u=l?.workspaceValue!==void 0;if(!c&&!u)o.push(a);else if(i!==void 0&&!(s.allowNull&&i===null?!0:typeof i===s.type))try{await this.e.updateSetting(a,s.default,{scope:"user",reason:`feature-flag-validation:${a}`}),n.push(`${a}: corrected type mismatch`),r=!0}catch(h){this._logger.error(`Failed to fix feature flag ${a}`,h)}}return r?(this.n.add("featureFlags\u2192validated"),this._logger.info("Validated feature flags",{fixes:n})):o.length>0&&this._logger.info("Feature flags relying on defaults (no migration needed)",{flags:o}),r}async cleanupDeprecatedSettings(e){let r=["customColors","enableReporting"];try{if(e?.globalState&&e.globalState.get("explorerDates.deprecatedSettingsAsked"))return this._logger.debug("Skipping deprecated settings prompt - already asked this workspace."),!1}catch(a){this._logger.debug("Failed to read deprecatedSettingsAsked flag",a?.message||a)}let n=[];for(let a of r){let s=this.e.inspect(a);(s?.globalValue!==void 0||s?.workspaceValue!==void 0||s?.workspaceFolderValue!==void 0)&&n.push(a)}if(n.length===0)return!1;await this.w(e,"migrationPromptShown",{type:"deprecatedSettings",found:n.length,settings:n});let o=await W.window.showInformationMessage(S.getString("deprecatedPrompt",n.length),{modal:!1},S.getString("deprecatedClean"),S.getString("deprecatedKeep"),S.getString("deprecatedAskLater"));await this.w(e,"migrationPromptResponded",{type:"deprecatedSettings",action:o});try{e?.globalState&&e.globalState.update&&await e.globalState.update("explorerDates.deprecatedSettingsAsked",new Date().toISOString())}catch(a){this._logger.debug("Failed to persist deprecatedSettingsAsked flag",a?.message||a)}if(o===S.getString("deprecatedClean")){for(let a of n)try{await this.e.clearSetting(a,{scope:"user",reason:"cleanup-deprecated"}),await this.e.clearSetting(a,{scope:"workspace",reason:"cleanup-deprecated"}),await this.e.clearSetting(a,{scope:"workspaceFolder",reason:"cleanup-deprecated"}),this._logger.info(`Removed deprecated setting: ${a}`)}catch(s){this._logger.error(`Failed to remove deprecated setting ${a}`,s)}return this.n.add("deprecatedSettings\u2192removed"),!0}return!1}async w(e,r,n){try{let o=this.e&&typeof this.e.getValue=="function"?this.e.getValue("enableTelemetry"):!1;if(Zt.EXPLORER_DATES_TELEMETRY!=="1"&&!o||!e?.globalState?.update||!e?.globalState?.get)return;let a=e.globalState.get("explorerDates.telemetryEvents",[]),s=Zt.EXPLORER_DATES_TELEMETRY==="1"?"env":o?"config":"unknown",l=e?.extension?.packageJSON?.version||null,i={timestamp:new Date().toISOString(),event:r,payload:n,source:s,extensionVersion:l};a.push(i);let c=100;a.length>c&&a.splice(0,a.length-c),await e.globalState.update("explorerDates.telemetryEvents",a),this._logger.debug("Telemetry emitted",i)}catch(o){this._logger.debug("Failed to emit telemetry event",o?.message||o)}}async trackMigrationMetrics(e){if(this.n.size===0)return!1;let r=e.globalState.get("explorerDates.migrationHistory",[]),n={timestamp:new Date().toISOString(),extensionVersion:e.extension.packageJSON.version,migratedSettings:Array.from(this.n)};return r.push(n),r.length>5&&r.splice(0,r.length-5),await e.globalState.update("explorerDates.migrationHistory",r),this._logger.info("Recorded migration metrics",n),await this.w(e,"migrationMetricsRecorded",{record:n}),!0}async autoOrganizeSettingsIfNeeded(e,r={}){let n=this.Ce(e);if(!n)return null;try{let o=await n.getOrganizationPlan();if(!o?.needsWork)return this._logger.debug("Auto organization skipped - no Explorer Dates settings to tidy."),null;let a=await n.organize({plan:o});if(a?.changed){if(!r.silent){let s=[];a.movedToWorkspace.length&&s.push(`${a.movedToWorkspace.length} moved to workspace`),a.reorderedWorkspace&&s.push("workspace keys sorted"),a.sortedFiles.length&&s.push(`${a.sortedFiles.length} file(s) tidied`);let l=s.length?` (${s.join(" \u2022 ")})`:"";W.window.showInformationMessage(S.getString("organizeSettingsResult",l))}this._logger.info("Explorer Dates settings auto-organized",{trigger:r.trigger||"unknown",summary:a})}return a}catch(o){return this._logger.warn("Automatic Explorer Dates settings organization failed",o),null}}Ce(e){return e?((!this.M||this.j!==e)&&(this.M=new po(e),this.j=e),this.M):(this._logger.debug("Settings organizer unavailable - missing extension context."),null)}async ve(e,r){let n=e.length;await this.w(r,"migrationPromptShown",{type:"migrationNotification",count:n,details:e});let o=await W.window.showInformationMessage(S.getString("migrationNotificationMessage",n),{modal:!1},S.getString("migrationViewChanges"),S.getString("migrationOpenSettings"));switch(await this.w(r,"migrationPromptResponded",{type:"migrationNotification",action:o}),o){case S.getString("migrationViewChanges"):await this.Se();break;case S.getString("migrationOpenSettings"):await W.commands.executeCommand("workbench.action.openSettings","explorerDates");break}}async Se(){let e=W.window.createWebviewPanel("explorerDatesMigration",S.getString("migrationDetailsTitle"),W.ViewColumn.One,{enableScripts:!1}),r=Array.from(this.n).map(n=>`
  • ${n}
  • `).join("");e.webview.html=` @@ -123,5 +123,5 @@ ${P}`,{modal:!0})}),r.info(`File history requested for: ${i.fsPath||i.path}`)}ca - `}async validateConfiguration(){let e=[],r=W.workspace.getConfiguration("explorerDates"),n=[{setting:"dateDecorationFormat",validate:o=>["smart","relative-short","relative-long","absolute-short","absolute-long"].includes(o),message:"Invalid date decoration format"},{setting:"colorScheme",validate:o=>["none","recency","file-type","subtle","vibrant","custom"].includes(o),message:"Invalid color scheme"},{setting:"badgePriority",validate:o=>["time","author","size"].includes(o),message:"Invalid badge priority"},{setting:"maxCacheSize",validate:o=>typeof o=="number"&&o>=100&&o<=5e4,message:"Cache size must be between 100 and 50,000"},{setting:"cacheTimeout",validate:o=>typeof o=="number"&&o>=5e3&&o<=3e5,message:"Cache timeout must be between 5,000 and 300,000 milliseconds"}];for(let o of n){let a=r.get(o.setting);a!==void 0&&!o.validate(a)&&e.push({setting:o.setting,value:a,message:o.message})}return e}getMigrationHistory(e){return e.globalState.get("explorerDates.migrationHistory",[])}};Jt.exports={SettingsMigrationManager:Ne}});var ar=f((oa,or)=>{var _=require("vscode"),{getLogger:fo}=k(),{WORKSPACE_SCALE_BALANCED_THRESHOLD:er,WORKSPACE_SCALE_LARGE_THRESHOLD:we,WORKSPACE_SCALE_EXTREME_THRESHOLD:tr,WORKSPACE_SCAN_MAX_RESULTS:rr}=N(),Ue=fo(),he=null;function nr(t){return t&&(t.fsPath||t.path)||null}function $e(t,e){let r=nr(t);!r||typeof e!="number"||(he={workspaceKey:r,fileCount:e,timestamp:Date.now()})}function qe(t){let e=nr(t);return!e||!he||he.workspaceKey!==e?null:he}function mo(t,e="default"){if(!t)return`unknown-workspace-${e}`;let r=t.fsPath||t.path||"",n=r.split("/").pop()||"workspace",o=Math.abs(r.split("").reduce((s,l)=>(s=(s<<5)-s+l.charCodeAt(0),s&s),0)).toString(36).substr(0,8),a=Math.abs(e.split("").reduce((s,l)=>(s=(s<<5)-s+l.charCodeAt(0),s&s),0)).toString(36).substr(0,4);return`${n}-${o}-${a}`}async function ho(t){try{if(!t)return"unknown";let e=qe(t),r;e?r=e.fileCount:(r=(await _.workspace.findFiles("**/*",null,rr)).length,$e(t,r));let n="small";r>=tr?n="extreme":r>=we?n="large":r>=1e3&&(n="medium");let o=_.env.remoteName,a=_.env.uiKind===_.UIKind.Web,s=n==="medium"&&r>=er&&rc.toLowerCase());if(i.includes("package.json")||i.includes("yarn.lock"))return"web-development";if(i.some(c=>c.endsWith(".ipynb"))||i.includes("requirements.txt"))return"data-science";if(i.includes("docker-compose.yml")||i.includes(".enterprise"))return"enterprise"}catch(l){Ue.debug("Project type detection failed:",l)}return"full"}catch(e){return Ue.error("Workspace profile detection failed:",e),"unknown"}}async function wo(t){if(!t)return null;try{let e=qe(t),r;e?r=e.fileCount:(r=(await _.workspace.findFiles("**/*",null,rr)).length,$e(t,r));let n="small";r>=tr?n="extreme":r>=we?n="large":r>=1e3&&(n="medium");let o=!!_.env.remoteName,a=_.env.uiKind===_.UIKind.Web,s=a?"web":o?"remote":"local",l=n==="medium"&&r>=er&&r{var CHUNK_SIZES={onboarding:34,analysisCommands:23,exportReporting:17,extensionApi:15,workspaceTemplates:14,advancedCache:28,workspaceIntelligence:31,incrementalWorkers:19},BASE_BUNDLE_SIZE=99;function _getPresetDefinitionsSync(){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let t=dynamicRequire("./chunks/preset-definitions-chunk");if(t&&t.PRESET_DEFINITIONS)return t.PRESET_DEFINITIONS}}catch{}let FALLBACK_PRESET={minimal:{id:"minimal",name:"Minimal",description:"Lean setup that prioritizes responsiveness in large repos.",targetScenarios:["Large repos","Low resources","Minimal UI"],settings:{"explorerDates.performanceMode":!0,"explorerDates.showDateDecorations":!0}},balanced:{id:"balanced",name:"Balanced",description:"Default feature mix for most workspaces.",targetScenarios:["General development","Mixed workloads"],settings:{"explorerDates.enableOnboardingSystem":!0,"explorerDates.enableAnalysisCommands":!0,"explorerDates.performanceMode":!1,"explorerDates.dateDecorationFormat":"smart","explorerDates.colorScheme":"recency","explorerDates.badgePriority":"time"}},"web-development":{id:"web-development",name:"Web Development",description:"Optimized for frontend and full-stack web projects.",targetScenarios:["Web apps","Frontend teams"],settings:{"explorerDates.enableOnboardingSystem":!0,"explorerDates.dateDecorationFormat":"smart","explorerDates.colorScheme":"file-type","explorerDates.badgePriority":"time"}},enterprise:{id:"enterprise",name:"Enterprise",description:"Full feature set with reporting and integrations enabled.",targetScenarios:["Large teams","Governed environments"],settings:{"explorerDates.enableExportReporting":!0,"explorerDates.enableExtensionApi":!0,"explorerDates.dateDecorationFormat":"smart","explorerDates.colorScheme":"recency","explorerDates.badgePriority":"time"}},"data-science":{id:"data-science",name:"Data Science",description:"Insight-focused profile for data-heavy projects.",targetScenarios:["Data analysis","Research workflows"],settings:{"explorerDates.enableWorkspaceIntelligence":!0,"explorerDates.dateDecorationFormat":"iso-detailed","explorerDates.colorScheme":"recency","explorerDates.badgePriority":"time"}}};return FALLBACK_PRESET}var PRESET_DEFINITIONS=_getPresetDefinitionsSync(),RESTART_REQUIRED_SETTINGS=new Set(["enableOnboardingSystem","enableAnalysisCommands","enableExportReporting","enableExtensionApi","enableWorkspaceTemplates","enableAdvancedCache","enableWorkspaceIntelligence","enableIncrementalWorkers","performanceMode","smartFileWatching"]);function calculateBundleSize(t){let e=BASE_BUNDLE_SIZE;return t["explorerDates.enableOnboardingSystem"]&&(e+=CHUNK_SIZES.onboarding),t["explorerDates.enableAnalysisCommands"]&&(e+=CHUNK_SIZES.analysisCommands),t["explorerDates.enableExportReporting"]&&(e+=CHUNK_SIZES.exportReporting),t["explorerDates.enableExtensionApi"]&&(e+=CHUNK_SIZES.extensionApi),t["explorerDates.enableWorkspaceTemplates"]&&(e+=CHUNK_SIZES.workspaceTemplates),t["explorerDates.enableAdvancedCache"]&&(e+=CHUNK_SIZES.advancedCache),t["explorerDates.enableWorkspaceIntelligence"]&&(e+=CHUNK_SIZES.workspaceIntelligence),t["explorerDates.enableIncrementalWorkers"]&&(e+=CHUNK_SIZES.incrementalWorkers),e}function getDefaultPresetForProfile(t){let e=PRESET_DEFINITIONS;switch(t){case"minimal":case"extreme":return e.minimal||e.minimal;case"balanced":return e.balanced||e.balanced;case"web-development":return e["web-development"]||e["web-development"];case"data-science":return e["data-science"]||e["data-science"];case"enterprise":return e.enterprise||e.enterprise;default:return e.balanced||e.balanced}}module.exports={PRESET_DEFINITIONS,CHUNK_SIZES,BASE_BUNDLE_SIZE,RESTART_REQUIRED_SETTINGS,calculateBundleSize,getDefaultPresetForProfile}});var sr=f((exports,module)=>{var vscode=require("vscode"),getLogger=()=>{try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let t=dynamicRequire("./chunks/logger-chunk");if(t&&typeof t.getLogger=="function")return getLogger=t.getLogger,getLogger()}}catch{}try{return getLogger=k().getLogger,getLogger()}catch{return getLogger=()=>({debug:(()=>{})?.bind(console)||console.log,info:(()=>{}).bind(console),warn:(()=>{}).bind(console),error:(()=>{}).bind(console)}),getLogger()}},{generateWorkspaceKey,detectWorkspaceProfile,analyzeWorkspaceEnvironment}=ar(),{PRESET_DEFINITIONS,calculateBundleSize,getDefaultPresetForProfile,RESTART_REQUIRED_SETTINGS}=be(),{getSettingsCoordinator}=te(),{WORKSPACE_SCALE_LARGE_THRESHOLD,WORKSPACE_SCALE_EXTREME_THRESHOLD}=N(),{diagLog}=B(),isWebRuntime=(()=>{try{return vscode?.env?.uiKind===vscode?.UIKind?.Web}catch{return!1}})(),logger=getLogger(),quickPickUnavailableMessage="Explorer Dates: This action is unavailable in this environment.";function ensureQuickPickAvailable(t){if(typeof vscode?.window?.showQuickPick=="function")return!0;diagLog("warn","QuickPick unavailable",{context:t,isWeb:isWebRuntime});try{typeof vscode?.window?.showInformationMessage=="function"&&vscode.window.showInformationMessage(quickPickUnavailableMessage)}catch{}return!1}var RuntimeConfigManager=class{constructor(e){this.z=e,this.r=e.globalState,this.W=null,this.g=null,this.d="explorerDates.pendingRestart",this.Y="explorerDates.suggestionHistory",this.D="explorerDates.presetBackup",this.I="explorerDates.lastPreset",this.e=getSettingsCoordinator(),this.De(),logger.info("Runtime configuration manager initialized")}async getCurrentRuntimeState(){let e=vscode.workspace.getConfiguration("explorerDates"),r=this.p(e),n=this.i(null,r),o=vscode.workspace.workspaceFolders?.[0]?.uri,a=await analyzeWorkspaceEnvironment(o);return{currentSettings:r,currentBundleSize:n,analysis:a,availablePresets:Object.keys(PRESET_DEFINITIONS),pendingRestart:this.r.get(this.d,[]),timestamp:Date.now()}}async checkAutoSuggestion(e=!1){try{let r=vscode.workspace.workspaceFolders?.[0]?.uri;if(!r){e&&vscode.window.showInformationMessage("Explorer Dates: No workspace folder is open. Open a folder to receive configuration suggestions.");return}let n=await detectWorkspaceProfile(r),o=generateWorkspaceKey(r,n),a=this.r.get(this.Y,{}),s=a[o];if(e||!s||s.profileDetected!==n||await this.ke(s)){let i=await this.X(n);if(i){if(e&&i.reason==="minimal savings")vscode.window.showInformationMessage(`Explorer Dates: Your configuration is already well-optimized for a ${n} workspace. No changes recommended.`);else if(i.accepted!==void 0){let c=await analyzeWorkspaceEnvironment(r);a[o]={profileDetected:n,suggestedAt:Date.now(),fileCountAtSuggestion:c?.fileCount||0,accepted:i.accepted,presetId:i.preset},await this.r.update(this.Y,a),logger.info("Auto-suggestion updated:",a[o])}}}else e&&(await this.X(n))?.reason==="minimal savings"&&vscode.window.showInformationMessage(`Explorer Dates: Your configuration is already well-optimized for a ${n} workspace. No changes recommended.`)}catch(r){logger.error("Auto-suggestion check failed:",r)}}async X(e){let r=this.p(vscode.workspace.getConfiguration("explorerDates")),n=getDefaultPresetForProfile(e),o=this.i(null,r),a=n?this.i(n.settings,r):o,s=o-a;if(s<=10)return{accepted:!1,preset:e,reason:"minimal savings"};let l=`Explorer Dates detected a ${e} workspace. Would you like to apply ${n.name} settings? This could save ~${s}KB.`;switch(await vscode.window.showInformationMessage(l,{modal:!1},"Apply Settings","Show Details","Not Now")){case"Apply Settings":return await this.L(n.id,n),{accepted:!0,preset:e};case"Show Details":return await this.showPresetComparison(r,n),{accepted:!1,preset:e};default:return{accepted:!1,preset:e}}}async L(e,r=null){let n=r||PRESET_DEFINITIONS[e];if(!n)throw new Error(`Unknown preset: ${e}`);let o=this.p(vscode.workspace.getConfiguration("explorerDates"));await this.xe(e,o);let a=Object.entries(n.settings||{}),s=[],l=[],i=[],c=isWebRuntime?"user":"workspace",u=`apply-preset:${e}`,g=m=>{try{if(!m||typeof m!="string")return!1;let P="explorerDates.";if(m.startsWith(P)){let Se=m.slice(P.length),Y=vscode.workspace.getConfiguration("explorerDates").inspect(Se);return Y?[Y.defaultValue,Y.globalValue,Y.workspaceValue,Y.workspaceFolderValue].some(kr=>kr!==void 0):!1}let v=vscode.workspace.getConfiguration().inspect(m);return v?[v.defaultValue,v.globalValue,v.workspaceValue,v.workspaceFolderValue].some(Se=>Se!==void 0):!1}catch{return!1}};for(let[m,P]of a){if(!g(m)){l.push(m),diagLog("warn","Preset skipped unregistered setting",{key:m,presetId:e});continue}try{s.push(await this.e.updateSetting(m,P,{scope:c,reason:u}))}catch(v){i.push({key:m,error:v}),logger.warn(`Preset application failed for ${m}: ${v&&v.message?v.message:String(v)}`)}}let h=s.filter(m=>m.updated).map(m=>m.key.replace("explorerDates.","")),E=`Applied "${n.name}" preset. Applied: ${h.length}. Skipped: ${l.length}. Failed: ${i.length}.`;try{vscode.window.showInformationMessage(E)}catch{}if(logger.info(`Applied ${n.name} preset`,{changedSettings:h,skipped:l,failed:i.length}),diagLog("info","Preset applied summary",{presetId:e,applied:h.length,skipped:l,failed:i.map(m=>m.key),webRuntime:isWebRuntime}),h.length>0){this.Z(h);try{await vscode.commands.executeCommand("explorerDates.refreshDateDecorations"),diagLog("info","Preset refresh triggered",{presetId:e,applied:h.length,skipped:l.length})}catch(m){diagLog("warn","Preset refresh failed",{presetId:e,error:m?.message})}}return{applied:h.length,preset:n,requiresRestart:h.some(m=>RESTART_REQUIRED_SETTINGS.has(m)),estimatedBundleSize:this.i()}}async restorePreviousPreset(e={}){let r=this.r.get(this.D,null);if(!r?.settings)return e.silent||vscode.window.showInformationMessage("No previous preset available to restore."),{restored:!1,reason:"no-backup"};let n;try{n=await this.e.applySettings(r.settings,{scope:"workspace",reason:"restore-previous-preset"})}catch(a){throw e.silent||vscode.window.showErrorMessage(`Failed to restore previous preset: ${a.message}`),logger.error("Preset rollback failed:",a),a}let o=n.filter(a=>a.updated).map(a=>a.key.replace("explorerDates.",""));return await this.r.update(this.d,[]),await this.r.update(this.D,null),await this.r.update(this.I,r.previousPreset||null),e.silent||vscode.window.showInformationMessage("Previous preset restored."),{restored:!0,changedSettings:o,restoredPreset:r.previousPreset||"unknown"}}async showPresetComparison(e,r){if(!ensureQuickPickAvailable("runtimeConfig.showPresetComparison"))return;let n=e||this.p(vscode.workspace.getConfiguration("explorerDates")),o=this.i(null,n),a=r?this.i(r.settings,n):o,s=o-a,l=[{label:"\u{1F4E6} Current Configuration",description:`Bundle: ${o}KB total`,detail:this.J(n),action:"current"},r?{label:`\u26A1 Recommended: ${r.name}`,description:`Bundle: ${a}KB total (saves ${Math.max(0,s)}KB)`,detail:this.J(r.settings),action:"apply",preset:r}:null,{label:"\u{1F527} Browse All Presets...",description:`Choose from ${Object.keys(PRESET_DEFINITIONS).length} available presets`,detail:"Minimal, Balanced, Web Development, Enterprise, Data Science",action:"browse"}].filter(Boolean),i=await vscode.window.showQuickPick(l,{placeHolder:"Choose configuration approach",ignoreFocusOut:!0,matchOnDescription:!0,matchOnDetail:!0});if(i)switch(i.action){case"apply":i.preset&&await this.L(i.preset.id,i.preset);break;case"browse":await this.showAllPresets();break}}async showAllPresets(){if(!ensureQuickPickAvailable("runtimeConfig.showAllPresets"))return;let e=this.p(vscode.workspace.getConfiguration("explorerDates")),r=this.i(null,e),n=Object.values(PRESET_DEFINITIONS).map(a=>{let s=this.i(a.settings,e),l=r-s,i=l>0?`saves ${l}KB`:l<0?`adds ${Math.abs(l)}KB`:"same size";return{label:`${a.name}`,description:`${s}KB (${i})`,detail:`${a.description} - ${a.targetScenarios.join(", ")}`,preset:a}}),o=await vscode.window.showQuickPick(n,{placeHolder:"Select a preset configuration",ignoreFocusOut:!0,matchOnDescription:!0,matchOnDetail:!0});o?.preset&&await vscode.window.showInformationMessage(`Apply "${o.preset.name}" preset? -${o.preset.description}`,{modal:!1},"Apply","Cancel")==="Apply"&&await this.L(o.preset.id,o.preset)}De(){this.W=vscode.workspace.onDidChangeConfiguration(e=>{e.affectsConfiguration("explorerDates")&&this.Te(e)})}async Te(e){let r=Array.from(RESTART_REQUIRED_SETTINGS).filter(n=>e.affectsConfiguration(`explorerDates.${n}`));r.length>0&&this.Z(r)}Z(e){let r=this.r.get(this.d,[]),n=[...new Set([...r,...e])];try{let o=this.r.update(this.d,n);o&&typeof o.then=="function"&&o.catch(a=>{try{logger.warn("Failed to persist pending restart state:",a&&a.message)}catch{}})}catch(o){try{logger.warn("Failed to persist pending restart state (sync):",o&&o.message)}catch{}}this.g&&clearTimeout(this.g),this.g=setTimeout(()=>{(async()=>{try{await this.Ae()}catch(o){logger.error("Failed to show batched restart prompt:",o);try{await this.r.update(this.d,[])}catch(a){logger.warn("Failed to clear pending restarts after prompt failure:",a&&a.message)}}finally{this.g=null}})()},2e3)}async Ae(){try{let e=this.r.get(this.d,[]);if(e.length===0)return;let r=e.map(s=>this.Re(s)).join(", "),o=`${e.length===1?`"${r}"`:`${e.length} settings (${r})`} changed. Reload to apply chunk optimizations?`,a;try{a=await vscode.window.showInformationMessage(o,{modal:!1},"Reload Now","Reload Later")}catch(s){logger.warn("User prompt for restart failed:",s&&s.message)}if(a==="Reload Now")try{await vscode.commands.executeCommand("workbench.action.reloadWindow")}catch(s){logger.warn("Failed to execute reload command:",s&&s.message)}}catch(e){logger.error("Error while showing batched restart prompt:",e)}finally{try{await this.r.update(this.d,[])}catch(e){logger.warn("Failed to clear pending restarts:",e&&e.message)}}}async xe(e,r={}){if(!this.r||typeof this.r.update!="function")return;let n=this.r.get(this.I,null),o=this.r.get(this.D,null),a=o?.timestamp?Date.parse(o.timestamp):null,s=Number.isFinite(a)?Math.max(Date.now(),a+1):Date.now(),l={timestamp:new Date(s).toISOString(),appliedPreset:e,previousPreset:n||"unknown",settings:{...r}};await this.r.update(this.D,l),await this.r.update(this.I,e)}i(e=null,r=null){let n=r?{...r}:this.p(vscode.workspace.getConfiguration("explorerDates"));return e&&typeof e=="object"&&Object.assign(n,e),calculateBundleSize(n)}p(e){let r={enableOnboardingSystem:!0,enableAnalysisCommands:!0,enableExportReporting:!0,enableExtensionApi:!0,enableWorkspaceTemplates:!0,enableAdvancedCache:!0,enableWorkspaceIntelligence:!0,enableIncrementalWorkers:!1},n={};for(let[o,a]of Object.entries(r))n[`explorerDates.${o}`]=e.get(o,a);return n}J(e){let r=Object.entries(e).filter(([a,s])=>s===!0&&a.includes("enable")).map(([a])=>a.replace("explorerDates.enable","").replace("System","")).slice(0,3),n=Math.max(0,Object.keys(e).length-3),o=n>0?` +${n} more`:"";return`Features: ${r.join(", ")}${o}`}Re(e){return e.replace("enable","").replace(/([A-Z])/g," $1").trim()}async ke(e){if(!e)return!0;try{let r=vscode.workspace.workspaceFolders?.[0]?.uri,n=await analyzeWorkspaceEnvironment(r);if(!n)return!1;let o=e.fileCountAtSuggestion||0,a=n.fileCount,s=this.Q(o),l=this.Q(a);return s!==l}catch(r){return logger.debug("Heuristics change check failed:",r),!1}}Q(e){return e>=WORKSPACE_SCALE_EXTREME_THRESHOLD?"extreme":e>=WORKSPACE_SCALE_LARGE_THRESHOLD?"large":e>=1e3?"medium":"small"}dispose(){this.W&&this.W.dispose(),this.g&&clearTimeout(this.g)}};module.exports={RuntimeConfigManager}});var cr=f((aa,lr)=>{var{RuntimeConfigManager:ir}=sr();lr.exports={RuntimeConfigManager:ir,default:{RuntimeConfigManager:ir}}});var ze=f((exports,module)=>{var vscode=require("vscode"),{getLogger}=k(),{recordCommandRegistration,recordCommandInvocation,recordCommandResult}=B(),{diagLog}=B(),logger=getLogger(),isWebRuntime=(()=>{try{return vscode?.env?.uiKind===vscode?.UIKind?.Web}catch{return typeof process>"u"||!0}})();function createWebRuntimeManagerStub(){let t=async e=>{diagLog("warn","QuickPick unavailable",{context:"runtimeCommands.webStub",isWeb:isWebRuntime}),typeof vscode?.window?.showInformationMessage=="function"&&await vscode.window.showInformationMessage(e)};return{async showAllPresets(){await t("Runtime presets are unavailable in VS Code for Web.")},async restorePreviousPreset(){return await t("Runtime presets are unavailable in VS Code for Web."),{restored:!1}},async showPresetComparison(){await t("Runtime preset comparisons are unavailable in VS Code for Web.")},async checkAutoSuggestion(){await t("Runtime preset suggestions are unavailable in VS Code for Web.")},async getCurrentRuntimeState(){return{currentSettings:{},analysis:null}}}}function registerRuntimeCommands(context){let runtimeManager=null,teamPersistenceManager=null,managersInitializing=null,runtimeManagerProxy={dispose:()=>{if(runtimeManager&&typeof runtimeManager.dispose=="function")try{runtimeManager.dispose()}catch(t){logger.warn("Error during runtimeManager.dispose proxy",t)}}},teamPersistenceManagerProxy={dispose:()=>{if(teamPersistenceManager&&typeof teamPersistenceManager.dispose=="function")try{teamPersistenceManager.dispose()}catch(t){logger.warn("Error during teamPersistenceManager.dispose proxy",t)}}};function loadTeamPersistenceModule(){if(isWebRuntime)return null;let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire!="function")return null;let candidates=["../chunks/teamPersistence","../chunks/team-persistence-chunk"];for(let t of candidates)try{let e=dynamicRequire(t);if(e)return e.default||e}catch{}return null}async function ensureManagers(){return managersInitializing||(managersInitializing=(async()=>{if(!runtimeManager){if(isWebRuntime){runtimeManager=createWebRuntimeManagerStub();return}let t=await Promise.resolve().then(()=>X(cr()));runtimeManager=new t.RuntimeConfigManager(context)}if(!teamPersistenceManager&&!isWebRuntime){let persistence=loadTeamPersistenceModule();if(persistence?.createTeamPersistenceManager)teamPersistenceManager=persistence.createTeamPersistenceManager(context);else if(persistence?.TeamConfigPersistenceManager)teamPersistenceManager=new persistence.TeamConfigPersistenceManager(context);else{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let t=dynamicRequire("../teamConfigPersistence.proxy");teamPersistenceManager=new t.TeamConfigPersistenceManager(context)}}}})(),managersInitializing)}let registerCommand=(t,e)=>(recordCommandRegistration(t),vscode.commands.registerCommand(t,async(...r)=>{recordCommandInvocation(t);try{let n=await e(...r);return recordCommandResult(t,!0),n}catch(n){throw recordCommandResult(t,!1,n),n}})),commands=[registerCommand("explorerDates.applyPreset",async()=>{try{let{requireWorkspaceTrust:t}=G();t("apply preset"),await ensureManagers(),await runtimeManager.showAllPresets()}catch(t){logger.error("Apply preset command failed:",t),vscode.window.showErrorMessage(`Failed to apply preset: ${t.message}`)}}),registerCommand("explorerDates.restorePreviousPreset",async()=>{try{await ensureManagers(),(await runtimeManager.restorePreviousPreset()).restored||logger.info("No preset backup available to restore")}catch(t){logger.error("Restore previous preset command failed:",t),vscode.window.showErrorMessage(`Failed to restore previous preset: ${t.message}`)}}),registerCommand("explorerDates.configureRuntime",async()=>{try{await ensureManagers();let t=await runtimeManager.getCurrentRuntimeState();await runtimeManager.showPresetComparison(t.currentSettings)}catch(t){logger.error("Configure runtime command failed:",t),vscode.window.showErrorMessage(`Failed to show runtime configuration: ${t.message}`)}}),registerCommand("explorerDates.suggestOptimalPreset",async()=>{try{await ensureManagers(),await runtimeManager.checkAutoSuggestion(!0)}catch(t){logger.error("Suggest optimal preset command failed:",t),vscode.window.showErrorMessage(`Failed to suggest preset: ${t.message}`)}}),registerCommand("explorerDates.showChunkStatus",async()=>{try{await ensureManagers();let t=await runtimeManager.getCurrentRuntimeState();await showChunkStatusQuickPick(t)}catch(t){logger.warn("Show chunk status: runtime managers unavailable, using fallback state",t);try{let e=vscode.workspace.getConfiguration("explorerDates"),r=[34,23,17,15,14,28,31,19],a={currentBundleSize:99+["enableOnboardingSystem","enableAnalysisCommands","enableExportReporting","enableExtensionApi","enableWorkspaceTemplates","enableAdvancedCache","enableWorkspaceIntelligence","enableIncrementalWorkers"].reduce((s,l,i)=>s+(e.get(l,!0)?r[i]:0),0)};await showChunkStatusQuickPick(a)}catch(e){logger.error("Show chunk status fallback failed:",e),vscode.window.showErrorMessage(`Failed to show chunk status: ${e.message}`)}}}),registerCommand("explorerDates.optimizeBundle",async()=>{try{await ensureManagers();let t=await runtimeManager.getCurrentRuntimeState();if(t.analysis){let e=await determineOptimalProfile(t.analysis);await runtimeManager.showPresetComparison(t.currentSettings,e)}else await runtimeManager.showAllPresets()}catch(t){logger.error("Optimize bundle command failed:",t),vscode.window.showErrorMessage(`Failed to optimize bundle: ${t.message}`)}}),registerCommand("explorerDates.validateTeamConfig",async()=>{try{if(isWebRuntime){vscode.window.showInformationMessage("Team configuration validation is unavailable in VS Code for Web.");return}if(await ensureManagers(),!teamPersistenceManager){vscode.window.showInformationMessage("Team configuration validation is unavailable.");return}let t=await teamPersistenceManager.validateTeamConfiguration();if(t.hasTeamConfig){let e=t.conflicts.length>0?`Found ${t.conflicts.length} conflicts.`:"No conflicts detected.";vscode.window.showInformationMessage(`Team configuration validated. ${e}`)}else vscode.window.showInformationMessage("No team configuration found in workspace.")}catch(t){logger.error("Validate team config command failed:",t),vscode.window.showErrorMessage(`Failed to validate team configuration: ${t.message}`)}})];return commands.forEach(t=>context.subscriptions.push(t)),logger.info("Runtime management commands registered"),{runtimeManager:runtimeManagerProxy,teamPersistenceManager:teamPersistenceManagerProxy}}async function showChunkStatusQuickPick(t){if(typeof vscode?.window?.showQuickPick!="function"){diagLog("warn","QuickPick unavailable",{context:"runtimeCommands.showChunkStatus",isWeb:isWebRuntime});try{typeof vscode?.window?.showInformationMessage=="function"&&vscode.window.showInformationMessage("Explorer Dates: This action is unavailable in this environment.")}catch{}return}let e=vscode.workspace.getConfiguration("explorerDates"),n=[{name:"Onboarding System",key:"enableOnboardingSystem",size:34},{name:"Analysis Commands",key:"enableAnalysisCommands",size:23},{name:"Export Reporting",key:"enableExportReporting",size:17},{name:"Extension API",key:"enableExtensionApi",size:15},{name:"Workspace Templates",key:"enableWorkspaceTemplates",size:14},{name:"Advanced Cache",key:"enableAdvancedCache",size:28},{name:"Workspace Intelligence",key:"enableWorkspaceIntelligence",size:31},{name:"Incremental Workers",key:"enableIncrementalWorkers",size:19}].map(o=>{let a=e.get(o.key,!0),s=a?"\u2705":"\u274C",l=a?"Enabled":"Disabled";return{label:`${s} ${o.name}`,description:`${o.size}KB | ${l}`,detail:getChunkDescription(o.key)}});n.unshift({label:"\u{1F4CA} Bundle Summary",description:`Total: ${t.currentBundleSize}KB`,detail:`Base bundle: 99KB + ${t.currentBundleSize-99}KB chunks`}),await vscode.window.showQuickPick(n,{placeHolder:"Current chunk status",ignoreFocusOut:!0})}function getChunkDescription(t){return{enableOnboardingSystem:"Welcome messages and guided setup",enableAnalysisCommands:"Advanced file analysis and metrics",enableExportReporting:"CSV/JSON export and reporting features",enableExtensionApi:"Public API for other extensions",enableWorkspaceTemplates:"Project templates and scaffolding",enableAdvancedCache:"Intelligent caching and performance",enableWorkspaceIntelligence:"Smart workspace analysis and insights",enableIncrementalWorkers:"Background processing and optimization"}[t]||"Explorer Dates feature chunk"}async function determineOptimalProfile(t){if(!t)return null;let{workspaceSize:e,isRemoteEnvironment:r}=t,n;e==="extreme"||e==="large"&&r?n="minimal":e==="large"||r?n="balanced":n="enterprise";let a=(await Promise.resolve().then(()=>X(be()))).PRESET_DEFINITIONS;return a[n]||a.balanced}module.exports={registerRuntimeCommands}});var ye=f((exports,module)=>{var FEATURE_FLAGS_GLOBAL_KEY="__explorerDatesFeatureFlags";function registerFeatureFlagsGlobal(t){if(t)try{typeof globalThis<"u"&&(globalThis[FEATURE_FLAGS_GLOBAL_KEY]=t)}catch{}}function loadFeatureFlagsFallback(){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function")return dynamicRequire("../featureFlags")}catch{}return null}function getFeatureFlagsGlobal(){try{if(typeof globalThis<"u"&&globalThis[FEATURE_FLAGS_GLOBAL_KEY])return globalThis[FEATURE_FLAGS_GLOBAL_KEY]}catch{}return loadFeatureFlagsFallback()}module.exports={FEATURE_FLAGS_GLOBAL_KEY,registerFeatureFlagsGlobal,getFeatureFlagsGlobal}});var He=f((sa,ur)=>{var Ee={onboarding:"src/chunks/onboarding-chunk",onboardingAssets:"src/chunks/onboarding-assets-chunk",reporting:"src/chunks/reporting-chunk",templates:"src/chunks/templates-chunk",analysis:"src/chunks/analysis-chunk",diagnostics:"src/chunks/diagnostics-chunk",extensionApi:"src/chunks/extension-api-chunk",advancedCache:"src/chunks/advancedCache-chunk",batchProcessor:"src/chunks/batchProcessor-chunk",decorationsAdvanced:"src/chunks/decorations-advanced",decorationsStatic:"src/chunks/decorations-static",workspaceIntelligence:"src/chunks/workspaceIntelligence",decorationLogic:"src/chunks/decoration-logic-chunk",decorationProvide:"src/chunks/decoration-provide-chunk",decorationHelpers:"src/chunks/decoration-helpers-chunk",decorationBatch:"src/chunks/decoration-batch-chunk",decorationWorkspaceIntel:"src/chunks/decoration-workspace-intel-chunk",decorationTelemetry:"src/chunks/decoration-telemetry-chunk",decorationRefresh:"src/chunks/decoration-refresh-chunk",decorationMemory:"src/chunks/decoration-memory-chunk",decorationPool:"src/chunks/decoration-pool-chunk",providerInit:"src/chunks/provider-init-chunk",fileDateProviderImpl:"src/chunks/file-date-provider-impl",fileDateProviderImplExport:"src/chunks/file-date-provider-impl-export",utilsShared:"src/chunks/utils-shared-chunk",incrementalWorkers:"src/chunks/incrementalWorkers",incrementalIndexer:"src/chunks/incrementalIndexer-chunk",uiAdapters:"src/chunks/ui-adapters",gitInsights:"src/chunks/gitInsights-chunk",smartWatcherFallback:"src/chunks/smartWatcherFallback-chunk",runtimeManagement:"src/chunks/runtime-management",runtimeManagementHeavy:"src/chunks/runtime-management-heavy",teamPersistence:"src/chunks/team-persistence-chunk",teamPersistenceUI:"src/chunks/team-persistence-ui-chunk",teamPersistenceLogic:"src/chunks/team-persistence-logic-chunk",settingsCoordinatorImpl:"src/chunks/settings-coordinator-impl-chunk",logger:"src/chunks/logger-chunk",loggerImpl:"src/chunks/logger-impl-chunk"};function bo(t){return Ee[t]||null}function yo(){return Object.keys(Ee)}function Eo(t){let e={};for(let[r,n]of Object.entries(Ee))e[r]=()=>t(`./${n}`);return e}var vo=new Set(["gitInsights","reporting","templates","advancedCache","runtimeManagementHeavy","incrementalWorkers"]);ur.exports={CHUNK_MAP:Ee,WEB_EXCLUDED_CHUNKS:vo,getChunkSourcePath:bo,getAllChunkNames:yo,generateDevLoaderMap:Eo}});var ve=f((exports,module)=>{var getLogger=()=>{try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let t=dynamicRequire("./chunks/logger-chunk");if(t&&typeof t.getLogger=="function")return getLogger=t.getLogger,getLogger()}}catch{}try{return getLogger=k().getLogger,getLogger()}catch{return getLogger=()=>({debug:(()=>{})?.bind(console)||console.log,info:(()=>{}).bind(console),warn:(()=>{}).bind(console),error:(()=>{}).bind(console)}),getLogger()}},{CHUNK_SIZES}=be(),{getChunkSourcePath,getAllChunkNames}=He(),{registerFeatureFlagsGlobal}=ye(),{isWebEnvironment}=Q(),featureLogger=null,env=typeof process<"u"&&process.env?process.env:{},DEFAULT_CHUNK_TIMEOUT_MS=Number(env.EXPLORER_DATES_CHUNK_TIMEOUT||(env.NODE_ENV==="test"?1e3:5e3)),NETWORK_ERROR_CODES=new Set(["ENOTFOUND","ECONNRESET","ECONNREFUSED","EAI_AGAIN","ETIMEDOUT","EHOSTUNREACH"]),BUILT_CHUNK_CACHE=new Map,CHUNK_METHOD_ALIASES={reporting:"exportReporting",templates:"workspaceTemplates",analysis:"analysisCommands"},DEV_CHUNK_PATH_CACHE=new Map,LAST_FEATURE_FAILURES=new Map;function getDevChunkImportPath(t){if(DEV_CHUNK_PATH_CACHE.has(t))return DEV_CHUNK_PATH_CACHE.get(t);let e=getChunkSourcePath(t);if(!e)return DEV_CHUNK_PATH_CACHE.set(t,null),null;let r=e;return r.startsWith("src/")&&(r=r.slice(4)),r.startsWith("./")||(r=`./${r}`),DEV_CHUNK_PATH_CACHE.set(t,r),r}function resolveNodeDependencies(){if(nativeDepsResolved)return!!(nativePath&&nativeFs);if(nativeDepsResolved=!0,!isNodeLikeRuntime())return!1;try{nativePath=eval("require")("path"),nativeFs=eval("require")("fs")}catch{nativePath=null,nativeFs=null}return!!(nativePath&&nativeFs)}var nativeDepsResolved=!1,nativePath=null,nativeFs=null;function isWebRuntime(){try{return(isWebEnvironment()||typeof process<"u")&&!0}catch{return!1}}function isNodeLikeRuntime(){return typeof process<"u"&&!!process.versions?.node&&!isWebRuntime()}function getChunkTimeoutMs(){return DEFAULT_CHUNK_TIMEOUT_MS>0?DEFAULT_CHUNK_TIMEOUT_MS:0}function logFeature(t,e,r){featureLogger||(featureLogger=getLogger());let n=featureLogger;typeof n[t]=="function"?n[t](e,r):n.info(e,r)}function logFeatureDisabled(t,e){logFeature("info","Feature disabled via configuration",{feature:t,savedKB:e&&CHUNK_SIZES[e]!==void 0?CHUNK_SIZES[e]:void 0})}function isLikelyNetworkIssue(t){if(!t)return!1;if(t.code&&NETWORK_ERROR_CODES.has(t.code))return!0;let e=(t.message||"").toLowerCase();return e.includes("network")||e.includes("fetch")||e.includes("timed out")}function runWithChunkTimeout(t,e){let r=getChunkTimeoutMs(),n=()=>{try{return Promise.resolve(t())}catch(o){return Promise.reject(o)}};return r?new Promise((o,a)=>{let s=!1,l=setTimeout(()=>{if(s)return;s=!0;let i=new Error(`Chunk "${e}" load timed out after ${r}ms`);i.code="CHUNK_TIMEOUT",a(i)},r);n().then(i=>{s||(s=!0,clearTimeout(l),o(i))}).catch(i=>{s||(s=!0,clearTimeout(l),a(i))})}):n()}function logResolverFailure(t,e){if(!e)return;let r={chunkName:t,error:e.message,code:e.code,networkIssue:isLikelyNetworkIssue(e),timedOut:e.code==="CHUNK_TIMEOUT"},n=r.networkIssue||r.timedOut?"warn":"error";logFeature(n,"Chunk resolver failed",r)}function tryLoadBuiltChunk(t){if(!t||!resolveNodeDependencies()||typeof nativeFs?.existsSync!="function")return null;if(BUILT_CHUNK_CACHE.has(t))return BUILT_CHUNK_CACHE.get(t);let e=[];typeof __dirname=="string"&&nativePath&&(e.push(nativePath.join(__dirname,"chunks",`${t}.js`)),e.push(nativePath.join(__dirname,"..","dist","chunks",`${t}.js`)));for(let r of e)try{if(!r||!nativeFs.existsSync(r))continue;let n=require(r),o=n?.default||n;return BUILT_CHUNK_CACHE.set(t,o||null),o&&logFeature("info","Loaded chunk via built artifact fallback",{chunkName:t,path:r}),o}catch(n){logFeature("warn","Built chunk fallback failed",{chunkName:t,path:r,error:n.message})}return BUILT_CHUNK_CACHE.set(t,null),null}function tryRequireDevChunk(t){if(isWebRuntime())return null;let e=getDevChunkImportPath(t);if(!e)return null;try{let r=require(e);return r?.default||r}catch(r){(r.code!=="MODULE_NOT_FOUND"||typeof r.message=="string"&&!r.message.includes(e))&&logFeature("debug","Dev chunk require failed",{chunkName:t,importPath:e,error:r.message})}return null}function tryRequireLocalBuiltChunk(t){if(isWebRuntime())return null;let e=`./chunks/${t}`;try{let r=require(e);return r?.default||r}catch(r){r.code==="MODULE_NOT_FOUND"||logFeature("debug","Local chunk require failed",{chunkName:t,importPath:e,error:r.message})}return null}function getSavingsKey(t){return t in CHUNK_SIZES?t:CHUNK_METHOD_ALIASES[t]||null}function announceChunkSavings(t){let e=getSavingsKey(t);if(!e)return;let r=CHUNK_SIZES[e];if(!r)return;let o=`\u{1F4BE} ${e===t||!t?e:`${e} (requested as "${t}")`} chunk unavailable - keeping the feature disabled is saving ~${r}KB`;logFeature("info","Chunk savings applied",{chunkName:e,requestedName:t,savedKB:r})}var getFeatureConfig=()=>{try{let e=require("vscode").workspace.getConfiguration("explorerDates"),r=isWebRuntime(),n=o=>r?!1:o;return{enableOnboarding:e.get("enableOnboardingSystem",!0),enableExportReporting:n(e.get("enableExportReporting",!0)),enableWorkspaceTemplates:n(e.get("enableWorkspaceTemplates",!0)),enableAnalysisCommands:e.get("enableAnalysisCommands",!0),enableAdvancedCache:n(e.get("enableAdvancedCache",!0)),enableWorkspaceIntelligence:n(e.get("enableWorkspaceIntelligence",!0)),enableIncrementalWorkers:n(e.get("enableIncrementalWorkers",!1)),enableGitInsights:n(e.get("enableGitInsights",!0)),enableExtensionApi:e.get("enableExtensionApi",!0)}}catch{let t=isWebRuntime(),e=r=>t?!1:r;return{enableOnboarding:!0,enableExportReporting:e(!0),enableWorkspaceTemplates:e(!0),enableAnalysisCommands:!0,enableAdvancedCache:e(!0),enableWorkspaceIntelligence:e(!0),enableIncrementalWorkers:e(!1),enableGitInsights:e(!0),enableExtensionApi:!0}}},featureLoaders=new Map,chunkResolver=null;function setFeatureChunkResolver(t){if(t&&typeof t!="function")throw new Error("Feature chunk resolver must be a function");chunkResolver=t||null}function registerFeatureLoader(t,e){if(typeof e!="function")throw new Error(`Feature loader for "${t}" must be a function`);featureLoaders.set(t,e)}function unregisterFeatureLoader(t){featureLoaders.delete(t)}function clearFeatureLoaders(){featureLoaders.clear()}async function loadFeatureModule(t){LAST_FEATURE_FAILURES.delete(t);let e=featureLoaders.get(t);if(!e&&chunkResolver&&(e=()=>chunkResolver(t)),!e)return logFeature("warn","No loader registered for feature",{feature:t}),null;try{return await runWithChunkTimeout(()=>e(),t)}catch(r){return LAST_FEATURE_FAILURES.set(t,r),logFeature("warn","Feature loader failed",{feature:t,error:r.message,code:r.code,networkIssue:isLikelyNetworkIssue(r)}),announceChunkSavings(t),null}}function getFeatureLoadFailure(t){return LAST_FEATURE_FAILURES.get(t)}function registerDefaultLoaders(){getAllChunkNames().forEach(e=>{featureLoaders.has(e)||registerFeatureLoader(e,createDefaultLoader(e))})}function createDefaultLoader(t){return async()=>{if(chunkResolver&&typeof chunkResolver=="function")try{let o=await runWithChunkTimeout(()=>chunkResolver(t),t);if(o)return o;logFeature("info","Chunk resolver returned no module",{chunkName:t})}catch(o){logResolverFailure(t,o)}let e=tryRequireDevChunk(t);if(e)return e;let r=tryRequireLocalBuiltChunk(t);if(r)return r;let n=tryLoadBuiltChunk(t);return n||(logFeature("warn","No built artifact available for chunk",{chunkName:t}),null)}}var featureFlags={async onboarding(){return getFeatureConfig().enableOnboarding?loadFeatureModule("onboarding"):(logFeatureDisabled("onboarding","onboarding"),null)},async exportReporting(){return getFeatureConfig().enableExportReporting?loadFeatureModule("reporting"):(logFeatureDisabled("exportReporting","exportReporting"),null)},async workspaceTemplates(){return getFeatureConfig().enableWorkspaceTemplates?loadFeatureModule("templates"):(logFeatureDisabled("workspaceTemplates","workspaceTemplates"),null)},async analysisCommands(){return getFeatureConfig().enableAnalysisCommands?loadFeatureModule("analysis"):(logFeatureDisabled("analysisCommands","analysisCommands"),null)},async advancedCache(){return getFeatureConfig().enableAdvancedCache?loadFeatureModule("advancedCache"):(logFeatureDisabled("advancedCache","advancedCache"),null)},async workspaceIntelligence(){return getFeatureConfig().enableWorkspaceIntelligence?loadFeatureModule("workspaceIntelligence"):(logFeatureDisabled("workspaceIntelligence","workspaceIntelligence"),null)},async incrementalWorkers(){return getFeatureConfig().enableIncrementalWorkers?loadFeatureModule("incrementalWorkers"):(logFeatureDisabled("incrementalWorkers","incrementalWorkers"),null)},async extensionApi(){return getFeatureConfig().enableExtensionApi?loadFeatureModule("extensionApi"):(logFeatureDisabled("extensionApi","extensionApi"),null)},async uiAdapters(){return loadFeatureModule("uiAdapters")},async batchProcessor(){return loadFeatureModule("batchProcessor")},async decorationsAdvanced(){return loadFeatureModule("decorationsAdvanced")},async decorationsProviderImpl(){return loadFeatureModule("decorationsProviderImpl")},async gitInsights(){return getFeatureConfig().enableGitInsights?loadFeatureModule("gitInsights"):(logFeatureDisabled("gitInsights","gitInsights"),null)},isEnabled(t){let e=getFeatureConfig();return{onboarding:e.enableOnboarding,exportReporting:e.enableExportReporting,workspaceTemplates:e.enableWorkspaceTemplates,analysisCommands:e.enableAnalysisCommands,advancedCache:e.enableAdvancedCache,workspaceIntelligence:e.enableWorkspaceIntelligence,incrementalWorkers:e.enableIncrementalWorkers,extensionApi:e.enableExtensionApi}[t]??!0},getEnabledFeatures(){let t=getFeatureConfig(),e=[];return t.enableOnboarding&&e.push("onboarding"),t.enableExportReporting&&e.push("exportReporting"),t.enableWorkspaceTemplates&&e.push("workspaceTemplates"),t.enableAnalysisCommands&&e.push("analysisCommands"),t.enableAdvancedCache&&e.push("advancedCache"),t.enableWorkspaceIntelligence&&e.push("workspaceIntelligence"),t.enableIncrementalWorkers&&e.push("incrementalWorkers"),t.enableExtensionApi&&e.push("extensionApi"),e},calculateSavings(){let t=getFeatureConfig(),e=0;return t.enableOnboarding||(e+=34),t.enableExportReporting||(e+=17),t.enableExtensionApi||(e+=15),t.enableWorkspaceTemplates||(e+=14),t.enableWorkspaceIntelligence||(e+=12),t.enableAnalysisCommands||(e+=8),t.enableAdvancedCache||(e+=5),e}};for(let[t,e]of Object.entries(CHUNK_METHOD_ALIASES))!featureFlags[t]&&typeof featureFlags[e]=="function"&&(featureFlags[t]=(...r)=>featureFlags[e](...r));function calculateSavings(t){t||(t=getFeatureConfig());let e=267,r=0;t.enableOnboarding||(r+=34),t.enableExportReporting||(r+=17),t.enableExtensionApi||(r+=15),t.enableWorkspaceTemplates||(r+=14),t.enableWorkspaceIntelligence||(r+=12),t.enableIncrementalWorkers||(r+=19),t.enableAnalysisCommands||(r+=8),t.enableAdvancedCache||(r+=5);let n=e-r,o=r>0?Math.round(r/e*100):0;return{baseSize:`${e}KB`,totalSavings:`${r}KB`,optimizedSize:`${n}KB`,percentage:o}}registerDefaultLoaders();var exportedFeatureFlags={...featureFlags,getFeatureConfig,calculateSavings,registerFeatureLoader,setFeatureChunkResolver,unregisterFeatureLoader,clearFeatureLoaders,loadFeatureModule,getFeatureLoadFailure,registerDefaultLoaders};registerFeatureFlagsGlobal(exportedFeatureFlags);module.exports=exportedFeatureFlags});var hr=f((ia,mr)=>{var Ce=require("vscode");function dr(){try{let t=Ce.workspace.workspaceFolders;return!t||t.length===0?!1:t.every(e=>e.uri.scheme!=="file")}catch{return!1}}function gr(){try{let t=Ce.workspace.workspaceFolders;return!t||t.length===0?!1:t.some(e=>e.uri.scheme!=="file")}catch{return!1}}function pr(){try{return Ce.workspace.workspaceFolders?.[0]?.uri?.scheme||"file"}catch{return"file"}}function fr(){try{let t=Ce.workspace.workspaceFolders||[],e=new Set(t.map(r=>r.uri.scheme||"file"));return Array.from(e)}catch{return["file"]}}function Co(t){if(!t)return!1;try{return typeof t=="string"?t.startsWith("file://")||!t.includes("://"):t.scheme==="file"||!t.scheme}catch{return!1}}function So(t){return!!t}function Do(){let t=dr(),e=gr(),r=fr(),n=pr(),o="local",a="Local file system workspace";return t?(o="virtual",n==="vscode-vfs"?a="VS Code for Web (browser-based)":n==="github"?a="GitHub Repositories (remote)":a=`Virtual workspace (${n} scheme)`):e&&(o="mixed",a="Mixed local and virtual folders"),{type:o,description:a,primaryScheme:n,schemes:r,isVirtual:t,hasVirtual:e}}mr.exports={isVirtualWorkspace:dr,hasVirtualFolders:gr,getPrimaryWorkspaceScheme:pr,getWorkspaceSchemes:fr,canUseNodeFS:Co,canUseVSCodeFS:So,getWorkspaceTypeInfo:Do}});var vr=f((la,Er)=>{var{normalizePath:Ke,getUriPath:ko}=ie(),{getLogger:xo}=k(),re=typeof process<"u"&&process.env?process.env:{},To=xo(),ne=240,Ve=255,wr=/[\x00-\x1f\x7f<>:"|?*]/g,Ao=/[\x00-\x1f\x7f<>:"|?*]/,Ro=[/\.\./,/\.\.[\\/]/,/[\\/]\.\./,/^\.\.$/,/^\.\.[\\/]/,/[\\/]\.\.$/],br=new Set(["CON","PRN","AUX","NUL","COM1","COM2","COM3","COM4","COM5","COM6","COM7","COM8","COM9","LPT1","LPT2","LPT3","LPT4","LPT5","LPT6","LPT7","LPT8","LPT9"]),yr=new Set([".exe",".scr",".bat",".cmd",".pif",".vbs",".js",".jar",".com",".msi",".dll",".dmg",".pkg",".deb",".rpm"]),Fo=new Set([".js",".jsx",".ts",".tsx",".mjs",".cjs",".py",".rb",".rs",".go",".php",".java",".kt",".swift",".cs",".c",".cpp",".h",".hpp",".html",".css",".scss",".less",".json",".jsonc",".md",".mdx",".txt",".sh",".bash",".yml",".yaml"]),_o=()=>re.EXPLORER_DATES_TEST_MODE==="1"||re.NODE_ENV==="test"||re.VSCODE_TEST==="1"?"test":re.EXPLORER_DATES_DEV_MODE==="1"||re.NODE_ENV==="development"?"development":"production",j=class{static hasPathTraversal(e){let r=this.f(e);if(!r||typeof r!="string")return!1;let n=Ke(r);return Ro.some(o=>o.test(n))}static hasDangerousChars(e){let r=this.f(e);return!r||typeof r!="string"?!1:Ao.test(r)}static isWindowsReservedName(e){if(!e||typeof e!="string")return!1;let r=e.split(".")[0].toUpperCase();return br.has(r)}static isSuspiciousExtension(e,r={}){let{workspaceContext:n=!0}=r;if(!e||typeof e!="string")return!1;let o=e.toLowerCase(),a=o.startsWith(".")?o:`.${o}`;return n&&Fo.has(a)?!1:yr.has(a)}static isPathTooLong(e){let r=this.f(e);return!r||typeof r!="string"?!1:r.length>ne}static isFilenameTooLong(e){return!e||typeof e!="string"?!1:e.length>Ve}static validatePath(e,r={}){let{allowSuspiciousExtensions:n=!1,allowWindowsReservedNames:o=!1,strictLength:a=!0,workspaceContext:s=!0}=r,l=this.f(e),i=[],c=[];if(!l||typeof l!="string")return{isValid:!1,path:l,issues:["Invalid or empty path"],warnings:[],isSafe:!1};this.hasPathTraversal(l)&&i.push("Path contains directory traversal attempts"),this.hasDangerousChars(l)&&i.push("Path contains dangerous characters"),a&&this.isPathTooLong(l)&&i.push(`Path exceeds maximum length (${ne})`);let u=l.split(/[/\\]/).pop()||"";a&&this.isFilenameTooLong(u)&&i.push(`Filename exceeds maximum length (${Ve})`),!o&&this.isWindowsReservedName(u)&&c.push("Filename is a Windows reserved name");let g=u.includes(".")?u.split(".").pop():"";return!n&&this.isSuspiciousExtension(g,{workspaceContext:s})&&c.push("File extension is potentially suspicious"),{isValid:i.length===0,path:l,filename:u,extension:g,issues:i,warnings:c,isSafe:i.length===0&&c.length===0}}static sanitizePath(e,r={}){let{replacementChar:n="_",preserveExtension:o=!0}=r,a=this.f(e);if(!a||typeof a!="string")return"";a=a.replace(/\x00/g,"");let s=a.startsWith("/"),l=Ke(a).split("/").filter(Boolean),i=[];for(let c of l){if(c===".."){i.length>0&&i.pop();continue}c!=="."&&i.push(c)}if(a=(s?"/":"")+i.join("/"),a=a.replace(wr,n),o){let c=a.split("/"),u=c[c.length-1];if(u&&this.isWindowsReservedName(u)){let g=u.split(".");g[0]=g[0]+"_safe",c[c.length-1]=g.join("."),a=c.join("/")}}return a.length>ne&&(a=a.substring(0,ne),To.warn("Path truncated due to length:",a)),a}static isWithinBoundaries(e,r=[]){let n=this.f(e);if(!n||!Array.isArray(r)||r.length===0)return!1;let o=n.split("/").filter(Boolean),a=[];for(let l of o)l===".."?a.length>0&&a.pop():l!=="."&&a.push(l);let s="/"+a.join("/");return r.some(l=>{let i=Ke(l);return s.startsWith(i)})}static validateRegexPattern(e){if(!e||typeof e!="string")return{isValid:!1,issue:"Invalid pattern"};let r=[/\([^)]*\+[^)]*\)\+/,/\([^)]*\*[^)]*\)\*/,/\([^)]*\+[^)]*\)\*/,/\([^)]*\*[^)]*\)\+/,/\+.*\*|{\d+,}.*\*/,/\([^|]*\|[^)]*\)\*/];for(let n of r)if(n.test(e))return{isValid:!1,issue:"Pattern may cause catastrophic backtracking (ReDoS)"};try{return new RegExp(e),{isValid:!0}}catch(n){return{isValid:!1,issue:`Invalid regex syntax: ${n.message}`}}}static f(e){if(!e)return"";if(typeof e=="string")return e;try{return ko(e)}catch{return String(e)}}},Be=class{static validateFileUri(e,r=[]){if(!e||typeof e!="object")return{isValid:!1,issue:"Invalid URI object"};if(e.scheme!=="file"&&e.scheme!=="vscode-vfs")return{isValid:!1,issue:`Unsupported URI scheme: ${e.scheme}`};let n=j.validatePath(e);return n.isValid?r.length>0&&!j.isWithinBoundaries(e,r)?{isValid:!1,issue:"Path is outside allowed workspace boundaries"}:{isValid:!0,warnings:n.warnings}:{isValid:!1,issue:`Path validation failed: ${n.issues.join(", ")}`}}static validateExclusionPatterns(e){if(!Array.isArray(e))return{isValid:!1,issue:"Patterns must be an array"};let r=[],n=[];for(let o of e){if(typeof o!="string"){n.push(`Invalid pattern type: ${typeof o}`);continue}let a=o.replace(/\./g,"\\.").replace(/\*/g,".*").replace(/\?/g,"."),s=j.validateRegexPattern(a);r.push({pattern:o,isValid:s.isValid,issue:s.issue}),s.isValid||n.push(`Pattern "${o}": ${s.issue}`)}return{isValid:n.length===0,results:r,issues:n}}};Er.exports={SecurityValidator:j,SecureFileOperations:Be,detectSecurityEnvironment:_o,MAX_SAFE_PATH_LENGTH:ne,MAX_SAFE_FILENAME_LENGTH:Ve,DANGEROUS_PATH_CHARS:wr,WINDOWS_RESERVED_NAMES:Array.from(br),SUSPICIOUS_EXTENSIONS:Array.from(yr)}});var Cr=f((exports,module)=>{var vscode=require("vscode"),getLogger=()=>{try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let t=dynamicRequire("./chunks/logger-chunk");if(t&&typeof t.getLogger=="function")return getLogger=t.getLogger,getLogger()}}catch{}try{return getLogger=k().getLogger,getLogger()}catch{return getLogger=()=>({debug:(()=>{})?.bind(console)||console.log,info:(()=>{}).bind(console),warn:(()=>{}).bind(console),error:(()=>{}).bind(console)}),getLogger()}},{fileSystem}=ge(),env=typeof process<"u"&&process.env?process.env:{},{formatFileSize}=_e(),getFileName=p=>{try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let t=null;try{t=dynamicRequire("../chunks/utils-shared-chunk")}catch{}try{t||(t=dynamicRequire("./chunks/utils-shared-chunk"))}catch{}try{t||(t=dynamicRequire("./chunks/path-utils-chunk"))}catch{}if(t&&typeof t.getFileName=="function")return getFileName=t.getFileName,getFileName(p)}}catch{}try{let e=String(p||"").replace(/\\/g,"/"),r=e.lastIndexOf("/");return r===-1?e:e.substring(r+1)}catch{return"unknown"}},getExtension=p=>{try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let t=null;try{t=dynamicRequire("../chunks/utils-shared-chunk")}catch{}try{t||(t=dynamicRequire("./chunks/utils-shared-chunk"))}catch{}try{t||(t=dynamicRequire("./chunks/path-utils-chunk"))}catch{}if(t&&typeof t.getExtension=="function")return getExtension=t.getExtension,getExtension(p)}}catch{}try{let t=String(p||""),e=t.lastIndexOf(".");return e<=0?"":t.substring(e).toLowerCase()}catch{return""}},buildCacheKey=p=>{try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let t=null;try{t=dynamicRequire("../chunks/utils-shared-chunk")}catch{}try{t||(t=dynamicRequire("./chunks/utils-shared-chunk"))}catch{}try{t||(t=dynamicRequire("./chunks/path-utils-chunk"))}catch{}if(t&&typeof t.getCacheKey=="function")return buildCacheKey=t.getCacheKey,buildCacheKey(p)}}catch{}return String(p||"").toLowerCase().replace(/\\/g,"/")},normalizePath=input=>{try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let t=null;try{t=dynamicRequire("../chunks/utils-shared-chunk")}catch{}try{t||(t=dynamicRequire("./chunks/utils-shared-chunk"))}catch{}try{t||(t=dynamicRequire("./chunks/path-utils-chunk"))}catch{}if(t&&typeof t.normalizePath=="function")return normalizePath=t.normalizePath,normalizePath(input)}}catch{}return String(input||"").replace(/\\/g,"/")},getUriPath=(target="")=>{try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let t=null;try{t=dynamicRequire("../chunks/utils-shared-chunk")}catch{}try{t||(t=dynamicRequire("./chunks/utils-shared-chunk"))}catch{}try{t||(t=dynamicRequire("./chunks/path-utils-chunk"))}catch{}if(t&&typeof t.getUriPath=="function")return getUriPath=t.getUriPath,getUriPath(target)}}catch{}if(!target)return"";if(typeof target=="string")return target;if(typeof target.fsPath=="string"&&target.fsPath.length>0)return target.fsPath;if(typeof target.path=="string"&&target.path.length>0)return target.path;if(typeof target.toString=="function")try{return target.toString(!0)}catch{return target.toString()}return String(target)},{DEFAULT_CACHE_TIMEOUT,DEFAULT_MAX_CACHE_SIZE,GLOBAL_STATE_KEYS,DEFAULT_DECORATION_POOL_SIZE,DEFAULT_FLYWEIGHT_CACHE_SIZE,WORKSPACE_SCALE_EXTREME_THRESHOLD}=N(),{isWebEnvironment}=Q(),{getSettingsCoordinator}=te(),{SecurityValidator,SecureFileOperations,detectSecurityEnvironment}=vr(),DISABLE_GIT_FEATURES=env.EXPLORER_DATES_DISABLE_GIT_FEATURES==="1",IS_WEB_ENV=isWebEnvironment()||env.VSCODE_WEB==="true",nodePath=null;try{IS_WEB_ENV||(nodePath=require("path"))}catch{nodePath=null}var pathCompat={basename:t=>{if(!t)return"";try{if(!IS_WEB_ENV)return require("path").basename(t)}catch{let e=t.replace(/\\/g,"/"),r=e.lastIndexOf("/");return r===-1?e:e.substring(r+1)}},dirname:t=>{if(!t)return".";try{if(!IS_WEB_ENV)return require("path").dirname(t)}catch{let e=t.replace(/\\/g,"/"),r=e.lastIndexOf("/");return r===-1?".":e.substring(0,r)}}};(async()=>{try{let e=await ve().decorationsStatic();e&&(e.basename&&e.dirname&&(pathCompat.basename=e.basename,pathCompat.dirname=e.dirname),e.describeFile&&(exports.Ue=e.describeFile))}catch{}})();var CONFIG_DEFAULT_CACHE_TIMEOUT=3e4,CACHE_NAMESPACE_SEPARATOR="::",DEFAULT_DYNAMIC_WATCHER_LIMIT=Number(env.EXPLORER_DATES_MAX_DYNAMIC_WATCHERS||200),DEFAULT_WATCHER_INACTIVITY_MS=Number(env.EXPLORER_DATES_WATCHER_TTL_MS||600*1e3),DEFAULT_SMART_WATCHER_EXTENSIONS=["js","ts","json","md","py","java"],SMART_WATCHER_PRIORITY=new Map([["src",100],["lib",65],["test",30]]),WORKSPACE_SCAN_TIMEOUT_MS=Number(env.EXPLORER_DATES_WORKSPACE_SCAN_TIMEOUT||7e3),WORKSPACE_SCAN_TIMEOUT_FALLBACK_COUNT=WORKSPACE_SCALE_EXTREME_THRESHOLD,VIEWPORT_DEFAULT_WINDOW_MS=300*1e3,DEFAULT_VIEWPORT_HISTORY_LIMIT=Number(env.EXPLORER_DATES_VIEWPORT_HISTORY_LIMIT||400),FEATURE_LEVELS=["full","enhanced","standard","minimal"],DEFAULT_INDEXER_MAX_FILES=Math.max(100,Number(env.EXPLORER_DATES_INDEXER_MAX_FILES||2e3)),SECURITY_EXTRA_PATHS_ENV="EXPLORER_DATES_SECURITY_EXTRA_PATHS",DEFAULT_SECURITY_THROTTLE_MS=Number(env.EXPLORER_DATES_SECURITY_WARNING_THROTTLE_MS||5e3),SECURITY_WARNING_CACHE_LIMIT=Number(env.EXPLORER_DATES_SECURITY_WARNING_CACHE||500),DEFAULT_SECURITY_MAX_WARNINGS=Number(env.EXPLORER_DATES_SECURITY_MAX_WARNINGS_PER_FILE??1),describeFile=(t="")=>{try{let e=typeof t=="string"?t:getUriPath(t),r=normalizePath(e);return getFileName(r)||r||"unknown"}catch{return"unknown"}};(async()=>{try{let e=await ve().decorationsStatic();e&&typeof e.describeFile=="function"&&(describeFile=e.describeFile)}catch{}})();var LazyHierarchicalDecorationCache=class{constructor(){this.l=new Map}get size(){return this.l.size}get bucketCount(){return 0}clear(){this.l.clear()}get(e){return this.l.get(e)}set(e,r){this.l.set(e,r)}delete(e){return this.l.delete(e)}*entries(){yield*this.l.entries()}*keys(){yield*this.l.keys()}*values(){yield*this.l.values()}[Symbol.iterator](){return this.entries()}enforceLimit(){return 0}},FileDateDecorationProviderImpl=class{constructor(...args){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let t=dynamicRequire("./chunks/file-date-provider-impl");if(t&&typeof t.FileDateDecorationProviderImpl=="function")return new t.FileDateDecorationProviderImpl(...args);if(t&&typeof t.FileDateDecorationProvider=="function")return new t.FileDateDecorationProvider(...args)}}catch(t){}throw new Error("FileDateDecorationProvider implementation is not available in this environment")}},FileDateDecorationProvider=class{constructor(...args){let loaderError=null;try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function")try{let t=null;try{t=dynamicRequire("./chunks/file-date-provider-impl-export")}catch{}if(t){let r=t.FileDateDecorationProvider||t.FileDateDecorationProviderImpl||t.default;return typeof r=="function"?new r(...args):new FileDateDecorationProviderImpl(...args)}t=dynamicRequire("./chunks/file-date-provider-impl");let e=t&&(t.FileDateDecorationProvider||t.FileDateDecorationProviderImpl||t.default);if(typeof e=="function")return new e(...args)}catch(t){loaderError=t}try{let t=null;try{t=require.resolve("./chunks/file-date-provider-impl-export",{paths:[__dirname]})}catch{}t||(t=require.resolve("./chunks/file-date-provider-impl",{paths:[__dirname]}));let e=require(t),r=e&&(e.FileDateDecorationProvider||e.FileDateDecorationProviderImpl||e.default);if(t&&t.endsWith("file-date-provider-impl-export.js")&&!r)return new FileDateDecorationProviderImpl(...args);if(typeof r=="function")return new r(...args)}catch(t){loaderError=loaderError||t}}catch(t){loaderError=loaderError||t}if(loaderError&&loaderError.message){let t=`FileDateDecorationProvider implementation is unavailable: ${loaderError.message}`;throw new Error(t)}throw new Error("FileDateDecorationProvider implementation is unavailable")}};module.exports={FileDateDecorationProvider,FileDateDecorationProviderImpl}});var Sr=f((exports,module)=>{var vscode=require("vscode"),env=typeof process<"u"&&process.env?process.env:{},{getLogger}=k(),l10n;async function ensureLocalization(){return l10n||(l10n=(await Promise.resolve().then(()=>X(J()))).getLocalization()),l10n}var{fileSystem}=ge(),{registerCoreCommands}=$t(),{registerOnboardingCommands}=zt(),{registerMigrationCommands}=Yt(),{commandCancellation,commandEmpty,commandSuccess,isCommandOutcome,OUTCOME_CATEGORIES}=Me(),{initializeTemplateStore}=Xt(),{SettingsMigrationManager}=Qt(),{ExtensionError,ERROR_CODES,ChunkLoadError,handleChunkFailure}=Ae(),{isWebDiagnosticsEnabled,diagLog,recordCommandRegistration,recordCommandInvocation,recordCommandResult,recordChunkEvent,recordProviderEvent,getWebDiagnosticsState}=B(),ensureDate;try{let t=ue();t&&(ensureDate=t.ensureDate)}catch{}ensureDate||(ensureDate=Fe().ensureDate);var{WEB_CHUNK_GLOBAL_KEY,LEGACY_WEB_CHUNK_GLOBAL_KEY}=N(),isWebEnvironment=()=>{try{if(typeof process<"u")return!0}catch{}try{return vscode?.env?.uiKind===vscode?.UIKind?.Web}catch{return!1}};if(isWebEnvironment()&&typeof globalThis<"u"&&!globalThis.O)try{globalThis.O=ze()}catch{}var nodeFs=null,nodePath=null,webTextDecoder=typeof TextDecoder=="function"?new TextDecoder("utf-8"):null;if(!isWebEnvironment()){try{nodeFs=require("fs")}catch{nodeFs=null}try{nodePath=require("path")}catch{nodePath=null}}var AUTO_SUGGESTION_DELAY_MS=3e3;function getCriticalChunks(){return isWebEnvironment()?[]:["incrementalWorkers"]}function resolveDefaultDistPath(){return!nodePath||typeof nodePath.basename!="function"||typeof nodePath.join!="function"?null:nodePath.basename(__dirname)==="dist"?__dirname:nodePath.join(__dirname,"dist")}var DEFAULT_DIST_PATH=resolveDefaultDistPath(),fileDateProvider,logger,runtimeAutoSuggestionTimer=null,activeRuntimeManager=null,activeTeamPersistenceManager=null,_warnedWorkspaces=new Set,ANALYSIS_WARNING_WORKSPACE_KEY="explorerDates.analysisCommandsDisabledWarningByWorkspace";if(typeof globalThis<"u"&&!globalThis.k)try{globalThis.k=new WeakMap}catch{globalThis.k=null}function getActiveLogger(){return logger||(logger=getLogger()),logger}function getWorkspaceId(){return vscode.workspace.workspaceFolders?.[0]?.uri?.toString()||"global"}function hasShownAnalysisWarning(t){let e=getWorkspaceId(),r=t?.globalState?.get?t.globalState.get(ANALYSIS_WARNING_WORKSPACE_KEY,{}):{},n=typeof globalThis<"u"?globalThis.k:null,o=n&&n.has(t)?n.get(t):{};return!!r[e]||!!o[e]||_warnedWorkspaces.has(e)}async function setAnalysisWarningShown(t,e){let r=getWorkspaceId(),n=t?.globalState?.get?t.globalState.get(ANALYSIS_WARNING_WORKSPACE_KEY,{}):{};n[r]=e,e?_warnedWorkspaces.add(r):_warnedWorkspaces.delete(r);let o=typeof globalThis<"u"?globalThis.k:null;if(o&&t)try{o.set(t,n)}catch{}await t.globalState.update(ANALYSIS_WARNING_WORKSPACE_KEY,n)}var{registerFeatureFlagsGlobal}=ye(),featureFlagsModule=ve();registerFeatureFlagsGlobal(featureFlagsModule);var featureFlags=featureFlagsModule,{setFeatureChunkResolver}=featureFlagsModule,{CHUNK_MAP,generateDevLoaderMap}=He(),sourceChunkLoader=(()=>{if(typeof process>"u"||env.NODE_ENV==="production")return null;try{let localRequire=eval("require");return t=>{try{let r=generateDevLoaderMap(localRequire)[t]?.();return r?.default||r||null}catch(e){let r=new ExtensionError(ERROR_CODES.CHUNK_LOAD_FAILED,`Source chunk fallback failed for ${t}`,{chunkName:t,source:"development",error:e.message});return getActiveLogger().warn(r.message,r.context),null}}}catch{return null}})(),chunkLoader={loadedChunks:new Map,distPath:DEFAULT_DIST_PATH,extensionUri:null,webChunkPromises:new Map,ee:new Set,N:new Set,c:null,initialize(t){nodePath&&(typeof t?.asAbsolutePath=="function"?this.distPath=t.asAbsolutePath("dist"):t?.extensionPath&&(this.distPath=nodePath.join(t.extensionPath,"dist"))),t?.extensionUri&&(this.extensionUri=t.extensionUri),this.c||(this.c=this.Fe())},async loadChunk(t){if(this.loadedChunks.has(t))return this.loadedChunks.get(t);try{isWebDiagnosticsEnabled()&&recordChunkEvent(t,"load:start");let e=isWebEnvironment()?null:this._e(t);if(isWebEnvironment()){let r=this.U()?.[t]??null;return r&&(this.loadedChunks.set(t,r),getActiveLogger().info("Chunk loaded",{chunkName:t,target:"web"}),isWebDiagnosticsEnabled()&&recordChunkEvent(t,"load:success")),r}return e&&(this.loadedChunks.set(t,e),getActiveLogger().info("Chunk loaded",{chunkName:t,target:"node"}),isWebDiagnosticsEnabled()&&recordChunkEvent(t,"load:success")),e}catch(e){isWebDiagnosticsEnabled()&&recordChunkEvent(t,"load:failure",e);let r=e instanceof ExtensionError?e:new ExtensionError(ERROR_CODES.CHUNK_LOAD_FAILED,`Failed to load chunk ${t}`,{chunkName:t,target:isWebEnvironment()?"web":"node",error:e?.message});return getActiveLogger().warn(r.message,r.context),null}},assertChunkArtifacts(t=[]){if(!nodeFs||!this.distPath||!Array.isArray(t)||t.length===0)return;let e=t.filter(r=>!this.Pe(r));if(e.length>0){let r=new ChunkLoadError(e.join(", "),"missing built artifacts",{recoverable:!1,context:{chunkNames:e,distPath:this.distPath,fix:'Run "npm run package-chunks" before packaging or testing.'}});throw handleChunkFailure(e.join(", "),r,{userFacing:!0}),r}},Pe(t){if(!nodeFs||!this.distPath)return!0;let e=nodePath.join(this.distPath,"chunks",`${t}.js`),r=nodePath.join(this.distPath,"web-chunks",`${t}.js`);return isWebEnvironment()?nodeFs.existsSync(r):nodeFs.existsSync(e)},_e(t){if(nodeFs&&nodePath&&this.distPath){let e=nodePath.join(this.distPath,"chunks",`${t}.js`);if(nodeFs.existsSync(e))try{let r=require(e);return r?.default&&(r=r.default),r}catch(r){let n=new ExtensionError(ERROR_CODES.CHUNK_LOAD_FAILED,`Failed to require built chunk ${t}`,{chunkName:t,path:e,error:r.message});getActiveLogger().warn(n.message,n.context)}}return sourceChunkLoader?sourceChunkLoader(t):(this.te(t),null)},async x(t){if(!this.extensionUri){let e=new ExtensionError(ERROR_CODES.CHUNK_LOAD_FAILED,"Missing extensionUri for web chunk loading",{chunkName:t});return getActiveLogger().warn(e.message,e.context),null}if(!this.webChunkPromises.has(t)){let e=(async()=>{await this.Me(t);let n=this.U()?.[t];if(!n)throw new Error(`Web chunk ${t} failed to register`);return n})();this.webChunkPromises.set(t,e)}return this.webChunkPromises.get(t)},async Me(t){if(this.ee.has(t))return;let e=vscode.Uri.joinPath(this.extensionUri,"dist","web-chunks",`${t}.js`);if(!vscode.workspace?.fs||!webTextDecoder)throw new Error("Workspace FS or TextDecoder unavailable for web chunk loading");try{let r=await vscode.workspace.fs.readFile(e),n=webTextDecoder.decode(r),o=s=>this.We(s);new Function("require",n).call(globalThis,o),this.re(),this.ee.add(t)}catch(r){throw this.te(t),r}},U(){let t=globalThis[WEB_CHUNK_GLOBAL_KEY]||globalThis[LEGACY_WEB_CHUNK_GLOBAL_KEY]||null;return t&&this.re(),t},re(){let t=globalThis[WEB_CHUNK_GLOBAL_KEY]||globalThis[LEGACY_WEB_CHUNK_GLOBAL_KEY]||{};globalThis[WEB_CHUNK_GLOBAL_KEY]||(globalThis[WEB_CHUNK_GLOBAL_KEY]=t),globalThis[LEGACY_WEB_CHUNK_GLOBAL_KEY]||(globalThis[LEGACY_WEB_CHUNK_GLOBAL_KEY]=t)},Fe(){let t=new Map,e=Object.entries(CHUNK_MAP||{});for(let[r,n]of e){let o=String(n||"").split("/").pop();o&&t.set(o,r)}return t},Ie(t){if(!t)return null;let e=String(t).replace(/^[.\\/]+/,"").replace(/\.js$/,"");if(this.c&&this.c.has(e))return this.c.get(e);let r=e.split("/").pop();return this.c&&this.c.has(r)?this.c.get(r):null},We(t){if(t==="vscode")return vscode;let e=this.U();if(!e)throw new Error(`Web require failed: registry unavailable for ${t}`);let r=this.Ie(t);if(r&&e[r])return e[r];if(e[t])return e[t];if((t==="../commands/runtimeCommands"||t==="./commands/runtimeCommands")&&typeof globalThis<"u"&&globalThis.O)return globalThis.O;throw new Error(`Web require unsupported: ${t}`)},te(t){if(this.N.has(t))return;this.N.add(t);let e=new ChunkLoadError(t,"artifact unavailable",{recoverable:!1,context:{chunkName:t,distPath:this.distPath,fix:'Run "npm run package-chunks" to rebuild runtime chunks.'}});getActiveLogger().error(e.message,e),handleChunkFailure(t,e,{userFacing:!1})}},dynamicImports={async loadOnboarding(t){let e=await featureFlags.onboarding();return e?typeof e.createOnboardingManager=="function"?e.createOnboardingManager(t):e.OnboardingManager?new e.OnboardingManager(t):null:null},async loadExportReporting(t){let e=await featureFlags.exportReporting();return typeof e?.createExportReportingManager=="function"?e.createExportReportingManager(t):null},async loadWorkspaceTemplates(t){let e=await featureFlags.workspaceTemplates();return typeof e?.createWorkspaceTemplatesManager=="function"?e.createWorkspaceTemplatesManager(t):e?.WorkspaceTemplatesManager?new e.WorkspaceTemplatesManager(t):null},async loadAnalysisCommands(){return featureFlags.analysisCommands()},async loadExtensionApi(t){let e=await featureFlags.extensionApi();if(!e)return null;if(typeof e=="function"){if(e.name==="createExtensionApiManager")return e(t);try{return new e}catch{return null}}else{if(typeof e.createExtensionApiManager=="function")return e.createExtensionApiManager(t);if(e.ExtensionApiManager)return new e.ExtensionApiManager}return null}},onboardingManagerPromise=null,workspaceTemplatesManagerPromise=null,exportReportingManagerPromise=null,extensionApiManagerPromise=null;function shouldPrimeOnboardingChunk(t){if(!t?.globalState)return!0;let e=t.globalState.get("explorerDates.hasShownWelcome",!1),r=t.globalState.get("explorerDates.hasCompletedSetup",!1),n=t.globalState.get("explorerDates.onboardingVersion","0.0.0"),o=t.extension?.packageJSON?.version||"0.0.0";return!e||!r?!0:isMajorVersionUpdate(n,o)}function isMajorVersionUpdate(t,e){let r=a=>{let[s="0"]=(a||"").split("."),l=Number.parseInt(s,10);return Number.isFinite(l)?l:0},n=r(t);return r(e)>n}function ensureOnboardingManager(t){return onboardingManagerPromise||(onboardingManagerPromise=dynamicImports.loadOnboarding(t)),onboardingManagerPromise}function ensureWorkspaceTemplatesManager(t){return workspaceTemplatesManagerPromise||(workspaceTemplatesManagerPromise=dynamicImports.loadWorkspaceTemplates(t)),workspaceTemplatesManagerPromise}function ensureExportReportingManager(t){return exportReportingManagerPromise||(exportReportingManagerPromise=dynamicImports.loadExportReporting(t)),exportReportingManagerPromise}function ensureExtensionApiManager(t){return extensionApiManagerPromise||(extensionApiManagerPromise=dynamicImports.loadExtensionApi(t)),extensionApiManagerPromise}function raiseChunkUnavailable(t,e){let r=`${t} is not available because the required "${e}" runtime chunk failed to load. Reinstall Explorer Dates or run "npm run package-chunks" and reload VS Code.`;throw getActiveLogger().warn(r,{chunkName:e}),vscode.window.showErrorMessage(r),new ChunkLoadError(e,"chunk missing at runtime",{recoverable:!1,context:{featureLabel:t}})}function initializeStatusBar(t){let e=vscode.window.createStatusBarItem(vscode.StatusBarAlignment.Right,100);e.command="explorerDates.showFileDetails",e.tooltip="Click to show detailed file information";let r=async()=>{try{let a=vscode.window.activeTextEditor;if(!a){e.hide();return}let s=a.document.uri;if(s.scheme!=="file"){e.hide();return}let l=await fileSystem.stat(s),i=ensureDate(l.mtime),c=fileDateProvider.$e(i,"smart"),u=fileDateProvider.qe(l.size,"auto");e.text=`$(clock) ${c} $(file) ${u}`,e.show()}catch(a){e.hide(),logger.debug("Failed to update status bar",a)}},n=vscode.window.onDidChangeActiveTextEditor(r),o=vscode.window.onDidChangeTextEditorSelection(r);return r(),t.subscriptions.push(e,n,o),e}async function activate(context){try{isWebDiagnosticsEnabled()&&diagLog("info","Activation start",{uiKind:vscode?.env?.uiKind,isWeb:isWebEnvironment()}),logger=getLogger(),l10n=await ensureLocalization(),context.subscriptions.push(l10n),initializeTemplateStore(context),chunkLoader.initialize(context),chunkLoader.assertChunkArtifacts(getCriticalChunks()),setFeatureChunkResolver(t=>isWebEnvironment()?chunkLoader.x(t):chunkLoader.loadChunk(t));let remoteName=vscode?.env?.remoteName||null,uiKind=vscode?.env?.uiKind||null,isWebRuntime=uiKind===vscode.UIKind.Web,workspaceSchemes=(vscode.workspace.workspaceFolders||[]).map(t=>t?.uri?.scheme).filter(Boolean);logger.info("Explorer Dates: Extension activated"),logger.info("Explorer Dates: Activation context",{uiKind,remoteName,isWeb:isWebRuntime,workspaceSchemes}),(async()=>{try{let{getFeatureFlagsGlobal:t}=ye(),e=t(),r=e?await e.loadFeatureModule("loggerImpl"):null;if(r&&typeof r.getOrCreateLogger=="function")try{let n=r.getOrCreateLogger(),o="__explorerDatesLogger";n&&(typeof global<"u"?global[o]=n:typeof globalThis<"u"&&(globalThis[o]=n))}catch{}}catch{}})();let settingsMigrationManager=new SettingsMigrationManager;try{await settingsMigrationManager.migrateAllSettings(context)}catch(t){logger.warn("Settings migration encountered issues:",t)}let isWebUi=vscode.env.uiKind===vscode.UIKind.Web;if(isWebUi)logger.info("Skipping settings auto-organization in web runtime");else try{await settingsMigrationManager.autoOrganizeSettingsIfNeeded(context,{trigger:"activation",silent:!0})}catch(t){logger.warn("Settings organization encountered issues:",t)}let isWeb=vscode.env.uiKind===vscode.UIKind.Web,featureConfig=vscode.workspace.getConfiguration("explorerDates"),reportingEnabled=featureConfig.get("enableExportReporting",featureConfig.get("enableReporting",!0)),apiEnabled=featureConfig.get("enableExtensionApi",!0),onboardingEnabled=featureConfig.get("enableOnboardingSystem",!0),analysisEnabled=featureConfig.get("enableAnalysisCommands",!0),updateCommandContexts=async()=>{let t=vscode.workspace.getConfiguration("explorerDates"),e=t.get("enableExportReporting",t.get("enableReporting",!0)),r=t.get("enableWorkspaceTemplates",!0),n=t.get("enableWorkspaceIntelligence",!0),o=t.get("enableAnalysisCommands",!0),a=t.get("enableExtensionApi",!0),s=t.get("enableGitInsights",!0)&&!isWeb,l=typeof vscode.workspace.isTrusted<"u"?vscode.workspace.isTrusted:!0;await vscode.commands.executeCommand("setContext","explorerDates.isWeb",isWeb),await vscode.commands.executeCommand("setContext","explorerDates.isWorkspaceTrusted",l),await vscode.commands.executeCommand("setContext","explorerDates.gitFeaturesAvailable",!isWeb),await vscode.commands.executeCommand("setContext","explorerDates.gitCommandsAvailable",s),await vscode.commands.executeCommand("setContext","explorerDates.exportReportingAvailable",e&&!isWeb),await vscode.commands.executeCommand("setContext","explorerDates.workspaceTemplatesAvailable",r&&!isWeb),await vscode.commands.executeCommand("setContext","explorerDates.workspaceIntelligenceAvailable",n&&!isWeb),await vscode.commands.executeCommand("setContext","explorerDates.analysisCommandsAvailable",o&&!isWeb),await vscode.commands.executeCommand("setContext","explorerDates.extensionApiAvailable",a),await vscode.commands.executeCommand("setContext","explorerDates.runtimeCommandsAvailable",!isWeb)};await updateCommandContexts(),context.subscriptions.push(vscode.workspace.onDidChangeConfiguration(t=>{t.affectsConfiguration("explorerDates")&&updateCommandContexts().catch(e=>{logger.warn("Failed to update command contexts",e)})})),typeof vscode.workspace.onDidGrantWorkspaceTrust=="function"&&context.subscriptions.push(vscode.workspace.onDidGrantWorkspaceTrust(()=>{updateCommandContexts().catch(t=>{logger.warn("Failed to update command contexts after trust change",t)})}));let{isVirtualWorkspace}=hr(),isVirtual=isVirtualWorkspace();await vscode.commands.executeCommand("setContext","explorerDates.isVirtualWorkspace",isVirtual);let providerChunk=null;try{if(providerChunk=await(isWebEnvironment()?chunkLoader.x("providerInit"):chunkLoader.loadChunk("providerInit")),providerChunk&&typeof providerChunk.createFileDateDecorationProvider=="function"){if(isWebDiagnosticsEnabled()&&diagLog("info","Provider factory located",{source:"providerInit"}),isWeb)try{await chunkLoader.x("fileDateProviderImplExport"),isWebDiagnosticsEnabled()&&diagLog("info","Provider impl export chunk loaded",{chunkName:"fileDateProviderImplExport"}),await chunkLoader.x("fileDateProviderImpl"),isWebDiagnosticsEnabled()&&diagLog("info","Provider impl chunk loaded",{chunkName:"fileDateProviderImpl"})}catch(e){logger.warn("Failed to load provider impl chunk in web runtime",e?.message||e),isWebDiagnosticsEnabled()&&diagLog("warn","Provider impl chunk load failed",{error:e?.message||String(e)})}let t=providerChunk.createFileDateDecorationProvider(context);t&&typeof t.createFileDateDecorationProvider=="function"&&(fileDateProvider=t.createFileDateDecorationProvider(),isWebDiagnosticsEnabled()&&recordProviderEvent("created",{source:"providerInit"}))}}catch(t){logger.warn("Failed to load fileDateProvider chunk, falling back to local provider",t?.message||t),isWebDiagnosticsEnabled()&&diagLog("warn","Provider chunk load failed",{error:t?.message||String(t)})}if(!fileDateProvider)try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(!isWebEnvironment()&&typeof dynamicRequire=="function"){let t=dynamicRequire("./src/fileDateDecorationProvider"),e=t&&(t.FileDateDecorationProvider||t.default||t);fileDateProvider=new e,isWebDiagnosticsEnabled()&&recordProviderEvent("created",{source:"local"})}else if(isWebEnvironment())logger.warn("No FileDateDecorationProvider available for web runtime; some features may be disabled."),isWebDiagnosticsEnabled()&&diagLog("warn","Provider unavailable in web runtime");else{let{FileDateDecorationProvider:t}=Cr();fileDateProvider=new t,isWebDiagnosticsEnabled()&&recordProviderEvent("created",{source:"local"})}}catch(t){throw logger.error("Failed to create FileDateDecorationProvider",t),isWebDiagnosticsEnabled()&&diagLog("error","Provider creation failed",{error:t?.message,stack:t?.stack}),t}if(fileDateProvider){providerChunk&&typeof providerChunk.hydrateProviderOptionalSystems=="function"&&((async()=>{try{await providerChunk.hydrateProviderOptionalSystems(fileDateProvider)}catch(t){logger.debug("provider-init hydration failed",t)}})(),isWebDiagnosticsEnabled()&&recordProviderEvent("hydrated",{source:"providerInit"}));try{let t=vscode.window.registerFileDecorationProvider(fileDateProvider);context.subscriptions.push(t),logger.info("Explorer Dates: File decoration provider registered",{isWeb:isWebRuntime,remoteName})}catch(t){logger.error("Explorer Dates: Failed to register FileDecorationProvider",t)}context.subscriptions.push(fileDateProvider),context.subscriptions.push(logger),isWebDiagnosticsEnabled()&&recordProviderEvent("registered");try{await fileDateProvider.initializeAdvancedSystems(context)}catch(t){logger.debug("FileDateDecorationProvider.initializeAdvancedSystems failed",t)}try{await fileDateProvider.checkWorkspaceSize()}catch(t){logger.debug("FileDateDecorationProvider.checkWorkspaceSize failed",t)}}else logger.warn("FileDateDecorationProvider unavailable \u2014 continuing without file decorations."),isWebDiagnosticsEnabled()&&diagLog("warn","Provider unavailable for decorations");let extensionApiManager=null,exportReportingRegistered=!1,getExtensionApiManager=async()=>{if(!apiEnabled)throw new Error("Extension API is disabled via explorerDates.enableExtensionApi");return extensionApiManager||(extensionApiManager=await ensureExtensionApiManager(context),extensionApiManager&&context.subscriptions&&context.subscriptions.push(extensionApiManager)),extensionApiManager},getExportReportingManager=async()=>{if(!reportingEnabled)throw new Error("Reporting is disabled via explorerDates.enableExportReporting");if(!exportReportingRegistered){let r=vscode.workspace.getConfiguration("explorerDates").get("performanceMode",!1),n=env.EXPLORER_DATES_LIGHTWEIGHT_MODE==="1";(r||n)&&logger.warn("Initializing Export Reporting Manager while performance/lightweight mode is active; activity tracking will remain suppressed.")}let t=await ensureExportReportingManager(context);return t&&!exportReportingRegistered&&(context.subscriptions.push(t),exportReportingRegistered=!0),t},cachedApi=null,apiPromise=null,apiFactory=async()=>(apiPromise||(apiPromise=(async()=>{let t=await getExtensionApiManager();return cachedApi=t?t.getApi():null,cachedApi})()),apiPromise);apiEnabled||logger.info("Explorer Dates API exports disabled via explorerDates.enableExtensionApi");let showWelcomeOnStartup=featureConfig.get("showWelcomeOnStartup",!0);if(onboardingEnabled&&showWelcomeOnStartup)try{if(shouldPrimeOnboardingChunk(context)){let t=await ensureOnboardingManager(context);t&&await t.shouldShowOnboarding()&&setTimeout(()=>{try{t.showWelcomeMessage()}catch(e){logger.warn("Onboarding showWelcomeMessage() failed (non-fatal):",e)}},5e3)}else logger.debug("Skipping onboarding preload \u2013 user already completed onboarding for this major version.")}catch(t){logger.warn("Onboarding preload failed (non-fatal):",t)}registerCoreCommands({context,fileDateProvider,logger,l10n}),recordCommandRegistration("explorerDates.runWebDiagnostics");let runWebDiagnosticsCommand=vscode.commands.registerCommand("explorerDates.runWebDiagnostics",async()=>{recordCommandInvocation("explorerDates.runWebDiagnostics");try{let t=getWebDiagnosticsState(),e=[];try{e=await vscode.commands.getCommands(!0)}catch(a){diagLog("warn","Failed to query command registry",{error:a?.message})}let r=(context?.extension?.packageJSON?.contributes?.commands||[]).map(a=>a.command),n=r.filter(a=>!e.includes(a)),o={uiKind:vscode?.env?.uiKind,isWeb:isWebEnvironment(),registeredCount:e.length,contributedCount:r.length,missingCommands:n.slice(0,20),provider:t.provider,chunkLoads:t.chunkLoads.slice(-10)};diagLog("info","Web diagnostics summary",o);try{let a=n.length?`Web diagnostics: ${n.length} missing commands`:"Web diagnostics: commands registered";vscode.window.showInformationMessage(a)}catch{}recordCommandResult("explorerDates.runWebDiagnostics",!0)}catch(t){throw recordCommandResult("explorerDates.runWebDiagnostics",!1,t),t}});context.subscriptions.push(runWebDiagnosticsCommand);let registerAnalysisCommandsLazy=async()=>{let t=await dynamicImports.loadAnalysisCommands();if(!t){let r=typeof featureFlags.getFeatureLoadFailure=="function"?featureFlags.getFeatureLoadFailure("analysis"):null;if(r)throw r;let o=Array.from(chunkLoader?.N||[]).includes("analysis")?'Analysis chunk is missing. Rebuild with "npm run package-bundle" and reload.':"Analysis bundle did not load. Rebuild the extension and reload.";return vscode.window.showWarningMessage(`Analysis commands unavailable. ${o}`),null}let e=t.registerAnalysisCommands||t;return typeof e!="function"?(vscode.window.showWarningMessage("Analysis commands registration function not found."),null):e({context,fileDateProvider,logger,chunkLoader})};if(analysisEnabled){try{await registerAnalysisCommandsLazy(),logger.info("Analysis commands registered successfully")}catch(t){logger.warn("Failed to register analysis commands:",t),vscode.window.showWarningMessage("Explorer Dates analysis commands failed to initialize. Check build artifacts for the analysis chunk and reload.")}await setAnalysisWarningShown(context,!1)}else try{let t=hasShownAnalysisWarning(context);if(getActiveLogger().debug("analysisWarningState",{alreadyWarned:t,map:context.globalState.get(ANALYSIS_WARNING_WORKSPACE_KEY,{}),warnedSet:Array.from(_warnedWorkspaces)}),!t){if(env.EXPLORER_DATES_TEST_MODE==="1")try{await setAnalysisWarningShown(context,!0)}catch(e){logger.debug("Failed to pre-mark analysis warning in test mode",e?.message||e)}vscode.window.showInformationMessage("Explorer Dates analysis commands are disabled. Shortcuts like Ctrl+Shift+M/H/A will not work until you enable explorerDates.enableAnalysisCommands.","Enable Now","Dismiss").then(async e=>{if((env.EXPLORER_DATES_TEST_MODE==="1"?"Dismiss":e)===l10n.getString("analysisEnableNow"))try{let n=featureConfig.inspect("enableAnalysisCommands"),o=vscode.workspace.workspaceFolders||[],a=!1;for(let s of o){let l=vscode.workspace.getConfiguration("explorerDates",s.uri);if(l.inspect("enableAnalysisCommands")?.workspaceFolderValue===!1)try{await l.update("enableAnalysisCommands",!0,vscode.ConfigurationTarget.WorkspaceFolder)}catch(c){a=!0,logger.warn("Failed to auto-enable analysis commands for workspace folder",{folder:s.uri?.toString(),error:c?.message})}}if(n?.workspaceValue===!1)try{await featureConfig.update("enableAnalysisCommands",!0,vscode.ConfigurationTarget.Workspace)}catch(s){a=!0,logger.warn("Failed to auto-enable analysis commands for workspace scope",s)}if(n?.globalValue===!1)try{await featureConfig.update("enableAnalysisCommands",!0,vscode.ConfigurationTarget.Global)}catch(s){a=!0,logger.warn("Failed to auto-enable analysis commands for user scope",s)}a?(await setAnalysisWarningShown(context,!1),vscode.window.showWarningMessage(l10n.getString("analysisEnablePartially"))):(await setAnalysisWarningShown(context,!1),await vscode.commands.executeCommand("workbench.action.reloadWindow"))}catch(n){await setAnalysisWarningShown(context,!1),vscode.window.showWarningMessage(l10n.getString("analysisEnableFailed")),logger.warn("Failed to auto-enable analysis commands",n)}else await setAnalysisWarningShown(context,!0)})}}catch(t){logger.debug("Unable to show analysis disabled warning",t)}registerOnboardingCommands({context,logger,getOnboardingManager:()=>ensureOnboardingManager(context)});let migrationSubscriptions=await registerMigrationCommands({context,logger,getSettingsMigrationManager:()=>Promise.resolve(settingsMigrationManager)});context.subscriptions.push(...migrationSubscriptions);let openTemplateManager=vscode.commands.registerCommand("explorerDates.openTemplateManager",async()=>{try{if(isWebEnvironment()){vscode.window.showInformationMessage("Workspace templates are unavailable in VS Code for Web.");return}if(!vscode.workspace.getConfiguration("explorerDates").get("enableWorkspaceTemplates",!0))throw vscode.window.showInformationMessage(l10n.getString("workspaceTemplatesDisabled")),new Error("Workspace templates feature disabled via settings.");await featureFlags.workspaceTemplates()||raiseChunkUnavailable("Workspace templates","workspaceTemplates");let n=await ensureWorkspaceTemplatesManager(context);n||raiseChunkUnavailable("Workspace templates","workspaceTemplates"),await n.showTemplateManager(),logger.info("Template manager opened")}catch(t){throw logger.error("Failed to open template manager",t),vscode.window.showErrorMessage(l10n.getString("failedToOpenTemplateManager",t.message)),t}});context.subscriptions.push(openTemplateManager);let saveTemplate=vscode.commands.registerCommand("explorerDates.saveTemplate",async()=>{try{if(isWebEnvironment()){vscode.window.showInformationMessage("Workspace templates are unavailable in VS Code for Web.");return}let{requireWorkspaceTrust:t}=G();if(t("save template"),!vscode.workspace.getConfiguration("explorerDates").get("enableWorkspaceTemplates",!0))throw vscode.window.showInformationMessage(l10n.getString("workspaceTemplatesDisabledSave")),new Error("Workspace templates feature disabled via settings.");await featureFlags.workspaceTemplates()||raiseChunkUnavailable("Workspace templates","workspaceTemplates");let o=await vscode.window.showInputBox({prompt:"Enter template name",placeHolder:"e.g., My Project Setup"});if(o){let a=await vscode.window.showInputBox({prompt:l10n.getString("enterTemplateDescription"),placeHolder:l10n.getString("enterTemplateDescription")})||"",s=await ensureWorkspaceTemplatesManager(context);s||raiseChunkUnavailable("Workspace templates","workspaceTemplates"),await s.saveCurrentConfiguration(o,a)}logger.info("Template saved")}catch(t){throw logger.error("Failed to save template",t),vscode.window.showErrorMessage(l10n.getString("failedToSaveTemplate",t.message)),t}});context.subscriptions.push(saveTemplate);let recordedReportErrors=new WeakSet,generateReport=vscode.commands.registerCommand("explorerDates.generateReport",async()=>{recordCommandInvocation("explorerDates.generateReport");try{if(isWebEnvironment()){vscode.window.showInformationMessage("Export reporting is unavailable in VS Code for Web.");let s=commandEmpty();return recordCommandResult("explorerDates.generateReport",!0,null,s.category),s.value}let{requireWorkspaceTrust:t}=G();if(t("generate report"),!reportingEnabled)throw vscode.window.showInformationMessage(l10n.getString("reportingDisabled")),new Error("Reporting features disabled via settings.");await featureFlags.exportReporting()||raiseChunkUnavailable("Export reporting","exportReporting");let r=await getExportReportingManager();r||raiseChunkUnavailable("Export reporting","exportReporting");let n=await r.showReportDialog(),o=isCommandOutcome(n)?n:n===void 0?commandCancellation():n===null?commandEmpty():commandSuccess(n),a=o.category===OUTCOME_CATEGORIES.HANDLED_COMMAND_FAILURE||o.category===OUTCOME_CATEGORIES.UNHANDLED_COMMAND_FAILURE;if(recordCommandResult("explorerDates.generateReport",!a,o.error,o.category,o.errorContext),a){let s=o.error||new Error("Report generation failed");throw s&&(typeof s=="object"||typeof s=="function")&&recordedReportErrors.add(s),s}return logger.info("Report generation completed",{outcomeCategory:o.category}),o.value}catch(t){throw recordedReportErrors.has(t)||recordCommandResult("explorerDates.generateReport",!1,t,OUTCOME_CATEGORIES.UNHANDLED_COMMAND_FAILURE),logger.error("Failed to generate report",t),vscode.window.showErrorMessage(l10n.getString("failedToGenerateReport",t.message)),t}});context.subscriptions.push(generateReport);let showApiInfo=vscode.commands.registerCommand("explorerDates.showApiInfo",async()=>{try{if(!apiEnabled)throw vscode.window.showInformationMessage(l10n.getString("apiDisabled")),new Error("Explorer Dates API disabled via settings.");await featureFlags.extensionApi()||raiseChunkUnavailable("Extension API","extensionApi");let e=vscode.window.createWebviewPanel("apiInfo","Explorer Dates API Information",vscode.ViewColumn.One,{enableScripts:!0}),r=await chunkLoader.loadChunk("diagnostics");if(!r)throw new Error("Diagnostics chunk failed to load");r.ensureInitialized(context);let n=await apiFactory();if(!n)throw new Error("API factory returned null - extension API may be disabled");e.webview.html=await r.getApiInformationHtml(n),logger.info("API information panel opened")}catch(t){throw logger.error("Failed to show API information",t),vscode.window.showErrorMessage(l10n.getString("failedToShowApiInformation",t.message)),t}});context.subscriptions.push(showApiInfo);let statusBarItem,config=vscode.workspace.getConfiguration("explorerDates"),performanceMode=config.get("performanceMode",!1),showStatusBar=config.get("showStatusBar",!1);showStatusBar&&!performanceMode&&(statusBarItem=initializeStatusBar(context));let statusBarConfigWatcher=vscode.workspace.onDidChangeConfiguration(t=>{if(t.affectsConfiguration("explorerDates.showStatusBar")||t.affectsConfiguration("explorerDates.performanceMode")){let e=vscode.workspace.getConfiguration("explorerDates"),r=e.get("showStatusBar",!1),n=e.get("performanceMode",!1),o=r&&!n;o&&!statusBarItem?statusBarItem=initializeStatusBar(context):!o&&statusBarItem&&(statusBarItem.dispose(),statusBarItem=null)}});context.subscriptions.push(statusBarConfigWatcher),logger.info("Explorer Dates: Date decorations ready");let loadRuntimeCommands=async()=>{let t=await featureFlags.loadFeatureModule("runtimeManagement");if(t?.registerRuntimeCommands)return t.registerRuntimeCommands;if(isWeb)try{let e=await Promise.resolve().then(()=>X(ze()));if(e?.registerRuntimeCommands)return logger.warn("Runtime chunk missing in web; using bundled runtime commands fallback"),e.registerRuntimeCommands}catch(e){logger.warn("Web runtime fallback for runtime commands failed",e)}return logger.warn("Runtime chunk missing; runtime commands not initialized"),null};try{let t=await loadRuntimeCommands();if(t){isWebDiagnosticsEnabled()&&diagLog("info","Runtime commands registration starting");let{runtimeManager:e,teamPersistenceManager:r}=t(context);activeRuntimeManager?.dispose&&activeRuntimeManager.dispose(),activeTeamPersistenceManager?.dispose&&activeTeamPersistenceManager.dispose(),activeRuntimeManager=e,activeTeamPersistenceManager=r,env.EXPLORER_DATES_TEST_MODE!=="1"?runtimeAutoSuggestionTimer=setTimeout(async()=>{try{await e.checkAutoSuggestion(),await r.validateTeamConfiguration()}catch(o){logger.debug("Runtime system auto-suggestion failed:",o)}},AUTO_SUGGESTION_DELAY_MS):logger.debug("Skipping runtime auto-suggestion timer in test mode"),logger.info("Runtime chunk management system initialized")}else logger.warn("Runtime chunk management system unavailable")}catch(t){logger.error("Failed to initialize runtime chunk management:",t),isWebDiagnosticsEnabled()&&diagLog("error","Runtime command initialization failed",{error:t?.message,stack:t?.stack})}if(isWebDiagnosticsEnabled()){let t=getWebDiagnosticsState();diagLog("info","Activation complete",{commandsRegistered:t.commandsRegistered?.size||0,provider:t.provider})}if(apiEnabled)return apiFactory}catch(t){let e=`${l10n?l10n.getString("activationError"):"Explorer Dates failed to activate"}: ${t.message}`;throw getActiveLogger().error("Extension activation failed",t),vscode.window.showErrorMessage(e),isWebDiagnosticsEnabled()&&diagLog("error","Activation failed",{error:t?.message,stack:t?.stack}),t}}async function deactivate(){try{if(getActiveLogger().info("Explorer Dates extension is being deactivated"),runtimeAutoSuggestionTimer&&(clearTimeout(runtimeAutoSuggestionTimer),runtimeAutoSuggestionTimer=null),activeRuntimeManager?.dispose&&(activeRuntimeManager.dispose(),activeRuntimeManager=null),activeTeamPersistenceManager?.dispose&&(activeTeamPersistenceManager.dispose(),activeTeamPersistenceManager=null),fileDateProvider&&typeof fileDateProvider.dispose=="function"&&(await fileDateProvider.dispose(),fileDateProvider=null),env.EXPLORER_DATES_TEST_MODE==="1"&&typeof process<"u"&&typeof process.Le=="function"){let t=Date.now();for(;(process.Le()||[]).length>0&&Date.now()-t<500;)await new Promise(e=>setTimeout(e,5))}getActiveLogger().info("Explorer Dates extension deactivated successfully")}catch(t){getActiveLogger().error("Explorer Dates: Error during deactivation",t)}}module.exports={activate,deactivate}});var Dr=Sr();module.exports={activate:Dr.activate,deactivate:Dr.deactivate}; + `}async validateConfiguration(){let e=[],r=W.workspace.getConfiguration("explorerDates"),n=[{setting:"dateDecorationFormat",validate:o=>["smart","relative-short","relative-long","absolute-short","absolute-long"].includes(o),message:"Invalid date decoration format"},{setting:"colorScheme",validate:o=>["none","recency","file-type","subtle","vibrant","custom"].includes(o),message:"Invalid color scheme"},{setting:"badgePriority",validate:o=>["time","author","size"].includes(o),message:"Invalid badge priority"},{setting:"maxCacheSize",validate:o=>typeof o=="number"&&o>=100&&o<=5e4,message:"Cache size must be between 100 and 50,000"},{setting:"cacheTimeout",validate:o=>typeof o=="number"&&o>=5e3&&o<=3e5,message:"Cache timeout must be between 5,000 and 300,000 milliseconds"}];for(let o of n){let a=r.get(o.setting);a!==void 0&&!o.validate(a)&&e.push({setting:o.setting,value:a,message:o.message})}return e}getMigrationHistory(e){return e.globalState.get("explorerDates.migrationHistory",[])}};Jt.exports={SettingsMigrationManager:Ne}});var ar=f((aa,or)=>{var _=require("vscode"),{getLogger:mo}=k(),{WORKSPACE_SCALE_BALANCED_THRESHOLD:er,WORKSPACE_SCALE_LARGE_THRESHOLD:we,WORKSPACE_SCALE_EXTREME_THRESHOLD:tr,WORKSPACE_SCAN_MAX_RESULTS:rr}=N(),Ue=mo(),he=null;function nr(t){return t&&(t.fsPath||t.path)||null}function $e(t,e){let r=nr(t);!r||typeof e!="number"||(he={workspaceKey:r,fileCount:e,timestamp:Date.now()})}function qe(t){let e=nr(t);return!e||!he||he.workspaceKey!==e?null:he}function ho(t,e="default"){if(!t)return`unknown-workspace-${e}`;let r=t.fsPath||t.path||"",n=r.split("/").pop()||"workspace",o=Math.abs(r.split("").reduce((s,l)=>(s=(s<<5)-s+l.charCodeAt(0),s&s),0)).toString(36).substr(0,8),a=Math.abs(e.split("").reduce((s,l)=>(s=(s<<5)-s+l.charCodeAt(0),s&s),0)).toString(36).substr(0,4);return`${n}-${o}-${a}`}async function wo(t){try{if(!t)return"unknown";let e=qe(t),r;e?r=e.fileCount:(r=(await _.workspace.findFiles("**/*",null,rr)).length,$e(t,r));let n="small";r>=tr?n="extreme":r>=we?n="large":r>=1e3&&(n="medium");let o=_.env.remoteName,a=_.env.uiKind===_.UIKind.Web,s=n==="medium"&&r>=er&&rc.toLowerCase());if(i.includes("package.json")||i.includes("yarn.lock"))return"web-development";if(i.some(c=>c.endsWith(".ipynb"))||i.includes("requirements.txt"))return"data-science";if(i.includes("docker-compose.yml")||i.includes(".enterprise"))return"enterprise"}catch(l){Ue.debug("Project type detection failed:",l)}return"full"}catch(e){return Ue.error("Workspace profile detection failed:",e),"unknown"}}async function bo(t){if(!t)return null;try{let e=qe(t),r;e?r=e.fileCount:(r=(await _.workspace.findFiles("**/*",null,rr)).length,$e(t,r));let n="small";r>=tr?n="extreme":r>=we?n="large":r>=1e3&&(n="medium");let o=!!_.env.remoteName,a=_.env.uiKind===_.UIKind.Web,s=a?"web":o?"remote":"local",l=n==="medium"&&r>=er&&r{var CHUNK_SIZES={onboarding:34,analysisCommands:23,exportReporting:17,extensionApi:15,workspaceTemplates:14,advancedCache:28,workspaceIntelligence:31,incrementalWorkers:19},BASE_BUNDLE_SIZE=99;function _getPresetDefinitionsSync(){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let t=dynamicRequire("./chunks/preset-definitions-chunk");if(t&&t.PRESET_DEFINITIONS)return t.PRESET_DEFINITIONS}}catch{}let FALLBACK_PRESET={minimal:{id:"minimal",name:"Minimal",description:"Lean setup that prioritizes responsiveness in large repos.",targetScenarios:["Large repos","Low resources","Minimal UI"],settings:{"explorerDates.performanceMode":!0,"explorerDates.showDateDecorations":!0}},balanced:{id:"balanced",name:"Balanced",description:"Default feature mix for most workspaces.",targetScenarios:["General development","Mixed workloads"],settings:{"explorerDates.enableOnboardingSystem":!0,"explorerDates.enableAnalysisCommands":!0,"explorerDates.performanceMode":!1,"explorerDates.dateDecorationFormat":"smart","explorerDates.colorScheme":"recency","explorerDates.badgePriority":"time"}},"web-development":{id:"web-development",name:"Web Development",description:"Optimized for frontend and full-stack web projects.",targetScenarios:["Web apps","Frontend teams"],settings:{"explorerDates.enableOnboardingSystem":!0,"explorerDates.dateDecorationFormat":"smart","explorerDates.colorScheme":"file-type","explorerDates.badgePriority":"time"}},enterprise:{id:"enterprise",name:"Enterprise",description:"Full feature set with reporting and integrations enabled.",targetScenarios:["Large teams","Governed environments"],settings:{"explorerDates.enableExportReporting":!0,"explorerDates.enableExtensionApi":!0,"explorerDates.dateDecorationFormat":"smart","explorerDates.colorScheme":"recency","explorerDates.badgePriority":"time"}},"data-science":{id:"data-science",name:"Data Science",description:"Insight-focused profile for data-heavy projects.",targetScenarios:["Data analysis","Research workflows"],settings:{"explorerDates.enableWorkspaceIntelligence":!0,"explorerDates.dateDecorationFormat":"iso-detailed","explorerDates.colorScheme":"recency","explorerDates.badgePriority":"time"}}};return FALLBACK_PRESET}var PRESET_DEFINITIONS=_getPresetDefinitionsSync(),RESTART_REQUIRED_SETTINGS=new Set(["enableOnboardingSystem","enableAnalysisCommands","enableExportReporting","enableExtensionApi","enableWorkspaceTemplates","enableAdvancedCache","enableWorkspaceIntelligence","enableIncrementalWorkers","performanceMode","smartFileWatching"]);function calculateBundleSize(t){let e=BASE_BUNDLE_SIZE;return t["explorerDates.enableOnboardingSystem"]&&(e+=CHUNK_SIZES.onboarding),t["explorerDates.enableAnalysisCommands"]&&(e+=CHUNK_SIZES.analysisCommands),t["explorerDates.enableExportReporting"]&&(e+=CHUNK_SIZES.exportReporting),t["explorerDates.enableExtensionApi"]&&(e+=CHUNK_SIZES.extensionApi),t["explorerDates.enableWorkspaceTemplates"]&&(e+=CHUNK_SIZES.workspaceTemplates),t["explorerDates.enableAdvancedCache"]&&(e+=CHUNK_SIZES.advancedCache),t["explorerDates.enableWorkspaceIntelligence"]&&(e+=CHUNK_SIZES.workspaceIntelligence),t["explorerDates.enableIncrementalWorkers"]&&(e+=CHUNK_SIZES.incrementalWorkers),e}function getDefaultPresetForProfile(t){let e=PRESET_DEFINITIONS;switch(t){case"minimal":case"extreme":return e.minimal||e.minimal;case"balanced":return e.balanced||e.balanced;case"web-development":return e["web-development"]||e["web-development"];case"data-science":return e["data-science"]||e["data-science"];case"enterprise":return e.enterprise||e.enterprise;default:return e.balanced||e.balanced}}module.exports={PRESET_DEFINITIONS,CHUNK_SIZES,BASE_BUNDLE_SIZE,RESTART_REQUIRED_SETTINGS,calculateBundleSize,getDefaultPresetForProfile}});var sr=f((exports,module)=>{var vscode=require("vscode"),getLogger=()=>{try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let t=dynamicRequire("./chunks/logger-chunk");if(t&&typeof t.getLogger=="function")return getLogger=t.getLogger,getLogger()}}catch{}try{return getLogger=k().getLogger,getLogger()}catch{return getLogger=()=>({debug:(()=>{})?.bind(console)||console.log,info:(()=>{}).bind(console),warn:(()=>{}).bind(console),error:(()=>{}).bind(console)}),getLogger()}},{generateWorkspaceKey,detectWorkspaceProfile,analyzeWorkspaceEnvironment}=ar(),{PRESET_DEFINITIONS,calculateBundleSize,getDefaultPresetForProfile,RESTART_REQUIRED_SETTINGS}=be(),{getSettingsCoordinator}=re(),{WORKSPACE_SCALE_LARGE_THRESHOLD,WORKSPACE_SCALE_EXTREME_THRESHOLD}=N(),{diagLog}=G(),isWebRuntime=(()=>{try{return vscode?.env?.uiKind===vscode?.UIKind?.Web}catch{return!1}})(),logger=getLogger(),quickPickUnavailableMessage="Explorer Dates: This action is unavailable in this environment.";function ensureQuickPickAvailable(t){if(typeof vscode?.window?.showQuickPick=="function")return!0;diagLog("warn","QuickPick unavailable",{context:t,isWeb:isWebRuntime});try{typeof vscode?.window?.showInformationMessage=="function"&&vscode.window.showInformationMessage(quickPickUnavailableMessage)}catch{}return!1}var RuntimeConfigManager=class{constructor(e){this.z=e,this.r=e.globalState,this.W=null,this.g=null,this.d="explorerDates.pendingRestart",this.Y="explorerDates.suggestionHistory",this.D="explorerDates.presetBackup",this.I="explorerDates.lastPreset",this.e=getSettingsCoordinator(),this.De(),logger.info("Runtime configuration manager initialized")}async getCurrentRuntimeState(){let e=vscode.workspace.getConfiguration("explorerDates"),r=this.p(e),n=this.i(null,r),o=vscode.workspace.workspaceFolders?.[0]?.uri,a=await analyzeWorkspaceEnvironment(o);return{currentSettings:r,currentBundleSize:n,analysis:a,availablePresets:Object.keys(PRESET_DEFINITIONS),pendingRestart:this.r.get(this.d,[]),timestamp:Date.now()}}async checkAutoSuggestion(e=!1){try{let r=vscode.workspace.workspaceFolders?.[0]?.uri;if(!r){e&&vscode.window.showInformationMessage("Explorer Dates: No workspace folder is open. Open a folder to receive configuration suggestions.");return}let n=await detectWorkspaceProfile(r),o=generateWorkspaceKey(r,n),a=this.r.get(this.Y,{}),s=a[o];if(e||!s||s.profileDetected!==n||await this.ke(s)){let i=await this.X(n);if(i){if(e&&i.reason==="minimal savings")vscode.window.showInformationMessage(`Explorer Dates: Your configuration is already well-optimized for a ${n} workspace. No changes recommended.`);else if(i.accepted!==void 0){let c=await analyzeWorkspaceEnvironment(r);a[o]={profileDetected:n,suggestedAt:Date.now(),fileCountAtSuggestion:c?.fileCount||0,accepted:i.accepted,presetId:i.preset},await this.r.update(this.Y,a),logger.info("Auto-suggestion updated:",a[o])}}}else e&&(await this.X(n))?.reason==="minimal savings"&&vscode.window.showInformationMessage(`Explorer Dates: Your configuration is already well-optimized for a ${n} workspace. No changes recommended.`)}catch(r){logger.error("Auto-suggestion check failed:",r)}}async X(e){let r=this.p(vscode.workspace.getConfiguration("explorerDates")),n=getDefaultPresetForProfile(e),o=this.i(null,r),a=n?this.i(n.settings,r):o,s=o-a;if(s<=10)return{accepted:!1,preset:e,reason:"minimal savings"};let l=`Explorer Dates detected a ${e} workspace. Would you like to apply ${n.name} settings? This could save ~${s}KB.`;switch(await vscode.window.showInformationMessage(l,{modal:!1},"Apply Settings","Show Details","Not Now")){case"Apply Settings":return await this.L(n.id,n),{accepted:!0,preset:e};case"Show Details":return await this.showPresetComparison(r,n),{accepted:!1,preset:e};default:return{accepted:!1,preset:e}}}async L(e,r=null){let n=r||PRESET_DEFINITIONS[e];if(!n)throw new Error(`Unknown preset: ${e}`);let o=this.p(vscode.workspace.getConfiguration("explorerDates"));await this.xe(e,o);let a=Object.entries(n.settings||{}),s=[],l=[],i=[],c=isWebRuntime?"user":"workspace",u=`apply-preset:${e}`,g=m=>{try{if(!m||typeof m!="string")return!1;let P="explorerDates.";if(m.startsWith(P)){let Se=m.slice(P.length),X=vscode.workspace.getConfiguration("explorerDates").inspect(Se);return X?[X.defaultValue,X.globalValue,X.workspaceValue,X.workspaceFolderValue].some(kr=>kr!==void 0):!1}let v=vscode.workspace.getConfiguration().inspect(m);return v?[v.defaultValue,v.globalValue,v.workspaceValue,v.workspaceFolderValue].some(Se=>Se!==void 0):!1}catch{return!1}};for(let[m,P]of a){if(!g(m)){l.push(m),diagLog("warn","Preset skipped unregistered setting",{key:m,presetId:e});continue}try{s.push(await this.e.updateSetting(m,P,{scope:c,reason:u}))}catch(v){i.push({key:m,error:v}),logger.warn(`Preset application failed for ${m}: ${v&&v.message?v.message:String(v)}`)}}let h=s.filter(m=>m.updated).map(m=>m.key.replace("explorerDates.","")),E=`Applied "${n.name}" preset. Applied: ${h.length}. Skipped: ${l.length}. Failed: ${i.length}.`;try{vscode.window.showInformationMessage(E)}catch{}if(logger.info(`Applied ${n.name} preset`,{changedSettings:h,skipped:l,failed:i.length}),diagLog("info","Preset applied summary",{presetId:e,applied:h.length,skipped:l,failed:i.map(m=>m.key),webRuntime:isWebRuntime}),h.length>0){this.Z(h);try{await vscode.commands.executeCommand("explorerDates.refreshDateDecorations"),diagLog("info","Preset refresh triggered",{presetId:e,applied:h.length,skipped:l.length})}catch(m){diagLog("warn","Preset refresh failed",{presetId:e,error:m?.message})}}return{applied:h.length,preset:n,requiresRestart:h.some(m=>RESTART_REQUIRED_SETTINGS.has(m)),estimatedBundleSize:this.i()}}async restorePreviousPreset(e={}){let r=this.r.get(this.D,null);if(!r?.settings)return e.silent||vscode.window.showInformationMessage("No previous preset available to restore."),{restored:!1,reason:"no-backup"};let n;try{n=await this.e.applySettings(r.settings,{scope:"workspace",reason:"restore-previous-preset"})}catch(a){throw e.silent||vscode.window.showErrorMessage(`Failed to restore previous preset: ${a.message}`),logger.error("Preset rollback failed:",a),a}let o=n.filter(a=>a.updated).map(a=>a.key.replace("explorerDates.",""));return await this.r.update(this.d,[]),await this.r.update(this.D,null),await this.r.update(this.I,r.previousPreset||null),e.silent||vscode.window.showInformationMessage("Previous preset restored."),{restored:!0,changedSettings:o,restoredPreset:r.previousPreset||"unknown"}}async showPresetComparison(e,r){if(!ensureQuickPickAvailable("runtimeConfig.showPresetComparison"))return;let n=e||this.p(vscode.workspace.getConfiguration("explorerDates")),o=this.i(null,n),a=r?this.i(r.settings,n):o,s=o-a,l=[{label:"\u{1F4E6} Current Configuration",description:`Bundle: ${o}KB total`,detail:this.J(n),action:"current"},r?{label:`\u26A1 Recommended: ${r.name}`,description:`Bundle: ${a}KB total (saves ${Math.max(0,s)}KB)`,detail:this.J(r.settings),action:"apply",preset:r}:null,{label:"\u{1F527} Browse All Presets...",description:`Choose from ${Object.keys(PRESET_DEFINITIONS).length} available presets`,detail:"Minimal, Balanced, Web Development, Enterprise, Data Science",action:"browse"}].filter(Boolean),i=await vscode.window.showQuickPick(l,{placeHolder:"Choose configuration approach",ignoreFocusOut:!0,matchOnDescription:!0,matchOnDetail:!0});if(i)switch(i.action){case"apply":i.preset&&await this.L(i.preset.id,i.preset);break;case"browse":await this.showAllPresets();break}}async showAllPresets(){if(!ensureQuickPickAvailable("runtimeConfig.showAllPresets"))return;let e=this.p(vscode.workspace.getConfiguration("explorerDates")),r=this.i(null,e),n=Object.values(PRESET_DEFINITIONS).map(a=>{let s=this.i(a.settings,e),l=r-s,i=l>0?`saves ${l}KB`:l<0?`adds ${Math.abs(l)}KB`:"same size";return{label:`${a.name}`,description:`${s}KB (${i})`,detail:`${a.description} - ${a.targetScenarios.join(", ")}`,preset:a}}),o=await vscode.window.showQuickPick(n,{placeHolder:"Select a preset configuration",ignoreFocusOut:!0,matchOnDescription:!0,matchOnDetail:!0});o?.preset&&await vscode.window.showInformationMessage(`Apply "${o.preset.name}" preset? +${o.preset.description}`,{modal:!1},"Apply","Cancel")==="Apply"&&await this.L(o.preset.id,o.preset)}De(){this.W=vscode.workspace.onDidChangeConfiguration(e=>{e.affectsConfiguration("explorerDates")&&this.Te(e)})}async Te(e){let r=Array.from(RESTART_REQUIRED_SETTINGS).filter(n=>e.affectsConfiguration(`explorerDates.${n}`));r.length>0&&this.Z(r)}Z(e){let r=this.r.get(this.d,[]),n=[...new Set([...r,...e])];try{let o=this.r.update(this.d,n);o&&typeof o.then=="function"&&o.catch(a=>{try{logger.warn("Failed to persist pending restart state:",a&&a.message)}catch{}})}catch(o){try{logger.warn("Failed to persist pending restart state (sync):",o&&o.message)}catch{}}this.g&&clearTimeout(this.g),this.g=setTimeout(()=>{(async()=>{try{await this.Ae()}catch(o){logger.error("Failed to show batched restart prompt:",o);try{await this.r.update(this.d,[])}catch(a){logger.warn("Failed to clear pending restarts after prompt failure:",a&&a.message)}}finally{this.g=null}})()},2e3)}async Ae(){try{let e=this.r.get(this.d,[]);if(e.length===0)return;let r=e.map(s=>this.Re(s)).join(", "),o=`${e.length===1?`"${r}"`:`${e.length} settings (${r})`} changed. Reload to apply chunk optimizations?`,a;try{a=await vscode.window.showInformationMessage(o,{modal:!1},"Reload Now","Reload Later")}catch(s){logger.warn("User prompt for restart failed:",s&&s.message)}if(a==="Reload Now")try{await vscode.commands.executeCommand("workbench.action.reloadWindow")}catch(s){logger.warn("Failed to execute reload command:",s&&s.message)}}catch(e){logger.error("Error while showing batched restart prompt:",e)}finally{try{await this.r.update(this.d,[])}catch(e){logger.warn("Failed to clear pending restarts:",e&&e.message)}}}async xe(e,r={}){if(!this.r||typeof this.r.update!="function")return;let n=this.r.get(this.I,null),o=this.r.get(this.D,null),a=o?.timestamp?Date.parse(o.timestamp):null,s=Number.isFinite(a)?Math.max(Date.now(),a+1):Date.now(),l={timestamp:new Date(s).toISOString(),appliedPreset:e,previousPreset:n||"unknown",settings:{...r}};await this.r.update(this.D,l),await this.r.update(this.I,e)}i(e=null,r=null){let n=r?{...r}:this.p(vscode.workspace.getConfiguration("explorerDates"));return e&&typeof e=="object"&&Object.assign(n,e),calculateBundleSize(n)}p(e){let r={enableOnboardingSystem:!0,enableAnalysisCommands:!0,enableExportReporting:!0,enableExtensionApi:!0,enableWorkspaceTemplates:!0,enableAdvancedCache:!0,enableWorkspaceIntelligence:!0,enableIncrementalWorkers:!1},n={};for(let[o,a]of Object.entries(r))n[`explorerDates.${o}`]=e.get(o,a);return n}J(e){let r=Object.entries(e).filter(([a,s])=>s===!0&&a.includes("enable")).map(([a])=>a.replace("explorerDates.enable","").replace("System","")).slice(0,3),n=Math.max(0,Object.keys(e).length-3),o=n>0?` +${n} more`:"";return`Features: ${r.join(", ")}${o}`}Re(e){return e.replace("enable","").replace(/([A-Z])/g," $1").trim()}async ke(e){if(!e)return!0;try{let r=vscode.workspace.workspaceFolders?.[0]?.uri,n=await analyzeWorkspaceEnvironment(r);if(!n)return!1;let o=e.fileCountAtSuggestion||0,a=n.fileCount,s=this.Q(o),l=this.Q(a);return s!==l}catch(r){return logger.debug("Heuristics change check failed:",r),!1}}Q(e){return e>=WORKSPACE_SCALE_EXTREME_THRESHOLD?"extreme":e>=WORKSPACE_SCALE_LARGE_THRESHOLD?"large":e>=1e3?"medium":"small"}dispose(){this.W&&this.W.dispose(),this.g&&clearTimeout(this.g)}};module.exports={RuntimeConfigManager}});var cr=f((sa,lr)=>{var{RuntimeConfigManager:ir}=sr();lr.exports={RuntimeConfigManager:ir,default:{RuntimeConfigManager:ir}}});var ze=f((exports,module)=>{var vscode=require("vscode"),{getLogger}=k(),{recordCommandRegistration,recordCommandInvocation,recordCommandResult}=G(),{diagLog}=G(),logger=getLogger(),isWebRuntime=(()=>{try{return vscode?.env?.uiKind===vscode?.UIKind?.Web}catch{return typeof process>"u"||!0}})();function createWebRuntimeManagerStub(){let t=async e=>{diagLog("warn","QuickPick unavailable",{context:"runtimeCommands.webStub",isWeb:isWebRuntime}),typeof vscode?.window?.showInformationMessage=="function"&&await vscode.window.showInformationMessage(e)};return{async showAllPresets(){await t("Runtime presets are unavailable in VS Code for Web.")},async restorePreviousPreset(){return await t("Runtime presets are unavailable in VS Code for Web."),{restored:!1}},async showPresetComparison(){await t("Runtime preset comparisons are unavailable in VS Code for Web.")},async checkAutoSuggestion(){await t("Runtime preset suggestions are unavailable in VS Code for Web.")},async getCurrentRuntimeState(){return{currentSettings:{},analysis:null}}}}function registerRuntimeCommands(context){let runtimeManager=null,teamPersistenceManager=null,managersInitializing=null,runtimeManagerProxy={dispose:()=>{if(runtimeManager&&typeof runtimeManager.dispose=="function")try{runtimeManager.dispose()}catch(t){logger.warn("Error during runtimeManager.dispose proxy",t)}}},teamPersistenceManagerProxy={dispose:()=>{if(teamPersistenceManager&&typeof teamPersistenceManager.dispose=="function")try{teamPersistenceManager.dispose()}catch(t){logger.warn("Error during teamPersistenceManager.dispose proxy",t)}}};function loadTeamPersistenceModule(){if(isWebRuntime)return null;let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire!="function")return null;let candidates=["../chunks/teamPersistence","../chunks/team-persistence-chunk"];for(let t of candidates)try{let e=dynamicRequire(t);if(e)return e.default||e}catch{}return null}async function ensureManagers(){return managersInitializing||(managersInitializing=(async()=>{if(!runtimeManager){if(isWebRuntime){runtimeManager=createWebRuntimeManagerStub();return}let t=await Promise.resolve().then(()=>Z(cr()));runtimeManager=new t.RuntimeConfigManager(context)}if(!teamPersistenceManager&&!isWebRuntime){let persistence=loadTeamPersistenceModule();if(persistence?.createTeamPersistenceManager)teamPersistenceManager=persistence.createTeamPersistenceManager(context);else if(persistence?.TeamConfigPersistenceManager)teamPersistenceManager=new persistence.TeamConfigPersistenceManager(context);else{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let t=dynamicRequire("../teamConfigPersistence.proxy");teamPersistenceManager=new t.TeamConfigPersistenceManager(context)}}}})(),managersInitializing)}let registerCommand=(t,e)=>(recordCommandRegistration(t),vscode.commands.registerCommand(t,async(...r)=>{recordCommandInvocation(t);try{let n=await e(...r);return recordCommandResult(t,!0),n}catch(n){throw recordCommandResult(t,!1,n),n}})),commands=[registerCommand("explorerDates.applyPreset",async()=>{try{let{requireWorkspaceTrust:t}=j();t("apply preset"),await ensureManagers(),await runtimeManager.showAllPresets()}catch(t){logger.error("Apply preset command failed:",t),vscode.window.showErrorMessage(`Failed to apply preset: ${t.message}`)}}),registerCommand("explorerDates.restorePreviousPreset",async()=>{try{await ensureManagers(),(await runtimeManager.restorePreviousPreset()).restored||logger.info("No preset backup available to restore")}catch(t){logger.error("Restore previous preset command failed:",t),vscode.window.showErrorMessage(`Failed to restore previous preset: ${t.message}`)}}),registerCommand("explorerDates.configureRuntime",async()=>{try{await ensureManagers();let t=await runtimeManager.getCurrentRuntimeState();await runtimeManager.showPresetComparison(t.currentSettings)}catch(t){logger.error("Configure runtime command failed:",t),vscode.window.showErrorMessage(`Failed to show runtime configuration: ${t.message}`)}}),registerCommand("explorerDates.suggestOptimalPreset",async()=>{try{await ensureManagers(),await runtimeManager.checkAutoSuggestion(!0)}catch(t){logger.error("Suggest optimal preset command failed:",t),vscode.window.showErrorMessage(`Failed to suggest preset: ${t.message}`)}}),registerCommand("explorerDates.showChunkStatus",async()=>{try{await ensureManagers();let t=await runtimeManager.getCurrentRuntimeState();await showChunkStatusQuickPick(t)}catch(t){logger.warn("Show chunk status: runtime managers unavailable, using fallback state",t);try{let e=vscode.workspace.getConfiguration("explorerDates"),r=[34,23,17,15,14,28,31,19],a={currentBundleSize:99+["enableOnboardingSystem","enableAnalysisCommands","enableExportReporting","enableExtensionApi","enableWorkspaceTemplates","enableAdvancedCache","enableWorkspaceIntelligence","enableIncrementalWorkers"].reduce((s,l,i)=>s+(e.get(l,!0)?r[i]:0),0)};await showChunkStatusQuickPick(a)}catch(e){logger.error("Show chunk status fallback failed:",e),vscode.window.showErrorMessage(`Failed to show chunk status: ${e.message}`)}}}),registerCommand("explorerDates.optimizeBundle",async()=>{try{await ensureManagers();let t=await runtimeManager.getCurrentRuntimeState();if(t.analysis){let e=await determineOptimalProfile(t.analysis);await runtimeManager.showPresetComparison(t.currentSettings,e)}else await runtimeManager.showAllPresets()}catch(t){logger.error("Optimize bundle command failed:",t),vscode.window.showErrorMessage(`Failed to optimize bundle: ${t.message}`)}}),registerCommand("explorerDates.validateTeamConfig",async()=>{try{if(isWebRuntime){vscode.window.showInformationMessage("Team configuration validation is unavailable in VS Code for Web.");return}if(await ensureManagers(),!teamPersistenceManager){vscode.window.showInformationMessage("Team configuration validation is unavailable.");return}let t=await teamPersistenceManager.validateTeamConfiguration();if(t.hasTeamConfig){let e=t.conflicts.length>0?`Found ${t.conflicts.length} conflicts.`:"No conflicts detected.";vscode.window.showInformationMessage(`Team configuration validated. ${e}`)}else vscode.window.showInformationMessage("No team configuration found in workspace.")}catch(t){logger.error("Validate team config command failed:",t),vscode.window.showErrorMessage(`Failed to validate team configuration: ${t.message}`)}})];return commands.forEach(t=>context.subscriptions.push(t)),logger.info("Runtime management commands registered"),{runtimeManager:runtimeManagerProxy,teamPersistenceManager:teamPersistenceManagerProxy}}async function showChunkStatusQuickPick(t){if(typeof vscode?.window?.showQuickPick!="function"){diagLog("warn","QuickPick unavailable",{context:"runtimeCommands.showChunkStatus",isWeb:isWebRuntime});try{typeof vscode?.window?.showInformationMessage=="function"&&vscode.window.showInformationMessage("Explorer Dates: This action is unavailable in this environment.")}catch{}return}let e=vscode.workspace.getConfiguration("explorerDates"),n=[{name:"Onboarding System",key:"enableOnboardingSystem",size:34},{name:"Analysis Commands",key:"enableAnalysisCommands",size:23},{name:"Export Reporting",key:"enableExportReporting",size:17},{name:"Extension API",key:"enableExtensionApi",size:15},{name:"Workspace Templates",key:"enableWorkspaceTemplates",size:14},{name:"Advanced Cache",key:"enableAdvancedCache",size:28},{name:"Workspace Intelligence",key:"enableWorkspaceIntelligence",size:31},{name:"Incremental Workers",key:"enableIncrementalWorkers",size:19}].map(o=>{let a=e.get(o.key,!0),s=a?"\u2705":"\u274C",l=a?"Enabled":"Disabled";return{label:`${s} ${o.name}`,description:`${o.size}KB | ${l}`,detail:getChunkDescription(o.key)}});n.unshift({label:"\u{1F4CA} Bundle Summary",description:`Total: ${t.currentBundleSize}KB`,detail:`Base bundle: 99KB + ${t.currentBundleSize-99}KB chunks`}),await vscode.window.showQuickPick(n,{placeHolder:"Current chunk status",ignoreFocusOut:!0})}function getChunkDescription(t){return{enableOnboardingSystem:"Welcome messages and guided setup",enableAnalysisCommands:"Advanced file analysis and metrics",enableExportReporting:"CSV/JSON export and reporting features",enableExtensionApi:"Public API for other extensions",enableWorkspaceTemplates:"Project templates and scaffolding",enableAdvancedCache:"Intelligent caching and performance",enableWorkspaceIntelligence:"Smart workspace analysis and insights",enableIncrementalWorkers:"Background processing and optimization"}[t]||"Explorer Dates feature chunk"}async function determineOptimalProfile(t){if(!t)return null;let{workspaceSize:e,isRemoteEnvironment:r}=t,n;e==="extreme"||e==="large"&&r?n="minimal":e==="large"||r?n="balanced":n="enterprise";let a=(await Promise.resolve().then(()=>Z(be()))).PRESET_DEFINITIONS;return a[n]||a.balanced}module.exports={registerRuntimeCommands}});var ye=f((exports,module)=>{var FEATURE_FLAGS_GLOBAL_KEY="__explorerDatesFeatureFlags";function registerFeatureFlagsGlobal(t){if(t)try{typeof globalThis<"u"&&(globalThis[FEATURE_FLAGS_GLOBAL_KEY]=t)}catch{}}function loadFeatureFlagsFallback(){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function")return dynamicRequire("../featureFlags")}catch{}return null}function getFeatureFlagsGlobal(){try{if(typeof globalThis<"u"&&globalThis[FEATURE_FLAGS_GLOBAL_KEY])return globalThis[FEATURE_FLAGS_GLOBAL_KEY]}catch{}return loadFeatureFlagsFallback()}module.exports={FEATURE_FLAGS_GLOBAL_KEY,registerFeatureFlagsGlobal,getFeatureFlagsGlobal}});var He=f((ia,ur)=>{var Ee={onboarding:"src/chunks/onboarding-chunk",onboardingAssets:"src/chunks/onboarding-assets-chunk",reporting:"src/chunks/reporting-chunk",templates:"src/chunks/templates-chunk",analysis:"src/chunks/analysis-chunk",diagnostics:"src/chunks/diagnostics-chunk",extensionApi:"src/chunks/extension-api-chunk",advancedCache:"src/chunks/advancedCache-chunk",batchProcessor:"src/chunks/batchProcessor-chunk",decorationsAdvanced:"src/chunks/decorations-advanced",decorationsStatic:"src/chunks/decorations-static",workspaceIntelligence:"src/chunks/workspaceIntelligence",decorationLogic:"src/chunks/decoration-logic-chunk",decorationProvide:"src/chunks/decoration-provide-chunk",decorationHelpers:"src/chunks/decoration-helpers-chunk",decorationBatch:"src/chunks/decoration-batch-chunk",decorationWorkspaceIntel:"src/chunks/decoration-workspace-intel-chunk",decorationTelemetry:"src/chunks/decoration-telemetry-chunk",decorationRefresh:"src/chunks/decoration-refresh-chunk",decorationMemory:"src/chunks/decoration-memory-chunk",decorationPool:"src/chunks/decoration-pool-chunk",providerInit:"src/chunks/provider-init-chunk",fileDateProviderImpl:"src/chunks/file-date-provider-impl",fileDateProviderImplExport:"src/chunks/file-date-provider-impl-export",utilsShared:"src/chunks/utils-shared-chunk",incrementalWorkers:"src/chunks/incrementalWorkers",incrementalIndexer:"src/chunks/incrementalIndexer-chunk",uiAdapters:"src/chunks/ui-adapters",gitInsights:"src/chunks/gitInsights-chunk",smartWatcherFallback:"src/chunks/smartWatcherFallback-chunk",runtimeManagement:"src/chunks/runtime-management",runtimeManagementHeavy:"src/chunks/runtime-management-heavy",teamPersistence:"src/chunks/team-persistence-chunk",teamPersistenceUI:"src/chunks/team-persistence-ui-chunk",teamPersistenceLogic:"src/chunks/team-persistence-logic-chunk",settingsCoordinatorImpl:"src/chunks/settings-coordinator-impl-chunk",logger:"src/chunks/logger-chunk",loggerImpl:"src/chunks/logger-impl-chunk"};function yo(t){return Ee[t]||null}function Eo(){return Object.keys(Ee)}function vo(t){let e={};for(let[r,n]of Object.entries(Ee))e[r]=()=>t(`./${n}`);return e}var Co=new Set(["gitInsights","reporting","templates","advancedCache","runtimeManagementHeavy","incrementalWorkers"]);ur.exports={CHUNK_MAP:Ee,WEB_EXCLUDED_CHUNKS:Co,getChunkSourcePath:yo,getAllChunkNames:Eo,generateDevLoaderMap:vo}});var ve=f((exports,module)=>{var getLogger=()=>{try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let t=dynamicRequire("./chunks/logger-chunk");if(t&&typeof t.getLogger=="function")return getLogger=t.getLogger,getLogger()}}catch{}try{return getLogger=k().getLogger,getLogger()}catch{return getLogger=()=>({debug:(()=>{})?.bind(console)||console.log,info:(()=>{}).bind(console),warn:(()=>{}).bind(console),error:(()=>{}).bind(console)}),getLogger()}},{CHUNK_SIZES}=be(),{getChunkSourcePath,getAllChunkNames}=He(),{registerFeatureFlagsGlobal}=ye(),{isWebEnvironment}=ee(),featureLogger=null,env=typeof process<"u"&&process.env?process.env:{},DEFAULT_CHUNK_TIMEOUT_MS=Number(env.EXPLORER_DATES_CHUNK_TIMEOUT||(env.NODE_ENV==="test"?1e3:5e3)),NETWORK_ERROR_CODES=new Set(["ENOTFOUND","ECONNRESET","ECONNREFUSED","EAI_AGAIN","ETIMEDOUT","EHOSTUNREACH"]),BUILT_CHUNK_CACHE=new Map,CHUNK_METHOD_ALIASES={reporting:"exportReporting",templates:"workspaceTemplates",analysis:"analysisCommands"},DEV_CHUNK_PATH_CACHE=new Map,LAST_FEATURE_FAILURES=new Map;function getDevChunkImportPath(t){if(DEV_CHUNK_PATH_CACHE.has(t))return DEV_CHUNK_PATH_CACHE.get(t);let e=getChunkSourcePath(t);if(!e)return DEV_CHUNK_PATH_CACHE.set(t,null),null;let r=e;return r.startsWith("src/")&&(r=r.slice(4)),r.startsWith("./")||(r=`./${r}`),DEV_CHUNK_PATH_CACHE.set(t,r),r}function resolveNodeDependencies(){if(nativeDepsResolved)return!!(nativePath&&nativeFs);if(nativeDepsResolved=!0,!isNodeLikeRuntime())return!1;try{nativePath=eval("require")("path"),nativeFs=eval("require")("fs")}catch{nativePath=null,nativeFs=null}return!!(nativePath&&nativeFs)}var nativeDepsResolved=!1,nativePath=null,nativeFs=null;function isWebRuntime(){try{return(isWebEnvironment()||typeof process<"u")&&!0}catch{return!1}}function isNodeLikeRuntime(){return typeof process<"u"&&!!process.versions?.node&&!isWebRuntime()}function getChunkTimeoutMs(){return DEFAULT_CHUNK_TIMEOUT_MS>0?DEFAULT_CHUNK_TIMEOUT_MS:0}function logFeature(t,e,r){featureLogger||(featureLogger=getLogger());let n=featureLogger;typeof n[t]=="function"?n[t](e,r):n.info(e,r)}function logFeatureDisabled(t,e){logFeature("info","Feature disabled via configuration",{feature:t,savedKB:e&&CHUNK_SIZES[e]!==void 0?CHUNK_SIZES[e]:void 0})}function isLikelyNetworkIssue(t){if(!t)return!1;if(t.code&&NETWORK_ERROR_CODES.has(t.code))return!0;let e=(t.message||"").toLowerCase();return e.includes("network")||e.includes("fetch")||e.includes("timed out")}function runWithChunkTimeout(t,e){let r=getChunkTimeoutMs(),n=()=>{try{return Promise.resolve(t())}catch(o){return Promise.reject(o)}};return r?new Promise((o,a)=>{let s=!1,l=setTimeout(()=>{if(s)return;s=!0;let i=new Error(`Chunk "${e}" load timed out after ${r}ms`);i.code="CHUNK_TIMEOUT",a(i)},r);n().then(i=>{s||(s=!0,clearTimeout(l),o(i))}).catch(i=>{s||(s=!0,clearTimeout(l),a(i))})}):n()}function logResolverFailure(t,e){if(!e)return;let r={chunkName:t,error:e.message,code:e.code,networkIssue:isLikelyNetworkIssue(e),timedOut:e.code==="CHUNK_TIMEOUT"},n=r.networkIssue||r.timedOut?"warn":"error";logFeature(n,"Chunk resolver failed",r)}function tryLoadBuiltChunk(t){if(!t||!resolveNodeDependencies()||typeof nativeFs?.existsSync!="function")return null;if(BUILT_CHUNK_CACHE.has(t))return BUILT_CHUNK_CACHE.get(t);let e=[];typeof __dirname=="string"&&nativePath&&(e.push(nativePath.join(__dirname,"chunks",`${t}.js`)),e.push(nativePath.join(__dirname,"..","dist","chunks",`${t}.js`)));for(let r of e)try{if(!r||!nativeFs.existsSync(r))continue;let n=require(r),o=n?.default||n;return BUILT_CHUNK_CACHE.set(t,o||null),o&&logFeature("info","Loaded chunk via built artifact fallback",{chunkName:t,path:r}),o}catch(n){logFeature("warn","Built chunk fallback failed",{chunkName:t,path:r,error:n.message})}return BUILT_CHUNK_CACHE.set(t,null),null}function tryRequireDevChunk(t){if(isWebRuntime())return null;let e=getDevChunkImportPath(t);if(!e)return null;try{let r=require(e);return r?.default||r}catch(r){(r.code!=="MODULE_NOT_FOUND"||typeof r.message=="string"&&!r.message.includes(e))&&logFeature("debug","Dev chunk require failed",{chunkName:t,importPath:e,error:r.message})}return null}function tryRequireLocalBuiltChunk(t){if(isWebRuntime())return null;let e=`./chunks/${t}`;try{let r=require(e);return r?.default||r}catch(r){r.code==="MODULE_NOT_FOUND"||logFeature("debug","Local chunk require failed",{chunkName:t,importPath:e,error:r.message})}return null}function getSavingsKey(t){return t in CHUNK_SIZES?t:CHUNK_METHOD_ALIASES[t]||null}function announceChunkSavings(t){let e=getSavingsKey(t);if(!e)return;let r=CHUNK_SIZES[e];if(!r)return;let o=`\u{1F4BE} ${e===t||!t?e:`${e} (requested as "${t}")`} chunk unavailable - keeping the feature disabled is saving ~${r}KB`;logFeature("info","Chunk savings applied",{chunkName:e,requestedName:t,savedKB:r})}var getFeatureConfig=()=>{try{let e=require("vscode").workspace.getConfiguration("explorerDates"),r=isWebRuntime(),n=o=>r?!1:o;return{enableOnboarding:e.get("enableOnboardingSystem",!0),enableExportReporting:n(e.get("enableExportReporting",!0)),enableWorkspaceTemplates:n(e.get("enableWorkspaceTemplates",!0)),enableAnalysisCommands:e.get("enableAnalysisCommands",!0),enableAdvancedCache:n(e.get("enableAdvancedCache",!0)),enableWorkspaceIntelligence:n(e.get("enableWorkspaceIntelligence",!0)),enableIncrementalWorkers:n(e.get("enableIncrementalWorkers",!1)),enableGitInsights:n(e.get("enableGitInsights",!0)),enableExtensionApi:e.get("enableExtensionApi",!0)}}catch{let t=isWebRuntime(),e=r=>t?!1:r;return{enableOnboarding:!0,enableExportReporting:e(!0),enableWorkspaceTemplates:e(!0),enableAnalysisCommands:!0,enableAdvancedCache:e(!0),enableWorkspaceIntelligence:e(!0),enableIncrementalWorkers:e(!1),enableGitInsights:e(!0),enableExtensionApi:!0}}},featureLoaders=new Map,chunkResolver=null;function setFeatureChunkResolver(t){if(t&&typeof t!="function")throw new Error("Feature chunk resolver must be a function");chunkResolver=t||null}function registerFeatureLoader(t,e){if(typeof e!="function")throw new Error(`Feature loader for "${t}" must be a function`);featureLoaders.set(t,e)}function unregisterFeatureLoader(t){featureLoaders.delete(t)}function clearFeatureLoaders(){featureLoaders.clear()}async function loadFeatureModule(t){LAST_FEATURE_FAILURES.delete(t);let e=featureLoaders.get(t);if(!e&&chunkResolver&&(e=()=>chunkResolver(t)),!e)return logFeature("warn","No loader registered for feature",{feature:t}),null;try{return await runWithChunkTimeout(()=>e(),t)}catch(r){return LAST_FEATURE_FAILURES.set(t,r),logFeature("warn","Feature loader failed",{feature:t,error:r.message,code:r.code,networkIssue:isLikelyNetworkIssue(r)}),announceChunkSavings(t),null}}function getFeatureLoadFailure(t){return LAST_FEATURE_FAILURES.get(t)}function registerDefaultLoaders(){getAllChunkNames().forEach(e=>{featureLoaders.has(e)||registerFeatureLoader(e,createDefaultLoader(e))})}function createDefaultLoader(t){return async()=>{if(chunkResolver&&typeof chunkResolver=="function")try{let o=await runWithChunkTimeout(()=>chunkResolver(t),t);if(o)return o;logFeature("info","Chunk resolver returned no module",{chunkName:t})}catch(o){logResolverFailure(t,o)}let e=tryRequireDevChunk(t);if(e)return e;let r=tryRequireLocalBuiltChunk(t);if(r)return r;let n=tryLoadBuiltChunk(t);return n||(logFeature("warn","No built artifact available for chunk",{chunkName:t}),null)}}var featureFlags={async onboarding(){return getFeatureConfig().enableOnboarding?loadFeatureModule("onboarding"):(logFeatureDisabled("onboarding","onboarding"),null)},async exportReporting(){return getFeatureConfig().enableExportReporting?loadFeatureModule("reporting"):(logFeatureDisabled("exportReporting","exportReporting"),null)},async workspaceTemplates(){return getFeatureConfig().enableWorkspaceTemplates?loadFeatureModule("templates"):(logFeatureDisabled("workspaceTemplates","workspaceTemplates"),null)},async analysisCommands(){return getFeatureConfig().enableAnalysisCommands?loadFeatureModule("analysis"):(logFeatureDisabled("analysisCommands","analysisCommands"),null)},async advancedCache(){return getFeatureConfig().enableAdvancedCache?loadFeatureModule("advancedCache"):(logFeatureDisabled("advancedCache","advancedCache"),null)},async workspaceIntelligence(){return getFeatureConfig().enableWorkspaceIntelligence?loadFeatureModule("workspaceIntelligence"):(logFeatureDisabled("workspaceIntelligence","workspaceIntelligence"),null)},async incrementalWorkers(){return getFeatureConfig().enableIncrementalWorkers?loadFeatureModule("incrementalWorkers"):(logFeatureDisabled("incrementalWorkers","incrementalWorkers"),null)},async extensionApi(){return getFeatureConfig().enableExtensionApi?loadFeatureModule("extensionApi"):(logFeatureDisabled("extensionApi","extensionApi"),null)},async uiAdapters(){return loadFeatureModule("uiAdapters")},async batchProcessor(){return loadFeatureModule("batchProcessor")},async decorationsAdvanced(){return loadFeatureModule("decorationsAdvanced")},async decorationsProviderImpl(){return loadFeatureModule("decorationsProviderImpl")},async gitInsights(){return getFeatureConfig().enableGitInsights?loadFeatureModule("gitInsights"):(logFeatureDisabled("gitInsights","gitInsights"),null)},isEnabled(t){let e=getFeatureConfig();return{onboarding:e.enableOnboarding,exportReporting:e.enableExportReporting,workspaceTemplates:e.enableWorkspaceTemplates,analysisCommands:e.enableAnalysisCommands,advancedCache:e.enableAdvancedCache,workspaceIntelligence:e.enableWorkspaceIntelligence,incrementalWorkers:e.enableIncrementalWorkers,extensionApi:e.enableExtensionApi}[t]??!0},getEnabledFeatures(){let t=getFeatureConfig(),e=[];return t.enableOnboarding&&e.push("onboarding"),t.enableExportReporting&&e.push("exportReporting"),t.enableWorkspaceTemplates&&e.push("workspaceTemplates"),t.enableAnalysisCommands&&e.push("analysisCommands"),t.enableAdvancedCache&&e.push("advancedCache"),t.enableWorkspaceIntelligence&&e.push("workspaceIntelligence"),t.enableIncrementalWorkers&&e.push("incrementalWorkers"),t.enableExtensionApi&&e.push("extensionApi"),e},calculateSavings(){let t=getFeatureConfig(),e=0;return t.enableOnboarding||(e+=34),t.enableExportReporting||(e+=17),t.enableExtensionApi||(e+=15),t.enableWorkspaceTemplates||(e+=14),t.enableWorkspaceIntelligence||(e+=12),t.enableAnalysisCommands||(e+=8),t.enableAdvancedCache||(e+=5),e}};for(let[t,e]of Object.entries(CHUNK_METHOD_ALIASES))!featureFlags[t]&&typeof featureFlags[e]=="function"&&(featureFlags[t]=(...r)=>featureFlags[e](...r));function calculateSavings(t){t||(t=getFeatureConfig());let e=267,r=0;t.enableOnboarding||(r+=34),t.enableExportReporting||(r+=17),t.enableExtensionApi||(r+=15),t.enableWorkspaceTemplates||(r+=14),t.enableWorkspaceIntelligence||(r+=12),t.enableIncrementalWorkers||(r+=19),t.enableAnalysisCommands||(r+=8),t.enableAdvancedCache||(r+=5);let n=e-r,o=r>0?Math.round(r/e*100):0;return{baseSize:`${e}KB`,totalSavings:`${r}KB`,optimizedSize:`${n}KB`,percentage:o}}registerDefaultLoaders();var exportedFeatureFlags={...featureFlags,getFeatureConfig,calculateSavings,registerFeatureLoader,setFeatureChunkResolver,unregisterFeatureLoader,clearFeatureLoaders,loadFeatureModule,getFeatureLoadFailure,registerDefaultLoaders};registerFeatureFlagsGlobal(exportedFeatureFlags);module.exports=exportedFeatureFlags});var hr=f((la,mr)=>{var Ce=require("vscode");function dr(){try{let t=Ce.workspace.workspaceFolders;return!t||t.length===0?!1:t.every(e=>e.uri.scheme!=="file")}catch{return!1}}function gr(){try{let t=Ce.workspace.workspaceFolders;return!t||t.length===0?!1:t.some(e=>e.uri.scheme!=="file")}catch{return!1}}function pr(){try{return Ce.workspace.workspaceFolders?.[0]?.uri?.scheme||"file"}catch{return"file"}}function fr(){try{let t=Ce.workspace.workspaceFolders||[],e=new Set(t.map(r=>r.uri.scheme||"file"));return Array.from(e)}catch{return["file"]}}function So(t){if(!t)return!1;try{return typeof t=="string"?t.startsWith("file://")||!t.includes("://"):t.scheme==="file"||!t.scheme}catch{return!1}}function Do(t){return!!t}function ko(){let t=dr(),e=gr(),r=fr(),n=pr(),o="local",a="Local file system workspace";return t?(o="virtual",n==="vscode-vfs"?a="VS Code for Web (browser-based)":n==="github"?a="GitHub Repositories (remote)":a=`Virtual workspace (${n} scheme)`):e&&(o="mixed",a="Mixed local and virtual folders"),{type:o,description:a,primaryScheme:n,schemes:r,isVirtual:t,hasVirtual:e}}mr.exports={isVirtualWorkspace:dr,hasVirtualFolders:gr,getPrimaryWorkspaceScheme:pr,getWorkspaceSchemes:fr,canUseNodeFS:So,canUseVSCodeFS:Do,getWorkspaceTypeInfo:ko}});var vr=f((ca,Er)=>{var{normalizePath:Ke,getUriPath:xo}=le(),{getLogger:To}=k(),ne=typeof process<"u"&&process.env?process.env:{},Ao=To(),oe=240,Ve=255,wr=/[\x00-\x1f\x7f<>:"|?*]/g,Ro=/[\x00-\x1f\x7f<>:"|?*]/,Fo=[/\.\./,/\.\.[\\/]/,/[\\/]\.\./,/^\.\.$/,/^\.\.[\\/]/,/[\\/]\.\.$/],br=new Set(["CON","PRN","AUX","NUL","COM1","COM2","COM3","COM4","COM5","COM6","COM7","COM8","COM9","LPT1","LPT2","LPT3","LPT4","LPT5","LPT6","LPT7","LPT8","LPT9"]),yr=new Set([".exe",".scr",".bat",".cmd",".pif",".vbs",".js",".jar",".com",".msi",".dll",".dmg",".pkg",".deb",".rpm"]),_o=new Set([".js",".jsx",".ts",".tsx",".mjs",".cjs",".py",".rb",".rs",".go",".php",".java",".kt",".swift",".cs",".c",".cpp",".h",".hpp",".html",".css",".scss",".less",".json",".jsonc",".md",".mdx",".txt",".sh",".bash",".yml",".yaml"]),Po=()=>ne.EXPLORER_DATES_TEST_MODE==="1"||ne.NODE_ENV==="test"||ne.VSCODE_TEST==="1"?"test":ne.EXPLORER_DATES_DEV_MODE==="1"||ne.NODE_ENV==="development"?"development":"production",Y=class{static hasPathTraversal(e){let r=this.f(e);if(!r||typeof r!="string")return!1;let n=Ke(r);return Fo.some(o=>o.test(n))}static hasDangerousChars(e){let r=this.f(e);return!r||typeof r!="string"?!1:Ro.test(r)}static isWindowsReservedName(e){if(!e||typeof e!="string")return!1;let r=e.split(".")[0].toUpperCase();return br.has(r)}static isSuspiciousExtension(e,r={}){let{workspaceContext:n=!0}=r;if(!e||typeof e!="string")return!1;let o=e.toLowerCase(),a=o.startsWith(".")?o:`.${o}`;return n&&_o.has(a)?!1:yr.has(a)}static isPathTooLong(e){let r=this.f(e);return!r||typeof r!="string"?!1:r.length>oe}static isFilenameTooLong(e){return!e||typeof e!="string"?!1:e.length>Ve}static validatePath(e,r={}){let{allowSuspiciousExtensions:n=!1,allowWindowsReservedNames:o=!1,strictLength:a=!0,workspaceContext:s=!0}=r,l=this.f(e),i=[],c=[];if(!l||typeof l!="string")return{isValid:!1,path:l,issues:["Invalid or empty path"],warnings:[],isSafe:!1};this.hasPathTraversal(l)&&i.push("Path contains directory traversal attempts"),this.hasDangerousChars(l)&&i.push("Path contains dangerous characters"),a&&this.isPathTooLong(l)&&i.push(`Path exceeds maximum length (${oe})`);let u=l.split(/[/\\]/).pop()||"";a&&this.isFilenameTooLong(u)&&i.push(`Filename exceeds maximum length (${Ve})`),!o&&this.isWindowsReservedName(u)&&c.push("Filename is a Windows reserved name");let g=u.includes(".")?u.split(".").pop():"";return!n&&this.isSuspiciousExtension(g,{workspaceContext:s})&&c.push("File extension is potentially suspicious"),{isValid:i.length===0,path:l,filename:u,extension:g,issues:i,warnings:c,isSafe:i.length===0&&c.length===0}}static sanitizePath(e,r={}){let{replacementChar:n="_",preserveExtension:o=!0}=r,a=this.f(e);if(!a||typeof a!="string")return"";a=a.replace(/\x00/g,"");let s=a.startsWith("/"),l=Ke(a).split("/").filter(Boolean),i=[];for(let c of l){if(c===".."){i.length>0&&i.pop();continue}c!=="."&&i.push(c)}if(a=(s?"/":"")+i.join("/"),a=a.replace(wr,n),o){let c=a.split("/"),u=c[c.length-1];if(u&&this.isWindowsReservedName(u)){let g=u.split(".");g[0]=g[0]+"_safe",c[c.length-1]=g.join("."),a=c.join("/")}}return a.length>oe&&(a=a.substring(0,oe),Ao.warn("Path truncated due to length:",a)),a}static isWithinBoundaries(e,r=[]){let n=this.f(e);if(!n||!Array.isArray(r)||r.length===0)return!1;let o=n.split("/").filter(Boolean),a=[];for(let l of o)l===".."?a.length>0&&a.pop():l!=="."&&a.push(l);let s="/"+a.join("/");return r.some(l=>{let i=Ke(l);return s.startsWith(i)})}static validateRegexPattern(e){if(!e||typeof e!="string")return{isValid:!1,issue:"Invalid pattern"};let r=[/\([^)]*\+[^)]*\)\+/,/\([^)]*\*[^)]*\)\*/,/\([^)]*\+[^)]*\)\*/,/\([^)]*\*[^)]*\)\+/,/\+.*\*|{\d+,}.*\*/,/\([^|]*\|[^)]*\)\*/];for(let n of r)if(n.test(e))return{isValid:!1,issue:"Pattern may cause catastrophic backtracking (ReDoS)"};try{return new RegExp(e),{isValid:!0}}catch(n){return{isValid:!1,issue:`Invalid regex syntax: ${n.message}`}}}static f(e){if(!e)return"";if(typeof e=="string")return e;try{return xo(e)}catch{return String(e)}}},Be=class{static validateFileUri(e,r=[]){if(!e||typeof e!="object")return{isValid:!1,issue:"Invalid URI object"};if(e.scheme!=="file"&&e.scheme!=="vscode-vfs")return{isValid:!1,issue:`Unsupported URI scheme: ${e.scheme}`};let n=Y.validatePath(e);return n.isValid?r.length>0&&!Y.isWithinBoundaries(e,r)?{isValid:!1,issue:"Path is outside allowed workspace boundaries"}:{isValid:!0,warnings:n.warnings}:{isValid:!1,issue:`Path validation failed: ${n.issues.join(", ")}`}}static validateExclusionPatterns(e){if(!Array.isArray(e))return{isValid:!1,issue:"Patterns must be an array"};let r=[],n=[];for(let o of e){if(typeof o!="string"){n.push(`Invalid pattern type: ${typeof o}`);continue}let a=o.replace(/\./g,"\\.").replace(/\*/g,".*").replace(/\?/g,"."),s=Y.validateRegexPattern(a);r.push({pattern:o,isValid:s.isValid,issue:s.issue}),s.isValid||n.push(`Pattern "${o}": ${s.issue}`)}return{isValid:n.length===0,results:r,issues:n}}};Er.exports={SecurityValidator:Y,SecureFileOperations:Be,detectSecurityEnvironment:Po,MAX_SAFE_PATH_LENGTH:oe,MAX_SAFE_FILENAME_LENGTH:Ve,DANGEROUS_PATH_CHARS:wr,WINDOWS_RESERVED_NAMES:Array.from(br),SUSPICIOUS_EXTENSIONS:Array.from(yr)}});var Cr=f((exports,module)=>{var vscode=require("vscode"),getLogger=()=>{try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let t=dynamicRequire("./chunks/logger-chunk");if(t&&typeof t.getLogger=="function")return getLogger=t.getLogger,getLogger()}}catch{}try{return getLogger=k().getLogger,getLogger()}catch{return getLogger=()=>({debug:(()=>{})?.bind(console)||console.log,info:(()=>{}).bind(console),warn:(()=>{}).bind(console),error:(()=>{}).bind(console)}),getLogger()}},{fileSystem}=pe(),env=typeof process<"u"&&process.env?process.env:{},{formatFileSize}=_e(),getFileName=p=>{try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let t=null;try{t=dynamicRequire("../chunks/utils-shared-chunk")}catch{}try{t||(t=dynamicRequire("./chunks/utils-shared-chunk"))}catch{}try{t||(t=dynamicRequire("./chunks/path-utils-chunk"))}catch{}if(t&&typeof t.getFileName=="function")return getFileName=t.getFileName,getFileName(p)}}catch{}try{let e=String(p||"").replace(/\\/g,"/"),r=e.lastIndexOf("/");return r===-1?e:e.substring(r+1)}catch{return"unknown"}},getExtension=p=>{try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let t=null;try{t=dynamicRequire("../chunks/utils-shared-chunk")}catch{}try{t||(t=dynamicRequire("./chunks/utils-shared-chunk"))}catch{}try{t||(t=dynamicRequire("./chunks/path-utils-chunk"))}catch{}if(t&&typeof t.getExtension=="function")return getExtension=t.getExtension,getExtension(p)}}catch{}try{let t=String(p||""),e=t.lastIndexOf(".");return e<=0?"":t.substring(e).toLowerCase()}catch{return""}},buildCacheKey=p=>{try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let t=null;try{t=dynamicRequire("../chunks/utils-shared-chunk")}catch{}try{t||(t=dynamicRequire("./chunks/utils-shared-chunk"))}catch{}try{t||(t=dynamicRequire("./chunks/path-utils-chunk"))}catch{}if(t&&typeof t.getCacheKey=="function")return buildCacheKey=t.getCacheKey,buildCacheKey(p)}}catch{}return String(p||"").toLowerCase().replace(/\\/g,"/")},normalizePath=input=>{try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let t=null;try{t=dynamicRequire("../chunks/utils-shared-chunk")}catch{}try{t||(t=dynamicRequire("./chunks/utils-shared-chunk"))}catch{}try{t||(t=dynamicRequire("./chunks/path-utils-chunk"))}catch{}if(t&&typeof t.normalizePath=="function")return normalizePath=t.normalizePath,normalizePath(input)}}catch{}return String(input||"").replace(/\\/g,"/")},getUriPath=(target="")=>{try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let t=null;try{t=dynamicRequire("../chunks/utils-shared-chunk")}catch{}try{t||(t=dynamicRequire("./chunks/utils-shared-chunk"))}catch{}try{t||(t=dynamicRequire("./chunks/path-utils-chunk"))}catch{}if(t&&typeof t.getUriPath=="function")return getUriPath=t.getUriPath,getUriPath(target)}}catch{}if(!target)return"";if(typeof target=="string")return target;if(typeof target.fsPath=="string"&&target.fsPath.length>0)return target.fsPath;if(typeof target.path=="string"&&target.path.length>0)return target.path;if(typeof target.toString=="function")try{return target.toString(!0)}catch{return target.toString()}return String(target)},{DEFAULT_CACHE_TIMEOUT,DEFAULT_MAX_CACHE_SIZE,GLOBAL_STATE_KEYS,DEFAULT_DECORATION_POOL_SIZE,DEFAULT_FLYWEIGHT_CACHE_SIZE,WORKSPACE_SCALE_EXTREME_THRESHOLD}=N(),{isWebEnvironment}=ee(),{getSettingsCoordinator}=re(),{SecurityValidator,SecureFileOperations,detectSecurityEnvironment}=vr(),DISABLE_GIT_FEATURES=env.EXPLORER_DATES_DISABLE_GIT_FEATURES==="1",IS_WEB_ENV=isWebEnvironment()||env.VSCODE_WEB==="true",nodePath=null;try{IS_WEB_ENV||(nodePath=require("path"))}catch{nodePath=null}var pathCompat={basename:t=>{if(!t)return"";try{if(!IS_WEB_ENV)return require("path").basename(t)}catch{let e=t.replace(/\\/g,"/"),r=e.lastIndexOf("/");return r===-1?e:e.substring(r+1)}},dirname:t=>{if(!t)return".";try{if(!IS_WEB_ENV)return require("path").dirname(t)}catch{let e=t.replace(/\\/g,"/"),r=e.lastIndexOf("/");return r===-1?".":e.substring(0,r)}}};(async()=>{try{let e=await ve().decorationsStatic();e&&(e.basename&&e.dirname&&(pathCompat.basename=e.basename,pathCompat.dirname=e.dirname),e.describeFile&&(exports.Ue=e.describeFile))}catch{}})();var CONFIG_DEFAULT_CACHE_TIMEOUT=3e4,CACHE_NAMESPACE_SEPARATOR="::",DEFAULT_DYNAMIC_WATCHER_LIMIT=Number(env.EXPLORER_DATES_MAX_DYNAMIC_WATCHERS||200),DEFAULT_WATCHER_INACTIVITY_MS=Number(env.EXPLORER_DATES_WATCHER_TTL_MS||600*1e3),DEFAULT_SMART_WATCHER_EXTENSIONS=["js","ts","json","md","py","java"],SMART_WATCHER_PRIORITY=new Map([["src",100],["lib",65],["test",30]]),WORKSPACE_SCAN_TIMEOUT_MS=Number(env.EXPLORER_DATES_WORKSPACE_SCAN_TIMEOUT||7e3),WORKSPACE_SCAN_TIMEOUT_FALLBACK_COUNT=WORKSPACE_SCALE_EXTREME_THRESHOLD,VIEWPORT_DEFAULT_WINDOW_MS=300*1e3,DEFAULT_VIEWPORT_HISTORY_LIMIT=Number(env.EXPLORER_DATES_VIEWPORT_HISTORY_LIMIT||400),FEATURE_LEVELS=["full","enhanced","standard","minimal"],DEFAULT_INDEXER_MAX_FILES=Math.max(100,Number(env.EXPLORER_DATES_INDEXER_MAX_FILES||2e3)),SECURITY_EXTRA_PATHS_ENV="EXPLORER_DATES_SECURITY_EXTRA_PATHS",DEFAULT_SECURITY_THROTTLE_MS=Number(env.EXPLORER_DATES_SECURITY_WARNING_THROTTLE_MS||5e3),SECURITY_WARNING_CACHE_LIMIT=Number(env.EXPLORER_DATES_SECURITY_WARNING_CACHE||500),DEFAULT_SECURITY_MAX_WARNINGS=Number(env.EXPLORER_DATES_SECURITY_MAX_WARNINGS_PER_FILE??1),describeFile=(t="")=>{try{let e=typeof t=="string"?t:getUriPath(t),r=normalizePath(e);return getFileName(r)||r||"unknown"}catch{return"unknown"}};(async()=>{try{let e=await ve().decorationsStatic();e&&typeof e.describeFile=="function"&&(describeFile=e.describeFile)}catch{}})();var LazyHierarchicalDecorationCache=class{constructor(){this.l=new Map}get size(){return this.l.size}get bucketCount(){return 0}clear(){this.l.clear()}get(e){return this.l.get(e)}set(e,r){this.l.set(e,r)}delete(e){return this.l.delete(e)}*entries(){yield*this.l.entries()}*keys(){yield*this.l.keys()}*values(){yield*this.l.values()}[Symbol.iterator](){return this.entries()}enforceLimit(){return 0}},FileDateDecorationProviderImpl=class{constructor(...args){try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function"){let t=dynamicRequire("./chunks/file-date-provider-impl");if(t&&typeof t.FileDateDecorationProviderImpl=="function")return new t.FileDateDecorationProviderImpl(...args);if(t&&typeof t.FileDateDecorationProvider=="function")return new t.FileDateDecorationProvider(...args)}}catch(t){}throw new Error("FileDateDecorationProvider implementation is not available in this environment")}},FileDateDecorationProvider=class{constructor(...args){let loaderError=null;try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(typeof dynamicRequire=="function")try{let t=null;try{t=dynamicRequire("./chunks/file-date-provider-impl-export")}catch{}if(t){let r=t.FileDateDecorationProvider||t.FileDateDecorationProviderImpl||t.default;return typeof r=="function"?new r(...args):new FileDateDecorationProviderImpl(...args)}t=dynamicRequire("./chunks/file-date-provider-impl");let e=t&&(t.FileDateDecorationProvider||t.FileDateDecorationProviderImpl||t.default);if(typeof e=="function")return new e(...args)}catch(t){loaderError=t}try{let t=null;try{t=require.resolve("./chunks/file-date-provider-impl-export",{paths:[__dirname]})}catch{}t||(t=require.resolve("./chunks/file-date-provider-impl",{paths:[__dirname]}));let e=require(t),r=e&&(e.FileDateDecorationProvider||e.FileDateDecorationProviderImpl||e.default);if(t&&t.endsWith("file-date-provider-impl-export.js")&&!r)return new FileDateDecorationProviderImpl(...args);if(typeof r=="function")return new r(...args)}catch(t){loaderError=loaderError||t}}catch(t){loaderError=loaderError||t}if(loaderError&&loaderError.message){let t=`FileDateDecorationProvider implementation is unavailable: ${loaderError.message}`;throw new Error(t)}throw new Error("FileDateDecorationProvider implementation is unavailable")}};module.exports={FileDateDecorationProvider,FileDateDecorationProviderImpl}});var Sr=f((exports,module)=>{var vscode=require("vscode"),env=typeof process<"u"&&process.env?process.env:{},{getLogger}=k(),l10n;async function ensureLocalization(){return l10n||(l10n=(await Promise.resolve().then(()=>Z(Q()))).getLocalization()),l10n}var{fileSystem}=pe(),{registerCoreCommands}=$t(),{registerOnboardingCommands}=zt(),{registerMigrationCommands}=Yt(),{commandCancellation,commandEmpty,commandSuccess,isCommandOutcome,OUTCOME_CATEGORIES}=Me(),{initializeTemplateStore}=Xt(),{SettingsMigrationManager}=Qt(),{ExtensionError,ERROR_CODES,ChunkLoadError,handleChunkFailure}=Ae(),{isWebDiagnosticsEnabled,diagLog,recordCommandRegistration,recordCommandInvocation,recordCommandResult,recordChunkEvent,recordProviderEvent,getWebDiagnosticsState}=G(),ensureDate;try{let t=de();t&&(ensureDate=t.ensureDate)}catch{}ensureDate||(ensureDate=Fe().ensureDate);var{WEB_CHUNK_GLOBAL_KEY,LEGACY_WEB_CHUNK_GLOBAL_KEY}=N(),isWebEnvironment=()=>{try{if(typeof process<"u")return!0}catch{}try{return vscode?.env?.uiKind===vscode?.UIKind?.Web}catch{return!1}};if(isWebEnvironment()&&typeof globalThis<"u"&&!globalThis.O)try{globalThis.O=ze()}catch{}var nodeFs=null,nodePath=null,webTextDecoder=typeof TextDecoder=="function"?new TextDecoder("utf-8"):null;if(!isWebEnvironment()){try{nodeFs=require("fs")}catch{nodeFs=null}try{nodePath=require("path")}catch{nodePath=null}}var AUTO_SUGGESTION_DELAY_MS=3e3;function getCriticalChunks(){return isWebEnvironment()?[]:["incrementalWorkers"]}function resolveDefaultDistPath(){return!nodePath||typeof nodePath.basename!="function"||typeof nodePath.join!="function"?null:nodePath.basename(__dirname)==="dist"?__dirname:nodePath.join(__dirname,"dist")}var DEFAULT_DIST_PATH=resolveDefaultDistPath(),fileDateProvider,logger,runtimeAutoSuggestionTimer=null,activeRuntimeManager=null,activeTeamPersistenceManager=null,_warnedWorkspaces=new Set,ANALYSIS_WARNING_WORKSPACE_KEY="explorerDates.analysisCommandsDisabledWarningByWorkspace";if(typeof globalThis<"u"&&!globalThis.k)try{globalThis.k=new WeakMap}catch{globalThis.k=null}function getActiveLogger(){return logger||(logger=getLogger()),logger}function getWorkspaceId(){return vscode.workspace.workspaceFolders?.[0]?.uri?.toString()||"global"}function hasShownAnalysisWarning(t){let e=getWorkspaceId(),r=t?.globalState?.get?t.globalState.get(ANALYSIS_WARNING_WORKSPACE_KEY,{}):{},n=typeof globalThis<"u"?globalThis.k:null,o=n&&n.has(t)?n.get(t):{};return!!r[e]||!!o[e]||_warnedWorkspaces.has(e)}async function setAnalysisWarningShown(t,e){let r=getWorkspaceId(),n=t?.globalState?.get?t.globalState.get(ANALYSIS_WARNING_WORKSPACE_KEY,{}):{};n[r]=e,e?_warnedWorkspaces.add(r):_warnedWorkspaces.delete(r);let o=typeof globalThis<"u"?globalThis.k:null;if(o&&t)try{o.set(t,n)}catch{}await t.globalState.update(ANALYSIS_WARNING_WORKSPACE_KEY,n)}var{registerFeatureFlagsGlobal}=ye(),featureFlagsModule=ve();registerFeatureFlagsGlobal(featureFlagsModule);var featureFlags=featureFlagsModule,{setFeatureChunkResolver}=featureFlagsModule,{CHUNK_MAP,generateDevLoaderMap}=He(),sourceChunkLoader=(()=>{if(typeof process>"u"||env.NODE_ENV==="production")return null;try{let localRequire=eval("require");return t=>{try{let r=generateDevLoaderMap(localRequire)[t]?.();return r?.default||r||null}catch(e){let r=new ExtensionError(ERROR_CODES.CHUNK_LOAD_FAILED,`Source chunk fallback failed for ${t}`,{chunkName:t,source:"development",error:e.message});return getActiveLogger().warn(r.message,r.context),null}}}catch{return null}})(),chunkLoader={loadedChunks:new Map,distPath:DEFAULT_DIST_PATH,extensionUri:null,webChunkPromises:new Map,ee:new Set,N:new Set,c:null,initialize(t){nodePath&&(typeof t?.asAbsolutePath=="function"?this.distPath=t.asAbsolutePath("dist"):t?.extensionPath&&(this.distPath=nodePath.join(t.extensionPath,"dist"))),t?.extensionUri&&(this.extensionUri=t.extensionUri),this.c||(this.c=this.Fe())},async loadChunk(t){if(this.loadedChunks.has(t))return this.loadedChunks.get(t);try{isWebDiagnosticsEnabled()&&recordChunkEvent(t,"load:start");let e=isWebEnvironment()?null:this._e(t);if(isWebEnvironment()){let r=this.U()?.[t]??null;return r&&(this.loadedChunks.set(t,r),getActiveLogger().info("Chunk loaded",{chunkName:t,target:"web"}),isWebDiagnosticsEnabled()&&recordChunkEvent(t,"load:success")),r}return e&&(this.loadedChunks.set(t,e),getActiveLogger().info("Chunk loaded",{chunkName:t,target:"node"}),isWebDiagnosticsEnabled()&&recordChunkEvent(t,"load:success")),e}catch(e){isWebDiagnosticsEnabled()&&recordChunkEvent(t,"load:failure",e);let r=e instanceof ExtensionError?e:new ExtensionError(ERROR_CODES.CHUNK_LOAD_FAILED,`Failed to load chunk ${t}`,{chunkName:t,target:isWebEnvironment()?"web":"node",error:e?.message});return getActiveLogger().warn(r.message,r.context),null}},assertChunkArtifacts(t=[]){if(!nodeFs||!this.distPath||!Array.isArray(t)||t.length===0)return;let e=t.filter(r=>!this.Pe(r));if(e.length>0){let r=new ChunkLoadError(e.join(", "),"missing built artifacts",{recoverable:!1,context:{chunkNames:e,distPath:this.distPath,fix:'Run "npm run package-chunks" before packaging or testing.'}});throw handleChunkFailure(e.join(", "),r,{userFacing:!0}),r}},Pe(t){if(!nodeFs||!this.distPath)return!0;let e=nodePath.join(this.distPath,"chunks",`${t}.js`),r=nodePath.join(this.distPath,"web-chunks",`${t}.js`);return isWebEnvironment()?nodeFs.existsSync(r):nodeFs.existsSync(e)},_e(t){if(nodeFs&&nodePath&&this.distPath){let e=nodePath.join(this.distPath,"chunks",`${t}.js`);if(nodeFs.existsSync(e))try{let r=require(e);return r?.default&&(r=r.default),r}catch(r){let n=new ExtensionError(ERROR_CODES.CHUNK_LOAD_FAILED,`Failed to require built chunk ${t}`,{chunkName:t,path:e,error:r.message});getActiveLogger().warn(n.message,n.context)}}return sourceChunkLoader?sourceChunkLoader(t):(this.te(t),null)},async x(t){if(!this.extensionUri){let e=new ExtensionError(ERROR_CODES.CHUNK_LOAD_FAILED,"Missing extensionUri for web chunk loading",{chunkName:t});return getActiveLogger().warn(e.message,e.context),null}if(!this.webChunkPromises.has(t)){let e=(async()=>{await this.Me(t);let n=this.U()?.[t];if(!n)throw new Error(`Web chunk ${t} failed to register`);return n})();this.webChunkPromises.set(t,e)}return this.webChunkPromises.get(t)},async Me(t){if(this.ee.has(t))return;let e=vscode.Uri.joinPath(this.extensionUri,"dist","web-chunks",`${t}.js`);if(!vscode.workspace?.fs||!webTextDecoder)throw new Error("Workspace FS or TextDecoder unavailable for web chunk loading");try{let r=await vscode.workspace.fs.readFile(e),n=webTextDecoder.decode(r),o=s=>this.We(s);new Function("require",n).call(globalThis,o),this.re(),this.ee.add(t)}catch(r){throw this.te(t),r}},U(){let t=globalThis[WEB_CHUNK_GLOBAL_KEY]||globalThis[LEGACY_WEB_CHUNK_GLOBAL_KEY]||null;return t&&this.re(),t},re(){let t=globalThis[WEB_CHUNK_GLOBAL_KEY]||globalThis[LEGACY_WEB_CHUNK_GLOBAL_KEY]||{};globalThis[WEB_CHUNK_GLOBAL_KEY]||(globalThis[WEB_CHUNK_GLOBAL_KEY]=t),globalThis[LEGACY_WEB_CHUNK_GLOBAL_KEY]||(globalThis[LEGACY_WEB_CHUNK_GLOBAL_KEY]=t)},Fe(){let t=new Map,e=Object.entries(CHUNK_MAP||{});for(let[r,n]of e){let o=String(n||"").split("/").pop();o&&t.set(o,r)}return t},Ie(t){if(!t)return null;let e=String(t).replace(/^[.\\/]+/,"").replace(/\.js$/,"");if(this.c&&this.c.has(e))return this.c.get(e);let r=e.split("/").pop();return this.c&&this.c.has(r)?this.c.get(r):null},We(t){if(t==="vscode")return vscode;let e=this.U();if(!e)throw new Error(`Web require failed: registry unavailable for ${t}`);let r=this.Ie(t);if(r&&e[r])return e[r];if(e[t])return e[t];if((t==="../commands/runtimeCommands"||t==="./commands/runtimeCommands")&&typeof globalThis<"u"&&globalThis.O)return globalThis.O;throw new Error(`Web require unsupported: ${t}`)},te(t){if(this.N.has(t))return;this.N.add(t);let e=new ChunkLoadError(t,"artifact unavailable",{recoverable:!1,context:{chunkName:t,distPath:this.distPath,fix:'Run "npm run package-chunks" to rebuild runtime chunks.'}});getActiveLogger().error(e.message,e),handleChunkFailure(t,e,{userFacing:!1})}},dynamicImports={async loadOnboarding(t){let e=await featureFlags.onboarding();return e?typeof e.createOnboardingManager=="function"?e.createOnboardingManager(t):e.OnboardingManager?new e.OnboardingManager(t):null:null},async loadExportReporting(t){let e=await featureFlags.exportReporting();return typeof e?.createExportReportingManager=="function"?e.createExportReportingManager(t):null},async loadWorkspaceTemplates(t){let e=await featureFlags.workspaceTemplates();return typeof e?.createWorkspaceTemplatesManager=="function"?e.createWorkspaceTemplatesManager(t):e?.WorkspaceTemplatesManager?new e.WorkspaceTemplatesManager(t):null},async loadAnalysisCommands(){return featureFlags.analysisCommands()},async loadExtensionApi(t){let e=await featureFlags.extensionApi();if(!e)return null;if(typeof e=="function"){if(e.name==="createExtensionApiManager")return e(t);try{return new e}catch{return null}}else{if(typeof e.createExtensionApiManager=="function")return e.createExtensionApiManager(t);if(e.ExtensionApiManager)return new e.ExtensionApiManager}return null}},onboardingManagerPromise=null,workspaceTemplatesManagerPromise=null,exportReportingManagerPromise=null,extensionApiManagerPromise=null;function shouldPrimeOnboardingChunk(t){if(!t?.globalState)return!0;let e=t.globalState.get("explorerDates.hasShownWelcome",!1),r=t.globalState.get("explorerDates.hasCompletedSetup",!1),n=t.globalState.get("explorerDates.onboardingVersion","0.0.0"),o=t.extension?.packageJSON?.version||"0.0.0";return!e||!r?!0:isMajorVersionUpdate(n,o)}function isMajorVersionUpdate(t,e){let r=a=>{let[s="0"]=(a||"").split("."),l=Number.parseInt(s,10);return Number.isFinite(l)?l:0},n=r(t);return r(e)>n}function ensureOnboardingManager(t){return onboardingManagerPromise||(onboardingManagerPromise=dynamicImports.loadOnboarding(t)),onboardingManagerPromise}function ensureWorkspaceTemplatesManager(t){return workspaceTemplatesManagerPromise||(workspaceTemplatesManagerPromise=dynamicImports.loadWorkspaceTemplates(t)),workspaceTemplatesManagerPromise}function ensureExportReportingManager(t){return exportReportingManagerPromise||(exportReportingManagerPromise=dynamicImports.loadExportReporting(t)),exportReportingManagerPromise}function ensureExtensionApiManager(t){return extensionApiManagerPromise||(extensionApiManagerPromise=dynamicImports.loadExtensionApi(t)),extensionApiManagerPromise}function raiseChunkUnavailable(t,e){let r=`${t} is not available because the required "${e}" runtime chunk failed to load. Reinstall Explorer Dates or run "npm run package-chunks" and reload VS Code.`;throw getActiveLogger().warn(r,{chunkName:e}),vscode.window.showErrorMessage(r),new ChunkLoadError(e,"chunk missing at runtime",{recoverable:!1,context:{featureLabel:t}})}function initializeStatusBar(t){let e=vscode.window.createStatusBarItem(vscode.StatusBarAlignment.Right,100);e.command="explorerDates.showFileDetails",e.tooltip="Click to show detailed file information";let r=async()=>{try{let a=vscode.window.activeTextEditor;if(!a){e.hide();return}let s=a.document.uri;if(s.scheme!=="file"){e.hide();return}let l=await fileSystem.stat(s),i=ensureDate(l.mtime),c=fileDateProvider.$e(i,"smart"),u=fileDateProvider.qe(l.size,"auto");e.text=`$(clock) ${c} $(file) ${u}`,e.show()}catch(a){e.hide(),logger.debug("Failed to update status bar",a)}},n=vscode.window.onDidChangeActiveTextEditor(r),o=vscode.window.onDidChangeTextEditorSelection(r);return r(),t.subscriptions.push(e,n,o),e}async function activate(context){try{isWebDiagnosticsEnabled()&&diagLog("info","Activation start",{uiKind:vscode?.env?.uiKind,isWeb:isWebEnvironment()}),logger=getLogger(),l10n=await ensureLocalization(),context.subscriptions.push(l10n),initializeTemplateStore(context),chunkLoader.initialize(context),chunkLoader.assertChunkArtifacts(getCriticalChunks()),setFeatureChunkResolver(t=>isWebEnvironment()?chunkLoader.x(t):chunkLoader.loadChunk(t));let remoteName=vscode?.env?.remoteName||null,uiKind=vscode?.env?.uiKind||null,isWebRuntime=uiKind===vscode.UIKind.Web,workspaceSchemes=(vscode.workspace.workspaceFolders||[]).map(t=>t?.uri?.scheme).filter(Boolean);logger.info("Explorer Dates: Extension activated"),logger.info("Explorer Dates: Activation context",{uiKind,remoteName,isWeb:isWebRuntime,workspaceSchemes}),(async()=>{try{let{getFeatureFlagsGlobal:t}=ye(),e=t(),r=e?await e.loadFeatureModule("loggerImpl"):null;if(r&&typeof r.getOrCreateLogger=="function")try{let n=r.getOrCreateLogger(),o="__explorerDatesLogger";n&&(typeof global<"u"?global[o]=n:typeof globalThis<"u"&&(globalThis[o]=n))}catch{}}catch{}})();let settingsMigrationManager=new SettingsMigrationManager;try{await settingsMigrationManager.migrateAllSettings(context)}catch(t){logger.warn("Settings migration encountered issues:",t)}let isWebUi=vscode.env.uiKind===vscode.UIKind.Web;if(isWebUi)logger.info("Skipping settings auto-organization in web runtime");else try{await settingsMigrationManager.autoOrganizeSettingsIfNeeded(context,{trigger:"activation",silent:!0})}catch(t){logger.warn("Settings organization encountered issues:",t)}let isWeb=vscode.env.uiKind===vscode.UIKind.Web,featureConfig=vscode.workspace.getConfiguration("explorerDates"),reportingEnabled=featureConfig.get("enableExportReporting",featureConfig.get("enableReporting",!0)),apiEnabled=featureConfig.get("enableExtensionApi",!0),onboardingEnabled=featureConfig.get("enableOnboardingSystem",!0),analysisEnabled=featureConfig.get("enableAnalysisCommands",!0),updateCommandContexts=async()=>{let t=vscode.workspace.getConfiguration("explorerDates"),e=t.get("enableExportReporting",t.get("enableReporting",!0)),r=t.get("enableWorkspaceTemplates",!0),n=t.get("enableWorkspaceIntelligence",!0),o=t.get("enableAnalysisCommands",!0),a=t.get("enableExtensionApi",!0),s=t.get("enableGitInsights",!0)&&!isWeb,l=typeof vscode.workspace.isTrusted<"u"?vscode.workspace.isTrusted:!0;await vscode.commands.executeCommand("setContext","explorerDates.isWeb",isWeb),await vscode.commands.executeCommand("setContext","explorerDates.isWorkspaceTrusted",l),await vscode.commands.executeCommand("setContext","explorerDates.gitFeaturesAvailable",!isWeb),await vscode.commands.executeCommand("setContext","explorerDates.gitCommandsAvailable",s),await vscode.commands.executeCommand("setContext","explorerDates.exportReportingAvailable",e&&!isWeb),await vscode.commands.executeCommand("setContext","explorerDates.workspaceTemplatesAvailable",r&&!isWeb),await vscode.commands.executeCommand("setContext","explorerDates.workspaceIntelligenceAvailable",n&&!isWeb),await vscode.commands.executeCommand("setContext","explorerDates.analysisCommandsAvailable",o&&!isWeb),await vscode.commands.executeCommand("setContext","explorerDates.extensionApiAvailable",a),await vscode.commands.executeCommand("setContext","explorerDates.runtimeCommandsAvailable",!isWeb)};await updateCommandContexts(),context.subscriptions.push(vscode.workspace.onDidChangeConfiguration(t=>{t.affectsConfiguration("explorerDates")&&updateCommandContexts().catch(e=>{logger.warn("Failed to update command contexts",e)})})),typeof vscode.workspace.onDidGrantWorkspaceTrust=="function"&&context.subscriptions.push(vscode.workspace.onDidGrantWorkspaceTrust(()=>{updateCommandContexts().catch(t=>{logger.warn("Failed to update command contexts after trust change",t)})}));let{isVirtualWorkspace}=hr(),isVirtual=isVirtualWorkspace();await vscode.commands.executeCommand("setContext","explorerDates.isVirtualWorkspace",isVirtual);let providerChunk=null;try{if(providerChunk=await(isWebEnvironment()?chunkLoader.x("providerInit"):chunkLoader.loadChunk("providerInit")),providerChunk&&typeof providerChunk.createFileDateDecorationProvider=="function"){if(isWebDiagnosticsEnabled()&&diagLog("info","Provider factory located",{source:"providerInit"}),isWeb)try{await chunkLoader.x("fileDateProviderImplExport"),isWebDiagnosticsEnabled()&&diagLog("info","Provider impl export chunk loaded",{chunkName:"fileDateProviderImplExport"}),await chunkLoader.x("fileDateProviderImpl"),isWebDiagnosticsEnabled()&&diagLog("info","Provider impl chunk loaded",{chunkName:"fileDateProviderImpl"})}catch(e){logger.warn("Failed to load provider impl chunk in web runtime",e?.message||e),isWebDiagnosticsEnabled()&&diagLog("warn","Provider impl chunk load failed",{error:e?.message||String(e)})}let t=providerChunk.createFileDateDecorationProvider(context);t&&typeof t.createFileDateDecorationProvider=="function"&&(fileDateProvider=t.createFileDateDecorationProvider(),isWebDiagnosticsEnabled()&&recordProviderEvent("created",{source:"providerInit"}))}}catch(t){logger.warn("Failed to load fileDateProvider chunk, falling back to local provider",t?.message||t),isWebDiagnosticsEnabled()&&diagLog("warn","Provider chunk load failed",{error:t?.message||String(t)})}if(!fileDateProvider)try{let dynamicRequire=typeof eval=="function"?eval("require"):null;if(!isWebEnvironment()&&typeof dynamicRequire=="function"){let t=dynamicRequire("./src/fileDateDecorationProvider"),e=t&&(t.FileDateDecorationProvider||t.default||t);fileDateProvider=new e,isWebDiagnosticsEnabled()&&recordProviderEvent("created",{source:"local"})}else if(isWebEnvironment())logger.warn("No FileDateDecorationProvider available for web runtime; some features may be disabled."),isWebDiagnosticsEnabled()&&diagLog("warn","Provider unavailable in web runtime");else{let{FileDateDecorationProvider:t}=Cr();fileDateProvider=new t,isWebDiagnosticsEnabled()&&recordProviderEvent("created",{source:"local"})}}catch(t){throw logger.error("Failed to create FileDateDecorationProvider",t),isWebDiagnosticsEnabled()&&diagLog("error","Provider creation failed",{error:t?.message,stack:t?.stack}),t}if(fileDateProvider){providerChunk&&typeof providerChunk.hydrateProviderOptionalSystems=="function"&&((async()=>{try{await providerChunk.hydrateProviderOptionalSystems(fileDateProvider)}catch(t){logger.debug("provider-init hydration failed",t)}})(),isWebDiagnosticsEnabled()&&recordProviderEvent("hydrated",{source:"providerInit"}));try{let t=vscode.window.registerFileDecorationProvider(fileDateProvider);context.subscriptions.push(t),logger.info("Explorer Dates: File decoration provider registered",{isWeb:isWebRuntime,remoteName})}catch(t){logger.error("Explorer Dates: Failed to register FileDecorationProvider",t)}context.subscriptions.push(fileDateProvider),context.subscriptions.push(logger),isWebDiagnosticsEnabled()&&recordProviderEvent("registered");try{await fileDateProvider.initializeAdvancedSystems(context)}catch(t){logger.debug("FileDateDecorationProvider.initializeAdvancedSystems failed",t)}try{await fileDateProvider.checkWorkspaceSize()}catch(t){logger.debug("FileDateDecorationProvider.checkWorkspaceSize failed",t)}}else logger.warn("FileDateDecorationProvider unavailable \u2014 continuing without file decorations."),isWebDiagnosticsEnabled()&&diagLog("warn","Provider unavailable for decorations");let extensionApiManager=null,exportReportingRegistered=!1,getExtensionApiManager=async()=>{if(!apiEnabled)throw new Error("Extension API is disabled via explorerDates.enableExtensionApi");return extensionApiManager||(extensionApiManager=await ensureExtensionApiManager(context),extensionApiManager&&context.subscriptions&&context.subscriptions.push(extensionApiManager)),extensionApiManager},getExportReportingManager=async()=>{if(!reportingEnabled)throw new Error("Reporting is disabled via explorerDates.enableExportReporting");if(!exportReportingRegistered){let r=vscode.workspace.getConfiguration("explorerDates").get("performanceMode",!1),n=env.EXPLORER_DATES_LIGHTWEIGHT_MODE==="1";(r||n)&&logger.warn("Initializing Export Reporting Manager while performance/lightweight mode is active; activity tracking will remain suppressed.")}let t=await ensureExportReportingManager(context);return t&&!exportReportingRegistered&&(context.subscriptions.push(t),exportReportingRegistered=!0),t},cachedApi=null,apiPromise=null,apiFactory=async()=>(apiPromise||(apiPromise=(async()=>{let t=await getExtensionApiManager();return cachedApi=t?t.getApi():null,cachedApi})()),apiPromise);apiEnabled||logger.info("Explorer Dates API exports disabled via explorerDates.enableExtensionApi");let showWelcomeOnStartup=featureConfig.get("showWelcomeOnStartup",!0);if(onboardingEnabled&&showWelcomeOnStartup)try{if(shouldPrimeOnboardingChunk(context)){let t=await ensureOnboardingManager(context);t&&await t.shouldShowOnboarding()&&setTimeout(()=>{try{t.showWelcomeMessage()}catch(e){logger.warn("Onboarding showWelcomeMessage() failed (non-fatal):",e)}},5e3)}else logger.debug("Skipping onboarding preload \u2013 user already completed onboarding for this major version.")}catch(t){logger.warn("Onboarding preload failed (non-fatal):",t)}registerCoreCommands({context,fileDateProvider,logger,l10n}),recordCommandRegistration("explorerDates.runWebDiagnostics");let runWebDiagnosticsCommand=vscode.commands.registerCommand("explorerDates.runWebDiagnostics",async()=>{recordCommandInvocation("explorerDates.runWebDiagnostics");try{let t=getWebDiagnosticsState(),e=[];try{e=await vscode.commands.getCommands(!0)}catch(a){diagLog("warn","Failed to query command registry",{error:a?.message})}let r=(context?.extension?.packageJSON?.contributes?.commands||[]).map(a=>a.command),n=r.filter(a=>!e.includes(a)),o={uiKind:vscode?.env?.uiKind,isWeb:isWebEnvironment(),registeredCount:e.length,contributedCount:r.length,missingCommands:n.slice(0,20),provider:t.provider,chunkLoads:t.chunkLoads.slice(-10)};diagLog("info","Web diagnostics summary",o);try{let a=n.length?`Web diagnostics: ${n.length} missing commands`:"Web diagnostics: commands registered";vscode.window.showInformationMessage(a)}catch{}recordCommandResult("explorerDates.runWebDiagnostics",!0)}catch(t){throw recordCommandResult("explorerDates.runWebDiagnostics",!1,t),t}});context.subscriptions.push(runWebDiagnosticsCommand);let registerAnalysisCommandsLazy=async()=>{let t=await dynamicImports.loadAnalysisCommands();if(!t){let r=typeof featureFlags.getFeatureLoadFailure=="function"?featureFlags.getFeatureLoadFailure("analysis"):null;if(r)throw r;let o=Array.from(chunkLoader?.N||[]).includes("analysis")?'Analysis chunk is missing. Rebuild with "npm run package-bundle" and reload.':"Analysis bundle did not load. Rebuild the extension and reload.";return vscode.window.showWarningMessage(`Analysis commands unavailable. ${o}`),null}let e=t.registerAnalysisCommands||t;return typeof e!="function"?(vscode.window.showWarningMessage("Analysis commands registration function not found."),null):e({context,fileDateProvider,logger,chunkLoader})};if(analysisEnabled){try{await registerAnalysisCommandsLazy(),logger.info("Analysis commands registered successfully")}catch(t){logger.warn("Failed to register analysis commands:",t),vscode.window.showWarningMessage("Explorer Dates analysis commands failed to initialize. Check build artifacts for the analysis chunk and reload.")}await setAnalysisWarningShown(context,!1)}else try{let t=hasShownAnalysisWarning(context);if(getActiveLogger().debug("analysisWarningState",{alreadyWarned:t,map:context.globalState.get(ANALYSIS_WARNING_WORKSPACE_KEY,{}),warnedSet:Array.from(_warnedWorkspaces)}),!t){if(env.EXPLORER_DATES_TEST_MODE==="1")try{await setAnalysisWarningShown(context,!0)}catch(e){logger.debug("Failed to pre-mark analysis warning in test mode",e?.message||e)}vscode.window.showInformationMessage("Explorer Dates analysis commands are disabled. Shortcuts like Ctrl+Shift+M/H/A will not work until you enable explorerDates.enableAnalysisCommands.","Enable Now","Dismiss").then(async e=>{if((env.EXPLORER_DATES_TEST_MODE==="1"?"Dismiss":e)===l10n.getString("analysisEnableNow"))try{let n=featureConfig.inspect("enableAnalysisCommands"),o=vscode.workspace.workspaceFolders||[],a=!1;for(let s of o){let l=vscode.workspace.getConfiguration("explorerDates",s.uri);if(l.inspect("enableAnalysisCommands")?.workspaceFolderValue===!1)try{await l.update("enableAnalysisCommands",!0,vscode.ConfigurationTarget.WorkspaceFolder)}catch(c){a=!0,logger.warn("Failed to auto-enable analysis commands for workspace folder",{folder:s.uri?.toString(),error:c?.message})}}if(n?.workspaceValue===!1)try{await featureConfig.update("enableAnalysisCommands",!0,vscode.ConfigurationTarget.Workspace)}catch(s){a=!0,logger.warn("Failed to auto-enable analysis commands for workspace scope",s)}if(n?.globalValue===!1)try{await featureConfig.update("enableAnalysisCommands",!0,vscode.ConfigurationTarget.Global)}catch(s){a=!0,logger.warn("Failed to auto-enable analysis commands for user scope",s)}a?(await setAnalysisWarningShown(context,!1),vscode.window.showWarningMessage(l10n.getString("analysisEnablePartially"))):(await setAnalysisWarningShown(context,!1),await vscode.commands.executeCommand("workbench.action.reloadWindow"))}catch(n){await setAnalysisWarningShown(context,!1),vscode.window.showWarningMessage(l10n.getString("analysisEnableFailed")),logger.warn("Failed to auto-enable analysis commands",n)}else await setAnalysisWarningShown(context,!0)})}}catch(t){logger.debug("Unable to show analysis disabled warning",t)}registerOnboardingCommands({context,logger,getOnboardingManager:()=>ensureOnboardingManager(context)});let migrationSubscriptions=await registerMigrationCommands({context,logger,getSettingsMigrationManager:()=>Promise.resolve(settingsMigrationManager)});context.subscriptions.push(...migrationSubscriptions);let openTemplateManager=vscode.commands.registerCommand("explorerDates.openTemplateManager",async()=>{try{if(isWebEnvironment()){vscode.window.showInformationMessage("Workspace templates are unavailable in VS Code for Web.");return}if(!vscode.workspace.getConfiguration("explorerDates").get("enableWorkspaceTemplates",!0))throw vscode.window.showInformationMessage(l10n.getString("workspaceTemplatesDisabled")),new Error("Workspace templates feature disabled via settings.");await featureFlags.workspaceTemplates()||raiseChunkUnavailable("Workspace templates","workspaceTemplates");let n=await ensureWorkspaceTemplatesManager(context);n||raiseChunkUnavailable("Workspace templates","workspaceTemplates"),await n.showTemplateManager(),logger.info("Template manager opened")}catch(t){throw logger.error("Failed to open template manager",t),vscode.window.showErrorMessage(l10n.getString("failedToOpenTemplateManager",t.message)),t}});context.subscriptions.push(openTemplateManager);let saveTemplate=vscode.commands.registerCommand("explorerDates.saveTemplate",async()=>{try{if(isWebEnvironment()){vscode.window.showInformationMessage("Workspace templates are unavailable in VS Code for Web.");return}let{requireWorkspaceTrust:t}=j();if(t("save template"),!vscode.workspace.getConfiguration("explorerDates").get("enableWorkspaceTemplates",!0))throw vscode.window.showInformationMessage(l10n.getString("workspaceTemplatesDisabledSave")),new Error("Workspace templates feature disabled via settings.");await featureFlags.workspaceTemplates()||raiseChunkUnavailable("Workspace templates","workspaceTemplates");let o=await vscode.window.showInputBox({prompt:"Enter template name",placeHolder:"e.g., My Project Setup"});if(o){let a=await vscode.window.showInputBox({prompt:l10n.getString("enterTemplateDescription"),placeHolder:l10n.getString("enterTemplateDescription")})||"",s=await ensureWorkspaceTemplatesManager(context);s||raiseChunkUnavailable("Workspace templates","workspaceTemplates"),await s.saveCurrentConfiguration(o,a)}logger.info("Template saved")}catch(t){throw logger.error("Failed to save template",t),vscode.window.showErrorMessage(l10n.getString("failedToSaveTemplate",t.message)),t}});context.subscriptions.push(saveTemplate);let recordedReportErrors=new WeakSet,generateReport=vscode.commands.registerCommand("explorerDates.generateReport",async()=>{recordCommandInvocation("explorerDates.generateReport");try{if(isWebEnvironment()){vscode.window.showInformationMessage("Export reporting is unavailable in VS Code for Web.");let s=commandEmpty();return recordCommandResult("explorerDates.generateReport",!0,null,s.category),s.value}let{requireWorkspaceTrust:t}=j();if(t("generate report"),!reportingEnabled)throw vscode.window.showInformationMessage(l10n.getString("reportingDisabled")),new Error("Reporting features disabled via settings.");await featureFlags.exportReporting()||raiseChunkUnavailable("Export reporting","exportReporting");let r=await getExportReportingManager();r||raiseChunkUnavailable("Export reporting","exportReporting");let n=await r.showReportDialog(),o=isCommandOutcome(n)?n:n===void 0?commandCancellation():n===null?commandEmpty():commandSuccess(n),a=o.category===OUTCOME_CATEGORIES.HANDLED_COMMAND_FAILURE||o.category===OUTCOME_CATEGORIES.UNHANDLED_COMMAND_FAILURE;if(recordCommandResult("explorerDates.generateReport",!a,o.error,o.category,o.errorContext),a){let s=o.error||new Error("Report generation failed");throw s&&(typeof s=="object"||typeof s=="function")&&recordedReportErrors.add(s),s}return logger.info("Report generation completed",{outcomeCategory:o.category}),o.value}catch(t){throw recordedReportErrors.has(t)||recordCommandResult("explorerDates.generateReport",!1,t,OUTCOME_CATEGORIES.UNHANDLED_COMMAND_FAILURE),logger.error("Failed to generate report",t),vscode.window.showErrorMessage(l10n.getString("failedToGenerateReport",t.message)),t}});context.subscriptions.push(generateReport);let showApiInfo=vscode.commands.registerCommand("explorerDates.showApiInfo",async()=>{try{if(!apiEnabled)throw vscode.window.showInformationMessage(l10n.getString("apiDisabled")),new Error("Explorer Dates API disabled via settings.");await featureFlags.extensionApi()||raiseChunkUnavailable("Extension API","extensionApi");let e=vscode.window.createWebviewPanel("apiInfo","Explorer Dates API Information",vscode.ViewColumn.One,{enableScripts:!0}),r=await chunkLoader.loadChunk("diagnostics");if(!r)throw new Error("Diagnostics chunk failed to load");r.ensureInitialized(context);let n=await apiFactory();if(!n)throw new Error("API factory returned null - extension API may be disabled");e.webview.html=await r.getApiInformationHtml(n),logger.info("API information panel opened")}catch(t){throw logger.error("Failed to show API information",t),vscode.window.showErrorMessage(l10n.getString("failedToShowApiInformation",t.message)),t}});context.subscriptions.push(showApiInfo);let statusBarItem,config=vscode.workspace.getConfiguration("explorerDates"),performanceMode=config.get("performanceMode",!1),showStatusBar=config.get("showStatusBar",!1);showStatusBar&&!performanceMode&&(statusBarItem=initializeStatusBar(context));let statusBarConfigWatcher=vscode.workspace.onDidChangeConfiguration(t=>{if(t.affectsConfiguration("explorerDates.showStatusBar")||t.affectsConfiguration("explorerDates.performanceMode")){let e=vscode.workspace.getConfiguration("explorerDates"),r=e.get("showStatusBar",!1),n=e.get("performanceMode",!1),o=r&&!n;o&&!statusBarItem?statusBarItem=initializeStatusBar(context):!o&&statusBarItem&&(statusBarItem.dispose(),statusBarItem=null)}});context.subscriptions.push(statusBarConfigWatcher),logger.info("Explorer Dates: Date decorations ready");let loadRuntimeCommands=async()=>{let t=await featureFlags.loadFeatureModule("runtimeManagement");if(t?.registerRuntimeCommands)return t.registerRuntimeCommands;if(isWeb)try{let e=await Promise.resolve().then(()=>Z(ze()));if(e?.registerRuntimeCommands)return logger.warn("Runtime chunk missing in web; using bundled runtime commands fallback"),e.registerRuntimeCommands}catch(e){logger.warn("Web runtime fallback for runtime commands failed",e)}return logger.warn("Runtime chunk missing; runtime commands not initialized"),null};try{let t=await loadRuntimeCommands();if(t){isWebDiagnosticsEnabled()&&diagLog("info","Runtime commands registration starting");let{runtimeManager:e,teamPersistenceManager:r}=t(context);activeRuntimeManager?.dispose&&activeRuntimeManager.dispose(),activeTeamPersistenceManager?.dispose&&activeTeamPersistenceManager.dispose(),activeRuntimeManager=e,activeTeamPersistenceManager=r,env.EXPLORER_DATES_TEST_MODE!=="1"?runtimeAutoSuggestionTimer=setTimeout(async()=>{try{await e.checkAutoSuggestion(),await r.validateTeamConfiguration()}catch(o){logger.debug("Runtime system auto-suggestion failed:",o)}},AUTO_SUGGESTION_DELAY_MS):logger.debug("Skipping runtime auto-suggestion timer in test mode"),logger.info("Runtime chunk management system initialized")}else logger.warn("Runtime chunk management system unavailable")}catch(t){logger.error("Failed to initialize runtime chunk management:",t),isWebDiagnosticsEnabled()&&diagLog("error","Runtime command initialization failed",{error:t?.message,stack:t?.stack})}if(isWebDiagnosticsEnabled()){let t=getWebDiagnosticsState();diagLog("info","Activation complete",{commandsRegistered:t.commandsRegistered?.size||0,provider:t.provider})}if(apiEnabled)return apiFactory}catch(t){let e=`${l10n?l10n.getString("activationError"):"Explorer Dates failed to activate"}: ${t.message}`;throw getActiveLogger().error("Extension activation failed",t),vscode.window.showErrorMessage(e),isWebDiagnosticsEnabled()&&diagLog("error","Activation failed",{error:t?.message,stack:t?.stack}),t}}async function deactivate(){try{if(getActiveLogger().info("Explorer Dates extension is being deactivated"),runtimeAutoSuggestionTimer&&(clearTimeout(runtimeAutoSuggestionTimer),runtimeAutoSuggestionTimer=null),activeRuntimeManager?.dispose&&(activeRuntimeManager.dispose(),activeRuntimeManager=null),activeTeamPersistenceManager?.dispose&&(activeTeamPersistenceManager.dispose(),activeTeamPersistenceManager=null),fileDateProvider&&typeof fileDateProvider.dispose=="function"&&(await fileDateProvider.dispose(),fileDateProvider=null),env.EXPLORER_DATES_TEST_MODE==="1"&&typeof process<"u"&&typeof process.Le=="function"){let t=Date.now();for(;(process.Le()||[]).length>0&&Date.now()-t<500;)await new Promise(e=>setTimeout(e,5))}getActiveLogger().info("Explorer Dates extension deactivated successfully")}catch(t){getActiveLogger().error("Explorer Dates: Error during deactivation",t)}}module.exports={activate,deactivate}});var Dr=Sr();module.exports={activate:Dr.activate,deactivate:Dr.deactivate}; diff --git a/package.json b/package.json index 560c5f5..001b9b4 100644 --- a/package.json +++ b/package.json @@ -1141,9 +1141,13 @@ "test:command-outcome-contract": "node -r ./tests/helpers/strictConsole.js tests/test-command-outcome-contract.js", "test:report-fixture-contract": "node -r ./tests/helpers/strictConsole.js tests/test-report-fixture-contract.js", "test:report-lifecycle-contract": "node -r ./tests/helpers/strictConsole.js tests/test-report-lifecycle-contract.js", + "test:report-lifecycle-matrix": "node -r ./tests/helpers/strictConsole.js tests/test-report-lifecycle-matrix.js", + "test:production-report-desktop-contract": "node -r ./tests/helpers/strictConsole.js tests/test-production-report-contract.js", + "test:production-report-web-contract": "VSCODE_WEB=true node -r ./tests/helpers/strictConsole.js tests/test-production-report-contract.js", + "test:report-mutation-adequacy": "node -r ./tests/helpers/strictConsole.js tests/test-report-mutation-adequacy.js", "test:extension-host-command-smoke": "xvfb-run -a -s '-screen 0 1280x800x24' node tests/run-extension-host-smoke.js", "lint": "eslint .", - "test:critical": "npm run lint && npm run test:command-outcome-contract && npm run test:report-fixture-contract && npm run test:report-lifecycle-contract && npm run test:workflow-contracts && npm run test:freshness-policy-logging && npm run test:warning-filters && npm run test:config && npm run test:config-audit && npm run test:config-scenarios && npm run test:activation-api-export-contract", + "test:critical": "npm run lint && npm run test:command-outcome-contract && npm run test:report-fixture-contract && npm run test:report-lifecycle-contract && npm run test:report-lifecycle-matrix && npm run test:workflow-contracts && npm run test:freshness-policy-logging && npm run test:warning-filters && npm run test:config && npm run test:config-audit && npm run test:config-scenarios && npm run test:activation-api-export-contract", "test:security-utils": "node -r ./tests/helpers/strictConsole.js tests/test-security-utils.js && node -r ./tests/helpers/strictConsole.js tests/test-security-allowed-paths-behavior.js", "test": "npm run test:suite", "test:suite": "npm run compile && npm run lint && npm run test:config && npm run test:config-scenarios && npm run test:feature-gates && npm run test:flows && npm run test:bundle && npm run test:verify-bundle && npm run test:extras && npm run test:performance", diff --git a/src/exportReporting.js b/src/exportReporting.js index d523f17..29117fc 100644 --- a/src/exportReporting.js +++ b/src/exportReporting.js @@ -12,7 +12,7 @@ try { if (!ensureDate) { const dateHelpers = require('./utils/dateHelpers'); ensureDate = dateHelpers.ensureDate; } const { getLocalization } = require('./utils/localization'); const { formatFileSize } = require('./utils/formatters'); -const { commandCancellation, commandFailure } = require('./utils/commandOutcome'); +const { commandCancellation, commandFailure, commandAlreadyRunning } = require('./utils/commandOutcome'); const { REPORT_SCHEMA_VERSION, DEFAULT_EXCLUDED_SEGMENTS, normalizePath: normalizeReportPath, normalizeTimeRange, rangeStart, normalizeStat, createInclusionPolicy, @@ -34,7 +34,12 @@ const MAX_TRACKED_FILES_LIMIT = 20000; * Handles file modification reports, time tracking integration, and project analytics */ class ExportReportingManager { - constructor() { + constructor(deps = {}) { + this._fileSystem = deps.fileSystem || fileSystem; + this._logger = deps.logger || logger; + this._l10n = deps.l10n || l10n; + this._phaseHook = typeof deps.phaseHook === 'function' ? deps.phaseHook : null; + this._disposed = false; this.fileActivityCache = new Map(); this._trackedFileOrder = new Map(); this.allowedFormats = ['json', 'html']; @@ -91,7 +96,7 @@ class ExportReportingManager { excludedPatterns: [...this.excludedPatterns, ...enabledWorkspaceExclusions] }); } catch (error) { - logger.error('Failed to load reporting configuration', error); + this._logger.error('Failed to load reporting configuration', error); } } @@ -265,9 +270,10 @@ class ExportReportingManager { } async generateFileModificationReport(options = {}) { + if (this._disposed) return commandFailure(new Error('Reporting manager is disposed.'), { operation: 'report-generation', code: 'DISPOSED' }); if (this._reportInProgress) { vscode.window.showInformationMessage('Explorer Dates is already generating a report. Please wait for it to finish.'); - return null; + return commandAlreadyRunning(); } const run = this._generateFileModificationReport(options); this._reportInProgress = run; @@ -291,17 +297,21 @@ class ExportReportingManager { const canonicalTimeRange = normalizeTimeRange(timeRange); if (!this.allowedFormats.includes(format)) { - const warning = l10n.getString('reportFormatDisabled', format, this.allowedFormats.join(', ')); + const warning = this._l10n.getString('reportFormatDisabled', format, this.allowedFormats.join(', ')); vscode.window.showWarningMessage(warning); logger.warn(warning); return null; } + await this._phase('scanning-workspace', { progress, cancellationToken }); const report = await this.collectFileData(canonicalTimeRange, includeDeleted, { progress, cancellationToken }); + await this._phase('creating-summary', { progress, cancellationToken }); + this._throwIfCancelled(cancellationToken); + await this._phase('formatting-report', { progress, cancellationToken }); const formattedReport = await this.formatReport(report, format); if (outputPath) { - await this.saveReport(formattedReport, outputPath, { cancellationToken }); + await this.saveReport(formattedReport, outputPath, { cancellationToken, phaseHook: this._phaseHook }); const savedPath = outputPath instanceof vscode.Uri ? (outputPath.fsPath || outputPath.path) : outputPath; const action = await vscode.window.showInformationMessage(`Report saved to ${savedPath}`, 'Open Report', 'Reveal in File Explorer'); if (action === 'Open Report') await vscode.commands.executeCommand('vscode.open', outputPath instanceof vscode.Uri ? outputPath : vscode.Uri.file(outputPath)); @@ -310,7 +320,7 @@ class ExportReportingManager { return formattedReport; } catch (error) { - logger.error('Failed to generate file modification report:', error); + this._logger.error('Failed to generate file modification report:', error); if (error?.code === 'REPORT_CANCELLED') return commandCancellation(); vscode.window.showErrorMessage(`Failed to generate report${options.outputPath ? ` for ${options.outputPath}` : ''}: ${error?.message || 'unknown error'}`); return commandFailure(error, { operation: 'report-generation', outputPath: options.outputPath || null }); @@ -382,7 +392,9 @@ class ExportReportingManager { } } catch (error) { - logger.error(`Failed to scan folder ${folderUri.fsPath || folderUri.path}:`, error); + if (error?.code === 'REPORT_CANCELLED') throw error; + this._logger.error(`Failed to scan folder ${folderUri.fsPath || folderUri.path}:`, error); + throw error; } return files; @@ -436,8 +448,9 @@ class ExportReportingManager { lastActivity }; } catch (error) { - logger.error(`Failed to get file data for ${uri.fsPath || uri.path}:`, error); - return null; + if (error?.code === 'REPORT_CANCELLED') throw error; + this._logger.error(`Failed to get file data for ${uri.fsPath || uri.path}:`, error); + throw error; } } @@ -453,6 +466,12 @@ class ExportReportingManager { if (typeof progress === 'function') progress(message, increment); } + async _phase(name, options = {}) { + this._throwIfCancelled(options.cancellationToken); + if (this._phaseHook) await this._phaseHook(name, options); + this._throwIfCancelled(options.cancellationToken); + } + async collectGitEvidence(workspaceFolders, timeRange, options = {}) { const result = new Map(); if (isWeb) return result; @@ -667,29 +686,41 @@ ${report.files.map(file => `| ${cell(file.path)} | ${this.formatFileSize(file.si } async saveReport(content, outputPath, options = {}) { + let temporary = null; try { if (isWeb) { const encoded = encodeURIComponent(content); await vscode.env.openExternal(vscode.Uri.parse(`data:text/plain;charset=utf-8,${encoded}`)); - vscode.window.showInformationMessage(l10n.getString('reportDownloadTriggered')); + vscode.window.showInformationMessage(this._l10n.getString('reportDownloadTriggered')); return; } const target = outputPath instanceof vscode.Uri ? outputPath : vscode.Uri.file(outputPath); this._throwIfCancelled(options.cancellationToken); const targetPath = target.fsPath || target.path; - const temporary = `${targetPath}.tmp-${process.pid}-${Date.now()}`; - await fileSystem.writeFile(temporary, content, 'utf8'); + temporary = `${targetPath}.tmp-${process.pid}-${Date.now()}-${Math.random().toString(16).slice(2)}`; + await this._phase('writing-temporary-file', options); + await this._fileSystem.writeFile(temporary, content, 'utf8'); + await this._phase('verifying-temporary-file', options); + const tempStat = await this._fileSystem.stat(temporary); + if (!Number.isFinite(Number(tempStat.size)) || Number(tempStat.size) <= 0) throw new Error('The temporary report is empty or could not be verified.'); this._throwIfCancelled(options.cancellationToken); - await fileSystem.rename(temporary, target, { overwrite: true }); - const verified = await fileSystem.stat(target); + await this._phase('promoting-final-file', options); + await this._fileSystem.rename(temporary, target, { overwrite: true }); + temporary = null; + await this._phase('verifying-final-file', options); + const verified = await this._fileSystem.stat(target); if (!Number.isFinite(Number(verified.size)) || Number(verified.size) <= 0) { throw new Error('The saved report is empty or could not be verified.'); } - logger.info(`Report saved to ${target.fsPath || target.path}`); + this._logger.info(`Report saved to ${target.fsPath || target.path}`); } catch (error) { - logger.error('Failed to save report:', error); + this._logger.error('Failed to save report:', error); throw error; + } finally { + if (temporary && typeof this._fileSystem.delete === 'function') { + try { await this._fileSystem.delete(temporary, { recursive: false, useTrash: false }); } catch (cleanupError) { this._logger.warn('Failed to clean temporary report file:', cleanupError); } + } } } @@ -815,9 +846,10 @@ ${report.files.map(file => `| ${cell(file.path)} | ${this.formatFileSize(file.si } async showReportDialog() { + if (this._disposed) return commandFailure(new Error('Reporting manager is disposed.'), { operation: 'report-dialog', code: 'DISPOSED' }); if (this._reportInProgress) { vscode.window.showInformationMessage('Explorer Dates is already generating a report. Please wait for it to finish.'); - return null; + return commandAlreadyRunning(); } const dialogRun = this._showReportDialog(); this._reportInProgress = dialogRun; diff --git a/src/utils/commandOutcome.js b/src/utils/commandOutcome.js index f10346b..2ce36ec 100644 --- a/src/utils/commandOutcome.js +++ b/src/utils/commandOutcome.js @@ -5,6 +5,7 @@ const OUTCOME_CATEGORIES = Object.freeze({ BEHAVIORAL_SUCCESS: 'behavioral-success', EXPECTED_CANCELLATION: 'expected-cancellation', EXPECTED_EMPTY_RESULT: 'expected-empty-result', + EXPECTED_ALREADY_RUNNING: 'expected-already-running', HANDLED_COMMAND_FAILURE: 'handled-command-failure', UNHANDLED_COMMAND_FAILURE: 'unhandled-command-failure' }); @@ -14,6 +15,7 @@ function createOutcome(category, value, error, errorContext) { const commandSuccess = value => createOutcome(OUTCOME_CATEGORIES.BEHAVIORAL_SUCCESS, value); const commandCancellation = value => createOutcome(OUTCOME_CATEGORIES.EXPECTED_CANCELLATION, value); const commandEmpty = value => createOutcome(OUTCOME_CATEGORIES.EXPECTED_EMPTY_RESULT, value); +const commandAlreadyRunning = value => createOutcome(OUTCOME_CATEGORIES.EXPECTED_ALREADY_RUNNING, value); const commandFailure = (error, context) => createOutcome(OUTCOME_CATEGORIES.HANDLED_COMMAND_FAILURE, undefined, error, context); const isCommandOutcome = value => Boolean(value && value[COMMAND_OUTCOME] === true); -module.exports = { COMMAND_OUTCOME, OUTCOME_CATEGORIES, commandSuccess, commandCancellation, commandEmpty, commandFailure, isCommandOutcome }; +module.exports = { COMMAND_OUTCOME, OUTCOME_CATEGORIES, commandSuccess, commandCancellation, commandEmpty, commandAlreadyRunning, commandFailure, isCommandOutcome }; diff --git a/tests/helpers/commandBehaviorOracle.js b/tests/helpers/commandBehaviorOracle.js new file mode 100644 index 0000000..66ab478 --- /dev/null +++ b/tests/helpers/commandBehaviorOracle.js @@ -0,0 +1,34 @@ +'use strict'; + +const { OUTCOME_CATEGORIES, isCommandOutcome } = require('../../src/utils/commandOutcome'); + +async function observeCommand({ invoke, getOutcome, getRecordedResult, errorsLogged = [], errorsShown = [], expectedSideEffect, actualSideEffect, timeoutMs = 1000 }) { + let state = 'pending'; + let result; + let error; + let timedOut = false; + const pending = Promise.resolve().then(invoke); + let timeoutHandle; + try { + result = await Promise.race([pending, new Promise((_, reject) => { timeoutHandle = setTimeout(() => { const timeout = new Error('oracle timeout'); timeout.code = 'COMMAND_ORACLE_TIMEOUT'; reject(timeout); }, timeoutMs); })]); + state = 'fulfilled'; + } catch (caught) { + state = 'rejected'; error = caught; timedOut = caught?.code === 'COMMAND_ORACLE_TIMEOUT'; + } finally { + clearTimeout(timeoutHandle); + } + const outcome = typeof getOutcome === 'function' ? getOutcome() : null; + const recorded = typeof getRecordedResult === 'function' ? getRecordedResult() : null; + let classification = 'unsupported'; + if (timedOut) classification = 'timeout'; + else if (outcome?.category === OUTCOME_CATEGORIES.HANDLED_COMMAND_FAILURE) classification = 'handled-command-failure'; + else if (outcome?.category === OUTCOME_CATEGORIES.EXPECTED_CANCELLATION) classification = 'expected-cancellation'; + else if (outcome?.category === OUTCOME_CATEGORIES.EXPECTED_EMPTY_RESULT) classification = 'expected-empty-result'; + else if (state === 'rejected') classification = 'unhandled-command-failure'; + else if (errorsShown.length > 1) classification = 'swallowed-product-failure'; + else if (errorsShown.length || errorsLogged.length || (expectedSideEffect !== undefined && actualSideEffect !== expectedSideEffect)) classification = 'false-success'; + else if (outcome?.category === OUTCOME_CATEGORIES.BEHAVIORAL_SUCCESS || state === 'fulfilled') classification = 'behavioral-success'; + return { promiseState: state, result, error: error?.message || null, explicitOutcome: isCommandOutcome(outcome) ? outcome.category : null, recordedResult: recorded, errorsLogged, errorsShown, expectedSideEffect, actualSideEffect, timedOut, classification }; +} + +module.exports = { observeCommand }; diff --git a/tests/test-production-report-contract.js b/tests/test-production-report-contract.js new file mode 100644 index 0000000..6654c2f --- /dev/null +++ b/tests/test-production-report-contract.js @@ -0,0 +1,33 @@ +#!/usr/bin/env node +'use strict'; + +const assert = require('assert'); +const { createTestMock } = require('./helpers/mockVscode'); + +async function main() { + const mock = createTestMock({ uiKind: process.env.VSCODE_WEB === 'true' ? 2 : 1 }); + try { + const { ExportReportingManager } = require('../dist/chunks/reporting'); + const calls = []; + const fs = { + async writeFile(path) { calls.push(['write', path]); }, + async stat(path) { calls.push(['stat', path]); return { size: 2 }; }, + async rename(from, to) { calls.push(['rename', from, to]); }, + async delete(path) { calls.push(['delete', path]); } + }; + const manager = new ExportReportingManager({ fileSystem: fs, logger: { error() {}, warn() {}, info() {} } }); + manager.collectFileData = async () => ({ schemaVersion: '1', files: [], summary: { totalFiles: 0 }, timeRange: 'all' }); + manager.formatReport = async () => '{}'; + manager.allowedFormats = ['json']; + const result = await manager.generateFileModificationReport({ format: 'json', outputPath: process.env.VSCODE_WEB === 'true' ? null : '/tmp/production-report-contract.json' }); + assert.notStrictEqual(result, undefined); + if (process.env.VSCODE_WEB !== 'true') assert(calls.some(([kind]) => kind === 'rename'), 'desktop artifact must promote a temporary file'); + else await manager.saveReport('{}', null); + manager.dispose(); + console.log(`✅ production report ${process.env.VSCODE_WEB === 'true' ? 'web' : 'desktop'} contract passed`); + } finally { + mock.dispose(); + } +} + +main().catch(error => { console.error(error.stack || error); process.exitCode = 1; }); diff --git a/tests/test-report-lifecycle-matrix.js b/tests/test-report-lifecycle-matrix.js new file mode 100644 index 0000000..4486909 --- /dev/null +++ b/tests/test-report-lifecycle-matrix.js @@ -0,0 +1,102 @@ +#!/usr/bin/env node +'use strict'; + +const assert = require('assert'); +const { createTestMock } = require('./helpers/mockVscode'); +const { OUTCOME_CATEGORIES } = require('../src/utils/commandOutcome'); + +function report() { + return { schemaVersion: '1', files: [], summary: { totalFiles: 0 }, timeRange: 'all' }; +} + +function deferred() { + let resolve; + const promise = new Promise(done => { resolve = done; }); + return { promise, resolve }; +} + +function fakeFileSystem({ failWrite = false, failTempStat = false, failFinalStat = false } = {}) { + const files = new Map(); + const calls = []; + return { + files, calls, + async writeFile(path, content) { + calls.push(['write', path]); + if (failWrite) throw new Error('write failure'); + files.set(path, String(content)); + }, + async stat(path) { + calls.push(['stat', path]); + if ((failTempStat && String(path).includes('.tmp-')) || (failFinalStat && !String(path).includes('.tmp-'))) throw new Error('stat failure'); + if (!files.has(path)) throw new Error('missing file'); + return { size: Buffer.byteLength(files.get(path)) }; + }, + async rename(from, to) { + calls.push(['rename', from, to]); + if (!files.has(from)) throw new Error('missing temporary file'); + files.set(to.fsPath || to.path || to, files.get(from)); + files.delete(from); + }, + async delete(path) { + calls.push(['delete', path]); + files.delete(path); + } + }; +} + +const silentLogger = { error() {}, warn() {}, info() {}, debug() {} }; + +async function main() { + const mock = createTestMock(); + const { ExportReportingManager } = require('../src/exportReporting'); + const target = '/tmp/explorer-dates-report-lifecycle-matrix.json'; + try { + const held = deferred(); + const phases = []; + const manager = new ExportReportingManager({ + fileSystem: fakeFileSystem(), + logger: silentLogger, + phaseHook: async phase => { + phases.push(phase); + if (phase === 'scanning-workspace' && phases.filter(value => value === phase).length === 1) await held.promise; + } + }); + manager.collectFileData = async () => report(); + manager.formatReport = async () => '{}'; + const first = manager.generateFileModificationReport({ format: 'json' }); + await new Promise(resolve => setImmediate(resolve)); + const second = await manager.generateFileModificationReport({ format: 'json' }); + assert.strictEqual(second.category, OUTCOME_CATEGORIES.EXPECTED_ALREADY_RUNNING); + held.resolve(); + assert.strictEqual(await first, '{}'); + assert(phases.includes('scanning-workspace')); + manager.dispose(); + + for (const phase of ['scanning-workspace', 'creating-summary', 'formatting-report', 'writing-temporary-file', 'verifying-temporary-file', 'promoting-final-file', 'verifying-final-file']) { + const cancellationManager = new ExportReportingManager({ logger: silentLogger, phaseHook: async current => { + if (current === phase) { const error = new Error('cancelled'); error.code = 'REPORT_CANCELLED'; throw error; } + }}); + cancellationManager.collectFileData = async () => report(); + cancellationManager.formatReport = async () => '{}'; + const outcome = await cancellationManager.generateFileModificationReport({ format: 'json', outputPath: target }); + assert.strictEqual(outcome.category, OUTCOME_CATEGORIES.EXPECTED_CANCELLATION, `cancellation at ${phase}`); + cancellationManager.dispose(); + } + + for (const failure of [{ name: 'write', options: { failWrite: true } }, { name: 'temporary-stat', options: { failTempStat: true } }, { name: 'final-stat', options: { failFinalStat: true } }]) { + const fs = fakeFileSystem(failure.options); + const failureManager = new ExportReportingManager({ fileSystem: fs, logger: silentLogger }); + failureManager.collectFileData = async () => report(); + failureManager.formatReport = async () => '{}'; + const outcome = await failureManager.generateFileModificationReport({ format: 'json', outputPath: target }); + assert.strictEqual(outcome.category, OUTCOME_CATEGORIES.HANDLED_COMMAND_FAILURE, failure.name); + assert.strictEqual(fs.calls.filter(([kind]) => kind === 'delete').length, failure.name === 'write' || failure.name === 'temporary-stat' ? 1 : 0); + failureManager.dispose(); + } + console.log('✅ report lifecycle cancellation, concurrency, recovery, and failure matrix passed'); + } finally { + mock.dispose(); + } +} + +main().catch(error => { console.error(error.stack || error); process.exitCode = 1; }); diff --git a/tests/test-report-mutation-adequacy.js b/tests/test-report-mutation-adequacy.js new file mode 100644 index 0000000..ef84125 --- /dev/null +++ b/tests/test-report-mutation-adequacy.js @@ -0,0 +1,28 @@ +#!/usr/bin/env node +'use strict'; + +const assert = require('assert'); +const { observeCommand } = require('./helpers/commandBehaviorOracle'); + +async function main() { + const mutations = [ + ['throws-before-operation', async () => { throw new Error('before operation'); }, 'unhandled-command-failure'], + ['catches-error-returns-normally', async () => {}, 'false-success', ['error']], + ['logs-error-returns-normally', async () => {}, 'false-success', [], ['error']], + ['error-notification-recorded-success', async () => {}, 'false-success', ['error']], + ['missing-expected-side-effect', async () => {}, 'false-success', [], [], true, false], + ['nonexistent-private-formatter', async () => { const provider = {}; return provider._formatFileSize(1); }, 'unhandled-command-failure'], + ['raw-minified-property-error', async () => { throw new TypeError("Cannot read properties of undefined (reading 'a')"); }, 'unhandled-command-failure'], + ['duplicate-error-notifications', async () => {}, 'swallowed-product-failure', ['custom', 'generic']], + ['success-then-corrupt-next-invocation', async () => { throw new Error('stale failure state'); }, 'unhandled-command-failure'] + ]; + const results = []; + for (const [name, invoke, expected, shown = [], logged = [], expectedSideEffect, actualSideEffect] of mutations) { + const result = await observeCommand({ invoke, errorsShown: shown, errorsLogged: logged, expectedSideEffect, actualSideEffect }); + assert.strictEqual(result.classification, expected, name); + results.push({ name, classification: result.classification, promiseState: result.promiseState }); + } + results.forEach(result => process.stdout.write(`${JSON.stringify(result)}\n`)); +} + +main().catch(error => { console.error(error.stack || error); process.exitCode = 1; });