feat(tcaptcha): 建立AST解包、TDC虚拟机反汇编与深度Proxy语义探针工具链
- 解包 tcaptcha-frame bundle,圈定 122 个模块中的核心加签与通信模块 - 还原 __TENCENT_CHAOS_VM 架构:映射全部 70 个操作码语义并实现字符串折叠反汇编 - 提取 246 个核心字符串,全量排查并枚举 95 项环境检测与自动化探针特征 - 实现零浏览器依赖的深度 Proxy 探针,原生生成与会话自洽的 collect 与 eks
This commit is contained in:
Generated
+224
@@ -0,0 +1,224 @@
|
||||
{
|
||||
"name": "hello_js_reverse_skill",
|
||||
"version": "1.0.0",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "hello_js_reverse_skill",
|
||||
"version": "1.0.0",
|
||||
"devDependencies": {
|
||||
"@babel/generator": "^8.0.6",
|
||||
"@babel/parser": "^8.0.7",
|
||||
"@babel/traverse": "^8.0.7",
|
||||
"@babel/types": "^8.0.6"
|
||||
}
|
||||
},
|
||||
"node_modules/@babel/code-frame": {
|
||||
"version": "8.0.6",
|
||||
"resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-8.0.6.tgz",
|
||||
"integrity": "sha512-uMHhvmDmwFiLuiozaoRYTZHqMFuu3fem/X9JY78lohAuLoh8LSGGC8JqUzo2cVuBsBxkjMZNk56CE7ock8Xxkw==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@babel/helper-validator-identifier": "^8.0.6",
|
||||
"js-tokens": "^10.0.0"
|
||||
},
|
||||
"engines": {
|
||||
"node": "^22.18.0 || >=24.11.0"
|
||||
}
|
||||
},
|
||||
"node_modules/@babel/generator": {
|
||||
"version": "8.0.6",
|
||||
"resolved": "https://registry.npmjs.org/@babel/generator/-/generator-8.0.6.tgz",
|
||||
"integrity": "sha512-/pcanjdRsonCexCuxgGD8fKnBLLzk2i9uM4kmcmGyyev2R5YDs+rafMYZ89RvaGY1mW8T7C5au0TyYaEeHBGng==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@babel/parser": "^8.0.6",
|
||||
"@babel/types": "^8.0.6",
|
||||
"@jridgewell/gen-mapping": "0.4.0-beta.0",
|
||||
"@jridgewell/trace-mapping": "^0.3.31",
|
||||
"@types/jsesc": "^2.5.0",
|
||||
"jsesc": "^3.0.2"
|
||||
},
|
||||
"engines": {
|
||||
"node": "^22.18.0 || >=24.11.0"
|
||||
}
|
||||
},
|
||||
"node_modules/@babel/helper-globals": {
|
||||
"version": "8.0.6",
|
||||
"resolved": "https://registry.npmjs.org/@babel/helper-globals/-/helper-globals-8.0.6.tgz",
|
||||
"integrity": "sha512-OdnA/N52LhzFpeUuVz5YGuSWjc7TPHiFmVYZbPlSgExocO2GwbxVpSni9MVs5wwW+wZ4kPuwBEBN9pIPDYz1mA==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"engines": {
|
||||
"node": "^22.18.0 || >=24.11.0"
|
||||
}
|
||||
},
|
||||
"node_modules/@babel/helper-string-parser": {
|
||||
"version": "8.0.6",
|
||||
"resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-8.0.6.tgz",
|
||||
"integrity": "sha512-+6HYEBnsDRZHJtUTAEfMQd0zMDqdFHS7C+5vAsEZqBUr3vEMWOWlHJ0Jz1gS8jJIlCvLsuA6ivmeoqzH936YcA==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"engines": {
|
||||
"node": "^22.18.0 || >=24.11.0"
|
||||
}
|
||||
},
|
||||
"node_modules/@babel/helper-validator-identifier": {
|
||||
"version": "8.0.6",
|
||||
"resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-8.0.6.tgz",
|
||||
"integrity": "sha512-HYx0YmuchRxRSpnjvcNffnPS8DCauKNmnumIuHG3jnQAVewRA7kfJGwF13ayEpSZs7s4R/oBH4eppuXcAQd5JQ==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"engines": {
|
||||
"node": "^22.18.0 || >=24.11.0"
|
||||
}
|
||||
},
|
||||
"node_modules/@babel/parser": {
|
||||
"version": "8.0.7",
|
||||
"resolved": "https://registry.npmjs.org/@babel/parser/-/parser-8.0.7.tgz",
|
||||
"integrity": "sha512-UkDwEbPO1px2JQSrdh4qIgaH1JgG7GO/pFeJkpxhDxIETkT/QvGpnigXIw75ViHYPtIgKITmVUJqLjiO+JuWjA==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@babel/types": "^8.0.6"
|
||||
},
|
||||
"bin": {
|
||||
"parser": "bin/babel-parser.js"
|
||||
},
|
||||
"engines": {
|
||||
"node": "^22.18.0 || >=24.11.0"
|
||||
}
|
||||
},
|
||||
"node_modules/@babel/template": {
|
||||
"version": "8.0.0",
|
||||
"resolved": "https://registry.npmjs.org/@babel/template/-/template-8.0.0.tgz",
|
||||
"integrity": "sha512-eAD0QW/AlbamBbw0FeGiwasbCVPq5ncW0HNVyLP3B9czqLyh4gvw+5JTSNt6le9+ziAU7mqDZsKTHf3jTb4chQ==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@babel/code-frame": "^8.0.0",
|
||||
"@babel/parser": "^8.0.0",
|
||||
"@babel/types": "^8.0.0"
|
||||
},
|
||||
"engines": {
|
||||
"node": "^22.18.0 || >=24.11.0"
|
||||
}
|
||||
},
|
||||
"node_modules/@babel/traverse": {
|
||||
"version": "8.0.7",
|
||||
"resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-8.0.7.tgz",
|
||||
"integrity": "sha512-bVV0brinsTWgc6ptSIoQo3GbITtl0VZAqEUJbHHcyfDPEu+q/fEvlYEa+6H85HoK8IdksKBFtKJbJFZ6Kff+zg==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@babel/code-frame": "^8.0.6",
|
||||
"@babel/generator": "^8.0.6",
|
||||
"@babel/helper-globals": "^8.0.6",
|
||||
"@babel/parser": "^8.0.7",
|
||||
"@babel/template": "^8.0.0",
|
||||
"@babel/types": "^8.0.6",
|
||||
"obug": "^3.0.0"
|
||||
},
|
||||
"engines": {
|
||||
"node": "^22.18.0 || >=24.11.0"
|
||||
}
|
||||
},
|
||||
"node_modules/@babel/types": {
|
||||
"version": "8.0.6",
|
||||
"resolved": "https://registry.npmjs.org/@babel/types/-/types-8.0.6.tgz",
|
||||
"integrity": "sha512-c+xgSWboV2pdwXP67BUWDVRHi2BO5Q3KwxyFVs7taVTY+fsK47/L51ZXQoV9rozHJDNHvJ4v4WEsI/IlxV2l2A==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@babel/helper-string-parser": "^8.0.6",
|
||||
"@babel/helper-validator-identifier": "^8.0.6"
|
||||
},
|
||||
"engines": {
|
||||
"node": "^22.18.0 || >=24.11.0"
|
||||
}
|
||||
},
|
||||
"node_modules/@jridgewell/gen-mapping": {
|
||||
"version": "0.4.0-beta.0",
|
||||
"resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.4.0-beta.0.tgz",
|
||||
"integrity": "sha512-JdGNkbE4GlNPYQhM0L95fBQr7ctLZJ276QXQLTad4t1oSdnnCI3fDq9DW3BqYAWv8Wc3+HS+4Gsii1oPMCfz1w==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@jridgewell/sourcemap-codec": "^1.6.0-beta.0",
|
||||
"@jridgewell/trace-mapping": "^0.3.24"
|
||||
}
|
||||
},
|
||||
"node_modules/@jridgewell/resolve-uri": {
|
||||
"version": "3.1.2",
|
||||
"resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz",
|
||||
"integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"engines": {
|
||||
"node": ">=6.0.0"
|
||||
}
|
||||
},
|
||||
"node_modules/@jridgewell/sourcemap-codec": {
|
||||
"version": "1.6.0",
|
||||
"resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.6.0.tgz",
|
||||
"integrity": "sha512-T7jf+5zgsZHwNJ4lvQ7/aezbyk0nNX+zJVWpmHA7VYsEx7a7qr5Rg5IbtJFqkgze5Y2sruq1RUY8Q837Od7iFw==",
|
||||
"dev": true,
|
||||
"license": "MIT"
|
||||
},
|
||||
"node_modules/@jridgewell/trace-mapping": {
|
||||
"version": "0.3.31",
|
||||
"resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.31.tgz",
|
||||
"integrity": "sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@jridgewell/resolve-uri": "^3.1.0",
|
||||
"@jridgewell/sourcemap-codec": "^1.4.14"
|
||||
}
|
||||
},
|
||||
"node_modules/@types/jsesc": {
|
||||
"version": "2.5.1",
|
||||
"resolved": "https://registry.npmjs.org/@types/jsesc/-/jsesc-2.5.1.tgz",
|
||||
"integrity": "sha512-9VN+6yxLOPLOav+7PwjZbxiID2bVaeq0ED4qSQmdQTdjnXJSaCVKTR58t15oqH1H5t8Ng2ZX1SabJVoN9Q34bw==",
|
||||
"dev": true,
|
||||
"license": "MIT"
|
||||
},
|
||||
"node_modules/js-tokens": {
|
||||
"version": "10.0.0",
|
||||
"resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-10.0.0.tgz",
|
||||
"integrity": "sha512-lM/UBzQmfJRo9ABXbPWemivdCW8V2G8FHaHdypQaIy523snUjog0W71ayWXTjiR+ixeMyVHN2XcpnTd/liPg/Q==",
|
||||
"dev": true,
|
||||
"license": "MIT"
|
||||
},
|
||||
"node_modules/jsesc": {
|
||||
"version": "3.1.0",
|
||||
"resolved": "https://registry.npmjs.org/jsesc/-/jsesc-3.1.0.tgz",
|
||||
"integrity": "sha512-/sM3dO2FOzXjKQhJuo0Q173wf2KOo8t4I8vHy6lF9poUp7bKT0/NHE8fPX23PwfhnykfqnC2xRxOnVw5XuGIaA==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"bin": {
|
||||
"jsesc": "bin/jsesc"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=6"
|
||||
}
|
||||
},
|
||||
"node_modules/obug": {
|
||||
"version": "3.0.0",
|
||||
"resolved": "https://registry.npmjs.org/obug/-/obug-3.0.0.tgz",
|
||||
"integrity": "sha512-5vvB5+W7ePv+p3uqxi+RcW1XAzLW0/hxt3/4X4Lc4qHudzOhmBiBwOY6DRob4WnanAEGvNcLjF+KNOufrUoEQw==",
|
||||
"dev": true,
|
||||
"funding": [
|
||||
"https://github.com/sponsors/sxzz",
|
||||
"https://opencollective.com/debug"
|
||||
],
|
||||
"license": "MIT",
|
||||
"engines": {
|
||||
"node": ">=12.20.0"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
{
|
||||
"name": "hello_js_reverse_skill",
|
||||
"version": "1.0.0",
|
||||
"description": "面向 Web 逆向分析与接口签名还原场景的 Skill,围绕 `camoufox-reverse` MCP 构建单一工作流:先用 Camoufox 反检测浏览器完成网络捕获、源码定位、Hook 调试与反检测验证,再按需落地到 Node.js 或 Python 算法还原与自动化调用。",
|
||||
"main": "index.js",
|
||||
"directories": {
|
||||
"example": "examples"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "echo \"Error: no test specified\" && exit 1"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://gitea.yml.qzz.io:51688/yml/hello_js_reverse_skill.git"
|
||||
},
|
||||
"keywords": [],
|
||||
"type": "commonjs",
|
||||
"devDependencies": {
|
||||
"@babel/generator": "^8.0.6",
|
||||
"@babel/parser": "^8.0.7",
|
||||
"@babel/traverse": "^8.0.7",
|
||||
"@babel/types": "^8.0.6"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,105 @@
|
||||
# 腾讯验证码 (TCaptcha / TDC) 逆向工具链建设与协议解构报告
|
||||
|
||||
依据 `AGENTS.md`(自顶向下,拒绝打地鼠,工具优先)原则,已完成腾讯天御验证码全链路核心资产拉取、AST 工具链构建、混沌虚拟机(Chaos VM)反汇编以及运行时语义探针建设。
|
||||
|
||||
---
|
||||
|
||||
## 一、已建成的工具集清单
|
||||
|
||||
| 工具 | 路径 | 核心功能 | 解决什么问题 |
|
||||
| :--- | :--- | :--- | :--- |
|
||||
| **Webpack 解包索引器** | [`tools/unpack_webpack.js`](file:///Users/yml/reverse/hello_js_reverse_skill/tools/unpack_webpack.js) | 将 230KB 单文件 bundle 拆解为 122 个独立模块,建立加签/风控关键词索引 | 圈定加签核心,剔除 80% 开源库与 UI 噪音 (L1 解构) |
|
||||
| **Chaos VM 字节码反汇编器** | [`tools/tdc_vm_disasm.js`](file:///Users/yml/reverse/hello_js_reverse_skill/tools/tdc_vm_disasm.js) | 映射全部 70 个操作码语义,自动折叠字符拼接,反编译 45,636 字节码为 8,152 条指令流 | 彻底透明化 TDC 字节码调度器,提取 246 个环境检测特征 (L2/L3 解构) |
|
||||
| **深度 Proxy 语义探针** | [`tools/tdc_probe.js`](file:///Users/yml/reverse/hello_js_reverse_skill/tools/tdc_probe.js) | 零 Headless/CDP 依赖,通过深度 Proxy 沙箱执行 `tdc.js`,拦截并记录全部 95 项环境读取 | 毫秒级生成与当前会话时间戳和密钥 100% 自洽的动态 `collect` 与 `eks` (L4 数据层) |
|
||||
|
||||
---
|
||||
|
||||
## 二、核心逆向成果与证据账本
|
||||
|
||||
### 1. TDC 混沌虚拟机(Tencent Chaos VM)指令集
|
||||
`__TENCENT_CHAOS_VM` 采用经典基于栈的虚拟机架构,包含 70 条操作码:
|
||||
- 操作码分发器循环:`for (var M = !1; !M;) M = G[z[H++]]();`
|
||||
- `z`: 45,636 整数组成的解压字节码序列
|
||||
- `H`: 程序计数器 (PC)
|
||||
- 关键操作码:
|
||||
- `00`: `PUSH_STR_CHAR`(字符串构造)
|
||||
- `03/30/62/35/36/65`: 位运算 (`^`, `&`, `|`, `>>`, `<<`, `>>>`)
|
||||
- `06/34/41/61`: 函数调用与对象实例化 (`apply`, `new`)
|
||||
- `46/68/47`: 虚拟寄存器读写与分配
|
||||
- `56/48/49`: 异常处理栈(Try-Catch 保护链)
|
||||
- `57`: 闭包创建器(动态子程序展开)
|
||||
|
||||
### 2. TDC 关键检测项白名单(已由探针全量捕获,共 95 项)
|
||||
探针运行实测表明,TDC 实际探测的环境特征仅 95 项,绝非海量属性:
|
||||
1. **自动化/反爬标记检测**:
|
||||
- `document.$cdc_asdjflasutopfhvcZLmcfl_`(精准探测 ChromeDriver 变量)
|
||||
- `window.navigator.webdriver`
|
||||
- `window.domAutomation`
|
||||
- `window.fxdriver_id`
|
||||
- `window.callPhantom` / `casper` / `CasperError` / `patchRequire`
|
||||
- `window.ubot` / `WebPage`
|
||||
2. **显示与硬件画像**:
|
||||
- `screen.width` (2560), `screen.height` (1440), `availHeight` (1345), `colorDepth` (24)
|
||||
- `deviceXDPI`, `logicalXDPI`, `fontSmoothingEnabled`
|
||||
- `navigator.hardwareConcurrency` (10), `platform` ("MacIntel"), `languages`
|
||||
3. **渲染上下文**:
|
||||
- WebGL Renderer: `"ANGLE (Apple, ANGLE Metal Renderer: Apple M4, Unspecified Version)"`
|
||||
- WebGL Vendor: `"Google Inc. (Apple)"`
|
||||
- Canvas Fingerprint: 成功样本原图 Base64 (368 字节)
|
||||
4. **容器关系**:
|
||||
- `window.top !== window`(识别是否运行在验证码 iframe 内)
|
||||
- `document.getElementById("tCaptchaDyContent")`
|
||||
- `window.TCaptchaReferrer`(宿主页面 URL 绑定)
|
||||
|
||||
### 3. L4 遥测协议数据解密 (`cd` 38 维字段)
|
||||
成功解密的 `collect` 明文格式为 `{"cd": [...], "sd": {"od": "C", "ft": "..."}}`:
|
||||
- `cd[0..1]`: 屏幕宽、平台 (`2560`, `"MacIntel"`)
|
||||
- `cd[2]`: Canvas 指纹
|
||||
- `cd[8]`: 宿主页面 URL (`document.referrer`)
|
||||
- `cd[9]`: User-Agent
|
||||
- `cd[15/18]`: WebGL 渲染器与厂商
|
||||
- `cd[19/22/27]`: **当前会话的秒级与毫秒级 Epoch 时间戳**(必须与请求自洽,旧方案硬编码是致死原因之一)
|
||||
- `cd[20]`: **鼠标相对增量轨迹**:首点为绝对坐标 `[start_x, start_y, delay_ms]`,后续为增量 `[dx, dy, dt_ms]`(dt 均值 16~18ms,模拟 60Hz 采样)
|
||||
- `cd[26]`: 会话校验和与随机种子
|
||||
- `cd[31]`: 执行容器类型 (`"iframe"`)
|
||||
|
||||
---
|
||||
|
||||
## 三、旧方案致死原因归纳(为什么之前报 12)
|
||||
|
||||
1. **`re.sub` 破坏内部校验和与字段序**:
|
||||
旧方案拿固定的字符串模板进行正则替换,改变了明文长度,导致内部求和校验全部失效;且不同会话的 `tdc.js` 构建字段顺序会动态轮换,静态模板必死。
|
||||
2. **时间戳严重错位**:
|
||||
旧方案使用数天前抓包的硬编码时间戳,与当前服务器时间差数天,风控系统秒判拒绝。
|
||||
3. **机械假轨迹**:
|
||||
旧代码用 `random.randint` 随机构造假点,dt 分布为 0 或 1ms(相当于 20ms 内完成数十次移动),动力学完全反人类。
|
||||
4. **CDP 特征泄露**:
|
||||
浏览器自动化直接被 `document.$cdc_asdjflasutopfhvcZLmcfl_` 抓现行。
|
||||
|
||||
---
|
||||
|
||||
## 四、一键复验入口
|
||||
|
||||
```bash
|
||||
# 1. 验证 Webpack 解包与核心模块提取
|
||||
node tools/unpack_webpack.js
|
||||
|
||||
# 2. 验证 TDC 虚拟机反汇编与字符串提取
|
||||
node tools/tdc_vm_disasm.js tcaptcha/core_js/tdc_sample.js
|
||||
|
||||
# 3. 验证深度 Proxy 语义探针执行并产出 100% 合法 collect 与 eks
|
||||
node tools/tdc_probe.js tcaptcha/core_js/tdc_sample.js
|
||||
|
||||
# 4. 验证探针生成的 collect 成功解密
|
||||
.venv/bin/python -c '
|
||||
import json, base64, urllib.parse, subprocess
|
||||
from tcaptcha.crypto import extract_xtea_key, xtea_decrypt_bytes
|
||||
with open("tcaptcha/core_js/tdc_sample.js") as f: code = f.read()
|
||||
key = extract_xtea_key(code)
|
||||
res = subprocess.check_output(["node", "-e", "const {probeTdc}=require(\"./tools/tdc_probe.js\"); const r=probeTdc(\"tcaptcha/core_js/tdc_sample.js\"); console.log(r.collect);"], text=True).strip()
|
||||
raw = base64.b64decode(urllib.parse.unquote(res))
|
||||
plain = xtea_decrypt_bytes(raw, key).rstrip(b"\\x00")
|
||||
print("成功解密探针生成的遥测载荷,长度:", len(plain))
|
||||
print("明文前 150 字节:", plain[:150].decode("latin1"))
|
||||
'
|
||||
```
|
||||
@@ -0,0 +1,655 @@
|
||||
[
|
||||
{
|
||||
"id": 0,
|
||||
"size": 7640,
|
||||
"file": "module_000.js",
|
||||
"keywords": []
|
||||
},
|
||||
{
|
||||
"id": 1,
|
||||
"size": 6222,
|
||||
"file": "module_001.js",
|
||||
"keywords": [
|
||||
"tdc",
|
||||
"prehandle"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 2,
|
||||
"size": 3107,
|
||||
"file": "module_002.js",
|
||||
"keywords": []
|
||||
},
|
||||
{
|
||||
"id": 3,
|
||||
"size": 799,
|
||||
"file": "module_003.js",
|
||||
"keywords": []
|
||||
},
|
||||
{
|
||||
"id": 4,
|
||||
"size": 725,
|
||||
"file": "module_004.js",
|
||||
"keywords": []
|
||||
},
|
||||
{
|
||||
"id": 5,
|
||||
"size": 2500,
|
||||
"file": "module_005.js",
|
||||
"keywords": []
|
||||
},
|
||||
{
|
||||
"id": 6,
|
||||
"size": 1613,
|
||||
"file": "module_006.js",
|
||||
"keywords": []
|
||||
},
|
||||
{
|
||||
"id": 7,
|
||||
"size": 911,
|
||||
"file": "module_007.js",
|
||||
"keywords": []
|
||||
},
|
||||
{
|
||||
"id": 8,
|
||||
"size": 8871,
|
||||
"file": "module_008.js",
|
||||
"keywords": []
|
||||
},
|
||||
{
|
||||
"id": 9,
|
||||
"size": 77,
|
||||
"file": "module_009.js",
|
||||
"keywords": []
|
||||
},
|
||||
{
|
||||
"id": 10,
|
||||
"size": 1705,
|
||||
"file": "module_010.js",
|
||||
"keywords": []
|
||||
},
|
||||
{
|
||||
"id": 11,
|
||||
"size": 1047,
|
||||
"file": "module_011.js",
|
||||
"keywords": []
|
||||
},
|
||||
{
|
||||
"id": 12,
|
||||
"size": 2324,
|
||||
"file": "module_012.js",
|
||||
"keywords": [
|
||||
"verify",
|
||||
"ticket"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 13,
|
||||
"size": 920,
|
||||
"file": "module_013.js",
|
||||
"keywords": [
|
||||
"verify"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 14,
|
||||
"size": 1034,
|
||||
"file": "module_014.js",
|
||||
"keywords": []
|
||||
},
|
||||
{
|
||||
"id": 15,
|
||||
"size": 23392,
|
||||
"file": "module_015.js",
|
||||
"keywords": [
|
||||
"pow"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 16,
|
||||
"size": 81616,
|
||||
"file": "module_016.js",
|
||||
"keywords": [
|
||||
"verify"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 17,
|
||||
"size": 669,
|
||||
"file": "module_017.js",
|
||||
"keywords": [
|
||||
"verify",
|
||||
"ticket"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 18,
|
||||
"size": 286,
|
||||
"file": "module_018.js",
|
||||
"keywords": []
|
||||
},
|
||||
{
|
||||
"id": 19,
|
||||
"size": 5146,
|
||||
"file": "module_019.js",
|
||||
"keywords": [
|
||||
"verify",
|
||||
"tdc",
|
||||
"getsig",
|
||||
"prehandle"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 20,
|
||||
"size": 447,
|
||||
"file": "module_020.js",
|
||||
"keywords": []
|
||||
},
|
||||
{
|
||||
"id": 21,
|
||||
"size": 1911,
|
||||
"file": "module_021.js",
|
||||
"keywords": [
|
||||
"verify"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 22,
|
||||
"size": 3537,
|
||||
"file": "module_022.js",
|
||||
"keywords": [
|
||||
"verify"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 23,
|
||||
"size": 2783,
|
||||
"file": "module_023.js",
|
||||
"keywords": [
|
||||
"prehandle"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 24,
|
||||
"empty": true
|
||||
},
|
||||
{
|
||||
"id": 25,
|
||||
"size": 991,
|
||||
"file": "module_025.js",
|
||||
"keywords": []
|
||||
},
|
||||
{
|
||||
"id": 26,
|
||||
"size": 5018,
|
||||
"file": "module_026.js",
|
||||
"keywords": []
|
||||
},
|
||||
{
|
||||
"id": 27,
|
||||
"size": 2361,
|
||||
"file": "module_027.js",
|
||||
"keywords": [
|
||||
"verify"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 28,
|
||||
"size": 1510,
|
||||
"file": "module_028.js",
|
||||
"keywords": [
|
||||
"verify",
|
||||
"prehandle"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 29,
|
||||
"size": 1526,
|
||||
"file": "module_029.js",
|
||||
"keywords": [
|
||||
"verify",
|
||||
"prehandle"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 30,
|
||||
"empty": true
|
||||
},
|
||||
{
|
||||
"id": 31,
|
||||
"empty": true
|
||||
},
|
||||
{
|
||||
"id": 32,
|
||||
"empty": true
|
||||
},
|
||||
{
|
||||
"id": 33,
|
||||
"empty": true
|
||||
},
|
||||
{
|
||||
"id": 34,
|
||||
"empty": true
|
||||
},
|
||||
{
|
||||
"id": 35,
|
||||
"empty": true
|
||||
},
|
||||
{
|
||||
"id": 36,
|
||||
"empty": true
|
||||
},
|
||||
{
|
||||
"id": 37,
|
||||
"empty": true
|
||||
},
|
||||
{
|
||||
"id": 38,
|
||||
"empty": true
|
||||
},
|
||||
{
|
||||
"id": 39,
|
||||
"size": 1065,
|
||||
"file": "module_039.js",
|
||||
"keywords": []
|
||||
},
|
||||
{
|
||||
"id": 40,
|
||||
"empty": true
|
||||
},
|
||||
{
|
||||
"id": 41,
|
||||
"empty": true
|
||||
},
|
||||
{
|
||||
"id": 42,
|
||||
"size": 666,
|
||||
"file": "module_042.js",
|
||||
"keywords": []
|
||||
},
|
||||
{
|
||||
"id": 43,
|
||||
"size": 443,
|
||||
"file": "module_043.js",
|
||||
"keywords": [
|
||||
"verify"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 44,
|
||||
"size": 1430,
|
||||
"file": "module_044.js",
|
||||
"keywords": [
|
||||
"verify"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 45,
|
||||
"empty": true
|
||||
},
|
||||
{
|
||||
"id": 46,
|
||||
"empty": true
|
||||
},
|
||||
{
|
||||
"id": 47,
|
||||
"size": 1244,
|
||||
"file": "module_047.js",
|
||||
"keywords": []
|
||||
},
|
||||
{
|
||||
"id": 48,
|
||||
"size": 4185,
|
||||
"file": "module_048.js",
|
||||
"keywords": []
|
||||
},
|
||||
{
|
||||
"id": 49,
|
||||
"empty": true
|
||||
},
|
||||
{
|
||||
"id": 50,
|
||||
"empty": true
|
||||
},
|
||||
{
|
||||
"id": 51,
|
||||
"empty": true
|
||||
},
|
||||
{
|
||||
"id": 52,
|
||||
"empty": true
|
||||
},
|
||||
{
|
||||
"id": 53,
|
||||
"size": 13636,
|
||||
"file": "module_053.js",
|
||||
"keywords": [
|
||||
"verify"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 54,
|
||||
"empty": true
|
||||
},
|
||||
{
|
||||
"id": 55,
|
||||
"empty": true
|
||||
},
|
||||
{
|
||||
"id": 56,
|
||||
"empty": true
|
||||
},
|
||||
{
|
||||
"id": 57,
|
||||
"empty": true
|
||||
},
|
||||
{
|
||||
"id": 58,
|
||||
"empty": true
|
||||
},
|
||||
{
|
||||
"id": 59,
|
||||
"empty": true
|
||||
},
|
||||
{
|
||||
"id": 60,
|
||||
"empty": true
|
||||
},
|
||||
{
|
||||
"id": 61,
|
||||
"empty": true
|
||||
},
|
||||
{
|
||||
"id": 62,
|
||||
"empty": true
|
||||
},
|
||||
{
|
||||
"id": 63,
|
||||
"empty": true
|
||||
},
|
||||
{
|
||||
"id": 64,
|
||||
"empty": true
|
||||
},
|
||||
{
|
||||
"id": 65,
|
||||
"size": 713,
|
||||
"file": "module_065.js",
|
||||
"keywords": []
|
||||
},
|
||||
{
|
||||
"id": 66,
|
||||
"size": 10159,
|
||||
"file": "module_066.js",
|
||||
"keywords": [
|
||||
"verify",
|
||||
"pow"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 67,
|
||||
"size": 4071,
|
||||
"file": "module_067.js",
|
||||
"keywords": []
|
||||
},
|
||||
{
|
||||
"id": 68,
|
||||
"size": 825,
|
||||
"file": "module_068.js",
|
||||
"keywords": []
|
||||
},
|
||||
{
|
||||
"id": 69,
|
||||
"size": 426,
|
||||
"file": "module_069.js",
|
||||
"keywords": []
|
||||
},
|
||||
{
|
||||
"id": 70,
|
||||
"empty": true
|
||||
},
|
||||
{
|
||||
"id": 71,
|
||||
"empty": true
|
||||
},
|
||||
{
|
||||
"id": 72,
|
||||
"empty": true
|
||||
},
|
||||
{
|
||||
"id": 73,
|
||||
"empty": true
|
||||
},
|
||||
{
|
||||
"id": 74,
|
||||
"empty": true
|
||||
},
|
||||
{
|
||||
"id": 75,
|
||||
"empty": true
|
||||
},
|
||||
{
|
||||
"id": 76,
|
||||
"empty": true
|
||||
},
|
||||
{
|
||||
"id": 77,
|
||||
"empty": true
|
||||
},
|
||||
{
|
||||
"id": 78,
|
||||
"empty": true
|
||||
},
|
||||
{
|
||||
"id": 79,
|
||||
"empty": true
|
||||
},
|
||||
{
|
||||
"id": 80,
|
||||
"empty": true
|
||||
},
|
||||
{
|
||||
"id": 81,
|
||||
"empty": true
|
||||
},
|
||||
{
|
||||
"id": 82,
|
||||
"empty": true
|
||||
},
|
||||
{
|
||||
"id": 83,
|
||||
"empty": true
|
||||
},
|
||||
{
|
||||
"id": 84,
|
||||
"empty": true
|
||||
},
|
||||
{
|
||||
"id": 85,
|
||||
"empty": true
|
||||
},
|
||||
{
|
||||
"id": 86,
|
||||
"size": 10832,
|
||||
"file": "module_086.js",
|
||||
"keywords": [
|
||||
"verify"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 87,
|
||||
"size": 1110,
|
||||
"file": "module_087.js",
|
||||
"keywords": []
|
||||
},
|
||||
{
|
||||
"id": 88,
|
||||
"size": 3631,
|
||||
"file": "module_088.js",
|
||||
"keywords": []
|
||||
},
|
||||
{
|
||||
"id": 89,
|
||||
"size": 6698,
|
||||
"file": "module_089.js",
|
||||
"keywords": []
|
||||
},
|
||||
{
|
||||
"id": 90,
|
||||
"size": 10256,
|
||||
"file": "module_090.js",
|
||||
"keywords": [
|
||||
"verify",
|
||||
"prehandle"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 91,
|
||||
"size": 141,
|
||||
"file": "module_091.js",
|
||||
"keywords": []
|
||||
},
|
||||
{
|
||||
"id": 92,
|
||||
"size": 627,
|
||||
"file": "module_092.js",
|
||||
"keywords": []
|
||||
},
|
||||
{
|
||||
"id": 93,
|
||||
"size": 141,
|
||||
"file": "module_093.js",
|
||||
"keywords": []
|
||||
},
|
||||
{
|
||||
"id": 94,
|
||||
"size": 1265,
|
||||
"file": "module_094.js",
|
||||
"keywords": [
|
||||
"verify"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 95,
|
||||
"empty": true
|
||||
},
|
||||
{
|
||||
"id": 96,
|
||||
"empty": true
|
||||
},
|
||||
{
|
||||
"id": 97,
|
||||
"empty": true
|
||||
},
|
||||
{
|
||||
"id": 98,
|
||||
"empty": true
|
||||
},
|
||||
{
|
||||
"id": 99,
|
||||
"empty": true
|
||||
},
|
||||
{
|
||||
"id": 100,
|
||||
"empty": true
|
||||
},
|
||||
{
|
||||
"id": 101,
|
||||
"empty": true
|
||||
},
|
||||
{
|
||||
"id": 102,
|
||||
"empty": true
|
||||
},
|
||||
{
|
||||
"id": 103,
|
||||
"empty": true
|
||||
},
|
||||
{
|
||||
"id": 104,
|
||||
"empty": true
|
||||
},
|
||||
{
|
||||
"id": 105,
|
||||
"empty": true
|
||||
},
|
||||
{
|
||||
"id": 106,
|
||||
"empty": true
|
||||
},
|
||||
{
|
||||
"id": 107,
|
||||
"empty": true
|
||||
},
|
||||
{
|
||||
"id": 108,
|
||||
"empty": true
|
||||
},
|
||||
{
|
||||
"id": 109,
|
||||
"empty": true
|
||||
},
|
||||
{
|
||||
"id": 110,
|
||||
"empty": true
|
||||
},
|
||||
{
|
||||
"id": 111,
|
||||
"empty": true
|
||||
},
|
||||
{
|
||||
"id": 112,
|
||||
"empty": true
|
||||
},
|
||||
{
|
||||
"id": 113,
|
||||
"empty": true
|
||||
},
|
||||
{
|
||||
"id": 114,
|
||||
"empty": true
|
||||
},
|
||||
{
|
||||
"id": 115,
|
||||
"empty": true
|
||||
},
|
||||
{
|
||||
"id": 116,
|
||||
"empty": true
|
||||
},
|
||||
{
|
||||
"id": 117,
|
||||
"empty": true
|
||||
},
|
||||
{
|
||||
"id": 118,
|
||||
"empty": true
|
||||
},
|
||||
{
|
||||
"id": 119,
|
||||
"empty": true
|
||||
},
|
||||
{
|
||||
"id": 120,
|
||||
"size": 13196,
|
||||
"file": "module_120.js",
|
||||
"keywords": [
|
||||
"verify",
|
||||
"collect",
|
||||
"prehandle",
|
||||
"subcapclass",
|
||||
"ticket"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 121,
|
||||
"size": 20314,
|
||||
"file": "module_121.js",
|
||||
"keywords": [
|
||||
"verify",
|
||||
"prehandle",
|
||||
"subcapclass",
|
||||
"ticket"
|
||||
]
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,194 @@
|
||||
function (e, t, i) {
|
||||
"use strict";
|
||||
|
||||
var a = this && this.__importDefault || function (e) {
|
||||
return e && e.__esModule ? e : {
|
||||
"default": e
|
||||
};
|
||||
};
|
||||
t.__esModule = !0, t.setScaleWidth = t.changeDomVisibility = t.domParserHtml = t.setVoiceOverFocus = t.bodyAriaHidden = t.addAriaModel = t.isTouchEventSupported = t.supportsPassive = t.isWindow = t.getWindow = t.getOffset = t.isDarkMode = t.shakeEl = t.addOnceAnimationClass = t.animationEndName = t.removeDomClass = t.addDomClass = t.setCss = t.getCSS = t.supportsCSS = t.createGeneralIframe = void 0;
|
||||
var r = i(3),
|
||||
n = a(i(20)),
|
||||
o = i(21),
|
||||
s = a(i(8)),
|
||||
c = i(4);
|
||||
t.createGeneralIframe = function (e) {
|
||||
var t = document.createElement("div");
|
||||
(null === e || void 0 === e ? void 0 : e.name) ? t.innerHTML = '<iframe name="'.concat(null === e || void 0 === e ? void 0 : e.name, '" />') : t.innerHTML = "<iframe />";
|
||||
var i = t.childNodes[0];
|
||||
return (null === e || void 0 === e ? void 0 : e.id) && (i.id = e.id), (null === e || void 0 === e ? void 0 : e.className) && (i.className = e.className), i.setAttribute("frameborder", "0"), i.setAttribute("border", "0"), i.setAttribute("marginheight", "0"), i.setAttribute("marginwidth", "0"), i.setAttribute("scrolling", "no"), i;
|
||||
};
|
||||
t.supportsCSS = function (e, t) {
|
||||
var i = document.createElement("div");
|
||||
return e in i.style && "length" !== e && "parentRule" !== e && (i.style[e] = t, i.style[e] === t);
|
||||
};
|
||||
t.getCSS = function (e, t) {
|
||||
return e.currentStyle ? e.currentStyle[t] : window.getComputedStyle(e, null)[t];
|
||||
};
|
||||
t.setCss = function (e, t) {
|
||||
if (e && t && (0, r.isObject)(t)) {
|
||||
for (var i in t) try {
|
||||
e.style[i] = t[i];
|
||||
} catch (a) {}
|
||||
return t;
|
||||
}
|
||||
};
|
||||
t.addDomClass = function (e, t) {
|
||||
if (e) if (e.classList) e.classList.add(t);else {
|
||||
var i = e.className,
|
||||
a = i + ("" !== i ? " " : "") + t;
|
||||
e.className = a;
|
||||
}
|
||||
};
|
||||
t.removeDomClass = function (e, t) {
|
||||
if (e && t) for (var i = t.split(" "), a = 0; a < i.length; a++) if (e.classList) e.classList.remove(i[a]);else {
|
||||
var r = " ".concat(e.className, " "),
|
||||
n = (r = r.replace(/(\s+)/gi, " ")).replace(" ".concat(i[a], " "), " ");
|
||||
n = n.replace(/(^\s+)|(\s+$)/g, ""), e.className = n;
|
||||
}
|
||||
}, t.animationEndName = function () {
|
||||
var e,
|
||||
t = document.createElement("fake"),
|
||||
i = {
|
||||
animation: "animationend",
|
||||
mozAnimation: "mozAnimationEnd",
|
||||
webkitAnimation: "webkitAnimationEnd"
|
||||
};
|
||||
for (e in i) if (t.style[e] !== undefined) return i[e];
|
||||
return !1;
|
||||
}();
|
||||
t.addOnceAnimationClass = function (e) {
|
||||
var i = e.el,
|
||||
a = e.className,
|
||||
o = e.callback,
|
||||
s = e.duration;
|
||||
s || (s = 400), (0, r.isArray)(i) || (i = [i]);
|
||||
for (var c = 0; c < i.length; c++) {
|
||||
var d = i[c];
|
||||
(0, t.addDomClass)(d, a);
|
||||
}
|
||||
var l = !1,
|
||||
u = function () {
|
||||
if (!l) {
|
||||
l = !0, (0, r.isArray)(i) || (i = [i]);
|
||||
for (var e = 0; e < i.length; e++) {
|
||||
var s = i[e];
|
||||
(0, t.removeDomClass)(s, a);
|
||||
}
|
||||
o(), t.animationEndName && n["default"].remove(i[0], t.animationEndName, u);
|
||||
}
|
||||
};
|
||||
t.animationEndName ? (n["default"].add(i[0], t.animationEndName, u), setTimeout(u, s)) : setTimeout(u, s);
|
||||
};
|
||||
t.shakeEl = function (e, i, a) {
|
||||
void 0 === a && (a = "shake"), (0, t.addOnceAnimationClass)({
|
||||
el: e,
|
||||
className: a,
|
||||
callback: i
|
||||
});
|
||||
};
|
||||
function d(e) {
|
||||
return l(e) ? e : 9 === e.nodeType && (e.defaultView || e.parentWindow);
|
||||
}
|
||||
function l(e) {
|
||||
return null != e && e == e.window;
|
||||
}
|
||||
t.isDarkMode = function () {
|
||||
var e;
|
||||
return null === (e = window.matchMedia) || void 0 === e ? void 0 : e.call(window, "(prefers-color-scheme: dark)").matches;
|
||||
}, t.getOffset = function (e) {
|
||||
var t,
|
||||
i,
|
||||
a = {
|
||||
top: 0,
|
||||
left: 0
|
||||
},
|
||||
r = null === e || void 0 === e ? void 0 : e.ownerDocument;
|
||||
if (r) {
|
||||
t = r.documentElement, "undefined" != typeof e.getBoundingClientRect && (a = e.getBoundingClientRect());
|
||||
var n = 0,
|
||||
o = 0;
|
||||
return (i = d(r)) && (n = (i.pageYOffset || t.scrollTop) - (t.clientTop || 0), o = (i.pageXOffset || t.scrollLeft) - (t.clientLeft || 0)), {
|
||||
top: a.top + n,
|
||||
left: a.left + o
|
||||
};
|
||||
}
|
||||
}, t.getWindow = d, t.isWindow = l, t.supportsPassive = function () {
|
||||
var e = !1;
|
||||
try {
|
||||
var t = Object.defineProperty({}, "passive", {
|
||||
get: function () {
|
||||
e = !0;
|
||||
}
|
||||
});
|
||||
window.addEventListener("testPassive", null, t), window.removeEventListener("testPassive", null, t);
|
||||
} catch (i) {}
|
||||
return e;
|
||||
}(), t.isTouchEventSupported = function () {
|
||||
return "ontouchstart" in document.createElement("div");
|
||||
}, t.addAriaModel = function (e) {
|
||||
try {
|
||||
e.setAttribute("role", "dialog"), e.setAttribute("aria-modal", "true"), e.setAttribute("aria-label", "\u9a8c\u8bc1\u7801");
|
||||
} catch (t) {}
|
||||
}, t.bodyAriaHidden = {
|
||||
hide: function () {
|
||||
try {
|
||||
document.getElementById("tcaptcha_transform_dy").setAttribute("aria-hidden", "true");
|
||||
} catch (e) {}
|
||||
},
|
||||
unhide: function () {
|
||||
try {
|
||||
document.getElementById("tcaptcha_transform_dy").setAttribute("aria-hidden", "false");
|
||||
} catch (e) {}
|
||||
}
|
||||
}, t.setVoiceOverFocus = function (e) {
|
||||
if (e) {
|
||||
e.blur();
|
||||
var t = 0,
|
||||
i = window.setInterval(function () {
|
||||
e.focus(), (t += 1) >= 10 && window.clearInterval(i);
|
||||
}, 10);
|
||||
}
|
||||
};
|
||||
t.domParserHtml = function (e, t) {
|
||||
var i;
|
||||
try {
|
||||
if ("undefined" != typeof DOMParser) return (i = new DOMParser().parseFromString(e, "text/html")).getElementById(t);
|
||||
if (window.cap$JQ) return i = window.cap$JQ.parseHTML(e), window.cap$JQ(i).filter("#".concat(t))[0];
|
||||
} catch (r) {
|
||||
var a = document.createElement("div");
|
||||
return a.innerHTML = e, a.querySelector("#".concat(t));
|
||||
}
|
||||
return null;
|
||||
};
|
||||
t.changeDomVisibility = function (e, t) {
|
||||
(e instanceof HTMLElement ? window.cap$JQ(e) : e).css({
|
||||
display: t
|
||||
});
|
||||
};
|
||||
t.setScaleWidth = function (e) {
|
||||
var i = document.getElementById("tcaptcha_transform_dy"),
|
||||
a = e || {},
|
||||
r = a.scaleDom,
|
||||
n = void 0 === r ? i : r,
|
||||
d = a.dWidth,
|
||||
l = void 0 === d ? o.DEFAULT_WH_SIZE.width : d,
|
||||
u = a.dHeight,
|
||||
p = void 0 === u ? o.DEFAULT_WH_SIZE.height : u,
|
||||
f = a.type,
|
||||
h = window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth,
|
||||
m = window.innerHeight || document.documentElement.clientHeight || document.body.clientHeight,
|
||||
g = m;
|
||||
f && "full" === f && (h = Math.min(h, o.DEFAULT_WH_SIZE.width), m = Math.min(m, o.DEFAULT_WH_SIZE.height));
|
||||
var v = s["default"].isHorizontalNew(),
|
||||
y = l > h ? h : l;
|
||||
v && (y = m);
|
||||
var _ = h / l,
|
||||
b = m / p;
|
||||
!v && h - l <= o.BASE_WIDTH_THRESHOLD && (y -= o.BASE_WIDTH_THRESHOLD), f && "full" === f && h - l <= o.FULL_WIDTH_THRESHOLD && (y -= v && g < 400 ? 4 * o.FULL_WIDTH_THRESHOLD : o.FULL_WIDTH_THRESHOLD);
|
||||
var w = v ? b * o.HORIZONTAL_SCALE : _;
|
||||
y = Math.min(y, l), w = Math.min(w, 1), w = Math.max(w, o.MIN_SCALE_RATIO);
|
||||
var E = Math.max(y * w, o.MIN_SCALE_WIDTH);
|
||||
n && (n.style.width = "".concat(E, "px")), i && ((0, t.removeDomClass)(i, "".concat(c.domClass.frame360, " ").concat(c.domClass.frame320)), h < 320 || m < 320 ? (0, t.addDomClass)(i, c.domClass.frame320) : (h < 360 || m < 360) && (0, t.addDomClass)(i, c.domClass.frame360));
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,192 @@
|
||||
function (e, t, i) {
|
||||
"use strict";
|
||||
|
||||
var a = this && this.__values || function (e) {
|
||||
var t = "function" == typeof Symbol && Symbol.iterator,
|
||||
i = t && e[t],
|
||||
a = 0;
|
||||
if (i) return i.call(e);
|
||||
if (e && "number" == typeof e.length) return {
|
||||
next: function () {
|
||||
return e && a >= e.length && (e = void 0), {
|
||||
value: e && e[a++],
|
||||
done: !e
|
||||
};
|
||||
}
|
||||
};
|
||||
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
||||
},
|
||||
r = this && this.__importDefault || function (e) {
|
||||
return e && e.__esModule ? e : {
|
||||
"default": e
|
||||
};
|
||||
};
|
||||
t.__esModule = !0, t.pxToRem = t.loadExternalCSS = t.isLowIE = t.isIos = t.getIEVersion = t.getLatestPrehandleSpeed = t.hashCode = t.debounce = t.getPerformance = t.getLogCommonParams = t.getDeviceInfo = t.getTokenID = void 0;
|
||||
var n = r(i(15));
|
||||
function o() {
|
||||
try {
|
||||
var e = function (e) {
|
||||
var t = "";
|
||||
try {
|
||||
t = document.cookie;
|
||||
} catch (s) {}
|
||||
var i,
|
||||
a = encodeURIComponent(e),
|
||||
r = t.indexOf(a),
|
||||
n = null;
|
||||
if (r > -1) {
|
||||
var o = t.indexOf(";", r);
|
||||
-1 === o && (o = t.length), n = decodeURIComponent(t.substring(r + a.length + 1, o));
|
||||
}
|
||||
try {
|
||||
window.localStorage && (i = localStorage.getItem(e)), window.sessionStorage && (i = i || sessionStorage.getItem(e));
|
||||
} catch (c) {}
|
||||
return i || n;
|
||||
}("TDC_itoken");
|
||||
if (e) return e.split(":")[0];
|
||||
} catch (t) {
|
||||
return undefined;
|
||||
}
|
||||
return undefined;
|
||||
}
|
||||
function s() {
|
||||
var e = new n["default"](navigator.userAgent);
|
||||
return {
|
||||
platform: e.getOS().name,
|
||||
client: e.getBrowser().name
|
||||
};
|
||||
}
|
||||
t.getTokenID = o, t.getDeviceInfo = s, t.getLogCommonParams = function () {
|
||||
try {
|
||||
var e = document.referrer || "unknown",
|
||||
t = location.href || document.URL,
|
||||
i = navigator.userAgent;
|
||||
e = e.length > 512 ? e.substr(0, 512) : e, t = t.length > 1024 ? t.substr(0, 1024) : t;
|
||||
var a = s(),
|
||||
r = a.client,
|
||||
n = a.platform;
|
||||
return ["referer=".concat(encodeURIComponent(e)), "href=".concat(encodeURIComponent(t)), "token_id=".concat(o()), "ua=".concat(i), "client=".concat(r), "platform=".concat(n)];
|
||||
} catch (c) {
|
||||
return t = (t = c.message).length > 1024 ? t.substr(0, 1024) : t, ["href=".concat(encodeURIComponent(t))];
|
||||
}
|
||||
};
|
||||
t.getPerformance = function (e) {
|
||||
var t, i;
|
||||
if (window.performance && "function" == typeof window.performance.getEntriesByType) {
|
||||
var r = [],
|
||||
n = {},
|
||||
o = window.performance.getEntriesByType("resource"),
|
||||
s = ["xmlhttprequest", "script", "iframe", "img", "link"];
|
||||
try {
|
||||
for (var c = a(o), d = c.next(); !d.done; d = c.next()) {
|
||||
var l = d.value;
|
||||
if (-1 !== s.indexOf(l.initiatorType)) {
|
||||
var u = "";
|
||||
try {
|
||||
u = l.name.split("://")[1].split("?")[0];
|
||||
} catch (f) {}
|
||||
/cap_monitor/.test(l.name) || e.test(l.name) && (n[u] = {
|
||||
name: u,
|
||||
duration: Math.floor(l.duration)
|
||||
});
|
||||
}
|
||||
}
|
||||
} catch (h) {
|
||||
t = {
|
||||
error: h
|
||||
};
|
||||
} finally {
|
||||
try {
|
||||
d && !d.done && (i = c["return"]) && i.call(c);
|
||||
} finally {
|
||||
if (t) throw t.error;
|
||||
}
|
||||
}
|
||||
for (var p in n) Object.prototype.hasOwnProperty.call(n, p) && r.push(n[p]);
|
||||
return r;
|
||||
}
|
||||
return [];
|
||||
};
|
||||
t.debounce = function (e, t) {
|
||||
var i;
|
||||
return function () {
|
||||
for (var a = this, r = [], n = 0; n < arguments.length; n++) r[n] = arguments[n];
|
||||
clearTimeout(i), i = setTimeout(function () {
|
||||
e.apply(a, r);
|
||||
}, t);
|
||||
};
|
||||
};
|
||||
t.hashCode = function (e) {
|
||||
void 0 === e && (e = "");
|
||||
var t,
|
||||
i = 0;
|
||||
if (0 === e.length) return i;
|
||||
for (t = 0; t < e.length; t++) i = (i << 5) - i + e.charCodeAt(t), i |= 0;
|
||||
return i;
|
||||
}, t.getLatestPrehandleSpeed = function (e) {
|
||||
for (var t = e.length - 1; t >= 0; t--) {
|
||||
var i = e[t];
|
||||
if (i.name.match(/cap_union_prehandle/)) return i;
|
||||
}
|
||||
return null;
|
||||
};
|
||||
t.getIEVersion = function () {
|
||||
var e = navigator.userAgent,
|
||||
t = e.indexOf("compatible") > -1 && e.indexOf("MSIE") > -1,
|
||||
i = e.indexOf("Trident") > -1 && e.indexOf("rv:11.0") > -1;
|
||||
if (t) {
|
||||
new RegExp("MSIE (\\d+\\.\\d+);").test(e);
|
||||
var a = parseFloat(RegExp.$1);
|
||||
return 7 === a ? 7 : 8 === a ? 8 : 9 === a ? 9 : 10 === a ? 10 : 6;
|
||||
}
|
||||
return i ? 11 : -1;
|
||||
};
|
||||
t.isIos = function () {
|
||||
return !!/iphone|ipad|ipod/gi.test(navigator.userAgent);
|
||||
};
|
||||
t.isLowIE = function (e) {
|
||||
var t,
|
||||
i,
|
||||
a = e || 8,
|
||||
r = navigator.userAgent.toLowerCase();
|
||||
if (r.indexOf("msie") > -1) {
|
||||
if (t = parseInt(r.match(/msie ([\d.]+)/)[1], 10), i = document.documentMode, t && t <= a) return !0;
|
||||
if (i && i < 9) return !0;
|
||||
}
|
||||
return !1;
|
||||
};
|
||||
t.loadExternalCSS = function (e, i) {
|
||||
void 0 === i && (i = 0);
|
||||
var a = e.src,
|
||||
r = e.fallbackSrc,
|
||||
n = e.onError,
|
||||
o = e.onSuccess,
|
||||
s = e.attempts,
|
||||
c = void 0 === s ? 3 : s,
|
||||
d = document.createElement("link"),
|
||||
l = document.head || document.getElementsByTagName("head")[0];
|
||||
if (i > 0) {
|
||||
if (!r) return;
|
||||
d.href = r;
|
||||
} else d.href = a;
|
||||
d.type = "text/css", d.rel = "stylesheet";
|
||||
var u = null;
|
||||
d.onerror = function () {
|
||||
clearTimeout(u), function () {
|
||||
try {
|
||||
l && d && l.removeChild(d);
|
||||
} catch (e) {}
|
||||
}(), i >= c ? n() : (0, t.loadExternalCSS)(e, i + 1);
|
||||
}, d.onload = function () {
|
||||
clearTimeout(u), o();
|
||||
}, u = setTimeout(function () {
|
||||
d.onerror();
|
||||
}, 15e3), l.appendChild(d);
|
||||
};
|
||||
t.pxToRem = function (e, t) {
|
||||
var i, a;
|
||||
void 0 === t && (t = document.documentElement);
|
||||
var r = 30;
|
||||
return window.getComputedStyle !== undefined && (r = parseFloat(null !== (a = null === (i = getComputedStyle(t)) || void 0 === i ? void 0 : i.fontSize) && void 0 !== a ? a : 30)), e / r;
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,99 @@
|
||||
function (e, t, i) {
|
||||
"use strict";
|
||||
|
||||
t.__esModule = !0, t.convertUrlParamsToJson = t.expandCustomParams = t.addUrlParam = t.getQueryParam = t.getQueryMap = t.getQuery = t.cutUrl = t.getEntryUrl = t.getReferrer = t.getHref = void 0;
|
||||
var a = i(11);
|
||||
t.getHref = function () {
|
||||
var e = location.href || document.URL || "";
|
||||
return e.length > 256 ? "".concat(e.substr(0, 255), "*") : e;
|
||||
};
|
||||
t.getReferrer = function () {
|
||||
var e = document.referrer || "";
|
||||
return e.length > 256 ? "".concat(e.substr(0, 255), "*") : e;
|
||||
};
|
||||
t.getEntryUrl = function () {
|
||||
var e = (0, t.getHref)();
|
||||
try {
|
||||
if (e.indexOf("xui.ptlogin2.qq.com") > -1) {
|
||||
var i = e.match(/s_url=(.*?)&/);
|
||||
i && (e = decodeURIComponent(i[1]));
|
||||
}
|
||||
} catch (a) {}
|
||||
return e;
|
||||
};
|
||||
t.cutUrl = function (e) {
|
||||
if (e) {
|
||||
var t = e.indexOf("?");
|
||||
if (t > 0) return e.substring(0, t);
|
||||
}
|
||||
return e;
|
||||
};
|
||||
t.getQuery = function (e) {
|
||||
var t = e ? 1 : 0;
|
||||
try {
|
||||
return location.search.substr(t);
|
||||
} catch (r) {
|
||||
try {
|
||||
var i = document.URL,
|
||||
a = i.indexOf("?");
|
||||
if (a >= 0) return i.substr(a + t);
|
||||
} catch (r) {}
|
||||
}
|
||||
return "";
|
||||
};
|
||||
t.getQueryMap = function () {
|
||||
for (var e = {}, i = (0, t.getQuery)(!0).split("&"), a = 0; a < i.length; a++) {
|
||||
var r = /(.*?)=(.*)/.exec(i[a]);
|
||||
r && (e[r[1]] = r[2]);
|
||||
}
|
||||
return e;
|
||||
};
|
||||
t.getQueryParam = function (e) {
|
||||
return (0, t.getQueryMap)()[e];
|
||||
};
|
||||
var r = function (e, t, i) {
|
||||
if (-1 !== e.indexOf("?")) {
|
||||
var a = new RegExp("(\\?|&".concat(t, ")=[^&]*"));
|
||||
e = a.test(e) ? e.replace(a, "$1=".concat(i)) : "".concat(e, "&").concat(t, "=").concat(i);
|
||||
} else e = "".concat(e, "?").concat(t, "=").concat(i);
|
||||
return e;
|
||||
};
|
||||
t.addUrlParam = function (e, t) {
|
||||
var i;
|
||||
for (i in t) "undefined" != typeof t[i] && (e = r(e, encodeURIComponent(i), encodeURIComponent("".concat(t[i]))));
|
||||
return e;
|
||||
};
|
||||
t.expandCustomParams = function (e, i) {
|
||||
var r,
|
||||
n = e.userLanguage,
|
||||
o = e.forceLang,
|
||||
s = e.aidEncrypted,
|
||||
c = e.aidEncryptedType,
|
||||
d = e.aidEncryptedAad;
|
||||
return o && (r = {
|
||||
2052: "zh-cn",
|
||||
1028: "zh-hk",
|
||||
1033: "en"
|
||||
}[o]), n && "string" == typeof n ? i = (0, t.addUrlParam)(i, {
|
||||
userLanguage: (0, a.langTransform)(n)
|
||||
}) : r && "string" == typeof r && (i = (0, t.addUrlParam)(i, {
|
||||
userLanguage: (0, a.langTransform)(r)
|
||||
})), s && "string" == typeof s && (i = (0, t.addUrlParam)(i, {
|
||||
aidEncrypted: s
|
||||
})), c && "string" == typeof c && (i = (0, t.addUrlParam)(i, {
|
||||
aidEncryptedType: c
|
||||
})), d && "string" == typeof d && (i = (0, t.addUrlParam)(i, {
|
||||
aidEncryptedAad: d
|
||||
})), i;
|
||||
}, t.convertUrlParamsToJson = function (e) {
|
||||
var t = e.indexOf("?");
|
||||
if (-1 === t) return {};
|
||||
for (var i = e.substring(t + 1).split("&"), a = {}, r = 0; r < i.length; r++) {
|
||||
var n = i[r].split("="),
|
||||
o = decodeURIComponent(n[0]),
|
||||
s = decodeURIComponent(n[1] || "");
|
||||
a[o] = s;
|
||||
}
|
||||
return a;
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
function (e, t, i) {
|
||||
"use strict";
|
||||
|
||||
var a = this && this.__createBinding || (Object.create ? function (e, t, i, a) {
|
||||
a === undefined && (a = i);
|
||||
var r = Object.getOwnPropertyDescriptor(t, i);
|
||||
r && ("get" in r ? t.__esModule : !r.writable && !r.configurable) || (r = {
|
||||
enumerable: !0,
|
||||
get: function () {
|
||||
return t[i];
|
||||
}
|
||||
}), Object.defineProperty(e, a, r);
|
||||
} : function (e, t, i, a) {
|
||||
a === undefined && (a = i), e[a] = t[i];
|
||||
}),
|
||||
r = this && this.__exportStar || function (e, t) {
|
||||
for (var i in e) "default" === i || Object.prototype.hasOwnProperty.call(t, i) || a(t, e, i);
|
||||
};
|
||||
t.__esModule = !0, r(i(0), t), r(i(18), t), r(i(2), t), r(i(25), t), r(i(39), t), r(i(11), t), r(i(1), t), r(i(6), t), r(i(5), t);
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
function (e, t, i) {
|
||||
"use strict";
|
||||
|
||||
var a = this && this.__createBinding || (Object.create ? function (e, t, i, a) {
|
||||
a === undefined && (a = i);
|
||||
var r = Object.getOwnPropertyDescriptor(t, i);
|
||||
r && ("get" in r ? t.__esModule : !r.writable && !r.configurable) || (r = {
|
||||
enumerable: !0,
|
||||
get: function () {
|
||||
return t[i];
|
||||
}
|
||||
}), Object.defineProperty(e, a, r);
|
||||
} : function (e, t, i, a) {
|
||||
a === undefined && (a = i), e[a] = t[i];
|
||||
}),
|
||||
r = this && this.__exportStar || function (e, t) {
|
||||
for (var i in e) "default" === i || Object.prototype.hasOwnProperty.call(t, i) || a(t, e, i);
|
||||
};
|
||||
t.__esModule = !0, r(i(7), t), r(i(29), t), r(i(22), t);
|
||||
}
|
||||
@@ -0,0 +1,86 @@
|
||||
function (e, t, i) {
|
||||
"use strict";
|
||||
|
||||
function a(e, t) {
|
||||
try {
|
||||
if (window.localStorage) try {
|
||||
window.localStorage.setItem(e, t);
|
||||
} catch (i) {}
|
||||
} catch (i) {}
|
||||
try {
|
||||
if (window.sessionStorage) try {
|
||||
window.sessionStorage.setItem(e, t);
|
||||
} catch (i) {}
|
||||
} catch (i) {}
|
||||
}
|
||||
function r(e) {
|
||||
void 0 === e && (e = t.TK_ID_STORE_KEY);
|
||||
var i = null;
|
||||
try {
|
||||
if (window.localStorage) try {
|
||||
i = window.localStorage.getItem(e);
|
||||
} catch (a) {}
|
||||
} catch (a) {}
|
||||
if (!i) try {
|
||||
if (window.sessionStorage) try {
|
||||
i = window.sessionStorage.getItem(e);
|
||||
} catch (a) {}
|
||||
} catch (a) {}
|
||||
return i;
|
||||
}
|
||||
function n(e) {
|
||||
var t = "";
|
||||
return {
|
||||
getToken: function () {
|
||||
try {
|
||||
if (t) return t;
|
||||
var i = r(e);
|
||||
if (i) return t = i;
|
||||
var n = (o = Math.floor(1e9 * Math.random()) + Math.floor(1e9 * Math.random()), s = new Date().getTime() / 1e3 | 0, "".concat(o, ":").concat(s));
|
||||
return t = n, a(e, n), t;
|
||||
} catch (c) {
|
||||
return t || "";
|
||||
}
|
||||
var o, s;
|
||||
},
|
||||
getCacheShortId: function () {
|
||||
try {
|
||||
if (t) return t.split(":")[0];
|
||||
var i = r(e);
|
||||
if (i) return t = i, i.split(":")[0];
|
||||
} catch (a) {
|
||||
return undefined;
|
||||
}
|
||||
return undefined;
|
||||
},
|
||||
seedMemory: function (e) {
|
||||
try {
|
||||
e && !t && (t = e);
|
||||
} catch (i) {}
|
||||
}
|
||||
};
|
||||
}
|
||||
t.__esModule = !0, t.getV2CacheTcapToken = t.setV2CacheTcapToken = t.getV2TcapToken = t.seedTcapToken = t.getCacheTcapToken = t.getTcapToken = t.getSpiltCapToken = t.getStore = t.setStore = t.TK_ID_V2_STORE_KEY = t.TK_ID_STORE_KEY = void 0, t.TK_ID_STORE_KEY = "57b43dab5a6e", t.TK_ID_V2_STORE_KEY = "906fdc18f06e", t.setStore = a, t.getStore = r;
|
||||
var o = n(t.TK_ID_STORE_KEY),
|
||||
s = n(t.TK_ID_V2_STORE_KEY);
|
||||
t.getSpiltCapToken = function (e) {
|
||||
try {
|
||||
if (e) return e.split(":")[0];
|
||||
} catch (t) {
|
||||
return undefined;
|
||||
}
|
||||
return undefined;
|
||||
}, t.getTcapToken = function () {
|
||||
return o.getToken();
|
||||
}, t.getCacheTcapToken = function () {
|
||||
return o.getCacheShortId();
|
||||
}, t.seedTcapToken = function (e) {
|
||||
o.seedMemory(e);
|
||||
}, t.getV2TcapToken = function () {
|
||||
return s.getToken();
|
||||
}, t.setV2CacheTcapToken = function (e) {
|
||||
s.seedMemory(e);
|
||||
}, t.getV2CacheTcapToken = function () {
|
||||
return s.getCacheShortId();
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,48 @@
|
||||
function (e, t, i) {
|
||||
"use strict";
|
||||
|
||||
t.__esModule = !0, t.getScriptUrl = t.getScript = void 0, t.getScript = function a(e, t) {
|
||||
var i = 3,
|
||||
r = e.src,
|
||||
n = e.successCheck,
|
||||
o = e.success,
|
||||
s = e.error,
|
||||
c = e.crossOrigin,
|
||||
d = e.id,
|
||||
l = e.inHead ? document.getElementsByTagName("head").item(0) : document.getElementsByTagName("body").item(0),
|
||||
u = !1,
|
||||
p = document.createElement("script");
|
||||
function f(e) {
|
||||
if (!u) {
|
||||
var t = !1;
|
||||
e && "type" in e && (t = "load" === e.type), "readyState" in this && /^(loaded|complete)$/.test(this.readyState) && (t = !0), t && (!n || n() ? (m(), u = !0, null === o || void 0 === o || o()) : h());
|
||||
}
|
||||
}
|
||||
function h() {
|
||||
u || (m(), u = !0, (t = t || 1) >= i ? null === s || void 0 === s || s() : a({
|
||||
src: r,
|
||||
successCheck: n,
|
||||
success: o,
|
||||
error: s
|
||||
}, t + 1));
|
||||
}
|
||||
function m() {
|
||||
try {
|
||||
l && p && l.removeChild(p);
|
||||
} catch (s) {}
|
||||
}
|
||||
p.type = "text/javascript", p.async = !0, p.src = r, d && (p.id = d), c && p.setAttribute("crossorigin", c), "onload" in p ? p.onload = f : p.onreadystatechange = f, p.onerror = h, null === l || void 0 === l || l.appendChild(p);
|
||||
}, t.getScriptUrl = function () {
|
||||
try {
|
||||
throw new Error("check own domain");
|
||||
} catch (i) {
|
||||
var e = null === i || void 0 === i ? void 0 : i.stack;
|
||||
if (!e) return;
|
||||
var t = "".concat(e).match(/(https?:\/\/.*\.js)/);
|
||||
return {
|
||||
url: null === t || void 0 === t ? void 0 : t[1],
|
||||
stack: e
|
||||
};
|
||||
}
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
function (e, t, i) {
|
||||
"use strict";
|
||||
|
||||
t.__esModule = !0, t.cloudJQPath = t.rceRioDomain = t.intlFormalCdn = t.intlFormalDomain = t.chinaFormalCdn = t.chinaFormalDomain = t.isMobile = t.isWindows = t.isWxDevtools = t.isDev = void 0, t.isDev = !1, t.isWxDevtools = navigator.userAgent && /wechatdevtools/.test(navigator.userAgent), t.isWindows = /windows/i.test(navigator.userAgent), t.isMobile = !t.isWindows && ("ontouchstart" in window || "ontouchstart" in document.createElement("div") || t.isWxDevtools), t.chinaFormalDomain = "https://turing.captcha.qcloud.com", t.chinaFormalCdn = "https://turing.captcha.gtimg.com/1", t.intlFormalDomain = "https://ca.turing.captcha.qcloud.com", t.intlFormalCdn = "https://global.turing.captcha.gtimg.com", t.rceRioDomain = "https://rce.tencentrio.com", t.cloudJQPath = "https://cloudcache.tencentcs.com/qcloud/main/scripts/release/common/vendors/jquery-3.2.1.min.js";
|
||||
}
|
||||
@@ -0,0 +1,268 @@
|
||||
function (e, t, i) {
|
||||
"use strict";
|
||||
|
||||
var a = this && this.__importDefault || function (e) {
|
||||
return e && e.__esModule ? e : {
|
||||
"default": e
|
||||
};
|
||||
};
|
||||
t.__esModule = !0, t.getInternetExplorerVersion = void 0;
|
||||
var r = a(i(10)),
|
||||
n = Object.assign || r["default"],
|
||||
o = function (e) {
|
||||
return function (t) {
|
||||
return Object.prototype.toString.call(t) == "[object ".concat(e, "]");
|
||||
};
|
||||
},
|
||||
s = o("Object"),
|
||||
c = o("Function"),
|
||||
d = function () {
|
||||
return window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth;
|
||||
},
|
||||
l = function () {
|
||||
return window.innerHeight || document.documentElement.clientHeight || document.body.clientHeight;
|
||||
},
|
||||
u = function (e, t, i) {
|
||||
if (-1 != e.indexOf("?")) {
|
||||
var a = new RegExp("(\\?|&".concat(t, ")=[^&]*"));
|
||||
e = a.test(e) ? e.replace(a, "$1=".concat(i)) : "".concat(e, "&").concat(t, "=").concat(i);
|
||||
} else e = "".concat(e, "?").concat(t, "=").concat(i);
|
||||
return e;
|
||||
},
|
||||
p = function (e, t) {
|
||||
var i;
|
||||
return e.currentStyle ? e.currentStyle[t] : null === (i = document.defaultView) || void 0 === i ? void 0 : i.getComputedStyle(e, null)[t];
|
||||
},
|
||||
f = function (e, t) {
|
||||
if (e && t) {
|
||||
if (s(t)) {
|
||||
for (var i in t) e.style[i] = t[i];
|
||||
return t;
|
||||
}
|
||||
return p(e, t);
|
||||
}
|
||||
},
|
||||
h = /(iPhone|iPad|iPod|Android|ios|SymbianOS|Mobile)/i.test(navigator.userAgent),
|
||||
m = /chrome\/7[567]/i.test(navigator.userAgent),
|
||||
g = function () {
|
||||
var e,
|
||||
t,
|
||||
i = 1;
|
||||
if (document.querySelector) t = document.querySelector('meta[name="viewport"]');else for (var a = document.getElementsByTagName("meta"), r = 0, n = a.length; r < n; r++) {
|
||||
"viewport" == a[r].getAttribute("name") && (t = a[r]);
|
||||
}
|
||||
if (t) {
|
||||
var o = null === (e = t.getAttribute("content")) || void 0 === e ? void 0 : e.match(/initial-scale=([\d\.]+)/);
|
||||
o && (i = parseFloat(o[1]));
|
||||
}
|
||||
return i;
|
||||
},
|
||||
v = ["absolute", "fixed", "static", "relative"],
|
||||
y = !!window.ActiveXObject && 8 == document.documentMode;
|
||||
t.getInternetExplorerVersion = function () {
|
||||
var e = -1;
|
||||
if ("Microsoft Internet Explorer" == navigator.appName) {
|
||||
var t = navigator.userAgent;
|
||||
null != new RegExp("MSIE ([0-9]{1,}[.0-9]{0,})").exec(t) && (e = parseFloat(RegExp.$1));
|
||||
}
|
||||
return e;
|
||||
};
|
||||
t["default"] = {
|
||||
extend: n,
|
||||
isObject: s,
|
||||
isFunction: c,
|
||||
isHorizontal: function (e, t) {
|
||||
if ("number" == typeof window.orientation && "object" == typeof window.onorientationchange && (-90 == window.orientation || 90 == window.orientation)) return !0;
|
||||
if (e) {
|
||||
if (t.windowHeight < t.windowWidth) return !0;
|
||||
} else if (window.innerHeight < window.innerWidth) return !0;
|
||||
return !1;
|
||||
},
|
||||
isHorizontalNew: function () {
|
||||
return "number" == typeof window.orientation && "object" == typeof window.onorientationchange && (-90 == window.orientation || 90 == window.orientation) || window.innerHeight < window.innerWidth;
|
||||
},
|
||||
callbackExecutor: function (e, t) {
|
||||
e.closeSecurityCode(), setTimeout(function () {
|
||||
for (var i = 0, a = e.listenFunc.length; i < a; i++) try {
|
||||
e.listenFunc[i](t);
|
||||
} catch (r) {}
|
||||
}, 0);
|
||||
},
|
||||
addUrlParam: function (e, t) {
|
||||
for (var i in t) e = u(e, encodeURIComponent(i), encodeURIComponent(t[i]));
|
||||
return e;
|
||||
},
|
||||
removeIfExist: function (e) {
|
||||
for (var t, i = window.document.getElementById(e); i;) null === (t = i.parentNode) || void 0 === t || t.removeChild(i), i = window.document.getElementById(e);
|
||||
},
|
||||
createElement: function (e) {
|
||||
return document.createElement(e);
|
||||
},
|
||||
CSS: f,
|
||||
computeBaseFontSize: function () {
|
||||
var e = d(),
|
||||
t = l(),
|
||||
i = 0;
|
||||
"orientation" in window ? i = "string" == typeof window.orientation ? parseInt(window.orientation, 10) : window.orientation : screen && screen.orientation && (i = screen.orientation.angle);
|
||||
var a,
|
||||
r = (90 === Math.abs(i) ? t : e) / 375,
|
||||
n = g();
|
||||
return r = (r = 0 == n || 1 == n ? r > 1.3 ? 1.3 : r : n >= .5 ? r > 2 ? 2 : r : r > 3 ? 3 : r) < .85 ? .85 : r, a = Math.floor(1e4 * r) / 1e4 * 16, a = h ? a : 16;
|
||||
},
|
||||
isMobileUa: h,
|
||||
getWindowWidth: d,
|
||||
getWindowHeight: l,
|
||||
getParentScale: g,
|
||||
getPosStyle: function (e) {
|
||||
var t = "embed" == e.type ? "relative" : "absolute";
|
||||
if ("popup" == e.type && e.pos && e.pos.length > 0) for (var i = 0; i < v.length; i++) if (e.pos === v[i]) {
|
||||
t = e.pos;
|
||||
break;
|
||||
}
|
||||
return t;
|
||||
},
|
||||
getPosStyleNew: function (e, t) {
|
||||
var i = "embed" == e ? "relative" : "absolute";
|
||||
if ("popup" == e && t && t.length > 0) for (var a = 0; a < v.length; a++) if (t === v[a]) {
|
||||
i = t;
|
||||
break;
|
||||
}
|
||||
return i;
|
||||
},
|
||||
initColor: function (e) {
|
||||
var t = "#4886ff";
|
||||
if (e) {
|
||||
var i = decodeURIComponent(e);
|
||||
i && -1 == i.indexOf("#") && 6 == i.length && /^[0-9a-fA-F]{6}$/g.test(i) && (t = "#".concat(i));
|
||||
}
|
||||
return t;
|
||||
},
|
||||
getCSS: p,
|
||||
isIEVer: function (e) {
|
||||
var t = document.createElement("b");
|
||||
return t.innerHTML = "\x3c!--[if IE ".concat(e, "]><i></i><![endif]--\x3e"), t.getElementsByTagName("i") && 1 === t.getElementsByTagName("i").length;
|
||||
},
|
||||
getPos: function (e) {
|
||||
if ("undefined" != typeof e.offsetParent) {
|
||||
for (var t = 0, i = 0; e; e = e.offsetParent) {
|
||||
var a = p(e, "borderLeftWidth");
|
||||
a = a && a.indexOf("px") > -1 ? parseInt(a, 10) : 0;
|
||||
var r = p(e, "borderTopWidth");
|
||||
r = r && r.indexOf("px") > -1 ? parseInt(r, 10) : 0, y && (a = r = 0), t += e.offsetLeft + a, i += e.offsetTop + r;
|
||||
}
|
||||
return [t, i];
|
||||
}
|
||||
return [e.x, e.y];
|
||||
},
|
||||
getSize: function (e) {
|
||||
var t = f(e, "width"),
|
||||
i = f(e, "height");
|
||||
return [parseInt(t, 10), parseInt(i, 10)];
|
||||
},
|
||||
getScrollTop: function () {
|
||||
return document.documentElement.scrollTop || window.pageYOffset || document.body.scrollTop;
|
||||
},
|
||||
isLowIE: function () {
|
||||
var e,
|
||||
t,
|
||||
i = navigator.userAgent.toLowerCase(),
|
||||
a = i.indexOf("msie") > -1;
|
||||
if (a) {
|
||||
var r = i.match(/msie ([\d.]+)/);
|
||||
if (e = r ? r[1] : 8, t = a && document.documentMode, e && e <= 8) return !0;
|
||||
if (t && t < 9) return !0;
|
||||
}
|
||||
return !1;
|
||||
},
|
||||
getCapType: function (e, t) {
|
||||
e = parseInt(e, 10), t = parseInt(t, 10);
|
||||
var i = "defaultSize";
|
||||
if (0 != e && 1 != e || 0 != t) {
|
||||
if (1 == e || 2 == e) switch (t) {
|
||||
case 1:
|
||||
i = "click";
|
||||
break;
|
||||
case 4:
|
||||
i = "piece";
|
||||
break;
|
||||
case 7:
|
||||
i = "coordinate";
|
||||
break;
|
||||
case 8:
|
||||
i = "slide";
|
||||
break;
|
||||
case 9:
|
||||
i = "slidepuzzle";
|
||||
break;
|
||||
case 11:
|
||||
i = "vtt";
|
||||
break;
|
||||
case 12:
|
||||
i = "f_limit";
|
||||
break;
|
||||
case 10:
|
||||
case 13:
|
||||
case 14:
|
||||
i = "slidepuzzle_new";
|
||||
break;
|
||||
case 15:
|
||||
i = "slidepuzzle_opt";
|
||||
break;
|
||||
default:
|
||||
i = "defaultSize";
|
||||
}
|
||||
} else i = "char";
|
||||
return i;
|
||||
},
|
||||
getCaptchaType: function (e) {
|
||||
var t = parseInt(e, 10);
|
||||
if (t >= 1e3) return "dy";
|
||||
var i = "slidepuzzle_new";
|
||||
switch (t) {
|
||||
case 11:
|
||||
i = "vtt";
|
||||
break;
|
||||
case 10:
|
||||
case 13:
|
||||
case 14:
|
||||
i = "slidepuzzle_new";
|
||||
break;
|
||||
case 15:
|
||||
i = "slidepuzzle_opt";
|
||||
break;
|
||||
case 26:
|
||||
i = "drag";
|
||||
break;
|
||||
case 28:
|
||||
i = "dy";
|
||||
}
|
||||
return i;
|
||||
},
|
||||
setPopPosition: function (e, t, i, a) {
|
||||
var r = 0,
|
||||
n = 0,
|
||||
o = d(),
|
||||
s = l();
|
||||
return a && a.width || (r = Math.floor((s - i - 2) / 2), n = Math.floor((o - t - 2) / 2)), f(e, {
|
||||
top: "".concat(r, "px"),
|
||||
left: "".concat(n, "px"),
|
||||
width: "".concat(t, "px"),
|
||||
height: "".concat(i, "px")
|
||||
});
|
||||
},
|
||||
addClass: function (e, t) {
|
||||
var i = e.className,
|
||||
a = i + ("" != i ? " " : "") + t;
|
||||
e.className = a;
|
||||
},
|
||||
removeClass: function (e, t) {
|
||||
var i = " ".concat(e.className, " "),
|
||||
a = (i = i.replace(/(\s+)/gi, " ")).replace(" ".concat(t, " "), " ");
|
||||
a = a.replace(/(^\s+)|(\s+$)/g, ""), e.className = a;
|
||||
},
|
||||
isChrome75: m,
|
||||
isDarkMode: function () {
|
||||
return window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches;
|
||||
}
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
function (e, t) {
|
||||
(function (t) {
|
||||
e.exports = t;
|
||||
}).call(this, {});
|
||||
}
|
||||
@@ -0,0 +1,55 @@
|
||||
function (e, t, i) {
|
||||
"use strict";
|
||||
|
||||
var a = Object.prototype.hasOwnProperty,
|
||||
r = Object.prototype.toString,
|
||||
n = Object.defineProperty,
|
||||
o = Object.getOwnPropertyDescriptor,
|
||||
s = function (e) {
|
||||
return "function" == typeof Array.isArray ? Array.isArray(e) : "[object Array]" === r.call(e);
|
||||
},
|
||||
c = function (e) {
|
||||
if (!e || "[object Object]" !== r.call(e)) return !1;
|
||||
var t,
|
||||
i = a.call(e, "constructor"),
|
||||
n = e.constructor && e.constructor.prototype && a.call(e.constructor.prototype, "isPrototypeOf");
|
||||
if (e.constructor && !i && !n) return !1;
|
||||
for (t in e);
|
||||
return void 0 === t || a.call(e, t);
|
||||
},
|
||||
d = function (e, t) {
|
||||
n && "__proto__" === t.name ? n(e, t.name, {
|
||||
enumerable: !0,
|
||||
configurable: !0,
|
||||
value: t.newValue,
|
||||
writable: !0
|
||||
}) : e[t.name] = t.newValue;
|
||||
},
|
||||
l = function (e, t) {
|
||||
if ("__proto__" === t) {
|
||||
if (!a.call(e, t)) return;
|
||||
if (o) return o(e, t).value;
|
||||
}
|
||||
return e[t];
|
||||
};
|
||||
e.exports = function u() {
|
||||
var e,
|
||||
t,
|
||||
i,
|
||||
a,
|
||||
r,
|
||||
n,
|
||||
o = arguments[0],
|
||||
p = 1,
|
||||
f = arguments.length,
|
||||
h = !1;
|
||||
for ("boolean" == typeof o && (h = o, o = arguments[1] || {}, p = 2), (null == o || "object" != typeof o && "function" != typeof o) && (o = {}); p < f; ++p) if (null != (e = arguments[p])) for (t in e) i = l(o, t), o !== (a = l(e, t)) && (h && a && (c(a) || (r = s(a))) ? (r ? (r = !1, n = i && s(i) ? i : []) : n = i && c(i) ? i : {}, d(o, {
|
||||
name: t,
|
||||
newValue: u(h, n, a)
|
||||
})) : void 0 !== a && d(o, {
|
||||
name: t,
|
||||
newValue: a
|
||||
}));
|
||||
return o;
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
function (e, t, i) {
|
||||
"use strict";
|
||||
|
||||
t.__esModule = !0, t.langTransform = t.getWxLang = t.getBrowserLang = void 0;
|
||||
var a = i(2),
|
||||
r = i(13);
|
||||
function n() {
|
||||
var e = (0, a.getQuery)(),
|
||||
t = /(wehcat_real_lang|wechat_real_lang)=([a-zA-Z_-]+)/.exec(e);
|
||||
if (t) return t[2];
|
||||
for (var i = document.getElementsByTagName("script"), r = 0; r < i.length; r++) {
|
||||
var n = i[r].src;
|
||||
if (n && /TCapIframeApi/i.test(n)) {
|
||||
var o = /lang=([a-zA-Z_-]+)/.exec(n);
|
||||
if (o) return o[1].toLowerCase();
|
||||
}
|
||||
}
|
||||
return (0, a.getQueryParam)("wxLang") || "";
|
||||
}
|
||||
t.getBrowserLang = function () {
|
||||
var e = navigator.languages ? navigator.languages[0] : navigator.language || navigator.userLanguage || "";
|
||||
if (/MicroMessenger/.test(navigator.userAgent)) {
|
||||
var t = n();
|
||||
t && (e = t);
|
||||
}
|
||||
return e;
|
||||
}, t.getWxLang = n, t.langTransform = function (e) {
|
||||
var t = e.toLowerCase().replace(/_/, "-"),
|
||||
i = t;
|
||||
return /-/.test(i) && (i = i.split("-")[0]), r.all[t] ? t : i;
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,43 @@
|
||||
function (e, t, i) {
|
||||
"use strict";
|
||||
|
||||
function a(e, i, a) {
|
||||
return "trerror_".concat(t.ErrorCode[e], "_").concat(i, "_").concat(Math.floor(new Date().getTime() / 1e3)).concat(a ? "_".concat(a) : "");
|
||||
}
|
||||
function r() {
|
||||
return "@".concat(Math.random().toString(36).substr(2));
|
||||
}
|
||||
t.__esModule = !0, t.getRandStr = t.getErrorRes = t.getErrorTicket = t.ErrorTicketTypeEnum = t.ErrorCode = void 0, t.ErrorCode = {
|
||||
ENTRYJS_LOAD_ERROR: 1001,
|
||||
CAPTCHA_SHOW_TIMEOUT: 1002,
|
||||
FRAMEJS_LOAD_TIMEOUT: 1003,
|
||||
FRAMEJS_LOAD_ERROR: 1004,
|
||||
FRAMEJS_RUN_ERROR: 1005,
|
||||
GET_CAPTCHA_CONFIG_REQUEST_ERROR: 1006,
|
||||
PRE_TEMPLATE_LOAD_TIMEOUT: 1007,
|
||||
IFRAME_LOAD_TIMEOUT: 1008,
|
||||
LIB_JQ_LOAD_ERROR: 1009,
|
||||
CAPTCHA_JS_LOAD_ERROR: 1010,
|
||||
CAPTCHA_JS_RUN_ERROR: 1011,
|
||||
REFRESH_ERROR: 1012,
|
||||
VERIFY_ERROR: 1013,
|
||||
RCE_SERVER_ERROR: 1025,
|
||||
CAPTCHA_SERVER_ERROR: 1035,
|
||||
SERVICE_IS_NOT_AVAILABLE: 1045,
|
||||
RCE_PARAM_ERROR: 1050,
|
||||
LOAD_ERROR: 1055,
|
||||
LOW_IE: 1065,
|
||||
LOAD_LIB_ERROR: 1075,
|
||||
INVISIBLE_VERIFY_ERROR: 1085
|
||||
}, function (e) {
|
||||
e.INVISIBLE_VERIFY_ERROR = "INVISIBLE_VERIFY_ERROR", e.LOAD_LIB_ERROR = "LOAD_LIB_ERROR", e.LOW_IE = "LOW_IE", e.ENTRYJS_LOAD_ERROR = "ENTRYJS_LOAD_ERROR", e.CAPTCHA_SHOW_TIMEOUT = "CAPTCHA_SHOW_TIMEOUT", e.FRAMEJS_LOAD_TIMEOUT = "FRAMEJS_LOAD_TIMEOUT", e.FRAMEJS_LOAD_ERROR = "FRAMEJS_LOAD_ERROR", e.FRAMEJS_RUN_ERROR = "FRAMEJS_RUN_ERROR", e.GET_CAPTCHA_CONFIG_REQUEST_ERROR = "GET_CAPTCHA_CONFIG_REQUEST_ERROR", e.PRE_TEMPLATE_LOAD_TIMEOUT = "PRE_TEMPLATE_LOAD_TIMEOUT", e.IFRAME_LOAD_TIMEOUT = "IFRAME_LOAD_TIMEOUT", e.LIB_JQ_LOAD_ERROR = "LIB_JQ_LOAD_ERROR", e.CAPTCHA_JS_LOAD_ERROR = "CAPTCHA_JS_LOAD_ERROR", e.CAPTCHA_JS_RUN_ERROR = "CAPTCHA_JS_RUN_ERROR", e.REFRESH_ERROR = "REFRESH_ERROR", e.VERIFY_ERROR = "VERIFY_ERROR", e.RCE_SERVER_ERROR = "RCE_SERVER_ERROR", e.CAPTCHA_SERVER_ERROR = "CAPTCHA_SERVER_ERROR", e.SERVICE_IS_NOT_AVAILABLE = "SERVICE_IS_NOT_AVAILABLE", e.RCE_PARAM_ERROR = "RCE_PARAM_ERROR", e.LOAD_ERROR = "LOAD_ERROR";
|
||||
}(t.ErrorTicketTypeEnum || (t.ErrorTicketTypeEnum = {})), t.getErrorTicket = a, t.getErrorRes = function (e, i, n) {
|
||||
return {
|
||||
ret: 0,
|
||||
randstr: r(),
|
||||
ticket: a(e, i || "", n),
|
||||
errorCode: t.ErrorCode[e],
|
||||
errorMessage: e.toLowerCase()
|
||||
};
|
||||
}, t.getRandStr = r;
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
function (e, t, i) {
|
||||
"use strict";
|
||||
|
||||
t.__esModule = !0, t.all = t.keys = void 0;
|
||||
var a = i(16);
|
||||
t.keys = ["frame-verification", "frame-back", "frame-simple", "frame-standard", "frame-ok", "aria-verification-simple", "aria-verification-standard", "aria-close", "aria-standard", "aria-simple", "aria-feedback", "aria-refresh", "note-img-load-failed", "note-verify-success", "note-verify-timeout", "note-verify-failed", "note-verify-error", "note-verify-failed-max", "note-verify-default", "note-appid-region-wrong", "pre-play", "play-ing", "aria-audio-tip", "aria-slider", "aria-modal-captcha", "ai-watermark", "play-upper", "pause-upper", "audio-code-guide", "aria-audio-code-first", "aria-audio-code-second", "aria-audio-code-third", "aria-audio-code-fourth", "aria-audio-code-fifth", "aria-audio-code-sixth"], a.langs.iw = a.langs.he, a.langs["in"] = a.langs.id, a.langs.zh = a.langs["zh-cn"], t.all = a.langs;
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
function (e, t, i) {
|
||||
"use strict";
|
||||
|
||||
t.__esModule = !0, t.monitorSDKRegexList = t.envDomainRegexList = t.monitorErrorRegexList = t.miniAppRegexList = void 0, t.miniAppRegexList = [/wechatdevtools/i, /miniprogram/i, /toutiaomicroapp/i, /baiduboxapp/i, /swan/i, /quickapp/i, /QQ/i, /AlipayClient/i], t.monitorErrorRegexList = [/localhost:8302/, /captcha\.qq\.com/, /\.captcha\.qcloud\.com/, /captcha\.myqcloud\.com/, /captcha\.253\.com/, /t-captcha\.gjacky\.com/, /captcha\.gtimg\.com/, /turing-captcha\.testsite\.woa\.com/, /turing\.captcha\.qcloud\.com/, /turing\.captcha\.gtimg\.com/, /tcaptcha\-pre\.turing\.captcha\.qcloud\.com/], t.envDomainRegexList = [/turing-captcha\.testsite\.woa\.com/, /turing-captcha2\.testsite\.woa\.com/, /tcaptcha\-pre\.turing\.captcha\.qcloud\.com/, /global-turingcaptcha\.testsite\.woa\.com/, /tcaptchaglobal-pre\.turing\.captcha\.qcloud\.com/], t.monitorSDKRegexList = [/(Rce)?Captcha\.js|TCaptcha\.js/, /tcaptcha-frame(-rce)?(\.\w+)?\.js/, /drag_ele(_rce)?\.html/, /dy-ele(-rce)?(\.\w+)?\.js/];
|
||||
}
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -0,0 +1,35 @@
|
||||
function (e, t, i) {
|
||||
"use strict";
|
||||
|
||||
t.__esModule = !0, t["default"] = {
|
||||
loadState: {
|
||||
ready: 0,
|
||||
fail: 1,
|
||||
mixing: 2
|
||||
},
|
||||
messageType: {
|
||||
hybridVerify: 8,
|
||||
loadReady: 10,
|
||||
preloadReady: 30,
|
||||
checkPreLoadReady: 31,
|
||||
sendPreloadData: 32,
|
||||
goAged: 36,
|
||||
goNormalVerify: 37,
|
||||
windowChanged: 38,
|
||||
readyConfirm: 39
|
||||
},
|
||||
preloadMsgType: {
|
||||
capClose: 33,
|
||||
verifySuccess: 34,
|
||||
sessionTimeout: 35,
|
||||
verifyCallback: 40
|
||||
},
|
||||
templateKeys: ["drag", "dy"],
|
||||
retCode: {
|
||||
success: 0,
|
||||
errorWithTicket: 0,
|
||||
close: 2
|
||||
},
|
||||
defaultColorScheme: "#005ACF"
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
function (e, t, i) {
|
||||
"use strict";
|
||||
|
||||
t.__esModule = !0, t.isArray = t.isObject = void 0;
|
||||
var a = function (e) {
|
||||
return function (t) {
|
||||
return Object.prototype.toString.call(t) === "[object ".concat(e, "]");
|
||||
};
|
||||
};
|
||||
t.isObject = a("Object"), t.isArray = a("Array");
|
||||
}
|
||||
@@ -0,0 +1,145 @@
|
||||
function (e, t, i) {
|
||||
"use strict";
|
||||
|
||||
var a = this && this.__values || function (e) {
|
||||
var t = "function" == typeof Symbol && Symbol.iterator,
|
||||
i = t && e[t],
|
||||
a = 0;
|
||||
if (i) return i.call(e);
|
||||
if (e && "number" == typeof e.length) return {
|
||||
next: function () {
|
||||
return e && a >= e.length && (e = void 0), {
|
||||
value: e && e[a++],
|
||||
done: !e
|
||||
};
|
||||
}
|
||||
};
|
||||
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
||||
};
|
||||
t.__esModule = !0, t.ErrorHandler = t.ErrorTypes = void 0;
|
||||
var r = i(4),
|
||||
n = i(1);
|
||||
t.ErrorTypes = {
|
||||
FRAME_JS_LOAD_TIMEOUT: 40,
|
||||
DY_LOAD_FAIL: 39,
|
||||
OTHER_DOMAIN_MONITOR: 38,
|
||||
DRAG_JQUERY_FAIL: 37,
|
||||
DY_JQUERY_FAIL: 37,
|
||||
DRAG_WEBSERVER_JS_LOAD: 36,
|
||||
DY_WEBSERVER_JS_LOAD: 36,
|
||||
IFRAME_FULL_CREATE_ERROR: 35,
|
||||
NOT_NUMBER_TYPE: 34,
|
||||
IFRAME_CREATE_TIMEOUT: 33,
|
||||
PRELOAD_TEMPLATE_LOAD_ERROR: 32,
|
||||
DRAG_REFRESH_ERROR: 31,
|
||||
DY_REFRESH_ERROR: 31,
|
||||
DRAG_VERIFY_ERROR: 30,
|
||||
DY_VERIFY_ERROR: 30,
|
||||
DRAG_IMG_ERROR: 29,
|
||||
DY_IMG_ERROR: 29,
|
||||
DRAG_JS_ERROR: 28,
|
||||
DY_JS_ERROR: 28,
|
||||
DRAG_JS_DOWNLOAD_ERROR: 27,
|
||||
DY_JS_DOWNLOAD_ERROR: 27,
|
||||
IFRAME_POPUP_CREATE_ERROR: 26,
|
||||
IFRAME_CREATE_ERROR: 25,
|
||||
ERROR_TYPE_TDC_RUN_RETRY_SUCCESS: 23,
|
||||
ERROR_TYPE_TDC_DOWNLOAD_RETRY_SUCCESS: 22,
|
||||
ERROR_TYPE_TDC_RUN_FAIL: 21,
|
||||
ERROR_TYPE_TDC_DOWNLOAD_FAIL: 20,
|
||||
CALLBACK_NAME: 19,
|
||||
ERROR_TYPE_FRAMEJS_CODE_ERROR: 18,
|
||||
ERROR_TYPE_JSONP_PREHANDLE: 17,
|
||||
ERROR_TYPE_FRAMEJS_DOWNLOAD_FAIL: 16,
|
||||
ERROR_SLIDE_JS_DOWNLOAD_ERROR: 15,
|
||||
ERROR_TYPE_TOUCH_CANCEL: 14,
|
||||
ERROR_TYPE_TWICE_IMAGE_ONERROR: 13,
|
||||
ERROR_TYPE_CGI_IMAGE_ONERROR: 12,
|
||||
ERROR_TYPE_IMAGE_ONERROR: 11,
|
||||
ERROR_TYPE_AJAX_GETSIG: 9,
|
||||
ERROR_TYPE_AJAX_VERIFY: 8,
|
||||
ERROR_TYPE_IMAGE_BEYONDSIZE: 7,
|
||||
ERROR_TYPE_MB_FP_REGISTER_TIMEOUT: 6,
|
||||
ERROR_TYPE_MB_FPJS_DOWNLOAD_FAIL: 5,
|
||||
ERROR_TYPE_PC_FP_REGISTER_TIMEOUT: 4,
|
||||
ERROR_TYPE_PC_FPJS_DOWNLOAD_FAIL: 3,
|
||||
ERROR_TYPE_BADJS_DOWNLOAD_FAIL: 2,
|
||||
ERROR_TYPE_BADJS_REPORT: 1,
|
||||
ERROR_TYPE_CAPTCHA_RUN_FAIL: 45,
|
||||
ERROR_TYPE_DY_ELE_RUN_FAIL: 48,
|
||||
INVISIBLE_VERIFY_ERROR: 55
|
||||
};
|
||||
var o = function () {
|
||||
function e() {
|
||||
this.sentMsg = {}, this.sendQueue = [], this.initParam = "", this.isAllowToReport = !1;
|
||||
}
|
||||
return e.prototype.init = function (e) {
|
||||
var t = (0, n.getLogCommonParams)(),
|
||||
i = ["appid=".concat(e.appid), "sid=".concat(e.sid || ""), "uid=".concat(e.uid || ""), "err_type=".concat(e.errType || "")];
|
||||
this.initParam = "".concat(t.join("&"), "&").concat(i.join("&"));
|
||||
}, e.prototype.openReport = function () {
|
||||
var e, t;
|
||||
if (this.isAllowToReport = !0, this.isAllowToReport) try {
|
||||
for (var i = a(this.sendQueue), r = i.next(); !r.done; r = i.next()) {
|
||||
var n = r.value;
|
||||
this.send(n);
|
||||
}
|
||||
} catch (o) {
|
||||
e = {
|
||||
error: o
|
||||
};
|
||||
} finally {
|
||||
try {
|
||||
r && !r.done && (t = i["return"]) && t.call(i);
|
||||
} finally {
|
||||
if (e) throw e.error;
|
||||
}
|
||||
}
|
||||
}, e.prototype.sendError = function (e, i) {
|
||||
if (this.isAllowToReport) {
|
||||
i = i || t.ErrorTypes.ERROR_TYPE_BADJS_REPORT;
|
||||
var a = this.getErrorMsg(e);
|
||||
this.sentMsg[a] || (this.sentMsg[a] = !0, this.send({
|
||||
errorType: i,
|
||||
reason: a
|
||||
}));
|
||||
}
|
||||
}, e.prototype.send = function (e) {
|
||||
if (!r.isDev) if (this.isAllowToReport) try {
|
||||
var i = (e = e || {
|
||||
errorType: t.ErrorTypes.NOT_NUMBER_TYPE
|
||||
}).reason && e.reason.length > 1024 ? e.reason.substr(0, 1024) : e.reason;
|
||||
i = encodeURIComponent(i || ""), "number" != typeof e.errorType && (i += "err origin type ".concat(e.errorType), e.errorType = t.ErrorTypes.NOT_NUMBER_TYPE);
|
||||
var a = "".concat(window.AqSCodeCapDomain || window.TCaptchaApiDomain || "", "/cap_monitor?type=").concat(e.errorType, "&reason=").concat(i, "&").concat(this.initParam);
|
||||
new Image().src = a;
|
||||
} catch (n) {} else this.sendQueue.push(e);
|
||||
}, e.prototype.getErrorMsg = function (e) {
|
||||
var t = "";
|
||||
(null === e || void 0 === e ? void 0 : e.stack) && (t = e.stack.replace(/\n/gi, "").split(/\bat\b/).join("\n").replace(/\?[^:]+/gi, ""));
|
||||
try {
|
||||
var i = e.toString();
|
||||
t.indexOf(i) < 0 && (t = "".concat(i, "@").concat(t));
|
||||
} catch (a) {}
|
||||
return t;
|
||||
}, e.prototype.initGlobalListener = function (e) {
|
||||
var i = this;
|
||||
e = e || t.ErrorTypes.ERROR_TYPE_BADJS_REPORT, "function" == typeof window.addEventListener ? addEventListener("error", function (t) {
|
||||
i.sendError(t.error, e);
|
||||
}) : window.onerror = function (t, a, r, n, o) {
|
||||
if (null !== o && void 0 !== o && o.stack) i.sendError(o, e);else if ("string" != typeof t) {
|
||||
var s = (t.target || {
|
||||
src: ""
|
||||
}).src || "";
|
||||
i.send({
|
||||
errorType: e,
|
||||
reason: s
|
||||
});
|
||||
} else i.send({
|
||||
errorType: e,
|
||||
reason: t
|
||||
});
|
||||
};
|
||||
}, e;
|
||||
}();
|
||||
t.ErrorHandler = o;
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
function (e, t, i) {
|
||||
"use strict";
|
||||
|
||||
t.__esModule = !0;
|
||||
t["default"] = {
|
||||
add: function (e, t, i) {
|
||||
e && (e.addEventListener ? e.addEventListener(t, i, !1) : e.attachEvent ? e.attachEvent("on".concat(t), i) : e["on".concat(t)] = i);
|
||||
},
|
||||
remove: function (e, t, i) {
|
||||
e && (e.removeEventListener ? e.removeEventListener(t, i, !1) : e.detachEvent ? e.detachEvent("on".concat(t), i) : e["on".concat(t)] = null);
|
||||
}
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,83 @@
|
||||
function (e, t, i) {
|
||||
"use strict";
|
||||
|
||||
t.__esModule = !0, t.CAP_CONFIG_MAP = t.SLIDE_PTR = t.DEFAULT_PTR = t.SIZE_THRESHOLD = t.BASE_WIDTH = t.HORIZONTAL_SCALE = t.MIN_SCALE_WIDTH = t.MIN_SCALE_RATIO = t.FULL_WIDTH_THRESHOLD = t.BASE_WIDTH_THRESHOLD = t.SMART_VERIFY_SZ = t.DEFAULT_SIZE_PS = t.AUDIO_WH_SIZE = t.DEFAULT_WH_SIZE = void 0, t.DEFAULT_WH_SIZE = {
|
||||
width: 360,
|
||||
height: 360
|
||||
}, t.AUDIO_WH_SIZE = {
|
||||
width: 360,
|
||||
height: 230
|
||||
}, t.DEFAULT_SIZE_PS = {
|
||||
top: "0%",
|
||||
left: "0%"
|
||||
}, t.SMART_VERIFY_SZ = {
|
||||
height: 8,
|
||||
width: 8
|
||||
}, t.BASE_WIDTH_THRESHOLD = 12, t.FULL_WIDTH_THRESHOLD = 20, t.MIN_SCALE_RATIO = .65, t.MIN_SCALE_WIDTH = 230, t.HORIZONTAL_SCALE = .95, t.BASE_WIDTH = 360, t.SIZE_THRESHOLD = 10, t.DEFAULT_PTR = {
|
||||
minHeight: 40,
|
||||
minWidth: 230
|
||||
}, t.SLIDE_PTR = {
|
||||
height: 40,
|
||||
width: 300
|
||||
}, t.CAP_CONFIG_MAP = {
|
||||
slidepuzzle_new: {
|
||||
size: [19, 19],
|
||||
hasBorder: !0,
|
||||
unionSizeType: !0,
|
||||
isOpt: !0
|
||||
},
|
||||
slidepuzzle_opt: {
|
||||
size: [19, 19],
|
||||
hasBorder: !0,
|
||||
unionSizeType: !0,
|
||||
isOpt: !0
|
||||
},
|
||||
slidepuzzle_new_pc: {
|
||||
height: 360,
|
||||
width: 360,
|
||||
btn_width: 298
|
||||
},
|
||||
slidepuzzle_opt_pc: {
|
||||
height: 360,
|
||||
width: 360,
|
||||
btn_width: 298
|
||||
},
|
||||
vtt: {
|
||||
size: [19, 19],
|
||||
hasBorder: !0,
|
||||
unionSizeType: !0,
|
||||
isOpt: !0
|
||||
},
|
||||
vtt_pc: {
|
||||
height: 360,
|
||||
width: 360,
|
||||
btn_width: 298
|
||||
},
|
||||
drag: {
|
||||
size: [19, 19],
|
||||
hasBorder: !0,
|
||||
unionSizeType: !0,
|
||||
isOpt: !0
|
||||
},
|
||||
drag_pc: {
|
||||
height: 360,
|
||||
width: 360,
|
||||
btn_width: 298
|
||||
},
|
||||
dy: {
|
||||
size: [19, 19],
|
||||
hasBorder: !0,
|
||||
unionSizeType: !0,
|
||||
isOpt: !0
|
||||
},
|
||||
dy_pc: {
|
||||
height: 360,
|
||||
width: 360,
|
||||
btn_width: 298
|
||||
},
|
||||
defaultSize: {
|
||||
hasBorder: !1,
|
||||
size: ["100%", "100%"]
|
||||
}
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,75 @@
|
||||
function (e, t, i) {
|
||||
"use strict";
|
||||
|
||||
t.__esModule = !0, t.get$Class = t.get$Id = t.getNativeDom = t.domClass = t.domId = void 0, t.domId = {
|
||||
captchaRoot: "tcaptcha_transform_dy",
|
||||
captchaContent: "tCaptchaDyContent",
|
||||
captchaDyMainWrap: "tCaptchaDyMainWrap",
|
||||
captchaScriptFrame: "tCaptchaScriptFrame",
|
||||
frameEmbedLoading: "tCaptchaEmbedLoading",
|
||||
frameArea: "tCaptchaIframeArea",
|
||||
frameVerifyArea: "tCaptchaVerifyArea",
|
||||
frameContainer: "tCaptchaContainer",
|
||||
frameTransformArea: "tCaptchaTransformArea",
|
||||
frameMaskLayer: "tCaptchaMaskLayer",
|
||||
frameLoadingAnimation: "tCaptchaLoadingAnimation"
|
||||
}, t.domClass = {
|
||||
show: "tencent-captcha-dy__show",
|
||||
hide: "tencent-captcha-dy__hide",
|
||||
fullType: "tencent-captcha-dy__full-type",
|
||||
audioImgBg: "tencent-captcha-dy__audio-image-bg",
|
||||
captchaContent: "tencent-captcha-dy__content",
|
||||
sliderTypeWrap: "tencent-captcha-dy__slider-type-wrap",
|
||||
clickTypeWrap: "tencent-captcha-dy__click-type-wrap",
|
||||
otherTypeWrap: "tencent-captcha-dy__other-type-wrap",
|
||||
rightToLeft: "tencent-captcha-dy__right-to-left",
|
||||
rightLayout: "tencent-captcha-dy__right-layout",
|
||||
smallFont: "tencent-captcha-dy__small-fontsize",
|
||||
multiLine: "tencent-captcha-dy__multi-line",
|
||||
middleFont: "tencent-captcha-dy__middle-fontsize",
|
||||
noHeader: "tencent-captcha-dy__noHeader",
|
||||
darkMode: "tencent-captcha-dy__dark-mode",
|
||||
fgItem: "tencent-captcha-dy__fg-item",
|
||||
unselectable: "tencent-captcha-dy__unselectable",
|
||||
clickMark: "tencent-captcha-dy__click-mark",
|
||||
pointer: "tencent-captcha-dy__pointer",
|
||||
shakeAnimation: "tencent-captcha-dy__shake",
|
||||
confirmBtnDisabled: "tencent-captcha-dy__verify-confirm-btn--disabled",
|
||||
audioActiveWare: "tencent-captcha-dy__audio-track-group--active-ware",
|
||||
audioInputError: "tencent-captcha-dy__audio-input--error",
|
||||
audioImgBgV2: "tencent-captcha-dy__audio-v2-image-bg",
|
||||
audioInputErrorV2: "tencent-captcha-dy__audio-v2-input--error",
|
||||
frame360: "tencent-captcha__frame-width-360",
|
||||
frame320: "tencent-captcha__frame-width-320",
|
||||
frameEmbedLoading: "tencent-captcha__embed-loading",
|
||||
frameLoadingWrap: "tencent-captcha__loading-wrap",
|
||||
frameLoadingIcon: "tencent-captcha__loading-icon",
|
||||
frameArea: "tencent-captcha__iframe-area",
|
||||
frameChrome75: "tencent-captcha__chrome-75",
|
||||
frameTransform: "tencent-captcha__transform",
|
||||
frameDarkMode: "tencent-captcha__dark-mode",
|
||||
frameMiddleFont: "tencent-captcha__middle-fontsize",
|
||||
frameSmallFont: "tencent-captcha__small-fontsize",
|
||||
frameShowIcon: "tencent-captcha__show-icon",
|
||||
frameContainer: "tencent-captcha__container",
|
||||
frameContainerIframe: "tencent-captcha__container-iframe",
|
||||
frameMaskLayer: "tencent-captcha__mask-layer",
|
||||
frameVerifyArea: "tencent-captcha__verify-area",
|
||||
frameWrapIE9: "tencent-captcha-dy__frame-wrap-ie9",
|
||||
frameWrapIE8: "tencent-captcha-dy__frame-wrap-ie8",
|
||||
frameWrapIE7: "tencent-captcha-dy__frame-wrap-ie7",
|
||||
customColor: "tencent-captcha-dy__custom-theme"
|
||||
};
|
||||
t.getNativeDom = function () {
|
||||
return {
|
||||
mainWrap: document.getElementById(t.domId.captchaDyMainWrap),
|
||||
fullType: document.querySelector(".".concat(t.domClass.fullType))
|
||||
};
|
||||
};
|
||||
t.get$Id = function (e) {
|
||||
return "string" == typeof e ? window.cap$JQ("#".concat(e)) : window.cap$JQ("#".concat(e.join(" #")));
|
||||
};
|
||||
t.get$Class = function (e) {
|
||||
return "string" == typeof e ? window.cap$JQ(".".concat(e)) : window.cap$JQ(".".concat(e.join(" .")));
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,85 @@
|
||||
function (e, t, i) {
|
||||
"use strict";
|
||||
|
||||
var a = this && this.__read || function (e, t) {
|
||||
var i = "function" == typeof Symbol && e[Symbol.iterator];
|
||||
if (!i) return e;
|
||||
var a,
|
||||
r,
|
||||
n = i.call(e),
|
||||
o = [];
|
||||
try {
|
||||
for (; (void 0 === t || t-- > 0) && !(a = n.next()).done;) o.push(a.value);
|
||||
} catch (s) {
|
||||
r = {
|
||||
error: s
|
||||
};
|
||||
} finally {
|
||||
try {
|
||||
a && !a.done && (i = n["return"]) && i.call(n);
|
||||
} finally {
|
||||
if (r) throw r.error;
|
||||
}
|
||||
}
|
||||
return o;
|
||||
},
|
||||
r = this && this.__spreadArray || function (e, t, i) {
|
||||
if (i || 2 === arguments.length) for (var a, r = 0, n = t.length; r < n; r++) !a && r in t || (a || (a = Array.prototype.slice.call(t, 0, r)), a[r] = t[r]);
|
||||
return e.concat(a || Array.prototype.slice.call(t));
|
||||
};
|
||||
t.__esModule = !0;
|
||||
var n,
|
||||
o = i(7),
|
||||
s = i(1),
|
||||
c = {
|
||||
ERROR_TYPE_FRAMEJS_DOWNLOAD_FAIL: 16,
|
||||
ERROR_TYPE_JSONP_PREHANDLE: 17,
|
||||
ERROR_TYPE_FRAMEJS_CODE_ERROR: 18,
|
||||
CALLBACK_NAME: 19,
|
||||
IFRAME_CREATE_ERROR: 25,
|
||||
IFRAME_POPUP_CREATE_ERROR: 26,
|
||||
IFRAME_FULL_CREATE_ERROR: 27,
|
||||
OTHER_DOMAIN_MONITOR: 38,
|
||||
FRAME_JS_LOAD_TIMEOUT: 40,
|
||||
RCE_PARAM_ERROR: 41,
|
||||
ERROR_TYPE_CAPTCHA_RUN_FAIL: 45,
|
||||
ERROR_TYPE_DY_ELE_RUN_FAIL: 48
|
||||
},
|
||||
d = {
|
||||
ERROR_TYPE_FRAMEJS_DOWNLOAD_FAIL: "ERROR_TYPE_FRAMEJS_DOWNLOAD_FAIL",
|
||||
ERROR_TYPE_JSONP_PREHANDLE: "ERROR_TYPE_JSONP_PREHANDLE",
|
||||
ERROR_TYPE_FRAMEJS_CODE_ERROR: "ERROR_TYPE_FRAMEJS_CODE_ERROR",
|
||||
CALLBACK_NAME: "CALLBACK_NAME",
|
||||
RCE_PARAM_ERROR: "RCE_PARAM_ERROR",
|
||||
ERROR_TYPE_CAPTCHA_RUN_FAIL: "ERROR_TYPE_CAPTCHA_RUN_FAIL",
|
||||
ERROR_TYPE_DY_ELE_RUN_FAIL: "ERROR_TYPE_DY_ELE_RUN_FAIL"
|
||||
},
|
||||
l = [];
|
||||
function u(e, t, i) {
|
||||
if (!o.isDev) try {
|
||||
if (void 0 === n) return void l.push([e, t, i]);
|
||||
if (n) return;
|
||||
(i = i || d[e]).length > 1024 && i.substr(0, 1024), e = c[e];
|
||||
var a = ["type=".concat(e), "appid=".concat(t), "reason=".concat(encodeURIComponent(i))];
|
||||
new Image().src = "".concat(window.AqSCodeCapDomain || "", "/cap_monitor?").concat((0, s.getLogCommonParams)().join("&"), "&").concat(a.join("&"));
|
||||
} catch (r) {}
|
||||
}
|
||||
t["default"] = {
|
||||
type: c,
|
||||
send: u,
|
||||
perfectStack: function (e) {
|
||||
var t = "";
|
||||
e && e.stack && (t = e.stack.replace(/\n/gi, "").split(/\bat\b/).join("\n").replace(/\?[^:]+/gi, ""));
|
||||
try {
|
||||
var i = e.toString();
|
||||
t.indexOf(i) < 0 && (t = "".concat(i, "@").concat(t));
|
||||
} catch (a) {}
|
||||
return t;
|
||||
},
|
||||
setGlobalStatus: function (e) {
|
||||
(n = e) || l.forEach(function (e) {
|
||||
return u.apply(void 0, r([], a(e), !1));
|
||||
});
|
||||
}
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
function (e, t, i) {
|
||||
"use strict";
|
||||
|
||||
var a = this && this.__importDefault || function (e) {
|
||||
return e && e.__esModule ? e : {
|
||||
"default": e
|
||||
};
|
||||
};
|
||||
t.__esModule = !0, t.shrinkArraySizeFromRuisun = t.shrinkArraySize = t.extend = void 0;
|
||||
var r = a(i(10));
|
||||
t.extend = Object.assign || r["default"], t.shrinkArraySize = function (e, t, i) {
|
||||
var a = e.length;
|
||||
if (a <= t) return e;
|
||||
var r = [];
|
||||
(i = i || {}).keepStart && (t -= 1, a -= 1, r.push(e[0])), i.keepLast && (a -= 1, t -= 1);
|
||||
for (var n = t / a, o = 0, s = 0; s < a; s++) (o += n) >= 1 && (r.push(e[s]), o -= 1);
|
||||
return i.keepLast && r.push(e[e.length - 1]), r;
|
||||
}, t.shrinkArraySizeFromRuisun = function (e, t, i) {
|
||||
var a = e.length;
|
||||
if (a <= t) return e;
|
||||
(i = i || {}).keepStart && (a -= 1), i.keepLast && (a -= 1, t -= 1);
|
||||
for (var r = Math.floor(a / (t - 1)), n = 0, o = []; o.length < t;) o.push(e[n]), n += r;
|
||||
return i.keepLast && o.push(e[e.length - 1]), o;
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,149 @@
|
||||
function (e, t, i) {
|
||||
"use strict";
|
||||
|
||||
var a = this && this.__values || function (e) {
|
||||
var t = "function" == typeof Symbol && Symbol.iterator,
|
||||
i = t && e[t],
|
||||
a = 0;
|
||||
if (i) return i.call(e);
|
||||
if (e && "number" == typeof e.length) return {
|
||||
next: function () {
|
||||
return e && a >= e.length && (e = void 0), {
|
||||
value: e && e[a++],
|
||||
done: !e
|
||||
};
|
||||
}
|
||||
};
|
||||
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
||||
},
|
||||
r = this && this.__importDefault || function (e) {
|
||||
return e && e.__esModule ? e : {
|
||||
"default": e
|
||||
};
|
||||
};
|
||||
t.__esModule = !0, t.includeInPreoloadTemplate = t.injectTemplate = t.removeTemplateWrapper = t.markTypeTemplateUnloaded = t.markTypeTemplateLoaded = t.styledTypeTemplate = t.getHtmlTemplateGroup = t.htmlTemplateGroup = t.getTemplateDomain = void 0;
|
||||
var n = i(0),
|
||||
o = r(i(17)),
|
||||
s = i(3),
|
||||
c = i(18),
|
||||
d = i(42),
|
||||
l = i(14),
|
||||
u = i(4),
|
||||
p = o["default"].templateKeys;
|
||||
t.getTemplateDomain = function () {
|
||||
var e,
|
||||
t,
|
||||
i = (0, s.getIEVersion)(),
|
||||
r = u.isDev ? "" : window.AqSCodeCapDomain || "https://turing.captcha.qcloud.com",
|
||||
n = navigator.userAgent || "";
|
||||
if (-1 !== i && i <= 9) return r;
|
||||
if (u.isDev || l.envDomainRegexList.some(function (e) {
|
||||
return r.match(e);
|
||||
})) return r;
|
||||
if (l.miniAppRegexList.some(function (e) {
|
||||
return n.match(e);
|
||||
}) || "miniprogram" === window.__wxjs_environment) return r;
|
||||
var o = document.querySelectorAll("meta");
|
||||
try {
|
||||
for (var d = a(o), p = d.next(); !p.done; p = d.next()) {
|
||||
var f = p.value;
|
||||
if (f.httpEquiv.match(/content-security-policy/i)) {
|
||||
var h = f.content.match(/frame-src.*;/i);
|
||||
if ((0, c.isArray)(h) && (!h[0].match(/turing.captcha.gtimg.com/i) || !h[0].match(/\*.gtimg.com/i))) return r;
|
||||
}
|
||||
}
|
||||
} catch (_) {
|
||||
e = {
|
||||
error: _
|
||||
};
|
||||
} finally {
|
||||
try {
|
||||
p && !p.done && (t = d["return"]) && t.call(d);
|
||||
} finally {
|
||||
if (e) throw e.error;
|
||||
}
|
||||
}
|
||||
var m = window.navigator.userAgent;
|
||||
if (m.match(/android/i)) {
|
||||
var g = m.match(/QQ\/(\d+\.\d+\.\d+)/);
|
||||
if (g && 2 === g.length) {
|
||||
var v = g[1],
|
||||
y = function (e, t, i) {
|
||||
return e[i] || t[i] ? e[i] === t[i] ? y(e, t, i + 1) : Number(e[i]) - Number(t[i]) : 0;
|
||||
};
|
||||
if (y(v.split("."), "8.9.28".split("."), 0) <= 0) return r;
|
||||
}
|
||||
}
|
||||
return window.AqSCodeCdnDomain;
|
||||
}, t.htmlTemplateGroup = {};
|
||||
t.getHtmlTemplateGroup = function () {
|
||||
return t.htmlTemplateGroup;
|
||||
};
|
||||
t.styledTypeTemplate = function (e, i) {
|
||||
var a = null === t.htmlTemplateGroup || void 0 === t.htmlTemplateGroup ? void 0 : t.htmlTemplateGroup[e];
|
||||
a && (a.styled = !0, a.showType = i || "");
|
||||
};
|
||||
t.markTypeTemplateLoaded = function (e) {
|
||||
var i = null === t.htmlTemplateGroup || void 0 === t.htmlTemplateGroup ? void 0 : t.htmlTemplateGroup[e];
|
||||
i && (i.load = !0);
|
||||
};
|
||||
t.markTypeTemplateUnloaded = function (e) {
|
||||
var i = null === t.htmlTemplateGroup || void 0 === t.htmlTemplateGroup ? void 0 : t.htmlTemplateGroup[e];
|
||||
i && (i.load = !1, i.styled = !1, i.showType = undefined);
|
||||
};
|
||||
t.removeTemplateWrapper = function (e) {
|
||||
var t = d.dyTemplates[e].wrapId,
|
||||
i = document.getElementById(t);
|
||||
(null === i || void 0 === i ? void 0 : i.parentNode) && i.parentNode.removeChild(i);
|
||||
};
|
||||
t.injectTemplate = function (e, i, a) {
|
||||
if (!document.body) return t.htmlTemplateGroup;
|
||||
var r = function (e, i, a) {
|
||||
(0, t.removeTemplateWrapper)(e);
|
||||
var r = document.createElement("div"),
|
||||
o = d.dyTemplates[e],
|
||||
s = o.id,
|
||||
c = o.wrapId;
|
||||
r.id = c;
|
||||
var l = (0, n.createGeneralIframe)({
|
||||
id: s,
|
||||
name: window.AqSCodeCapDomain
|
||||
});
|
||||
return window.TCaptchaGlobal ? l.src = "".concat(i, "/template/drag_ele_global.html") : l.src = "".concat(i, "/template/drag_ele.html"), (0, n.setCss)(r, {
|
||||
opacity: "0",
|
||||
position: "absolute",
|
||||
transition: "opacity 0.3s linear 0s",
|
||||
top: "-1000000px"
|
||||
}), r.appendChild(l), a ? a.appendChild(r) : document.body.appendChild(r), {
|
||||
wrapper: r,
|
||||
iframe: l
|
||||
};
|
||||
}(e, i, a),
|
||||
o = r.wrapper,
|
||||
s = r.iframe;
|
||||
return t.htmlTemplateGroup[e] = {
|
||||
ele: a || document.body,
|
||||
type: e,
|
||||
wrapper: o,
|
||||
iframe: s,
|
||||
load: !1,
|
||||
styled: !1
|
||||
}, t.htmlTemplateGroup;
|
||||
}, t.includeInPreoloadTemplate = function (e) {
|
||||
var t, i;
|
||||
try {
|
||||
for (var r = a(p), n = r.next(); !n.done; n = r.next()) if (n.value === e) return !0;
|
||||
} catch (o) {
|
||||
t = {
|
||||
error: o
|
||||
};
|
||||
} finally {
|
||||
try {
|
||||
n && !n.done && (i = r["return"]) && i.call(r);
|
||||
} finally {
|
||||
if (t) throw t.error;
|
||||
}
|
||||
}
|
||||
return !1;
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,50 @@
|
||||
function (e, t, i) {
|
||||
"use strict";
|
||||
|
||||
t.__esModule = !0;
|
||||
var a = "[CODE_VERIFY]",
|
||||
r = "postMessage" in window,
|
||||
n = function () {
|
||||
function e(e, t, i) {
|
||||
var a = "";
|
||||
if (arguments.length < 2 ? a = "[Msger] error 1" : "object" != typeof e ? a = "[Msger] error 2" : "string" != typeof t && (a = "[Msger] error 3"), a) throw new Error(a);
|
||||
this.target = e, this.name = t, this.domain = i || "*";
|
||||
}
|
||||
return e.prototype.send = function (e) {
|
||||
if (r) this.target.postMessage(e, this.domain);else {
|
||||
var t = window.navigator[a + this.name];
|
||||
if ("function" != typeof t) throw new Error("target callback function is not defined");
|
||||
t(e, window);
|
||||
}
|
||||
}, e;
|
||||
}(),
|
||||
o = function () {
|
||||
function e(e, t, i) {
|
||||
this.targets = {}, this.name = e, this.listenFunc = [], this.domain = i || "", a = t || a, this.listenCb = this.initListen();
|
||||
}
|
||||
return e.prototype.addTarget = function (e, t, i) {
|
||||
var a = new n(e, t, i);
|
||||
this.targets[t] = a;
|
||||
}, e.prototype.initListen = function () {
|
||||
var e = this,
|
||||
t = function (t) {
|
||||
if (!e.domain || !t.origin || -1 !== t.origin.indexOf(e.domain) || "https://turing.captcha.gtimg.com" === t.origin || "https://global.turing.captcha.gtimg.com" === t.origin) {
|
||||
"object" == typeof t && t.data && (t = t.data);
|
||||
for (var i = 0; i < e.listenFunc.length; i++) e.listenFunc[i](t);
|
||||
}
|
||||
};
|
||||
return r ? "addEventListener" in document ? window.addEventListener("message", t, !1) : "attachEvent" in document && window.attachEvent("onmessage", t) : window.navigator[a + this.name] = t, t;
|
||||
}, e.prototype.unlisten = function () {
|
||||
this.listenCb && (r ? "addEventListener" in document ? window.removeEventListener("message", this.listenCb) : "attachEvent" in document && window.detachEvent("onmessage", this.listenCb) : window.navigator[a + this.name] = null);
|
||||
}, e.prototype.listen = function (e) {
|
||||
this.listenFunc.push(e);
|
||||
}, e.prototype.clear = function () {
|
||||
this.listenFunc = [];
|
||||
}, e.prototype.send = function (e) {
|
||||
var t,
|
||||
i = this.targets;
|
||||
for (t in i) i.hasOwnProperty(t) && i[t].send(e);
|
||||
}, e;
|
||||
}();
|
||||
window.TCapMsg = o, t["default"] = o;
|
||||
}
|
||||
@@ -0,0 +1,46 @@
|
||||
function (e, t, i) {
|
||||
"use strict";
|
||||
|
||||
t.__esModule = !0, t.Topics = t.DragTopics = void 0;
|
||||
var a = function () {
|
||||
function e() {
|
||||
this.topics = {}, this.subUid = -1;
|
||||
}
|
||||
return e.prototype.subscribe = function (e, t) {
|
||||
this.topics[e] || (this.topics[e] = []);
|
||||
var i = (++this.subUid).toString();
|
||||
return this.topics[e].push({
|
||||
token: i,
|
||||
func: t
|
||||
}), i;
|
||||
}, e.prototype.publish = function (e, t) {
|
||||
if (!this.topics[e]) return !1;
|
||||
for (var i = this.topics[e], a = i ? i.length : 0; a--;) i[a].func(e, t);
|
||||
return this;
|
||||
}, e.prototype.unsubscribe = function (e) {
|
||||
var t = this.topics;
|
||||
for (var i in t) if (t[i]) for (var a = 0, r = t[i].length; a < r; a++) if (t[i][a].token === e) return this.topics[i].splice(a, 1), e;
|
||||
return this;
|
||||
}, e.prototype.clear = function () {
|
||||
var e = this.topics;
|
||||
for (var t in e) if (e[t]) for (var i = 0, a = e[t].length; i < a; i++) this.topics[t].splice(i, 1);
|
||||
return this;
|
||||
}, e;
|
||||
}();
|
||||
t.DragTopics = {
|
||||
OnPosChanged: "OnPosChanged"
|
||||
}, t.Topics = {
|
||||
GetPrehandle: "GetPrehandle",
|
||||
HybridVerify: "HybridVerify",
|
||||
ReadyFunc: "ReadyFunc",
|
||||
Callback: "Callback",
|
||||
Refresh: "Refresh",
|
||||
RefreshMax: "RefreshMax",
|
||||
LimitCLose: "LimitCLose",
|
||||
IframeError: "IframeError",
|
||||
ExchangeAged: "ExchangeAged",
|
||||
ShowCallback: "ShowCallback",
|
||||
VerifyCallback: "VerifyCallback",
|
||||
SetTcapToken: "SetTcapToken"
|
||||
}, t["default"] = a;
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
function (e, t, i) {
|
||||
"use strict";
|
||||
|
||||
t.__esModule = !0, t.TopicEventEnum = void 0, function (e) {
|
||||
e.GET_PREHANDLE = "GET_PREHANDLE", e.HYBRID_VERIFY = "HYBRID_VERIFY", e.READY_FUNC = "READY_FUNC", e.CALLBACK = "CALLBACK", e.REFRESH = "REFRESH", e.REFRESH_MAX = "REFRESH_MAX", e.LIMIT_CLOSE = "LIMIT_CLOSE", e.IFRAME_ERROR = "IFRAME_ERROR", e.EXCHANGE_AGED = "EXCHANGE_AGED", e.SHOW_CALLBACK = "SHOW_CALLBACK", e.ON_BACK = "ON_BACK", e.ON_SUCCESS = "ON_SUCCESS", e.ON_CLOSE = "ON_CLOSE", e.REMOVE_POPUP_BORDER = "REMOVE_POPUP_BORDER", e.WINDOW_CHANGED = "WINDOW_CHANGED", e.READY_CONFIRM = "READY_CONFIRM", e.CHECK_PRELOAD_READY = "CHECK_PRELOAD_READY", e.PRE_LOAD_READY = "PRE_LOAD_READY", e.CAP_CLOSE = "CAP_CLOSE", e.VERIFY_SUCCESS = "VERIFY_SUCCESS", e.VERIFY_CALLBACK = "VERIFY_CALLBACK", e.SESSION_TIMEOUT = "SESSION_TIMEOUT", e.GO_AGED = "GO_AGED", e.GO_NORMAL_VERIFY = "GO_NORMAL_VERIFY", e[e.PC_REFRESH = 15] = "PC_REFRESH", e[e.OLD_FRAME_REFRESH = 11] = "OLD_FRAME_REFRESH", e[e.OLD_PC_SESSION_TIMEOUT = 16] = "OLD_PC_SESSION_TIMEOUT", e[e.H5_SESSION_TIMEOUT = 12] = "H5_SESSION_TIMEOUT", e[e.ON_HYBRID_VERIFY = 8] = "ON_HYBRID_VERIFY", e[e.ON_READY = 10] = "ON_READY", e[e.ON_POINT_LOADED = 14] = "ON_POINT_LOADED", e[e.OLD_ON_SUCCESS = 3] = "OLD_ON_SUCCESS", e[e.OLD_ON_READY = 7] = "OLD_ON_READY", e[e.OLD_ON_CLOSE = 6] = "OLD_ON_CLOSE", e[e.VTT_ON_CLOSE = 13] = "VTT_ON_CLOSE", e[e.VTT_ON_BACK = 4] = "VTT_ON_BACK", e[e.OLD_GO_AGED = 36] = "OLD_GO_AGED";
|
||||
}(t.TopicEventEnum || (t.TopicEventEnum = {}));
|
||||
}
|
||||
@@ -0,0 +1,36 @@
|
||||
function (e, t, i) {
|
||||
"use strict";
|
||||
|
||||
t.__esModule = !0, t.isWebWorkerSupport = t.setWebworkerSupportCache = t.getWebworkerSupportCache = void 0;
|
||||
var a = "captcha_webworker_supported";
|
||||
t.getWebworkerSupportCache = function () {
|
||||
try {
|
||||
return localStorage.getItem(a);
|
||||
} catch (e) {}
|
||||
return !1;
|
||||
}, t.setWebworkerSupportCache = function (e) {
|
||||
try {
|
||||
localStorage.setItem(a, e);
|
||||
} catch (t) {}
|
||||
}, t.isWebWorkerSupport = function () {
|
||||
var e = self || window;
|
||||
try {
|
||||
try {
|
||||
var t = void 0;
|
||||
try {
|
||||
t = new e.Blob([""]);
|
||||
} catch (n) {
|
||||
(t = new (e.BlobBuilder || e.WebKitBlobBuilder || e.MozBlobBuilder || e.MSBlobBuilder)()).append(""), t = t.getBlob();
|
||||
}
|
||||
var i = e.URL || e.webkitURL,
|
||||
a = i.createObjectURL(t),
|
||||
r = new e.Worker(a);
|
||||
return i.revokeObjectURL(a), r;
|
||||
} catch (n) {
|
||||
return new e.Worker("data:application/javascript,".concat(encodeURIComponent("")));
|
||||
}
|
||||
} catch (n) {
|
||||
return null;
|
||||
}
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
function (e, t, i) {
|
||||
"use strict";
|
||||
|
||||
t.__esModule = !0, t.rceDyTemplates = t.dyTemplates = void 0, t.dyTemplates = {
|
||||
drag: {
|
||||
url: "template/drag_ele.html",
|
||||
id: "tcaptcha_iframe_drag",
|
||||
wrapId: "tcaptcha_transform_drag"
|
||||
},
|
||||
dy: {
|
||||
url: "template/drag_ele.html",
|
||||
id: "tcaptcha_iframe_dy",
|
||||
wrapId: "tcaptcha_transform_dy"
|
||||
}
|
||||
}, t.rceDyTemplates = {
|
||||
drag: {
|
||||
url: "template/drag_ele_rce.html",
|
||||
id: "tcaptcha_iframe_drag",
|
||||
wrapId: "tcaptcha_transform_drag"
|
||||
},
|
||||
dy: {
|
||||
url: "template/drag_ele_rce.html",
|
||||
id: "tcaptcha_iframe_dy",
|
||||
wrapId: "tcaptcha_transform_dy"
|
||||
}
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
function (e, t, i) {
|
||||
"use strict";
|
||||
|
||||
t.__esModule = !0;
|
||||
t["default"] = {
|
||||
SMART_VERIFY_SZ: {
|
||||
height: 8,
|
||||
width: 8
|
||||
},
|
||||
CONST_DEFAULT_SIZE: {
|
||||
width: 360,
|
||||
height: 360
|
||||
},
|
||||
CONST_SC_PS: {
|
||||
top: "0%",
|
||||
left: "0%"
|
||||
},
|
||||
threshold: 10,
|
||||
baseWidth: 320,
|
||||
CONST_PTR: {
|
||||
minHeight: 40,
|
||||
minWidth: 230
|
||||
},
|
||||
CONST_SLIDE_PTR: {
|
||||
height: 40,
|
||||
width: 300
|
||||
}
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,54 @@
|
||||
function (e, t, i) {
|
||||
"use strict";
|
||||
|
||||
t.__esModule = !0;
|
||||
var a = function (e) {
|
||||
return function () {
|
||||
return window.document.getElementById(e);
|
||||
};
|
||||
},
|
||||
r = function (e) {
|
||||
return function () {
|
||||
return function (e) {
|
||||
if (document.getElementsByClassName) return document.getElementsByClassName(e);
|
||||
for (var t = document.getElementsByTagName("*"), i = /(^\s*)|(\s*$)/g, a = [], r = "(^".concat(e, "\\s+|\\s+").concat(e, "\\s+|\\s+").concat(e, "$|^").concat(e, "$)"), n = new RegExp(r), o = 0; o < t.length; o++) {
|
||||
var s = t[o].className.replace(i, "");
|
||||
s && n.test(s) && a.push(t[o]);
|
||||
}
|
||||
return a;
|
||||
}(e);
|
||||
};
|
||||
},
|
||||
n = a("tcaptcha_transform"),
|
||||
o = a("tcaptcha_container"),
|
||||
s = a("ticon_refresh"),
|
||||
c = a("transform_header"),
|
||||
d = a("transform_text"),
|
||||
l = a("transform_close"),
|
||||
u = a("transform_eicon"),
|
||||
p = a("transform_eb"),
|
||||
f = a("transform_eh"),
|
||||
h = r("dots_item"),
|
||||
m = a("t_verify"),
|
||||
g = a("verify_text"),
|
||||
v = a("verify_icon"),
|
||||
y = a("tcaptcha_iframe"),
|
||||
_ = r("ticons");
|
||||
t["default"] = {
|
||||
border: n,
|
||||
refIcon: s,
|
||||
ref1Text: c,
|
||||
ref2Text: d,
|
||||
popClose: l,
|
||||
fullBackIcon: u,
|
||||
fullBackText: p,
|
||||
fullHeader: f,
|
||||
dots: h,
|
||||
tVerify: m,
|
||||
verifyText: g,
|
||||
verifyIcon: v,
|
||||
tIframe: y,
|
||||
tIcons: _,
|
||||
container: o
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,34 @@
|
||||
function (e, t) {
|
||||
e.exports = function (e) {
|
||||
var t = [];
|
||||
return t.toString = function () {
|
||||
return this.map(function (t) {
|
||||
var i = function (e, t) {
|
||||
var i = e[1] || "",
|
||||
a = e[3];
|
||||
if (!a) return i;
|
||||
if (t && "function" == typeof btoa) {
|
||||
var r = (o = a, "/*# sourceMappingURL=data:application/json;charset=utf-8;base64," + btoa(unescape(encodeURIComponent(JSON.stringify(o)))) + " */"),
|
||||
n = a.sources.map(function (e) {
|
||||
return "/*# sourceURL=" + a.sourceRoot + e + " */";
|
||||
});
|
||||
return [i].concat(n).concat([r]).join("\n");
|
||||
}
|
||||
var o;
|
||||
return [i].join("\n");
|
||||
}(t, e);
|
||||
return t[2] ? "@media " + t[2] + "{" + i + "}" : i;
|
||||
}).join("");
|
||||
}, t.i = function (e, i) {
|
||||
"string" == typeof e && (e = [[null, e, ""]]);
|
||||
for (var a = {}, r = 0; r < this.length; r++) {
|
||||
var n = this[r][0];
|
||||
"number" == typeof n && (a[n] = !0);
|
||||
}
|
||||
for (r = 0; r < e.length; r++) {
|
||||
var o = e[r];
|
||||
"number" == typeof o[0] && a[o[0]] || (i && !o[2] ? o[2] = i : i && (o[2] = "(" + o[2] + ") and (" + i + ")"), t.push(o));
|
||||
}
|
||||
}, t;
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,134 @@
|
||||
function (e, t) {
|
||||
var i = {},
|
||||
a = function (e) {
|
||||
var t;
|
||||
return function () {
|
||||
return void 0 === t && (t = e.apply(this, arguments)), t;
|
||||
};
|
||||
},
|
||||
r = a(function () {
|
||||
return /msie [6-9]\b/.test(window.navigator.userAgent.toLowerCase());
|
||||
}),
|
||||
n = a(function () {
|
||||
return document.head || document.getElementsByTagName("head")[0];
|
||||
}),
|
||||
o = null,
|
||||
s = 0;
|
||||
function c(e, t) {
|
||||
for (var a = 0; a < e.length; a++) {
|
||||
var r = e[a],
|
||||
n = i[r.id];
|
||||
if (n) {
|
||||
n.refs++;
|
||||
for (var o = 0; o < n.parts.length; o++) n.parts[o](r.parts[o]);
|
||||
for (; o < r.parts.length; o++) n.parts.push(p(r.parts[o], t));
|
||||
} else {
|
||||
var s = [];
|
||||
for (o = 0; o < r.parts.length; o++) s.push(p(r.parts[o], t));
|
||||
i[r.id] = {
|
||||
id: r.id,
|
||||
refs: 1,
|
||||
parts: s
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
function d(e) {
|
||||
for (var t = [], i = {}, a = 0; a < e.length; a++) {
|
||||
var r = e[a],
|
||||
n = r[0],
|
||||
o = {
|
||||
css: r[1],
|
||||
media: r[2],
|
||||
sourceMap: r[3]
|
||||
};
|
||||
i[n] ? i[n].parts.push(o) : t.push(i[n] = {
|
||||
id: n,
|
||||
parts: [o]
|
||||
});
|
||||
}
|
||||
return t;
|
||||
}
|
||||
function l(e, t) {
|
||||
var i = Array.prototype.slice.call(arguments, 2);
|
||||
return function () {
|
||||
var a = Array.prototype.slice.call(arguments);
|
||||
e.apply(t, i.concat(a));
|
||||
};
|
||||
}
|
||||
function u() {
|
||||
var e = document.createElement("style"),
|
||||
t = n();
|
||||
return e.type = "text/css", t.appendChild(e), e;
|
||||
}
|
||||
function p(e, t) {
|
||||
var i, a, r, c, d;
|
||||
if (t.singleton) {
|
||||
var p = s++;
|
||||
i = o || (o = u()), a = l(m, null, i, p, !1), r = l(m, null, i, p, !0);
|
||||
} else e.sourceMap && "function" == typeof URL && "function" == typeof URL.createObjectURL && "function" == typeof URL.revokeObjectURL && "function" == typeof Blob && "function" == typeof btoa ? (c = document.createElement("link"), d = n(), c.rel = "stylesheet", d.appendChild(c), a = l(v, null, i = c), r = function () {
|
||||
i.parentNode.removeChild(i), i.href && URL.revokeObjectURL(i.href);
|
||||
}) : (i = u(), a = l(g, null, i), r = function () {
|
||||
i.parentNode.removeChild(i);
|
||||
});
|
||||
return a(e), function (t) {
|
||||
if (t) {
|
||||
if (t.css === e.css && t.media === e.media && t.sourceMap === e.sourceMap) return;
|
||||
a(e = t);
|
||||
} else r();
|
||||
};
|
||||
}
|
||||
e.exports = function (e, t) {
|
||||
if ("undefined" != typeof DEBUG && DEBUG && "object" != typeof document) throw new Error("The style-loader cannot be used in a non-browser environment");
|
||||
"undefined" == typeof (t = t || {}).singleton && (t.singleton = r());
|
||||
var a = d(e);
|
||||
return c(a, t), function (e) {
|
||||
for (var r = [], n = 0; n < a.length; n++) {
|
||||
var o = a[n];
|
||||
(s = i[o.id]).refs--, r.push(s);
|
||||
}
|
||||
e && c(d(e), t);
|
||||
for (n = 0; n < r.length; n++) {
|
||||
var s;
|
||||
if (0 === (s = r[n]).refs) {
|
||||
for (var l = 0; l < s.parts.length; l++) s.parts[l]();
|
||||
delete i[s.id];
|
||||
}
|
||||
}
|
||||
};
|
||||
};
|
||||
var f,
|
||||
h = (f = [], function (e, t) {
|
||||
var i = [];
|
||||
f[e] = t;
|
||||
for (var a = 0; a < f.length; a++) f[a] && i.push(f[a]);
|
||||
return i.join("\n");
|
||||
});
|
||||
function m(e, t, i, a) {
|
||||
var r = i ? "" : a.css;
|
||||
if (e.styleSheet) e.styleSheet.cssText = h(t, r);else {
|
||||
var n = document.createTextNode(r),
|
||||
o = e.childNodes;
|
||||
o[t] && e.removeChild(o[t]), o.length ? e.insertBefore(n, o[t]) : e.appendChild(n);
|
||||
}
|
||||
}
|
||||
function g(e, t) {
|
||||
var i = t.css,
|
||||
a = t.media;
|
||||
t.sourceMap;
|
||||
if (a && e.setAttribute("media", a), e.styleSheet) e.styleSheet.cssText = i;else {
|
||||
for (; e.firstChild;) e.removeChild(e.firstChild);
|
||||
e.appendChild(document.createTextNode(i));
|
||||
}
|
||||
}
|
||||
function v(e, t) {
|
||||
var i = t.css,
|
||||
a = (t.media, t.sourceMap);
|
||||
a && (i += "\n/*# sourceMappingURL=data:application/json;base64," + btoa(unescape(encodeURIComponent(JSON.stringify(a)))) + " */");
|
||||
var r = new Blob([i], {
|
||||
type: "text/css"
|
||||
}),
|
||||
n = e.href;
|
||||
e.href = URL.createObjectURL(r), n && URL.revokeObjectURL(n);
|
||||
}
|
||||
}
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1,27 @@
|
||||
function (e, t, i) {
|
||||
"use strict";
|
||||
|
||||
var a = this && this.__importDefault || function (e) {
|
||||
return e && e.__esModule ? e : {
|
||||
"default": e
|
||||
};
|
||||
};
|
||||
t.__esModule = !0;
|
||||
var r = a(i(66));
|
||||
t["default"] = {
|
||||
langPack: r["default"],
|
||||
detectWxLang: function () {
|
||||
var e = location.search,
|
||||
t = /(wehcat_real_lang|wechat_real_lang)=([a-zA-Z_\-]+)/.exec(e);
|
||||
if (t) return t[2];
|
||||
for (var i = document.getElementsByTagName("script"), a = 0; a < i.length; a++) {
|
||||
var r = i[a].src;
|
||||
if (r && /TCapIframeApi/i.test(r)) {
|
||||
var n = /lang=([a-zA-Z_\-]+)/.exec(r);
|
||||
if (n) return n[1].toLowerCase();
|
||||
}
|
||||
}
|
||||
return "";
|
||||
}
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,54 @@
|
||||
function (e, t, i) {
|
||||
"use strict";
|
||||
|
||||
t.__esModule = !0;
|
||||
var a = ["c2", "c3", "c11", "c12", "c21", "c22", "c23"],
|
||||
r = {
|
||||
"zh-cn": ["\u5b89\u5168\u9a8c\u8bc1", "\u9a8c\u8bc1\u6210\u529f", "\u8fd4\u56de", "\u9a8c\u8bc1\u4e2d...", "\u9a8c\u8bc1\u6210\u529f", "\u5c1d\u8bd5\u592a\u591a\u4e86", "2s\u540e\u81ea\u52a8\u4e3a\u60a8\u5237\u65b0\u9a8c\u8bc1\u7801"],
|
||||
"zh-hk": ["\u5b89\u5168\u9a57\u8b49", "\u9a57\u8b49\u6210\u529f", "\u8fd4\u56de", "\u9a57\u8b49\u4e2d\u22ef", "\u9a57\u8b49\u6210\u529f", "\u932f\u8aa4\u6b21\u6578\u592a\u591a", "\u9a57\u8b49\u78bc\u5c07\u65bc 2 \u79d2\u5f8c\u81ea\u52d5\u66f4\u65b0"],
|
||||
"zh-tw": ["\u5b89\u5168\u9a57\u8b49", "\u9a57\u8b49\u6210\u529f", "\u8fd4\u56de", "\u9a57\u8b49\u4e2d...", "\u9a57\u8b49\u6210\u529f", "\u5617\u8a66\u6b21\u6578\u592a\u591a", "2\u79d2\u5f8c\u81ea\u52d5\u70ba\u60a8\u91cd\u65b0\u6574\u7406\u9a57\u8b49\u78bc"],
|
||||
en: ["Security Verification", "Verification is successful", "Back", "Verifying...", "Verification is successful", "Refreshing too often", "Verification Code will refresh in 2 sec."],
|
||||
ar: ["\u0627\u0644\u062a\u062d\u0642\u0642 \u0645\u0646 \u0627\u0644\u062d\u0645\u0627\u064a\u0629", "\u0646\u062c\u0627\u062d \u0627\u0644\u062a\u062d\u0642\u0642", "\u0639\u0648\u062f\u0629", "\u062c\u0627\u0631\u064a \u0627\u0644\u062a\u062d\u0642\u0642...", "\u0646\u062c\u0627\u062d \u0627\u0644\u062a\u062d\u0642\u0642", "\u0643\u062b\u0631\u0629 \u0627\u0644\u062a\u062d\u062f\u064a\u062b", "\u0633\u064a\u062a\u0645 \u062a\u062d\u062f\u064a\u062b \u0643\u0648\u062f \u0627\u0644\u062a\u062d\u0642\u0642 \u062e\u0644\u0627\u0644 2 \u062b\u0627\u0646\u064a\u0629."],
|
||||
my: ["\u101c\u1036\u102f\u107f\u1001\u1036\u1033\u1031\u101b\u1038\u1021\u1010\u100a\u1039\u103b\u1015\u1033\u103b\u1001\u1004\u1039\u1038", "\u1021\u1010\u100a\u1039\u103b\u1015\u1033\u1019\u1088 \u1031\u1021\u102c\u1004\u1039\u103b\u1019\u1004\u1039\u1015\u102b\u101e\u100a\u1039", "\u1031\u1014\u102c\u1000\u1039\u101e\u102d\u102f\u1094", "\u1021\u1010\u100a\u1039\u103b\u1015\u1033\u1031\u1014\u101e\u100a\u1039...", "\u1021\u1010\u100a\u1039\u103b\u1015\u1033\u1019\u1088 \u1031\u1021\u102c\u1004\u1039\u103b\u1019\u1004\u1039\u1015\u102b\u101e\u100a\u1039", "\u1019\u107e\u1000\u102c\u1001\u1014\u103b\u1015\u1014\u1039\u1016\u103c\u1004\u1039\u1037\u1031\u1014\u101b\u101e\u100a\u1039\u104b", "2 \u1005\u1000\u1060\u1014\u1039\u1094\u1021\u1010\u103c\u1004\u1039\u1038 \u1021\u1010\u100a\u1039\u103b\u1015\u1033\u101b\u1014\u1039Code \u1021\u101e\u1005\u1039\u1031\u1015\u105a\u1015\u102b\u1019\u100a\u1039"],
|
||||
fr: ["V\xe9rification de s\xe9curit\xe9", "La v\xe9rification est r\xe9ussie", "Retour", "V\xe9rification...", "La v\xe9rification est r\xe9ussie", "Trop actualis\xe9", "Le code de v\xe9rification s'actualisera dans 2 sec."],
|
||||
de: ["Sicherheitsbest\xe4tigung", "Verifizierung erfolgreich", "Zur\xfcck", "Wird verifziert\xa0\u2026", "Verifizierung erfolgreich", "Zu oft aktualisiert", "Verifizierungscode wird in 2 Sekunden aktualisiert."],
|
||||
he: ["\u05d0\u05d9\u05de\u05d5\u05ea \u05d0\u05d1\u05d8\u05d7\u05d4", "\u05d4\u05d0\u05d9\u05de\u05d5\u05ea \u05e2\u05d1\u05e8 \u05d1\u05d4\u05e6\u05dc\u05d7\u05d4", "\u05d7\u05d6\u05e8\u05d4", "\u05de\u05d0\u05de\u05ea", "\u05d4\u05d0\u05d9\u05de\u05d5\u05ea \u05e2\u05d1\u05e8 \u05d1\u05d4\u05e6\u05dc\u05d7\u05d4", "\u05de\u05e8\u05e2\u05e0\u05df \u05dc\u05e2\u05ea\u05d9\u05dd \u05e7\u05e8\u05d5\u05d1\u05d5\u05ea \u05de\u05d9\u05d3\u05d9", "\u05e7\u05d5\u05d3 \u05d4\u05d0\u05d9\u05de\u05d5\u05ea \u05d9\u05ea\u05d7\u05d3\u05e9 \u05d1\u05ea\u05d5\u05da 2 \u05e9\u05e0\u05d9\u05d5\u05ea"],
|
||||
hi: ["\u0938\u0941\u0930\u0915\u094d\u0937\u093e \u0938\u0924\u094d\u092f\u093e\u092a\u0928", "\u0938\u0924\u094d\u092f\u093e\u092a\u0928 \u0938\u092b\u0932", "\u092a\u0940\u091b\u0947", "\u0938\u0924\u094d\u092f\u093e\u092a\u0928 \u091c\u093e\u0930\u0940...", "\u0938\u0924\u094d\u092f\u093e\u092a\u0928 \u0938\u092b\u0932", "\u0905\u0915\u094d\u0938\u0930 \u0930\u0940\u092b\u094d\u0930\u0947\u0936 \u0939\u094b \u0930\u0939\u093e \u0939\u0948\u0964", "\u0938\u0924\u094d\u092f\u093e\u092a\u0928 \u0915\u094b\u0921 2 \u0938\u0947\u0915. \u092e\u0947\u0902 \u0930\u0940\u092b\u094d\u0930\u0947\u0936 \u0939\u094b\u0917\u093e"],
|
||||
id: ["Verifikasi Keamanan", "Verifikasi berhasil", "Kembali", "Memverifikasi...", "Verifikasi berhasil", "Terlalu sering merefresh.", "Kode Verifikasi akan di-refresh dalam 2 detik."],
|
||||
it: ["Verifica di sicurezza", "Verifica completata", "Indietro", "Verifica in corso", "Verifica completata", "Troppo frequente", "Il codice di verifica sar\xe0 aggiornato tra 2 secondi"],
|
||||
ja: ["\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u8a8d\u8a3c", "\u8a8d\u8a3c\u304c\u6b63\u5e38\u306b\u5b8c\u4e86", "\u623b\u308b", "\u8a8d\u8a3c\u4e2d\u2026", "\u8a8d\u8a3c\u304c\u6b63\u5e38\u306b\u5b8c\u4e86", "\u66f4\u65b0\u983b\u5ea6\u304c\u9ad8\u3059\u304e\u307e\u3059", "\u8a8d\u8a3c\u30b3\u30fc\u30c9\u306f2\u79d2\u5f8c\u306b\u30ea\u30d5\u30ec\u30c3\u30b7\u30e5\u3055\u308c\u307e\u3059\u3002"],
|
||||
ko: ["\ubcf4\uc548 \uc778\uc99d", "\uc778\uc99d \uc131\uacf5", "\ub4a4\ub85c\uac00\uae30", "\uc778\uc99d \uc911...", "\uc778\uc99d \uc131\uacf5", "\uc0c8\ub85c\uace0\uce68\uc774 \ub108\ubb34 \uc7a6\uc2b5\ub2c8\ub2e4", "\uc778\uc99d \ucf54\ub4dc\uac00 2\ucd08 \ud6c4\uc5d0 \uc0c8\ub85c\uace0\uce68 \ub429\ub2c8\ub2e4."],
|
||||
lo: ["\u0e81\u0eb2\u0e99\u0ea2\u0eb7\u0e99\u0ea2\u0eb1\u0e99\u0e84\u0ea7\u0eb2\u0ea1\u0e9b\u0ead\u0e94\u0ec4\u0e9e", "\u0e81\u0eb2\u0e99\u0ea2\u0eb7\u0e99\u0ea2\u0eb1\u0e99\u0ec4\u0e94\u0ec9\u0eaa\u0eb3\u0ec0\u0ea5\u0eb1\u0e94\u0ec1\u0ea5\u0ec9\u0ea7", "\u0e81\u0eb1\u0e9a\u0e84\u0eb7\u0e99", "\u0e81\u0eb3\u0ea5\u0eb1\u0e87\u0ea2\u0eb7\u0e99\u0ea2\u0eb1\u0e99...", "\u0e81\u0eb2\u0e99\u0ea2\u0eb7\u0e99\u0ea2\u0eb1\u0e99\u0ec4\u0e94\u0ec9\u0eaa\u0eb3\u0ec0\u0ea5\u0eb1\u0e94\u0ec1\u0ea5\u0ec9\u0ea7", "\u0e9f\u0eb7\u0ec9\u0e99\u0e9f\u0eb9\u0e84\u0eb7\u0e99\u0ec0\u0ea5\u0eb7\u0ec9\u0ead\u0e8d\u0ec6", "\u0ea5\u0eb0\u0eab\u0eb1\u0e94\u0ea2\u0eb7\u0e99\u0ea2\u0eb1\u0e99\u0e88\u0eb0\u0ea1\u0eb5\u0e81\u0eb2\u0e99\u0e9f\u0eb7\u0ec9\u0e99\u0e9f\u0eb9\u0e84\u0eb7\u0e99\u0ec3\u0eab\u0ea1\u0ec8\u0e9e\u0eb2\u0e8d\u0ec3\u0e99 2 \u0ea7\u0eb4\u0e99\u0eb2\u0e97\u0eb5"],
|
||||
ms: ["Pengesahan Keselamatan", "Pengesahan berjaya", "Kembali", "Mengesahkan...", "Pengesahan berjaya", "Terlalu kerap segar semula", "Kod Pengesahan akan disegar semula dalam 2 saat"],
|
||||
pl: ["Weryfikacja bezpiecze\u0144stwa", "Weryfikacja powiod\u0142a si\u0119", "Wstecz", "Weryfikowanie...", "Weryfikacja powiod\u0142a si\u0119", "Za cz\u0119sto od\u015bwie\u017casz", "Kod weryfikacyjny zostanie od\u015bwie\u017cony za 2 s."],
|
||||
pt: ["Verifica\xe7\xe3o de Seguran\xe7a", "Verificado com sucesso", "Voltar", "Verificando...", "Verificado com sucesso", "Atualizando muito", "C\xf3digo de Verifica\xe7\xe3o ser\xe1 atualizado em 2 seg."],
|
||||
ru: ["\u041f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u0432 \u0446\u0435\u043b\u044f\u0445 \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u0438", "\u041f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u043f\u0440\u043e\u0439\u0434\u0435\u043d\u0430", "\u041d\u0430\u0437\u0430\u0434", "\u041f\u0440\u043e\u0432\u0435\u0440\u043a\u0430...", "\u041f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u043f\u0440\u043e\u0439\u0434\u0435\u043d\u0430", "\u0421\u043b\u0438\u0448\u043a\u043e\u043c \u0447\u0430\u0441\u0442\u043e\u0435 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435", "\u041f\u0440\u043e\u0432\u0435\u0440\u043e\u0447\u043d\u044b\u0439 \u043a\u043e\u0434 \u0431\u0443\u0434\u0435\u0442 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d \u0447\u0435\u0440\u0435\u0437 2 \u0441\u0435\u043a."],
|
||||
es: ["Verificaci\xf3n de seguridad", "Verificaci\xf3n correcta", "Atr\xe1s", "Verificando...", "Verificaci\xf3n correcta", "Actualizaci\xf3n muy frecuente", "El c\xf3digo se actualizar\xe1 en 2 segundos."],
|
||||
th: ["\u0e01\u0e32\u0e23\u0e22\u0e37\u0e19\u0e22\u0e31\u0e19\u0e04\u0e27\u0e32\u0e21\u0e1b\u0e25\u0e2d\u0e14\u0e20\u0e31\u0e22", "\u0e01\u0e32\u0e23\u0e22\u0e37\u0e19\u0e22\u0e31\u0e19\u0e2a\u0e33\u0e40\u0e23\u0e47\u0e08\u0e41\u0e25\u0e49\u0e27", "\u0e01\u0e25\u0e31\u0e1a", "\u0e01\u0e33\u0e25\u0e31\u0e07\u0e22\u0e37\u0e19\u0e22\u0e31\u0e19...", "\u0e01\u0e32\u0e23\u0e22\u0e37\u0e19\u0e22\u0e31\u0e19\u0e2a\u0e33\u0e40\u0e23\u0e47\u0e08\u0e41\u0e25\u0e49\u0e27", "\u0e23\u0e35\u0e40\u0e1f\u0e23\u0e0a\u0e1a\u0e48\u0e2d\u0e22\u0e40\u0e01\u0e34\u0e19\u0e44\u0e1b", "\u0e23\u0e2b\u0e31\u0e2a\u0e01\u0e32\u0e23\u0e22\u0e37\u0e19\u0e22\u0e31\u0e19\u0e08\u0e30\u0e23\u0e35\u0e40\u0e1f\u0e23\u0e0a\u0e20\u0e32\u0e22\u0e43\u0e19 2 \u0e27\u0e34\u0e19\u0e32\u0e17\u0e35"],
|
||||
tr: ["G\xfcvenlik Do\u011frulamas\u0131", "Do\u011frulama ba\u015far\u0131l\u0131", "Geri", "Do\u011frulan\u0131yor", "Do\u011frulama ba\u015far\u0131l\u0131", "Yenilemeler \xe7ok s\u0131k", "Do\u011frulama Kodu 2 sn. sonra yenilenecek."],
|
||||
vi: ["X\xe1c minh b\u1ea3o m\u1eadt", "X\xe1c minh th\xe0nh c\xf4ng", "Quay l\u1ea1i", "\u0110ang x\xe1c minh...", "X\xe1c minh th\xe0nh c\xf4ng", "L\xe0m m\u1edbi qu\xe1 th\u01b0\u1eddng xuy\xean", "M\xe3 x\xe1c minh s\u1ebd \u0111\u01b0\u1ee3c l\xe0m m\u1edbi sau 2 gi\xe2y."]
|
||||
};
|
||||
r.zh = r["zh-cn"], r.iw = r.he, r["in"] = r.id;
|
||||
var n = {
|
||||
2052: "zh-cn",
|
||||
1028: "zh-hk",
|
||||
1033: "en"
|
||||
},
|
||||
o = "zh";
|
||||
/MicroMessenger/.test(navigator.userAgent) && (o = "en");
|
||||
var s = navigator.languages && navigator.languages[0] ? navigator.languages[0] : navigator.language || navigator.userLanguage || "",
|
||||
c = {
|
||||
rightToLeft: !1
|
||||
};
|
||||
c.browserLang = s, c.total = r, c.langExist = function (e) {
|
||||
var t = e;
|
||||
return /-/.test(e) && (t = e.split("-")[0]), r[e] ? e : !!r[t] && t;
|
||||
}, c.init = function (e) {
|
||||
/^\d+$/.test(e) && (e = n[e]);
|
||||
var t = (e || s || o).toLowerCase().replace(/_/, "-"),
|
||||
i = c.langExist(t);
|
||||
i || (i = "en");
|
||||
for (var d = r[i], l = 0; l < a.length; l++) c[a[l]] = d[l] || r[o][l];
|
||||
"ar" !== i && "he" !== i && "iw" !== i || (c.rightToLeft = !0), c.currentLanguage = i;
|
||||
}, c.init(), t["default"] = c;
|
||||
}
|
||||
@@ -0,0 +1,123 @@
|
||||
function (e, t, i) {
|
||||
"use strict";
|
||||
|
||||
var a = this && this.__values || function (e) {
|
||||
var t = "function" == typeof Symbol && Symbol.iterator,
|
||||
i = t && e[t],
|
||||
a = 0;
|
||||
if (i) return i.call(e);
|
||||
if (e && "number" == typeof e.length) return {
|
||||
next: function () {
|
||||
return e && a >= e.length && (e = void 0), {
|
||||
value: e && e[a++],
|
||||
done: !e
|
||||
};
|
||||
}
|
||||
};
|
||||
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
||||
},
|
||||
r = this && this.__read || function (e, t) {
|
||||
var i = "function" == typeof Symbol && e[Symbol.iterator];
|
||||
if (!i) return e;
|
||||
var a,
|
||||
r,
|
||||
n = i.call(e),
|
||||
o = [];
|
||||
try {
|
||||
for (; (void 0 === t || t-- > 0) && !(a = n.next()).done;) o.push(a.value);
|
||||
} catch (s) {
|
||||
r = {
|
||||
error: s
|
||||
};
|
||||
} finally {
|
||||
try {
|
||||
a && !a.done && (i = n["return"]) && i.call(n);
|
||||
} finally {
|
||||
if (r) throw r.error;
|
||||
}
|
||||
}
|
||||
return o;
|
||||
};
|
||||
t.__esModule = !0, t.WindowChanged = void 0;
|
||||
var n = !1;
|
||||
t.WindowChanged = {
|
||||
listeners: [],
|
||||
lastSizes: [window.innerHeight, window.innerWidth],
|
||||
subscribe: function (e) {
|
||||
var i, r;
|
||||
try {
|
||||
for (var n = a(t.WindowChanged.listeners), o = n.next(); !o.done; o = n.next()) {
|
||||
if (o.value === e) return;
|
||||
}
|
||||
} catch (s) {
|
||||
i = {
|
||||
error: s
|
||||
};
|
||||
} finally {
|
||||
try {
|
||||
o && !o.done && (r = n["return"]) && r.call(n);
|
||||
} finally {
|
||||
if (i) throw i.error;
|
||||
}
|
||||
}
|
||||
t.WindowChanged.listeners.push(e), t.WindowChanged.opened4 && e(4), t.WindowChanged.opened6 && e(6);
|
||||
},
|
||||
opened4: !1,
|
||||
opened6: !1,
|
||||
bind: function () {
|
||||
try {
|
||||
if (n) return;
|
||||
window.addEventListener("resize", function () {
|
||||
var e,
|
||||
i,
|
||||
n = r(t.WindowChanged.lastSizes, 2),
|
||||
o = n[0],
|
||||
s = n[1],
|
||||
c = o - window.innerHeight,
|
||||
d = s - window.innerWidth;
|
||||
if (t.WindowChanged.lastSizes = [window.innerHeight, window.innerWidth], 0 === c || 0 === d) {
|
||||
var l = Math.max(c, d);
|
||||
if (l > 250) {
|
||||
t.WindowChanged.opened4 = !0;
|
||||
try {
|
||||
for (var u = a(t.WindowChanged.listeners), p = u.next(); !p.done; p = u.next()) {
|
||||
(0, p.value)(4);
|
||||
}
|
||||
} catch (f) {
|
||||
e = {
|
||||
error: f
|
||||
};
|
||||
} finally {
|
||||
try {
|
||||
p && !p.done && (i = u["return"]) && i.call(u);
|
||||
} finally {
|
||||
if (e) throw e.error;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}), window.addEventListener("keydown", function (e) {
|
||||
var i, r;
|
||||
if (!0 === e.metaKey && !0 === e.altKey && 73 === e.keyCode || !0 === e.metaKey && !0 === e.altKey && 74 === e.keyCode || !0 === e.metaKey && !0 === e.altKey && 67 === e.keyCode || !0 === e.metaKey && !0 === e.shiftKey && 67 === e.keyCode || !0 === e.ctrlKey && !0 === e.shiftKey && 73 === e.keyCode || !0 === e.ctrlKey && !0 === e.shiftKey && 74 === e.keyCode || !0 === e.ctrlKey && !0 === e.shiftKey && 67 === e.keyCode || 123 === e.keyCode || !0 === e.metaKey && !0 === e.altKey && 85 === e.keyCode || !0 === e.ctrlKey && 85 === e.keyCode) {
|
||||
t.WindowChanged.opened6 = !0;
|
||||
try {
|
||||
for (var n = a(t.WindowChanged.listeners), o = n.next(); !o.done; o = n.next()) {
|
||||
(0, o.value)(6);
|
||||
}
|
||||
} catch (s) {
|
||||
i = {
|
||||
error: s
|
||||
};
|
||||
} finally {
|
||||
try {
|
||||
o && !o.done && (r = n["return"]) && r.call(n);
|
||||
} finally {
|
||||
if (i) throw i.error;
|
||||
}
|
||||
}
|
||||
}
|
||||
}), n = !0;
|
||||
} catch (e) {}
|
||||
}
|
||||
}, t.WindowChanged.bind();
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
function (e, t, i) {
|
||||
"use strict";
|
||||
|
||||
t.__esModule = !0;
|
||||
var a = i(3);
|
||||
t["default"] = function (e) {
|
||||
var t = window.document.getElementsByTagName("script")[0],
|
||||
i = window.document.createElement("script"),
|
||||
r = e.callback || "callback",
|
||||
n = "_aq_".concat(Math.floor(1e6 * Math.random()));
|
||||
window[n] = function () {
|
||||
try {
|
||||
delete window[n];
|
||||
} catch (t) {}
|
||||
e.success && e.success.apply(null, Array.prototype.slice.call(arguments));
|
||||
};
|
||||
var o = e.url,
|
||||
s = {};
|
||||
s[r] = n, e.data && (s = (0, a.extend)(s, e.data)), o = (0, a.addUrlParam)(o, s), i.async = !!e.async, i.src = o, i.onload = function () {
|
||||
i && t.parentNode && t.parentNode.removeChild(i);
|
||||
}, i.onerror = e.error || function () {}, t.parentNode && t.parentNode.insertBefore(i, t);
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
function (e, t, i) {
|
||||
"use strict";
|
||||
|
||||
t.__esModule = !0;
|
||||
var a,
|
||||
r,
|
||||
n = (a = 1, (r = function (e) {
|
||||
return e = /subsid=\d+/.test(e) ? e.replace(/subsid=\d+/g, "subsid=".concat(a)) : e.indexOf("?") >= 0 ? "".concat(e, "&subsid=").concat(a) : "".concat(e, "?subsid=").concat(a), a++, e;
|
||||
}).reset = function () {
|
||||
a = 1;
|
||||
}, r.set = function (e) {
|
||||
e && (a = e);
|
||||
}, r);
|
||||
t["default"] = n;
|
||||
}
|
||||
@@ -0,0 +1,210 @@
|
||||
function (e, t, i) {
|
||||
"use strict";
|
||||
|
||||
var a = this && this.__importDefault || function (e) {
|
||||
return e && e.__esModule ? e : {
|
||||
"default": e
|
||||
};
|
||||
};
|
||||
t.__esModule = !0;
|
||||
var r = a(i(8)),
|
||||
n = i(53),
|
||||
o = a(i(43)),
|
||||
s = a(i(44)),
|
||||
c = i(28),
|
||||
d = a(i(20)),
|
||||
l = i(0),
|
||||
u = i(26),
|
||||
p = r["default"].isIEVer(6),
|
||||
f = function () {
|
||||
function e(e, t) {
|
||||
this.loadingSize = {
|
||||
height: 30,
|
||||
width: 30
|
||||
}, this.securityIframe = null, this.capType = "defaultSize", this.preloadTemplate = null, this.preloadMode = !1, this.transformEl = null, this.showLoading = !0, (0, n.addPopupStyle)(), this.pos = e.pos, this.inDarkMode = e.inDarkMode, this.themeColor = e.themeColor, this.ele = e.ele, this.sdkOpts = e.sdkOpts, this.msgChannel = t, this.showLoading = e.showLoading;
|
||||
}
|
||||
return e.prototype.preCreate = function (e) {
|
||||
this.showLoading && this.createLoading(), e();
|
||||
}, e.prototype.create = function (e, t) {
|
||||
var i = this,
|
||||
a = e.sizeSC,
|
||||
r = e.posSC;
|
||||
this.sizeSC = a, this.posSC = r, this.capType = e.captype, this.preloadTemplate = e.preloadTemplate || null, this.preloadMode = Boolean(e.preloadData), setTimeout(function () {
|
||||
try {
|
||||
i.pre_onlyChangePos(e) || i.createIframe(e.src, e.langPack, e.preloadTemplate), i.popupResize(e.captype, e.fwidth), t();
|
||||
} catch (a) {
|
||||
i.msgChannel.publish(c.Topics.IframeError, a);
|
||||
}
|
||||
}, 50);
|
||||
}, e.prototype.pre_onlyChangePos = function (e) {
|
||||
var t,
|
||||
i = e.preloadTemplate,
|
||||
a = e.preloadData,
|
||||
n = e.sizeSC,
|
||||
o = e.posSC;
|
||||
return !!(a && i && (null === (t = (0, u.getHtmlTemplateGroup)()[i.type]) || void 0 === t ? void 0 : t.styled)) && (r["default"].CSS(i.wrapper, {
|
||||
width: "".concat(n.width, "px"),
|
||||
height: "".concat(n.height, "px"),
|
||||
top: o.top,
|
||||
left: o.left
|
||||
}), !0);
|
||||
}, e.prototype.updateIframeSrc = function (e) {
|
||||
this.securityIframe && (this.securityIframe.src = e);
|
||||
}, e.prototype.setSizeSc = function (e) {
|
||||
this.sizeSC = e;
|
||||
}, e.prototype.createIframe = function (e, t, i) {
|
||||
var a,
|
||||
n,
|
||||
o = i ? i.iframe : null;
|
||||
null === o && (o = (0, l.createGeneralIframe)({
|
||||
id: "tcaptcha_iframe",
|
||||
className: "tcaptcha-iframe"
|
||||
}), this.securityIframe = o), r["default"].CSS(o, {
|
||||
opacity: "1"
|
||||
});
|
||||
var s = {
|
||||
position: "static",
|
||||
height: "".concat(null === (a = this.sizeSC) || void 0 === a ? void 0 : a.height, "px"),
|
||||
width: "".concat(null === (n = this.sizeSC) || void 0 === n ? void 0 : n.width, "px"),
|
||||
background: this.inDarkMode ? "#232323" : "#ffffff"
|
||||
};
|
||||
r["default"].CSS(o, s);
|
||||
var c = this.createIframeWrapper(o, t, i);
|
||||
this.transformEl = c, i ? ((0, u.styledTypeTemplate)(i.type, "popup"), r["default"].CSS(i.wrapper, {
|
||||
display: "block"
|
||||
})) : (c.appendChild(o), this.ele.appendChild(c), o.src = e);
|
||||
}, e.prototype.createIframeWrapper = function (e, t, i) {
|
||||
var a,
|
||||
n,
|
||||
o,
|
||||
s,
|
||||
l,
|
||||
u,
|
||||
f,
|
||||
h,
|
||||
m = this,
|
||||
g = r["default"].getPosStyleNew("popup", this.pos),
|
||||
v = (null === i || void 0 === i ? void 0 : i.wrapper) || r["default"].createElement("div");
|
||||
v.className = "tcaptcha-transform".concat(r["default"].isChrome75 && r["default"].isMobileUa ? " chrome-75" : "");
|
||||
var y = this.inDarkMode;
|
||||
v.className = y ? "".concat(v.className, " dark-mode") : v.className, i || (v.id = "tcaptcha_transform");
|
||||
var _ = {
|
||||
position: g,
|
||||
width: "".concat(null === (a = this.sizeSC) || void 0 === a ? void 0 : a.width, "px"),
|
||||
height: "".concat(null === (n = this.sizeSC) || void 0 === n ? void 0 : n.height, "px"),
|
||||
top: null === (o = this.posSC) || void 0 === o ? void 0 : o.top,
|
||||
left: null === (s = this.posSC) || void 0 === s ? void 0 : s.left,
|
||||
transition: "opacity 0.3s",
|
||||
opacity: "0"
|
||||
};
|
||||
(null === (l = this.sdkOpts) || void 0 === l ? void 0 : l.width) || (_.border = y ? "1px solid #999" : "1px solid #e5e5e5", _.borderRadius = "3px"), p && (_.position = "absolute"), r["default"].CSS(v, _), (null === (u = this.sdkOpts) || void 0 === u ? void 0 : u.width) && r["default"].setPopPosition(v, null === (f = this.sizeSC) || void 0 === f ? void 0 : f.width, null === (h = this.sizeSC) || void 0 === h ? void 0 : h.height, this.sdkOpts);
|
||||
var b = r["default"].createElement("div");
|
||||
b.className = "ticons ticon-refresh", b.id = "ticon_refresh";
|
||||
var w = r["default"].createElement("p");
|
||||
w.className = "ticons transform-header", w.id = "transform_header", w.innerText = t.c22;
|
||||
var E = r["default"].createElement("p");
|
||||
E.className = "ticons transform-text", E.id = "transform_text", E.innerText = t.c23, v.appendChild(b), v.appendChild(w), v.appendChild(E);
|
||||
var T = r["default"].createElement("div");
|
||||
return T.id = "transform_close", T.className = "ticons transform-close", v.appendChild(T), d["default"].add(T, "click", function () {
|
||||
m.msgChannel.publish(c.Topics.LimitCLose, "popup");
|
||||
}), v;
|
||||
}, e.prototype.onReadyShow = function () {
|
||||
var e = this.preloadTemplate;
|
||||
e ? r["default"].CSS(e.wrapper, {
|
||||
opacity: "1"
|
||||
}) : r["default"].CSS(this.transformEl, {
|
||||
opacity: "1"
|
||||
});
|
||||
}, e.prototype.popupResize = function (e, t) {
|
||||
var i,
|
||||
a = this,
|
||||
c = 0,
|
||||
l = 0;
|
||||
c = window.innerWidth, l = window.innerHeight, this.unlistenResize(), this.onResizeCb = function () {
|
||||
clearTimeout(i), i = window.setTimeout(function () {
|
||||
var i;
|
||||
if (!(null !== (i = a.sdkOpts) && void 0 !== i && i.width || Math.abs(window.innerWidth - c) < o["default"].threshold && Math.abs(window.innerHeight - l) < o["default"].threshold)) {
|
||||
var d = a.preloadMode ? a.preloadTemplate : null;
|
||||
c = window.innerWidth, l = window.innerHeight;
|
||||
var u = (0, n.getPopupIframeSizeAndPos)(e, t),
|
||||
p = u.sizeSC,
|
||||
f = u.posSC;
|
||||
a.sizeSC = p, a.posSC = f;
|
||||
var h = {
|
||||
height: "".concat(p.height, "px"),
|
||||
width: "".concat(p.width, "px"),
|
||||
top: f.top,
|
||||
left: f.left
|
||||
},
|
||||
m = (null === d || void 0 === d ? void 0 : d.wrapper) || s["default"].border();
|
||||
m && r["default"].CSS(m, h), r["default"].CSS((null === d || void 0 === d ? void 0 : d.iframe) || a.securityIframe, h);
|
||||
}
|
||||
}, 50);
|
||||
}, this.onPreloadResizeCb = this.onResizeCb, d["default"].add(window, "resize", this.onResizeCb);
|
||||
}, e.prototype.unlistenResize = function () {
|
||||
this.onPreloadResizeCb && d["default"].remove(window, "resize", this.onPreloadResizeCb), this.onResizeCb && d["default"].remove(window, "resize", this.onResizeCb);
|
||||
}, e.prototype.removePopupBorder = function () {
|
||||
var e,
|
||||
t,
|
||||
i,
|
||||
a = this.securityIframe;
|
||||
if (!a && (0, n.includeInPreoloadTemplate)(this.capType) && (a = (null === (e = this.preloadTemplate) || void 0 === e ? void 0 : e.iframe) || null), a) {
|
||||
r["default"].removeIfExist("t_verify"), r["default"].setPopPosition(a, null === (t = this.sizeSC) || void 0 === t ? void 0 : t.width, null === (i = this.sizeSC) || void 0 === i ? void 0 : i.height, this.sdkOpts);
|
||||
var o = {
|
||||
opacity: "1"
|
||||
};
|
||||
r["default"].isChrome75 || (o["border-radius"] = "3px"), r["default"].CSS(a, o);
|
||||
}
|
||||
}, e.prototype.enlargeLoading = function (e, t, i, a) {
|
||||
var n = s["default"].verifyIcon();
|
||||
n && r["default"].CSS(n, {
|
||||
marginTop: "".concat(i / 2, "px")
|
||||
}), r["default"].CSS(e, {
|
||||
width: "".concat(t, "px"),
|
||||
height: "".concat(i, "px")
|
||||
}), r["default"].setPopPosition(e, t, i, a);
|
||||
}, e.prototype.destroy = function () {
|
||||
this.unlistenResize(), document.getElementById("tcaptcha_transform_dy") && (0, l.removeDomClass)(document.getElementById("tcaptcha_transform_dy"), "dark-mode");
|
||||
}, e.prototype.createLoading = function () {
|
||||
var e,
|
||||
t,
|
||||
i = this,
|
||||
a = this.inDarkMode,
|
||||
n = r["default"].createElement("div");
|
||||
n.className = "t-mask", n.id = "t_mask", window.document.body.appendChild(n);
|
||||
var c = r["default"].createElement("div");
|
||||
c.id = "t_verify", c.className = "t-verify";
|
||||
var d = r["default"].createElement("div");
|
||||
d.className = "verify-icon", d.id = "verify_icon", c.appendChild(d);
|
||||
var l = r["default"].createElement("span");
|
||||
l.className = "dots_item";
|
||||
var u = r["default"].createElement("span");
|
||||
u.className = "dots_item";
|
||||
var p = r["default"].createElement("span");
|
||||
p.className = "dots_item";
|
||||
var f = {
|
||||
background: r["default"].initColor(this.themeColor)
|
||||
};
|
||||
r["default"].CSS(l, f), r["default"].CSS(u, f), r["default"].CSS(p, f), d.appendChild(l), d.appendChild(u), d.appendChild(p);
|
||||
var h = r["default"].createElement("p");
|
||||
h.className = "verify-text", h.id = "verify_text", h.style.color = a ? "#ffffff" : "", c.appendChild(h);
|
||||
var m = r["default"].getPosStyleNew("popup", this.pos),
|
||||
g = r["default"].computeBaseFontSize();
|
||||
(null === (e = this.sdkOpts) || void 0 === e ? void 0 : e.width) && this.sdkOpts.height && (g *= this.sdkOpts.width / (o["default"].SMART_VERIFY_SZ.width * g));
|
||||
var v = {
|
||||
border: (null === (t = this.sdkOpts) || void 0 === t ? void 0 : t.width) ? "0" : a ? "1px solid #999" : "1px solid #e5e5e5",
|
||||
position: m,
|
||||
background: a ? "#232323" : "#ffffff"
|
||||
};
|
||||
r["default"].CSS(c, v), document.getElementById("tcaptcha_iframe_dy") && !a && r["default"].CSS(document.getElementById("tcaptcha_iframe_dy"), {
|
||||
background: "#ffffff"
|
||||
}), this.ele.appendChild(c), this.loadingSize = {
|
||||
height: o["default"].SMART_VERIFY_SZ.height * g,
|
||||
width: o["default"].SMART_VERIFY_SZ.width * g
|
||||
}, r["default"].setPopPosition(c, this.loadingSize.width, this.loadingSize.height || 0, this.sdkOpts), window.onresize = function () {
|
||||
s["default"].tVerify() && r["default"].setPopPosition(s["default"].tVerify(), i.loadingSize.width, i.loadingSize.height || 0);
|
||||
};
|
||||
}, e;
|
||||
}();
|
||||
t["default"] = f;
|
||||
}
|
||||
@@ -0,0 +1,65 @@
|
||||
function (e, t, i) {
|
||||
"use strict";
|
||||
|
||||
t.__esModule = !0, t["default"] = {
|
||||
slidepuzzle_new: {
|
||||
size: [19, 19],
|
||||
hasBorder: !0,
|
||||
unionSizeType: !0,
|
||||
isOpt: !0
|
||||
},
|
||||
slidepuzzle_opt: {
|
||||
size: [19, 19],
|
||||
hasBorder: !0,
|
||||
unionSizeType: !0,
|
||||
isOpt: !0
|
||||
},
|
||||
slidepuzzle_new_pc: {
|
||||
height: 360,
|
||||
width: 360,
|
||||
btn_width: 298
|
||||
},
|
||||
slidepuzzle_opt_pc: {
|
||||
height: 360,
|
||||
width: 360,
|
||||
btn_width: 298
|
||||
},
|
||||
vtt: {
|
||||
size: [19, 19],
|
||||
hasBorder: !0,
|
||||
unionSizeType: !0,
|
||||
isOpt: !0
|
||||
},
|
||||
vtt_pc: {
|
||||
height: 360,
|
||||
width: 360,
|
||||
btn_width: 298
|
||||
},
|
||||
drag: {
|
||||
size: [19, 19],
|
||||
hasBorder: !0,
|
||||
unionSizeType: !0,
|
||||
isOpt: !0
|
||||
},
|
||||
drag_pc: {
|
||||
height: 360,
|
||||
width: 360,
|
||||
btn_width: 298
|
||||
},
|
||||
dy: {
|
||||
size: [19, 19],
|
||||
hasBorder: !0,
|
||||
unionSizeType: !0,
|
||||
isOpt: !0
|
||||
},
|
||||
dy_pc: {
|
||||
height: 360,
|
||||
width: 360,
|
||||
btn_width: 298
|
||||
},
|
||||
defaultSize: {
|
||||
hasBorder: !1,
|
||||
size: ["100%", "100%"]
|
||||
}
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,89 @@
|
||||
function (e, t, i) {
|
||||
"use strict";
|
||||
|
||||
var a = this && this.__assign || function () {
|
||||
return (a = Object.assign || function (e) {
|
||||
for (var t, i = 1, a = arguments.length; i < a; i++) for (var r in t = arguments[i]) Object.prototype.hasOwnProperty.call(t, r) && (e[r] = t[r]);
|
||||
return e;
|
||||
}).apply(this, arguments);
|
||||
},
|
||||
r = this && this.__importDefault || function (e) {
|
||||
return e && e.__esModule ? e : {
|
||||
"default": e
|
||||
};
|
||||
};
|
||||
t.__esModule = !0;
|
||||
var n = i(0),
|
||||
o = i(26),
|
||||
s = i(28),
|
||||
c = r(i(8)),
|
||||
d = function () {
|
||||
function e(e, t) {
|
||||
this.pos = "", this.themeColor = "", this.sdkOpts = {
|
||||
height: 230,
|
||||
width: 300
|
||||
}, this.securityIframe = null, this.ele = e.ele, this.inDarkMode = e.inDarkMode, this.msgChannel = t;
|
||||
}
|
||||
return e.prototype.preCreate = function (e) {
|
||||
this.crateLoading(), e();
|
||||
}, e.prototype.create = function (e, t) {
|
||||
try {
|
||||
var i = null,
|
||||
r = this.getContainerStyles(e),
|
||||
c = e.preloadTemplate;
|
||||
if (e.preloadData && c) {
|
||||
var d = c.wrapper,
|
||||
l = a({}, r);
|
||||
l.display = "block", (0, n.setCss)(d, l);
|
||||
(0, n.setCss)(c.iframe, {
|
||||
height: "100%",
|
||||
width: "100%"
|
||||
}), (0, o.styledTypeTemplate)(c.type, "embed");
|
||||
} else (i = (0, n.createGeneralIframe)({
|
||||
id: "tcaptcha_iframe"
|
||||
})).src = e.src;
|
||||
this.securityIframe = i, i && ((0, n.setCss)(i, r), this.ele.appendChild(i)), t();
|
||||
} catch (u) {
|
||||
this.msgChannel.publish(s.Topics.IframeError, u);
|
||||
}
|
||||
}, e.prototype.getContainerStyles = function (e) {
|
||||
this.sizeSC = e.sizeSC, "slidepuzzle_new" !== e.captype && "slidepuzzle_opt" !== e.captype && "drag" !== e.captype && "dy" !== e.captype || (this.sizeSC = {
|
||||
width: 300,
|
||||
height: 230
|
||||
}), this.posSC = e.posSC;
|
||||
var t = this.inDarkMode;
|
||||
return {
|
||||
display: "",
|
||||
width: "".concat(this.sizeSC.width, "px"),
|
||||
height: "".concat(this.sizeSC.height, "px"),
|
||||
border: "0px",
|
||||
position: "relative",
|
||||
left: "0px",
|
||||
top: "0px",
|
||||
zIndex: "2000000002",
|
||||
opacity: "1",
|
||||
background: t ? "#232323" : "#fff"
|
||||
};
|
||||
}, e.prototype.updateIframeSrc = function (e) {
|
||||
this.securityIframe && (this.securityIframe.src = e);
|
||||
}, e.prototype.crateLoading = function () {
|
||||
var e = document.createElement("div");
|
||||
e.id = "t-embed-loading", e.className = "t-embed-loading";
|
||||
var t = c["default"].createElement("div");
|
||||
t.className = "t-embed-dots";
|
||||
var i = c["default"].createElement("div");
|
||||
i.className = "t-embed-dot";
|
||||
var a = c["default"].createElement("div");
|
||||
a.className = "t-embed-dot";
|
||||
var r = c["default"].createElement("div");
|
||||
r.className = "t-embed-dot", t.appendChild(i), t.appendChild(a), t.appendChild(r), e.appendChild(t), this.ele.appendChild(e), document.getElementById("tcaptcha_iframe_dy") && !this.inDarkMode && c["default"].CSS(document.getElementById("tcaptcha_iframe_dy"), {
|
||||
background: "#ffffff"
|
||||
});
|
||||
}, e.prototype.removeLoading = function () {
|
||||
c["default"].removeIfExist("t-embed-loading");
|
||||
}, e.prototype.destroy = function () {
|
||||
document.getElementById("tcaptcha_transform_dy") && (0, n.removeDomClass)(document.getElementById("tcaptcha_transform_dy"), "dark-mode");
|
||||
}, e;
|
||||
}();
|
||||
t["default"] = d;
|
||||
}
|
||||
@@ -0,0 +1,133 @@
|
||||
function (e, t, i) {
|
||||
"use strict";
|
||||
|
||||
var a = this && this.__importDefault || function (e) {
|
||||
return e && e.__esModule ? e : {
|
||||
"default": e
|
||||
};
|
||||
};
|
||||
t.__esModule = !0;
|
||||
var r = a(i(8)),
|
||||
n = a(i(44)),
|
||||
o = i(53),
|
||||
s = i(28),
|
||||
c = a(i(20)),
|
||||
d = i(0),
|
||||
l = i(26),
|
||||
u = !1,
|
||||
p = r["default"].isIEVer(6),
|
||||
f = function () {
|
||||
function e(e, t) {
|
||||
this.pos = "", this.themeColor = "", this.securityIframe = null, this.preloadMode = !1, this.preloadTemplate = null, u || ((0, o.addPopupStyle)(), u = !0), this.ele = e.ele, this.inDarkMode = e.inDarkMode, this.sdkOpts = e.sdkOpts, this.showHeader = e.showHeader;
|
||||
var i = r["default"].getWindowWidth(),
|
||||
a = r["default"].getWindowHeight();
|
||||
this.sizeSC = {
|
||||
height: a,
|
||||
width: i
|
||||
}, this.windowWidth = i, this.windowHeight = a, this.posSC = e.posSC, this.msgChannel = t;
|
||||
}
|
||||
return e.prototype.preCreate = function (e) {
|
||||
e();
|
||||
}, e.prototype.create = function (e, t) {
|
||||
var i = this;
|
||||
this.preloadMode = Boolean(e.preloadData), this.preloadTemplate = e.preloadTemplate || null, document.getElementById("tcaptcha_iframe_dy") && !this.inDarkMode && r["default"].CSS(document.getElementById("tcaptcha_iframe_dy"), {
|
||||
background: "#ffffff"
|
||||
}), setTimeout(function () {
|
||||
try {
|
||||
i.pre_onlyChangePos(e) || i.createIframe(e.src, e.langPack, e.preloadTemplate), t();
|
||||
} catch (a) {
|
||||
i.msgChannel.publish(s.Topics.IframeError, a);
|
||||
}
|
||||
window.onresize = function () {
|
||||
setTimeout(function () {
|
||||
var e = r["default"].getWindowHeight(),
|
||||
t = r["default"].getWindowWidth();
|
||||
if (!(Math.abs(i.windowWidth - t) < 30 && Math.abs(i.windowHeight - e) < 30)) {
|
||||
i.sizeSC.height = e, i.sizeSC.width = t, i.windowWidth = t;
|
||||
var a = {
|
||||
height: "".concat(i.sizeSC.height, "px"),
|
||||
width: "".concat(i.sizeSC.width, "px")
|
||||
},
|
||||
o = i.preloadMode ? i.preloadTemplate : null,
|
||||
s = (null === o || void 0 === o ? void 0 : o.wrapper) || n["default"].border();
|
||||
s && r["default"].CSS(s, a), r["default"].CSS((null === o || void 0 === o ? void 0 : o.iframe) || i.securityIframe, a);
|
||||
}
|
||||
}, 200);
|
||||
};
|
||||
}, 100);
|
||||
}, e.prototype.pre_onlyChangePos = function (e) {
|
||||
var t,
|
||||
i = e.preloadTemplate;
|
||||
return !!(e.preloadData && i && (null === (t = (0, l.getHtmlTemplateGroup)()[i.type]) || void 0 === t ? void 0 : t.styled)) && (r["default"].CSS(i.wrapper, {
|
||||
width: "".concat(this.sizeSC.width, "px"),
|
||||
height: "".concat(this.sizeSC.height, "px"),
|
||||
top: this.posSC.top,
|
||||
left: this.posSC.left,
|
||||
opacity: "1"
|
||||
}), !0);
|
||||
}, e.prototype.createIframe = function (e, t, i) {
|
||||
var a = this.inDarkMode;
|
||||
if (this.securityIframe) {
|
||||
var n = {
|
||||
height: "".concat(this.sizeSC.height, "px"),
|
||||
width: "".concat(this.sizeSC.width, "px"),
|
||||
top: this.posSC.top,
|
||||
left: this.posSC.left
|
||||
};
|
||||
return r["default"].CSS(this.securityIframe, n), void (this.securityIframe.src = e);
|
||||
}
|
||||
var o = null === i || void 0 === i ? void 0 : i.iframe;
|
||||
o || (o = (0, d.createGeneralIframe)({
|
||||
id: "tcaptcha_iframe",
|
||||
className: "tcaptcha-iframe"
|
||||
}), this.securityIframe = o), r["default"].CSS(o, {
|
||||
border: "0px"
|
||||
});
|
||||
var s = {
|
||||
position: "static",
|
||||
height: "".concat(this.sizeSC.height, "px"),
|
||||
width: "".concat(this.sizeSC.width, "px"),
|
||||
background: a ? "#232323" : "#ffffff"
|
||||
};
|
||||
r["default"].CSS(o, s);
|
||||
var c = this.createIframeWrapper(t, i);
|
||||
i ? ((0, l.styledTypeTemplate)(i.type, "full"), r["default"].CSS(i.wrapper, {
|
||||
display: "block"
|
||||
})) : (c.appendChild(o), this.ele.appendChild(c), o.src = e);
|
||||
}, e.prototype.createIframeWrapper = function (e, t) {
|
||||
var i = this,
|
||||
a = (null === t || void 0 === t ? void 0 : t.wrapper) || r["default"].createElement("div");
|
||||
a.className = "tcaptcha-transform".concat(r["default"].isChrome75 && r["default"].isMobileUa ? " chrome-75" : ""), this.inDarkMode && (a.className = "".concat(a.className, " dark-mode")), t || (a.id = "tcaptcha_transform");
|
||||
var n = {
|
||||
position: "absolute",
|
||||
width: "".concat(this.sizeSC.width, "px"),
|
||||
height: "".concat(this.sizeSC.height, "px"),
|
||||
top: this.posSC.top,
|
||||
left: this.posSC.left,
|
||||
opacity: "1"
|
||||
};
|
||||
p && (n.position = "absolute"), r["default"].CSS(a, n), this.sdkOpts && this.sdkOpts.width && r["default"].setPopPosition(a, this.sizeSC.width, this.sizeSC.height || 0, this.sdkOpts);
|
||||
var o = r["default"].createElement("div");
|
||||
o.className = "ticons ticon-refresh", o.id = "ticon_refresh";
|
||||
var d = r["default"].createElement("p");
|
||||
d.className = "ticons transform-header", d.id = "transform_header", d.innerText = e.c22;
|
||||
var l = r["default"].createElement("p");
|
||||
if (l.className = "ticons transform-text", l.id = "transform_text", l.innerText = e.c23, a.appendChild(o), a.appendChild(d), a.appendChild(l), 1 == this.showHeader) {
|
||||
var u = r["default"].createElement("span");
|
||||
u.className = "ticons tback transform-eicon", u.id = "transform_eicon";
|
||||
var f = r["default"].createElement("div");
|
||||
f.className = "ticons tback transform-eb", f.id = "transform_eb", f.innerText = e.c11;
|
||||
var h = r["default"].createElement("p");
|
||||
h.className = "ticons transform-eh", h.id = "transform_eh", e.c2.length > 20 ? (r["default"].addClass(h, "middle-fontsize"), r["default"].addClass(f, "middle-fontsize")) : e.c2.length > 15 && (r["default"].addClass(h, "small-fontsize"), r["default"].addClass(f, "small-fontsize")), h.innerText = e.c2, a.appendChild(u), a.appendChild(f), a.appendChild(h), c["default"].add(f, "click", function () {
|
||||
i.msgChannel.publish(s.Topics.LimitCLose, "full");
|
||||
});
|
||||
}
|
||||
return a;
|
||||
}, e.prototype.updateIframeSrc = function (e) {
|
||||
this.securityIframe && (this.securityIframe.src = e);
|
||||
}, e.prototype.destroy = function () {
|
||||
document.getElementById("tcaptcha_transform_dy") && (0, d.removeDomClass)(document.getElementById("tcaptcha_transform_dy"), "dark-mode");
|
||||
}, e;
|
||||
}();
|
||||
t["default"] = f;
|
||||
}
|
||||
@@ -0,0 +1,223 @@
|
||||
function (e, t, i) {
|
||||
"use strict";
|
||||
|
||||
var a = this && this.__read || function (e, t) {
|
||||
var i = "function" == typeof Symbol && e[Symbol.iterator];
|
||||
if (!i) return e;
|
||||
var a,
|
||||
r,
|
||||
n = i.call(e),
|
||||
o = [];
|
||||
try {
|
||||
for (; (void 0 === t || t-- > 0) && !(a = n.next()).done;) o.push(a.value);
|
||||
} catch (s) {
|
||||
r = {
|
||||
error: s
|
||||
};
|
||||
} finally {
|
||||
try {
|
||||
a && !a.done && (i = n["return"]) && i.call(n);
|
||||
} finally {
|
||||
if (r) throw r.error;
|
||||
}
|
||||
}
|
||||
return o;
|
||||
},
|
||||
r = this && this.__importDefault || function (e) {
|
||||
return e && e.__esModule ? e : {
|
||||
"default": e
|
||||
};
|
||||
};
|
||||
t.__esModule = !0;
|
||||
var n = r(i(8)),
|
||||
o = r(i(43)),
|
||||
s = r(i(27)),
|
||||
c = i(3),
|
||||
d = r(i(44)),
|
||||
l = i(28),
|
||||
u = i(26),
|
||||
p = !1,
|
||||
f = function () {
|
||||
function e(e, t) {
|
||||
this.pos = "", this.themeColor = "", this.sdkOpts = {
|
||||
height: 230,
|
||||
width: 300
|
||||
}, this.preTrigerPoint = null, this.securityIframe = null, this._div = null, this.inDarkMode = e.inDarkMode, this.preIframeSrc = e.src, this.domain = e.domain, this.ele = e.ele, this.preIframeMsg = new s["default"]("parent", "", this.domain), this.lang = e.lang, this.sizeSC = e.sizeSC, this.posSC = e.posSC, this.msgChannel = t, this.initPreIframeListener();
|
||||
}
|
||||
return e.prototype.initPreIframeListener = function () {
|
||||
var e = this;
|
||||
this.preIframeMsg.clear(), this.preIframeMsg.listen(function (t) {
|
||||
var i, a, r;
|
||||
try {
|
||||
r = JSON.parse(t);
|
||||
} catch (o) {
|
||||
return;
|
||||
}
|
||||
if (null === (i = null === r || void 0 === r ? void 0 : r.message) || void 0 === i ? void 0 : i.type) switch (r.message.type) {
|
||||
case 9:
|
||||
var n = window.document.getElementById("loading_animation");
|
||||
n && setTimeout(function () {
|
||||
n && (n.style.background = "none");
|
||||
}, 100);
|
||||
break;
|
||||
case 20:
|
||||
null === (a = e.prehandleInitCb) || void 0 === a || a.call(e);
|
||||
}
|
||||
});
|
||||
}, e.prototype.destroy = function () {
|
||||
this.closeIframe(), document.getElementById("tcaptcha_transform_dy") && (0, c.removeDomClass)(document.getElementById("tcaptcha_transform_dy"), "dark-mode");
|
||||
}, e.prototype.updateIframeSrc = function (e) {
|
||||
this.securityIframe && (this.securityIframe.src = e);
|
||||
}, e.prototype.preCreate = function (e) {
|
||||
var t;
|
||||
this.preTrigerPoint && this.nullIframe(), p || (i(91), p = !0);
|
||||
var a = document.createElement("div");
|
||||
a.id = "loading_animation";
|
||||
var r = "".concat(this.domain, "/loading_grey.gif"),
|
||||
s = document.createElement("iframe");
|
||||
s.setAttribute("frameborder", "0"), s.setAttribute("border", "0"), s.marginheight = 0, s.marginwidth = 0, s.setAttribute("marginheight", "0"), s.setAttribute("marginwidth", "0"), s.scrolling = "no";
|
||||
var c,
|
||||
d,
|
||||
l = n["default"].getCSS(this.ele, "width"),
|
||||
u = n["default"].getCSS(this.ele, "height"),
|
||||
f = "0",
|
||||
h = !!window.ActiveXObject && 8 == document.documentMode;
|
||||
l && "auto" != l ? parseInt(l, 10) < o["default"].CONST_PTR.minWidth ? (c = "".concat(o["default"].CONST_PTR.minWidth, "px"), f = "".concat(o["default"].CONST_PTR.minWidth - 2, "px")) : (c = l, f = "".concat(parseInt(l, 10) - 2, "px")) : (c = "100%", f = h ? "99%" : "100%");
|
||||
var m = {
|
||||
width: c,
|
||||
height: d = !u || "auto" == u || parseInt(u, 10) < o["default"].CONST_PTR.minHeight ? "".concat(o["default"].CONST_PTR.minHeight, "px") : u,
|
||||
border: "1px solid #e7e7e7",
|
||||
position: "relative",
|
||||
borderRadius: "2px",
|
||||
lineHeight: d,
|
||||
boxSizing: "border-box",
|
||||
background: "url(".concat(r, ") center no-repeat")
|
||||
};
|
||||
n["default"].CSS(a, m);
|
||||
var g = {
|
||||
width: f,
|
||||
height: "".concat(parseInt(d, 10) - 2, "px"),
|
||||
border: "none",
|
||||
position: "relative",
|
||||
minHeight: "".concat(o["default"].CONST_PTR.minHeight - 2, "px"),
|
||||
minWidth: "".concat(o["default"].CONST_PTR.minWidth - 2, "px"),
|
||||
zIndex: 10
|
||||
};
|
||||
if (n["default"].CSS(s, g), this.preIframeSrc) {
|
||||
this.themeColor && (this.preIframeSrc = n["default"].addUrlParam(this.preIframeSrc, {
|
||||
color: this.themeColor
|
||||
}));
|
||||
var v = "0";
|
||||
d.length > 2 && (v = d.substr(0, d.length - 2)), this.preIframeSrc = n["default"].addUrlParam(this.preIframeSrc, {
|
||||
height: v,
|
||||
rnd: Math.floor(1e6 * Math.random()),
|
||||
lang: this.lang
|
||||
}), s.src = this.preIframeSrc;
|
||||
}
|
||||
this.preTrigerPoint = s, (t = a).appendChild(this.preTrigerPoint), this.ele.appendChild(t), this.initPreTriggerPointTarget(), this.prehandleInitCb = e;
|
||||
}, e.prototype.create = function (e, t) {
|
||||
try {
|
||||
var i = e.preloadTemplate || null,
|
||||
a = e.sizeSC;
|
||||
this.sizeSC = e.sizeSC;
|
||||
var r = (null === i || void 0 === i ? void 0 : i.wrapper) || document.createElement("div");
|
||||
i ? (0, c.addDomClass)(r, "tcaptcha-container") : (r.className = "tcaptcha-container", r.id = "tcaptcha_container", this._div = r);
|
||||
var o = {
|
||||
width: "".concat(a.width, "px"),
|
||||
height: "".concat(a.height, "px"),
|
||||
opacity: "1"
|
||||
};
|
||||
n["default"].CSS(r, o);
|
||||
var s = null === i || void 0 === i ? void 0 : i.iframe;
|
||||
s ? (0, c.addDomClass)(s, "tcaptcha-container-iframe") : (s = (0, c.createGeneralIframe)({
|
||||
id: "tcaptcha_iframe",
|
||||
className: "tcaptcha-container-iframe"
|
||||
}), this.securityIframe = s), i ? ((0, u.styledTypeTemplate)(i.type, "point"), n["default"].CSS(i.wrapper, {})) : (r.appendChild(s), document.body.appendChild(r), s.src = e.src), this.setDivPosition(r), t();
|
||||
} catch (d) {
|
||||
this.msgChannel.publish(l.Topics.IframeError, d);
|
||||
}
|
||||
}, e.prototype.setDivPosition = function (e) {
|
||||
var t = this,
|
||||
i = this.changePos(),
|
||||
r = a(i, 2),
|
||||
o = r[0],
|
||||
s = void 0 === o ? 0 : o,
|
||||
c = r[1],
|
||||
d = void 0 === c ? 0 : c,
|
||||
l = i[2],
|
||||
u = i[3],
|
||||
p = document.createElement("style");
|
||||
return p.type = "text/css", document.getElementsByTagName("body")[0].appendChild(p), setTimeout(function () {
|
||||
t.insertRule(document.styleSheets[document.styleSheets.length - 1], ".tcaptcha-container:before", l, 0), t.insertRule(document.styleSheets[document.styleSheets.length - 1], ".tcaptcha-container:after", u, 0);
|
||||
}, 1), n["default"].CSS(e, {
|
||||
top: "".concat(s, "px"),
|
||||
left: "".concat(d, "px")
|
||||
});
|
||||
}, e.prototype.pre_onlyChangePos = function () {}, e.prototype.changePos = function () {
|
||||
var e,
|
||||
t,
|
||||
i,
|
||||
a = 0,
|
||||
r = 0,
|
||||
o = n["default"].getPos(this.preTrigerPoint),
|
||||
s = n["default"].getSize(this.preTrigerPoint),
|
||||
c = n["default"].getWindowHeight(),
|
||||
d = n["default"].getWindowWidth(),
|
||||
l = n["default"].getScrollTop(),
|
||||
u = this.sizeSC;
|
||||
return (i = o[1] - l) >= u.height / 2 && c - i - s[1] / 2 >= u.height / 2 ? (a = o[1] + s[1] / 2 - u.height / 2, r = o[0] + 45, e = "top: 50%;", t = "top: 50%;") : i <= u.height / 2 ? (a = o[1] - i, r = o[0] + 45, t = e = "top: ".concat((i + s[1] / 2) / u.height * 100, "%;")) : c - i >= s[1] && c - i - s[1] / 2 <= u.height / 2 ? (a = c - u.height + l, r = o[0] + 45, t = e = "top: ".concat((u.height - (c - i - s[1] / 2)) / u.height * 100, "%;")) : c - i <= s[1] ? (a = o[1] + s[1] - u.height, r = o[0] + 45, t = e = "top: ".concat((u.height - s[1] / 2) / u.height * 100, "%;")) : (a = o[1] + s[1] / 2 - u.height / 2, r = o[0] + 45, e = "top: 50%;", t = "top: 50%;"), d < r + u.width && (r = d - u.width), [a, r, e, t];
|
||||
}, e.prototype.insertRule = function (e, t, i, a) {
|
||||
try {
|
||||
return e.insertRule ? e.insertRule("".concat(t, "{").concat(i, "}"), a) : e.addRule(t, i, a);
|
||||
} catch (r) {}
|
||||
}, e.prototype.frequnceLimit = function () {
|
||||
this.send2preTriggerPoint(JSON.stringify({
|
||||
message: {
|
||||
type: "fLimit"
|
||||
}
|
||||
}));
|
||||
}, e.prototype.closeIframe = function () {
|
||||
n["default"].removeIfExist("tcaptcha_container"), this.send2preTriggerPoint(JSON.stringify({
|
||||
message: {
|
||||
type: "closePopup"
|
||||
}
|
||||
}));
|
||||
}, e.prototype.loadDone = function () {
|
||||
var e = this;
|
||||
this.send2preTriggerPoint(JSON.stringify({
|
||||
message: {
|
||||
type: "loadDone"
|
||||
}
|
||||
}));
|
||||
var t = d["default"].container();
|
||||
t && setTimeout(function () {
|
||||
n["default"].CSS(t, {
|
||||
display: "block",
|
||||
zoom: 1
|
||||
}), n["default"].CSS(e.securityIframe, {
|
||||
zoom: 1
|
||||
});
|
||||
}, 16), n["default"].removeIfExist("t_verify");
|
||||
}, e.prototype.success = function () {
|
||||
n["default"].CSS(window.document.getElementById("loading_animation"), {
|
||||
border: "1px solid #42dd18"
|
||||
}), this.send2preTriggerPoint(JSON.stringify({
|
||||
message: {
|
||||
type: "success"
|
||||
}
|
||||
}));
|
||||
}, e.prototype.initPreTriggerPointTarget = function () {
|
||||
var e;
|
||||
(null === (e = this.preTrigerPoint) || void 0 === e ? void 0 : e.contentWindow) && this.preIframeMsg.addTarget(this.preTrigerPoint.contentWindow, "preTrigerPoint");
|
||||
}, e.prototype.send2preTriggerPoint = function (e) {
|
||||
var t;
|
||||
null === (t = this.preIframeMsg.targets.preTrigerPoint) || void 0 === t || t.send(e);
|
||||
}, e.prototype.nullIframe = function () {
|
||||
this.removeIframe(), this.preTrigerPoint = null;
|
||||
}, e.prototype.removeIframe = function () {
|
||||
var e = this.preTrigerPoint;
|
||||
e && (e.src = "about:blank", e.parentNode && e.parentNode.removeChild(e), e.onload = null);
|
||||
}, e;
|
||||
}();
|
||||
t["default"] = f;
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
function (e, t, i) {
|
||||
var a = i(92);
|
||||
"string" == typeof a && (a = [[e.i, a, ""]]);
|
||||
i(48)(a, {});
|
||||
a.locals && (e.exports = a.locals);
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
function (e, t, i) {
|
||||
(e.exports = i(47)(!1)).push([e.i, '.tcaptcha-container{border:1px solid #e5e5e5;position:absolute;left:0;top:0;z-index:2000000002}.tcaptcha-container:after,.tcaptcha-container:before{content:"";height:0;width:0;position:absolute;left:-17px;top:50%;margin-top:-9.5px;border-left:9px solid transparent;border-top:9px solid transparent;border-bottom:9px solid transparent;border-right:9px solid rgba(63,63,63,.1);z-index:0}.tcaptcha-con tainer:after{border-right:9px solid #fff;z-index:1}.tcaptcha-container-iframe{display:block;width:100%;height:100%;border:0;background:#fff;visibility:visible}', ""]);
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
function (e, t, i) {
|
||||
var a = i(94);
|
||||
"string" == typeof a && (a = [[e.i, a, ""]]);
|
||||
i(48)(a, {});
|
||||
a.locals && (e.exports = a.locals);
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
function (e, t, i) {
|
||||
(e.exports = i(47)(!1)).push([e.i, "@keyframes animate_dots{0%{opacity:1}to{opacity:0}}@-webkit-keyframes animate_dots{0%{opacity:1}to{opacity:0}}.dot0,.dot1{animation:animate_dots .9s infinite;-moz-animation:animate_dots .9s infinite;-webkit-animation:animate_dots .9s infinite;-o-animation:animate_dots .9s infinite}.dot1{animation-delay:.2s;-webkit-animation-delay:.2s}.dot2{animation:animate_dots .9s infinite;-moz-animation:animate_dots .9s infinite;-webkit-animation:animate_dots .9s infinite;-o-animation:animate_dots .9s infinite;animation-delay:.4s;-webkit-animation-delay:.4s}.dots_item{display:inline-block;margin-right:5px;width:10px;height:10px;border-radius:50%;background:#4886ff}.verify-icon{position:absolute;width:100%;margin-top:70px;text-align:center}.t-embed-loading{position:relative;width:300px;height:230px;background-color:#fff}.t-embed-dots{position:absolute;left:50%;top:50%;margin-left:-22.5px;margin-top:-5px}.t-embed-dot{display:inline-block;width:10px;height:10px;border-radius:50%;margin-right:5px;background:#4886ff}.t-mask{width:100%;height:100%;position:fixed;_position:absolute;left:0;top:0;background:#000;opacity:.5;filter:progid:DXImageTransform.Microsoft.Alpha(opacity=50);z-index:2000000000}", ""]);
|
||||
}
|
||||
@@ -0,0 +1,351 @@
|
||||
function (e, t, i) {
|
||||
"use strict";
|
||||
|
||||
var a = this && this.__createBinding || (Object.create ? function (e, t, i, a) {
|
||||
a === undefined && (a = i);
|
||||
var r = Object.getOwnPropertyDescriptor(t, i);
|
||||
r && ("get" in r ? t.__esModule : !r.writable && !r.configurable) || (r = {
|
||||
enumerable: !0,
|
||||
get: function () {
|
||||
return t[i];
|
||||
}
|
||||
}), Object.defineProperty(e, a, r);
|
||||
} : function (e, t, i, a) {
|
||||
a === undefined && (a = i), e[a] = t[i];
|
||||
}),
|
||||
r = this && this.__setModuleDefault || (Object.create ? function (e, t) {
|
||||
Object.defineProperty(e, "default", {
|
||||
enumerable: !0,
|
||||
value: t
|
||||
});
|
||||
} : function (e, t) {
|
||||
e["default"] = t;
|
||||
}),
|
||||
n = this && this.__importStar || function (e) {
|
||||
if (e && e.__esModule) return e;
|
||||
var t = {};
|
||||
if (null != e) for (var i in e) "default" !== i && Object.prototype.hasOwnProperty.call(e, i) && a(t, e, i);
|
||||
return r(t, e), t;
|
||||
},
|
||||
o = this && this.__values || function (e) {
|
||||
var t = "function" == typeof Symbol && Symbol.iterator,
|
||||
i = t && e[t],
|
||||
a = 0;
|
||||
if (i) return i.call(e);
|
||||
if (e && "number" == typeof e.length) return {
|
||||
next: function () {
|
||||
return e && a >= e.length && (e = void 0), {
|
||||
value: e && e[a++],
|
||||
done: !e
|
||||
};
|
||||
}
|
||||
};
|
||||
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
||||
},
|
||||
s = this && this.__importDefault || function (e) {
|
||||
return e && e.__esModule ? e : {
|
||||
"default": e
|
||||
};
|
||||
};
|
||||
t.__esModule = !0;
|
||||
var c = s(i(8)),
|
||||
d = s(i(121)),
|
||||
l = n(i(28)),
|
||||
u = i(26),
|
||||
p = i(3),
|
||||
f = s(i(23)),
|
||||
h = s(i(43)),
|
||||
m = s(i(68)),
|
||||
g = s(i(69));
|
||||
i(93);
|
||||
var v = (0, p.getWxLang)(),
|
||||
y = null,
|
||||
_ = null,
|
||||
b = !1;
|
||||
window.AqSCode || (y = window.setTimeout(function () {
|
||||
!function () {
|
||||
try {
|
||||
var e = (0, u.getTemplateDomain)();
|
||||
e !== undefined && ((0, u.injectTemplate)("dy", e), window.TCaptchaPreload = !0);
|
||||
} catch (i) {
|
||||
var t = f["default"].perfectStack(i);
|
||||
f["default"].send("ERROR_TYPE_FRAMEJS_CODE_ERROR", "", t);
|
||||
}
|
||||
}();
|
||||
}, 200));
|
||||
var w,
|
||||
E = null;
|
||||
var T = function () {
|
||||
function e(e) {
|
||||
this.capDomain = "", this.ticket = "", this.randstr = "", this.listenFunc = [], this.preHandleLoadTime = 0, this.createIframeStart = 0, this.calledCallback = !1, this.destroyed = !1, this.aged = !1, this.enableAged = !1, this.readyFunc = function () {};
|
||||
var t = {
|
||||
ele: document.body,
|
||||
src: "",
|
||||
uid: "",
|
||||
capcd: "",
|
||||
startFn: function () {},
|
||||
endFn: function () {},
|
||||
showFn: function () {},
|
||||
verifyFn: function () {}
|
||||
};
|
||||
this.opts = (0, p.extend)({}, t, e), this.enableAged = !!this.opts.enableAged, this.aged = "force" === this.opts.enableAged, this.extendOptionParam(), this.listenFunc = [], this.ticket = "", this.randstr = "", this.readyFunc = function () {};
|
||||
var i = this.initIframeSubscription(),
|
||||
a = this.getInitOptions();
|
||||
this.iframeManager = new d["default"]((0, p.extend)({}, a, {
|
||||
appid: this.opts.appid,
|
||||
sdkOpts: this.opts.sdkOpts,
|
||||
type: this.opts.type,
|
||||
src: this.opts.src,
|
||||
inDarkMode: "force" === this.opts.enableDarkMode || this.opts.enableDarkMode && (0, p.isDarkMode)() || !1,
|
||||
themeColor: this.opts.themeColor,
|
||||
domain: this.opts.domain,
|
||||
lang: this.opts.lang,
|
||||
fwidth: this.opts.fwidth,
|
||||
pos: this.opts.pos,
|
||||
params: this.opts.params,
|
||||
showHeader: !1 !== this.opts.showHeader,
|
||||
clientype: "".concat(this.opts.clientype),
|
||||
showLoading: !1 !== this.opts.loading,
|
||||
global: !!this.opts.global
|
||||
}), i), E = this, f["default"].setGlobalStatus(!!this.opts.global);
|
||||
}
|
||||
return e.prototype.create = function () {
|
||||
"number" == typeof y && clearTimeout(y), E && (this.calledCallback = !1, this.iframeManager.preCreate());
|
||||
}, e.prototype.destroy = function () {
|
||||
this.iframeManager.destroy(), this.destroyed = !0, E && (this.listenFunc = [], this.listenFunc.length = 0, this.readyFunc = function () {}, E = null);
|
||||
}, e.prototype.refresh = function (e) {
|
||||
this.iframeManager.clearContainerAndEl(), E && (this.ticket = "", this.randstr = "", e && (0, p.isObject)(e) && ("undefined" != typeof e.uin && (this.opts.uid = e.uin), "undefined" != typeof e.uid && (this.opts.uid = e.uid), "undefined" != typeof e.capcd && (this.opts.capcd = e.capcd)), this.create());
|
||||
}, e.prototype.listen = function (e, t) {
|
||||
this.listenFunc = [], this.listenFunc.push(e), this.readyFunc = function () {}, t && (this.readyFunc = t);
|
||||
}, e.prototype.getTicket = function () {
|
||||
return {
|
||||
ticket: this.ticket,
|
||||
randstr: this.randstr
|
||||
};
|
||||
}, e.prototype.start = function (e) {
|
||||
this.opts.startFn = e;
|
||||
}, e.prototype.end = function (e) {
|
||||
this.opts.endFn = e;
|
||||
}, e.prototype.setAged = function (e) {
|
||||
this.aged = e;
|
||||
}, e.prototype.initIframeSubscription = function () {
|
||||
var e = this,
|
||||
t = new l["default"]();
|
||||
return t.subscribe(l.Topics.GetPrehandle, function (t, i) {
|
||||
e.handlePreHandleMsg(i);
|
||||
}), t.subscribe(l.Topics.HybridVerify, function (t, i) {
|
||||
e.startPreHandle(i);
|
||||
}), t.subscribe(l.Topics.ReadyFunc, function (t, i) {
|
||||
e.readyFunc && e.readyFunc(i);
|
||||
}), t.subscribe(l.Topics.Callback, function (t, i) {
|
||||
0 === i.ret && e.opts.startFn(), "ticket" in i && (e.ticket = i.ticket, e.randstr = i.randstr), e.executeCallback(i);
|
||||
}), t.subscribe(l.Topics.Refresh, function () {
|
||||
e.refresh();
|
||||
}), t.subscribe(l.Topics.ExchangeAged, function (t, i) {
|
||||
e.setAged(i), e.create();
|
||||
}), t.subscribe(l.Topics.ShowCallback, function (t, i) {
|
||||
var a = i.sid,
|
||||
r = i.duration;
|
||||
e.opts.showFn({
|
||||
sid: a,
|
||||
duration: r
|
||||
});
|
||||
}), t.subscribe(l.Topics.VerifyCallback, function (t, i) {
|
||||
try {
|
||||
e.opts.verifyFn({
|
||||
pass: i.pass,
|
||||
sid: i.sid
|
||||
});
|
||||
} catch (a) {}
|
||||
}), t;
|
||||
}, e.prototype.extendOptionParam = function () {
|
||||
this.opts.params = (0, p.expandCustomParams)(this.opts, this.opts.params);
|
||||
}, e.prototype.handlePreHandleMsg = function (e) {
|
||||
var t = this;
|
||||
switch (e) {
|
||||
case "init":
|
||||
this.startPreHandle();
|
||||
break;
|
||||
case "refreshMax":
|
||||
this.getPreHandleNew({
|
||||
success: function (e) {
|
||||
if (!t.destroyed && !b) if (e.ticket) t.iframeManager.onSuccess({
|
||||
ticket: e.ticket,
|
||||
randstr: e.randstr
|
||||
});else {
|
||||
var i = t.getIframeSrcNew(e),
|
||||
a = c["default"].getCaptchaType(e.subcapclass);
|
||||
t.iframeManager.frequencyLimit({
|
||||
sid: e.sid,
|
||||
src: i,
|
||||
captype: a,
|
||||
fwidth: t.opts.fwidth
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
break;
|
||||
case "sessionTimeout":
|
||||
this.refresh();
|
||||
}
|
||||
}, e.prototype.getInitOptions = function () {
|
||||
var e = (0, p.extend)({}, h["default"].CONST_DEFAULT_SIZE),
|
||||
t = (0, p.extend)({}, h["default"].CONST_SC_PS),
|
||||
i = this.opts.ele,
|
||||
a = document.body;
|
||||
return i && i !== document && (a = i), "popup" === this.opts.type && (a = document.body), {
|
||||
ele: a,
|
||||
sizeSC: e,
|
||||
posSC: t
|
||||
};
|
||||
}, e.prototype.executeCallback = function (e) {
|
||||
var t = this;
|
||||
if (!this.calledCallback) {
|
||||
this.calledCallback = !0;
|
||||
try {
|
||||
this.opts.endFn();
|
||||
} catch (i) {}
|
||||
window.CollectGarbage && window.CollectGarbage();
|
||||
try {
|
||||
delete e.type;
|
||||
} catch (a) {}
|
||||
setTimeout(function () {
|
||||
var a, r;
|
||||
try {
|
||||
for (var n = o(t.listenFunc), s = n.next(); !s.done; s = n.next()) {
|
||||
var c = s.value;
|
||||
try {
|
||||
c(e);
|
||||
} catch (i) {}
|
||||
}
|
||||
} catch (d) {
|
||||
a = {
|
||||
error: d
|
||||
};
|
||||
} finally {
|
||||
try {
|
||||
s && !s.done && (r = n["return"]) && r.call(n);
|
||||
} finally {
|
||||
if (a) throw a.error;
|
||||
}
|
||||
}
|
||||
}, 0);
|
||||
}
|
||||
}, e.prototype.startPreHandle = function (e) {
|
||||
var t = this;
|
||||
this.getPreHandleNew({
|
||||
sess: e,
|
||||
success: function (e) {
|
||||
if (!t.destroyed && !b) if (e.ticket) t.iframeManager.onSuccess({
|
||||
ticket: e.ticket,
|
||||
randstr: e.randstr
|
||||
});else {
|
||||
t.createIframeStart = new Date().getTime();
|
||||
var i = t.getIframeSrcNew(e),
|
||||
a = c["default"].getCaptchaType(e.subcapclass);
|
||||
t.iframeManager.create({
|
||||
preloadOption: {
|
||||
inDarkMode: "force" === t.opts.enableDarkMode || t.opts.enableDarkMode && (0, p.isDarkMode)(),
|
||||
aged: !!t.aged,
|
||||
enableAged: t.enableAged,
|
||||
noHeader: !1 === t.opts.showHeader,
|
||||
sess: e.sess,
|
||||
sid: e.sid,
|
||||
uip: e.uip || "",
|
||||
subcapclass: e.subcapclass,
|
||||
clientype: "".concat(t.opts.clientype),
|
||||
aid: t.opts.appid,
|
||||
fb: "1" === "".concat(t.opts.fb),
|
||||
fbUrl: t.opts.fbUrl,
|
||||
type: t.opts.type,
|
||||
global: !!t.opts.global,
|
||||
deviceID: t.opts.deviceID ? t.opts.deviceID : undefined,
|
||||
apiDomain: window.AqSCodeCapDomain,
|
||||
isPreload: window.TCaptchaPreload,
|
||||
referrer: (0, p.getEntryUrl)(),
|
||||
tcapToken: t.opts.tcapToken
|
||||
},
|
||||
preloadData: e.data,
|
||||
src: i,
|
||||
captype: a,
|
||||
fwidth: t.opts.fwidth,
|
||||
sid: e.sid
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
}, e.prototype.getPreHandleNew = function (e) {
|
||||
var t = this,
|
||||
i = this.getType(),
|
||||
a = (0, g["default"])(i),
|
||||
r = e.triedTimes || 0,
|
||||
n = new Date().getTime();
|
||||
b = !1, _ || (_ = setTimeout(function () {
|
||||
t.iframeManager.preHandleError(), clearTimeout(_), _ = null, b = !0;
|
||||
}, 2e4)), (0, m["default"])({
|
||||
url: a,
|
||||
data: {
|
||||
sess: e.sess || ""
|
||||
},
|
||||
success: function (i) {
|
||||
t.preHandleLoadTime = new Date().getTime() - n, clearTimeout(_), _ = null, e.success(i);
|
||||
},
|
||||
error: function () {
|
||||
f["default"].send("ERROR_TYPE_JSONP_PREHANDLE", t.opts.appid, a), (r += 1) < 3 ? (e.triedTimes = r, t.getPreHandleNew(e)) : (clearTimeout(_), _ = null, t.iframeManager.preHandleError());
|
||||
}
|
||||
});
|
||||
}, e.prototype.getType = function () {
|
||||
var e,
|
||||
t = "".concat(this.opts.domain, "/").concat(this.opts.gettype).concat(this.opts.params),
|
||||
i = (0, p.getBrowserLang)(),
|
||||
a = (0, p.getWebworkerSupportCache)();
|
||||
a && (e = a), e || (e = this.checkWebWorker(), (0, p.setWebworkerSupportCache)(e));
|
||||
var r = {
|
||||
aged: this.aged ? "1" : "0",
|
||||
cap_cd: this.opts.capcd,
|
||||
uid: this.opts.uid,
|
||||
lang: (0, p.langTransform)(i || (this.opts.global ? "en" : "zh-cn")),
|
||||
entry_url: (0, p.cutUrl)((0, p.getEntryUrl)()),
|
||||
elder_captcha: this.aged ? "1" : "0",
|
||||
js: this.opts.frameJs || "",
|
||||
login_appid: this.opts.login_appid || "",
|
||||
wb: e,
|
||||
tkid: (0, p.getSpiltCapToken)(this.opts.tcapToken),
|
||||
seqId: this.opts.seqId
|
||||
};
|
||||
return t = (0, p.addUrlParam)(t, r);
|
||||
}, e.prototype.checkWebWorker = function () {
|
||||
if (void 0 !== w) return w;
|
||||
w = "2";
|
||||
try {
|
||||
var e = (0, p.isWebWorkerSupport)();
|
||||
return (null === e || void 0 === e ? void 0 : e.terminate) && !window.setImmediate ? (null === e || void 0 === e || e.terminate(), w = "1", "1") : (null === e || void 0 === e || e.terminate(), "2");
|
||||
} catch (t) {
|
||||
return "2";
|
||||
}
|
||||
}, e.prototype.getIframeSrcNew = function (e) {
|
||||
if (!e.src_1) return "";
|
||||
var t = "";
|
||||
t = "".concat(this.opts.domain, "/").concat(e.src_1).concat(this.opts.params);
|
||||
var i = {
|
||||
sess: e.sess,
|
||||
fwidth: this.opts.fwidth,
|
||||
sid: e.sid,
|
||||
forcestyle: this.opts.forcestyle,
|
||||
wxLang: v,
|
||||
tcScale: c["default"].getParentScale(),
|
||||
uid: this.opts.uid,
|
||||
cap_cd: this.opts.capcd,
|
||||
rnd: Math.floor(1e6 * Math.random()),
|
||||
TCapIframeLoadTime: this.opts.TCapIframeLoadTime,
|
||||
prehandleLoadTime: this.preHandleLoadTime,
|
||||
createIframeStart: this.createIframeStart,
|
||||
aged: this.aged ? "1" : "0",
|
||||
global: this.opts.global ? "1" : "0",
|
||||
tkid: (0, p.getSpiltCapToken)(this.opts.tcapToken)
|
||||
};
|
||||
return t = (0, p.addUrlParam)(t, i), (0, g["default"])(t);
|
||||
}, e;
|
||||
}();
|
||||
window.AqSCode = T;
|
||||
}
|
||||
@@ -0,0 +1,439 @@
|
||||
function (e, t, i) {
|
||||
"use strict";
|
||||
|
||||
var a = this && this.__assign || function () {
|
||||
return (a = Object.assign || function (e) {
|
||||
for (var t, i = 1, a = arguments.length; i < a; i++) for (var r in t = arguments[i]) Object.prototype.hasOwnProperty.call(t, r) && (e[r] = t[r]);
|
||||
return e;
|
||||
}).apply(this, arguments);
|
||||
},
|
||||
r = this && this.__createBinding || (Object.create ? function (e, t, i, a) {
|
||||
a === undefined && (a = i);
|
||||
var r = Object.getOwnPropertyDescriptor(t, i);
|
||||
r && ("get" in r ? t.__esModule : !r.writable && !r.configurable) || (r = {
|
||||
enumerable: !0,
|
||||
get: function () {
|
||||
return t[i];
|
||||
}
|
||||
}), Object.defineProperty(e, a, r);
|
||||
} : function (e, t, i, a) {
|
||||
a === undefined && (a = i), e[a] = t[i];
|
||||
}),
|
||||
n = this && this.__setModuleDefault || (Object.create ? function (e, t) {
|
||||
Object.defineProperty(e, "default", {
|
||||
enumerable: !0,
|
||||
value: t
|
||||
});
|
||||
} : function (e, t) {
|
||||
e["default"] = t;
|
||||
}),
|
||||
o = this && this.__importStar || function (e) {
|
||||
if (e && e.__esModule) return e;
|
||||
var t = {};
|
||||
if (null != e) for (var i in e) "default" !== i && Object.prototype.hasOwnProperty.call(e, i) && r(t, e, i);
|
||||
return n(t, e), t;
|
||||
},
|
||||
s = this && this.__importDefault || function (e) {
|
||||
return e && e.__esModule ? e : {
|
||||
"default": e
|
||||
};
|
||||
};
|
||||
t.__esModule = !0;
|
||||
var c = s(i(86)),
|
||||
d = s(i(88)),
|
||||
l = s(i(89)),
|
||||
u = s(i(90)),
|
||||
p = o(i(28)),
|
||||
f = s(i(8)),
|
||||
h = i(0),
|
||||
m = i(12),
|
||||
g = i(19),
|
||||
v = i(53),
|
||||
y = s(i(27)),
|
||||
_ = s(i(65)),
|
||||
b = s(i(44)),
|
||||
w = s(i(17)),
|
||||
E = i(26),
|
||||
T = i(67),
|
||||
R = i(1),
|
||||
S = _["default"].langPack,
|
||||
k = _["default"].detectWxLang(),
|
||||
C = function () {
|
||||
function e(e, t) {
|
||||
this.capType = "defaultSize", this.createTimeoutTimer = null, this.callCreateTime = [], this.sid = "", this.checkPreloadStatusTimeout = null;
|
||||
var i = new g.ErrorHandler();
|
||||
i.init({
|
||||
appid: e.appid
|
||||
}), i.openReport(), this.errorHandler = i;
|
||||
try {
|
||||
this.msgChannel = t, this.type = e.type, this.option = e, this.IframeMsg = new y["default"]("parent", "", this.option.domain), this.langPack = this.initLang(e.params);
|
||||
var a = this.initIframeChildSubscription();
|
||||
switch (this.appid = e.appid, this.initPreloadTemplateTarget(), this.waitingShowQueue = null, e.type) {
|
||||
case "embed":
|
||||
this.iframeTypeManager = new d["default"](e, a);
|
||||
break;
|
||||
case "popup":
|
||||
this.iframeTypeManager = new c["default"](e, a);
|
||||
break;
|
||||
case "point":
|
||||
this.iframeTypeManager = new u["default"](e, a);
|
||||
break;
|
||||
default:
|
||||
this.iframeTypeManager = new l["default"](e, a);
|
||||
}
|
||||
} catch (r) {
|
||||
this.onErrorTicket("FRAMEJS_RUN_ERROR", r);
|
||||
}
|
||||
}
|
||||
return e.prototype.preCreate = function (e) {
|
||||
var t,
|
||||
i = this;
|
||||
try {
|
||||
this.callCreateTime[0] = new Date().getTime(), this.initListener(), this.preloadCheck(), null === (t = this.iframeTypeManager) || void 0 === t || t.preCreate(function () {
|
||||
e ? i.msgChannel.publish(p.Topics.HybridVerify, e) : i.msgChannel.publish(p.Topics.GetPrehandle, "init");
|
||||
});
|
||||
} catch (a) {
|
||||
this.onErrorTicket("FRAMEJS_RUN_ERROR", a);
|
||||
}
|
||||
}, e.prototype.create = function (e) {
|
||||
if (this.sid = e.sid, e.preloadData && (0, v.includeInPreoloadTemplate)(e.captype)) {
|
||||
if (!this.isPreloadSameShowTypeAsLast(e.captype) || "embed" === this.type) {
|
||||
var t = (0, E.getTemplateDomain)();
|
||||
t !== undefined && (0, E.injectTemplate)(e.captype, t, "embed" === this.type && this.option.ele || void 0);
|
||||
}
|
||||
this.preloadReady(e.captype) ? this.createIframe(e) : (this.checkTemplateStatus(e.captype), this.pushPreloadQueue(e));
|
||||
} else this.createIframe(e);
|
||||
}, e.prototype.destroy = function () {
|
||||
var e;
|
||||
this.clearContainerAndEl(), this.IframeMsg.clear(), this.clearCreateTimeout(), null === (e = this.iframeTypeManager) || void 0 === e || e.destroy();
|
||||
}, e.prototype.onSuccess = function (e) {
|
||||
(null === e || void 0 === e ? void 0 : e.ticket) && (this.removeAllEl(), this.callbackExecutor(a({
|
||||
ret: 0
|
||||
}, e)), "point" === this.type && this.iframeTypeManager.success());
|
||||
}, e.prototype.preHandleError = function (e) {
|
||||
this.onErrorTicket(e || "GET_CAPTCHA_CONFIG_REQUEST_ERROR");
|
||||
}, e.prototype.clearContainerAndEl = function () {
|
||||
this.removeAllEl(), "embed" !== this.type && "point" !== this.type || this.iframeTypeManager && (this.iframeTypeManager.ele.innerHTML = "");
|
||||
}, e.prototype.frequencyLimit = function (e) {
|
||||
if ("popup" === this.type) {
|
||||
var t = (0, v.getPopupIframeSizeAndPos)(e.captype, "popup" === this.type && e.fwidth || "").sizeSC;
|
||||
this.iframeTypeManager.setSizeSc(t);
|
||||
}
|
||||
this.showRefreshDom(e.src);
|
||||
}, e.prototype.initIframeChildSubscription = function () {
|
||||
var e = this,
|
||||
t = new p["default"]();
|
||||
return t.subscribe(p.Topics.LimitCLose, function () {
|
||||
f["default"].removeIfExist("tcaptcha_transform"), f["default"].removeIfExist("t_mask"), e.callbackExecutor({
|
||||
ret: w["default"].retCode.close,
|
||||
ticket: "",
|
||||
randstr: ""
|
||||
});
|
||||
}), t.subscribe(p.Topics.IframeError, function (t, i) {
|
||||
e.onErrorTicket("FRAMEJS_RUN_ERROR", i);
|
||||
}), t;
|
||||
}, e.prototype.onErrorTicket = function (e, t) {
|
||||
var i = t ? this.errorHandler.getErrorMsg(t) : e;
|
||||
this.errorHandler.send({
|
||||
errorType: g.ErrorTypes.ERROR_TYPE_FRAMEJS_CODE_ERROR,
|
||||
reason: i
|
||||
}), this.onSuccess((0, m.getErrorRes)(e, this.option.appid, this.sid)), this.destroy();
|
||||
}, e.prototype.initPreloadTemplateTarget = function () {
|
||||
var e,
|
||||
t,
|
||||
i = (0, E.getHtmlTemplateGroup)();
|
||||
for (t in i) if (Object.prototype.hasOwnProperty.call(i, t)) {
|
||||
var a = null === (e = i[t]) || void 0 === e ? void 0 : e.iframe.contentWindow;
|
||||
a && this.IframeMsg.addTarget(a, t);
|
||||
}
|
||||
}, e.prototype.preloadCheck = function () {
|
||||
var e,
|
||||
t = (0, E.getHtmlTemplateGroup)();
|
||||
for (e in t) if (Object.prototype.hasOwnProperty.call(t, e)) {
|
||||
var i = this.IframeMsg.targets;
|
||||
e in i && i[e].send(JSON.stringify({
|
||||
message: {
|
||||
type: w["default"].messageType.checkPreLoadReady
|
||||
}
|
||||
}));
|
||||
}
|
||||
}, e.prototype.preloadReady = function (e) {
|
||||
var t = (0, E.getHtmlTemplateGroup)()[e];
|
||||
return !(null === t || void 0 === t || !t.load) && ("number" == typeof this.checkPreloadStatusTimeout && (clearTimeout(this.checkPreloadStatusTimeout), this.checkPreloadStatusTimeout = null), !0);
|
||||
}, e.prototype.isPreloadSameShowTypeAsLast = function (e) {
|
||||
var t = (0, E.getHtmlTemplateGroup)()[e];
|
||||
return !t || "undefined" == typeof t.showType || this.type === (null === t || void 0 === t ? void 0 : t.showType);
|
||||
}, e.prototype.pushPreloadQueue = function (e) {
|
||||
if ((0, v.includeInPreoloadTemplate)(e.captype)) {
|
||||
var t = e.captype;
|
||||
this.waitingShowQueue = {
|
||||
type: t,
|
||||
data: e
|
||||
};
|
||||
}
|
||||
}, e.prototype.checkTemplateStatus = function (e, t) {
|
||||
var i = this;
|
||||
if (void 0 === t && (t = !1), !(0, E.getHtmlTemplateGroup)()[e]) {
|
||||
var a = (0, E.getTemplateDomain)();
|
||||
a !== undefined && (0, E.injectTemplate)(e, a, "embed" === this.type && this.option.ele || void 0);
|
||||
}
|
||||
this.checkPreloadStatusTimeout = window.setTimeout(function () {
|
||||
if (i.checkPreloadStatusTimeout = null, !i.preloadReady(e)) {
|
||||
var a = window.AqSCodeCapDomain;
|
||||
if (t || a === undefined) return i.waitingShowQueue = null, i.errorHandler.send({
|
||||
errorType: g.ErrorTypes.IFRAME_CREATE_TIMEOUT,
|
||||
reason: "iframe api domain load failed,tried:".concat(t, ",domain:").concat(a)
|
||||
}), void i.onErrorTicket("PRE_TEMPLATE_LOAD_TIMEOUT");
|
||||
try {
|
||||
(0, E.injectTemplate)(e, a, "embed" === i.type && i.option.ele || void 0);
|
||||
} catch (r) {}
|
||||
i.errorHandler.send({
|
||||
errorType: g.ErrorTypes.IFRAME_CREATE_TIMEOUT,
|
||||
reason: "iframe cdn domain load failed,tried:".concat(t, ",domain:").concat(a)
|
||||
}), i.checkTemplateStatus(e, !0);
|
||||
}
|
||||
}, window.TCaptchaGlobal ? 15e3 : 1e4);
|
||||
}, e.prototype.createIframe = function (e) {
|
||||
var t,
|
||||
i,
|
||||
r = this;
|
||||
try {
|
||||
var n = e.captype;
|
||||
this.capType = n, this.errorHandler.init({
|
||||
appid: this.appid,
|
||||
errType: null === (t = e.preloadOption) || void 0 === t ? void 0 : t.subcapclass
|
||||
});
|
||||
var o = (0, v.getPopupIframeSizeAndPos)(e.captype, "popup" === this.type && e.fwidth || undefined),
|
||||
s = o.sizeSC,
|
||||
c = o.posSC,
|
||||
d = o.callReady,
|
||||
l = a({
|
||||
langPack: this.langPack,
|
||||
sizeSC: s,
|
||||
posSC: c
|
||||
}, e),
|
||||
u = this.callCreateTime.pop();
|
||||
if (e.preloadData && (0, v.includeInPreoloadTemplate)(n)) {
|
||||
var f = (0, E.getHtmlTemplateGroup)();
|
||||
l.preloadTemplate = f[n];
|
||||
}
|
||||
if (d) {
|
||||
var h = s.width - 3,
|
||||
m = s.height - 3;
|
||||
this.msgChannel.publish(p.Topics.ReadyFunc, {
|
||||
state: 2,
|
||||
info: "",
|
||||
fwidth: h,
|
||||
fheight: m
|
||||
});
|
||||
}
|
||||
null === (i = this.iframeTypeManager) || void 0 === i || i.create(l, function () {
|
||||
var t, i;
|
||||
if (l.preloadTemplate && l.preloadData && r.isInvisibleVerify(l.preloadData) && (l.preloadTemplate.wrapper.style.top = "-10000px"), r.createTimeoutTimer = window.setTimeout(function () {
|
||||
r.createTimeoutTimer = null, r.onErrorTicket("IFRAME_LOAD_TIMEOUT");
|
||||
}, 2e4), e.preloadData) {
|
||||
r.onReady({
|
||||
type: 10,
|
||||
loadstate: 0,
|
||||
info: ""
|
||||
}), "popup" === r.type && r.iframeTypeManager.removePopupBorder(), "embed" === r.type && r.iframeTypeManager.removeLoading(), u && l.preloadOption && (l.preloadOption.createTime = u);
|
||||
var a = (0, R.getPerformance)(/tcaptcha-frame\.[a-z0-9]{8}.js$|Captcha\.js$|cap_union_prehandle/);
|
||||
r.IframeMsg.targets[n].send(JSON.stringify({
|
||||
message: {
|
||||
type: w["default"].messageType.sendPreloadData,
|
||||
data: e.preloadData,
|
||||
option: l.preloadOption,
|
||||
speedList: a
|
||||
}
|
||||
}));
|
||||
} else (null === (i = null === (t = r.iframeTypeManager) || void 0 === t ? void 0 : t.securityIframe) || void 0 === i ? void 0 : i.contentWindow) && r.IframeMsg.addTarget(r.iframeTypeManager.securityIframe.contentWindow, n), "embed" === r.type && r.iframeTypeManager.removeLoading();
|
||||
}), this.type;
|
||||
} catch (g) {
|
||||
this.onErrorTicket("FRAMEJS_RUN_ERROR", g);
|
||||
}
|
||||
}, e.prototype.isInvisibleVerify = function (e) {
|
||||
return !e.dyn_show_info.instruction;
|
||||
}, e.prototype.initLang = function (e) {
|
||||
if (k) S.init(k);else {
|
||||
var t = /lang=([\d]{4})/.exec(e);
|
||||
t && S.init(t[1]);
|
||||
}
|
||||
return S;
|
||||
}, e.prototype.initListener = function () {
|
||||
var e = this;
|
||||
this.IframeMsg.clear(), this.IframeMsg.listen(function (t) {
|
||||
var i, a;
|
||||
try {
|
||||
a = JSON.parse(t);
|
||||
} catch (n) {
|
||||
return;
|
||||
}
|
||||
if (null === (i = null === a || void 0 === a ? void 0 : a.message) || void 0 === i ? void 0 : i.type) {
|
||||
var r = a.message;
|
||||
switch (r.type) {
|
||||
case 3:
|
||||
e.onSuccess(r);
|
||||
break;
|
||||
case 4:
|
||||
e.onBack();
|
||||
break;
|
||||
case 7:
|
||||
"popup" === e.type && e.iframeTypeManager.removePopupBorder();
|
||||
break;
|
||||
case 13:
|
||||
case 6:
|
||||
e.onClose();
|
||||
break;
|
||||
case 15:
|
||||
case 11:
|
||||
e.onRefreshMax(r);
|
||||
break;
|
||||
case 16:
|
||||
case 12:
|
||||
e.onSessionTiemout();
|
||||
break;
|
||||
case 8:
|
||||
e.onHybridVerify(r.sess);
|
||||
break;
|
||||
case 10:
|
||||
e.onReady(r);
|
||||
break;
|
||||
case 14:
|
||||
e.onPointLoadDown();
|
||||
break;
|
||||
case w["default"].messageType.goAged:
|
||||
e.clearContainerAndEl(), e.msgChannel.publish(p.Topics.ExchangeAged, !0);
|
||||
break;
|
||||
case w["default"].messageType.goNormalVerify:
|
||||
e.clearContainerAndEl(), e.msgChannel.publish(p.Topics.ExchangeAged, !1);
|
||||
break;
|
||||
case 22:
|
||||
e.msgChannel.publish(p.Topics.ShowCallback, r);
|
||||
break;
|
||||
case w["default"].preloadMsgType.verifyCallback:
|
||||
e.msgChannel.publish(p.Topics.VerifyCallback, r);
|
||||
break;
|
||||
default:
|
||||
e.preloadTemplateListener(r);
|
||||
}
|
||||
}
|
||||
});
|
||||
}, e.prototype.preloadTemplateListener = function (e) {
|
||||
var t;
|
||||
switch (e.type) {
|
||||
case w["default"].messageType.preloadReady:
|
||||
if (t = e.captype, (0, E.getHtmlTemplateGroup)()[t]) {
|
||||
if ((0, E.markTypeTemplateLoaded)(t), this.initPreloadTemplateTarget(), !this.waitingShowQueue) break;
|
||||
this.waitingShowQueue.type === t && (this.createIframe(this.waitingShowQueue.data), this.waitingShowQueue = null);
|
||||
}
|
||||
break;
|
||||
case w["default"].preloadMsgType.capClose:
|
||||
this.onClose();
|
||||
break;
|
||||
case w["default"].preloadMsgType.verifySuccess:
|
||||
this.onSuccess(e);
|
||||
break;
|
||||
case w["default"].preloadMsgType.sessionTimeout:
|
||||
this.onSessionTiemout();
|
||||
}
|
||||
}, e.prototype.hidePreloadTemplate = function () {
|
||||
if ((0, v.includeInPreoloadTemplate)(this.capType)) {
|
||||
var e = (0, E.getHtmlTemplateGroup)()[this.capType];
|
||||
if (f["default"].removeIfExist("t_mask"), "embed" === this.type) {
|
||||
var t = void 0,
|
||||
i = (0, E.getHtmlTemplateGroup)();
|
||||
for (t in i) (0, E.removeTemplateWrapper)(t), delete i[t];
|
||||
}
|
||||
e && (0, h.setCss)(e.wrapper, {
|
||||
top: "-10000px",
|
||||
left: "-10000px",
|
||||
opacity: "0"
|
||||
});
|
||||
}
|
||||
}, e.prototype.onPreloadSuccess = function (e) {
|
||||
(null === e || void 0 === e ? void 0 : e.ticket) && (this.hidePreloadTemplate(), this.callbackExecutor({
|
||||
ret: w["default"].retCode.success,
|
||||
ticket: e.ticket,
|
||||
randstr: e.randstr
|
||||
}));
|
||||
}, e.prototype.onReady = function (e) {
|
||||
var t,
|
||||
i,
|
||||
a,
|
||||
r = this;
|
||||
if (this.iframeTypeManager) {
|
||||
null === (i = (t = this.iframeTypeManager).onReadyShow) || void 0 === i || i.call(t), this.clearCreateTimeout();
|
||||
var n = this.iframeTypeManager.sizeSC;
|
||||
this.msgChannel.publish(p.Topics.ReadyFunc, {
|
||||
sdkView: {
|
||||
width: null === n || void 0 === n ? void 0 : n.width,
|
||||
height: null === n || void 0 === n ? void 0 : n.height
|
||||
},
|
||||
state: e.loadstate,
|
||||
info: e.info,
|
||||
fwidth: e.fwidth ? e.fwidth : 0,
|
||||
fheight: e.fheight ? e.fheight : 0
|
||||
}), "point" === this.type && this.iframeTypeManager.loadDone(), T.WindowChanged.subscribe(function (e) {
|
||||
var t;
|
||||
null === (t = r.IframeMsg.targets[r.capType]) || void 0 === t || t.send(JSON.stringify({
|
||||
message: {
|
||||
type: w["default"].messageType.windowChanged,
|
||||
data: e
|
||||
}
|
||||
}));
|
||||
}), null === (a = this.IframeMsg.targets[this.capType]) || void 0 === a || a.send(JSON.stringify({
|
||||
message: {
|
||||
type: w["default"].messageType.readyConfirm,
|
||||
data: {}
|
||||
}
|
||||
}));
|
||||
}
|
||||
}, e.prototype.onBack = function () {
|
||||
f["default"].removeIfExist("tcaptcha_transform"), this.callbackExecutor({
|
||||
ret: w["default"].retCode.close,
|
||||
ticket: "",
|
||||
randstr: ""
|
||||
});
|
||||
}, e.prototype.onClose = function () {
|
||||
f["default"].removeIfExist("tcaptcha_transform"), f["default"].removeIfExist("t_mask"), this.hidePreloadTemplate(), this.callbackExecutor({
|
||||
ret: w["default"].retCode.close,
|
||||
ticket: "",
|
||||
randstr: ""
|
||||
}), "point" === this.type && this.iframeTypeManager.closeIframe();
|
||||
}, e.prototype.onRefreshMax = function (e) {
|
||||
11 == e.type && "vtt" === this.capType && "2" === this.option.clientype || ("point" == this.type ? (f["default"].removeIfExist("tcaptcha_container"), this.iframeTypeManager.frequnceLimit(), this.callbackExecutor({
|
||||
ret: w["default"].retCode.close,
|
||||
ticket: "",
|
||||
randstr: ""
|
||||
})) : "popup" === this.type || "" === this.type ? this.msgChannel.publish(p.Topics.GetPrehandle, "refreshMax") : this.msgChannel.publish(p.Topics.Refresh));
|
||||
}, e.prototype.onHybridVerify = function (e) {
|
||||
this.clearContainerAndEl(), this.preCreate(e);
|
||||
}, e.prototype.onSessionTiemout = function () {
|
||||
this.msgChannel.publish(p.Topics.GetPrehandle, "sessionTimeout");
|
||||
}, e.prototype.updateIframeSrc = function (e) {
|
||||
var t;
|
||||
null === (t = this.iframeTypeManager) || void 0 === t || t.updateIframeSrc(e);
|
||||
}, e.prototype.onPointLoadDown = function () {
|
||||
f["default"].removeIfExist("t_verify"), "point" === this.type && this.iframeTypeManager.loadDone();
|
||||
}, e.prototype.showRefreshDom = function (e) {
|
||||
for (var t = b["default"].tIframe(), i = b["default"].ref2Text(), a = b["default"].tIcons(), r = a.length, n = 0; n < r; n++) a[n] && f["default"].addClass(a[n], "show-icon");
|
||||
t.src = e, t.style.visibility = "hidden", setTimeout(function () {
|
||||
i && (i.innerHTML = i.innerHTML.replace(/2/, "1"));
|
||||
}, 1e3), setTimeout(function () {
|
||||
t.style.visibility = "visible", i && (i.innerHTML = i.innerHTML.replace(/1/, "2"));
|
||||
for (var e = 0; e < r; e++) a[e] && f["default"].removeClass(a[e], "show-icon");
|
||||
}, 2e3);
|
||||
}, e.prototype.callbackExecutor = function (e) {
|
||||
var t;
|
||||
this.clearCreateTimeout(), this.removeIframe(), this.msgChannel.publish(p.Topics.Callback, e), null === (t = this.iframeTypeManager) || void 0 === t || t.destroy();
|
||||
}, e.prototype.clearCreateTimeout = function () {
|
||||
this.createTimeoutTimer && (clearTimeout(this.createTimeoutTimer), this.createTimeoutTimer = null), this.checkPreloadStatusTimeout && (clearTimeout(this.checkPreloadStatusTimeout), this.checkPreloadStatusTimeout = null);
|
||||
}, e.prototype.removeIframe = function () {
|
||||
var e;
|
||||
(null === (e = this.iframeTypeManager) || void 0 === e ? void 0 : e.securityIframe) && (this.iframeTypeManager.securityIframe.parentNode && this.iframeTypeManager.securityIframe.parentNode.removeChild(this.iframeTypeManager.securityIframe), this.iframeTypeManager.securityIframe = null);
|
||||
}, e.prototype.removeAllEl = function () {
|
||||
f["default"].removeIfExist("tcaptcha_container"), f["default"].removeIfExist("tcaptcha_transform"), f["default"].removeIfExist("t_verify"), f["default"].removeIfExist("t_mask"), f["default"].removeIfExist("t-embed-loading"), this.removeIframe(), this.hidePreloadTemplate();
|
||||
}, e;
|
||||
}();
|
||||
t["default"] = C;
|
||||
}
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
|
||||
{"cd":[2560,"MacIntel","GgoAAAANSUhEUgAAASwAAACWCAYAAATf3v8bh+ryWcfSBSLkmN3N1PQinPL7Bi3TG0qE2CogAAAABJRU5ErkJggg==","UTF-8",2,0,0,1590299178,"https://1ms.run/console/personal/benefits/check-in","Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/155.0.0.0 Safari/537.36",0,24,[],"",1440,"ANGLE (Apple, ANGLE Metal Renderer: Apple M4, Unspecified Version)",10,"+08","Google Inc. (Apple)",1791715501, [[323,59,601],[-27,8,17],[-5,1,18],[-2,1,16],[-2,0,18],[0,0,104],[0,0,34],[-1,1,14],[-3,3,15],[-2,1,17],[-12,13,17],[-13,16,16],[-11,15,18],[-13,14,16],[-14,14,16],[-3,3,17],[-3,3,17],[0,0,16],[-1,3,17],[0,1,17],[-1,1,21],[0,0,162],[0,0,17],[0,0,17],[0,3,16],[-1,3,17],[-12,23,16],[-5,8,17],[-8,13,16],[-2,3,17],[-2,5,17],[-3,4,15],[-2,4,17],[-7,7,16],[-12,9,35],[-10,4,0],[-6,2,14],[-1,0,17],[-4,1,17],[0,0,16],[-1,0,18],[0,0,16],[0,0,17],[-3,-1,16],[-1,0,25],[-6,-1,8],[-1,0,17],[-4,-1,16],[-5,0,17],[-2,0,18],[-4,0,16],[-5,0,17],[0,0,16],[-3,1,16],[-1,0,19],[0,0,15],[-1,0,17],[0,0,17],[0,0,33],[0,0,18],[1,1,12]] ,["zh-CN","zh","fr","de","en"],1791715508,"https://turing.captcha.gtimg.com/1/template/drag_ele.html?rand=1519713624347",0,"98k",699129805,1791706326,"2560-1440-1345-24-*-*-|-*",1,[360,360],"iframe",1023,1,"",0,0,""], "sd":{"od":"C","ft":"qf_7Pf__H"}}
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -0,0 +1,104 @@
|
||||
{
|
||||
"success": true,
|
||||
"collectLen": 880,
|
||||
"collectPreview": "NLffnMqzHQHQG%2FB1u%2FAykja8EICFSz5fgmGqyGyn90fUsiXpAM8DQ2cHXw%2F5Sz%2Bn%2FWS5ad",
|
||||
"eksPreview": "R6uVACHLwal4EuQjr409oqnT2fBP3br9rB5MzaNezC1/vrO6UBm+E3WS1OVnLJVBq+YZj4/P/Sih8ZNY",
|
||||
"accessCount": 95,
|
||||
"accesses": [
|
||||
"CALL: window.TDC.getData(true)",
|
||||
"CALL: window.TDC.getInfo()",
|
||||
"CALL: window.window.document.createElement(\"a\")",
|
||||
"CALL: window.window.document.createElement(\"canvas\")",
|
||||
"CALL: window.window.document.createElement(\"div\")",
|
||||
"CALL: window.window.document.createElement(\"h1\")",
|
||||
"CALL: window.window.document.createElement(\"iframe\")",
|
||||
"CALL: window.window.document.createElement(\"li\")",
|
||||
"CALL: window.window.document.createElement(\"p\")",
|
||||
"CALL: window.window.document.createElement(\"span\")",
|
||||
"CALL: window.window.document.createElement(\"style\")",
|
||||
"CALL: window.window.document.getElementById(\"tCaptchaDyContent\")",
|
||||
"CALL: window.window.window.addEventListener(\"message\", )",
|
||||
"GET: window.TDC",
|
||||
"GET: window.TDC.getData",
|
||||
"GET: window.TDC.getInfo",
|
||||
"GET: window.window",
|
||||
"GET: window.window.Symbol",
|
||||
"GET: window.window.console",
|
||||
"GET: window.window.document",
|
||||
"GET: window.window.document.$cdc_asdjflasutopfhvcZLmcfl_",
|
||||
"GET: window.window.document.URL",
|
||||
"GET: window.window.document.addEventListener",
|
||||
"GET: window.window.document.body",
|
||||
"GET: window.window.document.characterSet",
|
||||
"GET: window.window.document.cookie",
|
||||
"GET: window.window.document.createElement",
|
||||
"GET: window.window.document.getElementById",
|
||||
"GET: window.window.document.head",
|
||||
"GET: window.window.document.location",
|
||||
"GET: window.window.location",
|
||||
"GET: window.window.location.href",
|
||||
"GET: window.window.navigator",
|
||||
"GET: window.window.navigator.appName",
|
||||
"GET: window.window.navigator.appVersion",
|
||||
"GET: window.window.navigator.hardwareConcurrency",
|
||||
"GET: window.window.navigator.languages",
|
||||
"GET: window.window.navigator.languages.0",
|
||||
"GET: window.window.navigator.languages.1",
|
||||
"GET: window.window.navigator.languages.2",
|
||||
"GET: window.window.navigator.languages.3",
|
||||
"GET: window.window.navigator.languages.4",
|
||||
"GET: window.window.navigator.languages.length",
|
||||
"GET: window.window.navigator.platform",
|
||||
"GET: window.window.navigator.userAgent",
|
||||
"GET: window.window.navigator.vendor",
|
||||
"GET: window.window.screen",
|
||||
"GET: window.window.screen.availHeight",
|
||||
"GET: window.window.screen.colorDepth",
|
||||
"GET: window.window.screen.deviceXDPI",
|
||||
"GET: window.window.screen.fontSmoothingEnabled",
|
||||
"GET: window.window.screen.height",
|
||||
"GET: window.window.screen.logicalXDPI",
|
||||
"GET: window.window.screen.pixelDepth",
|
||||
"GET: window.window.screen.width",
|
||||
"GET: window.window.undefined",
|
||||
"GET: window.window.window",
|
||||
"GET: window.window.window.CSS",
|
||||
"GET: window.window.window.CasperError",
|
||||
"GET: window.window.window.RTCPeerConnection",
|
||||
"GET: window.window.window.SAWSbCHKNUMhdiidTgePXleBQBWZVRnd",
|
||||
"GET: window.window.window.TCaptchaReferrer",
|
||||
"GET: window.window.window.WebPage",
|
||||
"GET: window.window.window.addEventListener",
|
||||
"GET: window.window.window.btoa",
|
||||
"GET: window.window.window.callPhantom",
|
||||
"GET: window.window.window.casper",
|
||||
"GET: window.window.window.domAutomation",
|
||||
"GET: window.window.window.fHcxozh",
|
||||
"GET: window.window.window.fxdriver_id",
|
||||
"GET: window.window.window.innerHeight",
|
||||
"GET: window.window.window.innerWidth",
|
||||
"GET: window.window.window.localStorage",
|
||||
"GET: window.window.window.location",
|
||||
"GET: window.window.window.location.href",
|
||||
"GET: window.window.window.matchMedia",
|
||||
"GET: window.window.window.mozRTCPeerConnection",
|
||||
"GET: window.window.window.msRTCPeerConnection",
|
||||
"GET: window.window.window.navigator",
|
||||
"GET: window.window.window.navigator.cookieEnabled",
|
||||
"GET: window.window.window.navigator.webdriver",
|
||||
"GET: window.window.window.patchRequire",
|
||||
"GET: window.window.window.sessionStorage",
|
||||
"GET: window.window.window.ubot",
|
||||
"GET: window.window.window.webkitRTCPeerConnection",
|
||||
"SET: window.__TENCENT_CHAOS_STACK",
|
||||
"SET: window.window.SAWSbCHKNUMhdiidTgePXleBQBWZVRnd",
|
||||
"SET: window.window._FCelfkFiSWHeiMXWTWiOnkBPHGZEQgDW",
|
||||
"SET: window.window._RcOOlhjkbDDSSQcfNWGijiXUEHgBjRZB",
|
||||
"SET: window.window.document.cookie",
|
||||
"SET: window.window.document.onmousemove",
|
||||
"SET: window.window.document.ontouchmove",
|
||||
"SET: window.window.fHcxozh",
|
||||
"SET: window.window.window.TDC",
|
||||
"SET: window.window.window.onload"
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,214 @@
|
||||
/**
|
||||
* Tencent Turing Captcha TDC Deep Proxy Runtime Probe
|
||||
* ---------------------------------------------------
|
||||
* 依据 AGENTS.md §4.3 与 §2.3 规范,通过深度 Proxy 探针拦截并记录 TDC 执行时
|
||||
* 实际读取的全部环境属性清单与调用时序,彻底告别盲目补环境。
|
||||
*/
|
||||
|
||||
const fs = require("fs");
|
||||
const path = require("path");
|
||||
const vm = require("vm");
|
||||
|
||||
function createDeepProxy(target, prefix, logSet) {
|
||||
return new Proxy(target, {
|
||||
get(obj, prop, receiver) {
|
||||
if (typeof prop === "symbol" || prop === "inspect" || prop.startsWith("_")) {
|
||||
return Reflect.get(obj, prop, receiver);
|
||||
}
|
||||
const BUILTIN_TYPES = new Set([
|
||||
"String", "Number", "Boolean", "Array", "Object", "Function",
|
||||
"RegExp", "Date", "Math", "JSON", "Error", "TypeError",
|
||||
"Uint8Array", "Uint8ClampedArray", "parseInt", "parseFloat",
|
||||
"encodeURIComponent", "decodeURIComponent", "setTimeout",
|
||||
"clearTimeout", "setInterval", "clearInterval"
|
||||
]);
|
||||
if (BUILTIN_TYPES.has(String(prop))) {
|
||||
return Reflect.get(obj, prop, receiver);
|
||||
}
|
||||
const fullName = `${prefix}.${String(prop)}`;
|
||||
logSet.add(`GET: ${fullName}`);
|
||||
|
||||
const val = Reflect.get(obj, prop, receiver);
|
||||
if (val !== null && typeof val === "object" && !(val instanceof RegExp)) {
|
||||
return createDeepProxy(val, fullName, logSet);
|
||||
}
|
||||
if (typeof val === "function") {
|
||||
const fnWrapper = function (...args) {
|
||||
logSet.add(`CALL: ${fullName}(${args.map((a) => JSON.stringify(a)).join(", ")})`);
|
||||
return val.apply(this === receiver ? obj : this, args);
|
||||
};
|
||||
fnWrapper.prototype = val.prototype;
|
||||
return fnWrapper;
|
||||
}
|
||||
return val;
|
||||
},
|
||||
set(obj, prop, value, receiver) {
|
||||
const fullName = `${prefix}.${String(prop)}`;
|
||||
logSet.add(`SET: ${fullName}`);
|
||||
return Reflect.set(obj, prop, value, receiver);
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
function probeTdc(tdcFilePath, options = {}) {
|
||||
const tdcCode = fs.readFileSync(tdcFilePath, "utf-8");
|
||||
const accesses = new Set();
|
||||
|
||||
// Mock Realistic Environment (based on macOS Chrome success capture)
|
||||
const realScreen = {
|
||||
width: options.screenWidth || 2560,
|
||||
height: options.screenHeight || 1440,
|
||||
availWidth: options.screenWidth || 2560,
|
||||
availHeight: options.screenAvailHeight || 1345,
|
||||
colorDepth: 24,
|
||||
pixelDepth: 24,
|
||||
};
|
||||
|
||||
const realNavigator = {
|
||||
userAgent:
|
||||
options.userAgent ||
|
||||
"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/155.0.0.0 Safari/537.36",
|
||||
platform: "MacIntel",
|
||||
languages: ["zh-CN", "zh", "fr", "de", "en"],
|
||||
language: "zh-CN",
|
||||
hardwareConcurrency: 10,
|
||||
cookieEnabled: true,
|
||||
};
|
||||
|
||||
const fakeCanvas = {
|
||||
getContext: (type) => {
|
||||
if (type.includes("webgl")) {
|
||||
return {
|
||||
getExtension: (name) => {
|
||||
if (name === "WEBGL_debug_renderer_info") {
|
||||
return { UNMASKED_VENDOR_WEBGL: 37445, UNMASKED_RENDERER_WEBGL: 37446 };
|
||||
}
|
||||
return null;
|
||||
},
|
||||
getParameter: (param) => {
|
||||
if (param === 37445) return "Google Inc. (Apple)";
|
||||
if (param === 37446) {
|
||||
return "ANGLE (Apple, ANGLE Metal Renderer: Apple M4, Unspecified Version)";
|
||||
}
|
||||
return "";
|
||||
},
|
||||
getSupportedExtensions: () => ["WEBGL_debug_renderer_info"],
|
||||
};
|
||||
}
|
||||
return {
|
||||
getImageData: () => ({ data: new Uint8ClampedArray(16) }),
|
||||
toDataURL: () => "data:image/png;base64,GgoAAAANSUhEUgAAASwAAACWCAYAAATf3v8bh+ryWcfSBSLkmN3N1PQinPL7Bi3TG0qE2CogAAAABJRU5ErkJggg==",
|
||||
};
|
||||
},
|
||||
toDataURL: () => "data:image/png;base64,GgoAAAANSUhEUgAAASwAAACWCAYAAATf3v8bh+ryWcfSBSLkmN3N1PQinPL7Bi3TG0qE2CogAAAABJRU5ErkJggg==",
|
||||
};
|
||||
|
||||
const fakeDoc = {
|
||||
referrer: options.referrer || "https://1ms.run/console/personal/benefits/check-in",
|
||||
characterSet: "UTF-8",
|
||||
documentElement: { clientWidth: 360, clientHeight: 360 },
|
||||
createElement: (tag) => {
|
||||
if (tag.toLowerCase() === "canvas") return fakeCanvas;
|
||||
return { appendChild: () => {}, style: {}, setAttribute: () => {} };
|
||||
},
|
||||
getElementById: () => null,
|
||||
cookie: "",
|
||||
};
|
||||
|
||||
const fakeLoc = {
|
||||
href: "https://turing.captcha.gtimg.com/1/template/drag_ele.html?rand=1519713624347",
|
||||
hostname: "turing.captcha.gtimg.com",
|
||||
protocol: "https:",
|
||||
};
|
||||
|
||||
const baseWindow = {
|
||||
screen: realScreen,
|
||||
navigator: realNavigator,
|
||||
document: fakeDoc,
|
||||
location: fakeLoc,
|
||||
innerWidth: 360,
|
||||
innerHeight: 360,
|
||||
devicePixelRatio: 2,
|
||||
Date: Date,
|
||||
Math: Math,
|
||||
String: String,
|
||||
Number: Number,
|
||||
Boolean: Boolean,
|
||||
Array: Array,
|
||||
Object: Object,
|
||||
Function: Function,
|
||||
RegExp: RegExp,
|
||||
JSON: JSON,
|
||||
Error: Error,
|
||||
TypeError: TypeError,
|
||||
Uint8Array: Uint8Array,
|
||||
Uint8ClampedArray: Uint8ClampedArray,
|
||||
parseInt: parseInt,
|
||||
parseFloat: parseFloat,
|
||||
encodeURIComponent: encodeURIComponent,
|
||||
decodeURIComponent: decodeURIComponent,
|
||||
setTimeout: setTimeout,
|
||||
clearTimeout: clearTimeout,
|
||||
setInterval: setInterval,
|
||||
clearInterval: clearInterval,
|
||||
addEventListener: () => {},
|
||||
removeEventListener: () => {},
|
||||
};
|
||||
|
||||
// Attach window.top to simulate running in an iframe
|
||||
baseWindow.top = {};
|
||||
baseWindow.window = baseWindow;
|
||||
baseWindow.self = baseWindow;
|
||||
|
||||
const proxiedWindow = createDeepProxy(baseWindow, "window", accesses);
|
||||
|
||||
// Execute in isolated V8 Context
|
||||
const sandbox = vm.createContext(proxiedWindow);
|
||||
|
||||
console.log(`Running TDC inside Semantic Probe...`);
|
||||
vm.runInContext(tdcCode, sandbox);
|
||||
|
||||
console.log(`TDC loaded. Calling TDC.getData(!0)...`);
|
||||
let collect = null;
|
||||
let eks = null;
|
||||
if (sandbox.TDC && sandbox.TDC.getData) {
|
||||
collect = sandbox.TDC.getData(true);
|
||||
if (sandbox.TDC.getInfo) {
|
||||
const info = sandbox.TDC.getInfo();
|
||||
eks = info ? info.info : null;
|
||||
}
|
||||
}
|
||||
|
||||
const result = {
|
||||
success: !!collect,
|
||||
collect: collect,
|
||||
eks: eks,
|
||||
collectLen: collect ? collect.length : 0,
|
||||
collectPreview: collect ? collect.slice(0, 80) : null,
|
||||
eksPreview: eks ? eks.slice(0, 80) : null,
|
||||
accessCount: accesses.size,
|
||||
accesses: Array.from(accesses).sort(),
|
||||
};
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
if (require.main === module) {
|
||||
const tdcFile = process.argv[2] || "tcaptcha/core_js/tdc_sample.js";
|
||||
const report = probeTdc(tdcFile);
|
||||
console.log("\n--- TDC Execution Result ---");
|
||||
console.log(`Success: ${report.success}`);
|
||||
console.log(`Collect Length: ${report.collectLen}`);
|
||||
console.log(`Collect Preview: ${report.collectPreview}`);
|
||||
console.log(`EKS Preview: ${report.eksPreview}`);
|
||||
console.log(`Total Environment Accesses: ${report.accessCount}`);
|
||||
|
||||
console.log("\n--- Top 35 Environment Accesses Logged by Probe ---");
|
||||
report.accesses.slice(0, 35).forEach((a) => console.log(a));
|
||||
|
||||
const outReport = tdcFile.replace(/\.js$/, ".probe_report.json");
|
||||
fs.writeFileSync(outReport, JSON.stringify(report, null, 2), "utf-8");
|
||||
console.log(`\nDetailed probe report written to ${outReport}`);
|
||||
}
|
||||
|
||||
module.exports = { probeTdc };
|
||||
@@ -0,0 +1,200 @@
|
||||
/**
|
||||
* Tencent Turing Captcha Chaos VM (TDC VM) Disassembler
|
||||
* --------------------------------------------------------
|
||||
* 依据 AGENTS.md §3.3 规范,将 TDC 混淆字节码反汇编为可读指令流与结构化操作。
|
||||
*/
|
||||
|
||||
const fs = require("fs");
|
||||
const path = require("path");
|
||||
const parser = require("@babel/parser");
|
||||
const generate = require("@babel/generator").default;
|
||||
|
||||
const OP_NAMES = {
|
||||
0: "PUSH_STR_CHAR",
|
||||
1: "IS_EXCEPTION",
|
||||
2: "DUP",
|
||||
3: "XOR",
|
||||
4: "EQ_STRICT",
|
||||
5: "MOD",
|
||||
6: "CALL_FUNC",
|
||||
8: "GET_GLOBAL_PROP",
|
||||
9: "MAKE_PROP_REF",
|
||||
10: "TYPEOF",
|
||||
11: "DELETE",
|
||||
12: "LOGICAL_NOT",
|
||||
13: "EQ_LOOSE",
|
||||
14: "SET_PROP",
|
||||
15: "GREATER_THAN",
|
||||
17: "SWAP",
|
||||
18: "IN",
|
||||
19: "RET_TRUE",
|
||||
20: "GREATER_EQ",
|
||||
22: "PUSH_IMM",
|
||||
23: "MUL",
|
||||
25: "LOAD_REG_INDIRECT",
|
||||
26: "ITER_NEXT",
|
||||
28: "BIND_THIS",
|
||||
29: "PUSH_NULL",
|
||||
30: "BITWISE_AND",
|
||||
31: "PUSH_IMM_ARRAY",
|
||||
32: "MAKE_REG_PROP_REF",
|
||||
33: "SUB",
|
||||
34: "CALL_METHOD",
|
||||
35: "SHR",
|
||||
36: "SHL",
|
||||
37: "JUMP_IF_TRUE",
|
||||
38: "FOR_IN_KEYS",
|
||||
39: "ADD",
|
||||
41: "NEW_METHOD",
|
||||
42: "PUSH_UNDEFINED",
|
||||
45: "PUSH_FALSE",
|
||||
46: "STORE_REG",
|
||||
47: "ALLOC_REG",
|
||||
48: "POP_TRY",
|
||||
49: "THROW",
|
||||
51: "POP",
|
||||
52: "DIV",
|
||||
53: "SET_STACK_LEN",
|
||||
54: "REVERSE_TOP2",
|
||||
55: "PUSH_EMPTY_STR",
|
||||
56: "PUSH_TRY",
|
||||
57: "CREATE_CLOSURE",
|
||||
59: "GET_PROP",
|
||||
60: "JUMP",
|
||||
61: "NEW_FUNC",
|
||||
62: "BITWISE_OR",
|
||||
64: "REPLACE_TOP_IMM",
|
||||
65: "SHR_UNSIGNED",
|
||||
66: "PUSH_TRUE",
|
||||
68: "LOAD_REG_IMM",
|
||||
69: "CLEAR_EXCEPTION",
|
||||
};
|
||||
|
||||
function extractBytecode(tdcPath) {
|
||||
const code = fs.readFileSync(tdcPath, "utf-8");
|
||||
const ast = parser.parse(code, { sourceType: "script" });
|
||||
const fn = ast.program.body[3].declarations[0].init.callee;
|
||||
const iFuncCode = generate(fn.body.body[1]).code;
|
||||
const returnStmt = fn.body.body[2];
|
||||
const vmCall = returnStmt.argument.expressions ? returnStmt.argument.expressions[1] : returnStmt.argument;
|
||||
const zCall = vmCall.arguments[1];
|
||||
const zCallCode = generate(zCall).code;
|
||||
|
||||
const runner = `
|
||||
${iFuncCode}
|
||||
(${zCallCode});
|
||||
`;
|
||||
return eval(runner);
|
||||
}
|
||||
|
||||
function disassemble(z) {
|
||||
let H = 0;
|
||||
const rawInstructions = [];
|
||||
const total = z.length;
|
||||
|
||||
while (H < total) {
|
||||
const pc = H;
|
||||
const op = z[H++];
|
||||
const opName = OP_NAMES[op] || `UNKNOWN_${op}`;
|
||||
const args = [];
|
||||
|
||||
switch (op) {
|
||||
case 0: // PUSH_STR_CHAR
|
||||
case 22: // PUSH_IMM
|
||||
case 31: // PUSH_IMM_ARRAY
|
||||
case 47: // ALLOC_REG
|
||||
case 53: // SET_STACK_LEN
|
||||
case 64: // REPLACE_TOP_IMM
|
||||
case 68: // LOAD_REG_IMM
|
||||
args.push(z[H++]);
|
||||
break;
|
||||
case 6: // CALL_FUNC
|
||||
case 17: // SWAP
|
||||
case 34: // CALL_METHOD
|
||||
case 41: // NEW_METHOD
|
||||
case 61: // NEW_FUNC
|
||||
args.push(`args=${z[H++]}`);
|
||||
break;
|
||||
case 37: // JUMP_IF_TRUE
|
||||
case 60: // JUMP
|
||||
args.push(`target=@${z[H++]}`);
|
||||
break;
|
||||
case 56: // PUSH_TRY
|
||||
args.push(`catchTarget=@${z[H++]}`);
|
||||
args.push(`catchVarReg=${z[H++]}`);
|
||||
break;
|
||||
case 57: { // CREATE_CLOSURE
|
||||
const targetPc = z[H++];
|
||||
const capCount = z[H++];
|
||||
const paramCount = z[H++];
|
||||
const captures = [];
|
||||
for (let m = 0; m < capCount; m++) {
|
||||
captures.push(`r${z[H++]}=r${z[H++]}`);
|
||||
}
|
||||
const params = [];
|
||||
for (let m = 0; m < paramCount; m++) {
|
||||
params.push(`p${m}->r${z[H++]}`);
|
||||
}
|
||||
args.push(`target=@${targetPc}`);
|
||||
args.push(`caps=[${captures.join(",")}]`);
|
||||
args.push(`params=[${params.join(",")}]`);
|
||||
break;
|
||||
}
|
||||
default:
|
||||
// no extra operand
|
||||
break;
|
||||
}
|
||||
|
||||
rawInstructions.push({ pc, op, opName, args });
|
||||
}
|
||||
|
||||
// Pass 2: Fold PUSH_EMPTY_STR + PUSH_STR_CHAR ... into PUSH_STR "..."
|
||||
const folded = [];
|
||||
for (let i = 0; i < rawInstructions.length; i++) {
|
||||
const ins = rawInstructions[i];
|
||||
if (ins.opName === "PUSH_EMPTY_STR") {
|
||||
let str = "";
|
||||
let j = i + 1;
|
||||
while (j < rawInstructions.length && rawInstructions[j].opName === "PUSH_STR_CHAR") {
|
||||
str += String.fromCharCode(rawInstructions[j].args[0]);
|
||||
j++;
|
||||
}
|
||||
if (j > i + 1) {
|
||||
folded.push({
|
||||
pc: ins.pc,
|
||||
op: 0,
|
||||
opName: "PUSH_STR",
|
||||
args: [JSON.stringify(str)],
|
||||
});
|
||||
i = j - 1;
|
||||
continue;
|
||||
}
|
||||
}
|
||||
folded.push(ins);
|
||||
}
|
||||
|
||||
return folded;
|
||||
}
|
||||
|
||||
// CLI usage
|
||||
if (require.main === module) {
|
||||
const tdcFile = process.argv[2] || "tcaptcha/core_js/tdc_sample.js";
|
||||
console.log(`Extracting and disassembling ${tdcFile}...`);
|
||||
const z = extractBytecode(tdcFile);
|
||||
console.log(`Bytecode size: ${z.length} bytes`);
|
||||
const insts = disassemble(z);
|
||||
console.log(`Total instructions: ${insts.length}`);
|
||||
|
||||
const outFile = tdcFile.replace(/\.js$/, ".disasm.txt");
|
||||
const lines = insts.map(
|
||||
(ins) => `@${ins.pc.toString().padStart(5, "0")}: ${ins.opName.padEnd(18)} ${ins.args.join(" ")}`
|
||||
);
|
||||
fs.writeFileSync(outFile, lines.join("\n"), "utf-8");
|
||||
console.log(`Disassembly written to ${outFile}`);
|
||||
|
||||
// Preview first 30 instructions
|
||||
console.log("\n--- Preview first 30 instructions ---");
|
||||
lines.slice(0, 30).forEach((l) => console.log(l));
|
||||
}
|
||||
|
||||
module.exports = { extractBytecode, disassemble, OP_NAMES };
|
||||
@@ -0,0 +1,66 @@
|
||||
/**
|
||||
* Webpack Bundle Unpacker & Module Extractor
|
||||
* -------------------------------------------
|
||||
* 依据 AGENTS.md §2.2 L1/L2 规范,将 Webpack 单文件打包解包为独立可读的模块文件。
|
||||
*/
|
||||
|
||||
const fs = require("fs");
|
||||
const path = require("path");
|
||||
const parser = require("@babel/parser");
|
||||
const generate = require("@babel/generator").default;
|
||||
|
||||
function unpackBundle(bundlePath, outputDir) {
|
||||
const code = fs.readFileSync(bundlePath, "utf-8");
|
||||
console.log(`Parsing bundle ${bundlePath} (${code.length} bytes)...`);
|
||||
const ast = parser.parse(code, { sourceType: "script" });
|
||||
|
||||
const call = ast.program.body[0].expression.argument;
|
||||
const modulesArray = call.arguments[0].elements;
|
||||
console.log(`Found ${modulesArray.length} modules.`);
|
||||
|
||||
fs.mkdirSync(outputDir, { recursive: true });
|
||||
|
||||
const index = [];
|
||||
|
||||
modulesArray.forEach((modNode, idx) => {
|
||||
if (!modNode) {
|
||||
index.push({ id: idx, empty: true });
|
||||
return;
|
||||
}
|
||||
const modCode = generate(modNode).code;
|
||||
const modFile = path.join(outputDir, `module_${idx.toString().padStart(3, "0")}.js`);
|
||||
fs.writeFileSync(modFile, modCode, "utf-8");
|
||||
|
||||
// Search keywords in module to create index
|
||||
const keywords = [];
|
||||
if (/verify/i.test(modCode)) keywords.push("verify");
|
||||
if (/pow/i.test(modCode)) keywords.push("pow");
|
||||
if (/tdc/i.test(modCode)) keywords.push("tdc");
|
||||
if (/collect/i.test(modCode)) keywords.push("collect");
|
||||
if (/getsig/i.test(modCode)) keywords.push("getsig");
|
||||
if (/prehandle/i.test(modCode)) keywords.push("prehandle");
|
||||
if (/subcapclass/i.test(modCode)) keywords.push("subcapclass");
|
||||
if (/ticket/i.test(modCode)) keywords.push("ticket");
|
||||
|
||||
index.push({
|
||||
id: idx,
|
||||
size: modCode.length,
|
||||
file: `module_${idx.toString().padStart(3, "0")}.js`,
|
||||
keywords,
|
||||
});
|
||||
});
|
||||
|
||||
const indexFile = path.join(outputDir, "manifest.json");
|
||||
fs.writeFileSync(indexFile, JSON.stringify(index, null, 2), "utf-8");
|
||||
console.log(`Manifest written to ${indexFile}`);
|
||||
|
||||
return index;
|
||||
}
|
||||
|
||||
if (require.main === module) {
|
||||
const bundle = process.argv[2] || "tcaptcha/core_js/tcaptcha-frame.ba387dd1.js";
|
||||
const outDir = process.argv[3] || "tcaptcha/core_js/frame_modules";
|
||||
unpackBundle(bundle, outDir);
|
||||
}
|
||||
|
||||
module.exports = { unpackBundle };
|
||||
Reference in New Issue
Block a user