Full Code of appshubcc/Bettbox for AI

main 715d8a0a4ae8 cached
1770 files
7.6 MB
2.1M tokens
13067 symbols
1 requests
Download .txt
Showing preview only (8,425K chars total). Download the full file or copy to clipboard to get everything.
Repository: appshubcc/Bettbox
Branch: main
Commit: 715d8a0a4ae8
Files: 1770
Total size: 7.6 MB

Directory structure:
gitextract_09h7tnhn/

├── .github/
│   ├── ISSUE_TEMPLATE/
│   │   ├── bug_report.yml
│   │   ├── config.yml
│   │   └── feature_request.yml
│   ├── release_template.md
│   ├── release_template_pre.md
│   └── workflows/
│       └── build.yaml
├── .gitignore
├── .metadata
├── LICENSE
├── Makefile
├── analysis_options.yaml
├── android/
│   ├── .gitignore
│   ├── app/
│   │   ├── build.gradle.kts
│   │   ├── proguard-rules.pro
│   │   └── src/
│   │       ├── debug/
│   │       │   └── AndroidManifest.xml
│   │       ├── main/
│   │       │   ├── AndroidManifest.xml
│   │       │   ├── kotlin/
│   │       │   │   └── com/
│   │       │   │       └── appshub/
│   │       │   │           └── bettbox/
│   │       │   │               ├── BettboxApplication.kt
│   │       │   │               ├── FilesProvider.kt
│   │       │   │               ├── GlobalState.kt
│   │       │   │               ├── MainActivity.kt
│   │       │   │               ├── TempActivity.kt
│   │       │   │               ├── extensions/
│   │       │   │               │   └── Ext.kt
│   │       │   │               ├── models/
│   │       │   │               │   ├── Package.kt
│   │       │   │               │   ├── Process.kt
│   │       │   │               │   └── Props.kt
│   │       │   │               ├── modules/
│   │       │   │               │   └── SuspendModule.kt
│   │       │   │               ├── plugins/
│   │       │   │               │   ├── AppPlugin.kt
│   │       │   │               │   ├── ServicePlugin.kt
│   │       │   │               │   ├── TilePlugin.kt
│   │       │   │               │   └── VpnPlugin.kt
│   │       │   │               ├── receivers/
│   │       │   │               │   ├── BootReceiver.kt
│   │       │   │               │   └── PackageReplacedReceiver.kt
│   │       │   │               └── services/
│   │       │   │                   ├── BaseServiceInterface.kt
│   │       │   │                   ├── BettboxService.kt
│   │       │   │                   ├── BettboxTileService.kt
│   │       │   │                   └── BettboxVpnService.kt
│   │       │   └── res/
│   │       │       ├── drawable/
│   │       │       │   ├── ic_launcher_background_dark.xml
│   │       │       │   ├── ic_launcher_background_light.xml
│   │       │       │   ├── ic_launcher_foreground_dark.xml
│   │       │       │   ├── ic_launcher_foreground_light.xml
│   │       │       │   ├── ic_notification_dark.xml
│   │       │       │   ├── ic_notification_light.xml
│   │       │       │   ├── ic_tile.xml
│   │       │       │   ├── launch_background.xml
│   │       │       │   └── tv_banner.xml
│   │       │       ├── drawable-night/
│   │       │       │   ├── ic_tile.xml
│   │       │       │   └── launch_background.xml
│   │       │       ├── mipmap-anydpi-v26/
│   │       │       │   ├── ic_launcher.xml
│   │       │       │   ├── ic_launcher_light.xml
│   │       │       │   ├── ic_launcher_round.xml
│   │       │       │   └── ic_launcher_round_light.xml
│   │       │       ├── values/
│   │       │       │   ├── strings.xml
│   │       │       │   └── styles.xml
│   │       │       ├── values-night/
│   │       │       │   └── styles.xml
│   │       │       ├── values-night-v27/
│   │       │       │   └── styles.xml
│   │       │       ├── values-ru/
│   │       │       │   └── strings.xml
│   │       │       ├── values-v27/
│   │       │       │   └── styles.xml
│   │       │       ├── values-zh-rCN/
│   │       │       │   └── strings.xml
│   │       │       ├── values-zh-rTW/
│   │       │       │   └── strings.xml
│   │       │       └── xml/
│   │       │           ├── file_paths.xml
│   │       │           └── network_security_config.xml
│   │       └── profile/
│   │           └── AndroidManifest.xml
│   ├── build.gradle.kts
│   ├── core/
│   │   ├── .gitignore
│   │   ├── build.gradle.kts
│   │   ├── proguard-rules.pro
│   │   └── src/
│   │       └── main/
│   │           ├── AndroidManifest.xml
│   │           ├── cpp/
│   │           │   ├── CMakeLists.txt
│   │           │   ├── core.cpp
│   │           │   ├── jni_helper.cpp
│   │           │   └── jni_helper.h
│   │           └── java/
│   │               └── com/
│   │                   └── appshub/
│   │                       └── bettbox/
│   │                           └── core/
│   │                               ├── Core.kt
│   │                               └── TunInterface.kt
│   ├── gradle.properties
│   └── settings.gradle.kts
├── arb/
│   ├── intl_en.arb
│   ├── intl_ru.arb
│   ├── intl_zh_CN.arb
│   └── intl_zh_TC.arb
├── assets/
│   └── data/
│       ├── ASN.mmdb
│       └── geoip.metadb
├── build.yaml
├── core/
│   ├── Clash.Meta/
│   │   ├── .github/
│   │   │   ├── ISSUE_TEMPLATE/
│   │   │   │   ├── bug_report.yml
│   │   │   │   ├── config.yml
│   │   │   │   └── feature_request.yml
│   │   │   ├── genReleaseNote.sh
│   │   │   ├── patch/
│   │   │   │   ├── go1.21.patch
│   │   │   │   ├── go1.22.patch
│   │   │   │   ├── go1.23.patch
│   │   │   │   ├── go1.24.patch
│   │   │   │   ├── go1.25.patch
│   │   │   │   ├── go1.26.patch
│   │   │   │   ├── issue77731.patch
│   │   │   │   ├── issue77930.patch
│   │   │   │   └── issue77975.patch
│   │   │   ├── release/
│   │   │   │   ├── .fpm_systemd
│   │   │   │   ├── config.yaml
│   │   │   │   ├── mihomo.service
│   │   │   │   └── mihomo@.service
│   │   │   ├── release.sh
│   │   │   ├── rename-cgo.sh
│   │   │   ├── rename-go120.sh
│   │   │   └── workflows/
│   │   │       ├── build.yml
│   │   │       ├── test.yml
│   │   │       └── trigger-cmfa-update.yml
│   │   ├── .gitignore
│   │   ├── .golangci.yaml
│   │   ├── Dockerfile
│   │   ├── LICENSE
│   │   ├── Makefile
│   │   ├── adapter/
│   │   │   ├── adapter.go
│   │   │   ├── inbound/
│   │   │   │   ├── addition.go
│   │   │   │   ├── auth.go
│   │   │   │   ├── http.go
│   │   │   │   ├── https.go
│   │   │   │   ├── ipfilter.go
│   │   │   │   ├── listen.go
│   │   │   │   ├── listen_notwindows.go
│   │   │   │   ├── listen_windows.go
│   │   │   │   ├── packet.go
│   │   │   │   ├── socket.go
│   │   │   │   └── util.go
│   │   │   ├── outbound/
│   │   │   │   ├── anytls.go
│   │   │   │   ├── base.go
│   │   │   │   ├── direct.go
│   │   │   │   ├── dns.go
│   │   │   │   ├── ech.go
│   │   │   │   ├── http.go
│   │   │   │   ├── hysteria.go
│   │   │   │   ├── hysteria2.go
│   │   │   │   ├── masque.go
│   │   │   │   ├── mieru.go
│   │   │   │   ├── mieru_test.go
│   │   │   │   ├── reality.go
│   │   │   │   ├── reject.go
│   │   │   │   ├── shadowsocks.go
│   │   │   │   ├── shadowsocksr.go
│   │   │   │   ├── singmux.go
│   │   │   │   ├── snell.go
│   │   │   │   ├── socks5.go
│   │   │   │   ├── ssh.go
│   │   │   │   ├── sudoku.go
│   │   │   │   ├── trojan.go
│   │   │   │   ├── trusttunnel.go
│   │   │   │   ├── tuic.go
│   │   │   │   ├── util.go
│   │   │   │   ├── vless.go
│   │   │   │   ├── vmess.go
│   │   │   │   └── wireguard.go
│   │   │   ├── outboundgroup/
│   │   │   │   ├── fallback.go
│   │   │   │   ├── groupbase.go
│   │   │   │   ├── loadbalance.go
│   │   │   │   ├── parser.go
│   │   │   │   ├── selector.go
│   │   │   │   ├── urltest.go
│   │   │   │   └── util.go
│   │   │   ├── parser.go
│   │   │   ├── patch.go
│   │   │   └── provider/
│   │   │       ├── healthcheck.go
│   │   │       ├── override.go
│   │   │       ├── parser.go
│   │   │       ├── patch.go
│   │   │       ├── provider.go
│   │   │       └── subscription_info.go
│   │   ├── android_tz.go
│   │   ├── check_amd64.sh
│   │   ├── common/
│   │   │   ├── arc/
│   │   │   │   ├── arc.go
│   │   │   │   ├── arc_test.go
│   │   │   │   └── entry.go
│   │   │   ├── atomic/
│   │   │   │   ├── enum.go
│   │   │   │   ├── type.go
│   │   │   │   ├── value.go
│   │   │   │   └── value_test.go
│   │   │   ├── batch/
│   │   │   │   ├── batch.go
│   │   │   │   └── batch_test.go
│   │   │   ├── buf/
│   │   │   │   └── sing.go
│   │   │   ├── callback/
│   │   │   │   ├── callback.go
│   │   │   │   └── close_callback.go
│   │   │   ├── cmd/
│   │   │   │   ├── cmd.go
│   │   │   │   ├── cmd_other.go
│   │   │   │   ├── cmd_test.go
│   │   │   │   └── cmd_windows.go
│   │   │   ├── contextutils/
│   │   │   │   ├── afterfunc_compact.go
│   │   │   │   ├── afterfunc_go120.go
│   │   │   │   ├── afterfunc_go121.go
│   │   │   │   ├── afterfunc_test.go
│   │   │   │   ├── withoutcancel_compact.go
│   │   │   │   ├── withoutcancel_go120.go
│   │   │   │   └── withoutcancel_go121.go
│   │   │   ├── convert/
│   │   │   │   ├── base64.go
│   │   │   │   ├── converter.go
│   │   │   │   ├── converter_test.go
│   │   │   │   ├── util.go
│   │   │   │   └── v.go
│   │   │   ├── deque/
│   │   │   │   └── deque.go
│   │   │   ├── httputils/
│   │   │   │   ├── addr.go
│   │   │   │   ├── force_close.go
│   │   │   │   └── h2_transport_close.go
│   │   │   ├── lru/
│   │   │   │   ├── lrucache.go
│   │   │   │   └── lrucache_test.go
│   │   │   ├── maphash/
│   │   │   │   ├── common.go
│   │   │   │   ├── comparable_go120.go
│   │   │   │   ├── comparable_go124.go
│   │   │   │   └── maphash_test.go
│   │   │   ├── murmur3/
│   │   │   │   ├── murmur.go
│   │   │   │   └── murmur32.go
│   │   │   ├── net/
│   │   │   │   ├── addr.go
│   │   │   │   ├── bind.go
│   │   │   │   ├── bufconn.go
│   │   │   │   ├── bufconn_unsafe.go
│   │   │   │   ├── cached.go
│   │   │   │   ├── context.go
│   │   │   │   ├── context_test.go
│   │   │   │   ├── deadline/
│   │   │   │   │   ├── conn.go
│   │   │   │   │   ├── packet.go
│   │   │   │   │   ├── packet_enhance.go
│   │   │   │   │   ├── packet_sing.go
│   │   │   │   │   ├── pipe.go
│   │   │   │   │   └── pipe_sing.go
│   │   │   │   ├── earlyconn.go
│   │   │   │   ├── io.go
│   │   │   │   ├── listener.go
│   │   │   │   ├── packet/
│   │   │   │   │   ├── packet.go
│   │   │   │   │   ├── packet_posix.go
│   │   │   │   │   ├── packet_sing.go
│   │   │   │   │   ├── packet_windows.go
│   │   │   │   │   ├── ref.go
│   │   │   │   │   ├── ref_sing.go
│   │   │   │   │   ├── thread.go
│   │   │   │   │   └── thread_sing.go
│   │   │   │   ├── packet.go
│   │   │   │   ├── refconn.go
│   │   │   │   ├── relay.go
│   │   │   │   ├── sing.go
│   │   │   │   ├── tcpip.go
│   │   │   │   └── websocket.go
│   │   │   ├── observable/
│   │   │   │   ├── iterable.go
│   │   │   │   ├── observable.go
│   │   │   │   ├── observable_test.go
│   │   │   │   └── subscriber.go
│   │   │   ├── once/
│   │   │   │   ├── once_go120.go
│   │   │   │   ├── once_go122.go
│   │   │   │   └── oncefunc.go
│   │   │   ├── orderedmap/
│   │   │   │   ├── doc.go
│   │   │   │   ├── json.go
│   │   │   │   ├── json_fuzz_test.go
│   │   │   │   ├── json_test.go
│   │   │   │   ├── orderedmap.go
│   │   │   │   ├── orderedmap_test.go
│   │   │   │   ├── utils_test.go
│   │   │   │   ├── yaml.go
│   │   │   │   ├── yaml_fuzz_test.go
│   │   │   │   └── yaml_test.go
│   │   │   ├── picker/
│   │   │   │   ├── picker.go
│   │   │   │   └── picker_test.go
│   │   │   ├── pool/
│   │   │   │   ├── alloc.go
│   │   │   │   ├── alloc_test.go
│   │   │   │   ├── buffer.go
│   │   │   │   ├── buffer_low_memory.go
│   │   │   │   ├── buffer_standard.go
│   │   │   │   ├── pool.go
│   │   │   │   └── sing.go
│   │   │   ├── queue/
│   │   │   │   ├── queue.go
│   │   │   │   └── queue_test.go
│   │   │   ├── singledo/
│   │   │   │   ├── singledo.go
│   │   │   │   └── singledo_test.go
│   │   │   ├── singleflight/
│   │   │   │   └── singleflight.go
│   │   │   ├── sockopt/
│   │   │   │   ├── reuse_common.go
│   │   │   │   ├── reuse_other.go
│   │   │   │   ├── reuse_unix.go
│   │   │   │   └── reuse_windows.go
│   │   │   ├── structure/
│   │   │   │   ├── structure.go
│   │   │   │   └── structure_test.go
│   │   │   ├── utils/
│   │   │   │   ├── callback.go
│   │   │   │   ├── global_id.go
│   │   │   │   ├── hash.go
│   │   │   │   ├── manipulation.go
│   │   │   │   ├── must.go
│   │   │   │   ├── range.go
│   │   │   │   ├── ranges.go
│   │   │   │   ├── ranges_test.go
│   │   │   │   ├── slice.go
│   │   │   │   ├── string_unsafe.go
│   │   │   │   ├── strings.go
│   │   │   │   ├── uuid.go
│   │   │   │   └── uuid_test.go
│   │   │   ├── xsync/
│   │   │   │   ├── map.go
│   │   │   │   ├── map_extra.go
│   │   │   │   ├── map_extra_test.go
│   │   │   │   └── map_test.go
│   │   │   └── yaml/
│   │   │       └── yaml.go
│   │   ├── component/
│   │   │   ├── auth/
│   │   │   │   └── auth.go
│   │   │   ├── ca/
│   │   │   │   ├── auth.go
│   │   │   │   ├── ca-certificates.crt
│   │   │   │   ├── config.go
│   │   │   │   ├── fingerprint.go
│   │   │   │   ├── fingerprint_test.go
│   │   │   │   ├── fix_windows.go
│   │   │   │   └── keypair.go
│   │   │   ├── cidr/
│   │   │   │   ├── ipcidr_set.go
│   │   │   │   ├── ipcidr_set_bin.go
│   │   │   │   └── ipcidr_set_test.go
│   │   │   ├── dhcp/
│   │   │   │   ├── conn.go
│   │   │   │   └── dhcp.go
│   │   │   ├── dialer/
│   │   │   │   ├── bind.go
│   │   │   │   ├── bind_darwin.go
│   │   │   │   ├── bind_linux.go
│   │   │   │   ├── bind_others.go
│   │   │   │   ├── bind_windows.go
│   │   │   │   ├── control.go
│   │   │   │   ├── dialer.go
│   │   │   │   ├── error.go
│   │   │   │   ├── mark_linux.go
│   │   │   │   ├── mark_nonlinux.go
│   │   │   │   ├── options.go
│   │   │   │   ├── reuse.go
│   │   │   │   ├── socket_hook.go
│   │   │   │   ├── tfo.go
│   │   │   │   └── tfo_windows.go
│   │   │   ├── ech/
│   │   │   │   ├── ech.go
│   │   │   │   ├── echparser/
│   │   │   │   │   └── echparser.go
│   │   │   │   ├── key.go
│   │   │   │   └── key_test.go
│   │   │   ├── fakeip/
│   │   │   │   ├── cachefile.go
│   │   │   │   ├── memory.go
│   │   │   │   ├── pool.go
│   │   │   │   ├── pool_test.go
│   │   │   │   ├── skipper.go
│   │   │   │   └── skipper_test.go
│   │   │   ├── generator/
│   │   │   │   ├── cmd.go
│   │   │   │   └── x25519.go
│   │   │   ├── geodata/
│   │   │   │   ├── attr.go
│   │   │   │   ├── geodata.go
│   │   │   │   ├── geodataproto.go
│   │   │   │   ├── init.go
│   │   │   │   ├── memconservative/
│   │   │   │   │   ├── cache.go
│   │   │   │   │   ├── decode.go
│   │   │   │   │   └── memc.go
│   │   │   │   ├── package_info.go
│   │   │   │   ├── router/
│   │   │   │   │   ├── condition.go
│   │   │   │   │   ├── config.pb.go
│   │   │   │   │   └── config.proto
│   │   │   │   ├── standard/
│   │   │   │   │   └── standard.go
│   │   │   │   ├── strmatcher/
│   │   │   │   │   ├── ac_automaton_matcher.go
│   │   │   │   │   ├── matchers.go
│   │   │   │   │   ├── mph_matcher.go
│   │   │   │   │   ├── package_info.go
│   │   │   │   │   └── strmatcher.go
│   │   │   │   └── utils.go
│   │   │   ├── http/
│   │   │   │   └── http.go
│   │   │   ├── iface/
│   │   │   │   └── iface.go
│   │   │   ├── keepalive/
│   │   │   │   ├── tcp_keepalive.go
│   │   │   │   ├── tcp_keepalive_go122.go
│   │   │   │   ├── tcp_keepalive_go123.go
│   │   │   │   ├── tcp_keepalive_go123_unix.go
│   │   │   │   └── tcp_keepalive_go123_windows.go
│   │   │   ├── loopback/
│   │   │   │   └── detector.go
│   │   │   ├── memory/
│   │   │   │   ├── memory.go
│   │   │   │   ├── memory_darwin.go
│   │   │   │   ├── memory_darwin_amd64.s
│   │   │   │   ├── memory_darwin_arm64.s
│   │   │   │   ├── memory_falllback.go
│   │   │   │   ├── memory_freebsd.go
│   │   │   │   ├── memory_freebsd_386.go
│   │   │   │   ├── memory_freebsd_amd64.go
│   │   │   │   ├── memory_freebsd_arm.go
│   │   │   │   ├── memory_freebsd_arm64.go
│   │   │   │   ├── memory_linux.go
│   │   │   │   ├── memory_openbsd.go
│   │   │   │   ├── memory_openbsd_386.go
│   │   │   │   ├── memory_openbsd_amd64.go
│   │   │   │   ├── memory_openbsd_arm.go
│   │   │   │   ├── memory_openbsd_arm64.go
│   │   │   │   ├── memory_openbsd_riscv64.go
│   │   │   │   ├── memory_test.go
│   │   │   │   └── memory_windows.go
│   │   │   ├── mmdb/
│   │   │   │   ├── mmdb.go
│   │   │   │   └── reader.go
│   │   │   ├── mptcp/
│   │   │   │   ├── mptcp_go120.go
│   │   │   │   └── mptcp_go121.go
│   │   │   ├── nat/
│   │   │   │   ├── proxy.go
│   │   │   │   └── table.go
│   │   │   ├── pool/
│   │   │   │   ├── pool.go
│   │   │   │   └── pool_test.go
│   │   │   ├── power/
│   │   │   │   ├── event.go
│   │   │   │   ├── event_other.go
│   │   │   │   └── event_windows.go
│   │   │   ├── process/
│   │   │   │   ├── find_process_mode.go
│   │   │   │   ├── process.go
│   │   │   │   ├── process_darwin.go
│   │   │   │   ├── process_freebsd_amd64.go
│   │   │   │   ├── process_linux.go
│   │   │   │   ├── process_other.go
│   │   │   │   └── process_windows.go
│   │   │   ├── profile/
│   │   │   │   ├── cachefile/
│   │   │   │   │   ├── cache.go
│   │   │   │   │   ├── etag.go
│   │   │   │   │   ├── fakeip.go
│   │   │   │   │   ├── storage.go
│   │   │   │   │   └── subscriptioninfo.go
│   │   │   │   └── profile.go
│   │   │   ├── proxydialer/
│   │   │   │   ├── byname.go
│   │   │   │   ├── proxydialer.go
│   │   │   │   ├── sing.go
│   │   │   │   ├── slowdown.go
│   │   │   │   └── slowdown_sing.go
│   │   │   ├── resolver/
│   │   │   │   ├── enhancer.go
│   │   │   │   ├── host.go
│   │   │   │   ├── hosts/
│   │   │   │   │   ├── hosts.go
│   │   │   │   │   └── hosts_windows.go
│   │   │   │   ├── ip4p.go
│   │   │   │   ├── relay.go
│   │   │   │   ├── resolver.go
│   │   │   │   ├── service.go
│   │   │   │   └── system.go
│   │   │   ├── resource/
│   │   │   │   ├── fetcher.go
│   │   │   │   └── vehicle.go
│   │   │   ├── slowdown/
│   │   │   │   ├── backoff.go
│   │   │   │   └── slowdown.go
│   │   │   ├── sniffer/
│   │   │   │   ├── base_sniffer.go
│   │   │   │   ├── dispatcher.go
│   │   │   │   ├── http_sniffer.go
│   │   │   │   ├── quic_sniffer.go
│   │   │   │   ├── sniff_test.go
│   │   │   │   └── tls_sniffer.go
│   │   │   ├── tls/
│   │   │   │   ├── httpserver.go
│   │   │   │   ├── reality.go
│   │   │   │   └── utls.go
│   │   │   ├── trie/
│   │   │   │   ├── domain.go
│   │   │   │   ├── domain_set.go
│   │   │   │   ├── domain_set_bin.go
│   │   │   │   ├── domain_set_test.go
│   │   │   │   ├── domain_test.go
│   │   │   │   ├── ipcidr_node.go
│   │   │   │   ├── ipcidr_trie.go
│   │   │   │   ├── node.go
│   │   │   │   └── trie_test.go
│   │   │   ├── updater/
│   │   │   │   ├── patch.go
│   │   │   │   ├── update_core.go
│   │   │   │   ├── update_core_test.go
│   │   │   │   ├── update_geo.go
│   │   │   │   ├── update_ui.go
│   │   │   │   └── utils.go
│   │   │   └── wildcard/
│   │   │       ├── wildcard.go
│   │   │       └── wildcard_test.go
│   │   ├── config/
│   │   │   ├── config.go
│   │   │   ├── initial.go
│   │   │   ├── utils.go
│   │   │   └── utils_test.go
│   │   ├── constant/
│   │   │   ├── adapters.go
│   │   │   ├── context.go
│   │   │   ├── dns.go
│   │   │   ├── features/
│   │   │   │   ├── android.go
│   │   │   │   ├── android_stub.go
│   │   │   │   ├── goflags.go
│   │   │   │   ├── low_memory.go
│   │   │   │   ├── low_memory_stub.go
│   │   │   │   ├── no_fake_tcp.go
│   │   │   │   ├── no_fake_tcp_stub.go
│   │   │   │   ├── tags.go
│   │   │   │   ├── version.go
│   │   │   │   ├── version_windows.go
│   │   │   │   ├── with_gvisor.go
│   │   │   │   └── with_gvisor_stub.go
│   │   │   ├── listener.go
│   │   │   ├── matcher.go
│   │   │   ├── metadata.go
│   │   │   ├── path.go
│   │   │   ├── path_test.go
│   │   │   ├── provider/
│   │   │   │   └── interface.go
│   │   │   ├── rule.go
│   │   │   ├── sniffer/
│   │   │   │   └── sniffer.go
│   │   │   ├── tun.go
│   │   │   ├── tunnel.go
│   │   │   └── version.go
│   │   ├── context/
│   │   │   ├── conn.go
│   │   │   ├── dns.go
│   │   │   └── packetconn.go
│   │   ├── dns/
│   │   │   ├── client.go
│   │   │   ├── dhcp.go
│   │   │   ├── dialer.go
│   │   │   ├── doh.go
│   │   │   ├── doq.go
│   │   │   ├── dot.go
│   │   │   ├── edns0_subnet.go
│   │   │   ├── enhancer.go
│   │   │   ├── middleware.go
│   │   │   ├── patch_android.go
│   │   │   ├── policy.go
│   │   │   ├── rcode.go
│   │   │   ├── resolver.go
│   │   │   ├── server.go
│   │   │   ├── service.go
│   │   │   ├── system.go
│   │   │   ├── system_common.go
│   │   │   ├── system_posix.go
│   │   │   ├── system_windows.go
│   │   │   └── util.go
│   │   ├── docker/
│   │   │   └── file-name.sh
│   │   ├── docs/
│   │   │   └── config.yaml
│   │   ├── flake.nix
│   │   ├── go.mod
│   │   ├── go.sum
│   │   ├── hub/
│   │   │   ├── executor/
│   │   │   │   ├── concurrent_load_limit.go
│   │   │   │   ├── concurrent_load_single.go
│   │   │   │   ├── concurrent_load_unlimit.go
│   │   │   │   ├── executor.go
│   │   │   │   └── patch.go
│   │   │   ├── hub.go
│   │   │   └── route/
│   │   │       ├── cache.go
│   │   │       ├── common.go
│   │   │       ├── configs.go
│   │   │       ├── connections.go
│   │   │       ├── ctxkeys.go
│   │   │       ├── dns.go
│   │   │       ├── doh.go
│   │   │       ├── errors.go
│   │   │       ├── external.go
│   │   │       ├── groups.go
│   │   │       ├── patch_android.go
│   │   │       ├── provider.go
│   │   │       ├── proxies.go
│   │   │       ├── restart.go
│   │   │       ├── rules.go
│   │   │       ├── server.go
│   │   │       ├── storage.go
│   │   │       └── upgrade.go
│   │   ├── listener/
│   │   │   ├── anytls/
│   │   │   │   └── server.go
│   │   │   ├── auth/
│   │   │   │   └── auth.go
│   │   │   ├── config/
│   │   │   │   ├── anytls.go
│   │   │   │   ├── auth.go
│   │   │   │   ├── hysteria2.go
│   │   │   │   ├── kcptun.go
│   │   │   │   ├── shadowsocks.go
│   │   │   │   ├── shadowtls.go
│   │   │   │   ├── sudoku.go
│   │   │   │   ├── trojan.go
│   │   │   │   ├── trusttunnel.go
│   │   │   │   ├── tuic.go
│   │   │   │   ├── tun.go
│   │   │   │   ├── tunnel.go
│   │   │   │   ├── vless.go
│   │   │   │   └── vmess.go
│   │   │   ├── http/
│   │   │   │   ├── client.go
│   │   │   │   ├── hack.go
│   │   │   │   ├── patch_android.go
│   │   │   │   ├── proxy.go
│   │   │   │   ├── server.go
│   │   │   │   ├── upgrade.go
│   │   │   │   └── utils.go
│   │   │   ├── inbound/
│   │   │   │   ├── anytls.go
│   │   │   │   ├── anytls_test.go
│   │   │   │   ├── auth.go
│   │   │   │   ├── base.go
│   │   │   │   ├── common_test.go
│   │   │   │   ├── http.go
│   │   │   │   ├── hysteria2.go
│   │   │   │   ├── hysteria2_test.go
│   │   │   │   ├── kcptun.go
│   │   │   │   ├── mieru.go
│   │   │   │   ├── mieru_test.go
│   │   │   │   ├── mixed.go
│   │   │   │   ├── mux.go
│   │   │   │   ├── mux_test.go
│   │   │   │   ├── reality.go
│   │   │   │   ├── redir.go
│   │   │   │   ├── shadowsocks.go
│   │   │   │   ├── shadowsocks_test.go
│   │   │   │   ├── shadowtls.go
│   │   │   │   ├── socks.go
│   │   │   │   ├── sudoku.go
│   │   │   │   ├── sudoku_test.go
│   │   │   │   ├── tproxy.go
│   │   │   │   ├── trojan.go
│   │   │   │   ├── trojan_test.go
│   │   │   │   ├── trusttunnel.go
│   │   │   │   ├── trusttunnel_test.go
│   │   │   │   ├── tuic.go
│   │   │   │   ├── tuic_test.go
│   │   │   │   ├── tun.go
│   │   │   │   ├── tunnel.go
│   │   │   │   ├── vless.go
│   │   │   │   ├── vless_test.go
│   │   │   │   ├── vmess.go
│   │   │   │   └── vmess_test.go
│   │   │   ├── inner/
│   │   │   │   └── tcp.go
│   │   │   ├── listener.go
│   │   │   ├── mieru/
│   │   │   │   └── server.go
│   │   │   ├── mixed/
│   │   │   │   └── mixed.go
│   │   │   ├── parse.go
│   │   │   ├── patch.go
│   │   │   ├── reality/
│   │   │   │   └── reality.go
│   │   │   ├── redir/
│   │   │   │   ├── tcp.go
│   │   │   │   ├── tcp_darwin.go
│   │   │   │   ├── tcp_freebsd.go
│   │   │   │   ├── tcp_linux.go
│   │   │   │   ├── tcp_linux_386.go
│   │   │   │   ├── tcp_linux_other.go
│   │   │   │   └── tcp_other.go
│   │   │   ├── shadowsocks/
│   │   │   │   ├── tcp.go
│   │   │   │   ├── udp.go
│   │   │   │   ├── utils.go
│   │   │   │   └── utils_test.go
│   │   │   ├── sing/
│   │   │   │   ├── context.go
│   │   │   │   ├── dialer.go
│   │   │   │   ├── sing.go
│   │   │   │   └── util.go
│   │   │   ├── sing_hysteria2/
│   │   │   │   └── server.go
│   │   │   ├── sing_shadowsocks/
│   │   │   │   └── server.go
│   │   │   ├── sing_tun/
│   │   │   │   ├── dns.go
│   │   │   │   ├── iface.go
│   │   │   │   ├── prepare.go
│   │   │   │   ├── redirect_linux.go
│   │   │   │   ├── redirect_stub.go
│   │   │   │   ├── server.go
│   │   │   │   ├── server_notwindows.go
│   │   │   │   ├── server_windows.go
│   │   │   │   ├── tun_name_darwin.go
│   │   │   │   ├── tun_name_linux.go
│   │   │   │   └── tun_name_other.go
│   │   │   ├── sing_vless/
│   │   │   │   ├── server.go
│   │   │   │   └── service.go
│   │   │   ├── sing_vmess/
│   │   │   │   ├── server.go
│   │   │   │   └── server_test.go
│   │   │   ├── socks/
│   │   │   │   ├── tcp.go
│   │   │   │   ├── udp.go
│   │   │   │   └── utils.go
│   │   │   ├── sudoku/
│   │   │   │   └── server.go
│   │   │   ├── tproxy/
│   │   │   │   ├── packet.go
│   │   │   │   ├── setsockopt_linux.go
│   │   │   │   ├── setsockopt_other.go
│   │   │   │   ├── tproxy.go
│   │   │   │   ├── tproxy_iptables.go
│   │   │   │   ├── udp.go
│   │   │   │   ├── udp_linux.go
│   │   │   │   └── udp_other.go
│   │   │   ├── trojan/
│   │   │   │   ├── packet.go
│   │   │   │   └── server.go
│   │   │   ├── trusttunnel/
│   │   │   │   └── server.go
│   │   │   ├── tuic/
│   │   │   │   └── server.go
│   │   │   └── tunnel/
│   │   │       ├── packet.go
│   │   │       ├── tcp.go
│   │   │       └── udp.go
│   │   ├── log/
│   │   │   ├── level.go
│   │   │   ├── log.go
│   │   │   └── sing.go
│   │   ├── main.go
│   │   ├── ntp/
│   │   │   ├── ntp/
│   │   │   │   ├── service.go
│   │   │   │   ├── time_stub.go
│   │   │   │   ├── time_unix.go
│   │   │   │   └── time_windows.go
│   │   │   └── time.go
│   │   ├── rules/
│   │   │   ├── common/
│   │   │   │   ├── base.go
│   │   │   │   ├── domain.go
│   │   │   │   ├── domain_keyword.go
│   │   │   │   ├── domain_regex.go
│   │   │   │   ├── domain_suffix.go
│   │   │   │   ├── domain_wildcard.go
│   │   │   │   ├── dscp.go
│   │   │   │   ├── final.go
│   │   │   │   ├── geoip.go
│   │   │   │   ├── geosite.go
│   │   │   │   ├── in_name.go
│   │   │   │   ├── in_type.go
│   │   │   │   ├── in_user.go
│   │   │   │   ├── ipasn.go
│   │   │   │   ├── ipcidr.go
│   │   │   │   ├── ipsuffix.go
│   │   │   │   ├── network_type.go
│   │   │   │   ├── port.go
│   │   │   │   ├── process.go
│   │   │   │   └── uid.go
│   │   │   ├── logic/
│   │   │   │   └── logic.go
│   │   │   ├── logic_test/
│   │   │   │   └── logic_test.go
│   │   │   ├── parser.go
│   │   │   ├── provider/
│   │   │   │   ├── classical_strategy.go
│   │   │   │   ├── domain_strategy.go
│   │   │   │   ├── ipcidr_strategy.go
│   │   │   │   ├── mrs_converter.go
│   │   │   │   ├── mrs_reader.go
│   │   │   │   ├── parse.go
│   │   │   │   ├── patch_android.go
│   │   │   │   ├── provider.go
│   │   │   │   └── rule_set.go
│   │   │   └── wrapper/
│   │   │       └── wrapper.go
│   │   ├── test/
│   │   │   ├── .golangci.yaml
│   │   │   ├── Makefile
│   │   │   ├── clash_test.go
│   │   │   ├── config/
│   │   │   │   ├── example.org-key.pem
│   │   │   │   ├── example.org.pem
│   │   │   │   ├── hysteria.json
│   │   │   │   ├── snell-http.conf
│   │   │   │   ├── snell-tls.conf
│   │   │   │   ├── snell.conf
│   │   │   │   ├── trojan-grpc.json
│   │   │   │   ├── trojan-ws.json
│   │   │   │   ├── trojan-xtls.json
│   │   │   │   ├── trojan.json
│   │   │   │   ├── vless-tls.json
│   │   │   │   ├── vless-ws.json
│   │   │   │   ├── vless-xtls.json
│   │   │   │   ├── vmess-grpc.json
│   │   │   │   ├── vmess-http.json
│   │   │   │   ├── vmess-http2.json
│   │   │   │   ├── vmess-tls.json
│   │   │   │   ├── vmess-ws-0rtt.json
│   │   │   │   ├── vmess-ws-tls.json
│   │   │   │   ├── vmess-ws.json
│   │   │   │   ├── vmess.json
│   │   │   │   └── xray-shadowsocks.json
│   │   │   ├── dns_test.go
│   │   │   ├── docker_test.go
│   │   │   ├── go.mod
│   │   │   ├── go.sum
│   │   │   ├── hysteria_test.go
│   │   │   ├── snell_test.go
│   │   │   ├── ss_test.go
│   │   │   ├── trojan_test.go
│   │   │   ├── util.go
│   │   │   ├── util_darwin_test.go
│   │   │   ├── util_other_test.go
│   │   │   ├── vless_test.go
│   │   │   └── vmess_test.go
│   │   ├── transport/
│   │   │   ├── anytls/
│   │   │   │   ├── client.go
│   │   │   │   ├── padding/
│   │   │   │   │   └── padding.go
│   │   │   │   ├── pipe/
│   │   │   │   │   ├── deadline.go
│   │   │   │   │   └── io_pipe.go
│   │   │   │   ├── session/
│   │   │   │   │   ├── client.go
│   │   │   │   │   ├── frame.go
│   │   │   │   │   ├── session.go
│   │   │   │   │   └── stream.go
│   │   │   │   ├── skiplist/
│   │   │   │   │   ├── contianer.go
│   │   │   │   │   ├── skiplist.go
│   │   │   │   │   ├── skiplist_newnode.go
│   │   │   │   │   └── types.go
│   │   │   │   └── util/
│   │   │   │       ├── deadline.go
│   │   │   │       ├── routine.go
│   │   │   │       ├── string_map.go
│   │   │   │       └── type.go
│   │   │   ├── gost-plugin/
│   │   │   │   └── websocket.go
│   │   │   ├── gun/
│   │   │   │   ├── gun.go
│   │   │   │   ├── server.go
│   │   │   │   └── utils.go
│   │   │   ├── hysteria/
│   │   │   │   ├── congestion/
│   │   │   │   │   ├── brutal.go
│   │   │   │   │   └── pacer.go
│   │   │   │   ├── conns/
│   │   │   │   │   ├── faketcp/
│   │   │   │   │   │   ├── LICENSE
│   │   │   │   │   │   ├── obfs.go
│   │   │   │   │   │   ├── tcp_linux.go
│   │   │   │   │   │   └── tcp_stub.go
│   │   │   │   │   ├── udp/
│   │   │   │   │   │   ├── hop.go
│   │   │   │   │   │   └── obfs.go
│   │   │   │   │   └── wechat/
│   │   │   │   │       └── obfs.go
│   │   │   │   ├── core/
│   │   │   │   │   ├── client.go
│   │   │   │   │   ├── frag.go
│   │   │   │   │   ├── frag_test.go
│   │   │   │   │   ├── protocol.go
│   │   │   │   │   └── stream.go
│   │   │   │   ├── obfs/
│   │   │   │   │   ├── dummy.go
│   │   │   │   │   ├── obfs.go
│   │   │   │   │   ├── xplus.go
│   │   │   │   │   └── xplus_test.go
│   │   │   │   ├── pmtud_fix/
│   │   │   │   │   ├── avail.go
│   │   │   │   │   └── unavail.go
│   │   │   │   ├── transport/
│   │   │   │   │   └── client.go
│   │   │   │   └── utils/
│   │   │   │       └── misc.go
│   │   │   ├── kcptun/
│   │   │   │   ├── client.go
│   │   │   │   ├── common.go
│   │   │   │   ├── comp.go
│   │   │   │   ├── doc.go
│   │   │   │   └── server.go
│   │   │   ├── masque/
│   │   │   │   ├── client_h2.go
│   │   │   │   └── masque.go
│   │   │   ├── restls/
│   │   │   │   └── restls.go
│   │   │   ├── shadowsocks/
│   │   │   │   ├── core/
│   │   │   │   │   └── cipher.go
│   │   │   │   ├── shadowaead/
│   │   │   │   │   ├── cipher.go
│   │   │   │   │   ├── packet.go
│   │   │   │   │   └── stream.go
│   │   │   │   └── shadowstream/
│   │   │   │       ├── chacha20.go
│   │   │   │       ├── cipher.go
│   │   │   │       ├── packet.go
│   │   │   │       └── stream.go
│   │   │   ├── shadowtls/
│   │   │   │   └── shadowtls.go
│   │   │   ├── simple-obfs/
│   │   │   │   ├── http.go
│   │   │   │   └── tls.go
│   │   │   ├── sing-shadowtls/
│   │   │   │   └── shadowtls.go
│   │   │   ├── snell/
│   │   │   │   ├── cipher.go
│   │   │   │   ├── pool.go
│   │   │   │   └── snell.go
│   │   │   ├── socks4/
│   │   │   │   └── socks4.go
│   │   │   ├── socks5/
│   │   │   │   └── socks5.go
│   │   │   ├── ssr/
│   │   │   │   ├── obfs/
│   │   │   │   │   ├── base.go
│   │   │   │   │   ├── http_post.go
│   │   │   │   │   ├── http_simple.go
│   │   │   │   │   ├── obfs.go
│   │   │   │   │   ├── plain.go
│   │   │   │   │   ├── random_head.go
│   │   │   │   │   └── tls1.2_ticket_auth.go
│   │   │   │   ├── protocol/
│   │   │   │   │   ├── auth_aes128_md5.go
│   │   │   │   │   ├── auth_aes128_sha1.go
│   │   │   │   │   ├── auth_chain_a.go
│   │   │   │   │   ├── auth_chain_b.go
│   │   │   │   │   ├── auth_sha1_v4.go
│   │   │   │   │   ├── base.go
│   │   │   │   │   ├── origin.go
│   │   │   │   │   ├── packet.go
│   │   │   │   │   ├── protocol.go
│   │   │   │   │   └── stream.go
│   │   │   │   └── tools/
│   │   │   │       ├── bufPool.go
│   │   │   │       ├── crypto.go
│   │   │   │       └── random.go
│   │   │   ├── sudoku/
│   │   │   │   ├── address.go
│   │   │   │   ├── config.go
│   │   │   │   ├── crypto/
│   │   │   │   │   ├── aead.go
│   │   │   │   │   ├── ed25519.go
│   │   │   │   │   ├── record_conn.go
│   │   │   │   │   └── record_conn_test.go
│   │   │   │   ├── directional_hint_test.go
│   │   │   │   ├── early_handshake.go
│   │   │   │   ├── features_test.go
│   │   │   │   ├── handshake.go
│   │   │   │   ├── handshake_kip.go
│   │   │   │   ├── handshake_test.go
│   │   │   │   ├── httpmask_tunnel.go
│   │   │   │   ├── httpmask_tunnel_test.go
│   │   │   │   ├── init.go
│   │   │   │   ├── init_test.go
│   │   │   │   ├── kip.go
│   │   │   │   ├── kip_test.go
│   │   │   │   ├── multiplex/
│   │   │   │   │   ├── session.go
│   │   │   │   │   └── write_chunks.go
│   │   │   │   ├── multiplex.go
│   │   │   │   ├── multiplex_test.go
│   │   │   │   ├── obfs/
│   │   │   │   │   ├── httpmask/
│   │   │   │   │   │   ├── auth.go
│   │   │   │   │   │   ├── early_handshake.go
│   │   │   │   │   │   ├── halfpipe.go
│   │   │   │   │   │   ├── masker.go
│   │   │   │   │   │   ├── pathroot.go
│   │   │   │   │   │   ├── tunnel.go
│   │   │   │   │   │   ├── tunnel_ws.go
│   │   │   │   │   │   ├── tunnel_ws_server.go
│   │   │   │   │   │   └── ws_stream_conn.go
│   │   │   │   │   └── sudoku/
│   │   │   │   │       ├── ascii_mode.go
│   │   │   │   │       ├── ascii_mode_test.go
│   │   │   │   │       ├── conn.go
│   │   │   │   │       ├── encode.go
│   │   │   │   │       ├── grid.go
│   │   │   │   │       ├── layout.go
│   │   │   │   │       ├── packed.go
│   │   │   │   │       ├── packed_prefix_test.go
│   │   │   │   │       ├── padding_prob.go
│   │   │   │   │       ├── pending.go
│   │   │   │   │       ├── rand.go
│   │   │   │   │       ├── table.go
│   │   │   │   │       └── table_set.go
│   │   │   │   ├── replay.go
│   │   │   │   ├── session_keys.go
│   │   │   │   ├── table_probe.go
│   │   │   │   ├── tables.go
│   │   │   │   ├── tables_directional_test.go
│   │   │   │   ├── uot.go
│   │   │   │   └── write_chunks.go
│   │   │   ├── trojan/
│   │   │   │   └── trojan.go
│   │   │   ├── trusttunnel/
│   │   │   │   ├── client.go
│   │   │   │   ├── doc.go
│   │   │   │   ├── icmp.go
│   │   │   │   ├── packet.go
│   │   │   │   ├── protocol.go
│   │   │   │   ├── quic.go
│   │   │   │   └── service.go
│   │   │   ├── tuic/
│   │   │   │   ├── common/
│   │   │   │   │   ├── congestion.go
│   │   │   │   │   └── dial.go
│   │   │   │   ├── congestion/
│   │   │   │   │   ├── bandwidth.go
│   │   │   │   │   ├── bandwidth_sampler.go
│   │   │   │   │   ├── bbr_sender.go
│   │   │   │   │   ├── cubic.go
│   │   │   │   │   ├── cubic_sender.go
│   │   │   │   │   ├── hybrid_slow_start.go
│   │   │   │   │   ├── minmax.go
│   │   │   │   │   ├── minmax_go120.go
│   │   │   │   │   ├── minmax_go121.go
│   │   │   │   │   ├── pacer.go
│   │   │   │   │   └── windowed_filter.go
│   │   │   │   ├── congestion_v2/
│   │   │   │   │   ├── bandwidth.go
│   │   │   │   │   ├── bandwidth_sampler.go
│   │   │   │   │   ├── bbr_sender.go
│   │   │   │   │   ├── minmax_go120.go
│   │   │   │   │   ├── minmax_go121.go
│   │   │   │   │   ├── pacer.go
│   │   │   │   │   ├── packet_number_indexed_queue.go
│   │   │   │   │   ├── ringbuffer.go
│   │   │   │   │   └── windowed_filter.go
│   │   │   │   ├── pool_client.go
│   │   │   │   ├── server.go
│   │   │   │   ├── tuic.go
│   │   │   │   ├── types/
│   │   │   │   │   ├── stream.go
│   │   │   │   │   └── type.go
│   │   │   │   ├── v4/
│   │   │   │   │   ├── client.go
│   │   │   │   │   ├── packet.go
│   │   │   │   │   ├── protocol.go
│   │   │   │   │   └── server.go
│   │   │   │   └── v5/
│   │   │   │       ├── client.go
│   │   │   │       ├── frag.go
│   │   │   │       ├── packet.go
│   │   │   │       ├── protocol.go
│   │   │   │       └── server.go
│   │   │   ├── v2ray-plugin/
│   │   │   │   ├── mux.go
│   │   │   │   └── websocket.go
│   │   │   ├── vless/
│   │   │   │   ├── addons.go
│   │   │   │   ├── addons_test.go
│   │   │   │   ├── config.pb.go
│   │   │   │   ├── config.proto
│   │   │   │   ├── conn.go
│   │   │   │   ├── encryption/
│   │   │   │   │   ├── client.go
│   │   │   │   │   ├── client_test.go
│   │   │   │   │   ├── common.go
│   │   │   │   │   ├── doc.go
│   │   │   │   │   ├── factory.go
│   │   │   │   │   ├── key.go
│   │   │   │   │   ├── server.go
│   │   │   │   │   └── xor.go
│   │   │   │   ├── packet.go
│   │   │   │   ├── vision/
│   │   │   │   │   ├── conn.go
│   │   │   │   │   ├── filter.go
│   │   │   │   │   ├── padding.go
│   │   │   │   │   └── vision.go
│   │   │   │   └── vless.go
│   │   │   ├── vmess/
│   │   │   │   ├── aead.go
│   │   │   │   ├── chunk.go
│   │   │   │   ├── conn.go
│   │   │   │   ├── h2.go
│   │   │   │   ├── header.go
│   │   │   │   ├── http.go
│   │   │   │   ├── tls.go
│   │   │   │   ├── user.go
│   │   │   │   ├── vmess.go
│   │   │   │   ├── websocket.go
│   │   │   │   ├── websocket_go120.go
│   │   │   │   └── websocket_go121.go
│   │   │   └── xhttp/
│   │   │       ├── browser.go
│   │   │       ├── client.go
│   │   │       ├── config.go
│   │   │       ├── conn.go
│   │   │       ├── reuse.go
│   │   │       ├── reuse_test.go
│   │   │       ├── server.go
│   │   │       ├── server_test.go
│   │   │       ├── upload_queue.go
│   │   │       ├── upload_queue_test.go
│   │   │       └── xpadding.go
│   │   └── tunnel/
│   │       ├── connection.go
│   │       ├── dns_dialer.go
│   │       ├── mode.go
│   │       ├── statistic/
│   │       │   ├── manager.go
│   │       │   ├── patch.go
│   │       │   ├── patch_android.go
│   │       │   └── tracker.go
│   │       ├── status.go
│   │       └── tunnel.go
│   ├── action.go
│   ├── android_bride.go
│   ├── common.go
│   ├── constant.go
│   ├── dart-bridge/
│   │   ├── include/
│   │   │   ├── dart_api.h
│   │   │   ├── dart_api_dl.c
│   │   │   ├── dart_api_dl.h
│   │   │   ├── dart_native_api.h
│   │   │   ├── dart_tools_api.h
│   │   │   ├── dart_version.h
│   │   │   └── internal/
│   │   │       └── dart_api_dl_impl.h
│   │   ├── lib.go
│   │   └── lib_common.go
│   ├── go.mod
│   ├── go.sum
│   ├── hub.go
│   ├── lib.go
│   ├── lib_android.go
│   ├── lib_no_android.go
│   ├── main.go
│   ├── main_cgo.go
│   ├── platform/
│   │   ├── limit.go
│   │   └── procfs.go
│   ├── server.go
│   ├── state/
│   │   └── state.go
│   └── tun/
│       └── tun.go
├── devtools_options.yaml
├── distribute_options.yaml
├── lib/
│   ├── application.dart
│   ├── clash/
│   │   ├── clash.dart
│   │   ├── core.dart
│   │   ├── generated/
│   │   │   └── clash_ffi.dart
│   │   ├── interface.dart
│   │   ├── lib.dart
│   │   ├── message.dart
│   │   └── service.dart
│   ├── common/
│   │   ├── android.dart
│   │   ├── app_localizations.dart
│   │   ├── archive.dart
│   │   ├── color.dart
│   │   ├── common.dart
│   │   ├── constant.dart
│   │   ├── context.dart
│   │   ├── converter.dart
│   │   ├── datetime.dart
│   │   ├── dav_client.dart
│   │   ├── fixed.dart
│   │   ├── flclash_database_extractor.dart
│   │   ├── function.dart
│   │   ├── future.dart
│   │   ├── helper_auth.dart
│   │   ├── http.dart
│   │   ├── icons.dart
│   │   ├── iterable.dart
│   │   ├── js_runtime_manager.dart
│   │   ├── keyboard.dart
│   │   ├── launch.dart
│   │   ├── link.dart
│   │   ├── lock.dart
│   │   ├── measure.dart
│   │   ├── mixin.dart
│   │   ├── navigation.dart
│   │   ├── navigator.dart
│   │   ├── network.dart
│   │   ├── network_matcher.dart
│   │   ├── num.dart
│   │   ├── package.dart
│   │   ├── path.dart
│   │   ├── picker.dart
│   │   ├── preferences.dart
│   │   ├── print.dart
│   │   ├── protocol.dart
│   │   ├── proxy.dart
│   │   ├── render.dart
│   │   ├── request.dart
│   │   ├── scroll.dart
│   │   ├── state.dart
│   │   ├── string.dart
│   │   ├── system.dart
│   │   ├── task.dart
│   │   ├── text.dart
│   │   ├── theme.dart
│   │   ├── tray.dart
│   │   ├── ui_manager.dart
│   │   ├── utils.dart
│   │   └── window.dart
│   ├── controller.dart
│   ├── enum/
│   │   └── enum.dart
│   ├── l10n/
│   │   ├── intl/
│   │   │   ├── messages_all.dart
│   │   │   ├── messages_en.dart
│   │   │   ├── messages_ru.dart
│   │   │   ├── messages_zh_CN.dart
│   │   │   └── messages_zh_TC.dart
│   │   └── l10n.dart
│   ├── main.dart
│   ├── manager/
│   │   ├── android_manager.dart
│   │   ├── app_manager.dart
│   │   ├── clash_manager.dart
│   │   ├── connectivity_manager.dart
│   │   ├── hotkey_manager.dart
│   │   ├── manager.dart
│   │   ├── message_manager.dart
│   │   ├── proxy_manager.dart
│   │   ├── smart_auto_stop_manager.dart
│   │   ├── theme_manager.dart
│   │   ├── tile_manager.dart
│   │   ├── tray_manager.dart
│   │   ├── vpn_manager.dart
│   │   └── window_manager.dart
│   ├── models/
│   │   ├── app.dart
│   │   ├── clash_config.dart
│   │   ├── common.dart
│   │   ├── config.dart
│   │   ├── core.dart
│   │   ├── generated/
│   │   │   ├── app.freezed.dart
│   │   │   ├── clash_config.freezed.dart
│   │   │   ├── clash_config.g.dart
│   │   │   ├── common.freezed.dart
│   │   │   ├── common.g.dart
│   │   │   ├── config.freezed.dart
│   │   │   ├── config.g.dart
│   │   │   ├── core.freezed.dart
│   │   │   ├── core.g.dart
│   │   │   ├── profile.freezed.dart
│   │   │   ├── profile.g.dart
│   │   │   ├── selector.freezed.dart
│   │   │   └── widget.freezed.dart
│   │   ├── models.dart
│   │   ├── profile.dart
│   │   ├── selector.dart
│   │   └── widget.dart
│   ├── pages/
│   │   ├── editor.dart
│   │   ├── home.dart
│   │   ├── pages.dart
│   │   └── scan.dart
│   ├── plugins/
│   │   ├── app.dart
│   │   ├── service.dart
│   │   ├── tile.dart
│   │   └── vpn.dart
│   ├── providers/
│   │   ├── app.dart
│   │   ├── config.dart
│   │   ├── generated/
│   │   │   ├── app.g.dart
│   │   │   ├── config.g.dart
│   │   │   └── state.g.dart
│   │   ├── providers.dart
│   │   └── state.dart
│   ├── state.dart
│   ├── views/
│   │   ├── about.dart
│   │   ├── access.dart
│   │   ├── application_setting.dart
│   │   ├── backup_and_recovery.dart
│   │   ├── config/
│   │   │   ├── config.dart
│   │   │   ├── dns.dart
│   │   │   ├── experimental.dart
│   │   │   ├── general.dart
│   │   │   ├── network.dart
│   │   │   ├── ntp.dart
│   │   │   ├── sniffer.dart
│   │   │   └── tunnel.dart
│   │   ├── connection/
│   │   │   ├── connections.dart
│   │   │   ├── item.dart
│   │   │   └── requests.dart
│   │   ├── dashboard/
│   │   │   ├── dashboard.dart
│   │   │   └── widgets/
│   │   │       ├── connections_count.dart
│   │   │       ├── dns_override.dart
│   │   │       ├── fcm_status.dart
│   │   │       ├── intranet_ip.dart
│   │   │       ├── ipv6_switch.dart
│   │   │       ├── memory_info.dart
│   │   │       ├── network_detection.dart
│   │   │       ├── network_speed.dart
│   │   │       ├── network_speed_small.dart
│   │   │       ├── ntp_override.dart
│   │   │       ├── online_panel.dart
│   │   │       ├── outbound_mode.dart
│   │   │       ├── providers_info.dart
│   │   │       ├── quick_options.dart
│   │   │       ├── sniffer_override.dart
│   │   │       ├── start_button.dart
│   │   │       ├── traffic_usage.dart
│   │   │       ├── wakelock_switch.dart
│   │   │       └── widgets.dart
│   │   ├── developer.dart
│   │   ├── hotkey.dart
│   │   ├── logs.dart
│   │   ├── other_setting.dart
│   │   ├── profiles/
│   │   │   ├── add_profile.dart
│   │   │   ├── edit_profile.dart
│   │   │   ├── override_profile.dart
│   │   │   ├── profiles.dart
│   │   │   └── scripts.dart
│   │   ├── proxies/
│   │   │   ├── advanced_settings.dart
│   │   │   ├── card.dart
│   │   │   ├── common.dart
│   │   │   ├── list.dart
│   │   │   ├── providers.dart
│   │   │   ├── proxies.dart
│   │   │   ├── setting.dart
│   │   │   └── tab.dart
│   │   ├── resources.dart
│   │   ├── theme.dart
│   │   ├── tools.dart
│   │   └── views.dart
│   └── widgets/
│       ├── activate_box.dart
│       ├── animate_grid.dart
│       ├── bar_chart.dart
│       ├── builder.dart
│       ├── card.dart
│       ├── chip.dart
│       ├── color_scheme_box.dart
│       ├── container.dart
│       ├── dialog.dart
│       ├── disabled_mask.dart
│       ├── donut_chart.dart
│       ├── effect.dart
│       ├── fade_box.dart
│       ├── float_layout.dart
│       ├── google_bottom_nav_bar.dart
│       ├── grid.dart
│       ├── icon.dart
│       ├── input.dart
│       ├── keep_scope.dart
│       ├── line_chart.dart
│       ├── list.dart
│       ├── notification.dart
│       ├── null_status.dart
│       ├── open_container.dart
│       ├── palette.dart
│       ├── pop_scope.dart
│       ├── popup.dart
│       ├── scaffold.dart
│       ├── scroll.dart
│       ├── setting.dart
│       ├── sheet.dart
│       ├── side_sheet.dart
│       ├── subscription_info_view.dart
│       ├── super_grid.dart
│       ├── tab.dart
│       ├── text.dart
│       ├── view.dart
│       ├── wave.dart
│       └── widgets.dart
├── linux/
│   ├── .gitignore
│   ├── CMakeLists.txt
│   ├── flutter/
│   │   ├── CMakeLists.txt
│   │   ├── generated_plugin_registrant.cc
│   │   ├── generated_plugin_registrant.h
│   │   └── generated_plugins.cmake
│   ├── main.cc
│   ├── my_application.cc
│   ├── my_application.h
│   └── packaging/
│       ├── appimage/
│       │   └── make_config.yaml
│       ├── deb/
│       │   └── make_config.yaml
│       └── rpm/
│           └── make_config.yaml
├── macos/
│   ├── .gitignore
│   ├── Flutter/
│   │   ├── Flutter-Debug.xcconfig
│   │   ├── Flutter-Release.xcconfig
│   │   └── GeneratedPluginRegistrant.swift
│   ├── Podfile
│   ├── Runner/
│   │   ├── AppDelegate.swift
│   │   ├── Assets.xcassets/
│   │   │   ├── AppIcon.appiconset/
│   │   │   │   └── Contents.json
│   │   │   └── Contents.json
│   │   ├── Base.lproj/
│   │   │   └── MainMenu.xib
│   │   ├── Configs/
│   │   │   ├── AppInfo.xcconfig
│   │   │   ├── Debug.xcconfig
│   │   │   ├── Release.xcconfig
│   │   │   └── Warnings.xcconfig
│   │   ├── DebugProfile.entitlements
│   │   ├── Info.plist
│   │   ├── MainFlutterWindow.swift
│   │   └── Release.entitlements
│   ├── Runner.xcodeproj/
│   │   ├── project.pbxproj
│   │   ├── project.xcworkspace/
│   │   │   └── xcshareddata/
│   │   │       └── IDEWorkspaceChecks.plist
│   │   └── xcshareddata/
│   │       └── xcschemes/
│   │           └── Runner.xcscheme
│   ├── Runner.xcworkspace/
│   │   ├── contents.xcworkspacedata
│   │   └── xcshareddata/
│   │       └── IDEWorkspaceChecks.plist
│   ├── RunnerTests/
│   │   └── RunnerTests.swift
│   └── packaging/
│       └── dmg/
│           └── make_config.yaml
├── plugins/
│   ├── flutter_distributor/
│   │   ├── .all-contributorsrc
│   │   ├── .github/
│   │   │   ├── FUNDING.yml
│   │   │   └── workflows/
│   │   │       ├── hello_world_build.yml
│   │   │       ├── lint.yml
│   │   │       └── test.yml
│   │   ├── .gitignore
│   │   ├── LICENSE
│   │   ├── analysis_options.yaml
│   │   ├── examples/
│   │   │   ├── custom_binary_name/
│   │   │   │   ├── .gitignore
│   │   │   │   ├── .metadata
│   │   │   │   ├── analysis_options.yaml
│   │   │   │   ├── distribute_options.yaml
│   │   │   │   ├── lib/
│   │   │   │   │   └── main.dart
│   │   │   │   ├── linux/
│   │   │   │   │   ├── .gitignore
│   │   │   │   │   ├── CMakeLists.txt
│   │   │   │   │   ├── flutter/
│   │   │   │   │   │   ├── CMakeLists.txt
│   │   │   │   │   │   ├── generated_plugin_registrant.cc
│   │   │   │   │   │   ├── generated_plugin_registrant.h
│   │   │   │   │   │   └── generated_plugins.cmake
│   │   │   │   │   ├── main.cc
│   │   │   │   │   ├── my_application.cc
│   │   │   │   │   ├── my_application.h
│   │   │   │   │   └── packaging/
│   │   │   │   │       ├── appimage/
│   │   │   │   │       │   └── make_config.yaml
│   │   │   │   │       └── deb/
│   │   │   │   │           └── make_config.yaml
│   │   │   │   ├── macos/
│   │   │   │   │   ├── .gitignore
│   │   │   │   │   ├── Flutter/
│   │   │   │   │   │   ├── Flutter-Debug.xcconfig
│   │   │   │   │   │   ├── Flutter-Release.xcconfig
│   │   │   │   │   │   └── GeneratedPluginRegistrant.swift
│   │   │   │   │   ├── Runner/
│   │   │   │   │   │   ├── AppDelegate.swift
│   │   │   │   │   │   ├── Assets.xcassets/
│   │   │   │   │   │   │   └── AppIcon.appiconset/
│   │   │   │   │   │   │       └── Contents.json
│   │   │   │   │   │   ├── Base.lproj/
│   │   │   │   │   │   │   └── MainMenu.xib
│   │   │   │   │   │   ├── Configs/
│   │   │   │   │   │   │   ├── AppInfo.xcconfig
│   │   │   │   │   │   │   ├── Debug.xcconfig
│   │   │   │   │   │   │   ├── Release.xcconfig
│   │   │   │   │   │   │   └── Warnings.xcconfig
│   │   │   │   │   │   ├── DebugProfile.entitlements
│   │   │   │   │   │   ├── Info.plist
│   │   │   │   │   │   ├── MainFlutterWindow.swift
│   │   │   │   │   │   └── Release.entitlements
│   │   │   │   │   ├── Runner.xcodeproj/
│   │   │   │   │   │   ├── project.pbxproj
│   │   │   │   │   │   ├── project.xcworkspace/
│   │   │   │   │   │   │   └── xcshareddata/
│   │   │   │   │   │   │       └── IDEWorkspaceChecks.plist
│   │   │   │   │   │   └── xcshareddata/
│   │   │   │   │   │       └── xcschemes/
│   │   │   │   │   │           └── Runner.xcscheme
│   │   │   │   │   ├── Runner.xcworkspace/
│   │   │   │   │   │   ├── contents.xcworkspacedata
│   │   │   │   │   │   └── xcshareddata/
│   │   │   │   │   │       └── IDEWorkspaceChecks.plist
│   │   │   │   │   ├── RunnerTests/
│   │   │   │   │   │   └── RunnerTests.swift
│   │   │   │   │   └── packaging/
│   │   │   │   │       └── dmg/
│   │   │   │   │           └── make_config.yaml
│   │   │   │   ├── pubspec.yaml
│   │   │   │   ├── release.sh
│   │   │   │   └── test/
│   │   │   │       └── widget_test.dart
│   │   │   ├── hello_world/
│   │   │   │   ├── .gitignore
│   │   │   │   ├── .metadata
│   │   │   │   ├── analysis_options.yaml
│   │   │   │   ├── android/
│   │   │   │   │   ├── .gitignore
│   │   │   │   │   ├── app/
│   │   │   │   │   │   ├── build.gradle
│   │   │   │   │   │   └── src/
│   │   │   │   │   │       ├── debug/
│   │   │   │   │   │       │   └── AndroidManifest.xml
│   │   │   │   │   │       ├── main/
│   │   │   │   │   │       │   ├── AndroidManifest.xml
│   │   │   │   │   │       │   ├── kotlin/
│   │   │   │   │   │       │   │   └── org/
│   │   │   │   │   │       │   │       └── leanflutter/
│   │   │   │   │   │       │   │           └── examples/
│   │   │   │   │   │       │   │               └── hello_world/
│   │   │   │   │   │       │   │                   └── MainActivity.kt
│   │   │   │   │   │       │   └── res/
│   │   │   │   │   │       │       ├── drawable/
│   │   │   │   │   │       │       │   └── launch_background.xml
│   │   │   │   │   │       │       ├── drawable-v21/
│   │   │   │   │   │       │       │   └── launch_background.xml
│   │   │   │   │   │       │       ├── values/
│   │   │   │   │   │       │       │   └── styles.xml
│   │   │   │   │   │       │       └── values-night/
│   │   │   │   │   │       │           └── styles.xml
│   │   │   │   │   │       └── profile/
│   │   │   │   │   │           └── AndroidManifest.xml
│   │   │   │   │   ├── build.gradle
│   │   │   │   │   ├── gradle/
│   │   │   │   │   │   └── wrapper/
│   │   │   │   │   │       └── gradle-wrapper.properties
│   │   │   │   │   ├── gradle.properties
│   │   │   │   │   └── settings.gradle
│   │   │   │   ├── distribute_options.yaml
│   │   │   │   ├── env.json
│   │   │   │   ├── ios/
│   │   │   │   │   ├── .gitignore
│   │   │   │   │   ├── ExportOptions.plist
│   │   │   │   │   ├── Flutter/
│   │   │   │   │   │   ├── AppFrameworkInfo.plist
│   │   │   │   │   │   ├── Debug.xcconfig
│   │   │   │   │   │   └── Release.xcconfig
│   │   │   │   │   ├── Podfile
│   │   │   │   │   ├── Runner/
│   │   │   │   │   │   ├── AppDelegate.swift
│   │   │   │   │   │   ├── Assets.xcassets/
│   │   │   │   │   │   │   ├── AppIcon.appiconset/
│   │   │   │   │   │   │   │   └── Contents.json
│   │   │   │   │   │   │   └── LaunchImage.imageset/
│   │   │   │   │   │   │       └── Contents.json
│   │   │   │   │   │   ├── Base.lproj/
│   │   │   │   │   │   │   ├── LaunchScreen.storyboard
│   │   │   │   │   │   │   └── Main.storyboard
│   │   │   │   │   │   ├── Info.plist
│   │   │   │   │   │   └── Runner-Bridging-Header.h
│   │   │   │   │   ├── Runner.xcodeproj/
│   │   │   │   │   │   ├── project.pbxproj
│   │   │   │   │   │   ├── project.xcworkspace/
│   │   │   │   │   │   │   ├── contents.xcworkspacedata
│   │   │   │   │   │   │   └── xcshareddata/
│   │   │   │   │   │   │       ├── IDEWorkspaceChecks.plist
│   │   │   │   │   │   │       └── WorkspaceSettings.xcsettings
│   │   │   │   │   │   └── xcshareddata/
│   │   │   │   │   │       └── xcschemes/
│   │   │   │   │   │           └── Runner.xcscheme
│   │   │   │   │   └── Runner.xcworkspace/
│   │   │   │   │       ├── contents.xcworkspacedata
│   │   │   │   │       └── xcshareddata/
│   │   │   │   │           ├── IDEWorkspaceChecks.plist
│   │   │   │   │           └── WorkspaceSettings.xcsettings
│   │   │   │   ├── lib/
│   │   │   │   │   └── main.dart
│   │   │   │   ├── linux/
│   │   │   │   │   ├── .gitignore
│   │   │   │   │   ├── CMakeLists.txt
│   │   │   │   │   ├── flutter/
│   │   │   │   │   │   ├── CMakeLists.txt
│   │   │   │   │   │   ├── generated_plugin_registrant.cc
│   │   │   │   │   │   ├── generated_plugin_registrant.h
│   │   │   │   │   │   └── generated_plugins.cmake
│   │   │   │   │   ├── main.cc
│   │   │   │   │   ├── my_application.cc
│   │   │   │   │   ├── my_application.h
│   │   │   │   │   └── packaging/
│   │   │   │   │       ├── appimage/
│   │   │   │   │       │   └── make_config.yaml
│   │   │   │   │       ├── deb/
│   │   │   │   │       │   └── make_config.yaml
│   │   │   │   │       ├── helloworld.appdata.xml
│   │   │   │   │       ├── pacman/
│   │   │   │   │       │   └── make_config.yaml
│   │   │   │   │       └── rpm/
│   │   │   │   │           └── make_config.yaml
│   │   │   │   ├── macos/
│   │   │   │   │   ├── .gitignore
│   │   │   │   │   ├── Flutter/
│   │   │   │   │   │   ├── Flutter-Debug.xcconfig
│   │   │   │   │   │   ├── Flutter-Release.xcconfig
│   │   │   │   │   │   └── GeneratedPluginRegistrant.swift
│   │   │   │   │   ├── Podfile
│   │   │   │   │   ├── Runner/
│   │   │   │   │   │   ├── AppDelegate.swift
│   │   │   │   │   │   ├── Assets.xcassets/
│   │   │   │   │   │   │   └── AppIcon.appiconset/
│   │   │   │   │   │   │       └── Contents.json
│   │   │   │   │   │   ├── Base.lproj/
│   │   │   │   │   │   │   └── MainMenu.xib
│   │   │   │   │   │   ├── Configs/
│   │   │   │   │   │   │   ├── AppInfo.xcconfig
│   │   │   │   │   │   │   ├── Debug.xcconfig
│   │   │   │   │   │   │   ├── Release.xcconfig
│   │   │   │   │   │   │   └── Warnings.xcconfig
│   │   │   │   │   │   ├── DebugProfile.entitlements
│   │   │   │   │   │   ├── Info.plist
│   │   │   │   │   │   ├── MainFlutterWindow.swift
│   │   │   │   │   │   └── Release.entitlements
│   │   │   │   │   ├── Runner.xcodeproj/
│   │   │   │   │   │   ├── project.pbxproj
│   │   │   │   │   │   ├── project.xcworkspace/
│   │   │   │   │   │   │   └── xcshareddata/
│   │   │   │   │   │   │       └── IDEWorkspaceChecks.plist
│   │   │   │   │   │   └── xcshareddata/
│   │   │   │   │   │       └── xcschemes/
│   │   │   │   │   │           └── Runner.xcscheme
│   │   │   │   │   ├── Runner.xcworkspace/
│   │   │   │   │   │   ├── contents.xcworkspacedata
│   │   │   │   │   │   └── xcshareddata/
│   │   │   │   │   │       └── IDEWorkspaceChecks.plist
│   │   │   │   │   └── packaging/
│   │   │   │   │       ├── dmg/
│   │   │   │   │       │   └── make_config.yaml
│   │   │   │   │       └── pkg/
│   │   │   │   │           └── make_config.yaml
│   │   │   │   ├── ohos/
│   │   │   │   │   ├── .gitignore
│   │   │   │   │   ├── AppScope/
│   │   │   │   │   │   ├── app.json5
│   │   │   │   │   │   └── resources/
│   │   │   │   │   │       └── base/
│   │   │   │   │   │           └── element/
│   │   │   │   │   │               └── string.json
│   │   │   │   │   ├── build-profile.json5
│   │   │   │   │   ├── entry/
│   │   │   │   │   │   ├── .gitignore
│   │   │   │   │   │   ├── build-profile.json5
│   │   │   │   │   │   ├── hvigorfile.ts
│   │   │   │   │   │   ├── oh-package.json5
│   │   │   │   │   │   └── src/
│   │   │   │   │   │       ├── main/
│   │   │   │   │   │       │   ├── ets/
│   │   │   │   │   │       │   │   ├── entryability/
│   │   │   │   │   │       │   │   │   └── EntryAbility.ets
│   │   │   │   │   │       │   │   ├── pages/
│   │   │   │   │   │       │   │   │   └── Index.ets
│   │   │   │   │   │       │   │   └── plugins/
│   │   │   │   │   │       │   │       └── GeneratedPluginRegistrant.ets
│   │   │   │   │   │       │   ├── module.json5
│   │   │   │   │   │       │   └── resources/
│   │   │   │   │   │       │       ├── base/
│   │   │   │   │   │       │       │   ├── element/
│   │   │   │   │   │       │       │   │   ├── color.json
│   │   │   │   │   │       │       │   │   └── string.json
│   │   │   │   │   │       │       │   └── profile/
│   │   │   │   │   │       │       │       ├── buildinfo.json5
│   │   │   │   │   │       │       │       └── main_pages.json
│   │   │   │   │   │       │       ├── en_US/
│   │   │   │   │   │       │       │   └── element/
│   │   │   │   │   │       │       │       └── string.json
│   │   │   │   │   │       │       └── zh_CN/
│   │   │   │   │   │       │           └── element/
│   │   │   │   │   │       │               └── string.json
│   │   │   │   │   │       └── ohosTest/
│   │   │   │   │   │           ├── ets/
│   │   │   │   │   │           │   ├── test/
│   │   │   │   │   │           │   │   ├── Ability.test.ets
│   │   │   │   │   │           │   │   └── List.test.ets
│   │   │   │   │   │           │   ├── testability/
│   │   │   │   │   │           │   │   ├── TestAbility.ets
│   │   │   │   │   │           │   │   └── pages/
│   │   │   │   │   │           │   │       └── Index.ets
│   │   │   │   │   │           │   └── testrunner/
│   │   │   │   │   │           │       └── OpenHarmonyTestRunner.ts
│   │   │   │   │   │           ├── module.json5
│   │   │   │   │   │           └── resources/
│   │   │   │   │   │               └── base/
│   │   │   │   │   │                   ├── element/
│   │   │   │   │   │                   │   ├── color.json
│   │   │   │   │   │                   │   └── string.json
│   │   │   │   │   │                   └── profile/
│   │   │   │   │   │                       └── test_pages.json
│   │   │   │   │   ├── hvigor/
│   │   │   │   │   │   └── hvigor-config.json5
│   │   │   │   │   ├── hvigorfile.ts
│   │   │   │   │   └── oh-package.json5
│   │   │   │   ├── pubspec.yaml
│   │   │   │   ├── release.sh
│   │   │   │   ├── test/
│   │   │   │   │   └── widget_test.dart
│   │   │   │   ├── web/
│   │   │   │   │   ├── index.html
│   │   │   │   │   └── manifest.json
│   │   │   │   └── windows/
│   │   │   │       ├── .gitignore
│   │   │   │       ├── CMakeLists.txt
│   │   │   │       ├── flutter/
│   │   │   │       │   ├── CMakeLists.txt
│   │   │   │       │   ├── generated_plugin_registrant.cc
│   │   │   │       │   ├── generated_plugin_registrant.h
│   │   │   │       │   └── generated_plugins.cmake
│   │   │   │       ├── packaging/
│   │   │   │       │   ├── exe/
│   │   │   │       │   │   ├── custom-inno-setup-script.iss
│   │   │   │       │   │   └── make_config.yaml
│   │   │   │       │   └── msix/
│   │   │   │       │       └── make_config.yaml
│   │   │   │       └── runner/
│   │   │   │           ├── CMakeLists.txt
│   │   │   │           ├── Runner.rc
│   │   │   │           ├── flutter_window.cpp
│   │   │   │           ├── flutter_window.h
│   │   │   │           ├── main.cpp
│   │   │   │           ├── resource.h
│   │   │   │           ├── runner.exe.manifest
│   │   │   │           ├── utils.cpp
│   │   │   │           ├── utils.h
│   │   │   │           ├── win32_window.cpp
│   │   │   │           └── win32_window.h
│   │   │   └── multiple_flavors/
│   │   │       ├── .gitignore
│   │   │       ├── .metadata
│   │   │       ├── analysis_options.yaml
│   │   │       ├── android/
│   │   │       │   ├── .gitignore
│   │   │       │   ├── app/
│   │   │       │   │   ├── build.gradle
│   │   │       │   │   └── src/
│   │   │       │   │       ├── debug/
│   │   │       │   │       │   └── AndroidManifest.xml
│   │   │       │   │       ├── main/
│   │   │       │   │       │   ├── AndroidManifest.xml
│   │   │       │   │       │   ├── java/
│   │   │       │   │       │   │   └── org/
│   │   │       │   │       │   │       └── leanflutter/
│   │   │       │   │       │   │           └── examples/
│   │   │       │   │       │   │               └── multiple_flavors/
│   │   │       │   │       │   │                   └── MainActivity.java
│   │   │       │   │       │   └── res/
│   │   │       │   │       │       ├── drawable/
│   │   │       │   │       │       │   └── launch_background.xml
│   │   │       │   │       │       ├── drawable-v21/
│   │   │       │   │       │       │   └── launch_background.xml
│   │   │       │   │       │       ├── values/
│   │   │       │   │       │       │   └── styles.xml
│   │   │       │   │       │       └── values-night/
│   │   │       │   │       │           └── styles.xml
│   │   │       │   │       └── profile/
│   │   │       │   │           └── AndroidManifest.xml
│   │   │       │   ├── build.gradle
│   │   │       │   ├── gradle/
│   │   │       │   │   └── wrapper/
│   │   │       │   │       └── gradle-wrapper.properties
│   │   │       │   ├── gradle.properties
│   │   │       │   └── settings.gradle
│   │   │       ├── distribute_options.yaml
│   │   │       ├── ios/
│   │   │       │   ├── .gitignore
│   │   │       │   ├── Flutter/
│   │   │       │   │   ├── AppFrameworkInfo.plist
│   │   │       │   │   ├── Debug.xcconfig
│   │   │       │   │   └── Release.xcconfig
│   │   │       │   ├── Podfile
│   │   │       │   ├── Runner/
│   │   │       │   │   ├── AppDelegate.h
│   │   │       │   │   ├── AppDelegate.m
│   │   │       │   │   ├── Assets.xcassets/
│   │   │       │   │   │   ├── AppIcon.appiconset/
│   │   │       │   │   │   │   └── Contents.json
│   │   │       │   │   │   └── LaunchImage.imageset/
│   │   │       │   │   │       └── Contents.json
│   │   │       │   │   ├── Base.lproj/
│   │   │       │   │   │   ├── LaunchScreen.storyboard
│   │   │       │   │   │   └── Main.storyboard
│   │   │       │   │   ├── Info.plist
│   │   │       │   │   └── main.m
│   │   │       │   ├── Runner.xcodeproj/
│   │   │       │   │   ├── project.pbxproj
│   │   │       │   │   ├── project.xcworkspace/
│   │   │       │   │   │   ├── contents.xcworkspacedata
│   │   │       │   │   │   └── xcshareddata/
│   │   │       │   │   │       ├── IDEWorkspaceChecks.plist
│   │   │       │   │   │       └── WorkspaceSettings.xcsettings
│   │   │       │   │   └── xcshareddata/
│   │   │       │   │       └── xcschemes/
│   │   │       │   │           ├── Runner.xcscheme
│   │   │       │   │           ├── dev.xcscheme
│   │   │       │   │           └── prod.xcscheme
│   │   │       │   ├── Runner.xcworkspace/
│   │   │       │   │   ├── contents.xcworkspacedata
│   │   │       │   │   └── xcshareddata/
│   │   │       │   │       ├── IDEWorkspaceChecks.plist
│   │   │       │   │       └── WorkspaceSettings.xcsettings
│   │   │       │   ├── dev_ExportOptions.plist
│   │   │       │   └── prod_ExportOptions.plist
│   │   │       ├── lib/
│   │   │       │   └── main.dart
│   │   │       ├── macos/
│   │   │       │   ├── .gitignore
│   │   │       │   ├── Flutter/
│   │   │       │   │   ├── Flutter-Debug.xcconfig
│   │   │       │   │   ├── Flutter-Release.xcconfig
│   │   │       │   │   └── GeneratedPluginRegistrant.swift
│   │   │       │   ├── Podfile
│   │   │       │   ├── Runner/
│   │   │       │   │   ├── AppDelegate.swift
│   │   │       │   │   ├── Assets.xcassets/
│   │   │       │   │   │   └── AppIcon.appiconset/
│   │   │       │   │   │       └── Contents.json
│   │   │       │   │   ├── Base.lproj/
│   │   │       │   │   │   └── MainMenu.xib
│   │   │       │   │   ├── Configs/
│   │   │       │   │   │   ├── AppInfo.xcconfig
│   │   │       │   │   │   ├── Debug.xcconfig
│   │   │       │   │   │   ├── Release.xcconfig
│   │   │       │   │   │   └── Warnings.xcconfig
│   │   │       │   │   ├── DebugProfile.entitlements
│   │   │       │   │   ├── Info.plist
│   │   │       │   │   ├── MainFlutterWindow.swift
│   │   │       │   │   └── Release.entitlements
│   │   │       │   ├── Runner.xcodeproj/
│   │   │       │   │   ├── project.pbxproj
│   │   │       │   │   ├── project.xcworkspace/
│   │   │       │   │   │   └── xcshareddata/
│   │   │       │   │   │       └── IDEWorkspaceChecks.plist
│   │   │       │   │   └── xcshareddata/
│   │   │       │   │       └── xcschemes/
│   │   │       │   │           ├── Runner.xcscheme
│   │   │       │   │           ├── dev.xcscheme
│   │   │       │   │           └── prod.xcscheme
│   │   │       │   ├── Runner.xcworkspace/
│   │   │       │   │   ├── contents.xcworkspacedata
│   │   │       │   │   └── xcshareddata/
│   │   │       │   │       └── IDEWorkspaceChecks.plist
│   │   │       │   ├── RunnerTests/
│   │   │       │   │   └── RunnerTests.swift
│   │   │       │   └── packaging/
│   │   │       │       └── dmg/
│   │   │       │           └── make_config.yaml
│   │   │       ├── ohos/
│   │   │       │   ├── .gitignore
│   │   │       │   ├── AppScope/
│   │   │       │   │   ├── app.json5
│   │   │       │   │   └── resources/
│   │   │       │   │       └── base/
│   │   │       │   │           └── element/
│   │   │       │   │               └── string.json
│   │   │       │   ├── build-profile.json5
│   │   │       │   ├── entry/
│   │   │       │   │   ├── .gitignore
│   │   │       │   │   ├── build-profile.json5
│   │   │       │   │   ├── hvigorfile.ts
│   │   │       │   │   ├── oh-package.json5
│   │   │       │   │   └── src/
│   │   │       │   │       ├── main/
│   │   │       │   │       │   ├── ets/
│   │   │       │   │       │   │   ├── entryability/
│   │   │       │   │       │   │   │   └── EntryAbility.ets
│   │   │       │   │       │   │   ├── pages/
│   │   │       │   │       │   │   │   └── Index.ets
│   │   │       │   │       │   │   └── plugins/
│   │   │       │   │       │   │       └── GeneratedPluginRegistrant.ets
│   │   │       │   │       │   ├── module.json5
│   │   │       │   │       │   └── resources/
│   │   │       │   │       │       ├── base/
│   │   │       │   │       │       │   ├── element/
│   │   │       │   │       │       │   │   ├── color.json
│   │   │       │   │       │       │   │   └── string.json
│   │   │       │   │       │       │   └── profile/
│   │   │       │   │       │       │       ├── buildinfo.json5
│   │   │       │   │       │       │       └── main_pages.json
│   │   │       │   │       │       ├── en_US/
│   │   │       │   │       │       │   └── element/
│   │   │       │   │       │       │       └── string.json
│   │   │       │   │       │       └── zh_CN/
│   │   │       │   │       │           └── element/
│   │   │       │   │       │               └── string.json
│   │   │       │   │       └── ohosTest/
│   │   │       │   │           ├── ets/
│   │   │       │   │           │   ├── test/
│   │   │       │   │           │   │   ├── Ability.test.ets
│   │   │       │   │           │   │   └── List.test.ets
│   │   │       │   │           │   ├── testability/
│   │   │       │   │           │   │   ├── TestAbility.ets
│   │   │       │   │           │   │   └── pages/
│   │   │       │   │           │   │       └── Index.ets
│   │   │       │   │           │   └── testrunner/
│   │   │       │   │           │       └── OpenHarmonyTestRunner.ts
│   │   │       │   │           ├── module.json5
│   │   │       │   │           └── resources/
│   │   │       │   │               └── base/
│   │   │       │   │                   ├── element/
│   │   │       │   │                   │   ├── color.json
│   │   │       │   │                   │   └── string.json
│   │   │       │   │                   └── profile/
│   │   │       │   │                       └── test_pages.json
│   │   │       │   ├── hvigor/
│   │   │       │   │   └── hvigor-config.json5
│   │   │       │   ├── hvigorfile.ts
│   │   │       │   └── oh-package.json5
│   │   │       ├── pubspec.yaml
│   │   │       ├── release.sh
│   │   │       └── test/
│   │   │           └── widget_test.dart
│   │   ├── melos.yaml
│   │   ├── packages/
│   │   │   ├── fastforge/
│   │   │   │   ├── .gitignore
│   │   │   │   ├── LICENSE
│   │   │   │   ├── analysis_options.yaml
│   │   │   │   ├── bin/
│   │   │   │   │   └── main.dart
│   │   │   │   ├── lib/
│   │   │   │   │   └── fastforge.dart
│   │   │   │   └── pubspec.yaml
│   │   │   ├── flutter_app_builder/
│   │   │   │   ├── .gitignore
│   │   │   │   ├── LICENSE
│   │   │   │   ├── analysis_options.yaml
│   │   │   │   ├── lib/
│   │   │   │   │   ├── flutter_app_builder.dart
│   │   │   │   │   └── src/
│   │   │   │   │       ├── build_config.dart
│   │   │   │   │       ├── build_error.dart
│   │   │   │   │       ├── build_result.dart
│   │   │   │   │       ├── builders/
│   │   │   │   │       │   ├── android/
│   │   │   │   │       │   │   ├── app_builder_android.dart
│   │   │   │   │       │   │   └── build_android_result.dart
│   │   │   │   │       │   ├── app_builder.dart
│   │   │   │   │       │   ├── builders.dart
│   │   │   │   │       │   ├── ios/
│   │   │   │   │       │   │   ├── app_builder_ios.dart
│   │   │   │   │       │   │   └── build_ios_result.dart
│   │   │   │   │       │   ├── linux/
│   │   │   │   │       │   │   ├── app_builder_linux.dart
│   │   │   │   │       │   │   └── build_linux_result.dart
│   │   │   │   │       │   ├── macos/
│   │   │   │   │       │   │   ├── app_builder_macos.dart
│   │   │   │   │       │   │   └── build_macos_result.dart
│   │   │   │   │       │   ├── ohos/
│   │   │   │   │       │   │   ├── app_builder_ohos.dart
│   │   │   │   │       │   │   └── build_ohos_result.dart
│   │   │   │   │       │   ├── web/
│   │   │   │   │       │   │   ├── app_builder_web.dart
│   │   │   │   │       │   │   └── build_web_result.dart
│   │   │   │   │       │   └── windows/
│   │   │   │   │       │       ├── app_builder_windows.dart
│   │   │   │   │       │       └── build_windows_result.dart
│   │   │   │   │       ├── commands/
│   │   │   │   │       │   └── flutter.dart
│   │   │   │   │       └── flutter_app_builder.dart
│   │   │   │   ├── pubspec.yaml
│   │   │   │   └── test/
│   │   │   │       └── src/
│   │   │   │           ├── build_config_test.dart
│   │   │   │           ├── builders/
│   │   │   │           │   ├── android/
│   │   │   │           │   │   └── build_android_result_test.dart
│   │   │   │           │   ├── ios/
│   │   │   │           │   │   └── build_ios_result_test.dart
│   │   │   │           │   ├── linux/
│   │   │   │           │   │   └── build_linux_result_test.dart
│   │   │   │           │   ├── macos/
│   │   │   │           │   │   └── build_ios_result_test.dart
│   │   │   │           │   ├── web/
│   │   │   │           │   │   └── build_web_result_test.dart
│   │   │   │           │   └── windows/
│   │   │   │           │       └── build_windows_result_test.dart
│   │   │   │           └── commands/
│   │   │   │               └── flutter_test.dart
│   │   │   ├── flutter_app_packager/
│   │   │   │   ├── .gitignore
│   │   │   │   ├── LICENSE
│   │   │   │   ├── analysis_options.yaml
│   │   │   │   ├── lib/
│   │   │   │   │   ├── flutter_app_packager.dart
│   │   │   │   │   └── src/
│   │   │   │   │       ├── api/
│   │   │   │   │       │   ├── app_package_maker.dart
│   │   │   │   │       │   ├── distribute_options_base.dart
│   │   │   │   │       │   ├── make_config.dart
│   │   │   │   │       │   ├── make_error.dart
│   │   │   │   │       │   └── make_result.dart
│   │   │   │   │       ├── flutter_app_packager.dart
│   │   │   │   │       └── makers/
│   │   │   │   │           ├── aab/
│   │   │   │   │           │   └── app_package_maker_aab.dart
│   │   │   │   │           ├── apk/
│   │   │   │   │           │   └── app_package_maker_apk.dart
│   │   │   │   │           ├── app/
│   │   │   │   │           │   └── app_package_maker_app.dart
│   │   │   │   │           ├── appimage/
│   │   │   │   │           │   ├── app_package_maker_appimage.dart
│   │   │   │   │           │   └── make_appimage_config.dart
│   │   │   │   │           ├── deb/
│   │   │   │   │           │   ├── app_package_maker_deb.dart
│   │   │   │   │           │   └── make_deb_config.dart
│   │   │   │   │           ├── direct/
│   │   │   │   │           │   └── app_package_maker_direct.dart
│   │   │   │   │           ├── dmg/
│   │   │   │   │           │   ├── app_package_maker_dmg.dart
│   │   │   │   │           │   ├── commands/
│   │   │   │   │           │   │   └── appdmg.dart
│   │   │   │   │           │   └── make_dmg_config.dart
│   │   │   │   │           ├── exe/
│   │   │   │   │           │   ├── app_package_maker_exe.dart
│   │   │   │   │           │   ├── inno_setup/
│   │   │   │   │           │   │   ├── inno_setup_compiler.dart
│   │   │   │   │           │   │   └── inno_setup_script.dart
│   │   │   │   │           │   └── make_exe_config.dart
│   │   │   │   │           ├── hap/
│   │   │   │   │           │   └── app_package_maker_hap.dart
│   │   │   │   │           ├── ipa/
│   │   │   │   │           │   └── app_package_maker_ipa.dart
│   │   │   │   │           ├── makers.dart
│   │   │   │   │           ├── msix/
│   │   │   │   │           │   ├── app_package_maker_msix.dart
│   │   │   │   │           │   └── make_msix_config.dart
│   │   │   │   │           ├── pacman/
│   │   │   │   │           │   ├── app_package_maker_pacman.dart
│   │   │   │   │           │   └── make_pacman_config.dart
│   │   │   │   │           ├── pkg/
│   │   │   │   │           │   ├── app_package_maker_pkg.dart
│   │   │   │   │           │   └── make_pkg_config.dart
│   │   │   │   │           ├── rpm/
│   │   │   │   │           │   ├── app_package_maker_rpm.dart
│   │   │   │   │           │   ├── make_rpm_config.dart
│   │   │   │   │           │   └── rpmbuild.dart
│   │   │   │   │           └── zip/
│   │   │   │   │               └── app_package_maker_zip.dart
│   │   │   │   ├── pubspec.yaml
│   │   │   │   └── test/
│   │   │   │       └── src/
│   │   │   │           └── api/
│   │   │   │               └── make_config_test.dart
│   │   │   ├── flutter_app_publisher/
│   │   │   │   ├── .gitignore
│   │   │   │   ├── LICENSE
│   │   │   │   ├── analysis_options.yaml
│   │   │   │   ├── lib/
│   │   │   │   │   ├── flutter_app_publisher.dart
│   │   │   │   │   └── src/
│   │   │   │   │       ├── api/
│   │   │   │   │       │   └── app_package_publisher.dart
│   │   │   │   │       ├── flutter_app_publisher.dart
│   │   │   │   │       └── publishers/
│   │   │   │   │           ├── appcenter/
│   │   │   │   │           │   ├── app_package_publisher_appcenter.dart
│   │   │   │   │           │   └── publish_appcenter_config.dart
│   │   │   │   │           ├── appstore/
│   │   │   │   │           │   ├── app_package_publisher_appstore.dart
│   │   │   │   │           │   └── publish_appstore_config.dart
│   │   │   │   │           ├── fir/
│   │   │   │   │           │   ├── app_package_publisher_fir.dart
│   │   │   │   │           │   └── publish_fir_config.dart
│   │   │   │   │           ├── firebase/
│   │   │   │   │           │   ├── app_package_publisher_firebase.dart
│   │   │   │   │           │   └── publish_firebase_config.dart
│   │   │   │   │           ├── firebase_hosting/
│   │   │   │   │           │   ├── app_package_publisher_firebase_hosting.dart
│   │   │   │   │           │   └── publish_firebase_hosting_config.dart
│   │   │   │   │           ├── github/
│   │   │   │   │           │   ├── app_package_publisher_github.dart
│   │   │   │   │           │   └── publish_github_config.dart
│   │   │   │   │           ├── pgyer/
│   │   │   │   │           │   ├── app_package_publisher_pgyer.dart
│   │   │   │   │           │   └── publish_pgyer_config.dart
│   │   │   │   │           ├── playstore/
│   │   │   │   │           │   ├── app_package_publisher_playstore.dart
│   │   │   │   │           │   └── publish_playstore_config.dart
│   │   │   │   │           ├── publishers.dart
│   │   │   │   │           ├── qiniu/
│   │   │   │   │           │   ├── app_package_publisher_qiniu.dart
│   │   │   │   │           │   └── publish_qiniu_config.dart
│   │   │   │   │           └── vercel/
│   │   │   │   │               ├── app_package_publisher_vercel.dart
│   │   │   │   │               └── publish_vercel_config.dart
│   │   │   │   └── pubspec.yaml
│   │   │   ├── flutter_distributor/
│   │   │   │   ├── .gitignore
│   │   │   │   ├── LICENSE
│   │   │   │   ├── analysis_options.yaml
│   │   │   │   ├── bin/
│   │   │   │   │   ├── command_package.dart
│   │   │   │   │   ├── command_publish.dart
│   │   │   │   │   ├── command_release.dart
│   │   │   │   │   ├── command_upgrade.dart
│   │   │   │   │   └── main.dart
│   │   │   │   ├── lib/
│   │   │   │   │   ├── flutter_distributor.dart
│   │   │   │   │   └── src/
│   │   │   │   │       ├── distribute_options.dart
│   │   │   │   │       ├── extensions/
│   │   │   │   │       │   ├── extensions.dart
│   │   │   │   │       │   └── string.dart
│   │   │   │   │       ├── flutter_distributor.dart
│   │   │   │   │       ├── release.dart
│   │   │   │   │       ├── release_job.dart
│   │   │   │   │       └── utils/
│   │   │   │   │           ├── default_shell_executor.dart
│   │   │   │   │           ├── logger.dart
│   │   │   │   │           ├── pub_dev_api.dart
│   │   │   │   │           └── utils.dart
│   │   │   │   ├── pubspec.yaml
│   │   │   │   └── test/
│   │   │   │       └── src/
│   │   │   │           └── extensions/
│   │   │   │               └── string_test.dart
│   │   │   ├── parse_app_package/
│   │   │   │   ├── .gitignore
│   │   │   │   ├── LICENSE
│   │   │   │   ├── bin/
│   │   │   │   │   └── main.dart
│   │   │   │   ├── lib/
│   │   │   │   │   ├── parse_app_package.dart
│   │   │   │   │   └── src/
│   │   │   │   │       ├── api/
│   │   │   │   │       │   └── app_package_parser.dart
│   │   │   │   │       ├── parse_app_package.dart
│   │   │   │   │       └── parsers/
│   │   │   │   │           ├── apk/
│   │   │   │   │           │   └── app_package_parser_apk.dart
│   │   │   │   │           ├── ipa/
│   │   │   │   │           │   └── app_package_parser_ipa.dart
│   │   │   │   │           └── parsers.dart
│   │   │   │   └── pubspec.yaml
│   │   │   ├── shell_executor/
│   │   │   │   ├── .gitignore
│   │   │   │   ├── LICENSE
│   │   │   │   ├── lib/
│   │   │   │   │   ├── shell_executor.dart
│   │   │   │   │   └── src/
│   │   │   │   │       ├── command.dart
│   │   │   │   │       ├── command_error.dart
│   │   │   │   │       ├── shell_executor.dart
│   │   │   │   │       └── utils/
│   │   │   │   │           └── path_expansion.dart
│   │   │   │   ├── pubspec.yaml
│   │   │   │   └── test/
│   │   │   │       └── src/
│   │   │   │           └── utils/
│   │   │   │               └── path_expansion_test.dart
│   │   │   ├── shell_uikit/
│   │   │   │   ├── .gitignore
│   │   │   │   ├── LICENSE
│   │   │   │   ├── example/
│   │   │   │   │   ├── progress_bar_example.dart
│   │   │   │   │   └── spinner_example.dart
│   │   │   │   ├── lib/
│   │   │   │   │   ├── shell_uikit.dart
│   │   │   │   │   └── src/
│   │   │   │   │       ├── progress_bar.dart
│   │   │   │   │       └── spinner.dart
│   │   │   │   └── pubspec.yaml
│   │   │   └── unified_distributor/
│   │   │       ├── .gitignore
│   │   │       ├── LICENSE
│   │   │       ├── analysis_options.yaml
│   │   │       ├── lib/
│   │   │       │   ├── src/
│   │   │       │   │   ├── check_version_result.dart
│   │   │       │   │   ├── cli/
│   │   │       │   │   │   ├── cli.dart
│   │   │       │   │   │   ├── command_package.dart
│   │   │       │   │   │   ├── command_publish.dart
│   │   │       │   │   │   ├── command_release.dart
│   │   │       │   │   │   └── command_upgrade.dart
│   │   │       │   │   ├── distribute_options.dart
│   │   │       │   │   ├── extensions/
│   │   │       │   │   │   └── string.dart
│   │   │       │   │   ├── release.dart
│   │   │       │   │   ├── release_job.dart
│   │   │       │   │   ├── unified_distributor.dart
│   │   │       │   │   └── utils/
│   │   │       │   │       ├── default_shell_executor.dart
│   │   │       │   │       ├── logger.dart
│   │   │       │   │       └── pub_dev_api.dart
│   │   │       │   └── unified_distributor.dart
│   │   │       ├── pubspec.yaml
│   │   │       └── test/
│   │   │           └── src/
│   │   │               └── extensions/
│   │   │                   └── string_test.dart
│   │   ├── pubspec.yaml
│   │   └── website/
│   │       ├── .gitignore
│   │       ├── astro.config.mjs
│   │       ├── package.json
│   │       ├── src/
│   │       │   ├── components/
│   │       │   │   └── starlight/
│   │       │   │       └── TableOfContents.astro
│   │       │   ├── content/
│   │       │   │   ├── config.ts
│   │       │   │   ├── docs/
│   │       │   │   │   ├── index.mdx
│   │       │   │   │   └── zh-hans/
│   │       │   │   │       └── index.mdx
│   │       │   │   └── i18n/
│   │       │   │       ├── en.json
│   │       │   │       └── zh-cn.json
│   │       │   ├── env.d.ts
│   │       │   └── tailwind.css
│   │       ├── tailwind.config.js
│   │       └── tsconfig.json
│   ├── proxy/
│   │   ├── .gitignore
│   │   ├── .metadata
│   │   ├── LICENSE
│   │   ├── analysis_options.yaml
│   │   ├── lib/
│   │   │   ├── proxy.dart
│   │   │   ├── proxy_method_channel.dart
│   │   │   └── proxy_platform_interface.dart
│   │   ├── pubspec.yaml
│   │   └── windows/
│   │       ├── .gitignore
│   │       ├── CMakeLists.txt
│   │       ├── include/
│   │       │   └── proxy/
│   │       │       └── proxy_plugin_c_api.h
│   │       ├── proxy_plugin.cpp
│   │       ├── proxy_plugin.h
│   │       ├── proxy_plugin_c_api.cpp
│   │       └── test/
│   │           └── proxy_plugin_test.cpp
│   └── window_ext/
│       ├── .gitignore
│       ├── .metadata
│       ├── LICENSE
│       ├── analysis_options.yaml
│       ├── lib/
│       │   ├── window_ext.dart
│       │   ├── window_ext_listener.dart
│       │   └── window_ext_manager.dart
│       ├── macos/
│       │   ├── Classes/
│       │   │   └── WindowExtPlugin.swift
│       │   └── window_ext.podspec
│       ├── pubspec.yaml
│       └── windows/
│           ├── .gitignore
│           ├── CMakeLists.txt
│           ├── include/
│           │   └── window_ext/
│           │       └── window_ext_plugin_c_api.h
│           ├── test/
│           │   └── window_ext_plugin_test.cpp
│           ├── window_ext_plugin.cpp
│           ├── window_ext_plugin.h
│           └── window_ext_plugin_c_api.cpp
├── pubspec.yaml
├── services/
│   └── helper/
│       ├── Cargo.toml
│       ├── build.rs
│       └── src/
│           ├── main.rs
│           └── service/
│               ├── hub.rs
│               ├── mod.rs
│               └── windows.rs
├── setup.dart
└── windows/
    ├── .gitignore
    ├── CMakeLists.txt
    ├── flutter/
    │   ├── CMakeLists.txt
    │   ├── generated_plugin_registrant.cc
    │   ├── generated_plugin_registrant.h
    │   └── generated_plugins.cmake
    ├── packaging/
    │   └── exe/
    │       ├── ChineseSimplified.isl
    │       ├── inno_setup.iss
    │       └── make_config.yaml
    └── runner/
        ├── CMakeLists.txt
        ├── Runner.rc
        ├── flutter_window.cpp
        ├── flutter_window.h
        ├── main.cpp
        ├── resource.h
        ├── runner.exe.manifest
        ├── utils.cpp
        ├── utils.h
        ├── win32_window.cpp
        └── win32_window.h

================================================
FILE CONTENTS
================================================

================================================
FILE: .github/ISSUE_TEMPLATE/bug_report.yml
================================================
name: 🐞 问题反馈 / Bug Report
description: 反馈你遇到的问题 / Report an issue
title: "[Bug]: "
labels: ["bug"]
body:
  - type: markdown
    attributes:
      value: |
        感谢你提交问题!在提交之前,请确保已搜索过 [现有 Issue](https://github.com/appshubcc/Bettbox/issues)。
        Thanks for reporting! Please search [existing issues](https://github.com/appshubcc/Bettbox/issues) before submitting.

  - type: textarea
    id: bug-description
    attributes:
      label: 问题描述 / Description
      placeholder: 请清晰地描述你遇到的问题,必要时附上截图。 / Describe the issue in detail, with screenshots if possible.
    validations:
      required: true

  - type: input
    id: version
    attributes:
      label: 软件版本 / Version
      placeholder: 例如 1.15.6
    validations:
      required: true

  - type: dropdown
    id: os
    attributes:
      label: 操作系统 / OS
      options:
        - Android
        - Windows
        - macOS
        - Linux
    validations:
      required: true

  - type: textarea
    id: steps
    attributes:
      label: 复现步骤 / Reproduction Steps
      placeholder: |
        1. 打开...
        2. 点击...
        3. 出现...
    validations:
      required: false

  - type: textarea
    id: logs
    attributes:
      label: 相关日志 / Logs
      description: 请在设置中开启 Debug 等级日志,并在此粘贴相关内容。尽量不要上传庞大的日志文件。 / Paste relevant debug logs here.
      render: shell
    validations:
      required: true

================================================
FILE: .github/ISSUE_TEMPLATE/config.yml
================================================
contact_links:
  - name: 💬 交流与讨论 / Channel & Chat
    url: https://t.me/appshub_chat
    about: 访问我们的 Telegram 讨论组 / Join the Telegram group

================================================
FILE: .github/ISSUE_TEMPLATE/feature_request.yml
================================================
name: ✨ 功能请求 / Feature Request
description: 提交一个新的功能建议 / Propose a new feature
title: "[Feature]: "
labels: ["enhancement"]
body:
  - type: markdown
    attributes:
      value: |
        感谢你为提高项目质量做出贡献!在提交建议前,请检查 [已有 Issue](https://github.com/appshubcc/Bettbox/issues)。
        Thanks for your contribution! Please check [existing issues](https://github.com/appshubcc/Bettbox/issues) before proposing.

  - type: textarea
    id: feature-description
    attributes:
      label: 功能描述 / Description
      placeholder: 请清晰简洁地描述该功能。 / A concise description of the feature request.
    validations:
      required: true

  - type: textarea
    id: use-case
    attributes:
      label: 使用场景 / Use Case
      placeholder: 描述该功能的使用场景及它可以解决的问题。 / Describe the usage scenario and what problem it solves.
    validations:
      required: false

  - type: checkboxes
    id: os-labels
    attributes:
      label: 适用系统 / Target OS
      options:
        - label: Android
        - label: Windows
        - label: macOS
        - label: Linux
    validations:
      required: true

================================================
FILE: .github/release_template.md
================================================
# Bettbox 正式版本发布
<div align="left">

### ✈️ Telegram 社区交流

</div>

<div align="left">

[![Telegram Group](https://img.shields.io/badge/Appshub-Chat-2CA5E0?style=for-the-badge&logo=telegram&logoColor=white)](https://t.me/appshub_chat) [![Telegram Channel](https://img.shields.io/badge/Appshub-Channel-2CA5E0?style=for-the-badge&logo=telegram&logoColor=white)](https://t.me/appshub_channel)

---
</div>


### ⬇️ Download / 下载链接

**Note: For desktop CPUs from 2012 or earlier, please download the Compatible version**
<br>**注意:桌面端2012年同期及之前的CPU,需要使用Compatible兼容版本**

---

<div align="left">

| **OS/ 系统** | **Requirements / 版本要求** | **Direct Links / 点击直链下载** |
|:---:|:---|:---|
| <img src="https://cdn.jsdelivr.net/gh/devicons/devicon/icons/android/android-original.svg" alt="Android" width="28"/> | Android 8.0+<br>*(Compatible with Android TV)* |<a href="https://github.com/appshubcc/Bettbox/releases/download/vVERSION/Bettbox-VERSION-android-arm64-v8a.apk"><img src="https://img.shields.io/badge/APK-ARMv8-32AF6A?logo=android&logoColor=white&style=flat-square&labelColor=222222"></a> <a href="https://github.com/appshubcc/Bettbox/releases/download/vVERSION/Bettbox-VERSION-android-x86_64.apk"><img src="https://img.shields.io/badge/APK-x64-32AF6A?logo=android&logoColor=white&style=flat-square&labelColor=222222"></a><br><a href="https://github.com/appshubcc/Bettbox/releases/download/vVERSION/Bettbox-VERSION-android-armeabi-v7a.apk"><img src="https://img.shields.io/badge/APK-ARMv7-32AF6A?logo=android&logoColor=white&style=flat-square&labelColor=222222"></a> <a href="https://github.com/appshubcc/Bettbox/releases/download/vVERSION/Bettbox-VERSION-android-universal.apk"><img src="https://img.shields.io/badge/APK-Universal-32AF6A?logo=android&logoColor=white&style=flat-square&labelColor=222222"></a> |
| <img src="https://cdn.jsdelivr.net/gh/devicons/devicon@latest/icons/windows11/windows11-original.svg" alt="Windows" width="28"/> | Windows 10+<br>*(Compatible for Older CPU)* | <a href="https://github.com/appshubcc/Bettbox/releases/download/vVERSION/Bettbox-VERSION-windows-amd64-setup.exe"><img src="https://img.shields.io/badge/Setup-x64-0078D7?logo=windows&logoColor=white&style=flat-square&labelColor=222222"></a> <a href="https://github.com/appshubcc/Bettbox/releases/download/vVERSION/Bettbox-VERSION-windows-arm64-setup.exe"><img src="https://img.shields.io/badge/Setup-ARM64-0078D7?logo=windows&logoColor=white&style=flat-square&labelColor=222222"></a><br><a href="https://github.com/appshubcc/Bettbox/releases/download/vVERSION/Bettbox-VERSION-windows-amd64-compatible-setup.exe"><img src="https://img.shields.io/badge/Setup-Compatible%20x64-555555?logo=windows&logoColor=white&style=flat-square&labelColor=222222"></a> |
| <img src="https://cdn.jsdelivr.net/gh/devicons/devicon/icons/apple/apple-original.svg" alt="macOS" width="28"/> | macOS 12.0+<br>*(Compatible for 10.15-11.7)* | <a href="https://github.com/appshubcc/Bettbox/releases/download/vVERSION/Bettbox-VERSION-macos-arm64.dmg"><img src="https://img.shields.io/badge/DMG-Apple%20Silicon-000000?logo=apple&logoColor=white&style=flat-square&labelColor=222222"></a> <a href="https://github.com/appshubcc/Bettbox/releases/download/vVERSION/Bettbox-VERSION-macos-amd64.dmg"><img src="https://img.shields.io/badge/DMG-Intel%20x64-00A9E0?logo=apple&logoColor=white&style=flat-square&labelColor=222222"></a><br><a href="https://github.com/appshubcc/Bettbox/releases/download/vVERSION/Bettbox-VERSION-macos-amd64-compatible.dmg"><img src="https://img.shields.io/badge/DMG-Compatible%20Intel-555555?logo=apple&logoColor=white&style=flat-square&labelColor=222222"></a> |
| <img src="https://cdn.jsdelivr.net/gh/devicons/devicon/icons/linux/linux-original.svg" alt="Linux" width="28"/> | Linux Kernel 5.4+<br>*(Compatible for Older CPU)* | <a href="https://github.com/appshubcc/Bettbox/releases/download/vVERSION/Bettbox-VERSION-linux-amd64.AppImage"><img src="https://img.shields.io/badge/AppImage-x64-f84e29?logo=linux&logoColor=white&style=flat-square&labelColor=222222"></a> <a href="https://github.com/appshubcc/Bettbox/releases/download/vVERSION/Bettbox-VERSION-linux-amd64.deb"><img src="https://img.shields.io/badge/DEB-x64-A81D33?logo=debian&logoColor=white&style=flat-square&labelColor=222222"></a><br><a href="https://github.com/appshubcc/Bettbox/releases/download/vVERSION/Bettbox-VERSION-linux-arm64.deb"><img src="https://img.shields.io/badge/DEB-ARM64-A81D33?logo=debian&logoColor=white&style=flat-square&labelColor=222222"></a> <a href="https://github.com/appshubcc/Bettbox/releases/download/vVERSION/Bettbox-VERSION-linux-amd64.rpm"><img src="https://img.shields.io/badge/RPM-x64-CC0000?logo=redhat&logoColor=white&style=flat-square&labelColor=222222"></a><br><a href="https://github.com/appshubcc/Bettbox/releases/download/vVERSION/Bettbox-VERSION-linux-amd64-compatible.deb"><img src="https://img.shields.io/badge/DEB-Compatible%20x64-555555?logo=debian&logoColor=white&style=flat-square&labelColor=222222"></a> |
---
</div>

### 🐛 Feedback / 问题反馈

> **Note / 提示:**
> Detailed and well-structured issues will be prioritized(logs / reproduction steps)<br>
> 书写认真、信息完整(包含必要的复现步骤和日志)的 issues 会被优先处理和对待

**Bug Report / 提交故障**: [Click Here / 点击这里](https://github.com/appshubcc/Bettbox/issues/new?template=bug_report.yml)
**Feature Request / 需求建议**: [Click Here / 点击这里](https://github.com/appshubcc/Bettbox/issues/new?template=feature_request.yml)

<br>


================================================
FILE: .github/release_template_pre.md
================================================
# Bettbox 预览版本发布
**注意:预览版本通常包含最新的功能以及不稳定性,如遇问题请提交issue[[反馈]](https://github.com/appshubcc/Bettbox/issues/new?template=bug_report.yml)联系社区交流。
<br>当前版本最新更新日志以及变更,请参考最新提交[[Commits]](https://github.com/appshubcc/Bettbox/commits/vVERSION/)**

<div align="left">

### ✈️ Telegram 社区交流

</div>

<div align="left">

[![Telegram Group](https://img.shields.io/badge/Appshub-Chat-2CA5E0?style=for-the-badge&logo=telegram&logoColor=white)](https://t.me/appshub_chat) [![Telegram Channel](https://img.shields.io/badge/Appshub-Channel-2CA5E0?style=for-the-badge&logo=telegram&logoColor=white)](https://t.me/appshub_channel)

---
</div>


### ⬇️ Download / 下载链接

**Note: For desktop CPUs from 2012 or earlier, please download the Compatible version**
<br>**注意:桌面端2012年同期及之前的CPU,需要使用Compatible兼容版本**

---

<div align="left">

| **OS/ 系统** | **Requirements / 版本要求** | **Direct Links / 点击直链下载** |
|:---:|:---|:---|
| <img src="https://cdn.jsdelivr.net/gh/devicons/devicon/icons/android/android-original.svg" alt="Android" width="28"/> | Android 8.0+<br>*(Compatible with Android TV)* |<a href="https://github.com/appshubcc/Bettbox/releases/download/vVERSION/Bettbox-BASE_VERSION-android-arm64-v8a.apk"><img src="https://img.shields.io/badge/APK-ARMv8-32AF6A?logo=android&logoColor=white&style=flat-square&labelColor=222222"></a> <a href="https://github.com/appshubcc/Bettbox/releases/download/vVERSION/Bettbox-BASE_VERSION-android-x86_64.apk"><img src="https://img.shields.io/badge/APK-x64-32AF6A?logo=android&logoColor=white&style=flat-square&labelColor=222222"></a><br><a href="https://github.com/appshubcc/Bettbox/releases/download/vVERSION/Bettbox-BASE_VERSION-android-armeabi-v7a.apk"><img src="https://img.shields.io/badge/APK-ARMv7-32AF6A?logo=android&logoColor=white&style=flat-square&labelColor=222222"></a> <a href="https://github.com/appshubcc/Bettbox/releases/download/vVERSION/Bettbox-BASE_VERSION-android-universal.apk"><img src="https://img.shields.io/badge/APK-Universal-32AF6A?logo=android&logoColor=white&style=flat-square&labelColor=222222"></a> |
| <img src="https://cdn.jsdelivr.net/gh/devicons/devicon@latest/icons/windows11/windows11-original.svg" alt="Windows" width="28"/> | Windows 10+<br>*(Compatible for Older CPU)* | <a href="https://github.com/appshubcc/Bettbox/releases/download/vVERSION/Bettbox-BASE_VERSION-windows-amd64-setup.exe"><img src="https://img.shields.io/badge/Setup-x64-0078D7?logo=windows&logoColor=white&style=flat-square&labelColor=222222"></a> <a href="https://github.com/appshubcc/Bettbox/releases/download/vVERSION/Bettbox-BASE_VERSION-windows-arm64-setup.exe"><img src="https://img.shields.io/badge/Setup-ARM64-0078D7?logo=windows&logoColor=white&style=flat-square&labelColor=222222"></a><br><a href="https://github.com/appshubcc/Bettbox/releases/download/vVERSION/Bettbox-BASE_VERSION-windows-amd64-compatible-setup.exe"><img src="https://img.shields.io/badge/Setup-Compatible%20x64-555555?logo=windows&logoColor=white&style=flat-square&labelColor=222222"></a> |
| <img src="https://cdn.jsdelivr.net/gh/devicons/devicon/icons/apple/apple-original.svg" alt="macOS" width="28"/> | macOS 12.0+<br>*(Compatible for 10.15-11.7)* | <a href="https://github.com/appshubcc/Bettbox/releases/download/vVERSION/Bettbox-BASE_VERSION-macos-arm64.dmg"><img src="https://img.shields.io/badge/DMG-Apple%20Silicon-000000?logo=apple&logoColor=white&style=flat-square&labelColor=222222"></a> <a href="https://github.com/appshubcc/Bettbox/releases/download/vVERSION/Bettbox-BASE_VERSION-macos-amd64.dmg"><img src="https://img.shields.io/badge/DMG-Intel%20x64-00A9E0?logo=apple&logoColor=white&style=flat-square&labelColor=222222"></a><br><a href="https://github.com/appshubcc/Bettbox/releases/download/vVERSION/Bettbox-BASE_VERSION-macos-amd64-compatible.dmg"><img src="https://img.shields.io/badge/DMG-Compatible%20Intel-555555?logo=apple&logoColor=white&style=flat-square&labelColor=222222"></a> |
| <img src="https://cdn.jsdelivr.net/gh/devicons/devicon/icons/linux/linux-original.svg" alt="Linux" width="28"/> | Linux Kernel 5.4+<br>*(Compatible for Older CPU)* | <a href="https://github.com/appshubcc/Bettbox/releases/download/vVERSION/Bettbox-BASE_VERSION-linux-amd64.AppImage"><img src="https://img.shields.io/badge/AppImage-x64-f84e29?logo=linux&logoColor=white&style=flat-square&labelColor=222222"></a> <a href="https://github.com/appshubcc/Bettbox/releases/download/vVERSION/Bettbox-BASE_VERSION-linux-amd64.deb"><img src="https://img.shields.io/badge/DEB-x64-A81D33?logo=debian&logoColor=white&style=flat-square&labelColor=222222"></a><br><a href="https://github.com/appshubcc/Bettbox/releases/download/vVERSION/Bettbox-BASE_VERSION-linux-arm64.deb"><img src="https://img.shields.io/badge/DEB-ARM64-A81D33?logo=debian&logoColor=white&style=flat-square&labelColor=222222"></a> <a href="https://github.com/appshubcc/Bettbox/releases/download/vVERSION/Bettbox-BASE_VERSION-linux-amd64.rpm"><img src="https://img.shields.io/badge/RPM-x64-CC0000?logo=redhat&logoColor=white&style=flat-square&labelColor=222222"></a><br><a href="https://github.com/appshubcc/Bettbox/releases/download/vVERSION/Bettbox-BASE_VERSION-linux-amd64-compatible.deb"><img src="https://img.shields.io/badge/DEB-Compatible%20x64-555555?logo=debian&logoColor=white&style=flat-square&labelColor=222222"></a> |
---
</div>

### 🐛 Feedback / 问题反馈

> **Note / 提示:**
> Detailed and well-structured issues will be prioritized(logs / reproduction steps)<br>
> 书写认真、信息完整(包含必要的复现步骤和日志)的 issues 会被优先处理和对待

**Bug Report / 提交故障**: [Click Here / 点击这里](https://github.com/appshubcc/Bettbox/issues/new?template=bug_report.yml)
**Feature Request / 需求建议**: [Click Here / 点击这里](https://github.com/appshubcc/Bettbox/issues/new?template=feature_request.yml)

<br>


================================================
FILE: .github/workflows/build.yaml
================================================
name: build

on:
  push:
    tags:
      - 'v*'

env:
  IS_STABLE: ${{ !contains(github.ref, '-') }}
  IS_PRERELEASE: ${{ contains(github.ref_name, 'pre') }}
  SHOULD_RELEASE: ${{ !contains(github.ref, '-') || contains(github.ref_name, 'pre') }}
  GRADLE_OPTS: -Dorg.gradle.vfs.watch=false
  FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
  SENTRY_BACKEND: none
  
jobs:
  build:
    runs-on: ${{ matrix.os }}
    strategy:
      fail-fast: false
      matrix:
        include:
          - platform: android
            os: ubuntu-24.04
            arch: arm64
          - platform: android
            os: ubuntu-24.04
            arch: amd64
          - platform: android
            os: ubuntu-24.04
            arch: arm
          - platform: android
            os: ubuntu-24.04
            arch: universal
          - platform: windows
            os: windows-2022
            arch: amd64
          - platform: windows
            os: windows-11-arm
            arch: arm64
          - platform: macos
            os: macos-15
            arch: arm64
          - platform: macos
            os: macos-15
            arch: amd64
          - platform: linux
            os: ubuntu-22.04
            arch: amd64
          - platform: linux
            os: ubuntu-24.04-arm
            arch: arm64
          - platform: linux
            os: ubuntu-22.04
            arch: amd64
            compatible: true
          - platform: windows
            os: windows-2022
            arch: amd64
            compatible: true
          - platform: macos
            os: macos-15
            arch: amd64
            compatible: true

    steps:
      - name: Checkout
        uses: actions/checkout@v6
        with:
          submodules: recursive
          fetch-depth: 1

      - name: Setup Rust (Windows)
        if: matrix.platform == 'windows'
        uses: dtolnay/rust-toolchain@stable
        with:
          targets: ${{ matrix.arch == 'arm64' && 'aarch64-pc-windows-msvc' || 'x86_64-pc-windows-msvc' }}

      - name: Enable Git long paths (Windows)
        if: matrix.platform == 'windows'
        run: git config --global core.longpaths true

      - name: Setup Keystore (Android)
        if: matrix.platform == 'android'
        run: |
          echo "${{ secrets.KEYSTORE }}" | base64 --decode > android/app/keystore.jks
          echo "keyAlias=${{ secrets.KEY_ALIAS }}" >> android/local.properties
          echo "storePassword=${{ secrets.STORE_PASSWORD }}" >> android/local.properties
          echo "keyPassword=${{ secrets.KEY_PASSWORD }}" >> android/local.properties
          
      - name: Setup Java
        if: matrix.platform == 'android'
        uses: actions/setup-java@v5
        with:
          distribution: temurin
          java-version: '17'
          cache: 'gradle'

      - name: Install Dependencies (Linux)
        if: matrix.platform == 'linux'
        run: |
          sudo apt-get update
          sudo apt-get install -y libcurl4-openssl-dev ninja-build libgtk-3-dev rpm

      - name: Setup Golang
        uses: actions/setup-go@v6
        with:
          go-version: ${{ matrix.compatible == true && '1.20.x' || '1.24.x' }}
          cache-dependency-path: core/go.sum

      - name: Setup Flutter
        uses: subosito/flutter-action@v2
        with:
          channel: ${{ contains(matrix.os, 'arm') && 'master' || 'stable' }}
          cache: true
          cache-key: flutter-${{ matrix.platform }}-${{ matrix.arch }}-${{ hashFiles('**/pubspec.lock') }}
          flutter-version: ${{ contains(matrix.os, 'arm') && '1c6c6f4' || '3.35.7' }}

      - name: Use prebuilt QuickJS bridge (Windows arm64)
        if: matrix.platform == 'windows' && matrix.arch == 'arm64'
        shell: pwsh
        run: |
          $dll = "windows\overrides\flutter_js\arm64\quickjs_c_bridge.dll"
          if (-not (Test-Path $dll)) { throw "Missing prebuilt QuickJS bridge: $dll" }
          Get-Item $dll | Select-Object FullName, Length, LastWriteTime

      - name: Clean Gradle (Android)
        if: matrix.platform == 'android'
        run: |
          cd android
          flutter clean

      - name: Build Bettbox
        env:
          SENTRY_DSN: ${{ secrets.SENTRY_DSN }}
        run: |
          flutter pub get
          dart run build_runner build -d
          dart setup.dart ${{ matrix.platform }} --arch ${{ matrix.arch }} ${{ env.IS_STABLE == 'true' && '--env stable' || '' }} ${{ matrix.compatible == true && '--compatible' || '' }}
      
      - name: Upload Artifacts
        uses: actions/upload-artifact@v6
        with:
          name: Bettbox-${{ matrix.platform }}-${{ matrix.arch }}${{ matrix.compatible == true && '-compatible' || '' }}
          path: ./dist
          compression-level: 9
          overwrite: true

  upload:
    permissions: write-all
    needs: [ build ]
    runs-on: ubuntu-latest
    steps:
      - name: Checkout
        uses: actions/checkout@v6
        with:
          fetch-depth: 0

      - name: Download
        uses: actions/download-artifact@v7
        with:
          path: ./dist/
          pattern: Bettbox-*
          merge-multiple: true

      - name: Generate release.md
        run: |
          echo -e "- Fixes and improvements\n- 具体变更参考最新Commits\n- 注意: 部分小米&Android16+机型在更新APP前,需提前关闭VPN以防止系统问题造成的网络锁死" > release.md

      - name: Patch release.md
        run: |
          version=$(echo "${{ github.ref_name }}" | sed 's/^v//')
          base_version=$(echo "$version" | sed 's/-pre[0-9]*//')
          if [ "${{ env.IS_PRERELEASE }}" == "true" ]; then
            sed -e "s|BASE_VERSION|$base_version|g" -e "s|VERSION|$version|g" ./.github/release_template_pre.md >> release.md
          else
            sed -e "s|BASE_VERSION|$base_version|g" -e "s|VERSION|$version|g" ./.github/release_template.md >> release.md
          fi

      - name: Release
        if: ${{ env.SHOULD_RELEASE == 'true' }}
        uses: softprops/action-gh-release@v3.0.0
        with:
          files: ./dist/*
          body_path: './release.md'
          prerelease: ${{ env.IS_PRERELEASE == 'true' }}

================================================
FILE: .gitignore
================================================
# Miscellaneous
*.md
!.github/release_template.md
!.github/release_template_pre.md
*.class
*.log
*.pyc
*.swp
.DS_Store
.atom/
.build/
.buildlog/
.history
.svn/
.swiftpm/
migrate_working_dir/

# IntelliJ related
*.iml
*.ipr
*.iws
.idea/

# The .vscode folder contains launch configuration and tasks you configure in
# VS Code which you may wish to be included in version control, so this line
# is commented out by default.
#.vscode/

# Flutter/Dart/Pub related
**/doc/api/
**/ios/Flutter/.last_build_id
.dart_tool/
.flutter-plugins
.flutter-plugins-dependencies
.packages
.pub-cache/
.pub/
/build/
/specs/
/dist/
.test/
.vscode/
/services/helper/target/

# Symbolication related
app.*.symbols

# Obfuscation related
app.*.map.json

# Android Studio will place build artifacts here
/android/app/debug
/android/app/profile
/android/app/release

/android/core/.cxx

#libclash
/libclash/

#jniLibs
/android/app/src/main/jniLibs/

# FVM Version Cache
.fvm/
.fvmrc

================================================
FILE: .metadata
================================================
# This file tracks properties of this Flutter project.
# Used by Flutter tool to assess capabilities and perform upgrades etc.
#
# This file should be version controlled.

version:
  revision: 796c8ef79279f9c774545b3771238c3098dbefab
  channel: stable

project_type: app

# Tracks metadata for the flutter migrate command
migration:
  platforms:
    - platform: root
      create_revision: 796c8ef79279f9c774545b3771238c3098dbefab
      base_revision: 796c8ef79279f9c774545b3771238c3098dbefab
    - platform: android
      create_revision: 796c8ef79279f9c774545b3771238c3098dbefab
      base_revision: 796c8ef79279f9c774545b3771238c3098dbefab
    - platform: ios
      create_revision: 796c8ef79279f9c774545b3771238c3098dbefab
      base_revision: 796c8ef79279f9c774545b3771238c3098dbefab
    - platform: linux
      create_revision: 796c8ef79279f9c774545b3771238c3098dbefab
      base_revision: 796c8ef79279f9c774545b3771238c3098dbefab
    - platform: macos
      create_revision: 796c8ef79279f9c774545b3771238c3098dbefab
      base_revision: 796c8ef79279f9c774545b3771238c3098dbefab
    - platform: web
      create_revision: 796c8ef79279f9c774545b3771238c3098dbefab
      base_revision: 796c8ef79279f9c774545b3771238c3098dbefab
    - platform: windows
      create_revision: 796c8ef79279f9c774545b3771238c3098dbefab
      base_revision: 796c8ef79279f9c774545b3771238c3098dbefab

  # User provided section

  # List of Local paths (relative to this file) that should be
  # ignored by the migrate tool.
  #
  # Files that are not part of the templates will be ignored by default.
  unmanaged_files:
    - 'lib/main.dart'
    - 'ios/Runner.xcodeproj/project.pbxproj'


================================================
FILE: LICENSE
================================================
                    GNU GENERAL PUBLIC LICENSE
                       Version 3, 29 June 2007

 Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
 Everyone is permitted to copy and distribute verbatim copies
 of this license document, but changing it is not allowed.

                            Preamble

  The GNU General Public License is a free, copyleft license for
software and other kinds of works.

  The licenses for most software and other practical works are designed
to take away your freedom to share and change the works.  By contrast,
the GNU General Public License is intended to guarantee your freedom to
share and change all versions of a program--to make sure it remains free
software for all its users.  We, the Free Software Foundation, use the
GNU General Public License for most of our software; it applies also to
any other work released this way by its authors.  You can apply it to
your programs, too.

  When we speak of free software, we are referring to freedom, not
price.  Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
them if you wish), that you receive source code or can get it if you
want it, that you can change the software or use pieces of it in new
free programs, and that you know you can do these things.

  To protect your rights, we need to prevent others from denying you
these rights or asking you to surrender the rights.  Therefore, you have
certain responsibilities if you distribute copies of the software, or if
you modify it: responsibilities to respect the freedom of others.

  For example, if you distribute copies of such a program, whether
gratis or for a fee, you must pass on to the recipients the same
freedoms that you received.  You must make sure that they, too, receive
or can get the source code.  And you must show them these terms so they
know their rights.

  Developers that use the GNU GPL protect your rights with two steps:
(1) assert copyright on the software, and (2) offer you this License
giving you legal permission to copy, distribute and/or modify it.

  For the developers' and authors' protection, the GPL clearly explains
that there is no warranty for this free software.  For both users' and
authors' sake, the GPL requires that modified versions be marked as
changed, so that their problems will not be attributed erroneously to
authors of previous versions.

  Some devices are designed to deny users access to install or run
modified versions of the software inside them, although the manufacturer
can do so.  This is fundamentally incompatible with the aim of
protecting users' freedom to change the software.  The systematic
pattern of such abuse occurs in the area of products for individuals to
use, which is precisely where it is most unacceptable.  Therefore, we
have designed this version of the GPL to prohibit the practice for those
products.  If such problems arise substantially in other domains, we
stand ready to extend this provision to those domains in future versions
of the GPL, as needed to protect the freedom of users.

  Finally, every program is threatened constantly by software patents.
States should not allow patents to restrict development and use of
software on general-purpose computers, but in those that do, we wish to
avoid the special danger that patents applied to a free program could
make it effectively proprietary.  To prevent this, the GPL assures that
patents cannot be used to render the program non-free.

  The precise terms and conditions for copying, distribution and
modification follow.

                       TERMS AND CONDITIONS

  0. Definitions.

  "This License" refers to version 3 of the GNU General Public License.

  "Copyright" also means copyright-like laws that apply to other kinds of
works, such as semiconductor masks.

  "The Program" refers to any copyrightable work licensed under this
License.  Each licensee is addressed as "you".  "Licensees" and
"recipients" may be individuals or organizations.

  To "modify" a work means to copy from or adapt all or part of the work
in a fashion requiring copyright permission, other than the making of an
exact copy.  The resulting work is called a "modified version" of the
earlier work or a work "based on" the earlier work.

  A "covered work" means either the unmodified Program or a work based
on the Program.

  To "propagate" a work means to do anything with it that, without
permission, would make you directly or secondarily liable for
infringement under applicable copyright law, except executing it on a
computer or modifying a private copy.  Propagation includes copying,
distribution (with or without modification), making available to the
public, and in some countries other activities as well.

  To "convey" a work means any kind of propagation that enables other
parties to make or receive copies.  Mere interaction with a user through
a computer network, with no transfer of a copy, is not conveying.

  An interactive user interface displays "Appropriate Legal Notices"
to the extent that it includes a convenient and prominently visible
feature that (1) displays an appropriate copyright notice, and (2)
tells the user that there is no warranty for the work (except to the
extent that warranties are provided), that licensees may convey the
work under this License, and how to view a copy of this License.  If
the interface presents a list of user commands or options, such as a
menu, a prominent item in the list meets this criterion.

  1. Source Code.

  The "source code" for a work means the preferred form of the work
for making modifications to it.  "Object code" means any non-source
form of a work.

  A "Standard Interface" means an interface that either is an official
standard defined by a recognized standards body, or, in the case of
interfaces specified for a particular programming language, one that
is widely used among developers working in that language.

  The "System Libraries" of an executable work include anything, other
than the work as a whole, that (a) is included in the normal form of
packaging a Major Component, but which is not part of that Major
Component, and (b) serves only to enable use of the work with that
Major Component, or to implement a Standard Interface for which an
implementation is available to the public in source code form.  A
"Major Component", in this context, means a major essential component
(kernel, window system, and so on) of the specific operating system
(if any) on which the executable work runs, or a compiler used to
produce the work, or an object code interpreter used to run it.

  The "Corresponding Source" for a work in object code form means all
the source code needed to generate, install, and (for an executable
work) run the object code and to modify the work, including scripts to
control those activities.  However, it does not include the work's
System Libraries, or general-purpose tools or generally available free
programs which are used unmodified in performing those activities but
which are not part of the work.  For example, Corresponding Source
includes interface definition files associated with source files for
the work, and the source code for shared libraries and dynamically
linked subprograms that the work is specifically designed to require,
such as by intimate data communication or control flow between those
subprograms and other parts of the work.

  The Corresponding Source need not include anything that users
can regenerate automatically from other parts of the Corresponding
Source.

  The Corresponding Source for a work in source code form is that
same work.

  2. Basic Permissions.

  All rights granted under this License are granted for the term of
copyright on the Program, and are irrevocable provided the stated
conditions are met.  This License explicitly affirms your unlimited
permission to run the unmodified Program.  The output from running a
covered work is covered by this License only if the output, given its
content, constitutes a covered work.  This License acknowledges your
rights of fair use or other equivalent, as provided by copyright law.

  You may make, run and propagate covered works that you do not
convey, without conditions so long as your license otherwise remains
in force.  You may convey covered works to others for the sole purpose
of having them make modifications exclusively for you, or provide you
with facilities for running those works, provided that you comply with
the terms of this License in conveying all material for which you do
not control copyright.  Those thus making or running the covered works
for you must do so exclusively on your behalf, under your direction
and control, on terms that prohibit them from making any copies of
your copyrighted material outside their relationship with you.

  Conveying under any other circumstances is permitted solely under
the conditions stated below.  Sublicensing is not allowed; section 10
makes it unnecessary.

  3. Protecting Users' Legal Rights From Anti-Circumvention Law.

  No covered work shall be deemed part of an effective technological
measure under any applicable law fulfilling obligations under article
11 of the WIPO copyright treaty adopted on 20 December 1996, or
similar laws prohibiting or restricting circumvention of such
measures.

  When you convey a covered work, you waive any legal power to forbid
circumvention of technological measures to the extent such circumvention
is effected by exercising rights under this License with respect to
the covered work, and you disclaim any intention to limit operation or
modification of the work as a means of enforcing, against the work's
users, your or third parties' legal rights to forbid circumvention of
technological measures.

  4. Conveying Verbatim Copies.

  You may convey verbatim copies of the Program's source code as you
receive it, in any medium, provided that you conspicuously and
appropriately publish on each copy an appropriate copyright notice;
keep intact all notices stating that this License and any
non-permissive terms added in accord with section 7 apply to the code;
keep intact all notices of the absence of any warranty; and give all
recipients a copy of this License along with the Program.

  You may charge any price or no price for each copy that you convey,
and you may offer support or warranty protection for a fee.

  5. Conveying Modified Source Versions.

  You may convey a work based on the Program, or the modifications to
produce it from the Program, in the form of source code under the
terms of section 4, provided that you also meet all of these conditions:

    a) The work must carry prominent notices stating that you modified
    it, and giving a relevant date.

    b) The work must carry prominent notices stating that it is
    released under this License and any conditions added under section
    7.  This requirement modifies the requirement in section 4 to
    "keep intact all notices".

    c) You must license the entire work, as a whole, under this
    License to anyone who comes into possession of a copy.  This
    License will therefore apply, along with any applicable section 7
    additional terms, to the whole of the work, and all its parts,
    regardless of how they are packaged.  This License gives no
    permission to license the work in any other way, but it does not
    invalidate such permission if you have separately received it.

    d) If the work has interactive user interfaces, each must display
    Appropriate Legal Notices; however, if the Program has interactive
    interfaces that do not display Appropriate Legal Notices, your
    work need not make them do so.

  A compilation of a covered work with other separate and independent
works, which are not by their nature extensions of the covered work,
and which are not combined with it such as to form a larger program,
in or on a volume of a storage or distribution medium, is called an
"aggregate" if the compilation and its resulting copyright are not
used to limit the access or legal rights of the compilation's users
beyond what the individual works permit.  Inclusion of a covered work
in an aggregate does not cause this License to apply to the other
parts of the aggregate.

  6. Conveying Non-Source Forms.

  You may convey a covered work in object code form under the terms
of sections 4 and 5, provided that you also convey the
machine-readable Corresponding Source under the terms of this License,
in one of these ways:

    a) Convey the object code in, or embodied in, a physical product
    (including a physical distribution medium), accompanied by the
    Corresponding Source fixed on a durable physical medium
    customarily used for software interchange.

    b) Convey the object code in, or embodied in, a physical product
    (including a physical distribution medium), accompanied by a
    written offer, valid for at least three years and valid for as
    long as you offer spare parts or customer support for that product
    model, to give anyone who possesses the object code either (1) a
    copy of the Corresponding Source for all the software in the
    product that is covered by this License, on a durable physical
    medium customarily used for software interchange, for a price no
    more than your reasonable cost of physically performing this
    conveying of source, or (2) access to copy the
    Corresponding Source from a network server at no charge.

    c) Convey individual copies of the object code with a copy of the
    written offer to provide the Corresponding Source.  This
    alternative is allowed only occasionally and noncommercially, and
    only if you received the object code with such an offer, in accord
    with subsection 6b.

    d) Convey the object code by offering access from a designated
    place (gratis or for a charge), and offer equivalent access to the
    Corresponding Source in the same way through the same place at no
    further charge.  You need not require recipients to copy the
    Corresponding Source along with the object code.  If the place to
    copy the object code is a network server, the Corresponding Source
    may be on a different server (operated by you or a third party)
    that supports equivalent copying facilities, provided you maintain
    clear directions next to the object code saying where to find the
    Corresponding Source.  Regardless of what server hosts the
    Corresponding Source, you remain obligated to ensure that it is
    available for as long as needed to satisfy these requirements.

    e) Convey the object code using peer-to-peer transmission, provided
    you inform other peers where the object code and Corresponding
    Source of the work are being offered to the general public at no
    charge under subsection 6d.

  A separable portion of the object code, whose source code is excluded
from the Corresponding Source as a System Library, need not be
included in conveying the object code work.

  A "User Product" is either (1) a "consumer product", which means any
tangible personal property which is normally used for personal, family,
or household purposes, or (2) anything designed or sold for incorporation
into a dwelling.  In determining whether a product is a consumer product,
doubtful cases shall be resolved in favor of coverage.  For a particular
product received by a particular user, "normally used" refers to a
typical or common use of that class of product, regardless of the status
of the particular user or of the way in which the particular user
actually uses, or expects or is expected to use, the product.  A product
is a consumer product regardless of whether the product has substantial
commercial, industrial or non-consumer uses, unless such uses represent
the only significant mode of use of the product.

  "Installation Information" for a User Product means any methods,
procedures, authorization keys, or other information required to install
and execute modified versions of a covered work in that User Product from
a modified version of its Corresponding Source.  The information must
suffice to ensure that the continued functioning of the modified object
code is in no case prevented or interfered with solely because
modification has been made.

  If you convey an object code work under this section in, or with, or
specifically for use in, a User Product, and the conveying occurs as
part of a transaction in which the right of possession and use of the
User Product is transferred to the recipient in perpetuity or for a
fixed term (regardless of how the transaction is characterized), the
Corresponding Source conveyed under this section must be accompanied
by the Installation Information.  But this requirement does not apply
if neither you nor any third party retains the ability to install
modified object code on the User Product (for example, the work has
been installed in ROM).

  The requirement to provide Installation Information does not include a
requirement to continue to provide support service, warranty, or updates
for a work that has been modified or installed by the recipient, or for
the User Product in which it has been modified or installed.  Access to a
network may be denied when the modification itself materially and
adversely affects the operation of the network or violates the rules and
protocols for communication across the network.

  Corresponding Source conveyed, and Installation Information provided,
in accord with this section must be in a format that is publicly
documented (and with an implementation available to the public in
source code form), and must require no special password or key for
unpacking, reading or copying.

  7. Additional Terms.

  "Additional permissions" are terms that supplement the terms of this
License by making exceptions from one or more of its conditions.
Additional permissions that are applicable to the entire Program shall
be treated as though they were included in this License, to the extent
that they are valid under applicable law.  If additional permissions
apply only to part of the Program, that part may be used separately
under those permissions, but the entire Program remains governed by
this License without regard to the additional permissions.

  When you convey a copy of a covered work, you may at your option
remove any additional permissions from that copy, or from any part of
it.  (Additional permissions may be written to require their own
removal in certain cases when you modify the work.)  You may place
additional permissions on material, added by you to a covered work,
for which you have or can give appropriate copyright permission.

  Notwithstanding any other provision of this License, for material you
add to a covered work, you may (if authorized by the copyright holders of
that material) supplement the terms of this License with terms:

    a) Disclaiming warranty or limiting liability differently from the
    terms of sections 15 and 16 of this License; or

    b) Requiring preservation of specified reasonable legal notices or
    author attributions in that material or in the Appropriate Legal
    Notices displayed by works containing it; or

    c) Prohibiting misrepresentation of the origin of that material, or
    requiring that modified versions of such material be marked in
    reasonable ways as different from the original version; or

    d) Limiting the use for publicity purposes of names of licensors or
    authors of the material; or

    e) Declining to grant rights under trademark law for use of some
    trade names, trademarks, or service marks; or

    f) Requiring indemnification of licensors and authors of that
    material by anyone who conveys the material (or modified versions of
    it) with contractual assumptions of liability to the recipient, for
    any liability that these contractual assumptions directly impose on
    those licensors and authors.

  All other non-permissive additional terms are considered "further
restrictions" within the meaning of section 10.  If the Program as you
received it, or any part of it, contains a notice stating that it is
governed by this License along with a term that is a further
restriction, you may remove that term.  If a license document contains
a further restriction but permits relicensing or conveying under this
License, you may add to a covered work material governed by the terms
of that license document, provided that the further restriction does
not survive such relicensing or conveying.

  If you add terms to a covered work in accord with this section, you
must place, in the relevant source files, a statement of the
additional terms that apply to those files, or a notice indicating
where to find the applicable terms.

  Additional terms, permissive or non-permissive, may be stated in the
form of a separately written license, or stated as exceptions;
the above requirements apply either way.

  8. Termination.

  You may not propagate or modify a covered work except as expressly
provided under this License.  Any attempt otherwise to propagate or
modify it is void, and will automatically terminate your rights under
this License (including any patent licenses granted under the third
paragraph of section 11).

  However, if you cease all violation of this License, then your
license from a particular copyright holder is reinstated (a)
provisionally, unless and until the copyright holder explicitly and
finally terminates your license, and (b) permanently, if the copyright
holder fails to notify you of the violation by some reasonable means
prior to 60 days after the cessation.

  Moreover, your license from a particular copyright holder is
reinstated permanently if the copyright holder notifies you of the
violation by some reasonable means, this is the first time you have
received notice of violation of this License (for any work) from that
copyright holder, and you cure the violation prior to 30 days after
your receipt of the notice.

  Termination of your rights under this section does not terminate the
licenses of parties who have received copies or rights from you under
this License.  If your rights have been terminated and not permanently
reinstated, you do not qualify to receive new licenses for the same
material under section 10.

  9. Acceptance Not Required for Having Copies.

  You are not required to accept this License in order to receive or
run a copy of the Program.  Ancillary propagation of a covered work
occurring solely as a consequence of using peer-to-peer transmission
to receive a copy likewise does not require acceptance.  However,
nothing other than this License grants you permission to propagate or
modify any covered work.  These actions infringe copyright if you do
not accept this License.  Therefore, by modifying or propagating a
covered work, you indicate your acceptance of this License to do so.

  10. Automatic Licensing of Downstream Recipients.

  Each time you convey a covered work, the recipient automatically
receives a license from the original licensors, to run, modify and
propagate that work, subject to this License.  You are not responsible
for enforcing compliance by third parties with this License.

  An "entity transaction" is a transaction transferring control of an
organization, or substantially all assets of one, or subdividing an
organization, or merging organizations.  If propagation of a covered
work results from an entity transaction, each party to that
transaction who receives a copy of the work also receives whatever
licenses to the work the party's predecessor in interest had or could
give under the previous paragraph, plus a right to possession of the
Corresponding Source of the work from the predecessor in interest, if
the predecessor has it or can get it with reasonable efforts.

  You may not impose any further restrictions on the exercise of the
rights granted or affirmed under this License.  For example, you may
not impose a license fee, royalty, or other charge for exercise of
rights granted under this License, and you may not initiate litigation
(including a cross-claim or counterclaim in a lawsuit) alleging that
any patent claim is infringed by making, using, selling, offering for
sale, or importing the Program or any portion of it.

  11. Patents.

  A "contributor" is a copyright holder who authorizes use under this
License of the Program or a work on which the Program is based.  The
work thus licensed is called the contributor's "contributor version".

  A contributor's "essential patent claims" are all patent claims
owned or controlled by the contributor, whether already acquired or
hereafter acquired, that would be infringed by some manner, permitted
by this License, of making, using, or selling its contributor version,
but do not include claims that would be infringed only as a
consequence of further modification of the contributor version.  For
purposes of this definition, "control" includes the right to grant
patent sublicenses in a manner consistent with the requirements of
this License.

  Each contributor grants you a non-exclusive, worldwide, royalty-free
patent license under the contributor's essential patent claims, to
make, use, sell, offer for sale, import and otherwise run, modify and
propagate the contents of its contributor version.

  In the following three paragraphs, a "patent license" is any express
agreement or commitment, however denominated, not to enforce a patent
(such as an express permission to practice a patent or covenant not to
sue for patent infringement).  To "grant" such a patent license to a
party means to make such an agreement or commitment not to enforce a
patent against the party.

  If you convey a covered work, knowingly relying on a patent license,
and the Corresponding Source of the work is not available for anyone
to copy, free of charge and under the terms of this License, through a
publicly available network server or other readily accessible means,
then you must either (1) cause the Corresponding Source to be so
available, or (2) arrange to deprive yourself of the benefit of the
patent license for this particular work, or (3) arrange, in a manner
consistent with the requirements of this License, to extend the patent
license to downstream recipients.  "Knowingly relying" means you have
actual knowledge that, but for the patent license, your conveying the
covered work in a country, or your recipient's use of the covered work
in a country, would infringe one or more identifiable patents in that
country that you have reason to believe are valid.

  If, pursuant to or in connection with a single transaction or
arrangement, you convey, or propagate by procuring conveyance of, a
covered work, and grant a patent license to some of the parties
receiving the covered work authorizing them to use, propagate, modify
or convey a specific copy of the covered work, then the patent license
you grant is automatically extended to all recipients of the covered
work and works based on it.

  A patent license is "discriminatory" if it does not include within
the scope of its coverage, prohibits the exercise of, or is
conditioned on the non-exercise of one or more of the rights that are
specifically granted under this License.  You may not convey a covered
work if you are a party to an arrangement with a third party that is
in the business of distributing software, under which you make payment
to the third party based on the extent of your activity of conveying
the work, and under which the third party grants, to any of the
parties who would receive the covered work from you, a discriminatory
patent license (a) in connection with copies of the covered work
conveyed by you (or copies made from those copies), or (b) primarily
for and in connection with specific products or compilations that
contain the covered work, unless you entered into that arrangement,
or that patent license was granted, prior to 28 March 2007.

  Nothing in this License shall be construed as excluding or limiting
any implied license or other defenses to infringement that may
otherwise be available to you under applicable patent law.

  12. No Surrender of Others' Freedom.

  If conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License.  If you cannot convey a
covered work so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you may
not convey it at all.  For example, if you agree to terms that obligate you
to collect a royalty for further conveying from those to whom you convey
the Program, the only way you could satisfy both those terms and this
License would be to refrain entirely from conveying the Program.

  13. Use with the GNU Affero General Public License.

  Notwithstanding any other provision of this License, you have
permission to link or combine any covered work with a work licensed
under version 3 of the GNU Affero General Public License into a single
combined work, and to convey the resulting work.  The terms of this
License will continue to apply to the part which is the covered work,
but the special requirements of the GNU Affero General Public License,
section 13, concerning interaction through a network will apply to the
combination as such.

  14. Revised Versions of this License.

  The Free Software Foundation may publish revised and/or new versions of
the GNU General Public License from time to time.  Such new versions will
be similar in spirit to the present version, but may differ in detail to
address new problems or concerns.

  Each version is given a distinguishing version number.  If the
Program specifies that a certain numbered version of the GNU General
Public License "or any later version" applies to it, you have the
option of following the terms and conditions either of that numbered
version or of any later version published by the Free Software
Foundation.  If the Program does not specify a version number of the
GNU General Public License, you may choose any version ever published
by the Free Software Foundation.

  If the Program specifies that a proxy can decide which future
versions of the GNU General Public License can be used, that proxy's
public statement of acceptance of a version permanently authorizes you
to choose that version for the Program.

  Later license versions may give you additional or different
permissions.  However, no additional obligations are imposed on any
author or copyright holder as a result of your choosing to follow a
later version.

  15. Disclaimer of Warranty.

  THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
APPLICABLE LAW.  EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE.  THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
IS WITH YOU.  SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.

  16. Limitation of Liability.

  IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
SUCH DAMAGES.

  17. Interpretation of Sections 15 and 16.

  If the disclaimer of warranty and limitation of liability provided
above cannot be given local legal effect according to their terms,
reviewing courts shall apply local law that most closely approximates
an absolute waiver of all civil liability in connection with the
Program, unless a warranty or assumption of liability accompanies a
copy of the Program in return for a fee.

                     END OF TERMS AND CONDITIONS

            How to Apply These Terms to Your New Programs

  If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it
free software which everyone can redistribute and change under these terms.

  To do so, attach the following notices to the program.  It is safest
to attach them to the start of each source file to most effectively
state the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.

    <one line to give the program's name and a brief idea of what it does.>
    Copyright (C) <year>  <name of author>

    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <https://www.gnu.org/licenses/>.

Also add information on how to contact you by electronic and paper mail.

  If the program does terminal interaction, make it output a short
notice like this when it starts in an interactive mode:

    <program>  Copyright (C) <year>  <name of author>
    This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
    This is free software, and you are welcome to redistribute it
    under certain conditions; type `show c' for details.

The hypothetical commands `show w' and `show c' should show the appropriate
parts of the General Public License.  Of course, your program's commands
might be different; for a GUI interface, you would use an "about box".

  You should also get your employer (if you work as a programmer) or school,
if any, to sign a "copyright disclaimer" for the program, if necessary.
For more information on this, and how to apply and follow the GNU GPL, see
<https://www.gnu.org/licenses/>.

  The GNU General Public License does not permit incorporating your program
into proprietary programs.  If your program is a subroutine library, you
may consider it more useful to permit linking proprietary applications with
the library.  If this is what you want to do, use the GNU Lesser General
Public License instead of this License.  But first, please read
<https://www.gnu.org/licenses/why-not-lgpl.html>.


================================================
FILE: Makefile
================================================
android_arm64:
	dart ./setup.dart android --arch arm64
macos_arm64:
	dart ./setup.dart macos --arch arm64
android_app:
	dart ./setup.dart android
android_arm64_core:
	dart ./setup.dart android --arch arm64 --out core
macos_arm64_core:
	dart ./setup.dart macos --arch arm64  --out core

================================================
FILE: analysis_options.yaml
================================================
include: package:flutter_lints/flutter.yaml
analyzer:
  exclude:
    - lib/l10n/intl/**
    - lib/clash/generated/**
    - lib/**/generated/**
    - "**/*.g.dart"
    - "**/*.freezed.dart"
    - "plugins/**"

linter:
  rules:
    prefer_single_quotes: true

================================================
FILE: android/.gitignore
================================================
gradle-wrapper.jar
/.gradle
/gradle/
/captures/
/gradlew
/gradlew.bat
/local.properties
GeneratedPluginRegistrant.java

# Remember to never publicly share your keystore.
# See https://flutter.dev/docs/deployment/android#reference-the-keystore-from-the-app
key.properties
**/*.keystore
**/*.jks


================================================
FILE: android/app/build.gradle.kts
================================================
import java.util.Properties

plugins {
    id("com.android.application")
    id("kotlin-android")
    id("dev.flutter.flutter-gradle-plugin")
}

val localProperties = Properties().apply {
    rootProject.file("local.properties").takeIf { it.exists() }?.inputStream()?.use { load(it) }
}

val mStoreFile = file("keystore.jks")
val mStorePassword: String? = localProperties.getProperty("storePassword")
val mKeyAlias: String? = localProperties.getProperty("keyAlias")
val mKeyPassword: String? = localProperties.getProperty("keyPassword")
val isRelease = mStoreFile.exists() && mStorePassword != null && mKeyAlias != null && mKeyPassword != null

android {
    namespace = "com.appshub.bettbox"
    compileSdk = 36
    ndkVersion = "28.2.13676358"

    compileOptions {
        sourceCompatibility = JavaVersion.VERSION_17
        targetCompatibility = JavaVersion.VERSION_17
    }

    kotlinOptions {
        jvmTarget = JavaVersion.VERSION_17.toString()
    }

    defaultConfig {
        applicationId = "com.appshub.bettbox"
        minSdk = 26
        targetSdk = 36
        versionCode = flutter.versionCode
        versionName = flutter.versionName
    }

    signingConfigs {
        if (isRelease) {
            create("release") {
                storeFile = mStoreFile
                storePassword = mStorePassword
                keyAlias = mKeyAlias
                keyPassword = mKeyPassword
            }
        }
    }

    buildTypes {
        debug {
            isMinifyEnabled = false
            applicationIdSuffix = ".debug"
        }
        release {
            isMinifyEnabled = true
            isDebuggable = false
            signingConfig = signingConfigs.getByName(if (isRelease) "release" else "debug")
            proguardFiles(getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro")
        }
    }

    packaging {
        jniLibs {
            useLegacyPackaging = true
        }
    }
}

flutter {
    source = "../.."
}

dependencies {
    implementation(project(":core"))
    implementation("com.google.code.gson:gson:2.10.1")
    implementation("com.android.tools.smali:smali-dexlib2:3.0.9") {
        exclude(group = "com.google.guava", module = "guava")
    }
}

configurations.all {
    resolutionStrategy {
        eachDependency {
            if (requested.group == "androidx.datastore") useVersion("1.1.2")
        }
    }
}


================================================
FILE: android/app/proguard-rules.pro
================================================

-keep class com.appshub.bettbox.models.**{ *; }

================================================
FILE: android/app/src/debug/AndroidManifest.xml
================================================
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools">
    <!-- The INTERNET permission is required for development. Specifically,
         the Flutter tool needs it to communicate with the running application
         to allow setting breakpoints, to provide hot reload, etc.
    -->
    <application
        android:icon="@mipmap/ic_launcher"
        android:label="Bettbox Debug"
        tools:replace="android:label">
        <service
            android:name=".services.BettboxTileService"
            android:label="Bettbox Debug"
            tools:replace="android:label"
            tools:targetApi="24" />
    </application>
</manifest>


================================================
FILE: android/app/src/main/AndroidManifest.xml
================================================
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools">

    <uses-feature
        android:name="android.hardware.touchscreen"
        android:required="false" />
    <uses-feature
        android:name="android.hardware.camera"
        android:required="false" />
    <uses-feature
        android:name="android.software.leanback"
        android:required="false" />

    <uses-permission android:name="android.permission.INTERNET" />
    <uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
    <uses-permission android:name="android.permission.FOREGROUND_SERVICE_SPECIAL_USE" />
    <uses-permission android:name="android.permission.POST_NOTIFICATIONS" />
    <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
    <uses-permission android:name="android.permission.REQUEST_IGNORE_BATTERY_OPTIMIZATIONS" />
    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />

    <uses-permission
        android:name="android.permission.QUERY_ALL_PACKAGES"
        tools:ignore="QueryAllPackagesPermission" />

    <application
        android:name=".BettboxApplication"
        android:hardwareAccelerated="true"
        android:icon="@mipmap/ic_launcher"
        android:label="Bettbox"
        android:banner="@drawable/tv_banner"
        android:enableOnBackInvokedCallback="true">
        <activity
            android:name="com.appshub.bettbox.MainActivity"
            android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"
            android:exported="true"
            android:hardwareAccelerated="true"
            android:launchMode="singleTop"
            android:theme="@style/LaunchTheme"
            android:windowSoftInputMode="adjustResize">
            <!-- Specifies an Android theme to apply to this Activity as soon as
                 the Android process has started. This theme is visible to the user
                 while the Flutter UI initializes. After that, this theme continues
                 to determine the Window background behind the Flutter UI. -->
            <meta-data
                android:name="io.flutter.embedding.android.NormalTheme"
                android:resource="@style/NormalTheme" />

            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
                <category android:name="android.intent.category.LEANBACK_LAUNCHER" />
            </intent-filter>
            <intent-filter>
                <action android:name="android.service.quicksettings.action.QS_TILE_PREFERENCES" />
            </intent-filter>
            <intent-filter>
                <action android:name="android.intent.action.VIEW" />

                <category android:name="android.intent.category.DEFAULT" />
                <category android:name="android.intent.category.BROWSABLE" />

                <data android:scheme="clash" android:host="install-config" />
                <data android:scheme="clashmeta" android:host="install-config" />
                <data android:scheme="bettbox" android:host="install-config" />
            </intent-filter>
        </activity>

        <!-- Light icon alias -->
        <activity-alias
            android:name="com.appshub.bettbox.MainActivityLight"
            android:enabled="false"
            android:exported="true"
            android:icon="@mipmap/ic_launcher_light"
            android:roundIcon="@mipmap/ic_launcher_round_light"
            android:targetActivity="com.appshub.bettbox.MainActivity">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
                <category android:name="android.intent.category.LEANBACK_LAUNCHER" />
            </intent-filter>
            <!-- Tile long-press intent -->
            <intent-filter>
                <action android:name="android.service.quicksettings.action.QS_TILE_PREFERENCES" />
            </intent-filter>
        </activity-alias>

        <activity
            android:name=".TempActivity"
            android:exported="true"
            android:theme="@style/TransparentTheme">
            <intent-filter>
                <category android:name="android.intent.category.DEFAULT" />
                <action android:name="${applicationId}.action.START" />
                <action android:name="${applicationId}.action.STOP" />
                <action android:name="${applicationId}.action.CHANGE" />
            </intent-filter>
        </activity>

        <service
            android:name=".services.BettboxTileService"
            android:exported="true"
            android:icon="@drawable/ic_tile"
            android:label="Bettbox"
            android:permission="android.permission.BIND_QUICK_SETTINGS_TILE"
            tools:targetApi="n">
            <intent-filter>
                <action android:name="android.service.quicksettings.action.QS_TILE" />
            </intent-filter>
            <meta-data
                android:name="android.service.quicksettings.TOGGLEABLE_TILE"
                android:value="true" />
        </service>

        <provider
            android:name=".FilesProvider"
            android:authorities="${applicationId}.files"
            android:exported="true"
            android:grantUriPermissions="true"
            android:permission="android.permission.MANAGE_DOCUMENTS"
            android:process=":background">
            <intent-filter>
                <action android:name="android.content.action.DOCUMENTS_PROVIDER" />
            </intent-filter>
        </provider>

        <provider
            android:name="androidx.core.content.FileProvider"
            android:authorities="${applicationId}.fileProvider"
            android:exported="false"
            android:grantUriPermissions="true">
            <meta-data
                android:name="android.support.FILE_PROVIDER_PATHS"
                android:resource="@xml/file_paths" />
        </provider>

        <service
            android:name=".services.BettboxVpnService"
            android:exported="false"
            android:foregroundServiceType="specialUse"
            android:permission="android.permission.BIND_VPN_SERVICE">
            <intent-filter>
                <action android:name="android.net.VpnService" />
            </intent-filter>
            <meta-data android:name="android.net.VpnService.SUPPORTS_ALWAYS_ON" android:value="true" />
            <property android:name="android.app.PROPERTY_SPECIAL_USE_FGS_SUBTYPE" android:value="VPN" />
        </service>

        <service
            android:name=".services.BettboxService"
            android:exported="false"
            android:foregroundServiceType="specialUse">
            <property android:name="android.app.PROPERTY_SPECIAL_USE_FGS_SUBTYPE" android:value="Proxy" />
        </service>

        <receiver
            android:name=".receivers.BootReceiver"
            android:exported="true">
            <intent-filter>
                <action android:name="android.intent.action.BOOT_COMPLETED" />
            </intent-filter>
        </receiver>
        
        <receiver
            android:name=".receivers.PackageReplacedReceiver"
            android:exported="true">
            <intent-filter>
                <action android:name="android.intent.action.MY_PACKAGE_REPLACED" />
            </intent-filter>
        </receiver>

        <meta-data
            android:name="flutterEmbedding"
            android:value="2" />
    </application>
</manifest>


================================================
FILE: android/app/src/main/kotlin/com/appshub/bettbox/BettboxApplication.kt
================================================
package com.appshub.bettbox

import android.app.Application
import android.content.Context

class BettboxApplication : Application() {
    companion object {
        private lateinit var instance: BettboxApplication
        fun getAppContext(): Context = instance.applicationContext
    }

    override fun onCreate() {
        super.onCreate()
        instance = this
    }
}


================================================
FILE: android/app/src/main/kotlin/com/appshub/bettbox/FilesProvider.kt
================================================
package com.appshub.bettbox

import android.database.Cursor
import android.database.MatrixCursor
import android.os.CancellationSignal
import android.os.ParcelFileDescriptor
import android.provider.DocumentsContract.Document
import android.provider.DocumentsContract.Root
import android.provider.DocumentsProvider
import java.io.File
import java.io.FileNotFoundException

class FilesProvider : DocumentsProvider() {

    companion object {
        private const val DEFAULT_ROOT_ID = "0"

        private val DEFAULT_DOCUMENT_COLUMNS = arrayOf(
            Document.COLUMN_DOCUMENT_ID,
            Document.COLUMN_DISPLAY_NAME,
            Document.COLUMN_MIME_TYPE,
            Document.COLUMN_FLAGS,
            Document.COLUMN_SIZE,
        )
        private val DEFAULT_ROOT_COLUMNS = arrayOf(
            Root.COLUMN_ROOT_ID,
            Root.COLUMN_FLAGS,
            Root.COLUMN_ICON,
            Root.COLUMN_TITLE,
            Root.COLUMN_SUMMARY,
            Root.COLUMN_DOCUMENT_ID
        )
    }

    override fun onCreate(): Boolean = true

    override fun queryRoots(projection: Array<String>?): Cursor = MatrixCursor(projection ?: DEFAULT_ROOT_COLUMNS).apply {
        newRow().apply {
            add(Root.COLUMN_ROOT_ID, DEFAULT_ROOT_ID)
            add(Root.COLUMN_FLAGS, Root.FLAG_LOCAL_ONLY)
            add(Root.COLUMN_ICON, R.mipmap.ic_launcher)
            add(Root.COLUMN_TITLE, context!!.getString(R.string.bett_box))
            add(Root.COLUMN_SUMMARY, "Data")
            add(Root.COLUMN_DOCUMENT_ID, "/")
        }
    }

    override fun queryChildDocuments(
        parentDocumentId: String,
        projection: Array<String>?,
        sortOrder: String?
    ): Cursor {
        val result = MatrixCursor(resolveDocumentProjection(projection))
        val parentFile = (if (parentDocumentId == "/") context?.filesDir else File(parentDocumentId))
            ?: throw FileNotFoundException("Parent directory not found")
        parentFile.listFiles()?.forEach { includeFile(result, it) }
        return result
    }

    override fun queryDocument(documentId: String, projection: Array<String>?): Cursor =
        MatrixCursor(resolveDocumentProjection(projection)).apply { includeFile(this, File(documentId)) }

    override fun openDocument(
        documentId: String,
        mode: String,
        signal: CancellationSignal?
    ): ParcelFileDescriptor = ParcelFileDescriptor.open(File(documentId), ParcelFileDescriptor.parseMode(mode))

    private fun includeFile(result: MatrixCursor, file: File) {
        result.newRow().apply {
            add(Document.COLUMN_DOCUMENT_ID, file.absolutePath)
            add(Document.COLUMN_DISPLAY_NAME, file.name)
            add(Document.COLUMN_SIZE, file.length())
            add(Document.COLUMN_FLAGS, Document.FLAG_SUPPORTS_WRITE or Document.FLAG_SUPPORTS_DELETE)
            add(Document.COLUMN_MIME_TYPE, getDocumentType(file))
        }
    }

    private fun getDocumentType(file: File): String =
        if (file.isDirectory) Document.MIME_TYPE_DIR else "application/octet-stream"

    private fun resolveDocumentProjection(projection: Array<String>?): Array<String> = projection ?: DEFAULT_DOCUMENT_COLUMNS
}


================================================
FILE: android/app/src/main/kotlin/com/appshub/bettbox/GlobalState.kt
================================================
package com.appshub.bettbox

import android.os.SystemClock
import com.appshub.bettbox.plugins.AppPlugin
import com.appshub.bettbox.plugins.ServicePlugin
import com.appshub.bettbox.plugins.TilePlugin
import com.appshub.bettbox.plugins.VpnPlugin
import io.flutter.FlutterInjector
import io.flutter.embedding.engine.FlutterEngine
import io.flutter.embedding.engine.dart.DartExecutor
import io.flutter.plugins.GeneratedPluginRegistrant
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.Job
import kotlinx.coroutines.SupervisorJob
import kotlinx.coroutines.cancel
import kotlinx.coroutines.delay
import kotlinx.coroutines.flow.MutableStateFlow
import kotlinx.coroutines.flow.asStateFlow
import kotlinx.coroutines.launch
import kotlinx.coroutines.withContext
import java.util.concurrent.locks.ReentrantLock
import kotlin.concurrent.withLock

enum class RunState {
    START,
    PENDING,
    STOP
}

object GlobalState {
    val runLock = ReentrantLock()
    private val scope = CoroutineScope(SupervisorJob() + Dispatchers.Main.immediate)

    const val NOTIFICATION_CHANNEL = "Bettbox"
    const val NOTIFICATION_ID = 1

    private const val TOGGLE_DEBOUNCE_MS = 1000L
    private const val PENDING_TIMEOUT_MS = 5000L
    private const val STOP_LOCK_TIMEOUT_MS = 5000L

    @Volatile
    private var lastToggleAt = 0L

    @Volatile
    var currentRunState: RunState = RunState.STOP
        private set

    private val _runState = MutableStateFlow(RunState.STOP)
    val runState = _runState.asStateFlow()

    private var pendingTimeoutJob: Job? = null

    var flutterEngine: FlutterEngine? = null
    private var serviceEngine: FlutterEngine? = null

    @Volatile
    var isSmartStopped = false

    @Volatile
    var isStopping = false

    fun updateRunState(newState: RunState) {
        if (newState != RunState.PENDING) {
            pendingTimeoutJob?.cancel()
            pendingTimeoutJob = null
        }
        currentRunState = newState
        _runState.value = newState
    }

    private fun startPendingTimeout() {
        pendingTimeoutJob?.cancel()
        pendingTimeoutJob = scope.launch {
            delay(PENDING_TIMEOUT_MS)
            if (currentRunState == RunState.PENDING) {
                android.util.Log.w("GlobalState", "PENDING state timeout, resetting to STOP")
                updateRunState(RunState.STOP)
            }
        }
    }

    fun updateIsStopping(value: Boolean) {
        isStopping = value
        runCatching {
            val ts = if (value) System.currentTimeMillis() else 0L
            BettboxApplication.getAppContext()
                .getSharedPreferences("vpn_state", android.content.Context.MODE_PRIVATE)
                .edit()
                .putLong("stop_lock_ts", ts)
                .apply()
        }
    }

    fun isCurrentlyStopping(): Boolean {
        if (isStopping) return true
        return runCatching {
            val sp = BettboxApplication.getAppContext()
                .getSharedPreferences("vpn_state", android.content.Context.MODE_PRIVATE)
            val ts = sp.getLong("stop_lock_ts", 0L)
            if (ts == 0L) return false

            val now = System.currentTimeMillis()
            if (now - ts > STOP_LOCK_TIMEOUT_MS) {
                sp.edit().remove("stop_lock_ts").apply()
                false
            } else {
                true
            }
        }.getOrDefault(false)
    }

    fun getCurrentAppPlugin(): AppPlugin? {
        val currentEngine = flutterEngine ?: serviceEngine
        return currentEngine?.plugins?.get(AppPlugin::class.java) as? AppPlugin
    }

    fun syncStatus() {
        val status = VpnPlugin.getStatus()
        updateRunState(if (status) RunState.START else RunState.STOP)
    }

    suspend fun getText(text: String): String = getCurrentAppPlugin()?.getText(text) ?: ""

    fun getCurrentTilePlugin(): TilePlugin? {
        val currentEngine = flutterEngine ?: serviceEngine
        return currentEngine?.plugins?.get(TilePlugin::class.java) as? TilePlugin
    }

    fun getCurrentVPNPlugin(): VpnPlugin? {
        return serviceEngine?.plugins?.get(VpnPlugin::class.java) as? VpnPlugin
    }

    fun handleToggle() {
        if (!acquireToggleSlot()) return
        if (!handleStart(skipDebounce = true)) {
            handleStop(skipDebounce = true)
        }
    }

    fun handleStart(skipDebounce: Boolean = false): Boolean {
        if (!skipDebounce && !acquireToggleSlot()) return false
        if (currentRunState != RunState.STOP) return false

        updateRunState(RunState.PENDING)
        startPendingTimeout()
        runLock.withLock {
            getCurrentTilePlugin()?.handleStart() ?: initServiceEngine()
        }
        return true
    }

    fun handleStop(skipDebounce: Boolean = false) {
        if (!skipDebounce && !acquireToggleSlot()) return
        if (currentRunState != RunState.START) return

        updateRunState(RunState.PENDING)
        startPendingTimeout()
        runLock.withLock {
            getCurrentTilePlugin()?.handleStop()
        }
    }

    private fun acquireToggleSlot(): Boolean {
        val now = SystemClock.elapsedRealtime()
        synchronized(this) {
            if (now - lastToggleAt < TOGGLE_DEBOUNCE_MS) return false
            lastToggleAt = now
            return true
        }
    }

    fun handleTryDestroy() {
        if (flutterEngine == null) destroyServiceEngine()
    }

    fun destroyServiceEngine() {
        runLock.withLock {
            serviceEngine?.destroy()
            serviceEngine = null
        }
    }

    fun initServiceEngine(flags: List<String>? = null) {
        runLock.withLock {
            if (serviceEngine != null) return
            serviceEngine = FlutterEngine(BettboxApplication.getAppContext()).apply {
                plugins.add(VpnPlugin)
                plugins.add(AppPlugin())
                plugins.add(TilePlugin())
                plugins.add(ServicePlugin())
                GeneratedPluginRegistrant.registerWith(this)
            }
            val vpnService = DartExecutor.DartEntrypoint(
                FlutterInjector.instance().flutterLoader().findAppBundlePath(),
                "_service"
            )
            val defaultArgs = if (flutterEngine == null && !isCurrentlyStopping()) listOf("quick") else null
            val args = flags ?: defaultArgs
            serviceEngine?.dartExecutor?.executeDartEntrypoint(vpnService, args)
        }
    }

    fun isServiceEngineRunning(): Boolean = serviceEngine != null

    fun reconnectIpc() {
        (serviceEngine?.plugins?.get(TilePlugin::class.java) as? TilePlugin)?.handleReconnectIpc()
    }
}


================================================
FILE: android/app/src/main/kotlin/com/appshub/bettbox/MainActivity.kt
================================================
package com.appshub.bettbox

import android.content.Context
import com.appshub.bettbox.plugins.AppPlugin
import com.appshub.bettbox.plugins.ServicePlugin
import com.appshub.bettbox.plugins.TilePlugin
import com.appshub.bettbox.plugins.VpnPlugin
import io.flutter.embedding.android.FlutterActivity
import io.flutter.embedding.engine.FlutterEngine
import io.flutter.embedding.engine.FlutterEngineCache
import io.flutter.embedding.engine.dart.DartExecutor
import io.flutter.plugins.GeneratedPluginRegistrant

class MainActivity : FlutterActivity() {
    companion object {
        private const val MAIN_ENGINE_ID = "bettbox_main_engine"
    }

    override fun provideFlutterEngine(context: Context): FlutterEngine {
        val engineCache = FlutterEngineCache.getInstance()
        return engineCache.get(MAIN_ENGINE_ID) ?: createAndCacheEngine(context, engineCache)
    }

    private fun createAndCacheEngine(context: Context, cache: FlutterEngineCache) =
        FlutterEngine(context.applicationContext).apply {
            GeneratedPluginRegistrant.registerWith(this)
            dartExecutor.executeDartEntrypoint(DartExecutor.DartEntrypoint.createDefault())
            cache.put(MAIN_ENGINE_ID, this)
            GlobalState.flutterEngine = this
        }

    override fun configureFlutterEngine(flutterEngine: FlutterEngine) {
        super.configureFlutterEngine(flutterEngine)

        listOf(VpnPlugin, AppPlugin(), ServicePlugin(), TilePlugin()).forEach { plugin ->
            if (flutterEngine.plugins.get(plugin.javaClass) == null) {
                flutterEngine.plugins.add(plugin)
            }
        }

        GlobalState.flutterEngine = flutterEngine
    }

    override fun shouldDestroyEngineWithHost(): Boolean = false
}


================================================
FILE: android/app/src/main/kotlin/com/appshub/bettbox/TempActivity.kt
================================================
package com.appshub.bettbox

import android.app.Activity
import android.os.Bundle
import com.appshub.bettbox.extensions.wrapAction

class TempActivity : Activity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        when (intent.action) {
            wrapAction("START") -> GlobalState.handleStart()
            wrapAction("STOP") -> GlobalState.handleStop()
            wrapAction("CHANGE") -> GlobalState.handleToggle()
        }
        finishAndRemoveTask()
    }
}


================================================
FILE: android/app/src/main/kotlin/com/appshub/bettbox/extensions/Ext.kt
================================================
package com.appshub.bettbox.extensions

import android.app.PendingIntent
import android.content.Context
import android.content.Intent
import android.graphics.Bitmap
import android.graphics.drawable.Drawable
import android.net.ConnectivityManager
import android.net.Network
import android.os.Build
import android.system.OsConstants.IPPROTO_TCP
import android.system.OsConstants.IPPROTO_UDP
import android.util.Base64
import androidx.core.graphics.drawable.toBitmap
import com.appshub.bettbox.TempActivity
import com.appshub.bettbox.models.CIDR
import com.appshub.bettbox.models.Metadata
import com.appshub.bettbox.models.VpnOptions
import io.flutter.plugin.common.MethodChannel
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.suspendCancellableCoroutine
import kotlinx.coroutines.withContext
import java.io.ByteArrayOutputStream
import java.net.Inet4Address
import java.net.Inet6Address
import java.net.InetAddress
import java.util.concurrent.locks.ReentrantLock
import kotlin.coroutines.resume
import kotlin.coroutines.suspendCoroutine

suspend fun Drawable.getBase64(maxSizePx: Int = 128): String = withContext(Dispatchers.IO) {
    val defaultSize = 96
    val intrinsicWidth = if (intrinsicWidth > 0) intrinsicWidth else defaultSize
    val intrinsicHeight = if (intrinsicHeight > 0) intrinsicHeight else defaultSize
    val maxDim = maxOf(intrinsicWidth, intrinsicHeight)
    val targetSize = minOf(maxDim, maxSizePx)
    val scale = targetSize.toFloat() / maxDim.toFloat()
    val targetWidth = (intrinsicWidth * scale).toInt().coerceAtLeast(1)
    val targetHeight = (intrinsicHeight * scale).toInt().coerceAtLeast(1)
    val bitmap = toBitmap(targetWidth, targetHeight, Bitmap.Config.ARGB_8888)
    ByteArrayOutputStream().use { byteArrayOutputStream ->
        bitmap.compress(Bitmap.CompressFormat.PNG, 80, byteArrayOutputStream)
        Base64.encodeToString(byteArrayOutputStream.toByteArray(), Base64.NO_WRAP)
    }
}

fun Metadata.getProtocol(): Int? = when {
    network.startsWith("tcp") -> IPPROTO_TCP
    network.startsWith("udp") -> IPPROTO_UDP
    else -> null
}

fun VpnOptions.getIpv4RouteAddress(): List<CIDR> = routeAddress.filter { it.isIpv4() }.map { it.toCIDR() }

fun VpnOptions.getIpv6RouteAddress(): List<CIDR> = routeAddress.filter { it.isIpv6() }.map { it.toCIDR() }

fun String.isIpv4(): Boolean {
    val parts = split("/")
    require(parts.size == 2) { "Invalid CIDR format" }
    val ip = parts[0]
    return ip.contains('.') && !ip.contains(':')
}

fun String.isIpv6(): Boolean {
    val parts = split("/")
    require(parts.size == 2) { "Invalid CIDR format" }
    val ip = parts[0]
    return ip.contains(':') && !ip.contains('.')
}

fun String.toCIDR(): CIDR {
    val parts = split("/")
    require(parts.size == 2) { "Invalid CIDR format" }
    val ipAddress = parts[0]
    val prefixLength = parts[1].toIntOrNull() ?: throw IllegalArgumentException("Invalid prefix length")
    val address = InetAddress.getByName(ipAddress)
    val maxPrefix = if (address.address.size == 4) 32 else 128
    require(prefixLength in 0..maxPrefix) { "Invalid prefix length for IP version" }
    return CIDR(address, prefixLength)
}

fun ConnectivityManager.resolveDns(network: Network?): List<String> =
    getLinkProperties(network)?.dnsServers?.map { it.asSocketAddressText(53) } ?: emptyList()

fun InetAddress.asSocketAddressText(port: Int): String = when (this) {
    is Inet6Address -> "[${numericToTextFormat(this)}]:$port"
    is Inet4Address -> "$hostAddress:$port"
    else -> throw IllegalArgumentException("Unsupported Inet type ${javaClass}")
}

fun Context.wrapAction(action: String): String = "${packageName}.action.$action"

fun Context.getActionIntent(action: String): Intent =
    Intent(this, TempActivity::class.java).apply {
        this.action = wrapAction(action)
        addFlags(Intent.FLAG_ACTIVITY_NEW_TASK or Intent.FLAG_ACTIVITY_MULTIPLE_TASK)
    }

fun Context.getActionPendingIntent(action: String): PendingIntent {
    val flags = if (Build.VERSION.SDK_INT >= 31) {
        PendingIntent.FLAG_IMMUTABLE or PendingIntent.FLAG_UPDATE_CURRENT
    } else {
        PendingIntent.FLAG_UPDATE_CURRENT
    }
    return PendingIntent.getActivity(this, 0, getActionIntent(action), flags)
}

private fun numericToTextFormat(address: Inet6Address): String = buildString(39) {
    val src = address.address
    for (i in 0 until 8) {
        append(Integer.toHexString(src[i shl 1].toInt() shl 8 and 0xff00 or (src[(i shl 1) + 1].toInt() and 0xff)))
        if (i < 7) append(":")
    }
    if (address.scopeId > 0) {
        append("%")
        append(address.scopeId)
    }
}

suspend fun <T> MethodChannel.awaitResult(method: String, arguments: Any? = null): T? =
    withContext(Dispatchers.Main) {
        suspendCancellableCoroutine { continuation ->
            invokeMethod(method, arguments, object : MethodChannel.Result {
                @Suppress("UNCHECKED_CAST")
                override fun success(result: Any?) {
                    if (continuation.isActive) continuation.resume(result as? T)
                }
                override fun error(code: String, message: String?, details: Any?) {
                    if (continuation.isActive) continuation.resume(null)
                }
                override fun notImplemented() {
                    if (continuation.isActive) continuation.resume(null)
                }
            })
        }
    }

fun ReentrantLock.safeLock() {
    if (!isHeldByCurrentThread) lock()
}

fun ReentrantLock.safeUnlock() {
    if (isHeldByCurrentThread) unlock()
}


================================================
FILE: android/app/src/main/kotlin/com/appshub/bettbox/models/Package.kt
================================================
package com.appshub.bettbox.models

data class Package(
    val packageName: String,
    val label: String,
    val system: Boolean,
    val internet: Boolean,
    val lastUpdateTime: Long,
)


================================================
FILE: android/app/src/main/kotlin/com/appshub/bettbox/models/Process.kt
================================================
package com.appshub.bettbox.models

data class Process(
    val id: String,
    val metadata: Metadata,
)

data class Metadata(
    val network: String,
    val sourceIP: String,
    val sourcePort: Int,
    val destinationIP: String,
    val destinationPort: Int,
    val host: String
)


================================================
FILE: android/app/src/main/kotlin/com/appshub/bettbox/models/Props.kt
================================================
package com.appshub.bettbox.models

import java.net.InetAddress

enum class AccessControlMode {
    acceptSelected, rejectSelected,
}

data class AccessControl(
    val enable: Boolean,
    val mode: AccessControlMode,
    val acceptList: List<String>,
    val rejectList: List<String>,
)

data class CIDR(val address: InetAddress, val prefixLength: Int)

data class VpnOptions(
    val enable: Boolean,
    val port: Int,
    val accessControl: AccessControl,
    val allowBypass: Boolean,
    val systemProxy: Boolean,
    val bypassDomain: List<String>,
    val routeAddress: List<String>,
    val routeMode: String = "config",
    val ipv4Address: String,
    val ipv6Address: String,
    val dnsServerAddress: String,
    val dozeSuspend: Boolean = false,
    val mtu: Int = 4064,
)

data class StartForegroundParams(
    val title: String,
    val content: String,
)

================================================
FILE: android/app/src/main/kotlin/com/appshub/bettbox/modules/SuspendModule.kt
================================================
package com.appshub.bettbox.modules

import android.content.BroadcastReceiver
import android.content.Context
import android.content.Intent
import android.content.IntentFilter
import android.os.Build
import android.os.PowerManager
import android.util.Log
import androidx.core.content.getSystemService
import com.appshub.bettbox.core.Core

class SuspendModule(private val context: Context) {
    companion object {
        private const val TAG = "SuspendModule"
    }

    private var isInstalled = false
    private var isSuspended = false

    private val powerManager: PowerManager? by lazy { context.getSystemService<PowerManager>() }

    private val isScreenOn: Boolean get() = powerManager?.isInteractive ?: true

    private val isDeviceIdleMode: Boolean
        get() = Build.VERSION.SDK_INT >= Build.VERSION_CODES.M && powerManager?.isDeviceIdleMode == true

    private val shouldSuspend: Boolean get() = !isScreenOn && isDeviceIdleMode

    private fun updateSuspendState() {
        val shouldSuspendNow = shouldSuspend

        Log.d(TAG, "updateSuspendState - shouldSuspend: $shouldSuspendNow, isSuspended: $isSuspended")

        when {
            shouldSuspendNow && !isSuspended -> {
                Log.i(TAG, "Entering Doze - Suspending core")
                Core.suspended(true)
                isSuspended = true
            }
            !shouldSuspendNow && isSuspended -> {
                Log.i(TAG, "Exiting Doze - Resuming core")
                Core.suspended(false)
                isSuspended = false
            }
        }
    }

    private val receiver = object : BroadcastReceiver() {
        override fun onReceive(context: Context?, intent: Intent?) {
            intent?.action?.let {
                Log.d(TAG, "Received $it")
                updateSuspendState()
            }
        }
    }

    fun install() {
        if (isInstalled) return
        isInstalled = true
        isSuspended = false

        val filter = IntentFilter().apply {
            addAction(Intent.ACTION_SCREEN_ON)
            addAction(Intent.ACTION_SCREEN_OFF)
            if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {
                addAction(PowerManager.ACTION_DEVICE_IDLE_MODE_CHANGED)
            }
        }
        context.registerReceiver(receiver, filter)
        updateSuspendState()
        Log.i(TAG, "SuspendModule installed - SDK: ${Build.VERSION.SDK_INT}")
    }

    fun uninstall() {
        if (!isInstalled) return
        isInstalled = false

        runCatching {
            context.unregisterReceiver(receiver)
            if (isSuspended) {
                Log.i(TAG, "Uninstalling - Resume from suspend")
                Core.suspended(false)
                isSuspended = false
            }
        }.onFailure { Log.w(TAG, "Failed to unregister receiver: ${it.message}") }
        Log.i(TAG, "SuspendModule uninstalled")
    }
}


================================================
FILE: android/app/src/main/kotlin/com/appshub/bettbox/plugins/AppPlugin.kt
================================================
package com.appshub.bettbox.plugins

import android.Manifest
import android.app.Activity
import android.app.ActivityManager
import android.content.Context
import android.content.Intent
import android.content.pm.ApplicationInfo
import android.content.pm.ComponentInfo
import android.content.pm.PackageManager
import android.net.VpnService
import android.os.Build
import android.provider.Settings
import android.util.Base64
import android.widget.Toast
import androidx.core.app.ActivityCompat
import androidx.core.content.ContextCompat
import androidx.core.content.FileProvider
import androidx.core.content.getSystemService
import androidx.core.content.pm.ShortcutInfoCompat
import androidx.core.content.pm.ShortcutManagerCompat
import androidx.core.graphics.drawable.IconCompat
import com.appshub.bettbox.BettboxApplication
import com.appshub.bettbox.GlobalState
import com.appshub.bettbox.R
import com.appshub.bettbox.extensions.awaitResult
import com.appshub.bettbox.extensions.getActionIntent
import com.appshub.bettbox.models.Package
import io.flutter.embedding.android.FlutterActivity
import io.flutter.embedding.engine.plugins.FlutterPlugin
import io.flutter.embedding.engine.plugins.activity.ActivityAware
import io.flutter.embedding.engine.plugins.activity.ActivityPluginBinding
import io.flutter.plugin.common.MethodCall
import io.flutter.plugin.common.MethodChannel
import io.flutter.plugin.common.MethodChannel.Result
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.SupervisorJob
import kotlinx.coroutines.cancel
import kotlinx.coroutines.launch
import kotlinx.coroutines.withContext
import java.io.File
import java.lang.ref.WeakReference
import java.security.cert.CertificateFactory
import java.security.cert.X509Certificate
import java.util.concurrent.ConcurrentHashMap
import android.content.res.Configuration
import android.net.Uri
import android.graphics.Bitmap
import android.graphics.Canvas
import android.graphics.drawable.Drawable

class AppPlugin : FlutterPlugin, MethodChannel.MethodCallHandler, ActivityAware {

    private var activityRef: WeakReference<Activity>? = null
    private var cachedTaskId: Int? = null
    private lateinit var channel: MethodChannel
    private lateinit var scope: CoroutineScope
    private var vpnCallBack: (() -> Unit)? = null
    private val packages = mutableListOf<Package>()
    private val chinaPackageCache = ConcurrentHashMap<String, Boolean>()

    private val iconCacheDir by lazy {
        File(BettboxApplication.getAppContext().cacheDir, "app_icons").apply {
            if (!exists()) mkdirs()
        }
    }

    companion object {
        private const val ICON_SIZE_DP = 48
        private const val VPN_PERMISSION_REQUEST_CODE = 1001
        private const val NOTIFICATION_PERMISSION_REQUEST_CODE = 1002
        private const val CACHE_MAX_FILES = 500
        private const val PNG_MAGIC_SIZE = 8

        private val SKIP_PREFIX_LIST = listOf(
            "com.google", "com.android.chrome", "com.android.vending", "com.facebook",
            "com.instagram", "com.whatsapp", "com.twitter", "com.linkedin", "com.snapchat",
            "com.amazon", "com.microsoft", "com.apple", "com.dropbox", "com.mozilla",
            "com.brave", "com.duckduckgo", "com.vivaldi", "com.kiwibrowser",
            "org.torproject.torbrowser", "com.opera.browser", "com.lemon.browser",
            "net.waterfox", "ch.protonmail", "org.thoughtcrime.securesms", "org.telegram",
            "com.surfshark", "com.netflix", "com.spotify", "tv.twitch", "com.hulu",
            "com.disney", "com.hbo", "com.primevideo", "com.zhiliaoapp.musically",
            "com.nytimes", "bbc.mobile", "com.wsj", "com.bloomberg", "com.medium",
            "com.quora", "com.github", "io.github", "com.slack", "com.notion", "us.zoom",
            "com.discord", "com.reddit", "com.pinterest", "com.tumblr", "jp.naver.line",
            "com.skype", "com.box", "org.wikipedia", "com.gitlab", "com.openai",
            "com.valvesoftware", "com.roblox", "com.ea.gp", "com.ubisoft",
            "com.sogou.activity.src", "com.qihoo.browser", "com.qihoo.haosou",
            "com.liebao", "com.mx.browser", "com.browser2345", "com.ijinshan.browser",
            "com.quark.browser", "com.ylmf.androidclient", "mark.via", "com.xbrowser.play",
            "com.mycompany.app.soulbrowser", "com.hshentong.alook", "info.bmmk.mbrowser",
            "com.rainsee.browser", "com.liuzh.browser", "com.yuzhe.browser",
            "org.easyweb.browser", "any.browser", "us.spotco.fennec_dos",
            "app.grapheneos.vanadium", "org.ironfoxoss", "com.samsung.android.app.sbrowser",
            "com.mi.global.browser", "com.android.browser", "com.huawei.browser",
            "com.hihonor.browser", "com.heytap.browser", "com.coloros.browser",
            "com.oppo.browser", "com.vivo.browser", "com.bbk.browser", "com.meizu.browser",
            "com.meizu.mbrowser", "com.lenovo.browser", "com.zte.browser", "com.gionee.browser"
        )

        private val CHINA_APP_PREFIX_LIST = listOf(
            "com.tencent", "com.alibaba", "com.ali", "com.alipay", "com.taobao", "com.baidu",
            "com.iqiyi", "com.bytedance", "com.ss.android", "com.kuaishou", "com.smile.gifmaker",
            "com.xunmeng", "com.pinduoduo", "com.sankuai", "com.meituan", "com.jingdong",
            "com.jd", "tv.danmaku", "com.sina", "com.weibo", "com.sohu", "com.netease",
            "com.zhihu", "com.xingin", "com.huawei", "com.xiaomi", "com.miui", "com.oppo",
            "com.coloros", "com.oplus", "andes.oplus", "com.vivo", "com.bbk", "com.iqoo",
            "com.meizu", "com.flyme", "com.gionee", "cn.nubia", "com.zte", "com.lenovo",
            "com.oneplus", "com.qihoo", "com.360", "com.ijiami", "com.bangcle", "com.secneo",
            "com.kiwisec", "com.stub", "com.wrapper", "cn.securitystack", "com.mogosec",
            "com.secoen", "com.secshell", "com.umeng", "com.igexin", "cn.jpush", "cn.jiguang",
            "com.bugly", "com.mob", "cn.wps", "com.kingsoft", "com.xunlei", "com.unionpay",
            "com.cainiao", "com.sf", "com.sdu", "com.xiaojukeji", "com.autonavi", "com.amap",
            "com.chinamobile", "com.chinaunicom", "com.chinatelecom", "com.icbc", "com.ccb",
            "com.cmbchina", "com.mx", "com.qq", "app.eleven.com.fastfiletransfer",
            "org.localsend.localsend_app"
        )

        private val CHINA_APP_REGEX by lazy {
            ("(" + CHINA_APP_PREFIX_LIST.joinToString("|").replace(".", "\\.") + ").*").toRegex()
        }
    }

    private var isBlockNotification = false
    private var isActivityAttached = false

    override fun onAttachedToEngine(flutterPluginBinding: FlutterPlugin.FlutterPluginBinding) {
        scope = CoroutineScope(SupervisorJob() + Dispatchers.Main.immediate)
        channel = MethodChannel(flutterPluginBinding.binaryMessenger, "app")
        channel.setMethodCallHandler(this)
        scope.launch(Dispatchers.IO) { cleanIconCache() }
    }

    private fun initShortcuts(label: String) {
        val iconRes = if (isSystemInDarkMode()) R.mipmap.ic_launcher_round else R.mipmap.ic_launcher_round_light
        val shortcut = ShortcutInfoCompat.Builder(BettboxApplication.getAppContext(), "toggle")
            .setShortLabel(label)
            .setIcon(IconCompat.createWithResource(BettboxApplication.getAppContext(), iconRes))
            .setIntent(BettboxApplication.getAppContext().getActionIntent("CHANGE"))
            .build()
        ShortcutManagerCompat.setDynamicShortcuts(BettboxApplication.getAppContext(), listOf(shortcut))
    }

    private fun isSystemInDarkMode(): Boolean {
        val nightModeFlags = BettboxApplication.getAppContext().resources.configuration.uiMode and
            Configuration.UI_MODE_NIGHT_MASK
        return nightModeFlags == Configuration.UI_MODE_NIGHT_YES
    }

    private fun isAndroidTV(): Boolean {
        val uiMode = BettboxApplication.getAppContext().resources.configuration.uiMode
        return (uiMode and Configuration.UI_MODE_TYPE_MASK) == Configuration.UI_MODE_TYPE_TELEVISION
    }

    override fun onDetachedFromEngine(binding: FlutterPlugin.FlutterPluginBinding) {
        channel.setMethodCallHandler(null)
        scope.cancel()
    }

    private fun tip(message: String?) {
        if (GlobalState.flutterEngine == null) {
            Toast.makeText(BettboxApplication.getAppContext(), message, Toast.LENGTH_LONG).show()
        }
    }

    override fun onMethodCall(call: MethodCall, result: Result) {
        when (call.method) {
            "moveTaskToBack" -> {
                activityRef?.get()?.moveTaskToBack(true)
                result.success(true)
            }
            "updateExcludeFromRecents" -> {
                updateExcludeFromRecents(call.argument<Boolean>("value"))
                result.success(true)
            }
            "initShortcuts" -> {
                initShortcuts(call.arguments as String)
                result.success(true)
            }
            "getPackages" -> scope.launch {
                val forceRefresh = call.argument<Boolean>("forceRefresh") ?: false
                runCatching { result.success(getPackagesToList(forceRefresh)) }
                    .onFailure { result.error("GET_PACKAGES_FAILED", it.message, null) }
            }
            "getChinaPackageNames" -> scope.launch {
                runCatching { result.success(getChinaPackageNamesList()) }
                    .onFailure { result.error("GET_CHINA_PACKAGES_FAILED", it.message, null) }
            }
            "getPackageIcon" -> scope.launch {
                val packageName = call.argument<String>("packageName")
                val forceRefresh = call.argument<Boolean>("forceRefresh") ?: false
                val icon = runCatching {
                    packageName?.let { 
                        getPackageIconBytes(it, forceRefresh) 
                    } ?: getDefaultIconBytes()
                }.getOrNull() ?: getDefaultIconBytes()
                result.success(icon)
            }
            "tip" -> {
                tip(call.argument<String>("message"))
                result.success(true)
            }
            "openFile" -> {
                openFile(call.argument<String>("path")!!)
                result.success(true)
            }
            "getSelfLastUpdateTime" -> {
                result.success(getSelfLastUpdateTime())
            }
            "isIgnoringBatteryOptimizations" -> {
                result.success(isIgnoringBatteryOptimizations())
            }
            "requestIgnoreBatteryOptimizations" -> {
                requestIgnoreBatteryOptimizations()
                result.success(true)
            }
            "setLauncherIcon" -> {
                setLauncherIcon(call.argument<Boolean>("useLightIcon") ?: false)
                result.success(true)
            }
            "hasPackageListPermission" -> {
                result.success(hasPackageListPermission())
            }
            "requestPackageListPermission" -> {
                requestPackageListPermission()
                result.success(true)
            }
            "hasCameraPermission" -> {
                result.success(hasCameraPermission())
            }
            "openAppSettings" -> {
                openAppSettings()
                result.success(true)
            }
            "isAndroidTV" -> {
                result.success(isAndroidTV())
            }
            else -> result.notImplemented()
        }
    }

    private fun openFile(path: String) {
        val context = BettboxApplication.getAppContext()
        val file = File(path)
        val uri = FileProvider.getUriForFile(
            context,
            "${context.packageName}.fileProvider",
            file
        )
        val intent = Intent(Intent.ACTION_VIEW).apply {
            setDataAndType(uri, "text/plain")
            addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION)
            addFlags(Intent.FLAG_ACTIVITY_NEW_TASK)
        }
        runCatching { context.startActivity(intent) }
    }

    private fun updateExcludeFromRecents(value: Boolean?) {
        val am = BettboxApplication.getAppContext().getSystemService(Context.ACTIVITY_SERVICE) as? ActivityManager
        val task = am?.appTasks?.firstOrNull { task ->
            if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q) {
                task.taskInfo.taskId == activityRef?.get()?.taskId
            } else {
                @Suppress("DEPRECATION")
                task.taskInfo.id == activityRef?.get()?.taskId
            }
        }

        when (value) {
            true -> task?.setExcludeFromRecents(value)
            false -> task?.setExcludeFromRecents(value)
            null -> task?.setExcludeFromRecents(false)
        }
    }

    private fun getIconSizePx(): Int {
        val density = BettboxApplication.getAppContext().resources.displayMetrics.density
        return (ICON_SIZE_DP * density).toInt().coerceAtLeast(1)
    }

    private fun drawableToPngBytes(drawable: Drawable, sizePx: Int): ByteArray {
        val bitmap = Bitmap.createBitmap(sizePx, sizePx, Bitmap.Config.ARGB_8888)
        val canvas = Canvas(bitmap)
        drawable.setBounds(0, 0, sizePx, sizePx)
        drawable.draw(canvas)
        return java.io.ByteArrayOutputStream().use { outputStream ->
            bitmap.compress(Bitmap.CompressFormat.PNG, 80, outputStream)
            bitmap.recycle()
            outputStream.toByteArray()
        }
    }

    private fun getDefaultIconBytes(): ByteArray? = runCatching {
        drawableToPngBytes(BettboxApplication.getAppContext().packageManager.defaultActivityIcon, getIconSizePx())
    }.getOrNull()

    private fun isPngBytes(bytes: ByteArray): Boolean {
        if (bytes.size < PNG_MAGIC_SIZE) return false
        val magic = byteArrayOf(0x89.toByte(), 0x50, 0x4E, 0x47, 0x0D, 0x0A, 0x1A, 0x0A)
        return bytes.take(PNG_MAGIC_SIZE).toByteArray().contentEquals(magic)
    }

    private suspend fun getPackageIconBytes(packageName: String, forceRefresh: Boolean = false): ByteArray? =
        withContext(Dispatchers.IO) {
            val pm = BettboxApplication.getAppContext().packageManager ?: return@withContext null
            runCatching {
                val packageInfo = if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.TIRAMISU) {
                    pm.getPackageInfo(packageName, PackageManager.PackageInfoFlags.of(0))
                } else {
                    pm.getPackageInfo(packageName, 0)
                }
                val lastUpdateTime = packageInfo?.lastUpdateTime ?: 0L
                val cacheKey = "${packageName}_${lastUpdateTime}"
                val cacheFile = File(iconCacheDir, cacheKey)

                if (forceRefresh && cacheFile.exists() && (System.currentTimeMillis() - lastUpdateTime) < 24 * 60 * 60 * 1000) {
                    cacheFile.delete()
                }

                if (cacheFile.exists() && cacheFile.length() > 0) {
                    val cachedBytes = cacheFile.readBytes()
                    if (isPngBytes(cachedBytes)) return@withContext cachedBytes
                    cacheFile.delete()
                }

                iconCacheDir.listFiles()?.forEach { if (it.name.startsWith("${packageName}_") && it.name != cacheKey) it.delete() }

                pm.getApplicationIcon(packageName)?.let { drawable ->
                    val bytes = drawableToPngBytes(drawable, getIconSizePx())
                    runCatching { cacheFile.writeBytes(bytes) }
                    return@withContext bytes
                }
            }
            null
        }

    private suspend fun getPackages(forceRefresh: Boolean = false): List<Package> = withContext(Dispatchers.IO) {
        if (forceRefresh) packages.clear()
        if (packages.isNotEmpty()) return@withContext packages
        val pm = BettboxApplication.getAppContext().packageManager ?: return@withContext emptyList()
        val selfPackageName = BettboxApplication.getAppContext().packageName

        packages.addAll(pm.getInstalledApplications(PackageManager.GET_META_DATA).mapNotNull { appInfo ->
            val packageName = appInfo.packageName ?: return@mapNotNull null
            if (packageName == selfPackageName) return@mapNotNull null

            val label = runCatching { appInfo.loadLabel(pm).toString() }.getOrDefault(packageName)
            val system = (appInfo.flags and ApplicationInfo.FLAG_SYSTEM) != 0
            val internet = runCatching {
                pm.checkPermission(Manifest.permission.INTERNET, packageName) == PackageManager.PERMISSION_GRANTED
            }.getOrDefault(false)
            val lastUpdateTime = appInfo.sourceDir?.let { File(it).lastModified() } ?: 0L

            Package(packageName, label, system, internet, lastUpdateTime)
        })
        packages
    }

    private suspend fun getPackagesToList(forceRefresh: Boolean = false): List<Map<String, Any>> =
        getPackages(forceRefresh).map { mapOf("packageName" to it.packageName, "label" to it.label, "system" to it.system, "internet" to it.internet, "lastUpdateTime" to it.lastUpdateTime) }

    private suspend fun getChinaPackageNamesList(): List<String> =
        getPackages().map { it.packageName }.filter { isChinaPackage(it) }

    private fun cleanIconCache() {
        runCatching {
            iconCacheDir.listFiles()?.takeIf { it.size > CACHE_MAX_FILES }?.let { files ->
                files.sortedBy { it.lastModified() }.take(files.size - CACHE_MAX_FILES).forEach { it.delete() }
            }
        }
    }

    fun requestVpnPermission(callBack: () -> Unit) {
        vpnCallBack = callBack
        val intent = VpnService.prepare(BettboxApplication.getAppContext())
        if (intent != null) {
            activityRef?.get()?.startActivityForResult(intent, VPN_PERMISSION_REQUEST_CODE)
            return
        }
        vpnCallBack?.invoke()
    }

    fun requestNotificationsPermission() {
        if (Build.VERSION.SDK_INT < Build.VERSION_CODES.TIRAMISU) return
        if (isBlockNotification || activityRef?.get() == null) return
        if (ContextCompat.checkSelfPermission(BettboxApplication.getAppContext(), Manifest.permission.POST_NOTIFICATIONS) == PackageManager.PERMISSION_GRANTED) return
        activityRef?.get()?.let {
            ActivityCompat.requestPermissions(it, arrayOf(Manifest.permission.POST_NOTIFICATIONS), NOTIFICATION_PERMISSION_REQUEST_CODE)
        }
    }

    suspend fun getText(text: String): String? = withContext(Dispatchers.Default) {
        channel.awaitResult<String>("getText", text)
    }

    private fun isChinaPackage(packageName: String): Boolean =
        chinaPackageCache.getOrPut(packageName) { isChinaPackageInternal(packageName) }

    private fun isChinaPackageInternal(packageName: String): Boolean {
        val context = BettboxApplication.getAppContext()
        val pm = context.packageManager ?: return false
        if (SKIP_PREFIX_LIST.any { packageName == it || packageName.startsWith("$it.") }) return false
        if (packageName.matches(CHINA_APP_REGEX)) return true
        if (isChinaCertificate(packageName, pm)) return true

        val flags = PackageManager.GET_ACTIVITIES or PackageManager.GET_SERVICES or PackageManager.GET_RECEIVERS or PackageManager.GET_PROVIDERS
        runCatching {
            val packageInfo = if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.TIRAMISU) {
                pm.getPackageInfo(packageName, PackageManager.PackageInfoFlags.of(flags.toLong()))
            } else {
                pm.getPackageInfo(packageName, flags)
            }
            val components = mutableListOf<ComponentInfo>().apply {
                packageInfo.services?.let { addAll(it) }
                packageInfo.activities?.let { addAll(it) }
                packageInfo.receivers?.let { addAll(it) }
                packageInfo.providers?.let { addAll(it) }
            }
            if (components.any { it.name.matches(CHINA_APP_REGEX) }) return true
        }
        return false
    }

    private fun isChinaCertificate(packageName: String, pm: PackageManager): Boolean = runCatching {
        val packageInfo = if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.P) {
            pm.getPackageInfo(packageName, PackageManager.GET_SIGNING_CERTIFICATES)
        } else {
            @Suppress("DEPRECATION")
            pm.getPackageInfo(packageName, PackageManager.GET_SIGNATURES)
        }
        val signatures = if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.P) {
            packageInfo.signingInfo?.apkContentsSigners
        } else {
            @Suppress("DEPRECATION")
            packageInfo.signatures
        }
        signatures?.any { signature ->
            val cert = CertificateFactory.getInstance("X.509")
                .generateCertificate(java.io.ByteArrayInputStream(signature.toByteArray()))
            cert is X509Certificate && (cert.subjectDN.name.contains("C=CN", ignoreCase = true) ||
                cert.subjectDN.name.contains("C=86", ignoreCase = true))
        } == true
    }.getOrDefault(false)

    override fun onAttachedToActivity(binding: ActivityPluginBinding) {
        activityRef = WeakReference(binding.activity)
        if (!isActivityAttached) {
            isActivityAttached = true
            binding.addActivityResultListener(::onActivityResult)
            binding.addRequestPermissionsResultListener(::onRequestPermissionsResultListener)
        }
    }

    override fun onDetachedFromActivityForConfigChanges() {
        activityRef = null
    }
    override fun onReattachedToActivityForConfigChanges(binding: ActivityPluginBinding) {
        activityRef = WeakReference(binding.activity)
    }
    override fun onDetachedFromActivity() {
        channel.invokeMethod("exit", null)
        activityRef = null
        cachedTaskId = null
        isActivityAttached = false
    }

    private fun onActivityResult(requestCode: Int, resultCode: Int, data: Intent?): Boolean {
        if (!isActivityAttached) return false
        if (requestCode == VPN_PERMISSION_REQUEST_CODE && resultCode == FlutterActivity.RESULT_OK) {
            GlobalState.initServiceEngine()
            vpnCallBack?.invoke()
        }
        return true
    }

    private fun onRequestPermissionsResultListener(requestCode: Int, permissions: Array<String>, grantResults: IntArray): Boolean {
        if (!isActivityAttached) return false
        if (requestCode == NOTIFICATION_PERMISSION_REQUEST_CODE) isBlockNotification = true
        return true
    }

    private fun isIgnoringBatteryOptimizations(): Boolean =
        if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {
            val powerManager = BettboxApplication.getAppContext().getSystemService(android.content.Context.POWER_SERVICE) as? android.os.PowerManager
            powerManager?.isIgnoringBatteryOptimizations(BettboxApplication.getAppContext().packageName) ?: false
        } else true

    private fun requestIgnoreBatteryOptimizations() {
        if (Build.VERSION.SDK_INT < Build.VERSION_CODES.M) return
        val intent = Intent(Settings.ACTION_REQUEST_IGNORE_BATTERY_OPTIMIZATIONS).apply {
            data = Uri.parse("package:${BettboxApplication.getAppContext().packageName}")
            addFlags(Intent.FLAG_ACTIVITY_NEW_TASK)
        }
        runCatching { BettboxApplication.getAppContext().startActivity(intent) }
            .onFailure {
                runCatching {
                    BettboxApplication.getAppContext().startActivity(Intent(Settings.ACTION_IGNORE_BATTERY_OPTIMIZATION_SETTINGS).apply {
                        addFlags(Intent.FLAG_ACTIVITY_NEW_TASK)
                    })
                }
            }
    }

    private fun setLauncherIcon(useLightIcon: Boolean) {
        val context = BettboxApplication.getAppContext()
        val pm = context.packageManager
        val packageName = context.packageName
        val defaultComponent = android.content.ComponentName(packageName, "com.appshub.bettbox.MainActivity")
        val lightComponent = android.content.ComponentName(packageName, "com.appshub.bettbox.MainActivityLight")

        if (useLightIcon) {
            pm.setComponentEnabledSetting(lightComponent, PackageManager.COMPONENT_ENABLED_STATE_ENABLED, PackageManager.DONT_KILL_APP)
            pm.setComponentEnabledSetting(defaultComponent, PackageManager.COMPONENT_ENABLED_STATE_DISABLED, PackageManager.DONT_KILL_APP)
        } else {
            pm.setComponentEnabledSetting(defaultComponent, PackageManager.COMPONENT_ENABLED_STATE_ENABLED, PackageManager.DONT_KILL_APP)
            pm.setComponentEnabledSetting(lightComponent, PackageManager.COMPONENT_ENABLED_STATE_DISABLED, PackageManager.DONT_KILL_APP)
        }
        VpnPlugin.updateNotificationIcon()
    }

    private fun hasPackageListPermission(): Boolean {
        if (Build.VERSION.SDK_INT < Build.VERSION_CODES.R) return true
        val context = BettboxApplication.getAppContext()
        val pm = context.packageManager
        return arrayOf("com.android.settings", "com.android.systemui").any { pkg ->
            runCatching {
                if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.TIRAMISU) {
                    pm.getPackageInfo(pkg, PackageManager.PackageInfoFlags.of(0))
                } else {
                    pm.getPackageInfo(pkg, 0)
                }
                true
            }.getOrDefault(false)
        }
    }

    private fun requestPackageListPermission() {
        if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.R) openAppSettings()
    }

    private fun hasCameraPermission(): Boolean =
        ContextCompat.checkSelfPermission(BettboxApplication.getAppContext(), Manifest.permission.CAMERA) == PackageManager.PERMISSION_GRANTED

    private fun openAppSettings() {
        val intent = Intent(Settings.ACTION_APPLICATION_DETAILS_SETTINGS).apply {
            data = Uri.parse("package:${BettboxApplication.getAppContext().packageName}")
        }
        activityRef?.get()?.startActivity(intent) ?: run {
            intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK)
            BettboxApplication.getAppContext().startActivity(intent)
        }
    }

    private fun getSelfLastUpdateTime(): Long {
        val context = BettboxApplication.getAppContext()
        val pm = context.packageManager
        return runCatching {
            if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.TIRAMISU) {
                pm?.getPackageInfo(context.packageName, PackageManager.PackageInfoFlags.of(0))
            } else {
                pm?.getPackageInfo(context.packageName, 0)
            }?.lastUpdateTime
        }.getOrDefault(0L) ?: 0L
    }
}


================================================
FILE: android/app/src/main/kotlin/com/appshub/bettbox/plugins/ServicePlugin.kt
================================================
package com.appshub.bettbox.plugins

import android.os.Handler
import android.os.Looper
import android.util.Log
import com.appshub.bettbox.GlobalState
import com.appshub.bettbox.RunState
import com.appshub.bettbox.models.VpnOptions
import com.google.gson.Gson
import io.flutter.embedding.engine.plugins.FlutterPlugin
import io.flutter.plugin.common.MethodCall
import io.flutter.plugin.common.MethodChannel
import java.util.concurrent.CopyOnWriteArrayList

class ServicePlugin : FlutterPlugin, MethodChannel.MethodCallHandler {

    private lateinit var channel: MethodChannel

    companion object {
        private val activeChannels = CopyOnWriteArrayList<MethodChannel>()
        private val mainHandler = Handler(Looper.getMainLooper())
        private val gson = Gson()
        private const val TAG = "ServicePlugin"

        private fun notify(method: String) {
            mainHandler.post {
                activeChannels.forEach { ch ->
                    runCatching { ch.invokeMethod(method, null) }
                        .onFailure { Log.e(TAG, "$method notify error: ${it.message}") }
                }
            }
        }

        fun notifyNetworkChanged() = notify("networkChanged")
        fun notifyQuickResponse() = notify("quickResponse")
        fun notifyVpnStartFailed() = notify("vpnStartFailed")
        fun notifyRunStateChanged(state: RunState) {
            mainHandler.post {
                activeChannels.forEach { ch ->
                    runCatching { ch.invokeMethod("runStateChanged", state.name) }
                        .onFailure { Log.e(TAG, "runStateChanged notify error: ${it.message}") }
                }
            }
        }
    }

    override fun onAttachedToEngine(binding: FlutterPlugin.FlutterPluginBinding) {
        channel = MethodChannel(binding.binaryMessenger, "service").apply {
            setMethodCallHandler(this@ServicePlugin)
        }
        activeChannels.add(channel)
    }

    override fun onDetachedFromEngine(binding: FlutterPlugin.FlutterPluginBinding) {
        channel.setMethodCallHandler(null)
        activeChannels.remove(channel)
    }

    override fun onMethodCall(call: MethodCall, result: MethodChannel.Result) {
        when (call.method) {
            "startVpn" -> handleStartVpn(call, result)
            "stopVpn" -> {
                VpnPlugin.handleStop(force = true)
                result.success(true)
            }
            "smartStop" -> {
                VpnPlugin.handleSmartStop()
                result.success(true)
            }
            "smartResume" -> {
                val data = call.argument<String>("data")
                val options = gson.fromJson(data, VpnOptions::class.java)
                VpnPlugin.handleSmartResume(options)
                result.success(true)
            }
            "setSmartStopped" -> {
                GlobalState.isSmartStopped = call.argument<Boolean>("value") ?: false
                result.success(true)
            }
            "isSmartStopped" -> result.success(GlobalState.isSmartStopped)
            "getLocalIpAddresses" -> result.success(VpnPlugin.getLocalIpAddresses())
            "setQuickResponse" -> {
                VpnPlugin.setQuickResponse(call.argument<Boolean>("enabled") ?: false)
                result.success(true)
            }
            "init" -> {
                GlobalState.getCurrentAppPlugin()?.requestNotificationsPermission()
                GlobalState.initServiceEngine()
                result.success(true)
            }
            "isServiceEngineRunning" -> result.success(GlobalState.isServiceEngineRunning())
            "status" -> result.success(GlobalState.currentRunState == RunState.START)
            "reconnectIpc" -> {
                GlobalState.reconnectIpc()
                result.success(true)
            }
            "destroy" -> {
                GlobalState.destroyServiceEngine()
                result.success(true)
            }
            else -> result.notImplemented()
        }
    }

    private fun handleStartVpn(call: MethodCall, result: MethodChannel.Result) {
        val data = call.argument<String>("data")
        if (data.isNullOrBlank() || data == "null") {
            result.error("INVALID_ARGUMENT", "options data is null", null)
            return
        }
        runCatching { gson.fromJson(data, VpnOptions::class.java) }
            .onSuccess { options ->
                VpnPlugin.handleStart(options)
                result.success(true)
            }
            .onFailure { result.error("PARSE_ERROR", it.message, null) }
    }
}


================================================
FILE: android/app/src/main/kotlin/com/appshub/bettbox/plugins/TilePlugin.kt
================================================
package com.appshub.bettbox.plugins

import android.os.Handler
import android.os.Looper
import android.util.Log
import io.flutter.embedding.engine.plugins.FlutterPlugin
import io.flutter.plugin.common.MethodCall
import io.flutter.plugin.common.MethodChannel

class TilePlugin : FlutterPlugin, MethodChannel.MethodCallHandler {

    private var channel: MethodChannel? = null
    private val mainHandler = Handler(Looper.getMainLooper())

    companion object {
        private const val TAG = "TilePlugin"
    }

    override fun onAttachedToEngine(binding: FlutterPlugin.FlutterPluginBinding) {
        channel = MethodChannel(binding.binaryMessenger, "tile").apply {
            setMethodCallHandler(this@TilePlugin)
        }
    }

    override fun onDetachedFromEngine(binding: FlutterPlugin.FlutterPluginBinding) {
        runCatching { channel?.invokeMethod("detached", null) }
            .onFailure { Log.e(TAG, "Failed to invoke detached: ${it.message}") }
        channel?.setMethodCallHandler(null)
        channel = null
    }

    fun handleStart() = safeInvokeMethod("start")
    fun handleStop() = safeInvokeMethod("stop")
    fun handleReconnectIpc() = safeInvokeMethod("reconnectIpc")

    private fun safeInvokeMethod(method: String) {
        val ch = channel ?: return
        if (Looper.myLooper() == Looper.getMainLooper()) {
            runCatching { ch.invokeMethod(method, null) }
                .onFailure { Log.e(TAG, "Failed to invoke $method: ${it.message}") }
        } else {
            mainHandler.post {
                runCatching { ch.invokeMethod(method, null) }
                    .onFailure { Log.e(TAG, "Failed to invoke $method: ${it.message}") }
            }
        }
    }

    override fun onMethodCall(call: MethodCall, result: MethodChannel.Result) = result.notImplemented()
}


================================================
FILE: android/app/src/main/kotlin/com/appshub/bettbox/plugins/VpnPlugin.kt
================================================
package com.appshub.bettbox.plugins

import android.content.ComponentName
import android.content.Context
import android.content.Intent
import android.content.ServiceConnection
import android.net.ConnectivityManager
import android.net.Network
import android.net.NetworkCapabilities
import android.net.NetworkRequest
import android.os.Build
import android.os.IBinder
import androidx.core.content.getSystemService
import com.appshub.bettbox.BettboxApplication
import com.appshub.bettbox.GlobalState
import com.appshub.bettbox.RunState
import com.appshub.bettbox.core.Core
import com.appshub.bettbox.extensions.awaitResult
import com.appshub.bettbox.extensions.resolveDns
import com.appshub.bettbox.models.StartForegroundParams
import com.appshub.bettbox.models.VpnOptions
import com.appshub.bettbox.modules.SuspendModule
import com.appshub.bettbox.services.BaseServiceInterface
import com.appshub.bettbox.services.BettboxService
import com.appshub.bettbox.services.BettboxVpnService
import com.google.gson.Gson
import io.flutter.embedding.engine.plugins.FlutterPlugin
import io.flutter.plugin.common.BinaryMessenger
import io.flutter.plugin.common.MethodCall
import io.flutter.plugin.common.MethodChannel
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.SupervisorJob
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.Job
import java.util.Collections
import kotlinx.coroutines.delay
import kotlinx.coroutines.isActive
import kotlinx.coroutines.launch
import kotlinx.coroutines.withContext
import kotlinx.coroutines.withTimeoutOrNull
import java.net.InetSocketAddress
import java.util.concurrent.CopyOnWriteArrayList
import java.util.concurrent.ConcurrentHashMap
import java.util.concurrent.atomic.AtomicBoolean
import kotlin.concurrent.withLock

data object VpnPlugin : FlutterPlugin, MethodChannel.MethodCallHandler {
    private var bettBoxService: BaseServiceInterface? = null
    private var options: VpnOptions? = null

    private var isBind = false
    private val isBinding = AtomicBoolean(false)

    private var job = SupervisorJob()
    private var scope = CoroutineScope(Dispatchers.Default + job as kotlin.coroutines.CoroutineContext)
    private var lastStartForegroundParams: StartForegroundParams? = null
    private val uidPageNameMap = ConcurrentHashMap<Int, String>()
    private var suspendModule: SuspendModule? = null

    private var quickResponseEnabled = false
    private var disconnectCount = 0
    private var disconnectWindowStart = 0L
    private val disconnectWindowMs = 5000L
    private val maxDisconnectsInWindow = 3
    private var lastNetworkType: Int? = null
    private var lastDns = ""

    val networks: MutableSet<Network> = Collections.newSetFromMap(ConcurrentHashMap())

    private val connectivity by lazy {
        BettboxApplication.getAppContext().getSystemService<ConnectivityManager>()
    }

    private var bindTimeoutJob: Job? = null
    private val attachedMessengers = mutableSetOf<BinaryMessenger>()
    private val channelMap = ConcurrentHashMap<BinaryMessenger, MethodChannel>()
    private val activeChannels = CopyOnWriteArrayList<MethodChannel>()
    private val networkCallbackRegistered = AtomicBoolean(false)

    private val connection = object : ServiceConnection {
        override fun onServiceConnected(className: ComponentName, service: IBinder) {
            bindTimeoutJob?.cancel()
            bindTimeoutJob = null
            isBind = true
            isBinding.set(false)
            bettBoxService = when (service) {
                is BettboxVpnService.LocalBinder -> service.getService()
                is BettboxService.LocalBinder -> service.getService()
                else -> throw Exception("invalid binder")
            }
            handleStartService()
        }

        override fun onServiceDisconnected(arg: ComponentName) {
            isBind = false
            isBinding.set(false)
            bettBoxService = null
            if (GlobalState.currentRunState == RunState.START) {
                android.util.Log.w("VpnPlugin", "Service unexpectedly disconnected while running, syncing state")
                GlobalState.updateRunState(RunState.STOP)
                ServicePlugin.notifyVpnStartFailed()
                ServicePlugin.notifyRunStateChanged(RunState.STOP)
            }
        }
    }

    override fun onAttachedToEngine(flutterPluginBinding: FlutterPlugin.FlutterPluginBinding) {
        val isFirstAttach = attachedMessengers.isEmpty()
        attachedMessengers.add(flutterPluginBinding.binaryMessenger)

        if (job.isCancelled) {
            job = SupervisorJob()
            scope = CoroutineScope(Dispatchers.Default + job as kotlin.coroutines.CoroutineContext)
        }

        val channel = MethodChannel(flutterPluginBinding.binaryMessenger, "vpn")
        channel.setMethodCallHandler(this)
        channelMap[flutterPluginBinding.binaryMessenger] = channel
        activeChannels.add(channel)

        if (isFirstAttach) {
            scope.launch { registerNetworkCallback() }
        }

        if (GlobalState.currentRunState == RunState.START && bettBoxService == null) {
            android.util.Log.d("VpnPlugin", "VPN is running but service connection lost, rebinding...")
            options?.let { bindService() }
        }
    }

    override fun onDetachedFromEngine(flutterPluginBinding: FlutterPlugin.FlutterPluginBinding) {
        attachedMessengers.remove(flutterPluginBinding.binaryMessenger)
        channelMap.remove(flutterPluginBinding.binaryMessenger)?.let { channel ->
            channel.setMethodCallHandler(null)
            activeChannels.remove(channel)
        }

        if (attachedMessengers.isEmpty()) {
            unRegisterNetworkCallback()
            job.cancel()
        }
    }

    override fun onMethodCall(call: MethodCall, result: MethodChannel.Result) {
        when (call.method) {
            "start" -> {
                try {
                    val data = call.argument<String>("data")
                    if (data == null) {
                        result.error("INVALID_ARGUMENT", "data parameter is required", null)
                        return
                    }
                    val vpnOptions = Gson().fromJson(data, VpnOptions::class.java)
                    result.success(handleStart(vpnOptions))
                } catch (e: Exception) {
                    android.util.Log.e("VpnPlugin", "Failed to start VPN: ${e.message}")
                    result.error("PARSE_ERROR", "Failed to parse VpnOptions: ${e.message}", null)
                }
            }

            "stop" -> {
                handleStop()
                result.success(true)
            }

            "getLocalIpAddresses" -> {
                result.success(getLocalIpAddresses())
            }

            "setSmartStopped" -> {
                val value = call.argument<Boolean>("value") ?: false
                GlobalState.isSmartStopped = value
                result.success(true)
            }

            "isSmartStopped" -> {
                result.success(GlobalState.isSmartStopped)
            }

            "smartStop" -> {
                handleSmartStop()
                result.success(true)
            }

            "smartResume" -> {
                val data = call.argument<String>("data")
                result.success(handleSmartResume(Gson().fromJson(data, VpnOptions::class.java)))
            }
            
            "setQuickResponse" -> {
                quickResponseEnabled = call.argument<Boolean>("enabled") ?: false
                result.success(true)
            }

            "status" -> {
                result.success(GlobalState.currentRunState == RunState.START)
            }

            else -> {
                result.notImplemented()
            }
        }
    }
    
    fun setQuickResponse(enabled: Boolean) {
        quickResponseEnabled = enabled
    }

    fun getLocalIpAddresses(): List<String> = runCatching {
        networks.flatMap { network ->
            connectivity?.getLinkProperties(network)
                ?.linkAddresses
                ?.mapNotNull { it.address }
                ?.filter { !it.isLoopbackAddress && it.hostAddress?.contains(":") == false }
                ?.mapNotNull { it.hostAddress }
                ?: emptyList()
        }
    }.getOrElse {
        android.util.Log.e("VpnPlugin", "getLocalIpAddresses error: ${it.message}")
        emptyList()
    }

    fun handleStart(options: VpnOptions): Boolean {
        onUpdateNetwork()
        if (options.enable != this.options?.enable) {
            this.bettBoxService = null
        }
        this.options = options
        when (options.enable) {
            true -> handleStartVpn()
            false -> handleStartService()
        }
        return true
    }

    private fun handleStartVpn() {
        GlobalState.getCurrentAppPlugin()?.requestVpnPermission {
            handleStartService()
        }
    }

    fun requestGc() {
        invokeDart("gc")
    }

    fun onUpdateNetwork() {
        val dns = when {
            networks.isNotEmpty() -> {
                networks.flatMap { network ->
                    connectivity?.resolveDns(network) ?: emptyList()
                }.toSet()
            }
            else -> {
                val cm = connectivity
                val activeNetwork = cm?.activeNetwork
                if (activeNetwork != null && cm != null) {
                    cm.resolveDns(activeNetwork).toSet()
                } else {
                    emptySet()
                }
            }
        }.let { dnsSet ->
            when {
                dnsSet.isNotEmpty() -> dnsSet.joinToString(",")
                else -> getAllNetworksDns()
            }
        }
        if (dns == lastDns) return
        lastDns = dns
        invokeDart("dnsChanged", dns)
    }
    private fun getAllNetworksDns(): String {
        return runCatching {
            connectivity?.allNetworks?.flatMap { network ->
                connectivity?.resolveDns(network) ?: emptyList()
            }?.filter { it.isNotBlank() }?.toSet()?.joinToString(",") ?: ""
        }.getOrElse { "" }
    }

    private val callback = object : ConnectivityManager.NetworkCallback() {
        override fun onAvailable(network: Network) {
            networks.add(network)
            onUpdateNetwork()
            handleNetworkChange()
        }

        override fun onLost(network: Network) {
            networks.remove(network)
            onUpdateNetwork()
            handleNetworkChange()
        }
    }

    private val request = NetworkRequest.Builder().apply {
        addCapability(NetworkCapabilities.NET_CAPABILITY_NOT_VPN)
        addCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET)
        addCapability(NetworkCapabilities.NET_CAPABILITY_NOT_RESTRICTED)
    }.build()

    private fun registerNetworkCallback() {
        if (!networkCallbackRegistered.compareAndSet(false, true)) return
        runCatching {
            networks.clear()
            connectivity?.registerNetworkCallback(request, callback)
        }.onFailure {
            networkCallbackRegistered.set(false)
            android.util.Log.e("VpnPlugin", "Failed to register network callback: ${it.message}")
        }
    }

    private fun unRegisterNetworkCallback() {
        if (!networkCallbackRegistered.compareAndSet(true, false)) return
        runCatching {
            connectivity?.unregisterNetworkCallback(callback)
        }.onFailure {
            android.util.Log.e("VpnPlugin", "Failed to unregister network callback: ${it.message}")
        }.also {
            networks.clear()
            onUpdateNetwork()
        }
    }
    
    private fun handleNetworkChange() {
        val currentNetworkType = getCurrentNetworkType()
        if (lastNetworkType == null) {
            lastNetworkType = currentNetworkType
            return
        }
        
        if (currentNetworkType != lastNetworkType) {
            lastNetworkType = currentNetworkType
            
            ServicePlugin.notifyNetworkChanged()
            
            if (!quickResponseEnabled) return
            if (GlobalState.currentRunState != RunState.START) return

            val now = System.currentTimeMillis()
            
            if (now - disconnectWindowStart > disconnectWindowMs) {
                disconnectWindowStart = now
                disconnectCount = 0
            }
            
            if (disconnectCount < maxDisconnectsInWindow) {
                disconnectCount++
                android.util.Log.d("VpnPlugin", "Quick Response: Network changed, closing connections ($disconnectCount/$maxDisconnectsInWindow)")
                invokeDart("closeConnections")
            } else {
                android.util.Log.d("VpnPlugin", "Quick Response: Disconnect limit reached, ignoring")
            }
        }
    }

    private fun invokeDart(method: String, arguments: Any? = null) {
        if (activeChannels.isEmpty()) return
        scope.launch {
            withContext(Dispatchers.Main) {
                activeChannels.forEach { channel ->
                    runCatching { channel.invokeMethod(method, arguments) }
                        .onFailure {
                            android.util.Log.w("VpnPlugin", "invokeDart($method) failed: ${it.message}")
                        }
                }
            }
        }
    }
    
    private fun getCurrentNetworkType(): Int {
        val activeNetwork = connectivity?.activeNetwork ?: return -1
        val caps = connectivity?.getNetworkCapabilities(activeNetwork) ?: return -1
        return when {
            caps.hasTransport(NetworkCapabilities.TRANSPORT_WIFI) -> 1
            caps.hasTransport(NetworkCapabilities.TRANSPORT_CELLULAR) -> 2
            else -> 0
        }
    }

    private suspend fun startForeground() {
        val shouldUpdate = GlobalState.runLock.withLock {
            GlobalState.currentRunState == RunState.START || GlobalState.isSmartStopped
        }
        if (!shouldUpdate) return

        try {
            bettBoxService?.startForeground()
        } catch (e: Exception) {
            android.util.Log.e("VpnPlugin", "startForeground error: ${e.message}")
        }
    }

    fun updateNotificationIcon() {
        scope.launch {
            runCatching {
                (bettBoxService as? BettboxService)?.resetNotificationBuilder()
                (bettBoxService as? BettboxVpnService)?.resetNotificationBuilder()
                bettBoxService?.startForeground()
            }.onFailure {
                android.util.Log.e("VpnPlugin", "updateNotificationIcon error: ${it.message}")
            }
        }
    }

    fun getStatus(): Boolean {
        return GlobalState.runLock.withLock {
            GlobalState.currentRunState == RunState.START && bettBoxService != null
        }
    }

    private fun handleStartService() {
        if (GlobalState.isCurrentlyStopping()) {
            android.util.Log.w("VpnPlugin", "VPN is in stopping state, ignore start request")
            return
        }
        if (bettBoxService == null) {
            bindService()
            return
        }
        
        scope.launch {
            try {
                val prepareIntent = try {
                    android.net.VpnService.prepare(BettboxApplication.getAppContext())
                } catch (e: Exception) {
                    null
                }

                if (prepareIntent != null) {
                    android.util.Log.w("VpnPlugin", "VPN permission required before start")
                    GlobalState.updateRunState(RunState.STOP)
                    withContext(Dispatchers.Main) {
                        GlobalState.getCurrentAppPlugin()?.requestVpnPermission {
                            handleStartService()
                        }
                    }
                    return@launch
                }

                val currentOptions = options
                val startAllowed = GlobalState.runLock.withLock {
                    if (GlobalState.currentRunState == RunState.START) {
                        android.util.Log.d("VpnPlugin", "Service already running, refreshing notification")
                        scope.launch { startForeground() }
                        return@withLock false
                    }
                    if (currentOptions == null) {
                        android.util.Log.e("VpnPlugin", "Start failed: options is null")
                        GlobalState.updateRunState(RunState.STOP)
                        return@withLock false
                    }
                    GlobalState.updateRunState(RunState.START)
                    lastStartForegroundParams = null
                    true
                }

                if (!startAllowed || currentOptions == null) return@launch

                performStartCore(currentOptions, retry = true, notifyOnFailure = true)
            } catch (e: Exception) {
                android.util.Log.e("VpnPlugin", "Fatal error in start flow: ${e.message}")
                GlobalState.updateRunState(RunState.STOP)
            }
        }
    }

    private suspend fun performStartCore(
        currentOptions: VpnOptions,
        retry: Boolean,
        notifyOnFailure: Boolean
    ) {
        var fd: Int? = 0
        try {
            fd = bettBoxService?.start(currentOptions)
        } catch (e: Exception) {
            android.util.Log.e("VpnPlugin", "First start attempt failed: ${e.message}")
        }

        if (fd == null || (currentOptions.enable && fd <= 0)) {
            if (retry) {
                android.util.Log.w("VpnPlugin", "VPN establish failed, retrying...")
                delay(300)
                try {
                    fd = bettBoxService?.start(currentOptions)
                } catch (e: Exception) {
                    android.util.Log.e("VpnPlugin", "Retry start failed: ${e.message}")
                }
            }
        }

        if (fd == null || (currentOptions.enable && fd <= 0)) {
            android.util.Log.e("VpnPlugin", "VPN start failed after all attempts")
            GlobalState.runLock.withLock { GlobalState.updateRunState(RunState.STOP) }
            if (notifyOnFailure) {
                ServicePlugin.notifyVpnStartFailed()
            }
            return
        }

        val canStart = GlobalState.runLock.withLock {
            if (GlobalState.currentRunState != RunState.START) {
                bettBoxService?.stop()
                false
            } else true
        }
        if (!canStart) return

        com.appshub.bettbox.core.Core.startTun(
            fd = fd ?: 0,
            protect = this@VpnPlugin::protect,
            resolverProcess = this@VpnPlugin::resolverProcess,
        )

        GlobalState.runLock.withLock {
            if (GlobalState.currentRunState != RunState.START) {
                Core.stopTun()
                return@withLock
            }
            scope.launch { startForeground() }
            if (currentOptions.dozeSuspend) {
                suspendModule?.uninstall()
                suspendModule = SuspendModule(BettboxApplication.getAppContext())
                suspendModule?.install()
            }
        }
        onUpdateNetwork()
    }

    private fun protect(fd: Int): Boolean = runCatching {
        (bettBoxService as? BettboxVpnService)?.protect(fd) == true
    }.getOrElse {
        android.util.Log.e("VpnPlugin", "protect error: ${it.message}")
        false
    }

    private fun resolverProcess(
        protocol: Int,
        source: InetSocketAddress,
        target: InetSocketAddress,
        uid: Int,
    ): String = runCatching {
        val nextUid = if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q) {
            connectivity?.getConnectionOwnerUid(protocol, source, target) ?: -1
        } else {
            uid
        }
        if (nextUid == -1) {
            return@runCatching ""
        }
        uidPageNameMap.getOrPut(nextUid) {
            BettboxApplication.getAppContext().packageManager?.getPackagesForUid(nextUid)
                ?.firstOrNull() ?: ""
        }
    }.getOrElse {
        android.util.Log.e("VpnPlugin", "resolverProcess error: ${it.message}")
        ""
    }

    fun handleStop(force: Boolean = false) {
        val serviceRef: BaseServiceInterface?
        val wasBound: Boolean
        val shouldForceStop: Boolean
        GlobalState.runLock.withLock {
            if (!force && GlobalState.currentRunState == RunState.STOP) return
            GlobalState.updateIsStopping(true)
            GlobalState.updateRunState(RunState.STOP)
            serviceRef = bettBoxService
            wasBound = isBind
            shouldForceStop = force || bettBoxService == null
        }

        suspendModule?.uninstall()
        suspendModule = null
        Core.stopTun()
        serviceRef?.stop()

        runCatching {
            if (wasBound) {
                BettboxApplication.getAppContext().unbindService(connection)
                isBind = false
            }
            bettBoxService = null
        }.onFailure {
            android.util.Log.e("VpnPlugin", "unbindService error: ${it.message}")
        }

        val context = BettboxApplication.getAppContext()
        if (shouldForceStop) {
            context.stopService(Intent(context, BettboxVpnService::class.java))
            context.stopService(Intent(context, BettboxService::class.java))
        }

        runCatching {
            context.getSystemService<android.app.NotificationManager>()
                ?.cancel(GlobalState.NOTIFICATION_ID)
        }.onFailure {
            android.util.Log.e("VpnPlugin", "cancel notification error: ${it.message}")
        }

        scope.launch {
            delay(300)
            GlobalState.updateIsStopping(false)
            delay(200)
            withContext(Dispatchers.Main) {
                GlobalState.handleTryDestroy()
            }
        }
    }

    fun handleSmartStop() {
        GlobalState.runLock.withLock {
            if (GlobalState.currentRunState == RunState.STOP) return
            GlobalState.updateRunState(RunState.STOP)
            GlobalState.isSmartStopped = true
        }
        suspendModule?.uninstall()
        suspendModule = null
        Core.stopTun()
        scope.launch {
            startForeground()
        }
    }

    fun handleSmartResume(options: VpnOptions): Boolean {
        scope.launch {
            val startAllowed = GlobalState.runLock.withLock {
                if (GlobalState.currentRunState == RunState.START) return@withLock false
                GlobalState.isSmartStopped = false
                this@VpnPlugin.options = options

                if (bettBoxService == null) {
                    bindService()
                    return@withLock false
                }

                GlobalState.updateRunState(RunState.START)
                lastStartForegroundParams = null
                true
            }
            if (!startAllowed) return@launch

            performStartCore(options, retry = false, notifyOnFailure = false)
        }
        return true
    }

    private fun bindService() {
        if (!isBinding.compareAndSet(false, true)) return

        bindTimeoutJob?.cancel()
        bindTimeoutJob = scope.launch {
            delay(10_000L)
            if (isBinding.compareAndSet(true, false)) {
                android.util.Log.w("VpnPlugin", "bindService timeout (10s), resetting bind state")
                GlobalState.runLock.withLock {
                    if (GlobalState.currentRunState == RunState.PENDING) {
                        GlobalState.updateRunState(RunState.STOP)
                    }
                }
            }
        }

        try {
            if (isBind) {
                BettboxApplication.getAppContext().unbindService(connection)
                isBind = false
            }
            val intent = Intent(
                BettboxApplication.getAppContext(),
                if (options?.enable == true) BettboxVpnService::class.java else BettboxService::class.java
            )
            val res = BettboxApplication.getAppContext().bindService(intent, connection, Context.BIND_AUTO_CREATE)
            if (!res) {
                isBinding.set(false)
                bindTimeoutJob?.cancel()
                bindTimeoutJob = null
                android.util.Log.e("VpnPlugin", "bindService returned false (rejected by system)")
            }
        } catch (e: Exception) {
            isBinding.set(false)
            bindTimeoutJob?.cancel()
            bindTimeoutJob = null
            android.util.Log.e("VpnPlugin", "bindService error: ${e.message}")
        }
    }
}

================================================
FILE: android/app/src/main/kotlin/com/appshub/bettbox/receivers/BootReceiver.kt
================================================
package com.appshub.bettbox.receivers

import android.content.BroadcastReceiver
import android.content.Context
import android.content.Intent
import android.util.Log
import com.appshub.bettbox.GlobalState

class BootReceiver : BroadcastReceiver() {
    companion object {
        private const val TAG = "BootReceiver"
        private const val PREFS_NAME = "FlutterSharedPreferences"
        private const val AUTO_LAUNCH_KEY = "flutter.autoLaunch"
    }

    override fun onReceive(context: Context, intent: Intent) {
        if (intent.action != Intent.ACTION_BOOT_COMPLETED) return

        Log.d(TAG, "Device boot completed, checking autoLaunch setting")

        runCatching {
            val prefs = context.getSharedPreferences(PREFS_NAME, Context.MODE_PRIVATE)
            val autoLaunch = prefs.getBoolean(AUTO_LAUNCH_KEY, false)

            if (autoLaunch) {
                Log.d(TAG, "AutoLaunch enabled, triggering silent background boot")
                GlobalState.initServiceEngine(listOf("boot"))
            } else {
                Log.d(TAG, "AutoLaunch disabled, skipping background boot")
            }
        }.onFailure { Log.e(TAG, "Error in BootReceiver", it) }
    }
}


================================================
FILE: android/app/src/main/kotlin/com/appshub/bettbox/receivers/PackageReplacedReceiver.kt
================================================
package com.appshub.bettbox.receivers

import android.content.BroadcastReceiver
import android.content.Context
import android.content.Intent
import android.os.Build
import android.util.Log
import com.appshub.bettbox.GlobalState
import com.appshub.bettbox.RunState

class PackageReplacedReceiver : BroadcastReceiver() {
    companion object {
        private const val TAG = "PackageReplacedReceiver"
    }

    override fun onReceive(context: Context, intent: Intent) {
        if (intent.action != Intent.ACTION_MY_PACKAGE_REPLACED) return
        val pending = goAsync()
        if (Build.VERSION.SDK_INT >= 36) {
            GlobalState.handleStart(skipDebounce = true)
        } else {
            runCatching {
                android.net.VpnService.prepare(context)
            }.onFailure { Log.e(TAG, "Prepare failed", it) }
        }
        
        pending.finish()
    }
}


================================================
FILE: android/app/src/main/kotlin/com/appshub/bettbox/services/BaseServiceInterface.kt
================================================
package com.appshub.bettbox.services

import android.annotation.SuppressLint
import android.app.Notification
import android.app.Notification.FOREGROUND_SERVICE_IMMEDIATE
import android.app.NotificationChannel
import android.app.NotificationManager
import android.app.PendingIntent
import android.app.Service
import android.content.pm.PackageManager
import android.os.Build
import androidx.core.app.NotificationCompat
import com.appshub.bettbox.GlobalState
import com.appshub.bettbox.R
import com.appshub.bettbox.models.VpnOptions
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.Deferred
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.async
import android.content.ComponentName
import android.content.Intent

interface BaseServiceInterface {
    suspend fun start(options: VpnOptions): Int
    fun stop()
    suspend fun startForeground()
}

fun Service.createBettboxNotificationBuilder(): Deferred<NotificationCompat.Builder> =
    CoroutineScope(Dispatchers.Main).async {
        val defaultComponent = ComponentName(packageName, "com.appshub.bettbox.MainActivity")
        val lightComponent = ComponentName(packageName, "com.appshub.bettbox.MainActivityLight")

        val defaultState = runCatching { packageManager.getComponentEnabledSetting(defaultComponent) }
            .getOrDefault(PackageManager.COMPONENT_ENABLED_STATE_DEFAULT)
        val lightState = runCatching { packageManager.getComponentEnabledSetting(lightComponent) }
            .getOrDefault(PackageManager.COMPONENT_ENABLED_STATE_DEFAULT)

        val targetComponent = when {
            lightState == PackageManager.COMPONENT_ENABLED_STATE_ENABLED -> lightComponent
            lightState == PackageManager.COMPONENT_ENABLED_STATE_DISABLED -> defaultComponent
            defaultState == PackageManager.COMPONENT_ENABLED_STATE_ENABLED -> defaultComponent
            defaultState == PackageManager.COMPONENT_ENABLED_STATE_DISABLED -> lightComponent
            else -> runCatching {
                packageManager.getActivityInfo(lightComponent, 0)
                    .takeIf { it.enabled }?.let { lightComponent }
            }.getOrNull() ?: defaultComponent
        }

        android.util.Log.d("Notification", "Using ${targetComponent.className}")

        val intent = Intent().apply {
            component = targetComponent
            action = Intent.ACTION_MAIN
            addCategory(Intent.CATEGORY_LAUNCHER)
            flags = Intent.FLAG_ACTIVITY_NEW_TASK or Intent.FLAG_ACTIVITY_CLEAR_TOP
        }

        val flags = if (Build.VERSION.SDK_INT >= 31) {
            PendingIntent.FLAG_IMMUTABLE or PendingIntent.FLAG_UPDATE_CURRENT
        } else {
            PendingIntent.FLAG_UPDATE_CURRENT
        }
        val pendingIntent = PendingIntent.getActivity(this@createBettboxNotificationBuilder, 0, intent, flags)

        NotificationCompat.Builder(this@createBettboxNotificationBuilder, GlobalState.NOTIFICATION_CHANNEL).apply {
            setSmallIcon(R.drawable.ic)
            setContentTitle("Bettbox")
            setContentIntent(pendingIntent)
            setCategory(NotificationCompat.CATEGORY_SERVICE)
            if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.S) {
                foregroundServiceBehavior = FOREGROUND_SERVICE_IMMEDIATE
            }
            setOngoing(true)
            setShowWhen(false)
            setOnlyAlertOnce(true)
        }
    }

fun Service.ensureNotificationChannel() {
    if (Build.VERSION.SDK_INT < Build.VERSION_CODES.O) return
    val manager = getSystemService(NotificationManager::class.java)
    val channel = manager?.getNotificationChannel(GlobalState.NOTIFICATION_CHANNEL)
    if (channel == null || channel.importance != NotificationManager.IMPORTANCE_HIGH) {
        manager?.createNotificationChannel(
            NotificationChannel(GlobalState.NOTIFICATION_CHANNEL, "Bettbox Service", NotificationManager.IMPORTANCE_HIGH)
        )
    }
}

@SuppressLint("ForegroundServiceType")
fun Service.startForeground(notification: Notification, useSpecialType: Boolean = true) {
    ensureNotificationChannel()

    val type = if (Build.VERSION.SDK_INT >= 34 && useSpecialType && !GlobalState.isSmartStopped) {
        android.content.pm.ServiceInfo.FOREGROUND_SERVICE_TYPE_SPECIAL_USE
    } else {
        0
    }

    runCatching {
        if (type != 0) {
            startForeground(GlobalState.NOTIFICATION_ID, notification, type)
        } else {
            startForeground(GlobalState.NOTIFICATION_ID, notification)
        }
    }.onFailure {
        android.util.Log.e("BaseServiceInterface", "startForeground failed: ${it.message}")
        startForeground(GlobalState.NOTIFICATION_ID, notification)
    }
}


================================================
FILE: android/app/src/main/kotlin/com/appshub/bettbox/services/BettboxService.kt
================================================
package com.appshub.bettbox.services

import android.annotation.SuppressLint
import android.app.Service
import android.content.Intent
import android.os.Binder
import android.os.Build
import android.os.IBinder
import android.text.SpannableString
import android.text.Spanned
import android.text.style.RelativeSizeSpan
import androidx.core.app.NotificationCompat
import com.appshub.bettbox.GlobalState
import com.appshub.bettbox.R
import com.appshub.bettbox.models.VpnOptions

class BettboxService : Service(), BaseServiceInterface {

    @Volatile
    private var cachedBuilder: NotificationCompat.Builder? = null
    private val binder = LocalBinder()
    @Volatile
    private var hasStartedForeground = false

    inner class LocalBinder : Binder() {
        fun getService() = this@BettboxService
    }

    override suspend fun start(options: VpnOptions) = 0

    override fun stop() {
        hasStartedForeground = false
        stopSelf()
        if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q) {
            stopForeground(STOP_FOREGROUND_REMOVE)
        }
    }

    fun resetNotificationBuilder() {
        cachedBuilder = null
    }

    private suspend fun notificationBuilder() =
        cachedBuilder ?: createBettboxNotificationBuilder().await().also { cachedBuilder = it }

    @SuppressLint("ForegroundServiceType")
    override suspend fun startForeground() {
        ensureNotificationChannel()
        val title: String
        val content: String
        if (GlobalState.isSmartStopped) {
            title = getString(R.string.core_suspended)
            content = getString(R.string.smart_auto_stop_service_running)
        } else {
            title = getString(R.string.core_connected)
            content = getString(R.string.service_running)
        }

        val builder = notificationBuilder()

        val separator = " ‹ "
        val combinedText = "$title$separator$content"
        val spannable = SpannableString(combinedText).apply {
            val startIndex = title.length + separator.length
            if (startIndex in 1..combinedText.length) {
                setSpan(
                    RelativeSizeSpan(0.80f),
                    startIndex,
                    combinedText.length,
                    Spanned.SPAN_EXCLUSIVE_EXCLUSIVE
                )
            }
        }
        val notification = builder.setContentTitle(spannable)
            .setContentText(null)
            .setStyle(null)
            .setTicker(combinedText)
            .build()

        if (!hasStartedForeground) {
            this.startForeground(notification, useSpecialType = !GlobalState.isSmartStopped)
            hasStartedForeground = true
        } else {
            getSystemService(android.app.NotificationManager::class.java)?.notify(GlobalState.NOTIFICATION_ID, notification)
        }
    }

    override fun onTrimMemory(level: Int) {
        super.onTrimMemory(level)
        GlobalState.getCurrentVPNPlugin()?.requestGc()
    }

    override fun onBind(intent: Intent): IBinder = binder

    override fun onDestroy() {
        stop()
        super.onDestroy()
    }
}


================================================
FILE: android/app/src/main/kotlin/com/appshub/bettbox/services/BettboxTileService.kt
================================================
package com.appshub.bettbox.services

import android.os.Build
import android.service.quicksettings.Tile
import android.service.quicksettings.TileService
import androidx.annotation.RequiresApi
import com.appshub.bettbox.GlobalState
import com.appshub.bettbox.RunState
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.SupervisorJob
import kotlinx.coroutines.cancel
import kotlinx.coroutines.flow.launchIn
import kotlinx.coroutines.flow.onEach
import kotlinx.coroutines.launch

@RequiresApi(Build.VERSION_CODES.N)
class BettboxTileService : TileService() {

    private var scope: CoroutineScope? = null

    private fun updateTile(runState: RunState) {
        qsTile?.apply {
            state = when (runState) {
                RunState.START -> Tile.STATE_ACTIVE
                RunState.PENDING -> Tile.STATE_UNAVAILABLE
                RunState.STOP -> Tile.STATE_INACTIVE
            }
            updateTile()
        }
    }

    override fun onStartListening() {
        super.onStartListening()
        scope = CoroutineScope(SupervisorJob() + Dispatchers.Main.immediate)
        GlobalState.syncStatus()
        updateTile(GlobalState.currentRunState)
        scope?.launch {
            GlobalState.runState.onEach { updateTile(it) }.launchIn(this)
        }
    }

    override fun onStopListening() {
        if (GlobalState.currentRunState == RunState.PENDING) {
            GlobalState.syncStatus()
        }
        scope?.cancel()
        scope = null
        super.onStopListening()
    }

    override fun onClick() {
        super.onClick()
        if (Build.VERSION.SDK_INT < Build.VERSION_CODES.UPSIDE_DOWN_CAKE && isLocked) {
            unlockAndRun { GlobalState.handleToggle() }
        } else {
            GlobalState.handleToggle()
        }
    }

    override fun onDestroy() {
        scope?.cancel()
        scope = null
        super.onDestroy()
    }
}

================================================
FILE: android/app/src/main/kotlin/com/appshub/bettbox/services/BettboxVpnService.kt
================================================
package com.appshub.bettbox.services

import android.annotation.SuppressLint
import android.content.Intent
import android.net.ProxyInfo
import android.net.VpnService
import android.os.Binder
import android.os.Build
import android.os.IBinder
import android.os.Parcel
import android.util.Log
import androidx.core.app.NotificationCompat
import com.appshub.bettbox.GlobalState
import com.appshub.bettbox.extensions.getIpv4RouteAddress
import com.appshub.bettbox.extensions.getIpv6RouteAddress
import com.appshub.bettbox.extensions.toCIDR
import com.appshub.bettbox.models.AccessControlMode
import com.appshub.bettbox.models.VpnOptions
import com.appshub.bettbox.plugins.VpnPlugin
import com.appshub.bettbox.R

class BettboxVpnService : VpnService(), BaseServiceInterface {
    companion object {
        private const val TAG = "BettboxVpnService"
    }

    @Volatile
    private var isStopped = false

    @Volatile
    private var hasStartedForeground = false

    override fun onCreate() {
        super.onCreate()
        GlobalState.initServiceEngine()
    }

    override suspend fun start(options: VpnOptions): Int = with(Builder()) {
        options.ipv4Address.takeIf { it.isNotEmpty() }?.let { ipv4 ->
            val cidr = ipv4.toCIDR()
            addAddress(cidr.address, cidr.prefixLength)
            Log.d("addAddress", "address: ${cidr.address} prefixLength:${cidr.prefixLength}")
            val routes = options.getIpv4RouteAddress()
            if (routes.isNotEmpty()) {
                runCatching { routes.forEach { addRoute(it.address, it.prefixLength) } }
                    .onFailure { addRoute("0.0.0.0", 0) }
            } else {
                addRoute("0.0.0.0", 0)
            }
        } ?: addRoute("0.0.0.0", 0)

        if (options.ipv6Address.isNotEmpty()) {
            runCatching {
                val cidr = options.ipv6Address.toCIDR()
                Log.d("addAddress6", "address: ${cidr.address} prefixLength:${cidr.prefixLength}")
                addAddress(cidr.address, cidr.prefixLength)
                val routes = options.getIpv6RouteAddress()
                if (routes.isNotEmpty()) {
                    runCatching { routes.forEach { addRoute(it.address, it.prefixLength) } }
                        .onFailure { addRoute("::", 0) }
                } else {
                    addRoute("::", 0)
                }
            }.onFailure { Log.d("addAddress6", "IPv6 is not supported.") }
        }

        if (options.dnsServerAddress.isNotBlank()) {
            runCatching { addDnsServer(options.dnsServerAddress) }
                .onFailure { Log.e(TAG, "Invalid DNS: ${options.dnsServerAddress}") }
        }

        setMtu(options.mtu.coerceIn(1280..65535).takeIf { it > 0 } ?: 1480)

        options.accessControl.takeIf { it.enable }?.let { ac ->
            when (ac.mode) {
                AccessControlMode.acceptSelected -> (ac.acceptList + packageName).forEach { addAllowedApplication(it) }
                AccessControlMode.rejectSelected -> (ac.rejectList - packageName).forEach { addDisallowedApplication(it) }
            }
        }

        setSession("Bettbox")
        setBlocking(false)
        if (Build.VERSION.SDK_INT >= 29) setMetered(false)
        if (options.allowBypass) allowBypass()

        if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q && options.systemProxy) {
            setHttpProxy(ProxyInfo.buildDirectProxy("127.0.0.1", options.port, options.bypassDomain))
        }

        establish()?.detachFd()?.also { return it }
        Log.e(TAG, "Establish VPN rejected by system")
        -1
    }

    override fun onStartCommand(intent: Intent?, flags: Int, startId: Int) = START_STICKY

    override fun stop() {
        if (isStopped) return
        isStopped = true
        hasStartedForeground = false

        if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q) {
            runCatching { stopForeground(STOP_FOREGROUND_REMOVE) }
                .onFailure { Log.e(TAG, "Failed to stop foreground: ${it.message}") }
        }
        stopSelf()
    }

    @Volatile
    private var cachedBuilder: NotificationCompat.Builder? = null

    fun resetNotificationBuilder() {
        cachedBuilder = null
    }

    private suspend fun notificationBuilder(): NotificationCompat.Builder {
        if (cachedBuilder == null) {
            cachedBuilder = createBettboxNotificationBuilder().await()
        }
        return cachedBuilder!!
    }

    @SuppressLint("ForegroundServiceType")
    override suspend fun startForeground() {
        ensureNotificationChannel()
        val title:
        String
        val content: String
        if (GlobalState.isSmartStopped) {
            title = getString(R.string.core_suspended)
            content = getString(R.string.smart_auto_stop_service_running)
        } else {
            title = getString(R.string.core_connected)
            content = getString(R.string.service_running)
        }

        val builder = notificationBuilder()

        val separator = " ︙ "
        val combinedText = "$title$separator$content"
        val spannable = android.text.SpannableString(combinedText)
        val startIndex = title.length + separator.length
        if (startIndex in 1..combinedText.length) {
            spannable.setSpan(
                android.text.style.RelativeSizeSpan(0.80f),
                startIndex,
                combinedText.length,
                android.text.Spanned.SPAN_EXCLUSIVE_EXCLUSIVE
            )
        }
        val notification = builder.setContentTitle(spannable)
            .setContentText(null)
            .setStyle(null)
            .setTicker(combinedText)
            .build()

        if (!hasStartedForeground) {
            this.startForeground(notification, useSpecialType = !GlobalState.isSmartStopped)
            hasStartedForeground = true
        } else {
            getSystemService(android.app.NotificationManager::class.java)?.notify(GlobalState.NOTIFICATION_ID, notification)
        }
    }

    override fun onTrimMemory(level: Int) {
        super.onTrimMemory(level)
        GlobalState.getCurrentVPNPlugin()?.requestGc()
    }

    private val binder = LocalBinder()

    inner class LocalBinder : Binder() {
        fun getService(): BettboxVpnService = this@BettboxVpnService

        override fun onTransact(code: Int, data: Parcel, reply: Parcel?, flags: Int): Boolean =
            runCatching {
                super.onTransact(code, data, reply, flags).also { success ->
                    if (!success) GlobalState.getCurrentTilePlugin()?.handleStop()
                }
            }.getOrElse { Log.e(TAG, "onTransact failed: ${it.message}"); false }
    }

    override fun onBind(intent: Intent?): IBinder? {
        if (intent?.action == VpnService.SERVICE_INTERFACE) {
            return super.onBind(intent)
        }
        return binder
    }

    override fun onUnbind(intent: Intent?): Boolean {
        super.onUnbind(intent)
        return true
    }

    override fun onRevoke() {
        runCatching { VpnPlugin.handleStop() }
        super.onRevoke()
    }

    override fun onDestroy() {
        stop()
        super.onDestroy()
    }
}


================================================
FILE: android/app/src/main/res/drawable/ic_launcher_background_dark.xml
================================================
<?xml version="1.0" encoding="utf-8"?>
<vector xmlns:android="http://schemas.android.com/apk/res/android"
    android:width="108dp"
    android:height="108dp"
    android:viewportWidth="108"
    android:viewportHeight="108">
    <path
        android:fillColor="#292C41"
        android:pathData="M0,0h108v108h-108z"/>
</vector>

================================================
FILE: android/app/src/main/res/drawable/ic_launcher_background_light.xml
================================================
<?xml version="1.0" encoding="utf-8"?>
<vector xmlns:android="http://schemas.android.com/apk/res/android"
    android:width="108dp"
    android:height="108dp"
    android:viewportWidth="108"
    android:viewportHeight="108">
    <path
        android:fillColor="#FFFFFF"
        android:pathData="M0,0h108v108h-108z"/>
</vector>

================================================
FILE: android/app/src/main/res/drawable/ic_launcher_foreground_dark.xml
================================================
<?xml version="1.0" encoding="utf-8"?>
<vector xmlns:android="http://schemas.android.com/apk/res/android"
    android:width="108dp"
    android:height="108dp"
    android:viewportWidth="108"
    android:viewportHeight="108">
    <group
        android:translateX="15.2"
        android:translateY="15.2"
        android:scaleX="0.1"
        android:scaleY="0.1">
        <path
            android:fillColor="#FFFFFF"
            android:pathData="M514.78,480.2h-25.35c-5.34,0-9.18-5.13-7.68-10.25l45.93-156.5c3-10.22,12.38-17.24,23.03-17.24h25.34c5.34,0,9.18,5.13,7.68,10.25l-45.93,156.51c-3,10.22-12.38,17.24-23.03,17.24Z"/>
        <path
            android:fillColor="#FFFFFF"
            android:pathData="M403.29,526.2h-41.01c-8.01,0-13.77-7.7-11.52-15.38l69.74-237.63c4-13.63,16.5-22.99,30.7-22.99h41.02c8.01,0,13.77,7.69,11.51,15.38l-69.74,237.64c-4,13.63-16.5,22.99-30.7,22.99Z"/>
        <path
            android:fillColor="#FFFFFF"
            android:pathData="M267.79,572.2h-59.68c-10.68,0-18.36-10.26-15.35-20.5l94.39-321.63c4.5-15.33,18.57-25.86,34.54-25.86h59.67c10.68,0,18.36,10.26,15.36,20.51l-94.39,321.63c-4.5,15.33-18.56,25.86-34.54,25.86Z"/>
    </group>
</vector>

================================================
FILE: android/app/src/main/res/drawable/ic_launcher_foreground_light.xml
================================================
<?xml version="1.0" encoding="utf-8"?>
<vector xmlns:android="http://schemas.android.com/apk/res/android"
    android:width="108dp"
    android:height="108dp"
    android:viewportWidth="108"
    android:viewportHeight="108">
    <group
        android:translateX="15.2"
        android:translateY="15.2"
        android:scaleX="0.1"
        android:scaleY="0.1">
        <path
            android:fillColor="#6890BE"
            android:pathData="M514.78,480.2h-25.35c-5.34,0-9.18-5.13-7.68-10.25l45.93-156.5c3-10.22,12.38-17.24,23.03-17.24h25.34c5.34,0,9.18,5.13,7.68,10.25l-45.93,156.51c-3,10.22-12.38,17.24-23.03,17.24Z"/>
        <path
            android:fillColor="#334663"
            android:pathData="M403.29,526.2h-41.01c-8.01,0-13.77-7.7-11.52-15.38l69.74-237.63c4-13.63,16.5-22.99,30.7-22.99h41.02c8.01,0,13.77,7.69,11.51,15.38l-69.74,237.64c-4,13.63-16.5,22.99-30.7,22.99Z"/>
        <path
            android:fillColor="#292C41"
            android:pathData="M267.79,572.2h-59.68c-10.68,0-18.36-10.26-15.35-20.5l94.39-321.63c4.5-15.33,18.57-25.86,34.54-25.86h59.67c10.68,0,18.36,10.26,15.36,20.51l-94.39,321.63c-4.5,15.33-18.56,25.86-34.54,25.86Z"/>
    </group>
</vector>

================================================
FILE: android/app/src/main/res/drawable/ic_notification_dark.xml
================================================
<?xml version="1.0" encoding="utf-8"?>
<!-- Dark icon notification -->
<vector xmlns:android="http://schemas.android.com/apk/res/android"
    android:width="24dp"
    android:height="24dp"
    android:viewportWidth="24"
    android:viewportHeight="24">
    <path
        android:fillColor="#FFFFFF"
        android:pathData="M12.14,11.28h-0.59c-0.13,0-0.22-0.12-0.18-0.24l1.08-3.67c0.07-0.24,0.29-0.4,0.54-0.4h0.59c0.13,0,0.22,0.12,0.18,0.24l-1.08,3.67c-0.07,0.24-0.29,0.4-0.54,0.4Z"/>
    <path
        android:fillColor="#FFFFFF"
        android:pathData="M9.46,12.35h-0.96c-0.19,0-0.32-0.18-0.27-0.36l1.64-5.58c0.09-0.32,0.39-0.54,0.72-0.54h0.96c0.19,0,0.32,0.18,0.27,0.36l-1.64,5.58c-0.09,0.32-0.39,0.54-0.72,0.54Z"/>
    <path
        android:fillColor="#FFFFFF"
        android:pathData="M6.29,13.43h-1.4c-0.25,0-0.43-0.24-0.36-0.48l2.22-7.55c0.11-0.36,0.44-0.61,0.81-0.61h1.4c0.25,0,0.43,0.24,0.36,0.48l-2.22,7.55c-0.11,0.36-0.44,0.61-0.81,0.61Z"/>
</vector>


================================================
FILE: android/app/src/main/res/drawable/ic_notification_light.xml
================================================
<?xml version="1.0" encoding="utf-8"?>
<!-- Light icon notification -->
<vector xmlns:android="http://schemas.android.com/apk/res/android"
    android:width="24dp"
    android:height="24dp"
    android:viewportWidth="24"
    android:viewportHeight="24">
    <path
        android:fillColor="#6890BE"
        android:pathData="M12.14,11.28h-0.59c-0.13,0-0.22-0.12-0.18-0.24l1.08-3.67c0.07-0.24,0.29-0.4,0.54-0.4h0.59c0.13,0,0.22,0.12,0.18,0.24l-1.08,3.67c-0.07,0.24-0.29,0.4-0.54,0.4Z"/>
    <path
        android:fillColor="#334663"
        android:pathData="M9.46,12.35h-0.96c-0.19,0-0.32-0.18-0.27-0.36l1.64-5.58c0.09-0.32,0.39-0.54,0.72-0.54h0.96c0.19,0,0.32,0.18,0.27,0.36l-1.64,5.58c-0.09,0.32-0.39,0.54-0.72,0.54Z"/>
    <path
        android:fillColor="#292C41"
        android:pathData="M6.29,13.43h-1.4c-0.25,0-0.43-0.24-0.36-0.48l2.22-7.55c0.11-0.36,0.44-0.61,0.81-0.61h1.4c0.25,0,0.43,0.24,0.36,0.48l-2.22,7.55c-0.11,0.36-0.44,0.61-0.81,0.61Z"/>
</vector>


================================================
FILE: android/app/src/main/res/drawable/ic_tile.xml
================================================
<?xml version="1.0" encoding="utf-8"?>
<!-- Light mode icon -->
<bitmap xmlns:android="http://schemas.android.com/apk/res/android"
    android:src="@drawable/ic_shortcut_black" />



================================================
FILE: android/app/src/main/res/drawable/launch_background.xml
================================================
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
    <item>
        <shape android:shape="rectangle">
            <solid android:color="#FFFFFF" />
        </shape>
    </item>
    <item
        android:drawable="@drawable/ic_launcher_foreground_light"
        android:gravity="center" />
</layer-list>


================================================
FILE: android/app/src/main/res/drawable/tv_banner.xml
================================================
<?xml version="1.0" encoding="utf-8"?>
<vector xmlns:android="http://schemas.android.com/apk/res/android"
    android:width="320dp"
    android:height="180dp"
    android:viewportWidth="320"
    android:viewportHeight="180">
    <path
        android:fillColor="#292C41"
        android:pathData="M0,0h320v180h-320z"/>
    <group
        android:translateX="106"
        android:translateY="36">
        <group
            android:translateX="15.2"
            android:translateY="15.2"
            android:scaleX="0.1"
            android:scaleY="0.1">
            <path
                android:fillColor="#FFFFFF"
                android:pathData="M514.78,480.2h-25.35c-5.34,0-9.18-5.13-7.68-10.25l45.93-156.5c3-10.22,12.38-17.24,23.03-17.24h25.34c5.34,0,9.18,5.13,7.68,10.25l-45.93,156.51c-3,10.22-12.38,17.24-23.03,17.24Z"/>
            <path
                android:fillColor="#FFFFFF"
                android:pathData="M403.29,526.2h-41.01c-8.01,0-13.77-7.7-11.52-15.38l69.74-237.63c4-13.63,16.5-22.99,30.7-22.99h41.02c8.01,0,13.77,7.69,11.51,15.38l-69.74,237.64c-4,13.63-16.5,22.99-30.7,22.99Z"/>
            <path
                android:fillColor="#FFFFFF"
                android:pathData="M267.79,572.2h-59.68c-10.68,0-18.36-10.26-15.35-20.5l94.39-321.63c4.5-15.33,18.57-25.86,34.54-25.86h59.67c10.68,0,18.36,10.26,15.36,20.51l-94.39,321.63c-4.5,15.33-18.56,25.86-34.54,25.86Z"/>
        </group>
    </group>
</vector>


================================================
FILE: android/app/src/main/res/drawable-night/ic_tile.xml
================================================
<?xml version="1.0" encoding="utf-8"?>
<!-- Dark mode icon -->
<bitmap xmlns:android="http://schemas.android.com/apk/res/android"
    android:src="@drawable/ic_shortcut_white" />



================================================
FILE: android/app/src/main/res/drawable-night/launch_background.xml
================================================
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
    <item>
        <shape android:shape="rectangle">
            <solid android:color="#292C41" />
        </shape>
    </item>
    <item
        android:drawable="@drawable/ic_launcher_foreground_dark"
        android:gravity="center" />
</layer-list>


================================================
FILE: android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml
================================================
<?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
    <background android:drawable="@drawable/ic_launcher_background_dark" />
    <foreground android:drawable="@drawable/ic_launcher_foreground_dark" />
    <monochrome android:drawable="@drawable/ic_launcher_foreground_dark" />
</adaptive-icon>

================================================
FILE: android/app/src/main/res/mipmap-anydpi-v26/ic_launcher_light.xml
================================================
<?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
    <background android:drawable="@drawable/ic_launcher_background_light" />
    <foreground android:drawable="@drawable/ic_launcher_foreground_light" />
    <monochrome android:drawable="@drawable/ic_launcher_foreground_light" />
</adaptive-icon>


================================================
FILE: android/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml
================================================
<?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
    <background android:drawable="@drawable/ic_launcher_background_dark" />
    <foreground android:drawable="@drawable/ic_launcher_foreground_dark" />
    <monochrome android:drawable="@drawable/ic_launcher_foreground_dark" />
</adaptive-icon>


================================================
FILE: android/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round_light.xml
================================================
<?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
    <background android:drawable="@drawable/ic_launcher_background_light" />
    <foreground android:drawable="@drawable/ic_launcher_foreground_light" />
    <monochrome android:drawable="@drawable/ic_launcher_foreground_light" />
</adaptive-icon>


================================================
FILE: android/app/src/main/res/values/strings.xml
================================================
<resources>
    <string name="bett_box">Bettbox</string>
    <string name="core_connected">Connected</string>
    <string name="service_running">Service is running</string>
    <string name="core_suspended">Suspended</string>
    <string name="smart_auto_stop_service_running">Auto-stop is running</string>
</resources>


================================================
FILE: android/app/src/main/res/values/styles.xml
================================================
<?xml version="1.0" encoding="utf-8"?>
<resources>
    <style name="LaunchTheme" parent="@android:style/Theme.Light.NoTitleBar">
        <!-- Show a splash screen on the activity. Automatically removed when
             the Flutter engine draws its first frame -->
        <item name="android:windowBackground">@drawable/launch_background</item>
    </style>
    <!-- Theme applied to the Android Window as soon as the process has started.
         This theme determines the color of the Android Window while your
         Flutter UI initializes, as well as behind your Flutter UI while its
         running.

         This Theme is only used starting with V2 of Flutter's Android embedding. -->
    <style name="NormalTheme" parent="@android:style/Theme.Light.NoTitleBar">
        <item name="android:windowBackground">?android:colorBackground</item>
    </style>
    <style name="TransparentTheme" parent="Theme.AppCompat.NoActionBar">
        <item name="android:windowBackground">@android:color/transparent</item>
        <item name="android:windowNoTitle">true</item>
        <item name="android:windowIsTranslucent">true</item>
    </style>
</resources>


================================================
FILE: android/app/src/main/res/values-night/styles.xml
================================================
<?xml version="1.0" encoding="utf-8"?>
<resources xmlns:tools="http://schemas.android.com/tools">
    <style name="LaunchTheme" parent="@android:style/Theme.Translucent.NoTitleBar">
        <item name="android:windowBackground">@drawable/launch_background</item>
        <item name="android:windowIsTranslucent">true</item>
    </style>
    <!-- Theme applied to the Android Window as soon as the process has started.
         This theme determines the color of the Android Window while your
         Flutter UI initializes, as well as behind your Flutter UI while its
         running.

         This Theme is only used starting with V2 of Flutter's Android embedding. -->
    <style name="NormalTheme" parent="@android:style/Theme.Translucent.NoTitleBar">
        <item name="android:windowBackground">@android:color/transparent</item>
        <item name="android:windowIsTranslucent">true</item>
    </style>
</resources>


================================================
FILE: android/app/src/main/res/values-night-v27/styles.xml
================================================
<?xml version="1.0" encoding="utf-8"?>
<resources xmlns:tools="http://schemas.android.com/tools">
    <!-- LaunchTheme removed - using NormalTheme directly -->
</resources>

================================================
FILE: android/app/src/main/res/values-ru/strings.xml
================================================
<resources>
    <string name="bett_box">Bettbox</string>
    <string name="core_connected">Подключено</string>
    <string name="service_running">Сервис запущен</string>
    <string name="core_suspended">Приостановлено</string>
    <string name="smart_auto_stop_service_running">Автостоп запущен</string>
</resources>


================================================
FILE: android/app/src/main/res/values-v27/styles.xml
================================================
<?xml version="1.0" encoding="utf-8"?>
<resources xmlns:tools="http://schemas.android.com/tools">
    <!-- LaunchTheme removed - using NormalTheme directly -->
</resources>

================================================
FILE: android/app/src/main/res/values-zh-rCN/strings.xml
================================================
<resources>
    <string name="bett_box">Bettbox</string>
    <string name="core_connected">已连接</string>
    <string name="service_running">服务正在运行中</string>
    <string name="core_suspended">已挂起</string>
    <string name="smart_auto_stop_service_running">智能启停运行中</string>
</resources>


================================================
FILE: android/app/src/main/res/values-zh-rTW/strings.xml
================================================
<resources>
    <string name="bett_box">Bettbox</string>
    <string name="core_connected">已連線</string>
    <string name="service_running">服務正在運行中</string>
    <string name="core_suspended">已暫停</string>
    <string name="smart_auto_stop_service_running">智能啟停運行中</string>
</resources>


================================================
FILE: android/app/src/main/res/xml/file_paths.xml
================================================
<paths>
    <files-path
        name="files"
        path="."/>
</paths>



================================================
FILE: android/app/src/main/res/xml/network_security_config.xml
================================================
<?xml version="1.0" encoding="utf-8"?>
<network-security-config xmlns:tools="http://schemas.android.com/tools"
    tools:ignore="AcceptsUserCertificates">
    <base-config>
        <trust-anchors>
            <certificates src="system" />
            <certificates src="user" />
        </trust-anchors>
    </base-config>
    <domain-config cleartextTrafficPermitted="true">
        <domain includeSubdomains="true">localhost</domain>
        <domain includeSubdomains="true">127.0.0.1</domain>
    </domain-config>
</network-security-config>

================================================
FILE: android/app/src/profile/AndroidManifest.xml
================================================
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
    <!-- The INTERNET permission is required for development. Specifically,
         the Flutter tool needs it to communicate with the running application
         to allow setting breakpoints, to provide hot reload, etc.
    -->
    <uses-permission android:name="android.permission.INTERNET"/>
</manifest>


================================================
FILE: android/build.gradle.kts
================================================

allprojects {
    repositories {
        google()
        mavenCentral()
    }
}

val newBuildDir: Directory = rootProject.layout.buildDirectory.dir("../../build").get()
rootProject.layout.buildDirectory.value(newBuildDir)

subprojects {
    val newSubprojectBuildDir: Directory = newBuildDir.dir(project.name)
    project.layout.buildDirectory.value(newSubprojectBuildDir)
}
subprojects {
    project.evaluationDependsOn(":app")
}

tasks.register<Delete>("clean") {
    delete(rootProject.layout.buildDirectory)
}

================================================
FILE: android/core/.gitignore
================================================
/build

================================================
FILE: android/core/build.gradle.kts
================================================
plugins {
    id("com.android.library")
    id("org.jetbrains.kotlin.android")
}

android {
    namespace = "com.appshub.bettbox.core"
    compileSdk = 36
    ndkVersion = "28.2.13676358"

    defaultConfig {
        minSdk = 26
    }

    buildTypes {
        release {
            isJniDebuggable = false
            proguardFiles(
                getDefaultProguardFile("proguard-android-optimize.txt"),
                "proguard-rules.pro"
            )
        }
    }

    sourceSets {
        getByName("main") {
            jniLibs.srcDirs("src/main/jniLibs")
        }
    }

    externalNativeBuild {
        cmake {
            path("src/main/cpp/CMakeLists.txt")
            version = "3.22.1"
        }
    }

    kotlinOptions {
        jvmTarget = "17"
    }

    compileOptions {
        sourceCompatibility = JavaVersion.VERSION_17
        targetCompatibility = JavaVersion.VERSION_17
    }
}
dependencies {
    implementation("androidx.annotation:annotation-jvm:1.9.1")
}

val copyNativeLibs by tasks.register<Copy>("copyNativeLibs") {
    doFirst {
        delete("src/main/jniLibs")
    }
    from("../../libclash/android")
    into("src/main/jniLibs")
}

afterEvaluate {
    tasks.named("preBuild") {
        dependsOn(copyNativeLibs)
    }
}

================================================
FILE: android/core/proguard-rules.pro
================================================
# Add project specific ProGuard rules here.
# You can control the set of applied configuration files using the
# proguardFiles setting in build.gradle.
#
# For more details, see
#   http://developer.android.com/guide/developing/tools/proguard.html

# If your project uses WebView with JS, uncomment the following
# and specify the fully qualified class name to the JavaScript interface
# class:
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
#   public *;
#}

# Uncomment this to preserve the line number information for
# debugging stack traces.
#-keepattributes SourceFile,LineNumberTable

# If you keep the line number information, uncomment this to
# hide the original source file name.
#-renamesourcefileattribute SourceFile

================================================
FILE: android/core/src/main/AndroidManifest.xml
================================================
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android">

</manifest>

================================================
FILE: android/core/src/main/cpp/CMakeLists.txt
================================================
cmake_minimum_required(VERSION 3.22.1)

project("core")

message("CMAKE_SOURCE_DIR ${CMAKE_SOURCE_DIR}")

message("CMAKE_BUILD_TYPE ${CMAKE_BUILD_TYPE}")

if (NOT "${CMAKE_BUILD_TYPE}" STREQUAL "Debug")
    add_compile_options(-O3)

    add_compile_options(-flto)

    add_compile_options(-g0)

    add_compile_options(-ffunction-sections -fdata-sections)

    add_compile_options(-fno-exceptions -fno-rtti)

    add_link_options(
            -flto
            -Wl,--gc-sections
            -Wl,--strip-all
            -Wl,--exclude-libs=ALL
    )

    if (${ANDROID_ABI} STREQUAL "arm64-v8a" OR ${ANDROID_ABI} STREQUAL "x86_64")
        add_link_options(-Wl,-z,max-page-size=16384)
    endif()

    add_compile_options(-fvisibility=hidden -fvisibility-inlines-hidden)
endif ()

set(LIB_CLASH_PATH "${CMAKE_SOURCE_DIR}/../jniLibs/${ANDROID_ABI}/libclash.so")

message("LIB_CLASH_PATH ${LIB_CLASH_PATH}")
if (EXISTS ${LIB_CLASH_PATH})
    message("Found libclash.so for ABI ${ANDROID_ABI}")
    add_compile_definitions(LIBCLASH)
    include_directories(${CMAKE_SOURCE_DIR}/../jniLibs/${ANDROID_ABI})
    link_directories(${CMAKE_SOURCE_DIR}/../jniLibs/${ANDROID_ABI})
    add_library(${CMAKE_PROJECT_NAME} SHARED
            jni_helper.cpp
            core.cpp)
    target_link_libraries(${CMAKE_PROJECT_NAME}
            clash)
else ()
    message("Not found libclash.so for ABI ${ANDROID_ABI}")
    add_library(${CMAKE_PROJECT_NAME} SHARED
            jni_helper.cpp
            core.cpp)
    target_link_libraries(${CMAKE_PROJECT_NAME})
endif ()

================================================
FILE: android/core/src/main/cpp/core.cpp
================================================
#ifdef LIBCLASH
#include <jni.h>
#include <cstring>
#include "jni_helper.h"
#include "libclash.h"

extern "C"
JNIEXPORT void JNICALL
Java_com_appshub_bettbox_core_Core_startTun(JNIEnv *env, jobject, const jint fd, jobject cb) {
    const auto interface = new_global(cb);
    startTUN(fd, interface);
}

extern "C"
JNIEXPORT void JNICALL
Java_com_appshub_bettbox_core_Core_stopTun(JNIEnv *) {
    stopTun();
}

extern "C"
JNIEXPORT void JNICALL
Java_com_appshub_bettbox_core_Core_suspend(JNIEnv *, jobject, jint suspended) {
    suspend(suspended);
}


static jmethodID m_tun_interface_protect;
static jmethodID m_tun_interface_resolve_process;


static void release_jni_object_impl(void *obj) {
    ATTACH_JNI();
    del_global(static_cast<jobject>(obj));
}

static void call_tun_interface_protect_impl(void *tun_interface, const int fd) {
    ATTACH_JNI();
    env->CallVoidMethod(static_cast<jobject>(tun_interface),
                        m_tun_interface_protect,
                        fd);
}

static const char *
call_tun_interface_resolve_process_impl(void *tun_interface, int protocol,
                                        const char *source,
                                        const char *target,
                                        const int uid) {
    ATTACH_JNI();
    if (env->PushLocalFrame(8) < 0) {
        return strdup("");
    }
    const auto packageName = reinterpret_cast<jstring>(env->CallObjectMethod(static_cast<jobject>(tun_interface),
                                                                       m_tun_interface_resolve_process,
                                                                       protocol,
                                                                       new_string(source),
                                                                       new_string(target),
                                                                       uid));
    const auto result = get_string(packageName);
    env->PopLocalFrame(nullptr);
    return result;
}

extern "C"
JNIEXPORT jint JNICALL
JNI_OnLoad(JavaVM *vm, void *) {
    JNIEnv *env = nullptr;
    if (vm->GetEnv(reinterpret_cast<void **>(&env), JNI_VERSION_1_6) != JNI_OK) {
        return JNI_ERR;
    }

    initialize_jni(vm, env);

    const auto c_tun_interface = find_class("com/appshub/bettbox/core/TunInterface");

    m_tun_interface_protect = find_method(c_tun_interface, "protect", "(I)V");
    m_tun_interface_resolve_process = find_method(c_tun_interface, "resolverProcess",
                                                  "(ILjava/lang/String;Ljava/lang/String;I)Ljava/lang/String;");

    registerCallbacks(&call_tun_interface_protect_impl,
                      &call_tun_interface_resolve_pro
Download .txt
gitextract_09h7tnhn/

├── .github/
│   ├── ISSUE_TEMPLATE/
│   │   ├── bug_report.yml
│   │   ├── config.yml
│   │   └── feature_request.yml
│   ├── release_template.md
│   ├── release_template_pre.md
│   └── workflows/
│       └── build.yaml
├── .gitignore
├── .metadata
├── LICENSE
├── Makefile
├── analysis_options.yaml
├── android/
│   ├── .gitignore
│   ├── app/
│   │   ├── build.gradle.kts
│   │   ├── proguard-rules.pro
│   │   └── src/
│   │       ├── debug/
│   │       │   └── AndroidManifest.xml
│   │       ├── main/
│   │       │   ├── AndroidManifest.xml
│   │       │   ├── kotlin/
│   │       │   │   └── com/
│   │       │   │       └── appshub/
│   │       │   │           └── bettbox/
│   │       │   │               ├── BettboxApplication.kt
│   │       │   │               ├── FilesProvider.kt
│   │       │   │               ├── GlobalState.kt
│   │       │   │               ├── MainActivity.kt
│   │       │   │               ├── TempActivity.kt
│   │       │   │               ├── extensions/
│   │       │   │               │   └── Ext.kt
│   │       │   │               ├── models/
│   │       │   │               │   ├── Package.kt
│   │       │   │               │   ├── Process.kt
│   │       │   │               │   └── Props.kt
│   │       │   │               ├── modules/
│   │       │   │               │   └── SuspendModule.kt
│   │       │   │               ├── plugins/
│   │       │   │               │   ├── AppPlugin.kt
│   │       │   │               │   ├── ServicePlugin.kt
│   │       │   │               │   ├── TilePlugin.kt
│   │       │   │               │   └── VpnPlugin.kt
│   │       │   │               ├── receivers/
│   │       │   │               │   ├── BootReceiver.kt
│   │       │   │               │   └── PackageReplacedReceiver.kt
│   │       │   │               └── services/
│   │       │   │                   ├── BaseServiceInterface.kt
│   │       │   │                   ├── BettboxService.kt
│   │       │   │                   ├── BettboxTileService.kt
│   │       │   │                   └── BettboxVpnService.kt
│   │       │   └── res/
│   │       │       ├── drawable/
│   │       │       │   ├── ic_launcher_background_dark.xml
│   │       │       │   ├── ic_launcher_background_light.xml
│   │       │       │   ├── ic_launcher_foreground_dark.xml
│   │       │       │   ├── ic_launcher_foreground_light.xml
│   │       │       │   ├── ic_notification_dark.xml
│   │       │       │   ├── ic_notification_light.xml
│   │       │       │   ├── ic_tile.xml
│   │       │       │   ├── launch_background.xml
│   │       │       │   └── tv_banner.xml
│   │       │       ├── drawable-night/
│   │       │       │   ├── ic_tile.xml
│   │       │       │   └── launch_background.xml
│   │       │       ├── mipmap-anydpi-v26/
│   │       │       │   ├── ic_launcher.xml
│   │       │       │   ├── ic_launcher_light.xml
│   │       │       │   ├── ic_launcher_round.xml
│   │       │       │   └── ic_launcher_round_light.xml
│   │       │       ├── values/
│   │       │       │   ├── strings.xml
│   │       │       │   └── styles.xml
│   │       │       ├── values-night/
│   │       │       │   └── styles.xml
│   │       │       ├── values-night-v27/
│   │       │       │   └── styles.xml
│   │       │       ├── values-ru/
│   │       │       │   └── strings.xml
│   │       │       ├── values-v27/
│   │       │       │   └── styles.xml
│   │       │       ├── values-zh-rCN/
│   │       │       │   └── strings.xml
│   │       │       ├── values-zh-rTW/
│   │       │       │   └── strings.xml
│   │       │       └── xml/
│   │       │           ├── file_paths.xml
│   │       │           └── network_security_config.xml
│   │       └── profile/
│   │           └── AndroidManifest.xml
│   ├── build.gradle.kts
│   ├── core/
│   │   ├── .gitignore
│   │   ├── build.gradle.kts
│   │   ├── proguard-rules.pro
│   │   └── src/
│   │       └── main/
│   │           ├── AndroidManifest.xml
│   │           ├── cpp/
│   │           │   ├── CMakeLists.txt
│   │           │   ├── core.cpp
│   │           │   ├── jni_helper.cpp
│   │           │   └── jni_helper.h
│   │           └── java/
│   │               └── com/
│   │                   └── appshub/
│   │                       └── bettbox/
│   │                           └── core/
│   │                               ├── Core.kt
│   │                               └── TunInterface.kt
│   ├── gradle.properties
│   └── settings.gradle.kts
├── arb/
│   ├── intl_en.arb
│   ├── intl_ru.arb
│   ├── intl_zh_CN.arb
│   └── intl_zh_TC.arb
├── assets/
│   └── data/
│       ├── ASN.mmdb
│       └── geoip.metadb
├── build.yaml
├── core/
│   ├── Clash.Meta/
│   │   ├── .github/
│   │   │   ├── ISSUE_TEMPLATE/
│   │   │   │   ├── bug_report.yml
│   │   │   │   ├── config.yml
│   │   │   │   └── feature_request.yml
│   │   │   ├── genReleaseNote.sh
│   │   │   ├── patch/
│   │   │   │   ├── go1.21.patch
│   │   │   │   ├── go1.22.patch
│   │   │   │   ├── go1.23.patch
│   │   │   │   ├── go1.24.patch
│   │   │   │   ├── go1.25.patch
│   │   │   │   ├── go1.26.patch
│   │   │   │   ├── issue77731.patch
│   │   │   │   ├── issue77930.patch
│   │   │   │   └── issue77975.patch
│   │   │   ├── release/
│   │   │   │   ├── .fpm_systemd
│   │   │   │   ├── config.yaml
│   │   │   │   ├── mihomo.service
│   │   │   │   └── mihomo@.service
│   │   │   ├── release.sh
│   │   │   ├── rename-cgo.sh
│   │   │   ├── rename-go120.sh
│   │   │   └── workflows/
│   │   │       ├── build.yml
│   │   │       ├── test.yml
│   │   │       └── trigger-cmfa-update.yml
│   │   ├── .gitignore
│   │   ├── .golangci.yaml
│   │   ├── Dockerfile
│   │   ├── LICENSE
│   │   ├── Makefile
│   │   ├── adapter/
│   │   │   ├── adapter.go
│   │   │   ├── inbound/
│   │   │   │   ├── addition.go
│   │   │   │   ├── auth.go
│   │   │   │   ├── http.go
│   │   │   │   ├── https.go
│   │   │   │   ├── ipfilter.go
│   │   │   │   ├── listen.go
│   │   │   │   ├── listen_notwindows.go
│   │   │   │   ├── listen_windows.go
│   │   │   │   ├── packet.go
│   │   │   │   ├── socket.go
│   │   │   │   └── util.go
│   │   │   ├── outbound/
│   │   │   │   ├── anytls.go
│   │   │   │   ├── base.go
│   │   │   │   ├── direct.go
│   │   │   │   ├── dns.go
│   │   │   │   ├── ech.go
│   │   │   │   ├── http.go
│   │   │   │   ├── hysteria.go
│   │   │   │   ├── hysteria2.go
│   │   │   │   ├── masque.go
│   │   │   │   ├── mieru.go
│   │   │   │   ├── mieru_test.go
│   │   │   │   ├── reality.go
│   │   │   │   ├── reject.go
│   │   │   │   ├── shadowsocks.go
│   │   │   │   ├── shadowsocksr.go
│   │   │   │   ├── singmux.go
│   │   │   │   ├── snell.go
│   │   │   │   ├── socks5.go
│   │   │   │   ├── ssh.go
│   │   │   │   ├── sudoku.go
│   │   │   │   ├── trojan.go
│   │   │   │   ├── trusttunnel.go
│   │   │   │   ├── tuic.go
│   │   │   │   ├── util.go
│   │   │   │   ├── vless.go
│   │   │   │   ├── vmess.go
│   │   │   │   └── wireguard.go
│   │   │   ├── outboundgroup/
│   │   │   │   ├── fallback.go
│   │   │   │   ├── groupbase.go
│   │   │   │   ├── loadbalance.go
│   │   │   │   ├── parser.go
│   │   │   │   ├── selector.go
│   │   │   │   ├── urltest.go
│   │   │   │   └── util.go
│   │   │   ├── parser.go
│   │   │   ├── patch.go
│   │   │   └── provider/
│   │   │       ├── healthcheck.go
│   │   │       ├── override.go
│   │   │       ├── parser.go
│   │   │       ├── patch.go
│   │   │       ├── provider.go
│   │   │       └── subscription_info.go
│   │   ├── android_tz.go
│   │   ├── check_amd64.sh
│   │   ├── common/
│   │   │   ├── arc/
│   │   │   │   ├── arc.go
│   │   │   │   ├── arc_test.go
│   │   │   │   └── entry.go
│   │   │   ├── atomic/
│   │   │   │   ├── enum.go
│   │   │   │   ├── type.go
│   │   │   │   ├── value.go
│   │   │   │   └── value_test.go
│   │   │   ├── batch/
│   │   │   │   ├── batch.go
│   │   │   │   └── batch_test.go
│   │   │   ├── buf/
│   │   │   │   └── sing.go
│   │   │   ├── callback/
│   │   │   │   ├── callback.go
│   │   │   │   └── close_callback.go
│   │   │   ├── cmd/
│   │   │   │   ├── cmd.go
│   │   │   │   ├── cmd_other.go
│   │   │   │   ├── cmd_test.go
│   │   │   │   └── cmd_windows.go
│   │   │   ├── contextutils/
│   │   │   │   ├── afterfunc_compact.go
│   │   │   │   ├── afterfunc_go120.go
│   │   │   │   ├── afterfunc_go121.go
│   │   │   │   ├── afterfunc_test.go
│   │   │   │   ├── withoutcancel_compact.go
│   │   │   │   ├── withoutcancel_go120.go
│   │   │   │   └── withoutcancel_go121.go
│   │   │   ├── convert/
│   │   │   │   ├── base64.go
│   │   │   │   ├── converter.go
│   │   │   │   ├── converter_test.go
│   │   │   │   ├── util.go
│   │   │   │   └── v.go
│   │   │   ├── deque/
│   │   │   │   └── deque.go
│   │   │   ├── httputils/
│   │   │   │   ├── addr.go
│   │   │   │   ├── force_close.go
│   │   │   │   └── h2_transport_close.go
│   │   │   ├── lru/
│   │   │   │   ├── lrucache.go
│   │   │   │   └── lrucache_test.go
│   │   │   ├── maphash/
│   │   │   │   ├── common.go
│   │   │   │   ├── comparable_go120.go
│   │   │   │   ├── comparable_go124.go
│   │   │   │   └── maphash_test.go
│   │   │   ├── murmur3/
│   │   │   │   ├── murmur.go
│   │   │   │   └── murmur32.go
│   │   │   ├── net/
│   │   │   │   ├── addr.go
│   │   │   │   ├── bind.go
│   │   │   │   ├── bufconn.go
│   │   │   │   ├── bufconn_unsafe.go
│   │   │   │   ├── cached.go
│   │   │   │   ├── context.go
│   │   │   │   ├── context_test.go
│   │   │   │   ├── deadline/
│   │   │   │   │   ├── conn.go
│   │   │   │   │   ├── packet.go
│   │   │   │   │   ├── packet_enhance.go
│   │   │   │   │   ├── packet_sing.go
│   │   │   │   │   ├── pipe.go
│   │   │   │   │   └── pipe_sing.go
│   │   │   │   ├── earlyconn.go
│   │   │   │   ├── io.go
│   │   │   │   ├── listener.go
│   │   │   │   ├── packet/
│   │   │   │   │   ├── packet.go
│   │   │   │   │   ├── packet_posix.go
│   │   │   │   │   ├── packet_sing.go
│   │   │   │   │   ├── packet_windows.go
│   │   │   │   │   ├── ref.go
│   │   │   │   │   ├── ref_sing.go
│   │   │   │   │   ├── thread.go
│   │   │   │   │   └── thread_sing.go
│   │   │   │   ├── packet.go
│   │   │   │   ├── refconn.go
│   │   │   │   ├── relay.go
│   │   │   │   ├── sing.go
│   │   │   │   ├── tcpip.go
│   │   │   │   └── websocket.go
│   │   │   ├── observable/
│   │   │   │   ├── iterable.go
│   │   │   │   ├── observable.go
│   │   │   │   ├── observable_test.go
│   │   │   │   └── subscriber.go
│   │   │   ├── once/
│   │   │   │   ├── once_go120.go
│   │   │   │   ├── once_go122.go
│   │   │   │   └── oncefunc.go
│   │   │   ├── orderedmap/
│   │   │   │   ├── doc.go
│   │   │   │   ├── json.go
│   │   │   │   ├── json_fuzz_test.go
│   │   │   │   ├── json_test.go
│   │   │   │   ├── orderedmap.go
│   │   │   │   ├── orderedmap_test.go
│   │   │   │   ├── utils_test.go
│   │   │   │   ├── yaml.go
│   │   │   │   ├── yaml_fuzz_test.go
│   │   │   │   └── yaml_test.go
│   │   │   ├── picker/
│   │   │   │   ├── picker.go
│   │   │   │   └── picker_test.go
│   │   │   ├── pool/
│   │   │   │   ├── alloc.go
│   │   │   │   ├── alloc_test.go
│   │   │   │   ├── buffer.go
│   │   │   │   ├── buffer_low_memory.go
│   │   │   │   ├── buffer_standard.go
│   │   │   │   ├── pool.go
│   │   │   │   └── sing.go
│   │   │   ├── queue/
│   │   │   │   ├── queue.go
│   │   │   │   └── queue_test.go
│   │   │   ├── singledo/
│   │   │   │   ├── singledo.go
│   │   │   │   └── singledo_test.go
│   │   │   ├── singleflight/
│   │   │   │   └── singleflight.go
│   │   │   ├── sockopt/
│   │   │   │   ├── reuse_common.go
│   │   │   │   ├── reuse_other.go
│   │   │   │   ├── reuse_unix.go
│   │   │   │   └── reuse_windows.go
│   │   │   ├── structure/
│   │   │   │   ├── structure.go
│   │   │   │   └── structure_test.go
│   │   │   ├── utils/
│   │   │   │   ├── callback.go
│   │   │   │   ├── global_id.go
│   │   │   │   ├── hash.go
│   │   │   │   ├── manipulation.go
│   │   │   │   ├── must.go
│   │   │   │   ├── range.go
│   │   │   │   ├── ranges.go
│   │   │   │   ├── ranges_test.go
│   │   │   │   ├── slice.go
│   │   │   │   ├── string_unsafe.go
│   │   │   │   ├── strings.go
│   │   │   │   ├── uuid.go
│   │   │   │   └── uuid_test.go
│   │   │   ├── xsync/
│   │   │   │   ├── map.go
│   │   │   │   ├── map_extra.go
│   │   │   │   ├── map_extra_test.go
│   │   │   │   └── map_test.go
│   │   │   └── yaml/
│   │   │       └── yaml.go
│   │   ├── component/
│   │   │   ├── auth/
│   │   │   │   └── auth.go
│   │   │   ├── ca/
│   │   │   │   ├── auth.go
│   │   │   │   ├── ca-certificates.crt
│   │   │   │   ├── config.go
│   │   │   │   ├── fingerprint.go
│   │   │   │   ├── fingerprint_test.go
│   │   │   │   ├── fix_windows.go
│   │   │   │   └── keypair.go
│   │   │   ├── cidr/
│   │   │   │   ├── ipcidr_set.go
│   │   │   │   ├── ipcidr_set_bin.go
│   │   │   │   └── ipcidr_set_test.go
│   │   │   ├── dhcp/
│   │   │   │   ├── conn.go
│   │   │   │   └── dhcp.go
│   │   │   ├── dialer/
│   │   │   │   ├── bind.go
│   │   │   │   ├── bind_darwin.go
│   │   │   │   ├── bind_linux.go
│   │   │   │   ├── bind_others.go
│   │   │   │   ├── bind_windows.go
│   │   │   │   ├── control.go
│   │   │   │   ├── dialer.go
│   │   │   │   ├── error.go
│   │   │   │   ├── mark_linux.go
│   │   │   │   ├── mark_nonlinux.go
│   │   │   │   ├── options.go
│   │   │   │   ├── reuse.go
│   │   │   │   ├── socket_hook.go
│   │   │   │   ├── tfo.go
│   │   │   │   └── tfo_windows.go
│   │   │   ├── ech/
│   │   │   │   ├── ech.go
│   │   │   │   ├── echparser/
│   │   │   │   │   └── echparser.go
│   │   │   │   ├── key.go
│   │   │   │   └── key_test.go
│   │   │   ├── fakeip/
│   │   │   │   ├── cachefile.go
│   │   │   │   ├── memory.go
│   │   │   │   ├── pool.go
│   │   │   │   ├── pool_test.go
│   │   │   │   ├── skipper.go
│   │   │   │   └── skipper_test.go
│   │   │   ├── generator/
│   │   │   │   ├── cmd.go
│   │   │   │   └── x25519.go
│   │   │   ├── geodata/
│   │   │   │   ├── attr.go
│   │   │   │   ├── geodata.go
│   │   │   │   ├── geodataproto.go
│   │   │   │   ├── init.go
│   │   │   │   ├── memconservative/
│   │   │   │   │   ├── cache.go
│   │   │   │   │   ├── decode.go
│   │   │   │   │   └── memc.go
│   │   │   │   ├── package_info.go
│   │   │   │   ├── router/
│   │   │   │   │   ├── condition.go
│   │   │   │   │   ├── config.pb.go
│   │   │   │   │   └── config.proto
│   │   │   │   ├── standard/
│   │   │   │   │   └── standard.go
│   │   │   │   ├── strmatcher/
│   │   │   │   │   ├── ac_automaton_matcher.go
│   │   │   │   │   ├── matchers.go
│   │   │   │   │   ├── mph_matcher.go
│   │   │   │   │   ├── package_info.go
│   │   │   │   │   └── strmatcher.go
│   │   │   │   └── utils.go
│   │   │   ├── http/
│   │   │   │   └── http.go
│   │   │   ├── iface/
│   │   │   │   └── iface.go
│   │   │   ├── keepalive/
│   │   │   │   ├── tcp_keepalive.go
│   │   │   │   ├── tcp_keepalive_go122.go
│   │   │   │   ├── tcp_keepalive_go123.go
│   │   │   │   ├── tcp_keepalive_go123_unix.go
│   │   │   │   └── tcp_keepalive_go123_windows.go
│   │   │   ├── loopback/
│   │   │   │   └── detector.go
│   │   │   ├── memory/
│   │   │   │   ├── memory.go
│   │   │   │   ├── memory_darwin.go
│   │   │   │   ├── memory_darwin_amd64.s
│   │   │   │   ├── memory_darwin_arm64.s
│   │   │   │   ├── memory_falllback.go
│   │   │   │   ├── memory_freebsd.go
│   │   │   │   ├── memory_freebsd_386.go
│   │   │   │   ├── memory_freebsd_amd64.go
│   │   │   │   ├── memory_freebsd_arm.go
│   │   │   │   ├── memory_freebsd_arm64.go
│   │   │   │   ├── memory_linux.go
│   │   │   │   ├── memory_openbsd.go
│   │   │   │   ├── memory_openbsd_386.go
│   │   │   │   ├── memory_openbsd_amd64.go
│   │   │   │   ├── memory_openbsd_arm.go
│   │   │   │   ├── memory_openbsd_arm64.go
│   │   │   │   ├── memory_openbsd_riscv64.go
│   │   │   │   ├── memory_test.go
│   │   │   │   └── memory_windows.go
│   │   │   ├── mmdb/
│   │   │   │   ├── mmdb.go
│   │   │   │   └── reader.go
│   │   │   ├── mptcp/
│   │   │   │   ├── mptcp_go120.go
│   │   │   │   └── mptcp_go121.go
│   │   │   ├── nat/
│   │   │   │   ├── proxy.go
│   │   │   │   └── table.go
│   │   │   ├── pool/
│   │   │   │   ├── pool.go
│   │   │   │   └── pool_test.go
│   │   │   ├── power/
│   │   │   │   ├── event.go
│   │   │   │   ├── event_other.go
│   │   │   │   └── event_windows.go
│   │   │   ├── process/
│   │   │   │   ├── find_process_mode.go
│   │   │   │   ├── process.go
│   │   │   │   ├── process_darwin.go
│   │   │   │   ├── process_freebsd_amd64.go
│   │   │   │   ├── process_linux.go
│   │   │   │   ├── process_other.go
│   │   │   │   └── process_windows.go
│   │   │   ├── profile/
│   │   │   │   ├── cachefile/
│   │   │   │   │   ├── cache.go
│   │   │   │   │   ├── etag.go
│   │   │   │   │   ├── fakeip.go
│   │   │   │   │   ├── storage.go
│   │   │   │   │   └── subscriptioninfo.go
│   │   │   │   └── profile.go
│   │   │   ├── proxydialer/
│   │   │   │   ├── byname.go
│   │   │   │   ├── proxydialer.go
│   │   │   │   ├── sing.go
│   │   │   │   ├── slowdown.go
│   │   │   │   └── slowdown_sing.go
│   │   │   ├── resolver/
│   │   │   │   ├── enhancer.go
│   │   │   │   ├── host.go
│   │   │   │   ├── hosts/
│   │   │   │   │   ├── hosts.go
│   │   │   │   │   └── hosts_windows.go
│   │   │   │   ├── ip4p.go
│   │   │   │   ├── relay.go
│   │   │   │   ├── resolver.go
│   │   │   │   ├── service.go
│   │   │   │   └── system.go
│   │   │   ├── resource/
│   │   │   │   ├── fetcher.go
│   │   │   │   └── vehicle.go
│   │   │   ├── slowdown/
│   │   │   │   ├── backoff.go
│   │   │   │   └── slowdown.go
│   │   │   ├── sniffer/
│   │   │   │   ├── base_sniffer.go
│   │   │   │   ├── dispatcher.go
│   │   │   │   ├── http_sniffer.go
│   │   │   │   ├── quic_sniffer.go
│   │   │   │   ├── sniff_test.go
│   │   │   │   └── tls_sniffer.go
│   │   │   ├── tls/
│   │   │   │   ├── httpserver.go
│   │   │   │   ├── reality.go
│   │   │   │   └── utls.go
│   │   │   ├── trie/
│   │   │   │   ├── domain.go
│   │   │   │   ├── domain_set.go
│   │   │   │   ├── domain_set_bin.go
│   │   │   │   ├── domain_set_test.go
│   │   │   │   ├── domain_test.go
│   │   │   │   ├── ipcidr_node.go
│   │   │   │   ├── ipcidr_trie.go
│   │   │   │   ├── node.go
│   │   │   │   └── trie_test.go
│   │   │   ├── updater/
│   │   │   │   ├── patch.go
│   │   │   │   ├── update_core.go
│   │   │   │   ├── update_core_test.go
│   │   │   │   ├── update_geo.go
│   │   │   │   ├── update_ui.go
│   │   │   │   └── utils.go
│   │   │   └── wildcard/
│   │   │       ├── wildcard.go
│   │   │       └── wildcard_test.go
│   │   ├── config/
│   │   │   ├── config.go
│   │   │   ├── initial.go
│   │   │   ├── utils.go
│   │   │   └── utils_test.go
│   │   ├── constant/
│   │   │   ├── adapters.go
│   │   │   ├── context.go
│   │   │   ├── dns.go
│   │   │   ├── features/
│   │   │   │   ├── android.go
│   │   │   │   ├── android_stub.go
│   │   │   │   ├── goflags.go
│   │   │   │   ├── low_memory.go
│   │   │   │   ├── low_memory_stub.go
│   │   │   │   ├── no_fake_tcp.go
│   │   │   │   ├── no_fake_tcp_stub.go
│   │   │   │   ├── tags.go
│   │   │   │   ├── version.go
│   │   │   │   ├── version_windows.go
│   │   │   │   ├── with_gvisor.go
│   │   │   │   └── with_gvisor_stub.go
│   │   │   ├── listener.go
│   │   │   ├── matcher.go
│   │   │   ├── metadata.go
│   │   │   ├── path.go
│   │   │   ├── path_test.go
│   │   │   ├── provider/
│   │   │   │   └── interface.go
│   │   │   ├── rule.go
│   │   │   ├── sniffer/
│   │   │   │   └── sniffer.go
│   │   │   ├── tun.go
│   │   │   ├── tunnel.go
│   │   │   └── version.go
│   │   ├── context/
│   │   │   ├── conn.go
│   │   │   ├── dns.go
│   │   │   └── packetconn.go
│   │   ├── dns/
│   │   │   ├── client.go
│   │   │   ├── dhcp.go
│   │   │   ├── dialer.go
│   │   │   ├── doh.go
│   │   │   ├── doq.go
│   │   │   ├── dot.go
│   │   │   ├── edns0_subnet.go
│   │   │   ├── enhancer.go
│   │   │   ├── middleware.go
│   │   │   ├── patch_android.go
│   │   │   ├── policy.go
│   │   │   ├── rcode.go
│   │   │   ├── resolver.go
│   │   │   ├── server.go
│   │   │   ├── service.go
│   │   │   ├── system.go
│   │   │   ├── system_common.go
│   │   │   ├── system_posix.go
│   │   │   ├── system_windows.go
│   │   │   └── util.go
│   │   ├── docker/
│   │   │   └── file-name.sh
│   │   ├── docs/
│   │   │   └── config.yaml
│   │   ├── flake.nix
│   │   ├── go.mod
│   │   ├── go.sum
│   │   ├── hub/
│   │   │   ├── executor/
│   │   │   │   ├── concurrent_load_limit.go
│   │   │   │   ├── concurrent_load_single.go
│   │   │   │   ├── concurrent_load_unlimit.go
│   │   │   │   ├── executor.go
│   │   │   │   └── patch.go
│   │   │   ├── hub.go
│   │   │   └── route/
│   │   │       ├── cache.go
│   │   │       ├── common.go
│   │   │       ├── configs.go
│   │   │       ├── connections.go
│   │   │       ├── ctxkeys.go
│   │   │       ├── dns.go
│   │   │       ├── doh.go
│   │   │       ├── errors.go
│   │   │       ├── external.go
│   │   │       ├── groups.go
│   │   │       ├── patch_android.go
│   │   │       ├── provider.go
│   │   │       ├── proxies.go
│   │   │       ├── restart.go
│   │   │       ├── rules.go
│   │   │       ├── server.go
│   │   │       ├── storage.go
│   │   │       └── upgrade.go
│   │   ├── listener/
│   │   │   ├── anytls/
│   │   │   │   └── server.go
│   │   │   ├── auth/
│   │   │   │   └── auth.go
│   │   │   ├── config/
│   │   │   │   ├── anytls.go
│   │   │   │   ├── auth.go
│   │   │   │   ├── hysteria2.go
│   │   │   │   ├── kcptun.go
│   │   │   │   ├── shadowsocks.go
│   │   │   │   ├── shadowtls.go
│   │   │   │   ├── sudoku.go
│   │   │   │   ├── trojan.go
│   │   │   │   ├── trusttunnel.go
│   │   │   │   ├── tuic.go
│   │   │   │   ├── tun.go
│   │   │   │   ├── tunnel.go
│   │   │   │   ├── vless.go
│   │   │   │   └── vmess.go
│   │   │   ├── http/
│   │   │   │   ├── client.go
│   │   │   │   ├── hack.go
│   │   │   │   ├── patch_android.go
│   │   │   │   ├── proxy.go
│   │   │   │   ├── server.go
│   │   │   │   ├── upgrade.go
│   │   │   │   └── utils.go
│   │   │   ├── inbound/
│   │   │   │   ├── anytls.go
│   │   │   │   ├── anytls_test.go
│   │   │   │   ├── auth.go
│   │   │   │   ├── base.go
│   │   │   │   ├── common_test.go
│   │   │   │   ├── http.go
│   │   │   │   ├── hysteria2.go
│   │   │   │   ├── hysteria2_test.go
│   │   │   │   ├── kcptun.go
│   │   │   │   ├── mieru.go
│   │   │   │   ├── mieru_test.go
│   │   │   │   ├── mixed.go
│   │   │   │   ├── mux.go
│   │   │   │   ├── mux_test.go
│   │   │   │   ├── reality.go
│   │   │   │   ├── redir.go
│   │   │   │   ├── shadowsocks.go
│   │   │   │   ├── shadowsocks_test.go
│   │   │   │   ├── shadowtls.go
│   │   │   │   ├── socks.go
│   │   │   │   ├── sudoku.go
│   │   │   │   ├── sudoku_test.go
│   │   │   │   ├── tproxy.go
│   │   │   │   ├── trojan.go
│   │   │   │   ├── trojan_test.go
│   │   │   │   ├── trusttunnel.go
│   │   │   │   ├── trusttunnel_test.go
│   │   │   │   ├── tuic.go
│   │   │   │   ├── tuic_test.go
│   │   │   │   ├── tun.go
│   │   │   │   ├── tunnel.go
│   │   │   │   ├── vless.go
│   │   │   │   ├── vless_test.go
│   │   │   │   ├── vmess.go
│   │   │   │   └── vmess_test.go
│   │   │   ├── inner/
│   │   │   │   └── tcp.go
│   │   │   ├── listener.go
│   │   │   ├── mieru/
│   │   │   │   └── server.go
│   │   │   ├── mixed/
│   │   │   │   └── mixed.go
│   │   │   ├── parse.go
│   │   │   ├── patch.go
│   │   │   ├── reality/
│   │   │   │   └── reality.go
│   │   │   ├── redir/
│   │   │   │   ├── tcp.go
│   │   │   │   ├── tcp_darwin.go
│   │   │   │   ├── tcp_freebsd.go
│   │   │   │   ├── tcp_linux.go
│   │   │   │   ├── tcp_linux_386.go
│   │   │   │   ├── tcp_linux_other.go
│   │   │   │   └── tcp_other.go
│   │   │   ├── shadowsocks/
│   │   │   │   ├── tcp.go
│   │   │   │   ├── udp.go
│   │   │   │   ├── utils.go
│   │   │   │   └── utils_test.go
│   │   │   ├── sing/
│   │   │   │   ├── context.go
│   │   │   │   ├── dialer.go
│   │   │   │   ├── sing.go
│   │   │   │   └── util.go
│   │   │   ├── sing_hysteria2/
│   │   │   │   └── server.go
│   │   │   ├── sing_shadowsocks/
│   │   │   │   └── server.go
│   │   │   ├── sing_tun/
│   │   │   │   ├── dns.go
│   │   │   │   ├── iface.go
│   │   │   │   ├── prepare.go
│   │   │   │   ├── redirect_linux.go
│   │   │   │   ├── redirect_stub.go
│   │   │   │   ├── server.go
│   │   │   │   ├── server_notwindows.go
│   │   │   │   ├── server_windows.go
│   │   │   │   ├── tun_name_darwin.go
│   │   │   │   ├── tun_name_linux.go
│   │   │   │   └── tun_name_other.go
│   │   │   ├── sing_vless/
│   │   │   │   ├── server.go
│   │   │   │   └── service.go
│   │   │   ├── sing_vmess/
│   │   │   │   ├── server.go
│   │   │   │   └── server_test.go
│   │   │   ├── socks/
│   │   │   │   ├── tcp.go
│   │   │   │   ├── udp.go
│   │   │   │   └── utils.go
│   │   │   ├── sudoku/
│   │   │   │   └── server.go
│   │   │   ├── tproxy/
│   │   │   │   ├── packet.go
│   │   │   │   ├── setsockopt_linux.go
│   │   │   │   ├── setsockopt_other.go
│   │   │   │   ├── tproxy.go
│   │   │   │   ├── tproxy_iptables.go
│   │   │   │   ├── udp.go
│   │   │   │   ├── udp_linux.go
│   │   │   │   └── udp_other.go
│   │   │   ├── trojan/
│   │   │   │   ├── packet.go
│   │   │   │   └── server.go
│   │   │   ├── trusttunnel/
│   │   │   │   └── server.go
│   │   │   ├── tuic/
│   │   │   │   └── server.go
│   │   │   └── tunnel/
│   │   │       ├── packet.go
│   │   │       ├── tcp.go
│   │   │       └── udp.go
│   │   ├── log/
│   │   │   ├── level.go
│   │   │   ├── log.go
│   │   │   └── sing.go
│   │   ├── main.go
│   │   ├── ntp/
│   │   │   ├── ntp/
│   │   │   │   ├── service.go
│   │   │   │   ├── time_stub.go
│   │   │   │   ├── time_unix.go
│   │   │   │   └── time_windows.go
│   │   │   └── time.go
│   │   ├── rules/
│   │   │   ├── common/
│   │   │   │   ├── base.go
│   │   │   │   ├── domain.go
│   │   │   │   ├── domain_keyword.go
│   │   │   │   ├── domain_regex.go
│   │   │   │   ├── domain_suffix.go
│   │   │   │   ├── domain_wildcard.go
│   │   │   │   ├── dscp.go
│   │   │   │   ├── final.go
│   │   │   │   ├── geoip.go
│   │   │   │   ├── geosite.go
│   │   │   │   ├── in_name.go
│   │   │   │   ├── in_type.go
│   │   │   │   ├── in_user.go
│   │   │   │   ├── ipasn.go
│   │   │   │   ├── ipcidr.go
│   │   │   │   ├── ipsuffix.go
│   │   │   │   ├── network_type.go
│   │   │   │   ├── port.go
│   │   │   │   ├── process.go
│   │   │   │   └── uid.go
│   │   │   ├── logic/
│   │   │   │   └── logic.go
│   │   │   ├── logic_test/
│   │   │   │   └── logic_test.go
│   │   │   ├── parser.go
│   │   │   ├── provider/
│   │   │   │   ├── classical_strategy.go
│   │   │   │   ├── domain_strategy.go
│   │   │   │   ├── ipcidr_strategy.go
│   │   │   │   ├── mrs_converter.go
│   │   │   │   ├── mrs_reader.go
│   │   │   │   ├── parse.go
│   │   │   │   ├── patch_android.go
│   │   │   │   ├── provider.go
│   │   │   │   └── rule_set.go
│   │   │   └── wrapper/
│   │   │       └── wrapper.go
│   │   ├── test/
│   │   │   ├── .golangci.yaml
│   │   │   ├── Makefile
│   │   │   ├── clash_test.go
│   │   │   ├── config/
│   │   │   │   ├── example.org-key.pem
│   │   │   │   ├── example.org.pem
│   │   │   │   ├── hysteria.json
│   │   │   │   ├── snell-http.conf
│   │   │   │   ├── snell-tls.conf
│   │   │   │   ├── snell.conf
│   │   │   │   ├── trojan-grpc.json
│   │   │   │   ├── trojan-ws.json
│   │   │   │   ├── trojan-xtls.json
│   │   │   │   ├── trojan.json
│   │   │   │   ├── vless-tls.json
│   │   │   │   ├── vless-ws.json
│   │   │   │   ├── vless-xtls.json
│   │   │   │   ├── vmess-grpc.json
│   │   │   │   ├── vmess-http.json
│   │   │   │   ├── vmess-http2.json
│   │   │   │   ├── vmess-tls.json
│   │   │   │   ├── vmess-ws-0rtt.json
│   │   │   │   ├── vmess-ws-tls.json
│   │   │   │   ├── vmess-ws.json
│   │   │   │   ├── vmess.json
│   │   │   │   └── xray-shadowsocks.json
│   │   │   ├── dns_test.go
│   │   │   ├── docker_test.go
│   │   │   ├── go.mod
│   │   │   ├── go.sum
│   │   │   ├── hysteria_test.go
│   │   │   ├── snell_test.go
│   │   │   ├── ss_test.go
│   │   │   ├── trojan_test.go
│   │   │   ├── util.go
│   │   │   ├── util_darwin_test.go
│   │   │   ├── util_other_test.go
│   │   │   ├── vless_test.go
│   │   │   └── vmess_test.go
│   │   ├── transport/
│   │   │   ├── anytls/
│   │   │   │   ├── client.go
│   │   │   │   ├── padding/
│   │   │   │   │   └── padding.go
│   │   │   │   ├── pipe/
│   │   │   │   │   ├── deadline.go
│   │   │   │   │   └── io_pipe.go
│   │   │   │   ├── session/
│   │   │   │   │   ├── client.go
│   │   │   │   │   ├── frame.go
│   │   │   │   │   ├── session.go
│   │   │   │   │   └── stream.go
│   │   │   │   ├── skiplist/
│   │   │   │   │   ├── contianer.go
│   │   │   │   │   ├── skiplist.go
│   │   │   │   │   ├── skiplist_newnode.go
│   │   │   │   │   └── types.go
│   │   │   │   └── util/
│   │   │   │       ├── deadline.go
│   │   │   │       ├── routine.go
│   │   │   │       ├── string_map.go
│   │   │   │       └── type.go
│   │   │   ├── gost-plugin/
│   │   │   │   └── websocket.go
│   │   │   ├── gun/
│   │   │   │   ├── gun.go
│   │   │   │   ├── server.go
│   │   │   │   └── utils.go
│   │   │   ├── hysteria/
│   │   │   │   ├── congestion/
│   │   │   │   │   ├── brutal.go
│   │   │   │   │   └── pacer.go
│   │   │   │   ├── conns/
│   │   │   │   │   ├── faketcp/
│   │   │   │   │   │   ├── LICENSE
│   │   │   │   │   │   ├── obfs.go
│   │   │   │   │   │   ├── tcp_linux.go
│   │   │   │   │   │   └── tcp_stub.go
│   │   │   │   │   ├── udp/
│   │   │   │   │   │   ├── hop.go
│   │   │   │   │   │   └── obfs.go
│   │   │   │   │   └── wechat/
│   │   │   │   │       └── obfs.go
│   │   │   │   ├── core/
│   │   │   │   │   ├── client.go
│   │   │   │   │   ├── frag.go
│   │   │   │   │   ├── frag_test.go
│   │   │   │   │   ├── protocol.go
│   │   │   │   │   └── stream.go
│   │   │   │   ├── obfs/
│   │   │   │   │   ├── dummy.go
│   │   │   │   │   ├── obfs.go
│   │   │   │   │   ├── xplus.go
│   │   │   │   │   └── xplus_test.go
│   │   │   │   ├── pmtud_fix/
│   │   │   │   │   ├── avail.go
│   │   │   │   │   └── unavail.go
│   │   │   │   ├── transport/
│   │   │   │   │   └── client.go
│   │   │   │   └── utils/
│   │   │   │       └── misc.go
│   │   │   ├── kcptun/
│   │   │   │   ├── client.go
│   │   │   │   ├── common.go
│   │   │   │   ├── comp.go
│   │   │   │   ├── doc.go
│   │   │   │   └── server.go
│   │   │   ├── masque/
│   │   │   │   ├── client_h2.go
│   │   │   │   └── masque.go
│   │   │   ├── restls/
│   │   │   │   └── restls.go
│   │   │   ├── shadowsocks/
│   │   │   │   ├── core/
│   │   │   │   │   └── cipher.go
│   │   │   │   ├── shadowaead/
│   │   │   │   │   ├── cipher.go
│   │   │   │   │   ├── packet.go
│   │   │   │   │   └── stream.go
│   │   │   │   └── shadowstream/
│   │   │   │       ├── chacha20.go
│   │   │   │       ├── cipher.go
│   │   │   │       ├── packet.go
│   │   │   │       └── stream.go
│   │   │   ├── shadowtls/
│   │   │   │   └── shadowtls.go
│   │   │   ├── simple-obfs/
│   │   │   │   ├── http.go
│   │   │   │   └── tls.go
│   │   │   ├── sing-shadowtls/
│   │   │   │   └── shadowtls.go
│   │   │   ├── snell/
│   │   │   │   ├── cipher.go
│   │   │   │   ├── pool.go
│   │   │   │   └── snell.go
│   │   │   ├── socks4/
│   │   │   │   └── socks4.go
│   │   │   ├── socks5/
│   │   │   │   └── socks5.go
│   │   │   ├── ssr/
│   │   │   │   ├── obfs/
│   │   │   │   │   ├── base.go
│   │   │   │   │   ├── http_post.go
│   │   │   │   │   ├── http_simple.go
│   │   │   │   │   ├── obfs.go
│   │   │   │   │   ├── plain.go
│   │   │   │   │   ├── random_head.go
│   │   │   │   │   └── tls1.2_ticket_auth.go
│   │   │   │   ├── protocol/
│   │   │   │   │   ├── auth_aes128_md5.go
│   │   │   │   │   ├── auth_aes128_sha1.go
│   │   │   │   │   ├── auth_chain_a.go
│   │   │   │   │   ├── auth_chain_b.go
│   │   │   │   │   ├── auth_sha1_v4.go
│   │   │   │   │   ├── base.go
│   │   │   │   │   ├── origin.go
│   │   │   │   │   ├── packet.go
│   │   │   │   │   ├── protocol.go
│   │   │   │   │   └── stream.go
│   │   │   │   └── tools/
│   │   │   │       ├── bufPool.go
│   │   │   │       ├── crypto.go
│   │   │   │       └── random.go
│   │   │   ├── sudoku/
│   │   │   │   ├── address.go
│   │   │   │   ├── config.go
│   │   │   │   ├── crypto/
│   │   │   │   │   ├── aead.go
│   │   │   │   │   ├── ed25519.go
│   │   │   │   │   ├── record_conn.go
│   │   │   │   │   └── record_conn_test.go
│   │   │   │   ├── directional_hint_test.go
│   │   │   │   ├── early_handshake.go
│   │   │   │   ├── features_test.go
│   │   │   │   ├── handshake.go
│   │   │   │   ├── handshake_kip.go
│   │   │   │   ├── handshake_test.go
│   │   │   │   ├── httpmask_tunnel.go
│   │   │   │   ├── httpmask_tunnel_test.go
│   │   │   │   ├── init.go
│   │   │   │   ├── init_test.go
│   │   │   │   ├── kip.go
│   │   │   │   ├── kip_test.go
│   │   │   │   ├── multiplex/
│   │   │   │   │   ├── session.go
│   │   │   │   │   └── write_chunks.go
│   │   │   │   ├── multiplex.go
│   │   │   │   ├── multiplex_test.go
│   │   │   │   ├── obfs/
│   │   │   │   │   ├── httpmask/
│   │   │   │   │   │   ├── auth.go
│   │   │   │   │   │   ├── early_handshake.go
│   │   │   │   │   │   ├── halfpipe.go
│   │   │   │   │   │   ├── masker.go
│   │   │   │   │   │   ├── pathroot.go
│   │   │   │   │   │   ├── tunnel.go
│   │   │   │   │   │   ├── tunnel_ws.go
│   │   │   │   │   │   ├── tunnel_ws_server.go
│   │   │   │   │   │   └── ws_stream_conn.go
│   │   │   │   │   └── sudoku/
│   │   │   │   │       ├── ascii_mode.go
│   │   │   │   │       ├── ascii_mode_test.go
│   │   │   │   │       ├── conn.go
│   │   │   │   │       ├── encode.go
│   │   │   │   │       ├── grid.go
│   │   │   │   │       ├── layout.go
│   │   │   │   │       ├── packed.go
│   │   │   │   │       ├── packed_prefix_test.go
│   │   │   │   │       ├── padding_prob.go
│   │   │   │   │       ├── pending.go
│   │   │   │   │       ├── rand.go
│   │   │   │   │       ├── table.go
│   │   │   │   │       └── table_set.go
│   │   │   │   ├── replay.go
│   │   │   │   ├── session_keys.go
│   │   │   │   ├── table_probe.go
│   │   │   │   ├── tables.go
│   │   │   │   ├── tables_directional_test.go
│   │   │   │   ├── uot.go
│   │   │   │   └── write_chunks.go
│   │   │   ├── trojan/
│   │   │   │   └── trojan.go
│   │   │   ├── trusttunnel/
│   │   │   │   ├── client.go
│   │   │   │   ├── doc.go
│   │   │   │   ├── icmp.go
│   │   │   │   ├── packet.go
│   │   │   │   ├── protocol.go
│   │   │   │   ├── quic.go
│   │   │   │   └── service.go
│   │   │   ├── tuic/
│   │   │   │   ├── common/
│   │   │   │   │   ├── congestion.go
│   │   │   │   │   └── dial.go
│   │   │   │   ├── congestion/
│   │   │   │   │   ├── bandwidth.go
│   │   │   │   │   ├── bandwidth_sampler.go
│   │   │   │   │   ├── bbr_sender.go
│   │   │   │   │   ├── cubic.go
│   │   │   │   │   ├── cubic_sender.go
│   │   │   │   │   ├── hybrid_slow_start.go
│   │   │   │   │   ├── minmax.go
│   │   │   │   │   ├── minmax_go120.go
│   │   │   │   │   ├── minmax_go121.go
│   │   │   │   │   ├── pacer.go
│   │   │   │   │   └── windowed_filter.go
│   │   │   │   ├── congestion_v2/
│   │   │   │   │   ├── bandwidth.go
│   │   │   │   │   ├── bandwidth_sampler.go
│   │   │   │   │   ├── bbr_sender.go
│   │   │   │   │   ├── minmax_go120.go
│   │   │   │   │   ├── minmax_go121.go
│   │   │   │   │   ├── pacer.go
│   │   │   │   │   ├── packet_number_indexed_queue.go
│   │   │   │   │   ├── ringbuffer.go
│   │   │   │   │   └── windowed_filter.go
│   │   │   │   ├── pool_client.go
│   │   │   │   ├── server.go
│   │   │   │   ├── tuic.go
│   │   │   │   ├── types/
│   │   │   │   │   ├── stream.go
│   │   │   │   │   └── type.go
│   │   │   │   ├── v4/
│   │   │   │   │   ├── client.go
│   │   │   │   │   ├── packet.go
│   │   │   │   │   ├── protocol.go
│   │   │   │   │   └── server.go
│   │   │   │   └── v5/
│   │   │   │       ├── client.go
│   │   │   │       ├── frag.go
│   │   │   │       ├── packet.go
│   │   │   │       ├── protocol.go
│   │   │   │       └── server.go
│   │   │   ├── v2ray-plugin/
│   │   │   │   ├── mux.go
│   │   │   │   └── websocket.go
│   │   │   ├── vless/
│   │   │   │   ├── addons.go
│   │   │   │   ├── addons_test.go
│   │   │   │   ├── config.pb.go
│   │   │   │   ├── config.proto
│   │   │   │   ├── conn.go
│   │   │   │   ├── encryption/
│   │   │   │   │   ├── client.go
│   │   │   │   │   ├── client_test.go
│   │   │   │   │   ├── common.go
│   │   │   │   │   ├── doc.go
│   │   │   │   │   ├── factory.go
│   │   │   │   │   ├── key.go
│   │   │   │   │   ├── server.go
│   │   │   │   │   └── xor.go
│   │   │   │   ├── packet.go
│   │   │   │   ├── vision/
│   │   │   │   │   ├── conn.go
│   │   │   │   │   ├── filter.go
│   │   │   │   │   ├── padding.go
│   │   │   │   │   └── vision.go
│   │   │   │   └── vless.go
│   │   │   ├── vmess/
│   │   │   │   ├── aead.go
│   │   │   │   ├── chunk.go
│   │   │   │   ├── conn.go
│   │   │   │   ├── h2.go
│   │   │   │   ├── header.go
│   │   │   │   ├── http.go
│   │   │   │   ├── tls.go
│   │   │   │   ├── user.go
│   │   │   │   ├── vmess.go
│   │   │   │   ├── websocket.go
│   │   │   │   ├── websocket_go120.go
│   │   │   │   └── websocket_go121.go
│   │   │   └── xhttp/
│   │   │       ├── browser.go
│   │   │       ├── client.go
│   │   │       ├── config.go
│   │   │       ├── conn.go
│   │   │       ├── reuse.go
│   │   │       ├── reuse_test.go
│   │   │       ├── server.go
│   │   │       ├── server_test.go
│   │   │       ├── upload_queue.go
│   │   │       ├── upload_queue_test.go
│   │   │       └── xpadding.go
│   │   └── tunnel/
│   │       ├── connection.go
│   │       ├── dns_dialer.go
│   │       ├── mode.go
│   │       ├── statistic/
│   │       │   ├── manager.go
│   │       │   ├── patch.go
│   │       │   ├── patch_android.go
│   │       │   └── tracker.go
│   │       ├── status.go
│   │       └── tunnel.go
│   ├── action.go
│   ├── android_bride.go
│   ├── common.go
│   ├── constant.go
│   ├── dart-bridge/
│   │   ├── include/
│   │   │   ├── dart_api.h
│   │   │   ├── dart_api_dl.c
│   │   │   ├── dart_api_dl.h
│   │   │   ├── dart_native_api.h
│   │   │   ├── dart_tools_api.h
│   │   │   ├── dart_version.h
│   │   │   └── internal/
│   │   │       └── dart_api_dl_impl.h
│   │   ├── lib.go
│   │   └── lib_common.go
│   ├── go.mod
│   ├── go.sum
│   ├── hub.go
│   ├── lib.go
│   ├── lib_android.go
│   ├── lib_no_android.go
│   ├── main.go
│   ├── main_cgo.go
│   ├── platform/
│   │   ├── limit.go
│   │   └── procfs.go
│   ├── server.go
│   ├── state/
│   │   └── state.go
│   └── tun/
│       └── tun.go
├── devtools_options.yaml
├── distribute_options.yaml
├── lib/
│   ├── application.dart
│   ├── clash/
│   │   ├── clash.dart
│   │   ├── core.dart
│   │   ├── generated/
│   │   │   └── clash_ffi.dart
│   │   ├── interface.dart
│   │   ├── lib.dart
│   │   ├── message.dart
│   │   └── service.dart
│   ├── common/
│   │   ├── android.dart
│   │   ├── app_localizations.dart
│   │   ├── archive.dart
│   │   ├── color.dart
│   │   ├── common.dart
│   │   ├── constant.dart
│   │   ├── context.dart
│   │   ├── converter.dart
│   │   ├── datetime.dart
│   │   ├── dav_client.dart
│   │   ├── fixed.dart
│   │   ├── flclash_database_extractor.dart
│   │   ├── function.dart
│   │   ├── future.dart
│   │   ├── helper_auth.dart
│   │   ├── http.dart
│   │   ├── icons.dart
│   │   ├── iterable.dart
│   │   ├── js_runtime_manager.dart
│   │   ├── keyboard.dart
│   │   ├── launch.dart
│   │   ├── link.dart
│   │   ├── lock.dart
│   │   ├── measure.dart
│   │   ├── mixin.dart
│   │   ├── navigation.dart
│   │   ├── navigator.dart
│   │   ├── network.dart
│   │   ├── network_matcher.dart
│   │   ├── num.dart
│   │   ├── package.dart
│   │   ├── path.dart
│   │   ├── picker.dart
│   │   ├── preferences.dart
│   │   ├── print.dart
│   │   ├── protocol.dart
│   │   ├── proxy.dart
│   │   ├── render.dart
│   │   ├── request.dart
│   │   ├── scroll.dart
│   │   ├── state.dart
│   │   ├── string.dart
│   │   ├── system.dart
│   │   ├── task.dart
│   │   ├── text.dart
│   │   ├── theme.dart
│   │   ├── tray.dart
│   │   ├── ui_manager.dart
│   │   ├── utils.dart
│   │   └── window.dart
│   ├── controller.dart
│   ├── enum/
│   │   └── enum.dart
│   ├── l10n/
│   │   ├── intl/
│   │   │   ├── messages_all.dart
│   │   │   ├── messages_en.dart
│   │   │   ├── messages_ru.dart
│   │   │   ├── messages_zh_CN.dart
│   │   │   └── messages_zh_TC.dart
│   │   └── l10n.dart
│   ├── main.dart
│   ├── manager/
│   │   ├── android_manager.dart
│   │   ├── app_manager.dart
│   │   ├── clash_manager.dart
│   │   ├── connectivity_manager.dart
│   │   ├── hotkey_manager.dart
│   │   ├── manager.dart
│   │   ├── message_manager.dart
│   │   ├── proxy_manager.dart
│   │   ├── smart_auto_stop_manager.dart
│   │   ├── theme_manager.dart
│   │   ├── tile_manager.dart
│   │   ├── tray_manager.dart
│   │   ├── vpn_manager.dart
│   │   └── window_manager.dart
│   ├── models/
│   │   ├── app.dart
│   │   ├── clash_config.dart
│   │   ├── common.dart
│   │   ├── config.dart
│   │   ├── core.dart
│   │   ├── generated/
│   │   │   ├── app.freezed.dart
│   │   │   ├── clash_config.freezed.dart
│   │   │   ├── clash_config.g.dart
│   │   │   ├── common.freezed.dart
│   │   │   ├── common.g.dart
│   │   │   ├── config.freezed.dart
│   │   │   ├── config.g.dart
│   │   │   ├── core.freezed.dart
│   │   │   ├── core.g.dart
│   │   │   ├── profile.freezed.dart
│   │   │   ├── profile.g.dart
│   │   │   ├── selector.freezed.dart
│   │   │   └── widget.freezed.dart
│   │   ├── models.dart
│   │   ├── profile.dart
│   │   ├── selector.dart
│   │   └── widget.dart
│   ├── pages/
│   │   ├── editor.dart
│   │   ├── home.dart
│   │   ├── pages.dart
│   │   └── scan.dart
│   ├── plugins/
│   │   ├── app.dart
│   │   ├── service.dart
│   │   ├── tile.dart
│   │   └── vpn.dart
│   ├── providers/
│   │   ├── app.dart
│   │   ├── config.dart
│   │   ├── generated/
│   │   │   ├── app.g.dart
│   │   │   ├── config.g.dart
│   │   │   └── state.g.dart
│   │   ├── providers.dart
│   │   └── state.dart
│   ├── state.dart
│   ├── views/
│   │   ├── about.dart
│   │   ├── access.dart
│   │   ├── application_setting.dart
│   │   ├── backup_and_recovery.dart
│   │   ├── config/
│   │   │   ├── config.dart
│   │   │   ├── dns.dart
│   │   │   ├── experimental.dart
│   │   │   ├── general.dart
│   │   │   ├── network.dart
│   │   │   ├── ntp.dart
│   │   │   ├── sniffer.dart
│   │   │   └── tunnel.dart
│   │   ├── connection/
│   │   │   ├── connections.dart
│   │   │   ├── item.dart
│   │   │   └── requests.dart
│   │   ├── dashboard/
│   │   │   ├── dashboard.dart
│   │   │   └── widgets/
│   │   │       ├── connections_count.dart
│   │   │       ├── dns_override.dart
│   │   │       ├── fcm_status.dart
│   │   │       ├── intranet_ip.dart
│   │   │       ├── ipv6_switch.dart
│   │   │       ├── memory_info.dart
│   │   │       ├── network_detection.dart
│   │   │       ├── network_speed.dart
│   │   │       ├── network_speed_small.dart
│   │   │       ├── ntp_override.dart
│   │   │       ├── online_panel.dart
│   │   │       ├── outbound_mode.dart
│   │   │       ├── providers_info.dart
│   │   │       ├── quick_options.dart
│   │   │       ├── sniffer_override.dart
│   │   │       ├── start_button.dart
│   │   │       ├── traffic_usage.dart
│   │   │       ├── wakelock_switch.dart
│   │   │       └── widgets.dart
│   │   ├── developer.dart
│   │   ├── hotkey.dart
│   │   ├── logs.dart
│   │   ├── other_setting.dart
│   │   ├── profiles/
│   │   │   ├── add_profile.dart
│   │   │   ├── edit_profile.dart
│   │   │   ├── override_profile.dart
│   │   │   ├── profiles.dart
│   │   │   └── scripts.dart
│   │   ├── proxies/
│   │   │   ├── advanced_settings.dart
│   │   │   ├── card.dart
│   │   │   ├── common.dart
│   │   │   ├── list.dart
│   │   │   ├── providers.dart
│   │   │   ├── proxies.dart
│   │   │   ├── setting.dart
│   │   │   └── tab.dart
│   │   ├── resources.dart
│   │   ├── theme.dart
│   │   ├── tools.dart
│   │   └── views.dart
│   └── widgets/
│       ├── activate_box.dart
│       ├── animate_grid.dart
│       ├── bar_chart.dart
│       ├── builder.dart
│       ├── card.dart
│       ├── chip.dart
│       ├── color_scheme_box.dart
│       ├── container.dart
│       ├── dialog.dart
│       ├── disabled_mask.dart
│       ├── donut_chart.dart
│       ├── effect.dart
│       ├── fade_box.dart
│       ├── float_layout.dart
│       ├── google_bottom_nav_bar.dart
│       ├── grid.dart
│       ├── icon.dart
│       ├── input.dart
│       ├── keep_scope.dart
│       ├── line_chart.dart
│       ├── list.dart
│       ├── notification.dart
│       ├── null_status.dart
│       ├── open_container.dart
│       ├── palette.dart
│       ├── pop_scope.dart
│       ├── popup.dart
│       ├── scaffold.dart
│       ├── scroll.dart
│       ├── setting.dart
│       ├── sheet.dart
│       ├── side_sheet.dart
│       ├── subscription_info_view.dart
│       ├── super_grid.dart
│       ├── tab.dart
│       ├── text.dart
│       ├── view.dart
│       ├── wave.dart
│       └── widgets.dart
├── linux/
│   ├── .gitignore
│   ├── CMakeLists.txt
│   ├── flutter/
│   │   ├── CMakeLists.txt
│   │   ├── generated_plugin_registrant.cc
│   │   ├── generated_plugin_registrant.h
│   │   └── generated_plugins.cmake
│   ├── main.cc
│   ├── my_application.cc
│   ├── my_application.h
│   └── packaging/
│       ├── appimage/
│       │   └── make_config.yaml
│       ├── deb/
│       │   └── make_config.yaml
│       └── rpm/
│           └── make_config.yaml
├── macos/
│   ├── .gitignore
│   ├── Flutter/
│   │   ├── Flutter-Debug.xcconfig
│   │   ├── Flutter-Release.xcconfig
│   │   └── GeneratedPluginRegistrant.swift
│   ├── Podfile
│   ├── Runner/
│   │   ├── AppDelegate.swift
│   │   ├── Assets.xcassets/
│   │   │   ├── AppIcon.appiconset/
│   │   │   │   └── Contents.json
│   │   │   └── Contents.json
│   │   ├── Base.lproj/
│   │   │   └── MainMenu.xib
│   │   ├── Configs/
│   │   │   ├── AppInfo.xcconfig
│   │   │   ├── Debug.xcconfig
│   │   │   ├── Release.xcconfig
│   │   │   └── Warnings.xcconfig
│   │   ├── DebugProfile.entitlements
│   │   ├── Info.plist
│   │   ├── MainFlutterWindow.swift
│   │   └── Release.entitlements
│   ├── Runner.xcodeproj/
│   │   ├── project.pbxproj
│   │   ├── project.xcworkspace/
│   │   │   └── xcshareddata/
│   │   │       └── IDEWorkspaceChecks.plist
│   │   └── xcshareddata/
│   │       └── xcschemes/
│   │           └── Runner.xcscheme
│   ├── Runner.xcworkspace/
│   │   ├── contents.xcworkspacedata
│   │   └── xcshareddata/
│   │       └── IDEWorkspaceChecks.plist
│   ├── RunnerTests/
│   │   └── RunnerTests.swift
│   └── packaging/
│       └── dmg/
│           └── make_config.yaml
├── plugins/
│   ├── flutter_distributor/
│   │   ├── .all-contributorsrc
│   │   ├── .github/
│   │   │   ├── FUNDING.yml
│   │   │   └── workflows/
│   │   │       ├── hello_world_build.yml
│   │   │       ├── lint.yml
│   │   │       └── test.yml
│   │   ├── .gitignore
│   │   ├── LICENSE
│   │   ├── analysis_options.yaml
│   │   ├── examples/
│   │   │   ├── custom_binary_name/
│   │   │   │   ├── .gitignore
│   │   │   │   ├── .metadata
│   │   │   │   ├── analysis_options.yaml
│   │   │   │   ├── distribute_options.yaml
│   │   │   │   ├── lib/
│   │   │   │   │   └── main.dart
│   │   │   │   ├── linux/
│   │   │   │   │   ├── .gitignore
│   │   │   │   │   ├── CMakeLists.txt
│   │   │   │   │   ├── flutter/
│   │   │   │   │   │   ├── CMakeLists.txt
│   │   │   │   │   │   ├── generated_plugin_registrant.cc
│   │   │   │   │   │   ├── generated_plugin_registrant.h
│   │   │   │   │   │   └── generated_plugins.cmake
│   │   │   │   │   ├── main.cc
│   │   │   │   │   ├── my_application.cc
│   │   │   │   │   ├── my_application.h
│   │   │   │   │   └── packaging/
│   │   │   │   │       ├── appimage/
│   │   │   │   │       │   └── make_config.yaml
│   │   │   │   │       └── deb/
│   │   │   │   │           └── make_config.yaml
│   │   │   │   ├── macos/
│   │   │   │   │   ├── .gitignore
│   │   │   │   │   ├── Flutter/
│   │   │   │   │   │   ├── Flutter-Debug.xcconfig
│   │   │   │   │   │   ├── Flutter-Release.xcconfig
│   │   │   │   │   │   └── GeneratedPluginRegistrant.swift
│   │   │   │   │   ├── Runner/
│   │   │   │   │   │   ├── AppDelegate.swift
│   │   │   │   │   │   ├── Assets.xcassets/
│   │   │   │   │   │   │   └── AppIcon.appiconset/
│   │   │   │   │   │   │       └── Contents.json
│   │   │   │   │   │   ├── Base.lproj/
│   │   │   │   │   │   │   └── MainMenu.xib
│   │   │   │   │   │   ├── Configs/
│   │   │   │   │   │   │   ├── AppInfo.xcconfig
│   │   │   │   │   │   │   ├── Debug.xcconfig
│   │   │   │   │   │   │   ├── Release.xcconfig
│   │   │   │   │   │   │   └── Warnings.xcconfig
│   │   │   │   │   │   ├── DebugProfile.entitlements
│   │   │   │   │   │   ├── Info.plist
│   │   │   │   │   │   ├── MainFlutterWindow.swift
│   │   │   │   │   │   └── Release.entitlements
│   │   │   │   │   ├── Runner.xcodeproj/
│   │   │   │   │   │   ├── project.pbxproj
│   │   │   │   │   │   ├── project.xcworkspace/
│   │   │   │   │   │   │   └── xcshareddata/
│   │   │   │   │   │   │       └── IDEWorkspaceChecks.plist
│   │   │   │   │   │   └── xcshareddata/
│   │   │   │   │   │       └── xcschemes/
│   │   │   │   │   │           └── Runner.xcscheme
│   │   │   │   │   ├── Runner.xcworkspace/
│   │   │   │   │   │   ├── contents.xcworkspacedata
│   │   │   │   │   │   └── xcshareddata/
│   │   │   │   │   │       └── IDEWorkspaceChecks.plist
│   │   │   │   │   ├── RunnerTests/
│   │   │   │   │   │   └── RunnerTests.swift
│   │   │   │   │   └── packaging/
│   │   │   │   │       └── dmg/
│   │   │   │   │           └── make_config.yaml
│   │   │   │   ├── pubspec.yaml
│   │   │   │   ├── release.sh
│   │   │   │   └── test/
│   │   │   │       └── widget_test.dart
│   │   │   ├── hello_world/
│   │   │   │   ├── .gitignore
│   │   │   │   ├── .metadata
│   │   │   │   ├── analysis_options.yaml
│   │   │   │   ├── android/
│   │   │   │   │   ├── .gitignore
│   │   │   │   │   ├── app/
│   │   │   │   │   │   ├── build.gradle
│   │   │   │   │   │   └── src/
│   │   │   │   │   │       ├── debug/
│   │   │   │   │   │       │   └── AndroidManifest.xml
│   │   │   │   │   │       ├── main/
│   │   │   │   │   │       │   ├── AndroidManifest.xml
│   │   │   │   │   │       │   ├── kotlin/
│   │   │   │   │   │       │   │   └── org/
│   │   │   │   │   │       │   │       └── leanflutter/
│   │   │   │   │   │       │   │           └── examples/
│   │   │   │   │   │       │   │               └── hello_world/
│   │   │   │   │   │       │   │                   └── MainActivity.kt
│   │   │   │   │   │       │   └── res/
│   │   │   │   │   │       │       ├── drawable/
│   │   │   │   │   │       │       │   └── launch_background.xml
│   │   │   │   │   │       │       ├── drawable-v21/
│   │   │   │   │   │       │       │   └── launch_background.xml
│   │   │   │   │   │       │       ├── values/
│   │   │   │   │   │       │       │   └── styles.xml
│   │   │   │   │   │       │       └── values-night/
│   │   │   │   │   │       │           └── styles.xml
│   │   │   │   │   │       └── profile/
│   │   │   │   │   │           └── AndroidManifest.xml
│   │   │   │   │   ├── build.gradle
│   │   │   │   │   ├── gradle/
│   │   │   │   │   │   └── wrapper/
│   │   │   │   │   │       └── gradle-wrapper.properties
│   │   │   │   │   ├── gradle.properties
│   │   │   │   │   └── settings.gradle
│   │   │   │   ├── distribute_options.yaml
│   │   │   │   ├── env.json
│   │   │   │   ├── ios/
│   │   │   │   │   ├── .gitignore
│   │   │   │   │   ├── ExportOptions.plist
│   │   │   │   │   ├── Flutter/
│   │   │   │   │   │   ├── AppFrameworkInfo.plist
│   │   │   │   │   │   ├── Debug.xcconfig
│   │   │   │   │   │   └── Release.xcconfig
│   │   │   │   │   ├── Podfile
│   │   │   │   │   ├── Runner/
│   │   │   │   │   │   ├── AppDelegate.swift
│   │   │   │   │   │   ├── Assets.xcassets/
│   │   │   │   │   │   │   ├── AppIcon.appiconset/
│   │   │   │   │   │   │   │   └── Contents.json
│   │   │   │   │   │   │   └── LaunchImage.imageset/
│   │   │   │   │   │   │       └── Contents.json
│   │   │   │   │   │   ├── Base.lproj/
│   │   │   │   │   │   │   ├── LaunchScreen.storyboard
│   │   │   │   │   │   │   └── Main.storyboard
│   │   │   │   │   │   ├── Info.plist
│   │   │   │   │   │   └── Runner-Bridging-Header.h
│   │   │   │   │   ├── Runner.xcodeproj/
│   │   │   │   │   │   ├── project.pbxproj
│   │   │   │   │   │   ├── project.xcworkspace/
│   │   │   │   │   │   │   ├── contents.xcworkspacedata
│   │   │   │   │   │   │   └── xcshareddata/
│   │   │   │   │   │   │       ├── IDEWorkspaceChecks.plist
│   │   │   │   │   │   │       └── WorkspaceSettings.xcsettings
│   │   │   │   │   │   └── xcshareddata/
│   │   │   │   │   │       └── xcschemes/
│   │   │   │   │   │           └── Runner.xcscheme
│   │   │   │   │   └── Runner.xcworkspace/
│   │   │   │   │       ├── contents.xcworkspacedata
│   │   │   │   │       └── xcshareddata/
│   │   │   │   │           ├── IDEWorkspaceChecks.plist
│   │   │   │   │           └── WorkspaceSettings.xcsettings
│   │   │   │   ├── lib/
│   │   │   │   │   └── main.dart
│   │   │   │   ├── linux/
│   │   │   │   │   ├── .gitignore
│   │   │   │   │   ├── CMakeLists.txt
│   │   │   │   │   ├── flutter/
│   │   │   │   │   │   ├── CMakeLists.txt
│   │   │   │   │   │   ├── generated_plugin_registrant.cc
│   │   │   │   │   │   ├── generated_plugin_registrant.h
│   │   │   │   │   │   └── generated_plugins.cmake
│   │   │   │   │   ├── main.cc
│   │   │   │   │   ├── my_application.cc
│   │   │   │   │   ├── my_application.h
│   │   │   │   │   └── packaging/
│   │   │   │   │       ├── appimage/
│   │   │   │   │       │   └── make_config.yaml
│   │   │   │   │       ├── deb/
│   │   │   │   │       │   └── make_config.yaml
│   │   │   │   │       ├── helloworld.appdata.xml
│   │   │   │   │       ├── pacman/
│   │   │   │   │       │   └── make_config.yaml
│   │   │   │   │       └── rpm/
│   │   │   │   │           └── make_config.yaml
│   │   │   │   ├── macos/
│   │   │   │   │   ├── .gitignore
│   │   │   │   │   ├── Flutter/
│   │   │   │   │   │   ├── Flutter-Debug.xcconfig
│   │   │   │   │   │   ├── Flutter-Release.xcconfig
│   │   │   │   │   │   └── GeneratedPluginRegistrant.swift
│   │   │   │   │   ├── Podfile
│   │   │   │   │   ├── Runner/
│   │   │   │   │   │   ├── AppDelegate.swift
│   │   │   │   │   │   ├── Assets.xcassets/
│   │   │   │   │   │   │   └── AppIcon.appiconset/
│   │   │   │   │   │   │       └── Contents.json
│   │   │   │   │   │   ├── Base.lproj/
│   │   │   │   │   │   │   └── MainMenu.xib
│   │   │   │   │   │   ├── Configs/
│   │   │   │   │   │   │   ├── AppInfo.xcconfig
│   │   │   │   │   │   │   ├── Debug.xcconfig
│   │   │   │   │   │   │   ├── Release.xcconfig
│   │   │   │   │   │   │   └── Warnings.xcconfig
│   │   │   │   │   │   ├── DebugProfile.entitlements
│   │   │   │   │   │   ├── Info.plist
│   │   │   │   │   │   ├── MainFlutterWindow.swift
│   │   │   │   │   │   └── Release.entitlements
│   │   │   │   │   ├── Runner.xcodeproj/
│   │   │   │   │   │   ├── project.pbxproj
│   │   │   │   │   │   ├── project.xcworkspace/
│   │   │   │   │   │   │   └── xcshareddata/
│   │   │   │   │   │   │       └── IDEWorkspaceChecks.plist
│   │   │   │   │   │   └── xcshareddata/
│   │   │   │   │   │       └── xcschemes/
│   │   │   │   │   │           └── Runner.xcscheme
│   │   │   │   │   ├── Runner.xcworkspace/
│   │   │   │   │   │   ├── contents.xcworkspacedata
│   │   │   │   │   │   └── xcshareddata/
│   │   │   │   │   │       └── IDEWorkspaceChecks.plist
│   │   │   │   │   └── packaging/
│   │   │   │   │       ├── dmg/
│   │   │   │   │       │   └── make_config.yaml
│   │   │   │   │       └── pkg/
│   │   │   │   │           └── make_config.yaml
│   │   │   │   ├── ohos/
│   │   │   │   │   ├── .gitignore
│   │   │   │   │   ├── AppScope/
│   │   │   │   │   │   ├── app.json5
│   │   │   │   │   │   └── resources/
│   │   │   │   │   │       └── base/
│   │   │   │   │   │           └── element/
│   │   │   │   │   │               └── string.json
│   │   │   │   │   ├── build-profile.json5
│   │   │   │   │   ├── entry/
│   │   │   │   │   │   ├── .gitignore
│   │   │   │   │   │   ├── build-profile.json5
│   │   │   │   │   │   ├── hvigorfile.ts
│   │   │   │   │   │   ├── oh-package.json5
│   │   │   │   │   │   └── src/
│   │   │   │   │   │       ├── main/
│   │   │   │   │   │       │   ├── ets/
│   │   │   │   │   │       │   │   ├── entryability/
│   │   │   │   │   │       │   │   │   └── EntryAbility.ets
│   │   │   │   │   │       │   │   ├── pages/
│   │   │   │   │   │       │   │   │   └── Index.ets
│   │   │   │   │   │       │   │   └── plugins/
│   │   │   │   │   │       │   │       └── GeneratedPluginRegistrant.ets
│   │   │   │   │   │       │   ├── module.json5
│   │   │   │   │   │       │   └── resources/
│   │   │   │   │   │       │       ├── base/
│   │   │   │   │   │       │       │   ├── element/
│   │   │   │   │   │       │       │   │   ├── color.json
│   │   │   │   │   │       │       │   │   └── string.json
│   │   │   │   │   │       │       │   └── profile/
│   │   │   │   │   │       │       │       ├── buildinfo.json5
│   │   │   │   │   │       │       │       └── main_pages.json
│   │   │   │   │   │       │       ├── en_US/
│   │   │   │   │   │       │       │   └── element/
│   │   │   │   │   │       │       │       └── string.json
│   │   │   │   │   │       │       └── zh_CN/
│   │   │   │   │   │       │           └── element/
│   │   │   │   │   │       │               └── string.json
│   │   │   │   │   │       └── ohosTest/
│   │   │   │   │   │           ├── ets/
│   │   │   │   │   │           │   ├── test/
│   │   │   │   │   │           │   │   ├── Ability.test.ets
│   │   │   │   │   │           │   │   └── List.test.ets
│   │   │   │   │   │           │   ├── testability/
│   │   │   │   │   │           │   │   ├── TestAbility.ets
│   │   │   │   │   │           │   │   └── pages/
│   │   │   │   │   │           │   │       └── Index.ets
│   │   │   │   │   │           │   └── testrunner/
│   │   │   │   │   │           │       └── OpenHarmonyTestRunner.ts
│   │   │   │   │   │           ├── module.json5
│   │   │   │   │   │           └── resources/
│   │   │   │   │   │               └── base/
│   │   │   │   │   │                   ├── element/
│   │   │   │   │   │                   │   ├── color.json
│   │   │   │   │   │                   │   └── string.json
│   │   │   │   │   │                   └── profile/
│   │   │   │   │   │                       └── test_pages.json
│   │   │   │   │   ├── hvigor/
│   │   │   │   │   │   └── hvigor-config.json5
│   │   │   │   │   ├── hvigorfile.ts
│   │   │   │   │   └── oh-package.json5
│   │   │   │   ├── pubspec.yaml
│   │   │   │   ├── release.sh
│   │   │   │   ├── test/
│   │   │   │   │   └── widget_test.dart
│   │   │   │   ├── web/
│   │   │   │   │   ├── index.html
│   │   │   │   │   └── manifest.json
│   │   │   │   └── windows/
│   │   │   │       ├── .gitignore
│   │   │   │       ├── CMakeLists.txt
│   │   │   │       ├── flutter/
│   │   │   │       │   ├── CMakeLists.txt
│   │   │   │       │   ├── generated_plugin_registrant.cc
│   │   │   │       │   ├── generated_plugin_registrant.h
│   │   │   │       │   └── generated_plugins.cmake
│   │   │   │       ├── packaging/
│   │   │   │       │   ├── exe/
│   │   │   │       │   │   ├── custom-inno-setup-script.iss
│   │   │   │       │   │   └── make_config.yaml
│   │   │   │       │   └── msix/
│   │   │   │       │       └── make_config.yaml
│   │   │   │       └── runner/
│   │   │   │           ├── CMakeLists.txt
│   │   │   │           ├── Runner.rc
│   │   │   │           ├── flutter_window.cpp
│   │   │   │           ├── flutter_window.h
│   │   │   │           ├── main.cpp
│   │   │   │           ├── resource.h
│   │   │   │           ├── runner.exe.manifest
│   │   │   │           ├── utils.cpp
│   │   │   │           ├── utils.h
│   │   │   │           ├── win32_window.cpp
│   │   │   │           └── win32_window.h
│   │   │   └── multiple_flavors/
│   │   │       ├── .gitignore
│   │   │       ├── .metadata
│   │   │       ├── analysis_options.yaml
│   │   │       ├── android/
│   │   │       │   ├── .gitignore
│   │   │       │   ├── app/
│   │   │       │   │   ├── build.gradle
│   │   │       │   │   └── src/
│   │   │       │   │       ├── debug/
│   │   │       │   │       │   └── AndroidManifest.xml
│   │   │       │   │       ├── main/
│   │   │       │   │       │   ├── AndroidManifest.xml
│   │   │       │   │       │   ├── java/
│   │   │       │   │       │   │   └── org/
│   │   │       │   │       │   │       └── leanflutter/
│   │   │       │   │       │   │           └── examples/
│   │   │       │   │       │   │               └── multiple_flavors/
│   │   │       │   │       │   │                   └── MainActivity.java
│   │   │       │   │       │   └── res/
│   │   │       │   │       │       ├── drawable/
│   │   │       │   │       │       │   └── launch_background.xml
│   │   │       │   │       │       ├── drawable-v21/
│   │   │       │   │       │       │   └── launch_background.xml
│   │   │       │   │       │       ├── values/
│   │   │       │   │       │       │   └── styles.xml
│   │   │       │   │       │       └── values-night/
│   │   │       │   │       │           └── styles.xml
│   │   │       │   │       └── profile/
│   │   │       │   │           └── AndroidManifest.xml
│   │   │       │   ├── build.gradle
│   │   │       │   ├── gradle/
│   │   │       │   │   └── wrapper/
│   │   │       │   │       └── gradle-wrapper.properties
│   │   │       │   ├── gradle.properties
│   │   │       │   └── settings.gradle
│   │   │       ├── distribute_options.yaml
│   │   │       ├── ios/
│   │   │       │   ├── .gitignore
│   │   │       │   ├── Flutter/
│   │   │       │   │   ├── AppFrameworkInfo.plist
│   │   │       │   │   ├── Debug.xcconfig
│   │   │       │   │   └── Release.xcconfig
│   │   │       │   ├── Podfile
│   │   │       │   ├── Runner/
│   │   │       │   │   ├── AppDelegate.h
│   │   │       │   │   ├── AppDelegate.m
│   │   │       │   │   ├── Assets.xcassets/
│   │   │       │   │   │   ├── AppIcon.appiconset/
│   │   │       │   │   │   │   └── Contents.json
│   │   │       │   │   │   └── LaunchImage.imageset/
│   │   │       │   │   │       └── Contents.json
│   │   │       │   │   ├── Base.lproj/
│   │   │       │   │   │   ├── LaunchScreen.storyboard
│   │   │       │   │   │   └── Main.storyboard
│   │   │       │   │   ├── Info.plist
│   │   │       │   │   └── main.m
│   │   │       │   ├── Runner.xcodeproj/
│   │   │       │   │   ├── project.pbxproj
│   │   │       │   │   ├── project.xcworkspace/
│   │   │       │   │   │   ├── contents.xcworkspacedata
│   │   │       │   │   │   └── xcshareddata/
│   │   │       │   │   │       ├── IDEWorkspaceChecks.plist
│   │   │       │   │   │       └── WorkspaceSettings.xcsettings
│   │   │       │   │   └── xcshareddata/
│   │   │       │   │       └── xcschemes/
│   │   │       │   │           ├── Runner.xcscheme
│   │   │       │   │           ├── dev.xcscheme
│   │   │       │   │           └── prod.xcscheme
│   │   │       │   ├── Runner.xcworkspace/
│   │   │       │   │   ├── contents.xcworkspacedata
│   │   │       │   │   └── xcshareddata/
│   │   │       │   │       ├── IDEWorkspaceChecks.plist
│   │   │       │   │       └── WorkspaceSettings.xcsettings
│   │   │       │   ├── dev_ExportOptions.plist
│   │   │       │   └── prod_ExportOptions.plist
│   │   │       ├── lib/
│   │   │       │   └── main.dart
│   │   │       ├── macos/
│   │   │       │   ├── .gitignore
│   │   │       │   ├── Flutter/
│   │   │       │   │   ├── Flutter-Debug.xcconfig
│   │   │       │   │   ├── Flutter-Release.xcconfig
│   │   │       │   │   └── GeneratedPluginRegistrant.swift
│   │   │       │   ├── Podfile
│   │   │       │   ├── Runner/
│   │   │       │   │   ├── AppDelegate.swift
│   │   │       │   │   ├── Assets.xcassets/
│   │   │       │   │   │   └── AppIcon.appiconset/
│   │   │       │   │   │       └── Contents.json
│   │   │       │   │   ├── Base.lproj/
│   │   │       │   │   │   └── MainMenu.xib
│   │   │       │   │   ├── Configs/
│   │   │       │   │   │   ├── AppInfo.xcconfig
│   │   │       │   │   │   ├── Debug.xcconfig
│   │   │       │   │   │   ├── Release.xcconfig
│   │   │       │   │   │   └── Warnings.xcconfig
│   │   │       │   │   ├── DebugProfile.entitlements
│   │   │       │   │   ├── Info.plist
│   │   │       │   │   ├── MainFlutterWindow.swift
│   │   │       │   │   └── Release.entitlements
│   │   │       │   ├── Runner.xcodeproj/
│   │   │       │   │   ├── project.pbxproj
│   │   │       │   │   ├── project.xcworkspace/
│   │   │       │   │   │   └── xcshareddata/
│   │   │       │   │   │       └── IDEWorkspaceChecks.plist
│   │   │       │   │   └── xcshareddata/
│   │   │       │   │       └── xcschemes/
│   │   │       │   │           ├── Runner.xcscheme
│   │   │       │   │           ├── dev.xcscheme
│   │   │       │   │           └── prod.xcscheme
│   │   │       │   ├── Runner.xcworkspace/
│   │   │       │   │   ├── contents.xcworkspacedata
│   │   │       │   │   └── xcshareddata/
│   │   │       │   │       └── IDEWorkspaceChecks.plist
│   │   │       │   ├── RunnerTests/
│   │   │       │   │   └── RunnerTests.swift
│   │   │       │   └── packaging/
│   │   │       │       └── dmg/
│   │   │       │           └── make_config.yaml
│   │   │       ├── ohos/
│   │   │       │   ├── .gitignore
│   │   │       │   ├── AppScope/
│   │   │       │   │   ├── app.json5
│   │   │       │   │   └── resources/
│   │   │       │   │       └── base/
│   │   │       │   │           └── element/
│   │   │       │   │               └── string.json
│   │   │       │   ├── build-profile.json5
│   │   │       │   ├── entry/
│   │   │       │   │   ├── .gitignore
│   │   │       │   │   ├── build-profile.json5
│   │   │       │   │   ├── hvigorfile.ts
│   │   │       │   │   ├── oh-package.json5
│   │   │       │   │   └── src/
│   │   │       │   │       ├── main/
│   │   │       │   │       │   ├── ets/
│   │   │       │   │       │   │   ├── entryability/
│   │   │       │   │       │   │   │   └── EntryAbility.ets
│   │   │       │   │       │   │   ├── pages/
│   │   │       │   │       │   │   │   └── Index.ets
│   │   │       │   │       │   │   └── plugins/
│   │   │       │   │       │   │       └── GeneratedPluginRegistrant.ets
│   │   │       │   │       │   ├── module.json5
│   │   │       │   │       │   └── resources/
│   │   │       │   │       │       ├── base/
│   │   │       │   │       │       │   ├── element/
│   │   │       │   │       │       │   │   ├── color.json
│   │   │       │   │       │       │   │   └── string.json
│   │   │       │   │       │       │   └── profile/
│   │   │       │   │       │       │       ├── buildinfo.json5
│   │   │       │   │       │       │       └── main_pages.json
│   │   │       │   │       │       ├── en_US/
│   │   │       │   │       │       │   └── element/
│   │   │       │   │       │       │       └── string.json
│   │   │       │   │       │       └── zh_CN/
│   │   │       │   │       │           └── element/
│   │   │       │   │       │               └── string.json
│   │   │       │   │       └── ohosTest/
│   │   │       │   │           ├── ets/
│   │   │       │   │           │   ├── test/
│   │   │       │   │           │   │   ├── Ability.test.ets
│   │   │       │   │           │   │   └── List.test.ets
│   │   │       │   │           │   ├── testability/
│   │   │       │   │           │   │   ├── TestAbility.ets
│   │   │       │   │           │   │   └── pages/
│   │   │       │   │           │   │       └── Index.ets
│   │   │       │   │           │   └── testrunner/
│   │   │       │   │           │       └── OpenHarmonyTestRunner.ts
│   │   │       │   │           ├── module.json5
│   │   │       │   │           └── resources/
│   │   │       │   │               └── base/
│   │   │       │   │                   ├── element/
│   │   │       │   │                   │   ├── color.json
│   │   │       │   │                   │   └── string.json
│   │   │       │   │                   └── profile/
│   │   │       │   │                       └── test_pages.json
│   │   │       │   ├── hvigor/
│   │   │       │   │   └── hvigor-config.json5
│   │   │       │   ├── hvigorfile.ts
│   │   │       │   └── oh-package.json5
│   │   │       ├── pubspec.yaml
│   │   │       ├── release.sh
│   │   │       └── test/
│   │   │           └── widget_test.dart
│   │   ├── melos.yaml
│   │   ├── packages/
│   │   │   ├── fastforge/
│   │   │   │   ├── .gitignore
│   │   │   │   ├── LICENSE
│   │   │   │   ├── analysis_options.yaml
│   │   │   │   ├── bin/
│   │   │   │   │   └── main.dart
│   │   │   │   ├── lib/
│   │   │   │   │   └── fastforge.dart
│   │   │   │   └── pubspec.yaml
│   │   │   ├── flutter_app_builder/
│   │   │   │   ├── .gitignore
│   │   │   │   ├── LICENSE
│   │   │   │   ├── analysis_options.yaml
│   │   │   │   ├── lib/
│   │   │   │   │   ├── flutter_app_builder.dart
│   │   │   │   │   └── src/
│   │   │   │   │       ├── build_config.dart
│   │   │   │   │       ├── build_error.dart
│   │   │   │   │       ├── build_result.dart
│   │   │   │   │       ├── builders/
│   │   │   │   │       │   ├── android/
│   │   │   │   │       │   │   ├── app_builder_android.dart
│   │   │   │   │       │   │   └── build_android_result.dart
│   │   │   │   │       │   ├── app_builder.dart
│   │   │   │   │       │   ├── builders.dart
│   │   │   │   │       │   ├── ios/
│   │   │   │   │       │   │   ├── app_builder_ios.dart
│   │   │   │   │       │   │   └── build_ios_result.dart
│   │   │   │   │       │   ├── linux/
│   │   │   │   │       │   │   ├── app_builder_linux.dart
│   │   │   │   │       │   │   └── build_linux_result.dart
│   │   │   │   │       │   ├── macos/
│   │   │   │   │       │   │   ├── app_builder_macos.dart
│   │   │   │   │       │   │   └── build_macos_result.dart
│   │   │   │   │       │   ├── ohos/
│   │   │   │   │       │   │   ├── app_builder_ohos.dart
│   │   │   │   │       │   │   └── build_ohos_result.dart
│   │   │   │   │       │   ├── web/
│   │   │   │   │       │   │   ├── app_builder_web.dart
│   │   │   │   │       │   │   └── build_web_result.dart
│   │   │   │   │       │   └── windows/
│   │   │   │   │       │       ├── app_builder_windows.dart
│   │   │   │   │       │       └── build_windows_result.dart
│   │   │   │   │       ├── commands/
│   │   │   │   │       │   └── flutter.dart
│   │   │   │   │       └── flutter_app_builder.dart
│   │   │   │   ├── pubspec.yaml
│   │   │   │   └── test/
│   │   │   │       └── src/
│   │   │   │           ├── build_config_test.dart
│   │   │   │           ├── builders/
│   │   │   │           │   ├── android/
│   │   │   │           │   │   └── build_android_result_test.dart
│   │   │   │           │   ├── ios/
│   │   │   │           │   │   └── build_ios_result_test.dart
│   │   │   │           │   ├── linux/
│   │   │   │           │   │   └── build_linux_result_test.dart
│   │   │   │           │   ├── macos/
│   │   │   │           │   │   └── build_ios_result_test.dart
│   │   │   │           │   ├── web/
│   │   │   │           │   │   └── build_web_result_test.dart
│   │   │   │           │   └── windows/
│   │   │   │           │       └── build_windows_result_test.dart
│   │   │   │           └── commands/
│   │   │   │               └── flutter_test.dart
│   │   │   ├── flutter_app_packager/
│   │   │   │   ├── .gitignore
│   │   │   │   ├── LICENSE
│   │   │   │   ├── analysis_options.yaml
│   │   │   │   ├── lib/
│   │   │   │   │   ├── flutter_app_packager.dart
│   │   │   │   │   └── src/
│   │   │   │   │       ├── api/
│   │   │   │   │       │   ├── app_package_maker.dart
│   │   │   │   │       │   ├── distribute_options_base.dart
│   │   │   │   │       │   ├── make_config.dart
│   │   │   │   │       │   ├── make_error.dart
│   │   │   │   │       │   └── make_result.dart
│   │   │   │   │       ├── flutter_app_packager.dart
│   │   │   │   │       └── makers/
│   │   │   │   │           ├── aab/
│   │   │   │   │           │   └── app_package_maker_aab.dart
│   │   │   │   │           ├── apk/
│   │   │   │   │           │   └── app_package_maker_apk.dart
│   │   │   │   │           ├── app/
│   │   │   │   │           │   └── app_package_maker_app.dart
│   │   │   │   │           ├── appimage/
│   │   │   │   │           │   ├── app_package_maker_appimage.dart
│   │   │   │   │           │   └── make_appimage_config.dart
│   │   │   │   │           ├── deb/
│   │   │   │   │           │   ├── app_package_maker_deb.dart
│   │   │   │   │           │   └── make_deb_config.dart
│   │   │   │   │           ├── direct/
│   │   │   │   │           │   └── app_package_maker_direct.dart
│   │   │   │   │           ├── dmg/
│   │   │   │   │           │   ├── app_package_maker_dmg.dart
│   │   │   │   │           │   ├── commands/
│   │   │   │   │           │   │   └── appdmg.dart
│   │   │   │   │           │   └── make_dmg_config.dart
│   │   │   │   │           ├── exe/
│   │   │   │   │           │   ├── app_package_maker_exe.dart
│   │   │   │   │           │   ├── inno_setup/
│   │   │   │   │           │   │   ├── inno_setup_compiler.dart
│   │   │   │   │           │   │   └── inno_setup_script.dart
│   │   │   │   │           │   └── make_exe_config.dart
│   │   │   │   │           ├── hap/
│   │   │   │   │           │   └── app_package_maker_hap.dart
│   │   │   │   │           ├── ipa/
│   │   │   │   │           │   └── app_package_maker_ipa.dart
│   │   │   │   │           ├── makers.dart
│   │   │   │   │           ├── msix/
│   │   │   │   │           │   ├── app_package_maker_msix.dart
│   │   │   │   │           │   └── make_msix_config.dart
│   │   │   │   │           ├── pacman/
│   │   │   │   │           │   ├── app_package_maker_pacman.dart
│   │   │   │   │           │   └── make_pacman_config.dart
│   │   │   │   │           ├── pkg/
│   │   │   │   │           │   ├── app_package_maker_pkg.dart
│   │   │   │   │           │   └── make_pkg_config.dart
│   │   │   │   │           ├── rpm/
│   │   │   │   │           │   ├── app_package_maker_rpm.dart
│   │   │   │   │           │   ├── make_rpm_config.dart
│   │   │   │   │           │   └── rpmbuild.dart
│   │   │   │   │           └── zip/
│   │   │   │   │               └── app_package_maker_zip.dart
│   │   │   │   ├── pubspec.yaml
│   │   │   │   └── test/
│   │   │   │       └── src/
│   │   │   │           └── api/
│   │   │   │               └── make_config_test.dart
│   │   │   ├── flutter_app_publisher/
│   │   │   │   ├── .gitignore
│   │   │   │   ├── LICENSE
│   │   │   │   ├── analysis_options.yaml
│   │   │   │   ├── lib/
│   │   │   │   │   ├── flutter_app_publisher.dart
│   │   │   │   │   └── src/
│   │   │   │   │       ├── api/
│   │   │   │   │       │   └── app_package_publisher.dart
│   │   │   │   │       ├── flutter_app_publisher.dart
│   │   │   │   │       └── publishers/
│   │   │   │   │           ├── appcenter/
│   │   │   │   │           │   ├── app_package_publisher_appcenter.dart
│   │   │   │   │           │   └── publish_appcenter_config.dart
│   │   │   │   │           ├── appstore/
│   │   │   │   │           │   ├── app_package_publisher_appstore.dart
│   │   │   │   │           │   └── publish_appstore_config.dart
│   │   │   │   │           ├── fir/
│   │   │   │   │           │   ├── app_package_publisher_fir.dart
│   │   │   │   │           │   └── publish_fir_config.dart
│   │   │   │   │           ├── firebase/
│   │   │   │   │           │   ├── app_package_publisher_firebase.dart
│   │   │   │   │           │   └── publish_firebase_config.dart
│   │   │   │   │           ├── firebase_hosting/
│   │   │   │   │           │   ├── app_package_publisher_firebase_hosting.dart
│   │   │   │   │           │   └── publish_firebase_hosting_config.dart
│   │   │   │   │           ├── github/
│   │   │   │   │           │   ├── app_package_publisher_github.dart
│   │   │   │   │           │   └── publish_github_config.dart
│   │   │   │   │           ├── pgyer/
│   │   │   │   │           │   ├── app_package_publisher_pgyer.dart
│   │   │   │   │           │   └── publish_pgyer_config.dart
│   │   │   │   │           ├── playstore/
│   │   │   │   │           │   ├── app_package_publisher_playstore.dart
│   │   │   │   │           │   └── publish_playstore_config.dart
│   │   │   │   │           ├── publishers.dart
│   │   │   │   │           ├── qiniu/
│   │   │   │   │           │   ├── app_package_publisher_qiniu.dart
│   │   │   │   │           │   └── publish_qiniu_config.dart
│   │   │   │   │           └── vercel/
│   │   │   │   │               ├── app_package_publisher_vercel.dart
│   │   │   │   │               └── publish_vercel_config.dart
│   │   │   │   └── pubspec.yaml
│   │   │   ├── flutter_distributor/
│   │   │   │   ├── .gitignore
│   │   │   │   ├── LICENSE
│   │   │   │   ├── analysis_options.yaml
│   │   │   │   ├── bin/
│   │   │   │   │   ├── command_package.dart
│   │   │   │   │   ├── command_publish.dart
│   │   │   │   │   ├── command_release.dart
│   │   │   │   │   ├── command_upgrade.dart
│   │   │   │   │   └── main.dart
│   │   │   │   ├── lib/
│   │   │   │   │   ├── flutter_distributor.dart
│   │   │   │   │   └── src/
│   │   │   │   │       ├── distribute_options.dart
│   │   │   │   │       ├── extensions/
│   │   │   │   │       │   ├── extensions.dart
│   │   │   │   │       │   └── string.dart
│   │   │   │   │       ├── flutter_distributor.dart
│   │   │   │   │       ├── release.dart
│   │   │   │   │       ├── release_job.dart
│   │   │   │   │       └── utils/
│   │   │   │   │           ├── default_shell_executor.dart
│   │   │   │   │           ├── logger.dart
│   │   │   │   │           ├── pub_dev_api.dart
│   │   │   │   │           └── utils.dart
│   │   │   │   ├── pubspec.yaml
│   │   │   │   └── test/
│   │   │   │       └── src/
│   │   │   │           └── extensions/
│   │   │   │               └── string_test.dart
│   │   │   ├── parse_app_package/
│   │   │   │   ├── .gitignore
│   │   │   │   ├── LICENSE
│   │   │   │   ├── bin/
│   │   │   │   │   └── main.dart
│   │   │   │   ├── lib/
│   │   │   │   │   ├── parse_app_package.dart
│   │   │   │   │   └── src/
│   │   │   │   │       ├── api/
│   │   │   │   │       │   └── app_package_parser.dart
│   │   │   │   │       ├── parse_app_package.dart
│   │   │   │   │       └── parsers/
│   │   │   │   │           ├── apk/
│   │   │   │   │           │   └── app_package_parser_apk.dart
│   │   │   │   │           ├── ipa/
│   │   │   │   │           │   └── app_package_parser_ipa.dart
│   │   │   │   │           └── parsers.dart
│   │   │   │   └── pubspec.yaml
│   │   │   ├── shell_executor/
│   │   │   │   ├── .gitignore
│   │   │   │   ├── LICENSE
│   │   │   │   ├── lib/
│   │   │   │   │   ├── shell_executor.dart
│   │   │   │   │   └── src/
│   │   │   │   │       ├── command.dart
│   │   │   │   │       ├── command_error.dart
│   │   │   │   │       ├── shell_executor.dart
│   │   │   │   │       └── utils/
│   │   │   │   │           └── path_expansion.dart
│   │   │   │   ├── pubspec.yaml
│   │   │   │   └── test/
│   │   │   │       └── src/
│   │   │   │           └── utils/
│   │   │   │               └── path_expansion_test.dart
│   │   │   ├── shell_uikit/
│   │   │   │   ├── .gitignore
│   │   │   │   ├── LICENSE
│   │   │   │   ├── example/
│   │   │   │   │   ├── progress_bar_example.dart
│   │   │   │   │   └── spinner_example.dart
│   │   │   │   ├── lib/
│   │   │   │   │   ├── shell_uikit.dart
│   │   │   │   │   └── src/
│   │   │   │   │       ├── progress_bar.dart
│   │   │   │   │       └── spinner.dart
│   │   │   │   └── pubspec.yaml
│   │   │   └── unified_distributor/
│   │   │       ├── .gitignore
│   │   │       ├── LICENSE
│   │   │       ├── analysis_options.yaml
│   │   │       ├── lib/
│   │   │       │   ├── src/
│   │   │       │   │   ├── check_version_result.dart
│   │   │       │   │   ├── cli/
│   │   │       │   │   │   ├── cli.dart
│   │   │       │   │   │   ├── command_package.dart
│   │   │       │   │   │   ├── command_publish.dart
│   │   │       │   │   │   ├── command_release.dart
│   │   │       │   │   │   └── command_upgrade.dart
│   │   │       │   │   ├── distribute_options.dart
│   │   │       │   │   ├── extensions/
│   │   │       │   │   │   └── string.dart
│   │   │       │   │   ├── release.dart
│   │   │       │   │   ├── release_job.dart
│   │   │       │   │   ├── unified_distributor.dart
│   │   │       │   │   └── utils/
│   │   │       │   │       ├── default_shell_executor.dart
│   │   │       │   │       ├── logger.dart
│   │   │       │   │       └── pub_dev_api.dart
│   │   │       │   └── unified_distributor.dart
│   │   │       ├── pubspec.yaml
│   │   │       └── test/
│   │   │           └── src/
│   │   │               └── extensions/
│   │   │                   └── string_test.dart
│   │   ├── pubspec.yaml
│   │   └── website/
│   │       ├── .gitignore
│   │       ├── astro.config.mjs
│   │       ├── package.json
│   │       ├── src/
│   │       │   ├── components/
│   │       │   │   └── starlight/
│   │       │   │       └── TableOfContents.astro
│   │       │   ├── content/
│   │       │   │   ├── config.ts
│   │       │   │   ├── docs/
│   │       │   │   │   ├── index.mdx
│   │       │   │   │   └── zh-hans/
│   │       │   │   │       └── index.mdx
│   │       │   │   └── i18n/
│   │       │   │       ├── en.json
│   │       │   │       └── zh-cn.json
│   │       │   ├── env.d.ts
│   │       │   └── tailwind.css
│   │       ├── tailwind.config.js
│   │       └── tsconfig.json
│   ├── proxy/
│   │   ├── .gitignore
│   │   ├── .metadata
│   │   ├── LICENSE
│   │   ├── analysis_options.yaml
│   │   ├── lib/
│   │   │   ├── proxy.dart
│   │   │   ├── proxy_method_channel.dart
│   │   │   └── proxy_platform_interface.dart
│   │   ├── pubspec.yaml
│   │   └── windows/
│   │       ├── .gitignore
│   │       ├── CMakeLists.txt
│   │       ├── include/
│   │       │   └── proxy/
│   │       │       └── proxy_plugin_c_api.h
│   │       ├── proxy_plugin.cpp
│   │       ├── proxy_plugin.h
│   │       ├── proxy_plugin_c_api.cpp
│   │       └── test/
│   │           └── proxy_plugin_test.cpp
│   └── window_ext/
│       ├── .gitignore
│       ├── .metadata
│       ├── LICENSE
│       ├── analysis_options.yaml
│       ├── lib/
│       │   ├── window_ext.dart
│       │   ├── window_ext_listener.dart
│       │   └── window_ext_manager.dart
│       ├── macos/
│       │   ├── Classes/
│       │   │   └── WindowExtPlugin.swift
│       │   └── window_ext.podspec
│       ├── pubspec.yaml
│       └── windows/
│           ├── .gitignore
│           ├── CMakeLists.txt
│           ├── include/
│           │   └── window_ext/
│           │       └── window_ext_plugin_c_api.h
│           ├── test/
│           │   └── window_ext_plugin_test.cpp
│           ├── window_ext_plugin.cpp
│           ├── window_ext_plugin.h
│           └── window_ext_plugin_c_api.cpp
├── pubspec.yaml
├── services/
│   └── helper/
│       ├── Cargo.toml
│       ├── build.rs
│       └── src/
│           ├── main.rs
│           └── service/
│               ├── hub.rs
│               ├── mod.rs
│               └── windows.rs
├── setup.dart
└── windows/
    ├── .gitignore
    ├── CMakeLists.txt
    ├── flutter/
    │   ├── CMakeLists.txt
    │   ├── generated_plugin_registrant.cc
    │   ├── generated_plugin_registrant.h
    │   └── generated_plugins.cmake
    ├── packaging/
    │   └── exe/
    │       ├── ChineseSimplified.isl
    │       ├── inno_setup.iss
    │       └── make_config.yaml
    └── runner/
        ├── CMakeLists.txt
        ├── Runner.rc
        ├── flutter_window.cpp
        ├── flutter_window.h
        ├── main.cpp
        ├── resource.h
        ├── runner.exe.manifest
        ├── utils.cpp
        ├── utils.h
        ├── win32_window.cpp
        └── win32_window.h
Download .txt
Showing preview only (1,120K chars total). Download the full file or copy to clipboard to get everything.
SYMBOL INDEX (13067 symbols across 1199 files)

FILE: android/core/src/main/cpp/core.cpp
  function JNIEXPORT (line 8) | JNIEXPORT void JNICALL
  function JNIEXPORT (line 15) | JNIEXPORT void JNICALL
  function JNIEXPORT (line 21) | JNIEXPORT void JNICALL
  function release_jni_object_impl (line 31) | static void release_jni_object_impl(void *obj) {
  function call_tun_interface_protect_impl (line 36) | static void call_tun_interface_protect_impl(void *tun_interface, const i...
  function JNIEXPORT (line 64) | JNIEXPORT jint JNICALL

FILE: android/core/src/main/cpp/jni_helper.cpp
  function initialize_jni (line 13) | void initialize_jni(JavaVM *vm, JNIEnv *env) {
  function JavaVM (line 21) | JavaVM *global_java_vm() {
  function jstring (line 34) | jstring jni_new_string(JNIEnv *env, const char *str) {
  function jni_catch_exception (line 41) | int jni_catch_exception(JNIEnv *env) {
  function jni_attach_thread (line 50) | void jni_attach_thread(scoped_jni *jni) {
  function jni_detach_thread (line 62) | void jni_detach_thread(const scoped_jni *env) {
  function release_string (line 69) | void release_string(char **str) {

FILE: android/core/src/main/cpp/jni_helper.h
  type scoped_jni (line 5) | struct scoped_jni {

FILE: core/Clash.Meta/adapter/adapter.go
  constant defaultHistoriesNum (line 26) | defaultHistoriesNum = 10
  type internalProxyState (line 29) | type internalProxyState struct
  type Proxy (line 34) | type Proxy struct
    method Adapter (line 42) | func (p *Proxy) Adapter() C.ProxyAdapter {
    method AliveForTestUrl (line 47) | func (p *Proxy) AliveForTestUrl(url string) bool {
    method DialContext (line 56) | func (p *Proxy) DialContext(ctx context.Context, metadata *C.Metadata)...
    method ListenPacketContext (line 62) | func (p *Proxy) ListenPacketContext(ctx context.Context, metadata *C.M...
    method DelayHistory (line 68) | func (p *Proxy) DelayHistory() []C.DelayHistory {
    method DelayHistoryForTestUrl (line 78) | func (p *Proxy) DelayHistoryForTestUrl(url string) []C.DelayHistory {
    method ExtraDelayHistories (line 93) | func (p *Proxy) ExtraDelayHistories() map[string]C.ProxyState {
    method LastDelayForTestUrl (line 118) | func (p *Proxy) LastDelayForTestUrl(url string) (delay uint16) {
    method MarshalJSON (line 136) | func (p *Proxy) MarshalJSON() ([]byte, error) {
    method URLTest (line 166) | func (p *Proxy) URLTest(ctx context.Context, url string, expectedStatu...
  function NewProxy (line 285) | func NewProxy(adapter C.ProxyAdapter) *Proxy {
  function urlToMetadata (line 293) | func urlToMetadata(rawURL string) (addr C.Metadata, err error) {

FILE: core/Clash.Meta/adapter/inbound/addition.go
  type Addition (line 9) | type Addition
  function ApplyAdditions (line 11) | func ApplyAdditions(metadata *C.Metadata, additions ...Addition) {
  function WithInName (line 17) | func WithInName(name string) Addition {
  function WithInUser (line 23) | func WithInUser(user string) Addition {
  function WithSpecialRules (line 29) | func WithSpecialRules(specialRules string) Addition {
  function WithSpecialProxy (line 35) | func WithSpecialProxy(specialProxy string) Addition {
  function WithDstAddr (line 41) | func WithDstAddr(addr net.Addr) Addition {
  function WithSrcAddr (line 47) | func WithSrcAddr(addr net.Addr) Addition {
  function WithInAddr (line 57) | func WithInAddr(addr net.Addr) Addition {
  function WithDSCP (line 67) | func WithDSCP(dscp uint8) Addition {
  function Placeholder (line 73) | func Placeholder(metadata *C.Metadata) {}

FILE: core/Clash.Meta/adapter/inbound/auth.go
  function SetSkipAuthPrefixes (line 12) | func SetSkipAuthPrefixes(prefixes []netip.Prefix) {
  function SkipAuthPrefixes (line 16) | func SkipAuthPrefixes() []netip.Prefix {
  function SkipAuthRemoteAddr (line 20) | func SkipAuthRemoteAddr(addr net.Addr) bool {
  function SkipAuthRemoteAddress (line 28) | func SkipAuthRemoteAddress(addr string) bool {
  function skipAuth (line 36) | func skipAuth(addr netip.Addr) bool {

FILE: core/Clash.Meta/adapter/inbound/http.go
  function NewHTTP (line 11) | func NewHTTP(target socks5.Addr, srcConn net.Conn, conn net.Conn, additi...

FILE: core/Clash.Meta/adapter/inbound/https.go
  function NewHTTPS (line 12) | func NewHTTPS(request *http.Request, conn net.Conn, additions ...Additio...

FILE: core/Clash.Meta/adapter/inbound/ipfilter.go
  function SetAllowedIPs (line 13) | func SetAllowedIPs(prefixes []netip.Prefix) {
  function SetDisAllowedIPs (line 17) | func SetDisAllowedIPs(prefixes []netip.Prefix) {
  function AllowedIPs (line 21) | func AllowedIPs() []netip.Prefix {
  function DisAllowedIPs (line 25) | func DisAllowedIPs() []netip.Prefix {
  function IsRemoteAddrDisAllowed (line 29) | func IsRemoteAddrDisAllowed(addr net.Addr) bool {
  function isAllowed (line 41) | func isAllowed(addr netip.Addr) bool {
  function isDisAllowed (line 45) | func isDisAllowed(addr netip.Addr) bool {

FILE: core/Clash.Meta/adapter/inbound/listen.go
  function SetTfo (line 23) | func SetTfo(open bool) {
  function Tfo (line 29) | func Tfo() bool {
  function SetMPTCP (line 35) | func SetMPTCP(open bool) {
  function MPTCP (line 41) | func MPTCP() bool {
  function preResolve (line 47) | func preResolve(network, address string) (string, error) {
  function ListenContext (line 71) | func ListenContext(ctx context.Context, network, address string) (net.Li...
  function Listen (line 82) | func Listen(network, address string) (net.Listener, error) {
  function ListenPacketContext (line 86) | func ListenPacketContext(ctx context.Context, network, address string) (...
  function ListenPacket (line 97) | func ListenPacket(network, address string) (net.PacketConn, error) {
  function init (line 101) | func init() {

FILE: core/Clash.Meta/adapter/inbound/listen_notwindows.go
  constant SupportNamedPipe (line 10) | SupportNamedPipe = false
  function ListenNamedPipe (line 12) | func ListenNamedPipe(path string) (net.Listener, error) {

FILE: core/Clash.Meta/adapter/inbound/listen_windows.go
  constant SupportNamedPipe (line 11) | SupportNamedPipe = true
  constant windowsSDDL (line 15) | windowsSDDL = "D:PAI(A;OICI;GWGR;;;BU)(A;OICI;GWGR;;;SY)"
  function ListenNamedPipe (line 17) | func ListenNamedPipe(path string) (net.Listener, error) {

FILE: core/Clash.Meta/adapter/inbound/packet.go
  function NewPacket (line 9) | func NewPacket(target socks5.Addr, packet C.UDPPacket, source C.Type, ad...

FILE: core/Clash.Meta/adapter/inbound/socket.go
  function NewSocket (line 11) | func NewSocket(target socks5.Addr, conn net.Conn, source C.Type, additio...

FILE: core/Clash.Meta/adapter/inbound/util.go
  function parseSocksAddr (line 14) | func parseSocksAddr(target socks5.Addr) *C.Metadata {
  function parseHTTPAddr (line 34) | func parseHTTPAddr(request *http.Request) *C.Metadata {
  function prefixesContains (line 49) | func prefixesContains(prefixes []netip.Prefix, addr netip.Addr) bool {

FILE: core/Clash.Meta/adapter/outbound/anytls.go
  type AnyTLS (line 19) | type AnyTLS struct
    method DialContext (line 45) | func (t *AnyTLS) DialContext(ctx context.Context, metadata *C.Metadata...
    method ListenPacketContext (line 53) | func (t *AnyTLS) ListenPacketContext(ctx context.Context, metadata *C....
    method SupportUOT (line 70) | func (t *AnyTLS) SupportUOT() bool {
    method ProxyInfo (line 75) | func (t *AnyTLS) ProxyInfo() C.ProxyInfo {
    method Close (line 82) | func (t *AnyTLS) Close() error {
  type AnyTLSOption (line 25) | type AnyTLSOption struct
  function NewAnyTLS (line 86) | func NewAnyTLS(option AnyTLSOption) (*AnyTLS, error) {

FILE: core/Clash.Meta/adapter/outbound/base.go
  type ProxyAdapter (line 23) | type ProxyAdapter interface
  type Base (line 29) | type Base struct
    method Name (line 77) | func (b *Base) Name() string {
    method Id (line 82) | func (b *Base) Id() string {
    method Type (line 87) | func (b *Base) Type() C.AdapterType {
    method DialContext (line 91) | func (b *Base) DialContext(ctx context.Context, metadata *C.Metadata) ...
    method ListenPacketContext (line 96) | func (b *Base) ListenPacketContext(ctx context.Context, metadata *C.Me...
    method SupportUOT (line 101) | func (b *Base) SupportUOT() bool {
    method SupportUDP (line 106) | func (b *Base) SupportUDP() bool {
    method ProxyInfo (line 111) | func (b *Base) ProxyInfo() (info C.ProxyInfo) {
    method IsL3Protocol (line 123) | func (b *Base) IsL3Protocol(metadata *C.Metadata) bool {
    method MarshalJSON (line 128) | func (b *Base) MarshalJSON() ([]byte, error) {
    method Addr (line 136) | func (b *Base) Addr() string {
    method Unwrap (line 141) | func (b *Base) Unwrap(metadata *C.Metadata, touch bool) C.Proxy {
    method DialOptions (line 146) | func (b *Base) DialOptions() (opts []dialer.Option) {
    method ResolveUDP (line 178) | func (b *Base) ResolveUDP(ctx context.Context, metadata *C.Metadata) e...
    method Close (line 189) | func (b *Base) Close() error {
  type BaseOption (line 45) | type BaseOption struct
  function NewBase (line 59) | func NewBase(opt BaseOption) *Base {
  type BasicOption (line 193) | type BasicOption struct
    method NewDialer (line 208) | func (b *BasicOption) NewDialer(opts []dialer.Option) C.Dialer {
  type conn (line 220) | type conn struct
    method RemoteDestination (line 227) | func (c *conn) RemoteDestination() string {
    method Chains (line 241) | func (c *conn) Chains() C.Chain {
    method ProviderChains (line 246) | func (c *conn) ProviderChains() C.Chain {
    method AppendToChains (line 251) | func (c *conn) AppendToChains(a C.ProxyAdapter) {
    method Upstream (line 256) | func (c *conn) Upstream() any {
    method WriterReplaceable (line 260) | func (c *conn) WriterReplaceable() bool {
    method ReaderReplaceable (line 264) | func (c *conn) ReaderReplaceable() bool {
    method AddRef (line 268) | func (c *conn) AddRef(ref any) {
  function NewConn (line 272) | func NewConn(c net.Conn, a C.ProxyAdapter) C.Conn {
  type packetConn (line 281) | type packetConn struct
    method ResolveUDP (line 291) | func (c *packetConn) ResolveUDP(ctx context.Context, metadata *C.Metad...
    method RemoteDestination (line 295) | func (c *packetConn) RemoteDestination() string {
    method Chains (line 301) | func (c *packetConn) Chains() C.Chain {
    method ProviderChains (line 306) | func (c *packetConn) ProviderChains() C.Chain {
    method AppendToChains (line 311) | func (c *packetConn) AppendToChains(a C.ProxyAdapter) {
    method LocalAddr (line 316) | func (c *packetConn) LocalAddr() net.Addr {
    method Upstream (line 321) | func (c *packetConn) Upstream() any {
    method WriterReplaceable (line 325) | func (c *packetConn) WriterReplaceable() bool {
    method ReaderReplaceable (line 329) | func (c *packetConn) ReaderReplaceable() bool {
    method AddRef (line 333) | func (c *packetConn) AddRef(ref any) {
  function newPacketConn (line 337) | func newPacketConn(pc net.PacketConn, a ProxyAdapter) C.PacketConn {
  type AddRef (line 347) | type AddRef interface
  type autoCloseProxyAdapter (line 351) | type autoCloseProxyAdapter struct
    method DialContext (line 357) | func (p *autoCloseProxyAdapter) DialContext(ctx context.Context, metad...
    method ListenPacketContext (line 368) | func (p *autoCloseProxyAdapter) ListenPacketContext(ctx context.Contex...
    method Close (line 379) | func (p *autoCloseProxyAdapter) Close() error {
  function NewAutoCloseProxyAdapter (line 388) | func NewAutoCloseProxyAdapter(adapter ProxyAdapter) ProxyAdapter {

FILE: core/Clash.Meta/adapter/outbound/direct.go
  type Direct (line 13) | type Direct struct
    method DialContext (line 24) | func (d *Direct) DialContext(ctx context.Context, metadata *C.Metadata...
    method ListenPacketContext (line 38) | func (d *Direct) ListenPacketContext(ctx context.Context, metadata *C....
    method ResolveUDP (line 52) | func (d *Direct) ResolveUDP(ctx context.Context, metadata *C.Metadata)...
    method IsL3Protocol (line 63) | func (d *Direct) IsL3Protocol(metadata *C.Metadata) bool {
  type DirectOption (line 18) | type DirectOption struct
  function NewDirectWithOption (line 67) | func NewDirectWithOption(option DirectOption) *Direct {
  function NewDirect (line 84) | func NewDirect() *Direct {
  function NewCompatible (line 96) | func NewCompatible() *Direct {

FILE: core/Clash.Meta/adapter/outbound/dns.go
  type Dns (line 16) | type Dns struct
    method DialContext (line 26) | func (d *Dns) DialContext(ctx context.Context, metadata *C.Metadata) (...
    method ListenPacketContext (line 33) | func (d *Dns) ListenPacketContext(ctx context.Context, metadata *C.Met...
    method ResolveUDP (line 48) | func (d *Dns) ResolveUDP(ctx context.Context, metadata *C.Metadata) er...
  type DnsOption (line 20) | type DnsOption struct
  type dnsPacket (line 55) | type dnsPacket struct
  type dnsPacketConn (line 62) | type dnsPacketConn struct
    method WaitReadFrom (line 68) | func (d *dnsPacketConn) WaitReadFrom() (data []byte, put func(), addr ...
    method ReadFrom (line 77) | func (d *dnsPacketConn) ReadFrom(p []byte) (n int, addr net.Addr, err ...
    method WriteTo (line 90) | func (d *dnsPacketConn) WriteTo(p []byte, addr net.Addr) (n int, err e...
    method Close (line 131) | func (d *dnsPacketConn) Close() error {
    method LocalAddr (line 136) | func (*dnsPacketConn) LocalAddr() net.Addr {
    method SetDeadline (line 144) | func (*dnsPacketConn) SetDeadline(t time.Time) error {
    method SetReadDeadline (line 148) | func (*dnsPacketConn) SetReadDeadline(t time.Time) error {
    method SetWriteDeadline (line 152) | func (*dnsPacketConn) SetWriteDeadline(t time.Time) error {
  function NewDnsWithOption (line 156) | func NewDnsWithOption(option DnsOption) *Dns {

FILE: core/Clash.Meta/adapter/outbound/ech.go
  type ECHOptions (line 12) | type ECHOptions struct
    method Parse (line 19) | func (o ECHOptions) Parse() (*ech.Config, error) {

FILE: core/Clash.Meta/adapter/outbound/http.go
  type Http (line 20) | type Http struct
    method StreamConnContext (line 45) | func (h *Http) StreamConnContext(ctx context.Context, c net.Conn, meta...
    method DialContext (line 62) | func (h *Http) DialContext(ctx context.Context, metadata *C.Metadata) ...
    method ProxyInfo (line 81) | func (h *Http) ProxyInfo() C.ProxyInfo {
    method shakeHandContext (line 87) | func (h *Http) shakeHandContext(ctx context.Context, c net.Conn, metad...
  type HttpOption (line 28) | type HttpOption struct
  function NewHttp (line 147) | func NewHttp(option HttpOption) (*Http, error) {

FILE: core/Clash.Meta/adapter/outbound/hysteria.go
  constant mbpsToBps (line 32) | mbpsToBps = 125000
  constant DefaultStreamReceiveWindow (line 34) | DefaultStreamReceiveWindow     = 15728640
  constant DefaultConnectionReceiveWindow (line 35) | DefaultConnectionReceiveWindow = 67108864
  constant DefaultALPN (line 37) | DefaultALPN        = "hysteria"
  constant DefaultProtocol (line 38) | DefaultProtocol    = "udp"
  constant DefaultHopInterval (line 39) | DefaultHopInterval = 10
  type Hysteria (line 42) | type Hysteria struct
    method DialContext (line 52) | func (h *Hysteria) DialContext(ctx context.Context, metadata *C.Metada...
    method ListenPacketContext (line 61) | func (h *Hysteria) ListenPacketContext(ctx context.Context, metadata *...
    method genHdc (line 72) | func (h *Hysteria) genHdc(ctx context.Context) utils.PacketDialer {
    method ProxyInfo (line 94) | func (h *Hysteria) ProxyInfo() C.ProxyInfo {
    method Close (line 264) | func (h *Hysteria) Close() error {
  type HysteriaOption (line 100) | type HysteriaOption struct
    method Speed (line 129) | func (c *HysteriaOption) Speed() (uint64, uint64, error) {
  function NewHysteria (line 144) | func NewHysteria(option HysteriaOption) (*Hysteria, error) {
  type hyPacketConn (line 271) | type hyPacketConn struct
    method ReadFrom (line 275) | func (c *hyPacketConn) ReadFrom(p []byte) (n int, addr net.Addr, err e...
    method WaitReadFrom (line 285) | func (c *hyPacketConn) WaitReadFrom() (data []byte, put func(), addr n...
    method WriteTo (line 295) | func (c *hyPacketConn) WriteTo(p []byte, addr net.Addr) (n int, err er...
  type hyDialerWithContext (line 304) | type hyDialerWithContext struct
    method ListenPacket (line 310) | func (h *hyDialerWithContext) ListenPacket(rAddr net.Addr) (net.Packet...
    method Context (line 318) | func (h *hyDialerWithContext) Context() context.Context {
    method RemoteAddr (line 322) | func (h *hyDialerWithContext) RemoteAddr(host string) (net.Addr, error) {

FILE: core/Clash.Meta/adapter/outbound/hysteria2.go
  constant minHopInterval (line 25) | minHopInterval = 5
  constant defaultHopInterval (line 26) | defaultHopInterval = 30
  type Hysteria2 (line 28) | type Hysteria2 struct
    method DialContext (line 65) | func (h *Hysteria2) DialContext(ctx context.Context, metadata *C.Metad...
    method ListenPacketContext (line 73) | func (h *Hysteria2) ListenPacketContext(ctx context.Context, metadata ...
    method Close (line 88) | func (h *Hysteria2) Close() error {
    method ProxyInfo (line 96) | func (h *Hysteria2) ProxyInfo() C.ProxyInfo {
  type Hysteria2Option (line 35) | type Hysteria2Option struct
  function NewHysteria2 (line 102) | func NewHysteria2(option Hysteria2Option) (*Hysteria2, error) {

FILE: core/Clash.Meta/adapter/outbound/masque.go
  type Masque (line 36) | type Masque struct
    method run (line 240) | func (w *Masque) run(ctx context.Context) error {
    method Close (line 352) | func (w *Masque) Close() error {
    method DialContext (line 360) | func (w *Masque) DialContext(ctx context.Context, metadata *C.Metadata...
    method ListenPacketContext (line 386) | func (w *Masque) ListenPacketContext(ctx context.Context, metadata *C....
    method ResolveUDP (line 404) | func (w *Masque) ResolveUDP(ctx context.Context, metadata *C.Metadata)...
    method ProxyInfo (line 420) | func (w *Masque) ProxyInfo() C.ProxyInfo {
    method IsL3Protocol (line 427) | func (w *Masque) IsL3Protocol(metadata *C.Metadata) bool {
  type MasqueOption (line 54) | type MasqueOption struct
    method Prefixes (line 78) | func (option MasqueOption) Prefixes() ([]netip.Prefix, error) {
  function NewMasque (line 106) | func NewMasque(option MasqueOption) (*Masque, error) {

FILE: core/Clash.Meta/adapter/outbound/mieru.go
  type Mieru (line 23) | type Mieru struct
    method DialContext (line 85) | func (m *Mieru) DialContext(ctx context.Context, metadata *C.Metadata)...
    method ListenPacketContext (line 98) | func (m *Mieru) ListenPacketContext(ctx context.Context, metadata *C.M...
    method SupportUOT (line 113) | func (m *Mieru) SupportUOT() bool {
    method ProxyInfo (line 118) | func (m *Mieru) ProxyInfo() C.ProxyInfo {
    method ensureClientIsRunning (line 124) | func (m *Mieru) ensureClientIsRunning() error {
    method Close (line 189) | func (m *Mieru) Close() error {
  type MieruOption (line 30) | type MieruOption struct
  type mieruPacketDialer (line 45) | type mieruPacketDialer struct
    method ListenPacket (line 51) | func (pd mieruPacketDialer) ListenPacket(ctx context.Context, network,...
  type mieruDNSResolver (line 59) | type mieruDNSResolver struct
    method LookupIP (line 65) | func (dr mieruDNSResolver) LookupIP(ctx context.Context, network, host...
  function NewMieru (line 150) | func NewMieru(option MieruOption) (*Mieru, error) {
  function metadataToMieruNetAddrSpec (line 198) | func metadataToMieruNetAddrSpec(metadata *C.Metadata) mierumodel.NetAddr...
  function buildMieruClientConfig (line 216) | func buildMieruClientConfig(option MieruOption) (*mieruclient.ClientConf...
  function validateMieruOption (line 304) | func validateMieruOption(option MieruOption) error {
  function beginAndEndPortFromPortRange (line 367) | func beginAndEndPortFromPortRange(portRange string) (int, int, error) {

FILE: core/Clash.Meta/adapter/outbound/mieru_test.go
  function TestNewMieru (line 5) | func TestNewMieru(t *testing.T) {
  function TestBeginAndEndPortFromPortRange (line 57) | func TestBeginAndEndPortFromPortRange(t *testing.T) {

FILE: core/Clash.Meta/adapter/outbound/reality.go
  type RealityOptions (line 13) | type RealityOptions struct
    method Parse (line 20) | func (o RealityOptions) Parse() (*tlsC.RealityConfig, error) {

FILE: core/Clash.Meta/adapter/outbound/reject.go
  type Reject (line 14) | type Reject struct
    method DialContext (line 25) | func (r *Reject) DialContext(ctx context.Context, metadata *C.Metadata...
    method ListenPacketContext (line 33) | func (r *Reject) ListenPacketContext(ctx context.Context, metadata *C....
    method ResolveUDP (line 40) | func (r *Reject) ResolveUDP(ctx context.Context, metadata *C.Metadata)...
  type RejectOption (line 19) | type RejectOption struct
  function NewRejectWithOption (line 47) | func NewRejectWithOption(option RejectOption) *Reject {
  function NewReject (line 57) | func NewReject() *Reject {
  function NewRejectDrop (line 68) | func NewRejectDrop() *Reject {
  function NewPass (line 80) | func NewPass() *Reject {
  type nopConn (line 91) | type nopConn struct
    method Read (line 93) | func (rw nopConn) Read(b []byte) (int, error) { return 0, io.EOF }
    method ReadBuffer (line 95) | func (rw nopConn) ReadBuffer(buffer *buf.Buffer) error { return io.EOF }
    method Write (line 97) | func (rw nopConn) Write(b []byte) (int, error)          { return 0, io...
    method WriteBuffer (line 98) | func (rw nopConn) WriteBuffer(buffer *buf.Buffer) error { return io.EOF }
    method Close (line 99) | func (rw nopConn) Close() error                         { return nil }
    method LocalAddr (line 100) | func (rw nopConn) LocalAddr() net.Addr                  { return nil }
    method RemoteAddr (line 101) | func (rw nopConn) RemoteAddr() net.Addr                 { return nil }
    method SetDeadline (line 102) | func (rw nopConn) SetDeadline(time.Time) error          { return nil }
    method SetReadDeadline (line 103) | func (rw nopConn) SetReadDeadline(time.Time) error      { return nil }
    method SetWriteDeadline (line 104) | func (rw nopConn) SetWriteDeadline(time.Time) error     { return nil }
  type nopPacketConn (line 108) | type nopPacketConn struct
    method WriteTo (line 110) | func (npc nopPacketConn) WriteTo(b []byte, addr net.Addr) (n int, err ...
    method ReadFrom (line 113) | func (npc nopPacketConn) ReadFrom(b []byte) (int, net.Addr, error) {
    method WaitReadFrom (line 116) | func (npc nopPacketConn) WaitReadFrom() ([]byte, func(), net.Addr, err...
    method Close (line 119) | func (npc nopPacketConn) Close() error                     { return nil }
    method LocalAddr (line 120) | func (npc nopPacketConn) LocalAddr() net.Addr              { return ud...
    method SetDeadline (line 121) | func (npc nopPacketConn) SetDeadline(time.Time) error      { return nil }
    method SetReadDeadline (line 122) | func (npc nopPacketConn) SetReadDeadline(time.Time) error  { return nil }
    method SetWriteDeadline (line 123) | func (npc nopPacketConn) SetWriteDeadline(time.Time) error { return nil }
  type dropConn (line 125) | type dropConn struct
    method Read (line 127) | func (rw dropConn) Read(b []byte) (int, error) { return 0, io.EOF }
    method ReadBuffer (line 128) | func (rw dropConn) ReadBuffer(buffer *buf.Buffer) error {
    method Write (line 132) | func (rw dropConn) Write(b []byte) (int, error)          { return 0, i...
    method WriteBuffer (line 133) | func (rw dropConn) WriteBuffer(buffer *buf.Buffer) error { return io.E...
    method Close (line 134) | func (rw dropConn) Close() error                         { return nil }
    method LocalAddr (line 135) | func (rw dropConn) LocalAddr() net.Addr                  { return nil }
    method RemoteAddr (line 136) | func (rw dropConn) RemoteAddr() net.Addr                 { return nil }
    method SetDeadline (line 137) | func (rw dropConn) SetDeadline(time.Time) error          { return nil }
    method SetReadDeadline (line 138) | func (rw dropConn) SetReadDeadline(time.Time) error      { return nil }
    method SetWriteDeadline (line 139) | func (rw dropConn) SetWriteDeadline(time.Time) error     { return nil }

FILE: core/Clash.Meta/adapter/outbound/shadowsocks.go
  type ShadowSocks (line 26) | type ShadowSocks struct
    method StreamConnContext (line 138) | func (ss *ShadowSocks) StreamConnContext(ctx context.Context, c net.Co...
    method dialContext (line 192) | func (ss *ShadowSocks) dialContext(ctx context.Context) (c net.Conn, e...
    method DialContext (line 200) | func (ss *ShadowSocks) DialContext(ctx context.Context, metadata *C.Me...
    method listenPacketContext (line 214) | func (ss *ShadowSocks) listenPacketContext(ctx context.Context) (net.P...
    method ListenPacketContext (line 228) | func (ss *ShadowSocks) ListenPacketContext(ctx context.Context, metada...
    method ProxyInfo (line 261) | func (ss *ShadowSocks) ProxyInfo() C.ProxyInfo {
    method SupportUOT (line 268) | func (ss *ShadowSocks) SupportUOT() bool {
    method Close (line 272) | func (ss *ShadowSocks) Close() error {
  type ShadowSocksOption (line 41) | type ShadowSocksOption struct
  type simpleObfsOption (line 56) | type simpleObfsOption struct
  type v2rayObfsOption (line 61) | type v2rayObfsOption struct
  type gostObfsOption (line 77) | type gostObfsOption struct
  type shadowTLSOption (line 91) | type shadowTLSOption struct
  type restlsOption (line 102) | type restlsOption struct
  type kcpTunOption (line 109) | type kcpTunOption struct
  function NewShadowSocks (line 279) | func NewShadowSocks(option ShadowSocksOption) (*ShadowSocks, error) {

FILE: core/Clash.Meta/adapter/outbound/shadowsocksr.go
  type ShadowSocksR (line 20) | type ShadowSocksR struct
    method StreamConnContext (line 43) | func (ssr *ShadowSocksR) StreamConnContext(ctx context.Context, c net....
    method DialContext (line 68) | func (ssr *ShadowSocksR) DialContext(ctx context.Context, metadata *C....
    method ListenPacketContext (line 83) | func (ssr *ShadowSocksR) ListenPacketContext(ctx context.Context, meta...
    method ProxyInfo (line 103) | func (ssr *ShadowSocksR) ProxyInfo() C.ProxyInfo {
  type ShadowSocksROption (line 28) | type ShadowSocksROption struct
  function NewShadowSocksR (line 109) | func NewShadowSocksR(option ShadowSocksROption) (*ShadowSocksR, error) {
  type ssrPacketConn (line 182) | type ssrPacketConn struct
    method WriteTo (line 187) | func (spc *ssrPacketConn) WriteTo(b []byte, addr net.Addr) (n int, err...
    method ReadFrom (line 195) | func (spc *ssrPacketConn) ReadFrom(b []byte) (int, net.Addr, error) {
    method WaitReadFrom (line 215) | func (spc *ssrPacketConn) WaitReadFrom() (data []byte, put func(), add...

FILE: core/Clash.Meta/adapter/outbound/singmux.go
  type SingMux (line 16) | type SingMux struct
    method DialContext (line 40) | func (s *SingMux) DialContext(ctx context.Context, metadata *C.Metadat...
    method ListenPacketContext (line 48) | func (s *SingMux) ListenPacketContext(ctx context.Context, metadata *C...
    method SupportUDP (line 65) | func (s *SingMux) SupportUDP() bool {
    method SupportUOT (line 72) | func (s *SingMux) SupportUOT() bool {
    method ProxyInfo (line 79) | func (s *SingMux) ProxyInfo() C.ProxyInfo {
    method Close (line 86) | func (s *SingMux) Close() error {
  type SingMuxOption (line 22) | type SingMuxOption struct
  type BrutalOption (line 34) | type BrutalOption struct
  function NewSingMux (line 93) | func NewSingMux(option SingMuxOption, proxy ProxyAdapter) (ProxyAdapter,...

FILE: core/Clash.Meta/adapter/outbound/snell.go
  type Snell (line 16) | type Snell struct
    method StreamConnContext (line 55) | func (s *Snell) StreamConnContext(ctx context.Context, c net.Conn, met...
    method writeHeaderContext (line 61) | func (s *Snell) writeHeaderContext(ctx context.Context, c net.Conn, me...
    method DialContext (line 76) | func (s *Snell) DialContext(ctx context.Context, metadata *C.Metadata)...
    method ListenPacketContext (line 104) | func (s *Snell) ListenPacketContext(ctx context.Context, metadata *C.M...
    method SupportUOT (line 124) | func (s *Snell) SupportUOT() bool {
    method ProxyInfo (line 129) | func (s *Snell) ProxyInfo() C.ProxyInfo {
  type SnellOption (line 25) | type SnellOption struct
  type streamOption (line 36) | type streamOption struct
  function snellStreamConn (line 43) | func snellStreamConn(c net.Conn, option streamOption) *snell.Snell {
  function NewSnell (line 135) | func NewSnell(option SnellOption) (*Snell, error) {

FILE: core/Clash.Meta/adapter/outbound/socks5.go
  type Socks5 (line 20) | type Socks5 struct
    method StreamConnContext (line 46) | func (ss *Socks5) StreamConnContext(ctx context.Context, c net.Conn, m...
    method DialContext (line 70) | func (ss *Socks5) DialContext(ctx context.Context, metadata *C.Metadat...
    method ListenPacketContext (line 89) | func (ss *Socks5) ListenPacketContext(ctx context.Context, metadata *C...
    method ProxyInfo (line 158) | func (ss *Socks5) ProxyInfo() C.ProxyInfo {
    method clientHandshakeContext (line 164) | func (ss *Socks5) clientHandshakeContext(ctx context.Context, c net.Co...
  type Socks5Option (line 30) | type Socks5Option struct
  function NewSocks5 (line 172) | func NewSocks5(option Socks5Option) (*Socks5, error) {
  type socksPacketConn (line 214) | type socksPacketConn struct
    method WriteTo (line 220) | func (uc *socksPacketConn) WriteTo(b []byte, addr net.Addr) (n int, er...
    method ReadFrom (line 228) | func (uc *socksPacketConn) ReadFrom(b []byte) (int, net.Addr, error) {
    method Close (line 248) | func (uc *socksPacketConn) Close() error {

FILE: core/Clash.Meta/adapter/outbound/ssh.go
  type Ssh (line 21) | type Ssh struct
    method DialContext (line 44) | func (s *Ssh) DialContext(ctx context.Context, metadata *C.Metadata) (...
    method connect (line 57) | func (s *Ssh) connect(ctx context.Context, addr string) (client *ssh.C...
    method ProxyInfo (line 99) | func (s *Ssh) ProxyInfo() C.ProxyInfo {
    method Close (line 106) | func (s *Ssh) Close() error {
  type SshOption (line 31) | type SshOption struct
  function NewSsh (line 115) | func NewSsh(option SshOption) (*Ssh, error) {

FILE: core/Clash.Meta/adapter/outbound/sudoku.go
  type Sudoku (line 17) | type Sudoku struct
    method DialContext (line 62) | func (s *Sudoku) DialContext(ctx context.Context, metadata *C.Metadata...
    method ListenPacketContext (line 96) | func (s *Sudoku) ListenPacketContext(ctx context.Context, metadata *C....
    method SupportUOT (line 120) | func (s *Sudoku) SupportUOT() bool {
    method ProxyInfo (line 125) | func (s *Sudoku) ProxyInfo() C.ProxyInfo {
    method buildConfig (line 131) | func (s *Sudoku) buildConfig(metadata *C.Metadata) (*sudoku.ProtocolCo...
    method Close (line 245) | func (s *Sudoku) Close() error {
    method dialAndHandshake (line 273) | func (s *Sudoku) dialAndHandshake(ctx context.Context, cfg *sudoku.Pro...
    method dialMultiplex (line 341) | func (s *Sudoku) dialMultiplex(ctx context.Context, targetAddress stri...
    method getOrCreateMuxClient (line 359) | func (s *Sudoku) getOrCreateMuxClient(ctx context.Context) (*sudoku.Mu...
    method resetMuxClient (line 395) | func (s *Sudoku) resetMuxClient() {
    method resetHTTPMaskClient (line 404) | func (s *Sudoku) resetHTTPMaskClient() {
    method getOrCreateHTTPMaskClient (line 414) | func (s *Sudoku) getOrCreateHTTPMaskClient(cfg *sudoku.ProtocolConfig)...
  type SudokuOption (line 30) | type SudokuOption struct
  type SudokuHTTPMaskOptions (line 52) | type SudokuHTTPMaskOptions struct
  function NewSudoku (line 145) | func NewSudoku(option SudokuOption) (*Sudoku, error) {
  function normalizeHTTPMaskMultiplex (line 251) | func normalizeHTTPMaskMultiplex(mode string) string {
  function httpTunnelModeEnabled (line 264) | func httpTunnelModeEnabled(mode string) bool {

FILE: core/Clash.Meta/adapter/outbound/trojan.go
  type Trojan (line 24) | type Trojan struct
    method StreamConnContext (line 67) | func (t *Trojan) StreamConnContext(ctx context.Context, c net.Conn, me...
    method streamConnContext (line 145) | func (t *Trojan) streamConnContext(ctx context.Context, c net.Conn, me...
    method writeHeaderContext (line 162) | func (t *Trojan) writeHeaderContext(ctx context.Context, c net.Conn, m...
    method dialContext (line 175) | func (t *Trojan) dialContext(ctx context.Context) (c net.Conn, err err...
    method DialContext (line 185) | func (t *Trojan) DialContext(ctx context.Context, metadata *C.Metadata...
    method ListenPacketContext (line 203) | func (t *Trojan) ListenPacketContext(ctx context.Context, metadata *C....
    method SupportUOT (line 226) | func (t *Trojan) SupportUOT() bool {
    method ProxyInfo (line 231) | func (t *Trojan) ProxyInfo() C.ProxyInfo {
    method Close (line 238) | func (t *Trojan) Close() error {
  type TrojanOption (line 38) | type TrojanOption struct
  type TrojanSSOption (line 61) | type TrojanSSOption struct
  function NewTrojan (line 248) | func NewTrojan(option TrojanOption) (*Trojan, error) {

FILE: core/Clash.Meta/adapter/outbound/trusttunnel.go
  type TrustTunnel (line 14) | type TrustTunnel struct
    method DialContext (line 48) | func (t *TrustTunnel) DialContext(ctx context.Context, metadata *C.Met...
    method ListenPacketContext (line 56) | func (t *TrustTunnel) ListenPacketContext(ctx context.Context, metadat...
    method SupportUOT (line 70) | func (t *TrustTunnel) SupportUOT() bool {
    method ProxyInfo (line 75) | func (t *TrustTunnel) ProxyInfo() C.ProxyInfo {
    method Close (line 82) | func (t *TrustTunnel) Close() error {
  type TrustTunnelOption (line 20) | type TrustTunnelOption struct
  function NewTrustTunnel (line 86) | func NewTrustTunnel(option TrustTunnelOption) (*TrustTunnel, error) {

FILE: core/Clash.Meta/adapter/outbound/tuic.go
  type Tuic (line 24) | type Tuic struct
    method DialContext (line 72) | func (t *Tuic) DialContext(ctx context.Context, metadata *C.Metadata) ...
    method ListenPacketContext (line 81) | func (t *Tuic) ListenPacketContext(ctx context.Context, metadata *C.Me...
    method dial (line 112) | func (t *Tuic) dial(ctx context.Context) (quicConn *quic.Conn, err err...
    method ProxyInfo (line 122) | func (t *Tuic) ProxyInfo() C.ProxyInfo {
  type TuicOption (line 34) | type TuicOption struct
  function NewTuic (line 128) | func NewTuic(option TuicOption) (*Tuic, error) {

FILE: core/Clash.Meta/adapter/outbound/util.go
  function serializesSocksAddr (line 17) | func serializesSocksAddr(metadata *C.Metadata) []byte {
  function resolveUDPAddr (line 37) | func resolveUDPAddr(ctx context.Context, network, address string, prefer...
  function safeConnClose (line 73) | func safeConnClose(c net.Conn, err error) {
  function StringToBps (line 81) | func StringToBps(s string) uint64 {

FILE: core/Clash.Meta/adapter/outbound/vless.go
  type Vless (line 34) | type Vless struct
    method StreamConnContext (line 137) | func (v *Vless) StreamConnContext(ctx context.Context, c net.Conn, met...
    method streamConnContext (line 232) | func (v *Vless) streamConnContext(ctx context.Context, c net.Conn, met...
    method streamTLSConn (line 267) | func (v *Vless) streamTLSConn(ctx context.Context, conn net.Conn, isH2...
    method dialContext (line 297) | func (v *Vless) dialContext(ctx context.Context) (c net.Conn, err erro...
    method DialContext (line 309) | func (v *Vless) DialContext(ctx context.Context, metadata *C.Metadata)...
    method ListenPacketContext (line 326) | func (v *Vless) ListenPacketContext(ctx context.Context, metadata *C.M...
    method SupportUOT (line 364) | func (v *Vless) SupportUOT() bool {
    method ProxyInfo (line 369) | func (v *Vless) ProxyInfo() C.ProxyInfo {
    method Close (line 376) | func (v *Vless) Close() error {
  type VlessOption (line 50) | type VlessOption struct
  type XHTTPOptions (line 81) | type XHTTPOptions struct
  type XHTTPReuseSettings (line 107) | type XHTTPReuseSettings struct
  type XHTTPDownloadSettings (line 116) | type XHTTPDownloadSettings struct
  function parseVlessAddr (line 391) | func parseVlessAddr(metadata *C.Metadata, xudp bool) *vless.DstAddr {
  function NewVless (line 419) | func NewVless(option VlessOption) (*Vless, error) {

FILE: core/Clash.Meta/adapter/outbound/vmess.go
  type Vmess (line 31) | type Vmess struct
    method StreamConnContext (line 103) | func (v *Vmess) StreamConnContext(ctx context.Context, c net.Conn, met...
    method streamConnContext (line 191) | func (v *Vmess) streamConnContext(ctx context.Context, c net.Conn, met...
    method streamTLSConn (line 247) | func (v *Vmess) streamTLSConn(ctx context.Context, conn net.Conn, isH2...
    method dialContext (line 277) | func (v *Vmess) dialContext(ctx context.Context) (c net.Conn, err erro...
    method DialContext (line 287) | func (v *Vmess) DialContext(ctx context.Context, metadata *C.Metadata)...
    method ListenPacketContext (line 304) | func (v *Vmess) ListenPacketContext(ctx context.Context, metadata *C.M...
    method ProxyInfo (line 329) | func (v *Vmess) ProxyInfo() C.ProxyInfo {
    method Close (line 336) | func (v *Vmess) Close() error {
    method SupportUOT (line 347) | func (v *Vmess) SupportUOT() bool {
  type VmessOption (line 43) | type VmessOption struct
  type HTTPOptions (line 74) | type HTTPOptions struct
  type HTTP2Options (line 80) | type HTTP2Options struct
  type GrpcOptions (line 85) | type GrpcOptions struct
  type WSOptions (line 94) | type WSOptions struct
  function NewVmess (line 351) | func NewVmess(option VmessOption) (*Vmess, error) {
  type vmessPacketConn (line 460) | type vmessPacketConn struct
    method WriteTo (line 468) | func (uc *vmessPacketConn) WriteTo(b []byte, addr net.Addr) (int, erro...
    method ReadFrom (line 479) | func (uc *vmessPacketConn) ReadFrom(b []byte) (int, net.Addr, error) {

FILE: core/Clash.Meta/adapter/outbound/wireguard.go
  type wireguardGoDevice (line 33) | type wireguardGoDevice interface
  type WireGuard (line 38) | type WireGuard struct
    method resolve (line 311) | func (w *WireGuard) resolve(ctx context.Context, address M.Socksaddr) ...
    method init (line 324) | func (w *WireGuard) init(ctx context.Context) error {
    method init0 (line 333) | func (w *WireGuard) init0(ctx context.Context) error {
    method updateServerAddr (line 376) | func (w *WireGuard) updateServerAddr(ctx context.Context) {
    method genIpcConf (line 395) | func (w *WireGuard) genIpcConf(ctx context.Context, updateOnly bool) (...
    method Close (line 546) | func (w *WireGuard) Close() error {
    method DialContext (line 553) | func (w *WireGuard) DialContext(ctx context.Context, metadata *C.Metad...
    method ListenPacketContext (line 579) | func (w *WireGuard) ListenPacketContext(ctx context.Context, metadata ...
    method ResolveUDP (line 597) | func (w *WireGuard) ResolveUDP(ctx context.Context, metadata *C.Metada...
    method ProxyInfo (line 613) | func (w *WireGuard) ProxyInfo() C.ProxyInfo {
    method IsL3Protocol (line 620) | func (w *WireGuard) IsL3Protocol(metadata *C.Metadata) bool {
  type WireGuardOption (line 57) | type WireGuardOption struct
    method Prefixes (line 139) | func (option WireGuardOption) Prefixes() ([]netip.Prefix, error) {
  type WireGuardPeerOption (line 79) | type WireGuardPeerOption struct
    method Addr (line 135) | func (option WireGuardPeerOption) Addr() M.Socksaddr {
  type AmneziaWGOption (line 88) | type AmneziaWGOption struct
  type wgSingErrorHandler (line 111) | type wgSingErrorHandler struct
    method NewError (line 117) | func (w wgSingErrorHandler) NewError(ctx context.Context, err error) {
  type wgNetDialer (line 125) | type wgNetDialer struct
    method DialContext (line 131) | func (d wgNetDialer) DialContext(ctx context.Context, network, address...
  function NewWireGuard (line 167) | func NewWireGuard(option WireGuardOption) (*WireGuard, error) {

FILE: core/Clash.Meta/adapter/outboundgroup/fallback.go
  type Fallback (line 16) | type Fallback struct
    method Now (line 24) | func (f *Fallback) Now() string {
    method DialContext (line 30) | func (f *Fallback) DialContext(ctx context.Context, metadata *C.Metada...
    method ListenPacketContext (line 53) | func (f *Fallback) ListenPacketContext(ctx context.Context, metadata *...
    method SupportUDP (line 64) | func (f *Fallback) SupportUDP() bool {
    method IsL3Protocol (line 74) | func (f *Fallback) IsL3Protocol(metadata *C.Metadata) bool {
    method MarshalJSON (line 79) | func (f *Fallback) MarshalJSON() ([]byte, error) {
    method Unwrap (line 97) | func (f *Fallback) Unwrap(metadata *C.Metadata, touch bool) C.Proxy {
    method findAliveProxy (line 102) | func (f *Fallback) findAliveProxy(touch bool) C.Proxy {
    method Set (line 123) | func (f *Fallback) Set(name string) error {
    method ForceSet (line 147) | func (f *Fallback) ForceSet(name string) {
    method Providers (line 151) | func (f *Fallback) Providers() []P.ProxyProvider {
    method Proxies (line 155) | func (f *Fallback) Proxies() []C.Proxy {
  function NewFallback (line 159) | func NewFallback(option *GroupCommonOption, providers []P.ProxyProvider)...

FILE: core/Clash.Meta/adapter/outboundgroup/groupbase.go
  type GroupBase (line 23) | type GroupBase struct
    method Hidden (line 102) | func (gb *GroupBase) Hidden() bool {
    method Icon (line 106) | func (gb *GroupBase) Icon() string {
    method Touch (line 110) | func (gb *GroupBase) Touch() {
    method GetProxies (line 116) | func (gb *GroupBase) GetProxies(touch bool) []C.Proxy {
    method URLTest (line 231) | func (gb *GroupBase) URLTest(ctx context.Context, url string, expected...
    method onDialFailed (line 259) | func (gb *GroupBase) onDialFailed(adapterType C.AdapterType, err error...
    method healthCheck (line 296) | func (gb *GroupBase) healthCheck() {
    method onDialSuccess (line 317) | func (gb *GroupBase) onDialSuccess() {
  type GroupBaseOption (line 44) | type GroupBaseOption struct
  function NewGroupBase (line 57) | func NewGroupBase(opt GroupBaseOption) *GroupBase {

FILE: core/Clash.Meta/adapter/outboundgroup/loadbalance.go
  type LoadBalance (line 24) | type LoadBalance struct
    method DialContext (line 87) | func (lb *LoadBalance) DialContext(ctx context.Context, metadata *C.Me...
    method ListenPacketContext (line 111) | func (lb *LoadBalance) ListenPacketContext(ctx context.Context, metada...
    method SupportUDP (line 123) | func (lb *LoadBalance) SupportUDP() bool {
    method IsL3Protocol (line 128) | func (lb *LoadBalance) IsL3Protocol(metadata *C.Metadata) bool {
    method Unwrap (line 219) | func (lb *LoadBalance) Unwrap(metadata *C.Metadata, touch bool) C.Proxy {
    method MarshalJSON (line 225) | func (lb *LoadBalance) MarshalJSON() ([]byte, error) {
    method Providers (line 240) | func (lb *LoadBalance) Providers() []P.ProxyProvider {
    method Proxies (line 244) | func (lb *LoadBalance) Proxies() []C.Proxy {
    method Now (line 248) | func (lb *LoadBalance) Now() string {
  function parseStrategy (line 34) | func parseStrategy(config map[string]any) string {
  function getKey (line 41) | func getKey(metadata *C.Metadata) string {
  function getKeyWithSrcAndDst (line 64) | func getKeyWithSrcAndDst(metadata *C.Metadata) string {
  function jumpHash (line 74) | func jumpHash(key uint64, buckets int32) int32 {
  function strategyRoundRobin (line 132) | func strategyRoundRobin(url string) strategyFn {
  function strategyConsistentHashing (line 161) | func strategyConsistentHashing(url string) strategyFn {
  function strategyStickySessions (line 185) | func strategyStickySessions(url string) strategyFn {
  function NewLoadBalance (line 252) | func NewLoadBalance(option *GroupCommonOption, providers []P.ProxyProvid...

FILE: core/Clash.Meta/adapter/outboundgroup/parser.go
  type GroupCommonOption (line 25) | type GroupCommonOption struct
  function ParseProxyGroup (line 47) | func ParseProxyGroup(config map[string]any, proxyMap map[string]C.Proxy,...
  function getProxies (line 196) | func getProxies(mapping map[string]C.Proxy, list []string) ([]C.Proxy, e...
  function getProviders (line 208) | func getProviders(mapping map[string]P.ProxyProvider, list []string) ([]...
  function addTestUrlToProviders (line 224) | func addTestUrlToProviders(providers []P.ProxyProvider, url string, expe...

FILE: core/Clash.Meta/adapter/outboundgroup/selector.go
  type Selector (line 12) | type Selector struct
    method DialContext (line 20) | func (s *Selector) DialContext(ctx context.Context, metadata *C.Metada...
    method ListenPacketContext (line 29) | func (s *Selector) ListenPacketContext(ctx context.Context, metadata *...
    method SupportUDP (line 38) | func (s *Selector) SupportUDP() bool {
    method IsL3Protocol (line 47) | func (s *Selector) IsL3Protocol(metadata *C.Metadata) bool {
    method MarshalJSON (line 52) | func (s *Selector) MarshalJSON() ([]byte, error) {
    method Now (line 74) | func (s *Selector) Now() string {
    method Set (line 78) | func (s *Selector) Set(name string) error {
    method ForceSet (line 89) | func (s *Selector) ForceSet(name string) {
    method Unwrap (line 94) | func (s *Selector) Unwrap(metadata *C.Metadata, touch bool) C.Proxy {
    method selectedProxy (line 98) | func (s *Selector) selectedProxy(touch bool) C.Proxy {
    method Providers (line 109) | func (s *Selector) Providers() []P.ProxyProvider {
    method Proxies (line 113) | func (s *Selector) Proxies() []C.Proxy {
  function NewSelector (line 117) | func NewSelector(option *GroupCommonOption, providers []P.ProxyProvider)...

FILE: core/Clash.Meta/adapter/outboundgroup/urltest.go
  type urlTestOption (line 17) | type urlTestOption
  function urlTestWithTolerance (line 19) | func urlTestWithTolerance(tolerance uint16) urlTestOption {
  type URLTest (line 25) | type URLTest struct
    method Now (line 36) | func (u *URLTest) Now() string {
    method Set (line 40) | func (u *URLTest) Set(name string) error {
    method ForceSet (line 55) | func (u *URLTest) ForceSet(name string) {
    method DialContext (line 61) | func (u *URLTest) DialContext(ctx context.Context, metadata *C.Metadat...
    method ListenPacketContext (line 84) | func (u *URLTest) ListenPacketContext(ctx context.Context, metadata *C...
    method Unwrap (line 97) | func (u *URLTest) Unwrap(metadata *C.Metadata, touch bool) C.Proxy {
    method healthCheck (line 101) | func (u *URLTest) healthCheck() {
    method fast (line 107) | func (u *URLTest) fast(touch bool) C.Proxy {
    method SupportUDP (line 156) | func (u *URLTest) SupportUDP() bool {
    method IsL3Protocol (line 164) | func (u *URLTest) IsL3Protocol(metadata *C.Metadata) bool {
    method MarshalJSON (line 169) | func (u *URLTest) MarshalJSON() ([]byte, error) {
    method Providers (line 186) | func (u *URLTest) Providers() []P.ProxyProvider {
    method Proxies (line 190) | func (u *URLTest) Proxies() []C.Proxy {
    method URLTest (line 194) | func (u *URLTest) URLTest(ctx context.Context, url string, expectedSta...
  function parseURLTestOption (line 198) | func parseURLTestOption(config map[string]any) []urlTestOption {
  function NewURLTest (line 211) | func NewURLTest(option *GroupCommonOption, providers []P.ProxyProvider, ...

FILE: core/Clash.Meta/adapter/outboundgroup/util.go
  type ProxyGroup (line 11) | type ProxyGroup interface
  type SelectAble (line 30) | type SelectAble interface

FILE: core/Clash.Meta/adapter/parser.go
  function ParseProxy (line 11) | func ParseProxy(mapping map[string]any, options ...ProxyOption) (C.Proxy...
  type proxyOption (line 202) | type proxyOption struct
  function applyProxyOptions (line 207) | func applyProxyOptions(options ...ProxyOption) proxyOption {
  type ProxyOption (line 215) | type ProxyOption
  function WithDialerForAPI (line 217) | func WithDialerForAPI(dialer C.Dialer) ProxyOption {
  function WithProviderName (line 223) | func WithProviderName(name string) ProxyOption {

FILE: core/Clash.Meta/adapter/patch.go
  type UrlTestCheck (line 3) | type UrlTestCheck

FILE: core/Clash.Meta/adapter/provider/healthcheck.go
  type HealthCheckOption (line 19) | type HealthCheckOption struct
  type extraOption (line 24) | type extraOption struct
  type HealthCheck (line 29) | type HealthCheck struct
    method process (line 44) | func (hc *HealthCheck) process() {
    method setProxies (line 64) | func (hc *HealthCheck) setProxies(proxies []C.Proxy) {
    method registerHealthCheckTask (line 68) | func (hc *HealthCheck) registerHealthCheckTask(url string, expectedSta...
    method auto (line 115) | func (hc *HealthCheck) auto() bool {
    method touch (line 119) | func (hc *HealthCheck) touch() {
    method check (line 123) | func (hc *HealthCheck) check() {
    method execute (line 150) | func (hc *HealthCheck) execute(b *errgroup.Group, url, uid string, opt...
    method close (line 191) | func (hc *HealthCheck) close() {
  function splitAndAddFiltersToExtra (line 103) | func splitAndAddFiltersToExtra(filter string, option *extraOption) {
  function NewHealthCheck (line 195) | func NewHealthCheck(proxies []C.Proxy, url string, timeout uint, interva...

FILE: core/Clash.Meta/adapter/provider/override.go
  type overrideSchema (line 10) | type overrideSchema struct
    method Apply (line 37) | func (o *overrideSchema) Apply(mapping map[string]any) error {
  type overrideProxyNameSchema (line 28) | type overrideProxyNameSchema struct

FILE: core/Clash.Meta/adapter/provider/parser.go
  type healthCheckSchema (line 19) | type healthCheckSchema struct
  type proxyProviderSchema (line 28) | type proxyProviderSchema struct
  function ParseProxyProvider (line 46) | func ParseProxyProvider(name string, mapping map[string]any) (P.ProxyPro...

FILE: core/Clash.Meta/adapter/provider/patch.go
  method GetSubscriptionInfo (line 3) | func (pp *proxySetProvider) GetSubscriptionInfo() *SubscriptionInfo {

FILE: core/Clash.Meta/adapter/provider/provider.go
  constant ReservedName (line 27) | ReservedName = "default"
  type ProxySchema (line 30) | type ProxySchema struct
  type providerForApi (line 34) | type providerForApi struct
  type baseProvider (line 45) | type baseProvider struct
    method Name (line 53) | func (bp *baseProvider) Name() string {
    method Version (line 57) | func (bp *baseProvider) Version() uint32 {
    method Initial (line 63) | func (bp *baseProvider) Initial() error {
    method HealthCheck (line 70) | func (bp *baseProvider) HealthCheck() {
    method Type (line 74) | func (bp *baseProvider) Type() P.ProviderType {
    method Proxies (line 78) | func (bp *baseProvider) Proxies() []C.Proxy {
    method Count (line 84) | func (bp *baseProvider) Count() int {
    method Touch (line 90) | func (bp *baseProvider) Touch() {
    method HealthCheckURL (line 94) | func (bp *baseProvider) HealthCheckURL() string {
    method RegisterHealthCheckTask (line 98) | func (bp *baseProvider) RegisterHealthCheckTask(url string, expectedSt...
    method setProxies (line 102) | func (bp *baseProvider) setProxies(proxies []C.Proxy) {
    method Close (line 113) | func (bp *baseProvider) Close() error {
  type ProxySetProvider (line 119) | type ProxySetProvider struct
    method Close (line 223) | func (pp *ProxySetProvider) Close() error {
  type proxySetProvider (line 123) | type proxySetProvider struct
    method MarshalJSON (line 129) | func (pp *proxySetProvider) MarshalJSON() ([]byte, error) {
    method Name (line 142) | func (pp *proxySetProvider) Name() string {
    method Update (line 146) | func (pp *proxySetProvider) Update() error {
    method Initial (line 151) | func (pp *proxySetProvider) Initial() error {
    method closeAllConnections (line 166) | func (pp *proxySetProvider) closeAllConnections() {
    method Close (line 178) | func (pp *proxySetProvider) Close() error {
  function NewProxySetProvider (line 183) | func NewProxySetProvider(name string, interval time.Duration, payload []...
  type InlineProvider (line 229) | type InlineProvider struct
    method Close (line 286) | func (ip *InlineProvider) Close() error {
  type inlineProvider (line 233) | type inlineProvider struct
    method MarshalJSON (line 238) | func (ip *inlineProvider) MarshalJSON() ([]byte, error) {
    method VehicleType (line 250) | func (ip *inlineProvider) VehicleType() P.VehicleType {
    method Update (line 254) | func (ip *inlineProvider) Update() error {
  function NewInlineProvider (line 260) | func NewInlineProvider(name string, payload []map[string]any, parser res...
  type CompatibleProvider (line 292) | type CompatibleProvider struct
    method Close (line 337) | func (cp *CompatibleProvider) Close() error {
  type compatibleProvider (line 296) | type compatibleProvider struct
    method MarshalJSON (line 300) | func (cp *compatibleProvider) MarshalJSON() ([]byte, error) {
    method Update (line 311) | func (cp *compatibleProvider) Update() error {
    method VehicleType (line 315) | func (cp *compatibleProvider) VehicleType() P.VehicleType {
  function NewCompatibleProvider (line 319) | func NewCompatibleProvider(name string, proxies []C.Proxy, hc *HealthChe...
  function NewProxiesParser (line 342) | func NewProxiesParser(pdName string, filter string, excludeFilter string...

FILE: core/Clash.Meta/adapter/provider/subscription_info.go
  type SubscriptionInfo (line 11) | type SubscriptionInfo struct
  function NewSubscriptionInfo (line 18) | func NewSubscriptionInfo(userinfo string) (si *SubscriptionInfo) {
  function parseValue (line 48) | func parseValue(value string) (int64, error) {

FILE: core/Clash.Meta/android_tz.go
  function init (line 15) | func init() {

FILE: core/Clash.Meta/common/arc/arc.go
  type Option (line 14) | type Option
  function WithSize (line 16) | func WithSize[K comparable, V any](maxSize int) Option[K, V] {
  type ARC (line 22) | type ARC struct
  function New (line 35) | func New[K comparable, V any](options ...Option[K, V]) *ARC[K, V] {
  method Clear (line 45) | func (a *ARC[K, V]) Clear() {
  method Set (line 60) | func (a *ARC[K, V]) Set(key K, value V) {
  method set (line 67) | func (a *ARC[K, V]) set(key K, value V) {
  method SetWithExpire (line 73) | func (a *ARC[K, V]) SetWithExpire(key K, value V, expires time.Time) {
  method setWithExpire (line 80) | func (a *ARC[K, V]) setWithExpire(key K, value V, expires time.Time) {
  method Get (line 102) | func (a *ARC[K, V]) Get(key K) (value V, ok bool) {
  method get (line 113) | func (a *ARC[K, V]) get(key K) (e *entry[K, V], ok bool) {
  method GetWithExpire (line 126) | func (a *ARC[K, V]) GetWithExpire(key K) (V, time.Time, bool) {
  method Len (line 140) | func (a *ARC[K, V]) Len() int {
  method req (line 147) | func (a *ARC[K, V]) req(ent *entry[K, V]) {
  method delLRU (line 206) | func (a *ARC[K, V]) delLRU(list *list.List[*entry[K, V]]) {
  method replace (line 213) | func (a *ARC[K, V]) replace(ent *entry[K, V]) {
  function min (line 229) | func min(a, b int) int {
  function max (line 236) | func max(a int, b int) int {

FILE: core/Clash.Meta/common/arc/arc_test.go
  function TestInsertion (line 7) | func TestInsertion(t *testing.T) {
  function TestEviction (line 67) | func TestEviction(t *testing.T) {

FILE: core/Clash.Meta/common/arc/entry.go
  type entry (line 7) | type entry struct
  method setLRU (line 16) | func (e *entry[K, V]) setLRU(list *list.List[*entry[K, V]]) {
  method setMRU (line 22) | func (e *entry[K, V]) setMRU(list *list.List[*entry[K, V]]) {
  method detach (line 28) | func (e *entry[K, V]) detach() {

FILE: core/Clash.Meta/common/atomic/enum.go
  type Int32Enum (line 9) | type Int32Enum struct
  method MarshalJSON (line 13) | func (i *Int32Enum[T]) MarshalJSON() ([]byte, error) {
  method UnmarshalJSON (line 17) | func (i *Int32Enum[T]) UnmarshalJSON(b []byte) error {
  method MarshalYAML (line 26) | func (i *Int32Enum[T]) MarshalYAML() (any, error) {
  method UnmarshalYAML (line 30) | func (i *Int32Enum[T]) UnmarshalYAML(unmarshal func(any) error) error {
  method String (line 39) | func (i *Int32Enum[T]) String() string {
  method Store (line 43) | func (i *Int32Enum[T]) Store(v T) {
  method Load (line 47) | func (i *Int32Enum[T]) Load() T {
  method Swap (line 51) | func (i *Int32Enum[T]) Swap(new T) T {
  method CompareAndSwap (line 55) | func (i *Int32Enum[T]) CompareAndSwap(old, new T) bool {
  function NewInt32Enum (line 59) | func NewInt32Enum[T ~int32](v T) *Int32Enum[T] {

FILE: core/Clash.Meta/common/atomic/type.go
  type Bool (line 10) | type Bool struct
    method MarshalJSON (line 19) | func (i *Bool) MarshalJSON() ([]byte, error) {
    method UnmarshalJSON (line 23) | func (i *Bool) UnmarshalJSON(b []byte) error {
    method MarshalYAML (line 32) | func (i *Bool) MarshalYAML() (any, error) {
    method UnmarshalYAML (line 36) | func (i *Bool) UnmarshalYAML(unmarshal func(any) error) error {
    method String (line 45) | func (i *Bool) String() string {
  function NewBool (line 14) | func NewBool(val bool) (i Bool) {
  type Pointer (line 50) | type Pointer struct
  function NewPointer (line 54) | func NewPointer[T any](v *T) (p Pointer[T]) {
  method MarshalJSON (line 61) | func (p *Pointer[T]) MarshalJSON() ([]byte, error) {
  method UnmarshalJSON (line 65) | func (p *Pointer[T]) UnmarshalJSON(b []byte) error {
  method MarshalYAML (line 74) | func (p *Pointer[T]) MarshalYAML() (any, error) {
  method UnmarshalYAML (line 78) | func (p *Pointer[T]) UnmarshalYAML(unmarshal func(any) error) error {
  method String (line 87) | func (p *Pointer[T]) String() string {
  type Int32 (line 91) | type Int32 struct
    method MarshalJSON (line 100) | func (i *Int32) MarshalJSON() ([]byte, error) {
    method UnmarshalJSON (line 104) | func (i *Int32) UnmarshalJSON(b []byte) error {
    method MarshalYAML (line 113) | func (i *Int32) MarshalYAML() (any, error) {
    method UnmarshalYAML (line 117) | func (i *Int32) UnmarshalYAML(unmarshal func(any) error) error {
    method String (line 126) | func (i *Int32) String() string {
  function NewInt32 (line 95) | func NewInt32(val int32) (i Int32) {
  type Int64 (line 131) | type Int64 struct
    method MarshalJSON (line 140) | func (i *Int64) MarshalJSON() ([]byte, error) {
    method UnmarshalJSON (line 144) | func (i *Int64) UnmarshalJSON(b []byte) error {
    method MarshalYAML (line 153) | func (i *Int64) MarshalYAML() (any, error) {
    method UnmarshalYAML (line 157) | func (i *Int64) UnmarshalYAML(unmarshal func(any) error) error {
    method String (line 166) | func (i *Int64) String() string {
  function NewInt64 (line 135) | func NewInt64(val int64) (i Int64) {
  type Uint32 (line 171) | type Uint32 struct
    method MarshalJSON (line 180) | func (i *Uint32) MarshalJSON() ([]byte, error) {
    method UnmarshalJSON (line 184) | func (i *Uint32) UnmarshalJSON(b []byte) error {
    method MarshalYAML (line 193) | func (i *Uint32) MarshalYAML() (any, error) {
    method UnmarshalYAML (line 197) | func (i *Uint32) UnmarshalYAML(unmarshal func(any) error) error {
    method String (line 206) | func (i *Uint32) String() string {
  function NewUint32 (line 175) | func NewUint32(val uint32) (i Uint32) {
  type Uint64 (line 211) | type Uint64 struct
    method MarshalJSON (line 220) | func (i *Uint64) MarshalJSON() ([]byte, error) {
    method UnmarshalJSON (line 224) | func (i *Uint64) UnmarshalJSON(b []byte) error {
    method MarshalYAML (line 233) | func (i *Uint64) MarshalYAML() (any, error) {
    method UnmarshalYAML (line 237) | func (i *Uint64) UnmarshalYAML(unmarshal func(any) error) error {
    method String (line 246) | func (i *Uint64) String() string {
  function NewUint64 (line 215) | func NewUint64(val uint64) (i Uint64) {
  type Uintptr (line 251) | type Uintptr struct
    method MarshalJSON (line 260) | func (i *Uintptr) MarshalJSON() ([]byte, error) {
    method UnmarshalJSON (line 264) | func (i *Uintptr) UnmarshalJSON(b []byte) error {
    method MarshalYAML (line 273) | func (i *Uintptr) MarshalYAML() (any, error) {
    method UnmarshalYAML (line 277) | func (i *Uintptr) UnmarshalYAML(unmarshal func(any) error) error {
    method String (line 286) | func (i *Uintptr) String() string {
  function NewUintptr (line 255) | func NewUintptr(val uintptr) (i Uintptr) {

FILE: core/Clash.Meta/common/atomic/value.go
  type TypedValue (line 8) | type TypedValue struct
  method Load (line 12) | func (t *TypedValue[T]) Load() (v T) {
  method LoadOk (line 17) | func (t *TypedValue[T]) LoadOk() (v T, ok bool) {
  method Store (line 25) | func (t *TypedValue[T]) Store(value T) {
  method Swap (line 29) | func (t *TypedValue[T]) Swap(new T) (v T) {
  method CompareAndSwap (line 37) | func (t *TypedValue[T]) CompareAndSwap(old, new T) bool {
  method MarshalJSON (line 54) | func (t *TypedValue[T]) MarshalJSON() ([]byte, error) {
  method UnmarshalJSON (line 58) | func (t *TypedValue[T]) UnmarshalJSON(b []byte) error {
  method MarshalYAML (line 67) | func (t *TypedValue[T]) MarshalYAML() (any, error) {
  method UnmarshalYAML (line 71) | func (t *TypedValue[T]) UnmarshalYAML(unmarshal func(any) error) error {
  function NewTypedValue (line 80) | func NewTypedValue[T any](t T) (v TypedValue[T]) {

FILE: core/Clash.Meta/common/atomic/value_test.go
  function TestTypedValue (line 9) | func TestTypedValue(t *testing.T) {

FILE: core/Clash.Meta/common/batch/batch.go
  type Option (line 8) | type Option
  type Result (line 10) | type Result struct
  type Error (line 15) | type Error struct
  function WithConcurrencyNum (line 20) | func WithConcurrencyNum[T any](n int) Option[T] {
  type Batch (line 31) | type Batch struct
  method Go (line 41) | func (b *Batch[T]) Go(key string, fn func() (T, error)) {
  method Wait (line 69) | func (b *Batch[T]) Wait() *Error {
  method WaitAndGetResult (line 77) | func (b *Batch[T]) WaitAndGetResult() (map[string]Result[T], *Error) {
  method Result (line 82) | func (b *Batch[T]) Result() map[string]Result[T] {
  function New (line 92) | func New[T any](ctx context.Context, opts ...Option[T]) (*Batch[T], cont...

FILE: core/Clash.Meta/common/batch/batch_test.go
  function TestBatch (line 13) | func TestBatch(t *testing.T) {
  function TestBatchWithConcurrencyNum (line 39) | func TestBatchWithConcurrencyNum(t *testing.T) {
  function TestBatchContext (line 64) | func TestBatchContext(t *testing.T) {

FILE: core/Clash.Meta/common/buf/sing.go
  constant BufferSize (line 7) | BufferSize = buf.BufferSize
  function New (line 11) | func New() *Buffer {
  function NewPacket (line 15) | func NewPacket() *Buffer {
  function NewSize (line 19) | func NewSize(size int) *Buffer {
  function With (line 23) | func With(data []byte) *Buffer {
  function As (line 27) | func As(data []byte) *Buffer {
  function ReleaseMulti (line 31) | func ReleaseMulti(buffers []*Buffer) {
  function Error (line 35) | func Error(_ any, err error) error {
  function Must (line 39) | func Must(errs ...error) {
  function Must1 (line 47) | func Must1[T any](result T, err error) T {
  function Must2 (line 54) | func Must2[T any, T2 any](result T, result2 T2, err error) (T, T2) {

FILE: core/Clash.Meta/common/callback/callback.go
  type firstWriteCallBackConn (line 9) | type firstWriteCallBackConn struct
    method Write (line 15) | func (c *firstWriteCallBackConn) Write(b []byte) (n int, err error) {
    method WriteBuffer (line 25) | func (c *firstWriteCallBackConn) WriteBuffer(buffer *buf.Buffer) (err ...
    method Upstream (line 35) | func (c *firstWriteCallBackConn) Upstream() any {
    method WriterReplaceable (line 39) | func (c *firstWriteCallBackConn) WriterReplaceable() bool {
    method ReaderReplaceable (line 43) | func (c *firstWriteCallBackConn) ReaderReplaceable() bool {
  function NewFirstWriteCallBackConn (line 49) | func NewFirstWriteCallBackConn(c C.Conn, callback func(error)) C.Conn {

FILE: core/Clash.Meta/common/callback/close_callback.go
  type closeCallbackConn (line 9) | type closeCallbackConn struct
    method Close (line 15) | func (w *closeCallbackConn) Close() error {
    method ReaderReplaceable (line 20) | func (w *closeCallbackConn) ReaderReplaceable() bool {
    method WriterReplaceable (line 24) | func (w *closeCallbackConn) WriterReplaceable() bool {
    method Upstream (line 28) | func (w *closeCallbackConn) Upstream() any {
  function NewCloseCallbackConn (line 32) | func NewCloseCallbackConn(conn C.Conn, callback func()) C.Conn {
  type closeCallbackPacketConn (line 36) | type closeCallbackPacketConn struct
    method Close (line 42) | func (w *closeCallbackPacketConn) Close() error {
    method ReaderReplaceable (line 47) | func (w *closeCallbackPacketConn) ReaderReplaceable() bool {
    method WriterReplaceable (line 51) | func (w *closeCallbackPacketConn) WriterReplaceable() bool {
    method Upstream (line 55) | func (w *closeCallbackPacketConn) Upstream() any {
  function NewCloseCallbackPacketConn (line 59) | func NewCloseCallbackPacketConn(conn C.PacketConn, callback func()) C.Pa...

FILE: core/Clash.Meta/common/cmd/cmd.go
  function ExecCmd (line 10) | func ExecCmd(cmdStr string) (string, error) {
  function splitArgs (line 28) | func splitArgs(cmd string) []string {
  function ExecShell (line 39) | func ExecShell(shellStr string) (string, error) {

FILE: core/Clash.Meta/common/cmd/cmd_other.go
  function prepareBackgroundCommand (line 9) | func prepareBackgroundCommand(cmd *exec.Cmd) {

FILE: core/Clash.Meta/common/cmd/cmd_test.go
  function TestSplitArgs (line 10) | func TestSplitArgs(t *testing.T) {
  function TestExecCmd (line 22) | func TestExecCmd(t *testing.T) {

FILE: core/Clash.Meta/common/cmd/cmd_windows.go
  function prepareBackgroundCommand (line 10) | func prepareBackgroundCommand(cmd *exec.Cmd) {

FILE: core/Clash.Meta/common/contextutils/afterfunc_compact.go
  function afterFunc (line 8) | func afterFunc(ctx context.Context, f func()) (stop func() bool) {

FILE: core/Clash.Meta/common/contextutils/afterfunc_go120.go
  function AfterFunc (line 9) | func AfterFunc(ctx context.Context, f func()) (stop func() bool) {

FILE: core/Clash.Meta/common/contextutils/afterfunc_go121.go
  function AfterFunc (line 7) | func AfterFunc(ctx context.Context, f func()) (stop func() bool) {

FILE: core/Clash.Meta/common/contextutils/afterfunc_test.go
  constant shortDuration (line 10) | shortDuration    = 1 * time.Millisecond
  constant veryLongDuration (line 11) | veryLongDuration = 1000 * time.Hour
  function TestAfterFuncCalledAfterCancel (line 14) | func TestAfterFuncCalledAfterCancel(t *testing.T) {
  function TestAfterFuncCalledAfterTimeout (line 36) | func TestAfterFuncCalledAfterTimeout(t *testing.T) {
  function TestAfterFuncCalledImmediately (line 50) | func TestAfterFuncCalledImmediately(t *testing.T) {
  function TestAfterFuncNotCalledAfterStop (line 64) | func TestAfterFuncNotCalledAfterStop(t *testing.T) {
  function TestAfterFuncCalledAsynchronously (line 85) | func TestAfterFuncCalledAsynchronously(t *testing.T) {

FILE: core/Clash.Meta/common/contextutils/withoutcancel_compact.go
  type withoutCancelCtx (line 8) | type withoutCancelCtx struct
    method Deadline (line 12) | func (withoutCancelCtx) Deadline() (deadline time.Time, ok bool) {
    method Done (line 16) | func (withoutCancelCtx) Done() <-chan struct{} {
    method Err (line 20) | func (withoutCancelCtx) Err() error {
    method Value (line 24) | func (c withoutCancelCtx) Value(key any) any {

FILE: core/Clash.Meta/common/contextutils/withoutcancel_go120.go
  function WithoutCancel (line 7) | func WithoutCancel(parent context.Context) context.Context {

FILE: core/Clash.Meta/common/contextutils/withoutcancel_go121.go
  function WithoutCancel (line 7) | func WithoutCancel(parent context.Context) context.Context {

FILE: core/Clash.Meta/common/convert/base64.go
  function DecodeBase64 (line 16) | func DecodeBase64(buf []byte) []byte {
  function tryDecodeBase64 (line 24) | func tryDecodeBase64(buf []byte) ([]byte, error) {
  function urlSafe (line 36) | func urlSafe(data string) string {
  function decodeUrlSafe (line 40) | func decodeUrlSafe(data string) string {
  function TryDecodeBase64 (line 48) | func TryDecodeBase64(s string) (decoded []byte, err error) {

FILE: core/Clash.Meta/common/convert/converter.go
  function ConvertsV2Ray (line 16) | func ConvertsV2Ray(buf []byte) ([]map[string]any, error) {
  function uniqueName (line 707) | func uniqueName(names map[string]int, name string) string {

FILE: core/Clash.Meta/common/convert/converter_test.go
  function TestConvertsV2Ray_normal (line 13) | func TestConvertsV2Ray_normal(t *testing.T) {
  function TestConvertsV2RayMieru (line 43) | func TestConvertsV2RayMieru(t *testing.T) {
  function TestConvertsV2RayMieruMinimal (line 110) | func TestConvertsV2RayMieruMinimal(t *testing.T) {
  function TestConvertsV2RayMieruFragment (line 135) | func TestConvertsV2RayMieruFragment(t *testing.T) {
  function TestConvertsV2RayVlessRealityVisionTCPWithoutHeaderType (line 148) | func TestConvertsV2RayVlessRealityVisionTCPWithoutHeaderType(t *testing....
  function TestConvertsV2RayVlessTCPHTTPHeaderType (line 166) | func TestConvertsV2RayVlessTCPHTTPHeaderType(t *testing.T) {
  function TestConvertsV2RayVlessHTTPTransportUsesH2Opts (line 187) | func TestConvertsV2RayVlessHTTPTransportUsesH2Opts(t *testing.T) {
  function TestConvertsV2RayVmessBase64H2Transport (line 208) | func TestConvertsV2RayVmessBase64H2Transport(t *testing.T) {
  function TestConvertsV2RayVmessBase64HTTPRemappedToH2Transport (line 234) | func TestConvertsV2RayVmessBase64HTTPRemappedToH2Transport(t *testing.T) {

FILE: core/Clash.Meta/common/convert/util.go
  function RandHost (line 296) | func RandHost() string {
  function RandUserAgent (line 308) | func RandUserAgent() string {
  function SetUserAgent (line 312) | func SetUserAgent(header http.Header) {
  function VerifyMethod (line 320) | func VerifyMethod(cipher, password string) (err error) {

FILE: core/Clash.Meta/common/convert/v.go
  function handleVShareLink (line 12) | func handleVShareLink(names map[string]int, url *url.URL, scheme string,...
  function parseXHTTPExtra (line 166) | func parseXHTTPExtra(extra map[string]any, opts map[string]any) {

FILE: core/Clash.Meta/common/deque/deque.go
  constant minCapacity (line 12) | minCapacity = 8
  type Deque (line 37) | type Deque struct
  method Cap (line 46) | func (q *Deque[T]) Cap() int {
  method Len (line 55) | func (q *Deque[T]) Len() int {
  method PushBack (line 65) | func (q *Deque[T]) PushBack(elem T) {
  method PushFront (line 75) | func (q *Deque[T]) PushFront(elem T) {
  method PopFront (line 87) | func (q *Deque[T]) PopFront() T {
  method IterPopFront (line 106) | func (q *Deque[T]) IterPopFront() func(yield func(T) bool) {
  method PopBack (line 128) | func (q *Deque[T]) PopBack() T {
  method IterPopBack (line 150) | func (q *Deque[T]) IterPopBack() func(yield func(T) bool) {
  method Front (line 172) | func (q *Deque[T]) Front() T {
  method Back (line 181) | func (q *Deque[T]) Back() T {
  method At (line 200) | func (q *Deque[T]) At(i int) T {
  method Set (line 209) | func (q *Deque[T]) Set(i int, item T) {
  method Iter (line 218) | func (q *Deque[T]) Iter() func(yield func(T) bool) {
  method RIter (line 238) | func (q *Deque[T]) RIter() func(yield func(T) bool) {
  method Clear (line 260) | func (q *Deque[T]) Clear() {
  function clearSlice (line 277) | func clearSlice[S ~[]E, E any](s S) {
  method Grow (line 287) | func (q *Deque[T]) Grow(n int) {
  method Copy (line 327) | func (q *Deque[T]) Copy(src Deque[T]) int {
  method AppendToSlice (line 348) | func (q *Deque[T]) AppendToSlice(out []T) []T {
  method CopyInSlice (line 375) | func (q *Deque[T]) CopyInSlice(in []T) {
  method CopyOutSlice (line 412) | func (q *Deque[T]) CopyOutSlice(out []T) int {
  method Rotate (line 438) | func (q *Deque[T]) Rotate(n int) {
  method Index (line 486) | func (q *Deque[T]) Index(f func(T) bool) int {
  method RIndex (line 501) | func (q *Deque[T]) RIndex(f func(T) bool) int {
  method Insert (line 522) | func (q *Deque[T]) Insert(at int, item T) {
  method Remove (line 560) | func (q *Deque[T]) Remove(at int) T {
  method SetBaseCap (line 582) | func (q *Deque[T]) SetBaseCap(baseCap int) {
  method Swap (line 592) | func (q *Deque[T]) Swap(idxA, idxB int) {
  method checkRange (line 604) | func (q *Deque[T]) checkRange(i int) {
  method prev (line 611) | func (q *Deque[T]) prev(i int) int {
  method next (line 616) | func (q *Deque[T]) next(i int) int {
  method growIfFull (line 621) | func (q *Deque[T]) growIfFull() {
  method shrinkIfExcess (line 636) | func (q *Deque[T]) shrinkIfExcess() {
  method shrinkToFit (line 642) | func (q *Deque[T]) shrinkToFit() {
  method resize (line 662) | func (q *Deque[T]) resize(newSize int) {

FILE: core/Clash.Meta/common/httputils/addr.go
  type NetAddr (line 13) | type NetAddr struct
    method RemoteAddr (line 18) | func (addr NetAddr) RemoteAddr() net.Addr {
    method LocalAddr (line 22) | func (addr NetAddr) LocalAddr() net.Addr {
  function SetAddrFromRequest (line 26) | func SetAddrFromRequest(addr *NetAddr, request *http.Request) {
  function NewAddrContext (line 38) | func NewAddrContext(addr *NetAddr, ctx context.Context) context.Context {

FILE: core/Clash.Meta/common/httputils/force_close.go
  type closeIdleTransport (line 9) | type closeIdleTransport interface
  type closeHttp2Connections (line 13) | type closeHttp2Connections interface
  function CloseTransport (line 17) | func CloseTransport(roundTripper http.RoundTripper) {

FILE: core/Clash.Meta/common/httputils/h2_transport_close.go
  type clientConnPool (line 12) | type clientConnPool struct
  type clientConn (line 22) | type clientConn struct
  type efaceWords (line 27) | type efaceWords struct
  type tlsConn (line 32) | type tlsConn interface
  function closeClientConn (line 37) | func closeClientConn(cc *http.Http2ClientConn) { // like forceCloseConn(...
  function closeHttp2Transport (line 47) | func closeHttp2Transport(tr *http.Http2Transport) {
  function transportConnPool (line 63) | func transportConnPool(t *http.Http2Transport) http.Http2ClientConnPool

FILE: core/Clash.Meta/common/lru/lrucache.go
  type Option (line 14) | type Option
  type EvictCallback (line 17) | type EvictCallback
  function WithEvict (line 20) | func WithEvict[K comparable, V any](cb EvictCallback[K, V]) Option[K, V] {
  function WithUpdateAgeOnGet (line 27) | func WithUpdateAgeOnGet[K comparable, V any]() Option[K, V] {
  function WithAge (line 34) | func WithAge[K comparable, V any](maxAge int64) Option[K, V] {
  function WithSize (line 41) | func WithSize[K comparable, V any](maxSize int) Option[K, V] {
  function WithStale (line 49) | func WithStale[K comparable, V any](stale bool) Option[K, V] {
  type LruCache (line 58) | type LruCache struct
  function New (line 70) | func New[K comparable, V any](options ...Option[K, V]) *LruCache[K, V] {
  method Clear (line 81) | func (c *LruCache[K, V]) Clear() {
  method Get (line 91) | func (c *LruCache[K, V]) Get(key K) (V, bool) {
  method GetOrStore (line 104) | func (c *LruCache[K, V]) GetOrStore(key K, constructor func() V) (V, boo...
  method GetWithExpire (line 123) | func (c *LruCache[K, V]) GetWithExpire(key K) (V, time.Time, bool) {
  method Exist (line 136) | func (c *LruCache[K, V]) Exist(key K) bool {
  method Set (line 145) | func (c *LruCache[K, V]) Set(key K, value V) {
  method set (line 152) | func (c *LruCache[K, V]) set(key K, value V) {
  method SetWithExpire (line 162) | func (c *LruCache[K, V]) SetWithExpire(key K, value V, expires time.Time) {
  method setWithExpire (line 169) | func (c *LruCache[K, V]) setWithExpire(key K, value V, expires time.Time) {
  method CloneTo (line 190) | func (c *LruCache[K, V]) CloneTo(n *LruCache[K, V]) {
  method get (line 206) | func (c *LruCache[K, V]) get(key K) *entry[K, V] {
  method Delete (line 228) | func (c *LruCache[K, V]) Delete(key K) {
  method delete (line 235) | func (c *LruCache[K, V]) delete(key K) {
  method maybeDeleteOldest (line 241) | func (c *LruCache[K, V]) maybeDeleteOldest() {
  method deleteElement (line 250) | func (c *LruCache[K, V]) deleteElement(le *list.Element[*entry[K, V]]) {
  method Compute (line 266) | func (c *LruCache[K, V]) Compute(
  type entry (line 287) | type entry struct

FILE: core/Clash.Meta/common/lru/lrucache_test.go
  function TestLRUCache (line 21) | func TestLRUCache(t *testing.T) {
  function TestLRUMaxAge (line 47) | func TestLRUMaxAge(t *testing.T) {
  function TestLRUpdateOnGet (line 90) | func TestLRUpdateOnGet(t *testing.T) {
  function TestMaxSize (line 105) | func TestMaxSize(t *testing.T) {
  function TestExist (line 119) | func TestExist(t *testing.T) {
  function TestEvict (line 127) | func TestEvict(t *testing.T) {
  function TestSetWithExpire (line 140) | func TestSetWithExpire(t *testing.T) {
  function TestStale (line 155) | func TestStale(t *testing.T) {
  function TestCloneTo (line 168) | func TestCloneTo(t *testing.T) {

FILE: core/Clash.Meta/common/maphash/common.go
  function MakeSeed (line 7) | func MakeSeed() Seed {
  function Bytes (line 13) | func Bytes(seed Seed, b []byte) uint64 {
  function String (line 17) | func String(seed Seed, s string) uint64 {

FILE: core/Clash.Meta/common/maphash/comparable_go120.go
  function Comparable (line 7) | func Comparable[T comparable](s Seed, v T) uint64 {
  function comparableHash (line 11) | func comparableHash[T comparable](seed seedTyp, v T) uint64 {
  function WriteComparable (line 29) | func WriteComparable[T comparable](h *Hash, x T) {
  type hashTyp (line 42) | type hashTyp struct
  type seedTyp (line 50) | type seedTyp struct
  type iTFlag (line 54) | type iTFlag
  type iKind (line 55) | type iKind
  type iNameOff (line 56) | type iNameOff
  type iTypeOff (line 59) | type iTypeOff
  type iType (line 61) | type iType struct
  type iMapType (line 88) | type iMapType struct
  function iTypeOf (line 97) | func iTypeOf(a any) *iType {
  type iEmptyInterface (line 107) | type iEmptyInterface struct
  function noescape (line 122) | func noescape(p unsafe.Pointer) unsafe.Pointer {
  function escape (line 131) | func escape[T any](x T) T {
  constant ptrSize (line 140) | ptrSize = 4 << (^uintptr(0) >> 63)
  constant testComparableAllocations (line 142) | testComparableAllocations = false

FILE: core/Clash.Meta/common/maphash/comparable_go124.go
  function Comparable (line 7) | func Comparable[T comparable](seed Seed, v T) uint64 {
  function WriteComparable (line 11) | func WriteComparable[T comparable](h *Hash, x T) {
  constant testComparableAllocations (line 15) | testComparableAllocations = true

FILE: core/Clash.Meta/common/maphash/maphash_test.go
  function TestUnseededHash (line 20) | func TestUnseededHash(t *testing.T) {
  function TestSeededHash (line 31) | func TestSeededHash(t *testing.T) {
  function TestHashGrouping (line 44) | func TestHashGrouping(t *testing.T) {
  function TestHashBytesVsString (line 107) | func TestHashBytesVsString(t *testing.T) {
  function TestHashHighBytes (line 126) | func TestHashHighBytes(t *testing.T) {
  function TestRepeat (line 140) | func TestRepeat(t *testing.T) {
  function TestSeedFromSum64 (line 163) | func TestSeedFromSum64(t *testing.T) {
  function TestSeedFromSeed (line 176) | func TestSeedFromSeed(t *testing.T) {
  function TestSeedFromFlush (line 190) | func TestSeedFromFlush(t *testing.T) {
  function TestSeedFromReset (line 204) | func TestSeedFromReset(t *testing.T) {
  function negativeZero (line 219) | func negativeZero[T float32 | float64]() T {
  function TestComparable (line 225) | func TestComparable(t *testing.T) {
  function testComparableNoEqual (line 265) | func testComparableNoEqual[T comparable](t *testing.T, v1, v2 T) {
  function heapStr (line 274) | func heapStr(t *testing.T) string {
  function testComparable (line 278) | func testComparable[T comparable](t *testing.T, v T, v2 ...T) {
  function stackGrow (line 301) | func stackGrow(dep int) {
  function TestWriteComparable (line 312) | func TestWriteComparable(t *testing.T) {
  function testWriteComparableNoEqual (line 352) | func testWriteComparableNoEqual[T comparable](t *testing.T, v1, v2 T) {
  function testWriteComparable (line 365) | func testWriteComparable[T comparable](t *testing.T, v T, v2 ...T) {
  function TestComparableShouldPanic (line 392) | func TestComparableShouldPanic(t *testing.T) {
  function TestWriteComparableNoncommute (line 409) | func TestWriteComparableNoncommute(t *testing.T) {
  function TestComparableAllocations (line 425) | func TestComparableAllocations(t *testing.T) {
  function benchmarkSize (line 456) | func benchmarkSize(b *testing.B, size int) {
  function BenchmarkHash (line 487) | func BenchmarkHash(b *testing.B) {
  function benchmarkComparable (line 496) | func benchmarkComparable[T comparable](b *testing.B, v T) {
  function BenchmarkComparable (line 505) | func BenchmarkComparable(b *testing.B) {
  function TypeFor (line 528) | func TypeFor[T any]() reflect.Type {

FILE: core/Clash.Meta/common/murmur3/murmur.go
  type bmixer (line 3) | type bmixer interface
  type digest (line 9) | type digest struct
    method BlockSize (line 17) | func (d *digest) BlockSize() int { return 1 }
    method Write (line 19) | func (d *digest) Write(p []byte) (n int, err error) {
    method Reset (line 46) | func (d *digest) Reset() {

FILE: core/Clash.Meta/common/murmur3/murmur32.go
  constant c1_32 (line 18) | c1_32 uint32 = 0xcc9e2d51
  constant c2_32 (line 19) | c2_32 uint32 = 0x1b873593
  type digest32 (line 23) | type digest32 struct
    method Size (line 40) | func (d *digest32) Size() int { return 4 }
    method reset (line 42) | func (d *digest32) reset() { d.h1 = d.seed }
    method Sum (line 44) | func (d *digest32) Sum(b []byte) []byte {
    method bmix (line 50) | func (d *digest32) bmix(p []byte) (tail []byte) {
    method Sum32 (line 69) | func (d *digest32) Sum32() (h1 uint32) {
  function New32 (line 29) | func New32() hash.Hash32 { return New32WithSeed(0) }
  function New32WithSeed (line 32) | func New32WithSeed(seed uint32) hash.Hash32 {
  function Sum32 (line 99) | func Sum32(data []byte) uint32 { return Sum32WithSeed(data, 0) }
  function Sum32WithSeed (line 101) | func Sum32WithSeed(data []byte, seed uint32) uint32 {

FILE: core/Clash.Meta/common/net/addr.go
  type CustomAddr (line 7) | type CustomAddr interface
  type customAddr (line 12) | type customAddr struct
    method Network (line 18) | func (a customAddr) Network() string {
    method String (line 22) | func (a customAddr) String() string {
    method RawAddr (line 26) | func (a customAddr) RawAddr() net.Addr {
  function NewCustomAddr (line 30) | func NewCustomAddr(networkStr string, addrStr string, rawAddr net.Addr) ...

FILE: core/Clash.Meta/common/net/bind.go
  type bindPacketConn (line 5) | type bindPacketConn struct
    method Read (line 10) | func (c *bindPacketConn) Read(b []byte) (n int, err error) {
    method WaitRead (line 15) | func (c *bindPacketConn) WaitRead() (data []byte, put func(), err erro...
    method Write (line 20) | func (c *bindPacketConn) Write(b []byte) (n int, err error) {
    method RemoteAddr (line 24) | func (c *bindPacketConn) RemoteAddr() net.Addr {
    method LocalAddr (line 28) | func (c *bindPacketConn) LocalAddr() net.Addr {
    method Upstream (line 36) | func (c *bindPacketConn) Upstream() any {
  function NewBindPacketConn (line 40) | func NewBindPacketConn(pc net.PacketConn, rAddr net.Addr) net.Conn {

FILE: core/Clash.Meta/common/net/bufconn.go
  type BufferedConn (line 12) | type BufferedConn struct
    method Reader (line 36) | func (c *BufferedConn) Reader() *bufio.Reader {
    method ResetPeeked (line 40) | func (c *BufferedConn) ResetPeeked() {
    method Peeked (line 44) | func (c *BufferedConn) Peeked() bool {
    method Peek (line 49) | func (c *BufferedConn) Peek(n int) ([]byte, error) {
    method Discard (line 54) | func (c *BufferedConn) Discard(n int) (discarded int, err error) {
    method Read (line 58) | func (c *BufferedConn) Read(p []byte) (int, error) {
    method ReadByte (line 62) | func (c *BufferedConn) ReadByte() (byte, error) {
    method UnreadByte (line 66) | func (c *BufferedConn) UnreadByte() error {
    method Buffered (line 70) | func (c *BufferedConn) Buffered() int {
    method ReadBuffer (line 74) | func (c *BufferedConn) ReadBuffer(buffer *buf.Buffer) (err error) {
    method ReadCached (line 82) | func (c *BufferedConn) ReadCached() *buf.Buffer { // call in sing/comm...
    method Upstream (line 93) | func (c *BufferedConn) Upstream() any {
    method ReaderReplaceable (line 97) | func (c *BufferedConn) ReaderReplaceable() bool {
    method WriterReplaceable (line 104) | func (c *BufferedConn) WriterReplaceable() bool {
  function NewBufferedConn (line 18) | func NewBufferedConn(c net.Conn) *BufferedConn {
  function WarpConnWithBioReader (line 25) | func WarpConnWithBioReader(c net.Conn, br *bufio.Reader) net.Conn {

FILE: core/Clash.Meta/common/net/bufconn_unsafe.go
  type bufioReader (line 10) | type bufioReader struct
  method AppendData (line 19) | func (c *BufferedConn) AppendData(buf []byte) (ok bool) {

FILE: core/Clash.Meta/common/net/cached.go
  type CachedConn (line 11) | type CachedConn struct
    method Read (line 20) | func (c *CachedConn) Read(b []byte) (n int, err error) {
    method ReadCached (line 29) | func (c *CachedConn) ReadCached() *buf.Buffer { // call in sing/common...
    method Upstream (line 36) | func (c *CachedConn) Upstream() any {
    method ReaderReplaceable (line 40) | func (c *CachedConn) ReaderReplaceable() bool {
    method WriterReplaceable (line 47) | func (c *CachedConn) WriterReplaceable() bool {
  function NewCachedConn (line 16) | func NewCachedConn(c net.Conn, data []byte) *CachedConn {

FILE: core/Clash.Meta/common/net/context.go
  function SetupContextForConn (line 22) | func SetupContextForConn(ctx context.Context, conn net.Conn) (done func(...

FILE: core/Clash.Meta/common/net/context_test.go
  function testRead (line 15) | func testRead(ctx context.Context, conn net.Conn) (err error) {
  function TestSetupContextForConnWithCancel (line 24) | func TestSetupContextForConnWithCancel(t *testing.T) {
  function TestSetupContextForConnWithTimeout1 (line 52) | func TestSetupContextForConnWithTimeout1(t *testing.T) {
  function TestSetupContextForConnWithTimeout2 (line 76) | func TestSetupContextForConnWithTimeout2(t *testing.T) {

FILE: core/Clash.Meta/common/net/deadline/conn.go
  type connReadResult (line 15) | type connReadResult struct
  type Conn (line 20) | type Conn struct
    method Read (line 44) | func (c *Conn) Read(p []byte) (n int, err error) {
    method pipeRead (line 79) | func (c *Conn) pipeRead(size int) {
    method ReadBuffer (line 89) | func (c *Conn) ReadBuffer(buffer *buf.Buffer) (err error) {
    method SetReadDeadline (line 125) | func (c *Conn) SetReadDeadline(t time.Time) error {
    method ReaderReplaceable (line 137) | func (c *Conn) ReaderReplaceable() bool {
    method WriterReplaceable (line 152) | func (c *Conn) WriterReplaceable() bool {
    method Upstream (line 156) | func (c *Conn) Upstream() any {
  function IsConn (line 29) | func IsConn(conn any) bool {
  function NewConn (line 34) | func NewConn(conn net.Conn) *Conn {

FILE: core/Clash.Meta/common/net/deadline/packet.go
  type readResult (line 13) | type readResult struct
  type NetPacketConn (line 19) | type NetPacketConn struct
    method ReadFrom (line 66) | func (c *NetPacketConn) ReadFrom(p []byte) (n int, addr net.Addr, err ...
    method pipeReadFrom (line 106) | func (c *NetPacketConn) pipeReadFrom(size int) {
    method SetReadDeadline (line 117) | func (c *NetPacketConn) SetReadDeadline(t time.Time) error {
    method ReaderReplaceable (line 129) | func (c *NetPacketConn) ReaderReplaceable() bool {
    method WriterReplaceable (line 144) | func (c *NetPacketConn) WriterReplaceable() bool {
    method Upstream (line 148) | func (c *NetPacketConn) Upstream() any {
    method NeedAdditionalReadDeadline (line 152) | func (c *NetPacketConn) NeedAdditionalReadDeadline() bool {
  function NewNetPacketConn (line 28) | func NewNetPacketConn(pc net.PacketConn) net.PacketConn {

FILE: core/Clash.Meta/common/net/deadline/packet_enhance.go
  type EnhancePacketConn (line 11) | type EnhancePacketConn struct
  function NewEnhancePacketConn (line 18) | func NewEnhancePacketConn(pc packet.EnhancePacketConn) packet.EnhancePac...
  type enhanceReadResult (line 22) | type enhanceReadResult struct
  type enhancePacketConn (line 29) | type enhancePacketConn struct
    method WaitReadFrom (line 34) | func (c *enhancePacketConn) WaitReadFrom() (data []byte, put func(), a...
    method pipeWaitReadFrom (line 75) | func (c *enhancePacketConn) pipeWaitReadFrom() {

FILE: core/Clash.Meta/common/net/deadline/packet_sing.go
  type SingPacketConn (line 15) | type SingPacketConn struct
  function NewSingPacketConn (line 22) | func NewSingPacketConn(pc packet.SingPacketConn) packet.SingPacketConn {
  type EnhanceSingPacketConn (line 26) | type EnhanceSingPacketConn struct
  function NewEnhanceSingPacketConn (line 31) | func NewEnhanceSingPacketConn(pc packet.EnhanceSingPacketConn) packet.En...
  type singReadResult (line 37) | type singReadResult struct
  type singPacketConn (line 43) | type singPacketConn struct
    method ReadPacket (line 48) | func (c *singPacketConn) ReadPacket(buffer *buf.Buffer) (destination M...
    method pipeReadPacket (line 92) | func (c *singPacketConn) pipeReadPacket(pLen int) {
    method WritePacket (line 101) | func (c *singPacketConn) WritePacket(buffer *buf.Buffer, destination M...
    method CreateReadWaiter (line 105) | func (c *singPacketConn) CreateReadWaiter() (N.PacketReadWaiter, bool) {
  type singPacketReadWaiter (line 118) | type singPacketReadWaiter struct
    method InitializeReadWaiter (line 125) | func (c *singPacketReadWaiter) InitializeReadWaiter(options N.ReadWait...
    method WaitReadPacket (line 129) | func (c *singPacketReadWaiter) WaitReadPacket() (buffer *buf.Buffer, d...
    method pipeWaitReadPacket (line 168) | func (c *singPacketReadWaiter) pipeWaitReadPacket() {
    method Upstream (line 177) | func (c *singPacketReadWaiter) Upstream() any {
  type singWaitReadResult (line 123) | type singWaitReadResult

FILE: core/Clash.Meta/common/net/deadline/pipe.go
  type PipeDeadline (line 13) | type PipeDeadline struct
    method Set (line 29) | func (d *PipeDeadline) Set(t time.Time) {
    method Wait (line 65) | func (d *PipeDeadline) Wait() chan struct{} {
  function MakePipeDeadline (line 19) | func MakePipeDeadline() PipeDeadline {
  function isClosedChan (line 71) | func isClosedChan(c <-chan struct{}) bool {
  function makeFilledChan (line 80) | func makeFilledChan() chan struct{} {

FILE: core/Clash.Meta/common/net/deadline/pipe_sing.go
  type pipeAddr (line 14) | type pipeAddr struct
    method Network (line 16) | func (pipeAddr) Network() string { return "pipe" }
    method String (line 17) | func (pipeAddr) String() string  { return "pipe" }
  type pipe (line 19) | type pipe struct
    method LocalAddr (line 72) | func (*pipe) LocalAddr() net.Addr  { return pipeAddr{} }
    method RemoteAddr (line 73) | func (*pipe) RemoteAddr() net.Addr { return pipeAddr{} }
    method Read (line 75) | func (p *pipe) Read(b []byte) (int, error) {
    method read (line 83) | func (p *pipe) read(b []byte) (n int, err error) {
    method Write (line 107) | func (p *pipe) Write(b []byte) (int, error) {
    method write (line 115) | func (p *pipe) write(b []byte) (n int, err error) {
    method SetDeadline (line 144) | func (p *pipe) SetDeadline(t time.Time) error {
    method SetReadDeadline (line 153) | func (p *pipe) SetReadDeadline(t time.Time) error {
    method SetWriteDeadline (line 161) | func (p *pipe) SetWriteDeadline(t time.Time) error {
    method Close (line 169) | func (p *pipe) Close() error {
    method InitializeReadWaiter (line 176) | func (p *pipe) InitializeReadWaiter(options N.ReadWaitOptions) (needCo...
    method WaitReadBuffer (line 181) | func (p *pipe) WaitReadBuffer() (buffer *buf.Buffer, err error) {
    method waitReadBuffer (line 189) | func (p *pipe) waitReadBuffer() (buffer *buf.Buffer, err error) {
  function Pipe (line 47) | func Pipe() (net.Conn, net.Conn) {
  function IsPipe (line 219) | func IsPipe(conn any) bool {

FILE: core/Clash.Meta/common/net/earlyconn.go
  type earlyConn (line 11) | type earlyConn struct
    method Response (line 18) | func (conn *earlyConn) Response() error {
    method Read (line 25) | func (conn *earlyConn) Read(b []byte) (n int, err error) {
    method ReadBuffer (line 33) | func (conn *earlyConn) ReadBuffer(buffer *buf.Buffer) (err error) {
    method Upstream (line 41) | func (conn *earlyConn) Upstream() any {
    method Success (line 45) | func (conn *earlyConn) Success() bool {
    method ReaderReplaceable (line 49) | func (conn *earlyConn) ReaderReplaceable() bool {
    method ReaderPossiblyReplaceable (line 53) | func (conn *earlyConn) ReaderPossiblyReplaceable() bool {
    method WriterReplaceable (line 57) | func (conn *earlyConn) WriterReplaceable() bool {
  function NewEarlyConn (line 63) | func NewEarlyConn(c net.Conn, f func() error) net.Conn {

FILE: core/Clash.Meta/common/net/io.go
  type ReadOnlyReader (line 5) | type ReadOnlyReader struct
  type WriteOnlyWriter (line 9) | type WriteOnlyWriter struct

FILE: core/Clash.Meta/common/net/listener.go
  type handleContextListener (line 9) | type handleContextListener struct
    method init (line 20) | func (l *handleContextListener) init() {
    method Accept (line 48) | func (l *handleContextListener) Accept() (net.Conn, error) {
    method Close (line 56) | func (l *handleContextListener) Close() error {
  function NewHandleContextListener (line 80) | func NewHandleContextListener(ctx context.Context, l net.Listener, handl...

FILE: core/Clash.Meta/common/net/packet/packet.go
  type WaitReadFrom (line 9) | type WaitReadFrom interface
  type EnhancePacketConn (line 13) | type EnhancePacketConn interface
  function NewEnhancePacketConn (line 18) | func NewEnhancePacketConn(pc net.PacketConn) EnhancePacketConn {
  type enhancePacketConn (line 31) | type enhancePacketConn struct
    method WaitReadFrom (line 35) | func (c *enhancePacketConn) WaitReadFrom() (data []byte, put func(), a...
    method Upstream (line 39) | func (c *enhancePacketConn) Upstream() any {
    method WriterReplaceable (line 43) | func (c *enhancePacketConn) WriterReplaceable() bool {
    method ReaderReplaceable (line 47) | func (c *enhancePacketConn) ReaderReplaceable() bool {
  method Upstream (line 51) | func (c *enhanceUDPConn) Upstream() any {
  method WriterReplaceable (line 55) | func (c *enhanceUDPConn) WriterReplaceable() bool {
  method ReaderReplaceable (line 59) | func (c *enhanceUDPConn) ReaderReplaceable() bool {
  function waitReadFrom (line 63) | func waitReadFrom(pc net.PacketConn) (data []byte, put func(), addr net....

FILE: core/Clash.Meta/common/net/packet/packet_posix.go
  type enhanceUDPConn (line 13) | type enhanceUDPConn struct
    method WaitReadFrom (line 18) | func (c *enhanceUDPConn) WaitReadFrom() (data []byte, put func(), addr...

FILE: core/Clash.Meta/common/net/packet/packet_sing.go
  type EnhanceSingPacketConn (line 14) | type EnhanceSingPacketConn interface
  type enhanceSingPacketConn (line 19) | type enhanceSingPacketConn struct
    method WaitReadFrom (line 24) | func (c *enhanceSingPacketConn) WaitReadFrom() (data []byte, put func(...
    method Upstream (line 59) | func (c *enhanceSingPacketConn) Upstream() any {
    method WriterReplaceable (line 63) | func (c *enhanceSingPacketConn) WriterReplaceable() bool {
    method ReaderReplaceable (line 67) | func (c *enhanceSingPacketConn) ReaderReplaceable() bool {
  function newEnhanceSingPacketConn (line 71) | func newEnhanceSingPacketConn(conn SingPacketConn) *enhanceSingPacketConn {

FILE: core/Clash.Meta/common/net/packet/packet_windows.go
  type enhanceUDPConn (line 15) | type enhanceUDPConn struct
    method WaitReadFrom (line 20) | func (c *enhanceUDPConn) WaitReadFrom() (data []byte, put func(), addr...

FILE: core/Clash.Meta/common/net/packet/ref.go
  type refPacketConn (line 9) | type refPacketConn struct
    method WaitReadFrom (line 14) | func (c *refPacketConn) WaitReadFrom() (data []byte, put func(), addr ...
    method ReadFrom (line 19) | func (c *refPacketConn) ReadFrom(p []byte) (n int, addr net.Addr, err ...
    method WriteTo (line 24) | func (c *refPacketConn) WriteTo(p []byte, addr net.Addr) (n int, err e...
    method Close (line 29) | func (c *refPacketConn) Close() error {
    method LocalAddr (line 34) | func (c *refPacketConn) LocalAddr() net.Addr {
    method SetDeadline (line 39) | func (c *refPacketConn) SetDeadline(t time.Time) error {
    method SetReadDeadline (line 44) | func (c *refPacketConn) SetReadDeadline(t time.Time) error {
    method SetWriteDeadline (line 49) | func (c *refPacketConn) SetWriteDeadline(t time.Time) error {
    method Upstream (line 54) | func (c *refPacketConn) Upstream() any {
    method ReaderReplaceable (line 58) | func (c *refPacketConn) ReaderReplaceable() bool { // Relay() will han...
    method WriterReplaceable (line 62) | func (c *refPacketConn) WriterReplaceable() bool { // Relay() will han...
  function NewRefPacketConn (line 66) | func NewRefPacketConn(pc net.PacketConn, ref any) EnhancePacketConn {

FILE: core/Clash.Meta/common/net/packet/ref_sing.go
  type refSingPacketConn (line 11) | type refSingPacketConn struct
    method WritePacket (line 18) | func (c *refSingPacketConn) WritePacket(buffer *buf.Buffer, destinatio...
    method ReadPacket (line 23) | func (c *refSingPacketConn) ReadPacket(buffer *buf.Buffer) (destinatio...

FILE: core/Clash.Meta/common/net/packet/thread.go
  type threadSafePacketConn (line 8) | type threadSafePacketConn struct
    method WriteTo (line 13) | func (c *threadSafePacketConn) WriteTo(b []byte, addr net.Addr) (int, ...
    method Upstream (line 19) | func (c *threadSafePacketConn) Upstream() any {
    method ReaderReplaceable (line 23) | func (c *threadSafePacketConn) ReaderReplaceable() bool {
  function NewThreadSafePacketConn (line 27) | func NewThreadSafePacketConn(pc net.PacketConn) EnhancePacketConn {

FILE: core/Clash.Meta/common/net/packet/thread_sing.go
  type threadSafeSingPacketConn (line 9) | type threadSafeSingPacketConn struct
    method WritePacket (line 16) | func (c *threadSafeSingPacketConn) WritePacket(buffer *buf.Buffer, des...
    method ReadPacket (line 22) | func (c *threadSafeSingPacketConn) ReadPacket(buffer *buf.Buffer) (des...

FILE: core/Clash.Meta/common/net/refconn.go
  type refConn (line 11) | type refConn struct
    method Read (line 16) | func (c *refConn) Read(b []byte) (n int, err error) {
    method Write (line 21) | func (c *refConn) Write(b []byte) (n int, err error) {
    method Close (line 26) | func (c *refConn) Close() error {
    method LocalAddr (line 31) | func (c *refConn) LocalAddr() net.Addr {
    method RemoteAddr (line 36) | func (c *refConn) RemoteAddr() net.Addr {
    method SetDeadline (line 41) | func (c *refConn) SetDeadline(t time.Time) error {
    method SetReadDeadline (line 46) | func (c *refConn) SetReadDeadline(t time.Time) error {
    method SetWriteDeadline (line 51) | func (c *refConn) SetWriteDeadline(t time.Time) error {
    method Upstream (line 56) | func (c *refConn) Upstream() any {
    method ReadBuffer (line 60) | func (c *refConn) ReadBuffer(buffer *buf.Buffer) error {
    method WriteBuffer (line 65) | func (c *refConn) WriteBuffer(buffer *buf.Buffer) error {
    method ReaderReplaceable (line 70) | func (c *refConn) ReaderReplaceable() bool { // Relay() will handle re...
    method WriterReplaceable (line 74) | func (c *refConn) WriterReplaceable() bool { // Relay() will handle re...
  function NewRefConn (line 80) | func NewRefConn(conn net.Conn, ref any) ExtendedConn {

FILE: core/Clash.Meta/common/net/sing.go
  function NewDeadlineConn (line 39) | func NewDeadlineConn(conn net.Conn) ExtendedConn {
  function NeedHandshake (line 49) | func NeedHandshake(conn any) bool {
  function closeWrite (line 60) | func closeWrite(writer io.Closer) error {
  function Relay (line 69) | func Relay(leftConn, rightConn net.Conn) {

FILE: core/Clash.Meta/common/net/tcpip.go
  function SplitNetworkType (line 9) | func SplitNetworkType(s string) (string, string, error) {
  function SplitHostPort (line 35) | func SplitHostPort(s string) (host, port string, hasPort bool, err error) {

FILE: core/Clash.Meta/common/net/websocket.go
  function MaskWebSocket (line 24) | func MaskWebSocket(key uint32, b []byte) uint32 {
  function GetWebSocketSecAccept (line 135) | func GetWebSocketSecAccept(secKey string) string {

FILE: core/Clash.Meta/common/observable/iterable.go
  type Iterable (line 3) | type Iterable

FILE: core/Clash.Meta/common/observable/observable.go
  type Observable (line 8) | type Observable struct
  method process (line 16) | func (o *Observable[T]) process() {
  method close (line 27) | func (o *Observable[T]) close() {
  method Subscribe (line 38) | func (o *Observable[T]) Subscribe() (Subscription[T], error) {
  method UnSubscribe (line 49) | func (o *Observable[T]) UnSubscribe(sub Subscription[T]) {
  function NewObservable (line 60) | func NewObservable[T any](iter Iterable[T]) *Observable[T] {

FILE: core/Clash.Meta/common/observable/observable_test.go
  function iterator (line 13) | func iterator[T any](item []T) chan T {
  function TestObservable (line 25) | func TestObservable(t *testing.T) {
  function TestObservable_MultiSubscribe (line 37) | func TestObservable_MultiSubscribe(t *testing.T) {
  function TestObservable_UnSubscribe (line 58) | func TestObservable_UnSubscribe(t *testing.T) {
  function TestObservable_SubscribeClosedSource (line 68) | func TestObservable_SubscribeClosedSource(t *testing.T) {
  function TestObservable_UnSubscribeWithNotExistSubscription (line 80) | func TestObservable_UnSubscribeWithNotExistSubscription(t *testing.T) {
  function TestObservable_SubscribeGoroutineLeak (line 87) | func TestObservable_SubscribeGoroutineLeak(t *testing.T) {
  function Benchmark_Observable_1000 (line 120) | func Benchmark_Observable_1000(b *testing.B) {

FILE: core/Clash.Meta/common/observable/subscriber.go
  type Subscription (line 7) | type Subscription
  type Subscriber (line 9) | type Subscriber struct
  method Emit (line 14) | func (s *Subscriber[T]) Emit(item T) {
  method Out (line 18) | func (s *Subscriber[T]) Out() Subscription[T] {
  method Close (line 22) | func (s *Subscriber[T]) Close() {
  function newSubscriber (line 28) | func newSubscriber[T any]() *Subscriber[T] {

FILE: core/Clash.Meta/common/once/once_go120.go
  type Once (line 11) | type Once struct
  function Done (line 16) | func Done(once *sync.Once) bool {
  function Reset (line 21) | func Reset(once *sync.Once) {

FILE: core/Clash.Meta/common/once/once_go122.go
  type Once (line 11) | type Once struct
  function Done (line 16) | func Done(once *sync.Once) bool {
  function Reset (line 21) | func Reset(once *sync.Once) {

FILE: core/Clash.Meta/common/once/oncefunc.go
  function OnceFunc (line 13) | func OnceFunc(f func()) func() {
  function OnceValue (line 45) | func OnceValue[T any](f func() T) func() T {
  function OnceValues (line 76) | func OnceValues[T1, T2 any](f func() (T1, T2)) func() (T1, T2) {

FILE: core/Clash.Meta/common/orderedmap/json.go
  method MarshalJSON (line 18) | func (om *OrderedMap[K, V]) MarshalJSON() ([]byte, error) { //nolint:funlen
  method UnmarshalJSON (line 70) | func (om *OrderedMap[K, V]) UnmarshalJSON(data []byte) error {

FILE: core/Clash.Meta/common/orderedmap/json_fuzz_test.go
  function FuzzRoundTripJSON (line 13) | func FuzzRoundTripJSON(f *testing.F) {
  function assertOrderedMapsEqual (line 78) | func assertOrderedMapsEqual[K comparable, V any](t *testing.T, v1, v2 an...
  type testFuzzStruct (line 97) | type testFuzzStruct struct
  function assertTestFuzzStructEqual (line 103) | func assertTestFuzzStructEqual(t *testing.T, v1, v2 any) bool {

FILE: core/Clash.Meta/common/orderedmap/json_test.go
  type marshallable (line 16) | type marshallable
    method MarshalText (line 18) | func (m marshallable) MarshalText() ([]byte, error) {
    method UnmarshalText (line 22) | func (m *marshallable) UnmarshalText(text []byte) error {
  function TestMarshalJSON (line 39) | func TestMarshalJSON(t *testing.T) {
  function TestUnmarshallJSON (line 112) | func TestUnmarshallJSON(t *testing.T) {
  constant specialCharacters (line 188) | specialCharacters = "\uffff\ufffd世界\u007f\u00ff\U0010FFFF"
  function TestJSONSpecialCharacters (line 190) | func TestJSONSpecialCharacters(t *testing.T) {
  type nestedMaps (line 229) | type nestedMaps struct
  function TestJSONRoundTrip (line 234) | func TestJSONRoundTrip(t *testing.T) {
  function BenchmarkMarshalJSON (line 321) | func BenchmarkMarshalJSON(b *testing.B) {

FILE: core/Clash.Meta/common/orderedmap/orderedmap.go
  type Pair (line 15) | type Pair struct
  type OrderedMap (line 22) | type OrderedMap struct
  type initConfig (line 27) | type initConfig struct
  type InitOption (line 32) | type InitOption
  function WithCapacity (line 35) | func WithCapacity[K comparable, V any](capacity int) InitOption[K, V] {
  function WithInitialData (line 42) | func WithInitialData[K comparable, V any](initialData ...Pair[K, V]) Ini...
  function New (line 54) | func New[K comparable, V any](options ...any) *OrderedMap[K, V] { //noli...
  constant invalidOptionMessage (line 80) | invalidOptionMessage = `when using orderedmap.New[K,V]() with options, e...
  function invalidOption (line 82) | func invalidOption() { panic(invalidOptionMessage) }
  method initialize (line 84) | func (om *OrderedMap[K, V]) initialize(capacity int) {
  method Get (line 91) | func (om *OrderedMap[K, V]) Get(key K) (val V, present bool) {
  method Load (line 100) | func (om *OrderedMap[K, V]) Load(key K) (V, bool) {
  method Value (line 105) | func (om *OrderedMap[K, V]) Value(key K) (val V) {
  method GetPair (line 115) | func (om *OrderedMap[K, V]) GetPair(key K) *Pair[K, V] {
  method Set (line 121) | func (om *OrderedMap[K, V]) Set(key K, value V) (val V, present bool) {
  method AddPairs (line 140) | func (om *OrderedMap[K, V]) AddPairs(pairs ...Pair[K, V]) {
  method Store (line 147) | func (om *OrderedMap[K, V]) Store(key K, value V) (V, bool) {
  method Delete (line 153) | func (om *OrderedMap[K, V]) Delete(key K) (val V, present bool) {
  method Len (line 163) | func (om *OrderedMap[K, V]) Len() int {
  method Oldest (line 173) | func (om *OrderedMap[K, V]) Oldest() *Pair[K, V] {
  method Newest (line 183) | func (om *OrderedMap[K, V]) Newest() *Pair[K, V] {
  method Next (line 191) | func (p *Pair[K, V]) Next() *Pair[K, V] {
  method Prev (line 196) | func (p *Pair[K, V]) Prev() *Pair[K, V] {
  function listElementToPair (line 200) | func listElementToPair[K comparable, V any](element *list.Element[*Pair[...
  type KeyNotFoundError (line 209) | type KeyNotFoundError struct
  method Error (line 213) | func (e *KeyNotFoundError[K]) Error() string {
  method MoveAfter (line 220) | func (om *OrderedMap[K, V]) MoveAfter(key, markKey K) error {
  method MoveBefore (line 232) | func (om *OrderedMap[K, V]) MoveBefore(key, markKey K) error {
  method getElements (line 241) | func (om *OrderedMap[K, V]) getElements(keys ...K) ([]*list.Element[*Pai...
  method MoveToBack (line 257) | func (om *OrderedMap[K, V]) MoveToBack(key K) error {
  method MoveToFront (line 266) | func (om *OrderedMap[K, V]) MoveToFront(key K) error {
  method GetAndMoveToBack (line 273) | func (om *OrderedMap[K, V]) GetAndMoveToBack(key K) (val V, err error) {
  method GetAndMoveToFront (line 286) | func (om *OrderedMap[K, V]) GetAndMoveToFront(key K) (val V, err error) {

FILE: core/Clash.Meta/common/orderedmap/orderedmap_test.go
  function TestBasicFeatures (line 10) | func TestBasicFeatures(t *testing.T) {
  function TestUpdatingDoesntChangePairsOrder (line 119) | func TestUpdatingDoesntChangePairsOrder(t *testing.T) {
  function TestDeletingAndReinsertingChangesPairsOrder (line 135) | func TestDeletingAndReinsertingChangesPairsOrder(t *testing.T) {
  function TestEmptyMapOperations (line 157) | func TestEmptyMapOperations(t *testing.T) {
  type dummyTestStruct (line 175) | type dummyTestStruct struct
  function TestPackUnpackStructs (line 179) | func TestPackUnpackStructs(t *testing.T) {
  function TestShuffle (line 206) | func TestShuffle(t *testing.T) {
  function TestMove (line 231) | func TestMove(t *testing.T) {
  function TestGetAndMove (line 270) | func TestGetAndMove(t *testing.T) {
  function TestAddPairs (line 299) | func TestAddPairs(t *testing.T) {
  function TestNewWithCapacity (line 322) | func TestNewWithCapacity(t *testing.T) {
  function TestNewWithOptions (line 338) | func TestNewWithOptions(t *testing.T) {
  function TestNilMap (line 372) | func TestNilMap(t *testing.T) {

FILE: core/Clash.Meta/common/orderedmap/utils_test.go
  function assertOrderedPairsEqual (line 14) | func assertOrderedPairsEqual[K comparable, V any](
  function assertOrderedPairsEqualFromNewest (line 23) | func assertOrderedPairsEqualFromNewest[K comparable, V any](
  function assertOrderedPairsEqualFromOldest (line 38) | func assertOrderedPairsEqualFromOldest[K comparable, V any](
  function assertLenEqual (line 53) | func assertLenEqual[K comparable, V any](t *testing.T, orderedMap *Order...
  function randomHexString (line 62) | func randomHexString(t *testing.T, length int) string {

FILE: core/Clash.Meta/common/orderedmap/yaml.go
  method MarshalYAML (line 15) | func (om *OrderedMap[K, V]) MarshalYAML() (interface{}, error) {
  method UnmarshalYAML (line 47) | func (om *OrderedMap[K, V]) UnmarshalYAML(value *yaml.Node) error {

FILE: core/Clash.Meta/common/orderedmap/yaml_fuzz_test.go
  function FuzzRoundTripYAML (line 13) | func FuzzRoundTripYAML(f *testing.F) {

FILE: core/Clash.Meta/common/orderedmap/yaml_test.go
  function TestMarshalYAML (line 11) | func TestMarshalYAML(t *testing.T) {
  function TestUnmarshallYAML (line 115) | func TestUnmarshallYAML(t *testing.T) {
  function TestYAMLSpecialCharacters (line 208) | func TestYAMLSpecialCharacters(t *testing.T) {
  function TestYAMLRoundTrip (line 246) | func TestYAMLRoundTrip(t *testing.T) {
  function BenchmarkMarshalYAML (line 317) | func BenchmarkMarshalYAML(b *testing.B) {

FILE: core/Clash.Meta/common/picker/picker.go
  type Picker (line 12) | type Picker struct
  function newPicker (line 24) | func newPicker[T any](ctx context.Context, cancel func()) *Picker[T] {
  function WithContext (line 33) | func WithContext[T any](ctx context.Context) (*Picker[T], context.Contex...
  function WithTimeout (line 39) | func WithTimeout[T any](ctx context.Context, timeout time.Duration) (*Pi...
  method Wait (line 46) | func (p *Picker[T]) Wait() T {
  method Error (line 56) | func (p *Picker[T]) Error() error {
  method Go (line 62) | func (p *Picker[T]) Go(f func() (T, error)) {
  method Close (line 86) | func (p *Picker[T]) Close() error {

FILE: core/Clash.Meta/common/picker/picker_test.go
  function sleepAndSend (line 12) | func sleepAndSend[T any](ctx context.Context, delay int, input T) func()...
  function TestPicker_Basic (line 24) | func TestPicker_Basic(t *testing.T) {
  function TestPicker_Timeout (line 35) | func TestPicker_Timeout(t *testing.T) {

FILE: core/Clash.Meta/common/pool/alloc.go
  type Allocator (line 13) | type Allocator interface
  type defaultAllocator (line 19) | type defaultAllocator struct
    method Get (line 45) | func (alloc *defaultAllocator) Get(size int) []byte {
    method Put (line 95) | func (alloc *defaultAllocator) Put(buf []byte) error {
  function NewAllocator (line 26) | func NewAllocator() Allocator {
  function msb (line 142) | func msb(size int) uint16 {

FILE: core/Clash.Meta/common/pool/alloc_test.go
  function TestAllocGet (line 10) | func TestAllocGet(t *testing.T) {
  function TestAllocPut (line 25) | func TestAllocPut(t *testing.T) {
  function TestAllocPutThenGet (line 35) | func TestAllocPutThenGet(t *testing.T) {
  function BenchmarkMSB (line 44) | func BenchmarkMSB(b *testing.B) {

FILE: core/Clash.Meta/common/pool/buffer.go
  function GetBuffer (line 10) | func GetBuffer() *bytes.Buffer {
  function PutBuffer (line 14) | func PutBuffer(buf *bytes.Buffer) {

FILE: core/Clash.Meta/common/pool/buffer_low_memory.go
  constant RelayBufferSize (line 8) | RelayBufferSize = 8 * 1024
  constant UDPBufferSize (line 13) | UDPBufferSize = 8 * 1024

FILE: core/Clash.Meta/common/pool/buffer_standard.go
  constant RelayBufferSize (line 8) | RelayBufferSize = 16 * 1024
  constant UDPBufferSize (line 13) | UDPBufferSize = 16 * 1024

FILE: core/Clash.Meta/common/pool/pool.go
  function Get (line 3) | func Get(size int) []byte {
  function Put (line 7) | func Put(buf []byte) error {

FILE: core/Clash.Meta/common/pool/sing.go
  function init (line 5) | func init() {

FILE: core/Clash.Meta/common/queue/queue.go
  type Queue (line 8) | type Queue struct
  method Put (line 14) | func (q *Queue[T]) Put(items ...T) {
  method Pop (line 25) | func (q *Queue[T]) Pop() (head T) {
  method Last (line 38) | func (q *Queue[T]) Last() (last T) {
  method Copy (line 50) | func (q *Queue[T]) Copy() (items []T) {
  method Len (line 58) | func (q *Queue[T]) Len() int64 {
  function New (line 66) | func New[T any](hint int64) *Queue[T] {

FILE: core/Clash.Meta/common/queue/queue_test.go
  function TestQueuePut (line 12) | func TestQueuePut(t *testing.T) {
  function TestQueuePop (line 30) | func TestQueuePop(t *testing.T) {
  function TestQueuePopEmpty (line 50) | func TestQueuePopEmpty(t *testing.T) {
  function TestQueueLast (line 61) | func TestQueueLast(t *testing.T) {
  function TestQueueCopy (line 78) | func TestQueueCopy(t *testing.T) {
  function TestQueueLen (line 96) | func TestQueueLen(t *testing.T) {
  function TestQueueNew (line 111) | func TestQueueNew(t *testing.T) {
  function TestQueueConcurrency (line 128) | func TestQueueConcurrency(t *testing.T) {
  function TestQueueWithDifferentTypes (line 193) | func TestQueueWithDifferentTypes(t *testing.T) {

FILE: core/Clash.Meta/common/singledo/singledo.go
  type call (line 8) | type call struct
  type Single (line 14) | type Single struct
  type Result (line 21) | type Result struct
  method Do (line 28) | func (s *Single[T]) Do(fn func() (T, error)) (v T, err error, shared boo...
  method Reset (line 59) | func (s *Single[T]) Reset() {
  function NewSingle (line 66) | func NewSingle[T any](wait time.Duration) *Single[T] {

FILE: core/Clash.Meta/common/singledo/singledo_test.go
  function TestBasic (line 13) | func TestBasic(t *testing.T) {
  function TestTimer (line 42) | func TestTimer(t *testing.T) {
  function TestReset (line 59) | func TestReset(t *testing.T) {

FILE: core/Clash.Meta/common/singleflight/singleflight.go
  type panicError (line 26) | type panicError struct
    method Error (line 32) | func (p *panicError) Error() string {
    method Unwrap (line 36) | func (p *panicError) Unwrap() error {
  function newPanicError (line 45) | func newPanicError(v interface{}) error {
  type call (line 58) | type call struct
  type Group (line 75) | type Group struct
  type Result (line 84) | type Result struct
  method Do (line 95) | func (g *Group[T]) Do(key string, fn func() (T, error)) (v T, err error,...
  method DoChan (line 125) | func (g *Group[T]) DoChan(key string, fn func() (T, error)) <-chan Resul...
  method doCall (line 148) | func (g *Group[T]) doCall(c *call[T], key string, fn func() (T, error)) {
  method Forget (line 214) | func (g *Group[T]) Forget(key string) {
  method Reset (line 220) | func (g *Group[T]) Reset() {

FILE: core/Clash.Meta/common/sockopt/reuse_common.go
  function RawConnReuseaddr (line 8) | func RawConnReuseaddr(rc syscall.RawConn) (err error) {
  function UDPReuseaddr (line 20) | func UDPReuseaddr(c net.PacketConn) error {

FILE: core/Clash.Meta/common/sockopt/reuse_other.go
  function reuseControl (line 5) | func reuseControl(fd uintptr) error { return nil }

FILE: core/Clash.Meta/common/sockopt/reuse_unix.go
  function reuseControl (line 9) | func reuseControl(fd uintptr) error {

FILE: core/Clash.Meta/common/sockopt/reuse_windows.go
  function reuseControl (line 7) | func reuseControl(fd uintptr) error {

FILE: core/Clash.Meta/common/structure/structure.go
  type Option (line 16) | type Option struct
  type Decoder (line 25) | type Decoder struct
    method Decode (line 38) | func (d *Decoder) Decode(src map[string]any, dst any) error {
    method decode (line 54) | func (d *Decoder) decode(name string, data any, val reflect.Value) err...
    method decodeInt (line 131) | func (d *Decoder) decodeInt(name string, data any, val reflect.Value) ...
    method decodeUint (line 158) | func (d *Decoder) decodeUint(name string, data any, val reflect.Value)...
    method decodeFloat (line 185) | func (d *Decoder) decodeFloat(name string, data any, val reflect.Value...
    method decodeString (line 212) | func (d *Decoder) decodeString(name string, data any, val reflect.Valu...
    method decodeBool (line 233) | func (d *Decoder) decodeBool(name string, data any, val reflect.Value)...
    method decodeSlice (line 252) | func (d *Decoder) decodeSlice(name string, data any, val reflect.Value...
    method decodeMap (line 303) | func (d *Decoder) decodeMap(name string, data any, val reflect.Value) ...
    method decodeMapFromMap (line 323) | func (d *Decoder) decodeMapFromMap(name string, dataVal reflect.Value,...
    method decodeStruct (line 375) | func (d *Decoder) decodeStruct(name string, data any, val reflect.Valu...
    method decodeStructFromMap (line 394) | func (d *Decoder) decodeStructFromMap(name string, dataVal, val reflec...
    method setInterface (line 601) | func (d *Decoder) setInterface(name string, data any, val reflect.Valu...
    method decodeTextUnmarshaller (line 607) | func (d *Decoder) decodeTextUnmarshaller(name string, data any, val re...
  function NewDecoder (line 30) | func NewDecoder(option Option) *Decoder {
  function isNil (line 46) | func isNil(input any) bool {
  function isInt (line 104) | func isInt(kind reflect.Kind) bool {
  function isUint (line 113) | func isUint(kind reflect.Kind) bool {
  function isFloat (line 122) | func isFloat(kind reflect.Kind) bool {

FILE: core/Clash.Meta/common/structure/structure_test.go
  type Baz (line 15) | type Baz struct
  type BazSlice (line 20) | type BazSlice struct
  type BazOptional (line 25) | type BazOptional struct
  function TestStructure_Basic (line 30) | func TestStructure_Basic(t *testing.T) {
  function TestStructure_Slice (line 48) | func TestStructure_Slice(t *testing.T) {
  function TestStructure_Optional (line 65) | func TestStructure_Optional(t *testing.T) {
  function TestStructure_MissingKey (line 80) | func TestStructure_MissingKey(t *testing.T) {
  function TestStructure_ParamError (line 90) | func TestStructure_ParamError(t *testing.T) {
  function TestStructure_SliceTypeError (line 97) | func TestStructure_SliceTypeError(t *testing.T) {
  function TestStructure_WeakType (line 108) | func TestStructure_WeakType(t *testing.T) {
  function TestStructure_Nest (line 125) | func TestStructure_Nest(t *testing.T) {
  function TestStructure_DoubleNest (line 142) | func TestStructure_DoubleNest(t *testing.T) {
  function TestStructure_Remain (line 163) | func TestStructure_Remain(t *testing.T) {
  function TestStructure_SliceNilValue (line 185) | func TestStructure_SliceNilValue(t *testing.T) {
  function TestStructure_SliceNilValueComplex (line 206) | func TestStructure_SliceNilValueComplex(t *testing.T) {
  function TestStructure_SliceCap (line 227) | func TestStructure_SliceCap(t *testing.T) {
  function TestStructure_Base64 (line 243) | func TestStructure_Base64(t *testing.T) {
  function TestStructure_Pointer (line 257) | func TestStructure_Pointer(t *testing.T) {
  function TestStructure_PointerStruct (line 274) | func TestStructure_PointerStruct(t *testing.T) {
  type num (line 291) | type num struct
    method UnmarshalText (line 295) | func (n *num) UnmarshalText(text []byte) (err error) {
  function TestStructure_TextUnmarshaller (line 300) | func TestStructure_TextUnmarshaller(t *testing.T) {
  function TestStructure_Null (line 334) | func TestStructure_Null(t *testing.T) {
  function TestStructure_Ignore (line 352) | func TestStructure_Ignore(t *testing.T) {
  function TestStructure_IgnoreInNest (line 372) | func TestStructure_IgnoreInNest(t *testing.T) {

FILE: core/Clash.Meta/common/utils/callback.go
  type Callback (line 10) | type Callback struct
  function NewCallback (line 15) | func NewCallback[T any]() *Callback[T] {
  method Register (line 19) | func (c *Callback[T]) Register(item func(T)) io.Closer {
  method Emit (line 29) | func (c *Callback[T]) Emit(item T) {
  type callbackCloser (line 37) | type callbackCloser struct
  method Close (line 43) | func (c *callbackCloser[T]) Close() error {

FILE: core/Clash.Meta/common/utils/global_id.go
  function GlobalID (line 10) | func GlobalID(material string) (id [8]byte) {
  function MapHash (line 15) | func MapHash(material string) uint64 {

FILE: core/Clash.Meta/common/utils/hash.go
  type HashType (line 11) | type HashType struct
    method Equal (line 19) | func (h HashType) Equal(hash HashType) bool {
    method Bytes (line 23) | func (h HashType) Bytes() []byte {
    method String (line 27) | func (h HashType) String() string {
    method MarshalText (line 31) | func (h HashType) MarshalText() ([]byte, error) {
    method UnmarshalText (line 35) | func (h *HashType) UnmarshalText(data []byte) error {
    method MarshalBinary (line 43) | func (h HashType) MarshalBinary() ([]byte, error) {
    method UnmarshalBinary (line 47) | func (h *HashType) UnmarshalBinary(data []byte) error {
    method Len (line 55) | func (h HashType) Len() int {
    method IsValid (line 59) | func (h HashType) IsValid() bool {
  function MakeHash (line 15) | func MakeHash(data []byte) HashType {

FILE: core/Clash.Meta/common/utils/manipulation.go
  function EmptyOr (line 5) | func EmptyOr[T comparable](v T, def T) T {

FILE: core/Clash.Meta/common/utils/must.go
  function MustOK (line 3) | func MustOK[T any](result T, ok bool) T {

FILE: core/Clash.Meta/common/utils/range.go
  type Range (line 11) | type Range struct
  function NewRange (line 16) | func NewRange[T constraints.Ordered](start, end T) Range[T] {
  method Contains (line 30) | func (r Range[T]) Contains(t T) bool {
  method LeftContains (line 34) | func (r Range[T]) LeftContains(t T) bool {
  method RightContains (line 38) | func (r Range[T]) RightContains(t T) bool {
  method Start (line 42) | func (r Range[T]) Start() T {
  method End (line 46) | func (r Range[T]) End() T {
  method String (line 50) | func (r Range[T]) String() string {
  function NewUnsignedRange (line 57) | func NewUnsignedRange[T constraints.Unsigned](expected string) (Range[T]...
  function NewSignedRange (line 61) | func NewSignedRange[T constraints.Signed](expected string) (Range[T], er...
  function newIntRange (line 65) | func newIntRange[T constraints.Integer](s string, parseFn func(string) (...
  function parseUnsigned (line 89) | func parseUnsigned[T constraints.Unsigned](s string) (T, error) {
  function parseSigned (line 97) | func parseSigned[T constraints.Signed](s string) (T, error) {

FILE: core/Clash.Meta/common/utils/ranges.go
  type IntRanges (line 12) | type IntRanges
  function newIntRanges (line 16) | func newIntRanges[T constraints.Integer](expected string, parseFn func(s...
  function newIntRangesFromList (line 33) | func newIntRangesFromList[T constraints.Integer](list []string, parseFn ...
  function NewUnsignedRanges (line 50) | func NewUnsignedRanges[T constraints.Unsigned](expected string) (IntRang...
  function NewUnsignedRangesFromList (line 54) | func NewUnsignedRangesFromList[T constraints.Unsigned](list []string) (I...
  function NewSignedRanges (line 58) | func NewSignedRanges[T constraints.Signed](expected string) (IntRanges[T...
  function NewSignedRangesFromList (line 62) | func NewSignedRangesFromList[T constraints.Signed](list []string) (IntRa...
  method Check (line 66) | func (ranges IntRanges[T]) Check(status T) bool {
  method String (line 80) | func (ranges IntRanges[T]) String() string {
  method Range (line 93) | func (ranges IntRanges[T]) Range(f func(t T) bool) {
  method Merge (line 110) | func (ranges IntRanges[T]) Merge() (mergedRanges IntRanges[T]) {

FILE: core/Clash.Meta/common/utils/ranges_test.go
  function TestMergeRanges (line 8) | func TestMergeRanges(t *testing.T) {

FILE: core/Clash.Meta/common/utils/slice.go
  function Filter (line 9) | func Filter[T comparable](tSlice []T, filter func(t T) bool) []T {
  function Map (line 19) | func Map[T any, N any](arr []T, block func(it T) N) []N {
  function ToStringSlice (line 30) | func ToStringSlice(value any) ([]string, error) {

FILE: core/Clash.Meta/common/utils/string_unsafe.go
  function ImmutableBytesFromString (line 8) | func ImmutableBytesFromString(s string) []byte {
  function StringFromImmutableBytes (line 16) | func StringFromImmutableBytes(bs []byte) string {

FILE: core/Clash.Meta/common/utils/strings.go
  function Reverse (line 3) | func Reverse(s string) string {

FILE: core/Clash.Meta/common/utils/uuid.go
  function NewUUIDV3 (line 12) | func NewUUIDV3(ns uuid.UUID, name string) (u uuid.UUID) {
  function NewUUIDV4 (line 26) | func NewUUIDV4() (u uuid.UUID) {
  function NewUUIDV5 (line 34) | func NewUUIDV5(ns uuid.UUID, name string) (u uuid.UUID) {
  function UUIDMap (line 46) | func UUIDMap(str string) uuid.UUID {

FILE: core/Clash.Meta/common/utils/uuid_test.go
  function TestUUIDMap (line 10) | func TestUUIDMap(t *testing.T) {

FILE: core/Clash.Meta/common/xsync/map.go
  constant entriesPerMapBucket (line 26) | entriesPerMapBucket = 5
  constant mapShrinkFraction (line 29) | mapShrinkFraction = 128
  constant mapLoadFactor (line 33) | mapLoadFactor = 0.75
  constant defaultMinMapTableLen (line 36) | defaultMinMapTableLen = 32
  constant minMapCounterLen (line 38) | minMapCounterLen = 8
  constant maxMapCounterLen (line 40) | maxMapCounterLen         = 32
  constant defaultMeta (line 41) | defaultMeta       uint64 = 0x8080808080808080
  constant metaMask (line 42) | metaMask          uint64 = 0xffffffffff
  constant defaultMetaMasked (line 43) | defaultMetaMasked uint64 = defaultMeta & metaMask
  constant emptyMetaSlot (line 44) | emptyMetaSlot     uint8  = 0x80
  constant minResizeTransferStride (line 47) | minResizeTransferStride = 64
  constant maxResizeHelpersLimit (line 51) | maxResizeHelpersLimit = (1 << 5) - 1
  type mapResizeHint (line 67) | type mapResizeHint
  constant mapGrowHint (line 70) | mapGrowHint   mapResizeHint = 0
  constant mapShrinkHint (line 71) | mapShrinkHint mapResizeHint = 1
  constant mapClearHint (line 72) | mapClearHint  mapResizeHint = 2
  type ComputeOp (line 75) | type ComputeOp
  constant CancelOp (line 82) | CancelOp ComputeOp = iota
  constant UpdateOp (line 85) | UpdateOp
  constant DeleteOp (line 88) | DeleteOp
  type loadOp (line 91) | type loadOp
  constant noLoadOp (line 94) | noLoadOp loadOp = iota
  constant loadOrComputeOp (line 95) | loadOrComputeOp
  constant loadAndDeleteOp (line 96) | loadAndDeleteOp
  type Map (line 120) | type Map struct
  type mapTable (line 141) | type mapTable struct
  type counterStripe (line 150) | type counterStripe struct
  type bucketPadded (line 158) | type bucketPadded struct
  type bucket (line 164) | type bucket struct
  type entry (line 172) | type entry struct
  type MapConfig (line 178) | type MapConfig struct
  function WithPresize (line 188) | func WithPresize(sizeHint int) func(*MapConfig) {
  function WithGrowOnly (line 199) | func WithGrowOnly() func(*MapConfig) {
  function NewMap (line 207) | func NewMap[K comparable, V any](options ...func(*MapConfig)) *Map[K, V] {
  method init (line 222) | func (m *Map[K, V]) init() {
  function newMapTable (line 232) | func newMapTable[K comparable, V any](minTableLen int, seed maphash.Seed...
  function ToPlainMap (line 256) | func ToPlainMap[K comparable, V any](m *Map[K, V]) map[K]V {
  method Load (line 270) | func (m *Map[K, V]) Load(key K) (value V, ok bool) {
  method Store (line 301) | func (m *Map[K, V]) Store(key K, value V) {
  method LoadOrStore (line 315) | func (m *Map[K, V]) LoadOrStore(key K, value V) (actual V, loaded bool) {
  method LoadAndStore (line 334) | func (m *Map[K, V]) LoadAndStore(key K, value V) (actual V, loaded bool) {
  method LoadOrCompute (line 357) | func (m *Map[K, V]) LoadOrCompute(
  method Compute (line 398) | func (m *Map[K, V]) Compute(
  method LoadAndDelete (line 408) | func (m *Map[K, V]) LoadAndDelete(key K) (value V, loaded bool) {
  method Delete (line 420) | func (m *Map[K, V]) Delete(key K) {
  method doCompute (line 424) | func (m *Map[K, V]) doCompute(
  method newerTableExists (line 604) | func (m *Map[K, V]) newerTableExists(table *mapTable[K, V]) bool {
  function resizeSeq (line 608) | func resizeSeq(ctl uint64) uint64 {
  function resizeHelpers (line 612) | func resizeHelpers(ctl uint64) uint64 {
  function resizeCtl (line 616) | func resizeCtl(seq uint64, helpers uint64) uint64 {
  method waitForResize (line 620) | func (m *Map[K, V]) waitForResize() {
  method resize (line 628) | func (m *Map[K, V]) resize(knownTable *mapTable[K, V], hint mapResizeHin...
  method helpResize (line 707) | func (m *Map[K, V]) helpResize(seq uint64) {
  method transfer (line 740) | func (m *Map[K, V]) transfer(table, newTable *mapTable[K, V]) {
  function transferBucketUnsafe (line 784) | func transferBucketUnsafe[K comparable, V any](
  function transferBucket (line 809) | func transferBucket[K comparable, V any](
  method Range (line 849) | func (m *Map[K, V]) Range(f func(key K, value V) bool) {
  method Clear (line 886) | func (m *Map[K, V]) Clear() {
  method Size (line 892) | func (m *Map[K, V]) Size() int {
  function appendToBucket (line 899) | func appendToBucket[K comparable, V any](h2 uint8, e *entry[K, V], b *bu...
  method addSize (line 919) | func (table *mapTable[K, V]) addSize(bucketIdx uint64, delta int) {
  method sumSize (line 924) | func (table *mapTable[K, V]) sumSize() int64 {
  function h1 (line 932) | func h1(h uint64) uint64 {
  function h2 (line 936) | func h2(h uint64) uint8 {
  type MapStats (line 945) | type MapStats struct
    method ToString (line 982) | func (s *MapStats) ToString() string {
  method Stats (line 1003) | func (m *Map[K, V]) Stats() MapStats {
  constant cacheLineSize (line 1052) | cacheLineSize = 64
  function nextPowOf2 (line 1057) | func nextPowOf2(v uint32) uint32 {
  function parallelism (line 1071) | func parallelism() uint32 {
  function broadcast (line 1080) | func broadcast(b uint8) uint64 {
  function firstMarkedByteIndex (line 1084) | func firstMarkedByteIndex(w uint64) int {
  function markZeroBytes (line 1090) | func markZeroBytes(w uint64) uint64 {
  function setByte (line 1095) | func setByte(w uint64, b uint8, idx int) uint64 {

FILE: core/Clash.Meta/common/xsync/map_extra.go
  method LoadOrStoreFn (line 16) | func (m *Map[K, V]) LoadOrStoreFn(key K, valueFn func() V) (actual V, lo...

FILE: core/Clash.Meta/common/xsync/map_extra_test.go
  function TestMapOfLoadOrStoreFn (line 8) | func TestMapOfLoadOrStoreFn(t *testing.T) {
  function TestMapOfLoadOrStoreFn_FunctionCalledOnce (line 35) | func TestMapOfLoadOrStoreFn_FunctionCalledOnce(t *testing.T) {

FILE: core/Clash.Meta/common/xsync/map_test.go
  constant benchmarkNumEntries (line 19) | benchmarkNumEntries = 1_000
  constant benchmarkKeyPrefix (line 21) | benchmarkKeyPrefix = "what_a_looooooooooooooooooooooong_key_prefix_"
  type point (line 24) | type point struct
  function init (line 41) | func init() {
  function runParallel (line 48) | func runParallel(b *testing.B, benchFn func(pb *testing.PB)) {
  function TestMap_BucketStructSize (line 56) | func TestMap_BucketStructSize(t *testing.T) {
  function TestMap_MissingEntry (line 67) | func TestMap_MissingEntry(t *testing.T) {
  function TestMap_EmptyStringKey (line 81) | func TestMap_EmptyStringKey(t *testing.T) {
  function TestMapStore_NilValue (line 93) | func TestMapStore_NilValue(t *testing.T) {
  function TestMapLoadOrStore_NilValue (line 105) | func TestMapLoadOrStore_NilValue(t *testing.T) {
  function TestMapLoadOrStore_NonNilValue (line 117) | func TestMapLoadOrStore_NonNilValue(t *testing.T) {
  function TestMapLoadAndStore_NilValue (line 138) | func TestMapLoadAndStore_NilValue(t *testing.T) {
  function TestMapLoadAndStore_NonNilValue (line 157) | func TestMapLoadAndStore_NonNilValue(t *testing.T) {
  function TestMapRange (line 184) | func TestMapRange(t *testing.T) {
  function TestMapRange_FalseReturned (line 211) | func TestMapRange_FalseReturned(t *testing.T) {
  function TestMapRange_NestedDelete (line 226) | func TestMapRange_NestedDelete(t *testing.T) {
  function TestMapStringStore (line 243) | func TestMapStringStore(t *testing.T) {
  function TestMapIntStore (line 260) | func TestMapIntStore(t *testing.T) {
  function TestMapStore_StructKeys_IntValues (line 277) | func TestMapStore_StructKeys_IntValues(t *testing.T) {
  function TestMapStore_StructKeys_StructValues (line 294) | func TestMapStore_StructKeys_StructValues(t *testing.T) {
  function TestMapLoadOrStore (line 314) | func TestMapLoadOrStore(t *testing.T) {
  function TestMapLoadOrCompute (line 327) | func TestMapLoadOrCompute(t *testing.T) {
  function TestMapLoadOrCompute_FunctionCalledOnce (line 369) | func TestMapLoadOrCompute_FunctionCalledOnce(t *testing.T) {
  function TestMapOfCompute (line 385) | func TestMapOfCompute(t *testing.T) {
  function TestMapStringStoreThenDelete (line 490) | func TestMapStringStoreThenDelete(t *testing.T) {
  function TestMapIntStoreThenDelete (line 504) | func TestMapIntStoreThenDelete(t *testing.T) {
  function TestMapStructStoreThenDelete (line 518) | func TestMapStructStoreThenDelete(t *testing.T) {
  function TestMapStringStoreThenLoadAndDelete (line 532) | func TestMapStringStoreThenLoadAndDelete(t *testing.T) {
  function TestMapIntStoreThenLoadAndDelete (line 548) | func TestMapIntStoreThenLoadAndDelete(t *testing.T) {
  function TestMapStructStoreThenLoadAndDelete (line 564) | func TestMapStructStoreThenLoadAndDelete(t *testing.T) {
  function TestMapStoreThenParallelDelete_DoesNotShrinkBelowMinTableLen (line 580) | func TestMapStoreThenParallelDelete_DoesNotShrinkBelowMinTableLen(t *tes...
  function sizeBasedOnTypedRange (line 611) | func sizeBasedOnTypedRange(m *Map[string, int]) int {
  function TestMapSize (line 620) | func TestMapSize(t *testing.T) {
  function TestMapClear (line 654) | func TestMapClear(t *testing.T) {
  function assertMapCapacity (line 675) | func assertMapCapacity[K comparable, V any](t *testing.T, m *Map[K, V], ...
  function TestNewMapWithPresize (line 682) | func TestNewMapWithPresize(t *testing.T) {
  function TestNewMapWithPresize_DoesNotShrinkBelowMinTableLen (line 691) | func TestNewMapWithPresize_DoesNotShrinkBelowMinTableLen(t *testing.T) {
  function TestNewMapGrowOnly_OnlyShrinksOnClear (line 714) | func TestNewMapGrowOnly_OnlyShrinksOnClear(t *testing.T) {
  function TestMapResize (line 746) | func TestMapResize(t *testing.T) {
  function TestMapResize_CounterLenLimit (line 794) | func TestMapResize_CounterLenLimit(t *testing.T) {
  function testParallelResize (line 811) | func testParallelResize(t *testing.T, numGoroutines int) {
  function TestMapParallelResize (line 859) | func TestMapParallelResize(t *testing.T) {
  function testParallelResizeWithSameKeys (line 865) | func testParallelResizeWithSameKeys(t *testing.T, numGoroutines int) {
  function TestMapParallelResize_IntersectingKeys (line 903) | func TestMapParallelResize_IntersectingKeys(t *testing.T) {
  function testParallelShrinking (line 909) | func testParallelShrinking(t *testing.T, numGoroutines int) {
  function TestMapParallelShrinking (line 946) | func TestMapParallelShrinking(t *testing.T) {
  function parallelSeqMapGrower (line 952) | func parallelSeqMapGrower(m *Map[int, int], numEntries int, positive boo...
  function TestMapParallelGrowth_GrowOnly (line 963) | func TestMapParallelGrowth_GrowOnly(t *testing.T) {
  function parallelRandMapResizer (line 987) | func parallelRandMapResizer(t *testing.T, m *Map[string, int], numIters,...
  function TestMapParallelGrowth (line 1002) | func TestMapParallelGrowth(t *testing.T) {
  function parallelRandMapClearer (line 1033) | func parallelRandMapClearer(t *testing.T, m *Map[string, int], numIters,...
  function TestMapParallelClear (line 1048) | func TestMapParallelClear(t *testing.T) {
  function parallelSeqMapStorer (line 1069) | func parallelSeqMapStorer(t *testing.T, m *Map[string, int], storeEach, ...
  function TestMapParallelStores (line 1090) | func TestMapParallelStores(t *testing.T) {
  function parallelRandMapStorer (line 1115) | func parallelRandMapStorer(t *testing.T, m *Map[string, int], numIters, ...
  function parallelRandMapDeleter (line 1128) | func parallelRandMapDeleter(t *testing.T, m *Map[string, int], numIters,...
  function parallelMapLoader (line 1141) | func parallelMapLoader(t *testing.T, m *Map[string, int], numIters, numE...
  function TestMapAtomicSnapshot (line 1155) | func TestMapAtomicSnapshot(t *testing.T) {
  function TestMapParallelStoresAndDeletes (line 1170) | func TestMapParallelStoresAndDeletes(t *testing.T) {
  function parallelMapComputer (line 1187) | func parallelMapComputer(m *Map[uint64, uint64], numIters, numEntries in...
  function TestMapParallelComputes (line 1198) | func TestMapParallelComputes(t *testing.T) {
  function parallelRangeMapStorer (line 1222) | func parallelRangeMapStorer(m *Map[int, int], numEntries int, stopFlag *...
  function parallelRangeMapDeleter (line 1234) | func parallelRangeMapDeleter(m *Map[int, int], numEntries int, stopFlag ...
  function TestMapParallelRange (line 1246) | func TestMapParallelRange(t *testing.T) {
  function parallelMapShrinker (line 1281) | func parallelMapShrinker(t *testing.T, m *Map[uint64, *point], numIters,...
  function parallelMapUpdater (line 1296) | func parallelMapUpdater(t *testing.T, m *Map[uint64, *point], idx int, s...
  function TestMapDoesNotLoseEntriesOnResize (line 1311) | func TestMapDoesNotLoseEntriesOnResize(t *testing.T) {
  function TestMapStats (line 1328) | func TestMapStats(t *testing.T) {
  function TestToPlainMap_NilPointer (line 1382) | func TestToPlainMap_NilPointer(t *testing.T) {
  function TestToPlainMap (line 1389) | func TestToPlainMap(t *testing.T) {
  function BenchmarkMap_NoWarmUp (line 1406) | func BenchmarkMap_NoWarmUp(b *testing.B) {
  function BenchmarkMap_WarmUp (line 1425) | func BenchmarkMap_WarmUp(b *testing.B) {
  function benchmarkMapStringKeys (line 1444) | func benchmarkMapStringKeys(
  function BenchmarkMapInt_NoWarmUp (line 1469) | func BenchmarkMapInt_NoWarmUp(b *testing.B) {
  function BenchmarkMapInt_WarmUp (line 1488) | func BenchmarkMapInt_WarmUp(b *testing.B) {
  function BenchmarkIntMapStandard_NoWarmUp (line 1507) | func BenchmarkIntMapStandard_NoWarmUp(b *testing.B) {
  function BenchmarkIntMapStandard_WarmUp (line 1533) | func BenchmarkIntMapStandard_WarmUp(b *testing.B) {
  function benchmarkMapIntKeys (line 1557) | func benchmarkMapIntKeys(
  function BenchmarkMapRange (line 1582) | func BenchmarkMapRange(b *testing.B) {
  function BenchmarkMapCompute (line 1601) | func BenchmarkMapCompute(b *testing.B) {
  function BenchmarkMapParallelRehashing (line 1629) | func BenchmarkMapParallelRehashing(b *testing.B) {
  function TestNextPowOf2 (line 1680) | func TestNextPowOf2(t *testing.T) {
  function TestBroadcast (line 1695) | func TestBroadcast(t *testing.T) {
  function TestFirstMarkedByteIndex (line 1735) | func TestFirstMarkedByteIndex(t *testing.T) {
  function TestMarkZeroBytes (line 1791) | func TestMarkZeroBytes(t *testing.T) {
  function TestSetByte (line 1852) | func TestSetByte(t *testing.T) {

FILE: core/Clash.Meta/common/yaml/yaml.go
  function Unmarshal (line 8) | func Unmarshal(in []byte, out any) (err error) {
  function Marshal (line 12) | func Marshal(in any) (out []byte, err error) {

FILE: core/Clash.Meta/component/auth/auth.go
  type Authenticator (line 3) | type Authenticator interface
  type AuthStore (line 8) | type AuthStore interface
  type AuthUser (line 13) | type AuthUser struct
  type inMemoryAuthenticator (line 18) | type inMemoryAuthenticator struct
    method Verify (line 23) | func (au *inMemoryAuthenticator) Verify(user string, pass string) bool {
    method Users (line 28) | func (au *inMemoryAuthenticator) Users() []string { return au.usernames }
  function NewAuthenticator (line 30) | func NewAuthenticator(users []AuthUser) Authenticator {
  type alwaysValid (line 47) | type alwaysValid struct
    method Verify (line 49) | func (alwaysValid) Verify(string, string) bool { return true }
    method Users (line 51) | func (alwaysValid) Users() []string { return nil }

FILE: core/Clash.Meta/component/ca/auth.go
  constant NoClientCert (line 10) | NoClientCert               = tls.NoClientCert
  constant RequestClientCert (line 11) | RequestClientCert          = tls.RequestClientCert
  constant RequireAnyClientCert (line 12) | RequireAnyClientCert       = tls.RequireAnyClientCert
  constant VerifyClientCertIfGiven (line 13) | VerifyClientCertIfGiven    = tls.VerifyClientCertIfGiven
  constant RequireAndVerifyClientCert (line 14) | RequireAndVerifyClientCert = tls.RequireAndVerifyClientCert
  function ClientAuthTypeFromString (line 17) | func ClientAuthTypeFromString(s string) ClientAuthType {
  function ClientAuthTypeToString (line 32) | func ClientAuthTypeToString(t ClientAuthType) string {

FILE: core/Clash.Meta/component/ca/config.go
  function AddCertificate (line 27) | func AddCertificate(certificate string) error {
  function initializeCertPool (line 49) | func initializeCertPool() {
  function ResetCertificate (line 64) | func ResetCertificate() {
  function GetCertPool (line 70) | func GetCertPool() *x509.CertPool {
  type Option (line 79) | type Option struct
  function GetTLSConfig (line 87) | func GetTLSConfig(opt Option) (tlsConfig *tls.Config, err error) {

FILE: core/Clash.Meta/component/ca/fingerprint.go
  function NewFingerprintVerifier (line 14) | func NewFingerprintVerifier(fingerprint string, time func() time.Time) (...
  function CalculateFingerprint (line 60) | func CalculateFingerprint(certDER []byte) string {

FILE: core/Clash.Meta/component/ca/fingerprint_test.go
  function TestFingerprintVerifierLeaf (line 13) | func TestFingerprintVerifierLeaf(t *testing.T) {
  function TestFingerprintVerifierIntermediate (line 73) | func TestFingerprintVerifierIntermediate(t *testing.T) {
  function TestFingerprintVerifierRoot (line 133) | func TestFingerprintVerifierRoot(t *testing.T) {
  constant leafServerName (line 209) | leafServerName = "www.google.com"
  constant wrongLeafServerName (line 210) | wrongLeafServerName = "www.google.com.cn"
  constant gtsIntermediate (line 212) | gtsIntermediate = `-----BEGIN CERTIFICATE-----
  constant gtsRoot (line 245) | gtsRoot = `-----BEGIN CERTIFICATE-----
  constant googleLeaf (line 277) | googleLeaf = `-----BEGIN CERTIFICATE-----
  constant googleLeafWithInvalidHash (line 311) | googleLeafWithInvalidHash = `-----BEGIN CERTIFICATE-----
  constant smimeLeaf (line 343) | smimeLeaf = `-----BEGIN CERTIFICATE-----
  constant smimeIntermediate (line 390) | smimeIntermediate = `-----BEGIN CERTIFICATE-----
  constant smimeRoot (line 432) | smimeRoot = `-----BEGIN CERTIFICATE-----

FILE: core/Clash.Meta/component/ca/fix_windows.go
  function init (line 7) | func init() {

FILE: core/Clash.Meta/component/ca/keypair.go
  function NewTLSKeyPairLoader (line 27) | func NewTLSKeyPairLoader(certificate, privateKey string) (func() (*tls.C...
  function LoadCertificates (line 78) | func LoadCertificates(certificate string) (*x509.CertPool, error) {
  type KeyPairType (line 105) | type KeyPairType
  constant KeyPairTypeRSA (line 108) | KeyPairTypeRSA     KeyPairType = "rsa"
  constant KeyPairTypeP256 (line 109) | KeyPairTypeP256    KeyPairType = "p256"
  constant KeyPairTypeP384 (line 110) | KeyPairTypeP384    KeyPairType = "p384"
  constant KeyPairTypeEd25519 (line 111) | KeyPairTypeEd25519 KeyPairType = "ed25519"
  function NewRandomTLSKeyPair (line 116) | func NewRandomTLSKeyPair(keyPairType KeyPairType) (certificate string, p...

FILE: core/Clash.Meta/component/cidr/ipcidr_set.go
  type IpCidrSet (line 11) | type IpCidrSet struct
    method AddIpCidrForString (line 20) | func (set *IpCidrSet) AddIpCidrForString(ipCidr string) error {
    method AddIpCidr (line 28) | func (set *IpCidrSet) AddIpCidr(ipCidr netip.Prefix) (err error) {
    method IsContainForString (line 37) | func (set *IpCidrSet) IsContainForString(ipString string) bool {
    method IsContain (line 45) | func (set *IpCidrSet) IsContain(ip netip.Addr) bool {
    method MatchIp (line 50) | func (set *IpCidrSet) MatchIp(ip netip.Addr) bool {
    method Merge (line 57) | func (set *IpCidrSet) Merge() error {
    method IsEmpty (line 68) | func (set *IpCidrSet) IsEmpty() bool {
    method Foreach (line 72) | func (set *IpCidrSet) Foreach(f func(prefix netip.Prefix) bool) {
    method ToIPSet (line 84) | func (set *IpCidrSet) ToIPSet() *netipx.IPSet {
    method fromIPSet (line 88) | func (set *IpCidrSet) fromIPSet(i *netipx.IPSet) {
  function NewIpCidrSet (line 16) | func NewIpCidrSet() *IpCidrSet {

FILE: core/Clash.Meta/component/cidr/ipcidr_set_bin.go
  method WriteBin (line 12) | func (ss *IpCidrSet) WriteBin(w io.Writer) (err error) {
  function ReadIpCidrSet (line 38) | func ReadIpCidrSet(r io.Reader) (ss *IpCidrSet, err error) {

FILE: core/Clash.Meta/component/cidr/ipcidr_set_test.go
  function TestIpv4 (line 7) | func TestIpv4(t *testing.T) {
  function TestIpv6 (line 41) | func TestIpv6(t *testing.T) {
  function TestMerge (line 76) | func TestMerge(t *testing.T) {

FILE: core/Clash.Meta/component/dhcp/conn.go
  function ListenDHCPClient (line 12) | func ListenDHCPClient(ctx context.Context, ifaceName string) (net.Packet...

FILE: core/Clash.Meta/component/dhcp/dhcp.go
  function ResolveDNSFromDHCP (line 19) | func ResolveDNSFromDHCP(context context.Context, ifaceName string) ([]ne...
  function receiveOffer (line 58) | func receiveOffer(conn net.PacketConn, id dhcpv4.TransactionID, result c...

FILE: core/Clash.Meta/component/dialer/bind.go
  function LookupLocalAddrFromIfaceName (line 12) | func LookupLocalAddrFromIfaceName(ifaceName string, network string, dest...
  function fallbackBindIfaceToDialer (line 55) | func fallbackBindIfaceToDialer(ifaceName string, dialer *net.Dialer, net...
  function fallbackBindIfaceToListenConfig (line 78) | func fallbackBindIfaceToListenConfig(ifaceName string, _ *net.ListenConf...
  function fallbackParseNetwork (line 94) | func fallbackParseNetwork(network string, addr netip.Addr) string {

FILE: core/Clash.Meta/component/dialer/bind_darwin.go
  function bindControl (line 14) | func bindControl(ifaceIdx int) controlFn {
  function bindIfaceToDialer (line 39) | func bindIfaceToDialer(ifaceName string, dialer *net.Dialer, _ string, _...
  function bindIfaceToListenConfig (line 49) | func bindIfaceToListenConfig(ifaceName string, lc *net.ListenConfig, _, ...
  function ParseNetwork (line 59) | func ParseNetwork(network string, addr netip.Addr) string {

FILE: core/Clash.Meta/component/dialer/bind_linux.go
  function bindControl (line 12) | func bindControl(ifaceName string) controlFn {
  function bindIfaceToDialer (line 32) | func bindIfaceToDialer(ifaceName string, dialer *net.Dialer, _ string, _...
  function bindIfaceToListenConfig (line 38) | func bindIfaceToListenConfig(ifaceName string, lc *net.ListenConfig, _, ...
  function ParseNetwork (line 44) | func ParseNetwork(network string, addr netip.Addr) string {

FILE: core/Clash.Meta/component/dialer/bind_others.go
  function bindIfaceToDialer (line 10) | func bindIfaceToDialer(ifaceName string, dialer *net.Dialer, network str...
  function bindIfaceToListenConfig (line 14) | func bindIfaceToListenConfig(ifaceName string, lc *net.ListenConfig, net...
  function ParseNetwork (line 18) | func ParseNetwork(network string, addr netip.Addr) string {

FILE: core/Clash.Meta/component/dialer/bind_windows.go
  constant IP_UNICAST_IF (line 16) | IP_UNICAST_IF   = 31
  constant IPV6_UNICAST_IF (line 17) | IPV6_UNICAST_IF = 31
  function bind4 (line 20) | func bind4(handle syscall.Handle, ifaceIdx int) error {
  function bind6 (line 31) | func bind6(handle syscall.Handle, ifaceIdx int) error {
  function bindControl (line 39) | func bindControl(ifaceIdx int, rAddrPort netip.AddrPort) controlFn {
  function bindIfaceToDialer (line 79) | func bindIfaceToDialer(ifaceName string, dialer *net.Dialer, _ string, d...
  function bindIfaceToListenConfig (line 89) | func bindIfaceToListenConfig(ifaceName string, lc *net.ListenConfig, _, ...
  function ParseNetwork (line 99) | func ParseNetwork(network string, addr netip.Addr) string {

FILE: core/Clash.Meta/component/dialer/control.go
  function addControlToListenConfig (line 11) | func addControlToListenConfig(lc *net.ListenConfig, fn controlFn) {
  function addControlToDialer (line 24) | func addControlToDialer(d *net.Dialer, fn controlFn) {

FILE: core/Clash.Meta/component/dialer/dialer.go
  constant DefaultTCPTimeout (line 22) | DefaultTCPTimeout = 5 * time.Second
  constant DefaultUDPTimeout (line 23) | DefaultUDPTimeout = DefaultTCPTimeout
  constant dualStackFallbackTimeout (line 25) | dualStackFallbackTimeout = 300 * time.Millisecond
  function SetTcpConcurrent (line 32) | func SetTcpConcurrent(concurrent bool) {
  function GetTcpConcurrent (line 36) | func GetTcpConcurrent() bool {
  function DialContext (line 40) | func DialContext(ctx context.Context, network, address string, options ....
  function ListenPacket (line 79) | func ListenPacket(ctx context.Context, network, address string, rAddrPor...
  function dialContext (line 123) | func dialContext(ctx context.Context, network string, destination netip....
  function ICMPControl (line 177) | func ICMPControl(destination netip.Addr) func(network, address string, c...
  type dialFunc (line 205) | type dialFunc
  function dualStackDialContext (line 207) | func dualStackDialContext(ctx context.Context, dialFn dialFunc, network ...
  function parallelDialContext (line 294) | func parallelDialContext(ctx context.Context, network string, ips []neti...
  function serialDialContext (line 336) | func serialDialContext(ctx context.Context, network string, ips []netip....
  type dialResult (line 351) | type dialResult struct
  function parseAddr (line 358) | func parseAddr(ctx context.Context, network, address string, preferResol...
  type Dialer (line 388) | type Dialer struct
    method DialContext (line 392) | func (d Dialer) DialContext(ctx context.Context, network, address stri...
    method ListenPacket (line 396) | func (d Dialer) ListenPacket(ctx context.Context, network, address str...
  function NewDialer (line 400) | func NewDialer(options ...Option) Dialer {

FILE: core/Clash.Meta/component/dialer/mark_linux.go
  function bindMarkToDialer (line 12) | func bindMarkToDialer(mark int, dialer *net.Dialer, _ string, _ netip.Ad...
  function bindMarkToListenConfig (line 16) | func bindMarkToListenConfig(mark int, lc *net.ListenConfig, _, _ string) {
  function bindMarkToControl (line 20) | func bindMarkToControl(mark int) controlFn {

FILE: core/Clash.Meta/component/dialer/mark_nonlinux.go
  function printMarkWarn (line 15) | func printMarkWarn() {
  function bindMarkToDialer (line 21) | func bindMarkToDialer(mark int, dialer *net.Dialer, _ string, _ netip.Ad...
  function bindMarkToListenConfig (line 25) | func bindMarkToListenConfig(mark int, lc *net.ListenConfig, _, _ string) {

FILE: core/Clash.Meta/component/dialer/options.go
  type InterfaceFinder (line 19) | type InterfaceFinder interface
  type NetDialer (line 23) | type NetDialer interface
  type NetDialerFunc (line 27) | type NetDialerFunc
    method DialContext (line 29) | func (f NetDialerFunc) DialContext(ctx context.Context, network, addre...
  type option (line 33) | type option struct
  type Option (line 46) | type Option
  function WithInterface (line 48) | func WithInterface(name string) Option {
  function WithFallbackBind (line 54) | func WithFallbackBind(fallback bool) Option {
  function WithAddrReuse (line 60) | func WithAddrReuse(reuse bool) Option {
  function WithRoutingMark (line 66) | func WithRoutingMark(mark int) Option {
  function WithResolver (line 72) | func WithResolver(r resolver.Resolver) Option {
  function WithPreferIPv4 (line 78) | func WithPreferIPv4() Option {
  function WithPreferIPv6 (line 84) | func WithPreferIPv6() Option {
  function WithOnlySingleStack (line 90) | func WithOnlySingleStack(isIPv4 bool) Option {
  function WithTFO (line 100) | func WithTFO(tfo bool) Option {
  function WithMPTCP (line 106) | func WithMPTCP(mpTcp bool) Option {
  function WithNetDialer (line 112) | func WithNetDialer(netDialer NetDialer) Option {
  function WithOption (line 118) | func WithOption(o option) Option {
  function WithOptions (line 124) | func WithOptions(options ...Option) Option {
  function IsZeroOptions (line 132) | func IsZeroOptions(opts []Option) bool {
  function applyOptions (line 136) | func applyOptions(options ...Option) option {

FILE: core/Clash.Meta/component/dialer/reuse.go
  function addrReuseToListenConfig (line 11) | func addrReuseToListenConfig(lc *net.ListenConfig) {

FILE: core/Clash.Meta/component/dialer/socket_hook.go
  type SocketControl (line 11) | type SocketControl
  function socketHookToToDialer (line 17) | func socketHookToToDialer(dialer *net.Dialer) {
  function socketHookToListenConfig (line 23) | func socketHookToListenConfig(lc *net.ListenConfig) {

FILE: core/Clash.Meta/component/dialer/tfo.go
  type tfoConn (line 14) | type tfoConn struct
    method Dial (line 23) | func (c *tfoConn) Dial(earlyData []byte) (err error) {
    method Read (line 33) | func (c *tfoConn) Read(b []byte) (n int, err error) {
    method Write (line 47) | func (c *tfoConn) Write(b []byte) (n int, err error) {
    method Close (line 61) | func (c *tfoConn) Close() error {
    method LocalAddr (line 70) | func (c *tfoConn) LocalAddr() net.Addr {
    method RemoteAddr (line 77) | func (c *tfoConn) RemoteAddr() net.Addr {
    method SetDeadline (line 84) | func (c *tfoConn) SetDeadline(t time.Time) error {
    method SetReadDeadline (line 91) | func (c *tfoConn) SetReadDeadline(t time.Time) error {
    method SetWriteDeadline (line 98) | func (c *tfoConn) SetWriteDeadline(t time.Time) error {
    method Upstream (line 105) | func (c *tfoConn) Upstream() any {
    method NeedAdditionalReadDeadline (line 112) | func (c *tfoConn) NeedAdditionalReadDeadline() bool {
    method NeedHandshake (line 116) | func (c *tfoConn) NeedHandshake() bool {
    method ReaderReplaceable (line 120) | func (c *tfoConn) ReaderReplaceable() bool {
    method WriterReplaceable (line 124) | func (c *tfoConn) WriterReplaceable() bool {
  function dialTFO (line 128) | func dialTFO(ctx context.Context, netDialer net.Dialer, network, address...

FILE: core/Clash.Meta/component/dialer/tfo_windows.go
  function init (line 5) | func init() {

FILE: core/Clash.Meta/component/ech/ech.go
  type Config (line 11) | type Config struct
    method ClientHandle (line 15) | func (cfg *Config) ClientHandle(ctx context.Context, tlsConfig *tls.Co...
    method ClientHandleUTLS (line 34) | func (cfg *Config) ClientHandleUTLS(ctx context.Context, tlsConfig *tl...

FILE: core/Clash.Meta/component/ech/echparser/echparser.go
  constant extensionEncryptedClientHello (line 12) | extensionEncryptedClientHello = 0xfe0d
  type ECHCipher (line 14) | type ECHCipher struct
  type ECHExtension (line 19) | type ECHExtension struct
  type ECHConfig (line 24) | type ECHConfig struct
  type EchConfigErr (line 42) | type EchConfigErr struct
    method Error (line 46) | func (e *EchConfigErr) Error() string {
  function ParseECHConfig (line 53) | func ParseECHConfig(enc []byte) (skip bool, ec ECHConfig, err error) {
  function ParseECHConfigList (line 122) | func ParseECHConfigList(data []byte) ([]ECHConfig, error) {

FILE: core/Clash.Meta/component/ech/key.go
  constant AEAD_AES_128_GCM (line 22) | AEAD_AES_128_GCM      = 0x0001
  constant AEAD_AES_256_GCM (line 23) | AEAD_AES_256_GCM      = 0x0002
  constant AEAD_ChaCha20Poly1305 (line 24) | AEAD_ChaCha20Poly1305 = 0x0003
  constant extensionEncryptedClientHello (line 27) | extensionEncryptedClientHello = 0xfe0d
  constant DHKEM_X25519_HKDF_SHA256 (line 28) | DHKEM_X25519_HKDF_SHA256 = 0x0020
  constant KDF_HKDF_SHA256 (line 29) | KDF_HKDF_SHA256 = 0x0001
  function marshalECHConfig (line 36) | func marshalECHConfig(id uint8, pubKey []byte, publicName string, maxNam...
  function GenECHConfig (line 63) | func GenECHConfig(publicName string) (configBase64 string, keyPem string...
  function UnmarshalECHKeys (line 91) | func UnmarshalECHKeys(raw []byte) ([]tls.EncryptedClientHelloKey, error) {
  function LoadECHKey (line 110) | func LoadECHKey(key string, tlsConfig *tls.Config) error {
  function loadECHKey (line 161) | func loadECHKey(echKey []byte) ([]tls.EncryptedClientHelloKey, error) {

FILE: core/Clash.Meta/component/ech/key_test.go
  function TestGenECHConfig (line 10) | func TestGenECHConfig(t *testing.T) {

FILE: core/Clash.Meta/component/fakeip/cachefile.go
  type cachefileStore (line 9) | type cachefileStore struct
    method GetByHost (line 14) | func (c *cachefileStore) GetByHost(host string) (netip.Addr, bool) {
    method PutByHost (line 19) | func (c *cachefileStore) PutByHost(host string, ip netip.Addr) {
    method GetByIP (line 24) | func (c *cachefileStore) GetByIP(ip netip.Addr) (string, bool) {
    method PutByIP (line 29) | func (c *cachefileStore) PutByIP(ip netip.Addr, host string) {
    method DelByIP (line 34) | func (c *cachefileStore) DelByIP(ip netip.Addr) {
    method Exist (line 39) | func (c *cachefileStore) Exist(ip netip.Addr) bool {
    method CloneTo (line 46) | func (c *cachefileStore) CloneTo(store store) {}
    method FlushFakeIP (line 49) | func (c *cachefileStore) FlushFakeIP() error {
  function newCachefileStore (line 53) | func newCachefileStore(cache *cachefile.CacheFile, prefix netip.Prefix) ...

FILE: core/Clash.Meta/component/fakeip/memory.go
  type memoryStore (line 9) | type memoryStore struct
    method GetByHost (line 15) | func (m *memoryStore) GetByHost(host string) (netip.Addr, bool) {
    method PutByHost (line 26) | func (m *memoryStore) PutByHost(host string, ip netip.Addr) {
    method GetByIP (line 31) | func (m *memoryStore) GetByIP(ip netip.Addr) (string, bool) {
    method PutByIP (line 42) | func (m *memoryStore) PutByIP(ip netip.Addr, host string) {
    method DelByIP (line 47) | func (m *memoryStore) DelByIP(ip netip.Addr) {
    method Exist (line 55) | func (m *memoryStore) Exist(ip netip.Addr) bool {
    method CloneTo (line 61) | func (m *memoryStore) CloneTo(store store) {
    method FlushFakeIP (line 69) | func (m *memoryStore) FlushFakeIP() error {
  function newMemoryStore (line 75) | func newMemoryStore(size int) *memoryStore {

FILE: core/Clash.Meta/component/fakeip/pool.go
  constant offsetKey (line 15) | offsetKey = "key-offset-fake-ip"
  constant cycleKey (line 16) | cycleKey  = "key-cycle-fake-ip"
  type store (line 19) | type store interface
  type Pool (line 31) | type Pool struct
    method Lookup (line 43) | func (p *Pool) Lookup(host string) netip.Addr {
    method LookBack (line 59) | func (p *Pool) LookBack(ip netip.Addr) (string, bool) {
    method Exist (line 67) | func (p *Pool) Exist(ip netip.Addr) bool {
    method Gateway (line 75) | func (p *Pool) Gateway() netip.Addr {
    method Broadcast (line 80) | func (p *Pool) Broadcast() netip.Addr {
    method IPNet (line 85) | func (p *Pool) IPNet() netip.Prefix {
    method CloneFrom (line 90) | func (p *Pool) CloneFrom(o *Pool) {
    method get (line 94) | func (p *Pool) get(host string) netip.Addr {
    method FlushFakeIP (line 110) | func (p *Pool) FlushFakeIP() error {
    method StoreState (line 119) | func (p *Pool) StoreState() {
    method restoreState (line 128) | func (p *Pool) restoreState() {
  type Options (line 146) | type Options struct
  function New (line 159) | func New(options Options) (*Pool, error) {

FILE: core/Clash.Meta/component/fakeip/pool_test.go
  function createPools (line 16) | func createPools(options Options) ([]*Pool, string, error) {
  function createCachefileStore (line 29) | func createCachefileStore(options Options) (*Pool, string, error) {
  function TestPool_Basic (line 48) | func TestPool_Basic(t *testing.T) {
  function TestPool_BasicV6 (line 76) | func TestPool_BasicV6(t *testing.T) {
  function TestPool_Case_Insensitive (line 104) | func TestPool_Case_Insensitive(t *testing.T) {
  function TestPool_CycleUsed (line 125) | func TestPool_CycleUsed(t *testing.T) {
  function TestPool_MaxCacheSize (line 147) | func TestPool_MaxCacheSize(t *testing.T) {
  function TestPool_DoubleMapping (line 162) | func TestPool_DoubleMapping(t *testing.T) {
  function TestPool_Clone (line 192) | func TestPool_Clone(t *testing.T) {
  function TestPool_Error (line 215) | func TestPool_Error(t *testing.T) {
  function TestPool_FlushFileCache (line 225) | func TestPool_FlushFileCache(t *testing.T) {
  function TestPool_FlushMemoryCache (line 257) | func TestPool_FlushMemoryCache(t *testing.T) {

FILE: core/Clash.Meta/component/fakeip/skipper.go
  constant UseFakeIP (line 8) | UseFakeIP = "fake-ip"
  constant UseRealIP (line 9) | UseRealIP = "real-ip"
  type Skipper (line 12) | type Skipper struct
    method ShouldSkipped (line 19) | func (p *Skipper) ShouldSkipped(domain string) bool {
    method shouldSkipped (line 37) | func (p *Skipper) shouldSkipped(domain string) bool {

FILE: core/Clash.Meta/component/fakeip/skipper_test.go
  function TestSkipper_BlackList (line 12) | func TestSkipper_BlackList(t *testing.T) {
  function TestSkipper_WhiteList (line 24) | func TestSkipper_WhiteList(t *testing.T) {

FILE: core/Clash.Meta/component/generator/cmd.go
  function Main (line 14) | func Main(args []string) {

FILE: core/Clash.Meta/component/generator/x25519.go
  constant X25519KeySize (line 8) | X25519KeySize = 32
  function GenX25519PrivateKey (line 10) | func GenX25519PrivateKey() (*ecdh.PrivateKey, error) {

FILE: core/Clash.Meta/component/geodata/attr.go
  type AttributeList (line 9) | type AttributeList struct
    method Match (line 13) | func (al *AttributeList) Match(domain *router.Domain) bool {
    method IsEmpty (line 22) | func (al *AttributeList) IsEmpty() bool {
    method String (line 26) | func (al *AttributeList) String() string {
  function parseAttrs (line 34) | func parseAttrs(attrs []string) *AttributeList {
  type AttributeMatcher (line 46) | type AttributeMatcher interface
  type BooleanMatcher (line 50) | type BooleanMatcher
    method Match (line 52) | func (m BooleanMatcher) Match(domain *router.Domain) bool {

FILE: core/Clash.Meta/component/geodata/geodata.go
  type loader (line 10) | type loader struct
    method LoadGeoSite (line 14) | func (l *loader) LoadGeoSite(list string) ([]*router.Domain, error) {
    method LoadGeoIP (line 18) | func (l *loader) LoadGeoIP(country string) ([]*router.CIDR, error) {
  function RegisterGeoDataLoaderImplementationCreator (line 24) | func RegisterGeoDataLoaderImplementationCreator(name string, loader func...
  function getGeoDataLoaderImplementation (line 31) | func getGeoDataLoaderImplementation(name string) (LoaderImplementation, ...
  function GetGeoDataLoader (line 38) | func GetGeoDataLoader(name string) (Loader, error) {

FILE: core/Clash.Meta/component/geodata/geodataproto.go
  type LoaderImplementation (line 7) | type LoaderImplementation interface
  type Loader (line 14) | type Loader interface

FILE: core/Clash.Meta/component/geodata/init.go
  function GeoIpUrl (line 39) | func GeoIpUrl() string {
  function SetGeoIpUrl (line 43) | func SetGeoIpUrl(url string) {
  function MmdbUrl (line 47) | func MmdbUrl() string {
  function SetMmdbUrl (line 51) | func SetMmdbUrl(url string) {
  function GeoSiteUrl (line 55) | func GeoSiteUrl() string {
  function SetGeoSiteUrl (line 59) | func SetGeoSiteUrl(url string) {
  function ASNUrl (line 63) | func ASNUrl() string {
  function SetASNUrl (line 67) | func SetASNUrl(url string) {
  function downloadToPath (line 71) | func downloadToPath(url string, path string) (err error) {
  function InitGeoSite (line 90) | func InitGeoSite() error {
  function InitGeoIP (line 117) | func InitGeoIP() error {
  function InitASN (line 168) | func InitASN() error {
  function GeoIpEnable (line 195) | func GeoIpEnable() bool {
  function GeoSiteEnable (line 199) | func GeoSiteEnable() bool {
  function ASNEnable (line 203) | func ASNEnable() bool {

FILE: core/Clash.Meta/component/geodata/memconservative/cache.go
  type GeoIPCache (line 14) | type GeoIPCache
    method Has (line 16) | func (g GeoIPCache) Has(key string) bool {
    method Get (line 20) | func (g GeoIPCache) Get(key string) *router.GeoIP {
    method Set (line 27) | func (g GeoIPCache) Set(key string, value *router.GeoIP) {
    method Unmarshal (line 34) | func (g GeoIPCache) Unmarshal(filename, code string) (*router.GeoIP, e...
  type GeoSiteCache (line 79) | type GeoSiteCache
    method Has (line 81) | func (g GeoSiteCache) Has(key string) bool {
    method Get (line 85) | func (g GeoSiteCache) Get(key string) *router.GeoSite {
    method Set (line 92) | func (g GeoSiteCache) Set(key string, value *router.GeoSite) {
    method Unmarshal (line 99) | func (g GeoSiteCache) Unmarshal(filename, code string) (*router.GeoSit...

FILE: core/Clash.Meta/component/geodata/memconservative/decode.go
  function emitBytes (line 21) | func emitBytes(f io.ReadSeeker, code string) ([]byte, error) {
  function Decode (line 93) | func Decode(filename, code string) ([]byte, error) {

FILE: core/Clash.Meta/component/geodata/memconservative/memc.go
  type memConservativeLoader (line 12) | type memConservativeLoader struct
    method LoadIPByPath (line 17) | func (m *memConservativeLoader) LoadIPByPath(filename, country string)...
    method LoadIPByBytes (line 26) | func (m *memConservativeLoader) LoadIPByBytes(geoipBytes []byte, count...
    method LoadSiteByPath (line 30) | func (m *memConservativeLoader) LoadSiteByPath(filename, list string) ...
    method LoadSiteByBytes (line 39) | func (m *memConservativeLoader) LoadSiteByBytes(geositeBytes []byte, l...
  function newMemConservativeLoader (line 43) | func newMemConservativeLoader() geodata.LoaderImplementation {
  function init (line 47) | func init() {

FILE: core/Clash.Meta/component/geodata/router/condition.go
  function domainToMatcher (line 20) | func domainToMatcher(domain *Domain) (strmatcher.Matcher, error) {
  type DomainMatcher (line 34) | type DomainMatcher interface
  type succinctDomainMatcher (line 39) | type succinctDomainMatcher struct
    method ApplyDomain (line 45) | func (m *succinctDomainMatcher) ApplyDomain(domain string) bool {
    method Count (line 58) | func (m *succinctDomainMatcher) Count() int {
  function NewSuccinctMatcherGroup (line 62) | func NewSuccinctMatcherGroup(domains []*Domain) (DomainMatcher, error) {
  type v2rayDomainMatcher (line 93) | type v2rayDomainMatcher struct
    method ApplyDomain (line 117) | func (m *v2rayDomainMatcher) ApplyDomain(domain string) bool {
    method Count (line 121) | func (m *v2rayDomainMatcher) Count() int {
  function NewMphMatcherGroup (line 98) | func NewMphMatcherGroup(domains []*Domain) (DomainMatcher, error) {
  type notDomainMatcher (line 125) | type notDomainMatcher struct
    method ApplyDomain (line 129) | func (m notDomainMatcher) ApplyDomain(domain string) bool {
  function NewNotDomainMatcherGroup (line 133) | func NewNotDomainMatcherGroup(matcher DomainMatcher) DomainMatcher {
  type IPMatcher (line 137) | type IPMatcher interface
  type geoIPMatcher (line 142) | type geoIPMatcher struct
    method Match (line 148) | func (m *geoIPMatcher) Match(ip netip.Addr) bool {
    method Count (line 152) | func (m *geoIPMatcher) Count() int {
  function NewGeoIPMatcher (line 156) | func NewGeoIPMatcher(cidrList []*CIDR) (IPMatcher, error) {
  type notIPMatcher (line 179) | type notIPMatcher struct
    method Match (line 183) | func (m notIPMatcher) Match(ip netip.Addr) bool {
  function NewNotIpMatcherGroup (line 187) | func NewNotIpMatcherGroup(matcher IPMatcher) IPMatcher {

FILE: core/Clash.Meta/component/geodata/router/config.pb.go
  constant _ (line 18) | _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  constant _ (line 20) | _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  type Domain_Type (line 24) | type Domain_Type
    method Enum (line 53) | func (x Domain_Type) Enum() *Domain_Type {
    method String (line 59) | func (x Domain_Type) String() string {
    method Descriptor (line 63) | func (Domain_Type) Descriptor() protoreflect.EnumDescriptor {
    method Type (line 67) | func (Domain_Type) Type() protoreflect.EnumType {
    method Number (line 71) | func (x Domain_Type) Number() protoreflect.EnumNumber {
    method EnumDescriptor (line 76) | func (Domain_Type) EnumDescriptor() ([]byte, []int) {
  constant Domain_Plain (line 28) | Domain_Plain Domain_Type = 0
  constant Domain_Regex (line 30) | Domain_Regex Domain_Type = 1
  constant Domain_Domain (line 32) | Domain_Domain Domain_Type = 2
  constant Domain_Full (line 34) | Domain_Full Domain_Type = 3
  type Domain (line 81) | type Domain struct
    method Reset (line 94) | func (x *Domain) Reset() {
    method String (line 103) | func (x *Domain) String() string {
    method ProtoMessage (line 107) | func (*Domain) ProtoMessage() {}
    method ProtoReflect (line 109) | func (x *Domain) ProtoReflect() protoreflect.Message {
    method Descriptor (line 122) | func (*Domain) Descriptor() ([]byte, []int) {
    method GetType (line 126) | func (x *Domain) GetType() Domain_Type {
    method GetValue (line 133) | func (x *Domain) GetValue() string {
    method GetAttribute (line 140) | func (x *Domain) GetAttribute() []*Domain_Attribute {
  type CIDR (line 148) | type CIDR struct
    method Reset (line 159) | func (x *CIDR) Reset() {
    method String (line 168) | func (x *CIDR) String() string {
    method ProtoMessage (line 172) | func (*CIDR) ProtoMessage() {}
    method ProtoReflect (line 174) | func (x *CIDR) ProtoReflect() protoreflect.Message {
    method Descriptor (line 187) | func (*CIDR) Descriptor() ([]byte, []int) {
    method GetIp (line 191) | func (x *CIDR) GetIp() []byte {
    method GetPrefix (line 198) | func (x *CIDR) GetPrefix() uint32 {
  type GeoIP (line 205) | type GeoIP struct
    method Reset (line 215) | func (x *GeoIP) Reset() {
    method String (line 224) | func (x *GeoIP) String() string {
    method ProtoMessage (line 228) | func (*GeoIP) ProtoMessage() {}
    method ProtoReflect (line 230) | func (x *GeoIP) ProtoReflect() protoreflect.Message {
    method Descriptor (line 243) | func (*GeoIP) Descriptor() ([]byte, []int) {
    method GetCountryCode (line 247) | func (x *GeoIP) GetCountryCode() string {
    method GetCidr (line 254) | func (x *GeoIP) GetCidr() []*CIDR {
    method GetReverseMatch (line 261) | func (x *GeoIP) GetReverseMatch() bool {
  type GeoIPList (line 268) | type GeoIPList struct
    method Reset (line 276) | func (x *GeoIPList) Reset() {
    method String (line 285) | func (x *GeoIPList) String() string {
    method ProtoMessage (line 289) | func (*GeoIPList) ProtoMessage() {}
    method ProtoReflect (line 291) | func (x *GeoIPList) ProtoReflect() protoreflect.Message {
    method Descriptor (line 304) | func (*GeoIPList) Descriptor() ([]byte, []int) {
    method GetEntry (line 308) | func (x *GeoIPList) GetEntry() []*GeoIP {
  type GeoSite (line 315) | type GeoSite struct
    method Reset (line 324) | func (x *GeoSite) Reset() {
    method String (line 333) | func (x *GeoSite) String() string {
    method ProtoMessage (line 337) | func (*GeoSite) ProtoMessage() {}
    method ProtoReflect (line 339) | func (x *GeoSite) ProtoReflect() protoreflect.Message {
    method Descriptor (line 352) | func (*GeoSite) Descriptor() ([]byte, []int) {
    method GetCountryCode (line 356) | func (x *GeoSite) GetCountryCode() string {
    method GetDomain (line 363) | func (x *GeoSite) GetDomain() []*Domain {
  type GeoSiteList (line 370) | type GeoSiteList struct
    method Reset (line 378) | func (x *GeoSiteList) Reset() {
    method String (line 387) | func (x *GeoSiteList) String() string {
    method ProtoMessage (line 391) | func (*GeoSiteList) ProtoMessage() {}
    method ProtoReflect (line 393) | func (x *GeoSiteList) ProtoReflect() protoreflect.Message {
    method Descriptor (line 406) | func (*GeoSiteList) Descriptor() ([]byte, []int) {
    method GetEntry (line 410) | func (x *GeoSiteList) GetEntry() []*GeoSite {
  type Domain_Attribute (line 417) | type Domain_Attribute struct
    method Reset (line 429) | func (x *Domain_Attribute) Reset() {
    method String (line 438) | func (x *Domain_Attribute) String() string {
    method ProtoMessage (line 442) | func (*Domain_Attribute) ProtoMessage() {}
    method ProtoReflect (line 444) | func (x *Domain_Attribute) ProtoReflect() protoreflect.Message {
    method Descriptor (line 457) | func (*Domain_Attribute) Descriptor() ([]byte, []int) {
    method GetKey (line 461) | func (x *Domain_Attribute) GetKey() string {
    method GetTypedValue (line 468) | func (m *Domain_Attribute) GetTypedValue() isDomain_Attribute_TypedVal...
    method GetBoolValue (line 475) | func (x *Domain_Attribute) GetBoolValue() bool {
    method GetIntValue (line 482) | func (x *Domain_Attribute) GetIntValue() int64 {
  type isDomain_Attribute_TypedValue (line 489) | type isDomain_Attribute_TypedValue interface
  type Domain_Attribute_BoolValue (line 493) | type Domain_Attribute_BoolValue struct
    method isDomain_Attribute_TypedValue (line 501) | func (*Domain_Attribute_BoolValue) isDomain_Attribute_TypedValue() {}
  type Domain_Attribute_IntValue (line 497) | type Domain_Attribute_IntValue struct
    method isDomain_Attribute_TypedValue (line 503) | func (*Domain_Attribute_IntValue) isDomain_Attribute_TypedValue() {}
  function file_component_geodata_router_config_proto_rawDescGZIP (line 578) | func file_component_geodata_router_config_proto_rawDescGZIP() []byte {
  function init (line 611) | func init() { file_component_geodata_router_config_proto_init() }
  function file_component_geodata_router_config_proto_init (line 612) | func file_component_geodata_router_config_proto_init() {

FILE: core/Clash.Meta/component/geodata/standard/standard.go
  function ReadFile (line 16) | func ReadFile(path string) ([]byte, error) {
  function ReadAsset (line 28) | func ReadAsset(file string) ([]byte, error) {
  function loadIP (line 32) | func loadIP(geoipBytes []byte, country string) ([]*router.CIDR, error) {
  function loadSite (line 47) | func loadSite(geositeBytes []byte, list string) ([]*router.Domain, error) {
  type standardLoader (line 62) | type standardLoader struct
    method LoadSiteByPath (line 64) | func (d standardLoader) LoadSiteByPath(filename, list string) ([]*rout...
    method LoadSiteByBytes (line 72) | func (d standardLoader) LoadSiteByBytes(geositeBytes []byte, list stri...
    method LoadIPByPath (line 76) | func (d standardLoader) LoadIPByPath(filename, country string) ([]*rou...
    method LoadIPByBytes (line 84) | func (d standardLoader) LoadIPByBytes(geoipBytes []byte, country strin...
  function init (line 88) | func init() {

FILE: core/Clash.Meta/component/geodata/strmatcher/ac_automaton_matcher.go
  constant validCharCount (line 7) | validCharCount = 53
  type MatchType (line 9) | type MatchType struct
  constant TrieEdge (line 15) | TrieEdge bool = true
  constant FailEdge (line 16) | FailEdge bool = false
  type Edge (line 19) | type Edge struct
  type ACAutomaton (line 24) | type ACAutomaton struct
    method Add (line 135) | func (ac *ACAutomaton) Add(domain string, t Type) {
    method Build (line 192) | func (ac *ACAutomaton) Build() {
    method Match (line 221) | func (ac *ACAutomaton) Match(s string) bool {
  function newNode (line 31) | func newNode() [validCharCount]Edge {
  function NewACAutomaton (line 124) | func NewACAutomaton() *ACAutomaton {

FILE: core/Clash.Meta/component/geodata/strmatcher/matchers.go
  type fullMatcher (line 8) | type fullMatcher
    method Match (line 10) | func (m fullMatcher) Match(s string) bool {
    method String (line 14) | func (m fullMatcher) String() string {
  type substrMatcher (line 18) | type substrMatcher
    method Match (line 20) | func (m substrMatcher) Match(s string) bool {
    method String (line 24) | func (m substrMatcher) String() string {
  type domainMatcher (line 28) | type domainMatcher
    method Match (line 30) | func (m domainMatcher) Match(s string) bool {
    method String (line 38) | func (m domainMatcher) String() string {
  type regexMatcher (line 42) | type regexMatcher struct
    method Match (line 46) | func (m *regexMatcher) Match(s string) bool {
    method String (line 50) | func (m *regexMatcher) String() string {

FILE: core/Clash.Meta/component/geodata/strmatcher/mph_matcher.go
  constant PrimeRK (line 12) | PrimeRK = 16777619
  function RollingHash (line 15) | func RollingHash(s string) uint32 {
  type MphMatcherGroup (line 27) | type MphMatcherGroup struct
    method AddFullOrDomainPattern (line 39) | func (g *MphMatcherGroup) AddFullOrDomainPattern(pattern string, t Typ...
    method AddPattern (line 66) | func (g *MphMatcherGroup) AddPattern(pattern string, t Type) (uint32, ...
    method Build (line 92) | func (g *MphMatcherGroup) Build() {
    method Lookup (line 161) | func (g *MphMatcherGroup) Lookup(h uint32, s string) bool {
    method Match (line 170) | func (g *MphMatcherGroup) Match(pattern string) []uint32 {
  function NewMphMatcherGroup (line 51) | func NewMphMatcherGroup() *MphMatcherGroup {
  function nextPow2 (line 151) | func nextPow2(v int) int {
  type indexBucket (line 199) | type indexBucket struct
  type bySize (line 204) | type bySize
    method Len (line 206) | func (s bySize) Len() int           { return len(s) }
    method Less (line 207) | func (s bySize) Less(i, j int) bool { return len(s[i].vals) > len(s[j]...
    method Swap (line 208) | func (s bySize) Swap(i, j int)      { s[i], s[j] = s[j], s[i] }
  type stringStruct (line 210) | type stringStruct struct
  function strhashFallback (line 215) | func strhashFallback(a unsafe.Pointer, h uintptr) uintptr {
  constant m1 (line 222) | m1 = 16877499708836156737
  constant m2 (line 223) | m2 = 2820277070424839065
  constant m3 (line 224) | m3 = 9497967016996688599
  constant m4 (line 225) | m4 = 15839092249703872147
  function memhashFallback (line 230) | func memhashFallback(p unsafe.Pointer, seed, s uintptr) uintptr {
  function readUnaligned32 (line 288) | func readUnaligned32(p unsafe.Pointer) uint32 {
  function readUnaligned64 (line 293) | func readUnaligned64(p unsafe.Pointer) uint64 {

FILE: core/Clash.Meta/component/geodata/strmatcher/strmatcher.go
  type Matcher (line 8) | type Matcher interface
  type Type (line 15) | type Type
    method New (line 29) | func (t Type) New(pattern string) (Matcher, error) {
  constant Full (line 19) | Full Type = iota
  constant Substr (line 21) | Substr
  constant Domain (line 23) | Domain
  constant Regex (line 25) | Regex
  type IndexMatcher (line 52) | type IndexMatcher interface
  type matcherEntry (line 57) | type matcherEntry struct

FILE: core/Clash.Meta/component/geodata/utils.go
  function GeodataMode (line 21) | func GeodataMode() bool {
  function LoaderName (line 25) | func LoaderName() string {
  function SiteMatcherName (line 29) | func SiteMatcherName() string {
  function SetGeodataMode (line 33) | func SetGeodataMode(newGeodataMode bool) {
  function SetLoader (line 37) | func SetLoader(newLoader string) {
  function SetSiteMatcher (line 44) | func SetSiteMatcher(newMatcher string) {
  function Verify (line 53) | func Verify(name string) error {
  function LoadGeoSiteMatcher (line 69) | func LoadGeoSiteMatcher(countryCode string) (router.DomainMatcher, error) {
  function LoadGeoIPMatcher (line 158) | func LoadGeoIPMatcher(country string) (router.IPMatcher, error) {
  function ClearGeoSiteCache (line 195) | func ClearGeoSiteCache() {
  function ClearGeoIPCache (line 200) | func ClearGeoIPCache() {

FILE: core/Clash.Meta/component/http/http.go
  function UA (line 23) | func UA() string {
  function SetUA (line 27) | func SetUA(UA string) {
  function HttpRequest (line 31) | func HttpRequest(ctx context.Context, url, method string, header map[str...
  type Option (line 90) | type Option
  type option (line 92) | type option struct
  function WithSpecialProxy (line 97) | func WithSpecialProxy(name string) Option {
  function WithCAOption (line 103) | func WithCAOption(caOption ca.Option) Option {

FILE: core/Clash.Meta/component/iface/iface.go
  type Interface (line 15) | type Interface struct
    method PickIPv4Addr (line 191) | func (iface *Interface) PickIPv4Addr(destination netip.Addr) (netip.Pr...
    method PickIPv6Addr (line 197) | func (iface *Interface) PickIPv6Addr(destination netip.Addr) (netip.Pr...
    method pickIPAddr (line 203) | func (iface *Interface) pickIPAddr(destination netip.Addr, accept func...
  type ifaceCache (line 36) | type ifaceCache struct
  function ShouldLogIfaceError (line 44) | func ShouldLogIfaceError() bool {
  function getCache (line 68) | func getCache() (*ifaceCache, error) {
  function Interfaces (line 131) | func Interfaces() (map[string]*Interface, error) {
  function ResolveInterface (line 139) | func ResolveInterface(name string) (*Interface, error) {
  function ResolveInterfaceByAddr (line 156) | func ResolveInterfaceByAddr(addr netip.Addr) (*Interface, error) {
  function IsLocalIp (line 178) | func IsLocalIp(addr netip.Addr) (bool, error) {
  function FlushCache (line 187) | func FlushCache() {

FILE: core/Clash.Meta/component/keepalive/tcp_keepalive.go
  function SetKeepAliveIdle (line 20) | func SetKeepAliveIdle(t time.Duration) {
  function SetKeepAliveInterval (line 24) | func SetKeepAliveInterval(t time.Duration) {
  function KeepAliveIdle (line 28) | func KeepAliveIdle() time.Duration {
  function KeepAliveInterval (line 32) | func KeepAliveInterval() time.Duration {
  function SetDisableKeepAlive (line 36) | func SetDisableKeepAlive(disable bool) {
  function setDisableKeepAlive (line 44) | func setDisableKeepAlive(disable bool) {
  function DisableKeepAlive (line 49) | func DisableKeepAlive() bool {
  function SetNetDialer (line 53) | func SetNetDialer(dialer *net.Dialer) {
  function SetNetListenConfig (line 57) | func SetNetListenConfig(lc *net.ListenConfig) {
  function TCPKeepAlive (line 61) | func TCPKeepAlive(c net.Conn) {

FILE: core/Clash.Meta/component/keepalive/tcp_keepalive_go122.go
  type TCPConn (line 10) | type TCPConn interface
  function tcpKeepAlive (line 16) | func tcpKeepAlive(tcp TCPConn) {
  function setNetDialer (line 25) | func setNetDialer(dialer *net.Dialer) {
  function setNetListenConfig (line 33) | func setNetListenConfig(lc *net.ListenConfig) {

FILE: core/Clash.Meta/component/keepalive/tcp_keepalive_go123.go
  type TCPConn (line 7) | type TCPConn interface
  function keepAliveConfig (line 13) | func keepAliveConfig() net.KeepAliveConfig {
  function tcpKeepAlive (line 27) | func tcpKeepAlive(tcp TCPConn) {
  function setNetDialer (line 35) | func setNetDialer(dialer *net.Dialer) {
  function setNetListenConfig (line 44) | func setNetListenConfig(lc *net.ListenConfig) {

FILE: core/Clash.Meta/component/keepalive/tcp_keepalive_go123_unix.go
  function SupportTCPKeepAliveIdle (line 5) | func SupportTCPKeepAliveIdle() bool {
  function SupportTCPKeepAliveInterval (line 9) | func SupportTCPKeepAliveInterval() bool {
  function SupportTCPKeepAliveCount (line 13) | func SupportTCPKeepAliveCount() bool {

FILE: core/Clash.Meta/component/keepalive/tcp_keepalive_go123_windows.go
  function SupportTCPKeepAliveIdle (line 45) | func SupportTCPKeepAliveIdle() bool {
  function SupportTCPKeepAliveInterval (line 52) | func SupportTCPKeepAliveInterval() bool {
  function SupportTCPKeepAliveCount (line 60) | func SupportTCPKeepAliveCount() bool {

FILE: core/Clash.Meta/component/loopback/detector.go
  function init (line 19) | func init() {
  type Detector (line 27) | type Detector struct
    method NewConn (line 39) | func (l *Detector) NewConn(conn C.Conn) C.Conn {
    method NewPacketConn (line 57) | func (l *Detector) NewPacketConn(conn C.PacketConn) C.PacketConn {
    method CheckConn (line 76) | func (l *Detector) CheckConn(metadata *C.Metadata) error {
    method CheckPacketConn (line 90) | func (l *Detector) CheckPacketConn(metadata *C.Metadata) error {
  function NewDetector (line 32) | func NewDetector() *Detector {

FILE: core/Clash.Meta/component/memory/memory.go
  type MemoryInfoStat (line 13) | type MemoryInfoStat struct
  function PrettyByteSize (line 20) | func PrettyByteSize(b uint64) string {

FILE: core/Clash.Meta/component/memory/memory_darwin.go
  constant PROC_PIDTASKINFO (line 9) | PROC_PIDTASKINFO = 4
  type ProcTaskInfo (line 11) | type ProcTaskInfo struct
  function GetMemoryInfo (line 32) | func GetMemoryInfo(pid int32) (*MemoryInfoStat, error) {
  function syscall_syscall (line 53) | func syscall_syscall(fn, a1, a2, a3 uintptr) (r1, r2 uintptr, err syscal...
  function syscall_syscall6 (line 54) | func syscall_syscall6(fn, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2 uintpt...
  function syscall_syscall6X (line 55) | func syscall_syscall6X(fn, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2 uintp...
  function syscall_syscall9 (line 56) | func syscall_syscall9(fn, a1, a2, a3, a4, a5, a6, a7, a8, a9 uintptr) (r...
  function syscall_rawSyscall (line 57) | func syscall_rawSyscall(fn, a1, a2, a3 uintptr) (r1, r2 uintptr, err sys...
  function syscall_rawSyscall6 (line 58) | func syscall_rawSyscall6(fn, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2 uin...
  function syscall_syscallPtr (line 59) | func syscall_syscallPtr(fn, a1, a2, a3 uintptr) (r1, r2 uintptr, err sys...

FILE: core/Clash.Meta/component/memory/memory_falllback.go
  function GetMemoryInfo (line 5) | func GetMemoryInfo(pid int32) (*MemoryInfoStat, error) {

FILE: core/Clash.Meta/component/memory/memory_freebsd.go
  constant CTLKern (line 13) | CTLKern          = 1
  constant KernProc (line 14) | KernProc         = 14
  constant KernProcPID (line 15) | KernProcPID      = 1
  function CallSyscall (line 18) | func CallSyscall(mib []int32) ([]byte, uint64, error) {
  function parseKinfoProc (line 57) | func parseKinfoProc(buf []byte) (KinfoProc, error) {
  function getKProc (line 64) | func getKProc(pid int32) (*KinfoProc, error) {
  function GetMemoryInfo (line 82) | func GetMemoryInfo(pid int32) (*MemoryInfoStat, error) {

FILE: core/Clash.Meta/component/memory/memory_freebsd_386.go
  constant sizeOfKinfoProc (line 3) | sizeOfKinfoProc    = 0x300
  type Timeval (line 5) | type Timeval struct
  type Rusage (line 10) | type Rusage struct
  type KinfoProc (line 29) | type KinfoProc struct
  type Priority (line 114) | type Priority struct

FILE: core/Clash.Meta/component/memory/memory_freebsd_amd64.go
  constant sizeOfKinfoProc (line 3) | sizeOfKinfoProc = 0x440
  type Timeval (line 5) | type Timeval struct
  type Rusage (line 10) | type Rusage struct
  type KinfoProc (line 29) | type KinfoProc struct
  type Priority (line 120) | type Priority struct

FILE: core/Clash.Meta/component/memory/memory_freebsd_arm.go
  constant sizeOfKinfoProc (line 3) | sizeOfKinfoProc = 0x440
  type Timeval (line 5) | type Timeval struct
  type Rusage (line 10) | type Rusage struct
  type KinfoProc (line 29) | type KinfoProc struct
  type Priority (line 114) | type Priority struct

FILE: core/Clash.Meta/component/memory/memory_freebsd_arm64.go
  constant sizeOfKinfoProc (line 3) | sizeOfKinfoProc = 0x440
  type Timeval (line 5) | type Timeval struct
  type Rusage (line 10) | type Rusage struct
  type KinfoProc (line 29) | type KinfoProc struct
  type Priority (line 120) | type Priority struct

FILE: core/Clash.Meta/component/memory/memory_linux.go
  function GetMemoryInfo (line 12) | func GetMemoryInfo(pid int32) (*MemoryInfoStat, error) {

FILE: core/Clash.Meta/component/memory/memory_openbsd.go
  constant CTLKern (line 13) | CTLKern     = 1
  constant KernProc (line 14) | KernProc    = 14
  constant KernProcPID (line 15) | KernProcPID = 1
  function callKernProcSyscall (line 18) | func callKernProcSyscall(op int32, arg int32) ([]byte, uint64, error) {
  function parseKinfoProc (line 56) | func parseKinfoProc(buf []byte) (KinfoProc, error) {
  function getKProc (line 63) | func getKProc(pid int32) (*KinfoProc, error) {
  function GetMemoryInfo (line 79) | func GetMemoryInfo(pid int32) (*MemoryInfoStat, error) {

FILE: core/Clash.Meta/component/memory/memory_openbsd_386.go
  constant sizeOfKinfoProc (line 3) | sizeOfKinfoProc = 0x264
  type KinfoProc (line 5) | type KinfoProc struct

FILE: core/Clash.Meta/component/memory/memory_openbsd_amd64.go
  constant sizeOfKinfoProc (line 3) | sizeOfKinfoProc = 0x268
  type KinfoProc (line 5) | type KinfoProc struct

FILE: core/Clash.Meta/component/memory/memory_openbsd_arm.go
  constant sizeOfKinfoProc (line 3) | sizeOfKinfoProc = 0x264
  type KinfoProc (line 5) | type KinfoProc struct

FILE: core/Clash.Meta/component/memory/memory_openbsd_arm64.go
  constant sizeOfKinfoProc (line 3) | sizeOfKinfoProc = 0x270
  type KinfoProc (line 5) | type KinfoProc struct

FILE: core/Clash.Meta/component/memory/memory_openbsd_riscv64.go
  constant sizeOfKinfoProc (line 3) | sizeOfKinfoProc = 0x288
  type KinfoProc (line 5) | type KinfoProc struct

FILE: core/Clash.Meta/component/memory/memory_test.go
  function TestMemoryInfo (line 11) | func TestMemoryInfo(t *testing.T) {

FILE: core/Clash.Meta/component/memory/memory_windows.go
  constant processQueryInformation (line 15) | processQueryInformation = windows.PROCESS_QUERY_LIMITED_INFORMATION
  type PROCESS_MEMORY_COUNTERS (line 17) | type PROCESS_MEMORY_COUNTERS struct
  function getProcessMemoryInfo (line 30) | func getProcessMemoryInfo(h windows.Handle, mem *PROCESS_MEMORY_COUNTERS...
  function getMemoryInfo (line 42) | func getMemoryInfo(pid int32) (PROCESS_MEMORY_COUNTERS, error) {
  function GetMemoryInfo (line 56) | func GetMemoryInfo(pid int32) (*MemoryInfoStat, error) {

FILE: core/Clash.Meta/component/mmdb/mmdb.go
  constant typeMaxmind (line 16) | typeMaxmind databaseType = iota
  constant typeSing (line 17) | typeSing
  constant typeMetaV0 (line 18) | typeMetaV0
  function LoadFromBytes (line 28) | func LoadFromBytes(buffer []byte) {
  function Verify (line 46) | func Verify(path string) bool {
  function IPInstance (line 54) | func IPInstance() IPReader {
  function ASNInstance (line 76) | func ASNInstance() ASNReader {
  function ReloadIP (line 90) | func ReloadIP() {
  function ReloadASN (line 94) | func ReloadASN() {

FILE: core/Clash.Meta/component/mmdb/reader.go
  type geoip2Country (line 12) | type geoip2Country struct
  type IPReader (line 18) | type IPReader struct
    method LookupCode (line 37) | func (r IPReader) LookupCode(ipAddress net.IP) []string {
  type ASNReader (line 23) | type ASNReader struct
    method LookupASN (line 75) | func (r ASNReader) LookupASN(ip net.IP) (string, string) {
  type GeoLite2 (line 27) | type GeoLite2 struct
  type IPInfo (line 32) | type IPInfo struct

FILE: core/Clash.Meta/component/mptcp/mptcp_go120.go
  constant MultipathTCPAvailable (line 9) | MultipathTCPAvailable = false
  function SetNetDialer (line 11) | func SetNetDialer(dialer *net.Dialer, open bool) {
  function GetNetDialer (line 14) | func GetNetDialer(dialer *net.Dialer) bool {
  function SetNetListenConfig (line 18) | func SetNetListenConfig(listenConfig *net.ListenConfig, open bool) {
  function GetNetListenConfig (line 21) | func GetNetListenConfig(listenConfig *net.ListenConfig) bool {

FILE: core/Clash.Meta/component/mptcp/mptcp_go121.go
  constant MultipathTCPAvailable (line 7) | MultipathTCPAvailable = true
  function SetNetDialer (line 9) | func SetNetDialer(dialer *net.Dialer, open bool) {
  function GetNetDialer (line 13) | func GetNetDialer(dialer *net.Dialer) bool {
  function SetNetListenConfig (line 17) | func SetNetListenConfig(listenConfig *net.ListenConfig, open bool) {
  function GetNetListenConfig (line 21) | func GetNetListenConfig(listenConfig *net.ListenConfig) bool {

FILE: core/Clash.Meta/component/nat/proxy.go
  type writeBackProxy (line 10) | type writeBackProxy struct
    method WriteBack (line 14) | func (w *writeBackProxy) WriteBack(b []byte, addr net.Addr) (n int, er...
    method UpdateWriteBack (line 18) | func (w *writeBackProxy) UpdateWriteBack(wb C.WriteBack) {
  function NewWriteBackProxy (line 22) | func NewWriteBackProxy(wb C.WriteBack) C.WriteBackProxy {

FILE: core/Clash.Meta/component/nat/table.go
  type Table (line 11) | type Table struct
    method GetOrCreate (line 21) | func (t *Table) GetOrCreate(key string, maker func() C.PacketSender) (...
    method Delete (line 30) | func (t *Table) Delete(key string) {
    method GetForLocalConn (line 34) | func (t *Table) GetForLocalConn(lAddr, rAddr string) *net.UDPConn {
    method AddForLocalConn (line 46) | func (t *Table) AddForLocalConn(lAddr, rAddr string, conn *net.UDPConn...
    method RangeForLocalConn (line 55) | func (t *Table) RangeForLocalConn(lAddr string, f func(key string, val...
    method GetOrCreateLockForLocalConn (line 63) | func (t *Table) GetOrCreateLockForLocalConn(lAddr, key string) (*sync....
    method DeleteForLocalConn (line 72) | func (t *Table) DeleteForLocalConn(lAddr, key string) {
    method DeleteLockForLocalConn (line 80) | func (t *Table) DeleteLockForLocalConn(lAddr, key string) {
    method getEntry (line 88) | func (t *Table) getEntry(key string) (*entry, bool) {
  type entry (line 15) | type entry struct
  function makeLock (line 92) | func makeLock() *sync.Cond {
  function New (line 97) | func New() *Table {

FILE: core/Clash.Meta/component/pool/pool.go
  type Factory (line 9) | type Factory
  type entry (line 11) | type entry struct
  type Option (line 16) | type Option
  function WithEvict (line 19) | func WithEvict[T any](cb func(T)) Option[T] {
  function WithAge (line 26) | func WithAge[T any](maxAge int64) Option[T] {
  function WithSize (line 33) | func WithSize[T any](maxSize int) Option[T] {
  type Pool (line 40) | type Pool struct
  type pool (line 44) | type pool struct
  method GetContext (line 51) | func (p *pool[T]) GetContext(ctx context.Context) (T, error) {
  method Get (line 71) | func (p *pool[T]) Get() (T, error) {
  method Put (line 75) | func (p *pool[T]) Put(item T) {
  function recycle (line 93) | func recycle[T any](p *Pool[T]) {
  function New (line 101) | func New[T any](factory Factory[T], options ...Option[T]) *Pool[T] {

FILE: core/Clash.Meta/component/pool/pool_test.go
  function lg (line 11) | func lg() Factory[int] {
  function TestPool_Basic (line 19) | func TestPool_Basic(t *testing.T) {
  function TestPool_MaxSize (line 32) | func TestPool_MaxSize(t *testing.T) {
  function TestPool_MaxAge (line 59) | func TestPool_MaxAge(t *testing.T) {

FILE: core/Clash.Meta/component/power/event.go
  type Type (line 3) | type Type
    method String (line 11) | func (t Type) String() string {
  constant SUSPEND (line 6) | SUSPEND Type = iota
  constant RESUME (line 7) | RESUME
  constant RESUMEAUTOMATIC (line 8) | RESUMEAUTOMATIC

FILE: core/Clash.Meta/component/power/event_other.go
  function NewEventListener (line 7) | func NewEventListener(cb func(Type)) (func(), error) {

FILE: core/Clash.Meta/component/power/event_windows.go
  function NewEventListener (line 18) | func NewEventListener(cb func(Type)) (func(), error) {

FILE: core/Clash.Meta/component/process/find_process_mode.go
  constant FindProcessStrict (line 9) | FindProcessStrict FindProcessMode = iota
  constant FindProcessAlways (line 10) | FindProcessAlways
  constant FindProcessOff (line 11) | FindProcessOff
  type FindProcessMode (line 22) | type FindProcessMode
    method UnmarshalText (line 25) | func (m *FindProcessMode) UnmarshalText(data []byte) error {
    method Set (line 29) | func (m *FindProcessMode) Set(value string) error {
    method MarshalText (line 39) | func (m FindProcessMode) MarshalText() ([]byte, error) {
    method String (line 43) | func (m FindProcessMode) String() string {

FILE: core/Clash.Meta/component/process/process.go
  constant TCP (line 17) | TCP = "tcp"
  constant UDP (line 18) | UDP = "udp"
  function FindProcessName (line 21) | func FindProcessName(network string, srcIP netip.Addr, srcPort int) (uin...
  type PackageNameResolver (line 27) | type PackageNameResolver
  function FindPackageName (line 33) | func FindPackageName(metadata *C.Metadata) (string, error) {

FILE: core/Clash.Meta/component/process/process_darwin.go
  constant procpidpathinfo (line 15) | procpidpathinfo     = 0xb
  constant procpidpathinfosize (line 16) | procpidpathinfosize = 1024
  constant proccallnumpidinfo (line 17) | proccallnumpidinfo  = 0x2
  function findProcessName (line 36) | func findProcessName(network string, ip netip.Addr, port int) (uint32, s...
  function getExecPathFromPID (line 112) | func getExecPathFromPID(pid uint32) (string, error) {
  function readNativeUint32 (line 129) | func readNativeUint32(b []byte) uint32 {

FILE: core/Clash.Meta/component/process/process_freebsd_amd64.go
  function findProcessName (line 23) | func findProcessName(network string, ip netip.Addr, srcPort int) (uint32...
  function getExecPathFromPID (line 62) | func getExecPathFromPID(pid uint32) (string, error) {
  function readNativeUint32 (line 83) | func readNativeUint32(b []byte) uint32 {
  type searcher (line 87) | type searcher struct
    method Search (line 106) | func (s *searcher) Search(buf []byte, ip netip.Addr, port uint16, isTC...
    method searchSocketPid (line 158) | func (s *searcher) searchSocketPid(socket uint64) (uint32, error) {
  function newSearcher (line 180) | func newSearcher(major int) *searcher {
  function initSearcher (line 220) | func initSearcher() error {

FILE: core/Clash.Meta/component/process/process_linux.go
  constant SOCK_DIAG_BY_FAMILY (line 25) | SOCK_DIAG_BY_FAMILY  = 20
  constant inetDiagRequestSize (line 26) | inetDiagRequestSize  = int(unsafe.Sizeof(inetDiagRequest{}))
  constant inetDiagResponseSize (line 27) | inetDiagResponseSize = int(unsafe.Sizeof(inetDiagResponse{}))
  type inetDiagRequest (line 30) | type inetDiagRequest struct
  type inetDiagResponse (line 45) | type inetDiagResponse struct
  function findProcessName (line 65) | func findProcessName(network string, ip netip.Addr, srcPort int) (uint32...
  function resolveSocketByNetlink (line 9
Condensed preview — 1770 files, each showing path, character count, and a content snippet. Download the .json file or copy for the full structured content (8,669K chars).
[
  {
    "path": ".github/ISSUE_TEMPLATE/bug_report.yml",
    "chars": 1364,
    "preview": "name: 🐞 问题反馈 / Bug Report\ndescription: 反馈你遇到的问题 / Report an issue\ntitle: \"[Bug]: \"\nlabels: [\"bug\"]\nbody:\n  - type: markd"
  },
  {
    "path": ".github/ISSUE_TEMPLATE/config.yml",
    "chars": 140,
    "preview": "contact_links:\n  - name: 💬 交流与讨论 / Channel & Chat\n    url: https://t.me/appshub_chat\n    about: 访问我们的 Telegram 讨论组 / Joi"
  },
  {
    "path": ".github/ISSUE_TEMPLATE/feature_request.yml",
    "chars": 1070,
    "preview": "name: ✨ 功能请求 / Feature Request\ndescription: 提交一个新的功能建议 / Propose a new feature\ntitle: \"[Feature]: \"\nlabels: [\"enhancemen"
  },
  {
    "path": ".github/release_template.md",
    "chars": 5437,
    "preview": "# Bettbox 正式版本发布\n<div align=\"left\">\n\n### ✈️ Telegram 社区交流\n\n</div>\n\n<div align=\"left\">\n\n[![Telegram Group](https://img.sh"
  },
  {
    "path": ".github/release_template_pre.md",
    "chars": 5733,
    "preview": "# Bettbox 预览版本发布\n**注意:预览版本通常包含最新的功能以及不稳定性,如遇问题请提交issue[[反馈]](https://github.com/appshubcc/Bettbox/issues/new?template=bu"
  },
  {
    "path": ".github/workflows/build.yaml",
    "chars": 6074,
    "preview": "name: build\n\non:\n  push:\n    tags:\n      - 'v*'\n\nenv:\n  IS_STABLE: ${{ !contains(github.ref, '-') }}\n  IS_PRERELEASE: ${"
  },
  {
    "path": ".gitignore",
    "chars": 958,
    "preview": "# Miscellaneous\n*.md\n!.github/release_template.md\n!.github/release_template_pre.md\n*.class\n*.log\n*.pyc\n*.swp\n.DS_Store\n."
  },
  {
    "path": ".metadata",
    "chars": 1668,
    "preview": "# This file tracks properties of this Flutter project.\n# Used by Flutter tool to assess capabilities and perform upgrade"
  },
  {
    "path": "LICENSE",
    "chars": 35149,
    "preview": "                    GNU GENERAL PUBLIC LICENSE\n                       Version 3, 29 June 2007\n\n Copyright (C) 2007 Free "
  },
  {
    "path": "Makefile",
    "chars": 284,
    "preview": "android_arm64:\n\tdart ./setup.dart android --arch arm64\nmacos_arm64:\n\tdart ./setup.dart macos --arch arm64\nandroid_app:\n\t"
  },
  {
    "path": "analysis_options.yaml",
    "chars": 256,
    "preview": "include: package:flutter_lints/flutter.yaml\nanalyzer:\n  exclude:\n    - lib/l10n/intl/**\n    - lib/clash/generated/**\n   "
  },
  {
    "path": "android/.gitignore",
    "chars": 294,
    "preview": "gradle-wrapper.jar\n/.gradle\n/gradle/\n/captures/\n/gradlew\n/gradlew.bat\n/local.properties\nGeneratedPluginRegistrant.java\n\n"
  },
  {
    "path": "android/app/build.gradle.kts",
    "chars": 2396,
    "preview": "import java.util.Properties\n\nplugins {\n    id(\"com.android.application\")\n    id(\"kotlin-android\")\n    id(\"dev.flutter.fl"
  },
  {
    "path": "android/app/proguard-rules.pro",
    "chars": 48,
    "preview": "\n-keep class com.appshub.bettbox.models.**{ *; }"
  },
  {
    "path": "android/app/src/debug/AndroidManifest.xml",
    "chars": 712,
    "preview": "<manifest xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    xmlns:tools=\"http://schemas.android.com/tools\">"
  },
  {
    "path": "android/app/src/main/AndroidManifest.xml",
    "chars": 7789,
    "preview": "<manifest xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    xmlns:tools=\"http://schemas.android.com/tools\">"
  },
  {
    "path": "android/app/src/main/kotlin/com/appshub/bettbox/BettboxApplication.kt",
    "chars": 377,
    "preview": "package com.appshub.bettbox\n\nimport android.app.Application\nimport android.content.Context\n\nclass BettboxApplication : A"
  },
  {
    "path": "android/app/src/main/kotlin/com/appshub/bettbox/FilesProvider.kt",
    "chars": 3196,
    "preview": "package com.appshub.bettbox\n\nimport android.database.Cursor\nimport android.database.MatrixCursor\nimport android.os.Cance"
  },
  {
    "path": "android/app/src/main/kotlin/com/appshub/bettbox/GlobalState.kt",
    "chars": 6695,
    "preview": "package com.appshub.bettbox\n\nimport android.os.SystemClock\nimport com.appshub.bettbox.plugins.AppPlugin\nimport com.appsh"
  },
  {
    "path": "android/app/src/main/kotlin/com/appshub/bettbox/MainActivity.kt",
    "chars": 1749,
    "preview": "package com.appshub.bettbox\n\nimport android.content.Context\nimport com.appshub.bettbox.plugins.AppPlugin\nimport com.apps"
  },
  {
    "path": "android/app/src/main/kotlin/com/appshub/bettbox/TempActivity.kt",
    "chars": 528,
    "preview": "package com.appshub.bettbox\n\nimport android.app.Activity\nimport android.os.Bundle\nimport com.appshub.bettbox.extensions."
  },
  {
    "path": "android/app/src/main/kotlin/com/appshub/bettbox/extensions/Ext.kt",
    "chars": 5585,
    "preview": "package com.appshub.bettbox.extensions\n\nimport android.app.PendingIntent\nimport android.content.Context\nimport android.c"
  },
  {
    "path": "android/app/src/main/kotlin/com/appshub/bettbox/models/Package.kt",
    "chars": 192,
    "preview": "package com.appshub.bettbox.models\n\ndata class Package(\n    val packageName: String,\n    val label: String,\n    val syst"
  },
  {
    "path": "android/app/src/main/kotlin/com/appshub/bettbox/models/Process.kt",
    "chars": 288,
    "preview": "package com.appshub.bettbox.models\n\ndata class Process(\n    val id: String,\n    val metadata: Metadata,\n)\n\ndata class Me"
  },
  {
    "path": "android/app/src/main/kotlin/com/appshub/bettbox/models/Props.kt",
    "chars": 872,
    "preview": "package com.appshub.bettbox.models\n\nimport java.net.InetAddress\n\nenum class AccessControlMode {\n    acceptSelected, reje"
  },
  {
    "path": "android/app/src/main/kotlin/com/appshub/bettbox/modules/SuspendModule.kt",
    "chars": 2888,
    "preview": "package com.appshub.bettbox.modules\n\nimport android.content.BroadcastReceiver\nimport android.content.Context\nimport andr"
  },
  {
    "path": "android/app/src/main/kotlin/com/appshub/bettbox/plugins/AppPlugin.kt",
    "chars": 26735,
    "preview": "package com.appshub.bettbox.plugins\n\nimport android.Manifest\nimport android.app.Activity\nimport android.app.ActivityMana"
  },
  {
    "path": "android/app/src/main/kotlin/com/appshub/bettbox/plugins/ServicePlugin.kt",
    "chars": 4590,
    "preview": "package com.appshub.bettbox.plugins\n\nimport android.os.Handler\nimport android.os.Looper\nimport android.util.Log\nimport c"
  },
  {
    "path": "android/app/src/main/kotlin/com/appshub/bettbox/plugins/TilePlugin.kt",
    "chars": 1828,
    "preview": "package com.appshub.bettbox.plugins\n\nimport android.os.Handler\nimport android.os.Looper\nimport android.util.Log\nimport i"
  },
  {
    "path": "android/app/src/main/kotlin/com/appshub/bettbox/plugins/VpnPlugin.kt",
    "chars": 24757,
    "preview": "package com.appshub.bettbox.plugins\n\nimport android.content.ComponentName\nimport android.content.Context\nimport android."
  },
  {
    "path": "android/app/src/main/kotlin/com/appshub/bettbox/receivers/BootReceiver.kt",
    "chars": 1199,
    "preview": "package com.appshub.bettbox.receivers\n\nimport android.content.BroadcastReceiver\nimport android.content.Context\nimport an"
  },
  {
    "path": "android/app/src/main/kotlin/com/appshub/bettbox/receivers/PackageReplacedReceiver.kt",
    "chars": 885,
    "preview": "package com.appshub.bettbox.receivers\n\nimport android.content.BroadcastReceiver\nimport android.content.Context\nimport an"
  },
  {
    "path": "android/app/src/main/kotlin/com/appshub/bettbox/services/BaseServiceInterface.kt",
    "chars": 4713,
    "preview": "package com.appshub.bettbox.services\n\nimport android.annotation.SuppressLint\nimport android.app.Notification\nimport andr"
  },
  {
    "path": "android/app/src/main/kotlin/com/appshub/bettbox/services/BettboxService.kt",
    "chars": 3120,
    "preview": "package com.appshub.bettbox.services\n\nimport android.annotation.SuppressLint\nimport android.app.Service\nimport android.c"
  },
  {
    "path": "android/app/src/main/kotlin/com/appshub/bettbox/services/BettboxTileService.kt",
    "chars": 1943,
    "preview": "package com.appshub.bettbox.services\n\nimport android.os.Build\nimport android.service.quicksettings.Tile\nimport android.s"
  },
  {
    "path": "android/app/src/main/kotlin/com/appshub/bettbox/services/BettboxVpnService.kt",
    "chars": 7177,
    "preview": "package com.appshub.bettbox.services\n\nimport android.annotation.SuppressLint\nimport android.content.Intent\nimport androi"
  },
  {
    "path": "android/app/src/main/res/drawable/ic_launcher_background_dark.xml",
    "chars": 328,
    "preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<vector xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    android:wi"
  },
  {
    "path": "android/app/src/main/res/drawable/ic_launcher_background_light.xml",
    "chars": 328,
    "preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<vector xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    android:wi"
  },
  {
    "path": "android/app/src/main/res/drawable/ic_launcher_foreground_dark.xml",
    "chars": 1186,
    "preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<vector xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    android:wi"
  },
  {
    "path": "android/app/src/main/res/drawable/ic_launcher_foreground_light.xml",
    "chars": 1186,
    "preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<vector xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    android:wi"
  },
  {
    "path": "android/app/src/main/res/drawable/ic_notification_dark.xml",
    "chars": 966,
    "preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<!-- Dark icon notification -->\n<vector xmlns:android=\"http://schemas.android.com"
  },
  {
    "path": "android/app/src/main/res/drawable/ic_notification_light.xml",
    "chars": 967,
    "preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<!-- Light icon notification -->\n<vector xmlns:android=\"http://schemas.android.co"
  },
  {
    "path": "android/app/src/main/res/drawable/ic_tile.xml",
    "chars": 181,
    "preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<!-- Light mode icon -->\n<bitmap xmlns:android=\"http://schemas.android.com/apk/re"
  },
  {
    "path": "android/app/src/main/res/drawable/launch_background.xml",
    "chars": 365,
    "preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<layer-list xmlns:android=\"http://schemas.android.com/apk/res/android\">\n    <item"
  },
  {
    "path": "android/app/src/main/res/drawable/tv_banner.xml",
    "chars": 1431,
    "preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<vector xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    android:wi"
  },
  {
    "path": "android/app/src/main/res/drawable-night/ic_tile.xml",
    "chars": 180,
    "preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<!-- Dark mode icon -->\n<bitmap xmlns:android=\"http://schemas.android.com/apk/res"
  },
  {
    "path": "android/app/src/main/res/drawable-night/launch_background.xml",
    "chars": 364,
    "preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<layer-list xmlns:android=\"http://schemas.android.com/apk/res/android\">\n    <item"
  },
  {
    "path": "android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml",
    "chars": 358,
    "preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<adaptive-icon xmlns:android=\"http://schemas.android.com/apk/res/android\">\n    <b"
  },
  {
    "path": "android/app/src/main/res/mipmap-anydpi-v26/ic_launcher_light.xml",
    "chars": 362,
    "preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<adaptive-icon xmlns:android=\"http://schemas.android.com/apk/res/android\">\n    <b"
  },
  {
    "path": "android/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml",
    "chars": 359,
    "preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<adaptive-icon xmlns:android=\"http://schemas.android.com/apk/res/android\">\n    <b"
  },
  {
    "path": "android/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round_light.xml",
    "chars": 362,
    "preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<adaptive-icon xmlns:android=\"http://schemas.android.com/apk/res/android\">\n    <b"
  },
  {
    "path": "android/app/src/main/res/values/strings.xml",
    "chars": 320,
    "preview": "<resources>\n    <string name=\"bett_box\">Bettbox</string>\n    <string name=\"core_connected\">Connected</string>\n    <strin"
  },
  {
    "path": "android/app/src/main/res/values/styles.xml",
    "chars": 1160,
    "preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<resources>\n    <style name=\"LaunchTheme\" parent=\"@android:style/Theme.Light.NoTi"
  },
  {
    "path": "android/app/src/main/res/values-night/styles.xml",
    "chars": 925,
    "preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<resources xmlns:tools=\"http://schemas.android.com/tools\">\n    <style name=\"Launc"
  },
  {
    "path": "android/app/src/main/res/values-night-v27/styles.xml",
    "chars": 172,
    "preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<resources xmlns:tools=\"http://schemas.android.com/tools\">\n    <!-- LaunchTheme r"
  },
  {
    "path": "android/app/src/main/res/values-ru/strings.xml",
    "chars": 318,
    "preview": "<resources>\n    <string name=\"bett_box\">Bettbox</string>\n    <string name=\"core_connected\">Подключено</string>\n    <stri"
  },
  {
    "path": "android/app/src/main/res/values-v27/styles.xml",
    "chars": 172,
    "preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<resources xmlns:tools=\"http://schemas.android.com/tools\">\n    <!-- LaunchTheme r"
  },
  {
    "path": "android/app/src/main/res/values-zh-rCN/strings.xml",
    "chars": 284,
    "preview": "<resources>\n    <string name=\"bett_box\">Bettbox</string>\n    <string name=\"core_connected\">已连接</string>\n    <string name"
  },
  {
    "path": "android/app/src/main/res/values-zh-rTW/strings.xml",
    "chars": 284,
    "preview": "<resources>\n    <string name=\"bett_box\">Bettbox</string>\n    <string name=\"core_connected\">已連線</string>\n    <string name"
  },
  {
    "path": "android/app/src/main/res/xml/file_paths.xml",
    "chars": 74,
    "preview": "<paths>\n    <files-path\n        name=\"files\"\n        path=\".\"/>\n</paths>\n\n"
  },
  {
    "path": "android/app/src/main/res/xml/network_security_config.xml",
    "chars": 543,
    "preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<network-security-config xmlns:tools=\"http://schemas.android.com/tools\"\n    tools"
  },
  {
    "path": "android/app/src/profile/AndroidManifest.xml",
    "chars": 378,
    "preview": "<manifest xmlns:android=\"http://schemas.android.com/apk/res/android\">\n    <!-- The INTERNET permission is required for d"
  },
  {
    "path": "android/build.gradle.kts",
    "chars": 515,
    "preview": "\nallprojects {\n    repositories {\n        google()\n        mavenCentral()\n    }\n}\n\nval newBuildDir: Directory = rootProj"
  },
  {
    "path": "android/core/.gitignore",
    "chars": 6,
    "preview": "/build"
  },
  {
    "path": "android/core/build.gradle.kts",
    "chars": 1263,
    "preview": "plugins {\n    id(\"com.android.library\")\n    id(\"org.jetbrains.kotlin.android\")\n}\n\nandroid {\n    namespace = \"com.appshub"
  },
  {
    "path": "android/core/proguard-rules.pro",
    "chars": 750,
    "preview": "# Add project specific ProGuard rules here.\n# You can control the set of applied configuration files using the\n# proguar"
  },
  {
    "path": "android/core/src/main/AndroidManifest.xml",
    "chars": 121,
    "preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<manifest xmlns:android=\"http://schemas.android.com/apk/res/android\">\n\n</manifest"
  },
  {
    "path": "android/core/src/main/cpp/CMakeLists.txt",
    "chars": 1547,
    "preview": "cmake_minimum_required(VERSION 3.22.1)\n\nproject(\"core\")\n\nmessage(\"CMAKE_SOURCE_DIR ${CMAKE_SOURCE_DIR}\")\n\nmessage(\"CMAKE"
  },
  {
    "path": "android/core/src/main/cpp/core.cpp",
    "chars": 2833,
    "preview": "#ifdef LIBCLASH\n#include <jni.h>\n#include <cstring>\n#include \"jni_helper.h\"\n#include \"libclash.h\"\n\nextern \"C\"\nJNIEXPORT "
  },
  {
    "path": "android/core/src/main/cpp/jni_helper.cpp",
    "chars": 1998,
    "preview": "#include \"jni_helper.h\"\n\n#include <cstdlib>\n#include <malloc.h>\n#include <cstring>\n\nstatic JavaVM *global_vm;\n\nstatic jc"
  },
  {
    "path": "android/core/src/main/cpp/jni_helper.h",
    "chars": 1065,
    "preview": "#pragma once\n\n#include <jni.h>\n\nstruct scoped_jni {\n    JNIEnv *env;\n    int require_release;\n};\n\nextern void initialize"
  },
  {
    "path": "android/core/src/main/java/com/appshub/bettbox/core/Core.kt",
    "chars": 2071,
    "preview": "package com.appshub.bettbox.core\n\nimport android.util.Log\nimport java.net.InetSocketAddress\n\nobject Core {\n\n    private "
  },
  {
    "path": "android/core/src/main/java/com/appshub/bettbox/core/TunInterface.kt",
    "chars": 213,
    "preview": "package com.appshub.bettbox.core\n\nimport androidx.annotation.Keep\n\n@Keep\ninterface TunInterface {\n    fun protect(fd: In"
  },
  {
    "path": "android/gradle.properties",
    "chars": 308,
    "preview": "org.gradle.jvmargs=-Xmx4G -XX:MaxMetaspaceSize=1g -XX:+HeapDumpOnOutOfMemoryError\norg.gradle.daemon=true\norg.gradle.para"
  },
  {
    "path": "android/settings.gradle.kts",
    "chars": 755,
    "preview": "pluginManagement {\n    val flutterSdkPath = run {\n        val properties = java.util.Properties()\n        file(\"local.pr"
  },
  {
    "path": "arb/intl_en.arb",
    "chars": 23892,
    "preview": "{\n  \"rule\": \"Rule\",\n  \"global\": \"Global\",\n  \"direct\": \"Direct\",\n  \"dashboard\": \"Dashboard\",\n  \"proxies\": \"Proxies\",\n  \"p"
  },
  {
    "path": "arb/intl_ru.arb",
    "chars": 26320,
    "preview": "{\n  \"rule\": \"Правила\",\n  \"global\": \"Глобально\",\n  \"direct\": \"Напрямую\",\n  \"dashboard\": \"Главная\",\n  \"proxies\": \"Прокси\","
  },
  {
    "path": "arb/intl_zh_CN.arb",
    "chars": 17658,
    "preview": "{\n  \"rule\": \"规则\",\n  \"global\": \"全局\",\n  \"direct\": \"直连\",\n  \"dashboard\": \"首页\",\n  \"proxies\": \"代理\",\n  \"profile\": \"配置\",\n  \"prof"
  },
  {
    "path": "arb/intl_zh_TC.arb",
    "chars": 17917,
    "preview": "{\n  \"rule\": \"規則\",\n  \"global\": \"全域\",\n  \"direct\": \"直連\",\n  \"dashboard\": \"首頁\",\n  \"proxies\": \"代理\",\n  \"profile\": \"配置\",\n  \"prof"
  },
  {
    "path": "build.yaml",
    "chars": 403,
    "preview": "targets:\n  $default:\n    builders:\n      source_gen:combining_builder:\n        options:\n          build_extensions:\n    "
  },
  {
    "path": "core/Clash.Meta/.github/ISSUE_TEMPLATE/bug_report.yml",
    "chars": 2385,
    "preview": "name: Bug report\ndescription: Create a report to help us improve\ntitle: \"[Bug] \"\nlabels: [\"bug\"]\nbody:\n  - type: checkbo"
  },
  {
    "path": "core/Clash.Meta/.github/ISSUE_TEMPLATE/config.yml",
    "chars": 197,
    "preview": "blank_issues_enabled: false\ncontact_links:\n  - name: mihomo Community Support\n    url: https://github.com/MetaCubeX/miho"
  },
  {
    "path": "core/Clash.Meta/.github/ISSUE_TEMPLATE/feature_request.yml",
    "chars": 1046,
    "preview": "name: Feature request\ndescription: Suggest an idea for this project\ntitle: \"[Feature] \"\nlabels: [\"enhancement\"]\nbody:\n  "
  },
  {
    "path": "core/Clash.Meta/.github/genReleaseNote.sh",
    "chars": 952,
    "preview": "#!/bin/bash\n\nwhile getopts \"v:\" opt; do\n  case $opt in\n    v)\n      version_range=$OPTARG\n      ;;\n    \\?)\n      echo \"I"
  },
  {
    "path": "core/Clash.Meta/.github/patch/go1.21.patch",
    "chars": 9246,
    "preview": "Subject: [PATCH] Revert \"[release-branch.go1.21] crypto/rand,runtime: switch RtlGenRandom for ProcessPrng\"\n---\nIndex: sr"
  },
  {
    "path": "core/Clash.Meta/.github/patch/go1.22.patch",
    "chars": 26158,
    "preview": "Subject: [PATCH] Revert \"runtime: always use LoadLibraryEx to load system libraries\"\nRevert \"syscall: remove Windows 7 c"
  },
  {
    "path": "core/Clash.Meta/.github/patch/go1.23.patch",
    "chars": 26174,
    "preview": "Subject: [PATCH] Revert \"runtime: always use LoadLibraryEx to load system libraries\"\nRevert \"syscall: remove Windows 7 c"
  },
  {
    "path": "core/Clash.Meta/.github/patch/go1.24.patch",
    "chars": 26506,
    "preview": "Subject: [PATCH] Revert \"runtime: always use LoadLibraryEx to load system libraries\"\nRevert \"syscall: remove Windows 7 c"
  },
  {
    "path": "core/Clash.Meta/.github/patch/go1.25.patch",
    "chars": 34322,
    "preview": "Subject: [PATCH] Revert \"os: remove 5ms sleep on Windows in (*Process).Wait\"\nFix os.RemoveAll not working on Windows7\nRe"
  },
  {
    "path": "core/Clash.Meta/.github/patch/go1.26.patch",
    "chars": 33791,
    "preview": "Subject: [PATCH] Revert \"os: remove 5ms sleep on Windows in (*Process).Wait\"\nFix os.RemoveAll not working on Windows7\nRe"
  },
  {
    "path": "core/Clash.Meta/.github/patch/issue77731.patch",
    "chars": 950,
    "preview": "From b8f897a9da7a82ad8584a22284ceac61262fcb7e Mon Sep 17 00:00:00 2001\nFrom: Jorropo <jorropo.pgm@gmail.com>\nDate: Sun, "
  },
  {
    "path": "core/Clash.Meta/.github/patch/issue77930.patch",
    "chars": 11735,
    "preview": "From f4de14a515221e27c0d79446b423849a6546e3a6 Mon Sep 17 00:00:00 2001\nFrom: Brad Fitzpatrick <bradfitz@golang.org>\nDate"
  },
  {
    "path": "core/Clash.Meta/.github/patch/issue77975.patch",
    "chars": 6334,
    "preview": "From 1a44be4cecdc742ac6cce9825f9ffc19857c99f3 Mon Sep 17 00:00:00 2001\nFrom: database64128 <free122448@hotmail.com>\nDate"
  },
  {
    "path": "core/Clash.Meta/.github/release/.fpm_systemd",
    "chars": 556,
    "preview": "-s dir\n--name mihomo\n--category net\n--license GPL-3.0-or-later\n--description \"The universal proxy platform.\"\n--url \"http"
  },
  {
    "path": "core/Clash.Meta/.github/release/config.yaml",
    "chars": 185,
    "preview": "mixed-port: 7890\n\ndns:\n  enable: true\n  ipv6: true\n  enhanced-mode: fake-ip\n  fake-ip-filter:\n    - \"*\"\n    - \"+.lan\"\n  "
  },
  {
    "path": "core/Clash.Meta/.github/release/mihomo.service",
    "chars": 615,
    "preview": "[Unit]\nDescription=mihomo Daemon, Another Clash Kernel.\nDocumentation=https://wiki.metacubex.one\nAfter=network.target ns"
  },
  {
    "path": "core/Clash.Meta/.github/release/mihomo@.service",
    "chars": 615,
    "preview": "[Unit]\nDescription=mihomo Daemon, Another Clash Kernel.\nDocumentation=https://wiki.metacubex.one\nAfter=network.target ns"
  },
  {
    "path": "core/Clash.Meta/.github/release.sh",
    "chars": 620,
    "preview": "#!/bin/bash\n\nFILENAMES=$(ls)\nfor FILENAME in $FILENAMES\ndo\n    if [[ ! ($FILENAME =~ \".exe\" || $FILENAME =~ \".sh\")]];the"
  },
  {
    "path": "core/Clash.Meta/.github/rename-cgo.sh",
    "chars": 1370,
    "preview": "#!/bin/bash\n\nFILENAMES=$(ls)\nfor FILENAME in $FILENAMES\ndo\n    if [[ $FILENAME =~ \"darwin-10.16-arm64\" ]];then\n        e"
  },
  {
    "path": "core/Clash.Meta/.github/rename-go120.sh",
    "chars": 289,
    "preview": "#!/bin/bash\n\nFILENAMES=$(ls)\nfor FILENAME in $FILENAMES\ndo\n    if [[ ! ($FILENAME =~ \".exe\" || $FILENAME =~ \".sh\")]];the"
  },
  {
    "path": "core/Clash.Meta/.github/workflows/build.yml",
    "chars": 24208,
    "preview": "name: Build\non:\n  workflow_dispatch:\n    inputs:\n      version:\n        description: \"Tag version to release\"\n        re"
  },
  {
    "path": "core/Clash.Meta/.github/workflows/test.yml",
    "chars": 1690,
    "preview": "name: Test\non:\n  push:\n    paths-ignore:\n      - \"docs/**\"\n      - \"README.md\"\n      - \".github/ISSUE_TEMPLATE/**\"\n    b"
  },
  {
    "path": "core/Clash.Meta/.github/workflows/trigger-cmfa-update.yml",
    "chars": 977,
    "preview": "name: Trigger CMFA Update\non:\n  workflow_dispatch:\n  push:\n    paths-ignore:\n      - \"docs/**\"\n      - \"README.md\"\n     "
  },
  {
    "path": "core/Clash.Meta/.gitignore",
    "chars": 321,
    "preview": "# Binaries for programs and plugins\n*.exe\n*.exe~\n*.dll\n*.so\n*.dylib\nbin/*\n\n# Test binary, build with `go test -c`\n*.test"
  },
  {
    "path": "core/Clash.Meta/.golangci.yaml",
    "chars": 263,
    "preview": "linters:\n  disable-all: true\n  enable:\n    - gofumpt\n    - staticcheck\n    - govet\n    - gci\n\nlinters-settings:\n  gci:\n "
  },
  {
    "path": "core/Clash.Meta/Dockerfile",
    "chars": 1168,
    "preview": "FROM alpine:latest as builder\nARG TARGETPLATFORM\nRUN echo \"I'm building for $TARGETPLATFORM\"\n\nRUN apk add --no-cache gzi"
  },
  {
    "path": "core/Clash.Meta/LICENSE",
    "chars": 35149,
    "preview": "                    GNU GENERAL PUBLIC LICENSE\n                       Version 3, 29 June 2007\n\n Copyright (C) 2007 Free "
  },
  {
    "path": "core/Clash.Meta/Makefile",
    "chars": 5289,
    "preview": "NAME=mihomo\nBINDIR=bin\nBRANCH=$(shell git branch --show-current)\nifeq ($(BRANCH),Alpha)\nVERSION=alpha-$(shell git rev-pa"
  },
  {
    "path": "core/Clash.Meta/adapter/adapter.go",
    "chars": 7382,
    "preview": "package adapter\n\nimport (\n\t\"context\"\n\t\"encoding/json\"\n\t\"fmt\"\n\t\"net\"\n\t\"net/url\"\n\t\"strings\"\n\t\"time\"\n\n\t\"github.com/metacube"
  },
  {
    "path": "core/Clash.Meta/adapter/inbound/addition.go",
    "chars": 1440,
    "preview": "package inbound\n\nimport (\n\t\"net\"\n\n\tC \"github.com/metacubex/mihomo/constant\"\n)\n\ntype Addition func(metadata *C.Metadata)\n"
  },
  {
    "path": "core/Clash.Meta/adapter/inbound/auth.go",
    "chars": 717,
    "preview": "package inbound\n\nimport (\n\t\"net\"\n\t\"net/netip\"\n\n\tC \"github.com/metacubex/mihomo/constant\"\n)\n\nvar skipAuthPrefixes []netip"
  },
  {
    "path": "core/Clash.Meta/adapter/inbound/http.go",
    "chars": 636,
    "preview": "package inbound\n\nimport (\n\t\"net\"\n\n\tC \"github.com/metacubex/mihomo/constant\"\n\t\"github.com/metacubex/mihomo/transport/sock"
  },
  {
    "path": "core/Clash.Meta/adapter/inbound/https.go",
    "chars": 564,
    "preview": "package inbound\n\nimport (\n\t\"net\"\n\n\tC \"github.com/metacubex/mihomo/constant\"\n\n\t\"github.com/metacubex/http\"\n)\n\n// NewHTTPS"
  },
  {
    "path": "core/Clash.Meta/adapter/inbound/ipfilter.go",
    "chars": 885,
    "preview": "package inbound\n\nimport (\n\t\"net\"\n\t\"net/netip\"\n\n\tC \"github.com/metacubex/mihomo/constant\"\n)\n\nvar lanAllowedIPs []netip.Pr"
  },
  {
    "path": "core/Clash.Meta/adapter/inbound/listen.go",
    "chars": 2412,
    "preview": "package inbound\n\nimport (\n\t\"context\"\n\t\"fmt\"\n\t\"net\"\n\t\"net/netip\"\n\t\"sync\"\n\n\t\"github.com/metacubex/mihomo/component/keepali"
  },
  {
    "path": "core/Clash.Meta/adapter/inbound/listen_notwindows.go",
    "chars": 182,
    "preview": "//go:build !windows\n\npackage inbound\n\nimport (\n\t\"net\"\n\t\"os\"\n)\n\nconst SupportNamedPipe = false\n\nfunc ListenNamedPipe(path"
  },
  {
    "path": "core/Clash.Meta/adapter/inbound/listen_windows.go",
    "chars": 790,
    "preview": "package inbound\n\nimport (\n\t\"net\"\n\t\"os\"\n\n\t\"github.com/metacubex/wireguard-go/ipc/namedpipe\"\n\t\"golang.org/x/sys/windows\"\n)"
  },
  {
    "path": "core/Clash.Meta/adapter/inbound/packet.go",
    "chars": 678,
    "preview": "package inbound\n\nimport (\n\tC \"github.com/metacubex/mihomo/constant\"\n\t\"github.com/metacubex/mihomo/transport/socks5\"\n)\n\n/"
  },
  {
    "path": "core/Clash.Meta/adapter/inbound/socket.go",
    "chars": 536,
    "preview": "package inbound\n\nimport (\n\t\"net\"\n\n\tC \"github.com/metacubex/mihomo/constant\"\n\t\"github.com/metacubex/mihomo/transport/sock"
  },
  {
    "path": "core/Clash.Meta/adapter/inbound/util.go",
    "chars": 1600,
    "preview": "package inbound\n\nimport (\n\t\"net\"\n\t\"net/netip\"\n\t\"strings\"\n\n\tC \"github.com/metacubex/mihomo/constant\"\n\t\"github.com/metacub"
  },
  {
    "path": "core/Clash.Meta/adapter/outbound/anytls.go",
    "chars": 4381,
    "preview": "package outbound\n\nimport (\n\t\"context\"\n\t\"net\"\n\t\"strconv\"\n\t\"time\"\n\n\tN \"github.com/metacubex/mihomo/common/net\"\n\t\"github.co"
  },
  {
    "path": "core/Clash.Meta/adapter/outbound/base.go",
    "chars": 9258,
    "preview": "package outbound\n\nimport (\n\t\"context\"\n\t\"encoding/json\"\n\t\"fmt\"\n\t\"net\"\n\t\"runtime\"\n\t\"sync\"\n\t\"syscall\"\n\n\tN \"github.com/metac"
  },
  {
    "path": "core/Clash.Meta/adapter/outbound/direct.go",
    "chars": 2756,
    "preview": "package outbound\n\nimport (\n\t\"context\"\n\t\"fmt\"\n\n\t\"github.com/metacubex/mihomo/component/dialer\"\n\t\"github.com/metacubex/mih"
  },
  {
    "path": "core/Clash.Meta/adapter/outbound/dns.go",
    "chars": 3659,
    "preview": "package outbound\n\nimport (\n\t\"context\"\n\t\"net\"\n\t\"net/netip\"\n\t\"time\"\n\n\tN \"github.com/metacubex/mihomo/common/net\"\n\t\"github."
  },
  {
    "path": "core/Clash.Meta/adapter/outbound/ech.go",
    "chars": 1230,
    "preview": "package outbound\n\nimport (\n\t\"context\"\n\t\"encoding/base64\"\n\t\"fmt\"\n\n\t\"github.com/metacubex/mihomo/component/ech\"\n\t\"github.c"
  },
  {
    "path": "core/Clash.Meta/adapter/outbound/http.go",
    "chars": 4686,
    "preview": "package outbound\n\nimport (\n\t\"bufio\"\n\t\"context\"\n\t\"encoding/base64\"\n\t\"errors\"\n\t\"fmt\"\n\t\"net\"\n\t\"strconv\"\n\n\tN \"github.com/met"
  },
  {
    "path": "core/Clash.Meta/adapter/outbound/hysteria.go",
    "chars": 9586,
    "preview": "package outbound\n\nimport (\n\t\"context\"\n\t\"encoding/base64\"\n\t\"fmt\"\n\t\"net\"\n\t\"net/netip\"\n\t\"strconv\"\n\t\"time\"\n\n\t\"github.com/met"
  },
  {
    "path": "core/Clash.Meta/adapter/outbound/hysteria2.go",
    "chars": 7281,
    "preview": "package outbound\n\nimport (\n\t\"context\"\n\t\"errors\"\n\t\"fmt\"\n\t\"net\"\n\t\"strconv\"\n\t\"time\"\n\n\tN \"github.com/metacubex/mihomo/common"
  },
  {
    "path": "core/Clash.Meta/adapter/outbound/masque.go",
    "chars": 11159,
    "preview": "package outbound\n\nimport (\n\t\"context\"\n\t\"crypto/ecdsa\"\n\t\"crypto/x509\"\n\t\"encoding/base64\"\n\t\"errors\"\n\t\"fmt\"\n\t\"io\"\n\t\"net\"\n\t\""
  },
  {
    "path": "core/Clash.Meta/adapter/outbound/mieru.go",
    "chars": 10857,
    "preview": "package outbound\n\nimport (\n\t\"context\"\n\t\"fmt\"\n\t\"net\"\n\t\"net/netip\"\n\t\"strconv\"\n\t\"sync\"\n\n\tN \"github.com/metacubex/mihomo/com"
  },
  {
    "path": "core/Clash.Meta/adapter/outbound/mieru_test.go",
    "chars": 2205,
    "preview": "package outbound\n\nimport \"testing\"\n\nfunc TestNewMieru(t *testing.T) {\n\ttestCases := []struct {\n\t\toption       MieruOptio"
  },
  {
    "path": "core/Clash.Meta/adapter/outbound/reality.go",
    "chars": 1238,
    "preview": "package outbound\n\nimport (\n\t\"crypto/ecdh\"\n\t\"encoding/base64\"\n\t\"encoding/hex\"\n\t\"errors\"\n\t\"fmt\"\n\n\ttlsC \"github.com/metacub"
  },
  {
    "path": "core/Clash.Meta/adapter/outbound/reject.go",
    "chars": 3935,
    "preview": "package outbound\n\nimport (\n\t\"context\"\n\t\"io\"\n\t\"net\"\n\t\"net/netip\"\n\t\"time\"\n\n\t\"github.com/metacubex/mihomo/common/buf\"\n\tC \"g"
  },
  {
    "path": "core/Clash.Meta/adapter/outbound/shadowsocks.go",
    "chars": 16361,
    "preview": "package outbound\n\nimport (\n\t\"context\"\n\t\"fmt\"\n\t\"net\"\n\t\"strconv\"\n\n\tN \"github.com/metacubex/mihomo/common/net\"\n\t\"github.com"
  },
  {
    "path": "core/Clash.Meta/adapter/outbound/shadowsocksr.go",
    "chars": 6167,
    "preview": "package outbound\n\nimport (\n\t\"context\"\n\t\"errors\"\n\t\"fmt\"\n\t\"net\"\n\t\"strconv\"\n\n\tN \"github.com/metacubex/mihomo/common/net\"\n\tC"
  },
  {
    "path": "core/Clash.Meta/adapter/outbound/singmux.go",
    "chars": 3331,
    "preview": "package outbound\n\nimport (\n\t\"context\"\n\n\tN \"github.com/metacubex/mihomo/common/net\"\n\t\"github.com/metacubex/mihomo/compone"
  },
  {
    "path": "core/Clash.Meta/adapter/outbound/snell.go",
    "chars": 5118,
    "preview": "package outbound\n\nimport (\n\t\"context\"\n\t\"fmt\"\n\t\"net\"\n\t\"strconv\"\n\n\tN \"github.com/metacubex/mihomo/common/net\"\n\t\"github.com"
  },
  {
    "path": "core/Clash.Meta/adapter/outbound/socks5.go",
    "chars": 6391,
    "preview": "package outbound\n\nimport (\n\t\"context\"\n\t\"errors\"\n\t\"fmt\"\n\t\"io\"\n\t\"net\"\n\t\"net/netip\"\n\t\"strconv\"\n\n\tN \"github.com/metacubex/mi"
  },
  {
    "path": "core/Clash.Meta/adapter/outbound/ssh.go",
    "chars": 4763,
    "preview": "package outbound\n\nimport (\n\t\"bytes\"\n\t\"context\"\n\t\"encoding/base64\"\n\t\"fmt\"\n\t\"net\"\n\t\"os\"\n\t\"strconv\"\n\t\"strings\"\n\t\"sync\"\n\n\tN "
  },
  {
    "path": "core/Clash.Meta/adapter/outbound/sudoku.go",
    "chars": 13009,
    "preview": "package outbound\n\nimport (\n\t\"context\"\n\t\"fmt\"\n\t\"net\"\n\t\"strconv\"\n\t\"strings\"\n\t\"sync\"\n\n\tN \"github.com/metacubex/mihomo/commo"
  },
  {
    "path": "core/Clash.Meta/adapter/outbound/trojan.go",
    "chars": 9585,
    "preview": "package outbound\n\nimport (\n\t\"context\"\n\t\"errors\"\n\t\"fmt\"\n\t\"net\"\n\t\"strconv\"\n\n\tN \"github.com/metacubex/mihomo/common/net\"\n\t\""
  },
  {
    "path": "core/Clash.Meta/adapter/outbound/trusttunnel.go",
    "chars": 4493,
    "preview": "package outbound\n\nimport (\n\t\"context\"\n\t\"net\"\n\t\"strconv\"\n\n\tN \"github.com/metacubex/mihomo/common/net\"\n\tC \"github.com/meta"
  },
  {
    "path": "core/Clash.Meta/adapter/outbound/tuic.go",
    "chars": 9779,
    "preview": "package outbound\n\nimport (\n\t\"context\"\n\t\"fmt\"\n\t\"math\"\n\t\"net\"\n\t\"strconv\"\n\t\"time\"\n\n\t\"github.com/metacubex/mihomo/component/"
  },
  {
    "path": "core/Clash.Meta/adapter/outbound/util.go",
    "chars": 2746,
    "preview": "package outbound\n\nimport (\n\t\"bytes\"\n\t\"context\"\n\t\"fmt\"\n\t\"net\"\n\t\"net/netip\"\n\t\"regexp\"\n\t\"strconv\"\n\n\t\"github.com/metacubex/m"
  },
  {
    "path": "core/Clash.Meta/adapter/outbound/vless.go",
    "chars": 25602,
    "preview": "package outbound\n\nimport (\n\t\"context\"\n\t\"errors\"\n\t\"fmt\"\n\t\"net\"\n\t\"strconv\"\n\t\"time\"\n\n\t\"github.com/metacubex/mihomo/common/c"
  },
  {
    "path": "core/Clash.Meta/adapter/outbound/vmess.go",
    "chars": 14238,
    "preview": "package outbound\n\nimport (\n\t\"context\"\n\t\"errors\"\n\t\"fmt\"\n\t\"net\"\n\t\"strconv\"\n\t\"strings\"\n\t\"sync\"\n\n\tN \"github.com/metacubex/mi"
  },
  {
    "path": "core/Clash.Meta/adapter/outbound/wireguard.go",
    "chars": 18921,
    "preview": "package outbound\n\nimport (\n\t\"context\"\n\t\"encoding/base64\"\n\t\"encoding/hex\"\n\t\"fmt\"\n\t\"net\"\n\t\"net/netip\"\n\t\"strconv\"\n\t\"strings"
  },
  {
    "path": "core/Clash.Meta/adapter/outboundgroup/fallback.go",
    "chars": 4121,
    "preview": "package outboundgroup\n\nimport (\n\t\"context\"\n\t\"encoding/json\"\n\t\"errors\"\n\t\"time\"\n\n\t\"github.com/metacubex/mihomo/common/call"
  },
  {
    "path": "core/Clash.Meta/adapter/outboundgroup/groupbase.go",
    "chars": 7663,
    "preview": "package outboundgroup\n\nimport (\n\t\"context\"\n\t\"errors\"\n\t\"fmt\"\n\t\"strings\"\n\t\"sync\"\n\t\"time\"\n\n\t\"github.com/metacubex/mihomo/ad"
  },
  {
    "path": "core/Clash.Meta/adapter/outboundgroup/loadbalance.go",
    "chars": 6624,
    "preview": "package outboundgroup\n\nimport (\n\t\"context\"\n\t\"encoding/json\"\n\t\"errors\"\n\t\"fmt\"\n\t\"net\"\n\t\"sync\"\n\t\"time\"\n\n\t\"github.com/metacu"
  },
  {
    "path": "core/Clash.Meta/adapter/outboundgroup/parser.go",
    "chars": 7355,
    "preview": "package outboundgroup\n\nimport (\n\t\"errors\"\n\t\"fmt\"\n\t\"strings\"\n\n\t\"github.com/dlclark/regexp2\"\n\n\t\"github.com/metacubex/mihom"
  },
  {
    "path": "core/Clash.Meta/adapter/outboundgroup/selector.go",
    "chars": 3133,
    "preview": "package outboundgroup\n\nimport (\n\t\"context\"\n\t\"encoding/json\"\n\t\"errors\"\n\n\tC \"github.com/metacubex/mihomo/constant\"\n\tP \"git"
  },
  {
    "path": "core/Clash.Meta/adapter/outboundgroup/urltest.go",
    "chars": 5593,
    "preview": "package outboundgroup\n\nimport (\n\t\"context\"\n\t\"encoding/json\"\n\t\"errors\"\n\t\"time\"\n\n\t\"github.com/metacubex/mihomo/common/call"
  },
  {
    "path": "core/Clash.Meta/adapter/outboundgroup/util.go",
    "chars": 782,
    "preview": "package outboundgroup\n\nimport (\n\t\"context\"\n\n\t\"github.com/metacubex/mihomo/common/utils\"\n\tC \"github.com/metacubex/mihomo/"
  },
  {
    "path": "core/Clash.Meta/adapter/parser.go",
    "chars": 6079,
    "preview": "package adapter\n\nimport (\n\t\"fmt\"\n\n\t\"github.com/metacubex/mihomo/adapter/outbound\"\n\t\"github.com/metacubex/mihomo/common/s"
  },
  {
    "path": "core/Clash.Meta/adapter/patch.go",
    "chars": 109,
    "preview": "package adapter\n\ntype UrlTestCheck func(url string, name string, delay uint16)\n\nvar UrlTestHook UrlTestCheck\n"
  },
  {
    "path": "core/Clash.Meta/adapter/provider/healthcheck.go",
    "chars": 5548,
    "preview": "package provider\n\nimport (\n\t\"context\"\n\t\"strings\"\n\t\"sync\"\n\t\"time\"\n\n\t\"github.com/metacubex/mihomo/common/atomic\"\n\t\"github."
  },
  {
    "path": "core/Clash.Meta/adapter/provider/override.go",
    "chars": 2549,
    "preview": "package provider\n\nimport (\n\t\"encoding\"\n\t\"fmt\"\n\n\t\"github.com/dlclark/regexp2\"\n)\n\ntype overrideSchema struct {\n\tTFO       "
  },
  {
    "path": "core/Clash.Meta/adapter/provider/parser.go",
    "chars": 3492,
    "preview": "package provider\n\nimport (\n\t\"errors\"\n\t\"fmt\"\n\t\"time\"\n\n\t\"github.com/metacubex/mihomo/common/structure\"\n\t\"github.com/metacu"
  },
  {
    "path": "core/Clash.Meta/adapter/provider/patch.go",
    "chars": 118,
    "preview": "package provider\n\nfunc (pp *proxySetProvider) GetSubscriptionInfo() *SubscriptionInfo {\n\treturn pp.subscriptionInfo\n}\n"
  },
  {
    "path": "core/Clash.Meta/adapter/provider/provider.go",
    "chars": 11302,
    "preview": "package provider\n\nimport (\n\t\"encoding/json\"\n\t\"errors\"\n\t\"fmt\"\n\t\"runtime\"\n\t\"strings\"\n\t\"sync\"\n\t\"time\"\n\n\t\"github.com/metacub"
  },
  {
    "path": "core/Clash.Meta/adapter/provider/subscription_info.go",
    "chars": 1126,
    "preview": "package provider\n\nimport (\n\t\"fmt\"\n\t\"strconv\"\n\t\"strings\"\n\n\t\"github.com/metacubex/mihomo/log\"\n)\n\ntype SubscriptionInfo str"
  },
  {
    "path": "core/Clash.Meta/android_tz.go",
    "chars": 624,
    "preview": "// Copyright 2014 The Go Authors. All rights reserved.\n// Use of this source code is governed by a BSD-style\n// license "
  },
  {
    "path": "core/Clash.Meta/check_amd64.sh",
    "chars": 602,
    "preview": "#!/bin/sh\nflags=$(grep '^flags\\b' </proc/cpuinfo | head -n 1)\nflags=\" ${flags#*:} \"\n\nhas_flags () {\n  for flag; do\n    c"
  },
  {
    "path": "core/Clash.Meta/common/arc/arc.go",
    "chars": 4947,
    "preview": "package arc\n\nimport (\n\t\"sync\"\n\t\"time\"\n\n\tlist \"github.com/bahlo/generic-list-go\"\n\t\"github.com/samber/lo\"\n)\n\n//modify from"
  },
  {
    "path": "core/Clash.Meta/common/arc/arc_test.go",
    "chars": 2935,
    "preview": "package arc\n\nimport (\n\t\"testing\"\n)\n\nfunc TestInsertion(t *testing.T) {\n\tcache := New[string, string](WithSize[string, st"
  },
  {
    "path": "core/Clash.Meta/common/arc/entry.go",
    "chars": 539,
    "preview": "package arc\n\nimport (\n\tlist \"github.com/bahlo/generic-list-go\"\n)\n\ntype entry[K comparable, V any] struct {\n\tkey     K\n\tv"
  },
  {
    "path": "core/Clash.Meta/common/atomic/enum.go",
    "chars": 1095,
    "preview": "package atomic\n\nimport (\n\t\"encoding/json\"\n\t\"fmt\"\n\t\"sync/atomic\"\n)\n\ntype Int32Enum[T ~int32] struct {\n\tvalue atomic.Int32"
  },
  {
    "path": "core/Clash.Meta/common/atomic/type.go",
    "chars": 4720,
    "preview": "package atomic\n\nimport (\n\t\"encoding/json\"\n\t\"fmt\"\n\t\"strconv\"\n\t\"sync/atomic\"\n)\n\ntype Bool struct {\n\tatomic.Bool\n}\n\nfunc Ne"
  },
  {
    "path": "core/Clash.Meta/common/atomic/value.go",
    "chars": 1417,
    "preview": "package atomic\n\nimport (\n\t\"encoding/json\"\n\t\"sync/atomic\"\n)\n\ntype TypedValue[T any] struct {\n\tvalue atomic.Pointer[T]\n}\n\n"
  },
  {
    "path": "core/Clash.Meta/common/atomic/value_test.go",
    "chars": 4625,
    "preview": "package atomic\n\nimport (\n\t\"io\"\n\t\"os\"\n\t\"testing\"\n)\n\nfunc TestTypedValue(t *testing.T) {\n\t{\n\t\tvar v TypedValue[int]\n\t\tgot,"
  },
  {
    "path": "core/Clash.Meta/common/batch/batch.go",
    "chars": 1712,
    "preview": "package batch\n\nimport (\n\t\"context\"\n\t\"sync\"\n)\n\ntype Option[T any] func(b *Batch[T])\n\ntype Result[T any] struct {\n\tValue T"
  },
  {
    "path": "core/Clash.Meta/common/batch/batch_test.go",
    "chars": 1659,
    "preview": "package batch\n\nimport (\n\t\"context\"\n\t\"errors\"\n\t\"strconv\"\n\t\"testing\"\n\t\"time\"\n\n\t\"github.com/stretchr/testify/assert\"\n)\n\nfun"
  },
  {
    "path": "core/Clash.Meta/common/buf/sing.go",
    "chars": 838,
    "preview": "package buf\n\nimport (\n\t\"github.com/metacubex/sing/common/buf\"\n)\n\nconst BufferSize = buf.BufferSize\n\ntype Buffer = buf.Bu"
  },
  {
    "path": "core/Clash.Meta/common/callback/callback.go",
    "chars": 1067,
    "preview": "package callback\n\nimport (\n\t\"github.com/metacubex/mihomo/common/buf\"\n\tN \"github.com/metacubex/mihomo/common/net\"\n\tC \"git"
  },
  {
    "path": "core/Clash.Meta/common/callback/close_callback.go",
    "chars": 1186,
    "preview": "package callback\n\nimport (\n\t\"sync\"\n\n\tC \"github.com/metacubex/mihomo/constant\"\n)\n\ntype closeCallbackConn struct {\n\tC.Conn"
  },
  {
    "path": "core/Clash.Meta/common/cmd/cmd.go",
    "chars": 1039,
    "preview": "package cmd\n\nimport (\n\t\"fmt\"\n\t\"os/exec\"\n\t\"runtime\"\n\t\"strings\"\n)\n\nfunc ExecCmd(cmdStr string) (string, error) {\n\targs := "
  },
  {
    "path": "core/Clash.Meta/common/cmd/cmd_other.go",
    "chars": 107,
    "preview": "//go:build !windows\n\npackage cmd\n\nimport (\n\t\"os/exec\"\n)\n\nfunc prepareBackgroundCommand(cmd *exec.Cmd) {\n\n}\n"
  },
  {
    "path": "core/Clash.Meta/common/cmd/cmd_test.go",
    "chars": 814,
    "preview": "package cmd\n\nimport (\n\t\"runtime\"\n\t\"testing\"\n\n\t\"github.com/stretchr/testify/assert\"\n)\n\nfunc TestSplitArgs(t *testing.T) {"
  },
  {
    "path": "core/Clash.Meta/common/cmd/cmd_windows.go",
    "chars": 174,
    "preview": "//go:build windows\n\npackage cmd\n\nimport (\n\t\"os/exec\"\n\t\"syscall\"\n)\n\nfunc prepareBackgroundCommand(cmd *exec.Cmd) {\n\tcmd.S"
  },
  {
    "path": "core/Clash.Meta/common/contextutils/afterfunc_compact.go",
    "chars": 487,
    "preview": "package contextutils\n\nimport (\n\t\"context\"\n\t\"sync\"\n)\n\nfunc afterFunc(ctx context.Context, f func()) (stop func() bool) {\n"
  },
  {
    "path": "core/Clash.Meta/common/contextutils/afterfunc_go120.go",
    "chars": 160,
    "preview": "//go:build !go1.21\n\npackage contextutils\n\nimport (\n\t\"context\"\n)\n\nfunc AfterFunc(ctx context.Context, f func()) (stop fun"
  },
  {
    "path": "core/Clash.Meta/common/contextutils/afterfunc_go121.go",
    "chars": 162,
    "preview": "//go:build go1.21\n\npackage contextutils\n\nimport \"context\"\n\nfunc AfterFunc(ctx context.Context, f func()) (stop func() bo"
  },
  {
    "path": "core/Clash.Meta/common/contextutils/afterfunc_test.go",
    "chars": 2447,
    "preview": "package contextutils\n\nimport (\n\t\"context\"\n\t\"testing\"\n\t\"time\"\n)\n\nconst (\n\tshortDuration    = 1 * time.Millisecond // a re"
  },
  {
    "path": "core/Clash.Meta/common/contextutils/withoutcancel_compact.go",
    "chars": 373,
    "preview": "package contextutils\n\nimport (\n\t\"context\"\n\t\"time\"\n)\n\ntype withoutCancelCtx struct {\n\tc context.Context\n}\n\nfunc (withoutC"
  },
  {
    "path": "core/Clash.Meta/common/contextutils/withoutcancel_go120.go",
    "chars": 228,
    "preview": "//go:build !go1.21\n\npackage contextutils\n\nimport \"context\"\n\nfunc WithoutCancel(parent context.Context) context.Context {"
  },
  {
    "path": "core/Clash.Meta/common/contextutils/withoutcancel_go121.go",
    "chars": 160,
    "preview": "//go:build go1.21\n\npackage contextutils\n\nimport \"context\"\n\nfunc WithoutCancel(parent context.Context) context.Context {\n"
  },
  {
    "path": "core/Clash.Meta/common/convert/base64.go",
    "chars": 1405,
    "preview": "package convert\n\nimport (\n\t\"encoding/base64\"\n\t\"fmt\"\n\t\"strings\"\n)\n\nvar (\n\tencRaw = base64.RawStdEncoding\n\tenc    = base64"
  },
  {
    "path": "core/Clash.Meta/common/convert/converter.go",
    "chars": 18195,
    "preview": "package convert\n\nimport (\n\t\"bytes\"\n\t\"encoding/base64\"\n\t\"encoding/json\"\n\t\"fmt\"\n\t\"net/url\"\n\t\"strconv\"\n\t\"strings\"\n\n\t\"github"
  },
  {
    "path": "core/Clash.Meta/common/convert/converter_test.go",
    "chars": 8929,
    "preview": "package convert_test\n\nimport (\n\t\"testing\"\n\n\t\"github.com/metacubex/mihomo/adapter\"\n\t. \"github.com/metacubex/mihomo/common"
  },
  {
    "path": "core/Clash.Meta/common/convert/util.go",
    "chars": 31744,
    "preview": "package convert\n\nimport (\n\t\"encoding/base64\"\n\t\"strings\"\n\t\"time\"\n\n\t\"github.com/metacubex/mihomo/common/utils\"\n\n\t\"github.c"
  },
  {
    "path": "core/Clash.Meta/common/convert/v.go",
    "chars": 9114,
    "preview": "package convert\n\nimport (\n\t\"encoding/json\"\n\t\"errors\"\n\t\"fmt\"\n\t\"net/url\"\n\t\"strconv\"\n\t\"strings\"\n)\n\nfunc handleVShareLink(na"
  },
  {
    "path": "core/Clash.Meta/common/deque/deque.go",
    "chars": 17013,
    "preview": "package deque\n\n// copy and modified from https://github.com/gammazero/deque/blob/v1.2.0/deque.go\n// which is licensed un"
  },
  {
    "path": "core/Clash.Meta/common/httputils/addr.go",
    "chars": 1046,
    "preview": "package httputils\n\nimport (\n\t\"context\"\n\t\"net\"\n\n\tC \"github.com/metacubex/mihomo/constant\"\n\n\t\"github.com/metacubex/http\"\n\t"
  },
  {
    "path": "core/Clash.Meta/common/httputils/force_close.go",
    "chars": 578,
    "preview": "package httputils\n\nimport (\n\t\"io\"\n\n\t\"github.com/metacubex/http\"\n)\n\ntype closeIdleTransport interface {\n\tCloseIdleConnect"
  },
  {
    "path": "core/Clash.Meta/common/httputils/h2_transport_close.go",
    "chars": 1563,
    "preview": "package httputils\n\nimport (\n\t\"net\"\n\t\"sync\"\n\t\"time\"\n\t\"unsafe\"\n\n\t\"github.com/metacubex/http\"\n)\n\ntype clientConnPool struct"
  },
  {
    "path": "core/Clash.Meta/common/lru/lrucache.go",
    "chars": 6974,
    "preview": "package lru\n\n// Modified by https://github.com/die-net/lrucache\n\nimport (\n\t\"sync\"\n\t\"time\"\n\n\tlist \"github.com/bahlo/gener"
  },
  {
    "path": "core/Clash.Meta/common/lru/lrucache_test.go",
    "chars": 3698,
    "preview": "package lru\n\nimport (\n\t\"testing\"\n\t\"time\"\n\n\t\"github.com/stretchr/testify/assert\"\n)\n\nvar entries = []struct {\n\tkey   strin"
  },
  {
    "path": "core/Clash.Meta/common/maphash/common.go",
    "chars": 296,
    "preview": "package maphash\n\nimport \"hash/maphash\"\n\ntype Seed = maphash.Seed\n\nfunc MakeSeed() Seed {\n\treturn maphash.MakeSeed()\n}\n\nt"
  },
  {
    "path": "core/Clash.Meta/common/maphash/comparable_go120.go",
    "chars": 4423,
    "preview": "//go:build !go1.24\n\npackage maphash\n\nimport \"unsafe\"\n\nfunc Comparable[T comparable](s Seed, v T) uint64 {\n\treturn compar"
  }
]

// ... and 1570 more files (download for full content)

About this extraction

This page contains the full source code of the appshubcc/Bettbox GitHub repository, extracted and formatted as plain text for AI agents and large language models (LLMs). The extraction includes 1770 files (7.6 MB), approximately 2.1M tokens, and a symbol index with 13067 extracted functions, classes, methods, constants, and types. Use this with OpenClaw, Claude, ChatGPT, Cursor, Windsurf, or any other AI tool that accepts text input. You can copy the full output to your clipboard or download it as a .txt file.

Extracted by GitExtract — free GitHub repo to text converter for AI. Built by Nikandr Surkov.

Copied to clipboard!