# -*- coding: utf-8 -*-
import sys, io, re
sys.stdout = io.TextIOWrapper(sys.stdout.buffer, encoding="utf-8")
idx = open(r"D:\work buddy\2026-11-05-14-15-52\index_main.html", encoding="utf-8").read()
# PROGRAMS 末条
ps = idx.find("const PROGRAMS=")
pe = idx.find("];", ps)
print("PROGRAMS tail 200 chars:")
print(repr(idx[pe-200:pe+2]))
print()
# CATD 末条
cs = idx.find("const CATD=")
ce = idx.find("];", cs)
print("CATD tail 200 chars:")
print(repr(idx[ce-200:ce+2]))
print()
# VD 末条
vs = idx.find("const VERIFIED_DETAILS=")
ve = idx.find("]);", vs)
print("VD tail 150 chars:")
print(repr(idx[ve-150:ve+3]))
