dmux 2.2.0 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/DmuxApp.d.ts.map +1 -1
- package/dist/DmuxApp.js +412 -179
- package/dist/DmuxApp.js.map +1 -1
- package/dist/MergePane.d.ts.map +1 -1
- package/dist/MergePane.js +4 -15
- package/dist/MergePane.js.map +1 -1
- package/dist/PaneAnalyzer.d.ts +45 -0
- package/dist/PaneAnalyzer.d.ts.map +1 -0
- package/dist/PaneAnalyzer.js +278 -0
- package/dist/PaneAnalyzer.js.map +1 -0
- package/dist/_plugin-vue_export-helper.css +1 -0
- package/dist/actions/index.d.ts +19 -0
- package/dist/actions/index.d.ts.map +1 -0
- package/dist/actions/index.js +54 -0
- package/dist/actions/index.js.map +1 -0
- package/dist/actions/paneActions.d.ts +45 -0
- package/dist/actions/paneActions.d.ts.map +1 -0
- package/dist/actions/paneActions.js +932 -0
- package/dist/actions/paneActions.js.map +1 -0
- package/dist/actions/types.d.ts +101 -0
- package/dist/actions/types.d.ts.map +1 -0
- package/dist/actions/types.js +129 -0
- package/dist/actions/types.js.map +1 -0
- package/dist/adapters/apiActionHandler.d.ts +64 -0
- package/dist/adapters/apiActionHandler.d.ts.map +1 -0
- package/dist/adapters/apiActionHandler.js +170 -0
- package/dist/adapters/apiActionHandler.js.map +1 -0
- package/dist/adapters/tuiActionHandler.d.ts +57 -0
- package/dist/adapters/tuiActionHandler.d.ts.map +1 -0
- package/dist/adapters/tuiActionHandler.js +152 -0
- package/dist/adapters/tuiActionHandler.js.map +1 -0
- package/dist/chunks/_plugin-vue_export-helper-Cvoq67hi.js +28 -0
- package/dist/components/ActionChoiceDialog.d.ts +16 -0
- package/dist/components/ActionChoiceDialog.d.ts.map +1 -0
- package/dist/components/ActionChoiceDialog.js +29 -0
- package/dist/components/ActionChoiceDialog.js.map +1 -0
- package/dist/components/ActionConfirmDialog.d.ts +16 -0
- package/dist/components/ActionConfirmDialog.d.ts.map +1 -0
- package/dist/components/ActionConfirmDialog.js +31 -0
- package/dist/components/ActionConfirmDialog.js.map +1 -0
- package/dist/components/ActionInputDialog.d.ts +16 -0
- package/dist/components/ActionInputDialog.d.ts.map +1 -0
- package/dist/components/ActionInputDialog.js +49 -0
- package/dist/components/ActionInputDialog.js.map +1 -0
- package/dist/components/ActionProgressDialog.d.ts +13 -0
- package/dist/components/ActionProgressDialog.d.ts.map +1 -0
- package/dist/components/ActionProgressDialog.js +20 -0
- package/dist/components/ActionProgressDialog.js.map +1 -0
- package/dist/components/FooterHelp.d.ts +2 -0
- package/dist/components/FooterHelp.d.ts.map +1 -1
- package/dist/components/FooterHelp.js +9 -2
- package/dist/components/FooterHelp.js.map +1 -1
- package/dist/components/KebabMenu.d.ts +10 -0
- package/dist/components/KebabMenu.d.ts.map +1 -0
- package/dist/components/KebabMenu.js +18 -0
- package/dist/components/KebabMenu.js.map +1 -0
- package/dist/components/LoadingIndicator.d.ts.map +1 -1
- package/dist/components/LoadingIndicator.js +5 -5
- package/dist/components/LoadingIndicator.js.map +1 -1
- package/dist/components/PaneCard.d.ts +1 -0
- package/dist/components/PaneCard.d.ts.map +1 -1
- package/dist/components/PaneCard.js +21 -20
- package/dist/components/PaneCard.js.map +1 -1
- package/dist/components/PanesGrid.d.ts +1 -0
- package/dist/components/PanesGrid.d.ts.map +1 -1
- package/dist/components/PanesGrid.js +5 -4
- package/dist/components/PanesGrid.js.map +1 -1
- package/dist/components/QRCode.d.ts +7 -0
- package/dist/components/QRCode.d.ts.map +1 -0
- package/dist/components/QRCode.js +19 -0
- package/dist/components/QRCode.js.map +1 -0
- package/dist/components/Spinner.d.ts +10 -0
- package/dist/components/Spinner.d.ts.map +1 -0
- package/dist/components/Spinner.js +15 -0
- package/dist/components/Spinner.js.map +1 -0
- package/dist/dashboard.html +14 -0
- package/dist/dashboard.js +2 -0
- package/dist/hooks/useActionSystem.d.ts +31 -0
- package/dist/hooks/useActionSystem.d.ts.map +1 -0
- package/dist/hooks/useActionSystem.js +95 -0
- package/dist/hooks/useActionSystem.js.map +1 -0
- package/dist/hooks/useAgentStatus.d.ts +4 -3
- package/dist/hooks/useAgentStatus.d.ts.map +1 -1
- package/dist/hooks/useAgentStatus.js +45 -194
- package/dist/hooks/useAgentStatus.js.map +1 -1
- package/dist/hooks/usePaneCreation.d.ts +2 -1
- package/dist/hooks/usePaneCreation.d.ts.map +1 -1
- package/dist/hooks/usePaneCreation.js +46 -100
- package/dist/hooks/usePaneCreation.js.map +1 -1
- package/dist/hooks/usePanes.d.ts.map +1 -1
- package/dist/hooks/usePanes.js +5 -3
- package/dist/hooks/usePanes.js.map +1 -1
- package/dist/hooks/useTerminalWidth.d.ts.map +1 -1
- package/dist/hooks/useTerminalWidth.js +18 -1
- package/dist/hooks/useTerminalWidth.js.map +1 -1
- package/dist/hooks/useWorktreeActions.d.ts.map +1 -1
- package/dist/hooks/useWorktreeActions.js +4 -0
- package/dist/hooks/useWorktreeActions.js.map +1 -1
- package/dist/index.js +43 -6
- package/dist/index.js.map +1 -1
- package/dist/server/actionsApi.d.ts +37 -0
- package/dist/server/actionsApi.d.ts.map +1 -0
- package/dist/server/actionsApi.js +256 -0
- package/dist/server/actionsApi.js.map +1 -0
- package/dist/server/embedded-assets.d.ts +13 -0
- package/dist/server/embedded-assets.d.ts.map +1 -0
- package/dist/server/embedded-assets.js +5012 -0
- package/dist/server/embedded-assets.js.map +1 -0
- package/dist/server/index.d.ts +21 -0
- package/dist/server/index.d.ts.map +1 -0
- package/dist/server/index.js +99 -0
- package/dist/server/index.js.map +1 -0
- package/dist/server/routes.d.ts +3 -0
- package/dist/server/routes.d.ts.map +1 -0
- package/dist/server/routes.js +672 -0
- package/dist/server/routes.js.map +1 -0
- package/dist/server/static.d.ts +6 -0
- package/dist/server/static.d.ts.map +1 -0
- package/dist/server/static.js +3040 -0
- package/dist/server/static.js.map +1 -0
- package/dist/services/ConfigWatcher.d.ts +20 -0
- package/dist/services/ConfigWatcher.d.ts.map +1 -0
- package/dist/services/ConfigWatcher.js +75 -0
- package/dist/services/ConfigWatcher.js.map +1 -0
- package/dist/services/PaneWorkerManager.d.ts +69 -0
- package/dist/services/PaneWorkerManager.d.ts.map +1 -0
- package/dist/services/PaneWorkerManager.js +272 -0
- package/dist/services/PaneWorkerManager.js.map +1 -0
- package/dist/services/StatusDetector.d.ts +87 -0
- package/dist/services/StatusDetector.d.ts.map +1 -0
- package/dist/services/StatusDetector.js +387 -0
- package/dist/services/StatusDetector.js.map +1 -0
- package/dist/services/TerminalDiffer.d.ts +85 -0
- package/dist/services/TerminalDiffer.d.ts.map +1 -0
- package/dist/services/TerminalDiffer.js +499 -0
- package/dist/services/TerminalDiffer.js.map +1 -0
- package/dist/services/TerminalStreamer.d.ts +80 -0
- package/dist/services/TerminalStreamer.d.ts.map +1 -0
- package/dist/services/TerminalStreamer.js +490 -0
- package/dist/services/TerminalStreamer.js.map +1 -0
- package/dist/services/TunnelService.d.ts +9 -0
- package/dist/services/TunnelService.d.ts.map +1 -0
- package/dist/services/TunnelService.js +34 -0
- package/dist/services/TunnelService.js.map +1 -0
- package/dist/services/WorkerMessageBus.d.ts +48 -0
- package/dist/services/WorkerMessageBus.d.ts.map +1 -0
- package/dist/services/WorkerMessageBus.js +120 -0
- package/dist/services/WorkerMessageBus.js.map +1 -0
- package/dist/shared/StateManager.d.ts +34 -0
- package/dist/shared/StateManager.d.ts.map +1 -0
- package/dist/shared/StateManager.js +108 -0
- package/dist/shared/StateManager.js.map +1 -0
- package/dist/shared/StreamProtocol.d.ts +75 -0
- package/dist/shared/StreamProtocol.d.ts.map +1 -0
- package/dist/shared/StreamProtocol.js +37 -0
- package/dist/shared/StreamProtocol.js.map +1 -0
- package/dist/terminal.html +17 -0
- package/dist/terminal.js +3 -0
- package/dist/types.d.ts +21 -1
- package/dist/types.d.ts.map +1 -1
- package/dist/utils/agentDetection.d.ts +18 -0
- package/dist/utils/agentDetection.d.ts.map +1 -0
- package/dist/utils/agentDetection.js +73 -0
- package/dist/utils/agentDetection.js.map +1 -0
- package/dist/utils/aiMerge.d.ts +35 -0
- package/dist/utils/aiMerge.d.ts.map +1 -0
- package/dist/utils/aiMerge.js +298 -0
- package/dist/utils/aiMerge.js.map +1 -0
- package/dist/utils/conflictResolutionPane.d.ts +19 -0
- package/dist/utils/conflictResolutionPane.d.ts.map +1 -0
- package/dist/utils/conflictResolutionPane.js +214 -0
- package/dist/utils/conflictResolutionPane.js.map +1 -0
- package/dist/utils/mergeExecution.d.ts +52 -0
- package/dist/utils/mergeExecution.d.ts.map +1 -0
- package/dist/utils/mergeExecution.js +192 -0
- package/dist/utils/mergeExecution.js.map +1 -0
- package/dist/utils/mergeValidation.d.ts +67 -0
- package/dist/utils/mergeValidation.d.ts.map +1 -0
- package/dist/utils/mergeValidation.js +213 -0
- package/dist/utils/mergeValidation.js.map +1 -0
- package/dist/utils/paneCreation.d.ts +17 -0
- package/dist/utils/paneCreation.d.ts.map +1 -0
- package/dist/utils/paneCreation.js +274 -0
- package/dist/utils/paneCreation.js.map +1 -0
- package/dist/utils/port.d.ts +5 -0
- package/dist/utils/port.d.ts.map +1 -0
- package/dist/utils/port.js +54 -0
- package/dist/utils/port.js.map +1 -0
- package/dist/workers/PaneWorker.d.ts +2 -0
- package/dist/workers/PaneWorker.d.ts.map +1 -0
- package/dist/workers/PaneWorker.js +362 -0
- package/dist/workers/PaneWorker.js.map +1 -0
- package/dist/workers/WorkerMessages.d.ts +36 -0
- package/dist/workers/WorkerMessages.d.ts.map +1 -0
- package/dist/workers/WorkerMessages.js +9 -0
- package/dist/workers/WorkerMessages.js.map +1 -0
- package/package.json +19 -5
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* TUI Action Handler
|
|
3
|
+
*
|
|
4
|
+
* Adapts standardized ActionResults to the terminal UI.
|
|
5
|
+
* Manages state for dialogs, confirmations, and user input.
|
|
6
|
+
*/
|
|
7
|
+
/**
|
|
8
|
+
* Initial state for TUI
|
|
9
|
+
*/
|
|
10
|
+
export function createInitialTUIState() {
|
|
11
|
+
return {
|
|
12
|
+
showConfirmDialog: false,
|
|
13
|
+
confirmTitle: '',
|
|
14
|
+
confirmMessage: '',
|
|
15
|
+
confirmYesLabel: 'Yes',
|
|
16
|
+
confirmNoLabel: 'No',
|
|
17
|
+
confirmSelectedIndex: 0,
|
|
18
|
+
onConfirmYes: null,
|
|
19
|
+
onConfirmNo: null,
|
|
20
|
+
showChoiceDialog: false,
|
|
21
|
+
choiceTitle: '',
|
|
22
|
+
choiceMessage: '',
|
|
23
|
+
choiceOptions: [],
|
|
24
|
+
choiceSelectedIndex: 0,
|
|
25
|
+
onChoiceSelect: null,
|
|
26
|
+
showInputDialog: false,
|
|
27
|
+
inputTitle: '',
|
|
28
|
+
inputMessage: '',
|
|
29
|
+
inputPlaceholder: '',
|
|
30
|
+
inputDefaultValue: '',
|
|
31
|
+
inputValue: '',
|
|
32
|
+
onInputSubmit: null,
|
|
33
|
+
showProgressDialog: false,
|
|
34
|
+
progressMessage: '',
|
|
35
|
+
progressPercent: undefined,
|
|
36
|
+
statusMessage: '',
|
|
37
|
+
statusType: 'info',
|
|
38
|
+
targetPaneId: null,
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Handle an ActionResult and update TUI state accordingly
|
|
43
|
+
*/
|
|
44
|
+
export function handleActionResult(result, currentState, setState) {
|
|
45
|
+
// Reset previous dialogs
|
|
46
|
+
const resetState = {
|
|
47
|
+
showConfirmDialog: false,
|
|
48
|
+
showChoiceDialog: false,
|
|
49
|
+
showInputDialog: false,
|
|
50
|
+
showProgressDialog: false,
|
|
51
|
+
targetPaneId: null,
|
|
52
|
+
};
|
|
53
|
+
// Two-phase update: first clear all dialogs, then show new one
|
|
54
|
+
// This prevents visual artifacts when transitioning between dialogs
|
|
55
|
+
if (currentState.showConfirmDialog || currentState.showChoiceDialog ||
|
|
56
|
+
currentState.showInputDialog || currentState.showProgressDialog) {
|
|
57
|
+
// First clear all dialogs
|
|
58
|
+
setState(resetState);
|
|
59
|
+
// Then schedule the new state after a brief delay to allow Ink to re-render
|
|
60
|
+
setTimeout(() => {
|
|
61
|
+
applyNewDialogState(result, resetState, setState);
|
|
62
|
+
}, 50);
|
|
63
|
+
}
|
|
64
|
+
else {
|
|
65
|
+
// No active dialog, apply immediately
|
|
66
|
+
applyNewDialogState(result, resetState, setState);
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* Apply the new dialog state
|
|
71
|
+
*/
|
|
72
|
+
function applyNewDialogState(result, resetState, setState) {
|
|
73
|
+
switch (result.type) {
|
|
74
|
+
case 'success':
|
|
75
|
+
case 'error':
|
|
76
|
+
case 'info':
|
|
77
|
+
setState({
|
|
78
|
+
...resetState,
|
|
79
|
+
statusMessage: result.message,
|
|
80
|
+
statusType: result.type === 'error' ? 'error' : result.type === 'success' ? 'success' : 'info',
|
|
81
|
+
});
|
|
82
|
+
break;
|
|
83
|
+
case 'confirm':
|
|
84
|
+
setState({
|
|
85
|
+
...resetState,
|
|
86
|
+
showConfirmDialog: true,
|
|
87
|
+
confirmTitle: result.title || 'Confirm',
|
|
88
|
+
confirmMessage: result.message,
|
|
89
|
+
confirmYesLabel: result.confirmLabel || 'Yes',
|
|
90
|
+
confirmNoLabel: result.cancelLabel || 'No',
|
|
91
|
+
confirmSelectedIndex: 0,
|
|
92
|
+
onConfirmYes: result.onConfirm || null,
|
|
93
|
+
onConfirmNo: result.onCancel || null,
|
|
94
|
+
});
|
|
95
|
+
break;
|
|
96
|
+
case 'choice':
|
|
97
|
+
setState({
|
|
98
|
+
...resetState,
|
|
99
|
+
showChoiceDialog: true,
|
|
100
|
+
choiceTitle: result.title || 'Select Option',
|
|
101
|
+
choiceMessage: result.message,
|
|
102
|
+
choiceOptions: result.options || [],
|
|
103
|
+
choiceSelectedIndex: 0,
|
|
104
|
+
onChoiceSelect: result.onSelect || null,
|
|
105
|
+
});
|
|
106
|
+
break;
|
|
107
|
+
case 'input':
|
|
108
|
+
setState({
|
|
109
|
+
...resetState,
|
|
110
|
+
showInputDialog: true,
|
|
111
|
+
inputTitle: result.title || 'Input',
|
|
112
|
+
inputMessage: result.message,
|
|
113
|
+
inputPlaceholder: result.placeholder || '',
|
|
114
|
+
inputDefaultValue: result.defaultValue || '',
|
|
115
|
+
inputValue: result.defaultValue || '',
|
|
116
|
+
onInputSubmit: result.onSubmit || null,
|
|
117
|
+
});
|
|
118
|
+
break;
|
|
119
|
+
case 'progress':
|
|
120
|
+
setState({
|
|
121
|
+
...resetState,
|
|
122
|
+
showProgressDialog: true,
|
|
123
|
+
progressMessage: result.message,
|
|
124
|
+
progressPercent: result.progress,
|
|
125
|
+
});
|
|
126
|
+
break;
|
|
127
|
+
case 'navigation':
|
|
128
|
+
setState({
|
|
129
|
+
...resetState,
|
|
130
|
+
targetPaneId: result.targetPaneId || null,
|
|
131
|
+
statusMessage: result.message,
|
|
132
|
+
statusType: 'info',
|
|
133
|
+
});
|
|
134
|
+
break;
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
/**
|
|
138
|
+
* Clear all dialogs and reset state
|
|
139
|
+
*/
|
|
140
|
+
export function clearAllDialogs(setState) {
|
|
141
|
+
setState({
|
|
142
|
+
showConfirmDialog: false,
|
|
143
|
+
showChoiceDialog: false,
|
|
144
|
+
showInputDialog: false,
|
|
145
|
+
showProgressDialog: false,
|
|
146
|
+
onConfirmYes: null,
|
|
147
|
+
onConfirmNo: null,
|
|
148
|
+
onChoiceSelect: null,
|
|
149
|
+
onInputSubmit: null,
|
|
150
|
+
});
|
|
151
|
+
}
|
|
152
|
+
//# sourceMappingURL=tuiActionHandler.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tuiActionHandler.js","sourceRoot":"","sources":["../../src/adapters/tuiActionHandler.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AA6CH;;GAEG;AACH,MAAM,UAAU,qBAAqB;IACnC,OAAO;QACL,iBAAiB,EAAE,KAAK;QACxB,YAAY,EAAE,EAAE;QAChB,cAAc,EAAE,EAAE;QAClB,eAAe,EAAE,KAAK;QACtB,cAAc,EAAE,IAAI;QACpB,oBAAoB,EAAE,CAAC;QACvB,YAAY,EAAE,IAAI;QAClB,WAAW,EAAE,IAAI;QAEjB,gBAAgB,EAAE,KAAK;QACvB,WAAW,EAAE,EAAE;QACf,aAAa,EAAE,EAAE;QACjB,aAAa,EAAE,EAAE;QACjB,mBAAmB,EAAE,CAAC;QACtB,cAAc,EAAE,IAAI;QAEpB,eAAe,EAAE,KAAK;QACtB,UAAU,EAAE,EAAE;QACd,YAAY,EAAE,EAAE;QAChB,gBAAgB,EAAE,EAAE;QACpB,iBAAiB,EAAE,EAAE;QACrB,UAAU,EAAE,EAAE;QACd,aAAa,EAAE,IAAI;QAEnB,kBAAkB,EAAE,KAAK;QACzB,eAAe,EAAE,EAAE;QACnB,eAAe,EAAE,SAAS;QAE1B,aAAa,EAAE,EAAE;QACjB,UAAU,EAAE,MAAM;QAElB,YAAY,EAAE,IAAI;KACnB,CAAC;AACJ,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,kBAAkB,CAChC,MAAoB,EACpB,YAA4B,EAC5B,QAAoD;IAEpD,yBAAyB;IACzB,MAAM,UAAU,GAA4B;QAC1C,iBAAiB,EAAE,KAAK;QACxB,gBAAgB,EAAE,KAAK;QACvB,eAAe,EAAE,KAAK;QACtB,kBAAkB,EAAE,KAAK;QACzB,YAAY,EAAE,IAAI;KACnB,CAAC;IAEF,+DAA+D;IAC/D,oEAAoE;IACpE,IAAI,YAAY,CAAC,iBAAiB,IAAI,YAAY,CAAC,gBAAgB;QAC/D,YAAY,CAAC,eAAe,IAAI,YAAY,CAAC,kBAAkB,EAAE,CAAC;QACpE,0BAA0B;QAC1B,QAAQ,CAAC,UAAU,CAAC,CAAC;QAErB,4EAA4E;QAC5E,UAAU,CAAC,GAAG,EAAE;YACd,mBAAmB,CAAC,MAAM,EAAE,UAAU,EAAE,QAAQ,CAAC,CAAC;QACpD,CAAC,EAAE,EAAE,CAAC,CAAC;IACT,CAAC;SAAM,CAAC;QACN,sCAAsC;QACtC,mBAAmB,CAAC,MAAM,EAAE,UAAU,EAAE,QAAQ,CAAC,CAAC;IACpD,CAAC;AACH,CAAC;AAED;;GAEG;AACH,SAAS,mBAAmB,CAC1B,MAAoB,EACpB,UAAmC,EACnC,QAAoD;IAEpD,QAAQ,MAAM,CAAC,IAAI,EAAE,CAAC;QACpB,KAAK,SAAS,CAAC;QACf,KAAK,OAAO,CAAC;QACb,KAAK,MAAM;YACT,QAAQ,CAAC;gBACP,GAAG,UAAU;gBACb,aAAa,EAAE,MAAM,CAAC,OAAO;gBAC7B,UAAU,EAAE,MAAM,CAAC,IAAI,KAAK,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,KAAK,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,MAAM;aAC/F,CAAC,CAAC;YACH,MAAM;QAER,KAAK,SAAS;YACZ,QAAQ,CAAC;gBACP,GAAG,UAAU;gBACb,iBAAiB,EAAE,IAAI;gBACvB,YAAY,EAAE,MAAM,CAAC,KAAK,IAAI,SAAS;gBACvC,cAAc,EAAE,MAAM,CAAC,OAAO;gBAC9B,eAAe,EAAE,MAAM,CAAC,YAAY,IAAI,KAAK;gBAC7C,cAAc,EAAE,MAAM,CAAC,WAAW,IAAI,IAAI;gBAC1C,oBAAoB,EAAE,CAAC;gBACvB,YAAY,EAAE,MAAM,CAAC,SAAS,IAAI,IAAI;gBACtC,WAAW,EAAE,MAAM,CAAC,QAAQ,IAAI,IAAI;aACrC,CAAC,CAAC;YACH,MAAM;QAER,KAAK,QAAQ;YACX,QAAQ,CAAC;gBACP,GAAG,UAAU;gBACb,gBAAgB,EAAE,IAAI;gBACtB,WAAW,EAAE,MAAM,CAAC,KAAK,IAAI,eAAe;gBAC5C,aAAa,EAAE,MAAM,CAAC,OAAO;gBAC7B,aAAa,EAAE,MAAM,CAAC,OAAO,IAAI,EAAE;gBACnC,mBAAmB,EAAE,CAAC;gBACtB,cAAc,EAAE,MAAM,CAAC,QAAQ,IAAI,IAAI;aACxC,CAAC,CAAC;YACH,MAAM;QAER,KAAK,OAAO;YACV,QAAQ,CAAC;gBACP,GAAG,UAAU;gBACb,eAAe,EAAE,IAAI;gBACrB,UAAU,EAAE,MAAM,CAAC,KAAK,IAAI,OAAO;gBACnC,YAAY,EAAE,MAAM,CAAC,OAAO;gBAC5B,gBAAgB,EAAE,MAAM,CAAC,WAAW,IAAI,EAAE;gBAC1C,iBAAiB,EAAE,MAAM,CAAC,YAAY,IAAI,EAAE;gBAC5C,UAAU,EAAE,MAAM,CAAC,YAAY,IAAI,EAAE;gBACrC,aAAa,EAAE,MAAM,CAAC,QAAQ,IAAI,IAAI;aACvC,CAAC,CAAC;YACH,MAAM;QAER,KAAK,UAAU;YACb,QAAQ,CAAC;gBACP,GAAG,UAAU;gBACb,kBAAkB,EAAE,IAAI;gBACxB,eAAe,EAAE,MAAM,CAAC,OAAO;gBAC/B,eAAe,EAAE,MAAM,CAAC,QAAQ;aACjC,CAAC,CAAC;YACH,MAAM;QAER,KAAK,YAAY;YACf,QAAQ,CAAC;gBACP,GAAG,UAAU;gBACb,YAAY,EAAE,MAAM,CAAC,YAAY,IAAI,IAAI;gBACzC,aAAa,EAAE,MAAM,CAAC,OAAO;gBAC7B,UAAU,EAAE,MAAM;aACnB,CAAC,CAAC;YACH,MAAM;IACV,CAAC;AACH,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,eAAe,CAC7B,QAAoD;IAEpD,QAAQ,CAAC;QACP,iBAAiB,EAAE,KAAK;QACxB,gBAAgB,EAAE,KAAK;QACvB,eAAe,EAAE,KAAK;QACtB,kBAAkB,EAAE,KAAK;QACzB,YAAY,EAAE,IAAI;QAClB,WAAW,EAAE,IAAI;QACjB,cAAc,EAAE,IAAI;QACpB,aAAa,EAAE,IAAI;KACpB,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))s(r);new MutationObserver(r=>{for(const o of r)if(o.type==="childList")for(const i of o.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&s(i)}).observe(document,{childList:!0,subtree:!0});function n(r){const o={};return r.integrity&&(o.integrity=r.integrity),r.referrerPolicy&&(o.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?o.credentials="include":r.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function s(r){if(r.ep)return;r.ep=!0;const o=n(r);fetch(r.href,o)}})();/**
|
|
2
|
+
* @vue/shared v3.5.22
|
|
3
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
|
+
* @license MIT
|
|
5
|
+
**/function Ge(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const U=Object.freeze({}),_t=Object.freeze([]),ne=()=>{},wr=()=>!1,Bt=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),cn=e=>e.startsWith("onUpdate:"),Y=Object.assign,as=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Ho=Object.prototype.hasOwnProperty,H=(e,t)=>Ho.call(e,t),M=Array.isArray,it=e=>wn(e)==="[object Map]",xr=e=>wn(e)==="[object Set]",P=e=>typeof e=="function",q=e=>typeof e=="string",tt=e=>typeof e=="symbol",W=e=>e!==null&&typeof e=="object",ds=e=>(W(e)||P(e))&&P(e.then)&&P(e.catch),Sr=Object.prototype.toString,wn=e=>Sr.call(e),ps=e=>wn(e).slice(8,-1),Cr=e=>wn(e)==="[object Object]",hs=e=>q(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,It=Ge(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Lo=Ge("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),xn=e=>{const t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},No=/-\w/g,ve=xn(e=>e.replace(No,t=>t.slice(1).toUpperCase())),Vo=/\B([A-Z])/g,ke=xn(e=>e.replace(Vo,"-$1").toLowerCase()),Sn=xn(e=>e.charAt(0).toUpperCase()+e.slice(1)),rt=xn(e=>e?`on${Sn(e)}`:""),Qe=(e,t)=>!Object.is(e,t),mt=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},fn=(e,t,n,s=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:s,value:n})},Jn=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let Hs;const Wt=()=>Hs||(Hs=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function gs(e){if(M(e)){const t={};for(let n=0;n<e.length;n++){const s=e[n],r=q(s)?Wo(s):gs(s);if(r)for(const o in r)t[o]=r[o]}return t}else if(q(e)||W(e))return e}const Ko=/;(?![^(]*\))/g,Uo=/:([^]+)/,Bo=/\/\*[^]*?\*\//g;function Wo(e){const t={};return e.replace(Bo,"").split(Ko).forEach(n=>{if(n){const s=n.split(Uo);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function ms(e){let t="";if(q(e))t=e;else if(M(e))for(let n=0;n<e.length;n++){const s=ms(e[n]);s&&(t+=s+" ")}else if(W(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const ko="html,body,base,head,link,meta,style,title,address,article,aside,footer,header,hgroup,h1,h2,h3,h4,h5,h6,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,summary,template,blockquote,iframe,tfoot",Go="svg,animate,animateMotion,animateTransform,circle,clipPath,color-profile,defs,desc,discard,ellipse,feBlend,feColorMatrix,feComponentTransfer,feComposite,feConvolveMatrix,feDiffuseLighting,feDisplacementMap,feDistantLight,feDropShadow,feFlood,feFuncA,feFuncB,feFuncG,feFuncR,feGaussianBlur,feImage,feMerge,feMergeNode,feMorphology,feOffset,fePointLight,feSpecularLighting,feSpotLight,feTile,feTurbulence,filter,foreignObject,g,hatch,hatchpath,image,line,linearGradient,marker,mask,mesh,meshgradient,meshpatch,meshrow,metadata,mpath,path,pattern,polygon,polyline,radialGradient,rect,set,solidcolor,stop,switch,symbol,text,textPath,title,tspan,unknown,use,view",qo="annotation,annotation-xml,maction,maligngroup,malignmark,math,menclose,merror,mfenced,mfrac,mfraction,mglyph,mi,mlabeledtr,mlongdiv,mmultiscripts,mn,mo,mover,mpadded,mphantom,mprescripts,mroot,mrow,ms,mscarries,mscarry,msgroup,msline,mspace,msqrt,msrow,mstack,mstyle,msub,msubsup,msup,mtable,mtd,mtext,mtr,munder,munderover,none,semantics",Jo=Ge(ko),Yo=Ge(Go),zo=Ge(qo),Xo="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",Zo=Ge(Xo);function Or(e){return!!e||e===""}const Tr=e=>!!(e&&e.__v_isRef===!0),Qo=e=>q(e)?e:e==null?"":M(e)||W(e)&&(e.toString===Sr||!P(e.toString))?Tr(e)?Qo(e.value):JSON.stringify(e,Er,2):String(e),Er=(e,t)=>Tr(t)?Er(e,t.value):it(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[s,r],o)=>(n[Dn(s,o)+" =>"]=r,n),{})}:xr(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>Dn(n))}:tt(t)?Dn(t):W(t)&&!M(t)&&!Cr(t)?String(t):t,Dn=(e,t="")=>{var n;return tt(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/**
|
|
6
|
+
* @vue/reactivity v3.5.22
|
|
7
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
8
|
+
* @license MIT
|
|
9
|
+
**/function xe(e,...t){console.warn(`[Vue warn] ${e}`,...t)}let de;class ei{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=de,!t&&de&&(this.index=(de.scopes||(de.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].pause();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].resume();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].resume()}}run(t){if(this._active){const n=de;try{return de=this,t()}finally{de=n}}else xe("cannot run an inactive effect scope.")}on(){++this._on===1&&(this.prevScope=de,de=this)}off(){this._on>0&&--this._on===0&&(de=this.prevScope,this.prevScope=void 0)}stop(t){if(this._active){this._active=!1;let n,s;for(n=0,s=this.effects.length;n<s;n++)this.effects[n].stop();for(this.effects.length=0,n=0,s=this.cleanups.length;n<s;n++)this.cleanups[n]();if(this.cleanups.length=0,this.scopes){for(n=0,s=this.scopes.length;n<s;n++)this.scopes[n].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const r=this.parent.scopes.pop();r&&r!==this&&(this.parent.scopes[this.index]=r,r.index=this.index)}this.parent=void 0}}}function ti(){return de}let K;const Hn=new WeakSet;class $r{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,de&&de.active&&de.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Hn.has(this)&&(Hn.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||Ar(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,Ls(this),Pr(this);const t=K,n=we;K=this,we=!0;try{return this.fn()}finally{K!==this&&xe("Active effect was not restored correctly - this is likely a Vue internal bug."),Ir(this),K=t,we=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)_s(t);this.deps=this.depsTail=void 0,Ls(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Hn.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Yn(this)&&this.run()}get dirty(){return Yn(this)}}let Mr=0,Rt,Ft;function Ar(e,t=!1){if(e.flags|=8,t){e.next=Ft,Ft=e;return}e.next=Rt,Rt=e}function bs(){Mr++}function ys(){if(--Mr>0)return;if(Ft){let t=Ft;for(Ft=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;Rt;){let t=Rt;for(Rt=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(s){e||(e=s)}t=n}}if(e)throw e}function Pr(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Ir(e){let t,n=e.depsTail,s=n;for(;s;){const r=s.prevDep;s.version===-1?(s===n&&(n=r),_s(s),ni(s)):t=s,s.dep.activeLink=s.prevActiveLink,s.prevActiveLink=void 0,s=r}e.deps=t,e.depsTail=n}function Yn(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Rr(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Rr(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Lt)||(e.globalVersion=Lt,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Yn(e))))return;e.flags|=2;const t=e.dep,n=K,s=we;K=e,we=!0;try{Pr(e);const r=e.fn(e._value);(t.version===0||Qe(r,e._value))&&(e.flags|=128,e._value=r,t.version++)}catch(r){throw t.version++,r}finally{K=n,we=s,Ir(e),e.flags&=-3}}function _s(e,t=!1){const{dep:n,prevSub:s,nextSub:r}=e;if(s&&(s.nextSub=r,e.prevSub=void 0),r&&(r.prevSub=s,e.nextSub=void 0),n.subsHead===e&&(n.subsHead=r),n.subs===e&&(n.subs=s,!s&&n.computed)){n.computed.flags&=-5;for(let o=n.computed.deps;o;o=o.nextDep)_s(o,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function ni(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let we=!0;const Fr=[];function Se(){Fr.push(we),we=!1}function Ce(){const e=Fr.pop();we=e===void 0?!0:e}function Ls(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=K;K=void 0;try{t()}finally{K=n}}}let Lt=0;class si{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class vs{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0,this.subsHead=void 0}track(t){if(!K||!we||K===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==K)n=this.activeLink=new si(K,this),K.deps?(n.prevDep=K.depsTail,K.depsTail.nextDep=n,K.depsTail=n):K.deps=K.depsTail=n,jr(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const s=n.nextDep;s.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=s),n.prevDep=K.depsTail,n.nextDep=void 0,K.depsTail.nextDep=n,K.depsTail=n,K.deps===n&&(K.deps=s)}return K.onTrack&&K.onTrack(Y({effect:K},t)),n}trigger(t){this.version++,Lt++,this.notify(t)}notify(t){bs();try{for(let n=this.subsHead;n;n=n.nextSub)n.sub.onTrigger&&!(n.sub.flags&8)&&n.sub.onTrigger(Y({effect:n.sub},t));for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{ys()}}}function jr(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let s=t.deps;s;s=s.nextDep)jr(s)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subsHead===void 0&&(e.dep.subsHead=e),e.dep.subs=e}}const zn=new WeakMap,lt=Symbol("Object iterate"),Xn=Symbol("Map keys iterate"),Nt=Symbol("Array iterate");function Z(e,t,n){if(we&&K){let s=zn.get(e);s||zn.set(e,s=new Map);let r=s.get(n);r||(s.set(n,r=new vs),r.map=s,r.key=n),r.track({target:e,type:t,key:n})}}function Ie(e,t,n,s,r,o){const i=zn.get(e);if(!i){Lt++;return}const l=f=>{f&&f.trigger({target:e,type:t,key:n,newValue:s,oldValue:r,oldTarget:o})};if(bs(),t==="clear")i.forEach(l);else{const f=M(e),p=f&&hs(n);if(f&&n==="length"){const d=Number(s);i.forEach((a,g)=>{(g==="length"||g===Nt||!tt(g)&&g>=d)&&l(a)})}else switch((n!==void 0||i.has(void 0))&&l(i.get(n)),p&&l(i.get(Nt)),t){case"add":f?p&&l(i.get("length")):(l(i.get(lt)),it(e)&&l(i.get(Xn)));break;case"delete":f||(l(i.get(lt)),it(e)&&l(i.get(Xn)));break;case"set":it(e)&&l(i.get(lt));break}}ys()}function pt(e){const t=F(e);return t===e?t:(Z(t,"iterate",Nt),le(e)?t:t.map(Q))}function Cn(e){return Z(e=F(e),"iterate",Nt),e}const ri={__proto__:null,[Symbol.iterator](){return Ln(this,Symbol.iterator,Q)},concat(...e){return pt(this).concat(...e.map(t=>M(t)?pt(t):t))},entries(){return Ln(this,"entries",e=>(e[1]=Q(e[1]),e))},every(e,t){return Ne(this,"every",e,t,void 0,arguments)},filter(e,t){return Ne(this,"filter",e,t,n=>n.map(Q),arguments)},find(e,t){return Ne(this,"find",e,t,Q,arguments)},findIndex(e,t){return Ne(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Ne(this,"findLast",e,t,Q,arguments)},findLastIndex(e,t){return Ne(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Ne(this,"forEach",e,t,void 0,arguments)},includes(...e){return Nn(this,"includes",e)},indexOf(...e){return Nn(this,"indexOf",e)},join(e){return pt(this).join(e)},lastIndexOf(...e){return Nn(this,"lastIndexOf",e)},map(e,t){return Ne(this,"map",e,t,void 0,arguments)},pop(){return Et(this,"pop")},push(...e){return Et(this,"push",e)},reduce(e,...t){return Ns(this,"reduce",e,t)},reduceRight(e,...t){return Ns(this,"reduceRight",e,t)},shift(){return Et(this,"shift")},some(e,t){return Ne(this,"some",e,t,void 0,arguments)},splice(...e){return Et(this,"splice",e)},toReversed(){return pt(this).toReversed()},toSorted(e){return pt(this).toSorted(e)},toSpliced(...e){return pt(this).toSpliced(...e)},unshift(...e){return Et(this,"unshift",e)},values(){return Ln(this,"values",Q)}};function Ln(e,t,n){const s=Cn(e),r=s[t]();return s!==e&&!le(e)&&(r._next=r.next,r.next=()=>{const o=r._next();return o.done||(o.value=n(o.value)),o}),r}const oi=Array.prototype;function Ne(e,t,n,s,r,o){const i=Cn(e),l=i!==e&&!le(e),f=i[t];if(f!==oi[t]){const a=f.apply(e,o);return l?Q(a):a}let p=n;i!==e&&(l?p=function(a,g){return n.call(this,Q(a),g,e)}:n.length>2&&(p=function(a,g){return n.call(this,a,g,e)}));const d=f.call(i,p,s);return l&&r?r(d):d}function Ns(e,t,n,s){const r=Cn(e);let o=n;return r!==e&&(le(e)?n.length>3&&(o=function(i,l,f){return n.call(this,i,l,f,e)}):o=function(i,l,f){return n.call(this,i,Q(l),f,e)}),r[t](o,...s)}function Nn(e,t,n){const s=F(e);Z(s,"iterate",Nt);const r=s[t](...n);return(r===-1||r===!1)&&un(n[0])?(n[0]=F(n[0]),s[t](...n)):r}function Et(e,t,n=[]){Se(),bs();const s=F(e)[t].apply(e,n);return ys(),Ce(),s}const ii=Ge("__proto__,__v_isRef,__isVue"),Dr=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(tt));function li(e){tt(e)||(e=String(e));const t=F(this);return Z(t,"has",e),t.hasOwnProperty(e)}class Hr{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,s){if(n==="__v_skip")return t.__v_skip;const r=this._isReadonly,o=this._isShallow;if(n==="__v_isReactive")return!r;if(n==="__v_isReadonly")return r;if(n==="__v_isShallow")return o;if(n==="__v_raw")return s===(r?o?Br:Ur:o?Kr:Vr).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(s)?t:void 0;const i=M(t);if(!r){let f;if(i&&(f=ri[n]))return f;if(n==="hasOwnProperty")return li}const l=Reflect.get(t,n,J(t)?t:s);if((tt(n)?Dr.has(n):ii(n))||(r||Z(t,"get",n),o))return l;if(J(l)){const f=i&&hs(n)?l:l.value;return r&&W(f)?Qn(f):f}return W(l)?r?Qn(l):ws(l):l}}class Lr extends Hr{constructor(t=!1){super(!1,t)}set(t,n,s,r){let o=t[n];if(!this._isShallow){const f=De(o);if(!le(s)&&!De(s)&&(o=F(o),s=F(s)),!M(t)&&J(o)&&!J(s))return f?(xe(`Set operation on key "${String(n)}" failed: target is readonly.`,t[n]),!0):(o.value=s,!0)}const i=M(t)&&hs(n)?Number(n)<t.length:H(t,n),l=Reflect.set(t,n,s,J(t)?t:r);return t===F(r)&&(i?Qe(s,o)&&Ie(t,"set",n,s,o):Ie(t,"add",n,s)),l}deleteProperty(t,n){const s=H(t,n),r=t[n],o=Reflect.deleteProperty(t,n);return o&&s&&Ie(t,"delete",n,void 0,r),o}has(t,n){const s=Reflect.has(t,n);return(!tt(n)||!Dr.has(n))&&Z(t,"has",n),s}ownKeys(t){return Z(t,"iterate",M(t)?"length":lt),Reflect.ownKeys(t)}}class Nr extends Hr{constructor(t=!1){super(!0,t)}set(t,n){return xe(`Set operation on key "${String(n)}" failed: target is readonly.`,t),!0}deleteProperty(t,n){return xe(`Delete operation on key "${String(n)}" failed: target is readonly.`,t),!0}}const ci=new Lr,fi=new Nr,ui=new Lr(!0),ai=new Nr(!0),Zn=e=>e,Xt=e=>Reflect.getPrototypeOf(e);function di(e,t,n){return function(...s){const r=this.__v_raw,o=F(r),i=it(o),l=e==="entries"||e===Symbol.iterator&&i,f=e==="keys"&&i,p=r[e](...s),d=n?Zn:t?an:Q;return!t&&Z(o,"iterate",f?Xn:lt),{next(){const{value:a,done:g}=p.next();return g?{value:a,done:g}:{value:l?[d(a[0]),d(a[1])]:d(a),done:g}},[Symbol.iterator](){return this}}}}function Zt(e){return function(...t){{const n=t[0]?`on key "${t[0]}" `:"";xe(`${Sn(e)} operation ${n}failed: target is readonly.`,F(this))}return e==="delete"?!1:e==="clear"?void 0:this}}function pi(e,t){const n={get(r){const o=this.__v_raw,i=F(o),l=F(r);e||(Qe(r,l)&&Z(i,"get",r),Z(i,"get",l));const{has:f}=Xt(i),p=t?Zn:e?an:Q;if(f.call(i,r))return p(o.get(r));if(f.call(i,l))return p(o.get(l));o!==i&&o.get(r)},get size(){const r=this.__v_raw;return!e&&Z(F(r),"iterate",lt),r.size},has(r){const o=this.__v_raw,i=F(o),l=F(r);return e||(Qe(r,l)&&Z(i,"has",r),Z(i,"has",l)),r===l?o.has(r):o.has(r)||o.has(l)},forEach(r,o){const i=this,l=i.__v_raw,f=F(l),p=t?Zn:e?an:Q;return!e&&Z(f,"iterate",lt),l.forEach((d,a)=>r.call(o,p(d),p(a),i))}};return Y(n,e?{add:Zt("add"),set:Zt("set"),delete:Zt("delete"),clear:Zt("clear")}:{add(r){!t&&!le(r)&&!De(r)&&(r=F(r));const o=F(this);return Xt(o).has.call(o,r)||(o.add(r),Ie(o,"add",r,r)),this},set(r,o){!t&&!le(o)&&!De(o)&&(o=F(o));const i=F(this),{has:l,get:f}=Xt(i);let p=l.call(i,r);p?Vs(i,l,r):(r=F(r),p=l.call(i,r));const d=f.call(i,r);return i.set(r,o),p?Qe(o,d)&&Ie(i,"set",r,o,d):Ie(i,"add",r,o),this},delete(r){const o=F(this),{has:i,get:l}=Xt(o);let f=i.call(o,r);f?Vs(o,i,r):(r=F(r),f=i.call(o,r));const p=l?l.call(o,r):void 0,d=o.delete(r);return f&&Ie(o,"delete",r,void 0,p),d},clear(){const r=F(this),o=r.size!==0,i=it(r)?new Map(r):new Set(r),l=r.clear();return o&&Ie(r,"clear",void 0,void 0,i),l}}),["keys","values","entries",Symbol.iterator].forEach(r=>{n[r]=di(r,e,t)}),n}function On(e,t){const n=pi(e,t);return(s,r,o)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?s:Reflect.get(H(n,r)&&r in s?n:s,r,o)}const hi={get:On(!1,!1)},gi={get:On(!1,!0)},mi={get:On(!0,!1)},bi={get:On(!0,!0)};function Vs(e,t,n){const s=F(n);if(s!==n&&t.call(e,s)){const r=ps(e);xe(`Reactive ${r} contains both the raw and reactive versions of the same object${r==="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 Vr=new WeakMap,Kr=new WeakMap,Ur=new WeakMap,Br=new WeakMap;function yi(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function _i(e){return e.__v_skip||!Object.isExtensible(e)?0:yi(ps(e))}function ws(e){return De(e)?e:Tn(e,!1,ci,hi,Vr)}function vi(e){return Tn(e,!1,ui,gi,Kr)}function Qn(e){return Tn(e,!0,fi,mi,Ur)}function Fe(e){return Tn(e,!0,ai,bi,Br)}function Tn(e,t,n,s,r){if(!W(e))return xe(`value cannot be made ${t?"readonly":"reactive"}: ${String(e)}`),e;if(e.__v_raw&&!(t&&e.__v_isReactive))return e;const o=_i(e);if(o===0)return e;const i=r.get(e);if(i)return i;const l=new Proxy(e,o===2?s:n);return r.set(e,l),l}function ct(e){return De(e)?ct(e.__v_raw):!!(e&&e.__v_isReactive)}function De(e){return!!(e&&e.__v_isReadonly)}function le(e){return!!(e&&e.__v_isShallow)}function un(e){return e?!!e.__v_raw:!1}function F(e){const t=e&&e.__v_raw;return t?F(t):e}function wi(e){return!H(e,"__v_skip")&&Object.isExtensible(e)&&fn(e,"__v_skip",!0),e}const Q=e=>W(e)?ws(e):e,an=e=>W(e)?Qn(e):e;function J(e){return e?e.__v_isRef===!0:!1}function ef(e){return xi(e,!1)}function xi(e,t){return J(e)?e:new Si(e,t)}class Si{constructor(t,n){this.dep=new vs,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:F(t),this._value=n?t:Q(t),this.__v_isShallow=n}get value(){return this.dep.track({target:this,type:"get",key:"value"}),this._value}set value(t){const n=this._rawValue,s=this.__v_isShallow||le(t)||De(t);t=s?t:F(t),Qe(t,n)&&(this._rawValue=t,this._value=s?t:Q(t),this.dep.trigger({target:this,type:"set",key:"value",newValue:t,oldValue:n}))}}function Ci(e){return J(e)?e.value:e}const Oi={get:(e,t,n)=>t==="__v_raw"?e:Ci(Reflect.get(e,t,n)),set:(e,t,n,s)=>{const r=e[t];return J(r)&&!J(n)?(r.value=n,!0):Reflect.set(e,t,n,s)}};function Wr(e){return ct(e)?e:new Proxy(e,Oi)}class Ti{constructor(t,n,s){this.fn=t,this.setter=n,this._value=void 0,this.dep=new vs(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Lt-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=s}notify(){if(this.flags|=16,!(this.flags&8)&&K!==this)return Ar(this,!0),!0}get value(){const t=this.dep.track({target:this,type:"get",key:"value"});return Rr(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter?this.setter(t):xe("Write operation failed: computed value is readonly")}}function Ei(e,t,n=!1){let s,r;return P(e)?s=e:(s=e.get,r=e.set),new Ti(s,r,n)}const Qt={},dn=new WeakMap;let ot;function $i(e,t=!1,n=ot){if(n){let s=dn.get(n);s||dn.set(n,s=[]),s.push(e)}else t||xe("onWatcherCleanup() was called when there was no active watcher to associate with.")}function Mi(e,t,n=U){const{immediate:s,deep:r,once:o,scheduler:i,augmentJob:l,call:f}=n,p=$=>{(n.onWarn||xe)("Invalid watch source: ",$,"A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types.")},d=$=>r?$:le($)||r===!1||r===0?Ue($,1):Ue($);let a,g,C,I,E=!1,z=!1;if(J(e)?(g=()=>e.value,E=le(e)):ct(e)?(g=()=>d(e),E=!0):M(e)?(z=!0,E=e.some($=>ct($)||le($)),g=()=>e.map($=>{if(J($))return $.value;if(ct($))return d($);if(P($))return f?f($,2):$();p($)})):P(e)?t?g=f?()=>f(e,2):e:g=()=>{if(C){Se();try{C()}finally{Ce()}}const $=ot;ot=a;try{return f?f(e,3,[I]):e(I)}finally{ot=$}}:(g=ne,p(e)),t&&r){const $=g,X=r===!0?1/0:r;g=()=>Ue($(),X)}const G=ti(),V=()=>{a.stop(),G&&G.active&&as(G.effects,a)};if(o&&t){const $=t;t=(...X)=>{$(...X),V()}}let N=z?new Array(e.length).fill(Qt):Qt;const pe=$=>{if(!(!(a.flags&1)||!a.dirty&&!$))if(t){const X=a.run();if(r||E||(z?X.some((be,te)=>Qe(be,N[te])):Qe(X,N))){C&&C();const be=ot;ot=a;try{const te=[X,N===Qt?void 0:z&&N[0]===Qt?[]:N,I];N=X,f?f(t,3,te):t(...te)}finally{ot=be}}}else a.run()};return l&&l(pe),a=new $r(g),a.scheduler=i?()=>i(pe,!1):pe,I=$=>$i($,!1,a),C=a.onStop=()=>{const $=dn.get(a);if($){if(f)f($,4);else for(const X of $)X();dn.delete(a)}},a.onTrack=n.onTrack,a.onTrigger=n.onTrigger,t?s?pe(!0):N=a.run():i?i(pe.bind(null,!0),!0):a.run(),V.pause=a.pause.bind(a),V.resume=a.resume.bind(a),V.stop=V,V}function Ue(e,t=1/0,n){if(t<=0||!W(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,J(e))Ue(e.value,t,n);else if(M(e))for(let s=0;s<e.length;s++)Ue(e[s],t,n);else if(xr(e)||it(e))e.forEach(s=>{Ue(s,t,n)});else if(Cr(e)){for(const s in e)Ue(e[s],t,n);for(const s of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,s)&&Ue(e[s],t,n)}return e}/**
|
|
10
|
+
* @vue/runtime-core v3.5.22
|
|
11
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
12
|
+
* @license MIT
|
|
13
|
+
**/const ft=[];function en(e){ft.push(e)}function tn(){ft.pop()}let Vn=!1;function x(e,...t){if(Vn)return;Vn=!0,Se();const n=ft.length?ft[ft.length-1].component:null,s=n&&n.appContext.config.warnHandler,r=Ai();if(s)xt(s,n,11,[e+t.map(o=>{var i,l;return(l=(i=o.toString)==null?void 0:i.call(o))!=null?l:JSON.stringify(o)}).join(""),n&&n.proxy,r.map(({vnode:o})=>`at <${In(n,o.type)}>`).join(`
|
|
14
|
+
`),r]);else{const o=[`[Vue warn]: ${e}`,...t];r.length&&o.push(`
|
|
15
|
+
`,...Pi(r)),console.warn(...o)}Ce(),Vn=!1}function Ai(){let e=ft[ft.length-1];if(!e)return[];const t=[];for(;e;){const n=t[0];n&&n.vnode===e?n.recurseCount++:t.push({vnode:e,recurseCount:0});const s=e.component&&e.component.parent;e=s&&s.vnode}return t}function Pi(e){const t=[];return e.forEach((n,s)=>{t.push(...s===0?[]:[`
|
|
16
|
+
`],...Ii(n))}),t}function Ii({vnode:e,recurseCount:t}){const n=t>0?`... (${t} recursive calls)`:"",s=e.component?e.component.parent==null:!1,r=` at <${In(e.component,e.type,s)}`,o=">"+n;return e.props?[r,...Ri(e.props),o]:[r+o]}function Ri(e){const t=[],n=Object.keys(e);return n.slice(0,3).forEach(s=>{t.push(...kr(s,e[s]))}),n.length>3&&t.push(" ..."),t}function kr(e,t,n){return q(t)?(t=JSON.stringify(t),n?t:[`${e}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?n?t:[`${e}=${t}`]:J(t)?(t=kr(e,F(t.value),!0),n?t:[`${e}=Ref<`,t,">"]):P(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=F(t),n?t:[`${e}=`,t])}const xs={sp:"serverPrefetch hook",bc:"beforeCreate hook",c:"created hook",bm:"beforeMount hook",m:"mounted hook",bu:"beforeUpdate hook",u:"updated",bum:"beforeUnmount hook",um:"unmounted hook",a:"activated hook",da:"deactivated hook",ec:"errorCaptured hook",rtc:"renderTracked hook",rtg:"renderTriggered 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",15:"component update",16:"app unmount cleanup function"};function xt(e,t,n,s){try{return s?e(...s):e()}catch(r){kt(r,t,n)}}function He(e,t,n,s){if(P(e)){const r=xt(e,t,n,s);return r&&ds(r)&&r.catch(o=>{kt(o,t,n)}),r}if(M(e)){const r=[];for(let o=0;o<e.length;o++)r.push(He(e[o],t,n,s));return r}else x(`Invalid value type passed to callWithAsyncErrorHandling(): ${typeof e}`)}function kt(e,t,n,s=!0){const r=t?t.vnode:null,{errorHandler:o,throwUnhandledErrorInProduction:i}=t&&t.appContext.config||U;if(t){let l=t.parent;const f=t.proxy,p=xs[n];for(;l;){const d=l.ec;if(d){for(let a=0;a<d.length;a++)if(d[a](e,f,p)===!1)return}l=l.parent}if(o){Se(),xt(o,null,10,[e,f,p]),Ce();return}}Fi(e,n,r,s,i)}function Fi(e,t,n,s=!0,r=!1){{const o=xs[t];if(n&&en(n),x(`Unhandled error${o?` during execution of ${o}`:""}`),n&&tn(),s)throw e;console.error(e)}}const oe=[];let Ae=-1;const vt=[];let Xe=null,bt=0;const Gr=Promise.resolve();let pn=null;const ji=100;function Di(e){const t=pn||Gr;return e?t.then(this?e.bind(this):e):t}function Hi(e){let t=Ae+1,n=oe.length;for(;t<n;){const s=t+n>>>1,r=oe[s],o=Vt(r);o<e||o===e&&r.flags&2?t=s+1:n=s}return t}function En(e){if(!(e.flags&1)){const t=Vt(e),n=oe[oe.length-1];!n||!(e.flags&2)&&t>=Vt(n)?oe.push(e):oe.splice(Hi(t),0,e),e.flags|=1,qr()}}function qr(){pn||(pn=Gr.then(zr))}function Jr(e){M(e)?vt.push(...e):Xe&&e.id===-1?Xe.splice(bt+1,0,e):e.flags&1||(vt.push(e),e.flags|=1),qr()}function Ks(e,t,n=Ae+1){for(t=t||new Map;n<oe.length;n++){const s=oe[n];if(s&&s.flags&2){if(e&&s.id!==e.uid||Ss(t,s))continue;oe.splice(n,1),n--,s.flags&4&&(s.flags&=-2),s(),s.flags&4||(s.flags&=-2)}}}function Yr(e){if(vt.length){const t=[...new Set(vt)].sort((n,s)=>Vt(n)-Vt(s));if(vt.length=0,Xe){Xe.push(...t);return}for(Xe=t,e=e||new Map,bt=0;bt<Xe.length;bt++){const n=Xe[bt];Ss(e,n)||(n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2)}Xe=null,bt=0}}const Vt=e=>e.id==null?e.flags&2?-1:1/0:e.id;function zr(e){e=e||new Map;const t=n=>Ss(e,n);try{for(Ae=0;Ae<oe.length;Ae++){const n=oe[Ae];if(n&&!(n.flags&8)){if(t(n))continue;n.flags&4&&(n.flags&=-2),xt(n,n.i,n.i?15:14),n.flags&4||(n.flags&=-2)}}}finally{for(;Ae<oe.length;Ae++){const n=oe[Ae];n&&(n.flags&=-2)}Ae=-1,oe.length=0,Yr(e),pn=null,(oe.length||vt.length)&&zr(e)}}function Ss(e,t){const n=e.get(t)||0;if(n>ji){const s=t.i,r=s&&Io(s.type);return kt(`Maximum recursive updates exceeded${r?` in component <${r}>`:""}. 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,10),!0}return e.set(t,n+1),!1}let je=!1;const nn=new Map;Wt().__VUE_HMR_RUNTIME__={createRecord:Kn(Xr),rerender:Kn(Vi),reload:Kn(Ki)};const at=new Map;function Li(e){const t=e.type.__hmrId;let n=at.get(t);n||(Xr(t,e.type),n=at.get(t)),n.instances.add(e)}function Ni(e){at.get(e.type.__hmrId).instances.delete(e)}function Xr(e,t){return at.has(e)?!1:(at.set(e,{initialDef:hn(t),instances:new Set}),!0)}function hn(e){return Ro(e)?e.__vccOpts:e}function Vi(e,t){const n=at.get(e);n&&(n.initialDef.render=t,[...n.instances].forEach(s=>{t&&(s.render=t,hn(s.type).render=t),s.renderCache=[],je=!0,s.job.flags&8||s.update(),je=!1}))}function Ki(e,t){const n=at.get(e);if(!n)return;t=hn(t),Us(n.initialDef,t);const s=[...n.instances];for(let r=0;r<s.length;r++){const o=s[r],i=hn(o.type);let l=nn.get(i);l||(i!==n.initialDef&&Us(i,t),nn.set(i,l=new Set)),l.add(o),o.appContext.propsCache.delete(o.type),o.appContext.emitsCache.delete(o.type),o.appContext.optionsCache.delete(o.type),o.ceReload?(l.add(o),o.ceReload(t.styles),l.delete(o)):o.parent?En(()=>{o.job.flags&8||(je=!0,o.parent.update(),je=!1,l.delete(o))}):o.appContext.reload?o.appContext.reload():typeof window<"u"?window.location.reload():console.warn("[HMR] Root or manually mounted instance modified. Full reload required."),o.root.ce&&o!==o.root&&o.root.ce._removeChildStyle(i)}Jr(()=>{nn.clear()})}function Us(e,t){Y(e,t);for(const n in e)n!=="__file"&&!(n in t)&&delete e[n]}function Kn(e){return(t,n)=>{try{return e(t,n)}catch(s){console.error(s),console.warn("[HMR] Something went wrong during Vue component hot-reload. Full reload required.")}}}let Re,At=[],es=!1;function Gt(e,...t){Re?Re.emit(e,...t):es||At.push({event:e,args:t})}function Zr(e,t){var n,s;Re=e,Re?(Re.enabled=!0,At.forEach(({event:r,args:o})=>Re.emit(r,...o)),At=[]):typeof window<"u"&&window.HTMLElement&&!((s=(n=window.navigator)==null?void 0:n.userAgent)!=null&&s.includes("jsdom"))?((t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(o=>{Zr(o,t)}),setTimeout(()=>{Re||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,es=!0,At=[])},3e3)):(es=!0,At=[])}function Ui(e,t){Gt("app:init",e,t,{Fragment:Pe,Text:qt,Comment:me,Static:rn})}function Bi(e){Gt("app:unmount",e)}const Wi=Cs("component:added"),Qr=Cs("component:updated"),ki=Cs("component:removed"),Gi=e=>{Re&&typeof Re.cleanupBuffer=="function"&&!Re.cleanupBuffer(e)&&ki(e)};function Cs(e){return t=>{Gt(e,t.appContext.app,t.uid,t.parent?t.parent.uid:void 0,t)}}const qi=eo("perf:start"),Ji=eo("perf:end");function eo(e){return(t,n,s)=>{Gt(e,t.appContext.app,t.uid,t,n,s)}}function Yi(e,t,n){Gt("component:emit",e.appContext.app,e,t,n)}let ie=null,to=null;function gn(e){const t=ie;return ie=e,to=e&&e.type.__scopeId||null,t}function zi(e,t=ie,n){if(!t||e._n)return e;const s=(...r)=>{s._d&&nr(-1);const o=gn(t);let i;try{i=e(...r)}finally{gn(o),s._d&&nr(1)}return Qr(t),i};return s._n=!0,s._c=!0,s._d=!0,s}function no(e){Lo(e)&&x("Do not use built-in directive ids as custom directive id: "+e)}function tf(e,t){if(ie===null)return x("withDirectives can only be used inside render functions."),e;const n=Pn(ie),s=e.dirs||(e.dirs=[]);for(let r=0;r<t.length;r++){let[o,i,l,f=U]=t[r];o&&(P(o)&&(o={mounted:o,updated:o}),o.deep&&Ue(i),s.push({dir:o,instance:n,value:i,oldValue:void 0,arg:l,modifiers:f}))}return e}function nt(e,t,n,s){const r=e.dirs,o=t&&t.dirs;for(let i=0;i<r.length;i++){const l=r[i];o&&(l.oldValue=o[i].value);let f=l.dir[s];f&&(Se(),He(f,n,8,[e.el,l,e,t]),Ce())}}const Xi=Symbol("_vte"),Zi=e=>e.__isTeleport,Qi=Symbol("_leaveCb");function Os(e,t){e.shapeFlag&6&&e.component?(e.transition=t,Os(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function nf(e,t){return P(e)?Y({name:e.name},t,{setup:e}):e}function so(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}const Bs=new WeakSet,mn=new WeakMap;function jt(e,t,n,s,r=!1){if(M(e)){e.forEach((E,z)=>jt(E,t&&(M(t)?t[z]:t),n,s,r));return}if(Dt(s)&&!r){s.shapeFlag&512&&s.type.__asyncResolved&&s.component.subTree.component&&jt(e,t,n,s.component.subTree);return}const o=s.shapeFlag&4?Pn(s.component):s.el,i=r?null:o,{i:l,r:f}=e;if(!l){x("Missing ref owner context. ref cannot be used on hoisted vnodes. A vnode with ref must be created inside the render function.");return}const p=t&&t.r,d=l.refs===U?l.refs={}:l.refs,a=l.setupState,g=F(a),C=a===U?wr:E=>(H(g,E)&&!J(g[E])&&x(`Template ref "${E}" used on a non-ref value. It will not work in the production build.`),Bs.has(g[E])?!1:H(g,E)),I=E=>!Bs.has(E);if(p!=null&&p!==f){if(Ws(t),q(p))d[p]=null,C(p)&&(a[p]=null);else if(J(p)){I(p)&&(p.value=null);const E=t;E.k&&(d[E.k]=null)}}if(P(f))xt(f,l,12,[i,d]);else{const E=q(f),z=J(f);if(E||z){const G=()=>{if(e.f){const V=E?C(f)?a[f]:d[f]:I(f)||!e.k?f.value:d[e.k];if(r)M(V)&&as(V,o);else if(M(V))V.includes(o)||V.push(o);else if(E)d[f]=[o],C(f)&&(a[f]=d[f]);else{const N=[o];I(f)&&(f.value=N),e.k&&(d[e.k]=N)}}else E?(d[f]=i,C(f)&&(a[f]=i)):z?(I(f)&&(f.value=i),e.k&&(d[e.k]=i)):x("Invalid template ref type:",f,`(${typeof f})`)};if(i){const V=()=>{G(),mn.delete(e)};V.id=-1,mn.set(e,V),he(V,n)}else Ws(e),G()}else x("Invalid template ref type:",f,`(${typeof f})`)}}function Ws(e){const t=mn.get(e);t&&(t.flags|=8,mn.delete(e))}Wt().requestIdleCallback;Wt().cancelIdleCallback;const Dt=e=>!!e.type.__asyncLoader,Ts=e=>e.type.__isKeepAlive;function el(e,t){ro(e,"a",t)}function tl(e,t){ro(e,"da",t)}function ro(e,t,n=ee){const s=e.__wdc||(e.__wdc=()=>{let r=n;for(;r;){if(r.isDeactivated)return;r=r.parent}return e()});if($n(t,s,n),n){let r=n.parent;for(;r&&r.parent;)Ts(r.parent.vnode)&&nl(s,t,n,r),r=r.parent}}function nl(e,t,n,s){const r=$n(t,e,s,!0);oo(()=>{as(s[t],r)},n)}function $n(e,t,n=ee,s=!1){if(n){const r=n[e]||(n[e]=[]),o=t.__weh||(t.__weh=(...i)=>{Se();const l=Jt(n),f=He(t,n,e,i);return l(),Ce(),f});return s?r.unshift(o):r.push(o),o}else{const r=rt(xs[e].replace(/ hook$/,""));x(`${r} is called when there is no active component instance to be associated with. Lifecycle injection APIs can only be used during execution of setup(). If you are using async setup(), make sure to register lifecycle hooks before the first await statement.`)}}const qe=e=>(t,n=ee)=>{(!Ut||e==="sp")&&$n(e,(...s)=>t(...s),n)},sl=qe("bm"),rl=qe("m"),ol=qe("bu"),il=qe("u"),ll=qe("bum"),oo=qe("um"),cl=qe("sp"),fl=qe("rtg"),ul=qe("rtc");function al(e,t=ee){$n("ec",e,t)}const dl=Symbol.for("v-ndc");function sf(e,t,n,s){let r;const o=n,i=M(e);if(i||q(e)){const l=i&&ct(e);let f=!1,p=!1;l&&(f=!le(e),p=De(e),e=Cn(e)),r=new Array(e.length);for(let d=0,a=e.length;d<a;d++)r[d]=t(f?p?an(Q(e[d])):Q(e[d]):e[d],d,void 0,o)}else if(typeof e=="number"){Number.isInteger(e)||x(`The v-for range expect an integer value but got ${e}.`),r=new Array(e);for(let l=0;l<e;l++)r[l]=t(l+1,l,void 0,o)}else if(W(e))if(e[Symbol.iterator])r=Array.from(e,(l,f)=>t(l,f,void 0,o));else{const l=Object.keys(e);r=new Array(l.length);for(let f=0,p=l.length;f<p;f++){const d=l[f];r[f]=t(e[d],d,f,o)}}else r=[];return r}const ts=e=>e?Ao(e)?Pn(e):ts(e.parent):null,ut=Y(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>Fe(e.props),$attrs:e=>Fe(e.attrs),$slots:e=>Fe(e.slots),$refs:e=>Fe(e.refs),$parent:e=>ts(e.parent),$root:e=>ts(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>co(e),$forceUpdate:e=>e.f||(e.f=()=>{En(e.update)}),$nextTick:e=>e.n||(e.n=Di.bind(e.proxy)),$watch:e=>kl.bind(e)}),Es=e=>e==="_"||e==="$",Un=(e,t)=>e!==U&&!e.__isScriptSetup&&H(e,t),io={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:s,data:r,props:o,accessCache:i,type:l,appContext:f}=e;if(t==="__isVue")return!0;let p;if(t[0]!=="$"){const C=i[t];if(C!==void 0)switch(C){case 1:return s[t];case 2:return r[t];case 4:return n[t];case 3:return o[t]}else{if(Un(s,t))return i[t]=1,s[t];if(r!==U&&H(r,t))return i[t]=2,r[t];if((p=e.propsOptions[0])&&H(p,t))return i[t]=3,o[t];if(n!==U&&H(n,t))return i[t]=4,n[t];ns&&(i[t]=0)}}const d=ut[t];let a,g;if(d)return t==="$attrs"?(Z(e.attrs,"get",""),_n()):t==="$slots"&&Z(e,"get",t),d(e);if((a=l.__cssModules)&&(a=a[t]))return a;if(n!==U&&H(n,t))return i[t]=4,n[t];if(g=f.config.globalProperties,H(g,t))return g[t];ie&&(!q(t)||t.indexOf("__v")!==0)&&(r!==U&&Es(t[0])&&H(r,t)?x(`Property ${JSON.stringify(t)} must be accessed via $data because it starts with a reserved character ("$" or "_") and is not proxied on the render context.`):e===ie&&x(`Property ${JSON.stringify(t)} was accessed during render but is not defined on instance.`))},set({_:e},t,n){const{data:s,setupState:r,ctx:o}=e;return Un(r,t)?(r[t]=n,!0):r.__isScriptSetup&&H(r,t)?(x(`Cannot mutate <script setup> binding "${t}" from Options API.`),!1):s!==U&&H(s,t)?(s[t]=n,!0):H(e.props,t)?(x(`Attempting to mutate prop "${t}". Props are readonly.`),!1):t[0]==="$"&&t.slice(1)in e?(x(`Attempting to mutate public property "${t}". Properties starting with $ are reserved and readonly.`),!1):(t in e.appContext.config.globalProperties?Object.defineProperty(o,t,{enumerable:!0,configurable:!0,value:n}):o[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:s,appContext:r,propsOptions:o,type:i}},l){let f,p;return!!(n[l]||e!==U&&l[0]!=="$"&&H(e,l)||Un(t,l)||(f=o[0])&&H(f,l)||H(s,l)||H(ut,l)||H(r.config.globalProperties,l)||(p=i.__cssModules)&&p[l])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:H(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};io.ownKeys=e=>(x("Avoid app logic that relies on enumerating keys on a component instance. The keys will be empty in production mode to avoid performance overhead."),Reflect.ownKeys(e));function pl(e){const t={};return Object.defineProperty(t,"_",{configurable:!0,enumerable:!1,get:()=>e}),Object.keys(ut).forEach(n=>{Object.defineProperty(t,n,{configurable:!0,enumerable:!1,get:()=>ut[n](e),set:ne})}),t}function hl(e){const{ctx:t,propsOptions:[n]}=e;n&&Object.keys(n).forEach(s=>{Object.defineProperty(t,s,{enumerable:!0,configurable:!0,get:()=>e.props[s],set:ne})})}function gl(e){const{ctx:t,setupState:n}=e;Object.keys(F(n)).forEach(s=>{if(!n.__isScriptSetup){if(Es(s[0])){x(`setup() return property ${JSON.stringify(s)} should not start with "$" or "_" which are reserved prefixes for Vue internals.`);return}Object.defineProperty(t,s,{enumerable:!0,configurable:!0,get:()=>n[s],set:ne})}})}function ks(e){return M(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function ml(){const e=Object.create(null);return(t,n)=>{e[n]?x(`${t} property "${n}" is already defined in ${e[n]}.`):e[n]=t}}let ns=!0;function bl(e){const t=co(e),n=e.proxy,s=e.ctx;ns=!1,t.beforeCreate&&Gs(t.beforeCreate,e,"bc");const{data:r,computed:o,methods:i,watch:l,provide:f,inject:p,created:d,beforeMount:a,mounted:g,beforeUpdate:C,updated:I,activated:E,deactivated:z,beforeDestroy:G,beforeUnmount:V,destroyed:N,unmounted:pe,render:$,renderTracked:X,renderTriggered:be,errorCaptured:te,serverPrefetch:ce,expose:Le,inheritAttrs:Je,components:ye,directives:Yt,filters:Is}=t,Ye=ml();{const[L]=e.propsOptions;if(L)for(const j in L)Ye("Props",j)}if(p&&yl(p,s,Ye),i)for(const L in i){const j=i[L];P(j)?(Object.defineProperty(s,L,{value:j.bind(n),configurable:!0,enumerable:!0,writable:!0}),Ye("Methods",L)):x(`Method "${L}" has type "${typeof j}" in the component definition. Did you reference the function correctly?`)}if(r){P(r)||x("The data option must be a function. Plain object usage is no longer supported.");const L=r.call(n,n);if(ds(L)&&x("data() returned a Promise - note data() cannot be async; If you intend to perform data fetching before component renders, use async setup() + <Suspense>."),!W(L))x("data() should return an object.");else{e.data=ws(L);for(const j in L)Ye("Data",j),Es(j[0])||Object.defineProperty(s,j,{configurable:!0,enumerable:!0,get:()=>L[j],set:ne})}}if(ns=!0,o)for(const L in o){const j=o[L],Oe=P(j)?j.bind(n,n):P(j.get)?j.get.bind(n,n):ne;Oe===ne&&x(`Computed property "${L}" has no getter.`);const Rn=!P(j)&&P(j.set)?j.set.bind(n):()=>{x(`Write operation failed: computed property "${L}" is readonly.`)},St=vc({get:Oe,set:Rn});Object.defineProperty(s,L,{enumerable:!0,configurable:!0,get:()=>St.value,set:dt=>St.value=dt}),Ye("Computed",L)}if(l)for(const L in l)lo(l[L],s,n,L);if(f){const L=P(f)?f.call(n):f;Reflect.ownKeys(L).forEach(j=>{Cl(j,L[j])})}d&&Gs(d,e,"c");function fe(L,j){M(j)?j.forEach(Oe=>L(Oe.bind(n))):j&&L(j.bind(n))}if(fe(sl,a),fe(rl,g),fe(ol,C),fe(il,I),fe(el,E),fe(tl,z),fe(al,te),fe(ul,X),fe(fl,be),fe(ll,V),fe(oo,pe),fe(cl,ce),M(Le))if(Le.length){const L=e.exposed||(e.exposed={});Le.forEach(j=>{Object.defineProperty(L,j,{get:()=>n[j],set:Oe=>n[j]=Oe,enumerable:!0})})}else e.exposed||(e.exposed={});$&&e.render===ne&&(e.render=$),Je!=null&&(e.inheritAttrs=Je),ye&&(e.components=ye),Yt&&(e.directives=Yt),ce&&so(e)}function yl(e,t,n=ne){M(e)&&(e=ss(e));for(const s in e){const r=e[s];let o;W(r)?"default"in r?o=sn(r.from||s,r.default,!0):o=sn(r.from||s):o=sn(r),J(o)?Object.defineProperty(t,s,{enumerable:!0,configurable:!0,get:()=>o.value,set:i=>o.value=i}):t[s]=o,n("Inject",s)}}function Gs(e,t,n){He(M(e)?e.map(s=>s.bind(t.proxy)):e.bind(t.proxy),t,n)}function lo(e,t,n,s){let r=s.includes(".")?wo(n,s):()=>n[s];if(q(e)){const o=t[e];P(o)?Wn(r,o):x(`Invalid watch handler specified by key "${e}"`,o)}else if(P(e))Wn(r,e.bind(n));else if(W(e))if(M(e))e.forEach(o=>lo(o,t,n,s));else{const o=P(e.handler)?e.handler.bind(n):t[e.handler];P(o)?Wn(r,o,e):x(`Invalid watch handler specified by key "${e.handler}"`,o)}else x(`Invalid watch option: "${s}"`,e)}function co(e){const t=e.type,{mixins:n,extends:s}=t,{mixins:r,optionsCache:o,config:{optionMergeStrategies:i}}=e.appContext,l=o.get(t);let f;return l?f=l:!r.length&&!n&&!s?f=t:(f={},r.length&&r.forEach(p=>bn(f,p,i,!0)),bn(f,t,i)),W(t)&&o.set(t,f),f}function bn(e,t,n,s=!1){const{mixins:r,extends:o}=t;o&&bn(e,o,n,!0),r&&r.forEach(i=>bn(e,i,n,!0));for(const i in t)if(s&&i==="expose")x('"expose" option is ignored when declared in mixins or extends. It should only be declared in the base component itself.');else{const l=_l[i]||n&&n[i];e[i]=l?l(e[i],t[i]):t[i]}return e}const _l={data:qs,props:Js,emits:Js,methods:Pt,computed:Pt,beforeCreate:re,created:re,beforeMount:re,mounted:re,beforeUpdate:re,updated:re,beforeDestroy:re,beforeUnmount:re,destroyed:re,unmounted:re,activated:re,deactivated:re,errorCaptured:re,serverPrefetch:re,components:Pt,directives:Pt,watch:wl,provide:qs,inject:vl};function qs(e,t){return t?e?function(){return Y(P(e)?e.call(this,this):e,P(t)?t.call(this,this):t)}:t:e}function vl(e,t){return Pt(ss(e),ss(t))}function ss(e){if(M(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function re(e,t){return e?[...new Set([].concat(e,t))]:t}function Pt(e,t){return e?Y(Object.create(null),e,t):t}function Js(e,t){return e?M(e)&&M(t)?[...new Set([...e,...t])]:Y(Object.create(null),ks(e),ks(t??{})):t}function wl(e,t){if(!e)return t;if(!t)return e;const n=Y(Object.create(null),e);for(const s in t)n[s]=re(e[s],t[s]);return n}function fo(){return{app:null,config:{isNativeTag:wr,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let xl=0;function Sl(e,t){return function(s,r=null){P(s)||(s=Y({},s)),r!=null&&!W(r)&&(x("root props passed to app.mount() must be an object."),r=null);const o=fo(),i=new WeakSet,l=[];let f=!1;const p=o.app={_uid:xl++,_component:s,_props:r,_container:null,_context:o,_instance:null,version:or,get config(){return o.config},set config(d){x("app.config cannot be replaced. Modify individual options instead.")},use(d,...a){return i.has(d)?x("Plugin has already been applied to target app."):d&&P(d.install)?(i.add(d),d.install(p,...a)):P(d)?(i.add(d),d(p,...a)):x('A plugin must either be a function or an object with an "install" function.'),p},mixin(d){return o.mixins.includes(d)?x("Mixin has already been applied to target app"+(d.name?`: ${d.name}`:"")):o.mixins.push(d),p},component(d,a){return fs(d,o.config),a?(o.components[d]&&x(`Component "${d}" has already been registered in target app.`),o.components[d]=a,p):o.components[d]},directive(d,a){return no(d),a?(o.directives[d]&&x(`Directive "${d}" has already been registered in target app.`),o.directives[d]=a,p):o.directives[d]},mount(d,a,g){if(f)x("App has already been mounted.\nIf you want to remount the same app, move your app creation logic into a factory function and create fresh app instances for each mount - e.g. `const createMyApp = () => createApp(App)`");else{d.__vue_app__&&x("There is already an app instance mounted on the host container.\n If you want to mount another app on the same host container, you need to unmount the previous app by calling `app.unmount()` first.");const C=p._ceVNode||Be(s,r);return C.appContext=o,g===!0?g="svg":g===!1&&(g=void 0),o.reload=()=>{const I=et(C);I.el=null,e(I,d,g)},e(C,d,g),f=!0,p._container=d,d.__vue_app__=p,p._instance=C.component,Ui(p,or),Pn(C.component)}},onUnmount(d){typeof d!="function"&&x(`Expected function as first argument to app.onUnmount(), but got ${typeof d}`),l.push(d)},unmount(){f?(He(l,p._instance,16),e(null,p._container),p._instance=null,Bi(p),delete p._container.__vue_app__):x("Cannot unmount an app that is not mounted.")},provide(d,a){return d in o.provides&&(H(o.provides,d)?x(`App already provides property with key "${String(d)}". It will be overwritten with the new value.`):x(`App already provides property with key "${String(d)}" inherited from its parent element. It will be overwritten with the new value.`)),o.provides[d]=a,p},runWithContext(d){const a=wt;wt=p;try{return d()}finally{wt=a}}};return p}}let wt=null;function Cl(e,t){if(!ee)x("provide() can only be used inside setup().");else{let n=ee.provides;const s=ee.parent&&ee.parent.provides;s===n&&(n=ee.provides=Object.create(s)),n[e]=t}}function sn(e,t,n=!1){const s=Mo();if(s||wt){let r=wt?wt._context.provides:s?s.parent==null||s.ce?s.vnode.appContext&&s.vnode.appContext.provides:s.parent.provides:void 0;if(r&&e in r)return r[e];if(arguments.length>1)return n&&P(t)?t.call(s&&s.proxy):t;x(`injection "${String(e)}" not found.`)}else x("inject() can only be used inside setup() or functional components.")}const uo={},ao=()=>Object.create(uo),po=e=>Object.getPrototypeOf(e)===uo;function Ol(e,t,n,s=!1){const r={},o=ao();e.propsDefaults=Object.create(null),ho(e,t,r,o);for(const i in e.propsOptions[0])i in r||(r[i]=void 0);mo(t||{},r,e),n?e.props=s?r:vi(r):e.type.props?e.props=r:e.props=o,e.attrs=o}function Tl(e){for(;e;){if(e.type.__hmrId)return!0;e=e.parent}}function El(e,t,n,s){const{props:r,attrs:o,vnode:{patchFlag:i}}=e,l=F(r),[f]=e.propsOptions;let p=!1;if(!Tl(e)&&(s||i>0)&&!(i&16)){if(i&8){const d=e.vnode.dynamicProps;for(let a=0;a<d.length;a++){let g=d[a];if(Mn(e.emitsOptions,g))continue;const C=t[g];if(f)if(H(o,g))C!==o[g]&&(o[g]=C,p=!0);else{const I=ve(g);r[I]=rs(f,l,I,C,e,!1)}else C!==o[g]&&(o[g]=C,p=!0)}}}else{ho(e,t,r,o)&&(p=!0);let d;for(const a in l)(!t||!H(t,a)&&((d=ke(a))===a||!H(t,d)))&&(f?n&&(n[a]!==void 0||n[d]!==void 0)&&(r[a]=rs(f,l,a,void 0,e,!0)):delete r[a]);if(o!==l)for(const a in o)(!t||!H(t,a))&&(delete o[a],p=!0)}p&&Ie(e.attrs,"set",""),mo(t||{},r,e)}function ho(e,t,n,s){const[r,o]=e.propsOptions;let i=!1,l;if(t)for(let f in t){if(It(f))continue;const p=t[f];let d;r&&H(r,d=ve(f))?!o||!o.includes(d)?n[d]=p:(l||(l={}))[d]=p:Mn(e.emitsOptions,f)||(!(f in s)||p!==s[f])&&(s[f]=p,i=!0)}if(o){const f=F(n),p=l||U;for(let d=0;d<o.length;d++){const a=o[d];n[a]=rs(r,f,a,p[a],e,!H(p,a))}}return i}function rs(e,t,n,s,r,o){const i=e[n];if(i!=null){const l=H(i,"default");if(l&&s===void 0){const f=i.default;if(i.type!==Function&&!i.skipFactory&&P(f)){const{propsDefaults:p}=r;if(n in p)s=p[n];else{const d=Jt(r);s=p[n]=f.call(null,t),d()}}else s=f;r.ce&&r.ce._setProp(n,s)}i[0]&&(o&&!l?s=!1:i[1]&&(s===""||s===ke(n))&&(s=!0))}return s}const $l=new WeakMap;function go(e,t,n=!1){const s=n?$l:t.propsCache,r=s.get(e);if(r)return r;const o=e.props,i={},l=[];let f=!1;if(!P(e)){const d=a=>{f=!0;const[g,C]=go(a,t,!0);Y(i,g),C&&l.push(...C)};!n&&t.mixins.length&&t.mixins.forEach(d),e.extends&&d(e.extends),e.mixins&&e.mixins.forEach(d)}if(!o&&!f)return W(e)&&s.set(e,_t),_t;if(M(o))for(let d=0;d<o.length;d++){q(o[d])||x("props must be strings when using array syntax.",o[d]);const a=ve(o[d]);Ys(a)&&(i[a]=U)}else if(o){W(o)||x("invalid props options",o);for(const d in o){const a=ve(d);if(Ys(a)){const g=o[d],C=i[a]=M(g)||P(g)?{type:g}:Y({},g),I=C.type;let E=!1,z=!0;if(M(I))for(let G=0;G<I.length;++G){const V=I[G],N=P(V)&&V.name;if(N==="Boolean"){E=!0;break}else N==="String"&&(z=!1)}else E=P(I)&&I.name==="Boolean";C[0]=E,C[1]=z,(E||H(C,"default"))&&l.push(a)}}}const p=[i,l];return W(e)&&s.set(e,p),p}function Ys(e){return e[0]!=="$"&&!It(e)?!0:(x(`Invalid prop name: "${e}" is a reserved property.`),!1)}function Ml(e){return e===null?"null":typeof e=="function"?e.name||"":typeof e=="object"&&e.constructor&&e.constructor.name||""}function mo(e,t,n){const s=F(t),r=n.propsOptions[0],o=Object.keys(e).map(i=>ve(i));for(const i in r){let l=r[i];l!=null&&Al(i,s[i],l,Fe(s),!o.includes(i))}}function Al(e,t,n,s,r){const{type:o,required:i,validator:l,skipCheck:f}=n;if(i&&r){x('Missing required prop: "'+e+'"');return}if(!(t==null&&!i)){if(o!=null&&o!==!0&&!f){let p=!1;const d=M(o)?o:[o],a=[];for(let g=0;g<d.length&&!p;g++){const{valid:C,expectedType:I}=Il(t,d[g]);a.push(I||""),p=C}if(!p){x(Rl(e,t,a));return}}l&&!l(t,s)&&x('Invalid prop: custom validator check failed for prop "'+e+'".')}}const Pl=Ge("String,Number,Boolean,Function,Symbol,BigInt");function Il(e,t){let n;const s=Ml(t);if(s==="null")n=e===null;else if(Pl(s)){const r=typeof e;n=r===s.toLowerCase(),!n&&r==="object"&&(n=e instanceof t)}else s==="Object"?n=W(e):s==="Array"?n=M(e):n=e instanceof t;return{valid:n,expectedType:s}}function Rl(e,t,n){if(n.length===0)return`Prop type [] for prop "${e}" won't match anything. Did you mean to use type Array instead?`;let s=`Invalid prop: type check failed for prop "${e}". Expected ${n.map(Sn).join(" | ")}`;const r=n[0],o=ps(t),i=zs(t,r),l=zs(t,o);return n.length===1&&Xs(r)&&!Fl(r,o)&&(s+=` with value ${i}`),s+=`, got ${o} `,Xs(o)&&(s+=`with value ${l}.`),s}function zs(e,t){return t==="String"?`"${e}"`:t==="Number"?`${Number(e)}`:`${e}`}function Xs(e){return["string","number","boolean"].some(n=>e.toLowerCase()===n)}function Fl(...e){return e.some(t=>t.toLowerCase()==="boolean")}const $s=e=>e==="_"||e==="_ctx"||e==="$stable",Ms=e=>M(e)?e.map(_e):[_e(e)],jl=(e,t,n)=>{if(t._n)return t;const s=zi((...r)=>(ee&&!(n===null&&ie)&&!(n&&n.root!==ee.root)&&x(`Slot "${e}" invoked outside of the render function: this will not track dependencies used in the slot. Invoke the slot function inside the render function instead.`),Ms(t(...r))),n);return s._c=!1,s},bo=(e,t,n)=>{const s=e._ctx;for(const r in e){if($s(r))continue;const o=e[r];if(P(o))t[r]=jl(r,o,s);else if(o!=null){x(`Non-function value encountered for slot "${r}". Prefer function slots for better performance.`);const i=Ms(o);t[r]=()=>i}}},yo=(e,t)=>{Ts(e.vnode)||x("Non-function value encountered for default slot. Prefer function slots for better performance.");const n=Ms(t);e.slots.default=()=>n},os=(e,t,n)=>{for(const s in t)(n||!$s(s))&&(e[s]=t[s])},Dl=(e,t,n)=>{const s=e.slots=ao();if(e.vnode.shapeFlag&32){const r=t._;r?(os(s,t,n),n&&fn(s,"_",r,!0)):bo(t,s)}else t&&yo(e,t)},Hl=(e,t,n)=>{const{vnode:s,slots:r}=e;let o=!0,i=U;if(s.shapeFlag&32){const l=t._;l?je?(os(r,t,n),Ie(e,"set","$slots")):n&&l===1?o=!1:os(r,t,n):(o=!t.$stable,bo(t,r)),i=t}else t&&(yo(e,t),i={default:1});if(o)for(const l in r)!$s(l)&&i[l]==null&&delete r[l]};let $t,Ke;function ht(e,t){e.appContext.config.performance&&yn()&&Ke.mark(`vue-${t}-${e.uid}`),qi(e,t,yn()?Ke.now():Date.now())}function gt(e,t){if(e.appContext.config.performance&&yn()){const n=`vue-${t}-${e.uid}`,s=n+":end",r=`<${In(e,e.type)}> ${t}`;Ke.mark(s),Ke.measure(r,n,s),Ke.clearMeasures(r),Ke.clearMarks(n),Ke.clearMarks(s)}Ji(e,t,yn()?Ke.now():Date.now())}function yn(){return $t!==void 0||(typeof window<"u"&&window.performance?($t=!0,Ke=window.performance):$t=!1),$t}function Ll(){const e=[];if(e.length){const t=e.length>1;console.warn(`Feature flag${t?"s":""} ${e.join(", ")} ${t?"are":"is"} not explicitly defined. You are running the esm-bundler build of Vue, which expects these compile-time feature flags to be globally injected via the bundler config in order to get better tree-shaking in the production bundle.
|
|
17
|
+
|
|
18
|
+
For more details, see https://link.vuejs.org/feature-flags.`)}}const he=Ql;function Nl(e){return Vl(e)}function Vl(e,t){Ll();const n=Wt();n.__VUE__=!0,Zr(n.__VUE_DEVTOOLS_GLOBAL_HOOK__,n);const{insert:s,remove:r,patchProp:o,createElement:i,createText:l,createComment:f,setText:p,setElementText:d,parentNode:a,nextSibling:g,setScopeId:C=ne,insertStaticContent:I}=e,E=(c,u,h,y=null,b=null,m=null,S=void 0,w=null,v=je?!1:!!u.dynamicChildren)=>{if(c===u)return;c&&!Mt(c,u)&&(y=zt(c),ze(c,b,m,!0),c=null),u.patchFlag===-2&&(v=!1,u.dynamicChildren=null);const{type:_,ref:A,shapeFlag:O}=u;switch(_){case qt:z(c,u,h,y);break;case me:G(c,u,h,y);break;case rn:c==null?V(u,h,y,S):N(c,u,h,S);break;case Pe:Yt(c,u,h,y,b,m,S,w,v);break;default:O&1?X(c,u,h,y,b,m,S,w,v):O&6?Is(c,u,h,y,b,m,S,w,v):O&64||O&128?_.process(c,u,h,y,b,m,S,w,v,Ot):x("Invalid VNode type:",_,`(${typeof _})`)}A!=null&&b?jt(A,c&&c.ref,m,u||c,!u):A==null&&c&&c.ref!=null&&jt(c.ref,null,m,c,!0)},z=(c,u,h,y)=>{if(c==null)s(u.el=l(u.children),h,y);else{const b=u.el=c.el;u.children!==c.children&&p(b,u.children)}},G=(c,u,h,y)=>{c==null?s(u.el=f(u.children||""),h,y):u.el=c.el},V=(c,u,h,y)=>{[c.el,c.anchor]=I(c.children,u,h,y,c.el,c.anchor)},N=(c,u,h,y)=>{if(u.children!==c.children){const b=g(c.anchor);$(c),[u.el,u.anchor]=I(u.children,h,b,y)}else u.el=c.el,u.anchor=c.anchor},pe=({el:c,anchor:u},h,y)=>{let b;for(;c&&c!==u;)b=g(c),s(c,h,y),c=b;s(u,h,y)},$=({el:c,anchor:u})=>{let h;for(;c&&c!==u;)h=g(c),r(c),c=h;r(u)},X=(c,u,h,y,b,m,S,w,v)=>{u.type==="svg"?S="svg":u.type==="math"&&(S="mathml"),c==null?be(u,h,y,b,m,S,w,v):Le(c,u,b,m,S,w,v)},be=(c,u,h,y,b,m,S,w)=>{let v,_;const{props:A,shapeFlag:O,transition:T,dirs:R}=c;if(v=c.el=i(c.type,m,A&&A.is,A),O&8?d(v,c.children):O&16&&ce(c.children,v,null,y,b,Bn(c,m),S,w),R&&nt(c,null,y,"created"),te(v,c,c.scopeId,S,y),A){for(const k in A)k!=="value"&&!It(k)&&o(v,k,null,A[k],m,y);"value"in A&&o(v,"value",null,A.value,m),(_=A.onVnodeBeforeMount)&&Me(_,y,c)}fn(v,"__vnode",c,!0),fn(v,"__vueParentComponent",y,!0),R&&nt(c,null,y,"beforeMount");const D=Kl(b,T);D&&T.beforeEnter(v),s(v,u,h),((_=A&&A.onVnodeMounted)||D||R)&&he(()=>{_&&Me(_,y,c),D&&T.enter(v),R&&nt(c,null,y,"mounted")},b)},te=(c,u,h,y,b)=>{if(h&&C(c,h),y)for(let m=0;m<y.length;m++)C(c,y[m]);if(b){let m=b.subTree;if(m.patchFlag>0&&m.patchFlag&2048&&(m=As(m.children)||m),u===m||Co(m.type)&&(m.ssContent===u||m.ssFallback===u)){const S=b.vnode;te(c,S,S.scopeId,S.slotScopeIds,b.parent)}}},ce=(c,u,h,y,b,m,S,w,v=0)=>{for(let _=v;_<c.length;_++){const A=c[_]=w?Ze(c[_]):_e(c[_]);E(null,A,u,h,y,b,m,S,w)}},Le=(c,u,h,y,b,m,S)=>{const w=u.el=c.el;w.__vnode=u;let{patchFlag:v,dynamicChildren:_,dirs:A}=u;v|=c.patchFlag&16;const O=c.props||U,T=u.props||U;let R;if(h&&st(h,!1),(R=T.onVnodeBeforeUpdate)&&Me(R,h,u,c),A&&nt(u,c,h,"beforeUpdate"),h&&st(h,!0),je&&(v=0,S=!1,_=null),(O.innerHTML&&T.innerHTML==null||O.textContent&&T.textContent==null)&&d(w,""),_?(Je(c.dynamicChildren,_,w,h,y,Bn(u,b),m),is(c,u)):S||Oe(c,u,w,null,h,y,Bn(u,b),m,!1),v>0){if(v&16)ye(w,O,T,h,b);else if(v&2&&O.class!==T.class&&o(w,"class",null,T.class,b),v&4&&o(w,"style",O.style,T.style,b),v&8){const D=u.dynamicProps;for(let k=0;k<D.length;k++){const B=D[k],ue=O[B],ae=T[B];(ae!==ue||B==="value")&&o(w,B,ue,ae,b,h)}}v&1&&c.children!==u.children&&d(w,u.children)}else!S&&_==null&&ye(w,O,T,h,b);((R=T.onVnodeUpdated)||A)&&he(()=>{R&&Me(R,h,u,c),A&&nt(u,c,h,"updated")},y)},Je=(c,u,h,y,b,m,S)=>{for(let w=0;w<u.length;w++){const v=c[w],_=u[w],A=v.el&&(v.type===Pe||!Mt(v,_)||v.shapeFlag&198)?a(v.el):h;E(v,_,A,null,y,b,m,S,!0)}},ye=(c,u,h,y,b)=>{if(u!==h){if(u!==U)for(const m in u)!It(m)&&!(m in h)&&o(c,m,u[m],null,b,y);for(const m in h){if(It(m))continue;const S=h[m],w=u[m];S!==w&&m!=="value"&&o(c,m,w,S,b,y)}"value"in h&&o(c,"value",u.value,h.value,b)}},Yt=(c,u,h,y,b,m,S,w,v)=>{const _=u.el=c?c.el:l(""),A=u.anchor=c?c.anchor:l("");let{patchFlag:O,dynamicChildren:T,slotScopeIds:R}=u;(je||O&2048)&&(O=0,v=!1,T=null),R&&(w=w?w.concat(R):R),c==null?(s(_,h,y),s(A,h,y),ce(u.children||[],h,A,b,m,S,w,v)):O>0&&O&64&&T&&c.dynamicChildren?(Je(c.dynamicChildren,T,h,b,m,S,w),is(c,u)):Oe(c,u,h,A,b,m,S,w,v)},Is=(c,u,h,y,b,m,S,w,v)=>{u.slotScopeIds=w,c==null?u.shapeFlag&512?b.ctx.activate(u,h,y,S,v):Ye(u,h,y,b,m,S,v):fe(c,u,v)},Ye=(c,u,h,y,b,m,S)=>{const w=c.component=uc(c,y,b);if(w.type.__hmrId&&Li(w),en(c),ht(w,"mount"),Ts(c)&&(w.ctx.renderer=Ot),ht(w,"init"),dc(w,!1,S),gt(w,"init"),je&&(c.el=null),w.asyncDep){if(b&&b.registerDep(w,L,S),!c.el){const v=w.subTree=Be(me);G(null,v,u,h),c.placeholder=v.el}}else L(w,c,u,h,b,m,S);tn(),gt(w,"mount")},fe=(c,u,h)=>{const y=u.component=c.component;if(Xl(c,u,h))if(y.asyncDep&&!y.asyncResolved){en(u),j(y,u,h),tn();return}else y.next=u,y.update();else u.el=c.el,y.vnode=u},L=(c,u,h,y,b,m,S)=>{const w=()=>{if(c.isMounted){let{next:O,bu:T,u:R,parent:D,vnode:k}=c;{const Ee=_o(c);if(Ee){O&&(O.el=k.el,j(c,O,S)),Ee.asyncDep.then(()=>{c.isUnmounted||w()});return}}let B=O,ue;en(O||c.vnode),st(c,!1),O?(O.el=k.el,j(c,O,S)):O=k,T&&mt(T),(ue=O.props&&O.props.onVnodeBeforeUpdate)&&Me(ue,D,O,k),st(c,!0),ht(c,"render");const ae=Qs(c);gt(c,"render");const Te=c.subTree;c.subTree=ae,ht(c,"patch"),E(Te,ae,a(Te.el),zt(Te),c,b,m),gt(c,"patch"),O.el=ae.el,B===null&&Zl(c,ae.el),R&&he(R,b),(ue=O.props&&O.props.onVnodeUpdated)&&he(()=>Me(ue,D,O,k),b),Qr(c),tn()}else{let O;const{el:T,props:R}=u,{bm:D,m:k,parent:B,root:ue,type:ae}=c,Te=Dt(u);st(c,!1),D&&mt(D),!Te&&(O=R&&R.onVnodeBeforeMount)&&Me(O,B,u),st(c,!0);{ue.ce&&ue.ce._def.shadowRoot!==!1&&ue.ce._injectChildStyle(ae),ht(c,"render");const Ee=c.subTree=Qs(c);gt(c,"render"),ht(c,"patch"),E(null,Ee,h,y,c,b,m),gt(c,"patch"),u.el=Ee.el}if(k&&he(k,b),!Te&&(O=R&&R.onVnodeMounted)){const Ee=u;he(()=>Me(O,B,Ee),b)}(u.shapeFlag&256||B&&Dt(B.vnode)&&B.vnode.shapeFlag&256)&&c.a&&he(c.a,b),c.isMounted=!0,Wi(c),u=h=y=null}};c.scope.on();const v=c.effect=new $r(w);c.scope.off();const _=c.update=v.run.bind(v),A=c.job=v.runIfDirty.bind(v);A.i=c,A.id=c.uid,v.scheduler=()=>En(A),st(c,!0),v.onTrack=c.rtc?O=>mt(c.rtc,O):void 0,v.onTrigger=c.rtg?O=>mt(c.rtg,O):void 0,_()},j=(c,u,h)=>{u.component=c;const y=c.vnode.props;c.vnode=u,c.next=null,El(c,u.props,y,h),Hl(c,u.children,h),Se(),Ks(c),Ce()},Oe=(c,u,h,y,b,m,S,w,v=!1)=>{const _=c&&c.children,A=c?c.shapeFlag:0,O=u.children,{patchFlag:T,shapeFlag:R}=u;if(T>0){if(T&128){St(_,O,h,y,b,m,S,w,v);return}else if(T&256){Rn(_,O,h,y,b,m,S,w,v);return}}R&8?(A&16&&Ct(_,b,m),O!==_&&d(h,O)):A&16?R&16?St(_,O,h,y,b,m,S,w,v):Ct(_,b,m,!0):(A&8&&d(h,""),R&16&&ce(O,h,y,b,m,S,w,v))},Rn=(c,u,h,y,b,m,S,w,v)=>{c=c||_t,u=u||_t;const _=c.length,A=u.length,O=Math.min(_,A);let T;for(T=0;T<O;T++){const R=u[T]=v?Ze(u[T]):_e(u[T]);E(c[T],R,h,null,b,m,S,w,v)}_>A?Ct(c,b,m,!0,!1,O):ce(u,h,y,b,m,S,w,v,O)},St=(c,u,h,y,b,m,S,w,v)=>{let _=0;const A=u.length;let O=c.length-1,T=A-1;for(;_<=O&&_<=T;){const R=c[_],D=u[_]=v?Ze(u[_]):_e(u[_]);if(Mt(R,D))E(R,D,h,null,b,m,S,w,v);else break;_++}for(;_<=O&&_<=T;){const R=c[O],D=u[T]=v?Ze(u[T]):_e(u[T]);if(Mt(R,D))E(R,D,h,null,b,m,S,w,v);else break;O--,T--}if(_>O){if(_<=T){const R=T+1,D=R<A?u[R].el:y;for(;_<=T;)E(null,u[_]=v?Ze(u[_]):_e(u[_]),h,D,b,m,S,w,v),_++}}else if(_>T)for(;_<=O;)ze(c[_],b,m,!0),_++;else{const R=_,D=_,k=new Map;for(_=D;_<=T;_++){const se=u[_]=v?Ze(u[_]):_e(u[_]);se.key!=null&&(k.has(se.key)&&x("Duplicate keys found during update:",JSON.stringify(se.key),"Make sure keys are unique."),k.set(se.key,_))}let B,ue=0;const ae=T-D+1;let Te=!1,Ee=0;const Tt=new Array(ae);for(_=0;_<ae;_++)Tt[_]=0;for(_=R;_<=O;_++){const se=c[_];if(ue>=ae){ze(se,b,m,!0);continue}let $e;if(se.key!=null)$e=k.get(se.key);else for(B=D;B<=T;B++)if(Tt[B-D]===0&&Mt(se,u[B])){$e=B;break}$e===void 0?ze(se,b,m,!0):(Tt[$e-D]=_+1,$e>=Ee?Ee=$e:Te=!0,E(se,u[$e],h,null,b,m,S,w,v),ue++)}const Fs=Te?Ul(Tt):_t;for(B=Fs.length-1,_=ae-1;_>=0;_--){const se=D+_,$e=u[se],js=u[se+1],Ds=se+1<A?js.el||js.placeholder:y;Tt[_]===0?E(null,$e,h,Ds,b,m,S,w,v):Te&&(B<0||_!==Fs[B]?dt($e,h,Ds,2):B--)}}},dt=(c,u,h,y,b=null)=>{const{el:m,type:S,transition:w,children:v,shapeFlag:_}=c;if(_&6){dt(c.component.subTree,u,h,y);return}if(_&128){c.suspense.move(u,h,y);return}if(_&64){S.move(c,u,h,Ot);return}if(S===Pe){s(m,u,h);for(let O=0;O<v.length;O++)dt(v[O],u,h,y);s(c.anchor,u,h);return}if(S===rn){pe(c,u,h);return}if(y!==2&&_&1&&w)if(y===0)w.beforeEnter(m),s(m,u,h),he(()=>w.enter(m),b);else{const{leave:O,delayLeave:T,afterLeave:R}=w,D=()=>{c.ctx.isUnmounted?r(m):s(m,u,h)},k=()=>{m._isLeaving&&m[Qi](!0),O(m,()=>{D(),R&&R()})};T?T(m,D,k):k()}else s(m,u,h)},ze=(c,u,h,y=!1,b=!1)=>{const{type:m,props:S,ref:w,children:v,dynamicChildren:_,shapeFlag:A,patchFlag:O,dirs:T,cacheIndex:R}=c;if(O===-2&&(b=!1),w!=null&&(Se(),jt(w,null,h,c,!0),Ce()),R!=null&&(u.renderCache[R]=void 0),A&256){u.ctx.deactivate(c);return}const D=A&1&&T,k=!Dt(c);let B;if(k&&(B=S&&S.onVnodeBeforeUnmount)&&Me(B,u,c),A&6)Do(c.component,h,y);else{if(A&128){c.suspense.unmount(h,y);return}D&&nt(c,null,u,"beforeUnmount"),A&64?c.type.remove(c,u,h,Ot,y):_&&!_.hasOnce&&(m!==Pe||O>0&&O&64)?Ct(_,u,h,!1,!0):(m===Pe&&O&384||!b&&A&16)&&Ct(v,u,h),y&&Fn(c)}(k&&(B=S&&S.onVnodeUnmounted)||D)&&he(()=>{B&&Me(B,u,c),D&&nt(c,null,u,"unmounted")},h)},Fn=c=>{const{type:u,el:h,anchor:y,transition:b}=c;if(u===Pe){c.patchFlag>0&&c.patchFlag&2048&&b&&!b.persisted?c.children.forEach(S=>{S.type===me?r(S.el):Fn(S)}):jo(h,y);return}if(u===rn){$(c);return}const m=()=>{r(h),b&&!b.persisted&&b.afterLeave&&b.afterLeave()};if(c.shapeFlag&1&&b&&!b.persisted){const{leave:S,delayLeave:w}=b,v=()=>S(h,m);w?w(c.el,m,v):v()}else m()},jo=(c,u)=>{let h;for(;c!==u;)h=g(c),r(c),c=h;r(u)},Do=(c,u,h)=>{c.type.__hmrId&&Ni(c);const{bum:y,scope:b,job:m,subTree:S,um:w,m:v,a:_}=c;Zs(v),Zs(_),y&&mt(y),b.stop(),m&&(m.flags|=8,ze(S,c,u,h)),w&&he(w,u),he(()=>{c.isUnmounted=!0},u),Gi(c)},Ct=(c,u,h,y=!1,b=!1,m=0)=>{for(let S=m;S<c.length;S++)ze(c[S],u,h,y,b)},zt=c=>{if(c.shapeFlag&6)return zt(c.component.subTree);if(c.shapeFlag&128)return c.suspense.next();const u=g(c.anchor||c.el),h=u&&u[Xi];return h?g(h):u};let jn=!1;const Rs=(c,u,h)=>{c==null?u._vnode&&ze(u._vnode,null,null,!0):E(u._vnode||null,c,u,null,null,null,h),u._vnode=c,jn||(jn=!0,Ks(),Yr(),jn=!1)},Ot={p:E,um:ze,m:dt,r:Fn,mt:Ye,mc:ce,pc:Oe,pbc:Je,n:zt,o:e};return{render:Rs,hydrate:void 0,createApp:Sl(Rs)}}function Bn({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function st({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Kl(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function is(e,t,n=!1){const s=e.children,r=t.children;if(M(s)&&M(r))for(let o=0;o<s.length;o++){const i=s[o];let l=r[o];l.shapeFlag&1&&!l.dynamicChildren&&((l.patchFlag<=0||l.patchFlag===32)&&(l=r[o]=Ze(r[o]),l.el=i.el),!n&&l.patchFlag!==-2&&is(i,l)),l.type===qt&&l.patchFlag!==-1&&(l.el=i.el),l.type===me&&!l.el&&(l.el=i.el),l.el&&(l.el.__vnode=l)}}function Ul(e){const t=e.slice(),n=[0];let s,r,o,i,l;const f=e.length;for(s=0;s<f;s++){const p=e[s];if(p!==0){if(r=n[n.length-1],e[r]<p){t[s]=r,n.push(s);continue}for(o=0,i=n.length-1;o<i;)l=o+i>>1,e[n[l]]<p?o=l+1:i=l;p<e[n[o]]&&(o>0&&(t[s]=n[o-1]),n[o]=s)}}for(o=n.length,i=n[o-1];o-- >0;)n[o]=i,i=t[i];return n}function _o(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:_o(t)}function Zs(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}const Bl=Symbol.for("v-scx"),Wl=()=>{{const e=sn(Bl);return e||x("Server rendering context not provided. Make sure to only call useSSRContext() conditionally in the server build."),e}};function Wn(e,t,n){return P(t)||x("`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."),vo(e,t,n)}function vo(e,t,n=U){const{immediate:s,deep:r,flush:o,once:i}=n;t||(s!==void 0&&x('watch() "immediate" option is only respected when using the watch(source, callback, options?) signature.'),r!==void 0&&x('watch() "deep" option is only respected when using the watch(source, callback, options?) signature.'),i!==void 0&&x('watch() "once" option is only respected when using the watch(source, callback, options?) signature.'));const l=Y({},n);l.onWarn=x;const f=t&&s||!t&&o!=="post";let p;if(Ut){if(o==="sync"){const C=Wl();p=C.__watcherHandles||(C.__watcherHandles=[])}else if(!f){const C=()=>{};return C.stop=ne,C.resume=ne,C.pause=ne,C}}const d=ee;l.call=(C,I,E)=>He(C,d,I,E);let a=!1;o==="post"?l.scheduler=C=>{he(C,d&&d.suspense)}:o!=="sync"&&(a=!0,l.scheduler=(C,I)=>{I?C():En(C)}),l.augmentJob=C=>{t&&(C.flags|=4),a&&(C.flags|=2,d&&(C.id=d.uid,C.i=d))};const g=Mi(e,t,l);return Ut&&(p?p.push(g):f&&g()),g}function kl(e,t,n){const s=this.proxy,r=q(e)?e.includes(".")?wo(s,e):()=>s[e]:e.bind(s,s);let o;P(t)?o=t:(o=t.handler,n=t);const i=Jt(this),l=vo(r,o.bind(s),n);return i(),l}function wo(e,t){const n=t.split(".");return()=>{let s=e;for(let r=0;r<n.length&&s;r++)s=s[n[r]];return s}}const Gl=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${ve(t)}Modifiers`]||e[`${ke(t)}Modifiers`];function ql(e,t,...n){if(e.isUnmounted)return;const s=e.vnode.props||U;{const{emitsOptions:d,propsOptions:[a]}=e;if(d)if(!(t in d))(!a||!(rt(ve(t))in a))&&x(`Component emitted event "${t}" but it is neither declared in the emits option nor as an "${rt(ve(t))}" prop.`);else{const g=d[t];P(g)&&(g(...n)||x(`Invalid event arguments: event validation failed for event "${t}".`))}}let r=n;const o=t.startsWith("update:"),i=o&&Gl(s,t.slice(7));i&&(i.trim&&(r=n.map(d=>q(d)?d.trim():d)),i.number&&(r=n.map(Jn))),Yi(e,t,r);{const d=t.toLowerCase();d!==t&&s[rt(d)]&&x(`Event "${d}" is emitted in component ${In(e,e.type)} but the handler is registered for "${t}". Note that HTML attributes are case-insensitive and you cannot use v-on to listen to camelCase events when using in-DOM templates. You should probably use "${ke(t)}" instead of "${t}".`)}let l,f=s[l=rt(t)]||s[l=rt(ve(t))];!f&&o&&(f=s[l=rt(ke(t))]),f&&He(f,e,6,r);const p=s[l+"Once"];if(p){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,He(p,e,6,r)}}const Jl=new WeakMap;function xo(e,t,n=!1){const s=n?Jl:t.emitsCache,r=s.get(e);if(r!==void 0)return r;const o=e.emits;let i={},l=!1;if(!P(e)){const f=p=>{const d=xo(p,t,!0);d&&(l=!0,Y(i,d))};!n&&t.mixins.length&&t.mixins.forEach(f),e.extends&&f(e.extends),e.mixins&&e.mixins.forEach(f)}return!o&&!l?(W(e)&&s.set(e,null),null):(M(o)?o.forEach(f=>i[f]=null):Y(i,o),W(e)&&s.set(e,i),i)}function Mn(e,t){return!e||!Bt(t)?!1:(t=t.slice(2).replace(/Once$/,""),H(e,t[0].toLowerCase()+t.slice(1))||H(e,ke(t))||H(e,t))}let ls=!1;function _n(){ls=!0}function Qs(e){const{type:t,vnode:n,proxy:s,withProxy:r,propsOptions:[o],slots:i,attrs:l,emit:f,render:p,renderCache:d,props:a,data:g,setupState:C,ctx:I,inheritAttrs:E}=e,z=gn(e);let G,V;ls=!1;try{if(n.shapeFlag&4){const $=r||s,X=C.__isScriptSetup?new Proxy($,{get(be,te,ce){return x(`Property '${String(te)}' was accessed via 'this'. Avoid using 'this' in templates.`),Reflect.get(be,te,ce)}}):$;G=_e(p.call(X,$,d,Fe(a),C,g,I)),V=l}else{const $=t;l===a&&_n(),G=_e($.length>1?$(Fe(a),{get attrs(){return _n(),Fe(l)},slots:i,emit:f}):$(Fe(a),null)),V=t.props?l:Yl(l)}}catch($){Ht.length=0,kt($,e,1),G=Be(me)}let N=G,pe;if(G.patchFlag>0&&G.patchFlag&2048&&([N,pe]=So(G)),V&&E!==!1){const $=Object.keys(V),{shapeFlag:X}=N;if($.length){if(X&7)o&&$.some(cn)&&(V=zl(V,o)),N=et(N,V,!1,!0);else if(!ls&&N.type!==me){const be=Object.keys(l),te=[],ce=[];for(let Le=0,Je=be.length;Le<Je;Le++){const ye=be[Le];Bt(ye)?cn(ye)||te.push(ye[2].toLowerCase()+ye.slice(3)):ce.push(ye)}ce.length&&x(`Extraneous non-props attributes (${ce.join(", ")}) were passed to component but could not be automatically inherited because component renders fragment or text or teleport root nodes.`),te.length&&x(`Extraneous non-emits event listeners (${te.join(", ")}) were passed to component but could not be automatically inherited because component renders fragment or text root nodes. If the listener is intended to be a component custom event listener only, declare it using the "emits" option.`)}}}return n.dirs&&(er(N)||x("Runtime directive used on component with non-element root node. The directives will not function as intended."),N=et(N,null,!1,!0),N.dirs=N.dirs?N.dirs.concat(n.dirs):n.dirs),n.transition&&(er(N)||x("Component inside <Transition> renders non-element root node that cannot be animated."),Os(N,n.transition)),pe?pe(N):G=N,gn(z),G}const So=e=>{const t=e.children,n=e.dynamicChildren,s=As(t,!1);if(s){if(s.patchFlag>0&&s.patchFlag&2048)return So(s)}else return[e,void 0];const r=t.indexOf(s),o=n?n.indexOf(s):-1,i=l=>{t[r]=l,n&&(o>-1?n[o]=l:l.patchFlag>0&&(e.dynamicChildren=[...n,l]))};return[_e(s),i]};function As(e,t=!0){let n;for(let s=0;s<e.length;s++){const r=e[s];if(An(r)){if(r.type!==me||r.children==="v-if"){if(n)return;if(n=r,t&&n.patchFlag>0&&n.patchFlag&2048)return As(n.children)}}else return}return n}const Yl=e=>{let t;for(const n in e)(n==="class"||n==="style"||Bt(n))&&((t||(t={}))[n]=e[n]);return t},zl=(e,t)=>{const n={};for(const s in e)(!cn(s)||!(s.slice(9)in t))&&(n[s]=e[s]);return n},er=e=>e.shapeFlag&7||e.type===me;function Xl(e,t,n){const{props:s,children:r,component:o}=e,{props:i,children:l,patchFlag:f}=t,p=o.emitsOptions;if((r||l)&&je||t.dirs||t.transition)return!0;if(n&&f>=0){if(f&1024)return!0;if(f&16)return s?tr(s,i,p):!!i;if(f&8){const d=t.dynamicProps;for(let a=0;a<d.length;a++){const g=d[a];if(i[g]!==s[g]&&!Mn(p,g))return!0}}}else return(r||l)&&(!l||!l.$stable)?!0:s===i?!1:s?i?tr(s,i,p):!0:!!i;return!1}function tr(e,t,n){const s=Object.keys(t);if(s.length!==Object.keys(e).length)return!0;for(let r=0;r<s.length;r++){const o=s[r];if(t[o]!==e[o]&&!Mn(n,o))return!0}return!1}function Zl({vnode:e,parent:t},n){for(;t;){const s=t.subTree;if(s.suspense&&s.suspense.activeBranch===e&&(s.el=e.el),s===e)(e=t.vnode).el=n,t=t.parent;else break}}const Co=e=>e.__isSuspense;function Ql(e,t){t&&t.pendingBranch?M(e)?t.effects.push(...e):t.effects.push(e):Jr(e)}const Pe=Symbol.for("v-fgt"),qt=Symbol.for("v-txt"),me=Symbol.for("v-cmt"),rn=Symbol.for("v-stc"),Ht=[];let ge=null;function ec(e=!1){Ht.push(ge=e?null:[])}function tc(){Ht.pop(),ge=Ht[Ht.length-1]||null}let Kt=1;function nr(e,t=!1){Kt+=e,e<0&&ge&&t&&(ge.hasOnce=!0)}function Oo(e){return e.dynamicChildren=Kt>0?ge||_t:null,tc(),Kt>0&&ge&&ge.push(e),e}function rf(e,t,n,s,r,o){return Oo(Eo(e,t,n,s,r,o,!0))}function nc(e,t,n,s,r){return Oo(Be(e,t,n,s,r,!0))}function An(e){return e?e.__v_isVNode===!0:!1}function Mt(e,t){if(t.shapeFlag&6&&e.component){const n=nn.get(t.type);if(n&&n.has(e.component))return e.shapeFlag&=-257,t.shapeFlag&=-513,!1}return e.type===t.type&&e.key===t.key}const sc=(...e)=>rc(...e),To=({key:e})=>e??null,on=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?q(e)||J(e)||P(e)?{i:ie,r:e,k:t,f:!!n}:e:null);function Eo(e,t=null,n=null,s=0,r=null,o=e===Pe?0:1,i=!1,l=!1){const f={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&To(t),ref:t&&on(t),scopeId:to,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:o,patchFlag:s,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:ie};return l?(Ps(f,n),o&128&&e.normalize(f)):n&&(f.shapeFlag|=q(n)?8:16),f.key!==f.key&&x("VNode created with invalid key (NaN). VNode type:",f.type),Kt>0&&!i&&ge&&(f.patchFlag>0||o&6)&&f.patchFlag!==32&&ge.push(f),f}const Be=sc;function rc(e,t=null,n=null,s=0,r=null,o=!1){if((!e||e===dl)&&(e||x(`Invalid vnode type when creating vnode: ${e}.`),e=me),An(e)){const l=et(e,t,!0);return n&&Ps(l,n),Kt>0&&!o&&ge&&(l.shapeFlag&6?ge[ge.indexOf(e)]=l:ge.push(l)),l.patchFlag=-2,l}if(Ro(e)&&(e=e.__vccOpts),t){t=oc(t);let{class:l,style:f}=t;l&&!q(l)&&(t.class=ms(l)),W(f)&&(un(f)&&!M(f)&&(f=Y({},f)),t.style=gs(f))}const i=q(e)?1:Co(e)?128:Zi(e)?64:W(e)?4:P(e)?2:0;return i&4&&un(e)&&(e=F(e),x("Vue received a Component that was made a reactive object. This can lead to unnecessary performance overhead and should be avoided by marking the component with `markRaw` or using `shallowRef` instead of `ref`.",`
|
|
19
|
+
Component that was made reactive: `,e)),Eo(e,t,n,s,r,i,o,!0)}function oc(e){return e?un(e)||po(e)?Y({},e):e:null}function et(e,t,n=!1,s=!1){const{props:r,ref:o,patchFlag:i,children:l,transition:f}=e,p=t?lc(r||{},t):r,d={__v_isVNode:!0,__v_skip:!0,type:e.type,props:p,key:p&&To(p),ref:t&&t.ref?n&&o?M(o)?o.concat(on(t)):[o,on(t)]:on(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:i===-1&&M(l)?l.map($o):l,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Pe?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:f,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&et(e.ssContent),ssFallback:e.ssFallback&&et(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return f&&s&&Os(d,f.clone(d)),d}function $o(e){const t=et(e);return M(e.children)&&(t.children=e.children.map($o)),t}function ic(e=" ",t=0){return Be(qt,null,e,t)}function of(e="",t=!1){return t?(ec(),nc(me,null,e)):Be(me,null,e)}function _e(e){return e==null||typeof e=="boolean"?Be(me):M(e)?Be(Pe,null,e.slice()):An(e)?Ze(e):Be(qt,null,String(e))}function Ze(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:et(e)}function Ps(e,t){let n=0;const{shapeFlag:s}=e;if(t==null)t=null;else if(M(t))n=16;else if(typeof t=="object")if(s&65){const r=t.default;r&&(r._c&&(r._d=!1),Ps(e,r()),r._c&&(r._d=!0));return}else{n=32;const r=t._;!r&&!po(t)?t._ctx=ie:r===3&&ie&&(ie.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else P(t)?(t={default:t,_ctx:ie},n=32):(t=String(t),s&64?(n=16,t=[ic(t)]):n=8);e.children=t,e.shapeFlag|=n}function lc(...e){const t={};for(let n=0;n<e.length;n++){const s=e[n];for(const r in s)if(r==="class")t.class!==s.class&&(t.class=ms([t.class,s.class]));else if(r==="style")t.style=gs([t.style,s.style]);else if(Bt(r)){const o=t[r],i=s[r];i&&o!==i&&!(M(o)&&o.includes(i))&&(t[r]=o?[].concat(o,i):i)}else r!==""&&(t[r]=s[r])}return t}function Me(e,t,n,s=null){He(e,t,7,[n,s])}const cc=fo();let fc=0;function uc(e,t,n){const s=e.type,r=(t?t.appContext:e.appContext)||cc,o={uid:fc++,vnode:e,type:s,parent:t,appContext:r,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new ei(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(r.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:go(s,r),emitsOptions:xo(s,r),emit:null,emitted:null,propsDefaults:U,inheritAttrs:s.inheritAttrs,ctx:U,data:U,props:U,attrs:U,slots:U,refs:U,setupState:U,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return o.ctx=pl(o),o.root=t?t.root:o,o.emit=ql.bind(null,o),e.ce&&e.ce(o),o}let ee=null;const Mo=()=>ee||ie;let vn,cs;{const e=Wt(),t=(n,s)=>{let r;return(r=e[n])||(r=e[n]=[]),r.push(s),o=>{r.length>1?r.forEach(i=>i(o)):r[0](o)}};vn=t("__VUE_INSTANCE_SETTERS__",n=>ee=n),cs=t("__VUE_SSR_SETTERS__",n=>Ut=n)}const Jt=e=>{const t=ee;return vn(e),e.scope.on(),()=>{e.scope.off(),vn(t)}},sr=()=>{ee&&ee.scope.off(),vn(null)},ac=Ge("slot,component");function fs(e,{isNativeTag:t}){(ac(e)||t(e))&&x("Do not use built-in or reserved HTML elements as component id: "+e)}function Ao(e){return e.vnode.shapeFlag&4}let Ut=!1;function dc(e,t=!1,n=!1){t&&cs(t);const{props:s,children:r}=e.vnode,o=Ao(e);Ol(e,s,o,t),Dl(e,r,n||t);const i=o?pc(e,t):void 0;return t&&cs(!1),i}function pc(e,t){var n;const s=e.type;{if(s.name&&fs(s.name,e.appContext.config),s.components){const o=Object.keys(s.components);for(let i=0;i<o.length;i++)fs(o[i],e.appContext.config)}if(s.directives){const o=Object.keys(s.directives);for(let i=0;i<o.length;i++)no(o[i])}s.compilerOptions&&hc()&&x('"compilerOptions" is only supported when using a build of Vue that includes the runtime compiler. Since you are using a runtime-only build, the options should be passed via your build tool config instead.')}e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,io),hl(e);const{setup:r}=s;if(r){Se();const o=e.setupContext=r.length>1?bc(e):null,i=Jt(e),l=xt(r,e,0,[Fe(e.props),o]),f=ds(l);if(Ce(),i(),(f||e.sp)&&!Dt(e)&&so(e),f){if(l.then(sr,sr),t)return l.then(p=>{rr(e,p,t)}).catch(p=>{kt(p,e,0)});if(e.asyncDep=l,!e.suspense){const p=(n=s.name)!=null?n:"Anonymous";x(`Component <${p}>: setup function returned a promise, but no <Suspense> boundary was found in the parent component tree. A component with async setup() must be nested in a <Suspense> in order to be rendered.`)}}else rr(e,l,t)}else Po(e,t)}function rr(e,t,n){P(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:W(t)?(An(t)&&x("setup() should not return VNodes directly - return a render function instead."),e.devtoolsRawSetupState=t,e.setupState=Wr(t),gl(e)):t!==void 0&&x(`setup() should return an object. Received: ${t===null?"null":typeof t}`),Po(e,n)}const hc=()=>!0;function Po(e,t,n){const s=e.type;e.render||(e.render=s.render||ne);{const r=Jt(e);Se();try{bl(e)}finally{Ce(),r()}}!s.render&&e.render===ne&&!t&&(s.template?x('Component provided template option but runtime compilation is not supported in this build of Vue. Configure your bundler to alias "vue" to "vue/dist/vue.esm-bundler.js".'):x("Component is missing template or render function: ",s))}const gc={get(e,t){return _n(),Z(e,"get",""),e[t]},set(){return x("setupContext.attrs is readonly."),!1},deleteProperty(){return x("setupContext.attrs is readonly."),!1}};function mc(e){return new Proxy(e.slots,{get(t,n){return Z(e,"get","$slots"),t[n]}})}function bc(e){const t=n=>{if(e.exposed&&x("expose() should be called only once per setup()."),n!=null){let s=typeof n;s==="object"&&(M(n)?s="array":J(n)&&(s="ref")),s!=="object"&&x(`expose() should be passed a plain object, received ${s}.`)}e.exposed=n||{}};{let n,s;return Object.freeze({get attrs(){return n||(n=new Proxy(e.attrs,gc))},get slots(){return s||(s=mc(e))},get emit(){return(r,...o)=>e.emit(r,...o)},expose:t})}}function Pn(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Wr(wi(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in ut)return ut[n](e)},has(t,n){return n in t||n in ut}})):e.proxy}const yc=/(?:^|[-_])\w/g,_c=e=>e.replace(yc,t=>t.toUpperCase()).replace(/[-_]/g,"");function Io(e,t=!0){return P(e)?e.displayName||e.name:e.name||t&&e.__name}function In(e,t,n=!1){let s=Io(t);if(!s&&t.__file){const r=t.__file.match(/([^/\\]+)\.\w+$/);r&&(s=r[1])}if(!s&&e&&e.parent){const r=o=>{for(const i in o)if(o[i]===t)return i};s=r(e.components||e.parent.type.components)||r(e.appContext.components)}return s?_c(s):n?"App":"Anonymous"}function Ro(e){return P(e)&&"__vccOpts"in e}const vc=(e,t)=>{const n=Ei(e,t,Ut);{const s=Mo();s&&s.appContext.config.warnRecursiveComputed&&(n._warnRecursive=!0)}return n};function wc(){if(typeof window>"u")return;const e={style:"color:#3ba776"},t={style:"color:#1677ff"},n={style:"color:#f5222d"},s={style:"color:#eb2f96"},r={__vue_custom_formatter:!0,header(a){if(!W(a))return null;if(a.__isVue)return["div",e,"VueInstance"];if(J(a)){Se();const g=a.value;return Ce(),["div",{},["span",e,d(a)],"<",l(g),">"]}else{if(ct(a))return["div",{},["span",e,le(a)?"ShallowReactive":"Reactive"],"<",l(a),`>${De(a)?" (readonly)":""}`];if(De(a))return["div",{},["span",e,le(a)?"ShallowReadonly":"Readonly"],"<",l(a),">"]}return null},hasBody(a){return a&&a.__isVue},body(a){if(a&&a.__isVue)return["div",{},...o(a.$)]}};function o(a){const g=[];a.type.props&&a.props&&g.push(i("props",F(a.props))),a.setupState!==U&&g.push(i("setup",a.setupState)),a.data!==U&&g.push(i("data",F(a.data)));const C=f(a,"computed");C&&g.push(i("computed",C));const I=f(a,"inject");return I&&g.push(i("injected",I)),g.push(["div",{},["span",{style:s.style+";opacity:0.66"},"$ (internal): "],["object",{object:a}]]),g}function i(a,g){return g=Y({},g),Object.keys(g).length?["div",{style:"line-height:1.25em;margin-bottom:0.6em"},["div",{style:"color:#476582"},a],["div",{style:"padding-left:1.25em"},...Object.keys(g).map(C=>["div",{},["span",s,C+": "],l(g[C],!1)])]]:["span",{}]}function l(a,g=!0){return typeof a=="number"?["span",t,a]:typeof a=="string"?["span",n,JSON.stringify(a)]:typeof a=="boolean"?["span",s,a]:W(a)?["object",{object:g?F(a):a}]:["span",n,String(a)]}function f(a,g){const C=a.type;if(P(C))return;const I={};for(const E in a.ctx)p(C,E,g)&&(I[E]=a.ctx[E]);return I}function p(a,g,C){const I=a[C];if(M(I)&&I.includes(g)||W(I)&&g in I||a.extends&&p(a.extends,g,C)||a.mixins&&a.mixins.some(E=>p(E,g,C)))return!0}function d(a){return le(a)?"ShallowRef":a.effect?"ComputedRef":"Ref"}window.devtoolsFormatters?window.devtoolsFormatters.push(r):window.devtoolsFormatters=[r]}const or="3.5.22",We=x;/**
|
|
20
|
+
* @vue/runtime-dom v3.5.22
|
|
21
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
22
|
+
* @license MIT
|
|
23
|
+
**/let us;const ir=typeof window<"u"&&window.trustedTypes;if(ir)try{us=ir.createPolicy("vue",{createHTML:e=>e})}catch(e){We(`Error creating trusted types policy: ${e}`)}const Fo=us?e=>us.createHTML(e):e=>e,xc="http://www.w3.org/2000/svg",Sc="http://www.w3.org/1998/Math/MathML",Ve=typeof document<"u"?document:null,lr=Ve&&Ve.createElement("template"),Cc={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,s)=>{const r=t==="svg"?Ve.createElementNS(xc,e):t==="mathml"?Ve.createElementNS(Sc,e):n?Ve.createElement(e,{is:n}):Ve.createElement(e);return e==="select"&&s&&s.multiple!=null&&r.setAttribute("multiple",s.multiple),r},createText:e=>Ve.createTextNode(e),createComment:e=>Ve.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Ve.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,s,r,o){const i=n?n.previousSibling:t.lastChild;if(r&&(r===o||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),n),!(r===o||!(r=r.nextSibling)););else{lr.innerHTML=Fo(s==="svg"?`<svg>${e}</svg>`:s==="mathml"?`<math>${e}</math>`:e);const l=lr.content;if(s==="svg"||s==="mathml"){const f=l.firstChild;for(;f.firstChild;)l.appendChild(f.firstChild);l.removeChild(f)}t.insertBefore(l,n)}return[i?i.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Oc=Symbol("_vtc");function Tc(e,t,n){const s=e[Oc];s&&(t=(t?[t,...s]:[...s]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const cr=Symbol("_vod"),Ec=Symbol("_vsh"),$c=Symbol("CSS_VAR_TEXT"),Mc=/(?:^|;)\s*display\s*:/;function Ac(e,t,n){const s=e.style,r=q(n);let o=!1;if(n&&!r){if(t)if(q(t))for(const i of t.split(";")){const l=i.slice(0,i.indexOf(":")).trim();n[l]==null&&ln(s,l,"")}else for(const i in t)n[i]==null&&ln(s,i,"");for(const i in n)i==="display"&&(o=!0),ln(s,i,n[i])}else if(r){if(t!==n){const i=s[$c];i&&(n+=";"+i),s.cssText=n,o=Mc.test(n)}}else t&&e.removeAttribute("style");cr in e&&(e[cr]=o?s.display:"",e[Ec]&&(s.display="none"))}const Pc=/[^\\];\s*$/,fr=/\s*!important$/;function ln(e,t,n){if(M(n))n.forEach(s=>ln(e,t,s));else if(n==null&&(n=""),Pc.test(n)&&We(`Unexpected semicolon at the end of '${t}' style value: '${n}'`),t.startsWith("--"))e.setProperty(t,n);else{const s=Ic(e,t);fr.test(n)?e.setProperty(ke(s),n.replace(fr,""),"important"):e[s]=n}}const ur=["Webkit","Moz","ms"],kn={};function Ic(e,t){const n=kn[t];if(n)return n;let s=ve(t);if(s!=="filter"&&s in e)return kn[t]=s;s=Sn(s);for(let r=0;r<ur.length;r++){const o=ur[r]+s;if(o in e)return kn[t]=o}return t}const ar="http://www.w3.org/1999/xlink";function dr(e,t,n,s,r,o=Zo(t)){s&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(ar,t.slice(6,t.length)):e.setAttributeNS(ar,t,n):n==null||o&&!Or(n)?e.removeAttribute(t):e.setAttribute(t,o?"":tt(n)?String(n):n)}function pr(e,t,n,s,r){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?Fo(n):n);return}const o=e.tagName;if(t==="value"&&o!=="PROGRESS"&&!o.includes("-")){const l=o==="OPTION"?e.getAttribute("value")||"":e.value,f=n==null?e.type==="checkbox"?"on":"":String(n);(l!==f||!("_value"in e))&&(e.value=f),n==null&&e.removeAttribute(t),e._value=n;return}let i=!1;if(n===""||n==null){const l=typeof e[t];l==="boolean"?n=Or(n):n==null&&l==="string"?(n="",i=!0):l==="number"&&(n=0,i=!0)}try{e[t]=n}catch(l){i||We(`Failed setting prop "${t}" on <${o.toLowerCase()}>: value ${n} is invalid.`,l)}i&&e.removeAttribute(r||t)}function yt(e,t,n,s){e.addEventListener(t,n,s)}function Rc(e,t,n,s){e.removeEventListener(t,n,s)}const hr=Symbol("_vei");function Fc(e,t,n,s,r=null){const o=e[hr]||(e[hr]={}),i=o[t];if(s&&i)i.value=mr(s,t);else{const[l,f]=jc(t);if(s){const p=o[t]=Lc(mr(s,t),r);yt(e,l,p,f)}else i&&(Rc(e,l,i,f),o[t]=void 0)}}const gr=/(?:Once|Passive|Capture)$/;function jc(e){let t;if(gr.test(e)){t={};let s;for(;s=e.match(gr);)e=e.slice(0,e.length-s[0].length),t[s[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):ke(e.slice(2)),t]}let Gn=0;const Dc=Promise.resolve(),Hc=()=>Gn||(Dc.then(()=>Gn=0),Gn=Date.now());function Lc(e,t){const n=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=n.attached)return;He(Nc(s,n.value),t,5,[s])};return n.value=e,n.attached=Hc(),n}function mr(e,t){return P(e)||M(e)?e:(We(`Wrong type passed as event handler to ${t} - did you forget @ or : in front of your prop?
|
|
24
|
+
Expected function or array of functions, received type ${typeof e}.`),ne)}function Nc(e,t){if(M(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(s=>r=>!r._stopped&&s&&s(r))}else return t}const br=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Vc=(e,t,n,s,r,o)=>{const i=r==="svg";t==="class"?Tc(e,s,i):t==="style"?Ac(e,n,s):Bt(t)?cn(t)||Fc(e,t,n,s,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Kc(e,t,s,i))?(pr(e,t,s),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&dr(e,t,s,i,o,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!q(s))?pr(e,ve(t),s,o,t):(t==="true-value"?e._trueValue=s:t==="false-value"&&(e._falseValue=s),dr(e,t,s,i))};function Kc(e,t,n,s){if(s)return!!(t==="innerHTML"||t==="textContent"||t in e&&br(t)&&P(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const r=e.tagName;if(r==="IMG"||r==="VIDEO"||r==="CANVAS"||r==="SOURCE")return!1}return br(t)&&q(n)?!1:t in e}const yr=e=>{const t=e.props["onUpdate:modelValue"]||!1;return M(t)?n=>mt(t,n):t};function Uc(e){e.target.composing=!0}function _r(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const qn=Symbol("_assign"),lf={created(e,{modifiers:{lazy:t,trim:n,number:s}},r){e[qn]=yr(r);const o=s||r.props&&r.props.type==="number";yt(e,t?"change":"input",i=>{if(i.target.composing)return;let l=e.value;n&&(l=l.trim()),o&&(l=Jn(l)),e[qn](l)}),n&&yt(e,"change",()=>{e.value=e.value.trim()}),t||(yt(e,"compositionstart",Uc),yt(e,"compositionend",_r),yt(e,"change",_r))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:s,trim:r,number:o}},i){if(e[qn]=yr(i),e.composing)return;const l=(o||e.type==="number")&&!/^0\d/.test(e.value)?Jn(e.value):e.value,f=t??"";l!==f&&(document.activeElement===e&&e.type!=="range"&&(s&&t===n||r&&e.value.trim()===f)||(e.value=f))}},Bc=["ctrl","shift","alt","meta"],Wc={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>Bc.some(n=>e[`${n}Key`]&&!t.includes(n))},cf=(e,t)=>{const n=e._withMods||(e._withMods={}),s=t.join(".");return n[s]||(n[s]=((r,...o)=>{for(let i=0;i<t.length;i++){const l=Wc[t[i]];if(l&&l(r,t))return}return e(r,...o)}))},kc={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},ff=(e,t)=>{const n=e._withKeys||(e._withKeys={}),s=t.join(".");return n[s]||(n[s]=(r=>{if(!("key"in r))return;const o=ke(r.key);if(t.some(i=>i===o||kc[i]===o))return e(r)}))},Gc=Y({patchProp:Vc},Cc);let vr;function qc(){return vr||(vr=Nl(Gc))}const uf=((...e)=>{const t=qc().createApp(...e);Yc(t),zc(t);const{mount:n}=t;return t.mount=s=>{const r=Xc(s);if(!r)return;const o=t._component;!P(o)&&!o.render&&!o.template&&(o.template=r.innerHTML),r.nodeType===1&&(r.textContent="");const i=n(r,!1,Jc(r));return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),i},t});function Jc(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function Yc(e){Object.defineProperty(e.config,"isNativeTag",{value:t=>Jo(t)||Yo(t)||zo(t),writable:!1})}function zc(e){{const t=e.config.isCustomElement;Object.defineProperty(e.config,"isCustomElement",{get(){return t},set(){We("The `isCustomElement` config option is deprecated. Use `compilerOptions.isCustomElement` instead.")}});const n=e.config.compilerOptions,s='The `compilerOptions` config option is only respected when using a build of Vue.js that includes the runtime compiler (aka "full build"). Since you are using the runtime-only build, `compilerOptions` must be passed to `@vue/compiler-dom` in the build setup instead.\n- For vue-loader: pass it via vue-loader\'s `compilerOptions` loader option.\n- For vue-cli: see https://cli.vuejs.org/guide/webpack.html#modifying-options-of-a-loader\n- For vite: pass it via @vitejs/plugin-vue options. See https://github.com/vitejs/vite-plugin-vue/tree/main/packages/plugin-vue#example-for-passing-options-to-vuecompiler-sfc';Object.defineProperty(e.config,"compilerOptions",{get(){return We(s),n},set(){We(s)}})}}function Xc(e){if(q(e)){const t=document.querySelector(e);return t||We(`Failed to mount app: mount target selector "${e}" returned null.`),t}return window.ShadowRoot&&e instanceof window.ShadowRoot&&e.mode==="closed"&&We('mounting on a ShadowRoot with `{mode: "closed"}` may lead to unpredictable bugs'),e}/**
|
|
25
|
+
* vue v3.5.22
|
|
26
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
27
|
+
* @license MIT
|
|
28
|
+
**/function Zc(){wc()}Zc();const af=(e,t)=>{const n=e.__vccOpts||e;for(const[s,r]of t)n[s]=r;return n};export{Pe as F,af as _,ll as a,Eo as b,rf as c,nf as d,of as e,gs as f,ic as g,sf as h,tf as i,ff as j,ec as k,ms as l,uf as m,Di as n,rl as o,vc as p,ef as r,Qo as t,lf as v,cf as w};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Action Choice Dialog
|
|
3
|
+
*
|
|
4
|
+
* Renders a choice dialog from the action system
|
|
5
|
+
*/
|
|
6
|
+
import React from 'react';
|
|
7
|
+
import type { ActionOption } from '../actions/types.js';
|
|
8
|
+
interface ActionChoiceDialogProps {
|
|
9
|
+
title: string;
|
|
10
|
+
message: string;
|
|
11
|
+
options: ActionOption[];
|
|
12
|
+
selectedIndex: number;
|
|
13
|
+
}
|
|
14
|
+
declare const ActionChoiceDialog: React.FC<ActionChoiceDialogProps>;
|
|
15
|
+
export default ActionChoiceDialog;
|
|
16
|
+
//# sourceMappingURL=ActionChoiceDialog.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ActionChoiceDialog.d.ts","sourceRoot":"","sources":["../../src/components/ActionChoiceDialog.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAExD,UAAU,uBAAuB;IAC/B,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,YAAY,EAAE,CAAC;IACxB,aAAa,EAAE,MAAM,CAAC;CACvB;AAED,QAAA,MAAM,kBAAkB,EAAE,KAAK,CAAC,EAAE,CAAC,uBAAuB,CA0CzD,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Action Choice Dialog
|
|
3
|
+
*
|
|
4
|
+
* Renders a choice dialog from the action system
|
|
5
|
+
*/
|
|
6
|
+
import React from 'react';
|
|
7
|
+
import { Box, Text } from 'ink';
|
|
8
|
+
const ActionChoiceDialog = ({ title, message, options, selectedIndex }) => {
|
|
9
|
+
return (React.createElement(Box, { flexDirection: "column", borderStyle: "round", borderColor: "cyan", paddingX: 1, marginTop: 1 },
|
|
10
|
+
React.createElement(Box, { marginBottom: 1 },
|
|
11
|
+
React.createElement(Text, { bold: true, color: "cyan" }, title)),
|
|
12
|
+
React.createElement(Box, { marginBottom: 1 },
|
|
13
|
+
React.createElement(Text, null, message)),
|
|
14
|
+
options.map((option, index) => {
|
|
15
|
+
const isSelected = index === selectedIndex;
|
|
16
|
+
const color = option.danger ? 'red' : isSelected ? 'cyan' : 'white';
|
|
17
|
+
return (React.createElement(Box, { key: option.id },
|
|
18
|
+
React.createElement(Text, { color: color, bold: isSelected },
|
|
19
|
+
isSelected ? '▶ ' : ' ',
|
|
20
|
+
option.label,
|
|
21
|
+
option.description && React.createElement(Text, { dimColor: true },
|
|
22
|
+
" - ",
|
|
23
|
+
option.description))));
|
|
24
|
+
}),
|
|
25
|
+
React.createElement(Box, { marginTop: 1 },
|
|
26
|
+
React.createElement(Text, { dimColor: true }, "\u2191\u2193 to navigate \u2022 Enter to select \u2022 ESC to cancel"))));
|
|
27
|
+
};
|
|
28
|
+
export default ActionChoiceDialog;
|
|
29
|
+
//# sourceMappingURL=ActionChoiceDialog.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ActionChoiceDialog.js","sourceRoot":"","sources":["../../src/components/ActionChoiceDialog.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,KAAK,CAAC;AAUhC,MAAM,kBAAkB,GAAsC,CAAC,EAC7D,KAAK,EACL,OAAO,EACP,OAAO,EACP,aAAa,EACd,EAAE,EAAE;IACH,OAAO,CACL,oBAAC,GAAG,IACF,aAAa,EAAC,QAAQ,EACtB,WAAW,EAAC,OAAO,EACnB,WAAW,EAAC,MAAM,EAClB,QAAQ,EAAE,CAAC,EACX,SAAS,EAAE,CAAC;QAEZ,oBAAC,GAAG,IAAC,YAAY,EAAE,CAAC;YAClB,oBAAC,IAAI,IAAC,IAAI,QAAC,KAAK,EAAC,MAAM,IAAE,KAAK,CAAQ,CAClC;QAEN,oBAAC,GAAG,IAAC,YAAY,EAAE,CAAC;YAClB,oBAAC,IAAI,QAAE,OAAO,CAAQ,CAClB;QAEL,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,KAAK,EAAE,EAAE;YAC7B,MAAM,UAAU,GAAG,KAAK,KAAK,aAAa,CAAC;YAC3C,MAAM,KAAK,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,CAAC;YAEpE,OAAO,CACL,oBAAC,GAAG,IAAC,GAAG,EAAE,MAAM,CAAC,EAAE;gBACjB,oBAAC,IAAI,IAAC,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,UAAU;oBACjC,UAAU,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI;oBACxB,MAAM,CAAC,KAAK;oBACZ,MAAM,CAAC,WAAW,IAAI,oBAAC,IAAI,IAAC,QAAQ;;wBAAK,MAAM,CAAC,WAAW,CAAQ,CAC/D,CACH,CACP,CAAC;QACJ,CAAC,CAAC;QAEF,oBAAC,GAAG,IAAC,SAAS,EAAE,CAAC;YACf,oBAAC,IAAI,IAAC,QAAQ,iFAAwD,CAClE,CACF,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Action Confirm Dialog
|
|
3
|
+
*
|
|
4
|
+
* Renders a confirmation dialog from the action system with selectable options
|
|
5
|
+
*/
|
|
6
|
+
import React from 'react';
|
|
7
|
+
interface ActionConfirmDialogProps {
|
|
8
|
+
title: string;
|
|
9
|
+
message: string;
|
|
10
|
+
yesLabel: string;
|
|
11
|
+
noLabel: string;
|
|
12
|
+
selectedIndex?: number;
|
|
13
|
+
}
|
|
14
|
+
declare const ActionConfirmDialog: React.FC<ActionConfirmDialogProps>;
|
|
15
|
+
export default ActionConfirmDialog;
|
|
16
|
+
//# sourceMappingURL=ActionConfirmDialog.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ActionConfirmDialog.d.ts","sourceRoot":"","sources":["../../src/components/ActionConfirmDialog.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,UAAU,wBAAwB;IAChC,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,QAAA,MAAM,mBAAmB,EAAE,KAAK,CAAC,EAAE,CAAC,wBAAwB,CAwD3D,CAAC;AAEF,eAAe,mBAAmB,CAAC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Action Confirm Dialog
|
|
3
|
+
*
|
|
4
|
+
* Renders a confirmation dialog from the action system with selectable options
|
|
5
|
+
*/
|
|
6
|
+
import React from 'react';
|
|
7
|
+
import { Box, Text } from 'ink';
|
|
8
|
+
const ActionConfirmDialog = ({ title, message, yesLabel, noLabel, selectedIndex = 0 }) => {
|
|
9
|
+
return (React.createElement(Box, { flexDirection: "column", borderStyle: "round", borderColor: "cyan", paddingX: 1, marginTop: 1 },
|
|
10
|
+
React.createElement(Box, { marginBottom: 1 },
|
|
11
|
+
React.createElement(Text, { bold: true, color: "cyan" }, title)),
|
|
12
|
+
React.createElement(Box, { marginBottom: 1 },
|
|
13
|
+
React.createElement(Text, null, message)),
|
|
14
|
+
React.createElement(Box, { flexDirection: "column", marginTop: 1, gap: 1 },
|
|
15
|
+
React.createElement(Box, null, selectedIndex === 0 ? (React.createElement(Text, { color: "green", bold: true, inverse: true },
|
|
16
|
+
'► ',
|
|
17
|
+
yesLabel,
|
|
18
|
+
' ')) : (React.createElement(Text, null,
|
|
19
|
+
' ',
|
|
20
|
+
yesLabel))),
|
|
21
|
+
React.createElement(Box, null, selectedIndex === 1 ? (React.createElement(Text, { color: "red", bold: true, inverse: true },
|
|
22
|
+
'► ',
|
|
23
|
+
noLabel,
|
|
24
|
+
' ')) : (React.createElement(Text, null,
|
|
25
|
+
' ',
|
|
26
|
+
noLabel)))),
|
|
27
|
+
React.createElement(Box, { marginTop: 1 },
|
|
28
|
+
React.createElement(Text, { dimColor: true }, "\u2191/\u2193 to navigate \u2022 Enter to select \u2022 y/n shortcuts \u2022 ESC to cancel"))));
|
|
29
|
+
};
|
|
30
|
+
export default ActionConfirmDialog;
|
|
31
|
+
//# sourceMappingURL=ActionConfirmDialog.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ActionConfirmDialog.js","sourceRoot":"","sources":["../../src/components/ActionConfirmDialog.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,KAAK,CAAC;AAUhC,MAAM,mBAAmB,GAAuC,CAAC,EAC/D,KAAK,EACL,OAAO,EACP,QAAQ,EACR,OAAO,EACP,aAAa,GAAG,CAAC,EAClB,EAAE,EAAE;IACH,OAAO,CACL,oBAAC,GAAG,IACF,aAAa,EAAC,QAAQ,EACtB,WAAW,EAAC,OAAO,EACnB,WAAW,EAAC,MAAM,EAClB,QAAQ,EAAE,CAAC,EACX,SAAS,EAAE,CAAC;QAEZ,oBAAC,GAAG,IAAC,YAAY,EAAE,CAAC;YAClB,oBAAC,IAAI,IAAC,IAAI,QAAC,KAAK,EAAC,MAAM,IAAE,KAAK,CAAQ,CAClC;QAEN,oBAAC,GAAG,IAAC,YAAY,EAAE,CAAC;YAClB,oBAAC,IAAI,QAAE,OAAO,CAAQ,CAClB;QAEN,oBAAC,GAAG,IAAC,aAAa,EAAC,QAAQ,EAAC,SAAS,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC;YAE9C,oBAAC,GAAG,QACD,aAAa,KAAK,CAAC,CAAC,CAAC,CAAC,CACrB,oBAAC,IAAI,IAAC,KAAK,EAAC,OAAO,EAAC,IAAI,QAAC,OAAO;gBAC7B,IAAI;gBAAE,QAAQ;gBAAE,GAAG,CACf,CACR,CAAC,CAAC,CAAC,CACF,oBAAC,IAAI;gBACF,IAAI;gBAAE,QAAQ,CACV,CACR,CACG;YAGN,oBAAC,GAAG,QACD,aAAa,KAAK,CAAC,CAAC,CAAC,CAAC,CACrB,oBAAC,IAAI,IAAC,KAAK,EAAC,KAAK,EAAC,IAAI,QAAC,OAAO;gBAC3B,IAAI;gBAAE,OAAO;gBAAE,GAAG,CACd,CACR,CAAC,CAAC,CAAC,CACF,oBAAC,IAAI;gBACF,IAAI;gBAAE,OAAO,CACT,CACR,CACG,CACF;QAEN,oBAAC,GAAG,IAAC,SAAS,EAAE,CAAC;YACf,oBAAC,IAAI,IAAC,QAAQ,uGAAyE,CACnF,CACF,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,mBAAmB,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Action Input Dialog
|
|
3
|
+
*
|
|
4
|
+
* Renders an input dialog from the action system
|
|
5
|
+
*/
|
|
6
|
+
import React from 'react';
|
|
7
|
+
interface ActionInputDialogProps {
|
|
8
|
+
title: string;
|
|
9
|
+
message: string;
|
|
10
|
+
placeholder?: string;
|
|
11
|
+
value: string;
|
|
12
|
+
onValueChange: (value: string) => void;
|
|
13
|
+
}
|
|
14
|
+
declare const ActionInputDialog: React.FC<ActionInputDialogProps>;
|
|
15
|
+
export default ActionInputDialog;
|
|
16
|
+
//# sourceMappingURL=ActionInputDialog.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ActionInputDialog.d.ts","sourceRoot":"","sources":["../../src/components/ActionInputDialog.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,UAAU,sBAAsB;IAC9B,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,aAAa,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CACxC;AA6BD,QAAA,MAAM,iBAAiB,EAAE,KAAK,CAAC,EAAE,CAAC,sBAAsB,CAwCvD,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Action Input Dialog
|
|
3
|
+
*
|
|
4
|
+
* Renders an input dialog from the action system
|
|
5
|
+
*/
|
|
6
|
+
import React from 'react';
|
|
7
|
+
import { Box, Text } from 'ink';
|
|
8
|
+
import CleanTextInput from '../CleanTextInput.js';
|
|
9
|
+
import chalk from 'chalk';
|
|
10
|
+
/**
|
|
11
|
+
* Colorize git diff stat output
|
|
12
|
+
* Example: " src/file.ts | 10 ++--" -> colorizes + and -
|
|
13
|
+
*/
|
|
14
|
+
function colorizeDiffStat(text) {
|
|
15
|
+
// Match lines with file stats (e.g., "file.ts | 10 ++--")
|
|
16
|
+
return text.split('\n').map(line => {
|
|
17
|
+
// Check if line contains diff markers
|
|
18
|
+
if (line.includes('|')) {
|
|
19
|
+
// Split by | to separate file path from changes
|
|
20
|
+
const parts = line.split('|');
|
|
21
|
+
if (parts.length === 2) {
|
|
22
|
+
const filePart = parts[0];
|
|
23
|
+
const statPart = parts[1];
|
|
24
|
+
// Colorize + and - in the stat part
|
|
25
|
+
const colorizedStat = statPart
|
|
26
|
+
.replace(/\+/g, chalk.green('+'))
|
|
27
|
+
.replace(/-/g, chalk.red('-'));
|
|
28
|
+
return filePart + chalk.dim('|') + colorizedStat;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
return line;
|
|
32
|
+
}).join('\n');
|
|
33
|
+
}
|
|
34
|
+
const ActionInputDialog = ({ title, message, placeholder = '', value, onValueChange }) => {
|
|
35
|
+
// Check if message contains "Files changed:" section for colorization
|
|
36
|
+
const hasFilesChanged = message.includes('Files changed:');
|
|
37
|
+
const colorizedMessage = hasFilesChanged ? colorizeDiffStat(message) : message;
|
|
38
|
+
return (React.createElement(Box, { flexDirection: "column", borderStyle: "round", borderColor: "cyan", paddingX: 1, marginTop: 1 },
|
|
39
|
+
React.createElement(Box, { marginBottom: 1 },
|
|
40
|
+
React.createElement(Text, { bold: true, color: "cyan" }, title)),
|
|
41
|
+
React.createElement(Box, { marginBottom: 1 },
|
|
42
|
+
React.createElement(Text, null, colorizedMessage)),
|
|
43
|
+
React.createElement(Box, { marginTop: 1 },
|
|
44
|
+
React.createElement(CleanTextInput, { value: value, onChange: onValueChange, placeholder: placeholder })),
|
|
45
|
+
React.createElement(Box, { marginTop: 1 },
|
|
46
|
+
React.createElement(Text, { dimColor: true }, "Enter to submit \u2022 ESC to cancel"))));
|
|
47
|
+
};
|
|
48
|
+
export default ActionInputDialog;
|
|
49
|
+
//# sourceMappingURL=ActionInputDialog.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ActionInputDialog.js","sourceRoot":"","sources":["../../src/components/ActionInputDialog.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,KAAK,CAAC;AAChC,OAAO,cAAc,MAAM,sBAAsB,CAAC;AAClD,OAAO,KAAK,MAAM,OAAO,CAAC;AAU1B;;;GAGG;AACH,SAAS,gBAAgB,CAAC,IAAY;IACpC,0DAA0D;IAC1D,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE;QACjC,sCAAsC;QACtC,IAAI,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE,CAAC;YACvB,gDAAgD;YAChD,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;YAC9B,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;gBACvB,MAAM,QAAQ,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC;gBAC1B,MAAM,QAAQ,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC;gBAE1B,oCAAoC;gBACpC,MAAM,aAAa,GAAG,QAAQ;qBAC3B,OAAO,CAAC,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;qBAChC,OAAO,CAAC,IAAI,EAAE,KAAK,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC;gBAEjC,OAAO,QAAQ,GAAG,KAAK,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,aAAa,CAAC;YACnD,CAAC;QACH,CAAC;QACD,OAAO,IAAI,CAAC;IACd,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAChB,CAAC;AAED,MAAM,iBAAiB,GAAqC,CAAC,EAC3D,KAAK,EACL,OAAO,EACP,WAAW,GAAG,EAAE,EAChB,KAAK,EACL,aAAa,EACd,EAAE,EAAE;IACH,sEAAsE;IACtE,MAAM,eAAe,GAAG,OAAO,CAAC,QAAQ,CAAC,gBAAgB,CAAC,CAAC;IAC3D,MAAM,gBAAgB,GAAG,eAAe,CAAC,CAAC,CAAC,gBAAgB,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC;IAE/E,OAAO,CACL,oBAAC,GAAG,IACF,aAAa,EAAC,QAAQ,EACtB,WAAW,EAAC,OAAO,EACnB,WAAW,EAAC,MAAM,EAClB,QAAQ,EAAE,CAAC,EACX,SAAS,EAAE,CAAC;QAEZ,oBAAC,GAAG,IAAC,YAAY,EAAE,CAAC;YAClB,oBAAC,IAAI,IAAC,IAAI,QAAC,KAAK,EAAC,MAAM,IAAE,KAAK,CAAQ,CAClC;QAEN,oBAAC,GAAG,IAAC,YAAY,EAAE,CAAC;YAClB,oBAAC,IAAI,QAAE,gBAAgB,CAAQ,CAC3B;QAEN,oBAAC,GAAG,IAAC,SAAS,EAAE,CAAC;YACf,oBAAC,cAAc,IACb,KAAK,EAAE,KAAK,EACZ,QAAQ,EAAE,aAAa,EACvB,WAAW,EAAE,WAAW,GACxB,CACE;QAEN,oBAAC,GAAG,IAAC,SAAS,EAAE,CAAC;YACf,oBAAC,IAAI,IAAC,QAAQ,iDAAuC,CACjD,CACF,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
|