优化: 知识卡片交互+deepseek模型+鼠标钩子

This commit is contained in:
lxy committed 2026-06-05 21:45:45 +08:00
1 parent 004dba7db6
commit 0302546267
10 files changed
+661 -71

No files matched your search

@@ -0,0 +1,175 @@
# Overlay 鼠标交互实践
> 2026-06-05 | 知识卡片刷新按钮点击 + 悬停效果
---
## 背景
桌面壁纸 overlay 通过 WebView2 嵌入 WorkerW 实现,位于桌面图标层(SysListView32)之下。这意味着:
- **WM_NCHITTEST 永远到不了 overlay**——`WindowFromPoint` 返回的是 SysListView32
- **CSS hover/click 无效**——鼠标事件被上层桌面图标窗口拦截
- 需要 WH_MOUSE_LL 全局低级钩子(Hook Type 14)从 Go 层直接拦截
---
## 踩坑记录
### 1. GWLP_WNDPROC 常量值错误
```go
// ❌ 错误:0xFFFFFFF4 = -12 = GWLP_ID,不是 GWLP_WNDPROC
const gwlpWndProc = uintptr(0xFFFFFFF4)
// ✅ 正确:-4 = GWLP_WNDPROC
const gwlpWndProc = ^uintptr(3) // 按位取反(3) = -4
```
**教训**:Windows 常量用负数表示时,不要手动换算十六进制,用 Go 的 `^uintptr(N)` 表达。
### 2. GC 回收 NewCallback 导致全局鼠标异常
```go
// ❌ 错误:cb 是局部变量,函数返回后可被 GC 回收
func installMouseHook() {
cb := windows.NewCallback(func(...) uintptr { ... })
procSetWindowsHookExW.Call(14, cb, 0, 0)
}
// ✅ 正确:存储到包级变量
var llMouseHookCb uintptr
func installMouseHook() {
llMouseHookCb = windows.NewCallback(func(...) uintptr { ... })
procSetWindowsHookExW.Call(14, llMouseHookCb, 0, 0)
}
```
**现象**:GC 回收回调后,钩子指向无效内存,导致**所有鼠标点击被拦截**——桌面、其他软件全部点不了。
**教训**:`windows.NewCallback` 返回的引用必须保存在 Go 可达的变量中,Go GC 不知道 Windows 持有回调引用。
### 3. WindowFromPoint 传参方式
```go
// ❌ 错误:传指针
hwndAt, _, _ := procWindowFromPoint.Call(uintptr(unsafe.Pointer(&screenPt)))
// ✅ 正确:POINT 按值传递,打包到单个 uintptr
ptPacked := uintptr(s.X) | (uintptr(uint32(s.Y)) << 32)
hwndAt, _, _ := procWindowFromPoint.Call(ptPacked)
```
**教训**:Win32 API 中 `WindowFromPoint(POINT)` 的 POINT 是按值传递的,不是指针。在 64 位下两个 int32 打包为一个 uintptr。
### 4. SetCursor 在 WH_MOUSE_LL 中无效
```go
// ❌ 无效:被后续窗口的 WM_SETCURSOR 覆盖
procSetCursor.Call(handCursor) // 闪一下就被桌面窗口重设为箭头
```
**原因**:钩子返回后 WM_MOUSEMOVE 继续传递给桌面窗口(SysListView32),其在处理 WM_SETCURSOR 时将自己的光标设回去。
**结论**:在 overlay 这种底层窗口架构下,无法可靠地改变鼠标光标样式。可行的替代方案:
- 按钮视觉高亮(旋转 + 放大 + 背景色)✅
- 全局 `SetSystemCursor`(影响整个系统,副作用大)❌ 不推荐
### 5. go-webview2 Bind 参数类型
```go
// ❌ 错误:JSON number 解码为 float64,int32 静默失败
wv.Bind("setInteractiveRect", func(left, top, right, bottom int32) string { ... })
// ✅ 正确:用 float64
wv.Bind("setInteractiveRect", func(left, top, right, bottom float64) string { ... })
```
### 6. DPR 缩放坐标转换
JS `getBoundingClientRect()` 返回 CSS 像素,`ScreenToClient` 返回物理像素。必须乘 DPR:
```javascript
const dpr = window.devicePixelRatio || 1
setInteractiveRect(
Math.round(r.left * dpr), Math.round(r.top * dpr),
Math.round(r.right * dpr), Math.round(r.bottom * dpr)
)
```
### 7. HTTP 429 重试时 body 被消耗
```go
// ❌ 错误:第一次请求消耗了 body,重试发送空 body
resp, err := httpClient.Do(req)
if resp.StatusCode == 429 {
time.Sleep(3 * time.Second)
resp, err = httpClient.Do(req) // body 已经 EOF
}
// ✅ 正确:创建新 Request
req2, _ := http.NewRequest("POST", cpaURL, bytes.NewReader(jsonData))
resp2, _ := httpClient.Do(req2)
```
### 8. WindowFromPoint + Progman 判断桌面遮挡
```go
func isDesktopAtPoint(screenX, screenY int32) bool {
ptPacked := uintptr(screenX) | (uintptr(uint32(screenY)) << 32)
hwndAt, _, _ := procWindowFromPoint.Call(ptPacked)
for h := hwndAt; h != 0; h, _, _ = procGetParent.Call(h) {
if h == progmanHwnd {
return true
}
}
return false
}
```
**用途**:判断点击位置是否有其他窗口遮挡。只有桌面背景可见时才消费点击事件,避免拦截其他软件的点击。
---
## 最终架构
```
WH_MOUSE_LL 全局钩子
├── WM_MOUSEMOVE (0x0200)
│ └── 检查鼠标是否在按钮 hit rect 内
│ ├── 进入 → 按钮添加 hover-active 样式(旋转+放大+高亮)
│ └── 离开 → 移除样式
├── WM_LBUTTONDOWN (0x0201)
│ ├── WindowFromPoint 检查是否桌面背景可见
│ ├── ScreenToClient 转换到 wvHwnd 坐标
│ └── 命中按钮 rect → pushKnowledgeLoading + goroutine 刷新
└── 其他事件 → CallNextHookEx 传递
```
**hit rect 来源**:JS 端 `getBoundingClientRect() * DPR`,仅覆盖刷新按钮(+8px 扩展)。
**冷却机制**:30s 内重复点击回退显示缓存内容,不停留在"加载中"。
---
## 关键文件
| 文件 | 改动 |
|------|------|
| `win32.go` | 鼠标钩子、WindowFromPoint 桌面判断、Progman 句柄 |
| `knowledge.go` | deepseek-v4-pro 模型、质量检查、冷却回退 |
| `KnowledgeCard.vue` | 按钮 hit rect、hover-active 样式 |
| `systray.go` | setInteractiveRect float64 参数 |
---
## 速查:Win32 API 要点
| API | 陷阱 | 正确做法 |
|-----|------|----------|
| `SetWindowLongPtrW` | 负数索引常量 | `^uintptr(3)` 表示 -4 |
| `windows.NewCallback` | GC 不跟踪外部引用 | 存包级变量 |
| `WindowFromPoint` | POINT 按值非指针 | 打包为 uintptr |
| `SetCursor` (WH_MOUSE_LL) | 被后续 WM_SETCURSOR 覆盖 | 不可靠,放弃 |
| `ScreenToClient` | 物理像素 | JS 侧乘 DPR |
| `go-webview2 Bind` | JSON number = float64 | 参数用 float64 |
+152 -35
View File
@@ -9,16 +9,19 @@ import (
"math/rand" "math/rand"
"net/http" "net/http"
"path/filepath" "path/filepath"
"regexp"
"sync/atomic"
"strings" "strings"
"time" "time"
"unicode"
"unicode/utf8" "unicode/utf8"
_ "modernc.org/sqlite" _ "modernc.org/sqlite"
) )
const cpaURL = "https://cpa.1216.top/v1/chat/completions" const cpaURL = "https://cpa.1216.top/v1/chat/completions"
const cpaModel = "glm-5.1" const cpaModel = "deepseek-v4-pro"
const minKnowledgeRunes = 80 const minKnowledgeRunes = 120
type knowledgeData struct { type knowledgeData struct {
Content string `json:"content"` Content string `json:"content"`
@@ -96,31 +99,34 @@ func getKnowledgeCardCount(keyword string) int {
return count return count
} }
// systemPromptCodeMark 用于在 Go raw string 中拼接反引号
const systemPromptCodeMark = "`"
const knowledgeSystemPrompt = `你是一位在一线写了 15 年底层系统代码的工程师,只在踩过真实生产级坑之后才写知识卡片。
内容铁律:
- 必须是大多数人不知道的冷知识、反直觉行为、或版本变更导致的隐蔽 break
- 必须包含至少一个精确数值(阈值/延迟/版本号/缓冲区大小/默认值等)
- 必须讲清因果链:触发条件 → 内部机制 → 实际后果 → 正确做法
- 禁止泛泛而谈,禁止复述文档,禁止入门级内容
- 每次从不同角度切入,不要重复之前的知识点
格式:
- Markdown:**加粗**重点、` + systemPromptCodeMark + `行内代码` + systemPromptCodeMark + `标记术语、简短列表
- 120-200字,紧凑无废话
- 不要 emoji`
func fetchKnowledgeFromLLM(keyword string, cfg *Config) string { func fetchKnowledgeFromLLM(keyword string, cfg *Config) string {
basePrompt := buildKnowledgePrompt(keyword, cfg.KnowledgePrompt) basePrompt := buildKnowledgePrompt(keyword, cfg.KnowledgePrompt)
messages := []map[string]string{ messages := []map[string]string{
{ {"role": "system", "content": knowledgeSystemPrompt},
"role": "system",
"content": `你是一位资深技术专家,面向有多年经验的开发者撰写知识卡片。
内容标准:
- 必须包含可直接用于生产的硬核知识:底层原理、性能陷阱、边界条件、源码级细节
- 优先讲"为什么"而非"是什么"——机制、权衡、踩坑经验
- 用具体数值、代码片段(仅关键词级别)、或真实场景佐证
- 读者看完能立刻在项目中应用或避免踩坑
禁止:
- 入门级科普、"是什么"式定义、百科搬运
- 空泛鸡汤("很重要"、"提升效率"、"广泛应用")
- 标题、序号、Markdown标记、emoji`,
},
{"role": "user", "content": basePrompt}, {"role": "user", "content": basePrompt},
} }
body := map[string]interface{}{ body := map[string]interface{}{
"model": cpaModel, "model": cpaModel,
"max_completion_tokens": 2048, "max_completion_tokens": 2048,
"temperature": 0.55, "temperature": 0.8,
"messages": messages, "messages": messages,
} }
content := requestKnowledgeCompletion(body) content := requestKnowledgeCompletion(body)
@@ -131,9 +137,13 @@ func fetchKnowledgeFromLLM(keyword string, cfg *Config) string {
log.Printf("知识卡片质量不足,重试: %q", content) log.Printf("知识卡片质量不足,重试: %q", content)
messages = append(messages, map[string]string{ messages = append(messages, map[string]string{
"role": "assistant",
"content": content,
}, map[string]string{
"role": "user", "role": "user",
"content": fmt.Sprintf( "content": fmt.Sprintf(
"上一条太短或信息密度不足。请重写一条「%s」知识卡片:120-180个中文字符,必须包含一个明确机制/原理、一个具体例子或应用场景、一个结论。只输出正文。", "上面这条「%s」知识卡片质量不行:要么太短、要么没有具体数值、要么信息密度不够。"+
"请换一个完全不同的角度重写,必须包含:一个精确数值 + 一个底层机制 + 一个生产踩坑场景。",
keyword, keyword,
), ),
}) })
@@ -147,14 +157,38 @@ func fetchKnowledgeFromLLM(keyword string, cfg *Config) string {
return "" return ""
} }
const promptCodeMark = "`"
// 知识卡片随机切入角度,确保每次生成不同内容
var knowledgeAngles = []string{
"性能陷阱与调优",
"并发/竞态/死锁",
"内存泄漏与 GC",
"网络协议底层行为",
"安全漏洞与防御",
"错误处理的隐蔽坑",
"版本升级导致的 break change",
"配置默认值的陷阱",
"日志/监控/可观测性",
"序列化/反序列化边界",
"连接池/资源耗尽",
"编译器/运行时的反直觉行为",
"缓存一致性与失效",
"时区/时间处理陷阱",
"文件系统/IO 边界条件",
}
func buildKnowledgePrompt(keyword, customPrompt string) string { func buildKnowledgePrompt(keyword, customPrompt string) string {
basePrompt := fmt.Sprintf(`围绕「%s」写一条面向资深开发者的技术知识卡片。 angle := knowledgeAngles[rand.Intn(len(knowledgeAngles))]
basePrompt := fmt.Sprintf(`围绕「%s」从「%s」角度写一条面向资深开发者的技术知识卡片。
要求: 要求:
- 100-160字,2-3句连贯正文 - 120-180字,信息密度极高
- 必须触及底层机制、性能细节或生产踩坑经验 - 必须是反常识、冷门陷阱、或版本差异等非常规知识点
- 必须包含一个具体场景或数值佐证(如延迟数据、内存阈值、版本差异等) - 必须包含至少一个精确数值(如:默认超时 30s、缓冲区 4KB、Go 1.21 修复等)
- 直接输出正文,不要标题、编号、Markdown`, keyword) - 必须讲清因果链:什么场景触发 → 底层发生了什么 → 有什么后果 → 正确做法
- 用 Markdown 格式:**加粗重点**、`+promptCodeMark+`行内代码`+promptCodeMark+`标记术语
- 不要写常见知识点,不要复述官方文档`, keyword, angle)
if customPrompt != "" { if customPrompt != "" {
basePrompt += "\n附加风格要求(不能覆盖上面的字数和质量要求):" + customPrompt basePrompt += "\n附加风格要求(不能覆盖上面的字数和质量要求):" + customPrompt
} }
@@ -186,8 +220,30 @@ func requestKnowledgeCompletion(body map[string]interface{}) string {
if resp.StatusCode != 200 { if resp.StatusCode != 200 {
log.Printf("知识API返回状态码: %d", resp.StatusCode) log.Printf("知识API返回状态码: %d", resp.StatusCode)
if resp.StatusCode == 429 {
// 限流:等待后用新 body 重试
time.Sleep(3 * time.Second)
req2, err2 := http.NewRequest("POST", cpaURL, bytes.NewReader(jsonData))
if err2 != nil {
return "" return ""
} }
req2.Header.Set("Authorization", "Bearer "+key)
req2.Header.Set("Content-Type", "application/json")
resp2, err2 := httpClient.Do(req2)
if err2 != nil {
log.Println("知识API重试失败:", err2)
return ""
}
defer resp2.Body.Close()
if resp2.StatusCode != 200 {
log.Printf("知识API重试状态码: %d", resp2.StatusCode)
return ""
}
resp = resp2
} else {
return ""
}
}
var result struct { var result struct {
Choices []struct { Choices []struct {
@@ -201,6 +257,10 @@ func requestKnowledgeCompletion(body map[string]interface{}) string {
log.Println("知识API响应解析失败") log.Println("知识API响应解析失败")
return "" return ""
} }
if len(result.Choices) == 0 {
log.Println("知识API: choices 为空")
return ""
}
if len(result.Choices) > 0 { if len(result.Choices) > 0 {
c := result.Choices[0].Message.Content c := result.Choices[0].Message.Content
if c == "" { if c == "" {
@@ -211,29 +271,58 @@ func requestKnowledgeCompletion(body map[string]interface{}) string {
return "" return ""
} }
// normalizeKnowledgeContent 清洗 LLM 输出的格式残留(Markdown标记、标题前缀、多余空白) // normalizeKnowledgeContent 清洗 LLM 输出的格式残留,保留 Markdown 标记
func normalizeKnowledgeContent(content string) string { func normalizeKnowledgeContent(content string) string {
content = strings.TrimSpace(content) content = strings.TrimSpace(content)
content = strings.Trim(content, "` \t\r\n") // 去除整段代码块包裹
if strings.HasPrefix(content, "```") && strings.HasSuffix(content, "```") {
content = strings.TrimPrefix(content, "```")
// 去除语言标识行
if idx := strings.Index(content, "\n"); idx >= 0 && !strings.Contains(content[:idx], " ") {
content = content[idx+1:]
}
content = strings.TrimSuffix(content, "```")
content = strings.TrimSpace(content)
}
// 去除常见前缀
content = strings.TrimPrefix(content, "知识卡片:") content = strings.TrimPrefix(content, "知识卡片:")
content = strings.TrimPrefix(content, "知识卡片:") content = strings.TrimPrefix(content, "知识卡片:")
content = strings.TrimPrefix(content, "正文:") content = strings.TrimPrefix(content, "正文:")
content = strings.TrimPrefix(content, "正文:") content = strings.TrimPrefix(content, "正文:")
// 统一换行
content = strings.ReplaceAll(content, "\r\n", "\n") content = strings.ReplaceAll(content, "\r\n", "\n")
lines := strings.FieldsFunc(content, func(r rune) bool { // 连续空行压缩为两个换行(Markdown 段落分隔)
return r == '\n' || r == '\r' || r == '\t' for strings.Contains(content, "\n\n\n") {
}) content = strings.ReplaceAll(content, "\n\n\n", "\n\n")
content = strings.Join(lines, " ") }
content = strings.Join(strings.Fields(content), " ") // 行尾空白清理
lines := strings.Split(content, "\n")
for i, line := range lines {
lines[i] = strings.TrimRight(line, " \t")
}
content = strings.Join(lines, "\n")
return strings.TrimSpace(content) return strings.TrimSpace(content)
} }
// isQualityKnowledgeCard 检查字数 ≥80 且空泛表述 <3 条 var numberRe = regexp.MustCompile(`\d+`)
// weakPhrases 空泛表述列表
var weakPhrases = []string{
"很重要", "非常重要", "很有用", "提升效率", "值得关注",
"可以帮助", "广泛应用", "具有重要作用", "不可忽视", "具有重要意义",
}
// isQualityKnowledgeCard 检查质量:字数≥120、有空泛表述上限、必须含数字、信息密度
func isQualityKnowledgeCard(content string) bool { func isQualityKnowledgeCard(content string) bool {
if utf8.RuneCountInString(content) < minKnowledgeRunes { runes := utf8.RuneCountInString(content)
if runes < minKnowledgeRunes {
return false return false
} }
weakPhrases := []string{"很重要", "非常重要", "很有用", "提升效率", "值得关注", "可以帮助", "广泛应用"} // 必须包含数字(确保有具体数值)
if !numberRe.MatchString(content) {
return false
}
// 空泛表述检查
weakHits := 0 weakHits := 0
for _, phrase := range weakPhrases { for _, phrase := range weakPhrases {
if strings.Contains(content, phrase) { if strings.Contains(content, phrase) {
@@ -243,7 +332,21 @@ func isQualityKnowledgeCard(content string) bool {
if weakHits >= 3 { if weakHits >= 3 {
return false return false
} }
return strings.ContainsAny(content, "。;;::,,") // 必须有标点(非空内容)
if !strings.ContainsAny(content, "。;;::,,") {
return false
}
// 信息密度:非中文字符(代码、数字、标点、Markdown)占比 ≥ 15%
nonCJK := 0
for _, r := range content {
if !unicode.Is(unicode.Han, r) && !unicode.IsSpace(r) {
nonCJK++
}
}
if float64(nonCJK)/float64(runes) < 0.10 {
return false
}
return true
} }
func pushKnowledgeJSON(content, keyword string) { func pushKnowledgeJSON(content, keyword string) {
@@ -251,7 +354,21 @@ func pushKnowledgeJSON(content, keyword string) {
evalJS(fmt.Sprintf(`if(window.updateKnowledgeFromGo) window.updateKnowledgeFromGo(%s)`, string(data))) evalJS(fmt.Sprintf(`if(window.updateKnowledgeFromGo) window.updateKnowledgeFromGo(%s)`, string(data)))
} }
var lastFetchTime int64 // unix timestamp, 限流冷却
func fetchAndPushKnowledge() { func fetchAndPushKnowledge() {
// 30s 冷却,防止频繁点击触发限流
now := time.Now().Unix()
if now-atomic.LoadInt64(&lastFetchTime) < 30 {
// 冷却中,回退显示缓存
cfg := loadConfig()
if cached := getRandomKnowledgeCard(cfg.KnowledgeKeyword); cached != "" {
pushKnowledgeJSON(cached, cfg.KnowledgeKeyword)
}
return
}
atomic.StoreInt64(&lastFetchTime, now)
cfg := loadConfig() cfg := loadConfig()
keyword := cfg.KnowledgeKeyword keyword := cfg.KnowledgeKeyword
if keyword == "" { if keyword == "" {
+40 -18
View File
@@ -12,6 +12,7 @@ import (
"unsafe" "unsafe"
"github.com/jchv/go-webview2" "github.com/jchv/go-webview2"
"golang.org/x/sys/windows"
"golang.org/x/sys/windows/registry" "golang.org/x/sys/windows/registry"
) )
@@ -20,8 +21,11 @@ var settingsHTML string
var ( var (
settingsMu sync.Mutex settingsMu sync.Mutex
settingsOpen bool settingsWv webview2.WebView // 持久实例,nil 直到首次打开
settingsHwnd uintptr settingsHwnd uintptr
settingsOldWndProc uintptr // 子类化前的原始 wndproc
settingsWndProcCb uintptr // NewCallback 指针,防止 GC
settingsCreated bool // 首次创建完成后 true
) )
const runKeyPath = `Software\Microsoft\Windows\CurrentVersion\Run` const runKeyPath = `Software\Microsoft\Windows\CurrentVersion\Run`
@@ -71,6 +75,16 @@ func isSystemLightTheme() bool {
return v == 1 return v == 1
} }
// settingsWndProc 拦截 WM_CLOSE,隐藏窗口而非销毁
func settingsWndProc(hwnd, msg, wp, lp uintptr) uintptr {
if msg == 0x0010 { // WM_CLOSE
procShowWindow.Call(hwnd, 0) // SW_HIDE
return 0
}
r, _, _ := procCallWindowProcW.Call(settingsOldWndProc, hwnd, msg, wp, lp)
return r
}
var themeNames = []struct { var themeNames = []struct {
Name ThemeName Name ThemeName
Label string Label string
@@ -105,26 +119,20 @@ func refreshVisibleCards(cfg, oldCfg *Config) {
func openSettingsWindow() { func openSettingsWindow() {
settingsMu.Lock() settingsMu.Lock()
if settingsOpen { if settingsCreated {
settingsMu.Unlock() settingsMu.Unlock()
if settingsHwnd != 0 { procShowWindow.Call(settingsHwnd, 9) // SW_RESTORE
procShowWindow.Call(settingsHwnd, 9) procSetForegroundWindow.Call(settingsHwnd)
procGetForegroundWindow.Call(settingsHwnd) settingsWv.Dispatch(func() {
} settingsWv.Eval("if(window.__refreshSettings) window.__refreshSettings()")
})
return return
} }
settingsOpen = true
settingsMu.Unlock() settingsMu.Unlock()
go func() { go func() {
runtime.LockOSThread() runtime.LockOSThread()
defer func() { defer runtime.UnlockOSThread()
settingsMu.Lock()
settingsOpen = false
settingsHwnd = 0
settingsMu.Unlock()
runtime.UnlockOSThread()
}()
dataDir := filepath.Join(configDir(), "settings-data") dataDir := filepath.Join(configDir(), "settings-data")
os.MkdirAll(dataDir, 0755) os.MkdirAll(dataDir, 0755)
@@ -135,7 +143,7 @@ func openSettingsWindow() {
WindowOptions: webview2.WindowOptions{ WindowOptions: webview2.WindowOptions{
Title: "桌面设置", Title: "桌面设置",
Width: 760, Width: 760,
Height: 1350, Height: 800,
}, },
}) })
if w == nil { if w == nil {
@@ -143,6 +151,17 @@ func openSettingsWindow() {
return return
} }
settingsWv = w
hwnd := uintptr(w.Window())
// 子类化:拦截 WM_CLOSE → 隐藏而非销毁
settingsWndProcCb = windows.NewCallback(settingsWndProc)
oldProc, _, _ := procSetWindowLongPtrW.Call(hwnd, gwlpWndProc, settingsWndProcCb)
settingsOldWndProc = oldProc
// 初始隐藏,resizeToFit 完成后再显示
procShowWindow.Call(hwnd, 0) // SW_HIDE
w.Bind("loadAllSettings", func() string { w.Bind("loadAllSettings", func() string {
cfg := loadConfig() cfg := loadConfig()
@@ -536,13 +555,12 @@ func openSettingsWindow() {
w.SetHtml(settingsHTML) w.SetHtml(settingsHTML)
hwnd := uintptr(w.Window())
// disable resize + hide from taskbar // disable resize + hide from taskbar
style, _, _ := procGetWindowLongPtrW.Call(hwnd, gwlStyle) style, _, _ := procGetWindowLongPtrW.Call(hwnd, gwlStyle)
procSetWindowLongPtrW.Call(hwnd, gwlStyle, style & ^uintptr(wsSizebox|wsMaxbox)) procSetWindowLongPtrW.Call(hwnd, gwlStyle, style & ^uintptr(wsSizebox|wsMaxbox))
procSetWindowLongPtrW.Call(hwnd, gwlExStyle, wsExToolwindow) procSetWindowLongPtrW.Call(hwnd, gwlExStyle, wsExToolwindow)
// resizeToFit: JS measures content, Go adjusts window frame // resizeToFit: JS measures content, Go adjusts window frame, then shows window
w.Bind("resizeToFit", func(contentW, contentH int) string { w.Bind("resizeToFit", func(contentW, contentH int) string {
type rect struct{ Left, Top, Right, Bottom int32 } type rect struct{ Left, Top, Right, Bottom int32 }
var wr, cr rect var wr, cr rect
@@ -562,15 +580,19 @@ func openSettingsWindow() {
x := (int(screenW) - winW) / 2 x := (int(screenW) - winW) / 2
y := (int(screenH) - winH) / 2 y := (int(screenH) - winH) / 2
procMoveWindow.Call(hwnd, uintptr(x), uintptr(y), uintptr(winW), uintptr(winH), 1) procMoveWindow.Call(hwnd, uintptr(x), uintptr(y), uintptr(winW), uintptr(winH), 1)
// 首次 resize 完成后显示窗口
procShowWindow.Call(hwnd, 9) // SW_RESTORE
procSetForegroundWindow.Call(hwnd)
return "" return ""
}) })
settingsMu.Lock() settingsMu.Lock()
settingsHwnd = hwnd settingsHwnd = hwnd
settingsCreated = true
settingsMu.Unlock() settingsMu.Unlock()
log.Println("设置窗口已打开") log.Println("设置窗口已打开")
w.Run() w.Run()
log.Println("设置窗口已关闭") log.Println("设置窗口消息循环退出")
}() }()
} }
+20 -1
View File
@@ -124,7 +124,7 @@ func startWebView() {
wvHwnd = uintptr(wv.Window()) wvHwnd = uintptr(wv.Window())
procShowWindow.Call(wvHwnd, 0) // SW_HIDE procShowWindow.Call(wvHwnd, 0) // SW_HIDE
procSetWindowLongPtrW.Call(wvHwnd, gwlStyle, wsPopup|wsVisible|wsChild) procSetWindowLongPtrW.Call(wvHwnd, gwlStyle, wsPopup|wsVisible|wsChild)
procSetWindowLongPtrW.Call(wvHwnd, gwlExStyle, wsExTransparent|wsExLayered) procSetWindowLongPtrW.Call(wvHwnd, gwlExStyle, wsExLayered)
// 立即嵌入 WorkerW // 立即嵌入 WorkerW
embedWorkerW(workerw, screenW, screenH) embedWorkerW(workerw, screenW, screenH)
@@ -136,6 +136,20 @@ func startWebView() {
return saveConfig(cfg) return saveConfig(cfg)
}) })
wv.Bind("refreshKnowledge", func() string {
go fetchAndPushKnowledge()
return ""
})
wv.Bind("setInteractiveRect", func(left, top, right, bottom float64) string {
overlayHitRect.Left = int32(left)
overlayHitRect.Top = int32(top)
overlayHitRect.Right = int32(right)
overlayHitRect.Bottom = int32(bottom)
overlayHasHitRect = true
return ""
})
log.Println("设置 HTML...") log.Println("设置 HTML...")
cfg := loadConfig() cfg := loadConfig()
wv.SetHtml(buildWallpaperHTML(cfg)) wv.SetHtml(buildWallpaperHTML(cfg))
@@ -145,6 +159,11 @@ func startWebView() {
procShowWindow.Call(wvHwnd, 5) procShowWindow.Call(wvHwnd, 5)
log.Println("壁纸窗口已显示") log.Println("壁纸窗口已显示")
// 子类化:WM_NCHITTEST 动态穿透(WebView2 初始化完成后)
subclassOverlayWindows()
// 全局鼠标钩子:桌面图标层拦截了 WM_NCHITTEST,用钩子直接捕获点击
installMouseHook()
go func() { go func() {
time.Sleep(500 * time.Millisecond) time.Sleep(500 * time.Millisecond)
reloadAllCards() reloadAllCards()
+108 -2
View File
@@ -3,18 +3,73 @@
<div class="knowledge-header"> <div class="knowledge-header">
<span class="knowledge-label">知识卡片</span> <span class="knowledge-label">知识卡片</span>
<span class="knowledge-keyword-tag" v-if="state.knowledge.keyword">#{{ state.knowledge.keyword }}</span> <span class="knowledge-keyword-tag" v-if="state.knowledge.keyword">#{{ state.knowledge.keyword }}</span>
<button class="knowledge-refresh-btn" @click="refresh" title="换一条">↻</button>
</div> </div>
<div class="knowledge-divider"></div> <div class="knowledge-divider"></div>
<div class="knowledge-body" v-if="state.knowledge.content"> <div class="knowledge-body" v-if="state.knowledge.content">
<span class="knowledge-quote">"</span> <span class="knowledge-quote">"</span>
<span class="knowledge-text">{{ state.knowledge.content }}</span> <div class="knowledge-text" v-html="renderedContent"></div>
</div> </div>
<div class="knowledge-placeholder" v-else>请在设置中配置知识关键字</div> <div class="knowledge-placeholder" v-else>请在设置中配置知识关键字</div>
</div> </div>
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
import { computed, onMounted, onUnmounted } from 'vue'
import { state } from '../composables/useOverlayState' import { state } from '../composables/useOverlayState'
function refresh() {
state.knowledge = { ...state.knowledge, content: '加载中...' }
;(window as any).refreshKnowledge?.()
}
function updateHitRect() {
const btn = document.querySelector('.knowledge-refresh-btn') as HTMLElement
if (!btn) return
const r = btn.getBoundingClientRect()
const dpr = window.devicePixelRatio || 1
// 扩大点击区域 8px 方便点击
const pad = 8 * dpr
;(window as any).setInteractiveRect?.(
Math.round(r.left * dpr - pad), Math.round(r.top * dpr - pad),
Math.round(r.right * dpr + pad), Math.round(r.bottom * dpr + pad)
)
}
onMounted(() => {
updateHitRect()
window.addEventListener('resize', updateHitRect)
})
onUnmounted(() => {
window.removeEventListener('resize', updateHitRect)
})
function renderMarkdown(text: string): string {
let html = text
// 代码块 (```...```) → <pre><code>
html = html.replace(/```(\w*)\n?([\s\S]*?)```/g, '<pre><code>$2</code></pre>')
// 行内代码 (`...`) → <code>
html = html.replace(/`([^`]+)`/g, '<code>$1</code>')
// 加粗 (**...**) → <strong>
html = html.replace(/\*\*(.+?)\*\*/g, '<strong>$1</strong>')
// 斜体 (*...*) → <em>
html = html.replace(/(?<!\*)\*(?!\*)(.+?)(?<!\*)\*(?!\*)/g, '<em>$1</em>')
// ## 标题 → <h3>
html = html.replace(/^##\s+(.+)$/gm, '<h3>$1</h3>')
// 无序列表 → <li>
html = html.replace(/^[-*]\s+(.+)$/gm, '<li>$1</li>')
// 连续 <li> 包裹 <ul>
html = html.replace(/((?:<li>[\s\S]*?<\/li>\s*)+)/g, '<ul>$1</ul>')
// 段落(双换行分隔)
html = html.replace(/\n\n+/g, '</p><p>')
// 单换行 → <br>(非 <li>、<h3>、<pre> 内部)
html = html.replace(/(?<!<\/li>|<\/h3>|<\/pre>|<\/code>)\n(?!<li>|<h3>|<pre>|<\/ul>)/g, '<br>')
// 包裹在 <p> 中
if (!html.startsWith('<')) html = '<p>' + html + '</p>'
return html
}
const renderedContent = computed(() => renderMarkdown(state.knowledge.content))
</script> </script>
<style scoped> <style scoped>
@@ -38,6 +93,25 @@ import { state } from '../composables/useOverlayState'
font-size: 10px; font-weight: 600; font-size: 10px; font-weight: 600;
border: 1px solid rgba(255,216,107,0.15); border: 1px solid rgba(255,216,107,0.15);
} }
.knowledge-refresh-btn {
margin-left: auto;
background: none; border: none; cursor: pointer;
color: var(--accent-warm); font-size: 16px; line-height: 1;
padding: 2px 4px; border-radius: 4px;
transition: all 0.3s;
opacity: 0.7;
animation: pulse-hint 3s ease-in-out infinite;
}
.knowledge-refresh-btn:hover,
.knowledge-refresh-btn.hover-active {
opacity: 1;
transform: rotate(180deg) scale(1.2);
background: rgba(255,216,107,0.15);
}
@keyframes pulse-hint {
0%, 100% { opacity: 0.5; }
50% { opacity: 0.8; }
}
.knowledge-divider { .knowledge-divider {
height: 1px; height: 1px;
background: linear-gradient(90deg, var(--accent-warm), rgba(255,216,107,0.08), transparent); background: linear-gradient(90deg, var(--accent-warm), rgba(255,216,107,0.08), transparent);
@@ -56,9 +130,41 @@ import { state } from '../composables/useOverlayState'
.knowledge-text { .knowledge-text {
font-size: 15px; color: var(--text-main); font-size: 15px; color: var(--text-main);
line-height: 1.7; text-shadow: 0 1px 4px rgba(0,0,0,0.5); line-height: 1.7; text-shadow: 0 1px 4px rgba(0,0,0,0.5);
display: -webkit-box; -webkit-line-clamp: 8; display: -webkit-box; -webkit-line-clamp: 10;
-webkit-box-orient: vertical; overflow: hidden; -webkit-box-orient: vertical; overflow: hidden;
} }
.knowledge-text :deep(h3) {
font-size: 14px; font-weight: 700;
color: var(--accent-warm); margin: 10px 0 6px;
}
.knowledge-text :deep(strong) {
color: var(--text-strong); font-weight: 600;
}
.knowledge-text :deep(code) {
background: rgba(255,255,255,0.08);
padding: 1px 5px; border-radius: 3px;
font-size: 13px; font-family: 'Cascadia Code', 'Fira Code', monospace;
color: var(--accent-warm);
}
.knowledge-text :deep(pre) {
background: rgba(0,0,0,0.3);
padding: 8px 10px; border-radius: 6px;
margin: 8px 0; overflow-x: auto;
}
.knowledge-text :deep(pre code) {
background: none; padding: 0;
font-size: 13px;
}
.knowledge-text :deep(ul) {
padding-left: 16px; margin: 6px 0;
}
.knowledge-text :deep(li) {
font-size: 14px; line-height: 1.6;
list-style: disc;
}
.knowledge-text :deep(em) {
color: var(--text-faint); font-style: italic;
}
.knowledge-placeholder { .knowledge-placeholder {
font-size: 13px; color: var(--text-faint); font-size: 13px; color: var(--text-faint);
font-style: italic; padding-top: 8px; font-style: italic; padding-top: 8px;
@@ -48,6 +48,7 @@ import PhotoCard from './PhotoCard.vue'
pointer-events: none; pointer-events: none;
} }
#layout-multi > .card { pointer-events: none; } #layout-multi > .card { pointer-events: none; }
#card-knowledge { pointer-events: auto; }
#card-time { #card-time {
grid-area: time; text-align: left; grid-area: time; text-align: left;
width: 100%; height: 100%; padding: 22px 30px; width: 100%; height: 100%; padding: 22px 30px;
+11 -5
View File
@@ -38,6 +38,16 @@ const s = reactive<SettingsData>({
audioVizStyle: 'bars', audioSensitivity: 1.5, audioSmoothing: 0.7, audioColorScheme: 'neon', audioVizStyle: 'bars', audioSensitivity: 1.5, audioSmoothing: 0.7, audioColorScheme: 'neon',
}) })
async function refreshFromGo() {
const raw = await go.loadAllSettings()
const data = JSON.parse(raw) as SettingsData
if (data.lightTheme) document.documentElement.className = 'light'
Object.assign(s, { ...data, citiesByProv: data.citiesByProv || {}, provinces: data.provinces || [], themes: data.themes || [], savedColors: data.savedColors || [] })
if (data.color1) { currentColor.c1 = data.color1; currentColor.c2 = data.color2 || ''; currentColor.gradient = data.colorGradient || false }
}
;(window as any).__refreshSettings = refreshFromGo
// Shared state for color section // Shared state for color section
const currentColor = reactive({ c1: '', c2: '', gradient: false }) const currentColor = reactive({ c1: '', c2: '', gradient: false })
@@ -76,11 +86,7 @@ async function onRemoveSavedColor(idx: number) {
} }
onMounted(async () => { onMounted(async () => {
const raw = await go.loadAllSettings() await refreshFromGo()
const data = JSON.parse(raw) as SettingsData
if (data.lightTheme) document.documentElement.className = 'light'
Object.assign(s, { ...data, citiesByProv: data.citiesByProv || {}, provinces: data.provinces || [], themes: data.themes || [], savedColors: data.savedColors || [] })
if (data.color1) { currentColor.c1 = data.color1; currentColor.c2 = data.color2 || ''; currentColor.gradient = data.colorGradient || false }
setTimeout(() => { setTimeout(() => {
const el = document.documentElement const el = document.documentElement
if (go.resizeToFit) go.resizeToFit(el.scrollWidth, el.scrollHeight + 8) if (go.resizeToFit) go.resizeToFit(el.scrollWidth, el.scrollHeight + 8)
+6 -6
View File
@@ -3,24 +3,24 @@
<head> <head>
<meta charset="UTF-8"> <meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<script type="module" crossorigin>(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))n(i);new MutationObserver(i=>{for(const r of i)if(r.type==="childList")for(const o of r.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&n(o)}).observe(document,{childList:!0,subtree:!0});function s(i){const r={};return i.integrity&&(r.integrity=i.integrity),i.referrerPolicy&&(r.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?r.credentials="include":i.crossOrigin==="anonymous"?r.credentials="omit":r.credentials="same-origin",r}function n(i){if(i.ep)return;i.ep=!0;const r=s(i);fetch(i.href,r)}})();/** <script type="module" crossorigin>(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))n(r);new MutationObserver(r=>{for(const i of r)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&n(o)}).observe(document,{childList:!0,subtree:!0});function s(r){const i={};return r.integrity&&(i.integrity=r.integrity),r.referrerPolicy&&(i.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?i.credentials="include":r.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function n(r){if(r.ep)return;r.ep=!0;const i=s(r);fetch(r.href,i)}})();/**
* @vue/shared v3.5.34 * @vue/shared v3.5.34
* (c) 2018-present Yuxi (Evan) You and Vue contributors * (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT * @license MIT
**/function Us(e){const t=Object.create(null);for(const s of e.split(","))t[s]=1;return s=>s in t}const Z={},dt=[],Pe=()=>{},Bn=()=>!1,ls=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),cs=e=>e.startsWith("onUpdate:"),oe=Object.assign,Ws=(e,t)=>{const s=e.indexOf(t);s>-1&&e.splice(s,1)},nr=Object.prototype.hasOwnProperty,j=(e,t)=>nr.call(e,t),R=Array.isArray,ht=e=>jt(e)==="[object Map]",zn=e=>jt(e)==="[object Set]",pn=e=>jt(e)==="[object Date]",D=e=>typeof e=="function",ee=e=>typeof e=="string",Fe=e=>typeof e=="symbol",B=e=>e!==null&&typeof e=="object",qn=e=>(B(e)||D(e))&&D(e.then)&&D(e.catch),Gn=Object.prototype.toString,jt=e=>Gn.call(e),ir=e=>jt(e).slice(8,-1),Jn=e=>jt(e)==="[object Object]",Bs=e=>ee(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Mt=Us(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),fs=e=>{const t=Object.create(null);return(s=>t[s]||(t[s]=e(s)))},rr=/-\w/g,ye=fs(e=>e.replace(rr,t=>t.slice(1).toUpperCase())),or=/\B([A-Z])/g,ct=fs(e=>e.replace(or,"-$1").toLowerCase()),Zn=fs(e=>e.charAt(0).toUpperCase()+e.slice(1)),ws=fs(e=>e?`on${Zn(e)}`:""),Ie=(e,t)=>!Object.is(e,t),xs=(e,...t)=>{for(let s=0;s<e.length;s++)e[s](...t)},Yn=(e,t,s,n=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:n,value:s})},lr=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let gn;const us=()=>gn||(gn=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function lt(e){if(R(e)){const t={};for(let s=0;s<e.length;s++){const n=e[s],i=ee(n)?ar(n):lt(n);if(i)for(const r in i)t[r]=i[r]}return t}else if(ee(e)||B(e))return e}const cr=/;(?![^(]*\))/g,fr=/:([^]+)/,ur=/\/\*[^]*?\*\//g;function ar(e){const t={};return e.replace(ur,"").split(cr).forEach(s=>{if(s){const n=s.split(fr);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function as(e){let t="";if(ee(e))t=e;else if(R(e))for(let s=0;s<e.length;s++){const n=as(e[s]);n&&(t+=n+" ")}else if(B(e))for(const s in e)e[s]&&(t+=s+" ");return t.trim()}const dr="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",hr=Us(dr);function Xn(e){return!!e||e===""}function pr(e,t){if(e.length!==t.length)return!1;let s=!0;for(let n=0;s&&n<e.length;n++)s=zs(e[n],t[n]);return s}function zs(e,t){if(e===t)return!0;let s=pn(e),n=pn(t);if(s||n)return s&&n?e.getTime()===t.getTime():!1;if(s=Fe(e),n=Fe(t),s||n)return e===t;if(s=R(e),n=R(t),s||n)return s&&n?pr(e,t):!1;if(s=B(e),n=B(t),s||n){if(!s||!n)return!1;const i=Object.keys(e).length,r=Object.keys(t).length;if(i!==r)return!1;for(const o in e){const l=e.hasOwnProperty(o),f=t.hasOwnProperty(o);if(l&&!f||!l&&f||!zs(e[o],t[o]))return!1}}return String(e)===String(t)}const Qn=e=>!!(e&&e.__v_isRef===!0),K=e=>ee(e)?e:e==null?"":R(e)||B(e)&&(e.toString===Gn||!D(e.toString))?Qn(e)?K(e.value):JSON.stringify(e,ei,2):String(e),ei=(e,t)=>Qn(t)?ei(e,t.value):ht(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((s,[n,i],r)=>(s[Ss(n,r)+" =>"]=i,s),{})}:zn(t)?{[`Set(${t.size})`]:[...t.values()].map(s=>Ss(s))}:Fe(t)?Ss(t):B(t)&&!R(t)&&!Jn(t)?String(t):t,Ss=(e,t="")=>{var s;return Fe(e)?`Symbol(${(s=e.description)!=null?s:t})`:e};/** **/function Us(e){const t=Object.create(null);for(const s of e.split(","))t[s]=1;return s=>s in t}const Z={},ht=[],Pe=()=>{},Bn=()=>!1,cs=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),fs=e=>e.startsWith("onUpdate:"),oe=Object.assign,Bs=(e,t)=>{const s=e.indexOf(t);s>-1&&e.splice(s,1)},ni=Object.prototype.hasOwnProperty,j=(e,t)=>ni.call(e,t),R=Array.isArray,pt=e=>jt(e)==="[object Map]",zn=e=>jt(e)==="[object Set]",pn=e=>jt(e)==="[object Date]",D=e=>typeof e=="function",ee=e=>typeof e=="string",Fe=e=>typeof e=="symbol",B=e=>e!==null&&typeof e=="object",qn=e=>(B(e)||D(e))&&D(e.then)&&D(e.catch),Gn=Object.prototype.toString,jt=e=>Gn.call(e),ri=e=>jt(e).slice(8,-1),Jn=e=>jt(e)==="[object Object]",zs=e=>ee(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Mt=Us(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),us=e=>{const t=Object.create(null);return(s=>t[s]||(t[s]=e(s)))},ii=/-\w/g,ye=us(e=>e.replace(ii,t=>t.slice(1).toUpperCase())),oi=/\B([A-Z])/g,ft=us(e=>e.replace(oi,"-$1").toLowerCase()),Zn=us(e=>e.charAt(0).toUpperCase()+e.slice(1)),xs=us(e=>e?`on${Zn(e)}`:""),$e=(e,t)=>!Object.is(e,t),Ss=(e,...t)=>{for(let s=0;s<e.length;s++)e[s](...t)},Yn=(e,t,s,n=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:n,value:s})},li=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let gn;const as=()=>gn||(gn=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function lt(e){if(R(e)){const t={};for(let s=0;s<e.length;s++){const n=e[s],r=ee(n)?ai(n):lt(n);if(r)for(const i in r)t[i]=r[i]}return t}else if(ee(e)||B(e))return e}const ci=/;(?![^(]*\))/g,fi=/:([^]+)/,ui=/\/\*[^]*?\*\//g;function ai(e){const t={};return e.replace(ui,"").split(ci).forEach(s=>{if(s){const n=s.split(fi);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function ds(e){let t="";if(ee(e))t=e;else if(R(e))for(let s=0;s<e.length;s++){const n=ds(e[s]);n&&(t+=n+" ")}else if(B(e))for(const s in e)e[s]&&(t+=s+" ");return t.trim()}const di="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",hi=Us(di);function Xn(e){return!!e||e===""}function pi(e,t){if(e.length!==t.length)return!1;let s=!0;for(let n=0;s&&n<e.length;n++)s=qs(e[n],t[n]);return s}function qs(e,t){if(e===t)return!0;let s=pn(e),n=pn(t);if(s||n)return s&&n?e.getTime()===t.getTime():!1;if(s=Fe(e),n=Fe(t),s||n)return e===t;if(s=R(e),n=R(t),s||n)return s&&n?pi(e,t):!1;if(s=B(e),n=B(t),s||n){if(!s||!n)return!1;const r=Object.keys(e).length,i=Object.keys(t).length;if(r!==i)return!1;for(const o in e){const l=e.hasOwnProperty(o),f=t.hasOwnProperty(o);if(l&&!f||!l&&f||!qs(e[o],t[o]))return!1}}return String(e)===String(t)}const Qn=e=>!!(e&&e.__v_isRef===!0),W=e=>ee(e)?e:e==null?"":R(e)||B(e)&&(e.toString===Gn||!D(e.toString))?Qn(e)?W(e.value):JSON.stringify(e,er,2):String(e),er=(e,t)=>Qn(t)?er(e,t.value):pt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((s,[n,r],i)=>(s[Ts(n,i)+" =>"]=r,s),{})}:zn(t)?{[`Set(${t.size})`]:[...t.values()].map(s=>Ts(s))}:Fe(t)?Ts(t):B(t)&&!R(t)&&!Jn(t)?String(t):t,Ts=(e,t="")=>{var s;return Fe(e)?`Symbol(${(s=e.description)!=null?s:t})`:e};/**
* @vue/reactivity v3.5.34 * @vue/reactivity v3.5.34
* (c) 2018-present Yuxi (Evan) You and Vue contributors * (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT * @license MIT
**/let re;class gr{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this._warnOnRun=!0,this.__v_skip=!0,!t&&re&&(re.active?(this.parent=re,this.index=(re.scopes||(re.scopes=[])).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,s;if(this.scopes)for(t=0,s=this.scopes.length;t<s;t++)this.scopes[t].pause();for(t=0,s=this.effects.length;t<s;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,s;if(this.scopes)for(t=0,s=this.scopes.length;t<s;t++)this.scopes[t].resume();for(t=0,s=this.effects.length;t<s;t++)this.effects[t].resume()}}run(t){if(this._active){const s=re;try{return re=this,t()}finally{re=s}}}on(){++this._on===1&&(this.prevScope=re,re=this)}off(){if(this._on>0&&--this._on===0){if(re===this)re=this.prevScope;else{let t=re;for(;t;){if(t.prevScope===this){t.prevScope=this.prevScope;break}t=t.prevScope}}this.prevScope=void 0}}stop(t){if(this._active){this._active=!1;let s,n;for(s=0,n=this.effects.length;s<n;s++)this.effects[s].stop();for(this.effects.length=0,s=0,n=this.cleanups.length;s<n;s++)this.cleanups[s]();if(this.cleanups.length=0,this.scopes){for(s=0,n=this.scopes.length;s<n;s++)this.scopes[s].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const i=this.parent.scopes.pop();i&&i!==this&&(this.parent.scopes[this.index]=i,i.index=this.index)}this.parent=void 0}}}function _r(){return re}let J;const Ts=new WeakSet;class ti{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,re&&(re.active?re.effects.push(this):this.flags&=-2)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Ts.has(this)&&(Ts.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||ni(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,_n(this),ii(this);const t=J,s=be;J=this,be=!0;try{return this.fn()}finally{ri(this),J=t,be=s,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)Js(t);this.deps=this.depsTail=void 0,_n(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Ts.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Ps(this)&&this.run()}get dirty(){return Ps(this)}}let si=0,It,$t;function ni(e,t=!1){if(e.flags|=8,t){e.next=$t,$t=e;return}e.next=It,It=e}function qs(){si++}function Gs(){if(--si>0)return;if($t){let t=$t;for($t=void 0;t;){const s=t.next;t.next=void 0,t.flags&=-9,t=s}}let e;for(;It;){let t=It;for(It=void 0;t;){const s=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(n){e||(e=n)}t=s}}if(e)throw e}function ii(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function ri(e){let t,s=e.depsTail,n=s;for(;n;){const i=n.prevDep;n.version===-1?(n===s&&(s=i),Js(n),mr(n)):t=n,n.dep.activeLink=n.prevActiveLink,n.prevActiveLink=void 0,n=i}e.deps=t,e.depsTail=s}function Ps(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(oi(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function oi(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Dt)||(e.globalVersion=Dt,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Ps(e))))return;e.flags|=2;const t=e.dep,s=J,n=be;J=e,be=!0;try{ii(e);const i=e.fn(e._value);(t.version===0||Ie(i,e._value))&&(e.flags|=128,e._value=i,t.version++)}catch(i){throw t.version++,i}finally{J=s,be=n,ri(e),e.flags&=-3}}function Js(e,t=!1){const{dep:s,prevSub:n,nextSub:i}=e;if(n&&(n.nextSub=i,e.prevSub=void 0),i&&(i.prevSub=n,e.nextSub=void 0),s.subs===e&&(s.subs=n,!n&&s.computed)){s.computed.flags&=-5;for(let r=s.computed.deps;r;r=r.nextDep)Js(r,!0)}!t&&!--s.sc&&s.map&&s.map.delete(s.key)}function mr(e){const{prevDep:t,nextDep:s}=e;t&&(t.nextDep=s,e.prevDep=void 0),s&&(s.prevDep=t,e.nextDep=void 0)}let be=!0;const li=[];function Ve(){li.push(be),be=!1}function je(){const e=li.pop();be=e===void 0?!0:e}function _n(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const s=J;J=void 0;try{t()}finally{J=s}}}let Dt=0;class yr{constructor(t,s){this.sub=t,this.dep=s,this.version=s.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class Zs{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}track(t){if(!J||!be||J===this.computed)return;let s=this.activeLink;if(s===void 0||s.sub!==J)s=this.activeLink=new yr(J,this),J.deps?(s.prevDep=J.depsTail,J.depsTail.nextDep=s,J.depsTail=s):J.deps=J.depsTail=s,ci(s);else if(s.version===-1&&(s.version=this.version,s.nextDep)){const n=s.nextDep;n.prevDep=s.prevDep,s.prevDep&&(s.prevDep.nextDep=n),s.prevDep=J.depsTail,s.nextDep=void 0,J.depsTail.nextDep=s,J.depsTail=s,J.deps===s&&(J.deps=n)}return s}trigger(t){this.version++,Dt++,this.notify(t)}Line truncated **/let ie;class gi{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this._warnOnRun=!0,this.__v_skip=!0,!t&&ie&&(ie.active?(this.parent=ie,this.index=(ie.scopes||(ie.scopes=[])).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,s;if(this.scopes)for(t=0,s=this.scopes.length;t<s;t++)this.scopes[t].pause();for(t=0,s=this.effects.length;t<s;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,s;if(this.scopes)for(t=0,s=this.scopes.length;t<s;t++)this.scopes[t].resume();for(t=0,s=this.effects.length;t<s;t++)this.effects[t].resume()}}run(t){if(this._active){const s=ie;try{return ie=this,t()}finally{ie=s}}}on(){++this._on===1&&(this.prevScope=ie,ie=this)}off(){if(this._on>0&&--this._on===0){if(ie===this)ie=this.prevScope;else{let t=ie;for(;t;){if(t.prevScope===this){t.prevScope=this.prevScope;break}t=t.prevScope}}this.prevScope=void 0}}stop(t){if(this._active){this._active=!1;let s,n;for(s=0,n=this.effects.length;s<n;s++)this.effects[s].stop();for(this.effects.length=0,s=0,n=this.cleanups.length;s<n;s++)this.cleanups[s]();if(this.cleanups.length=0,this.scopes){for(s=0,n=this.scopes.length;s<n;s++)this.scopes[s].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 _i(){return ie}let J;const Cs=new WeakSet;class tr{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,ie&&(ie.active?ie.effects.push(this):this.flags&=-2)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Cs.has(this)&&(Cs.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||nr(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,_n(this),rr(this);const t=J,s=be;J=this,be=!0;try{return this.fn()}finally{ir(this),J=t,be=s,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)Zs(t);this.deps=this.depsTail=void 0,_n(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Cs.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Fs(this)&&this.run()}get dirty(){return Fs(this)}}let sr=0,$t,It;function nr(e,t=!1){if(e.flags|=8,t){e.next=It,It=e;return}e.next=$t,$t=e}function Gs(){sr++}function Js(){if(--sr>0)return;if(It){let t=It;for(It=void 0;t;){const s=t.next;t.next=void 0,t.flags&=-9,t=s}}let e;for(;$t;){let t=$t;for($t=void 0;t;){const s=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(n){e||(e=n)}t=s}}if(e)throw e}function rr(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,s=e.depsTail,n=s;for(;n;){const r=n.prevDep;n.version===-1?(n===s&&(s=r),Zs(n),mi(n)):t=n,n.dep.activeLink=n.prevActiveLink,n.prevActiveLink=void 0,n=r}e.deps=t,e.depsTail=s}function Fs(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(or(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function or(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Dt)||(e.globalVersion=Dt,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Fs(e))))return;e.flags|=2;const t=e.dep,s=J,n=be;J=e,be=!0;try{rr(e);const r=e.fn(e._value);(t.version===0||$e(r,e._value))&&(e.flags|=128,e._value=r,t.version++)}catch(r){throw t.version++,r}finally{J=s,be=n,ir(e),e.flags&=-3}}function Zs(e,t=!1){const{dep:s,prevSub:n,nextSub:r}=e;if(n&&(n.nextSub=r,e.prevSub=void 0),r&&(r.prevSub=n,e.nextSub=void 0),s.subs===e&&(s.subs=n,!n&&s.computed)){s.computed.flags&=-5;for(let i=s.computed.deps;i;i=i.nextDep)Zs(i,!0)}!t&&!--s.sc&&s.map&&s.map.delete(s.key)}function mi(e){const{prevDep:t,nextDep:s}=e;t&&(t.nextDep=s,e.prevDep=void 0),s&&(s.prevDep=t,e.nextDep=void 0)}let be=!0;const lr=[];function Ve(){lr.push(be),be=!1}function je(){const e=lr.pop();be=e===void 0?!0:e}function _n(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const s=J;J=void 0;try{t()}finally{J=s}}}let Dt=0;class yi{constructor(t,s){this.sub=t,this.dep=s,this.version=s.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class Ys{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}track(t){if(!J||!be||J===this.computed)return;let s=this.activeLink;if(s===void 0||s.sub!==J)s=this.activeLink=new yi(J,this),J.deps?(s.prevDep=J.depsTail,J.depsTail.nextDep=s,J.depsTail=s):J.deps=J.depsTail=s,cr(s);else if(s.version===-1&&(s.version=this.version,s.nextDep)){const n=s.nextDep;n.prevDep=s.prevDep,s.prevDep&&(s.prevDep.nextDep=n),s.prevDep=J.depsTail,s.nextDep=void 0,J.depsTail.nextDep=s,J.depsTail=s,J.deps===s&&(J.deps=n)}return s}trigger(t){this.version++,Dt++,this.notify(t)}Line truncated
* @vue/runtime-core v3.5.34 * @vue/runtime-core v3.5.34
* (c) 2018-present Yuxi (Evan) You and Vue contributors * (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT * @license MIT
**/function Kt(e,t,s,n){try{return n?e(...n):e()}catch(i){ps(i,t,s)}}function Re(e,t,s,n){if(D(e)){const i=Kt(e,t,s,n);return i&&qn(i)&&i.catch(r=>{ps(r,t,s)}),i}if(R(e)){const i=[];for(let r=0;r<e.length;r++)i.push(Re(e[r],t,s,n));return i}}function ps(e,t,s,n=!0){const i=t?t.vnode:null,{errorHandler:r,throwUnhandledErrorInProduction:o}=t&&t.appContext.config||Z;if(t){let l=t.parent;const f=t.proxy,d=`https://vuejs.org/error-reference/#runtime-${s}`;for(;l;){const a=l.ec;if(a){for(let p=0;p<a.length;p++)if(a[p](e,f,d)===!1)return}l=l.parent}if(r){Ve(),Kt(r,null,10,[e,f,d]),je();return}}Wr(e,s,i,n,o)}function Wr(e,t,s,n=!0,i=!1){if(i)throw e;console.error(e)}const de=[];let Oe=-1;const pt=[];let qe=null,at=0;const _i=Promise.resolve();let ts=null;function Br(e){const t=ts||_i;return e?t.then(this?e.bind(this):e):t}function zr(e){let t=Oe+1,s=de.length;for(;t<s;){const n=t+s>>>1,i=de[n],r=kt(i);r<e||r===e&&i.flags&2?t=n+1:s=n}return t}function en(e){if(!(e.flags&1)){const t=kt(e),s=de[de.length-1];!s||!(e.flags&2)&&t>=kt(s)?de.push(e):de.splice(zr(t),0,e),e.flags|=1,mi()}}function mi(){ts||(ts=_i.then(bi))}function qr(e){R(e)?pt.push(...e):qe&&e.id===-1?qe.splice(at+1,0,e):e.flags&1||(pt.push(e),e.flags|=1),mi()}function yn(e,t,s=Oe+1){for(;s<de.length;s++){const n=de[s];if(n&&n.flags&2){if(e&&n.id!==e.uid)continue;de.splice(s,1),s--,n.flags&4&&(n.flags&=-2),n(),n.flags&4||(n.flags&=-2)}}}function yi(e){if(pt.length){const t=[...new Set(pt)].sort((s,n)=>kt(s)-kt(n));if(pt.length=0,qe){qe.push(...t);return}for(qe=t,at=0;at<qe.length;at++){const s=qe[at];s.flags&4&&(s.flags&=-2),s.flags&8||s(),s.flags&=-2}qe=null,at=0}}const kt=e=>e.id==null?e.flags&2?-1:1/0:e.id;function bi(e){try{for(Oe=0;Oe<de.length;Oe++){const t=de[Oe];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),Kt(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;Oe<de.length;Oe++){const t=de[Oe];t&&(t.flags&=-2)}Oe=-1,de.length=0,yi(),ts=null,(de.length||pt.length)&&bi()}}let $e=null,vi=null;function ss(e){const t=$e;return $e=e,vi=e&&e.type.__scopeId||null,t}function Gr(e,t=$e,s){if(!t||e._n)return e;const n=(...i)=>{n._d&&Mn(-1);const r=ss(t);let o;try{o=e(...i)}finally{ss(r),n._d&&Mn(1)}return o};return n._n=!0,n._c=!0,n._d=!0,n}function st(e,t,s,n){const i=e.dirs,r=t&&t.dirs;for(let o=0;o<i.length;o++){const l=i[o];r&&(l.oldValue=r[o].value);let f=l.dir[n];f&&(Ve(),Re(f,s,8,[e.el,l,e,t]),je())}}function Jr(e,t){if(he){let s=he.provides;const n=he.parent&&he.parent.provides;n===s&&(s=he.provides=Object.create(n)),s[e]=t}}function Xt(e,t,s=!1){const n=Jo();if(n||gt){let i=gt?gt._context.provides:n?n.parent==null||n.ce?n.vnode.appContext&&n.vnode.appContext.provides:n.parent.provides:void 0;if(i&&e in i)return i[e];if(arguments.length>1)return s&&D(t)?t.call(n&&n.proxy):t}}const Zr=Symbol.for("v-scx"),Yr=()=>Xt(Zr);function Ye(e,t,s){return wi(e,t,s)}function wi(e,t,s=Z){const{immediate:n,deep:i,flush:r,once:o}=s,l=oe({},s),f=t&&n||!t&&r!=="post";let d;if(Vt){if(r==="sync"){const C=Yr();d=C.__watcherHandles||(C.__watcherHandles=[])}else if(!f){const C=()=>{};return C.stop=Pe,C.resume=Pe,C.pause=Pe,C}}const a=he;l.call=(C,N,I)=>Re(C,a,N,I);let p=!1;r==="post"?l.scheduler=C=>{pe(C,a&&a.suspense)}:r!=="sync"&&(p=!0,l.scheduler=(C,N)=>{N?C():en(C)}),l.augmentJob=C=>{t&&(C.flags|=4),p&&(C.flags|=2,a&&(C.id=a.uid,C.i=a))};const w=Ur(e,t,l);return Vt&&(d?d.push(w):f&&w()),w}function Xr(e,t,s){const n=this.proxy,i=ee(e)?e.includes(".")?xi(n,e):()=>n[e]:e.bind(n,n);let r;D(t)?r=t:(r=t.handler,s=t);const o=Ut(this),l=wi(i,r.bind(n),s);return o(),l}function xi(e,t){const s=t.split(".");return()=>{let n=e;for(let i=0;i<s.length&&n;i++)n=n[s[i]];return n}}const Qr=Symbol("_vte"),eo=e=>e.__isTeleport,to=Symbol("_leaveCb");function tn(e,t){e.shapeFlag&6&&e.component?(e.transition=t,tn(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 He(e,t){return D(e)?oe({name:e.name},t,{setup:e}):e}function Si(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function bn(e,t){let s;return!!((s=Object.getOwnPropertyDescriptor(e,t))&&!s.configurable)}const ns=new WeakMap;function Pt(e,t,s,n,i=!1){if(R(e)){e.forEach((I,Q)=>Pt(I,t&&(R(t)?t[Q]:t),s,n,i));return}if(Ft(n)&&!i){n.shapeFlag&512&&n.type.__asyncResolved&&n.component.subTree.component&&Pt(e,t,s,n.component.subTree);return}const r=n.shapeFlag&4?ln(n.component):n.el,o=i?null:r,{i:l,r:f}=e,d=t&&t.r,a=l.refs===Z?l.refs={}:l.refs,p=l.setupState,w=V(p),C=p===Z?Bn:I=>bn(a,I)?!1:j(w,I),N=(I,Q)=>!(Q&&bn(a,Q));if(d!=null&&d!==f){if(vn(t),ee(d))a[d]=null,C(d)&&(p[d]=null);else if(fe(d)){const I=t;N(d,I.k)&&(d.value=null),I.k&&(a[I.k]=null)}}if(D(f))Kt(f,l,12,[o,a]);else{const I=ee(f),Q=fe(f);if(I||Q){const U=()=>{if(e.f){const k=I?C(f)?p[f]:a[f]:N()||!e.k?f.value:a[e.k];if(i)R(k)&&Ws(k,r);else if(R(k))k.includes(r)||k.push(r);else if(I)a[f]=[r],C(f)&&(p[f]=a[f]);else{const Y=[r];N(f,e.k)&&(f.value=Y),e.k&&(a[e.k]=Y)}}else I?(a[f]=o,C(f)Line truncated **/function Kt(e,t,s,n){try{return n?e(...n):e()}catch(r){gs(r,t,s)}}function Re(e,t,s,n){if(D(e)){const r=Kt(e,t,s,n);return r&&qn(r)&&r.catch(i=>{gs(i,t,s)}),r}if(R(e)){const r=[];for(let i=0;i<e.length;i++)r.push(Re(e[i],t,s,n));return r}}function gs(e,t,s,n=!0){const r=t?t.vnode:null,{errorHandler:i,throwUnhandledErrorInProduction:o}=t&&t.appContext.config||Z;if(t){let l=t.parent;const f=t.proxy,d=`https://vuejs.org/error-reference/#runtime-${s}`;for(;l;){const a=l.ec;if(a){for(let p=0;p<a.length;p++)if(a[p](e,f,d)===!1)return}l=l.parent}if(i){Ve(),Kt(i,null,10,[e,f,d]),je();return}}Ui(e,s,r,n,o)}function Ui(e,t,s,n=!0,r=!1){if(r)throw e;console.error(e)}const de=[];let Ee=-1;const gt=[];let qe=null,dt=0;const _r=Promise.resolve();let ss=null;function Bi(e){const t=ss||_r;return e?t.then(this?e.bind(this):e):t}function zi(e){let t=Ee+1,s=de.length;for(;t<s;){const n=t+s>>>1,r=de[n],i=Nt(r);i<e||i===e&&r.flags&2?t=n+1:s=n}return t}function tn(e){if(!(e.flags&1)){const t=Nt(e),s=de[de.length-1];!s||!(e.flags&2)&&t>=Nt(s)?de.push(e):de.splice(zi(t),0,e),e.flags|=1,mr()}}function mr(){ss||(ss=_r.then(br))}function qi(e){R(e)?gt.push(...e):qe&&e.id===-1?qe.splice(dt+1,0,e):e.flags&1||(gt.push(e),e.flags|=1),mr()}function yn(e,t,s=Ee+1){for(;s<de.length;s++){const n=de[s];if(n&&n.flags&2){if(e&&n.id!==e.uid)continue;de.splice(s,1),s--,n.flags&4&&(n.flags&=-2),n(),n.flags&4||(n.flags&=-2)}}}function yr(e){if(gt.length){const t=[...new Set(gt)].sort((s,n)=>Nt(s)-Nt(n));if(gt.length=0,qe){qe.push(...t);return}for(qe=t,dt=0;dt<qe.length;dt++){const s=qe[dt];s.flags&4&&(s.flags&=-2),s.flags&8||s(),s.flags&=-2}qe=null,dt=0}}const Nt=e=>e.id==null?e.flags&2?-1:1/0:e.id;function br(e){try{for(Ee=0;Ee<de.length;Ee++){const t=de[Ee];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),Kt(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;Ee<de.length;Ee++){const t=de[Ee];t&&(t.flags&=-2)}Ee=-1,de.length=0,yr(),ss=null,(de.length||gt.length)&&br()}}let Ie=null,vr=null;function ns(e){const t=Ie;return Ie=e,vr=e&&e.type.__scopeId||null,t}function Gi(e,t=Ie,s){if(!t||e._n)return e;const n=(...r)=>{n._d&&Mn(-1);const i=ns(t);let o;try{o=e(...r)}finally{ns(i),n._d&&Mn(1)}return o};return n._n=!0,n._c=!0,n._d=!0,n}function st(e,t,s,n){const r=e.dirs,i=t&&t.dirs;for(let o=0;o<r.length;o++){const l=r[o];i&&(l.oldValue=i[o].value);let f=l.dir[n];f&&(Ve(),Re(f,s,8,[e.el,l,e,t]),je())}}function Ji(e,t){if(he){let s=he.provides;const n=he.parent&&he.parent.provides;n===s&&(s=he.provides=Object.create(n)),s[e]=t}}function Qt(e,t,s=!1){const n=Jo();if(n||_t){let r=_t?_t._context.provides:n?n.parent==null||n.ce?n.vnode.appContext&&n.vnode.appContext.provides:n.parent.provides:void 0;if(r&&e in r)return r[e];if(arguments.length>1)return s&&D(t)?t.call(n&&n.proxy):t}}const Zi=Symbol.for("v-scx"),Yi=()=>Qt(Zi);function Ye(e,t,s){return wr(e,t,s)}function wr(e,t,s=Z){const{immediate:n,deep:r,flush:i,once:o}=s,l=oe({},s),f=t&&n||!t&&i!=="post";let d;if(Vt){if(i==="sync"){const C=Yi();d=C.__watcherHandles||(C.__watcherHandles=[])}else if(!f){const C=()=>{};return C.stop=Pe,C.resume=Pe,C.pause=Pe,C}}const a=he;l.call=(C,k,$)=>Re(C,a,k,$);let p=!1;i==="post"?l.scheduler=C=>{pe(C,a&&a.suspense)}:i!=="sync"&&(p=!0,l.scheduler=(C,k)=>{k?C():tn(C)}),l.augmentJob=C=>{t&&(C.flags|=4),p&&(C.flags|=2,a&&(C.id=a.uid,C.i=a))};const w=Wi(e,t,l);return Vt&&(d?d.push(w):f&&w()),w}function Xi(e,t,s){const n=this.proxy,r=ee(e)?e.includes(".")?xr(n,e):()=>n[e]:e.bind(n,n);let i;D(t)?i=t:(i=t.handler,s=t);const o=Ut(this),l=wr(r,i.bind(n),s);return o(),l}function xr(e,t){const s=t.split(".");return()=>{let n=e;for(let r=0;r<s.length&&n;r++)n=n[s[r]];return n}}const Qi=Symbol("_vte"),eo=e=>e.__isTeleport,to=Symbol("_leaveCb");function sn(e,t){e.shapeFlag&6&&e.component?(e.transition=t,sn(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 He(e,t){return D(e)?oe({name:e.name},t,{setup:e}):e}function Sr(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function bn(e,t){let s;return!!((s=Object.getOwnPropertyDescriptor(e,t))&&!s.configurable)}const rs=new WeakMap;function Pt(e,t,s,n,r=!1){if(R(e)){e.forEach(($,Q)=>Pt($,t&&(R(t)?t[Q]:t),s,n,r));return}if(Ft(n)&&!r){n.shapeFlag&512&&n.type.__asyncResolved&&n.component.subTree.component&&Pt(e,t,s,n.component.subTree);return}const i=n.shapeFlag&4?ln(n.component):n.el,o=r?null:i,{i:l,r:f}=e,d=t&&t.r,a=l.refs===Z?l.refs={}:l.refs,p=l.setupState,w=V(p),C=p===Z?Bn:$=>bn(a,$)?!1:j(w,$),k=($,Q)=>!(Q&&bn(a,Q));if(d!=null&&d!==f){if(vn(t),ee(d))a[d]=null,C(d)&&(p[d]=null);else if(fe(d)){const $=t;k(d,$.k)&&(d.value=null),$.k&&(a[$.k]=null)}}if(D(f))Kt(f,l,12,[o,a]);else{const $=ee(f),Q=fe(f);if($||Q){const K=()=>{if(e.f){const N=$?C(f)?p[f]:a[f]:k()||!e.k?f.value:a[e.k];if(r)R(N)&&Bs(N,i);else if(R(N))N.includes(i)||N.push(i);else if($)a[f]=[i],C(f)&&(p[f]=a[f]);else{const Y=[i];k(f,e.k)&&(f.value=Y),e.k&&(a[e.k]=Y)}}else $?(a[f]=o,C(f)Line truncated
* @vue/runtime-dom v3.5.34 * @vue/runtime-dom v3.5.34
* (c) 2018-present Yuxi (Evan) You and Vue contributors * (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT * @license MIT
**/let Ks;const Pn=typeof window<"u"&&window.trustedTypes;if(Pn)try{Ks=Pn.createPolicy("vue",{createHTML:e=>e})}catch{}const Gi=Ks?e=>Ks.createHTML(e):e=>e,sl="http://www.w3.org/2000/svg",nl="http://www.w3.org/1998/Math/MathML",Ne=typeof document<"u"?document:null,Fn=Ne&&Ne.createElement("template"),il={insert:(e,t,s)=>{t.insertBefore(e,s||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,s,n)=>{const i=t==="svg"?Ne.createElementNS(sl,e):t==="mathml"?Ne.createElementNS(nl,e):s?Ne.createElement(e,{is:s}):Ne.createElement(e);return e==="select"&&n&&n.multiple!=null&&i.setAttribute("multiple",n.multiple),i},createText:e=>Ne.createTextNode(e),createComment:e=>Ne.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Ne.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,s,n,i,r){const o=s?s.previousSibling:t.lastChild;if(i&&(i===r||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),s),!(i===r||!(i=i.nextSibling)););else{Fn.innerHTML=Gi(n==="svg"?`<svg>${e}</svg>`:n==="mathml"?`<math>${e}</math>`:e);const l=Fn.content;if(n==="svg"||n==="mathml"){const f=l.firstChild;for(;f.firstChild;)l.appendChild(f.firstChild);l.removeChild(f)}t.insertBefore(l,s)}return[o?o.nextSibling:t.firstChild,s?s.previousSibling:t.lastChild]}},rl=Symbol("_vtc");function ol(e,t,s){const n=e[rl];n&&(t=(t?[t,...n]:[...n]).join(" ")),t==null?e.removeAttribute("class"):s?e.setAttribute("class",t):e.className=t}const Rn=Symbol("_vod"),ll=Symbol("_vsh"),cl=Symbol(""),fl=/(?:^|;)\s*display\s*:/;function ul(e,t,s){const n=e.style,i=ee(s);let r=!1;if(s&&!i){if(t)if(ee(t))for(const o of t.split(";")){const l=o.slice(0,o.indexOf(":")).trim();s[l]==null&&Et(n,l,"")}else for(const o in t)s[o]==null&&Et(n,o,"");for(const o in s){o==="display"&&(r=!0);const l=s[o];l!=null?dl(e,o,!ee(t)&&t?t[o]:void 0,l)||Et(n,o,l):Et(n,o,"")}}else if(i){if(t!==s){const o=n[cl];o&&(s+=";"+o),n.cssText=s,r=fl.test(s)}}else t&&e.removeAttribute("style");Rn in e&&(e[Rn]=r?n.display:"",e[ll]&&(n.display="none"))}const Hn=/\s*!important$/;function Et(e,t,s){if(R(s))s.forEach(n=>Et(e,t,n));else if(s==null&&(s=""),t.startsWith("--"))e.setProperty(t,s);else{const n=al(e,t);Hn.test(s)?e.setProperty(ct(n),s.replace(Hn,""),"important"):e[n]=s}}const Dn=["Webkit","Moz","ms"],Is={};function al(e,t){const s=Is[t];if(s)return s;let n=ye(t);if(n!=="filter"&&n in e)return Is[t]=n;n=Zn(n);for(let i=0;i<Dn.length;i++){const r=Dn[i]+n;if(r in e)return Is[t]=r}return t}function dl(e,t,s,n){return e.tagName==="TEXTAREA"&&(t==="width"||t==="height")&&ee(n)&&s===n}const Nn="http://www.w3.org/1999/xlink";function kn(e,t,s,n,i,r=hr(t)){n&&t.startsWith("xlink:")?s==null?e.removeAttributeNS(Nn,t.slice(6,t.length)):e.setAttributeNS(Nn,t,s):s==null||r&&!Xn(s)?e.removeAttribute(t):e.setAttribute(t,r?"":Fe(s)?String(s):s)}function Ln(e,t,s,n,i){if(t==="innerHTML"||t==="textContent"){s!=null&&(e[t]=t==="innerHTML"?Gi(s):s);return}const r=e.tagName;if(t==="value"&&r!=="PROGRESS"&&!r.includes("-")){const l=r==="OPTION"?e.getAttribute("value")||"":e.value,f=s==null?e.type==="checkbox"?"on":"":String(s);(l!==f||!("_value"in e))&&(e.value=f),s==null&&e.removeAttribute(t),e._value=s;return}let o=!1;if(s===""||s==null){const l=typeof e[t];l==="boolean"?s=Xn(s):s==null&&l==="string"?(s="",o=!0):l==="number"&&(s=0,o=!0)}try{e[t]=s}catch{}o&&e.removeAttribute(i||t)}function hl(e,t,s,n){e.addEventListener(t,s,n)}function pl(e,t,s,n){e.removeEventListener(t,s,n)}const Vn=Symbol("_vei");function gl(e,t,s,n,i=null){const r=e[Vn]||(e[Vn]={}),o=r[t];if(n&&o)o.value=n;else{const[l,f]=_l(t);if(n){const d=r[t]=bl(n,i);hl(e,l,d,f)}else o&&(pl(e,l,o,f),r[t]=void 0)}}const jn=/(?:Once|Passive|Capture)$/;function _l(e){let t;if(jn.test(e)){t={};let n;for(;n=e.match(jn);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):ct(e.slice(2)),t]}let $s=0;const ml=Promise.resolve(),yl=()=>$s||(ml.then(()=>$s=0),$s=Date.now());function bl(e,t){const s=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=s.attached)return;Re(vl(n,s.value),t,5,[n])};return s.value=e,s.attached=yl(),s}function vl(e,t){if(R(t)){const s=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{s.call(e),e._stopped=!0},t.map(n=>i=>!i._stopped&&n&&n(i))}else return t}const Kn=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,wl=(e,t,s,n,i,r)=>{const o=i==="svg";t==="class"?ol(e,n,o):t==="style"?ul(e,s,n):ls(t)?cs(t)||gl(e,t,s,n,r):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):xl(e,t,n,o))?(Ln(e,t,n),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&kn(e,t,n,o,r,t!=="value")):e._isVueCE&&(Sl(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!ee(n)))?Ln(e,ye(t),n,r,t):(t==="true-value"?e._trueValue=n:t==="false-value"&&(e._falseValue=n),kn(e,t,n,o))};function xl(e,t,s,n){if(n)return!!(t==="inLine truncated **/let Ws;const Pn=typeof window<"u"&&window.trustedTypes;if(Pn)try{Ws=Pn.createPolicy("vue",{createHTML:e=>e})}catch{}const Gr=Ws?e=>Ws.createHTML(e):e=>e,sl="http://www.w3.org/2000/svg",nl="http://www.w3.org/1998/Math/MathML",ke=typeof document<"u"?document:null,Fn=ke&&ke.createElement("template"),rl={insert:(e,t,s)=>{t.insertBefore(e,s||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,s,n)=>{const r=t==="svg"?ke.createElementNS(sl,e):t==="mathml"?ke.createElementNS(nl,e):s?ke.createElement(e,{is:s}):ke.createElement(e);return e==="select"&&n&&n.multiple!=null&&r.setAttribute("multiple",n.multiple),r},createText:e=>ke.createTextNode(e),createComment:e=>ke.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>ke.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,s,n,r,i){const o=s?s.previousSibling:t.lastChild;if(r&&(r===i||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),s),!(r===i||!(r=r.nextSibling)););else{Fn.innerHTML=Gr(n==="svg"?`<svg>${e}</svg>`:n==="mathml"?`<math>${e}</math>`:e);const l=Fn.content;if(n==="svg"||n==="mathml"){const f=l.firstChild;for(;f.firstChild;)l.appendChild(f.firstChild);l.removeChild(f)}t.insertBefore(l,s)}return[o?o.nextSibling:t.firstChild,s?s.previousSibling:t.lastChild]}},il=Symbol("_vtc");function ol(e,t,s){const n=e[il];n&&(t=(t?[t,...n]:[...n]).join(" ")),t==null?e.removeAttribute("class"):s?e.setAttribute("class",t):e.className=t}const Rn=Symbol("_vod"),ll=Symbol("_vsh"),cl=Symbol(""),fl=/(?:^|;)\s*display\s*:/;function ul(e,t,s){const n=e.style,r=ee(s);let i=!1;if(s&&!r){if(t)if(ee(t))for(const o of t.split(";")){const l=o.slice(0,o.indexOf(":")).trim();s[l]==null&&Ot(n,l,"")}else for(const o in t)s[o]==null&&Ot(n,o,"");for(const o in s){o==="display"&&(i=!0);const l=s[o];l!=null?dl(e,o,!ee(t)&&t?t[o]:void 0,l)||Ot(n,o,l):Ot(n,o,"")}}else if(r){if(t!==s){const o=n[cl];o&&(s+=";"+o),n.cssText=s,i=fl.test(s)}}else t&&e.removeAttribute("style");Rn in e&&(e[Rn]=i?n.display:"",e[ll]&&(n.display="none"))}const Hn=/\s*!important$/;function Ot(e,t,s){if(R(s))s.forEach(n=>Ot(e,t,n));else if(s==null&&(s=""),t.startsWith("--"))e.setProperty(t,s);else{const n=al(e,t);Hn.test(s)?e.setProperty(ft(n),s.replace(Hn,""),"important"):e[n]=s}}const Dn=["Webkit","Moz","ms"],Is={};function al(e,t){const s=Is[t];if(s)return s;let n=ye(t);if(n!=="filter"&&n in e)return Is[t]=n;n=Zn(n);for(let r=0;r<Dn.length;r++){const i=Dn[r]+n;if(i in e)return Is[t]=i}return t}function dl(e,t,s,n){return e.tagName==="TEXTAREA"&&(t==="width"||t==="height")&&ee(n)&&s===n}const kn="http://www.w3.org/1999/xlink";function Nn(e,t,s,n,r,i=hi(t)){n&&t.startsWith("xlink:")?s==null?e.removeAttributeNS(kn,t.slice(6,t.length)):e.setAttributeNS(kn,t,s):s==null||i&&!Xn(s)?e.removeAttribute(t):e.setAttribute(t,i?"":Fe(s)?String(s):s)}function Ln(e,t,s,n,r){if(t==="innerHTML"||t==="textContent"){s!=null&&(e[t]=t==="innerHTML"?Gr(s):s);return}const i=e.tagName;if(t==="value"&&i!=="PROGRESS"&&!i.includes("-")){const l=i==="OPTION"?e.getAttribute("value")||"":e.value,f=s==null?e.type==="checkbox"?"on":"":String(s);(l!==f||!("_value"in e))&&(e.value=f),s==null&&e.removeAttribute(t),e._value=s;return}let o=!1;if(s===""||s==null){const l=typeof e[t];l==="boolean"?s=Xn(s):s==null&&l==="string"?(s="",o=!0):l==="number"&&(s=0,o=!0)}try{e[t]=s}catch{}o&&e.removeAttribute(r||t)}function hl(e,t,s,n){e.addEventListener(t,s,n)}function pl(e,t,s,n){e.removeEventListener(t,s,n)}const Vn=Symbol("_vei");function gl(e,t,s,n,r=null){const i=e[Vn]||(e[Vn]={}),o=i[t];if(n&&o)o.value=n;else{const[l,f]=_l(t);if(n){const d=i[t]=bl(n,r);hl(e,l,d,f)}else o&&(pl(e,l,o,f),i[t]=void 0)}}const jn=/(?:Once|Passive|Capture)$/;function _l(e){let t;if(jn.test(e)){t={};let n;for(;n=e.match(jn);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):ft(e.slice(2)),t]}let Ps=0;const ml=Promise.resolve(),yl=()=>Ps||(ml.then(()=>Ps=0),Ps=Date.now());function bl(e,t){const s=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=s.attached)return;Re(vl(n,s.value),t,5,[n])};return s.value=e,s.attached=yl(),s}function vl(e,t){if(R(t)){const s=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{s.call(e),e._stopped=!0},t.map(n=>r=>!r._stopped&&n&&n(r))}else return t}const Kn=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,wl=(e,t,s,n,r,i)=>{const o=r==="svg";t==="class"?ol(e,n,o):t==="style"?ul(e,s,n):cs(t)?fs(t)||gl(e,t,s,n,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):xl(e,t,n,o))?(Ln(e,t,n),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Nn(e,t,n,o,i,t!=="value")):e._isVueCE&&(Sl(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!ee(n)))?Ln(e,ye(t),n,i,t):(t==="true-value"?e._trueValue=n:t==="false-value"&&(e._falseValue=n),Nn(e,t,n,o))};function xl(e,t,s,n){if(n)return!!(t==="inLine truncated
<style rel="stylesheet" crossorigin>.time[data-v-fc6abe16]{font-size:66px;font-weight:200;text-shadow:0 3px 28px rgba(0,0,0,.42);letter-spacing:0;line-height:1;font-variant-numeric:tabular-nums;color:#fffffff5}.time.hourly-glow[data-v-fc6abe16]{animation:hourlyGlow 6s ease-out forwards}.date[data-v-fc6abe16]{font-size:13px;color:var(--text-soft);margin-bottom:8px;text-shadow:0 1px 6px rgba(0,0,0,.5);letter-spacing:0}@media(max-width:1500px){.time[data-v-fc6abe16]{font-size:64px}}.current-weather[data-v-c377fb97]{font-size:17px;font-weight:600;color:var(--text-main);text-shadow:0 1px 4px rgba(0,0,0,.5);margin-bottom:16px;text-align:right}.forecast-title[data-v-c377fb97]{font-size:11px;font-weight:600;color:var(--text-faint);letter-spacing:0;margin-bottom:9px;text-align:right}.weather-forecast[data-v-c377fb97]{display:grid;grid-template-columns:repeat(8,minmax(60px,1fr));gap:7px;overflow:hidden}.forecast-item[data-v-c377fb97]{background:#ffffff0e;border-radius:8px;padding:9px 8px;text-align:center;min-width:0;font-size:12px;color:var(--text-main);border:1px solid var(--card-line-soft)}.forecast-icon[data-v-c377fb97]{font-size:22px;margin:5px 0}.forecast-time[data-v-c377fb97]{color:var(--text-faint);font-size:10px}.forecast-temp[data-v-c377fb97]{font-weight:700;margin-top:2px;font-size:14px}.forecast-pop[data-v-c377fb97]{font-size:10px;color:var(--text-faint);margin-top:2px}.daily-forecast[data-v-c377fb97]{display:grid;grid-template-columns:repeat(7,minmax(64px,1fr));gap:7px;overflow:hidden}.daily-item[data-v-c377fb97]{background:#ffffff0a;border-radius:8px;padding:9px 8px;text-align:center;min-width:0;font-size:12px;color:var(--text-main);border:1px solid var(--card-line-soft)}.daily-icon[data-v-c377fb97]{font-size:22px;margin:5px 0}.weather-forecast[data-v-c377fb97]::-webkit-scrollbar,.daily-forecast[data-v-c377fb97]::-webkit-scrollbar{display:none}@media(max-width:1500px){.weather-forecast[data-v-c377fb97],.daily-forecast[data-v-c377fb97]{grid-template-columns:repeat(4,1fr)}}.zodiac-text[data-v-bcc0f377]{font-size:14px;color:var(--text-main);line-height:1.6;text-shadow:0 1px 4px rgba(0,0,0,.5)}.zodiac-title[data-v-bcc0f377]{font-size:16px;font-weight:650;margin-bottom:3px}.zodiac-date[data-v-bcc0f377]{font-size:11px;color:var(--text-faint);margin-bottom:12px}.zodiac-bar[data-v-bcc0f377]{display:flex;align-items:center;gap:10px;margin-bottom:7px;font-size:12px}.zodiac-bar-label[data-v-bcc0f377]{width:28px;color:var(--text-soft);flex-shrink:0}.zodiac-bar-track[data-v-bcc0f377]{flex:1;height:5px;background:#ffffff1a;border-radius:999px;overflow:hidden}.zodiac-bar-fill[data-v-bcc0f377]{height:100%;border-radius:999px;transition:width .6s ease}.zodiac-bar-val[data-v-bcc0f377]{width:30px;text-align:right;font-size:11px;color:var(--text-soft);flex-shrink:0}.zodiac-tags[data-v-bcc0f377]{display:flex;gap:7px;flex-wrap:wrap;margin:10px 0 9px}.zodiac-tag[data-v-bcc0f377]{font-size:10px;background:#ffffff14;padding:4px 8px;border-radius:6px;color:var(--text-soft);border:1px solid rgba(255,255,255,.05)}.zodiac-summary[data-v-bcc0f377]{font-size:12px;color:var(--text-soft);line-height:1.65;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.knowledge-card[data-v-4fb593ad]{display:flex;flex-direction:column;height:100%}.knowledge-header[data-v-4fb593ad]{display:flex;align-items:center;gap:8px;margin-bottom:12px}.knowledge-label[data-v-4fb593ad]{font-size:11px;color:var(--text-faint);font-weight:700;letter-spacing:1px;text-transform:uppercase}.knowledge-keyword-tag[data-v-4fb593ad]{background:#ffd86b1f;color:var(--accent-warm);padding:2px 9px;border-radius:4px;font-size:10px;font-weight:600;border:1px solid rgba(255,216,107,.15)}.knowledge-divider[data-v-4fb593ad]{height:1px;background:linear-gradient(90deg,var(--accent-warm),rgba(255,216,107,.08),transparent);margin-bottom:16px}.knowledge-body[data-v-4fb593ad]{position:relative;padding-left:4px}.knowledge-quote[data-v-4fb593ad]{position:absolute;top:-10px;left:-6px;font-size:52px;line-height:1;color:var(--accent-warm);opacity:.18;font-family:Georgia,serif;pointer-events:none}.knowledge-text[data-v-4fb593ad]{font-size:15px;color:var(--text-main);line-height:1.7;text-shadow:0 1px 4px rgba(0,0,0,.5);display:-webkit-box;-webkit-line-clamp:8;-webkit-box-orient:vertical;overflow:hidden}.knowledge-placeholder[data-v-4fb593ad]{font-size:13px;color:var(--text-faint);font-style:italic;padding-top:8px}.ainews-header[data-v-842d17af]{font-size:11px;font-weight:700;color:var(--text-faint);letter-spacing:0;margin-bottom:14px}.ainews-item[data-v-842d17af]{display:flex;gap:14px;margin-bottom:12px;padding-bottom:12px;border-bottom:1px solid var(--card-line-soft);min-height:58px}.ainews-item[data-v-842d17af]:last-child{margin-bottom:0;padding-bottom:0;border-bottom:none}.ainews-img[data-v-842d17af]{width:92px;height:58px;border-radius:6px;-o-object-fit:cover;object-fit:cover;flex-shrink:0;opacity:.92;box-shadow:0 8px 22px #00000038}.ainews-body[data-v-8Line truncated <style rel="stylesheet" crossorigin>.time[data-v-fc6abe16]{font-size:66px;font-weight:200;text-shadow:0 3px 28px rgba(0,0,0,.42);letter-spacing:0;line-height:1;font-variant-numeric:tabular-nums;color:#fffffff5}.time.hourly-glow[data-v-fc6abe16]{animation:hourlyGlow 6s ease-out forwards}.date[data-v-fc6abe16]{font-size:13px;color:var(--text-soft);margin-bottom:8px;text-shadow:0 1px 6px rgba(0,0,0,.5);letter-spacing:0}@media(max-width:1500px){.time[data-v-fc6abe16]{font-size:64px}}.current-weather[data-v-c377fb97]{font-size:17px;font-weight:600;color:var(--text-main);text-shadow:0 1px 4px rgba(0,0,0,.5);margin-bottom:16px;text-align:right}.forecast-title[data-v-c377fb97]{font-size:11px;font-weight:600;color:var(--text-faint);letter-spacing:0;margin-bottom:9px;text-align:right}.weather-forecast[data-v-c377fb97]{display:grid;grid-template-columns:repeat(8,minmax(60px,1fr));gap:7px;overflow:hidden}.forecast-item[data-v-c377fb97]{background:#ffffff0e;border-radius:8px;padding:9px 8px;text-align:center;min-width:0;font-size:12px;color:var(--text-main);border:1px solid var(--card-line-soft)}.forecast-icon[data-v-c377fb97]{font-size:22px;margin:5px 0}.forecast-time[data-v-c377fb97]{color:var(--text-faint);font-size:10px}.forecast-temp[data-v-c377fb97]{font-weight:700;margin-top:2px;font-size:14px}.forecast-pop[data-v-c377fb97]{font-size:10px;color:var(--text-faint);margin-top:2px}.daily-forecast[data-v-c377fb97]{display:grid;grid-template-columns:repeat(7,minmax(64px,1fr));gap:7px;overflow:hidden}.daily-item[data-v-c377fb97]{background:#ffffff0a;border-radius:8px;padding:9px 8px;text-align:center;min-width:0;font-size:12px;color:var(--text-main);border:1px solid var(--card-line-soft)}.daily-icon[data-v-c377fb97]{font-size:22px;margin:5px 0}.weather-forecast[data-v-c377fb97]::-webkit-scrollbar,.daily-forecast[data-v-c377fb97]::-webkit-scrollbar{display:none}@media(max-width:1500px){.weather-forecast[data-v-c377fb97],.daily-forecast[data-v-c377fb97]{grid-template-columns:repeat(4,1fr)}}.zodiac-text[data-v-bcc0f377]{font-size:14px;color:var(--text-main);line-height:1.6;text-shadow:0 1px 4px rgba(0,0,0,.5)}.zodiac-title[data-v-bcc0f377]{font-size:16px;font-weight:650;margin-bottom:3px}.zodiac-date[data-v-bcc0f377]{font-size:11px;color:var(--text-faint);margin-bottom:12px}.zodiac-bar[data-v-bcc0f377]{display:flex;align-items:center;gap:10px;margin-bottom:7px;font-size:12px}.zodiac-bar-label[data-v-bcc0f377]{width:28px;color:var(--text-soft);flex-shrink:0}.zodiac-bar-track[data-v-bcc0f377]{flex:1;height:5px;background:#ffffff1a;border-radius:999px;overflow:hidden}.zodiac-bar-fill[data-v-bcc0f377]{height:100%;border-radius:999px;transition:width .6s ease}.zodiac-bar-val[data-v-bcc0f377]{width:30px;text-align:right;font-size:11px;color:var(--text-soft);flex-shrink:0}.zodiac-tags[data-v-bcc0f377]{display:flex;gap:7px;flex-wrap:wrap;margin:10px 0 9px}.zodiac-tag[data-v-bcc0f377]{font-size:10px;background:#ffffff14;padding:4px 8px;border-radius:6px;color:var(--text-soft);border:1px solid rgba(255,255,255,.05)}.zodiac-summary[data-v-bcc0f377]{font-size:12px;color:var(--text-soft);line-height:1.65;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.knowledge-card[data-v-8794076b]{display:flex;flex-direction:column;height:100%}.knowledge-header[data-v-8794076b]{display:flex;align-items:center;gap:8px;margin-bottom:12px}.knowledge-label[data-v-8794076b]{font-size:11px;color:var(--text-faint);font-weight:700;letter-spacing:1px;text-transform:uppercase}.knowledge-keyword-tag[data-v-8794076b]{background:#ffd86b1f;color:var(--accent-warm);padding:2px 9px;border-radius:4px;font-size:10px;font-weight:600;border:1px solid rgba(255,216,107,.15)}.knowledge-refresh-btn[data-v-8794076b]{margin-left:auto;background:none;border:none;cursor:pointer;color:var(--accent-warm);font-size:16px;line-height:1;padding:2px 4px;border-radius:4px;transition:all .3s;opacity:.7;animation:pulse-hint-8794076b 3s ease-in-out infinite}.knowledge-refresh-btn[data-v-8794076b]:hover,.knowledge-refresh-btn.hover-active[data-v-8794076b]{opacity:1;transform:rotate(180deg) scale(1.2);background:#ffd86b26}@keyframes pulse-hint-8794076b{0%,to{opacity:.5}50%{opacity:.8}}.knowledge-divider[data-v-8794076b]{height:1px;background:linear-gradient(90deg,var(--accent-warm),rgba(255,216,107,.08),transparent);margin-bottom:16px}.knowledge-body[data-v-8794076b]{position:relative;padding-left:4px}.knowledge-quote[data-v-8794076b]{position:absolute;top:-10px;left:-6px;font-size:52px;line-height:1;color:var(--accent-warm);opacity:.18;font-family:Georgia,serif;pointer-events:none}.knowledge-text[data-v-8794076b]{font-size:15px;color:var(--text-main);line-height:1.7;text-shadow:0 1px 4px rgba(0,0,0,.5);display:-webkit-box;-webkit-line-clamp:10;-webkit-box-orient:vertical;overflow:hidden}.knowledge-text[data-v-8794076b] h3{font-size:14px;font-weight:700;color:var(--accent-warm);margin:10px 0 6px}.knowledge-text[data-v-8794076b] strong{color:var(--texLine truncated
</head> </head>
<body> <body>
<div id="app"></div> <div id="app"></div>
+4 -4
View File
@@ -11,16 +11,16 @@
* @vue/reactivity v3.5.34 * @vue/reactivity v3.5.34
* (c) 2018-present Yuxi (Evan) You and Vue contributors * (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT * @license MIT
**/let re;class _i{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this._warnOnRun=!0,this.__v_skip=!0,!t&&re&&(re.active?(this.parent=re,this.index=(re.scopes||(re.scopes=[])).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,s;if(this.scopes)for(t=0,s=this.scopes.length;t<s;t++)this.scopes[t].pause();for(t=0,s=this.effects.length;t<s;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,s;if(this.scopes)for(t=0,s=this.scopes.length;t<s;t++)this.scopes[t].resume();for(t=0,s=this.effects.length;t<s;t++)this.effects[t].resume()}}run(t){if(this._active){const s=re;try{return re=this,t()}finally{re=s}}}on(){++this._on===1&&(this.prevScope=re,re=this)}off(){if(this._on>0&&--this._on===0){if(re===this)re=this.prevScope;else{let t=re;for(;t;){if(t.prevScope===this){t.prevScope=this.prevScope;break}t=t.prevScope}}this.prevScope=void 0}}stop(t){if(this._active){this._active=!1;let s,n;for(s=0,n=this.effects.length;s<n;s++)this.effects[s].stop();for(this.effects.length=0,s=0,n=this.cleanups.length;s<n;s++)this.cleanups[s]();if(this.cleanups.length=0,this.scopes){for(s=0,n=this.scopes.length;s<n;s++)this.scopes[s].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 wi(){return re}let Y;const ks=new WeakSet;class dr{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,re&&(re.active?re.effects.push(this):this.flags&=-2)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,ks.has(this)&&(ks.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||hr(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,Tn(this),gr(this);const t=Y,s=Se;Y=this,Se=!0;try{return this.fn()}finally{vr(this),Y=t,Se=s,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)rn(t);this.deps=this.depsTail=void 0,Tn(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?ks.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Ls(this)&&this.run()}get dirty(){return Ls(this)}}let pr=0,Et,It;function hr(e,t=!1){if(e.flags|=8,t){e.next=It,It=e;return}e.next=Et,Et=e}function sn(){pr++}function nn(){if(--pr>0)return;if(It){let t=It;for(It=void 0;t;){const s=t.next;t.next=void 0,t.flags&=-9,t=s}}let e;for(;Et;){let t=Et;for(Et=void 0;t;){const s=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(n){e||(e=n)}t=s}}if(e)throw e}function gr(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function vr(e){let t,s=e.depsTail,n=s;for(;n;){const r=n.prevDep;n.version===-1?(n===s&&(s=r),rn(n),Si(n)):t=n,n.dep.activeLink=n.prevActiveLink,n.prevActiveLink=void 0,n=r}e.deps=t,e.depsTail=s}function Ls(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(mr(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function mr(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===jt)||(e.globalVersion=jt,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Ls(e))))return;e.flags|=2;const t=e.dep,s=Y,n=Se;Y=e,Se=!0;try{gr(e);const r=e.fn(e._value);(t.version===0||Re(r,e._value))&&(e.flags|=128,e._value=r,t.version++)}catch(r){throw t.version++,r}finally{Y=s,Se=n,vr(e),e.flags&=-3}}function rn(e,t=!1){const{dep:s,prevSub:n,nextSub:r}=e;if(n&&(n.nextSub=r,e.prevSub=void 0),r&&(r.prevSub=n,e.nextSub=void 0),s.subs===e&&(s.subs=n,!n&&s.computed)){s.computed.flags&=-5;for(let i=s.computed.deps;i;i=i.nextDep)rn(i,!0)}!t&&!--s.sc&&s.map&&s.map.delete(s.key)}function Si(e){const{prevDep:t,nextDep:s}=e;t&&(t.nextDep=s,e.prevDep=void 0),s&&(s.prevDep=t,e.nextDep=void 0)}let Se=!0;const br=[];function Ue(){br.push(Se),Se=!1}function We(){const e=br.pop();Se=e===void 0?!0:e}function Tn(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const s=Y;Y=void 0;try{t()}finally{Y=s}}}let jt=0;class Ci{constructor(t,s){this.sub=t,this.dep=s,this.version=s.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class on{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}track(t){if(!Y||!Se||Y===this.computed)return;let s=this.activeLink;if(s===void 0||s.sub!==Y)s=this.activeLink=new Ci(Y,this),Y.deps?(s.prevDep=Y.depsTail,Y.depsTail.nextDep=s,Y.depsTail=s):Y.deps=Y.depsTail=s,xr(s);else if(s.version===-1&&(s.version=this.version,s.nextDep)){const n=s.nextDep;n.prevDep=s.prevDep,s.prevDep&&(s.prevDep.nextDep=n),s.prevDep=Y.depsTail,s.nextDep=void 0,Y.depsTail.nextDep=s,Y.depsTail=s,Y.deps===s&&(Y.deps=n)}return s}trigger(t){this.version++,jt++,this.notify(t)}Line truncated **/let re;class _i{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this._warnOnRun=!0,this.__v_skip=!0,!t&&re&&(re.active?(this.parent=re,this.index=(re.scopes||(re.scopes=[])).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,s;if(this.scopes)for(t=0,s=this.scopes.length;t<s;t++)this.scopes[t].pause();for(t=0,s=this.effects.length;t<s;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,s;if(this.scopes)for(t=0,s=this.scopes.length;t<s;t++)this.scopes[t].resume();for(t=0,s=this.effects.length;t<s;t++)this.effects[t].resume()}}run(t){if(this._active){const s=re;try{return re=this,t()}finally{re=s}}}on(){++this._on===1&&(this.prevScope=re,re=this)}off(){if(this._on>0&&--this._on===0){if(re===this)re=this.prevScope;else{let t=re;for(;t;){if(t.prevScope===this){t.prevScope=this.prevScope;break}t=t.prevScope}}this.prevScope=void 0}}stop(t){if(this._active){this._active=!1;let s,n;for(s=0,n=this.effects.length;s<n;s++)this.effects[s].stop();for(this.effects.length=0,s=0,n=this.cleanups.length;s<n;s++)this.cleanups[s]();if(this.cleanups.length=0,this.scopes){for(s=0,n=this.scopes.length;s<n;s++)this.scopes[s].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 wi(){return re}let Y;const ks=new WeakSet;class dr{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,re&&(re.active?re.effects.push(this):this.flags&=-2)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,ks.has(this)&&(ks.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||hr(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,Tn(this),gr(this);const t=Y,s=Se;Y=this,Se=!0;try{return this.fn()}finally{vr(this),Y=t,Se=s,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)rn(t);this.deps=this.depsTail=void 0,Tn(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?ks.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Ls(this)&&this.run()}get dirty(){return Ls(this)}}let pr=0,Et,It;function hr(e,t=!1){if(e.flags|=8,t){e.next=It,It=e;return}e.next=Et,Et=e}function sn(){pr++}function nn(){if(--pr>0)return;if(It){let t=It;for(It=void 0;t;){const s=t.next;t.next=void 0,t.flags&=-9,t=s}}let e;for(;Et;){let t=Et;for(Et=void 0;t;){const s=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(n){e||(e=n)}t=s}}if(e)throw e}function gr(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function vr(e){let t,s=e.depsTail,n=s;for(;n;){const r=n.prevDep;n.version===-1?(n===s&&(s=r),rn(n),Si(n)):t=n,n.dep.activeLink=n.prevActiveLink,n.prevActiveLink=void 0,n=r}e.deps=t,e.depsTail=s}function Ls(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(mr(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function mr(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===jt)||(e.globalVersion=jt,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Ls(e))))return;e.flags|=2;const t=e.dep,s=Y,n=Se;Y=e,Se=!0;try{gr(e);const r=e.fn(e._value);(t.version===0||Re(r,e._value))&&(e.flags|=128,e._value=r,t.version++)}catch(r){throw t.version++,r}finally{Y=s,Se=n,vr(e),e.flags&=-3}}function rn(e,t=!1){const{dep:s,prevSub:n,nextSub:r}=e;if(n&&(n.nextSub=r,e.prevSub=void 0),r&&(r.prevSub=n,e.nextSub=void 0),s.subs===e&&(s.subs=n,!n&&s.computed)){s.computed.flags&=-5;for(let i=s.computed.deps;i;i=i.nextDep)rn(i,!0)}!t&&!--s.sc&&s.map&&s.map.delete(s.key)}function Si(e){const{prevDep:t,nextDep:s}=e;t&&(t.nextDep=s,e.prevDep=void 0),s&&(s.prevDep=t,e.nextDep=void 0)}let Se=!0;const br=[];function Ue(){br.push(Se),Se=!1}function We(){const e=br.pop();Se=e===void 0?!0:e}function Tn(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const s=Y;Y=void 0;try{t()}finally{Y=s}}}let jt=0;class Ci{constructor(t,s){this.sub=t,this.dep=s,this.version=s.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class on{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}track(t){if(!Y||!Se||Y===this.computed)return;let s=this.activeLink;if(s===void 0||s.sub!==Y)s=this.activeLink=new Ci(Y,this),Y.deps?(s.prevDep=Y.depsTail,Y.depsTail.nextDep=s,Y.depsTail=s):Y.deps=Y.depsTail=s,xr(s);else if(s.version===-1&&(s.version=this.version,s.nextDep)){const n=s.nextDep;n.prevDep=s.prevDep,s.prevDep&&(s.prevDep.nextDep=n),s.prevDep=Y.depsTail,s.nextDep=void 0,Y.depsTail.nextDep=s,Y.depsTail=s,Y.deps===s&&(Y.deps=n)}return s}trigger(t){this.version++,jt++,this.notify(t)}Line truncated
* @vue/runtime-core v3.5.34 * @vue/runtime-core v3.5.34
* (c) 2018-present Yuxi (Evan) You and Vue contributors * (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT * @license MIT
**/function Wt(e,t,s,n){try{return n?e(...n):e()}catch(r){_s(r,t,s)}}function Ne(e,t,s,n){if(R(e)){const r=Wt(e,t,s,n);return r&&rr(r)&&r.catch(i=>{_s(i,t,s)}),r}if(M(e)){const r=[];for(let i=0;i<e.length;i++)r.push(Ne(e[i],t,s,n));return r}}function _s(e,t,s,n=!0){const r=t?t.vnode:null,{errorHandler:i,throwUnhandledErrorInProduction:o}=t&&t.appContext.config||z;if(t){let l=t.parent;const a=t.proxy,p=`https://vuejs.org/error-reference/#runtime-${s}`;for(;l;){const u=l.ec;if(u){for(let d=0;d<u.length;d++)if(u[d](e,a,p)===!1)return}l=l.parent}if(i){Ue(),Wt(i,null,10,[e,a,p]),We();return}}Yi(e,s,r,n,o)}function Yi(e,t,s,n=!0,r=!1){if(r)throw e;console.error(e)}const de=[];let $e=-1;const gt=[];let qe=null,dt=0;const Pr=Promise.resolve();let is=null;function Or(e){const t=is||Pr;return e?t.then(this?e.bind(this):e):t}function Zi(e){let t=$e+1,s=de.length;for(;t<s;){const n=t+s>>>1,r=de[n],i=Lt(r);i<e||i===e&&r.flags&2?t=n+1:s=n}return t}function un(e){if(!(e.flags&1)){const t=Lt(e),s=de[de.length-1];!s||!(e.flags&2)&&t>=Lt(s)?de.push(e):de.splice(Zi(t),0,e),e.flags|=1,Er()}}function Er(){is||(is=Pr.then($r))}function Xi(e){M(e)?gt.push(...e):qe&&e.id===-1?qe.splice(dt+1,0,e):e.flags&1||(gt.push(e),e.flags|=1),Er()}function Pn(e,t,s=$e+1){for(;s<de.length;s++){const n=de[s];if(n&&n.flags&2){if(e&&n.id!==e.uid)continue;de.splice(s,1),s--,n.flags&4&&(n.flags&=-2),n(),n.flags&4||(n.flags&=-2)}}}function Ir(e){if(gt.length){const t=[...new Set(gt)].sort((s,n)=>Lt(s)-Lt(n));if(gt.length=0,qe){qe.push(...t);return}for(qe=t,dt=0;dt<qe.length;dt++){const s=qe[dt];s.flags&4&&(s.flags&=-2),s.flags&8||s(),s.flags&=-2}qe=null,dt=0}}const Lt=e=>e.id==null?e.flags&2?-1:1/0:e.id;function $r(e){try{for($e=0;$e<de.length;$e++){const t=de[$e];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),Wt(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;$e<de.length;$e++){const t=de[$e];t&&(t.flags&=-2)}$e=-1,de.length=0,Ir(),is=null,(de.length||gt.length)&&$r()}}let be=null,kr=null;function os(e){const t=be;return be=e,kr=e&&e.type.__scopeId||null,t}function Qi(e,t=be,s){if(!t||e._n)return e;const n=(...r)=>{n._d&&Nn(-1);const i=os(t);let o;try{o=e(...r)}finally{os(i),n._d&&Nn(1)}return o};return n._n=!0,n._c=!0,n._d=!0,n}function lt(e,t){if(be===null)return e;const s=Ts(be),n=e.dirs||(e.dirs=[]);for(let r=0;r<t.length;r++){let[i,o,l,a=z]=t[r];i&&(R(i)&&(i={mounted:i,updated:i}),i.deep&&Ke(o),n.push({dir:i,instance:s,value:o,oldValue:void 0,arg:l,modifiers:a}))}return e}function et(e,t,s,n){const r=e.dirs,i=t&&t.dirs;for(let o=0;o<r.length;o++){const l=r[o];i&&(l.oldValue=i[o].value);let a=l.dir[n];a&&(Ue(),Ne(a,s,8,[e.el,l,e,t]),We())}}function eo(e,t){if(pe){let s=pe.provides;const n=pe.parent&&pe.parent.provides;n===s&&(s=pe.provides=Object.create(n)),s[e]=t}}function ss(e,t,s=!1){const n=tl();if(n||vt){let r=vt?vt._context.provides:n?n.parent==null||n.ce?n.vnode.appContext&&n.vnode.appContext.provides:n.parent.provides:void 0;if(r&&e in r)return r[e];if(arguments.length>1)return s&&R(t)?t.call(n&&n.proxy):t}}const to=Symbol.for("v-scx"),so=()=>ss(to);function ct(e,t,s){return Mr(e,t,s)}function Mr(e,t,s=z){const{immediate:n,deep:r,flush:i,once:o}=s,l=le({},s),a=t&&n||!t&&i!=="post";let p;if(Ht){if(i==="sync"){const P=so();p=P.__watcherHandles||(P.__watcherHandles=[])}else if(!a){const P=()=>{};return P.stop=Fe,P.resume=Fe,P.pause=Fe,P}}const u=pe;l.call=(P,N,$)=>Ne(P,u,N,$);let d=!1;i==="post"?l.scheduler=P=>{he(P,u&&u.suspense)}:i!=="sync"&&(d=!0,l.scheduler=(P,N)=>{N?P():un(P)}),l.augmentJob=P=>{t&&(P.flags|=4),d&&(P.flags|=2,u&&(P.id=u.uid,P.i=u))};const _=qi(e,t,l);return Ht&&(p?p.push(_):a&&_()),_}function no(e,t,s){const n=this.proxy,r=Q(e)?e.includes(".")?Rr(n,e):()=>n[e]:e.bind(n,n);let i;R(t)?i=t:(i=t.handler,s=t);const o=zt(this),l=Mr(r,i.bind(n),s);return o(),l}function Rr(e,t){const s=t.split(".");return()=>{let n=e;for(let r=0;r<s.length&&n;r++)n=n[s[r]];return n}}const ro=Symbol("_vte"),io=e=>e.__isTeleport,oo=Symbol("_leaveCb");function fn(e,t){e.shapeFlag&6&&e.component?(e.transition=t,fn(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 ut(e,t){return R(e)?le({name:e.name},t,{setup:e}):e}function Fr(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function On(e,t){let s;return!!((s=Object.getOwnPropertyDescriptor(e,t))&&!s.configurable)}const ls=new WeakMap;function $t(e,t,s,n,r=!1){if(M(e)){e.forEach(($,X)=>$t($,t&&(M(t)?t[X]:t),s,n,r));return}if(kt(n)&&!r){n.shapeFlag&512&&n.type.__asyncResolved&&n.component.subTree.component&&$t(e,t,s,n.component.subTree);return}const i=n.shapeFlag&4?Ts(n.component):n.el,o=r?null:i,{i:l,r:a}=e,p=t&&t.r,u=l.refs===z?l.refs={}:l.refs,d=l.setupState,_=B(d),P=d===z?nr:$=>On(u,$)?!1:H(_,$),N=($,X)=>!(X&&On(u,X));if(p!=null&&p!==a){if(En(t),Q(p))u[p]=null,P(p)&&(d[p]=null);else if(ae(p)){const $=t;N(p,$.k)&&(p.value=null),$.k&&(u[$.k]=null)}}if(R(a))Wt(a,l,12,[o,u]);else{const $=Q(a),X=ae(a)Line truncated **/function Wt(e,t,s,n){try{return n?e(...n):e()}catch(r){_s(r,t,s)}}function Ne(e,t,s,n){if(R(e)){const r=Wt(e,t,s,n);return r&&rr(r)&&r.catch(i=>{_s(i,t,s)}),r}if(M(e)){const r=[];for(let i=0;i<e.length;i++)r.push(Ne(e[i],t,s,n));return r}}function _s(e,t,s,n=!0){const r=t?t.vnode:null,{errorHandler:i,throwUnhandledErrorInProduction:o}=t&&t.appContext.config||z;if(t){let l=t.parent;const a=t.proxy,p=`https://vuejs.org/error-reference/#runtime-${s}`;for(;l;){const f=l.ec;if(f){for(let d=0;d<f.length;d++)if(f[d](e,a,p)===!1)return}l=l.parent}if(i){Ue(),Wt(i,null,10,[e,a,p]),We();return}}Yi(e,s,r,n,o)}function Yi(e,t,s,n=!0,r=!1){if(r)throw e;console.error(e)}const de=[];let $e=-1;const gt=[];let qe=null,dt=0;const Pr=Promise.resolve();let is=null;function Or(e){const t=is||Pr;return e?t.then(this?e.bind(this):e):t}function Zi(e){let t=$e+1,s=de.length;for(;t<s;){const n=t+s>>>1,r=de[n],i=Lt(r);i<e||i===e&&r.flags&2?t=n+1:s=n}return t}function un(e){if(!(e.flags&1)){const t=Lt(e),s=de[de.length-1];!s||!(e.flags&2)&&t>=Lt(s)?de.push(e):de.splice(Zi(t),0,e),e.flags|=1,Er()}}function Er(){is||(is=Pr.then($r))}function Xi(e){M(e)?gt.push(...e):qe&&e.id===-1?qe.splice(dt+1,0,e):e.flags&1||(gt.push(e),e.flags|=1),Er()}function Pn(e,t,s=$e+1){for(;s<de.length;s++){const n=de[s];if(n&&n.flags&2){if(e&&n.id!==e.uid)continue;de.splice(s,1),s--,n.flags&4&&(n.flags&=-2),n(),n.flags&4||(n.flags&=-2)}}}function Ir(e){if(gt.length){const t=[...new Set(gt)].sort((s,n)=>Lt(s)-Lt(n));if(gt.length=0,qe){qe.push(...t);return}for(qe=t,dt=0;dt<qe.length;dt++){const s=qe[dt];s.flags&4&&(s.flags&=-2),s.flags&8||s(),s.flags&=-2}qe=null,dt=0}}const Lt=e=>e.id==null?e.flags&2?-1:1/0:e.id;function $r(e){try{for($e=0;$e<de.length;$e++){const t=de[$e];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),Wt(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;$e<de.length;$e++){const t=de[$e];t&&(t.flags&=-2)}$e=-1,de.length=0,Ir(),is=null,(de.length||gt.length)&&$r()}}let be=null,kr=null;function os(e){const t=be;return be=e,kr=e&&e.type.__scopeId||null,t}function Qi(e,t=be,s){if(!t||e._n)return e;const n=(...r)=>{n._d&&Nn(-1);const i=os(t);let o;try{o=e(...r)}finally{os(i),n._d&&Nn(1)}return o};return n._n=!0,n._c=!0,n._d=!0,n}function lt(e,t){if(be===null)return e;const s=Ts(be),n=e.dirs||(e.dirs=[]);for(let r=0;r<t.length;r++){let[i,o,l,a=z]=t[r];i&&(R(i)&&(i={mounted:i,updated:i}),i.deep&&Ke(o),n.push({dir:i,instance:s,value:o,oldValue:void 0,arg:l,modifiers:a}))}return e}function et(e,t,s,n){const r=e.dirs,i=t&&t.dirs;for(let o=0;o<r.length;o++){const l=r[o];i&&(l.oldValue=i[o].value);let a=l.dir[n];a&&(Ue(),Ne(a,s,8,[e.el,l,e,t]),We())}}function eo(e,t){if(pe){let s=pe.provides;const n=pe.parent&&pe.parent.provides;n===s&&(s=pe.provides=Object.create(n)),s[e]=t}}function ss(e,t,s=!1){const n=tl();if(n||vt){let r=vt?vt._context.provides:n?n.parent==null||n.ce?n.vnode.appContext&&n.vnode.appContext.provides:n.parent.provides:void 0;if(r&&e in r)return r[e];if(arguments.length>1)return s&&R(t)?t.call(n&&n.proxy):t}}const to=Symbol.for("v-scx"),so=()=>ss(to);function ct(e,t,s){return Mr(e,t,s)}function Mr(e,t,s=z){const{immediate:n,deep:r,flush:i,once:o}=s,l=le({},s),a=t&&n||!t&&i!=="post";let p;if(Ht){if(i==="sync"){const P=so();p=P.__watcherHandles||(P.__watcherHandles=[])}else if(!a){const P=()=>{};return P.stop=Fe,P.resume=Fe,P.pause=Fe,P}}const f=pe;l.call=(P,N,$)=>Ne(P,f,N,$);let d=!1;i==="post"?l.scheduler=P=>{he(P,f&&f.suspense)}:i!=="sync"&&(d=!0,l.scheduler=(P,N)=>{N?P():un(P)}),l.augmentJob=P=>{t&&(P.flags|=4),d&&(P.flags|=2,f&&(P.id=f.uid,P.i=f))};const v=qi(e,t,l);return Ht&&(p?p.push(v):a&&v()),v}function no(e,t,s){const n=this.proxy,r=Q(e)?e.includes(".")?Rr(n,e):()=>n[e]:e.bind(n,n);let i;R(t)?i=t:(i=t.handler,s=t);const o=zt(this),l=Mr(r,i.bind(n),s);return o(),l}function Rr(e,t){const s=t.split(".");return()=>{let n=e;for(let r=0;r<s.length&&n;r++)n=n[s[r]];return n}}const ro=Symbol("_vte"),io=e=>e.__isTeleport,oo=Symbol("_leaveCb");function fn(e,t){e.shapeFlag&6&&e.component?(e.transition=t,fn(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 ut(e,t){return R(e)?le({name:e.name},t,{setup:e}):e}function Fr(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function On(e,t){let s;return!!((s=Object.getOwnPropertyDescriptor(e,t))&&!s.configurable)}const ls=new WeakMap;function $t(e,t,s,n,r=!1){if(M(e)){e.forEach(($,X)=>$t($,t&&(M(t)?t[X]:t),s,n,r));return}if(kt(n)&&!r){n.shapeFlag&512&&n.type.__asyncResolved&&n.component.subTree.component&&$t(e,t,s,n.component.subTree);return}const i=n.shapeFlag&4?Ts(n.component):n.el,o=r?null:i,{i:l,r:a}=e,p=t&&t.r,f=l.refs===z?l.refs={}:l.refs,d=l.setupState,v=B(d),P=d===z?nr:$=>On(f,$)?!1:H(v,$),N=($,X)=>!(X&&On(f,X));if(p!=null&&p!==a){if(En(t),Q(p))f[p]=null,P(p)&&(d[p]=null);else if(ae(p)){const $=t;N(p,$.k)&&(p.value=null),$.k&&(f[$.k]=null)}}if(R(a))Wt(a,l,12,[o,f]);else{const $=Q(a),X=ae(a)Line truncated
* @vue/runtime-dom v3.5.34 * @vue/runtime-dom v3.5.34
* (c) 2018-present Yuxi (Evan) You and Vue contributors * (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT * @license MIT
**/let Ys;const Bn=typeof window<"u"&&window.trustedTypes;if(Bn)try{Ys=Bn.createPolicy("vue",{createHTML:e=>e})}catch{}const oi=Ys?e=>Ys.createHTML(e):e=>e,cl="http://www.w3.org/2000/svg",al="http://www.w3.org/1998/Math/MathML",Le=typeof document<"u"?document:null,Hn=Le&&Le.createElement("template"),ul={insert:(e,t,s)=>{t.insertBefore(e,s||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,s,n)=>{const r=t==="svg"?Le.createElementNS(cl,e):t==="mathml"?Le.createElementNS(al,e):s?Le.createElement(e,{is:s}):Le.createElement(e);return e==="select"&&n&&n.multiple!=null&&r.setAttribute("multiple",n.multiple),r},createText:e=>Le.createTextNode(e),createComment:e=>Le.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Le.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,s,n,r,i){const o=s?s.previousSibling:t.lastChild;if(r&&(r===i||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),s),!(r===i||!(r=r.nextSibling)););else{Hn.innerHTML=oi(n==="svg"?`<svg>${e}</svg>`:n==="mathml"?`<math>${e}</math>`:e);const l=Hn.content;if(n==="svg"||n==="mathml"){const a=l.firstChild;for(;a.firstChild;)l.appendChild(a.firstChild);l.removeChild(a)}t.insertBefore(l,s)}return[o?o.nextSibling:t.firstChild,s?s.previousSibling:t.lastChild]}},fl=Symbol("_vtc");function dl(e,t,s){const n=e[fl];n&&(t=(t?[t,...n]:[...n]).join(" ")),t==null?e.removeAttribute("class"):s?e.setAttribute("class",t):e.className=t}const Kn=Symbol("_vod"),pl=Symbol("_vsh"),hl=Symbol(""),gl=/(?:^|;)\s*display\s*:/;function vl(e,t,s){const n=e.style,r=Q(s);let i=!1;if(s&&!r){if(t)if(Q(t))for(const o of t.split(";")){const l=o.slice(0,o.indexOf(":")).trim();s[l]==null&&Pt(n,l,"")}else for(const o in t)s[o]==null&&Pt(n,o,"");for(const o in s){o==="display"&&(i=!0);const l=s[o];l!=null?bl(e,o,!Q(t)&&t?t[o]:void 0,l)||Pt(n,o,l):Pt(n,o,"")}}else if(r){if(t!==s){const o=n[hl];o&&(s+=";"+o),n.cssText=s,i=gl.test(s)}}else t&&e.removeAttribute("style");Kn in e&&(e[Kn]=i?n.display:"",e[pl]&&(n.display="none"))}const Un=/\s*!important$/;function Pt(e,t,s){if(M(s))s.forEach(n=>Pt(e,t,n));else if(s==null&&(s=""),t.startsWith("--"))e.setProperty(t,s);else{const n=ml(e,t);Un.test(s)?e.setProperty(at(n),s.replace(Un,""),"important"):e[n]=s}}const Wn=["Webkit","Moz","ms"],Ns={};function ml(e,t){const s=Ns[t];if(s)return s;let n=we(t);if(n!=="filter"&&n in e)return Ns[t]=n;n=lr(n);for(let r=0;r<Wn.length;r++){const i=Wn[r]+n;if(i in e)return Ns[t]=i}return t}function bl(e,t,s,n){return e.tagName==="TEXTAREA"&&(t==="width"||t==="height")&&Q(n)&&s===n}const zn="http://www.w3.org/1999/xlink";function Jn(e,t,s,n,r,i=bi(t)){n&&t.startsWith("xlink:")?s==null?e.removeAttributeNS(zn,t.slice(6,t.length)):e.setAttributeNS(zn,t,s):s==null||i&&!ar(s)?e.removeAttribute(t):e.setAttribute(t,i?"":je(s)?String(s):s)}function Gn(e,t,s,n,r){if(t==="innerHTML"||t==="textContent"){s!=null&&(e[t]=t==="innerHTML"?oi(s):s);return}const i=e.tagName;if(t==="value"&&i!=="PROGRESS"&&!i.includes("-")){const l=i==="OPTION"?e.getAttribute("value")||"":e.value,a=s==null?e.type==="checkbox"?"on":"":String(s);(l!==a||!("_value"in e))&&(e.value=a),s==null&&e.removeAttribute(t),e._value=s;return}let o=!1;if(s===""||s==null){const l=typeof e[t];l==="boolean"?s=ar(s):s==null&&l==="string"?(s="",o=!0):l==="number"&&(s=0,o=!0)}try{e[t]=s}catch{}o&&e.removeAttribute(r||t)}function nt(e,t,s,n){e.addEventListener(t,s,n)}function xl(e,t,s,n){e.removeEventListener(t,s,n)}const qn=Symbol("_vei");function yl(e,t,s,n,r=null){const i=e[qn]||(e[qn]={}),o=i[t];if(n&&o)o.value=n;else{const[l,a]=_l(t);if(n){const p=i[t]=Cl(n,r);nt(e,l,p,a)}else o&&(xl(e,l,o,a),i[t]=void 0)}}const Yn=/(?:Once|Passive|Capture)$/;function _l(e){let t;if(Yn.test(e)){t={};let n;for(;n=e.match(Yn);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):at(e.slice(2)),t]}let Vs=0;const wl=Promise.resolve(),Sl=()=>Vs||(wl.then(()=>Vs=0),Vs=Date.now());function Cl(e,t){const s=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=s.attached)return;Ne(Tl(n,s.value),t,5,[n])};return s.value=e,s.attached=Sl(),s}function Tl(e,t){if(M(t)){const s=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{s.call(e),e._stopped=!0},t.map(n=>r=>!r._stopped&&n&&n(r))}else return t}const Zn=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Al=(e,t,s,n,r,i)=>{const o=r==="svg";t==="class"?dl(e,n,o):t==="style"?vl(e,s,n):hs(t)?gs(t)||yl(e,t,s,n,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Pl(e,t,n,o))?(Gn(e,t,n),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Jn(e,t,n,o,i,t!=="value")):e._isVueCE&&(Ol(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!Q(n)))?Gn(e,we(t),n,i,t):(t==="true-value"?e._trueValue=n:t==="false-value"&&(e._falseValue=n),Jn(e,t,n,o))};function Pl(e,t,s,n){if(n)return!!(t==="innerHTLine truncated **/let Ys;const Bn=typeof window<"u"&&window.trustedTypes;if(Bn)try{Ys=Bn.createPolicy("vue",{createHTML:e=>e})}catch{}const oi=Ys?e=>Ys.createHTML(e):e=>e,cl="http://www.w3.org/2000/svg",al="http://www.w3.org/1998/Math/MathML",Le=typeof document<"u"?document:null,Hn=Le&&Le.createElement("template"),ul={insert:(e,t,s)=>{t.insertBefore(e,s||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,s,n)=>{const r=t==="svg"?Le.createElementNS(cl,e):t==="mathml"?Le.createElementNS(al,e):s?Le.createElement(e,{is:s}):Le.createElement(e);return e==="select"&&n&&n.multiple!=null&&r.setAttribute("multiple",n.multiple),r},createText:e=>Le.createTextNode(e),createComment:e=>Le.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Le.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,s,n,r,i){const o=s?s.previousSibling:t.lastChild;if(r&&(r===i||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),s),!(r===i||!(r=r.nextSibling)););else{Hn.innerHTML=oi(n==="svg"?`<svg>${e}</svg>`:n==="mathml"?`<math>${e}</math>`:e);const l=Hn.content;if(n==="svg"||n==="mathml"){const a=l.firstChild;for(;a.firstChild;)l.appendChild(a.firstChild);l.removeChild(a)}t.insertBefore(l,s)}return[o?o.nextSibling:t.firstChild,s?s.previousSibling:t.lastChild]}},fl=Symbol("_vtc");function dl(e,t,s){const n=e[fl];n&&(t=(t?[t,...n]:[...n]).join(" ")),t==null?e.removeAttribute("class"):s?e.setAttribute("class",t):e.className=t}const Kn=Symbol("_vod"),pl=Symbol("_vsh"),hl=Symbol(""),gl=/(?:^|;)\s*display\s*:/;function vl(e,t,s){const n=e.style,r=Q(s);let i=!1;if(s&&!r){if(t)if(Q(t))for(const o of t.split(";")){const l=o.slice(0,o.indexOf(":")).trim();s[l]==null&&Pt(n,l,"")}else for(const o in t)s[o]==null&&Pt(n,o,"");for(const o in s){o==="display"&&(i=!0);const l=s[o];l!=null?bl(e,o,!Q(t)&&t?t[o]:void 0,l)||Pt(n,o,l):Pt(n,o,"")}}else if(r){if(t!==s){const o=n[hl];o&&(s+=";"+o),n.cssText=s,i=gl.test(s)}}else t&&e.removeAttribute("style");Kn in e&&(e[Kn]=i?n.display:"",e[pl]&&(n.display="none"))}const Un=/\s*!important$/;function Pt(e,t,s){if(M(s))s.forEach(n=>Pt(e,t,n));else if(s==null&&(s=""),t.startsWith("--"))e.setProperty(t,s);else{const n=ml(e,t);Un.test(s)?e.setProperty(at(n),s.replace(Un,""),"important"):e[n]=s}}const Wn=["Webkit","Moz","ms"],Ns={};function ml(e,t){const s=Ns[t];if(s)return s;let n=we(t);if(n!=="filter"&&n in e)return Ns[t]=n;n=lr(n);for(let r=0;r<Wn.length;r++){const i=Wn[r]+n;if(i in e)return Ns[t]=i}return t}function bl(e,t,s,n){return e.tagName==="TEXTAREA"&&(t==="width"||t==="height")&&Q(n)&&s===n}const zn="http://www.w3.org/1999/xlink";function Gn(e,t,s,n,r,i=bi(t)){n&&t.startsWith("xlink:")?s==null?e.removeAttributeNS(zn,t.slice(6,t.length)):e.setAttributeNS(zn,t,s):s==null||i&&!ar(s)?e.removeAttribute(t):e.setAttribute(t,i?"":je(s)?String(s):s)}function Jn(e,t,s,n,r){if(t==="innerHTML"||t==="textContent"){s!=null&&(e[t]=t==="innerHTML"?oi(s):s);return}const i=e.tagName;if(t==="value"&&i!=="PROGRESS"&&!i.includes("-")){const l=i==="OPTION"?e.getAttribute("value")||"":e.value,a=s==null?e.type==="checkbox"?"on":"":String(s);(l!==a||!("_value"in e))&&(e.value=a),s==null&&e.removeAttribute(t),e._value=s;return}let o=!1;if(s===""||s==null){const l=typeof e[t];l==="boolean"?s=ar(s):s==null&&l==="string"?(s="",o=!0):l==="number"&&(s=0,o=!0)}try{e[t]=s}catch{}o&&e.removeAttribute(r||t)}function nt(e,t,s,n){e.addEventListener(t,s,n)}function xl(e,t,s,n){e.removeEventListener(t,s,n)}const qn=Symbol("_vei");function yl(e,t,s,n,r=null){const i=e[qn]||(e[qn]={}),o=i[t];if(n&&o)o.value=n;else{const[l,a]=_l(t);if(n){const p=i[t]=Cl(n,r);nt(e,l,p,a)}else o&&(xl(e,l,o,a),i[t]=void 0)}}const Yn=/(?:Once|Passive|Capture)$/;function _l(e){let t;if(Yn.test(e)){t={};let n;for(;n=e.match(Yn);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):at(e.slice(2)),t]}let Vs=0;const wl=Promise.resolve(),Sl=()=>Vs||(wl.then(()=>Vs=0),Vs=Date.now());function Cl(e,t){const s=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=s.attached)return;Ne(Tl(n,s.value),t,5,[n])};return s.value=e,s.attached=Sl(),s}function Tl(e,t){if(M(t)){const s=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{s.call(e),e._stopped=!0},t.map(n=>r=>!r._stopped&&n&&n(r))}else return t}const Zn=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Al=(e,t,s,n,r,i)=>{const o=r==="svg";t==="class"?dl(e,n,o):t==="style"?vl(e,s,n):hs(t)?gs(t)||yl(e,t,s,n,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Pl(e,t,n,o))?(Jn(e,t,n),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Gn(e,t,n,o,i,t!=="value")):e._isVueCE&&(Ol(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!Q(n)))?Jn(e,we(t),n,i,t):(t==="true-value"?e._trueValue=n:t==="false-value"&&(e._falseValue=n),Gn(e,t,n,o))};function Pl(e,t,s,n){if(n)return!!(t==="innerHTLine truncated
<style rel="stylesheet" crossorigin>.switch[data-v-d838d577]{position:relative;width:36px;height:20px;flex-shrink:0}.switch input[data-v-d838d577]{display:none}.switch .track[data-v-d838d577]{position:absolute;inset:0;background:var(--toggle-track);border-radius:10px;cursor:pointer;transition:background .2s}.switch .thumb[data-v-d838d577]{position:absolute;width:14px;height:14px;top:3px;left:3px;background:var(--toggle-thumb);border-radius:50%;transition:all .2s;pointer-events:none}.switch input:checked+.track[data-v-d838d577]{background:var(--accent)}.switch input:checked+.track .thumb[data-v-d838d577]{transform:translate(16px);background:var(--text-strong)}.btn[data-v-d14b903b]{background:var(--input-bg);border:1px solid var(--input-border);border-radius:6px;color:var(--text);font-size:11px;padding:4px 10px;font-family:inherit;cursor:pointer;transition:background .15s;white-space:nowrap}.btn[data-v-d14b903b]:hover{background:var(--card-border)}.btn-sm[data-v-d14b903b]{background:var(--input-bg);border:1px solid var(--input-border);border-radius:6px;color:var(--text);font-size:10px;padding:3px 8px;font-family:inherit;cursor:pointer;white-space:nowrap}.btn-sm[data-v-d14b903b]:hover{background:var(--card-border)}.color-swatch[data-v-d14b903b]{width:28px;height:28px;border-radius:6px;cursor:pointer;border:2px solid transparent;transition:border-color .15s;position:relative}.color-swatch[data-v-d14b903b]:hover{border-color:var(--accent)}.color-swatch .del[data-v-d14b903b]{display:none;position:absolute;top:-6px;right:-6px;width:14px;height:14px;border-radius:50%;background:#e53e3e;color:#fff;font-size:9px;line-height:14px;text-align:center;cursor:pointer}.color-swatch:hover .del[data-v-d14b903b]{display:block}.btn[data-v-bb86a692]{background:var(--input-bg);border:1px solid var(--input-border);border-radius:6px;color:var(--text);font-size:11px;padding:4px 10px;font-family:inherit;cursor:pointer;transition:background .15s;white-space:nowrap}.btn[data-v-bb86a692]:hover{background:var(--card-border)}.btn-sm[data-v-bb86a692]{background:var(--input-bg);border:1px solid var(--input-border);border-radius:6px;color:var(--text);font-size:10px;padding:3px 8px;font-family:inherit;cursor:pointer;white-space:nowrap}.btn-sm[data-v-bb86a692]:hover{background:var(--card-border)}.city-picker[data-v-1a50093a]{position:relative;background:var(--input-bg);border:1px solid var(--input-border);border-radius:6px;padding:4px 24px 4px 8px;cursor:pointer;font-size:11px;min-width:140px;max-width:180px}.city-picker[data-v-1a50093a]:focus,.city-picker.open[data-v-1a50093a]{border-color:var(--input-border-focus)}.city-panel[data-v-1a50093a]{display:none;position:absolute;right:-1px;bottom:calc(100% + 4px);background:var(--option-bg);border:1px solid var(--input-border);border-radius:8px;box-shadow:0 8px 24px #00000040;z-index:1000;width:260px;height:200px;overflow:hidden}.city-picker.open .city-panel[data-v-1a50093a]{display:flex}.city-col[data-v-1a50093a]{flex:1;overflow-y:auto;border-right:1px solid var(--card-divider)}.city-col[data-v-1a50093a]:last-child{border-right:none}.city-col div[data-v-1a50093a]{padding:5px 10px;font-size:11px;color:var(--text);cursor:pointer;white-space:nowrap}.city-col div[data-v-1a50093a]:hover{background:var(--input-bg)}.city-col div.active[data-v-1a50093a]{color:var(--accent);font-weight:600}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-oLine truncated <style rel="stylesheet" crossorigin>.switch[data-v-d838d577]{position:relative;width:36px;height:20px;flex-shrink:0}.switch input[data-v-d838d577]{display:none}.switch .track[data-v-d838d577]{position:absolute;inset:0;background:var(--toggle-track);border-radius:10px;cursor:pointer;transition:background .2s}.switch .thumb[data-v-d838d577]{position:absolute;width:14px;height:14px;top:3px;left:3px;background:var(--toggle-thumb);border-radius:50%;transition:all .2s;pointer-events:none}.switch input:checked+.track[data-v-d838d577]{background:var(--accent)}.switch input:checked+.track .thumb[data-v-d838d577]{transform:translate(16px);background:var(--text-strong)}.btn[data-v-d14b903b]{background:var(--input-bg);border:1px solid var(--input-border);border-radius:6px;color:var(--text);font-size:11px;padding:4px 10px;font-family:inherit;cursor:pointer;transition:background .15s;white-space:nowrap}.btn[data-v-d14b903b]:hover{background:var(--card-border)}.btn-sm[data-v-d14b903b]{background:var(--input-bg);border:1px solid var(--input-border);border-radius:6px;color:var(--text);font-size:10px;padding:3px 8px;font-family:inherit;cursor:pointer;white-space:nowrap}.btn-sm[data-v-d14b903b]:hover{background:var(--card-border)}.color-swatch[data-v-d14b903b]{width:28px;height:28px;border-radius:6px;cursor:pointer;border:2px solid transparent;transition:border-color .15s;position:relative}.color-swatch[data-v-d14b903b]:hover{border-color:var(--accent)}.color-swatch .del[data-v-d14b903b]{display:none;position:absolute;top:-6px;right:-6px;width:14px;height:14px;border-radius:50%;background:#e53e3e;color:#fff;font-size:9px;line-height:14px;text-align:center;cursor:pointer}.color-swatch:hover .del[data-v-d14b903b]{display:block}.btn[data-v-bb86a692]{background:var(--input-bg);border:1px solid var(--input-border);border-radius:6px;color:var(--text);font-size:11px;padding:4px 10px;font-family:inherit;cursor:pointer;transition:background .15s;white-space:nowrap}.btn[data-v-bb86a692]:hover{background:var(--card-border)}.btn-sm[data-v-bb86a692]{background:var(--input-bg);border:1px solid var(--input-border);border-radius:6px;color:var(--text);font-size:10px;padding:3px 8px;font-family:inherit;cursor:pointer;white-space:nowrap}.btn-sm[data-v-bb86a692]:hover{background:var(--card-border)}.city-picker[data-v-1a50093a]{position:relative;background:var(--input-bg);border:1px solid var(--input-border);border-radius:6px;padding:4px 24px 4px 8px;cursor:pointer;font-size:11px;min-width:140px;max-width:180px}.city-picker[data-v-1a50093a]:focus,.city-picker.open[data-v-1a50093a]{border-color:var(--input-border-focus)}.city-panel[data-v-1a50093a]{display:none;position:absolute;right:-1px;bottom:calc(100% + 4px);background:var(--option-bg);border:1px solid var(--input-border);border-radius:8px;box-shadow:0 8px 24px #00000040;z-index:1000;width:260px;height:200px;overflow:hidden}.city-picker.open .city-panel[data-v-1a50093a]{display:flex}.city-col[data-v-1a50093a]{flex:1;overflow-y:auto;border-right:1px solid var(--card-divider)}.city-col[data-v-1a50093a]:last-child{border-right:none}.city-col div[data-v-1a50093a]{padding:5px 10px;font-size:11px;color:var(--text);cursor:pointer;white-space:nowrap}.city-col div[data-v-1a50093a]:hover{background:var(--input-bg)}.city-col div.active[data-v-1a50093a]{color:var(--accent);font-weight:600}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-oLine truncated
</head> </head>
<body> <body>
<div id="app"></div> <div id="app"></div>
+144
View File
@@ -30,6 +30,14 @@ var (
procTranslateMessage = user32.NewProc("TranslateMessage") procTranslateMessage = user32.NewProc("TranslateMessage")
procDispatchMessageW = user32.NewProc("DispatchMessageW") procDispatchMessageW = user32.NewProc("DispatchMessageW")
procGetParent = user32.NewProc("GetParent") procGetParent = user32.NewProc("GetParent")
procCallWindowProcW = user32.NewProc("CallWindowProcW")
procSetForegroundWindow = user32.NewProc("SetForegroundWindow")
procScreenToClient = user32.NewProc("ScreenToClient")
procEnumChildWindows = user32.NewProc("EnumChildWindows")
procGetWindow = user32.NewProc("GetWindow")
procSetWindowsHookExW = user32.NewProc("SetWindowsHookExW")
procCallNextHookEx = user32.NewProc("CallNextHookEx")
procWindowFromPoint = user32.NewProc("WindowFromPoint")
) )
var wv webview2.WebView var wv webview2.WebView
@@ -52,14 +60,149 @@ const (
wsMaxbox = uintptr(0x00010000) wsMaxbox = uintptr(0x00010000)
) )
const gwlpWndProc = ^uintptr(3) // GWLP_WNDPROC = -4
const ( const (
wsExTransparent = uintptr(0x00000020) wsExTransparent = uintptr(0x00000020)
wsExLayered = uintptr(0x00080000) wsExLayered = uintptr(0x00080000)
wsExToolwindow = uintptr(0x00000080) wsExToolwindow = uintptr(0x00000080)
) )
const (
gwChild = 5 // GW_CHILD
gwHwndNext = 2 // GW_HWNDNEXT
)
var htmlQueue = make(chan string, 1) var htmlQueue = make(chan string, 1)
// overlay 窗口子类化:动态 hit test
var (
overlayOldWndProc uintptr
overlayWndProcCb uintptr
overlayHitRect struct{ Left, Top, Right, Bottom int32 }
overlayHasHitRect bool
childOldWndProcs = make(map[uintptr]uintptr) // 子窗口 hwnd -> 旧 wndproc
)
// overlayWndProc 拦截 WM_NCHITTEST:交互区域返回 HTCLIENT,其余 HTTRANSPARENT(穿透)
// 注意:由于 overlay 在桌面图标层之下,此 wndproc 主要作为备用
func overlayWndProc(hwnd, msg, wp, lp uintptr) uintptr {
if msg == 0x0084 && overlayHasHitRect { // WM_NCHITTEST
x := int32(int16(lp & 0xFFFF))
y := int32(int16(lp >> 16))
pt := struct{ X, Y int32 }{x, y}
procScreenToClient.Call(wvHwnd, uintptr(unsafe.Pointer(&pt)))
if pt.X >= overlayHitRect.Left && pt.X <= overlayHitRect.Right &&
pt.Y >= overlayHitRect.Top && pt.Y <= overlayHitRect.Bottom {
return uintptr(1) // HTCLIENT
}
return 0xFFFFFFFF // HTTRANSPARENT
}
// 查找该窗口的旧 wndproc
oldProc := overlayOldWndProc
if v, ok := childOldWndProcs[hwnd]; ok {
oldProc = v
}
r, _, _ := procCallWindowProcW.Call(oldProc, hwnd, msg, wp, lp)
return r
}
// installMouseHook 安装 WH_MOUSE_LL 全局钩子拦截刷新按钮点击
// overlay 在 WorkerW 中,位于桌面图标层之下,WM_NCHITTEST 无法到达
// 因此用低级鼠标钩子直接在 Go 层处理点击
var llMouseHook uintptr
var llMouseHookCb uintptr // 防止 GC 回收回调函数
var progmanHwnd uintptr // Progman 句柄,用于判断点击是否在桌面
var btnHoverActive bool // 按钮悬停状态,避免重复推送 JS
// isMouseInBtnRect 检查鼠标是否在按钮 hit rect 内(屏幕坐标转 wvHwnd 客户端坐标)
func isMouseInBtnRect(screenX, screenY int32) bool {
if !overlayHasHitRect {
return false
}
pt := struct{ X, Y int32 }{screenX, screenY}
procScreenToClient.Call(wvHwnd, uintptr(unsafe.Pointer(&pt)))
return pt.X >= overlayHitRect.Left && pt.X <= overlayHitRect.Right &&
pt.Y >= overlayHitRect.Top && pt.Y <= overlayHitRect.Bottom
}
// isDesktopAtPoint 检查屏幕坐标处是否为桌面背景(无其他窗口遮挡)
func isDesktopAtPoint(screenX, screenY int32) bool {
ptPacked := uintptr(screenX) | (uintptr(uint32(screenY)) << 32)
hwndAt, _, _ := procWindowFromPoint.Call(ptPacked)
for h := hwndAt; h != 0; h, _, _ = procGetParent.Call(h) {
if h == progmanHwnd {
return true
}
}
return false
}
func installMouseHook() {
llMouseHookCb = windows.NewCallback(func(nCode, wp, lp uintptr) uintptr {
if int32(nCode) >= 0 {
type msll struct {
X, Y int32
MouseData uint32
Flags uint32
Time uint32
DwExtraInfo uintptr
}
s := (*msll)(unsafe.Pointer(lp))
switch wp {
case 0x0200: // WM_MOUSEMOVE — 悬停检测
inBtn := isMouseInBtnRect(s.X, s.Y)
if inBtn && !btnHoverActive {
btnHoverActive = true
evalJS("document.querySelector('.knowledge-refresh-btn')?.classList.add('hover-active')")
} else if !inBtn && btnHoverActive {
btnHoverActive = false
evalJS("document.querySelector('.knowledge-refresh-btn')?.classList.remove('hover-active')")
}
case 0x0201: // WM_LBUTTONDOWN — 点击
if !isDesktopAtPoint(s.X, s.Y) {
break
}
if isMouseInBtnRect(s.X, s.Y) {
pushKnowledgeLoading("")
go fetchAndPushKnowledge()
return 1
}
}
}
r, _, _ := procCallNextHookEx.Call(llMouseHook, nCode, wp, lp)
return r
})
var llMouseHookVal uintptr
llMouseHookVal, _, _ = procSetWindowsHookExW.Call(
14, // WH_MOUSE_LL
llMouseHookCb, 0, 0,
)
llMouseHook = llMouseHookVal
log.Printf("mouse hook installed, progman=0x%x, hook=0x%x", progmanHwnd, llMouseHookVal)
}
// subclassOverlayWindows 子类化 WebView2 父窗口及其所有子窗口
func subclassOverlayWindows() {
overlayWndProcCb = windows.NewCallback(overlayWndProc)
oldProc, _, _ := procSetWindowLongPtrW.Call(wvHwnd, gwlpWndProc, overlayWndProcCb)
overlayOldWndProc = oldProc
subclassChildTree(wvHwnd)
}
// subclassChildTree 递归子类化 parent 下的所有子窗口
func subclassChildTree(parent uintptr) {
child, _, _ := procGetWindow.Call(parent, uintptr(gwChild))
for child != 0 {
old, _, _ := procSetWindowLongPtrW.Call(child, gwlpWndProc, overlayWndProcCb)
childOldWndProcs[child] = old
subclassChildTree(child)
child, _, _ = procGetWindow.Call(child, uintptr(gwHwndNext))
}
}
var ( var (
classProgman = uintptr(unsafe.Pointer(windows.StringToUTF16Ptr("Progman"))) classProgman = uintptr(unsafe.Pointer(windows.StringToUTF16Ptr("Progman")))
classShellDefView = uintptr(unsafe.Pointer(windows.StringToUTF16Ptr("SHELLDLL_DefView"))) classShellDefView = uintptr(unsafe.Pointer(windows.StringToUTF16Ptr("SHELLDLL_DefView")))
@@ -85,6 +228,7 @@ func findWorkerW() uintptr {
log.Println("findWorkerW: Progman not found") log.Println("findWorkerW: Progman not found")
return 0 return 0
} }
progmanHwnd = progman // 保存 Progman 句柄供鼠标钩子判断
// 发送 0x052C 触发 Progman 创建 WorkerW // 发送 0x052C 触发 Progman 创建 WorkerW
var result uintptr var result uintptr
procSendMessageTimeoutW.Call(progman, 0x052C, 0, 0, 0x0000, 1000, uintptr(unsafe.Pointer(&result))) procSendMessageTimeoutW.Call(progman, 0x052C, 0, 0, 0x0000, 1000, uintptr(unsafe.Pointer(&result)))