reactive-vscode
Advanced tools
Comparing version 0.2.0-beta.1 to 0.2.0-beta.2
/// <reference types="vscode" /> | ||
import { Awaited as Awaited_2 } from '@vue/shared'; | ||
import { ColorTheme } from 'vscode'; | ||
import { CommentController } from 'vscode'; | ||
import { ComputedRef } from '@vue/reactivity'; | ||
import { ComputedRef } from '@reactive-vscode/reactivity'; | ||
import { ComputedRef as ComputedRef_2 } from '@vue/reactivity'; | ||
import { ConfigurationScope } from 'vscode'; | ||
import { ConfigurationTarget } from 'vscode'; | ||
import { DebuggerOptions } from '@vue/reactivity'; | ||
import { DebugSession } from 'vscode'; | ||
@@ -24,4 +23,4 @@ import { DecorationOptions } from 'vscode'; | ||
import { LogLevel } from 'vscode'; | ||
import { MaybeRef } from '@vue/reactivity'; | ||
import { MaybeRefOrGetter } from '@vue/reactivity'; | ||
import { MaybeRef } from '@reactive-vscode/reactivity'; | ||
import { MaybeRefOrGetter } from '@reactive-vscode/reactivity'; | ||
import { NotebookEditor } from 'vscode'; | ||
@@ -31,6 +30,7 @@ import { NotebookRange } from 'vscode'; | ||
import { Range } from 'vscode'; | ||
import { Ref } from '@vue/reactivity'; | ||
import { Ref } from '@reactive-vscode/reactivity'; | ||
import { Selection } from 'vscode'; | ||
import { ShallowReactive } from '@vue/reactivity'; | ||
import { ShallowRef } from '@vue/reactivity'; | ||
import { ShallowRef as ShallowRef_2 } from '@reactive-vscode/reactivity'; | ||
import { StatusBarAlignment } from 'vscode'; | ||
@@ -56,2 +56,3 @@ import { StatusBarItem } from 'vscode'; | ||
import { ViewColumn } from 'vscode'; | ||
import { WatchSource } from '@reactive-vscode/reactivity'; | ||
import { WebviewOptions } from 'vscode'; | ||
@@ -61,2 +62,3 @@ import { WebviewView } from 'vscode'; | ||
import { WritableComputedRef } from '@vue/reactivity'; | ||
import { WritableComputedRef as WritableComputedRef_2 } from '@reactive-vscode/reactivity'; | ||
@@ -69,3 +71,3 @@ /* Excluded from this release type: activateCbs */ | ||
export declare interface ConfigRef<T> extends ShallowRef<T> { | ||
export declare interface ConfigRef<T> extends ShallowRef_2<T> { | ||
update: (value: T, configurationTarget?: ConfigurationTarget | boolean | null, overrideInLanguage?: boolean) => Promise<void>; | ||
@@ -102,4 +104,2 @@ } | ||
declare function defaultGetPrefix(type: string): string; | ||
/** | ||
@@ -123,2 +123,36 @@ * Define configurations of an extension. See `vscode::workspace.getConfiguration`. | ||
/** | ||
* Define a logger which is usable before activation. | ||
* | ||
* @category view | ||
*/ | ||
export declare function defineLogger(name: string, options?: UseLoggerOptions): { | ||
logger: ShallowRef< { | ||
outputChannel: OutputChannel; | ||
createLoggerFunc: (type: string) => (...message: any[]) => void; | ||
info: (...message: any[]) => void; | ||
warn: (...message: any[]) => void; | ||
error: (...message: any[]) => void; | ||
append: (value: string) => void; | ||
appendLine: (value: string) => void; | ||
replace: (value: string) => void; | ||
clear: () => void; | ||
show: { | ||
(preserveFocus?: boolean | undefined): void; | ||
(column?: ViewColumn | undefined, preserveFocus?: boolean | undefined): void; | ||
}; | ||
hide: () => void; | ||
} | null>; | ||
outputChannel: ComputedRef_2<OutputChannel | undefined>; | ||
info: (...args: any[]) => void | null; | ||
warn: (...args: any[]) => void | null; | ||
error: (...args: any[]) => void | null; | ||
append: (value: string) => void | null; | ||
appendLine: (value: string) => void | null; | ||
replace: (value: string) => void | null; | ||
clear: () => void | null; | ||
show: (column?: ViewColumn | undefined, preserveFocus?: boolean | undefined) => void | null; | ||
hide: () => void | null; | ||
}; | ||
/** | ||
* Execute a command, with type checking. See `vscode::commands.executeCommand`. | ||
@@ -134,26 +168,6 @@ * | ||
declare type MapSources<T, Immediate> = { | ||
[K in keyof T]: T[K] extends WatchSource<infer V> | ||
? Immediate extends true | ||
? V | undefined | ||
: V | ||
: T[K] extends object | ||
? Immediate extends true | ||
? T[K] | undefined | ||
: T[K] | ||
: never | ||
} | ||
export declare function getDefaultLoggerPrefix(type: string): string; | ||
export declare type MaybeNullableRefOrGetter<T> = T | Ref<Nullable<T>> | (() => Nullable<T>); | ||
declare type MultiWatchSources = (WatchSource<unknown> | object)[] | ||
export declare function nextTick<T = void, R = void>( | ||
this: T, | ||
fn?: (this: T) => R, | ||
): Promise<Awaited_2<R>> { | ||
const p = currentFlushPromise || resolvedPromise | ||
return fn ? p.then(this ? fn.bind(this) : fn) : p | ||
} | ||
export declare type Nullable<T> = T | null | undefined; | ||
@@ -170,4 +184,2 @@ | ||
declare type OnCleanup = (cleanupFn: () => void) => void | ||
/** | ||
@@ -218,3 +230,3 @@ * Registers a callback to be called when the extension is deactivated. | ||
*/ | ||
export declare const useActiveDebugSession: () => ComputedRef<DebugSession | undefined>; | ||
export declare const useActiveDebugSession: () => ComputedRef_2<DebugSession | undefined>; | ||
@@ -249,3 +261,3 @@ /** | ||
*/ | ||
export declare const useAllExtensions: () => ComputedRef<readonly Extension<any>[]>; | ||
export declare const useAllExtensions: () => ComputedRef_2<readonly Extension<any>[]>; | ||
@@ -294,3 +306,3 @@ /** | ||
*/ | ||
export declare const useDefaultShell: () => ComputedRef<string>; | ||
export declare const useDefaultShell: () => ComputedRef_2<string>; | ||
@@ -340,3 +352,3 @@ /** | ||
*/ | ||
export declare function useFetchTasks(filter?: MaybeRefOrGetter<TaskFilter | undefined>): ComputedRef<Thenable<Task[]>>; | ||
export declare function useFetchTasks(filter?: MaybeRefOrGetter<TaskFilter | undefined>): ComputedRef_2<Thenable<Task[]>>; | ||
@@ -387,3 +399,3 @@ /** | ||
*/ | ||
export declare const useIsDarkTheme: () => ComputedRef<boolean>; | ||
export declare const useIsDarkTheme: () => ComputedRef_2<boolean>; | ||
@@ -393,3 +405,3 @@ /** | ||
*/ | ||
export declare const useIsTelemetryEnabled: () => ComputedRef<boolean>; | ||
export declare const useIsTelemetryEnabled: () => ComputedRef_2<boolean>; | ||
@@ -408,3 +420,3 @@ /** | ||
*/ | ||
export declare function useLogger(name: string, getPrefix?: typeof defaultGetPrefix): { | ||
export declare function useLogger(name: string, options?: UseLoggerOptions): { | ||
outputChannel: OutputChannel; | ||
@@ -426,6 +438,11 @@ createLoggerFunc: (type: string) => (...message: any[]) => void; | ||
export declare interface UseLoggerOptions { | ||
outputChannel?: OutputChannel; | ||
getPrefix?: ((type: string) => string) | null; | ||
} | ||
/** | ||
* @reactive `env.logLevel` | ||
*/ | ||
export declare const useLogLevel: () => ComputedRef<LogLevel>; | ||
export declare const useLogLevel: () => ComputedRef_2<LogLevel>; | ||
@@ -448,3 +465,3 @@ /** | ||
*/ | ||
export declare function useNotebookEditorVisibleRanges(notebookEditor: MaybeNullableRefOrGetter<NotebookEditor>): ComputedRef<readonly NotebookRange[]>; | ||
export declare function useNotebookEditorVisibleRanges(notebookEditor: MaybeNullableRefOrGetter<NotebookEditor>): ComputedRef_2<readonly NotebookRange[]>; | ||
@@ -484,3 +501,3 @@ /** | ||
*/ | ||
export declare const useTaskExecutions: () => ComputedRef<readonly TaskExecution[]>; | ||
export declare const useTaskExecutions: () => ComputedRef_2<readonly TaskExecution[]>; | ||
@@ -506,3 +523,3 @@ /** | ||
*/ | ||
export declare function useTerminalState(terminal: MaybeNullableRefOrGetter<Terminal>): ComputedRef<TerminalState | undefined>; | ||
export declare function useTerminalState(terminal: MaybeNullableRefOrGetter<Terminal>): ComputedRef_2<TerminalState | undefined>; | ||
@@ -539,3 +556,3 @@ /** | ||
*/ | ||
export declare function useTextEditorViewColumn(textEditor: MaybeNullableRefOrGetter<TextEditor>): ComputedRef<ViewColumn | undefined>; | ||
export declare function useTextEditorViewColumn(textEditor: MaybeNullableRefOrGetter<TextEditor>): ComputedRef_2<ViewColumn | undefined>; | ||
@@ -546,3 +563,3 @@ /** | ||
*/ | ||
export declare function useTextEditorVisibleRanges(textEditor: MaybeNullableRefOrGetter<TextEditor>): ComputedRef<readonly Range[]>; | ||
export declare function useTextEditorVisibleRanges(textEditor: MaybeNullableRefOrGetter<TextEditor>): ComputedRef_2<readonly Range[]>; | ||
@@ -622,3 +639,3 @@ /** | ||
export declare function useVscodeContext<T>(name: string, value: WritableComputedRef<T>, shouldUpdate?: MaybeRefOrGetter<boolean>): WritableComputedRef<T>; | ||
export declare function useVscodeContext<T>(name: string, value: WritableComputedRef_2<T>, shouldUpdate?: MaybeRefOrGetter<boolean>): WritableComputedRef_2<T>; | ||
@@ -643,4 +660,4 @@ export declare function useVscodeContext<T>(name: string, value: MaybeRef<T>, shouldUpdate?: MaybeRefOrGetter<boolean>): Ref<T>; | ||
export declare const useWindowState: () => { | ||
focused: ComputedRef<boolean>; | ||
active: ComputedRef<boolean>; | ||
focused: ComputedRef_2<boolean>; | ||
active: ComputedRef_2<boolean>; | ||
}; | ||
@@ -651,3 +668,3 @@ | ||
*/ | ||
export declare const useWorkspaceFolders: () => ComputedRef<readonly WorkspaceFolder[] | undefined>; | ||
export declare const useWorkspaceFolders: () => ComputedRef_2<readonly WorkspaceFolder[] | undefined>; | ||
@@ -660,90 +677,2 @@ declare type ViewWithBadge = Pick<TreeView<unknown> | WebviewView, 'badge'>; | ||
export declare function watch<T, Immediate extends Readonly<boolean> = false>( | ||
source: WatchSource<T>, | ||
cb: WatchCallback<T, Immediate extends true ? T | undefined : T>, | ||
options?: WatchOptions<Immediate>, | ||
): WatchStopHandle | ||
export declare function watch< | ||
T extends MultiWatchSources, | ||
Immediate extends Readonly<boolean> = false, | ||
>( | ||
sources: [...T], | ||
cb: WatchCallback<MapSources<T, false>, MapSources<T, Immediate>>, | ||
options?: WatchOptions<Immediate>, | ||
): WatchStopHandle | ||
export declare function watch< | ||
T extends Readonly<MultiWatchSources>, | ||
Immediate extends Readonly<boolean> = false, | ||
>( | ||
source: T, | ||
cb: WatchCallback<MapSources<T, false>, MapSources<T, Immediate>>, | ||
options?: WatchOptions<Immediate>, | ||
): WatchStopHandle | ||
export declare function watch< | ||
T extends object, | ||
Immediate extends Readonly<boolean> = false, | ||
>( | ||
source: T, | ||
cb: WatchCallback<T, Immediate extends true ? T | undefined : T>, | ||
options?: WatchOptions<Immediate>, | ||
): WatchStopHandle | ||
export declare function watch<T = any, Immediate extends Readonly<boolean> = false>( | ||
source: T | WatchSource<T>, | ||
cb: any, | ||
options?: WatchOptions<Immediate>, | ||
): WatchStopHandle { | ||
if (__DEV__ && !isFunction(cb)) { | ||
warn( | ||
`\`watch(fn, options?)\` signature has been moved to a separate API. ` + | ||
`Use \`watchEffect(fn, options?)\` instead. \`watch\` now only ` + | ||
`supports \`watch(source, cb, options?) signature.`, | ||
) | ||
} | ||
return doWatch(source as any, cb, options) | ||
} | ||
export declare type WatchCallback<V = any, OV = any> = ( | ||
value: V, | ||
oldValue: OV, | ||
onCleanup: OnCleanup, | ||
) => any | ||
export declare type WatchEffect = (onCleanup: OnCleanup) => void | ||
export declare function watchEffect( | ||
effect: WatchEffect, | ||
options?: WatchOptionsBase, | ||
): WatchStopHandle { | ||
return doWatch(effect, null, options) | ||
} | ||
export declare interface WatchOptions<Immediate = boolean> extends WatchOptionsBase { | ||
immediate?: Immediate | ||
deep?: boolean | ||
once?: boolean | ||
} | ||
export declare interface WatchOptionsBase extends DebuggerOptions { | ||
flush?: 'pre' | 'post' | 'sync' | ||
} | ||
export declare type WatchSource<T = any> = Ref<T> | ComputedRef<T> | (() => T) | ||
export declare type WatchStopHandle = () => void | ||
export declare function watchSyncEffect( | ||
effect: WatchEffect, | ||
options?: DebuggerOptions, | ||
) { | ||
return doWatch( | ||
effect, | ||
null, | ||
__DEV__ ? extend({}, options as any, { flush: 'sync' }) : { flush: 'sync' }, | ||
) | ||
} | ||
declare interface WebviewRegisterOptions { | ||
@@ -758,4 +687,4 @@ retainContextWhenHidden?: boolean; | ||
export * from "@vue/reactivity"; | ||
export * from "@reactive-vscode/reactivity"; | ||
export { } |
1920
dist/index.js
@@ -1,1143 +0,94 @@ | ||
import { workspace as P, commands as ge, window as f, debug as qe, extensions as De, comments as Wt, env as B, EventEmitter as ot, tasks as J, Uri as kt, languages as jt, ColorThemeKind as Qe, l10n as Xe } from "vscode"; | ||
/** | ||
* @vue/shared v3.4.27 | ||
* (c) 2018-present Yuxi (Evan) You and Vue contributors | ||
* @license MIT | ||
**/ | ||
/*! #__NO_SIDE_EFFECTS__ */ | ||
// @__NO_SIDE_EFFECTS__ | ||
function Ft(e, t) { | ||
const n = new Set(e.split(",")); | ||
return (s) => n.has(s); | ||
import { getCurrentScope as A, onScopeDispose as N, shallowRef as l, effectScope as H, computed as d, toValue as a, watchEffect as h, watch as b, ref as x, shallowReactive as U, toRaw as q, isRef as J } from "@reactive-vscode/reactivity"; | ||
export * from "@reactive-vscode/reactivity"; | ||
import { workspace as m, commands as E, window as c, debug as y, extensions as p, comments as K, env as w, EventEmitter as F, tasks as T, Uri as z, languages as Y, ColorThemeKind as R, l10n as V } from "vscode"; | ||
function G(e) { | ||
return A() ? (N(e), !0) : !1; | ||
} | ||
const Kt = process.env.NODE_ENV !== "production" ? Object.freeze({}) : {}; | ||
process.env.NODE_ENV !== "production" && Object.freeze([]); | ||
const X = () => { | ||
}, Ee = Object.assign, $t = (e, t) => { | ||
const n = e.indexOf(t); | ||
n > -1 && e.splice(n, 1); | ||
}, Ut = Object.prototype.hasOwnProperty, fe = (e, t) => Ut.call(e, t), D = Array.isArray, z = (e) => we(e) === "[object Map]", zt = (e) => we(e) === "[object Set]", y = (e) => typeof e == "function", Gt = (e) => typeof e == "string", te = (e) => typeof e == "symbol", $ = (e) => e !== null && typeof e == "object", Bt = (e) => ($(e) || y(e)) && y(e.then) && y(e.catch), Yt = Object.prototype.toString, we = (e) => Yt.call(e), ct = (e) => we(e).slice(8, -1), Jt = (e) => we(e) === "[object Object]", Le = (e) => Gt(e) && e !== "NaN" && e[0] !== "-" && "" + parseInt(e, 10) === e, qt = (e) => { | ||
const t = /* @__PURE__ */ Object.create(null); | ||
return (n) => t[n] || (t[n] = e(n)); | ||
}, Qt = qt((e) => e.charAt(0).toUpperCase() + e.slice(1)), M = (e, t) => !Object.is(e, t), Xt = (e, t, n, s = !1) => { | ||
Object.defineProperty(e, t, { | ||
configurable: !0, | ||
enumerable: !1, | ||
writable: s, | ||
value: n | ||
}); | ||
}; | ||
/** | ||
* @vue/reactivity v3.4.27 | ||
* (c) 2018-present Yuxi (Evan) You and Vue contributors | ||
* @license MIT | ||
**/ | ||
function C(e, ...t) { | ||
console.warn(`[Vue warn] ${e}`, ...t); | ||
} | ||
let m; | ||
class Zt { | ||
constructor(t = !1) { | ||
this.detached = t, this._active = !0, this.effects = [], this.cleanups = [], this.parent = m, !t && m && (this.index = (m.scopes || (m.scopes = [])).push( | ||
this | ||
) - 1); | ||
} | ||
get active() { | ||
return this._active; | ||
} | ||
run(t) { | ||
if (this._active) { | ||
const n = m; | ||
try { | ||
return m = this, t(); | ||
} finally { | ||
m = n; | ||
} | ||
} else | ||
process.env.NODE_ENV !== "production" && C("cannot run an inactive effect scope."); | ||
} | ||
/** | ||
* This should only be called on non-detached scopes | ||
* @internal | ||
*/ | ||
on() { | ||
m = this; | ||
} | ||
/** | ||
* This should only be called on non-detached scopes | ||
* @internal | ||
*/ | ||
off() { | ||
m = this.parent; | ||
} | ||
stop(t) { | ||
if (this._active) { | ||
let n, s; | ||
for (n = 0, s = this.effects.length; n < s; n++) | ||
this.effects[n].stop(); | ||
for (n = 0, s = this.cleanups.length; n < s; n++) | ||
this.cleanups[n](); | ||
if (this.scopes) | ||
for (n = 0, s = this.scopes.length; n < s; n++) | ||
this.scopes[n].stop(!0); | ||
if (!this.detached && this.parent && !t) { | ||
const i = this.parent.scopes.pop(); | ||
i && i !== this && (this.parent.scopes[this.index] = i, i.index = this.index); | ||
} | ||
this.parent = void 0, this._active = !1; | ||
} | ||
} | ||
} | ||
function en(e) { | ||
return new Zt(e); | ||
} | ||
function at(e, t = m) { | ||
t && t.active && t.effects.push(e); | ||
} | ||
function Pe() { | ||
return m; | ||
} | ||
function ut(e) { | ||
m ? m.cleanups.push(e) : process.env.NODE_ENV !== "production" && C( | ||
"onScopeDispose() is called when there is no active effect scope to be associated with." | ||
); | ||
} | ||
let F; | ||
class de { | ||
constructor(t, n, s, i) { | ||
this.fn = t, this.trigger = n, this.scheduler = s, this.active = !0, this.deps = [], this._dirtyLevel = 4, this._trackId = 0, this._runnings = 0, this._shouldSchedule = !1, this._depsLength = 0, at(this, i); | ||
} | ||
get dirty() { | ||
if (this._dirtyLevel === 2 || this._dirtyLevel === 3) { | ||
this._dirtyLevel = 1, Me(); | ||
for (let t = 0; t < this._depsLength; t++) { | ||
const n = this.deps[t]; | ||
if (n.computed && (tn(n.computed), this._dirtyLevel >= 4)) | ||
break; | ||
} | ||
this._dirtyLevel === 1 && (this._dirtyLevel = 0), We(); | ||
} | ||
return this._dirtyLevel >= 4; | ||
} | ||
set dirty(t) { | ||
this._dirtyLevel = t ? 4 : 0; | ||
} | ||
run() { | ||
if (this._dirtyLevel = 0, !this.active) | ||
return this.fn(); | ||
let t = O, n = F; | ||
try { | ||
return O = !0, F = this, this._runnings++, Ze(this), this.fn(); | ||
} finally { | ||
et(this), this._runnings--, F = n, O = t; | ||
} | ||
} | ||
stop() { | ||
this.active && (Ze(this), et(this), this.onStop && this.onStop(), this.active = !1); | ||
} | ||
} | ||
function tn(e) { | ||
return e.value; | ||
} | ||
function Ze(e) { | ||
e._trackId++, e._depsLength = 0; | ||
} | ||
function et(e) { | ||
if (e.deps.length > e._depsLength) { | ||
for (let t = e._depsLength; t < e.deps.length; t++) | ||
lt(e.deps[t], e); | ||
e.deps.length = e._depsLength; | ||
} | ||
} | ||
function lt(e, t) { | ||
const n = e.get(t); | ||
n !== void 0 && t._trackId !== n && (e.delete(t), e.size === 0 && e.cleanup()); | ||
} | ||
function es(e, t) { | ||
e.effect instanceof de && (e = e.effect.fn); | ||
const n = new de(e, X, () => { | ||
n.dirty && n.run(); | ||
}); | ||
t && (Ee(n, t), t.scope && at(n, t.scope)), (!t || !t.lazy) && n.run(); | ||
const s = n.run.bind(n); | ||
return s.effect = n, s; | ||
} | ||
function ts(e) { | ||
e.effect.stop(); | ||
} | ||
let O = !0, Se = 0; | ||
const He = []; | ||
function Me() { | ||
He.push(O), O = !1; | ||
} | ||
function ns() { | ||
He.push(O), O = !0; | ||
} | ||
function We() { | ||
const e = He.pop(); | ||
O = e === void 0 ? !0 : e; | ||
} | ||
function ke() { | ||
Se++; | ||
} | ||
function je() { | ||
for (Se--; !Se && ye.length; ) | ||
ye.shift()(); | ||
} | ||
function ft(e, t, n) { | ||
var s; | ||
if (t.get(e) !== e._trackId) { | ||
t.set(e, e._trackId); | ||
const i = e.deps[e._depsLength]; | ||
i !== t ? (i && lt(i, e), e.deps[e._depsLength++] = t) : e._depsLength++, process.env.NODE_ENV !== "production" && ((s = e.onTrack) == null || s.call(e, Ee({ effect: e }, n))); | ||
} | ||
} | ||
const ye = []; | ||
function dt(e, t, n) { | ||
var s; | ||
ke(); | ||
for (const i of e.keys()) { | ||
let r; | ||
i._dirtyLevel < t && (r ?? (r = e.get(i) === i._trackId)) && (i._shouldSchedule || (i._shouldSchedule = i._dirtyLevel === 0), i._dirtyLevel = t), i._shouldSchedule && (r ?? (r = e.get(i) === i._trackId)) && (process.env.NODE_ENV !== "production" && ((s = i.onTrigger) == null || s.call(i, Ee({ effect: i }, n))), i.trigger(), (!i._runnings || i.allowRecurse) && i._dirtyLevel !== 2 && (i._shouldSchedule = !1, i.scheduler && ye.push(i.scheduler))); | ||
} | ||
je(); | ||
} | ||
const ht = (e, t) => { | ||
function L(e, t) { | ||
const n = /* @__PURE__ */ new Map(); | ||
return n.cleanup = e, n.computed = t, n; | ||
}, he = /* @__PURE__ */ new WeakMap(), K = Symbol(process.env.NODE_ENV !== "production" ? "iterate" : ""), Oe = Symbol(process.env.NODE_ENV !== "production" ? "Map key iterate" : ""); | ||
function N(e, t, n) { | ||
if (O && F) { | ||
let s = he.get(e); | ||
s || he.set(e, s = /* @__PURE__ */ new Map()); | ||
let i = s.get(n); | ||
i || s.set(n, i = ht(() => s.delete(n))), ft( | ||
F, | ||
i, | ||
process.env.NODE_ENV !== "production" ? { | ||
target: e, | ||
type: t, | ||
key: n | ||
} : void 0 | ||
); | ||
} | ||
} | ||
function H(e, t, n, s, i, r) { | ||
const o = he.get(e); | ||
if (!o) | ||
return; | ||
let a = []; | ||
if (t === "clear") | ||
a = [...o.values()]; | ||
else if (n === "length" && D(e)) { | ||
const l = Number(s); | ||
o.forEach((_, w) => { | ||
(w === "length" || !te(w) && w >= l) && a.push(_); | ||
}); | ||
} else | ||
switch (n !== void 0 && a.push(o.get(n)), t) { | ||
case "add": | ||
D(e) ? Le(n) && a.push(o.get("length")) : (a.push(o.get(K)), z(e) && a.push(o.get(Oe))); | ||
break; | ||
case "delete": | ||
D(e) || (a.push(o.get(K)), z(e) && a.push(o.get(Oe))); | ||
break; | ||
case "set": | ||
z(e) && a.push(o.get(K)); | ||
break; | ||
} | ||
ke(); | ||
for (const l of a) | ||
l && dt( | ||
l, | ||
4, | ||
process.env.NODE_ENV !== "production" ? { | ||
target: e, | ||
type: t, | ||
key: n, | ||
newValue: s, | ||
oldValue: i, | ||
oldTarget: r | ||
} : void 0 | ||
); | ||
je(); | ||
} | ||
function nn(e, t) { | ||
const n = he.get(e); | ||
return n && n.get(t); | ||
} | ||
const sn = /* @__PURE__ */ Ft("__proto__,__v_isRef,__isVue"), pt = new Set( | ||
/* @__PURE__ */ Object.getOwnPropertyNames(Symbol).filter((e) => e !== "arguments" && e !== "caller").map((e) => Symbol[e]).filter(te) | ||
), tt = /* @__PURE__ */ rn(); | ||
function rn() { | ||
const e = {}; | ||
return ["includes", "indexOf", "lastIndexOf"].forEach((t) => { | ||
e[t] = function(...n) { | ||
const s = d(this); | ||
for (let r = 0, o = this.length; r < o; r++) | ||
N(s, "get", r + ""); | ||
const i = s[t](...n); | ||
return i === -1 || i === !1 ? s[t](...n.map(d)) : i; | ||
}; | ||
}), ["push", "pop", "shift", "unshift", "splice"].forEach((t) => { | ||
e[t] = function(...n) { | ||
Me(), ke(); | ||
const s = d(this)[t].apply(this, n); | ||
return je(), We(), s; | ||
}; | ||
}), e; | ||
} | ||
function on(e) { | ||
te(e) || (e = String(e)); | ||
const t = d(this); | ||
return N(t, "has", e), t.hasOwnProperty(e); | ||
} | ||
class vt { | ||
constructor(t = !1, n = !1) { | ||
this._isReadonly = t, this._isShallow = n; | ||
} | ||
get(t, n, s) { | ||
const i = this._isReadonly, r = this._isShallow; | ||
if (n === "__v_isReactive") | ||
return !i; | ||
if (n === "__v_isReadonly") | ||
return i; | ||
if (n === "__v_isShallow") | ||
return r; | ||
if (n === "__v_raw") | ||
return s === (i ? r ? bt : Tt : r ? mt : wt).get(t) || // receiver is not the reactive proxy, but has the same prototype | ||
// this means the reciever is a user proxy of the reactive proxy | ||
Object.getPrototypeOf(t) === Object.getPrototypeOf(s) ? t : void 0; | ||
const o = D(t); | ||
if (!i) { | ||
if (o && fe(tt, n)) | ||
return Reflect.get(tt, n, s); | ||
if (n === "hasOwnProperty") | ||
return on; | ||
} | ||
const a = Reflect.get(t, n, s); | ||
return (te(n) ? pt.has(n) : sn(n)) || (i || N(t, "get", n), r) ? a : T(a) ? o && Le(n) ? a : a.value : $(a) ? i ? Rt(a) : Nt(a) : a; | ||
} | ||
} | ||
class _t extends vt { | ||
constructor(t = !1) { | ||
super(!1, t); | ||
} | ||
set(t, n, s, i) { | ||
let r = t[n]; | ||
if (!this._isShallow) { | ||
const l = Z(r); | ||
if (!pe(s) && !Z(s) && (r = d(r), s = d(s)), !D(t) && T(r) && !T(s)) | ||
return l ? !1 : (r.value = s, !0); | ||
} | ||
const o = D(t) && Le(n) ? Number(n) < t.length : fe(t, n), a = Reflect.set(t, n, s, i); | ||
return t === d(i) && (o ? M(s, r) && H(t, "set", n, s, r) : H(t, "add", n, s)), a; | ||
} | ||
deleteProperty(t, n) { | ||
const s = fe(t, n), i = t[n], r = Reflect.deleteProperty(t, n); | ||
return r && s && H(t, "delete", n, void 0, i), r; | ||
} | ||
has(t, n) { | ||
const s = Reflect.has(t, n); | ||
return (!te(n) || !pt.has(n)) && N(t, "has", n), s; | ||
} | ||
ownKeys(t) { | ||
return N( | ||
t, | ||
"iterate", | ||
D(t) ? "length" : K | ||
), Reflect.ownKeys(t); | ||
} | ||
} | ||
class gt extends vt { | ||
constructor(t = !1) { | ||
super(!0, t); | ||
} | ||
set(t, n) { | ||
return process.env.NODE_ENV !== "production" && C( | ||
`Set operation on key "${String(n)}" failed: target is readonly.`, | ||
t | ||
), !0; | ||
} | ||
deleteProperty(t, n) { | ||
return process.env.NODE_ENV !== "production" && C( | ||
`Delete operation on key "${String(n)}" failed: target is readonly.`, | ||
t | ||
), !0; | ||
} | ||
} | ||
const cn = /* @__PURE__ */ new _t(), an = /* @__PURE__ */ new gt(), un = /* @__PURE__ */ new _t( | ||
!0 | ||
), ln = /* @__PURE__ */ new gt(!0), Fe = (e) => e, me = (e) => Reflect.getPrototypeOf(e); | ||
function ie(e, t, n = !1, s = !1) { | ||
e = e.__v_raw; | ||
const i = d(e), r = d(t); | ||
n || (M(t, r) && N(i, "get", t), N(i, "get", r)); | ||
const { has: o } = me(i), a = s ? Fe : n ? Ke : ee; | ||
if (o.call(i, t)) | ||
return a(e.get(t)); | ||
if (o.call(i, r)) | ||
return a(e.get(r)); | ||
e !== i && e.get(t); | ||
} | ||
function re(e, t = !1) { | ||
const n = this.__v_raw, s = d(n), i = d(e); | ||
return t || (M(e, i) && N(s, "has", e), N(s, "has", i)), e === i ? n.has(e) : n.has(e) || n.has(i); | ||
} | ||
function oe(e, t = !1) { | ||
return e = e.__v_raw, !t && N(d(e), "iterate", K), Reflect.get(e, "size", e); | ||
} | ||
function nt(e) { | ||
e = d(e); | ||
const t = d(this); | ||
return me(t).has.call(t, e) || (t.add(e), H(t, "add", e, e)), this; | ||
} | ||
function st(e, t) { | ||
t = d(t); | ||
const n = d(this), { has: s, get: i } = me(n); | ||
let r = s.call(n, e); | ||
r ? process.env.NODE_ENV !== "production" && Et(n, s, e) : (e = d(e), r = s.call(n, e)); | ||
const o = i.call(n, e); | ||
return n.set(e, t), r ? M(t, o) && H(n, "set", e, t, o) : H(n, "add", e, t), this; | ||
} | ||
function it(e) { | ||
const t = d(this), { has: n, get: s } = me(t); | ||
let i = n.call(t, e); | ||
i ? process.env.NODE_ENV !== "production" && Et(t, n, e) : (e = d(e), i = n.call(t, e)); | ||
const r = s ? s.call(t, e) : void 0, o = t.delete(e); | ||
return i && H(t, "delete", e, void 0, r), o; | ||
} | ||
function rt() { | ||
const e = d(this), t = e.size !== 0, n = process.env.NODE_ENV !== "production" ? z(e) ? new Map(e) : new Set(e) : void 0, s = e.clear(); | ||
return t && H(e, "clear", void 0, void 0, n), s; | ||
} | ||
function ce(e, t) { | ||
return function(s, i) { | ||
const r = this, o = r.__v_raw, a = d(o), l = t ? Fe : e ? Ke : ee; | ||
return !e && N(a, "iterate", K), o.forEach((_, w) => s.call(i, l(_), l(w), r)); | ||
}; | ||
} | ||
function ae(e, t, n) { | ||
return function(...s) { | ||
const i = this.__v_raw, r = d(i), o = z(r), a = e === "entries" || e === Symbol.iterator && o, l = e === "keys" && o, _ = i[e](...s), w = n ? Fe : t ? Ke : ee; | ||
return !t && N( | ||
r, | ||
"iterate", | ||
l ? Oe : K | ||
), { | ||
// iterator protocol | ||
next() { | ||
const { value: g, done: A } = _.next(); | ||
return A ? { value: g, done: A } : { | ||
value: a ? [w(g[0]), w(g[1])] : w(g), | ||
done: A | ||
}; | ||
}, | ||
// iterable protocol | ||
[Symbol.iterator]() { | ||
return this; | ||
} | ||
}; | ||
}; | ||
} | ||
function I(e) { | ||
return function(...t) { | ||
if (process.env.NODE_ENV !== "production") { | ||
const n = t[0] ? `on key "${t[0]}" ` : ""; | ||
C( | ||
`${Qt(e)} operation ${n}failed: target is readonly.`, | ||
d(this) | ||
); | ||
} | ||
return e === "delete" ? !1 : e === "clear" ? void 0 : this; | ||
}; | ||
} | ||
function fn() { | ||
const e = { | ||
get(r) { | ||
return ie(this, r); | ||
}, | ||
get size() { | ||
return oe(this); | ||
}, | ||
has: re, | ||
add: nt, | ||
set: st, | ||
delete: it, | ||
clear: rt, | ||
forEach: ce(!1, !1) | ||
}, t = { | ||
get(r) { | ||
return ie(this, r, !1, !0); | ||
}, | ||
get size() { | ||
return oe(this); | ||
}, | ||
has: re, | ||
add: nt, | ||
set: st, | ||
delete: it, | ||
clear: rt, | ||
forEach: ce(!1, !0) | ||
}, n = { | ||
get(r) { | ||
return ie(this, r, !0); | ||
}, | ||
get size() { | ||
return oe(this, !0); | ||
}, | ||
has(r) { | ||
return re.call(this, r, !0); | ||
}, | ||
add: I("add"), | ||
set: I("set"), | ||
delete: I("delete"), | ||
clear: I("clear"), | ||
forEach: ce(!0, !1) | ||
}, s = { | ||
get(r) { | ||
return ie(this, r, !0, !0); | ||
}, | ||
get size() { | ||
return oe(this, !0); | ||
}, | ||
has(r) { | ||
return re.call(this, r, !0); | ||
}, | ||
add: I("add"), | ||
set: I("set"), | ||
delete: I("delete"), | ||
clear: I("clear"), | ||
forEach: ce(!0, !0) | ||
}; | ||
return [ | ||
"keys", | ||
"values", | ||
"entries", | ||
Symbol.iterator | ||
].forEach((r) => { | ||
e[r] = ae(r, !1, !1), n[r] = ae(r, !0, !1), t[r] = ae(r, !1, !0), s[r] = ae( | ||
r, | ||
!0, | ||
!0 | ||
); | ||
}), [ | ||
e, | ||
n, | ||
t, | ||
s | ||
]; | ||
} | ||
const [ | ||
dn, | ||
hn, | ||
pn, | ||
vn | ||
] = /* @__PURE__ */ fn(); | ||
function Te(e, t) { | ||
const n = t ? e ? vn : pn : e ? hn : dn; | ||
return (s, i, r) => i === "__v_isReactive" ? !e : i === "__v_isReadonly" ? e : i === "__v_raw" ? s : Reflect.get( | ||
fe(n, i) && i in s ? n : s, | ||
i, | ||
r | ||
); | ||
} | ||
const _n = { | ||
get: /* @__PURE__ */ Te(!1, !1) | ||
}, gn = { | ||
get: /* @__PURE__ */ Te(!1, !0) | ||
}, En = { | ||
get: /* @__PURE__ */ Te(!0, !1) | ||
}, wn = { | ||
get: /* @__PURE__ */ Te(!0, !0) | ||
}; | ||
function Et(e, t, n) { | ||
const s = d(n); | ||
if (s !== n && t.call(e, s)) { | ||
const i = ct(e); | ||
C( | ||
`Reactive ${i} contains both the raw and reactive versions of the same object${i === "Map" ? " as keys" : ""}, which can lead to inconsistencies. Avoid differentiating between the raw and reactive versions of an object and only use the reactive version if possible.` | ||
); | ||
} | ||
} | ||
const wt = /* @__PURE__ */ new WeakMap(), mt = /* @__PURE__ */ new WeakMap(), Tt = /* @__PURE__ */ new WeakMap(), bt = /* @__PURE__ */ new WeakMap(); | ||
function mn(e) { | ||
switch (e) { | ||
case "Object": | ||
case "Array": | ||
return 1; | ||
case "Map": | ||
case "Set": | ||
case "WeakMap": | ||
case "WeakSet": | ||
return 2; | ||
default: | ||
return 0; | ||
} | ||
} | ||
function Tn(e) { | ||
return e.__v_skip || !Object.isExtensible(e) ? 0 : mn(ct(e)); | ||
} | ||
function Nt(e) { | ||
return Z(e) ? e : be( | ||
e, | ||
!1, | ||
cn, | ||
_n, | ||
wt | ||
); | ||
} | ||
function bn(e) { | ||
return be( | ||
e, | ||
!1, | ||
un, | ||
gn, | ||
mt | ||
); | ||
} | ||
function Rt(e) { | ||
return be( | ||
e, | ||
!0, | ||
an, | ||
En, | ||
Tt | ||
); | ||
} | ||
function ss(e) { | ||
return be( | ||
e, | ||
!0, | ||
ln, | ||
wn, | ||
bt | ||
); | ||
} | ||
function be(e, t, n, s, i) { | ||
if (!$(e)) | ||
return process.env.NODE_ENV !== "production" && C(`value cannot be made reactive: ${String(e)}`), e; | ||
if (e.__v_raw && !(t && e.__v_isReactive)) | ||
return e; | ||
const r = i.get(e); | ||
if (r) | ||
return r; | ||
const o = Tn(e); | ||
if (o === 0) | ||
return e; | ||
const a = new Proxy( | ||
e, | ||
o === 2 ? s : n | ||
); | ||
return i.set(e, a), a; | ||
} | ||
function q(e) { | ||
return Z(e) ? q(e.__v_raw) : !!(e && e.__v_isReactive); | ||
} | ||
function Z(e) { | ||
return !!(e && e.__v_isReadonly); | ||
} | ||
function pe(e) { | ||
return !!(e && e.__v_isShallow); | ||
} | ||
function Nn(e) { | ||
return e ? !!e.__v_raw : !1; | ||
} | ||
function d(e) { | ||
const t = e && e.__v_raw; | ||
return t ? d(t) : e; | ||
} | ||
function is(e) { | ||
return Object.isExtensible(e) && Xt(e, "__v_skip", !0), e; | ||
} | ||
const ee = (e) => $(e) ? Nt(e) : e, Ke = (e) => $(e) ? Rt(e) : e, Rn = "Computed is still dirty after getter evaluation, likely because a computed is mutating its own dependency in its getter. State mutations in computed getters should be avoided. Check the docs for more details: https://vuejs.org/guide/essentials/computed.html#getters-should-be-side-effect-free"; | ||
class Dt { | ||
constructor(t, n, s, i) { | ||
this.getter = t, this._setter = n, this.dep = void 0, this.__v_isRef = !0, this.__v_isReadonly = !1, this.effect = new de( | ||
() => t(this._value), | ||
() => G( | ||
this, | ||
this.effect._dirtyLevel === 2 ? 2 : 3 | ||
) | ||
), this.effect.computed = this, this.effect.active = this._cacheable = !i, this.__v_isReadonly = s; | ||
} | ||
get value() { | ||
const t = d(this); | ||
return (!t._cacheable || t.effect.dirty) && M(t._value, t._value = t.effect.run()) && G(t, 4), $e(t), t.effect._dirtyLevel >= 2 && (process.env.NODE_ENV !== "production" && this._warnRecursive && C(Rn, ` | ||
getter: `, this.getter), G(t, 2)), t._value; | ||
} | ||
set value(t) { | ||
this._setter(t); | ||
} | ||
// #region polyfill _dirty for backward compatibility third party code for Vue <= 3.3.x | ||
get _dirty() { | ||
return this.effect.dirty; | ||
} | ||
set _dirty(t) { | ||
this.effect.dirty = t; | ||
} | ||
// #endregion | ||
} | ||
function v(e, t, n = !1) { | ||
let s, i; | ||
const r = y(e); | ||
r ? (s = e, i = process.env.NODE_ENV !== "production" ? () => { | ||
C("Write operation failed: computed value is readonly"); | ||
} : X) : (s = e.get, i = e.set); | ||
const o = new Dt(s, i, r || !i, n); | ||
return process.env.NODE_ENV !== "production" && t && !n && (o.effect.onTrack = t.onTrack, o.effect.onTrigger = t.onTrigger), o; | ||
} | ||
function $e(e) { | ||
var t; | ||
O && F && (e = d(e), ft( | ||
F, | ||
(t = e.dep) != null ? t : e.dep = ht( | ||
() => e.dep = void 0, | ||
e instanceof Dt ? e : void 0 | ||
), | ||
process.env.NODE_ENV !== "production" ? { | ||
target: e, | ||
type: "get", | ||
key: "value" | ||
} : void 0 | ||
)); | ||
} | ||
function G(e, t = 4, n) { | ||
e = d(e); | ||
const s = e.dep; | ||
s && dt( | ||
s, | ||
t, | ||
process.env.NODE_ENV !== "production" ? { | ||
target: e, | ||
type: "set", | ||
key: "value", | ||
newValue: n | ||
} : void 0 | ||
); | ||
} | ||
function T(e) { | ||
return !!(e && e.__v_isRef === !0); | ||
} | ||
function ne(e) { | ||
return St(e, !1); | ||
} | ||
function h(e) { | ||
return St(e, !0); | ||
} | ||
function St(e, t) { | ||
return T(e) ? e : new Dn(e, t); | ||
} | ||
class Dn { | ||
constructor(t, n) { | ||
this.__v_isShallow = n, this.dep = void 0, this.__v_isRef = !0, this._rawValue = n ? t : d(t), this._value = n ? t : ee(t); | ||
} | ||
get value() { | ||
return $e(this), this._value; | ||
} | ||
set value(t) { | ||
const n = this.__v_isShallow || pe(t) || Z(t); | ||
t = n ? t : d(t), M(t, this._rawValue) && (this._rawValue = t, this._value = n ? t : ee(t), G(this, 4, t)); | ||
} | ||
} | ||
function rs(e) { | ||
G(e, 4, process.env.NODE_ENV !== "production" ? e.value : void 0); | ||
} | ||
function yt(e) { | ||
return T(e) ? e.value : e; | ||
} | ||
function c(e) { | ||
return y(e) ? e() : yt(e); | ||
} | ||
const Sn = { | ||
get: (e, t, n) => yt(Reflect.get(e, t, n)), | ||
set: (e, t, n, s) => { | ||
const i = e[t]; | ||
return T(i) && !T(n) ? (i.value = n, !0) : Reflect.set(e, t, n, s); | ||
} | ||
}; | ||
function os(e) { | ||
return q(e) ? e : new Proxy(e, Sn); | ||
} | ||
class yn { | ||
constructor(t) { | ||
this.dep = void 0, this.__v_isRef = !0; | ||
const { get: n, set: s } = t( | ||
() => $e(this), | ||
() => G(this) | ||
); | ||
this._get = n, this._set = s; | ||
} | ||
get value() { | ||
return this._get(); | ||
} | ||
set value(t) { | ||
this._set(t); | ||
} | ||
} | ||
function cs(e) { | ||
return new yn(e); | ||
} | ||
function as(e) { | ||
process.env.NODE_ENV !== "production" && !Nn(e) && C("toRefs() expects a reactive object but received a plain one."); | ||
const t = D(e) ? new Array(e.length) : {}; | ||
for (const n in e) | ||
t[n] = Ot(e, n); | ||
return t; | ||
} | ||
class On { | ||
constructor(t, n, s) { | ||
this._object = t, this._key = n, this._defaultValue = s, this.__v_isRef = !0; | ||
} | ||
get value() { | ||
const t = this._object[this._key]; | ||
return t === void 0 ? this._defaultValue : t; | ||
} | ||
set value(t) { | ||
this._object[this._key] = t; | ||
} | ||
get dep() { | ||
return nn(d(this._object), this._key); | ||
} | ||
} | ||
class Cn { | ||
constructor(t) { | ||
this._getter = t, this.__v_isRef = !0, this.__v_isReadonly = !0; | ||
} | ||
get value() { | ||
return this._getter(); | ||
} | ||
} | ||
function us(e, t, n) { | ||
return T(e) ? e : y(e) ? new Cn(e) : $(e) && arguments.length > 1 ? Ot(e, t, n) : ne(e); | ||
} | ||
function Ot(e, t, n) { | ||
const s = e[t]; | ||
return T(s) ? s : new On(e, t, n); | ||
} | ||
const ls = v, fs = { | ||
GET: "get", | ||
HAS: "has", | ||
ITERATE: "iterate" | ||
}, ds = { | ||
SET: "set", | ||
ADD: "add", | ||
DELETE: "delete", | ||
CLEAR: "clear" | ||
}, An = { | ||
SKIP: "__v_skip", | ||
IS_REACTIVE: "__v_isReactive", | ||
IS_READONLY: "__v_isReadonly", | ||
IS_SHALLOW: "__v_isShallow", | ||
RAW: "__v_raw" | ||
}; | ||
function V(e, ...t) { | ||
Me(); | ||
const n = [`[Vue warn]: ${e}`, ...t]; | ||
console.warn(...n), We(); | ||
} | ||
var Ce = /* @__PURE__ */ ((e) => (e.ACTIVATED = "a", e.DEACTIVATED = "da", e))(Ce || {}), x = /* @__PURE__ */ ((e) => (e[e.SETUP_FUNCTION = 0] = "SETUP_FUNCTION", e[e.RENDER_FUNCTION = 1] = "RENDER_FUNCTION", e[e.WATCH_GETTER = 2] = "WATCH_GETTER", e[e.WATCH_CALLBACK = 3] = "WATCH_CALLBACK", e[e.WATCH_CLEANUP = 4] = "WATCH_CLEANUP", e[e.NATIVE_EVENT_HANDLER = 5] = "NATIVE_EVENT_HANDLER", e[e.COMPONENT_EVENT_HANDLER = 6] = "COMPONENT_EVENT_HANDLER", e[e.VNODE_HOOK = 7] = "VNODE_HOOK", e[e.DIRECTIVE_HOOK = 8] = "DIRECTIVE_HOOK", e[e.TRANSITION_HOOK = 9] = "TRANSITION_HOOK", e[e.APP_ERROR_HANDLER = 10] = "APP_ERROR_HANDLER", e[e.APP_WARN_HANDLER = 11] = "APP_WARN_HANDLER", e[e.FUNCTION_REF = 12] = "FUNCTION_REF", e[e.ASYNC_COMPONENT_LOADER = 13] = "ASYNC_COMPONENT_LOADER", e[e.SCHEDULER = 14] = "SCHEDULER", e))(x || {}); | ||
const In = { | ||
[Ce.ACTIVATED]: "activated hook", | ||
[Ce.DEACTIVATED]: "deactivated hook", | ||
0: "setup function", | ||
1: "render function", | ||
2: "watcher getter", | ||
3: "watcher callback", | ||
4: "watcher cleanup function", | ||
5: "native event handler", | ||
6: "component event handler", | ||
7: "vnode hook", | ||
8: "directive hook", | ||
9: "transition hook", | ||
10: "app errorHandler", | ||
11: "app warnHandler", | ||
12: "ref function", | ||
13: "async component loader", | ||
14: "scheduler flush. This is likely a Vue internals bug. Please open an issue at https://github.com/vuejs/core ." | ||
}; | ||
function Q(e, t, n, s) { | ||
try { | ||
return s ? e(...s) : e(); | ||
} catch (i) { | ||
Ue(i, t, n); | ||
} | ||
} | ||
function Ae(e, t, n, s) { | ||
if (y(e)) { | ||
const i = Q(e, t, n, s); | ||
return i && Bt(i) && i.catch((r) => { | ||
Ue(r, t, n); | ||
}), i; | ||
} | ||
if (D(e)) { | ||
const i = []; | ||
for (let r = 0; r < e.length; r++) | ||
i.push(Ae(e[r], t, n, s)); | ||
return i; | ||
} else | ||
process.env.NODE_ENV !== "production" && V( | ||
`Invalid value type passed to callWithAsyncErrorHandling(): ${typeof e}` | ||
); | ||
} | ||
function Ue(e, t, n, s = !0) { | ||
Vn(e, n, null, s); | ||
} | ||
function Vn(e, t, n, s = !0) { | ||
if (process.env.NODE_ENV !== "production") { | ||
const i = In[t]; | ||
if (V(`Unhandled error${i ? ` during execution of ${i}` : ""}`), s) | ||
throw e; | ||
console.error(e); | ||
} else | ||
console.error(e); | ||
} | ||
let ve = !1, Ie = !1; | ||
const R = []; | ||
let L = 0; | ||
const Ct = /* @__PURE__ */ Promise.resolve(); | ||
let ze = null; | ||
const xn = 100; | ||
function hs(e) { | ||
const t = ze || Ct; | ||
return e ? t.then(this ? e.bind(this) : e) : t; | ||
} | ||
function Ln(e) { | ||
let t = L + 1, n = R.length; | ||
for (; t < n; ) { | ||
const s = t + n >>> 1, i = R[s], r = Ve(i); | ||
r < e || r === e && i.pre ? t = s + 1 : n = s; | ||
} | ||
return t; | ||
} | ||
function Pn(e) { | ||
(!R.length || !R.includes( | ||
e, | ||
ve && e.allowRecurse ? L + 1 : L | ||
)) && (e.id == null ? R.push(e) : R.splice(Ln(e.id), 0, e), Hn()); | ||
} | ||
function Hn() { | ||
!ve && !Ie && (Ie = !0, ze = Ct.then(At)); | ||
} | ||
const Ve = (e) => e.id == null ? 1 / 0 : e.id, Mn = (e, t) => { | ||
const n = Ve(e) - Ve(t); | ||
if (n === 0) { | ||
if (e.pre && !t.pre) | ||
return -1; | ||
if (t.pre && !e.pre) | ||
return 1; | ||
} | ||
return n; | ||
}; | ||
function At(e) { | ||
Ie = !1, ve = !0, process.env.NODE_ENV !== "production" && (e = e || /* @__PURE__ */ new Map()), R.sort(Mn); | ||
const t = process.env.NODE_ENV !== "production" ? (n) => Wn(e, n) : X; | ||
try { | ||
for (L = 0; L < R.length; L++) { | ||
const n = R[L]; | ||
if (n && n.active !== !1) { | ||
if (process.env.NODE_ENV !== "production" && t(n)) | ||
continue; | ||
Q(n, null, x.SCHEDULER); | ||
} | ||
} | ||
} finally { | ||
L = 0, R.length = 0, ve = !1, ze = null, R.length && At(e); | ||
} | ||
} | ||
function Wn(e, t) { | ||
if (!e.has(t)) | ||
e.set(t, 1); | ||
else { | ||
const n = e.get(t); | ||
if (n > xn) | ||
return Ue( | ||
"Maximum recursive updates exceeded. This means you have a reactive effect that is mutating its own dependencies and thus recursively triggering itself. Possible sources include component template, render function, updated hook or watcher source function.", | ||
null, | ||
x.APP_ERROR_HANDLER | ||
), !0; | ||
e.set(t, n + 1); | ||
} | ||
} | ||
function S(e, t) { | ||
return Ge(e, null, t); | ||
} | ||
function ps(e, t) { | ||
return Ge( | ||
e, | ||
null, | ||
process.env.NODE_ENV !== "production" ? Ee({}, t, { flush: "sync" }) : { flush: "sync" } | ||
); | ||
} | ||
const ue = {}; | ||
function W(e, t, n) { | ||
return process.env.NODE_ENV !== "production" && !y(t) && V( | ||
"`watch(fn, options?)` signature has been moved to a separate API. Use `watchEffect(fn, options?)` instead. `watch` now only supports `watch(source, cb, options?) signature." | ||
), Ge(e, t, n); | ||
} | ||
function Ge(e, t, { | ||
immediate: n, | ||
deep: s, | ||
flush: i, | ||
once: r, | ||
onTrack: o, | ||
onTrigger: a | ||
} = Kt) { | ||
if (t && r) { | ||
const p = t; | ||
t = (...Re) => { | ||
p(...Re), Je(); | ||
}; | ||
} | ||
process.env.NODE_ENV !== "production" && s !== void 0 && typeof s == "number" && V( | ||
'watch() "deep" option with number value will be used as watch depth in future versions. Please use a boolean instead to avoid potential breakage.' | ||
), process.env.NODE_ENV !== "production" && !t && (n !== void 0 && V( | ||
'watch() "immediate" option is only respected when using the watch(source, callback, options?) signature.' | ||
), s !== void 0 && V( | ||
'watch() "deep" option is only respected when using the watch(source, callback, options?) signature.' | ||
), r !== void 0 && V( | ||
'watch() "once" option is only respected when using the watch(source, callback, options?) signature.' | ||
)); | ||
const l = (p) => { | ||
V( | ||
"Invalid watch source: ", | ||
p, | ||
"A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types." | ||
); | ||
}, _ = null, w = (p) => s === !0 ? p : ( | ||
// for deep: false, only traverse root-level properties | ||
j(p, s === !1 ? 1 : void 0) | ||
); | ||
let g, A = !1, se = !1; | ||
if (T(e) ? (g = () => e.value, A = pe(e)) : q(e) ? (g = () => w(e), A = !0) : D(e) ? (se = !0, A = e.some((p) => q(p) || pe(p)), g = () => e.map((p) => { | ||
if (T(p)) | ||
return p.value; | ||
if (q(p)) | ||
return w(p); | ||
if (y(p)) | ||
return Q(p, _, x.WATCH_GETTER); | ||
process.env.NODE_ENV !== "production" && l(p); | ||
})) : y(e) ? t ? g = () => Q(e, _, x.WATCH_GETTER) : g = () => (U && U(), Ae( | ||
e, | ||
_, | ||
x.WATCH_CALLBACK, | ||
[Be] | ||
)) : (g = X, process.env.NODE_ENV !== "production" && l(e)), t && s) { | ||
const p = g; | ||
g = () => j(p()); | ||
} | ||
let U, Be = (p) => { | ||
U = b.onStop = () => { | ||
Q(p, _, x.WATCH_CLEANUP), U = b.onStop = void 0; | ||
}; | ||
}, k = se ? new Array(e.length).fill(ue) : ue; | ||
const Y = () => { | ||
if (!(!b.active || !b.dirty)) | ||
if (t) { | ||
const p = b.run(); | ||
(s || A || (se ? p.some((Re, Mt) => M(Re, k[Mt])) : M(p, k))) && (U && U(), Ae(t, _, x.WATCH_CALLBACK, [ | ||
p, | ||
// pass undefined as the old value when it's changed for the first time | ||
k === ue ? void 0 : se && k[0] === ue ? [] : k, | ||
Be | ||
]), k = p); | ||
} else | ||
b.run(); | ||
}; | ||
Y.allowRecurse = !!t; | ||
let Ne; | ||
i === "sync" ? Ne = Y : (Y.pre = !0, Ne = () => Pn(Y)); | ||
const b = new de(g, X, Ne), Ye = Pe(), Je = () => { | ||
b.stop(), Ye && $t(Ye.effects, b); | ||
}; | ||
return process.env.NODE_ENV !== "production" && (b.onTrack = o, b.onTrigger = a), t ? n ? Y() : k = b.run() : b.run(), Je; | ||
} | ||
function j(e, t = 1 / 0, n) { | ||
if (t <= 0 || !$(e) || e[An.SKIP] || (n = n || /* @__PURE__ */ new Set(), n.has(e))) | ||
return e; | ||
if (n.add(e), t--, T(e)) | ||
j(e.value, t, n); | ||
else if (D(e)) | ||
for (let s = 0; s < e.length; s++) | ||
j(e[s], t, n); | ||
else if (zt(e) || z(e)) | ||
e.forEach((s) => { | ||
j(s, t, n); | ||
}); | ||
else if (Jt(e)) { | ||
for (const s in e) | ||
j(e[s], t, n); | ||
for (const s of Object.getOwnPropertySymbols(e)) | ||
Object.prototype.propertyIsEnumerable.call(e, s) && j(e[s], t, n); | ||
} | ||
return e; | ||
} | ||
function kn(e) { | ||
return Pe() ? (ut(e), !0) : !1; | ||
} | ||
function It(e, t) { | ||
const n = /* @__PURE__ */ new Map(); | ||
return (...s) => { | ||
const i = t(...s); | ||
let r = n.get(i); | ||
return r ? r.refCount++ : (r = { | ||
data: e(...s), | ||
return (...r) => { | ||
const i = t(...r); | ||
let o = n.get(i); | ||
return o ? o.refCount++ : (o = { | ||
data: e(...r), | ||
refCount: 1 | ||
}, n.set(i, r)), kn(() => { | ||
--r.refCount === 0 && n.delete(i); | ||
}), r.data; | ||
}, n.set(i, o)), G(() => { | ||
--o.refCount === 0 && n.delete(i); | ||
}), o.data; | ||
}; | ||
} | ||
function E(e) { | ||
function v(e) { | ||
let t; | ||
return () => t ?? (t = e()); | ||
} | ||
const Vt = []; | ||
function vs(e) { | ||
Vt.push(e); | ||
const W = []; | ||
function le(e) { | ||
W.push(e); | ||
} | ||
const _e = h(null), xe = en(); | ||
function _s(e) { | ||
const S = l(null), k = H(); | ||
function de(e) { | ||
return { | ||
activate: (t) => { | ||
_e.value = t, xe.run(() => { | ||
xt.map((n) => n(t)), e(); | ||
S.value = t, k.run(() => { | ||
I.map((n) => n(t)), e(); | ||
}); | ||
}, | ||
deactivate: () => { | ||
Vt.map((t) => t()), xe.stop(); | ||
W.map((t) => t()), k.stop(); | ||
} | ||
}; | ||
} | ||
const xt = []; | ||
function jn(e) { | ||
_e.value ? e(_e.value) : xt.push(e); | ||
const I = []; | ||
function O(e) { | ||
S.value ? e(S.value) : I.push(e); | ||
} | ||
function gs(e, t, n) { | ||
const s = P.getConfiguration(e, n); | ||
function i(o, a) { | ||
const l = h(a); | ||
return l.update = async (_, w, g) => { | ||
await s.update(o, _, w, g), l.value = _; | ||
}, l; | ||
function fe(e, t, n) { | ||
const r = m.getConfiguration(e, n); | ||
function i(u, g) { | ||
const f = l(g); | ||
return f.update = async (C, j, B) => { | ||
await r.update(u, C, j, B), f.value = C; | ||
}, f; | ||
} | ||
const r = Object.fromEntries( | ||
Object.keys(t).map((o) => [o, i(o, s.get(o))]) | ||
const o = Object.fromEntries( | ||
Object.keys(t).map((u) => [u, i(u, r.get(u))]) | ||
); | ||
return jn(() => { | ||
u(P.onDidChangeConfiguration((o) => { | ||
if (!o.affectsConfiguration(e)) | ||
return O(() => { | ||
s(m.onDidChangeConfiguration((u) => { | ||
if (!u.affectsConfiguration(e)) | ||
return; | ||
const a = P.getConfiguration(e); | ||
for (const l in t) | ||
o.affectsConfiguration(`${e}.${l}`) && (r[l].value = a.get(l)); | ||
const g = m.getConfiguration(e); | ||
for (const f in t) | ||
u.affectsConfiguration(`${e}.${f}`) && (o[f].value = g.get(f)); | ||
})); | ||
}), r; | ||
}), o; | ||
} | ||
function Es(e, ...t) { | ||
return ge.executeCommand(e, ...t); | ||
function ve(e, t) { | ||
const n = l(null), r = [], i = (o) => (...u) => n.value ? n.value[o](...u) : (r.push([o, u]), null); | ||
return O(() => { | ||
n.value = ie(e, t); | ||
for (const [o, u] of r) | ||
n.value[o](...u); | ||
}), { | ||
logger: n, | ||
outputChannel: d(() => { | ||
var o; | ||
return (o = n.value) == null ? void 0 : o.outputChannel; | ||
}), | ||
info: i("info"), | ||
warn: i("warn"), | ||
error: i("error"), | ||
append: i("append"), | ||
appendLine: i("appendLine"), | ||
replace: i("replace"), | ||
clear: i("clear"), | ||
show: i("show"), | ||
hide: i("hide") | ||
}; | ||
} | ||
function Fn(e, t = !1) { | ||
const n = _e.value; | ||
function ge(e, ...t) { | ||
return E.executeCommand(e, ...t); | ||
} | ||
function Q(e, t = !1) { | ||
const n = S.value; | ||
if (!n && !t) | ||
@@ -1147,177 +98,177 @@ throw new Error("Cannot get absolute path because the extension is not activated yet"); | ||
} | ||
function ws(e, t = !1) { | ||
return v(() => Fn(c(e), t)); | ||
function he(e, t = !1) { | ||
return d(() => Q(a(e), t)); | ||
} | ||
function u(e) { | ||
return (Pe() ?? xe).cleanups.push(e.dispose.bind(e)), e; | ||
function s(e) { | ||
return (A() ?? k).cleanups.push(e.dispose.bind(e)), e; | ||
} | ||
const Kn = E(() => { | ||
const e = h(f.activeColorTheme); | ||
return u(f.onDidChangeActiveColorTheme((t) => { | ||
const X = v(() => { | ||
const e = l(c.activeColorTheme); | ||
return s(c.onDidChangeActiveColorTheme((t) => { | ||
e.value = t; | ||
})), e; | ||
}), ms = E(() => { | ||
const e = h(qe.activeDebugSession); | ||
return u(qe.onDidChangeActiveDebugSession((t) => { | ||
}), me = v(() => { | ||
const e = l(y.activeDebugSession); | ||
return s(y.onDidChangeActiveDebugSession((t) => { | ||
e.value = t; | ||
})), v(() => e.value); | ||
}), $n = E(() => { | ||
const e = h(f.activeTextEditor); | ||
return u(f.onDidChangeActiveTextEditor((t) => { | ||
})), d(() => e.value); | ||
}), Z = v(() => { | ||
const e = l(c.activeTextEditor); | ||
return s(c.onDidChangeActiveTextEditor((t) => { | ||
e.value = t; | ||
})), e; | ||
}); | ||
function Un(e, t, n) { | ||
const s = "key" in t ? t : f.createTextEditorDecorationType(t); | ||
S(() => { | ||
function _(e, t, n) { | ||
const r = "key" in t ? t : c.createTextEditorDecorationType(t); | ||
h(() => { | ||
var i; | ||
(i = c(e)) == null || i.setDecorations(s, c(n)); | ||
(i = a(e)) == null || i.setDecorations(r, a(n)); | ||
}); | ||
} | ||
function Ts(e, t) { | ||
const n = $n(); | ||
Un(n, e, t); | ||
function be(e, t) { | ||
const n = Z(); | ||
_(n, e, t); | ||
} | ||
const bs = E(() => { | ||
const e = h(f.activeNotebookEditor); | ||
return u(f.onDidChangeActiveNotebookEditor((t) => { | ||
const Ce = v(() => { | ||
const e = l(c.activeNotebookEditor); | ||
return s(c.onDidChangeActiveNotebookEditor((t) => { | ||
e.value = t; | ||
})), e; | ||
}), Ns = E(() => { | ||
const e = h(f.activeTerminal); | ||
return u(f.onDidChangeActiveTerminal((t) => { | ||
}), we = v(() => { | ||
const e = l(c.activeTerminal); | ||
return s(c.onDidChangeActiveTerminal((t) => { | ||
e.value = t; | ||
})), e; | ||
}), Rs = E(() => { | ||
const e = h(De.all); | ||
return u(De.onDidChange(() => { | ||
e.value = De.all; | ||
})), v(() => e.value); | ||
}), Te = v(() => { | ||
const e = l(p.all); | ||
return s(p.onDidChange(() => { | ||
e.value = p.all; | ||
})), d(() => e.value); | ||
}); | ||
function zn(e, t) { | ||
u(ge.registerCommand(e, t)); | ||
function ee(e, t) { | ||
s(E.registerCommand(e, t)); | ||
} | ||
function Ds(e) { | ||
function De(e) { | ||
for (const [t, n] of Object.entries(e)) | ||
n && zn(t, n); | ||
n && ee(t, n); | ||
} | ||
function Ss(e, t) { | ||
return u(Wt.createCommentController(e, t)); | ||
function Se(e, t) { | ||
return s(K.createCommentController(e, t)); | ||
} | ||
function Lt(e) { | ||
function P(e) { | ||
var n; | ||
const t = h((n = c(e)) == null ? void 0 : n.state); | ||
return W(e, () => { | ||
var s; | ||
t.value = (s = c(e)) == null ? void 0 : s.state; | ||
}), u(f.onDidChangeTerminalState((s) => { | ||
s === c(e) && (t.value = s.state); | ||
})), v(() => t.value); | ||
const t = l((n = a(e)) == null ? void 0 : n.state); | ||
return b(e, () => { | ||
var r; | ||
t.value = (r = a(e)) == null ? void 0 : r.state; | ||
}), s(c.onDidChangeTerminalState((r) => { | ||
r === a(e) && (t.value = r.state); | ||
})), d(() => t.value); | ||
} | ||
function ys(...e) { | ||
const t = ne(null); | ||
function xe(...e) { | ||
const t = x(null); | ||
function n() { | ||
return !!t.value && t.value.exitStatus == null; | ||
} | ||
function s() { | ||
return n() ? t.value : t.value = f.createTerminal(...e); | ||
function r() { | ||
return n() ? t.value : t.value = c.createTerminal(...e); | ||
} | ||
async function i(a) { | ||
s().sendText(a); | ||
function i(g) { | ||
r().sendText(g); | ||
} | ||
async function r() { | ||
s().show(); | ||
function o() { | ||
r().show(); | ||
} | ||
function o() { | ||
function u() { | ||
n() && (t.value.sendText(""), t.value.dispose(), t.value = null); | ||
} | ||
return ut(o), { | ||
return N(u), { | ||
terminal: t, | ||
getIsActive: n, | ||
show: r, | ||
show: o, | ||
sendText: i, | ||
close: o, | ||
state: Lt(t) | ||
close: u, | ||
state: P(t) | ||
}; | ||
} | ||
const Os = E(() => { | ||
const e = h(B.shell); | ||
return u(B.onDidChangeShell((t) => { | ||
const Ee = v(() => { | ||
const e = l(w.shell); | ||
return s(w.onDidChangeShell((t) => { | ||
e.value = t; | ||
})), v(() => e.value); | ||
})), d(() => e.value); | ||
}); | ||
function Cs(e) { | ||
function pe(e) { | ||
var n; | ||
const t = h((n = c(e)) == null ? void 0 : n.getText()); | ||
return S(() => { | ||
var s; | ||
t.value = (s = c(e)) == null ? void 0 : s.getText(); | ||
}), u(P.onDidChangeTextDocument((s) => { | ||
s.document === c(e) && (t.value = s.document.getText()); | ||
const t = l((n = a(e)) == null ? void 0 : n.getText()); | ||
return h(() => { | ||
var r; | ||
t.value = (r = a(e)) == null ? void 0 : r.getText(); | ||
}), s(m.onDidChangeTextDocument((r) => { | ||
r.document === a(e) && (t.value = r.document.getText()); | ||
})), t; | ||
} | ||
function le(e, t = []) { | ||
const n = (s, i, r) => u(e(s, i, r)); | ||
for (const s of t) | ||
n(s); | ||
function D(e, t = []) { | ||
const n = (r, i, o) => s(e(r, i, o)); | ||
for (const r of t) | ||
n(r); | ||
return n; | ||
} | ||
function Gn(e, t = []) { | ||
const n = Array.isArray(e) ? e : t ?? [], s = u(Array.isArray(e) || e == null ? new ot() : e), i = le(s.event, n); | ||
for (const r of n) | ||
i(r); | ||
function te(e, t = []) { | ||
const n = Array.isArray(e) ? e : t ?? [], r = s(Array.isArray(e) || e == null ? new F() : e), i = D(r.event, n); | ||
for (const o of n) | ||
i(o); | ||
return { | ||
event: s.event, | ||
fire: s.fire.bind(s), | ||
event: r.event, | ||
fire: r.fire.bind(r), | ||
addListener: i | ||
}; | ||
} | ||
function As(e) { | ||
return v(() => J.fetchTasks(c(e))); | ||
function ke(e) { | ||
return d(() => T.fetchTasks(a(e))); | ||
} | ||
function Bn(e) { | ||
return bn({ | ||
function ne(e) { | ||
return U({ | ||
get scheme() { | ||
return c(e).scheme; | ||
return a(e).scheme; | ||
}, | ||
get authority() { | ||
return c(e).authority; | ||
return a(e).authority; | ||
}, | ||
get path() { | ||
return c(e).path; | ||
return a(e).path; | ||
}, | ||
get query() { | ||
return c(e).query; | ||
return a(e).query; | ||
}, | ||
get fragment() { | ||
return c(e).fragment; | ||
return a(e).fragment; | ||
}, | ||
get fsPath() { | ||
return c(e).fsPath; | ||
return a(e).fsPath; | ||
}, | ||
with(t) { | ||
return c(e).with(t); | ||
return a(e).with(t); | ||
}, | ||
toString() { | ||
return c(e).toString(); | ||
return a(e).toString(); | ||
}, | ||
toJSON() { | ||
return c(e).toJSON(); | ||
return a(e).toJSON(); | ||
} | ||
}); | ||
} | ||
function Is(e) { | ||
return Bn(() => kt.file(c(e))); | ||
function ye(e) { | ||
return ne(() => z.file(a(e))); | ||
} | ||
function Vs(e, t) { | ||
const n = new ot(), s = h(); | ||
S(() => { | ||
s.value && n.fire(), s.value = c(t); | ||
}), u(jt.registerFoldingRangeProvider( | ||
function Re(e, t) { | ||
const n = new F(), r = l(); | ||
h(() => { | ||
r.value && n.fire(), r.value = a(t); | ||
}), s(Y.registerFoldingRangeProvider( | ||
e, | ||
{ | ||
onDidChangeFoldingRanges: n.event, | ||
provideFoldingRanges(i, r, o) { | ||
var a; | ||
return (a = s.value) == null ? void 0 : a.call(s, i, r, o); | ||
provideFoldingRanges(i, o, u) { | ||
var g; | ||
return (g = r.value) == null ? void 0 : g.call(r, i, o, u); | ||
} | ||
@@ -1327,46 +278,47 @@ } | ||
} | ||
function xs(e, t, n, s) { | ||
const i = u(P.createFileSystemWatcher(e, t, n, s)); | ||
function Ve(e, t, n, r) { | ||
const i = s(m.createFileSystemWatcher(e, t, n, r)); | ||
return { | ||
...i, | ||
onDidCreate: le(i.onDidCreate), | ||
onDidChange: le(i.onDidChange), | ||
onDidDelete: le(i.onDidDelete) | ||
onDidCreate: D(i.onDidCreate), | ||
onDidChange: D(i.onDidChange), | ||
onDidDelete: D(i.onDidDelete) | ||
}; | ||
} | ||
const Ls = E(() => { | ||
const e = Kn(); | ||
return v(() => e.value.kind === Qe.Dark || e.value.kind === Qe.HighContrast); | ||
}), Ps = E(() => { | ||
const e = h(B.isTelemetryEnabled); | ||
return u(B.onDidChangeTelemetryEnabled((t) => { | ||
const Ae = v(() => { | ||
const e = X(); | ||
return d(() => e.value.kind === R.Dark || e.value.kind === R.HighContrast); | ||
}), Ne = v(() => { | ||
const e = l(w.isTelemetryEnabled); | ||
return s(w.onDidChangeTelemetryEnabled((t) => { | ||
e.value = t; | ||
})), v(() => e.value); | ||
})), d(() => e.value); | ||
}); | ||
function Hs(e, ...t) { | ||
return v(() => typeof t[0] == "object" ? Xe.t(c(e), d(t[0])) : Xe.t(c(e), ...t.map(c))); | ||
function Fe(e, ...t) { | ||
return d(() => typeof t[0] == "object" ? V.t(a(e), q(t[0])) : V.t(a(e), ...t.map(a))); | ||
} | ||
const Ms = E(() => { | ||
const e = h(B.logLevel); | ||
return u(B.onDidChangeLogLevel((t) => { | ||
const Le = v(() => { | ||
const e = l(w.logLevel); | ||
return s(w.onDidChangeLogLevel((t) => { | ||
e.value = t; | ||
})), v(() => e.value); | ||
})), d(() => e.value); | ||
}); | ||
function Yn(e, t) { | ||
return u(f.createOutputChannel(e, t)); | ||
function re(e, t) { | ||
return s(c.createOutputChannel(e, t)); | ||
} | ||
function Jn(e) { | ||
const t = /* @__PURE__ */ new Date(), n = String(t.getFullYear()).padStart(4, "0"), s = String(t.getMonth() + 1).padStart(2, "0"), i = String(t.getDate()).padStart(2, "0"), r = String(t.getHours()).padStart(2, "0"), o = String(t.getMinutes()).padStart(2, "0"), a = String(t.getSeconds()).padStart(2, "0"), l = String(t.getMilliseconds()).padStart(3, "0"); | ||
return `${n}-${s}-${i} ${r}:${o}:${a}.${l} [${e}] `; | ||
function We(e) { | ||
const t = /* @__PURE__ */ new Date(), n = String(t.getFullYear()).padStart(4, "0"), r = String(t.getMonth() + 1).padStart(2, "0"), i = String(t.getDate()).padStart(2, "0"), o = String(t.getHours()).padStart(2, "0"), u = String(t.getMinutes()).padStart(2, "0"), g = String(t.getSeconds()).padStart(2, "0"), f = String(t.getMilliseconds()).padStart(3, "0"); | ||
return `${n}-${r}-${i} ${o}:${u}:${g}.${f} [${e}] `; | ||
} | ||
function Ws(e, t = Jn) { | ||
const n = Yn(e), s = (i) => (...r) => { | ||
n.appendLine(t(i) + r.join(" ")); | ||
function ie(e, t = {}) { | ||
const n = t.outputChannel ?? re(e), r = (i) => (...o) => { | ||
var u; | ||
n.appendLine((((u = t.getPrefix) == null ? void 0 : u.call(t, i)) ?? "") + o.join(" ")); | ||
}; | ||
return { | ||
outputChannel: n, | ||
createLoggerFunc: s, | ||
info: s("INFO"), | ||
warn: s("WARN"), | ||
error: s("ERROR"), | ||
createLoggerFunc: r, | ||
info: r("INFO"), | ||
warn: r("WARN"), | ||
error: r("ERROR"), | ||
append: n.append.bind(n), | ||
@@ -1380,24 +332,24 @@ appendLine: n.appendLine.bind(n), | ||
} | ||
function qn(e) { | ||
function ae(e) { | ||
var n; | ||
const t = h(((n = c(e)) == null ? void 0 : n.selections) ?? []); | ||
return W(e, () => { | ||
var s; | ||
t.value = ((s = c(e)) == null ? void 0 : s.selections) ?? []; | ||
}), u(f.onDidChangeNotebookEditorSelection((s) => { | ||
s.notebookEditor === c(e) && (t.value = s.selections); | ||
})), v({ | ||
const t = l(((n = a(e)) == null ? void 0 : n.selections) ?? []); | ||
return b(e, () => { | ||
var r; | ||
t.value = ((r = a(e)) == null ? void 0 : r.selections) ?? []; | ||
}), s(c.onDidChangeNotebookEditorSelection((r) => { | ||
r.notebookEditor === a(e) && (t.value = r.selections); | ||
})), d({ | ||
get() { | ||
return t.value; | ||
}, | ||
set(s) { | ||
t.value = s; | ||
const i = c(e); | ||
i && (i.selections = s); | ||
set(r) { | ||
t.value = r; | ||
const i = a(e); | ||
i && (i.selections = r); | ||
} | ||
}); | ||
} | ||
function ks(e) { | ||
const t = qn(e); | ||
return v({ | ||
function Ie(e) { | ||
const t = ae(e); | ||
return d({ | ||
get() { | ||
@@ -1411,24 +363,24 @@ return t.value[0]; | ||
} | ||
function js(e) { | ||
function Oe(e) { | ||
var n; | ||
const t = h(((n = c(e)) == null ? void 0 : n.visibleRanges) ?? []); | ||
return W(e, () => { | ||
var s; | ||
t.value = ((s = c(e)) == null ? void 0 : s.visibleRanges) ?? []; | ||
}), u(f.onDidChangeNotebookEditorVisibleRanges((s) => { | ||
s.notebookEditor === c(e) && (t.value = s.visibleRanges); | ||
})), v(() => t.value); | ||
const t = l(((n = a(e)) == null ? void 0 : n.visibleRanges) ?? []); | ||
return b(e, () => { | ||
var r; | ||
t.value = ((r = a(e)) == null ? void 0 : r.visibleRanges) ?? []; | ||
}), s(c.onDidChangeNotebookEditorVisibleRanges((r) => { | ||
r.notebookEditor === a(e) && (t.value = r.visibleRanges); | ||
})), d(() => t.value); | ||
} | ||
const Fs = E(() => { | ||
const e = h(f.terminals); | ||
const Pe = v(() => { | ||
const e = l(c.terminals); | ||
function t() { | ||
e.value = f.terminals; | ||
e.value = c.terminals; | ||
} | ||
return u(f.onDidOpenTerminal(t)), u(f.onDidCloseTerminal(t)), e; | ||
return s(c.onDidOpenTerminal(t)), s(c.onDidCloseTerminal(t)), e; | ||
}); | ||
function Ks(e) { | ||
const t = u(e.id ? f.createStatusBarItem(e.id, e.alignment, e.priority) : f.createStatusBarItem(e.alignment, e.priority)); | ||
function n(s) { | ||
const i = e[s]; | ||
i != null && S(() => t[s] = c(i)); | ||
function $e(e) { | ||
const t = s(e.id ? c.createStatusBarItem(e.id, e.alignment, e.priority) : c.createStatusBarItem(e.alignment, e.priority)); | ||
function n(r) { | ||
const i = e[r]; | ||
i != null && h(() => t[r] = a(i)); | ||
} | ||
@@ -1445,11 +397,11 @@ return [ | ||
} | ||
const $s = E(() => { | ||
const e = h(J.taskExecutions); | ||
const Me = v(() => { | ||
const e = l(T.taskExecutions); | ||
function t() { | ||
e.value = J.taskExecutions; | ||
e.value = T.taskExecutions; | ||
} | ||
return u(J.onDidStartTask(t)), u(J.onDidEndTask(t)), v(() => e.value); | ||
return s(T.onDidStartTask(t)), s(T.onDidEndTask(t)), d(() => e.value); | ||
}); | ||
function Us(...e) { | ||
const t = u(f.createTerminal(...e)); | ||
function je(...e) { | ||
const t = s(c.createTerminal(...e)); | ||
return { | ||
@@ -1472,22 +424,22 @@ terminal: t, | ||
hide: t.hide.bind(t), | ||
state: Lt(t) | ||
state: P(t) | ||
}; | ||
} | ||
function Qn(e, t) { | ||
u(ge.registerTextEditorCommand(e, t)); | ||
function oe(e, t) { | ||
s(E.registerTextEditorCommand(e, t)); | ||
} | ||
function zs(e) { | ||
function Be(e) { | ||
for (const [t, n] of Object.entries(e)) | ||
Qn(t, n); | ||
oe(t, n); | ||
} | ||
function Xn(e, t) { | ||
var s; | ||
const n = h(((s = c(e)) == null ? void 0 : s.selections) ?? []); | ||
return W(e, () => { | ||
function ue(e, t) { | ||
var r; | ||
const n = l(((r = a(e)) == null ? void 0 : r.selections) ?? []); | ||
return b(e, () => { | ||
var i; | ||
n.value = ((i = c(e)) == null ? void 0 : i.selections) ?? []; | ||
}), u(f.onDidChangeTextEditorSelection((i) => { | ||
const r = c(e), o = c(t); | ||
i.textEditor === r && (!o || o.includes(i.kind)) && (n.value = i.selections); | ||
})), v({ | ||
n.value = ((i = a(e)) == null ? void 0 : i.selections) ?? []; | ||
}), s(c.onDidChangeTextEditorSelection((i) => { | ||
const o = a(e), u = a(t); | ||
i.textEditor === o && (!u || u.includes(i.kind)) && (n.value = i.selections); | ||
})), d({ | ||
get() { | ||
@@ -1498,115 +450,115 @@ return n.value; | ||
n.value = i; | ||
const r = c(e); | ||
r && (r.selections = i); | ||
const o = a(e); | ||
o && (o.selections = i); | ||
} | ||
}); | ||
} | ||
function Gs(e, t) { | ||
const n = Xn(e, t); | ||
return v({ | ||
function He(e, t) { | ||
const n = ue(e, t); | ||
return d({ | ||
get() { | ||
return n.value[0]; | ||
}, | ||
set(s) { | ||
n.value = n.value.toSpliced(0, 1, s); | ||
set(r) { | ||
n.value = n.value.toSpliced(0, 1, r); | ||
} | ||
}); | ||
} | ||
function Bs(e) { | ||
function Ue(e) { | ||
var n; | ||
const t = h((n = c(e)) == null ? void 0 : n.viewColumn); | ||
return W(e, () => { | ||
var s; | ||
t.value = (s = c(e)) == null ? void 0 : s.viewColumn; | ||
}), u(f.onDidChangeTextEditorViewColumn((s) => { | ||
s.textEditor === c(e) && (t.value = s.viewColumn); | ||
})), v(() => t.value); | ||
const t = l((n = a(e)) == null ? void 0 : n.viewColumn); | ||
return b(e, () => { | ||
var r; | ||
t.value = (r = a(e)) == null ? void 0 : r.viewColumn; | ||
}), s(c.onDidChangeTextEditorViewColumn((r) => { | ||
r.textEditor === a(e) && (t.value = r.viewColumn); | ||
})), d(() => t.value); | ||
} | ||
function Ys(e) { | ||
function qe(e) { | ||
var n; | ||
const t = h(((n = c(e)) == null ? void 0 : n.visibleRanges) ?? []); | ||
return W(e, () => { | ||
var s; | ||
t.value = ((s = c(e)) == null ? void 0 : s.visibleRanges) ?? []; | ||
}), u(f.onDidChangeTextEditorVisibleRanges((s) => { | ||
s.textEditor === c(e) && (t.value = s.visibleRanges); | ||
})), v(() => t.value); | ||
const t = l(((n = a(e)) == null ? void 0 : n.visibleRanges) ?? []); | ||
return b(e, () => { | ||
var r; | ||
t.value = ((r = a(e)) == null ? void 0 : r.visibleRanges) ?? []; | ||
}), s(c.onDidChangeTextEditorVisibleRanges((r) => { | ||
r.textEditor === a(e) && (t.value = r.visibleRanges); | ||
})), d(() => t.value); | ||
} | ||
function Pt(e, t) { | ||
S(() => { | ||
const n = c(e); | ||
n && (n.badge = c(t)); | ||
function $(e, t) { | ||
h(() => { | ||
const n = a(e); | ||
n && (n.badge = a(t)); | ||
}); | ||
} | ||
function Ht(e, t) { | ||
S(() => { | ||
const n = c(e); | ||
n && (n.title = c(t)); | ||
function M(e, t) { | ||
h(() => { | ||
const n = a(e); | ||
n && (n.title = a(t)); | ||
}); | ||
} | ||
const Js = It( | ||
const Je = L( | ||
(e, t, n) => { | ||
const s = Gn(); | ||
W(t, () => s.fire()), n != null && n.watchSource && W(n.watchSource, () => s.fire()); | ||
const i = /* @__PURE__ */ new WeakMap(), r = u(f.createTreeView(e, { | ||
const r = te(); | ||
b(t, () => r.fire()), n != null && n.watchSource && b(n.watchSource, () => r.fire()); | ||
const i = /* @__PURE__ */ new WeakMap(), o = s(c.createTreeView(e, { | ||
...n, | ||
treeDataProvider: { | ||
...n, | ||
onDidChangeTreeData: s.event, | ||
getTreeItem(o) { | ||
return o.treeItem; | ||
onDidChangeTreeData: r.event, | ||
getTreeItem(u) { | ||
return u.treeItem; | ||
}, | ||
getChildren(o) { | ||
var a; | ||
return o ? ((a = o.children) == null || a.forEach((l) => i.set(l, o)), o.children) : c(t); | ||
getChildren(u) { | ||
var g; | ||
return u ? ((g = u.children) == null || g.forEach((f) => i.set(f, u)), u.children) : a(t); | ||
}, | ||
getParent(o) { | ||
return i.get(o); | ||
getParent(u) { | ||
return i.get(u); | ||
} | ||
} | ||
})); | ||
return n != null && n.title && Ht(r, n.title), n != null && n.badge && Pt(r, n.badge), r; | ||
return n != null && n.title && M(o, n.title), n != null && n.badge && $(o, n.badge), o; | ||
}, | ||
(e) => e | ||
); | ||
function qs(e) { | ||
var s; | ||
const t = ne((s = c(e)) == null ? void 0 : s.visible); | ||
function Ke(e) { | ||
var r; | ||
const t = x((r = a(e)) == null ? void 0 : r.visible); | ||
function n() { | ||
var i; | ||
t.value = (i = c(e)) == null ? void 0 : i.visible; | ||
t.value = (i = a(e)) == null ? void 0 : i.visible; | ||
} | ||
return S((i) => { | ||
const r = c(e); | ||
if (r) { | ||
const o = r.onDidChangeVisibility(n); | ||
i(() => o.dispose()); | ||
return h((i) => { | ||
const o = a(e); | ||
if (o) { | ||
const u = o.onDidChangeVisibility(n); | ||
i(() => u.dispose()); | ||
} | ||
}), S(n), v(() => !!t.value); | ||
}), h(n), d(() => !!t.value); | ||
} | ||
const Qs = E(() => { | ||
const e = h(f.visibleNotebookEditors); | ||
return u(f.onDidChangeVisibleNotebookEditors((t) => { | ||
const ze = v(() => { | ||
const e = l(c.visibleNotebookEditors); | ||
return s(c.onDidChangeVisibleNotebookEditors((t) => { | ||
e.value = t; | ||
})), e; | ||
}), Xs = E(() => { | ||
const e = h(f.visibleTextEditors); | ||
return u(f.onDidChangeVisibleTextEditors((t) => { | ||
}), Ye = v(() => { | ||
const e = l(c.visibleTextEditors); | ||
return s(c.onDidChangeVisibleTextEditors((t) => { | ||
e.value = t; | ||
})), e; | ||
}); | ||
function Zs(e, t, n = !0) { | ||
const s = T(t) ? t : typeof t == "function" ? v(t) : ne(t); | ||
return S(() => { | ||
c(n) && ge.executeCommand("setContext", e, s.value); | ||
}), s; | ||
function Ge(e, t, n = !0) { | ||
const r = J(t) ? t : typeof t == "function" ? d(t) : x(t); | ||
return h(() => { | ||
a(n) && E.executeCommand("setContext", e, r.value); | ||
}), r; | ||
} | ||
const ei = It( | ||
const Qe = L( | ||
(e, t, n) => { | ||
const s = h(), i = h(); | ||
u(f.registerWebviewViewProvider( | ||
const r = l(), i = l(); | ||
s(c.registerWebviewViewProvider( | ||
e, | ||
{ | ||
resolveWebviewView(l, _) { | ||
s.value = l, i.value = _, n != null && n.onDidReceiveMessage && l.webview.onDidReceiveMessage(n.onDidReceiveMessage); | ||
resolveWebviewView(f, C) { | ||
r.value = f, i.value = C, n != null && n.onDidReceiveMessage && f.webview.onDidReceiveMessage(n.onDidReceiveMessage); | ||
} | ||
@@ -1620,146 +572,104 @@ }, | ||
)); | ||
const r = ne(0); | ||
function o() { | ||
r.value++; | ||
const o = x(0); | ||
function u() { | ||
o.value++; | ||
} | ||
if (S(() => { | ||
s.value && (s.value.webview.html = `${c(t)}<!--${r.value}-->`); | ||
if (h(() => { | ||
r.value && (r.value.webview.html = `${a(t)}<!--${o.value}-->`); | ||
}), n != null && n.webviewOptions) { | ||
const l = n.webviewOptions; | ||
S(() => { | ||
s.value && (s.value.webview.options = c(l)); | ||
const f = n.webviewOptions; | ||
h(() => { | ||
r.value && (r.value.webview.options = a(f)); | ||
}); | ||
} | ||
n != null && n.title && Ht(s, n.title), n != null && n.badge && Pt(s, n.badge); | ||
function a(l) { | ||
var _; | ||
return (_ = s.value) == null ? void 0 : _.webview.postMessage(l); | ||
n != null && n.title && M(r, n.title), n != null && n.badge && $(r, n.badge); | ||
function g(f) { | ||
var C; | ||
return (C = r.value) == null ? void 0 : C.webview.postMessage(f); | ||
} | ||
return { view: s, context: i, postMessage: a, forceRefresh: o }; | ||
return { view: r, context: i, postMessage: g, forceRefresh: u }; | ||
}, | ||
(e) => e | ||
), ti = E(() => { | ||
const e = h(f.state); | ||
return u(f.onDidChangeWindowState((t) => { | ||
), Xe = v(() => { | ||
const e = l(c.state); | ||
return s(c.onDidChangeWindowState((t) => { | ||
e.value = t; | ||
})), { | ||
focused: v(() => e.value.focused), | ||
active: v(() => e.value.active) | ||
focused: d(() => e.value.focused), | ||
active: d(() => e.value.active) | ||
}; | ||
}), ni = E(() => { | ||
const e = h(P.workspaceFolders); | ||
return u(P.onDidChangeWorkspaceFolders(() => { | ||
e.value = P.workspaceFolders; | ||
})), v(() => e.value); | ||
}), Ze = v(() => { | ||
const e = l(m.workspaceFolders); | ||
return s(m.onDidChangeWorkspaceFolders(() => { | ||
e.value = m.workspaceFolders; | ||
})), d(() => e.value); | ||
}); | ||
export { | ||
Zt as EffectScope, | ||
K as ITERATE_KEY, | ||
de as ReactiveEffect, | ||
An as ReactiveFlags, | ||
fs as TrackOpTypes, | ||
ds as TriggerOpTypes, | ||
xt as activateCbs, | ||
v as computed, | ||
It as createKeyedComposable, | ||
E as createSingletonComposable, | ||
cs as customRef, | ||
Vt as deactivateCbs, | ||
ls as deferredComputed, | ||
gs as defineConfigs, | ||
_s as defineExtension, | ||
es as effect, | ||
en as effectScope, | ||
ns as enableTracking, | ||
Es as executeCommand, | ||
_e as extensionContext, | ||
xe as extensionScope, | ||
Pe as getCurrentScope, | ||
Nn as isProxy, | ||
q as isReactive, | ||
Z as isReadonly, | ||
T as isRef, | ||
pe as isShallow, | ||
is as markRaw, | ||
hs as nextTick, | ||
jn as onActivate, | ||
vs as onDeactivate, | ||
ut as onScopeDispose, | ||
ke as pauseScheduling, | ||
Me as pauseTracking, | ||
os as proxyRefs, | ||
Nt as reactive, | ||
Rt as readonly, | ||
ne as ref, | ||
je as resetScheduling, | ||
We as resetTracking, | ||
bn as shallowReactive, | ||
ss as shallowReadonly, | ||
h as shallowRef, | ||
ts as stop, | ||
d as toRaw, | ||
us as toRef, | ||
as as toRefs, | ||
c as toValue, | ||
N as track, | ||
H as trigger, | ||
rs as triggerRef, | ||
kn as tryOnScopeDispose, | ||
yt as unref, | ||
ws as useAbsolutePath, | ||
Kn as useActiveColorTheme, | ||
ms as useActiveDebugSession, | ||
Ts as useActiveEditorDecorations, | ||
bs as useActiveNotebookEditor, | ||
Ns as useActiveTerminal, | ||
$n as useActiveTextEditor, | ||
Rs as useAllExtensions, | ||
zn as useCommand, | ||
Ds as useCommands, | ||
Ss as useCommentController, | ||
ys as useControlledTerminal, | ||
Os as useDefaultShell, | ||
u as useDisposable, | ||
Cs as useDocumentText, | ||
Un as useEditorDecorations, | ||
le as useEvent, | ||
Gn as useEventEmitter, | ||
As as useFetchTasks, | ||
Is as useFileUri, | ||
Vs as useFoldingRangeProvider, | ||
xs as useFsWatcher, | ||
Ls as useIsDarkTheme, | ||
Ps as useIsTelemetryEnabled, | ||
Hs as useL10nText, | ||
Ms as useLogLevel, | ||
Ws as useLogger, | ||
ks as useNotebookEditorSelection, | ||
qn as useNotebookEditorSelections, | ||
js as useNotebookEditorVisibleRanges, | ||
Fs as useOpenedTerminals, | ||
Yn as useOutputChannel, | ||
Ks as useStatusBarItem, | ||
$s as useTaskExecutions, | ||
Us as useTerminal, | ||
Lt as useTerminalState, | ||
Qn as useTextEditorCommand, | ||
zs as useTextEditorCommands, | ||
Gs as useTextEditorSelection, | ||
Xn as useTextEditorSelections, | ||
Bs as useTextEditorViewColumn, | ||
Ys as useTextEditorVisibleRanges, | ||
Js as useTreeView, | ||
Bn as useUri, | ||
Pt as useViewBadge, | ||
Ht as useViewTitle, | ||
qs as useViewVisibility, | ||
Qs as useVisibleNotebookEditors, | ||
Xs as useVisibleTextEditors, | ||
Zs as useVscodeContext, | ||
ei as useWebviewView, | ||
ti as useWindowState, | ||
ni as useWorkspaceFolders, | ||
W as watch, | ||
S as watchEffect, | ||
ps as watchSyncEffect | ||
I as activateCbs, | ||
L as createKeyedComposable, | ||
v as createSingletonComposable, | ||
W as deactivateCbs, | ||
fe as defineConfigs, | ||
de as defineExtension, | ||
ve as defineLogger, | ||
ge as executeCommand, | ||
S as extensionContext, | ||
k as extensionScope, | ||
We as getDefaultLoggerPrefix, | ||
O as onActivate, | ||
le as onDeactivate, | ||
G as tryOnScopeDispose, | ||
he as useAbsolutePath, | ||
X as useActiveColorTheme, | ||
me as useActiveDebugSession, | ||
be as useActiveEditorDecorations, | ||
Ce as useActiveNotebookEditor, | ||
we as useActiveTerminal, | ||
Z as useActiveTextEditor, | ||
Te as useAllExtensions, | ||
ee as useCommand, | ||
De as useCommands, | ||
Se as useCommentController, | ||
xe as useControlledTerminal, | ||
Ee as useDefaultShell, | ||
s as useDisposable, | ||
pe as useDocumentText, | ||
_ as useEditorDecorations, | ||
D as useEvent, | ||
te as useEventEmitter, | ||
ke as useFetchTasks, | ||
ye as useFileUri, | ||
Re as useFoldingRangeProvider, | ||
Ve as useFsWatcher, | ||
Ae as useIsDarkTheme, | ||
Ne as useIsTelemetryEnabled, | ||
Fe as useL10nText, | ||
Le as useLogLevel, | ||
ie as useLogger, | ||
Ie as useNotebookEditorSelection, | ||
ae as useNotebookEditorSelections, | ||
Oe as useNotebookEditorVisibleRanges, | ||
Pe as useOpenedTerminals, | ||
re as useOutputChannel, | ||
$e as useStatusBarItem, | ||
Me as useTaskExecutions, | ||
je as useTerminal, | ||
P as useTerminalState, | ||
oe as useTextEditorCommand, | ||
Be as useTextEditorCommands, | ||
He as useTextEditorSelection, | ||
ue as useTextEditorSelections, | ||
Ue as useTextEditorViewColumn, | ||
qe as useTextEditorVisibleRanges, | ||
Je as useTreeView, | ||
ne as useUri, | ||
$ as useViewBadge, | ||
M as useViewTitle, | ||
Ke as useViewVisibility, | ||
ze as useVisibleNotebookEditors, | ||
Ye as useVisibleTextEditors, | ||
Ge as useVscodeContext, | ||
Qe as useWebviewView, | ||
Xe as useWindowState, | ||
Ze as useWorkspaceFolders | ||
}; |
{ | ||
"name": "reactive-vscode", | ||
"type": "module", | ||
"version": "0.2.0-beta.1", | ||
"version": "0.2.0-beta.2", | ||
"description": "Develop VSCode extension with Vue Reactivity API", | ||
@@ -34,4 +34,3 @@ "author": "_Kerman <kermanx@qq.com>", | ||
"README.md", | ||
"dist", | ||
"tsconfig.json" | ||
"dist" | ||
], | ||
@@ -41,3 +40,5 @@ "peerDependencies": { | ||
}, | ||
"dependencies": {}, | ||
"dependencies": { | ||
"@reactive-vscode/reactivity": "0.2.0-beta.2" | ||
}, | ||
"devDependencies": { | ||
@@ -48,10 +49,8 @@ "@types/node": "^20.14.2", | ||
"vite": "^5.2.12", | ||
"vite-plugin-dts": "^3.9.1", | ||
"@reactive-vscode/reactivity": "0.2.0-beta.1" | ||
"vite-plugin-dts": "^3.9.1" | ||
}, | ||
"scripts": { | ||
"typecheck": "tsc --noEmit", | ||
"build": "vite build", | ||
"dev": "vite build --watch" | ||
"build": "vite build" | ||
} | ||
} |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
5
0
45087
2
5
1228
1
+ Added@reactive-vscode/reactivity@0.2.0-beta.2(transitive)