@antglobal/rlog-sdk 0.0.0 → 0.0.1755855517-dev.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +387 -2
- package/dist/rlog-sdk.min.js +1 -0
- package/package.json +25 -6
- package/LEGAL.md +0 -7
package/README.md
CHANGED
|
@@ -1,3 +1,388 @@
|
|
|
1
|
-
|
|
1
|
+
# rlog-sdk 性能与安全设计文档
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
## 动态配置功能
|
|
4
|
+
|
|
5
|
+
### 1. CDN 配置支持
|
|
6
|
+
SDK 现在支持从 CDN 获取动态配置,可以实时调整以下参数:
|
|
7
|
+
- 采集总开关
|
|
8
|
+
- Canvas 录制采样率
|
|
9
|
+
- 数据上传时间间隔
|
|
10
|
+
|
|
11
|
+
### 2. 配置参数说明
|
|
12
|
+
CDN 配置文件应为 JSON 格式,包含以下字段:
|
|
13
|
+
```json
|
|
14
|
+
{
|
|
15
|
+
"enable": true, // 采集总开关
|
|
16
|
+
"samplingRate": 15, // Canvas 采样率 (帧/秒)
|
|
17
|
+
"uploadInterval": 2000, // 数据上传时间间隔 (毫秒)
|
|
18
|
+
"configUpdateInterval": 300000 // 配置更新时间间隔 (毫秒),默认 5 分钟
|
|
19
|
+
}
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
### 3. 使用方式
|
|
23
|
+
```javascript
|
|
24
|
+
// 初始化时传入 CDN 配置 URL
|
|
25
|
+
Rlog.init({
|
|
26
|
+
appId: 'your-app-id',
|
|
27
|
+
serv: 'your-upload-server',
|
|
28
|
+
cdnConfigUrl: 'https://your-cdn.com/rlog-config.json'
|
|
29
|
+
});
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
## 请求头注入功能
|
|
33
|
+
|
|
34
|
+
### 1. 功能说明
|
|
35
|
+
SDK 支持在所有 XMLHttpRequest 和 fetch 请求中自动注入全局自定义请求头,方便添加认证信息、跟踪标识等。
|
|
36
|
+
|
|
37
|
+
### 2. 使用方式
|
|
38
|
+
```javascript
|
|
39
|
+
// 设置全局自定义请求头
|
|
40
|
+
Rlog.setCustomHeaders({
|
|
41
|
+
'Authorization': 'Bearer your-token',
|
|
42
|
+
'X-Request-Id': 'unique-request-id',
|
|
43
|
+
'X-Client-Version': '1.0.0'
|
|
44
|
+
});
|
|
45
|
+
|
|
46
|
+
// 设置白名单URL(只有这些URL的请求会被监控和注入请求头)
|
|
47
|
+
Rlog.setWhiteListUrls([
|
|
48
|
+
'https://api.your-app.com',
|
|
49
|
+
'https://analytics.your-app.com'
|
|
50
|
+
]);
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
### 3. 实现原理
|
|
54
|
+
- 拦截 XMLHttpRequest 和 fetch API
|
|
55
|
+
- 在发送请求前自动添加自定义请求头
|
|
56
|
+
- 只对白名单中的 URL 注入请求头
|
|
57
|
+
- 监控请求结果并记录成功/失败事件
|
|
58
|
+
|
|
59
|
+
## 代码结构优化
|
|
60
|
+
|
|
61
|
+
### 1. 入口文件精简
|
|
62
|
+
入口文件 [`src/index.ts`](src/index.ts) 已经优化得更加精简,只包含必要的导入和导出:
|
|
63
|
+
- 导入核心初始化函数
|
|
64
|
+
- 导出初始化接口
|
|
65
|
+
- 导出自定义事件接口
|
|
66
|
+
|
|
67
|
+
### 2. 模块化设计
|
|
68
|
+
项目现在采用更好的模块化设计,按功能域清晰划分:
|
|
69
|
+
|
|
70
|
+
#### 核心模块
|
|
71
|
+
- [`src/lib/init.ts`](src/lib/init.ts): 初始化逻辑,负责SDK的启动和配置
|
|
72
|
+
- [`src/lib/config.ts`](src/lib/config.ts): 配置管理,支持CDN动态配置
|
|
73
|
+
- [`src/lib/rrweb.ts`](src/lib/rrweb.ts): 录制功能,集成rrweb录制器
|
|
74
|
+
|
|
75
|
+
#### 数据管理模块
|
|
76
|
+
- [`src/lib/storage-manager.ts`](src/lib/storage-manager.ts): 存储管理,统一处理数据存储
|
|
77
|
+
- [`src/lib/drive/`](src/lib/drive/): 存储驱动层
|
|
78
|
+
- [`indexeddb-adapt.ts`](src/lib/drive/indexeddb-adapt.ts): IndexedDB存储适配器
|
|
79
|
+
- [`localstorage-adapt.ts`](src/lib/drive/localstorage-adapt.ts): LocalStorage存储适配器
|
|
80
|
+
- [`memory-adapt.ts`](src/lib/drive/memory-adapt.ts): 内存存储适配器
|
|
81
|
+
- [`storage-interface.ts`](src/lib/drive/storage-interface.ts): 存储接口定义
|
|
82
|
+
|
|
83
|
+
#### 网络通信模块
|
|
84
|
+
- [`src/lib/uploader.ts`](src/lib/uploader.ts): 数据上传逻辑,包含重试机制
|
|
85
|
+
- [`src/lib/request.ts`](src/lib/request.ts): 网络请求工具,封装HTTP请求
|
|
86
|
+
- [`src/lib/net.ts`](src/lib/net.ts): 网络监控,拦截和记录网络请求
|
|
87
|
+
|
|
88
|
+
#### 功能扩展模块
|
|
89
|
+
- [`src/lib/router-monitor.ts`](src/lib/router-monitor.ts): 路由监控,跟踪页面路由变化
|
|
90
|
+
- [`src/lib/api.ts`](src/lib/api.ts): API接口,提供外部调用接口
|
|
91
|
+
- [`src/lib/utils.ts`](src/lib/utils.ts): 工具函数,通用工具方法
|
|
92
|
+
- [`src/lib/error.ts`](src/lib/error.ts): 错误处理,统一的错误捕获和处理
|
|
93
|
+
|
|
94
|
+
#### 架构特点
|
|
95
|
+
- **分层架构**: 驱动层、服务层、接口层清晰分离
|
|
96
|
+
- **插件化设计**: 各模块可独立启用/禁用
|
|
97
|
+
- **高内聚低耦合**: 模块间通过明确定义的接口交互
|
|
98
|
+
- **可扩展性**: 易于添加新的存储驱动或功能模块
|
|
99
|
+
|
|
100
|
+
## 请求工具
|
|
101
|
+
|
|
102
|
+
### 1. 工具说明
|
|
103
|
+
项目中封装了兼容性更好的请求工具 [`src/lib/request.ts`](src/lib/request.ts),提供以下功能:
|
|
104
|
+
- 兼容性更好的 HTTP 请求(基于 XMLHttpRequest)
|
|
105
|
+
- 支持 GET/POST 方法
|
|
106
|
+
- 支持超时设置
|
|
107
|
+
- 统一的错误处理
|
|
108
|
+
|
|
109
|
+
### 2. 使用方式
|
|
110
|
+
```typescript
|
|
111
|
+
import { get, post, request } from './lib/request';
|
|
112
|
+
|
|
113
|
+
// GET 请求
|
|
114
|
+
const response = await get('https://api.example.com/data');
|
|
115
|
+
|
|
116
|
+
// POST 请求
|
|
117
|
+
const response = await post('https://api.example.com/data', { key: 'value' });
|
|
118
|
+
|
|
119
|
+
// 自定义请求
|
|
120
|
+
const response = await request('https://api.example.com/data', {
|
|
121
|
+
method: 'POST',
|
|
122
|
+
headers: { 'Content-Type': 'application/json' },
|
|
123
|
+
body: JSON.stringify({ key: 'value' }),
|
|
124
|
+
timeout: 5000
|
|
125
|
+
});
|
|
126
|
+
```
|
|
127
|
+
|
|
128
|
+
## 性能优化方案
|
|
129
|
+
|
|
130
|
+
### 1. Canvas录制动态采样
|
|
131
|
+
**自适应采样算法**:
|
|
132
|
+
```ts
|
|
133
|
+
class SamplingController {
|
|
134
|
+
// 设备性能评估
|
|
135
|
+
static getSamplingRate(): number {
|
|
136
|
+
const isMobile = /Mobi/.test(navigator.userAgent);
|
|
137
|
+
const deviceMemory = (navigator as any).deviceMemory || 4;
|
|
138
|
+
|
|
139
|
+
// 动态计算采样率:
|
|
140
|
+
// 1. 根据设备类型选择基准值
|
|
141
|
+
// 2. 根据内存大小动态调整(4GB基准,每增加1GB降低1帧)
|
|
142
|
+
// 3. 最低不低于5帧保证录制可用性
|
|
143
|
+
const baseRate = isMobile ? 8 : 15;
|
|
144
|
+
const memoryFactor = Math.max(0, 4 - (deviceMemory - 4));
|
|
145
|
+
|
|
146
|
+
return Math.max(5, baseRate - memoryFactor);
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
// 实时性能监控(每5秒检测一次)
|
|
150
|
+
static startPerformanceMonitor() {
|
|
151
|
+
setInterval(() => {
|
|
152
|
+
const fps = this.calculateFPS();
|
|
153
|
+
if (fps < 15) { // 低性能预警
|
|
154
|
+
this.throttleRecording();
|
|
155
|
+
} else if (fps > 25) { // 高性能提升
|
|
156
|
+
this.boostSampling();
|
|
157
|
+
}
|
|
158
|
+
}, 5000);
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
// 在rrweb初始化时应用
|
|
163
|
+
rrweb.record({
|
|
164
|
+
sampling: {
|
|
165
|
+
canvas: SamplingController.getSamplingRate()
|
|
166
|
+
}
|
|
167
|
+
});
|
|
168
|
+
```
|
|
169
|
+
|
|
170
|
+
**性能指标**:
|
|
171
|
+
| 指标 | 目标值 | 监控方式 |
|
|
172
|
+
|------|-------|---------|
|
|
173
|
+
| FPS | ≥15 | requestAnimationFrame |
|
|
174
|
+
| 内存占用 | ≤15MB | performance.memory |
|
|
175
|
+
| CPU使用率 | ≤30% | navigator.hardwareConcurrency |
|
|
176
|
+
|
|
177
|
+
### 2. 存储性能优化
|
|
178
|
+
**批量写入策略**:
|
|
179
|
+
```ts
|
|
180
|
+
// IndexedDBAdapter增强
|
|
181
|
+
async push(deviceId: string, data: any): Promise<void> {
|
|
182
|
+
// 实现批量缓冲
|
|
183
|
+
if (!this.writeBuffer) {
|
|
184
|
+
this.writeBuffer = [];
|
|
185
|
+
// 500ms批量提交
|
|
186
|
+
setTimeout(() => this.flushBuffer(), 500);
|
|
187
|
+
}
|
|
188
|
+
this.writeBuffer.push({ deviceId, data });
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
private async flushBuffer(): Promise<void> {
|
|
192
|
+
if (!this.db || !this.writeBuffer) return;
|
|
193
|
+
|
|
194
|
+
const transaction = this.db.transaction(STORE_NAME, 'readwrite');
|
|
195
|
+
const store = transaction.objectStore(STORE_NAME);
|
|
196
|
+
|
|
197
|
+
// 使用游标批量更新
|
|
198
|
+
const cursor = await store.openCursor();
|
|
199
|
+
while (cursor) {
|
|
200
|
+
const updated = this.writeBuffer.find(
|
|
201
|
+
item => item.deviceId === cursor.key
|
|
202
|
+
);
|
|
203
|
+
if (updated) {
|
|
204
|
+
await cursor.update({
|
|
205
|
+
...cursor.value,
|
|
206
|
+
data: [...cursor.value.data, ...updated.data]
|
|
207
|
+
});
|
|
208
|
+
}
|
|
209
|
+
await cursor.continue();
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
this.writeBuffer = null;
|
|
213
|
+
}
|
|
214
|
+
```
|
|
215
|
+
|
|
216
|
+
## 加密模块设计
|
|
217
|
+
|
|
218
|
+
### 1. 加密架构设计
|
|
219
|
+
```mermaid
|
|
220
|
+
sequenceDiagram
|
|
221
|
+
participant SDK
|
|
222
|
+
participant Crypto
|
|
223
|
+
participant Storage
|
|
224
|
+
|
|
225
|
+
SDK->>Crypto: setEncryptionKey() 设置密钥
|
|
226
|
+
SDK->>Crypto: encryptData() 请求加密
|
|
227
|
+
Crypto->>Crypto: 生成IV (12字节)
|
|
228
|
+
Crypto->>Crypto: 使用AES-GCM加密
|
|
229
|
+
Crypto-->>SDK: 返回Base64加密数据
|
|
230
|
+
SDK->>Storage: 存储加密数据
|
|
231
|
+
```
|
|
232
|
+
|
|
233
|
+
### 2. 加密实现细节
|
|
234
|
+
```ts
|
|
235
|
+
// 加密配置接口
|
|
236
|
+
interface EncryptionConfig {
|
|
237
|
+
enabled: boolean; // 加密开关
|
|
238
|
+
algorithm: 'AES-GCM' | 'AES-CBC'; // 算法选择
|
|
239
|
+
keyLength: 128 | 192 | 256; // 密钥长度
|
|
240
|
+
autoRotate: boolean; // 密钥自动轮换
|
|
241
|
+
rotationInterval: number; // 轮换间隔(小时)
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
// 加密服务实现
|
|
245
|
+
class EncryptionService {
|
|
246
|
+
private key: CryptoKey | null = null;
|
|
247
|
+
private config: EncryptionConfig = {
|
|
248
|
+
enabled: false,
|
|
249
|
+
algorithm: 'AES-GCM',
|
|
250
|
+
keyLength: 256,
|
|
251
|
+
autoRotate: true,
|
|
252
|
+
rotationInterval: 24
|
|
253
|
+
};
|
|
254
|
+
|
|
255
|
+
async setKey(key: CryptoKey): Promise<void> {
|
|
256
|
+
this.key = key;
|
|
257
|
+
if (this.config.autoRotate) {
|
|
258
|
+
this.scheduleKeyRotation();
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
async encrypt(data: any): Promise<string> {
|
|
263
|
+
if (!this.config.enabled || !this.key) {
|
|
264
|
+
return JSON.stringify(data);
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
const iv = crypto.getRandomValues(new Uint8Array(12));
|
|
268
|
+
const encoder = new TextEncoder();
|
|
269
|
+
const encrypted = await crypto.subtle.encrypt(
|
|
270
|
+
{
|
|
271
|
+
name: this.config.algorithm,
|
|
272
|
+
iv
|
|
273
|
+
},
|
|
274
|
+
this.key,
|
|
275
|
+
encoder.encode(JSON.stringify(data))
|
|
276
|
+
);
|
|
277
|
+
|
|
278
|
+
// 返回包含元数据的加密数据
|
|
279
|
+
return JSON.stringify({
|
|
280
|
+
v: 1, // 版本号
|
|
281
|
+
alg: this.config.algorithm,
|
|
282
|
+
iv: arrayBufferToBase64(iv),
|
|
283
|
+
data: arrayBufferToBase64(encrypted)
|
|
284
|
+
});
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
private scheduleKeyRotation(): void {
|
|
288
|
+
setInterval(async () => {
|
|
289
|
+
const newKey = await this.generateKey();
|
|
290
|
+
await this.rotateKey(newKey);
|
|
291
|
+
}, this.config.rotationInterval * 3600000);
|
|
292
|
+
}
|
|
293
|
+
}
|
|
294
|
+
```
|
|
295
|
+
|
|
296
|
+
### 3. 敏感数据脱敏
|
|
297
|
+
```ts
|
|
298
|
+
// 脱敏配置
|
|
299
|
+
interface SanitizationRule {
|
|
300
|
+
selector: string; // CSS选择器
|
|
301
|
+
type: 'mask' | 'hash' | 'remove'; // 脱敏类型
|
|
302
|
+
hashAlgorithm?: 'SHA-1' | 'SHA-256'; // 哈希算法
|
|
303
|
+
maskChar?: string; // 掩码字符
|
|
304
|
+
maskLength?: number; // 掩码长度
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
// 脱敏处理器
|
|
308
|
+
class DataSanitizer {
|
|
309
|
+
private rules: SanitizationRule[] = [
|
|
310
|
+
{
|
|
311
|
+
selector: 'input[type="password"]',
|
|
312
|
+
type: 'mask',
|
|
313
|
+
maskChar: '*',
|
|
314
|
+
maskLength: 8
|
|
315
|
+
},
|
|
316
|
+
{
|
|
317
|
+
selector: 'input[name="credit-card"]',
|
|
318
|
+
type: 'hash',
|
|
319
|
+
hashAlgorithm: 'SHA-256'
|
|
320
|
+
}
|
|
321
|
+
];
|
|
322
|
+
|
|
323
|
+
sanitize(data: any): any {
|
|
324
|
+
const result = { ...data };
|
|
325
|
+
|
|
326
|
+
// 遍历DOM节点应用脱敏规则
|
|
327
|
+
document.querySelectorAll('*').forEach(node => {
|
|
328
|
+
const element = node as HTMLElement;
|
|
329
|
+
this.rules.forEach(rule => {
|
|
330
|
+
if (element.matches(rule.selector)) {
|
|
331
|
+
switch (rule.type) {
|
|
332
|
+
case 'mask':
|
|
333
|
+
result.textContent = this.applyMask(
|
|
334
|
+
element.textContent || '',
|
|
335
|
+
rule.maskChar || '*',
|
|
336
|
+
rule.maskLength || 8
|
|
337
|
+
);
|
|
338
|
+
break;
|
|
339
|
+
case 'hash':
|
|
340
|
+
result.textContent = this.hashContent(
|
|
341
|
+
element.textContent || '',
|
|
342
|
+
rule.hashAlgorithm || 'SHA-256'
|
|
343
|
+
);
|
|
344
|
+
break;
|
|
345
|
+
case 'remove':
|
|
346
|
+
result.remove();
|
|
347
|
+
break;
|
|
348
|
+
}
|
|
349
|
+
}
|
|
350
|
+
});
|
|
351
|
+
});
|
|
352
|
+
|
|
353
|
+
return result;
|
|
354
|
+
}
|
|
355
|
+
}
|
|
356
|
+
```
|
|
357
|
+
|
|
358
|
+
## 相关文档和示例
|
|
359
|
+
|
|
360
|
+
### 1. 路由监控功能
|
|
361
|
+
- [详细使用指南](docs/ROUTER_MONITOR_GUIDE.md) - 包含完整的路由监控配置和使用示例
|
|
362
|
+
- [在线示例](examples/test-router-monitor.html) - 可直接在浏览器中测试路由监控功能
|
|
363
|
+
|
|
364
|
+
### 2. 上传重试机制
|
|
365
|
+
- [重试逻辑指南](docs/RETRY_LOGIC_GUIDE.md) - 上传失败后的重试策略和配置
|
|
366
|
+
- [重试测试示例](examples/test-retry-logic.html) - 测试上传重试功能
|
|
367
|
+
|
|
368
|
+
### 3. 消费模式
|
|
369
|
+
- [消费模式指南](docs/CONSUME_ONLY_MODE_GUIDE.md) - 仅消费数据的轻量级使用模式
|
|
370
|
+
- [消费模式示例](examples/consume-only-mode.html) - 消费模式的实际应用示例
|
|
371
|
+
|
|
372
|
+
### 4. 取消方法
|
|
373
|
+
- [取消方法指南](docs/CANCEL_METHOD_GUIDE.md) - 如何正确停止录制和数据收集
|
|
374
|
+
- [取消方法示例](examples/test-cancel.html) - 演示如何正确停止录制和数据收集
|
|
375
|
+
|
|
376
|
+
## 改进建议实施状态
|
|
377
|
+
| 改进项 | 实施状态 | 完成度 |
|
|
378
|
+
|-------|----------|--------|
|
|
379
|
+
| IndexedDB降级修复 | 已完成 | 100% |
|
|
380
|
+
| 动态采样率调整 | 已完成 | 100% |
|
|
381
|
+
| 路由监控功能 | 已完成 | 100% |
|
|
382
|
+
| 错误处理优化 | 设计中 | 50% |
|
|
383
|
+
| 上传重试机制 | 已完成 | 100% |
|
|
384
|
+
| 消费模式支持 | 已完成 | 100% |
|
|
385
|
+
| 取消方法支持 | 已完成 | 100% |
|
|
386
|
+
| 移动端触控增强 | 未开始 | 0% |
|
|
387
|
+
| 数据加密模块 | 设计完成 | 50% |
|
|
388
|
+
| 数据压缩模块 | 未开始 | 0% |
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.Rlog=t():e.Rlog=t()}(self,(function(){return function(){var e={738:function(e,t){"use strict";t.byteLength=function(e){var t=u(e),r=t[0],n=t[1];return 3*(r+n)/4-n},t.toByteArray=function(e){var t,r,i=u(e),s=i[0],a=i[1],c=new o(function(e,t,r){return 3*(t+r)/4-r}(0,s,a)),l=0,f=a>0?s-4:s;for(r=0;r<f;r+=4)t=n[e.charCodeAt(r)]<<18|n[e.charCodeAt(r+1)]<<12|n[e.charCodeAt(r+2)]<<6|n[e.charCodeAt(r+3)],c[l++]=t>>16&255,c[l++]=t>>8&255,c[l++]=255&t;2===a&&(t=n[e.charCodeAt(r)]<<2|n[e.charCodeAt(r+1)]>>4,c[l++]=255&t);1===a&&(t=n[e.charCodeAt(r)]<<10|n[e.charCodeAt(r+1)]<<4|n[e.charCodeAt(r+2)]>>2,c[l++]=t>>8&255,c[l++]=255&t);return c},t.fromByteArray=function(e){for(var t,n=e.length,o=n%3,i=[],s=16383,a=0,u=n-o;a<u;a+=s)i.push(c(e,a,a+s>u?u:a+s));1===o?(t=e[n-1],i.push(r[t>>2]+r[t<<4&63]+"==")):2===o&&(t=(e[n-2]<<8)+e[n-1],i.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"="));return i.join("")};for(var r=[],n=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,a=i.length;s<a;++s)r[s]=i[s],n[i.charCodeAt(s)]=s;function u(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");return-1===r&&(r=t),[r,r===t?0:4-r%4]}function c(e,t,n){for(var o,i,s=[],a=t;a<n;a+=3)o=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(255&e[a+2]),s.push(r[(i=o)>>18&63]+r[i>>12&63]+r[i>>6&63]+r[63&i]);return s.join("")}n["-".charCodeAt(0)]=62,n["_".charCodeAt(0)]=63},579:function(e,t,r){"use strict";var n=r(738),o=r(55),i=r(937);function s(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function a(e,t){if(s()<t)throw new RangeError("Invalid typed array length");return u.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=u.prototype:(null===e&&(e=new u(t)),e.length=t),e}function u(e,t,r){if(!(u.TYPED_ARRAY_SUPPORT||this instanceof u))return new u(e,t,r);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return f(this,e)}return c(this,e,t,r)}function c(e,t,r,n){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,r,n){if(t.byteLength,r<0||t.byteLength<r)throw new RangeError("'offset' is out of bounds");if(t.byteLength<r+(n||0))throw new RangeError("'length' is out of bounds");t=void 0===r&&void 0===n?new Uint8Array(t):void 0===n?new Uint8Array(t,r):new Uint8Array(t,r,n);u.TYPED_ARRAY_SUPPORT?(e=t).__proto__=u.prototype:e=h(e,t);return e}(e,t,r,n):"string"==typeof t?function(e,t,r){"string"==typeof r&&""!==r||(r="utf8");if(!u.isEncoding(r))throw new TypeError('"encoding" must be a valid string encoding');var n=0|d(t,r);e=a(e,n);var o=e.write(t,r);o!==n&&(e=e.slice(0,o));return e}(e,t,r):function(e,t){if(u.isBuffer(t)){var r=0|p(t.length);return 0===(e=a(e,r)).length||t.copy(e,0,0,r),e}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||(n=t.length)!=n?a(e,0):h(e,t);if("Buffer"===t.type&&i(t.data))return h(e,t.data)}var n;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function l(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function f(e,t){if(l(t),e=a(e,t<0?0:0|p(t)),!u.TYPED_ARRAY_SUPPORT)for(var r=0;r<t;++r)e[r]=0;return e}function h(e,t){var r=t.length<0?0:0|p(t.length);e=a(e,r);for(var n=0;n<r;n+=1)e[n]=255&t[n];return e}function p(e){if(e>=s())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s().toString(16)+" bytes");return 0|e}function d(e,t){if(u.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var r=e.length;if(0===r)return 0;for(var n=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return W(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return Z(e).length;default:if(n)return W(e).length;t=(""+t).toLowerCase(),n=!0}}function v(e,t,r){var n=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return M(this,t,r);case"utf8":case"utf-8":return A(this,t,r);case"ascii":return R(this,t,r);case"latin1":case"binary":return E(this,t,r);case"base64":return x(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return N(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function g(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function m(e,t,r,n,o){if(0===e.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=o?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(o)return-1;r=e.length-1}else if(r<0){if(!o)return-1;r=0}if("string"==typeof t&&(t=u.from(t,n)),u.isBuffer(t))return 0===t.length?-1:y(e,t,r,n,o);if("number"==typeof t)return t&=255,u.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):y(e,[t],r,n,o);throw new TypeError("val must be string, number or Buffer")}function y(e,t,r,n,o){var i,s=1,a=e.length,u=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1;s=2,a/=2,u/=2,r/=2}function c(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}if(o){var l=-1;for(i=r;i<a;i++)if(c(e,i)===c(t,-1===l?0:i-l)){if(-1===l&&(l=i),i-l+1===u)return l*s}else-1!==l&&(i-=i-l),l=-1}else for(r+u>a&&(r=a-u),i=r;i>=0;i--){for(var f=!0,h=0;h<u;h++)if(c(e,i+h)!==c(t,h)){f=!1;break}if(f)return i}return-1}function w(e,t,r,n){r=Number(r)||0;var o=e.length-r;n?(n=Number(n))>o&&(n=o):n=o;var i=t.length;if(i%2!=0)throw new TypeError("Invalid hex string");n>i/2&&(n=i/2);for(var s=0;s<n;++s){var a=parseInt(t.substr(2*s,2),16);if(isNaN(a))return s;e[r+s]=a}return s}function b(e,t,r,n){return G(W(t,e.length-r),e,r,n)}function C(e,t,r,n){return G(function(e){for(var t=[],r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}(t),e,r,n)}function I(e,t,r,n){return C(e,t,r,n)}function k(e,t,r,n){return G(Z(t),e,r,n)}function S(e,t,r,n){return G(function(e,t){for(var r,n,o,i=[],s=0;s<e.length&&!((t-=2)<0);++s)n=(r=e.charCodeAt(s))>>8,o=r%256,i.push(o),i.push(n);return i}(t,e.length-r),e,r,n)}function x(e,t,r){return 0===t&&r===e.length?n.fromByteArray(e):n.fromByteArray(e.slice(t,r))}function A(e,t,r){r=Math.min(e.length,r);for(var n=[],o=t;o<r;){var i,s,a,u,c=e[o],l=null,f=c>239?4:c>223?3:c>191?2:1;if(o+f<=r)switch(f){case 1:c<128&&(l=c);break;case 2:128==(192&(i=e[o+1]))&&(u=(31&c)<<6|63&i)>127&&(l=u);break;case 3:i=e[o+1],s=e[o+2],128==(192&i)&&128==(192&s)&&(u=(15&c)<<12|(63&i)<<6|63&s)>2047&&(u<55296||u>57343)&&(l=u);break;case 4:i=e[o+1],s=e[o+2],a=e[o+3],128==(192&i)&&128==(192&s)&&128==(192&a)&&(u=(15&c)<<18|(63&i)<<12|(63&s)<<6|63&a)>65535&&u<1114112&&(l=u)}null===l?(l=65533,f=1):l>65535&&(l-=65536,n.push(l>>>10&1023|55296),l=56320|1023&l),n.push(l),o+=f}return function(e){var t=e.length;if(t<=O)return String.fromCharCode.apply(String,e);var r="",n=0;for(;n<t;)r+=String.fromCharCode.apply(String,e.slice(n,n+=O));return r}(n)}t.lW=u,t.h2=50,u.TYPED_ARRAY_SUPPORT=void 0!==r.g.TYPED_ARRAY_SUPPORT?r.g.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}(),s(),u.poolSize=8192,u._augment=function(e){return e.__proto__=u.prototype,e},u.from=function(e,t,r){return c(null,e,t,r)},u.TYPED_ARRAY_SUPPORT&&(u.prototype.__proto__=Uint8Array.prototype,u.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&u[Symbol.species]===u&&Object.defineProperty(u,Symbol.species,{value:null,configurable:!0})),u.alloc=function(e,t,r){return function(e,t,r,n){return l(t),t<=0?a(e,t):void 0!==r?"string"==typeof n?a(e,t).fill(r,n):a(e,t).fill(r):a(e,t)}(null,e,t,r)},u.allocUnsafe=function(e){return f(null,e)},u.allocUnsafeSlow=function(e){return f(null,e)},u.isBuffer=function(e){return!(null==e||!e._isBuffer)},u.compare=function(e,t){if(!u.isBuffer(e)||!u.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var r=e.length,n=t.length,o=0,i=Math.min(r,n);o<i;++o)if(e[o]!==t[o]){r=e[o],n=t[o];break}return r<n?-1:n<r?1:0},u.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},u.concat=function(e,t){if(!i(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return u.alloc(0);var r;if(void 0===t)for(t=0,r=0;r<e.length;++r)t+=e[r].length;var n=u.allocUnsafe(t),o=0;for(r=0;r<e.length;++r){var s=e[r];if(!u.isBuffer(s))throw new TypeError('"list" argument must be an Array of Buffers');s.copy(n,o),o+=s.length}return n},u.byteLength=d,u.prototype._isBuffer=!0,u.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)g(this,t,t+1);return this},u.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)g(this,t,t+3),g(this,t+1,t+2);return this},u.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)g(this,t,t+7),g(this,t+1,t+6),g(this,t+2,t+5),g(this,t+3,t+4);return this},u.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?A(this,0,e):v.apply(this,arguments)},u.prototype.equals=function(e){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===u.compare(this,e)},u.prototype.inspect=function(){var e="",r=t.h2;return this.length>0&&(e=this.toString("hex",0,r).match(/.{2}/g).join(" "),this.length>r&&(e+=" ... ")),"<Buffer "+e+">"},u.prototype.compare=function(e,t,r,n,o){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===o&&(o=this.length),t<0||r>e.length||n<0||o>this.length)throw new RangeError("out of range index");if(n>=o&&t>=r)return 0;if(n>=o)return-1;if(t>=r)return 1;if(this===e)return 0;for(var i=(o>>>=0)-(n>>>=0),s=(r>>>=0)-(t>>>=0),a=Math.min(i,s),c=this.slice(n,o),l=e.slice(t,r),f=0;f<a;++f)if(c[f]!==l[f]){i=c[f],s=l[f];break}return i<s?-1:s<i?1:0},u.prototype.includes=function(e,t,r){return-1!==this.indexOf(e,t,r)},u.prototype.indexOf=function(e,t,r){return m(this,e,t,r,!0)},u.prototype.lastIndexOf=function(e,t,r){return m(this,e,t,r,!1)},u.prototype.write=function(e,t,r,n){if(void 0===t)n="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)n=t,r=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(r)?(r|=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}var o=this.length-t;if((void 0===r||r>o)&&(r=o),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var i=!1;;)switch(n){case"hex":return w(this,e,t,r);case"utf8":case"utf-8":return b(this,e,t,r);case"ascii":return C(this,e,t,r);case"latin1":case"binary":return I(this,e,t,r);case"base64":return k(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S(this,e,t,r);default:if(i)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),i=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var O=4096;function R(e,t,r){var n="";r=Math.min(e.length,r);for(var o=t;o<r;++o)n+=String.fromCharCode(127&e[o]);return n}function E(e,t,r){var n="";r=Math.min(e.length,r);for(var o=t;o<r;++o)n+=String.fromCharCode(e[o]);return n}function M(e,t,r){var n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);for(var o="",i=t;i<r;++i)o+=j(e[i]);return o}function N(e,t,r){for(var n=e.slice(t,r),o="",i=0;i<n.length;i+=2)o+=String.fromCharCode(n[i]+256*n[i+1]);return o}function T(e,t,r){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>r)throw new RangeError("Trying to access beyond buffer length")}function L(e,t,r,n,o,i){if(!u.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>o||t<i)throw new RangeError('"value" argument is out of bounds');if(r+n>e.length)throw new RangeError("Index out of range")}function P(e,t,r,n){t<0&&(t=65535+t+1);for(var o=0,i=Math.min(e.length-r,2);o<i;++o)e[r+o]=(t&255<<8*(n?o:1-o))>>>8*(n?o:1-o)}function F(e,t,r,n){t<0&&(t=4294967295+t+1);for(var o=0,i=Math.min(e.length-r,4);o<i;++o)e[r+o]=t>>>8*(n?o:3-o)&255}function B(e,t,r,n,o,i){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function _(e,t,r,n,i){return i||B(e,0,r,4),o.write(e,t,r,n,23,4),r+4}function D(e,t,r,n,i){return i||B(e,0,r,8),o.write(e,t,r,n,52,8),r+8}u.prototype.slice=function(e,t){var r,n=this.length;if((e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(t=void 0===t?n:~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),t<e&&(t=e),u.TYPED_ARRAY_SUPPORT)(r=this.subarray(e,t)).__proto__=u.prototype;else{var o=t-e;r=new u(o,void 0);for(var i=0;i<o;++i)r[i]=this[i+e]}return r},u.prototype.readUIntLE=function(e,t,r){e|=0,t|=0,r||T(e,t,this.length);for(var n=this[e],o=1,i=0;++i<t&&(o*=256);)n+=this[e+i]*o;return n},u.prototype.readUIntBE=function(e,t,r){e|=0,t|=0,r||T(e,t,this.length);for(var n=this[e+--t],o=1;t>0&&(o*=256);)n+=this[e+--t]*o;return n},u.prototype.readUInt8=function(e,t){return t||T(e,1,this.length),this[e]},u.prototype.readUInt16LE=function(e,t){return t||T(e,2,this.length),this[e]|this[e+1]<<8},u.prototype.readUInt16BE=function(e,t){return t||T(e,2,this.length),this[e]<<8|this[e+1]},u.prototype.readUInt32LE=function(e,t){return t||T(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},u.prototype.readUInt32BE=function(e,t){return t||T(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},u.prototype.readIntLE=function(e,t,r){e|=0,t|=0,r||T(e,t,this.length);for(var n=this[e],o=1,i=0;++i<t&&(o*=256);)n+=this[e+i]*o;return n>=(o*=128)&&(n-=Math.pow(2,8*t)),n},u.prototype.readIntBE=function(e,t,r){e|=0,t|=0,r||T(e,t,this.length);for(var n=t,o=1,i=this[e+--n];n>0&&(o*=256);)i+=this[e+--n]*o;return i>=(o*=128)&&(i-=Math.pow(2,8*t)),i},u.prototype.readInt8=function(e,t){return t||T(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},u.prototype.readInt16LE=function(e,t){t||T(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt16BE=function(e,t){t||T(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt32LE=function(e,t){return t||T(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},u.prototype.readInt32BE=function(e,t){return t||T(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},u.prototype.readFloatLE=function(e,t){return t||T(e,4,this.length),o.read(this,e,!0,23,4)},u.prototype.readFloatBE=function(e,t){return t||T(e,4,this.length),o.read(this,e,!1,23,4)},u.prototype.readDoubleLE=function(e,t){return t||T(e,8,this.length),o.read(this,e,!0,52,8)},u.prototype.readDoubleBE=function(e,t){return t||T(e,8,this.length),o.read(this,e,!1,52,8)},u.prototype.writeUIntLE=function(e,t,r,n){(e=+e,t|=0,r|=0,n)||L(this,e,t,r,Math.pow(2,8*r)-1,0);var o=1,i=0;for(this[t]=255&e;++i<r&&(o*=256);)this[t+i]=e/o&255;return t+r},u.prototype.writeUIntBE=function(e,t,r,n){(e=+e,t|=0,r|=0,n)||L(this,e,t,r,Math.pow(2,8*r)-1,0);var o=r-1,i=1;for(this[t+o]=255&e;--o>=0&&(i*=256);)this[t+o]=e/i&255;return t+r},u.prototype.writeUInt8=function(e,t,r){return e=+e,t|=0,r||L(this,e,t,1,255,0),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},u.prototype.writeUInt16LE=function(e,t,r){return e=+e,t|=0,r||L(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):P(this,e,t,!0),t+2},u.prototype.writeUInt16BE=function(e,t,r){return e=+e,t|=0,r||L(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):P(this,e,t,!1),t+2},u.prototype.writeUInt32LE=function(e,t,r){return e=+e,t|=0,r||L(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):F(this,e,t,!0),t+4},u.prototype.writeUInt32BE=function(e,t,r){return e=+e,t|=0,r||L(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):F(this,e,t,!1),t+4},u.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t|=0,!n){var o=Math.pow(2,8*r-1);L(this,e,t,r,o-1,-o)}var i=0,s=1,a=0;for(this[t]=255&e;++i<r&&(s*=256);)e<0&&0===a&&0!==this[t+i-1]&&(a=1),this[t+i]=(e/s>>0)-a&255;return t+r},u.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t|=0,!n){var o=Math.pow(2,8*r-1);L(this,e,t,r,o-1,-o)}var i=r-1,s=1,a=0;for(this[t+i]=255&e;--i>=0&&(s*=256);)e<0&&0===a&&0!==this[t+i+1]&&(a=1),this[t+i]=(e/s>>0)-a&255;return t+r},u.prototype.writeInt8=function(e,t,r){return e=+e,t|=0,r||L(this,e,t,1,127,-128),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},u.prototype.writeInt16LE=function(e,t,r){return e=+e,t|=0,r||L(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):P(this,e,t,!0),t+2},u.prototype.writeInt16BE=function(e,t,r){return e=+e,t|=0,r||L(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):P(this,e,t,!1),t+2},u.prototype.writeInt32LE=function(e,t,r){return e=+e,t|=0,r||L(this,e,t,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):F(this,e,t,!0),t+4},u.prototype.writeInt32BE=function(e,t,r){return e=+e,t|=0,r||L(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):F(this,e,t,!1),t+4},u.prototype.writeFloatLE=function(e,t,r){return _(this,e,t,!0,r)},u.prototype.writeFloatBE=function(e,t,r){return _(this,e,t,!1,r)},u.prototype.writeDoubleLE=function(e,t,r){return D(this,e,t,!0,r)},u.prototype.writeDoubleBE=function(e,t,r){return D(this,e,t,!1,r)},u.prototype.copy=function(e,t,r,n){if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n<r&&(n=r),n===r)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t<n-r&&(n=e.length-t+r);var o,i=n-r;if(this===e&&r<t&&t<n)for(o=i-1;o>=0;--o)e[o+t]=this[o+r];else if(i<1e3||!u.TYPED_ARRAY_SUPPORT)for(o=0;o<i;++o)e[o+t]=this[o+r];else Uint8Array.prototype.set.call(e,this.subarray(r,r+i),t);return i},u.prototype.fill=function(e,t,r,n){if("string"==typeof e){if("string"==typeof t?(n=t,t=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),1===e.length){var o=e.charCodeAt(0);o<256&&(e=o)}if(void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!u.isEncoding(n))throw new TypeError("Unknown encoding: "+n)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<r)throw new RangeError("Out of range index");if(r<=t)return this;var i;if(t>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(i=t;i<r;++i)this[i]=e;else{var s=u.isBuffer(e)?e:W(new u(e,n).toString()),a=s.length;for(i=0;i<r-t;++i)this[i+t]=s[i%a]}return this};var U=/[^+\/0-9A-Za-z-_]/g;function j(e){return e<16?"0"+e.toString(16):e.toString(16)}function W(e,t){var r;t=t||1/0;for(var n=e.length,o=null,i=[],s=0;s<n;++s){if((r=e.charCodeAt(s))>55295&&r<57344){if(!o){if(r>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(s+1===n){(t-=3)>-1&&i.push(239,191,189);continue}o=r;continue}if(r<56320){(t-=3)>-1&&i.push(239,191,189),o=r;continue}r=65536+(o-55296<<10|r-56320)}else o&&(t-=3)>-1&&i.push(239,191,189);if(o=null,r<128){if((t-=1)<0)break;i.push(r)}else if(r<2048){if((t-=2)<0)break;i.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;i.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return i}function Z(e){return n.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(U,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function G(e,t,r,n){for(var o=0;o<n&&!(o+r>=t.length||o>=e.length);++o)t[o+r]=e[o];return o}},55:function(e,t){t.read=function(e,t,r,n,o){var i,s,a=8*o-n-1,u=(1<<a)-1,c=u>>1,l=-7,f=r?o-1:0,h=r?-1:1,p=e[t+f];for(f+=h,i=p&(1<<-l)-1,p>>=-l,l+=a;l>0;i=256*i+e[t+f],f+=h,l-=8);for(s=i&(1<<-l)-1,i>>=-l,l+=n;l>0;s=256*s+e[t+f],f+=h,l-=8);if(0===i)i=1-c;else{if(i===u)return s?NaN:1/0*(p?-1:1);s+=Math.pow(2,n),i-=c}return(p?-1:1)*s*Math.pow(2,i-n)},t.write=function(e,t,r,n,o,i){var s,a,u,c=8*i-o-1,l=(1<<c)-1,f=l>>1,h=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,p=n?0:i-1,d=n?1:-1,v=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,s=l):(s=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-s))<1&&(s--,u*=2),(t+=s+f>=1?h/u:h*Math.pow(2,1-f))*u>=2&&(s++,u/=2),s+f>=l?(a=0,s=l):s+f>=1?(a=(t*u-1)*Math.pow(2,o),s+=f):(a=t*Math.pow(2,f-1)*Math.pow(2,o),s=0));o>=8;e[r+p]=255&a,p+=d,a/=256,o-=8);for(s=s<<o|a,c+=o;c>0;e[r+p]=255&s,p+=d,s/=256,c-=8);e[r+p-d]|=128*v}},937:function(e){var t={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==t.call(e)}},256:function(e){var t,r,n=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function s(e){if(t===setTimeout)return setTimeout(e,0);if((t===o||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(r){try{return t.call(null,e,0)}catch(r){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:o}catch(e){t=o}try{r="function"==typeof clearTimeout?clearTimeout:i}catch(e){r=i}}();var a,u=[],c=!1,l=-1;function f(){c&&a&&(c=!1,a.length?u=a.concat(u):l=-1,u.length&&h())}function h(){if(!c){var e=s(f);c=!0;for(var t=u.length;t;){for(a=u,u=[];++l<t;)a&&a[l].run();l=-1,t=u.length}a=null,c=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===i||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function p(e,t){this.fun=e,this.array=t}function d(){}n.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];u.push(new p(e,t)),1!==u.length||c||s(h)},p.prototype.run=function(){this.fun.apply(null,this.array)},n.title="browser",n.browser=!0,n.env={},n.argv=[],n.version="",n.versions={},n.on=d,n.addListener=d,n.once=d,n.off=d,n.removeListener=d,n.removeAllListeners=d,n.emit=d,n.prependListener=d,n.prependOnceListener=d,n.listeners=function(e){return[]},n.binding=function(e){throw new Error("process.binding is not supported")},n.cwd=function(){return"/"},n.chdir=function(e){throw new Error("process.chdir is not supported")},n.umask=function(){return 0}},933:function(e){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n},e.exports.__esModule=!0,e.exports.default=e.exports},956:function(e){e.exports=function(e){if(Array.isArray(e))return e},e.exports.__esModule=!0,e.exports.default=e.exports},961:function(e,t,r){var n=r(933);e.exports=function(e){if(Array.isArray(e))return n(e)},e.exports.__esModule=!0,e.exports.default=e.exports},619:function(e){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e},e.exports.__esModule=!0,e.exports.default=e.exports},915:function(e){function t(e,t,r,n,o,i,s){try{var a=e[i](s),u=a.value}catch(e){return void r(e)}a.done?t(u):Promise.resolve(u).then(n,o)}e.exports=function(e){return function(){var r=this,n=arguments;return new Promise((function(o,i){var s=e.apply(r,n);function a(e){t(s,o,i,a,u,"next",e)}function u(e){t(s,o,i,a,u,"throw",e)}a(void 0)}))}},e.exports.__esModule=!0,e.exports.default=e.exports},165:function(e){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},e.exports.__esModule=!0,e.exports.default=e.exports},264:function(e,t,r){var n=r(913),o=r(665);function i(t,r,s){return o()?(e.exports=i=Reflect.construct.bind(),e.exports.__esModule=!0,e.exports.default=e.exports):(e.exports=i=function(e,t,r){var o=[null];o.push.apply(o,t);var i=new(Function.bind.apply(e,o));return r&&n(i,r.prototype),i},e.exports.__esModule=!0,e.exports.default=e.exports),i.apply(null,arguments)}e.exports=i,e.exports.__esModule=!0,e.exports.default=e.exports},534:function(e,t,r){var n=r(36);function o(e,t){for(var r=0;r<t.length;r++){var o=t[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,n(o.key),o)}}e.exports=function(e,t,r){return t&&o(e.prototype,t),r&&o(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e},e.exports.__esModule=!0,e.exports.default=e.exports},903:function(e,t,r){var n=r(931);e.exports=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=n(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var o=0,i=function(){};return{s:i,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,u=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){u=!0,s=e},f:function(){try{a||null==r.return||r.return()}finally{if(u)throw s}}}},e.exports.__esModule=!0,e.exports.default=e.exports},153:function(e,t,r){var n=r(894),o=r(665),i=r(441);e.exports=function(e){var t=o();return function(){var r,o=n(e);if(t){var s=n(this).constructor;r=Reflect.construct(o,arguments,s)}else r=o.apply(this,arguments);return i(this,r)}},e.exports.__esModule=!0,e.exports.default=e.exports},150:function(e,t,r){var n=r(36);e.exports=function(e,t,r){return(t=n(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e},e.exports.__esModule=!0,e.exports.default=e.exports},670:function(e,t,r){var n=r(872);function o(){return"undefined"!=typeof Reflect&&Reflect.get?(e.exports=o=Reflect.get.bind(),e.exports.__esModule=!0,e.exports.default=e.exports):(e.exports=o=function(e,t,r){var o=n(e,t);if(o){var i=Object.getOwnPropertyDescriptor(o,t);return i.get?i.get.call(arguments.length<3?e:r):i.value}},e.exports.__esModule=!0,e.exports.default=e.exports),o.apply(this,arguments)}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports},894:function(e){function t(r){return e.exports=t=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},e.exports.__esModule=!0,e.exports.default=e.exports,t(r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},411:function(e,t,r){var n=r(913);e.exports=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&n(e,t)},e.exports.__esModule=!0,e.exports.default=e.exports},969:function(e){e.exports=function(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}},e.exports.__esModule=!0,e.exports.default=e.exports},665:function(e){e.exports=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}},e.exports.__esModule=!0,e.exports.default=e.exports},595:function(e){e.exports=function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)},e.exports.__esModule=!0,e.exports.default=e.exports},749:function(e){e.exports=function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,s,a=[],u=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(a.push(n.value),a.length!==t);u=!0);}catch(e){c=!0,o=e}finally{try{if(!u&&null!=r.return&&(s=r.return(),Object(s)!==s))return}finally{if(c)throw o}}return a}},e.exports.__esModule=!0,e.exports.default=e.exports},17:function(e){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.__esModule=!0,e.exports.default=e.exports},545:function(e){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.__esModule=!0,e.exports.default=e.exports},378:function(e,t,r){var n=r(150);function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}e.exports=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?o(Object(r),!0).forEach((function(t){n(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e},e.exports.__esModule=!0,e.exports.default=e.exports},955:function(e,t,r){var n=r(768);e.exports=function(e,t){if(null==e)return{};var r,o,i=n(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(o=0;o<s.length;o++)r=s[o],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i},e.exports.__esModule=!0,e.exports.default=e.exports},768:function(e){e.exports=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o},e.exports.__esModule=!0,e.exports.default=e.exports},441:function(e,t,r){var n=r(775).default,o=r(619);e.exports=function(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return o(e)},e.exports.__esModule=!0,e.exports.default=e.exports},177:function(e,t,r){var n=r(775).default;function o(){"use strict";e.exports=o=function(){return r},e.exports.__esModule=!0,e.exports.default=e.exports;var t,r={},i=Object.prototype,s=i.hasOwnProperty,a=Object.defineProperty||function(e,t,r){e[t]=r.value},u="function"==typeof Symbol?Symbol:{},c=u.iterator||"@@iterator",l=u.asyncIterator||"@@asyncIterator",f=u.toStringTag||"@@toStringTag";function h(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{h({},"")}catch(t){h=function(e,t,r){return e[t]=r}}function p(e,t,r,n){var o=t&&t.prototype instanceof w?t:w,i=Object.create(o.prototype),s=new T(n||[]);return a(i,"_invoke",{value:R(e,r,s)}),i}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}r.wrap=p;var v="suspendedStart",g="executing",m="completed",y={};function w(){}function b(){}function C(){}var I={};h(I,c,(function(){return this}));var k=Object.getPrototypeOf,S=k&&k(k(L([])));S&&S!==i&&s.call(S,c)&&(I=S);var x=C.prototype=w.prototype=Object.create(I);function A(e){["next","throw","return"].forEach((function(t){h(e,t,(function(e){return this._invoke(t,e)}))}))}function O(e,t){function r(o,i,a,u){var c=d(e[o],e,i);if("throw"!==c.type){var l=c.arg,f=l.value;return f&&"object"==n(f)&&s.call(f,"__await")?t.resolve(f.__await).then((function(e){r("next",e,a,u)}),(function(e){r("throw",e,a,u)})):t.resolve(f).then((function(e){l.value=e,a(l)}),(function(e){return r("throw",e,a,u)}))}u(c.arg)}var o;a(this,"_invoke",{value:function(e,n){function i(){return new t((function(t,o){r(e,n,t,o)}))}return o=o?o.then(i,i):i()}})}function R(e,r,n){var o=v;return function(i,s){if(o===g)throw new Error("Generator is already running");if(o===m){if("throw"===i)throw s;return{value:t,done:!0}}for(n.method=i,n.arg=s;;){var a=n.delegate;if(a){var u=E(a,n);if(u){if(u===y)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===v)throw o=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=g;var c=d(e,r,n);if("normal"===c.type){if(o=n.done?m:"suspendedYield",c.arg===y)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(o=m,n.method="throw",n.arg=c.arg)}}}function E(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,E(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=d(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var s=i.arg;return s?s.done?(r[e.resultName]=s.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):s:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function M(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function N(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(M,this),this.reset(!0)}function L(e){if(e||""===e){var r=e[c];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(s.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(n(e)+" is not iterable")}return b.prototype=C,a(x,"constructor",{value:C,configurable:!0}),a(C,"constructor",{value:b,configurable:!0}),b.displayName=h(C,f,"GeneratorFunction"),r.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===b||"GeneratorFunction"===(t.displayName||t.name))},r.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,C):(e.__proto__=C,h(e,f,"GeneratorFunction")),e.prototype=Object.create(x),e},r.awrap=function(e){return{__await:e}},A(O.prototype),h(O.prototype,l,(function(){return this})),r.AsyncIterator=O,r.async=function(e,t,n,o,i){void 0===i&&(i=Promise);var s=new O(p(e,t,n,o),i);return r.isGeneratorFunction(t)?s:s.next().then((function(e){return e.done?e.value:s.next()}))},A(x),h(x,f,"Generator"),h(x,c,(function(){return this})),h(x,"toString",(function(){return"[object Generator]"})),r.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},r.values=L,T.prototype={constructor:T,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(N),!e)for(var r in this)"t"===r.charAt(0)&&s.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(n,o){return a.type="throw",a.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=s.call(i,"catchLoc"),c=s.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&s.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var o=n;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,y):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),N(r),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;N(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:L(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},r}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports},913:function(e){function t(r,n){return e.exports=t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},e.exports.__esModule=!0,e.exports.default=e.exports,t(r,n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},377:function(e,t,r){var n=r(956),o=r(749),i=r(931),s=r(17);e.exports=function(e,t){return n(e)||o(e,t)||i(e,t)||s()},e.exports.__esModule=!0,e.exports.default=e.exports},872:function(e,t,r){var n=r(894);e.exports=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=n(e)););return e},e.exports.__esModule=!0,e.exports.default=e.exports},958:function(e,t,r){var n=r(961),o=r(595),i=r(931),s=r(545);e.exports=function(e){return n(e)||o(e)||i(e)||s()},e.exports.__esModule=!0,e.exports.default=e.exports},24:function(e,t,r){var n=r(775).default;e.exports=function(e,t){if("object"!=n(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,t||"default");if("object"!=n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports},36:function(e,t,r){var n=r(775).default,o=r(24);e.exports=function(e){var t=o(e,"string");return"symbol"==n(t)?t:String(t)},e.exports.__esModule=!0,e.exports.default=e.exports},775:function(e){function t(r){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},931:function(e,t,r){var n=r(933);e.exports=function(e,t){if(e){if("string"==typeof e)return n(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?n(e,t):void 0}},e.exports.__esModule=!0,e.exports.default=e.exports},458:function(e,t,r){var n=r(894),o=r(913),i=r(969),s=r(264);function a(t){var r="function"==typeof Map?new Map:void 0;return e.exports=a=function(e){if(null===e||!i(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==r){if(r.has(e))return r.get(e);r.set(e,t)}function t(){return s(e,arguments,n(this).constructor)}return t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),o(t,e)},e.exports.__esModule=!0,e.exports.default=e.exports,a(t)}e.exports=a,e.exports.__esModule=!0,e.exports.default=e.exports}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={exports:{}};return e[n](i,i.exports,r),i.exports}r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,{a:t}),t},r.d=function(e,t){for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};return function(){"use strict";r.r(n),r.d(n,{addCustomEvent:function(){return mf},getCurrentRouteInfo:function(){return lf},init:function(){return vf},isConsumeOnlyMode:function(){return wf},manualRouteChange:function(){return ff},setConsumeOnlyMode:function(){return yf},setCustomHeaders:function(){return Ol},setWhiteListUrls:function(){return Al},stop:function(){return gf},stopRouterMonitor:function(){return hf},toggleConsumeOnlyMode:function(){return bf},updateRouterConfig:function(){return cf}});var e,t=r(903),o=r.n(t),i=r(775),s=r.n(i);function a(e){return e.nodeType===e.ELEMENT_NODE}function u(e){var t=null==e?void 0:e.host;return Boolean((null==t?void 0:t.shadowRoot)===e)}function c(e){return"[object ShadowRoot]"===Object.prototype.toString.call(e)}function l(e){try{var t=e.rules||e.cssRules;return t?((r=Array.from(t).map(f).join("")).includes(" background-clip: text;")&&!r.includes(" -webkit-background-clip: text;")&&(r=r.replace(" background-clip: text;"," -webkit-background-clip: text; background-clip: text;")),r):null}catch(e){return null}var r}function f(e){var t=e.cssText;if(function(e){return"styleSheet"in e}(e))try{t=l(e.styleSheet)||t}catch(e){}return t}!function(e){e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment"}(e||(e={}));var h=function(){function e(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}return e.prototype.getId=function(e){var t;if(!e)return-1;var r=null===(t=this.getMeta(e))||void 0===t?void 0:t.id;return null!=r?r:-1},e.prototype.getNode=function(e){return this.idNodeMap.get(e)||null},e.prototype.getIds=function(){return Array.from(this.idNodeMap.keys())},e.prototype.getMeta=function(e){return this.nodeMetaMap.get(e)||null},e.prototype.removeNodeFromMap=function(e){var t=this,r=this.getId(e);this.idNodeMap.delete(r),e.childNodes&&e.childNodes.forEach((function(e){return t.removeNodeFromMap(e)}))},e.prototype.has=function(e){return this.idNodeMap.has(e)},e.prototype.hasNode=function(e){return this.nodeMetaMap.has(e)},e.prototype.add=function(e,t){var r=t.id;this.idNodeMap.set(r,e),this.nodeMetaMap.set(e,t)},e.prototype.replace=function(e,t){var r=this.getNode(e);if(r){var n=this.nodeMetaMap.get(r);n&&this.nodeMetaMap.set(t,n)}this.idNodeMap.set(e,t)},e.prototype.reset=function(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap},e}();function p(e){var t=e.maskInputOptions,r=e.tagName,n=e.type,o=e.value,i=e.maskInputFn,s=o||"";return(t[r.toLowerCase()]||t[n])&&(s=i?i(s):"*".repeat(s.length)),s}var d="__rrweb_original__";var v,g,m=1,y=new RegExp("[^a-z0-9-_:]");function w(){return m++}var b=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,C=/^(?!www\.|(?:http|ftp)s?:\/\/|[A-Za-z]:\\|\/\/|#).*/,I=/^(data:)([^,]*),(.*)/i;function k(e,t){return(e||"").replace(b,(function(e,r,n,o,i,s){var a,u=n||i||s,c=r||o||"";if(!u)return e;if(!C.test(u))return"url(".concat(c).concat(u).concat(c,")");if(I.test(u))return"url(".concat(c).concat(u).concat(c,")");if("/"===u[0])return"url(".concat(c).concat((a=t,(a.indexOf("//")>-1?a.split("/").slice(0,3).join("/"):a.split("/")[0]).split("?")[0]+u)).concat(c,")");var l=t.split("/"),f=u.split("/");l.pop();for(var h=0,p=f;h<p.length;h++){var d=p[h];"."!==d&&(".."===d?l.pop():l.push(d))}return"url(".concat(c).concat(l.join("/")).concat(c,")")}))}var S=/^[^ \t\n\r\u000c]+/,x=/^[, \t\n\r\u000c]+/;function A(e,t){if(!t||""===t.trim())return t;var r=e.createElement("a");return r.href=t,r.href}function O(e){return Boolean("svg"===e.tagName||e.ownerSVGElement)}function R(){var e=document.createElement("a");return e.href="",e.href}function E(e,t,r,n){return"src"===r||"href"===r&&n&&("use"!==t||"#"!==n[0])||"xlink:href"===r&&n&&"#"!==n[0]?A(e,n):"background"!==r||!n||"table"!==t&&"td"!==t&&"th"!==t?"srcset"===r&&n?function(e,t){if(""===t.trim())return t;var r=0;function n(e){var n,o=e.exec(t.substring(r));return o?(n=o[0],r+=n.length,n):""}for(var o=[];n(x),!(r>=t.length);){var i=n(S);if(","===i.slice(-1))i=A(e,i.substring(0,i.length-1)),o.push(i);else{var s="";i=A(e,i);for(var a=!1;;){var u=t.charAt(r);if(""===u){o.push((i+s).trim());break}if(a)")"===u&&(a=!1);else{if(","===u){r+=1,o.push((i+s).trim());break}"("===u&&(a=!0)}s+=u,r+=1}}}return o.join(", ")}(e,n):"style"===r&&n?k(n,R()):"object"===t&&"data"===r&&n?A(e,n):n:A(e,n)}function M(e,t,r){if(!e)return!1;if(e.nodeType!==e.ELEMENT_NODE)return!!r&&M(e.parentNode,t,r);for(var n=e.classList.length;n--;){var o=e.classList[n];if(t.test(o))return!0}return!!r&&M(e.parentNode,t,r)}function N(e,t,r){var n=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;if(null===n)return!1;if("string"==typeof t){if(n.classList.contains(t))return!0;if(n.closest(".".concat(t)))return!0}else if(M(n,t,!0))return!0;if(r){if(n.matches(r))return!0;if(n.closest(r))return!0}return!1}function T(t,r){var n=r.doc,o=r.mirror,i=r.blockClass,s=r.blockSelector,a=r.maskTextClass,u=r.maskTextSelector,c=r.inlineStylesheet,f=r.maskInputOptions,h=void 0===f?{}:f,m=r.maskTextFn,w=r.maskInputFn,b=r.dataURLOptions,C=void 0===b?{}:b,I=r.inlineImages,S=r.recordCanvas,x=r.keepIframeSrcFn,A=r.newlyAddedElement,M=void 0!==A&&A,T=function(e,t){if(!t.hasNode(e))return;var r=t.getId(e);return 1===r?void 0:r}(n,o);switch(t.nodeType){case t.DOCUMENT_NODE:return"CSS1Compat"!==t.compatMode?{type:e.Document,childNodes:[],compatMode:t.compatMode}:{type:e.Document,childNodes:[]};case t.DOCUMENT_TYPE_NODE:return{type:e.DocumentType,name:t.name,publicId:t.publicId,systemId:t.systemId,rootId:T};case t.ELEMENT_NODE:return function(t,r){for(var n=r.doc,o=r.blockClass,i=r.blockSelector,s=r.inlineStylesheet,a=r.maskInputOptions,u=void 0===a?{}:a,c=r.maskInputFn,f=r.dataURLOptions,h=void 0===f?{}:f,m=r.inlineImages,w=r.recordCanvas,b=r.keepIframeSrcFn,C=r.newlyAddedElement,I=void 0!==C&&C,S=r.rootId,x=function(e,t,r){if("string"==typeof t){if(e.classList.contains(t))return!0}else for(var n=e.classList.length;n--;){var o=e.classList[n];if(t.test(o))return!0}return!!r&&e.matches(r)}(t,o,i),A=function(e){if(e instanceof HTMLFormElement)return"form";var t=e.tagName.toLowerCase().trim();return y.test(t)?"div":t}(t),M={},N=t.attributes.length,T=0;T<N;T++){var L=t.attributes[T];M[L.name]=E(n,A,L.name,L.value)}if("link"===A&&s){var P=Array.from(n.styleSheets).find((function(e){return e.href===t.href})),F=null;P&&(F=l(P)),F&&(delete M.rel,delete M.href,M._cssText=k(F,P.href))}if("style"===A&&t.sheet&&!(t.innerText||t.textContent||"").trim().length){(F=l(t.sheet))&&(M._cssText=k(F,R()))}if("input"===A||"textarea"===A||"select"===A){var B=t.value,_=t.checked;"radio"!==M.type&&"checkbox"!==M.type&&"submit"!==M.type&&"button"!==M.type&&B?M.value=p({type:M.type,tagName:A,value:B,maskInputOptions:u,maskInputFn:c}):_&&(M.checked=_)}"option"===A&&(t.selected&&!u.select?M.selected=!0:delete M.selected);if("canvas"===A&&w)if("2d"===t.__context)(function(e){var t=e.getContext("2d");if(!t)return!0;for(var r=0;r<e.width;r+=50)for(var n=0;n<e.height;n+=50){var o=t.getImageData,i=d in o?o[d]:o;if(new Uint32Array(i.call(t,r,n,Math.min(50,e.width-r),Math.min(50,e.height-n)).data.buffer).some((function(e){return 0!==e})))return!1}return!0})(t)||(M.rr_dataURL=t.toDataURL(h.type,h.quality));else if(!("__context"in t)){var D=t.toDataURL(h.type,h.quality),U=document.createElement("canvas");U.width=t.width,U.height=t.height,D!==U.toDataURL(h.type,h.quality)&&(M.rr_dataURL=D)}if("img"===A&&m){v||(v=n.createElement("canvas"),g=v.getContext("2d"));var j=t,W=j.crossOrigin;j.crossOrigin="anonymous";var Z=function(){try{v.width=j.naturalWidth,v.height=j.naturalHeight,g.drawImage(j,0,0),M.rr_dataURL=v.toDataURL(h.type,h.quality)}catch(e){console.warn("Cannot inline img src=".concat(j.currentSrc,"! Error: ").concat(e))}W?M.crossOrigin=W:j.removeAttribute("crossorigin")};j.complete&&0!==j.naturalWidth?Z():j.onload=Z}"audio"!==A&&"video"!==A||(M.rr_mediaState=t.paused?"paused":"played",M.rr_mediaCurrentTime=t.currentTime);I||(t.scrollLeft&&(M.rr_scrollLeft=t.scrollLeft),t.scrollTop&&(M.rr_scrollTop=t.scrollTop));if(x){var G=t.getBoundingClientRect(),V=G.width,Y=G.height;M={class:M.class,rr_width:"".concat(V,"px"),rr_height:"".concat(Y,"px")}}"iframe"!==A||b(M.src)||(t.contentDocument||(M.rr_src=M.src),delete M.src);return{type:e.Element,tagName:A,attributes:M,childNodes:[],isSVG:O(t)||void 0,needBlock:x,rootId:S}}(t,{doc:n,blockClass:i,blockSelector:s,inlineStylesheet:c,maskInputOptions:h,maskInputFn:w,dataURLOptions:C,inlineImages:I,recordCanvas:S,keepIframeSrcFn:x,newlyAddedElement:M,rootId:T});case t.TEXT_NODE:return function(t,r){var n,o=r.maskTextClass,i=r.maskTextSelector,s=r.maskTextFn,a=r.rootId,u=t.parentNode&&t.parentNode.tagName,c=t.textContent,l="STYLE"===u||void 0,f="SCRIPT"===u||void 0;if(l&&c){try{t.nextSibling||t.previousSibling||(null===(n=t.parentNode.sheet)||void 0===n?void 0:n.cssRules)&&(c=(h=t.parentNode.sheet).cssRules?Array.from(h.cssRules).map((function(e){return e.cssText||""})).join(""):"")}catch(e){console.warn("Cannot get CSS styles from text's parentNode. Error: ".concat(e),t)}c=k(c,R())}var h;f&&(c="SCRIPT_PLACEHOLDER");!l&&!f&&c&&N(t,o,i)&&(c=s?s(c):c.replace(/[\S]/g,"*"));return{type:e.Text,textContent:c||"",isStyle:l,rootId:a}}(t,{maskTextClass:a,maskTextSelector:u,maskTextFn:m,rootId:T});case t.CDATA_SECTION_NODE:return{type:e.CDATA,textContent:"",rootId:T};case t.COMMENT_NODE:return{type:e.Comment,textContent:t.textContent||"",rootId:T};default:return!1}}function L(e){return void 0===e?"":e.toLowerCase()}function P(t,r){var n,o=r.doc,i=r.mirror,s=r.blockClass,l=r.blockSelector,f=r.maskTextClass,h=r.maskTextSelector,p=r.skipChild,d=void 0!==p&&p,v=r.inlineStylesheet,g=void 0===v||v,m=r.maskInputOptions,y=void 0===m?{}:m,b=r.maskTextFn,C=r.maskInputFn,I=r.slimDOMOptions,k=r.dataURLOptions,S=void 0===k?{}:k,x=r.inlineImages,A=void 0!==x&&x,O=r.recordCanvas,R=void 0!==O&&O,E=r.onSerialize,M=r.onIframeLoad,N=r.iframeLoadTimeout,F=void 0===N?5e3:N,B=r.onStylesheetLoad,_=r.stylesheetLoadTimeout,D=void 0===_?5e3:_,U=r.keepIframeSrcFn,j=void 0===U?function(){return!1}:U,W=r.newlyAddedElement,Z=void 0!==W&&W,G=r.preserveWhiteSpace,V=void 0===G||G,Y=T(t,{doc:o,mirror:i,blockClass:s,blockSelector:l,maskTextClass:f,maskTextSelector:h,inlineStylesheet:g,maskInputOptions:y,maskTextFn:b,maskInputFn:C,dataURLOptions:S,inlineImages:A,recordCanvas:R,keepIframeSrcFn:j,newlyAddedElement:Z});if(!Y)return console.warn(t,"not serialized"),null;n=i.hasNode(t)?i.getId(t):!function(t,r){if(r.comment&&t.type===e.Comment)return!0;if(t.type===e.Element){if(r.script&&("script"===t.tagName||"link"===t.tagName&&"preload"===t.attributes.rel&&"script"===t.attributes.as||"link"===t.tagName&&"prefetch"===t.attributes.rel&&"string"==typeof t.attributes.href&&t.attributes.href.endsWith(".js")))return!0;if(r.headFavicon&&("link"===t.tagName&&"shortcut icon"===t.attributes.rel||"meta"===t.tagName&&(L(t.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===L(t.attributes.name)||"icon"===L(t.attributes.rel)||"apple-touch-icon"===L(t.attributes.rel)||"shortcut icon"===L(t.attributes.rel))))return!0;if("meta"===t.tagName){if(r.headMetaDescKeywords&&L(t.attributes.name).match(/^description|keywords$/))return!0;if(r.headMetaSocial&&(L(t.attributes.property).match(/^(og|twitter|fb):/)||L(t.attributes.name).match(/^(og|twitter):/)||"pinterest"===L(t.attributes.name)))return!0;if(r.headMetaRobots&&("robots"===L(t.attributes.name)||"googlebot"===L(t.attributes.name)||"bingbot"===L(t.attributes.name)))return!0;if(r.headMetaHttpEquiv&&void 0!==t.attributes["http-equiv"])return!0;if(r.headMetaAuthorship&&("author"===L(t.attributes.name)||"generator"===L(t.attributes.name)||"framework"===L(t.attributes.name)||"publisher"===L(t.attributes.name)||"progid"===L(t.attributes.name)||L(t.attributes.property).match(/^article:/)||L(t.attributes.property).match(/^product:/)))return!0;if(r.headMetaVerification&&("google-site-verification"===L(t.attributes.name)||"yandex-verification"===L(t.attributes.name)||"csrf-token"===L(t.attributes.name)||"p:domain_verify"===L(t.attributes.name)||"verify-v1"===L(t.attributes.name)||"verification"===L(t.attributes.name)||"shopify-checkout-api-token"===L(t.attributes.name)))return!0}}return!1}(Y,I)&&(V||Y.type!==e.Text||Y.isStyle||Y.textContent.replace(/^\s+|\s+$/gm,"").length)?w():-2;var z=Object.assign(Y,{id:n});if(i.add(t,z),-2===n)return null;E&&E(t);var K=!d;if(z.type===e.Element){K=K&&!z.needBlock,delete z.needBlock;var J=t.shadowRoot;J&&c(J)&&(z.isShadowHost=!0)}if((z.type===e.Document||z.type===e.Element)&&K){I.headWhitespace&&z.type===e.Element&&"head"===z.tagName&&(V=!1);for(var H={doc:o,mirror:i,blockClass:s,blockSelector:l,maskTextClass:f,maskTextSelector:h,skipChild:d,inlineStylesheet:g,maskInputOptions:y,maskTextFn:b,maskInputFn:C,slimDOMOptions:I,dataURLOptions:S,inlineImages:A,recordCanvas:R,preserveWhiteSpace:V,onSerialize:E,onIframeLoad:M,iframeLoadTimeout:F,onStylesheetLoad:B,stylesheetLoadTimeout:D,keepIframeSrcFn:j},X=0,Q=Array.from(t.childNodes);X<Q.length;X++){(ee=P(Q[X],H))&&z.childNodes.push(ee)}if(a(t)&&t.shadowRoot)for(var q=0,$=Array.from(t.shadowRoot.childNodes);q<$.length;q++){var ee;(ee=P($[q],H))&&(c(t.shadowRoot)&&(ee.isShadow=!0),z.childNodes.push(ee))}}return t.parentNode&&u(t.parentNode)&&c(t.parentNode)&&(z.isShadow=!0),z.type===e.Element&&"iframe"===z.tagName&&function(e,t,r){var n=e.contentWindow;if(n){var o,i=!1;try{o=n.document.readyState}catch(e){return}if("complete"===o){var s="about:blank";if(n.location.href!==s||e.src===s||""===e.src)return setTimeout(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}else{var a=setTimeout((function(){i||(t(),i=!0)}),r);e.addEventListener("load",(function(){clearTimeout(a),i=!0,t()}))}}}(t,(function(){var e=t.contentDocument;if(e&&M){var r=P(e,{doc:e,mirror:i,blockClass:s,blockSelector:l,maskTextClass:f,maskTextSelector:h,skipChild:!1,inlineStylesheet:g,maskInputOptions:y,maskTextFn:b,maskInputFn:C,slimDOMOptions:I,dataURLOptions:S,inlineImages:A,recordCanvas:R,preserveWhiteSpace:V,onSerialize:E,onIframeLoad:M,iframeLoadTimeout:F,onStylesheetLoad:B,stylesheetLoadTimeout:D,keepIframeSrcFn:j});r&&M(t,r)}}),F),z.type===e.Element&&"link"===z.tagName&&"stylesheet"===z.attributes.rel&&function(e,t,r){var n,o=!1;try{n=e.sheet}catch(e){return}if(!n){var i=setTimeout((function(){o||(t(),o=!0)}),r);e.addEventListener("load",(function(){clearTimeout(i),o=!0,t()}))}}(t,(function(){if(B){var e=P(t,{doc:o,mirror:i,blockClass:s,blockSelector:l,maskTextClass:f,maskTextSelector:h,skipChild:!1,inlineStylesheet:g,maskInputOptions:y,maskTextFn:b,maskInputFn:C,slimDOMOptions:I,dataURLOptions:S,inlineImages:A,recordCanvas:R,preserveWhiteSpace:V,onSerialize:E,onIframeLoad:M,iframeLoadTimeout:F,onStylesheetLoad:B,stylesheetLoadTimeout:D,keepIframeSrcFn:j});e&&B(t,e)}}),D),z}function F(e,t){var r=t||{},n=r.mirror,o=void 0===n?new h:n,i=r.blockClass,s=void 0===i?"rr-block":i,a=r.blockSelector,u=void 0===a?null:a,c=r.maskTextClass,l=void 0===c?"rr-mask":c,f=r.maskTextSelector,p=void 0===f?null:f,d=r.inlineStylesheet,v=void 0===d||d,g=r.inlineImages,m=void 0!==g&&g,y=r.recordCanvas,w=void 0!==y&&y,b=r.maskAllInputs,C=void 0!==b&&b,I=r.maskTextFn,k=r.maskInputFn,S=r.slimDOM,x=void 0!==S&&S,A=r.dataURLOptions,O=r.preserveWhiteSpace,R=r.onSerialize,E=r.onIframeLoad,M=r.iframeLoadTimeout,N=r.onStylesheetLoad,T=r.stylesheetLoadTimeout,L=r.keepIframeSrcFn;return P(e,{doc:e,mirror:o,blockClass:s,blockSelector:u,maskTextClass:l,maskTextSelector:p,skipChild:!1,inlineStylesheet:v,maskInputOptions:!0===C?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:!1===C?{password:!0}:C,maskTextFn:I,maskInputFn:k,slimDOMOptions:!0===x||"all"===x?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:"all"===x,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:!1===x?{}:x,dataURLOptions:A,inlineImages:m,recordCanvas:w,preserveWhiteSpace:O,onSerialize:R,onIframeLoad:E,iframeLoadTimeout:M,onStylesheetLoad:N,stylesheetLoadTimeout:T,keepIframeSrcFn:void 0===L?function(){return!1}:L,newlyAddedElement:!1})}var B=/([^\\]):hover/;new RegExp(B.source,"g");var _=r(377),D=r.n(_),U=r(958),j=r(165),W=r.n(j),Z=r(534),G=r.n(Z);function V(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:document,n={capture:!0,passive:!0};return r.addEventListener(e,t,n),function(){return r.removeEventListener(e,t,n)}}var Y="Please stop import mirror directly. Instead of that,\r\nnow you can use replayer.getMirror() to access the mirror instance of a replayer,\r\nor you can use record.mirror to access the mirror instance during recording.",z={map:{},getId:function(){return console.error(Y),-1},getNode:function(){return console.error(Y),null},removeNodeFromMap:function(){console.error(Y)},has:function(){return console.error(Y),!1},reset:function(){console.error(Y)}};function K(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=null,o=0;return function(){for(var i=arguments.length,s=new Array(i),a=0;a<i;a++)s[a]=arguments[a];var u=Date.now();o||!1!==r.leading||(o=u);var c=t-(u-o),l=this;c<=0||c>t?(n&&(clearTimeout(n),n=null),o=u,e.apply(l,s)):n||!1===r.trailing||(n=setTimeout((function(){o=!1===r.leading?0:Date.now(),n=null,e.apply(l,s)}),c))}}function J(e,t,r,n){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:window,i=o.Object.getOwnPropertyDescriptor(e,t);return o.Object.defineProperty(e,t,n?r:{set:function(e){var t=this;setTimeout((function(){r.set.call(t,e)}),0),i&&i.set&&i.set.call(this,e)}}),function(){return J(e,t,i||{},!0)}}function H(e,t,r){try{if(!(t in e))return function(){};var n=e[t],o=r(n);return"function"==typeof o&&(o.prototype=o.prototype||{},Object.defineProperties(o,{__rrweb_original__:{enumerable:!1,value:n}})),e[t]=o,function(){e[t]=n}}catch(e){return function(){}}}function X(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function Q(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function q(e,t,r,n){if(!e)return!1;var o=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;if(!o)return!1;if("string"==typeof t){if(o.classList.contains(t))return!0;if(n&&null!==o.closest("."+t))return!0}else if(M(o,t,n))return!0;if(r){if(e.matches(r))return!0;if(n&&null!==o.closest(r))return!0}return!1}function $(e,t){return-2===t.getId(e)}function ee(e,t){if(u(e))return!1;var r=t.getId(e);return!t.has(r)||(!e.parentNode||e.parentNode.nodeType!==e.DOCUMENT_NODE)&&(!e.parentNode||ee(e.parentNode,t))}function te(e){return Boolean(e.changedTouches)}function re(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window;"NodeList"in t&&!t.NodeList.prototype.forEach&&(t.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in t&&!t.DOMTokenList.prototype.forEach&&(t.DOMTokenList.prototype.forEach=Array.prototype.forEach),Node.prototype.contains||(Node.prototype.contains=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var o=r[0];if(!(0 in r))throw new TypeError("1 argument is required");do{if(e===o)return!0}while(o=o&&o.parentNode);return!1})}function ne(e,t){return Boolean("IFRAME"===e.nodeName&&t.getMeta(e))}function oe(e,t){return Boolean("LINK"===e.nodeName&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&"stylesheet"===e.getAttribute("rel")&&t.getMeta(e))}function ie(e){return Boolean(null==e?void 0:e.shadowRoot)}"undefined"!=typeof window&&window.Proxy&&window.Reflect&&(z=new Proxy(z,{get:function(e,t,r){return"map"===t&&console.error(Y),Reflect.get(e,t,r)}}));var se=function(){function e(){j(this,e),this.id=1,this.styleIDMap=new WeakMap,this.idStyleMap=new Map}return Z(e,[{key:"getId",value:function(e){var t;return null!==(t=this.styleIDMap.get(e))&&void 0!==t?t:-1}},{key:"has",value:function(e){return this.styleIDMap.has(e)}},{key:"add",value:function(e,t){return this.has(e)?this.getId(e):(r=void 0===t?this.id++:t,this.styleIDMap.set(e,r),this.idStyleMap.set(r,e),r);var r}},{key:"getStyle",value:function(e){return this.idStyleMap.get(e)||null}},{key:"reset",value:function(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}},{key:"generateId",value:function(){return this.id++}}]),e}(),ae=function(e){return e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin",e}(ae||{}),ue=function(e){return e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet",e}(ue||{}),ce=function(e){return e[e.MouseUp=0]="MouseUp",e[e.MouseDown=1]="MouseDown",e[e.Click=2]="Click",e[e.ContextMenu=3]="ContextMenu",e[e.DblClick=4]="DblClick",e[e.Focus=5]="Focus",e[e.Blur=6]="Blur",e[e.TouchStart=7]="TouchStart",e[e.TouchMove_Departed=8]="TouchMove_Departed",e[e.TouchEnd=9]="TouchEnd",e[e.TouchCancel=10]="TouchCancel",e}(ce||{}),le=function(e){return e[e["2D"]=0]="2D",e[e.WebGL=1]="WebGL",e[e.WebGL2=2]="WebGL2",e}(le||{});function fe(e){return"__ln"in e}var he=function(){function e(){j(this,e),this.length=0,this.head=null}return Z(e,[{key:"get",value:function(e){if(e>=this.length)throw new Error("Position outside of list range");for(var t=this.head,r=0;r<e;r++)t=(null==t?void 0:t.next)||null;return t}},{key:"addNode",value:function(e){var t={value:e,previous:null,next:null};if(e.__ln=t,e.previousSibling&&fe(e.previousSibling)){var r=e.previousSibling.__ln.next;t.next=r,t.previous=e.previousSibling.__ln,e.previousSibling.__ln.next=t,r&&(r.previous=t)}else if(e.nextSibling&&fe(e.nextSibling)&&e.nextSibling.__ln.previous){var n=e.nextSibling.__ln.previous;t.previous=n,t.next=e.nextSibling.__ln,e.nextSibling.__ln.previous=t,n&&(n.next=t)}else this.head&&(this.head.previous=t),t.next=this.head,this.head=t;this.length++}},{key:"removeNode",value:function(e){var t=e.__ln;this.head&&(t.previous?(t.previous.next=t.next,t.next&&(t.next.previous=t.previous)):(this.head=t.next,this.head&&(this.head.previous=null)),e.__ln&&delete e.__ln,this.length--)}}]),e}(),pe=function(e,t){return"".concat(e,"@").concat(t)},de=function(){function e(){var t=this;j(this,e),this.frozen=!1,this.locked=!1,this.texts=[],this.attributes=[],this.removes=[],this.mapRemoves=[],this.movedMap={},this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.processMutations=function(e){e.forEach(t.processMutation),t.emit()},this.emit=function(){if(!t.frozen&&!t.locked){for(var e=[],r=new he,n=function(e){for(var r=e,n=-2;-2===n;)n=(r=r&&r.nextSibling)&&t.mirror.getId(r);return n},o=function(o){var i,s,a,c,l=null;(null===(s=null===(i=o.getRootNode)||void 0===i?void 0:i.call(o))||void 0===s?void 0:s.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&o.getRootNode().host&&(l=o.getRootNode().host);for(var f=l;(null===(c=null===(a=null==f?void 0:f.getRootNode)||void 0===a?void 0:a.call(f))||void 0===c?void 0:c.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&f.getRootNode().host;)f=f.getRootNode().host;var h=!(t.doc.contains(o)||f&&t.doc.contains(f));if(o.parentNode&&!h){var p=u(o.parentNode)?t.mirror.getId(l):t.mirror.getId(o.parentNode),d=n(o);if(-1===p||-1===d)return r.addNode(o);var v=P(o,{doc:t.doc,mirror:t.mirror,blockClass:t.blockClass,blockSelector:t.blockSelector,maskTextClass:t.maskTextClass,maskTextSelector:t.maskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:t.inlineStylesheet,maskInputOptions:t.maskInputOptions,maskTextFn:t.maskTextFn,maskInputFn:t.maskInputFn,slimDOMOptions:t.slimDOMOptions,dataURLOptions:t.dataURLOptions,recordCanvas:t.recordCanvas,inlineImages:t.inlineImages,onSerialize:function(e){ne(e,t.mirror)&&t.iframeManager.addIframe(e),oe(e,t.mirror)&&t.stylesheetManager.trackLinkElement(e),ie(o)&&t.shadowDomManager.addShadowRoot(o.shadowRoot,t.doc)},onIframeLoad:function(e,r){t.iframeManager.attachIframe(e,r),t.shadowDomManager.observeAttachShadow(e)},onStylesheetLoad:function(e,r){t.stylesheetManager.attachLinkElement(e,r)}});v&&e.push({parentId:p,nextId:d,node:v})}};t.mapRemoves.length;)t.mirror.removeNodeFromMap(t.mapRemoves.shift());for(var i=0,s=Array.from(t.movedSet.values());i<s.length;i++){var a=s[i];ge(t.removes,a,t.mirror)&&!t.movedSet.has(a.parentNode)||o(a)}for(var c=0,l=Array.from(t.addedSet.values());c<l.length;c++){var f=l[c];ye(t.droppedSet,f)||ge(t.removes,f,t.mirror)?ye(t.movedSet,f)?o(f):t.droppedSet.add(f):o(f)}for(var h=null;r.length;){var p=null;if(h){var d=t.mirror.getId(h.value.parentNode),v=n(h.value);-1!==d&&-1!==v&&(p=h)}if(!p)for(var g=r.length-1;g>=0;g--){var m=r.get(g);if(m){var y=t.mirror.getId(m.value.parentNode);if(-1===n(m.value))continue;if(-1!==y){p=m;break}var w=m.value;if(w.parentNode&&w.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE){var b=w.parentNode.host;if(-1!==t.mirror.getId(b)){p=m;break}}}}if(!p){for(;r.head;)r.removeNode(r.head.value);break}h=p.previous,r.removeNode(p.value),o(p.value)}var C={texts:t.texts.map((function(e){return{id:t.mirror.getId(e.node),value:e.value}})).filter((function(e){return t.mirror.has(e.id)})),attributes:t.attributes.map((function(e){return{id:t.mirror.getId(e.node),attributes:e.attributes}})).filter((function(e){return t.mirror.has(e.id)})),removes:t.removes,adds:e};(C.texts.length||C.attributes.length||C.removes.length||C.adds.length)&&(t.texts=[],t.attributes=[],t.removes=[],t.addedSet=new Set,t.movedSet=new Set,t.droppedSet=new Set,t.movedMap={},t.mutationCb(C))}},this.processMutation=function(e){if(!$(e.target,t.mirror))switch(e.type){case"characterData":var r=e.target.textContent;q(e.target,t.blockClass,t.blockSelector,!1)||r===e.oldValue||t.texts.push({value:N(e.target,t.maskTextClass,t.maskTextSelector)&&r?t.maskTextFn?t.maskTextFn(r):r.replace(/[\S]/g,"*"):r,node:e.target});break;case"attributes":var n=e.target,o=e.target.getAttribute(e.attributeName);if("value"===e.attributeName&&(o=p({maskInputOptions:t.maskInputOptions,tagName:e.target.tagName,type:e.target.getAttribute("type"),value:o,maskInputFn:t.maskInputFn})),q(e.target,t.blockClass,t.blockSelector,!1)||o===e.oldValue)return;var i=t.attributes.find((function(t){return t.node===e.target}));if("IFRAME"===n.tagName&&"src"===e.attributeName&&!t.keepIframeSrcFn(o)){if(n.contentDocument)return;e.attributeName="rr_src"}if(i||(i={node:e.target,attributes:{}},t.attributes.push(i)),"style"===e.attributeName){var s=t.doc.createElement("span");e.oldValue&&s.setAttribute("style",e.oldValue),void 0!==i.attributes.style&&null!==i.attributes.style||(i.attributes.style={});for(var a=i.attributes.style,l=0,f=Array.from(n.style);l<f.length;l++){var h=f[l],d=n.style.getPropertyValue(h),v=n.style.getPropertyPriority(h);d===s.style.getPropertyValue(h)&&v===s.style.getPropertyPriority(h)||(a[h]=""===v?d:[d,v])}for(var g=0,m=Array.from(s.style);g<m.length;g++){var y=m[g];""===n.style.getPropertyValue(y)&&(a[y]=!1)}}else i.attributes[e.attributeName]=E(t.doc,n.tagName,e.attributeName,o);break;case"childList":if(q(e.target,t.blockClass,t.blockSelector,!0))return;e.addedNodes.forEach((function(r){return t.genAdds(r,e.target)})),e.removedNodes.forEach((function(r){var n=t.mirror.getId(r),o=u(e.target)?t.mirror.getId(e.target.host):t.mirror.getId(e.target);q(e.target,t.blockClass,t.blockSelector,!1)||$(r,t.mirror)||!function(e,t){return-1!==t.getId(e)}(r,t.mirror)||(t.addedSet.has(r)?(ve(t.addedSet,r),t.droppedSet.add(r)):t.addedSet.has(e.target)&&-1===n||ee(e.target,t.mirror)||(t.movedSet.has(r)&&t.movedMap[pe(n,o)]?ve(t.movedSet,r):t.removes.push({parentId:o,id:n,isShadow:!(!u(e.target)||!c(e.target))||void 0})),t.mapRemoves.push(r))}))}},this.genAdds=function(e,r){if(t.mirror.hasNode(e)){if($(e,t.mirror))return;t.movedSet.add(e);var n=null;r&&t.mirror.hasNode(r)&&(n=t.mirror.getId(r)),n&&-1!==n&&(t.movedMap[pe(t.mirror.getId(e),n)]=!0)}else t.addedSet.add(e),t.droppedSet.delete(e);q(e,t.blockClass,t.blockSelector,!1)||e.childNodes.forEach((function(e){return t.genAdds(e)}))}}return Z(e,[{key:"init",value:function(e){var t=this;["mutationCb","blockClass","blockSelector","maskTextClass","maskTextSelector","inlineStylesheet","maskInputOptions","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager"].forEach((function(r){t[r]=e[r]}))}},{key:"freeze",value:function(){this.frozen=!0,this.canvasManager.freeze()}},{key:"unfreeze",value:function(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()}},{key:"isFrozen",value:function(){return this.frozen}},{key:"lock",value:function(){this.locked=!0,this.canvasManager.lock()}},{key:"unlock",value:function(){this.locked=!1,this.canvasManager.unlock(),this.emit()}},{key:"reset",value:function(){this.shadowDomManager.reset(),this.canvasManager.reset()}}]),e}();function ve(e,t){e.delete(t),t.childNodes.forEach((function(t){return ve(e,t)}))}function ge(e,t,r){return 0!==e.length&&me(e,t,r)}function me(e,t,r){var n=t.parentNode;if(!n)return!1;var o=r.getId(n);return!!e.some((function(e){return e.id===o}))||me(e,n,r)}function ye(e,t){return 0!==e.size&&we(e,t)}function we(e,t){var r=t.parentNode;return!!r&&(!!e.has(r)||we(e,r))}var be=[],Ce="undefined"!=typeof CSSGroupingRule,Ie="undefined"!=typeof CSSMediaRule,ke="undefined"!=typeof CSSSupportsRule,Se="undefined"!=typeof CSSConditionRule;function xe(e){try{if("composedPath"in e){var t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0];return e.target}catch(t){return e.target}}function Ae(e,t){var r,n,o=new de;be.push(o),o.init(e);var i=window.MutationObserver||window.__rrMutationObserver,s=null===(n=null===(r=null===window||void 0===window?void 0:window.Zone)||void 0===r?void 0:r.__symbol__)||void 0===n?void 0:n.call(r,"MutationObserver");s&&window[s]&&(i=window[s]);var a=new i(o.processMutations.bind(o));return a.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),a}function Oe(e){var t=e.mousemoveCb,r=e.sampling,n=e.doc,o=e.mirror;if(!1===r.mousemove)return function(){};var i,s="number"==typeof r.mousemove?r.mousemove:50,a="number"==typeof r.mousemoveCallback?r.mousemoveCallback:500,u=[],c=K((function(e){var r=Date.now()-i;t(u.map((function(e){return e.timeOffset-=r,e})),e),u=[],i=null}),a),l=K((function(e){var t=xe(e),r=te(e)?e.changedTouches[0]:e,n=r.clientX,s=r.clientY;i||(i=Date.now()),u.push({x:n,y:s,id:o.getId(t),timeOffset:Date.now()-i}),c("undefined"!=typeof DragEvent&&e instanceof DragEvent?ue.Drag:e instanceof MouseEvent?ue.MouseMove:ue.TouchMove)}),s,{trailing:!1}),f=[V("mousemove",l,n),V("touchmove",l,n),V("drag",l,n)];return function(){f.forEach((function(e){return e()}))}}function Re(e){var t=e.mouseInteractionCb,r=e.doc,n=e.mirror,o=e.blockClass,i=e.blockSelector,s=e.sampling;if(!1===s.mouseInteraction)return function(){};var a=!0===s.mouseInteraction||void 0===s.mouseInteraction?{}:s.mouseInteraction,u=[];return Object.keys(ce).filter((function(e){return Number.isNaN(Number(e))&&!e.endsWith("_Departed")&&!1!==a[e]})).forEach((function(e){var s=e.toLowerCase(),a=function(e){return function(r){var s=xe(r);if(!q(s,o,i,!0)){var a=te(r)?r.changedTouches[0]:r;if(a){var u=n.getId(s),c=a.clientX,l=a.clientY;t({type:ce[e],id:u,x:c,y:l})}}}}(e);u.push(V(s,a,r))})),function(){u.forEach((function(e){return e()}))}}function Ee(e){var t=e.scrollCb,r=e.doc,n=e.mirror,o=e.blockClass,i=e.blockSelector;return V("scroll",K((function(e){var s=xe(e);if(s&&!q(s,o,i,!0)){var a=n.getId(s);if(s===r){var u=r.scrollingElement||r.documentElement;t({id:a,x:u.scrollLeft,y:u.scrollTop})}else t({id:a,x:s.scrollLeft,y:s.scrollTop})}}),e.sampling.scroll||100),r)}function Me(e){var t=e.viewportResizeCb,r=-1,n=-1;return V("resize",K((function(){var e=X(),o=Q();r===e&&n===o||(t({width:Number(o),height:Number(e)}),r=e,n=o)}),200),window)}function Ne(e,t){var r=Object.assign({},e);return t||delete r.userTriggered,r}var Te=["INPUT","TEXTAREA","SELECT"],Le=new WeakMap;function Pe(e){var t=e.inputCb,r=e.doc,n=e.mirror,o=e.blockClass,i=e.blockSelector,s=e.ignoreClass,a=e.maskInputOptions,u=e.maskInputFn,c=e.sampling,l=e.userTriggeredOnInput;function f(e){var t=xe(e),n=e.isTrusted;if(t&&"OPTION"===t.tagName&&(t=t.parentElement),t&&t.tagName&&!(Te.indexOf(t.tagName)<0)&&!q(t,o,i,!0)){var c=t.type;if(!t.classList.contains(s)){var f=t.value,d=!1;"radio"===c||"checkbox"===c?d=t.checked:(a[t.tagName.toLowerCase()]||a[c])&&(f=p({maskInputOptions:a,tagName:t.tagName,type:c,value:f,maskInputFn:u})),h(t,Ne({text:f,isChecked:d,userTriggered:n},l));var v=t.name;"radio"===c&&v&&d&&r.querySelectorAll('input[type="radio"][name="'.concat(v,'"]')).forEach((function(e){e!==t&&h(e,Ne({text:e.value,isChecked:!d,userTriggered:!1},l))}))}}}function h(e,r){var o=Le.get(e);if(!o||o.text!==r.text||o.isChecked!==r.isChecked){Le.set(e,r);var i=n.getId(e);t(Object.assign(Object.assign({},r),{id:i}))}}var d=("last"===c.input?["change"]:["input","change"]).map((function(e){return V(e,f,r)})),v=r.defaultView;if(!v)return function(){d.forEach((function(e){return e()}))};var g=v.Object.getOwnPropertyDescriptor(v.HTMLInputElement.prototype,"value"),m=[[v.HTMLInputElement.prototype,"value"],[v.HTMLInputElement.prototype,"checked"],[v.HTMLSelectElement.prototype,"value"],[v.HTMLTextAreaElement.prototype,"value"],[v.HTMLSelectElement.prototype,"selectedIndex"],[v.HTMLOptionElement.prototype,"selected"]];return g&&g.set&&d.push.apply(d,U(m.map((function(e){return J(e[0],e[1],{set:function(){f({target:this})}},!1,v)})))),function(){d.forEach((function(e){return e()}))}}function Fe(e){return function(e,t){if(Ce&&e.parentRule instanceof CSSGroupingRule||Ie&&e.parentRule instanceof CSSMediaRule||ke&&e.parentRule instanceof CSSSupportsRule||Se&&e.parentRule instanceof CSSConditionRule){var r=Array.from(e.parentRule.cssRules).indexOf(e);t.unshift(r)}else if(e.parentStyleSheet){var n=Array.from(e.parentStyleSheet.cssRules).indexOf(e);t.unshift(n)}return t}(e,[])}function Be(e,t,r){var n,o;return e?(e.ownerNode?n=t.getId(e.ownerNode):o=r.getId(e),{styleId:o,id:n}):{}}function _e(e,t){var r=e.styleSheetRuleCb,n=e.mirror,o=e.stylesheetManager,i=t.win,s=i.CSSStyleSheet.prototype.insertRule;i.CSSStyleSheet.prototype.insertRule=function(e,t){var i=Be(this,n,o.styleMirror),a=i.id,u=i.styleId;return(a&&-1!==a||u&&-1!==u)&&r({id:a,styleId:u,adds:[{rule:e,index:t}]}),s.apply(this,[e,t])};var a,u,c=i.CSSStyleSheet.prototype.deleteRule;i.CSSStyleSheet.prototype.deleteRule=function(e){var t=Be(this,n,o.styleMirror),i=t.id,s=t.styleId;return(i&&-1!==i||s&&-1!==s)&&r({id:i,styleId:s,removes:[{index:e}]}),c.apply(this,[e])},i.CSSStyleSheet.prototype.replace&&(a=i.CSSStyleSheet.prototype.replace,i.CSSStyleSheet.prototype.replace=function(e){var t=Be(this,n,o.styleMirror),i=t.id,s=t.styleId;return(i&&-1!==i||s&&-1!==s)&&r({id:i,styleId:s,replace:e}),a.apply(this,[e])}),i.CSSStyleSheet.prototype.replaceSync&&(u=i.CSSStyleSheet.prototype.replaceSync,i.CSSStyleSheet.prototype.replaceSync=function(e){var t=Be(this,n,o.styleMirror),i=t.id,s=t.styleId;return(i&&-1!==i||s&&-1!==s)&&r({id:i,styleId:s,replaceSync:e}),u.apply(this,[e])});var l={};Ce?l.CSSGroupingRule=i.CSSGroupingRule:(Ie&&(l.CSSMediaRule=i.CSSMediaRule),Se&&(l.CSSConditionRule=i.CSSConditionRule),ke&&(l.CSSSupportsRule=i.CSSSupportsRule));var f={};return Object.entries(l).forEach((function(e){var t=_(e,2),i=t[0],s=t[1];f[i]={insertRule:s.prototype.insertRule,deleteRule:s.prototype.deleteRule},s.prototype.insertRule=function(e,t){var s=Be(this.parentStyleSheet,n,o.styleMirror),a=s.id,u=s.styleId;return(a&&-1!==a||u&&-1!==u)&&r({id:a,styleId:u,adds:[{rule:e,index:[].concat(U(Fe(this)),[t||0])}]}),f[i].insertRule.apply(this,[e,t])},s.prototype.deleteRule=function(e){var t=Be(this.parentStyleSheet,n,o.styleMirror),s=t.id,a=t.styleId;return(s&&-1!==s||a&&-1!==a)&&r({id:s,styleId:a,removes:[{index:[].concat(U(Fe(this)),[e])}]}),f[i].deleteRule.apply(this,[e])}})),function(){i.CSSStyleSheet.prototype.insertRule=s,i.CSSStyleSheet.prototype.deleteRule=c,a&&(i.CSSStyleSheet.prototype.replace=a),u&&(i.CSSStyleSheet.prototype.replaceSync=u),Object.entries(l).forEach((function(e){var t=_(e,2),r=t[0],n=t[1];n.prototype.insertRule=f[r].insertRule,n.prototype.deleteRule=f[r].deleteRule}))}}function De(e,t){var r,n,o,i=e.mirror,s=e.stylesheetManager,a=null;a="#document"===t.nodeName?i.getId(t):i.getId(t.host);var u="#document"===t.nodeName?null===(r=t.defaultView)||void 0===r?void 0:r.Document:null===(o=null===(n=t.ownerDocument)||void 0===n?void 0:n.defaultView)||void 0===o?void 0:o.ShadowRoot,c=Object.getOwnPropertyDescriptor(null==u?void 0:u.prototype,"adoptedStyleSheets");return null!==a&&-1!==a&&u&&c?(Object.defineProperty(t,"adoptedStyleSheets",{configurable:c.configurable,enumerable:c.enumerable,get:function(){var e;return null===(e=c.get)||void 0===e?void 0:e.call(this)},set:function(e){var t,r=null===(t=c.set)||void 0===t?void 0:t.call(this,e);if(null!==a&&-1!==a)try{s.adoptStyleSheets(e,a)}catch(e){}return r}}),function(){Object.defineProperty(t,"adoptedStyleSheets",{configurable:c.configurable,enumerable:c.enumerable,get:c.get,set:c.set})}):function(){}}function Ue(e,t){var r=e.styleDeclarationCb,n=e.mirror,o=e.ignoreCSSAttributes,i=e.stylesheetManager,s=t.win,a=s.CSSStyleDeclaration.prototype.setProperty;s.CSSStyleDeclaration.prototype.setProperty=function(e,t,s){var u;if(o.has(e))return a.apply(this,[e,t,s]);var c=Be(null===(u=this.parentRule)||void 0===u?void 0:u.parentStyleSheet,n,i.styleMirror),l=c.id,f=c.styleId;return(l&&-1!==l||f&&-1!==f)&&r({id:l,styleId:f,set:{property:e,value:t,priority:s},index:Fe(this.parentRule)}),a.apply(this,[e,t,s])};var u=s.CSSStyleDeclaration.prototype.removeProperty;return s.CSSStyleDeclaration.prototype.removeProperty=function(e){var t;if(o.has(e))return u.apply(this,[e]);var s=Be(null===(t=this.parentRule)||void 0===t?void 0:t.parentStyleSheet,n,i.styleMirror),a=s.id,c=s.styleId;return(a&&-1!==a||c&&-1!==c)&&r({id:a,styleId:c,remove:{property:e},index:Fe(this.parentRule)}),u.apply(this,[e])},function(){s.CSSStyleDeclaration.prototype.setProperty=a,s.CSSStyleDeclaration.prototype.removeProperty=u}}function je(e){var t=e.mediaInteractionCb,r=e.blockClass,n=e.blockSelector,o=e.mirror,i=e.sampling,s=function(e){return K((function(i){var s=xe(i);if(s&&!q(s,r,n,!0)){var a=s.currentTime,u=s.volume,c=s.muted,l=s.playbackRate;t({type:e,id:o.getId(s),currentTime:a,volume:u,muted:c,playbackRate:l})}}),i.media||500)},a=[V("play",s(0)),V("pause",s(1)),V("seeked",s(2)),V("volumechange",s(3)),V("ratechange",s(4))];return function(){a.forEach((function(e){return e()}))}}function We(e){var t=e.fontCb,r=e.doc,n=r.defaultView;if(!n)return function(){};var o=[],i=new WeakMap,s=n.FontFace;n.FontFace=function(e,t,r){var n=new s(e,t,r);return i.set(n,{family:e,buffer:"string"!=typeof t,descriptors:r,fontSource:"string"==typeof t?t:JSON.stringify(Array.from(new Uint8Array(t)))}),n};var a=H(r.fonts,"add",(function(e){return function(r){return setTimeout((function(){var e=i.get(r);e&&(t(e),i.delete(r))}),0),e.apply(this,[r])}}));return o.push((function(){n.FontFace=s})),o.push(a),function(){o.forEach((function(e){return e()}))}}function Ze(e){var t=e.doc,r=e.mirror,n=e.blockClass,o=e.blockSelector,i=e.selectionCb,s=!0,a=function(){var e=t.getSelection();if(!(!e||s&&(null==e?void 0:e.isCollapsed))){s=e.isCollapsed||!1;for(var a=[],u=e.rangeCount||0,c=0;c<u;c++){var l=e.getRangeAt(c),f=l.startContainer,h=l.startOffset,p=l.endContainer,d=l.endOffset;q(f,n,o,!0)||q(p,n,o,!0)||a.push({start:r.getId(f),startOffset:h,end:r.getId(p),endOffset:d})}i({ranges:a})}};return a(),V("selectionchange",a)}function Ge(e,t){var r=e.mutationCb,n=e.mousemoveCb,o=e.mouseInteractionCb,i=e.scrollCb,s=e.viewportResizeCb,a=e.inputCb,u=e.mediaInteractionCb,c=e.styleSheetRuleCb,l=e.styleDeclarationCb,f=e.canvasMutationCb,h=e.fontCb,p=e.selectionCb;e.mutationCb=function(){t.mutation&&t.mutation.apply(t,arguments),r.apply(void 0,arguments)},e.mousemoveCb=function(){t.mousemove&&t.mousemove.apply(t,arguments),n.apply(void 0,arguments)},e.mouseInteractionCb=function(){t.mouseInteraction&&t.mouseInteraction.apply(t,arguments),o.apply(void 0,arguments)},e.scrollCb=function(){t.scroll&&t.scroll.apply(t,arguments),i.apply(void 0,arguments)},e.viewportResizeCb=function(){t.viewportResize&&t.viewportResize.apply(t,arguments),s.apply(void 0,arguments)},e.inputCb=function(){t.input&&t.input.apply(t,arguments),a.apply(void 0,arguments)},e.mediaInteractionCb=function(){t.mediaInteaction&&t.mediaInteaction.apply(t,arguments),u.apply(void 0,arguments)},e.styleSheetRuleCb=function(){t.styleSheetRule&&t.styleSheetRule.apply(t,arguments),c.apply(void 0,arguments)},e.styleDeclarationCb=function(){t.styleDeclaration&&t.styleDeclaration.apply(t,arguments),l.apply(void 0,arguments)},e.canvasMutationCb=function(){t.canvasMutation&&t.canvasMutation.apply(t,arguments),f.apply(void 0,arguments)},e.fontCb=function(){t.font&&t.font.apply(t,arguments),h.apply(void 0,arguments)},e.selectionCb=function(){t.selection&&t.selection.apply(t,arguments),p.apply(void 0,arguments)}}function Ve(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.doc.defaultView;if(!n)return function(){};Ge(e,r);var o,i=Ae(e,e.doc),s=Oe(e),a=Re(e),u=Ee(e),c=Me(e),l=Pe(e),f=je(e),h=_e(e,{win:n}),p=De(e,e.doc),d=Ue(e,{win:n}),v=e.collectFonts?We(e):function(){},g=Ze(e),m=[],y=t(e.plugins);try{for(y.s();!(o=y.n()).done;){var w=o.value;m.push(w.observer(w.callback,n,w.options))}}catch(e){y.e(e)}finally{y.f()}return function(){be.forEach((function(e){return e.reset()})),i.disconnect(),s(),a(),u(),c(),l(),f(),h(),p(),d(),v(),g(),m.forEach((function(e){return e()}))}}var Ye=function(){function e(t){j(this,e),this.generateIdFn=t,this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap}return Z(e,[{key:"getId",value:function(e,t,r,n){var o=r||this.getIdToRemoteIdMap(e),i=n||this.getRemoteIdToIdMap(e),s=o.get(t);return s||(s=this.generateIdFn(),o.set(t,s),i.set(s,t)),s}},{key:"getIds",value:function(e,t){var r=this,n=this.getIdToRemoteIdMap(e),o=this.getRemoteIdToIdMap(e);return t.map((function(t){return r.getId(e,t,n,o)}))}},{key:"getRemoteId",value:function(e,t,r){var n=r||this.getRemoteIdToIdMap(e);if("number"!=typeof t)return t;var o=n.get(t);return o||-1}},{key:"getRemoteIds",value:function(e,t){var r=this,n=this.getRemoteIdToIdMap(e);return t.map((function(t){return r.getRemoteId(e,t,n)}))}},{key:"reset",value:function(e){if(!e)return this.iframeIdToRemoteIdMap=new WeakMap,void(this.iframeRemoteIdToIdMap=new WeakMap);this.iframeIdToRemoteIdMap.delete(e),this.iframeRemoteIdToIdMap.delete(e)}},{key:"getIdToRemoteIdMap",value:function(e){var t=this.iframeIdToRemoteIdMap.get(e);return t||(t=new Map,this.iframeIdToRemoteIdMap.set(e,t)),t}},{key:"getRemoteIdToIdMap",value:function(e){var t=this.iframeRemoteIdToIdMap.get(e);return t||(t=new Map,this.iframeRemoteIdToIdMap.set(e,t)),t}}]),e}(),ze=function(){function e(t){j(this,e),this.iframes=new WeakMap,this.crossOriginIframeMap=new WeakMap,this.crossOriginIframeMirror=new Ye(w),this.mutationCb=t.mutationCb,this.wrappedEmit=t.wrappedEmit,this.stylesheetManager=t.stylesheetManager,this.recordCrossOriginIframes=t.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new Ye(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=t.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}return Z(e,[{key:"addIframe",value:function(e){this.iframes.set(e,!0),e.contentWindow&&this.crossOriginIframeMap.set(e.contentWindow,e)}},{key:"addLoadListener",value:function(e){this.loadListener=e}},{key:"attachIframe",value:function(e,t){var r;this.mutationCb({adds:[{parentId:this.mirror.getId(e),nextId:null,node:t}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),null===(r=this.loadListener)||void 0===r||r.call(this,e),e.contentDocument&&e.contentDocument.adoptedStyleSheets&&e.contentDocument.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(e.contentDocument.adoptedStyleSheets,this.mirror.getId(e.contentDocument))}},{key:"handleMessage",value:function(e){if("rrweb"===e.data.type){if(!e.source)return;var t=this.crossOriginIframeMap.get(e.source);if(!t)return;var r=this.transformCrossOriginEvent(t,e.data.event);r&&this.wrappedEmit(r,e.data.isCheckout)}}},{key:"transformCrossOriginEvent",value:function(e,t){var r,n=this;switch(t.type){case ae.FullSnapshot:return this.crossOriginIframeMirror.reset(e),this.crossOriginIframeStyleMirror.reset(e),this.replaceIdOnNode(t.data.node,e),{timestamp:t.timestamp,type:ae.IncrementalSnapshot,data:{source:ue.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:t.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}};case ae.Meta:case ae.Load:case ae.DomContentLoaded:return!1;case ae.Plugin:return t;case ae.Custom:return this.replaceIds(t.data.payload,e,["id","parentId","previousId","nextId"]),t;case ae.IncrementalSnapshot:switch(t.data.source){case ue.Mutation:return t.data.adds.forEach((function(t){n.replaceIds(t,e,["parentId","nextId","previousId"]),n.replaceIdOnNode(t.node,e)})),t.data.removes.forEach((function(t){n.replaceIds(t,e,["parentId","id"])})),t.data.attributes.forEach((function(t){n.replaceIds(t,e,["id"])})),t.data.texts.forEach((function(t){n.replaceIds(t,e,["id"])})),t;case ue.Drag:case ue.TouchMove:case ue.MouseMove:return t.data.positions.forEach((function(t){n.replaceIds(t,e,["id"])})),t;case ue.ViewportResize:return!1;case ue.MediaInteraction:case ue.MouseInteraction:case ue.Scroll:case ue.CanvasMutation:case ue.Input:return this.replaceIds(t.data,e,["id"]),t;case ue.StyleSheetRule:case ue.StyleDeclaration:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleId"]),t;case ue.Font:return t;case ue.Selection:return t.data.ranges.forEach((function(t){n.replaceIds(t,e,["start","end"])})),t;case ue.AdoptedStyleSheet:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleIds"]),null===(r=t.data.styles)||void 0===r||r.forEach((function(t){n.replaceStyleIds(t,e,["styleId"])})),t}}}},{key:"replace",value:function(e,r,n,o){var i,s=t(o);try{for(s.s();!(i=s.n()).done;){var a=i.value;(Array.isArray(r[a])||"number"==typeof r[a])&&(Array.isArray(r[a])?r[a]=e.getIds(n,r[a]):r[a]=e.getId(n,r[a]))}}catch(e){s.e(e)}finally{s.f()}return r}},{key:"replaceIds",value:function(e,t,r){return this.replace(this.crossOriginIframeMirror,e,t,r)}},{key:"replaceStyleIds",value:function(e,t,r){return this.replace(this.crossOriginIframeStyleMirror,e,t,r)}},{key:"replaceIdOnNode",value:function(e,t){var r=this;this.replaceIds(e,t,["id"]),"childNodes"in e&&e.childNodes.forEach((function(e){r.replaceIdOnNode(e,t)}))}}]),e}(),Ke=function(){function e(t){j(this,e),this.shadowDoms=new WeakSet,this.restorePatches=[],this.mutationCb=t.mutationCb,this.scrollCb=t.scrollCb,this.bypassOptions=t.bypassOptions,this.mirror=t.mirror;var r=this;this.restorePatches.push(H(Element.prototype,"attachShadow",(function(e){return function(t){var n=e.call(this,t);return this.shadowRoot&&r.addShadowRoot(this.shadowRoot,this.ownerDocument),n}})))}return Z(e,[{key:"addShadowRoot",value:function(e,t){var r=this;c(e)&&(this.shadowDoms.has(e)||(this.shadowDoms.add(e),Ae(Object.assign(Object.assign({},this.bypassOptions),{doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this}),e),Ee(Object.assign(Object.assign({},this.bypassOptions),{scrollCb:this.scrollCb,doc:e,mirror:this.mirror})),setTimeout((function(){e.adoptedStyleSheets&&e.adoptedStyleSheets.length>0&&r.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,r.mirror.getId(e.host)),De({mirror:r.mirror,stylesheetManager:r.bypassOptions.stylesheetManager},e)}),0)))}},{key:"observeAttachShadow",value:function(e){if(e.contentWindow){var t=this;this.restorePatches.push(H(e.contentWindow.HTMLElement.prototype,"attachShadow",(function(r){return function(n){var o=r.call(this,n);return this.shadowRoot&&t.addShadowRoot(this.shadowRoot,e.contentDocument),o}})))}}},{key:"reset",value:function(){this.restorePatches.forEach((function(e){return e()})),this.shadowDoms=new WeakSet}}]),e}(),Je=r(177),He=r.n(Je);function Xe(e,t,r,n){return new(r||(r=Promise))((function(o,i){function s(e){try{u(n.next(e))}catch(e){i(e)}}function a(e){try{u(n.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}u((n=n.apply(e,t||[])).next())}))}for(var Qe="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",qe="undefined"==typeof Uint8Array?[]:new Uint8Array(256),$e=0;$e<Qe.length;$e++)qe[Qe.charCodeAt($e)]=$e;var et=new Map;var tt=function(e,t,r){if(e&&(ot(e,t)||"object"===i(e))){var n=function(e,t){var r=et.get(e);return r||(r=new Map,et.set(e,r)),r.has(t)||r.set(t,[]),r.get(t)}(r,e.constructor.name),o=n.indexOf(e);return-1===o&&(o=n.length,n.push(e)),o}};function rt(e,t,r){if(e instanceof Array)return e.map((function(e){return rt(e,t,r)}));if(null===e)return e;if(e instanceof Float32Array||e instanceof Float64Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Uint8Array||e instanceof Uint16Array||e instanceof Int16Array||e instanceof Int8Array||e instanceof Uint8ClampedArray)return{rr_type:e.constructor.name,args:[Object.values(e)]};if(e instanceof ArrayBuffer){var n=e.constructor.name,o=function(e){var t,r=new Uint8Array(e),n=r.length,o="";for(t=0;t<n;t+=3)o+=Qe[r[t]>>2],o+=Qe[(3&r[t])<<4|r[t+1]>>4],o+=Qe[(15&r[t+1])<<2|r[t+2]>>6],o+=Qe[63&r[t+2]];return n%3==2?o=o.substring(0,o.length-1)+"=":n%3==1&&(o=o.substring(0,o.length-2)+"=="),o}(e);return{rr_type:n,base64:o}}if(e instanceof DataView)return{rr_type:e.constructor.name,args:[rt(e.buffer,t,r),e.byteOffset,e.byteLength]};if(e instanceof HTMLImageElement)return{rr_type:e.constructor.name,src:e.src};if(e instanceof HTMLCanvasElement){return{rr_type:"HTMLImageElement",src:e.toDataURL()}}return e instanceof ImageData?{rr_type:e.constructor.name,args:[rt(e.data,t,r),e.width,e.height]}:ot(e,t)||"object"===i(e)?{rr_type:e.constructor.name,index:tt(e,t,r)}:e}var nt=function(e,t,r){return U(e).map((function(e){return rt(e,t,r)}))},ot=function(e,t){var r=["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter((function(e){return"function"==typeof t[e]}));return Boolean(r.find((function(r){return e instanceof t[r]})))};function it(e,t,r){var n=[];try{var o=H(e.HTMLCanvasElement.prototype,"getContext",(function(e){return function(n){q(this,t,r,!0)||"__context"in this||(this.__context=n);for(var o=arguments.length,i=new Array(o>1?o-1:0),s=1;s<o;s++)i[s-1]=arguments[s];return e.apply(this,[n].concat(i))}}));n.push(o)}catch(e){console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return function(){n.forEach((function(e){return e()}))}}function st(e,r,n,o,i,s,a){var u,c=[],l=Object.getOwnPropertyNames(e),f=t(l);try{var h=function(){var t=u.value;if(["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(t))return 0;try{if("function"!=typeof e[t])return 0;var s=H(e,t,(function(e){return function(){for(var s=arguments.length,u=new Array(s),c=0;c<s;c++)u[c]=arguments[c];var l=e.apply(this,u);if(tt(l,a,this),!q(this.canvas,o,i,!0)){var f=nt([].concat(u),a,this),h={type:r,property:t,args:f};n(this.canvas,h)}return l}}));c.push(s)}catch(o){var l=J(e,t,{set:function(e){n(this.canvas,{type:r,property:t,args:[e],setter:!0})}});c.push(l)}};for(f.s();!(u=f.n()).done;)h()}catch(e){f.e(e)}finally{f.f()}return c}var at=null;try{var ut="undefined"!=typeof module&&"function"==typeof module.require&&module.require("worker_threads")||"function"==typeof require&&require("worker_threads")||"function"==typeof require&&require("worker_threads");at=ut.Worker}catch(e){}var ct=r(579).lW;function lt(e,t,r){var n=void 0===t?null:t,o=function(e,t){return ct.from(e,"base64").toString(t?"utf16":"utf8")}(e,void 0!==r&&r),i=o.indexOf("\n",10)+1,s=o.substring(i)+(n?"//# sourceMappingURL="+n:"");return function(e){return new at(s,Object.assign({},e,{eval:!0}))}}function ft(e,t,r){var n=void 0===t?null:t,o=function(e,t){var r=atob(e);if(t){for(var n=new Uint8Array(r.length),o=0,i=r.length;o<i;++o)n[o]=r.charCodeAt(o);return String.fromCharCode.apply(null,new Uint16Array(n.buffer))}return r}(e,void 0!==r&&r),i=o.indexOf("\n",10)+1,s=o.substring(i)+(n?"//# sourceMappingURL="+n:""),a=new Blob([s],{type:"application/javascript"});return URL.createObjectURL(a)}var ht=r(256),pt="[object process]"===Object.prototype.toString.call(void 0!==ht?ht:0);var dt,vt,gt,mt,yt,wt,bt=(dt="Lyogcm9sbHVwLXBsdWdpbi13ZWItd29ya2VyLWxvYWRlciAqLwooZnVuY3Rpb24gKCkgewogICAgJ3VzZSBzdHJpY3QnOwoKICAgIC8qISAqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKg0KICAgIENvcHlyaWdodCAoYykgTWljcm9zb2Z0IENvcnBvcmF0aW9uLg0KDQogICAgUGVybWlzc2lvbiB0byB1c2UsIGNvcHksIG1vZGlmeSwgYW5kL29yIGRpc3RyaWJ1dGUgdGhpcyBzb2Z0d2FyZSBmb3IgYW55DQogICAgcHVycG9zZSB3aXRoIG9yIHdpdGhvdXQgZmVlIGlzIGhlcmVieSBncmFudGVkLg0KDQogICAgVEhFIFNPRlRXQVJFIElTIFBST1ZJREVEICJBUyBJUyIgQU5EIFRIRSBBVVRIT1IgRElTQ0xBSU1TIEFMTCBXQVJSQU5USUVTIFdJVEgNCiAgICBSRUdBUkQgVE8gVEhJUyBTT0ZUV0FSRSBJTkNMVURJTkcgQUxMIElNUExJRUQgV0FSUkFOVElFUyBPRiBNRVJDSEFOVEFCSUxJVFkNCiAgICBBTkQgRklUTkVTUy4gSU4gTk8gRVZFTlQgU0hBTEwgVEhFIEFVVEhPUiBCRSBMSUFCTEUgRk9SIEFOWSBTUEVDSUFMLCBESVJFQ1QsDQogICAgSU5ESVJFQ1QsIE9SIENPTlNFUVVFTlRJQUwgREFNQUdFUyBPUiBBTlkgREFNQUdFUyBXSEFUU09FVkVSIFJFU1VMVElORyBGUk9NDQogICAgTE9TUyBPRiBVU0UsIERBVEEgT1IgUFJPRklUUywgV0hFVEhFUiBJTiBBTiBBQ1RJT04gT0YgQ09OVFJBQ1QsIE5FR0xJR0VOQ0UgT1INCiAgICBPVEhFUiBUT1JUSU9VUyBBQ1RJT04sIEFSSVNJTkcgT1VUIE9GIE9SIElOIENPTk5FQ1RJT04gV0lUSCBUSEUgVVNFIE9SDQogICAgUEVSRk9STUFOQ0UgT0YgVEhJUyBTT0ZUV0FSRS4NCiAgICAqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKiAqLw0KDQogICAgZnVuY3Rpb24gX19hd2FpdGVyKHRoaXNBcmcsIF9hcmd1bWVudHMsIFAsIGdlbmVyYXRvcikgew0KICAgICAgICBmdW5jdGlvbiBhZG9wdCh2YWx1ZSkgeyByZXR1cm4gdmFsdWUgaW5zdGFuY2VvZiBQID8gdmFsdWUgOiBuZXcgUChmdW5jdGlvbiAocmVzb2x2ZSkgeyByZXNvbHZlKHZhbHVlKTsgfSk7IH0NCiAgICAgICAgcmV0dXJuIG5ldyAoUCB8fCAoUCA9IFByb21pc2UpKShmdW5jdGlvbiAocmVzb2x2ZSwgcmVqZWN0KSB7DQogICAgICAgICAgICBmdW5jdGlvbiBmdWxmaWxsZWQodmFsdWUpIHsgdHJ5IHsgc3RlcChnZW5lcmF0b3IubmV4dCh2YWx1ZSkpOyB9IGNhdGNoIChlKSB7IHJlamVjdChlKTsgfSB9DQogICAgICAgICAgICBmdW5jdGlvbiByZWplY3RlZCh2YWx1ZSkgeyB0cnkgeyBzdGVwKGdlbmVyYXRvclsidGhyb3ciXSh2YWx1ZSkpOyB9IGNhdGNoIChlKSB7IHJlamVjdChlKTsgfSB9DQogICAgICAgICAgICBmdW5jdGlvbiBzdGVwKHJlc3VsdCkgeyByZXN1bHQuZG9uZSA/IHJlc29sdmUocmVzdWx0LnZhbHVlKSA6IGFkb3B0KHJlc3VsdC52YWx1ZSkudGhlbihmdWxmaWxsZWQsIHJlamVjdGVkKTsgfQ0KICAgICAgICAgICAgc3RlcCgoZ2VuZXJhdG9yID0gZ2VuZXJhdG9yLmFwcGx5KHRoaXNBcmcsIF9hcmd1bWVudHMgfHwgW10pKS5uZXh0KCkpOw0KICAgICAgICB9KTsNCiAgICB9CgogICAgLyoKICAgICAqIGJhc2U2NC1hcnJheWJ1ZmZlciAxLjAuMSA8aHR0cHM6Ly9naXRodWIuY29tL25pa2xhc3ZoL2Jhc2U2NC1hcnJheWJ1ZmZlcj4KICAgICAqIENvcHlyaWdodCAoYykgMjAyMSBOaWtsYXMgdm9uIEhlcnR6ZW4gPGh0dHBzOi8vaGVydHplbi5jb20+CiAgICAgKiBSZWxlYXNlZCB1bmRlciBNSVQgTGljZW5zZQogICAgICovCiAgICB2YXIgY2hhcnMgPSAnQUJDREVGR0hJSktMTU5PUFFSU1RVVldYWVphYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5ejAxMjM0NTY3ODkrLyc7CiAgICAvLyBVc2UgYSBsb29rdXAgdGFibGUgdG8gZmluZCB0aGUgaW5kZXguCiAgICB2YXIgbG9va3VwID0gdHlwZW9mIFVpbnQ4QXJyYXkgPT09ICd1bmRlZmluZWQnID8gW10gOiBuZXcgVWludDhBcnJheSgyNTYpOwogICAgZm9yICh2YXIgaSA9IDA7IGkgPCBjaGFycy5sZW5ndGg7IGkrKykgewogICAgICAgIGxvb2t1cFtjaGFycy5jaGFyQ29kZUF0KGkpXSA9IGk7CiAgICB9CiAgICB2YXIgZW5jb2RlID0gZnVuY3Rpb24gKGFycmF5YnVmZmVyKSB7CiAgICAgICAgdmFyIGJ5dGVzID0gbmV3IFVpbnQ4QXJyYXkoYXJyYXlidWZmZXIpLCBpLCBsZW4gPSBieXRlcy5sZW5ndGgsIGJhc2U2NCA9ICcnOwogICAgICAgIGZvciAoaSA9IDA7IGkgPCBsZW47IGkgKz0gMykgewogICAgICAgICAgICBiYXNlNjQgKz0gY2hhcnNbYnl0ZXNbaV0gPj4gMl07CiAgICAgICAgICAgIGJhc2U2NCArPSBjaGFyc1soKGJ5dGVzW2ldICYgMykgPDwgNCkgfCAoYnl0ZXNbaSArIDFdID4+IDQpXTsKICAgICAgICAgICAgYmFzZTY0ICs9IGNoYXJzWygoYnl0ZXNbaSArIDFdICYgMTUpIDw8IDIpIHwgKGJ5dGVzW2kgKyAyXSA+PiA2KV07CiAgICAgICAgICAgIGJhc2U2NCArPSBjaGFyc1tieXRlc1tpICsgMl0gJiA2M107CiAgICAgICAgfQogICAgICAgIGlmIChsZW4gJSAzID09PSAyKSB7CiAgICAgICAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDEpICsgJz0nOwogICAgICAgIH0KICAgICAgICBlbHNlIGlmIChsZW4gJSAzID09PSAxKSB7CiAgICAgICAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDIpICsgJz09JzsKICAgICAgICB9CiAgICAgICAgcmV0dXJuIGJhc2U2NDsKICAgIH07CgogICAgY29uc3QgbGFzdEJsb2JNYXAgPSBuZXcgTWFwKCk7DQogICAgY29uc3QgdHJhbnNwYXJlbnRCbG9iTWFwID0gbmV3IE1hcCgpOw0KICAgIGZ1bmN0aW9uIGdldFRyYW5zcGFyZW50QmxvYkZvcih3aWR0aCwgaGVpZ2h0LCBkYXRhVVJMT3B0aW9ucykgew0KICAgICAgICByZXR1cm4gX19hd2FpdGVyKHRoaXMsIHZvaWQgMCwgdm9pZCAwLCBmdW5jdGlvbiogKCkgew0KICAgICAgICAgICAgY29uc3QgaWQgPSBgJHt3aWR0aH0tJHtoZWlnaHR9YDsNCiAgICAgICAgICAgIGlmICgnT2Zmc2NyZWVuQ2FudmFzJyBpbiBnbG9iYWxUaGlzKSB7DQogICAgICAgICAgICAgICAgaWYgKHRyYW5zcGFyZW50QmxvYk1hcC5oYXMoaWQpKQ0KICAgICAgICAgICAgICAgICAgICByZXR1cm4gdHJhbnNwYXJlbnRCbG9iTWFwLmdldChpZCk7DQogICAgICAgICAgICAgICAgY29uc3Qgb2Zmc2NyZWVuID0gbmV3IE9mZnNjcmVlbkNhbnZhcyh3aWR0aCwgaGVpZ2h0KTsNCiAgICAgICAgICAgICAgICBvZmZzY3JlZW4uZ2V0Q29udGV4dCgnMmQnKTsNCiAgICAgICAgICAgICAgICBjb25zdCBibG9iID0geWllbGQgb2Zmc2NyZWVuLmNvbnZlcnRUb0Jsb2IoZGF0YVVSTE9wdGlvbnMpOw0KICAgICAgICAgICAgICAgIGNvbnN0IGFycmF5QnVmZmVyID0geWllbGQgYmxvYi5hcnJheUJ1ZmZlcigpOw0KICAgICAgICAgICAgICAgIGNvbnN0IGJhc2U2NCA9IGVuY29kZShhcnJheUJ1ZmZlcik7DQogICAgICAgICAgICAgICAgdHJhbnNwYXJlbnRCbG9iTWFwLnNldChpZCwgYmFzZTY0KTsNCiAgICAgICAgICAgICAgICByZXR1cm4gYmFzZTY0Ow0KICAgICAgICAgICAgfQ0KICAgICAgICAgICAgZWxzZSB7DQogICAgICAgICAgICAgICAgcmV0dXJuICcnOw0KICAgICAgICAgICAgfQ0KICAgICAgICB9KTsNCiAgICB9DQogICAgY29uc3Qgd29ya2VyID0gc2VsZjsNCiAgICB3b3JrZXIub25tZXNzYWdlID0gZnVuY3Rpb24gKGUpIHsNCiAgICAgICAgcmV0dXJuIF9fYXdhaXRlcih0aGlzLCB2b2lkIDAsIHZvaWQgMCwgZnVuY3Rpb24qICgpIHsNCiAgICAgICAgICAgIGlmICgnT2Zmc2NyZWVuQ2FudmFzJyBpbiBnbG9iYWxUaGlzKSB7DQogICAgICAgICAgICAgICAgY29uc3QgeyBpZCwgYml0bWFwLCB3aWR0aCwgaGVpZ2h0LCBkYXRhVVJMT3B0aW9ucyB9ID0gZS5kYXRhOw0KICAgICAgICAgICAgICAgIGNvbnN0IHRyYW5zcGFyZW50QmFzZTY0ID0gZ2V0VHJhbnNwYXJlbnRCbG9iRm9yKHdpZHRoLCBoZWlnaHQsIGRhdGFVUkxPcHRpb25zKTsNCiAgICAgICAgICAgICAgICBjb25zdCBvZmZzY3JlZW4gPSBuZXcgT2Zmc2NyZWVuQ2FudmFzKHdpZHRoLCBoZWlnaHQpOw0KICAgICAgICAgICAgICAgIGNvbnN0IGN0eCA9IG9mZnNjcmVlbi5nZXRDb250ZXh0KCcyZCcpOw0KICAgICAgICAgICAgICAgIGN0eC5kcmF3SW1hZ2UoYml0bWFwLCAwLCAwKTsNCiAgICAgICAgICAgICAgICBiaXRtYXAuY2xvc2UoKTsNCiAgICAgICAgICAgICAgICBjb25zdCBibG9iID0geWllbGQgb2Zmc2NyZWVuLmNvbnZlcnRUb0Jsb2IoZGF0YVVSTE9wdGlvbnMpOw0KICAgICAgICAgICAgICAgIGNvbnN0IHR5cGUgPSBibG9iLnR5cGU7DQogICAgICAgICAgICAgICAgY29uc3QgYXJyYXlCdWZmZXIgPSB5aWVsZCBibG9iLmFycmF5QnVmZmVyKCk7DQogICAgICAgICAgICAgICAgY29uc3QgYmFzZTY0ID0gZW5jb2RlKGFycmF5QnVmZmVyKTsNCiAgICAgICAgICAgICAgICBpZiAoIWxhc3RCbG9iTWFwLmhhcyhpZCkgJiYgKHlpZWxkIHRyYW5zcGFyZW50QmFzZTY0KSA9PT0gYmFzZTY0KSB7DQogICAgICAgICAgICAgICAgICAgIGxhc3RCbG9iTWFwLnNldChpZCwgYmFzZTY0KTsNCiAgICAgICAgICAgICAgICAgICAgcmV0dXJuIHdvcmtlci5wb3N0TWVzc2FnZSh7IGlkIH0pOw0KICAgICAgICAgICAgICAgIH0NCiAgICAgICAgICAgICAgICBpZiAobGFzdEJsb2JNYXAuZ2V0KGlkKSA9PT0gYmFzZTY0KQ0KICAgICAgICAgICAgICAgICAgICByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQgfSk7DQogICAgICAgICAgICAgICAgd29ya2VyLnBvc3RNZXNzYWdlKHsNCiAgICAgICAgICAgICAgICAgICAgaWQsDQogICAgICAgICAgICAgICAgICAgIHR5cGUsDQogICAgICAgICAgICAgICAgICAgIGJhc2U2NCwNCiAgICAgICAgICAgICAgICAgICAgd2lkdGgsDQogICAgICAgICAgICAgICAgICAgIGhlaWdodCwNCiAgICAgICAgICAgICAgICB9KTsNCiAgICAgICAgICAgICAgICBsYXN0QmxvYk1hcC5zZXQoaWQsIGJhc2U2NCk7DQogICAgICAgICAgICB9DQogICAgICAgICAgICBlbHNlIHsNCiAgICAgICAgICAgICAgICByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQ6IGUuZGF0YS5pZCB9KTsNCiAgICAgICAgICAgIH0NCiAgICAgICAgfSk7DQogICAgfTsKCn0pKCk7Cgo=",vt=null,gt=!1,pt?lt(dt,vt,gt):function(e,t,r){var n;return function(o){return n=n||ft(e,t,r),new Worker(n,o)}}(dt,vt,gt)),Ct=function(){function e(t){var r=this;j(this,e),this.pendingCanvasMutations=new Map,this.rafStamps={latestId:0,invokeId:null},this.frozen=!1,this.locked=!1,this.processMutation=function(e,t){!(r.rafStamps.invokeId&&r.rafStamps.latestId!==r.rafStamps.invokeId)&&r.rafStamps.invokeId||(r.rafStamps.invokeId=r.rafStamps.latestId),r.pendingCanvasMutations.has(e)||r.pendingCanvasMutations.set(e,[]),r.pendingCanvasMutations.get(e).push(t)};var n=t.sampling,o=void 0===n?"all":n,i=t.win,s=t.blockClass,a=t.blockSelector,u=t.recordCanvas,c=t.dataURLOptions;this.mutationCb=t.mutationCb,this.mirror=t.mirror,u&&"all"===o&&this.initCanvasMutationObserver(i,s,a),u&&"number"==typeof o&&this.initCanvasFPSObserver(o,i,s,a,{dataURLOptions:c})}return Z(e,[{key:"reset",value:function(){this.pendingCanvasMutations.clear(),this.resetObservers&&this.resetObservers()}},{key:"freeze",value:function(){this.frozen=!0}},{key:"unfreeze",value:function(){this.frozen=!1}},{key:"lock",value:function(){this.locked=!0}},{key:"unlock",value:function(){this.locked=!1}},{key:"initCanvasFPSObserver",value:function(e,t,r,n,o){var i=this,s=it(t,r,n),a=new Map,u=new bt;u.onmessage=function(e){var t=e.data.id;if(a.set(t,!1),"base64"in e.data){var r=e.data,n=r.base64,o=r.type,s=r.width,u=r.height;i.mutationCb({id:t,type:le["2D"],commands:[{property:"clearRect",args:[0,0,s,u]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:n}],type:o}]},0,0]}]})}};var c,l=1e3/e,f=0;c=requestAnimationFrame((function e(s){var h;f&&s-f<l?c=requestAnimationFrame(e):(f=s,(h=[],t.document.querySelectorAll("canvas").forEach((function(e){q(e,r,n,!0)||h.push(e)})),h).forEach((function(e){return Xe(i,void 0,void 0,Je().mark((function t(){var r,n,i,s;return Je().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=this.mirror.getId(e),!a.get(n)){t.next=3;break}return t.abrupt("return");case 3:return a.set(n,!0),["webgl","webgl2"].includes(e.__context)&&(i=e.getContext(e.__context),!1===(null===(r=null==i?void 0:i.getContextAttributes())||void 0===r?void 0:r.preserveDrawingBuffer)&&(null==i||i.clear(i.COLOR_BUFFER_BIT))),t.next=7,createImageBitmap(e);case 7:s=t.sent,u.postMessage({id:n,bitmap:s,width:e.width,height:e.height,dataURLOptions:o.dataURLOptions},[s]);case 9:case"end":return t.stop()}}),t,this)})))})),c=requestAnimationFrame(e))})),this.resetObservers=function(){s(),cancelAnimationFrame(c)}}},{key:"initCanvasMutationObserver",value:function(e,r,n){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();var o=it(e,r,n),i=function(e,r,n,o){var i,s=[],a=Object.getOwnPropertyNames(r.CanvasRenderingContext2D.prototype),u=t(a);try{var c=function(){var t=i.value;try{if("function"!=typeof r.CanvasRenderingContext2D.prototype[t])return 1;var a=H(r.CanvasRenderingContext2D.prototype,t,(function(i){return function(){for(var s=this,a=arguments.length,u=new Array(a),c=0;c<a;c++)u[c]=arguments[c];return q(this.canvas,n,o,!0)||setTimeout((function(){var n=nt([].concat(u),r,s);e(s.canvas,{type:le["2D"],property:t,args:n})}),0),i.apply(this,u)}}));s.push(a)}catch(n){var u=J(r.CanvasRenderingContext2D.prototype,t,{set:function(r){e(this.canvas,{type:le["2D"],property:t,args:[r],setter:!0})}});s.push(u)}};for(u.s();!(i=u.n()).done;)c()}catch(e){u.e(e)}finally{u.f()}return function(){s.forEach((function(e){return e()}))}}(this.processMutation.bind(this),e,r,n),s=function(e,t,r,n,o){var i=[];return i.push.apply(i,U(st(t.WebGLRenderingContext.prototype,le.WebGL,e,r,n,0,t))),void 0!==t.WebGL2RenderingContext&&i.push.apply(i,U(st(t.WebGL2RenderingContext.prototype,le.WebGL2,e,r,n,0,t))),function(){i.forEach((function(e){return e()}))}}(this.processMutation.bind(this),e,r,n,this.mirror);this.resetObservers=function(){o(),i(),s()}}},{key:"startPendingCanvasMutationFlusher",value:function(){var e=this;requestAnimationFrame((function(){return e.flushPendingCanvasMutations()}))}},{key:"startRAFTimestamping",value:function(){var e=this;requestAnimationFrame((function t(r){e.rafStamps.latestId=r,requestAnimationFrame(t)}))}},{key:"flushPendingCanvasMutations",value:function(){var e=this;this.pendingCanvasMutations.forEach((function(t,r){var n=e.mirror.getId(r);e.flushPendingCanvasMutationFor(r,n)})),requestAnimationFrame((function(){return e.flushPendingCanvasMutations()}))}},{key:"flushPendingCanvasMutationFor",value:function(e,t){if(!this.frozen&&!this.locked){var r=this.pendingCanvasMutations.get(e);if(r&&-1!==t){var n=r.map((function(e){var t=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}(e,["type"]);return t})),o=r[0].type;this.mutationCb({id:t,type:o,commands:n}),this.pendingCanvasMutations.delete(e)}}}}]),e}(),It=function(){function e(t){j(this,e),this.trackedLinkElements=new WeakSet,this.styleMirror=new se,this.mutationCb=t.mutationCb,this.adoptedStyleSheetCb=t.adoptedStyleSheetCb}return Z(e,[{key:"attachLinkElement",value:function(e,t){"_cssText"in t.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:t.attributes}]}),this.trackLinkElement(e)}},{key:"trackLinkElement",value:function(e){this.trackedLinkElements.has(e)||(this.trackedLinkElements.add(e),this.trackStylesheetInLinkElement(e))}},{key:"adoptStyleSheets",value:function(e,r){if(0!==e.length){var n,o={id:r,styleIds:[]},i=[],s=t(e);try{for(s.s();!(n=s.n()).done;){var a=n.value,u=void 0;if(this.styleMirror.has(a))u=this.styleMirror.getId(a);else{u=this.styleMirror.add(a);var c=Array.from(a.rules||CSSRule);i.push({styleId:u,rules:c.map((function(e,t){return{rule:f(e),index:t}}))})}o.styleIds.push(u)}}catch(e){s.e(e)}finally{s.f()}i.length>0&&(o.styles=i),this.adoptedStyleSheetCb(o)}}},{key:"reset",value:function(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}},{key:"trackStylesheetInLinkElement",value:function(e){}}]),e}();function kt(e){return Object.assign(Object.assign({},e),{timestamp:Date.now()})}var St=!1,xt=new h;function At(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=e.emit,n=e.checkoutEveryNms,o=e.checkoutEveryNth,i=e.blockClass,s=void 0===i?"rr-block":i,a=e.blockSelector,u=void 0===a?null:a,c=e.ignoreClass,l=void 0===c?"rr-ignore":c,f=e.maskTextClass,h=void 0===f?"rr-mask":f,p=e.maskTextSelector,d=void 0===p?null:p,v=e.inlineStylesheet,g=void 0===v||v,m=e.maskAllInputs,y=e.maskInputOptions,w=e.slimDOMOptions,b=e.maskInputFn,C=e.maskTextFn,I=e.hooks,k=e.packFn,S=e.sampling,x=void 0===S?{}:S,A=e.dataURLOptions,O=void 0===A?{}:A,R=e.mousemoveWait,E=e.recordCanvas,M=void 0!==E&&E,N=e.recordCrossOriginIframes,T=void 0!==N&&N,L=e.userTriggeredOnInput,P=void 0!==L&&L,B=e.collectFonts,_=void 0!==B&&B,D=e.inlineImages,U=void 0!==D&&D,j=e.plugins,W=e.keepIframeSrcFn,Z=void 0===W?function(){return!1}:W,G=e.ignoreCSSAttributes,Y=void 0===G?new Set([]):G,z=!T||window.parent===window,K=!1;if(!z)try{window.parent.document,K=!1}catch(e){K=!0}if(z&&!r)throw new Error("emit function is required");void 0!==R&&void 0===x.mousemove&&(x.mousemove=R),xt.reset();var J,H=!0===m?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:void 0!==y?y:{password:!0},q=!0===w||"all"===w?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:"all"===w,headMetaDescKeywords:"all"===w}:w||{};re();var $=0,ee=function(e){var r,n=t(j||[]);try{for(n.s();!(r=n.n()).done;){var o=r.value;o.eventProcessor&&(e=o.eventProcessor(e))}}catch(e){n.e(e)}finally{n.f()}return k&&(e=k(e)),e};mt=function(e,t){var i;if(!(null===(i=be[0])||void 0===i?void 0:i.isFrozen())||e.type===ae.FullSnapshot||e.type===ae.IncrementalSnapshot&&e.data.source===ue.Mutation||be.forEach((function(e){return e.unfreeze()})),z)null==r||r(ee(e),t);else if(K){var s={type:"rrweb",event:ee(e),isCheckout:t};window.parent.postMessage(s,"*")}if(e.type===ae.FullSnapshot)J=e,$=0;else if(e.type===ae.IncrementalSnapshot){if(e.data.source===ue.Mutation&&e.data.isAttachIframe)return;$++;var a=o&&$>=o,u=n&&e.timestamp-J.timestamp>n;(a||u)&&yt(!0)}};var te,se=function(e){mt(kt({type:ae.IncrementalSnapshot,data:Object.assign({source:ue.Mutation},e)}))},ce=function(e){return mt(kt({type:ae.IncrementalSnapshot,data:Object.assign({source:ue.Scroll},e)}))},le=function(e){return mt(kt({type:ae.IncrementalSnapshot,data:Object.assign({source:ue.CanvasMutation},e)}))},fe=function(e){return mt(kt({type:ae.IncrementalSnapshot,data:Object.assign({source:ue.AdoptedStyleSheet},e)}))},he=new It({mutationCb:se,adoptedStyleSheetCb:fe}),pe=new ze({mirror:xt,mutationCb:se,stylesheetManager:he,recordCrossOriginIframes:T,wrappedEmit:mt}),de=t(j||[]);try{for(de.s();!(te=de.n()).done;){var ve=te.value;ve.getMirror&&ve.getMirror({nodeMirror:xt,crossOriginIframeMirror:pe.crossOriginIframeMirror,crossOriginIframeStyleMirror:pe.crossOriginIframeStyleMirror})}}catch(e){de.e(e)}finally{de.f()}wt=new Ct({recordCanvas:M,mutationCb:le,win:window,blockClass:s,blockSelector:u,mirror:xt,sampling:x.canvas,dataURLOptions:O});var ge=new Ke({mutationCb:se,scrollCb:ce,bypassOptions:{blockClass:s,blockSelector:u,maskTextClass:h,maskTextSelector:d,inlineStylesheet:g,maskInputOptions:H,dataURLOptions:O,maskTextFn:C,maskInputFn:b,recordCanvas:M,inlineImages:U,sampling:x,slimDOMOptions:q,iframeManager:pe,stylesheetManager:he,canvasManager:wt,keepIframeSrcFn:Z},mirror:xt});yt=function(){var e,t,r,n,o,i,a=arguments.length>0&&void 0!==arguments[0]&&arguments[0];mt(kt({type:ae.Meta,data:{href:window.location.href,width:Q(),height:X()}}),a),he.reset(),be.forEach((function(e){return e.lock()}));var c=F(document,{mirror:xt,blockClass:s,blockSelector:u,maskTextClass:h,maskTextSelector:d,inlineStylesheet:g,maskAllInputs:H,maskTextFn:C,slimDOM:q,dataURLOptions:O,recordCanvas:M,inlineImages:U,onSerialize:function(e){ne(e,xt)&&pe.addIframe(e),oe(e,xt)&&he.trackLinkElement(e),ie(e)&&ge.addShadowRoot(e.shadowRoot,document)},onIframeLoad:function(e,t){pe.attachIframe(e,t),ge.observeAttachShadow(e)},onStylesheetLoad:function(e,t){he.attachLinkElement(e,t)},keepIframeSrcFn:Z});if(!c)return console.warn("Failed to snapshot the document");mt(kt({type:ae.FullSnapshot,data:{node:c,initialOffset:{left:void 0!==window.pageXOffset?window.pageXOffset:(null===document||void 0===document?void 0:document.documentElement.scrollLeft)||(null===(t=null===(e=null===document||void 0===document?void 0:document.body)||void 0===e?void 0:e.parentElement)||void 0===t?void 0:t.scrollLeft)||(null===(r=null===document||void 0===document?void 0:document.body)||void 0===r?void 0:r.scrollLeft)||0,top:void 0!==window.pageYOffset?window.pageYOffset:(null===document||void 0===document?void 0:document.documentElement.scrollTop)||(null===(o=null===(n=null===document||void 0===document?void 0:document.body)||void 0===n?void 0:n.parentElement)||void 0===o?void 0:o.scrollTop)||(null===(i=null===document||void 0===document?void 0:document.body)||void 0===i?void 0:i.scrollTop)||0}}})),be.forEach((function(e){return e.unlock()})),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&he.adoptStyleSheets(document.adoptedStyleSheets,xt.getId(document))};try{var me=[];me.push(V("DOMContentLoaded",(function(){mt(kt({type:ae.DomContentLoaded,data:{}}))})));var ye=function(e){var t;return Ve({mutationCb:se,mousemoveCb:function(e,t){return mt(kt({type:ae.IncrementalSnapshot,data:{source:t,positions:e}}))},mouseInteractionCb:function(e){return mt(kt({type:ae.IncrementalSnapshot,data:Object.assign({source:ue.MouseInteraction},e)}))},scrollCb:ce,viewportResizeCb:function(e){return mt(kt({type:ae.IncrementalSnapshot,data:Object.assign({source:ue.ViewportResize},e)}))},inputCb:function(e){return mt(kt({type:ae.IncrementalSnapshot,data:Object.assign({source:ue.Input},e)}))},mediaInteractionCb:function(e){return mt(kt({type:ae.IncrementalSnapshot,data:Object.assign({source:ue.MediaInteraction},e)}))},styleSheetRuleCb:function(e){return mt(kt({type:ae.IncrementalSnapshot,data:Object.assign({source:ue.StyleSheetRule},e)}))},styleDeclarationCb:function(e){return mt(kt({type:ae.IncrementalSnapshot,data:Object.assign({source:ue.StyleDeclaration},e)}))},canvasMutationCb:le,fontCb:function(e){return mt(kt({type:ae.IncrementalSnapshot,data:Object.assign({source:ue.Font},e)}))},selectionCb:function(e){mt(kt({type:ae.IncrementalSnapshot,data:Object.assign({source:ue.Selection},e)}))},blockClass:s,ignoreClass:l,maskTextClass:h,maskTextSelector:d,maskInputOptions:H,inlineStylesheet:g,sampling:x,recordCanvas:M,inlineImages:U,userTriggeredOnInput:P,collectFonts:_,doc:e,maskInputFn:b,maskTextFn:C,keepIframeSrcFn:Z,blockSelector:u,slimDOMOptions:q,dataURLOptions:O,mirror:xt,iframeManager:pe,stylesheetManager:he,shadowDomManager:ge,canvasManager:wt,ignoreCSSAttributes:Y,plugins:(null===(t=null==j?void 0:j.filter((function(e){return e.observer})))||void 0===t?void 0:t.map((function(e){return{observer:e.observer,options:e.options,callback:function(t){return mt(kt({type:ae.Plugin,data:{plugin:e.name,payload:t}}))}}})))||[]},I)};pe.addLoadListener((function(e){me.push(ye(e.contentDocument))}));var we=function(){yt(),me.push(ye(document)),St=!0};return"interactive"===document.readyState||"complete"===document.readyState?we():me.push(V("load",(function(){mt(kt({type:ae.Load,data:{}})),we()}),window)),function(){me.forEach((function(e){return e()})),St=!1}}catch(e){console.warn(e)}}At.addCustomEvent=function(e,t){if(!St)throw new Error("please add custom event after start recording");mt(kt({type:ae.Custom,data:{tag:e,payload:t}}))},At.freezePage=function(){be.forEach((function(e){return e.freeze()}))},At.takeFullSnapshot=function(e){if(!St)throw new Error("please take full snapshot after start recording");yt(e)},At.mirror=xt;var Ot,Rt=r(955),Et=r(915),Mt=r.n(Et),Nt=r(670),Tt=r(894),Lt=r(378),Pt=r.n(Lt),Ft=r(619),Bt=r(411),_t=r(153),Dt=r(458),Ut=r(579).lW,jt=["inputs"],Wt=["inputId"],Zt=["inputs"],Gt=["inputId"],Vt=Object.defineProperty,Yt=function(e,t,r){return function(e,t,r){return t in e?Vt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r}(e,"symbol"!==i(t)?t+"":t,r)},zt=Object.defineProperty,Kt=function(e,t,r){return function(e,t,r){return t in e?zt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r}(e,"symbol"!==i(t)?t+"":t,r)},Jt=Object.defineProperty,Ht=function(e,t,r){return function(e,t,r){return t in e?Jt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r}(e,"symbol"!==i(t)?t+"":t,r)},Xt={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},Qt={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},qt={};function $t(e){if(qt[e])return qt[e];var t=globalThis[e],r=t.prototype,n=e in Xt?Xt[e]:void 0,o=Boolean(n&&n.every((function(e){var t,n;return Boolean(null==(n=null==(t=Object.getOwnPropertyDescriptor(r,e))?void 0:t.get)?void 0:n.toString().includes("[native code]"))}))),i=e in Qt?Qt[e]:void 0,s=Boolean(i&&i.every((function(e){var t;return"function"==typeof r[e]&&(null==(t=r[e])?void 0:t.toString().includes("[native code]"))})));if(o&&s&&!globalThis.Zone)return qt[e]=t.prototype,t.prototype;try{var a=document.createElement("iframe");document.body.appendChild(a);var u=a.contentWindow;if(!u)return t.prototype;var c=u[e].prototype;return document.body.removeChild(a),c?qt[e]=c:r}catch(e){return r}}var er={};function tr(e,t,r){var n,o="".concat(e,".").concat(String(r));if(er[o])return er[o].call(t);var i=$t(e),s=null==(n=Object.getOwnPropertyDescriptor(i,r))?void 0:n.get;return s?(er[o]=s,s.call(t)):t[r]}var rr={};function nr(e,t,r){var n="".concat(e,".").concat(String(r));if(rr[n])return rr[n].bind(t);var o=$t(e)[r];return"function"!=typeof o?t[r]:(rr[n]=o,o.bind(t))}var or={childNodes:function(e){return tr("Node",e,"childNodes")},parentNode:function(e){return tr("Node",e,"parentNode")},parentElement:function(e){return tr("Node",e,"parentElement")},textContent:function(e){return tr("Node",e,"textContent")},contains:function(e,t){return nr("Node",e,"contains")(t)},getRootNode:function(e){return nr("Node",e,"getRootNode")()},host:function(e){return e&&"host"in e?tr("ShadowRoot",e,"host"):null},styleSheets:function(e){return e.styleSheets},shadowRoot:function(e){return e&&"shadowRoot"in e?tr("Element",e,"shadowRoot"):null},querySelector:function(e,t){return tr("Element",e,"querySelector")(t)},querySelectorAll:function(e,t){return tr("Element",e,"querySelectorAll")(t)},mutationObserver:function(){return $t("MutationObserver").constructor}};var ir=function(){function e(){j(this,e),Ht(this,"idNodeMap",new Map),Ht(this,"nodeMetaMap",new WeakMap)}return Z(e,[{key:"getId",value:function(e){var t;if(!e)return-1;var r=null==(t=this.getMeta(e))?void 0:t.id;return null!=r?r:-1}},{key:"getNode",value:function(e){return this.idNodeMap.get(e)||null}},{key:"getIds",value:function(){return Array.from(this.idNodeMap.keys())}},{key:"getMeta",value:function(e){return this.nodeMetaMap.get(e)||null}},{key:"removeNodeFromMap",value:function(e){var t=this,r=this.getId(e);this.idNodeMap.delete(r),e.childNodes&&e.childNodes.forEach((function(e){return t.removeNodeFromMap(e)}))}},{key:"has",value:function(e){return this.idNodeMap.has(e)}},{key:"hasNode",value:function(e){return this.nodeMetaMap.has(e)}},{key:"add",value:function(e,t){var r=t.id;this.idNodeMap.set(r,e),this.nodeMetaMap.set(e,t)}},{key:"replace",value:function(e,t){var r=this.getNode(e);if(r){var n=this.nodeMetaMap.get(r);n&&this.nodeMetaMap.set(t,n)}this.idNodeMap.set(e,t)}},{key:"reset",value:function(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}]),e}();function sr(e,t,r){if(!e)return!1;if(e.nodeType!==e.ELEMENT_NODE)return!!r&&sr(or.parentNode(e),t,r);for(var n=e.classList.length;n--;){var o=e.classList[n];if(t.test(o))return!0}return!!r&&sr(or.parentNode(e),t,r)}function ar(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function ur(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var r=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})})),r}var cr={exports:{}},lr=String,fr=function(){return{isColorSupported:!1,reset:lr,bold:lr,dim:lr,italic:lr,underline:lr,inverse:lr,hidden:lr,strikethrough:lr,black:lr,red:lr,green:lr,yellow:lr,blue:lr,magenta:lr,cyan:lr,white:lr,gray:lr,bgBlack:lr,bgRed:lr,bgGreen:lr,bgYellow:lr,bgBlue:lr,bgMagenta:lr,bgCyan:lr,bgWhite:lr}};cr.exports=fr(),cr.exports.createColors=fr;var hr=cr.exports,pr=ur(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"}))),dr=hr,vr=pr,gr=function(e){Bt(r,e);var t=_t(r);function r(e,n,o,i,s,a){var u;return j(this,r),(u=t.call(this,e)).name="CssSyntaxError",u.reason=e,s&&(u.file=s),i&&(u.source=i),a&&(u.plugin=a),void 0!==n&&void 0!==o&&("number"==typeof n?(u.line=n,u.column=o):(u.line=n.line,u.column=n.column,u.endLine=o.line,u.endColumn=o.column)),u.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(Ft(u),r),u}return Z(r,[{key:"setMessage",value:function(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",void 0!==this.line&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}},{key:"showSourceCode",value:function(e){var t=this;if(!this.source)return"";var r=this.source;null==e&&(e=dr.isColorSupported),vr&&e&&(r=vr(r));var n,o,i=r.split(/\r?\n/),s=Math.max(this.line-3,0),a=Math.min(this.line+2,i.length),u=String(a).length;if(e){var c=dr.createColors(!0),l=c.bold,f=c.gray,h=c.red;n=function(e){return l(h(e))},o=function(e){return f(e)}}else n=o=function(e){return e};return i.slice(s,a).map((function(e,r){var i=s+1+r,a=" "+(" "+i).slice(-u)+" | ";if(i===t.line){var c=o(a.replace(/\d/g," "))+e.slice(0,t.column-1).replace(/[^\t]/g," ");return n(">")+o(a)+e+"\n "+c+n("^")}return" "+o(a)+e})).join("\n")}},{key:"toString",value:function(){var e=this.showSourceCode();return e&&(e="\n\n"+e+"\n"),this.name+": "+this.message+e}}]),r}(Dt(Error)),mr=gr;gr.default=gr;var yr={};yr.isClean=Symbol("isClean"),yr.my=Symbol("my");var wr={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};var br=function(){function e(t){j(this,e),this.builder=t}return Z(e,[{key:"atrule",value:function(e,t){var r="@"+e.name,n=e.params?this.rawValue(e,"params"):"";if(void 0!==e.raws.afterName?r+=e.raws.afterName:n&&(r+=" "),e.nodes)this.block(e,r+n);else{var o=(e.raws.between||"")+(t?";":"");this.builder(r+n+o,e)}}},{key:"beforeAfter",value:function(e,t){var r;r="decl"===e.type?this.raw(e,null,"beforeDecl"):"comment"===e.type?this.raw(e,null,"beforeComment"):"before"===t?this.raw(e,null,"beforeRule"):this.raw(e,null,"beforeClose");for(var n=e.parent,o=0;n&&"root"!==n.type;)o+=1,n=n.parent;if(r.includes("\n")){var i=this.raw(e,null,"indent");if(i.length)for(var s=0;s<o;s++)r+=i}return r}},{key:"block",value:function(e,t){var r,n=this.raw(e,"between","beforeOpen");this.builder(t+n+"{",e,"start"),e.nodes&&e.nodes.length?(this.body(e),r=this.raw(e,"after")):r=this.raw(e,"after","emptyBody"),r&&this.builder(r),this.builder("}",e,"end")}},{key:"body",value:function(e){for(var t=e.nodes.length-1;t>0&&"comment"===e.nodes[t].type;)t-=1;for(var r=this.raw(e,"semicolon"),n=0;n<e.nodes.length;n++){var o=e.nodes[n],i=this.raw(o,"before");i&&this.builder(i),this.stringify(o,t!==n||r)}}},{key:"comment",value:function(e){var t=this.raw(e,"left","commentLeft"),r=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+r+"*/",e)}},{key:"decl",value:function(e,t){var r=this.raw(e,"between","colon"),n=e.prop+r+this.rawValue(e,"value");e.important&&(n+=e.raws.important||" !important"),t&&(n+=";"),this.builder(n,e)}},{key:"document",value:function(e){this.body(e)}},{key:"raw",value:function(e,t,r){var n;if(r||(r=t),t&&void 0!==(n=e.raws[t]))return n;var o=e.parent;if("before"===r){if(!o||"root"===o.type&&o.first===e)return"";if(o&&"document"===o.type)return""}if(!o)return wr[r];var i=e.root();if(i.rawCache||(i.rawCache={}),void 0!==i.rawCache[r])return i.rawCache[r];if("before"===r||"after"===r)return this.beforeAfter(e,r);var s,a="raw"+((s=r)[0].toUpperCase()+s.slice(1));return this[a]?n=this[a](i,e):i.walk((function(e){if(void 0!==(n=e.raws[t]))return!1})),void 0===n&&(n=wr[r]),i.rawCache[r]=n,n}},{key:"rawBeforeClose",value:function(e){var t;return e.walk((function(e){if(e.nodes&&e.nodes.length>0&&void 0!==e.raws.after)return(t=e.raws.after).includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1})),t&&(t=t.replace(/\S/g,"")),t}},{key:"rawBeforeComment",value:function(e,t){var r;return e.walkComments((function(e){if(void 0!==e.raws.before)return(r=e.raws.before).includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1})),void 0===r?r=this.raw(t,null,"beforeDecl"):r&&(r=r.replace(/\S/g,"")),r}},{key:"rawBeforeDecl",value:function(e,t){var r;return e.walkDecls((function(e){if(void 0!==e.raws.before)return(r=e.raws.before).includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1})),void 0===r?r=this.raw(t,null,"beforeRule"):r&&(r=r.replace(/\S/g,"")),r}},{key:"rawBeforeOpen",value:function(e){var t;return e.walk((function(e){if("decl"!==e.type&&void 0!==(t=e.raws.between))return!1})),t}},{key:"rawBeforeRule",value:function(e){var t;return e.walk((function(r){if(r.nodes&&(r.parent!==e||e.first!==r)&&void 0!==r.raws.before)return(t=r.raws.before).includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1})),t&&(t=t.replace(/\S/g,"")),t}},{key:"rawColon",value:function(e){var t;return e.walkDecls((function(e){if(void 0!==e.raws.between)return t=e.raws.between.replace(/[^\s:]/g,""),!1})),t}},{key:"rawEmptyBody",value:function(e){var t;return e.walk((function(e){if(e.nodes&&0===e.nodes.length&&void 0!==(t=e.raws.after))return!1})),t}},{key:"rawIndent",value:function(e){return e.raws.indent?e.raws.indent:(e.walk((function(r){var n=r.parent;if(n&&n!==e&&n.parent&&n.parent===e&&void 0!==r.raws.before){var o=r.raws.before.split("\n");return t=(t=o[o.length-1]).replace(/\S/g,""),!1}})),t);var t}},{key:"rawSemicolon",value:function(e){var t;return e.walk((function(e){if(e.nodes&&e.nodes.length&&"decl"===e.last.type&&void 0!==(t=e.raws.semicolon))return!1})),t}},{key:"rawValue",value:function(e,t){var r=e[t],n=e.raws[t];return n&&n.value===r?n.raw:r}},{key:"root",value:function(e){this.body(e),e.raws.after&&this.builder(e.raws.after)}},{key:"rule",value:function(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")}},{key:"stringify",value:function(e,t){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)}}]),e}(),Cr=br;br.default=br;var Ir=Cr;function kr(e,t){new Ir(t).stringify(e)}var Sr=kr;kr.default=kr;var xr=yr.isClean,Ar=yr.my,Or=mr,Rr=Cr,Er=Sr;function Mr(e,t){var r=new e.constructor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&"proxyCache"!==n){var o=e[n],s=i(o);"parent"===n&&"object"===s?t&&(r[n]=t):"source"===n?r[n]=o:Array.isArray(o)?r[n]=o.map((function(e){return Mr(e,r)})):("object"===s&&null!==o&&(o=Mr(o)),r[n]=o)}return r}var Nr=function(){function e(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};for(var n in j(this,e),this.raws={},this[xr]=!1,this[Ar]=!0,r)if("nodes"===n){this.nodes=[];var o,i=t(r[n]);try{for(i.s();!(o=i.n()).done;){var s=o.value;"function"==typeof s.clone?this.append(s.clone()):this.append(s)}}catch(e){i.e(e)}finally{i.f()}}else this[n]=r[n]}return Z(e,[{key:"addToError",value:function(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){var t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,"$&".concat(t.input.from,":").concat(t.start.line,":").concat(t.start.column,"$&"))}return e}},{key:"after",value:function(e){return this.parent.insertAfter(this,e),this}},{key:"assign",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};for(var t in e)this[t]=e[t];return this}},{key:"before",value:function(e){return this.parent.insertBefore(this,e),this}},{key:"cleanRaws",value:function(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between}},{key:"clone",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Mr(this);for(var r in e)t[r]=e[r];return t}},{key:"cloneAfter",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this.clone(e);return this.parent.insertAfter(this,t),t}},{key:"cloneBefore",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this.clone(e);return this.parent.insertBefore(this,t),t}},{key:"error",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.source){var r=this.rangeBy(t),n=r.end,o=r.start;return this.source.input.error(e,{column:o.column,line:o.line},{column:n.column,line:n.line},t)}return new Or(e)}},{key:"getProxyProcessor",value:function(){return{get:function(e,t){return"proxyOf"===t?e:"root"===t?function(){return e.root().toProxy()}:e[t]},set:function(e,t,r){return e[t]===r||(e[t]=r,"prop"!==t&&"value"!==t&&"name"!==t&&"params"!==t&&"important"!==t&&"text"!==t||e.markDirty()),!0}}}},{key:"markDirty",value:function(){if(this[xr]){this[xr]=!1;for(var e=this;e=e.parent;)e[xr]=!1}}},{key:"next",value:function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e+1]}}},{key:"positionBy",value:function(e,t){var r=this.source.start;if(e.index)r=this.positionInside(e.index,t);else if(e.word){var n=(t=this.toString()).indexOf(e.word);-1!==n&&(r=this.positionInside(n,t))}return r}},{key:"positionInside",value:function(e,t){for(var r=t||this.toString(),n=this.source.start.column,o=this.source.start.line,i=0;i<e;i++)"\n"===r[i]?(n=1,o+=1):n+=1;return{column:n,line:o}}},{key:"prev",value:function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e-1]}}},{key:"rangeBy",value:function(e){var t={column:this.source.start.column,line:this.source.start.line},r=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:t.column+1,line:t.line};if(e.word){var n=this.toString(),o=n.indexOf(e.word);-1!==o&&(t=this.positionInside(o,n),r=this.positionInside(o+e.word.length,n))}else e.start?t={column:e.start.column,line:e.start.line}:e.index&&(t=this.positionInside(e.index)),e.end?r={column:e.end.column,line:e.end.line}:"number"==typeof e.endIndex?r=this.positionInside(e.endIndex):e.index&&(r=this.positionInside(e.index+1));return(r.line<t.line||r.line===t.line&&r.column<=t.column)&&(r={column:t.column+1,line:t.line}),{end:r,start:t}}},{key:"raw",value:function(e,t){return(new Rr).raw(this,e,t)}},{key:"remove",value:function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}},{key:"replaceWith",value:function(){if(this.parent){for(var e=this,t=!1,r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];for(var i=0,s=n;i<s.length;i++){var a=s[i];a===this?t=!0:t?(this.parent.insertAfter(e,a),e=a):this.parent.insertBefore(e,a)}t||this.remove()}return this}},{key:"root",value:function(){for(var e=this;e.parent&&"document"!==e.parent.type;)e=e.parent;return e}},{key:"toJSON",value:function(e,t){var r={},n=null==t;t=t||new Map;var o=0;for(var s in this)if(Object.prototype.hasOwnProperty.call(this,s)&&"parent"!==s&&"proxyCache"!==s){var a=this[s];if(Array.isArray(a))r[s]=a.map((function(e){return"object"===i(e)&&e.toJSON?e.toJSON(null,t):e}));else if("object"===i(a)&&a.toJSON)r[s]=a.toJSON(null,t);else if("source"===s){var u=t.get(a.input);null==u&&(u=o,t.set(a.input,o),o++),r[s]={end:a.end,inputId:u,start:a.start}}else r[s]=a}return n&&(r.inputs=U(t.keys()).map((function(e){return e.toJSON()}))),r}},{key:"toProxy",value:function(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}},{key:"toString",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Er;e.stringify&&(e=e.stringify);var t="";return e(this,(function(e){t+=e})),t}},{key:"warn",value:function(e,t,r){var n={node:this};for(var o in r)n[o]=r[o];return e.warn(t,n)}},{key:"proxyOf",get:function(){return this}}]),e}(),Tr=Nr;Nr.default=Nr;var Lr=function(e){Bt(r,e);var t=_t(r);function r(e){var n;return j(this,r),e&&void 0!==e.value&&"string"!=typeof e.value&&(e=Lt(Lt({},e),{},{value:String(e.value)})),(n=t.call(this,e)).type="decl",n}return Z(r,[{key:"variable",get:function(){return this.prop.startsWith("--")||"$"===this.prop[0]}}]),r}(Tr),Pr=Lr;Lr.default=Lr;var Fr="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",Br=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:21,t="",r=e;r--;)t+=Fr[64*Math.random()|0];return t},_r=pr.SourceMapConsumer,Dr=pr.SourceMapGenerator,Ur=pr.existsSync,jr=pr.readFileSync,Wr=pr.dirname,Zr=pr.join;var Gr=function(){function e(t,r){if(j(this,e),!1!==r.map){this.loadAnnotation(t),this.inline=this.startWith(this.annotation,"data:");var n=r.map?r.map.prev:void 0,o=this.loadMap(r.from,n);!this.mapFile&&r.from&&(this.mapFile=r.from),this.mapFile&&(this.root=Wr(this.mapFile)),o&&(this.text=o)}}return Z(e,[{key:"consumer",value:function(){return this.consumerCache||(this.consumerCache=new _r(this.text)),this.consumerCache}},{key:"decodeInline",value:function(e){var t;if(/^data:application\/json;charset=utf-?8,/.test(e)||/^data:application\/json,/.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(/^data:application\/json;charset=utf-?8;base64,/.test(e)||/^data:application\/json;base64,/.test(e))return t=e.substr(RegExp.lastMatch.length),Ut?Ut.from(t,"base64").toString():window.atob(t);var r=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+r)}},{key:"getAnnotationURL",value:function(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}},{key:"isMap",value:function(e){return"object"===i(e)&&("string"==typeof e.mappings||"string"==typeof e._mappings||Array.isArray(e.sections))}},{key:"loadAnnotation",value:function(e){var t=e.match(/\/\*\s*# sourceMappingURL=/gm);if(t){var r=e.lastIndexOf(t.pop()),n=e.indexOf("*/",r);r>-1&&n>-1&&(this.annotation=this.getAnnotationURL(e.substring(r,n)))}}},{key:"loadFile",value:function(e){if(this.root=Wr(e),Ur(e))return this.mapFile=e,jr(e,"utf-8").toString().trim()}},{key:"loadMap",value:function(e,t){if(!1===t)return!1;if(t){if("string"==typeof t)return t;if("function"!=typeof t){if(t instanceof _r)return Dr.fromSourceMap(t).toString();if(t instanceof Dr)return t.toString();if(this.isMap(t))return JSON.stringify(t);throw new Error("Unsupported previous source map format: "+t.toString())}var r=t(e);if(r){var n=this.loadFile(r);if(!n)throw new Error("Unable to load previous source map: "+r.toString());return n}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){var o=this.annotation;return e&&(o=Zr(Wr(e),o)),this.loadFile(o)}}}},{key:"startWith",value:function(e,t){return!!e&&e.substr(0,t.length)===t}},{key:"withContent",value:function(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}}]),e}(),Vr=Gr;Gr.default=Gr;var Yr=pr.SourceMapConsumer,zr=pr.SourceMapGenerator,Kr=pr.fileURLToPath,Jr=pr.pathToFileURL,Hr=pr.isAbsolute,Xr=pr.resolve,Qr=Br,qr=pr,$r=mr,en=Vr,tn=Symbol("fromOffsetCache"),rn=Boolean(Yr&&zr),nn=Boolean(Xr&&Hr),on=function(){function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(j(this,e),null==t||"object"===i(t)&&!t.toString)throw new Error("PostCSS received ".concat(t," instead of CSS string"));if(this.css=t.toString(),"\ufeff"===this.css[0]||""===this.css[0]?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,r.from&&(!nn||/^\w+:\/\//.test(r.from)||Hr(r.from)?this.file=r.from:this.file=Xr(r.from)),nn&&rn){var n=new en(this.css,r);if(n.text){this.map=n;var o=n.consumer().file;!this.file&&o&&(this.file=this.mapResolve(o))}}this.file||(this.id="<input css "+Qr(6)+">"),this.map&&(this.map.file=this.from)}return Z(e,[{key:"error",value:function(e,t,r){var n,o,s,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(t&&"object"===i(t)){var u=t,c=r;if("number"==typeof u.offset){var l=this.fromOffset(u.offset);t=l.line,r=l.col}else t=u.line,r=u.column;if("number"==typeof c.offset){var f=this.fromOffset(c.offset);o=f.line,s=f.col}else o=c.line,s=c.column}else if(!r){var h=this.fromOffset(t);t=h.line,r=h.col}var p=this.origin(t,r,o,s);return(n=p?new $r(e,void 0===p.endLine?p.line:{column:p.column,line:p.line},void 0===p.endLine?p.column:{column:p.endColumn,line:p.endLine},p.source,p.file,a.plugin):new $r(e,void 0===o?t:{column:r,line:t},void 0===o?r:{column:s,line:o},this.css,this.file,a.plugin)).input={column:r,endColumn:s,endLine:o,line:t,source:this.css},this.file&&(Jr&&(n.input.url=Jr(this.file).toString()),n.input.file=this.file),n}},{key:"fromOffset",value:function(e){var t;if(this[tn])t=this[tn];else{var r=this.css.split("\n");t=new Array(r.length);for(var n=0,o=0,i=r.length;o<i;o++)t[o]=n,n+=r[o].length+1;this[tn]=t}var s=0;if(e>=t[t.length-1])s=t.length-1;else for(var a,u=t.length-2;s<u;)if(e<t[a=s+(u-s>>1)])u=a-1;else{if(!(e>=t[a+1])){s=a;break}s=a+1}return{col:e-t[s]+1,line:s+1}}},{key:"mapResolve",value:function(e){return/^\w+:\/\//.test(e)?e:Xr(this.map.consumer().sourceRoot||this.map.root||".",e)}},{key:"origin",value:function(e,t,r,n){if(!this.map)return!1;var o,i,s=this.map.consumer(),a=s.originalPositionFor({column:t,line:e});if(!a.source)return!1;"number"==typeof r&&(o=s.originalPositionFor({column:n,line:r})),i=Hr(a.source)?Jr(a.source):new URL(a.source,this.map.consumer().sourceRoot||Jr(this.map.mapFile));var u={column:a.column,endColumn:o&&o.column,endLine:o&&o.line,line:a.line,url:i.toString()};if("file:"===i.protocol){if(!Kr)throw new Error("file: protocol is not available in this PostCSS build");u.file=Kr(i)}var c=s.sourceContentFor(a.source);return c&&(u.source=c),u}},{key:"toJSON",value:function(){for(var e={},t=0,r=["hasBOM","css","file","id"];t<r.length;t++){var n=r[t];null!=this[n]&&(e[n]=this[n])}return this.map&&(e.map=Lt({},this.map),e.map.consumerCache&&(e.map.consumerCache=void 0)),e}},{key:"from",get:function(){return this.file||this.id}}]),e}(),sn=on;on.default=on,qr&&qr.registerInput&&qr.registerInput(on);var an=pr.SourceMapConsumer,un=pr.SourceMapGenerator,cn=pr.dirname,ln=pr.relative,fn=pr.resolve,hn=pr.sep,pn=pr.pathToFileURL,dn=sn,vn=Boolean(an&&un),gn=Boolean(cn&&fn&&ln&&hn),mn=function(){function e(t,r,n,o){j(this,e),this.stringify=t,this.mapOpts=n.map||{},this.root=r,this.opts=n,this.css=o,this.originalCSS=o,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}return Z(e,[{key:"addAnnotation",value:function(){var e;e=this.isInline()?"data:application/json;base64,"+this.toBase64(this.map.toString()):"string"==typeof this.mapOpts.annotation?this.mapOpts.annotation:"function"==typeof this.mapOpts.annotation?this.mapOpts.annotation(this.opts.to,this.root):this.outputFile()+".map";var t="\n";this.css.includes("\r\n")&&(t="\r\n"),this.css+=t+"/*# sourceMappingURL="+e+" */"}},{key:"applyPrevMaps",value:function(){var e,r=t(this.previous());try{for(r.s();!(e=r.n()).done;){var n=e.value,o=this.toUrl(this.path(n.file)),i=n.root||cn(n.file),s=void 0;!1===this.mapOpts.sourcesContent?(s=new an(n.text)).sourcesContent&&(s.sourcesContent=null):s=n.consumer(),this.map.applySourceMap(s,o,this.toUrl(this.path(i)))}}catch(e){r.e(e)}finally{r.f()}}},{key:"clearAnnotation",value:function(){if(!1!==this.mapOpts.annotation)if(this.root)for(var e,t=this.root.nodes.length-1;t>=0;t--)"comment"===(e=this.root.nodes[t]).type&&0===e.text.indexOf("# sourceMappingURL=")&&this.root.removeChild(t);else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))}},{key:"generate",value:function(){if(this.clearAnnotation(),gn&&vn&&this.isMap())return this.generateMap();var e="";return this.stringify(this.root,(function(t){e+=t})),[e]}},{key:"generateMap",value:function(){if(this.root)this.generateString();else if(1===this.previous().length){var e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=un.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new un({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}},{key:"generateString",value:function(){var e=this;this.css="",this.map=new un({file:this.outputFile(),ignoreInvalidMapping:!0});var t,r,n=1,o=1,i="<no source>",s={generated:{column:0,line:0},original:{column:0,line:0},source:""};this.stringify(this.root,(function(a,u,c){if(e.css+=a,u&&"end"!==c&&(s.generated.line=n,s.generated.column=o-1,u.source&&u.source.start?(s.source=e.sourcePath(u),s.original.line=u.source.start.line,s.original.column=u.source.start.column-1,e.map.addMapping(s)):(s.source=i,s.original.line=1,s.original.column=0,e.map.addMapping(s))),(t=a.match(/\n/g))?(n+=t.length,r=a.lastIndexOf("\n"),o=a.length-r):o+=a.length,u&&"start"!==c){var l=u.parent||{raws:{}};("decl"===u.type||"atrule"===u.type&&!u.nodes)&&u===l.last&&!l.raws.semicolon||(u.source&&u.source.end?(s.source=e.sourcePath(u),s.original.line=u.source.end.line,s.original.column=u.source.end.column-1,s.generated.line=n,s.generated.column=o-2,e.map.addMapping(s)):(s.source=i,s.original.line=1,s.original.column=0,s.generated.line=n,s.generated.column=o-1,e.map.addMapping(s)))}}))}},{key:"isAnnotation",value:function(){return!!this.isInline()||(void 0!==this.mapOpts.annotation?this.mapOpts.annotation:!this.previous().length||this.previous().some((function(e){return e.annotation})))}},{key:"isInline",value:function(){if(void 0!==this.mapOpts.inline)return this.mapOpts.inline;var e=this.mapOpts.annotation;return(void 0===e||!0===e)&&(!this.previous().length||this.previous().some((function(e){return e.inline})))}},{key:"isMap",value:function(){return void 0!==this.opts.map?!!this.opts.map:this.previous().length>0}},{key:"isSourcesContent",value:function(){return void 0!==this.mapOpts.sourcesContent?this.mapOpts.sourcesContent:!this.previous().length||this.previous().some((function(e){return e.withContent()}))}},{key:"outputFile",value:function(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}},{key:"path",value:function(e){if(this.mapOpts.absolute)return e;if(60===e.charCodeAt(0))return e;if(/^\w+:\/\//.test(e))return e;var t=this.memoizedPaths.get(e);if(t)return t;var r=this.opts.to?cn(this.opts.to):".";"string"==typeof this.mapOpts.annotation&&(r=cn(fn(r,this.mapOpts.annotation)));var n=ln(r,e);return this.memoizedPaths.set(e,n),n}},{key:"previous",value:function(){var e=this;if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk((function(t){if(t.source&&t.source.input.map){var r=t.source.input.map;e.previousMaps.includes(r)||e.previousMaps.push(r)}}));else{var t=new dn(this.originalCSS,this.opts);t.map&&this.previousMaps.push(t.map)}return this.previousMaps}},{key:"setSourcesContent",value:function(){var e=this,t={};if(this.root)this.root.walk((function(r){if(r.source){var n=r.source.input.from;if(n&&!t[n]){t[n]=!0;var o=e.usesFileUrls?e.toFileUrl(n):e.toUrl(e.path(n));e.map.setSourceContent(o,r.source.input.css)}}}));else if(this.css){var r=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(r,this.css)}}},{key:"sourcePath",value:function(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))}},{key:"toBase64",value:function(e){return Ut?Ut.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))}},{key:"toFileUrl",value:function(e){var t=this.memoizedFileURLs.get(e);if(t)return t;if(pn){var r=pn(e).toString();return this.memoizedFileURLs.set(e,r),r}throw new Error("`map.absolute` option is not available in this PostCSS build")}},{key:"toUrl",value:function(e){var t=this.memoizedURLs.get(e);if(t)return t;"\\"===hn&&(e=e.replace(/\\/g,"/"));var r=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,r),r}}]),e}(),yn=function(e){Bt(r,e);var t=_t(r);function r(e){var n;return j(this,r),(n=t.call(this,e)).type="comment",n}return Z(r)}(Tr),wn=yn;yn.default=yn;var bn,Cn,In,kn,Sn=yr.isClean,xn=yr.my,An=Pr,On=wn;function Rn(e){return e.map((function(e){return e.nodes&&(e.nodes=Rn(e.nodes)),delete e.source,e}))}function En(e){if(e[Sn]=!1,e.proxyOf.nodes){var r,n=t(e.proxyOf.nodes);try{for(n.s();!(r=n.n()).done;){En(r.value)}}catch(e){n.e(e)}finally{n.f()}}}var Mn=function(e){Bt(n,e);var r=_t(n);function n(){return j(this,n),r.apply(this,arguments)}return Z(n,[{key:"append",value:function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];for(var o=0,i=r;o<i.length;o++){var s,a=i[o],u=this.normalize(a,this.last),c=t(u);try{for(c.s();!(s=c.n()).done;){var l=s.value;this.proxyOf.nodes.push(l)}}catch(e){c.e(e)}finally{c.f()}}return this.markDirty(),this}},{key:"cleanRaws",value:function(e){if(Nt(Tt(n.prototype),"cleanRaws",this).call(this,e),this.nodes){var r,o=t(this.nodes);try{for(o.s();!(r=o.n()).done;){r.value.cleanRaws(e)}}catch(e){o.e(e)}finally{o.f()}}}},{key:"each",value:function(e){if(this.proxyOf.nodes){for(var t,r,n=this.getIterator();this.indexes[n]<this.proxyOf.nodes.length&&(t=this.indexes[n],!1!==(r=e(this.proxyOf.nodes[t],t)));)this.indexes[n]+=1;return delete this.indexes[n],r}}},{key:"every",value:function(e){return this.nodes.every(e)}},{key:"getIterator",value:function(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;var e=this.lastEach;return this.indexes[e]=0,e}},{key:"getProxyProcessor",value:function(){return{get:function(e,t){return"proxyOf"===t?e:e[t]?"each"===t||"string"==typeof t&&t.startsWith("walk")?function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return e[t].apply(e,U(n.map((function(e){return"function"==typeof e?function(t,r){return e(t.toProxy(),r)}:e}))))}:"every"===t||"some"===t?function(r){return e[t]((function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];return r.apply(void 0,[e.toProxy()].concat(n))}))}:"root"===t?function(){return e.root().toProxy()}:"nodes"===t?e.nodes.map((function(e){return e.toProxy()})):"first"===t||"last"===t?e[t].toProxy():e[t]:e[t]},set:function(e,t,r){return e[t]===r||(e[t]=r,"name"!==t&&"params"!==t&&"selector"!==t||e.markDirty()),!0}}}},{key:"index",value:function(e){return"number"==typeof e?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))}},{key:"insertAfter",value:function(e,r){var n=this.index(e),o=this.normalize(r,this.proxyOf.nodes[n]).reverse();n=this.index(e);var i,s,a=t(o);try{for(a.s();!(i=a.n()).done;){var u=i.value;this.proxyOf.nodes.splice(n+1,0,u)}}catch(e){a.e(e)}finally{a.f()}for(var c in this.indexes)n<(s=this.indexes[c])&&(this.indexes[c]=s+o.length);return this.markDirty(),this}},{key:"insertBefore",value:function(e,r){var n=this.index(e),o=0===n&&"prepend",i=this.normalize(r,this.proxyOf.nodes[n],o).reverse();n=this.index(e);var s,a,u=t(i);try{for(u.s();!(s=u.n()).done;){var c=s.value;this.proxyOf.nodes.splice(n,0,c)}}catch(e){u.e(e)}finally{u.f()}for(var l in this.indexes)n<=(a=this.indexes[l])&&(this.indexes[l]=a+i.length);return this.markDirty(),this}},{key:"normalize",value:function(e,r){var o=this;if("string"==typeof e)e=Rn(bn(e).nodes);else if(void 0===e)e=[];else if(Array.isArray(e)){e=e.slice(0);var i,s=t(e);try{for(s.s();!(i=s.n()).done;){var a=i.value;a.parent&&a.parent.removeChild(a,"ignore")}}catch(e){s.e(e)}finally{s.f()}}else if("root"===e.type&&"document"!==this.type){e=e.nodes.slice(0);var u,c=t(e);try{for(c.s();!(u=c.n()).done;){var l=u.value;l.parent&&l.parent.removeChild(l,"ignore")}}catch(e){c.e(e)}finally{c.f()}}else if(e.type)e=[e];else if(e.prop){if(void 0===e.value)throw new Error("Value field is missed in node creation");"string"!=typeof e.value&&(e.value=String(e.value)),e=[new An(e)]}else if(e.selector)e=[new Cn(e)];else if(e.name)e=[new In(e)];else{if(!e.text)throw new Error("Unknown node type in node creation");e=[new On(e)]}var f=e.map((function(e){return e[xn]||n.rebuild(e),(e=e.proxyOf).parent&&e.parent.removeChild(e),e[Sn]&&En(e),void 0===e.raws.before&&r&&void 0!==r.raws.before&&(e.raws.before=r.raws.before.replace(/\S/g,"")),e.parent=o.proxyOf,e}));return f}},{key:"prepend",value:function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];r=r.reverse();var o,i=t(r);try{for(i.s();!(o=i.n()).done;){var s,a=o.value,u=this.normalize(a,this.first,"prepend").reverse(),c=t(u);try{for(c.s();!(s=c.n()).done;){var l=s.value;this.proxyOf.nodes.unshift(l)}}catch(e){c.e(e)}finally{c.f()}for(var f in this.indexes)this.indexes[f]=this.indexes[f]+u.length}}catch(e){i.e(e)}finally{i.f()}return this.markDirty(),this}},{key:"push",value:function(e){return e.parent=this,this.proxyOf.nodes.push(e),this}},{key:"removeAll",value:function(){var e,r=t(this.proxyOf.nodes);try{for(r.s();!(e=r.n()).done;){e.value.parent=void 0}}catch(e){r.e(e)}finally{r.f()}return this.proxyOf.nodes=[],this.markDirty(),this}},{key:"removeChild",value:function(e){var t;for(var r in e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1),this.indexes)(t=this.indexes[r])>=e&&(this.indexes[r]=t-1);return this.markDirty(),this}},{key:"replaceValues",value:function(e,t,r){return r||(r=t,t={}),this.walkDecls((function(n){t.props&&!t.props.includes(n.prop)||t.fast&&!n.value.includes(t.fast)||(n.value=n.value.replace(e,r))})),this.markDirty(),this}},{key:"some",value:function(e){return this.nodes.some(e)}},{key:"walk",value:function(e){return this.each((function(t,r){var n;try{n=e(t,r)}catch(e){throw t.addToError(e)}return!1!==n&&t.walk&&(n=t.walk(e)),n}))}},{key:"walkAtRules",value:function(e,t){return t?e instanceof RegExp?this.walk((function(r,n){if("atrule"===r.type&&e.test(r.name))return t(r,n)})):this.walk((function(r,n){if("atrule"===r.type&&r.name===e)return t(r,n)})):(t=e,this.walk((function(e,r){if("atrule"===e.type)return t(e,r)})))}},{key:"walkComments",value:function(e){return this.walk((function(t,r){if("comment"===t.type)return e(t,r)}))}},{key:"walkDecls",value:function(e,t){return t?e instanceof RegExp?this.walk((function(r,n){if("decl"===r.type&&e.test(r.prop))return t(r,n)})):this.walk((function(r,n){if("decl"===r.type&&r.prop===e)return t(r,n)})):(t=e,this.walk((function(e,r){if("decl"===e.type)return t(e,r)})))}},{key:"walkRules",value:function(e,t){return t?e instanceof RegExp?this.walk((function(r,n){if("rule"===r.type&&e.test(r.selector))return t(r,n)})):this.walk((function(r,n){if("rule"===r.type&&r.selector===e)return t(r,n)})):(t=e,this.walk((function(e,r){if("rule"===e.type)return t(e,r)})))}},{key:"first",get:function(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}},{key:"last",get:function(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}}]),n}(Tr);Mn.registerParse=function(e){bn=e},Mn.registerRule=function(e){Cn=e},Mn.registerAtRule=function(e){In=e},Mn.registerRoot=function(e){kn=e};var Nn=Mn;Mn.default=Mn,Mn.rebuild=function(e){"atrule"===e.type?Object.setPrototypeOf(e,In.prototype):"rule"===e.type?Object.setPrototypeOf(e,Cn.prototype):"decl"===e.type?Object.setPrototypeOf(e,An.prototype):"comment"===e.type?Object.setPrototypeOf(e,On.prototype):"root"===e.type&&Object.setPrototypeOf(e,kn.prototype),e[xn]=!0,e.nodes&&e.nodes.forEach((function(e){Mn.rebuild(e)}))};var Tn,Ln,Pn=function(e){Bt(r,e);var t=_t(r);function r(e){var n;return j(this,r),(n=t.call(this,Lt({type:"document"},e))).nodes||(n.nodes=[]),n}return Z(r,[{key:"toResult",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=new Tn(new Ln,this,e);return t.stringify()}}]),r}(Nn);Pn.registerLazyResult=function(e){Tn=e},Pn.registerProcessor=function(e){Ln=e};var Fn=Pn;Pn.default=Pn;var Bn=function(){function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(j(this,e),this.type="warning",this.text=t,r.node&&r.node.source){var n=r.node.rangeBy(r);this.line=n.start.line,this.column=n.start.column,this.endLine=n.end.line,this.endColumn=n.end.column}for(var o in r)this[o]=r[o]}return Z(e,[{key:"toString",value:function(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}}]),e}(),_n=Bn;Bn.default=Bn;var Dn=_n,Un=function(){function e(t,r,n){j(this,e),this.processor=t,this.messages=[],this.root=r,this.opts=n,this.css=void 0,this.map=void 0}return Z(e,[{key:"toString",value:function(){return this.css}},{key:"warn",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);var r=new Dn(e,t);return this.messages.push(r),r}},{key:"warnings",value:function(){return this.messages.filter((function(e){return"warning"===e.type}))}},{key:"content",get:function(){return this.css}}]),e}(),jn=Un;Un.default=Un;var Wn="'".charCodeAt(0),Zn='"'.charCodeAt(0),Gn="\\".charCodeAt(0),Vn="/".charCodeAt(0),Yn="\n".charCodeAt(0),zn=" ".charCodeAt(0),Kn="\f".charCodeAt(0),Jn="\t".charCodeAt(0),Hn="\r".charCodeAt(0),Xn="[".charCodeAt(0),Qn="]".charCodeAt(0),qn="(".charCodeAt(0),$n=")".charCodeAt(0),eo="{".charCodeAt(0),to="}".charCodeAt(0),ro=";".charCodeAt(0),no="*".charCodeAt(0),oo=":".charCodeAt(0),io="@".charCodeAt(0),so=/[\t\n\f\r "#'()/;[\\\]{}]/g,ao=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,uo=/.[\r\n"'(/\\]/,co=/[\da-f]/i,lo=Nn,fo=function(e){Bt(r,e);var t=_t(r);function r(e){var n;return j(this,r),(n=t.call(this,e)).type="atrule",n}return Z(r,[{key:"append",value:function(){var e;this.proxyOf.nodes||(this.nodes=[]);for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return(e=Nt(Tt(r.prototype),"append",this)).call.apply(e,[this].concat(n))}},{key:"prepend",value:function(){var e;this.proxyOf.nodes||(this.nodes=[]);for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return(e=Nt(Tt(r.prototype),"prepend",this)).call.apply(e,[this].concat(n))}}]),r}(lo),ho=fo;fo.default=fo,lo.registerAtRule(fo);var po,vo,go=Nn,mo=function(e){Bt(n,e);var r=_t(n);function n(e){var t;return j(this,n),(t=r.call(this,e)).type="root",t.nodes||(t.nodes=[]),t}return Z(n,[{key:"normalize",value:function(e,r,o){var i=Nt(Tt(n.prototype),"normalize",this).call(this,e);if(r)if("prepend"===o)this.nodes.length>1?r.raws.before=this.nodes[1].raws.before:delete r.raws.before;else if(this.first!==r){var s,a=t(i);try{for(a.s();!(s=a.n()).done;){s.value.raws.before=r.raws.before}}catch(e){a.e(e)}finally{a.f()}}return i}},{key:"removeChild",value:function(e,t){var r=this.index(e);return!t&&0===r&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[r].raws.before),Nt(Tt(n.prototype),"removeChild",this).call(this,e)}},{key:"toResult",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=new po(new vo,this,e);return t.stringify()}}]),n}(go);mo.registerLazyResult=function(e){po=e},mo.registerProcessor=function(e){vo=e};var yo=mo;mo.default=mo,go.registerRoot(mo);var wo={comma:function(e){return wo.split(e,[","],!0)},space:function(e){return wo.split(e,[" ","\n","\t"])},split:function(e,r,n){var o,i=[],s="",a=!1,u=0,c=!1,l="",f=!1,h=t(e);try{for(h.s();!(o=h.n()).done;){var p=o.value;f?f=!1:"\\"===p?f=!0:c?p===l&&(c=!1):'"'===p||"'"===p?(c=!0,l=p):"("===p?u+=1:")"===p?u>0&&(u-=1):0===u&&r.includes(p)&&(a=!0),a?(""!==s&&i.push(s.trim()),s="",a=!1):s+=p}}catch(e){h.e(e)}finally{h.f()}return(n||""!==s)&&i.push(s.trim()),i}},bo=wo;wo.default=wo;var Co=Nn,Io=bo,ko=function(e){Bt(r,e);var t=_t(r);function r(e){var n;return j(this,r),(n=t.call(this,e)).type="rule",n.nodes||(n.nodes=[]),n}return Z(r,[{key:"selectors",get:function(){return Io.comma(this.selector)},set:function(e){var t=this.selector?this.selector.match(/,\s*/):null,r=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(r)}}]),r}(Co),So=ko;ko.default=ko,Co.registerRule(ko);var xo=Pr,Ao=function(e){var t,r,n,o,i,s,a,u,c,l,f=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},h=e.css.valueOf(),p=f.ignoreErrors,d=h.length,v=0,g=[],m=[];function y(){return v}function w(t){throw e.error("Unclosed "+t,v)}function b(){return 0===m.length&&v>=d}function C(e){if(m.length)return m.pop();if(!(v>=d)){var f=!!e&&e.ignoreUnclosed;switch(t=h.charCodeAt(v)){case Yn:case zn:case Jn:case Hn:case Kn:r=v;do{r+=1,t=h.charCodeAt(r)}while(t===zn||t===Yn||t===Jn||t===Hn||t===Kn);l=["space",h.slice(v,r)],v=r-1;break;case Xn:case Qn:case eo:case to:case oo:case ro:case $n:var y=String.fromCharCode(t);l=[y,y,v];break;case qn:if(u=g.length?g.pop()[1]:"",c=h.charCodeAt(v+1),"url"===u&&c!==Wn&&c!==Zn&&c!==zn&&c!==Yn&&c!==Jn&&c!==Kn&&c!==Hn){r=v;do{if(s=!1,-1===(r=h.indexOf(")",r+1))){if(p||f){r=v;break}w("bracket")}for(a=r;h.charCodeAt(a-1)===Gn;)a-=1,s=!s}while(s);l=["brackets",h.slice(v,r+1),v,r],v=r}else r=h.indexOf(")",v+1),o=h.slice(v,r+1),-1===r||uo.test(o)?l=["(","(",v]:(l=["brackets",o,v,r],v=r);break;case Wn:case Zn:n=t===Wn?"'":'"',r=v;do{if(s=!1,-1===(r=h.indexOf(n,r+1))){if(p||f){r=v+1;break}w("string")}for(a=r;h.charCodeAt(a-1)===Gn;)a-=1,s=!s}while(s);l=["string",h.slice(v,r+1),v,r],v=r;break;case io:so.lastIndex=v+1,so.test(h),r=0===so.lastIndex?h.length-1:so.lastIndex-2,l=["at-word",h.slice(v,r+1),v,r],v=r;break;case Gn:for(r=v,i=!0;h.charCodeAt(r+1)===Gn;)r+=1,i=!i;if(t=h.charCodeAt(r+1),i&&t!==Vn&&t!==zn&&t!==Yn&&t!==Jn&&t!==Hn&&t!==Kn&&(r+=1,co.test(h.charAt(r)))){for(;co.test(h.charAt(r+1));)r+=1;h.charCodeAt(r+1)===zn&&(r+=1)}l=["word",h.slice(v,r+1),v,r],v=r;break;default:t===Vn&&h.charCodeAt(v+1)===no?(0===(r=h.indexOf("*/",v+2)+1)&&(p||f?r=h.length:w("comment")),l=["comment",h.slice(v,r+1),v,r],v=r):(ao.lastIndex=v+1,ao.test(h),r=0===ao.lastIndex?h.length-1:ao.lastIndex-2,l=["word",h.slice(v,r+1),v,r],g.push(l),v=r)}return v++,l}}function I(e){m.push(e)}return{back:I,endOfFile:b,nextToken:C,position:y}},Oo=wn,Ro=ho,Eo=yo,Mo=So,No={empty:!0,space:!0};var To=Nn,Lo=function(){function e(t){j(this,e),this.input=t,this.root=new Eo,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:t,start:{column:1,line:1,offset:0}}}return Z(e,[{key:"atrule",value:function(e){var t,r,n,o=new Ro;o.name=e[1].slice(1),""===o.name&&this.unnamedAtrule(o,e),this.init(o,e[2]);for(var i=!1,s=!1,a=[],u=[];!this.tokenizer.endOfFile();){if("("===(t=(e=this.tokenizer.nextToken())[0])||"["===t?u.push("("===t?")":"]"):"{"===t&&u.length>0?u.push("}"):t===u[u.length-1]&&u.pop(),0===u.length){if(";"===t){o.source.end=this.getPosition(e[2]),o.source.end.offset++,this.semicolon=!0;break}if("{"===t){s=!0;break}if("}"===t){if(a.length>0){for(r=a[n=a.length-1];r&&"space"===r[0];)r=a[--n];r&&(o.source.end=this.getPosition(r[3]||r[2]),o.source.end.offset++)}this.end(e);break}a.push(e)}else a.push(e);if(this.tokenizer.endOfFile()){i=!0;break}}o.raws.between=this.spacesAndCommentsFromEnd(a),a.length?(o.raws.afterName=this.spacesAndCommentsFromStart(a),this.raw(o,"params",a),i&&(e=a[a.length-1],o.source.end=this.getPosition(e[3]||e[2]),o.source.end.offset++,this.spaces=o.raws.between,o.raws.between="")):(o.raws.afterName="",o.params=""),s&&(o.nodes=[],this.current=o)}},{key:"checkMissedSemicolon",value:function(e){var t=this.colon(e);if(!1!==t){for(var r,n=0,o=t-1;o>=0&&("space"===(r=e[o])[0]||2!==(n+=1));o--);throw this.input.error("Missed semicolon","word"===r[0]?r[3]+1:r[2])}}},{key:"colon",value:function(e){var r,n,o,i,s=0,a=t(e.entries());try{for(a.s();!(i=a.n()).done;){var u=_(i.value,2),c=u[0];if("("===(n=(r=u[1])[0])&&(s+=1),")"===n&&(s-=1),0===s&&":"===n){if(o){if("word"===o[0]&&"progid"===o[1])continue;return c}this.doubleColon(r)}o=r}}catch(e){a.e(e)}finally{a.f()}return!1}},{key:"comment",value:function(e){var t=new Oo;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;var r=e[1].slice(2,-2);if(/^\s*$/.test(r))t.text="",t.raws.left=r,t.raws.right="";else{var n=r.match(/^(\s*)([^]*\S)(\s*)$/);t.text=n[2],t.raws.left=n[1],t.raws.right=n[3]}}},{key:"createTokenizer",value:function(){this.tokenizer=Ao(this.input)}},{key:"decl",value:function(e,t){var r=new xo;this.init(r,e[0][2]);var n,o=e[e.length-1];for(";"===o[0]&&(this.semicolon=!0,e.pop()),r.source.end=this.getPosition(o[3]||o[2]||function(e){for(var t=e.length-1;t>=0;t--){var r=e[t],n=r[3]||r[2];if(n)return n}}(e)),r.source.end.offset++;"word"!==e[0][0];)1===e.length&&this.unknownWord(e),r.raws.before+=e.shift()[1];for(r.source.start=this.getPosition(e[0][2]),r.prop="";e.length;){var i=e[0][0];if(":"===i||"space"===i||"comment"===i)break;r.prop+=e.shift()[1]}for(r.raws.between="";e.length;){if(":"===(n=e.shift())[0]){r.raws.between+=n[1];break}"word"===n[0]&&/\w/.test(n[1])&&this.unknownWord([n]),r.raws.between+=n[1]}"_"!==r.prop[0]&&"*"!==r.prop[0]||(r.raws.before+=r.prop[0],r.prop=r.prop.slice(1));for(var s,a=[];e.length&&("space"===(s=e[0][0])||"comment"===s);)a.push(e.shift());this.precheckMissedSemicolon(e);for(var u=e.length-1;u>=0;u--){if("!important"===(n=e[u])[1].toLowerCase()){r.important=!0;var c=this.stringFrom(e,u);" !important"!==(c=this.spacesFromEnd(e)+c)&&(r.raws.important=c);break}if("important"===n[1].toLowerCase()){for(var l=e.slice(0),f="",h=u;h>0;h--){var p=l[h][0];if(0===f.trim().indexOf("!")&&"space"!==p)break;f=l.pop()[1]+f}0===f.trim().indexOf("!")&&(r.important=!0,r.raws.important=f,e=l)}if("space"!==n[0]&&"comment"!==n[0])break}var d=e.some((function(e){return"space"!==e[0]&&"comment"!==e[0]}));d&&(r.raws.between+=a.map((function(e){return e[1]})).join(""),a=[]),this.raw(r,"value",a.concat(e),t),r.value.includes(":")&&!t&&this.checkMissedSemicolon(e)}},{key:"doubleColon",value:function(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})}},{key:"emptyRule",value:function(e){var t=new Mo;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t}},{key:"end",value:function(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)}},{key:"endFile",value:function(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}},{key:"freeSemicolon",value:function(e){if(this.spaces+=e[1],this.current.nodes){var t=this.current.nodes[this.current.nodes.length-1];t&&"rule"===t.type&&!t.raws.ownSemicolon&&(t.raws.ownSemicolon=this.spaces,this.spaces="")}}},{key:"getPosition",value:function(e){var t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}}},{key:"init",value:function(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces="","comment"!==e.type&&(this.semicolon=!1)}},{key:"other",value:function(e){for(var t=!1,r=null,n=!1,o=null,i=[],s=e[1].startsWith("--"),a=[],u=e;u;){if(r=u[0],a.push(u),"("===r||"["===r)o||(o=u),i.push("("===r?")":"]");else if(s&&n&&"{"===r)o||(o=u),i.push("}");else if(0===i.length){if(";"===r){if(n)return void this.decl(a,s);break}if("{"===r)return void this.rule(a);if("}"===r){this.tokenizer.back(a.pop()),t=!0;break}":"===r&&(n=!0)}else r===i[i.length-1]&&(i.pop(),0===i.length&&(o=null));u=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),i.length>0&&this.unclosedBracket(o),t&&n){if(!s)for(;a.length&&("space"===(u=a[a.length-1][0])||"comment"===u);)this.tokenizer.back(a.pop());this.decl(a,s)}else this.unknownWord(a)}},{key:"parse",value:function(){for(var e;!this.tokenizer.endOfFile();)switch((e=this.tokenizer.nextToken())[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e)}this.endFile()}},{key:"precheckMissedSemicolon",value:function(){}},{key:"raw",value:function(e,t,r,n){for(var o,i,s,a,u=r.length,c="",l=!0,f=0;f<u;f+=1)"space"!==(i=(o=r[f])[0])||f!==u-1||n?"comment"===i?(a=r[f-1]?r[f-1][0]:"empty",s=r[f+1]?r[f+1][0]:"empty",No[a]||No[s]||","===c.slice(-1)?l=!1:c+=o[1]):c+=o[1]:l=!1;if(!l){var h=r.reduce((function(e,t){return e+t[1]}),"");e.raws[t]={raw:h,value:c}}e[t]=c}},{key:"rule",value:function(e){e.pop();var t=new Mo;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t}},{key:"spacesAndCommentsFromEnd",value:function(e){for(var t,r="";e.length&&("space"===(t=e[e.length-1][0])||"comment"===t);)r=e.pop()[1]+r;return r}},{key:"spacesAndCommentsFromStart",value:function(e){for(var t,r="";e.length&&("space"===(t=e[0][0])||"comment"===t);)r+=e.shift()[1];return r}},{key:"spacesFromEnd",value:function(e){for(var t="";e.length&&"space"===e[e.length-1][0];)t=e.pop()[1]+t;return t}},{key:"stringFrom",value:function(e,t){for(var r="",n=t;n<e.length;n++)r+=e[n][1];return e.splice(t,e.length-t),r}},{key:"unclosedBlock",value:function(){var e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)}},{key:"unclosedBracket",value:function(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})}},{key:"unexpectedClose",value:function(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})}},{key:"unknownWord",value:function(e){throw this.input.error("Unknown word",{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})}},{key:"unnamedAtrule",value:function(e,t){throw this.input.error("At-rule without name",{offset:t[2]},{offset:t[2]+t[1].length})}}]),e}(),Po=sn;function Fo(e,t){var r=new Po(e,t),n=new Lo(r);try{n.parse()}catch(e){throw e}return n.root}var Bo=Fo;Fo.default=Fo,To.registerParse(Fo);var _o=yr.isClean,Do=yr.my,Uo=mn,jo=Sr,Wo=Nn,Zo=Fn,Go=jn,Vo=Bo,Yo=yo,zo={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},Ko={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},Jo={Once:!0,postcssPlugin:!0,prepare:!0};function Ho(e){return"object"===i(e)&&"function"==typeof e.then}function Xo(e){var t=!1,r=zo[e.type];return"decl"===e.type?t=e.prop.toLowerCase():"atrule"===e.type&&(t=e.name.toLowerCase()),t&&e.append?[r,r+"-"+t,0,r+"Exit",r+"Exit-"+t]:t?[r,r+"-"+t,r+"Exit",r+"Exit-"+t]:e.append?[r,0,r+"Exit"]:[r,r+"Exit"]}function Qo(e){return{eventIndex:0,events:"document"===e.type?["Document",0,"DocumentExit"]:"root"===e.type?["Root",0,"RootExit"]:Xo(e),iterator:0,node:e,visitorIndex:0,visitors:[]}}function qo(e){return e[_o]=!1,e.nodes&&e.nodes.forEach((function(e){return qo(e)})),e}var $o={},ei=function(e){function r(e,t,n){var o,s=this;if(j(this,r),this.stringified=!1,this.processed=!1,"object"!==i(t)||null===t||"root"!==t.type&&"document"!==t.type)if(t instanceof r||t instanceof Go)o=qo(t.root),t.map&&(void 0===n.map&&(n.map={}),n.map.inline||(n.map.inline=!1),n.map.prev=t.map);else{var a=Vo;n.syntax&&(a=n.syntax.parse),n.parser&&(a=n.parser),a.parse&&(a=a.parse);try{o=a(t,n)}catch(e){this.processed=!0,this.error=e}o&&!o[Do]&&Wo.rebuild(o)}else o=qo(t);this.result=new Go(e,o,n),this.helpers=Lt(Lt({},$o),{},{postcss:$o,result:this.result}),this.plugins=this.processor.plugins.map((function(e){return"object"===i(e)&&e.prepare?Lt(Lt({},e),e.prepare(s.result)):e}))}var n;return Z(r,[{key:"async",value:function(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}},{key:"catch",value:function(e){return this.async().catch(e)}},{key:"finally",value:function(e){return this.async().then(e,e)}},{key:"getAsyncError",value:function(){throw new Error("Use process(css).then(cb) to work with async plugins")}},{key:"handleError",value:function(e,t){var r=this.result.lastPlugin;try{if(t&&t.addToError(e),this.error=e,"CssSyntaxError"!==e.name||e.plugin){if(r.postcssVersion);}else e.plugin=r.postcssPlugin,e.setMessage()}catch(e){console&&console.error&&console.error(e)}return e}},{key:"prepareVisitors",value:function(){var e=this;this.listeners={};var r,n=function(t,r,n){e.listeners[r]||(e.listeners[r]=[]),e.listeners[r].push([t,n])},o=t(this.plugins);try{for(o.s();!(r=o.n()).done;){var s=r.value;if("object"===i(s))for(var a in s){if(!Ko[a]&&/^[A-Z]/.test(a))throw new Error("Unknown event ".concat(a," in ").concat(s.postcssPlugin,". Try to update PostCSS (").concat(this.processor.version," now)."));if(!Jo[a])if("object"===i(s[a]))for(var u in s[a])n(s,"*"===u?a:a+"-"+u.toLowerCase(),s[a][u]);else"function"==typeof s[a]&&n(s,a,s[a])}}}catch(e){o.e(e)}finally{o.f()}this.hasListener=Object.keys(this.listeners).length>0}},{key:"runAsync",value:(n=Et(Je().mark((function e(){var r,n,o,i,s,a,u,c,l,f,h=this;return Je().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:this.plugin=0,r=0;case 2:if(!(r<this.plugins.length)){e.next=17;break}if(n=this.plugins[r],!Ho(o=this.runOnRoot(n))){e.next=14;break}return e.prev=6,e.next=9,o;case 9:e.next=14;break;case 11:throw e.prev=11,e.t0=e.catch(6),this.handleError(e.t0);case 14:r++,e.next=2;break;case 17:if(this.prepareVisitors(),!this.hasListener){e.next=56;break}i=this.result.root;case 20:if(i[_o]){e.next=39;break}i[_o]=!0,s=[Qo(i)];case 23:if(!(s.length>0)){e.next=37;break}if(!Ho(a=this.visitTick(s))){e.next=35;break}return e.prev=26,e.next=29,a;case 29:e.next=35;break;case 31:throw e.prev=31,e.t1=e.catch(26),u=s[s.length-1].node,this.handleError(e.t1,u);case 35:e.next=23;break;case 37:e.next=20;break;case 39:if(!this.listeners.OnceExit){e.next=56;break}c=t(this.listeners.OnceExit),e.prev=41,f=Je().mark((function e(){var t,r,n,o;return Je().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=_(l.value,2),r=t[0],n=t[1],h.result.lastPlugin=r,e.prev=2,"document"!==i.type){e.next=9;break}return o=i.nodes.map((function(e){return n(e,h.helpers)})),e.next=7,Promise.all(o);case 7:e.next=11;break;case 9:return e.next=11,n(i,h.helpers);case 11:e.next=16;break;case 13:throw e.prev=13,e.t0=e.catch(2),h.handleError(e.t0);case 16:case"end":return e.stop()}}),e,null,[[2,13]])})),c.s();case 44:if((l=c.n()).done){e.next=48;break}return e.delegateYield(f(),"t2",46);case 46:e.next=44;break;case 48:e.next=53;break;case 50:e.prev=50,e.t3=e.catch(41),c.e(e.t3);case 53:return e.prev=53,c.f(),e.finish(53);case 56:return this.processed=!0,e.abrupt("return",this.stringify());case 58:case"end":return e.stop()}}),e,this,[[6,11],[26,31],[41,50,53,56]])}))),function(){return n.apply(this,arguments)})},{key:"runOnRoot",value:function(e){var t=this;this.result.lastPlugin=e;try{if("object"===i(e)&&e.Once){if("document"===this.result.root.type){var r=this.result.root.nodes.map((function(r){return e.Once(r,t.helpers)}));return Ho(r[0])?Promise.all(r):r}return e.Once(this.result.root,this.helpers)}if("function"==typeof e)return e(this.result.root,this.result)}catch(e){throw this.handleError(e)}}},{key:"stringify",value:function(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();var e=this.result.opts,t=jo;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);var r=new Uo(t,this.result.root,this.result.opts).generate();return this.result.css=r[0],this.result.map=r[1],this.result}},{key:"sync",value:function(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();var e,r=t(this.plugins);try{for(r.s();!(e=r.n()).done;){var n=e.value;if(Ho(this.runOnRoot(n)))throw this.getAsyncError()}}catch(e){r.e(e)}finally{r.f()}if(this.prepareVisitors(),this.hasListener){for(var o=this.result.root;!o[_o];)o[_o]=!0,this.walkSync(o);if(this.listeners.OnceExit)if("document"===o.type){var i,s=t(o.nodes);try{for(s.s();!(i=s.n()).done;){var a=i.value;this.visitSync(this.listeners.OnceExit,a)}}catch(e){s.e(e)}finally{s.f()}}else this.visitSync(this.listeners.OnceExit,o)}return this.result}},{key:"then",value:function(e,t){return this.async().then(e,t)}},{key:"toString",value:function(){return this.css}},{key:"visitSync",value:function(e,r){var n,o=t(e);try{for(o.s();!(n=o.n()).done;){var i=_(n.value,2),s=i[0],a=i[1];this.result.lastPlugin=s;var u=void 0;try{u=a(r,this.helpers)}catch(e){throw this.handleError(e,r.proxyOf)}if("root"!==r.type&&"document"!==r.type&&!r.parent)return!0;if(Ho(u))throw this.getAsyncError()}}catch(e){o.e(e)}finally{o.f()}}},{key:"visitTick",value:function(e){var t=e[e.length-1],r=t.node,n=t.visitors;if("root"===r.type||"document"===r.type||r.parent){if(n.length>0&&t.visitorIndex<n.length){var o=_(n[t.visitorIndex],2),i=o[0],s=o[1];t.visitorIndex+=1,t.visitorIndex===n.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=i;try{return s(r.toProxy(),this.helpers)}catch(e){throw this.handleError(e,r)}}if(0!==t.iterator){for(var a,u=t.iterator;a=r.nodes[r.indexes[u]];)if(r.indexes[u]+=1,!a[_o])return a[_o]=!0,void e.push(Qo(a));t.iterator=0,delete r.indexes[u]}for(var c=t.events;t.eventIndex<c.length;){var l=c[t.eventIndex];if(t.eventIndex+=1,0===l)return void(r.nodes&&r.nodes.length&&(r[_o]=!0,t.iterator=r.getIterator()));if(this.listeners[l])return void(t.visitors=this.listeners[l])}e.pop()}else e.pop()}},{key:"walkSync",value:function(e){var r=this;e[_o]=!0;var n,o=Xo(e),i=t(o);try{for(i.s();!(n=i.n()).done;){var s=n.value;if(0===s)e.nodes&&e.each((function(e){e[_o]||r.walkSync(e)}));else{var a=this.listeners[s];if(a&&this.visitSync(a,e.toProxy()))return}}}catch(e){i.e(e)}finally{i.f()}}},{key:"warnings",value:function(){return this.sync().warnings()}},{key:"content",get:function(){return this.stringify().content}},{key:"css",get:function(){return this.stringify().css}},{key:"map",get:function(){return this.stringify().map}},{key:"messages",get:function(){return this.sync().messages}},{key:"opts",get:function(){return this.result.opts}},{key:"processor",get:function(){return this.result.processor}},{key:"root",get:function(){return this.sync().root}},{key:e,get:function(){return"LazyResult"}}]),r}(Symbol.toStringTag);ei.registerPostcss=function(e){$o=e};var ti=ei;ei.default=ei,Yo.registerLazyResult(ei),Zo.registerLazyResult(ei);var ri=mn,ni=Sr,oi=Bo,ii=jn,si=function(e){function t(e,r,n){var o;j(this,t),r=r.toString(),this.stringified=!1,this._processor=e,this._css=r,this._opts=n,this._map=void 0;var i=ni;this.result=new ii(this._processor,o,this._opts),this.result.css=r;var s=this;Object.defineProperty(this.result,"root",{get:function(){return s.root}});var a=new ri(i,o,this._opts,r);if(a.isMap()){var u=a.generate(),c=_(u,2),l=c[0],f=c[1];l&&(this.result.css=l),f&&(this.result.map=f)}else a.clearAnnotation(),this.result.css=a.css}return Z(t,[{key:"async",value:function(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}},{key:"catch",value:function(e){return this.async().catch(e)}},{key:"finally",value:function(e){return this.async().then(e,e)}},{key:"sync",value:function(){if(this.error)throw this.error;return this.result}},{key:"then",value:function(e,t){return this.async().then(e,t)}},{key:"toString",value:function(){return this._css}},{key:"warnings",value:function(){return[]}},{key:"content",get:function(){return this.result.css}},{key:"css",get:function(){return this.result.css}},{key:"map",get:function(){return this.result.map}},{key:"messages",get:function(){return[]}},{key:"opts",get:function(){return this.result.opts}},{key:"processor",get:function(){return this.result.processor}},{key:"root",get:function(){if(this._root)return this._root;var e,t=oi;try{e=t(this._css,this._opts)}catch(e){this.error=e}if(this.error)throw this.error;return this._root=e,e}},{key:e,get:function(){return"NoWorkResult"}}]),t}(Symbol.toStringTag),ai=si;si.default=si;var ui=ai,ci=ti,li=Fn,fi=yo,hi=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];j(this,e),this.version="8.4.38",this.plugins=this.normalize(t)}return Z(e,[{key:"normalize",value:function(e){var r,n=[],o=t(e);try{for(o.s();!(r=o.n()).done;){var s=r.value;if(!0===s.postcss?s=s():s.postcss&&(s=s.postcss),"object"===i(s)&&Array.isArray(s.plugins))n=n.concat(s.plugins);else if("object"===i(s)&&s.postcssPlugin)n.push(s);else if("function"==typeof s)n.push(s);else{if("object"!==i(s)||!s.parse&&!s.stringify)throw new Error(s+" is not a PostCSS plugin")}}}catch(e){o.e(e)}finally{o.f()}return n}},{key:"process",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.plugins.length||t.parser||t.stringifier||t.syntax?new ci(this,e,t):new ui(this,e,t)}},{key:"use",value:function(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}}]),e}(),pi=hi;hi.default=hi,fi.registerProcessor(hi),li.registerProcessor(hi);var di=Pr,vi=Vr,gi=wn,mi=ho,yi=sn,wi=yo,bi=So;function Ci(e,r){if(Array.isArray(e))return e.map((function(e){return Ci(e)}));var n=e.inputs,o=Rt(e,jt);if(n){r=[];var i,s=t(n);try{for(s.s();!(i=s.n()).done;){var a=i.value,u=Lt(Lt({},a),{},{__proto__:yi.prototype});u.map&&(u.map=Lt(Lt({},u.map),{},{__proto__:vi.prototype})),r.push(u)}}catch(e){s.e(e)}finally{s.f()}}if(o.nodes&&(o.nodes=e.nodes.map((function(e){return Ci(e,r)}))),o.source){var c=o.source,l=c.inputId,f=Rt(c,Wt);o.source=f,null!=l&&(o.source.input=r[l])}if("root"===o.type)return new wi(o);if("decl"===o.type)return new di(o);if("rule"===o.type)return new bi(o);if("comment"===o.type)return new gi(o);if("atrule"===o.type)return new mi(o);throw new Error("Unknown node type: "+e.type)}var Ii=Ci;Ci.default=Ci;var ki=mr,Si=Pr,xi=ti,Ai=Nn,Oi=pi,Ri=Sr,Ei=Ii,Mi=Fn,Ni=_n,Ti=wn,Li=ho,Pi=jn,Fi=sn,Bi=Bo,_i=bo,Di=So,Ui=yo,ji=Tr;function Wi(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return 1===t.length&&Array.isArray(t[0])&&(t=t[0]),new Oi(t)}Wi.plugin=function(e,t){var r,n=!1;function o(){console&&console.warn&&!n&&(n=!0,console.warn(e+": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"),{NODE_ENV:"production",PUBLIC_PATH:"/"}.LANG&&{NODE_ENV:"production",PUBLIC_PATH:"/"}.LANG.startsWith("cn")&&console.warn(e+": 里面 postcss.plugin 被弃用. 迁移指南:\nhttps://www.w3ctech.com/topic/2226"));var r=t.apply(void 0,arguments);return r.postcssPlugin=e,r.postcssVersion=(new Oi).version,r}return Object.defineProperty(o,"postcss",{get:function(){return r||(r=o()),r}}),o.process=function(e,t,r){return Wi([o(r)]).process(e,t)},o},Wi.stringify=Ri,Wi.parse=Bi,Wi.fromJSON=Ei,Wi.list=_i,Wi.comment=function(e){return new Ti(e)},Wi.atRule=function(e){return new Li(e)},Wi.decl=function(e){return new Si(e)},Wi.rule=function(e){return new Di(e)},Wi.root=function(e){return new Ui(e)},Wi.document=function(e){return new Mi(e)},Wi.CssSyntaxError=ki,Wi.Declaration=Si,Wi.Container=Ai,Wi.Processor=Oi,Wi.Document=Mi,Wi.Comment=Ti,Wi.Warning=Ni,Wi.AtRule=Li,Wi.Result=Pi,Wi.Input=Fi,Wi.Rule=Di,Wi.Root=Ui,Wi.Node=ji,xi.registerPostcss(Wi);var Zi=Wi;Wi.default=Wi;var Gi=ar(Zi);Gi.stringify,Gi.fromJSON,Gi.plugin,Gi.parse,Gi.list,Gi.document,Gi.comment,Gi.atRule,Gi.rule,Gi.decl,Gi.root,Gi.CssSyntaxError,Gi.Declaration,Gi.Container,Gi.Processor,Gi.Document,Gi.Comment,Gi.Warning,Gi.AtRule,Gi.Result,Gi.Input,Gi.Rule,Gi.Root,Gi.Node;var Vi=Object.defineProperty,Yi=function(e,t,r){return function(e,t,r){return t in e?Vi(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r}(e,"symbol"!==i(t)?t+"":t,r)};function zi(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Ki(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var r=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})})),r}var Ji={exports:{}},Hi=String,Xi=function(){return{isColorSupported:!1,reset:Hi,bold:Hi,dim:Hi,italic:Hi,underline:Hi,inverse:Hi,hidden:Hi,strikethrough:Hi,black:Hi,red:Hi,green:Hi,yellow:Hi,blue:Hi,magenta:Hi,cyan:Hi,white:Hi,gray:Hi,bgBlack:Hi,bgRed:Hi,bgGreen:Hi,bgYellow:Hi,bgBlue:Hi,bgMagenta:Hi,bgCyan:Hi,bgWhite:Hi}};Ji.exports=Xi(),Ji.exports.createColors=Xi;var Qi=Ji.exports,qi=Ki(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"}))),$i=Qi,es=qi,ts=function(e){Bt(r,e);var t=_t(r);function r(e,n,o,i,s,a){var u;return j(this,r),(u=t.call(this,e)).name="CssSyntaxError",u.reason=e,s&&(u.file=s),i&&(u.source=i),a&&(u.plugin=a),void 0!==n&&void 0!==o&&("number"==typeof n?(u.line=n,u.column=o):(u.line=n.line,u.column=n.column,u.endLine=o.line,u.endColumn=o.column)),u.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(Ft(u),r),u}return Z(r,[{key:"setMessage",value:function(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",void 0!==this.line&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}},{key:"showSourceCode",value:function(e){var t=this;if(!this.source)return"";var r=this.source;null==e&&(e=$i.isColorSupported),es&&e&&(r=es(r));var n,o,i=r.split(/\r?\n/),s=Math.max(this.line-3,0),a=Math.min(this.line+2,i.length),u=String(a).length;if(e){var c=$i.createColors(!0),l=c.bold,f=c.gray,h=c.red;n=function(e){return l(h(e))},o=function(e){return f(e)}}else n=o=function(e){return e};return i.slice(s,a).map((function(e,r){var i=s+1+r,a=" "+(" "+i).slice(-u)+" | ";if(i===t.line){var c=o(a.replace(/\d/g," "))+e.slice(0,t.column-1).replace(/[^\t]/g," ");return n(">")+o(a)+e+"\n "+c+n("^")}return" "+o(a)+e})).join("\n")}},{key:"toString",value:function(){var e=this.showSourceCode();return e&&(e="\n\n"+e+"\n"),this.name+": "+this.message+e}}]),r}(Dt(Error)),rs=ts;ts.default=ts;var ns={};ns.isClean=Symbol("isClean"),ns.my=Symbol("my");var os={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};var is=function(){function e(t){j(this,e),this.builder=t}return Z(e,[{key:"atrule",value:function(e,t){var r="@"+e.name,n=e.params?this.rawValue(e,"params"):"";if(void 0!==e.raws.afterName?r+=e.raws.afterName:n&&(r+=" "),e.nodes)this.block(e,r+n);else{var o=(e.raws.between||"")+(t?";":"");this.builder(r+n+o,e)}}},{key:"beforeAfter",value:function(e,t){var r;r="decl"===e.type?this.raw(e,null,"beforeDecl"):"comment"===e.type?this.raw(e,null,"beforeComment"):"before"===t?this.raw(e,null,"beforeRule"):this.raw(e,null,"beforeClose");for(var n=e.parent,o=0;n&&"root"!==n.type;)o+=1,n=n.parent;if(r.includes("\n")){var i=this.raw(e,null,"indent");if(i.length)for(var s=0;s<o;s++)r+=i}return r}},{key:"block",value:function(e,t){var r,n=this.raw(e,"between","beforeOpen");this.builder(t+n+"{",e,"start"),e.nodes&&e.nodes.length?(this.body(e),r=this.raw(e,"after")):r=this.raw(e,"after","emptyBody"),r&&this.builder(r),this.builder("}",e,"end")}},{key:"body",value:function(e){for(var t=e.nodes.length-1;t>0&&"comment"===e.nodes[t].type;)t-=1;for(var r=this.raw(e,"semicolon"),n=0;n<e.nodes.length;n++){var o=e.nodes[n],i=this.raw(o,"before");i&&this.builder(i),this.stringify(o,t!==n||r)}}},{key:"comment",value:function(e){var t=this.raw(e,"left","commentLeft"),r=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+r+"*/",e)}},{key:"decl",value:function(e,t){var r=this.raw(e,"between","colon"),n=e.prop+r+this.rawValue(e,"value");e.important&&(n+=e.raws.important||" !important"),t&&(n+=";"),this.builder(n,e)}},{key:"document",value:function(e){this.body(e)}},{key:"raw",value:function(e,t,r){var n;if(r||(r=t),t&&void 0!==(n=e.raws[t]))return n;var o=e.parent;if("before"===r){if(!o||"root"===o.type&&o.first===e)return"";if(o&&"document"===o.type)return""}if(!o)return os[r];var i=e.root();if(i.rawCache||(i.rawCache={}),void 0!==i.rawCache[r])return i.rawCache[r];if("before"===r||"after"===r)return this.beforeAfter(e,r);var s,a="raw"+((s=r)[0].toUpperCase()+s.slice(1));return this[a]?n=this[a](i,e):i.walk((function(e){if(void 0!==(n=e.raws[t]))return!1})),void 0===n&&(n=os[r]),i.rawCache[r]=n,n}},{key:"rawBeforeClose",value:function(e){var t;return e.walk((function(e){if(e.nodes&&e.nodes.length>0&&void 0!==e.raws.after)return(t=e.raws.after).includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1})),t&&(t=t.replace(/\S/g,"")),t}},{key:"rawBeforeComment",value:function(e,t){var r;return e.walkComments((function(e){if(void 0!==e.raws.before)return(r=e.raws.before).includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1})),void 0===r?r=this.raw(t,null,"beforeDecl"):r&&(r=r.replace(/\S/g,"")),r}},{key:"rawBeforeDecl",value:function(e,t){var r;return e.walkDecls((function(e){if(void 0!==e.raws.before)return(r=e.raws.before).includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1})),void 0===r?r=this.raw(t,null,"beforeRule"):r&&(r=r.replace(/\S/g,"")),r}},{key:"rawBeforeOpen",value:function(e){var t;return e.walk((function(e){if("decl"!==e.type&&void 0!==(t=e.raws.between))return!1})),t}},{key:"rawBeforeRule",value:function(e){var t;return e.walk((function(r){if(r.nodes&&(r.parent!==e||e.first!==r)&&void 0!==r.raws.before)return(t=r.raws.before).includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1})),t&&(t=t.replace(/\S/g,"")),t}},{key:"rawColon",value:function(e){var t;return e.walkDecls((function(e){if(void 0!==e.raws.between)return t=e.raws.between.replace(/[^\s:]/g,""),!1})),t}},{key:"rawEmptyBody",value:function(e){var t;return e.walk((function(e){if(e.nodes&&0===e.nodes.length&&void 0!==(t=e.raws.after))return!1})),t}},{key:"rawIndent",value:function(e){return e.raws.indent?e.raws.indent:(e.walk((function(r){var n=r.parent;if(n&&n!==e&&n.parent&&n.parent===e&&void 0!==r.raws.before){var o=r.raws.before.split("\n");return t=(t=o[o.length-1]).replace(/\S/g,""),!1}})),t);var t}},{key:"rawSemicolon",value:function(e){var t;return e.walk((function(e){if(e.nodes&&e.nodes.length&&"decl"===e.last.type&&void 0!==(t=e.raws.semicolon))return!1})),t}},{key:"rawValue",value:function(e,t){var r=e[t],n=e.raws[t];return n&&n.value===r?n.raw:r}},{key:"root",value:function(e){this.body(e),e.raws.after&&this.builder(e.raws.after)}},{key:"rule",value:function(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")}},{key:"stringify",value:function(e,t){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)}}]),e}(),ss=is;is.default=is;var as=ss;function us(e,t){new as(t).stringify(e)}var cs=us;us.default=us;var ls=ns.isClean,fs=ns.my,hs=rs,ps=ss,ds=cs;function vs(e,t){var r=new e.constructor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&"proxyCache"!==n){var o=e[n],s=i(o);"parent"===n&&"object"===s?t&&(r[n]=t):"source"===n?r[n]=o:Array.isArray(o)?r[n]=o.map((function(e){return vs(e,r)})):("object"===s&&null!==o&&(o=vs(o)),r[n]=o)}return r}var gs=function(){function e(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};for(var n in j(this,e),this.raws={},this[ls]=!1,this[fs]=!0,r)if("nodes"===n){this.nodes=[];var o,i=t(r[n]);try{for(i.s();!(o=i.n()).done;){var s=o.value;"function"==typeof s.clone?this.append(s.clone()):this.append(s)}}catch(e){i.e(e)}finally{i.f()}}else this[n]=r[n]}return Z(e,[{key:"addToError",value:function(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){var t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,"$&".concat(t.input.from,":").concat(t.start.line,":").concat(t.start.column,"$&"))}return e}},{key:"after",value:function(e){return this.parent.insertAfter(this,e),this}},{key:"assign",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};for(var t in e)this[t]=e[t];return this}},{key:"before",value:function(e){return this.parent.insertBefore(this,e),this}},{key:"cleanRaws",value:function(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between}},{key:"clone",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=vs(this);for(var r in e)t[r]=e[r];return t}},{key:"cloneAfter",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this.clone(e);return this.parent.insertAfter(this,t),t}},{key:"cloneBefore",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this.clone(e);return this.parent.insertBefore(this,t),t}},{key:"error",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.source){var r=this.rangeBy(t),n=r.end,o=r.start;return this.source.input.error(e,{column:o.column,line:o.line},{column:n.column,line:n.line},t)}return new hs(e)}},{key:"getProxyProcessor",value:function(){return{get:function(e,t){return"proxyOf"===t?e:"root"===t?function(){return e.root().toProxy()}:e[t]},set:function(e,t,r){return e[t]===r||(e[t]=r,"prop"!==t&&"value"!==t&&"name"!==t&&"params"!==t&&"important"!==t&&"text"!==t||e.markDirty()),!0}}}},{key:"markDirty",value:function(){if(this[ls]){this[ls]=!1;for(var e=this;e=e.parent;)e[ls]=!1}}},{key:"next",value:function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e+1]}}},{key:"positionBy",value:function(e,t){var r=this.source.start;if(e.index)r=this.positionInside(e.index,t);else if(e.word){var n=(t=this.toString()).indexOf(e.word);-1!==n&&(r=this.positionInside(n,t))}return r}},{key:"positionInside",value:function(e,t){for(var r=t||this.toString(),n=this.source.start.column,o=this.source.start.line,i=0;i<e;i++)"\n"===r[i]?(n=1,o+=1):n+=1;return{column:n,line:o}}},{key:"prev",value:function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e-1]}}},{key:"rangeBy",value:function(e){var t={column:this.source.start.column,line:this.source.start.line},r=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:t.column+1,line:t.line};if(e.word){var n=this.toString(),o=n.indexOf(e.word);-1!==o&&(t=this.positionInside(o,n),r=this.positionInside(o+e.word.length,n))}else e.start?t={column:e.start.column,line:e.start.line}:e.index&&(t=this.positionInside(e.index)),e.end?r={column:e.end.column,line:e.end.line}:"number"==typeof e.endIndex?r=this.positionInside(e.endIndex):e.index&&(r=this.positionInside(e.index+1));return(r.line<t.line||r.line===t.line&&r.column<=t.column)&&(r={column:t.column+1,line:t.line}),{end:r,start:t}}},{key:"raw",value:function(e,t){return(new ps).raw(this,e,t)}},{key:"remove",value:function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}},{key:"replaceWith",value:function(){if(this.parent){for(var e=this,t=!1,r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];for(var i=0,s=n;i<s.length;i++){var a=s[i];a===this?t=!0:t?(this.parent.insertAfter(e,a),e=a):this.parent.insertBefore(e,a)}t||this.remove()}return this}},{key:"root",value:function(){for(var e=this;e.parent&&"document"!==e.parent.type;)e=e.parent;return e}},{key:"toJSON",value:function(e,t){var r={},n=null==t;t=t||new Map;var o=0;for(var s in this)if(Object.prototype.hasOwnProperty.call(this,s)&&"parent"!==s&&"proxyCache"!==s){var a=this[s];if(Array.isArray(a))r[s]=a.map((function(e){return"object"===i(e)&&e.toJSON?e.toJSON(null,t):e}));else if("object"===i(a)&&a.toJSON)r[s]=a.toJSON(null,t);else if("source"===s){var u=t.get(a.input);null==u&&(u=o,t.set(a.input,o),o++),r[s]={end:a.end,inputId:u,start:a.start}}else r[s]=a}return n&&(r.inputs=U(t.keys()).map((function(e){return e.toJSON()}))),r}},{key:"toProxy",value:function(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}},{key:"toString",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ds;e.stringify&&(e=e.stringify);var t="";return e(this,(function(e){t+=e})),t}},{key:"warn",value:function(e,t,r){var n={node:this};for(var o in r)n[o]=r[o];return e.warn(t,n)}},{key:"proxyOf",get:function(){return this}}]),e}(),ms=gs;gs.default=gs;var ys=function(e){Bt(r,e);var t=_t(r);function r(e){var n;return j(this,r),e&&void 0!==e.value&&"string"!=typeof e.value&&(e=Lt(Lt({},e),{},{value:String(e.value)})),(n=t.call(this,e)).type="decl",n}return Z(r,[{key:"variable",get:function(){return this.prop.startsWith("--")||"$"===this.prop[0]}}]),r}(ms),ws=ys;ys.default=ys;var bs="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",Cs=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:21,t="",r=e;r--;)t+=bs[64*Math.random()|0];return t},Is=qi.SourceMapConsumer,ks=qi.SourceMapGenerator,Ss=qi.existsSync,xs=qi.readFileSync,As=qi.dirname,Os=qi.join;var Rs=function(){function e(t,r){if(j(this,e),!1!==r.map){this.loadAnnotation(t),this.inline=this.startWith(this.annotation,"data:");var n=r.map?r.map.prev:void 0,o=this.loadMap(r.from,n);!this.mapFile&&r.from&&(this.mapFile=r.from),this.mapFile&&(this.root=As(this.mapFile)),o&&(this.text=o)}}return Z(e,[{key:"consumer",value:function(){return this.consumerCache||(this.consumerCache=new Is(this.text)),this.consumerCache}},{key:"decodeInline",value:function(e){var t;if(/^data:application\/json;charset=utf-?8,/.test(e)||/^data:application\/json,/.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(/^data:application\/json;charset=utf-?8;base64,/.test(e)||/^data:application\/json;base64,/.test(e))return t=e.substr(RegExp.lastMatch.length),Ut?Ut.from(t,"base64").toString():window.atob(t);var r=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+r)}},{key:"getAnnotationURL",value:function(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}},{key:"isMap",value:function(e){return"object"===i(e)&&("string"==typeof e.mappings||"string"==typeof e._mappings||Array.isArray(e.sections))}},{key:"loadAnnotation",value:function(e){var t=e.match(/\/\*\s*# sourceMappingURL=/gm);if(t){var r=e.lastIndexOf(t.pop()),n=e.indexOf("*/",r);r>-1&&n>-1&&(this.annotation=this.getAnnotationURL(e.substring(r,n)))}}},{key:"loadFile",value:function(e){if(this.root=As(e),Ss(e))return this.mapFile=e,xs(e,"utf-8").toString().trim()}},{key:"loadMap",value:function(e,t){if(!1===t)return!1;if(t){if("string"==typeof t)return t;if("function"!=typeof t){if(t instanceof Is)return ks.fromSourceMap(t).toString();if(t instanceof ks)return t.toString();if(this.isMap(t))return JSON.stringify(t);throw new Error("Unsupported previous source map format: "+t.toString())}var r=t(e);if(r){var n=this.loadFile(r);if(!n)throw new Error("Unable to load previous source map: "+r.toString());return n}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){var o=this.annotation;return e&&(o=Os(As(e),o)),this.loadFile(o)}}}},{key:"startWith",value:function(e,t){return!!e&&e.substr(0,t.length)===t}},{key:"withContent",value:function(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}}]),e}(),Es=Rs;Rs.default=Rs;var Ms=qi.SourceMapConsumer,Ns=qi.SourceMapGenerator,Ts=qi.fileURLToPath,Ls=qi.pathToFileURL,Ps=qi.isAbsolute,Fs=qi.resolve,Bs=Cs,_s=qi,Ds=rs,Us=Es,js=Symbol("fromOffsetCache"),Ws=Boolean(Ms&&Ns),Zs=Boolean(Fs&&Ps),Gs=function(){function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(j(this,e),null==t||"object"===i(t)&&!t.toString)throw new Error("PostCSS received ".concat(t," instead of CSS string"));if(this.css=t.toString(),"\ufeff"===this.css[0]||""===this.css[0]?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,r.from&&(!Zs||/^\w+:\/\//.test(r.from)||Ps(r.from)?this.file=r.from:this.file=Fs(r.from)),Zs&&Ws){var n=new Us(this.css,r);if(n.text){this.map=n;var o=n.consumer().file;!this.file&&o&&(this.file=this.mapResolve(o))}}this.file||(this.id="<input css "+Bs(6)+">"),this.map&&(this.map.file=this.from)}return Z(e,[{key:"error",value:function(e,t,r){var n,o,s,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(t&&"object"===i(t)){var u=t,c=r;if("number"==typeof u.offset){var l=this.fromOffset(u.offset);t=l.line,r=l.col}else t=u.line,r=u.column;if("number"==typeof c.offset){var f=this.fromOffset(c.offset);o=f.line,s=f.col}else o=c.line,s=c.column}else if(!r){var h=this.fromOffset(t);t=h.line,r=h.col}var p=this.origin(t,r,o,s);return(n=p?new Ds(e,void 0===p.endLine?p.line:{column:p.column,line:p.line},void 0===p.endLine?p.column:{column:p.endColumn,line:p.endLine},p.source,p.file,a.plugin):new Ds(e,void 0===o?t:{column:r,line:t},void 0===o?r:{column:s,line:o},this.css,this.file,a.plugin)).input={column:r,endColumn:s,endLine:o,line:t,source:this.css},this.file&&(Ls&&(n.input.url=Ls(this.file).toString()),n.input.file=this.file),n}},{key:"fromOffset",value:function(e){var t;if(this[js])t=this[js];else{var r=this.css.split("\n");t=new Array(r.length);for(var n=0,o=0,i=r.length;o<i;o++)t[o]=n,n+=r[o].length+1;this[js]=t}var s=0;if(e>=t[t.length-1])s=t.length-1;else for(var a,u=t.length-2;s<u;)if(e<t[a=s+(u-s>>1)])u=a-1;else{if(!(e>=t[a+1])){s=a;break}s=a+1}return{col:e-t[s]+1,line:s+1}}},{key:"mapResolve",value:function(e){return/^\w+:\/\//.test(e)?e:Fs(this.map.consumer().sourceRoot||this.map.root||".",e)}},{key:"origin",value:function(e,t,r,n){if(!this.map)return!1;var o,i,s=this.map.consumer(),a=s.originalPositionFor({column:t,line:e});if(!a.source)return!1;"number"==typeof r&&(o=s.originalPositionFor({column:n,line:r})),i=Ps(a.source)?Ls(a.source):new URL(a.source,this.map.consumer().sourceRoot||Ls(this.map.mapFile));var u={column:a.column,endColumn:o&&o.column,endLine:o&&o.line,line:a.line,url:i.toString()};if("file:"===i.protocol){if(!Ts)throw new Error("file: protocol is not available in this PostCSS build");u.file=Ts(i)}var c=s.sourceContentFor(a.source);return c&&(u.source=c),u}},{key:"toJSON",value:function(){for(var e={},t=0,r=["hasBOM","css","file","id"];t<r.length;t++){var n=r[t];null!=this[n]&&(e[n]=this[n])}return this.map&&(e.map=Lt({},this.map),e.map.consumerCache&&(e.map.consumerCache=void 0)),e}},{key:"from",get:function(){return this.file||this.id}}]),e}(),Vs=Gs;Gs.default=Gs,_s&&_s.registerInput&&_s.registerInput(Gs);var Ys=qi.SourceMapConsumer,zs=qi.SourceMapGenerator,Ks=qi.dirname,Js=qi.relative,Hs=qi.resolve,Xs=qi.sep,Qs=qi.pathToFileURL,qs=Vs,$s=Boolean(Ys&&zs),ea=Boolean(Ks&&Hs&&Js&&Xs),ta=function(){function e(t,r,n,o){j(this,e),this.stringify=t,this.mapOpts=n.map||{},this.root=r,this.opts=n,this.css=o,this.originalCSS=o,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}return Z(e,[{key:"addAnnotation",value:function(){var e;e=this.isInline()?"data:application/json;base64,"+this.toBase64(this.map.toString()):"string"==typeof this.mapOpts.annotation?this.mapOpts.annotation:"function"==typeof this.mapOpts.annotation?this.mapOpts.annotation(this.opts.to,this.root):this.outputFile()+".map";var t="\n";this.css.includes("\r\n")&&(t="\r\n"),this.css+=t+"/*# sourceMappingURL="+e+" */"}},{key:"applyPrevMaps",value:function(){var e,r=t(this.previous());try{for(r.s();!(e=r.n()).done;){var n=e.value,o=this.toUrl(this.path(n.file)),i=n.root||Ks(n.file),s=void 0;!1===this.mapOpts.sourcesContent?(s=new Ys(n.text)).sourcesContent&&(s.sourcesContent=null):s=n.consumer(),this.map.applySourceMap(s,o,this.toUrl(this.path(i)))}}catch(e){r.e(e)}finally{r.f()}}},{key:"clearAnnotation",value:function(){if(!1!==this.mapOpts.annotation)if(this.root)for(var e,t=this.root.nodes.length-1;t>=0;t--)"comment"===(e=this.root.nodes[t]).type&&0===e.text.indexOf("# sourceMappingURL=")&&this.root.removeChild(t);else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))}},{key:"generate",value:function(){if(this.clearAnnotation(),ea&&$s&&this.isMap())return this.generateMap();var e="";return this.stringify(this.root,(function(t){e+=t})),[e]}},{key:"generateMap",value:function(){if(this.root)this.generateString();else if(1===this.previous().length){var e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=zs.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new zs({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}},{key:"generateString",value:function(){var e=this;this.css="",this.map=new zs({file:this.outputFile(),ignoreInvalidMapping:!0});var t,r,n=1,o=1,i="<no source>",s={generated:{column:0,line:0},original:{column:0,line:0},source:""};this.stringify(this.root,(function(a,u,c){if(e.css+=a,u&&"end"!==c&&(s.generated.line=n,s.generated.column=o-1,u.source&&u.source.start?(s.source=e.sourcePath(u),s.original.line=u.source.start.line,s.original.column=u.source.start.column-1,e.map.addMapping(s)):(s.source=i,s.original.line=1,s.original.column=0,e.map.addMapping(s))),(t=a.match(/\n/g))?(n+=t.length,r=a.lastIndexOf("\n"),o=a.length-r):o+=a.length,u&&"start"!==c){var l=u.parent||{raws:{}};("decl"===u.type||"atrule"===u.type&&!u.nodes)&&u===l.last&&!l.raws.semicolon||(u.source&&u.source.end?(s.source=e.sourcePath(u),s.original.line=u.source.end.line,s.original.column=u.source.end.column-1,s.generated.line=n,s.generated.column=o-2,e.map.addMapping(s)):(s.source=i,s.original.line=1,s.original.column=0,s.generated.line=n,s.generated.column=o-1,e.map.addMapping(s)))}}))}},{key:"isAnnotation",value:function(){return!!this.isInline()||(void 0!==this.mapOpts.annotation?this.mapOpts.annotation:!this.previous().length||this.previous().some((function(e){return e.annotation})))}},{key:"isInline",value:function(){if(void 0!==this.mapOpts.inline)return this.mapOpts.inline;var e=this.mapOpts.annotation;return(void 0===e||!0===e)&&(!this.previous().length||this.previous().some((function(e){return e.inline})))}},{key:"isMap",value:function(){return void 0!==this.opts.map?!!this.opts.map:this.previous().length>0}},{key:"isSourcesContent",value:function(){return void 0!==this.mapOpts.sourcesContent?this.mapOpts.sourcesContent:!this.previous().length||this.previous().some((function(e){return e.withContent()}))}},{key:"outputFile",value:function(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}},{key:"path",value:function(e){if(this.mapOpts.absolute)return e;if(60===e.charCodeAt(0))return e;if(/^\w+:\/\//.test(e))return e;var t=this.memoizedPaths.get(e);if(t)return t;var r=this.opts.to?Ks(this.opts.to):".";"string"==typeof this.mapOpts.annotation&&(r=Ks(Hs(r,this.mapOpts.annotation)));var n=Js(r,e);return this.memoizedPaths.set(e,n),n}},{key:"previous",value:function(){var e=this;if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk((function(t){if(t.source&&t.source.input.map){var r=t.source.input.map;e.previousMaps.includes(r)||e.previousMaps.push(r)}}));else{var t=new qs(this.originalCSS,this.opts);t.map&&this.previousMaps.push(t.map)}return this.previousMaps}},{key:"setSourcesContent",value:function(){var e=this,t={};if(this.root)this.root.walk((function(r){if(r.source){var n=r.source.input.from;if(n&&!t[n]){t[n]=!0;var o=e.usesFileUrls?e.toFileUrl(n):e.toUrl(e.path(n));e.map.setSourceContent(o,r.source.input.css)}}}));else if(this.css){var r=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(r,this.css)}}},{key:"sourcePath",value:function(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))}},{key:"toBase64",value:function(e){return Ut?Ut.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))}},{key:"toFileUrl",value:function(e){var t=this.memoizedFileURLs.get(e);if(t)return t;if(Qs){var r=Qs(e).toString();return this.memoizedFileURLs.set(e,r),r}throw new Error("`map.absolute` option is not available in this PostCSS build")}},{key:"toUrl",value:function(e){var t=this.memoizedURLs.get(e);if(t)return t;"\\"===Xs&&(e=e.replace(/\\/g,"/"));var r=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,r),r}}]),e}(),ra=function(e){Bt(r,e);var t=_t(r);function r(e){var n;return j(this,r),(n=t.call(this,e)).type="comment",n}return Z(r)}(ms),na=ra;ra.default=ra;var oa,ia,sa,aa,ua=ns.isClean,ca=ns.my,la=ws,fa=na;function ha(e){return e.map((function(e){return e.nodes&&(e.nodes=ha(e.nodes)),delete e.source,e}))}function pa(e){if(e[ua]=!1,e.proxyOf.nodes){var r,n=t(e.proxyOf.nodes);try{for(n.s();!(r=n.n()).done;){pa(r.value)}}catch(e){n.e(e)}finally{n.f()}}}var da=function(e){Bt(n,e);var r=_t(n);function n(){return j(this,n),r.apply(this,arguments)}return Z(n,[{key:"append",value:function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];for(var o=0,i=r;o<i.length;o++){var s,a=i[o],u=this.normalize(a,this.last),c=t(u);try{for(c.s();!(s=c.n()).done;){var l=s.value;this.proxyOf.nodes.push(l)}}catch(e){c.e(e)}finally{c.f()}}return this.markDirty(),this}},{key:"cleanRaws",value:function(e){if(Nt(Tt(n.prototype),"cleanRaws",this).call(this,e),this.nodes){var r,o=t(this.nodes);try{for(o.s();!(r=o.n()).done;){r.value.cleanRaws(e)}}catch(e){o.e(e)}finally{o.f()}}}},{key:"each",value:function(e){if(this.proxyOf.nodes){for(var t,r,n=this.getIterator();this.indexes[n]<this.proxyOf.nodes.length&&(t=this.indexes[n],!1!==(r=e(this.proxyOf.nodes[t],t)));)this.indexes[n]+=1;return delete this.indexes[n],r}}},{key:"every",value:function(e){return this.nodes.every(e)}},{key:"getIterator",value:function(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;var e=this.lastEach;return this.indexes[e]=0,e}},{key:"getProxyProcessor",value:function(){return{get:function(e,t){return"proxyOf"===t?e:e[t]?"each"===t||"string"==typeof t&&t.startsWith("walk")?function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return e[t].apply(e,U(n.map((function(e){return"function"==typeof e?function(t,r){return e(t.toProxy(),r)}:e}))))}:"every"===t||"some"===t?function(r){return e[t]((function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];return r.apply(void 0,[e.toProxy()].concat(n))}))}:"root"===t?function(){return e.root().toProxy()}:"nodes"===t?e.nodes.map((function(e){return e.toProxy()})):"first"===t||"last"===t?e[t].toProxy():e[t]:e[t]},set:function(e,t,r){return e[t]===r||(e[t]=r,"name"!==t&&"params"!==t&&"selector"!==t||e.markDirty()),!0}}}},{key:"index",value:function(e){return"number"==typeof e?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))}},{key:"insertAfter",value:function(e,r){var n=this.index(e),o=this.normalize(r,this.proxyOf.nodes[n]).reverse();n=this.index(e);var i,s,a=t(o);try{for(a.s();!(i=a.n()).done;){var u=i.value;this.proxyOf.nodes.splice(n+1,0,u)}}catch(e){a.e(e)}finally{a.f()}for(var c in this.indexes)n<(s=this.indexes[c])&&(this.indexes[c]=s+o.length);return this.markDirty(),this}},{key:"insertBefore",value:function(e,r){var n=this.index(e),o=0===n&&"prepend",i=this.normalize(r,this.proxyOf.nodes[n],o).reverse();n=this.index(e);var s,a,u=t(i);try{for(u.s();!(s=u.n()).done;){var c=s.value;this.proxyOf.nodes.splice(n,0,c)}}catch(e){u.e(e)}finally{u.f()}for(var l in this.indexes)n<=(a=this.indexes[l])&&(this.indexes[l]=a+i.length);return this.markDirty(),this}},{key:"normalize",value:function(e,r){var o=this;if("string"==typeof e)e=ha(oa(e).nodes);else if(void 0===e)e=[];else if(Array.isArray(e)){e=e.slice(0);var i,s=t(e);try{for(s.s();!(i=s.n()).done;){var a=i.value;a.parent&&a.parent.removeChild(a,"ignore")}}catch(e){s.e(e)}finally{s.f()}}else if("root"===e.type&&"document"!==this.type){e=e.nodes.slice(0);var u,c=t(e);try{for(c.s();!(u=c.n()).done;){var l=u.value;l.parent&&l.parent.removeChild(l,"ignore")}}catch(e){c.e(e)}finally{c.f()}}else if(e.type)e=[e];else if(e.prop){if(void 0===e.value)throw new Error("Value field is missed in node creation");"string"!=typeof e.value&&(e.value=String(e.value)),e=[new la(e)]}else if(e.selector)e=[new ia(e)];else if(e.name)e=[new sa(e)];else{if(!e.text)throw new Error("Unknown node type in node creation");e=[new fa(e)]}var f=e.map((function(e){return e[ca]||n.rebuild(e),(e=e.proxyOf).parent&&e.parent.removeChild(e),e[ua]&&pa(e),void 0===e.raws.before&&r&&void 0!==r.raws.before&&(e.raws.before=r.raws.before.replace(/\S/g,"")),e.parent=o.proxyOf,e}));return f}},{key:"prepend",value:function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];r=r.reverse();var o,i=t(r);try{for(i.s();!(o=i.n()).done;){var s,a=o.value,u=this.normalize(a,this.first,"prepend").reverse(),c=t(u);try{for(c.s();!(s=c.n()).done;){var l=s.value;this.proxyOf.nodes.unshift(l)}}catch(e){c.e(e)}finally{c.f()}for(var f in this.indexes)this.indexes[f]=this.indexes[f]+u.length}}catch(e){i.e(e)}finally{i.f()}return this.markDirty(),this}},{key:"push",value:function(e){return e.parent=this,this.proxyOf.nodes.push(e),this}},{key:"removeAll",value:function(){var e,r=t(this.proxyOf.nodes);try{for(r.s();!(e=r.n()).done;){e.value.parent=void 0}}catch(e){r.e(e)}finally{r.f()}return this.proxyOf.nodes=[],this.markDirty(),this}},{key:"removeChild",value:function(e){var t;for(var r in e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1),this.indexes)(t=this.indexes[r])>=e&&(this.indexes[r]=t-1);return this.markDirty(),this}},{key:"replaceValues",value:function(e,t,r){return r||(r=t,t={}),this.walkDecls((function(n){t.props&&!t.props.includes(n.prop)||t.fast&&!n.value.includes(t.fast)||(n.value=n.value.replace(e,r))})),this.markDirty(),this}},{key:"some",value:function(e){return this.nodes.some(e)}},{key:"walk",value:function(e){return this.each((function(t,r){var n;try{n=e(t,r)}catch(e){throw t.addToError(e)}return!1!==n&&t.walk&&(n=t.walk(e)),n}))}},{key:"walkAtRules",value:function(e,t){return t?e instanceof RegExp?this.walk((function(r,n){if("atrule"===r.type&&e.test(r.name))return t(r,n)})):this.walk((function(r,n){if("atrule"===r.type&&r.name===e)return t(r,n)})):(t=e,this.walk((function(e,r){if("atrule"===e.type)return t(e,r)})))}},{key:"walkComments",value:function(e){return this.walk((function(t,r){if("comment"===t.type)return e(t,r)}))}},{key:"walkDecls",value:function(e,t){return t?e instanceof RegExp?this.walk((function(r,n){if("decl"===r.type&&e.test(r.prop))return t(r,n)})):this.walk((function(r,n){if("decl"===r.type&&r.prop===e)return t(r,n)})):(t=e,this.walk((function(e,r){if("decl"===e.type)return t(e,r)})))}},{key:"walkRules",value:function(e,t){return t?e instanceof RegExp?this.walk((function(r,n){if("rule"===r.type&&e.test(r.selector))return t(r,n)})):this.walk((function(r,n){if("rule"===r.type&&r.selector===e)return t(r,n)})):(t=e,this.walk((function(e,r){if("rule"===e.type)return t(e,r)})))}},{key:"first",get:function(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}},{key:"last",get:function(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}}]),n}(ms);da.registerParse=function(e){oa=e},da.registerRule=function(e){ia=e},da.registerAtRule=function(e){sa=e},da.registerRoot=function(e){aa=e};var va=da;da.default=da,da.rebuild=function(e){"atrule"===e.type?Object.setPrototypeOf(e,sa.prototype):"rule"===e.type?Object.setPrototypeOf(e,ia.prototype):"decl"===e.type?Object.setPrototypeOf(e,la.prototype):"comment"===e.type?Object.setPrototypeOf(e,fa.prototype):"root"===e.type&&Object.setPrototypeOf(e,aa.prototype),e[ca]=!0,e.nodes&&e.nodes.forEach((function(e){da.rebuild(e)}))};var ga,ma,ya=function(e){Bt(r,e);var t=_t(r);function r(e){var n;return j(this,r),(n=t.call(this,Lt({type:"document"},e))).nodes||(n.nodes=[]),n}return Z(r,[{key:"toResult",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=new ga(new ma,this,e);return t.stringify()}}]),r}(va);ya.registerLazyResult=function(e){ga=e},ya.registerProcessor=function(e){ma=e};var wa=ya;ya.default=ya;var ba=function(){function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(j(this,e),this.type="warning",this.text=t,r.node&&r.node.source){var n=r.node.rangeBy(r);this.line=n.start.line,this.column=n.start.column,this.endLine=n.end.line,this.endColumn=n.end.column}for(var o in r)this[o]=r[o]}return Z(e,[{key:"toString",value:function(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}}]),e}(),Ca=ba;ba.default=ba;var Ia=Ca,ka=function(){function e(t,r,n){j(this,e),this.processor=t,this.messages=[],this.root=r,this.opts=n,this.css=void 0,this.map=void 0}return Z(e,[{key:"toString",value:function(){return this.css}},{key:"warn",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);var r=new Ia(e,t);return this.messages.push(r),r}},{key:"warnings",value:function(){return this.messages.filter((function(e){return"warning"===e.type}))}},{key:"content",get:function(){return this.css}}]),e}(),Sa=ka;ka.default=ka;var xa="'".charCodeAt(0),Aa='"'.charCodeAt(0),Oa="\\".charCodeAt(0),Ra="/".charCodeAt(0),Ea="\n".charCodeAt(0),Ma=" ".charCodeAt(0),Na="\f".charCodeAt(0),Ta="\t".charCodeAt(0),La="\r".charCodeAt(0),Pa="[".charCodeAt(0),Fa="]".charCodeAt(0),Ba="(".charCodeAt(0),_a=")".charCodeAt(0),Da="{".charCodeAt(0),Ua="}".charCodeAt(0),ja=";".charCodeAt(0),Wa="*".charCodeAt(0),Za=":".charCodeAt(0),Ga="@".charCodeAt(0),Va=/[\t\n\f\r "#'()/;[\\\]{}]/g,Ya=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,za=/.[\r\n"'(/\\]/,Ka=/[\da-f]/i,Ja=va,Ha=function(e){Bt(r,e);var t=_t(r);function r(e){var n;return j(this,r),(n=t.call(this,e)).type="atrule",n}return Z(r,[{key:"append",value:function(){var e;this.proxyOf.nodes||(this.nodes=[]);for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return(e=Nt(Tt(r.prototype),"append",this)).call.apply(e,[this].concat(n))}},{key:"prepend",value:function(){var e;this.proxyOf.nodes||(this.nodes=[]);for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return(e=Nt(Tt(r.prototype),"prepend",this)).call.apply(e,[this].concat(n))}}]),r}(Ja),Xa=Ha;Ha.default=Ha,Ja.registerAtRule(Ha);var Qa,qa,$a=va,eu=function(e){Bt(n,e);var r=_t(n);function n(e){var t;return j(this,n),(t=r.call(this,e)).type="root",t.nodes||(t.nodes=[]),t}return Z(n,[{key:"normalize",value:function(e,r,o){var i=Nt(Tt(n.prototype),"normalize",this).call(this,e);if(r)if("prepend"===o)this.nodes.length>1?r.raws.before=this.nodes[1].raws.before:delete r.raws.before;else if(this.first!==r){var s,a=t(i);try{for(a.s();!(s=a.n()).done;){s.value.raws.before=r.raws.before}}catch(e){a.e(e)}finally{a.f()}}return i}},{key:"removeChild",value:function(e,t){var r=this.index(e);return!t&&0===r&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[r].raws.before),Nt(Tt(n.prototype),"removeChild",this).call(this,e)}},{key:"toResult",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=new Qa(new qa,this,e);return t.stringify()}}]),n}($a);eu.registerLazyResult=function(e){Qa=e},eu.registerProcessor=function(e){qa=e};var tu=eu;eu.default=eu,$a.registerRoot(eu);var ru={comma:function(e){return ru.split(e,[","],!0)},space:function(e){return ru.split(e,[" ","\n","\t"])},split:function(e,r,n){var o,i=[],s="",a=!1,u=0,c=!1,l="",f=!1,h=t(e);try{for(h.s();!(o=h.n()).done;){var p=o.value;f?f=!1:"\\"===p?f=!0:c?p===l&&(c=!1):'"'===p||"'"===p?(c=!0,l=p):"("===p?u+=1:")"===p?u>0&&(u-=1):0===u&&r.includes(p)&&(a=!0),a?(""!==s&&i.push(s.trim()),s="",a=!1):s+=p}}catch(e){h.e(e)}finally{h.f()}return(n||""!==s)&&i.push(s.trim()),i}},nu=ru;ru.default=ru;var ou=va,iu=nu,su=function(e){Bt(r,e);var t=_t(r);function r(e){var n;return j(this,r),(n=t.call(this,e)).type="rule",n.nodes||(n.nodes=[]),n}return Z(r,[{key:"selectors",get:function(){return iu.comma(this.selector)},set:function(e){var t=this.selector?this.selector.match(/,\s*/):null,r=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(r)}}]),r}(ou),au=su;su.default=su,ou.registerRule(su);var uu=ws,cu=function(e){var t,r,n,o,i,s,a,u,c,l,f=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},h=e.css.valueOf(),p=f.ignoreErrors,d=h.length,v=0,g=[],m=[];function y(){return v}function w(t){throw e.error("Unclosed "+t,v)}function b(){return 0===m.length&&v>=d}function C(e){if(m.length)return m.pop();if(!(v>=d)){var f=!!e&&e.ignoreUnclosed;switch(t=h.charCodeAt(v)){case Ea:case Ma:case Ta:case La:case Na:r=v;do{r+=1,t=h.charCodeAt(r)}while(t===Ma||t===Ea||t===Ta||t===La||t===Na);l=["space",h.slice(v,r)],v=r-1;break;case Pa:case Fa:case Da:case Ua:case Za:case ja:case _a:var y=String.fromCharCode(t);l=[y,y,v];break;case Ba:if(u=g.length?g.pop()[1]:"",c=h.charCodeAt(v+1),"url"===u&&c!==xa&&c!==Aa&&c!==Ma&&c!==Ea&&c!==Ta&&c!==Na&&c!==La){r=v;do{if(s=!1,-1===(r=h.indexOf(")",r+1))){if(p||f){r=v;break}w("bracket")}for(a=r;h.charCodeAt(a-1)===Oa;)a-=1,s=!s}while(s);l=["brackets",h.slice(v,r+1),v,r],v=r}else r=h.indexOf(")",v+1),o=h.slice(v,r+1),-1===r||za.test(o)?l=["(","(",v]:(l=["brackets",o,v,r],v=r);break;case xa:case Aa:n=t===xa?"'":'"',r=v;do{if(s=!1,-1===(r=h.indexOf(n,r+1))){if(p||f){r=v+1;break}w("string")}for(a=r;h.charCodeAt(a-1)===Oa;)a-=1,s=!s}while(s);l=["string",h.slice(v,r+1),v,r],v=r;break;case Ga:Va.lastIndex=v+1,Va.test(h),r=0===Va.lastIndex?h.length-1:Va.lastIndex-2,l=["at-word",h.slice(v,r+1),v,r],v=r;break;case Oa:for(r=v,i=!0;h.charCodeAt(r+1)===Oa;)r+=1,i=!i;if(t=h.charCodeAt(r+1),i&&t!==Ra&&t!==Ma&&t!==Ea&&t!==Ta&&t!==La&&t!==Na&&(r+=1,Ka.test(h.charAt(r)))){for(;Ka.test(h.charAt(r+1));)r+=1;h.charCodeAt(r+1)===Ma&&(r+=1)}l=["word",h.slice(v,r+1),v,r],v=r;break;default:t===Ra&&h.charCodeAt(v+1)===Wa?(0===(r=h.indexOf("*/",v+2)+1)&&(p||f?r=h.length:w("comment")),l=["comment",h.slice(v,r+1),v,r],v=r):(Ya.lastIndex=v+1,Ya.test(h),r=0===Ya.lastIndex?h.length-1:Ya.lastIndex-2,l=["word",h.slice(v,r+1),v,r],g.push(l),v=r)}return v++,l}}function I(e){m.push(e)}return{back:I,endOfFile:b,nextToken:C,position:y}},lu=na,fu=Xa,hu=tu,pu=au,du={empty:!0,space:!0};var vu=va,gu=function(){function e(t){j(this,e),this.input=t,this.root=new hu,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:t,start:{column:1,line:1,offset:0}}}return Z(e,[{key:"atrule",value:function(e){var t,r,n,o=new fu;o.name=e[1].slice(1),""===o.name&&this.unnamedAtrule(o,e),this.init(o,e[2]);for(var i=!1,s=!1,a=[],u=[];!this.tokenizer.endOfFile();){if("("===(t=(e=this.tokenizer.nextToken())[0])||"["===t?u.push("("===t?")":"]"):"{"===t&&u.length>0?u.push("}"):t===u[u.length-1]&&u.pop(),0===u.length){if(";"===t){o.source.end=this.getPosition(e[2]),o.source.end.offset++,this.semicolon=!0;break}if("{"===t){s=!0;break}if("}"===t){if(a.length>0){for(r=a[n=a.length-1];r&&"space"===r[0];)r=a[--n];r&&(o.source.end=this.getPosition(r[3]||r[2]),o.source.end.offset++)}this.end(e);break}a.push(e)}else a.push(e);if(this.tokenizer.endOfFile()){i=!0;break}}o.raws.between=this.spacesAndCommentsFromEnd(a),a.length?(o.raws.afterName=this.spacesAndCommentsFromStart(a),this.raw(o,"params",a),i&&(e=a[a.length-1],o.source.end=this.getPosition(e[3]||e[2]),o.source.end.offset++,this.spaces=o.raws.between,o.raws.between="")):(o.raws.afterName="",o.params=""),s&&(o.nodes=[],this.current=o)}},{key:"checkMissedSemicolon",value:function(e){var t=this.colon(e);if(!1!==t){for(var r,n=0,o=t-1;o>=0&&("space"===(r=e[o])[0]||2!==(n+=1));o--);throw this.input.error("Missed semicolon","word"===r[0]?r[3]+1:r[2])}}},{key:"colon",value:function(e){var r,n,o,i,s=0,a=t(e.entries());try{for(a.s();!(i=a.n()).done;){var u=_(i.value,2),c=u[0];if("("===(n=(r=u[1])[0])&&(s+=1),")"===n&&(s-=1),0===s&&":"===n){if(o){if("word"===o[0]&&"progid"===o[1])continue;return c}this.doubleColon(r)}o=r}}catch(e){a.e(e)}finally{a.f()}return!1}},{key:"comment",value:function(e){var t=new lu;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;var r=e[1].slice(2,-2);if(/^\s*$/.test(r))t.text="",t.raws.left=r,t.raws.right="";else{var n=r.match(/^(\s*)([^]*\S)(\s*)$/);t.text=n[2],t.raws.left=n[1],t.raws.right=n[3]}}},{key:"createTokenizer",value:function(){this.tokenizer=cu(this.input)}},{key:"decl",value:function(e,t){var r=new uu;this.init(r,e[0][2]);var n,o=e[e.length-1];for(";"===o[0]&&(this.semicolon=!0,e.pop()),r.source.end=this.getPosition(o[3]||o[2]||function(e){for(var t=e.length-1;t>=0;t--){var r=e[t],n=r[3]||r[2];if(n)return n}}(e)),r.source.end.offset++;"word"!==e[0][0];)1===e.length&&this.unknownWord(e),r.raws.before+=e.shift()[1];for(r.source.start=this.getPosition(e[0][2]),r.prop="";e.length;){var i=e[0][0];if(":"===i||"space"===i||"comment"===i)break;r.prop+=e.shift()[1]}for(r.raws.between="";e.length;){if(":"===(n=e.shift())[0]){r.raws.between+=n[1];break}"word"===n[0]&&/\w/.test(n[1])&&this.unknownWord([n]),r.raws.between+=n[1]}"_"!==r.prop[0]&&"*"!==r.prop[0]||(r.raws.before+=r.prop[0],r.prop=r.prop.slice(1));for(var s,a=[];e.length&&("space"===(s=e[0][0])||"comment"===s);)a.push(e.shift());this.precheckMissedSemicolon(e);for(var u=e.length-1;u>=0;u--){if("!important"===(n=e[u])[1].toLowerCase()){r.important=!0;var c=this.stringFrom(e,u);" !important"!==(c=this.spacesFromEnd(e)+c)&&(r.raws.important=c);break}if("important"===n[1].toLowerCase()){for(var l=e.slice(0),f="",h=u;h>0;h--){var p=l[h][0];if(0===f.trim().indexOf("!")&&"space"!==p)break;f=l.pop()[1]+f}0===f.trim().indexOf("!")&&(r.important=!0,r.raws.important=f,e=l)}if("space"!==n[0]&&"comment"!==n[0])break}var d=e.some((function(e){return"space"!==e[0]&&"comment"!==e[0]}));d&&(r.raws.between+=a.map((function(e){return e[1]})).join(""),a=[]),this.raw(r,"value",a.concat(e),t),r.value.includes(":")&&!t&&this.checkMissedSemicolon(e)}},{key:"doubleColon",value:function(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})}},{key:"emptyRule",value:function(e){var t=new pu;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t}},{key:"end",value:function(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)}},{key:"endFile",value:function(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}},{key:"freeSemicolon",value:function(e){if(this.spaces+=e[1],this.current.nodes){var t=this.current.nodes[this.current.nodes.length-1];t&&"rule"===t.type&&!t.raws.ownSemicolon&&(t.raws.ownSemicolon=this.spaces,this.spaces="")}}},{key:"getPosition",value:function(e){var t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}}},{key:"init",value:function(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces="","comment"!==e.type&&(this.semicolon=!1)}},{key:"other",value:function(e){for(var t=!1,r=null,n=!1,o=null,i=[],s=e[1].startsWith("--"),a=[],u=e;u;){if(r=u[0],a.push(u),"("===r||"["===r)o||(o=u),i.push("("===r?")":"]");else if(s&&n&&"{"===r)o||(o=u),i.push("}");else if(0===i.length){if(";"===r){if(n)return void this.decl(a,s);break}if("{"===r)return void this.rule(a);if("}"===r){this.tokenizer.back(a.pop()),t=!0;break}":"===r&&(n=!0)}else r===i[i.length-1]&&(i.pop(),0===i.length&&(o=null));u=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),i.length>0&&this.unclosedBracket(o),t&&n){if(!s)for(;a.length&&("space"===(u=a[a.length-1][0])||"comment"===u);)this.tokenizer.back(a.pop());this.decl(a,s)}else this.unknownWord(a)}},{key:"parse",value:function(){for(var e;!this.tokenizer.endOfFile();)switch((e=this.tokenizer.nextToken())[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e)}this.endFile()}},{key:"precheckMissedSemicolon",value:function(){}},{key:"raw",value:function(e,t,r,n){for(var o,i,s,a,u=r.length,c="",l=!0,f=0;f<u;f+=1)"space"!==(i=(o=r[f])[0])||f!==u-1||n?"comment"===i?(a=r[f-1]?r[f-1][0]:"empty",s=r[f+1]?r[f+1][0]:"empty",du[a]||du[s]||","===c.slice(-1)?l=!1:c+=o[1]):c+=o[1]:l=!1;if(!l){var h=r.reduce((function(e,t){return e+t[1]}),"");e.raws[t]={raw:h,value:c}}e[t]=c}},{key:"rule",value:function(e){e.pop();var t=new pu;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t}},{key:"spacesAndCommentsFromEnd",value:function(e){for(var t,r="";e.length&&("space"===(t=e[e.length-1][0])||"comment"===t);)r=e.pop()[1]+r;return r}},{key:"spacesAndCommentsFromStart",value:function(e){for(var t,r="";e.length&&("space"===(t=e[0][0])||"comment"===t);)r+=e.shift()[1];return r}},{key:"spacesFromEnd",value:function(e){for(var t="";e.length&&"space"===e[e.length-1][0];)t=e.pop()[1]+t;return t}},{key:"stringFrom",value:function(e,t){for(var r="",n=t;n<e.length;n++)r+=e[n][1];return e.splice(t,e.length-t),r}},{key:"unclosedBlock",value:function(){var e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)}},{key:"unclosedBracket",value:function(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})}},{key:"unexpectedClose",value:function(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})}},{key:"unknownWord",value:function(e){throw this.input.error("Unknown word",{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})}},{key:"unnamedAtrule",value:function(e,t){throw this.input.error("At-rule without name",{offset:t[2]},{offset:t[2]+t[1].length})}}]),e}(),mu=Vs;function yu(e,t){var r=new mu(e,t),n=new gu(r);try{n.parse()}catch(e){throw e}return n.root}var wu=yu;yu.default=yu,vu.registerParse(yu);var bu=ns.isClean,Cu=ns.my,Iu=ta,ku=cs,Su=va,xu=wa,Au=Sa,Ou=wu,Ru=tu,Eu={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},Mu={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},Nu={Once:!0,postcssPlugin:!0,prepare:!0};function Tu(e){return"object"===i(e)&&"function"==typeof e.then}function Lu(e){var t=!1,r=Eu[e.type];return"decl"===e.type?t=e.prop.toLowerCase():"atrule"===e.type&&(t=e.name.toLowerCase()),t&&e.append?[r,r+"-"+t,0,r+"Exit",r+"Exit-"+t]:t?[r,r+"-"+t,r+"Exit",r+"Exit-"+t]:e.append?[r,0,r+"Exit"]:[r,r+"Exit"]}function Pu(e){return{eventIndex:0,events:"document"===e.type?["Document",0,"DocumentExit"]:"root"===e.type?["Root",0,"RootExit"]:Lu(e),iterator:0,node:e,visitorIndex:0,visitors:[]}}function Fu(e){return e[bu]=!1,e.nodes&&e.nodes.forEach((function(e){return Fu(e)})),e}var Bu={},_u=function(e){function r(e,t,n){var o,s=this;if(j(this,r),this.stringified=!1,this.processed=!1,"object"!==i(t)||null===t||"root"!==t.type&&"document"!==t.type)if(t instanceof r||t instanceof Au)o=Fu(t.root),t.map&&(void 0===n.map&&(n.map={}),n.map.inline||(n.map.inline=!1),n.map.prev=t.map);else{var a=Ou;n.syntax&&(a=n.syntax.parse),n.parser&&(a=n.parser),a.parse&&(a=a.parse);try{o=a(t,n)}catch(e){this.processed=!0,this.error=e}o&&!o[Cu]&&Su.rebuild(o)}else o=Fu(t);this.result=new Au(e,o,n),this.helpers=Lt(Lt({},Bu),{},{postcss:Bu,result:this.result}),this.plugins=this.processor.plugins.map((function(e){return"object"===i(e)&&e.prepare?Lt(Lt({},e),e.prepare(s.result)):e}))}var n;return Z(r,[{key:"async",value:function(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}},{key:"catch",value:function(e){return this.async().catch(e)}},{key:"finally",value:function(e){return this.async().then(e,e)}},{key:"getAsyncError",value:function(){throw new Error("Use process(css).then(cb) to work with async plugins")}},{key:"handleError",value:function(e,t){var r=this.result.lastPlugin;try{if(t&&t.addToError(e),this.error=e,"CssSyntaxError"!==e.name||e.plugin){if(r.postcssVersion);}else e.plugin=r.postcssPlugin,e.setMessage()}catch(e){console&&console.error&&console.error(e)}return e}},{key:"prepareVisitors",value:function(){var e=this;this.listeners={};var r,n=function(t,r,n){e.listeners[r]||(e.listeners[r]=[]),e.listeners[r].push([t,n])},o=t(this.plugins);try{for(o.s();!(r=o.n()).done;){var s=r.value;if("object"===i(s))for(var a in s){if(!Mu[a]&&/^[A-Z]/.test(a))throw new Error("Unknown event ".concat(a," in ").concat(s.postcssPlugin,". Try to update PostCSS (").concat(this.processor.version," now)."));if(!Nu[a])if("object"===i(s[a]))for(var u in s[a])n(s,"*"===u?a:a+"-"+u.toLowerCase(),s[a][u]);else"function"==typeof s[a]&&n(s,a,s[a])}}}catch(e){o.e(e)}finally{o.f()}this.hasListener=Object.keys(this.listeners).length>0}},{key:"runAsync",value:(n=Et(Je().mark((function e(){var r,n,o,i,s,a,u,c,l,f,h=this;return Je().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:this.plugin=0,r=0;case 2:if(!(r<this.plugins.length)){e.next=17;break}if(n=this.plugins[r],!Tu(o=this.runOnRoot(n))){e.next=14;break}return e.prev=6,e.next=9,o;case 9:e.next=14;break;case 11:throw e.prev=11,e.t0=e.catch(6),this.handleError(e.t0);case 14:r++,e.next=2;break;case 17:if(this.prepareVisitors(),!this.hasListener){e.next=56;break}i=this.result.root;case 20:if(i[bu]){e.next=39;break}i[bu]=!0,s=[Pu(i)];case 23:if(!(s.length>0)){e.next=37;break}if(!Tu(a=this.visitTick(s))){e.next=35;break}return e.prev=26,e.next=29,a;case 29:e.next=35;break;case 31:throw e.prev=31,e.t1=e.catch(26),u=s[s.length-1].node,this.handleError(e.t1,u);case 35:e.next=23;break;case 37:e.next=20;break;case 39:if(!this.listeners.OnceExit){e.next=56;break}c=t(this.listeners.OnceExit),e.prev=41,f=Je().mark((function e(){var t,r,n,o;return Je().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=_(l.value,2),r=t[0],n=t[1],h.result.lastPlugin=r,e.prev=2,"document"!==i.type){e.next=9;break}return o=i.nodes.map((function(e){return n(e,h.helpers)})),e.next=7,Promise.all(o);case 7:e.next=11;break;case 9:return e.next=11,n(i,h.helpers);case 11:e.next=16;break;case 13:throw e.prev=13,e.t0=e.catch(2),h.handleError(e.t0);case 16:case"end":return e.stop()}}),e,null,[[2,13]])})),c.s();case 44:if((l=c.n()).done){e.next=48;break}return e.delegateYield(f(),"t2",46);case 46:e.next=44;break;case 48:e.next=53;break;case 50:e.prev=50,e.t3=e.catch(41),c.e(e.t3);case 53:return e.prev=53,c.f(),e.finish(53);case 56:return this.processed=!0,e.abrupt("return",this.stringify());case 58:case"end":return e.stop()}}),e,this,[[6,11],[26,31],[41,50,53,56]])}))),function(){return n.apply(this,arguments)})},{key:"runOnRoot",value:function(e){var t=this;this.result.lastPlugin=e;try{if("object"===i(e)&&e.Once){if("document"===this.result.root.type){var r=this.result.root.nodes.map((function(r){return e.Once(r,t.helpers)}));return Tu(r[0])?Promise.all(r):r}return e.Once(this.result.root,this.helpers)}if("function"==typeof e)return e(this.result.root,this.result)}catch(e){throw this.handleError(e)}}},{key:"stringify",value:function(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();var e=this.result.opts,t=ku;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);var r=new Iu(t,this.result.root,this.result.opts).generate();return this.result.css=r[0],this.result.map=r[1],this.result}},{key:"sync",value:function(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();var e,r=t(this.plugins);try{for(r.s();!(e=r.n()).done;){var n=e.value;if(Tu(this.runOnRoot(n)))throw this.getAsyncError()}}catch(e){r.e(e)}finally{r.f()}if(this.prepareVisitors(),this.hasListener){for(var o=this.result.root;!o[bu];)o[bu]=!0,this.walkSync(o);if(this.listeners.OnceExit)if("document"===o.type){var i,s=t(o.nodes);try{for(s.s();!(i=s.n()).done;){var a=i.value;this.visitSync(this.listeners.OnceExit,a)}}catch(e){s.e(e)}finally{s.f()}}else this.visitSync(this.listeners.OnceExit,o)}return this.result}},{key:"then",value:function(e,t){return this.async().then(e,t)}},{key:"toString",value:function(){return this.css}},{key:"visitSync",value:function(e,r){var n,o=t(e);try{for(o.s();!(n=o.n()).done;){var i=_(n.value,2),s=i[0],a=i[1];this.result.lastPlugin=s;var u=void 0;try{u=a(r,this.helpers)}catch(e){throw this.handleError(e,r.proxyOf)}if("root"!==r.type&&"document"!==r.type&&!r.parent)return!0;if(Tu(u))throw this.getAsyncError()}}catch(e){o.e(e)}finally{o.f()}}},{key:"visitTick",value:function(e){var t=e[e.length-1],r=t.node,n=t.visitors;if("root"===r.type||"document"===r.type||r.parent){if(n.length>0&&t.visitorIndex<n.length){var o=_(n[t.visitorIndex],2),i=o[0],s=o[1];t.visitorIndex+=1,t.visitorIndex===n.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=i;try{return s(r.toProxy(),this.helpers)}catch(e){throw this.handleError(e,r)}}if(0!==t.iterator){for(var a,u=t.iterator;a=r.nodes[r.indexes[u]];)if(r.indexes[u]+=1,!a[bu])return a[bu]=!0,void e.push(Pu(a));t.iterator=0,delete r.indexes[u]}for(var c=t.events;t.eventIndex<c.length;){var l=c[t.eventIndex];if(t.eventIndex+=1,0===l)return void(r.nodes&&r.nodes.length&&(r[bu]=!0,t.iterator=r.getIterator()));if(this.listeners[l])return void(t.visitors=this.listeners[l])}e.pop()}else e.pop()}},{key:"walkSync",value:function(e){var r=this;e[bu]=!0;var n,o=Lu(e),i=t(o);try{for(i.s();!(n=i.n()).done;){var s=n.value;if(0===s)e.nodes&&e.each((function(e){e[bu]||r.walkSync(e)}));else{var a=this.listeners[s];if(a&&this.visitSync(a,e.toProxy()))return}}}catch(e){i.e(e)}finally{i.f()}}},{key:"warnings",value:function(){return this.sync().warnings()}},{key:"content",get:function(){return this.stringify().content}},{key:"css",get:function(){return this.stringify().css}},{key:"map",get:function(){return this.stringify().map}},{key:"messages",get:function(){return this.sync().messages}},{key:"opts",get:function(){return this.result.opts}},{key:"processor",get:function(){return this.result.processor}},{key:"root",get:function(){return this.sync().root}},{key:e,get:function(){return"LazyResult"}}]),r}(Symbol.toStringTag);_u.registerPostcss=function(e){Bu=e};var Du=_u;_u.default=_u,Ru.registerLazyResult(_u),xu.registerLazyResult(_u);var Uu=ta,ju=cs,Wu=wu,Zu=Sa,Gu=function(e){function t(e,r,n){var o;j(this,t),r=r.toString(),this.stringified=!1,this._processor=e,this._css=r,this._opts=n,this._map=void 0;var i=ju;this.result=new Zu(this._processor,o,this._opts),this.result.css=r;var s=this;Object.defineProperty(this.result,"root",{get:function(){return s.root}});var a=new Uu(i,o,this._opts,r);if(a.isMap()){var u=a.generate(),c=_(u,2),l=c[0],f=c[1];l&&(this.result.css=l),f&&(this.result.map=f)}else a.clearAnnotation(),this.result.css=a.css}return Z(t,[{key:"async",value:function(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}},{key:"catch",value:function(e){return this.async().catch(e)}},{key:"finally",value:function(e){return this.async().then(e,e)}},{key:"sync",value:function(){if(this.error)throw this.error;return this.result}},{key:"then",value:function(e,t){return this.async().then(e,t)}},{key:"toString",value:function(){return this._css}},{key:"warnings",value:function(){return[]}},{key:"content",get:function(){return this.result.css}},{key:"css",get:function(){return this.result.css}},{key:"map",get:function(){return this.result.map}},{key:"messages",get:function(){return[]}},{key:"opts",get:function(){return this.result.opts}},{key:"processor",get:function(){return this.result.processor}},{key:"root",get:function(){if(this._root)return this._root;var e,t=Wu;try{e=t(this._css,this._opts)}catch(e){this.error=e}if(this.error)throw this.error;return this._root=e,e}},{key:e,get:function(){return"NoWorkResult"}}]),t}(Symbol.toStringTag),Vu=Gu;Gu.default=Gu;var Yu=Vu,zu=Du,Ku=wa,Ju=tu,Hu=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];j(this,e),this.version="8.4.38",this.plugins=this.normalize(t)}return Z(e,[{key:"normalize",value:function(e){var r,n=[],o=t(e);try{for(o.s();!(r=o.n()).done;){var s=r.value;if(!0===s.postcss?s=s():s.postcss&&(s=s.postcss),"object"===i(s)&&Array.isArray(s.plugins))n=n.concat(s.plugins);else if("object"===i(s)&&s.postcssPlugin)n.push(s);else if("function"==typeof s)n.push(s);else{if("object"!==i(s)||!s.parse&&!s.stringify)throw new Error(s+" is not a PostCSS plugin")}}}catch(e){o.e(e)}finally{o.f()}return n}},{key:"process",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.plugins.length||t.parser||t.stringifier||t.syntax?new zu(this,e,t):new Yu(this,e,t)}},{key:"use",value:function(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}}]),e}(),Xu=Hu;Hu.default=Hu,Ju.registerProcessor(Hu),Ku.registerProcessor(Hu);var Qu=ws,qu=Es,$u=na,ec=Xa,tc=Vs,rc=tu,nc=au;function oc(e,r){if(Array.isArray(e))return e.map((function(e){return oc(e)}));var n=e.inputs,o=Rt(e,Zt);if(n){r=[];var i,s=t(n);try{for(s.s();!(i=s.n()).done;){var a=i.value,u=Lt(Lt({},a),{},{__proto__:tc.prototype});u.map&&(u.map=Lt(Lt({},u.map),{},{__proto__:qu.prototype})),r.push(u)}}catch(e){s.e(e)}finally{s.f()}}if(o.nodes&&(o.nodes=e.nodes.map((function(e){return oc(e,r)}))),o.source){var c=o.source,l=c.inputId,f=Rt(c,Gt);o.source=f,null!=l&&(o.source.input=r[l])}if("root"===o.type)return new rc(o);if("decl"===o.type)return new Qu(o);if("rule"===o.type)return new nc(o);if("comment"===o.type)return new $u(o);if("atrule"===o.type)return new ec(o);throw new Error("Unknown node type: "+e.type)}var ic=oc;oc.default=oc;var sc=rs,ac=ws,uc=Du,cc=va,lc=Xu,fc=cs,hc=ic,pc=wa,dc=Ca,vc=na,gc=Xa,mc=Sa,yc=Vs,wc=wu,bc=nu,Cc=au,Ic=tu,kc=ms;function Sc(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return 1===t.length&&Array.isArray(t[0])&&(t=t[0]),new lc(t)}Sc.plugin=function(e,t){var r,n=!1;function o(){console&&console.warn&&!n&&(n=!0,console.warn(e+": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"),{NODE_ENV:"production",PUBLIC_PATH:"/"}.LANG&&{NODE_ENV:"production",PUBLIC_PATH:"/"}.LANG.startsWith("cn")&&console.warn(e+": 里面 postcss.plugin 被弃用. 迁移指南:\nhttps://www.w3ctech.com/topic/2226"));var r=t.apply(void 0,arguments);return r.postcssPlugin=e,r.postcssVersion=(new lc).version,r}return Object.defineProperty(o,"postcss",{get:function(){return r||(r=o()),r}}),o.process=function(e,t,r){return Sc([o(r)]).process(e,t)},o},Sc.stringify=fc,Sc.parse=wc,Sc.fromJSON=hc,Sc.list=bc,Sc.comment=function(e){return new vc(e)},Sc.atRule=function(e){return new gc(e)},Sc.decl=function(e){return new ac(e)},Sc.rule=function(e){return new Cc(e)},Sc.root=function(e){return new Ic(e)},Sc.document=function(e){return new pc(e)},Sc.CssSyntaxError=sc,Sc.Declaration=ac,Sc.Container=cc,Sc.Processor=lc,Sc.Document=pc,Sc.Comment=vc,Sc.Warning=dc,Sc.AtRule=gc,Sc.Result=mc,Sc.Input=yc,Sc.Rule=Cc,Sc.Root=Ic,Sc.Node=kc,uc.registerPostcss(Sc);var xc=Sc;Sc.default=Sc;var Ac=zi(xc);Ac.stringify,Ac.fromJSON,Ac.plugin,Ac.parse,Ac.list,Ac.document,Ac.comment,Ac.atRule,Ac.rule,Ac.decl,Ac.root,Ac.CssSyntaxError,Ac.Declaration,Ac.Container,Ac.Processor,Ac.Document,Ac.Comment,Ac.Warning,Ac.AtRule,Ac.Result,Ac.Input,Ac.Rule,Ac.Root,Ac.Node;var Oc=function(){function e(){j(this,e),Yi(this,"parentElement",null),Yi(this,"parentNode",null),Yi(this,"ownerDocument"),Yi(this,"firstChild",null),Yi(this,"lastChild",null),Yi(this,"previousSibling",null),Yi(this,"nextSibling",null),Yi(this,"ELEMENT_NODE",1),Yi(this,"TEXT_NODE",3),Yi(this,"nodeType"),Yi(this,"nodeName"),Yi(this,"RRNodeType")}return Z(e,[{key:"childNodes",get:function(){for(var e=[],t=this.firstChild;t;)e.push(t),t=t.nextSibling;return e}},{key:"contains",value:function(t){if(!(t instanceof e))return!1;if(t.ownerDocument!==this.ownerDocument)return!1;if(t===this)return!0;for(;t.parentNode;){if(t.parentNode===this)return!0;t=t.parentNode}return!1}},{key:"appendChild",value:function(e){throw new Error("RRDomException: Failed to execute 'appendChild' on 'RRNode': This RRNode type does not support this method.")}},{key:"insertBefore",value:function(e,t){throw new Error("RRDomException: Failed to execute 'insertBefore' on 'RRNode': This RRNode type does not support this method.")}},{key:"removeChild",value:function(e){throw new Error("RRDomException: Failed to execute 'removeChild' on 'RRNode': This RRNode type does not support this method.")}},{key:"toString",value:function(){return"RRNode"}}]),e}(),Rc={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},Ec={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},Mc={};function Nc(e){if(Mc[e])return Mc[e];var t=globalThis[e],r=t.prototype,n=e in Rc?Rc[e]:void 0,o=Boolean(n&&n.every((function(e){var t,n;return Boolean(null==(n=null==(t=Object.getOwnPropertyDescriptor(r,e))?void 0:t.get)?void 0:n.toString().includes("[native code]"))}))),i=e in Ec?Ec[e]:void 0,s=Boolean(i&&i.every((function(e){var t;return"function"==typeof r[e]&&(null==(t=r[e])?void 0:t.toString().includes("[native code]"))})));if(o&&s&&!globalThis.Zone)return Mc[e]=t.prototype,t.prototype;try{var a=document.createElement("iframe");document.body.appendChild(a);var u=a.contentWindow;if(!u)return t.prototype;var c=u[e].prototype;return document.body.removeChild(a),c?Mc[e]=c:r}catch(e){return r}}var Tc={};function Lc(e,t,r){var n,o="".concat(e,".").concat(String(r));if(Tc[o])return Tc[o].call(t);var i=Nc(e),s=null==(n=Object.getOwnPropertyDescriptor(i,r))?void 0:n.get;return s?(Tc[o]=s,s.call(t)):t[r]}var Pc={};function Fc(e,t,r){var n="".concat(e,".").concat(String(r));if(Pc[n])return Pc[n].bind(t);var o=Nc(e)[r];return"function"!=typeof o?t[r]:(Pc[n]=o,o.bind(t))}var Bc={childNodes:function(e){return Lc("Node",e,"childNodes")},parentNode:function(e){return Lc("Node",e,"parentNode")},parentElement:function(e){return Lc("Node",e,"parentElement")},textContent:function(e){return Lc("Node",e,"textContent")},contains:function(e,t){return Fc("Node",e,"contains")(t)},getRootNode:function(e){return Fc("Node",e,"getRootNode")()},host:function(e){return e&&"host"in e?Lc("ShadowRoot",e,"host"):null},styleSheets:function(e){return e.styleSheets},shadowRoot:function(e){return e&&"shadowRoot"in e?Lc("Element",e,"shadowRoot"):null},querySelector:function(e,t){return Lc("Element",e,"querySelector")(t)},querySelectorAll:function(e,t){return Lc("Element",e,"querySelectorAll")(t)},mutationObserver:function(){return Nc("MutationObserver").constructor}};var _c="Please stop import mirror directly. Instead of that,\r\nnow you can use replayer.getMirror() to access the mirror instance of a replayer,\r\nor you can use record.mirror to access the mirror instance during recording.",Dc={map:{},getId:function(){return console.error(_c),-1},getNode:function(){return console.error(_c),null},removeNodeFromMap:function(){console.error(_c)},has:function(){return console.error(_c),!1},reset:function(){console.error(_c)}};"undefined"!=typeof window&&window.Proxy&&window.Reflect&&(Dc=new Proxy(Dc,{get:function(e,t,r){return"map"===t&&console.error(_c),Reflect.get(e,t,r)}}));var Uc=Date.now;function jc(e){return e?e.nodeType===e.ELEMENT_NODE?e:Bc.parentElement(e):null}/[1-9][0-9]{12}/.test(Date.now().toString())||(Uc=function(){return(new Date).getTime()});var Wc=function(){function e(){j(this,e),Kt(this,"id",1),Kt(this,"styleIDMap",new WeakMap),Kt(this,"idStyleMap",new Map)}return Z(e,[{key:"getId",value:function(e){var t;return null!==(t=this.styleIDMap.get(e))&&void 0!==t?t:-1}},{key:"has",value:function(e){return this.styleIDMap.has(e)}},{key:"add",value:function(e,t){return this.has(e)?this.getId(e):(r=void 0===t?this.id++:t,this.styleIDMap.set(e,r),this.idStyleMap.set(r,e),r);var r}},{key:"getStyle",value:function(e){return this.idStyleMap.get(e)||null}},{key:"reset",value:function(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}},{key:"generateId",value:function(){return this.id++}}]),e}();function Zc(e){var t,r=null;return"getRootNode"in e&&(null==(t=Bc.getRootNode(e))?void 0:t.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&Bc.host(Bc.getRootNode(e))&&(r=Bc.host(Bc.getRootNode(e))),r}function Gc(e){for(var t,r=e;t=Zc(r);)r=t;return r}function Vc(e){var t=e.ownerDocument;if(!t)return!1;var r=Gc(e);return Bc.contains(t,r)}for(var Yc=Object.freeze(Object.defineProperty({__proto__:null,StyleSheetMirror:Wc,get _mirror(){return Dc},closestElementOfNode:jc,getBaseDimension:function e(t,r){var n,o,i=null==(o=null==(n=t.ownerDocument)?void 0:n.defaultView)?void 0:o.frameElement;if(!i||i===r)return{x:0,y:0,relativeScale:1,absoluteScale:1};var s=i.getBoundingClientRect(),a=e(i,r),u=s.height/i.clientHeight;return{x:s.x*a.relativeScale+a.x,y:s.y*a.relativeScale+a.y,relativeScale:u,absoluteScale:a.absoluteScale*u}},getNestedRule:function e(t,r){var n=t[r[0]];return 1===r.length?n:e(n.cssRules[r[1]].cssRules,r.slice(2))},getPositionsAndIndex:function(e){var t=U(e),r=t.pop();return{positions:t,index:r}},getRootShadowHost:Gc,getShadowHost:Zc,getWindowHeight:function(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight},getWindowScroll:function(e){var t,r,n,o,i=e.document;return{left:i.scrollingElement?i.scrollingElement.scrollLeft:void 0!==e.pageXOffset?e.pageXOffset:i.documentElement.scrollLeft||(null==i?void 0:i.body)&&(null==(t=Bc.parentElement(i.body))?void 0:t.scrollLeft)||(null==(r=null==i?void 0:i.body)?void 0:r.scrollLeft)||0,top:i.scrollingElement?i.scrollingElement.scrollTop:void 0!==e.pageYOffset?e.pageYOffset:(null==i?void 0:i.documentElement.scrollTop)||(null==i?void 0:i.body)&&(null==(n=Bc.parentElement(i.body))?void 0:n.scrollTop)||(null==(o=null==i?void 0:i.body)?void 0:o.scrollTop)||0}},getWindowWidth:function(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth},hasShadowRoot:function(e){return!!e&&(e instanceof Oc&&"shadowRoot"in e?Boolean(e.shadowRoot):Boolean(Bc.shadowRoot(e)))},hookSetter:function e(t,r,n,o){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:window,s=i.Object.getOwnPropertyDescriptor(t,r);return i.Object.defineProperty(t,r,o?n:{set:function(e){var t=this;setTimeout((function(){n.set.call(t,e)}),0),s&&s.set&&s.set.call(this,e)}}),function(){return e(t,r,s||{},!0)}},inDom:function(e){var t=e.ownerDocument;return!!t&&(Bc.contains(t,e)||Vc(e))},isAncestorRemoved:function e(t,r){if(o=(n=t)&&"host"in n&&"mode"in n&&or.host(n)||null,Boolean(o&&"shadowRoot"in o&&or.shadowRoot(o)===n))return!1;var n,o,i=r.getId(t);if(!r.has(i))return!0;var s=Bc.parentNode(t);return(!s||s.nodeType!==t.DOCUMENT_NODE)&&(!s||e(s,r))},isBlocked:function(e,t,r,n){if(!e)return!1;var o=jc(e);if(!o)return!1;try{if("string"==typeof t){if(o.classList.contains(t))return!0;if(n&&null!==o.closest("."+t))return!0}else if(sr(o,t,n))return!0}catch(e){}if(r){if(o.matches(r))return!0;if(n&&null!==o.closest(r))return!0}return!1},isIgnored:function(e,t,r){return!("TITLE"!==e.tagName||!r.headTitleMutations)||-2===t.getId(e)},isSerialized:function(e,t){return-1!==t.getId(e)},isSerializedIframe:function(e,t){return Boolean("IFRAME"===e.nodeName&&t.getMeta(e))},isSerializedStylesheet:function(e,t){return Boolean("LINK"===e.nodeName&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&"stylesheet"===e.getAttribute("rel")&&t.getMeta(e))},iterateResolveTree:function e(t,r){r(t.value);for(var n=t.children.length-1;n>=0;n--)e(t.children[n],r)},legacy_isTouchEvent:function(e){return Boolean(e.changedTouches)},get nowTimestamp(){return Uc},on:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:document,n={capture:!0,passive:!0};return r.addEventListener(e,t,n),function(){return r.removeEventListener(e,t,n)}},patch:function(e,t,r){try{if(!(t in e))return function(){};var n=e[t],o=r(n);return"function"==typeof o&&(o.prototype=o.prototype||{},Object.defineProperties(o,{__rrweb_original__:{enumerable:!1,value:n}})),e[t]=o,function(){e[t]=n}}catch(e){return function(){}}},polyfill:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window;"NodeList"in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach)},queueToResolveTrees:function(e){var r,n={},o=function(e,t){var r={value:e,parent:t,children:[]};return n[e.node.id]=r,r},i=[],s=t(e);try{for(s.s();!(r=s.n()).done;){var a=r.value,u=a.nextId,c=a.parentId;if(u&&u in n){var l=n[u];if(l.parent){var f=l.parent.children.indexOf(l);l.parent.children.splice(f,0,o(a,l.parent))}else{var h=i.indexOf(l);i.splice(h,0,o(a,null))}}else if(c in n){var p=n[c];p.children.push(o(a,p))}else i.push(o(a,null))}}catch(e){s.e(e)}finally{s.f()}return i},shadowHostInDom:Vc,throttle:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=null,o=0;return function(){for(var i=arguments.length,s=new Array(i),a=0;a<i;a++)s[a]=arguments[a];var u=Date.now();o||!1!==r.leading||(o=u);var c=t-(u-o),l=this;c<=0||c>t?(n&&(clearTimeout(n),n=null),o=u,e.apply(l,s)):n||!1===r.trailing||(n=setTimeout((function(){o=!1===r.leading?0:Date.now(),n=null,e.apply(l,s)}),c))}},uniqueTextMutations:function(e){for(var t=new Set,r=[],n=e.length;n--;){var o=e[n];t.has(o.id)||(r.push(o),t.add(o.id))}return r}},Symbol.toStringTag,{value:"Module"})),zc="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Kc="undefined"==typeof Uint8Array?[]:new Uint8Array(256),Jc=0;Jc<zc.length;Jc++)Kc[zc.charCodeAt(Jc)]=Jc;var Hc,Xc;"undefined"!=typeof window&&window.Blob&&new Blob([function(e){return Uint8Array.from(atob(e),(function(e){return e.charCodeAt(0)}))}("KGZ1bmN0aW9uKCkgewogICJ1c2Ugc3RyaWN0IjsKICB2YXIgY2hhcnMgPSAiQUJDREVGR0hJSktMTU5PUFFSU1RVVldYWVphYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5ejAxMjM0NTY3ODkrLyI7CiAgdmFyIGxvb2t1cCA9IHR5cGVvZiBVaW50OEFycmF5ID09PSAidW5kZWZpbmVkIiA/IFtdIDogbmV3IFVpbnQ4QXJyYXkoMjU2KTsKICBmb3IgKHZhciBpID0gMDsgaSA8IGNoYXJzLmxlbmd0aDsgaSsrKSB7CiAgICBsb29rdXBbY2hhcnMuY2hhckNvZGVBdChpKV0gPSBpOwogIH0KICB2YXIgZW5jb2RlID0gZnVuY3Rpb24oYXJyYXlidWZmZXIpIHsKICAgIHZhciBieXRlcyA9IG5ldyBVaW50OEFycmF5KGFycmF5YnVmZmVyKSwgaTIsIGxlbiA9IGJ5dGVzLmxlbmd0aCwgYmFzZTY0ID0gIiI7CiAgICBmb3IgKGkyID0gMDsgaTIgPCBsZW47IGkyICs9IDMpIHsKICAgICAgYmFzZTY0ICs9IGNoYXJzW2J5dGVzW2kyXSA+PiAyXTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMl0gJiAzKSA8PCA0IHwgYnl0ZXNbaTIgKyAxXSA+PiA0XTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMiArIDFdICYgMTUpIDw8IDIgfCBieXRlc1tpMiArIDJdID4+IDZdOwogICAgICBiYXNlNjQgKz0gY2hhcnNbYnl0ZXNbaTIgKyAyXSAmIDYzXTsKICAgIH0KICAgIGlmIChsZW4gJSAzID09PSAyKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDEpICsgIj0iOwogICAgfSBlbHNlIGlmIChsZW4gJSAzID09PSAxKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDIpICsgIj09IjsKICAgIH0KICAgIHJldHVybiBiYXNlNjQ7CiAgfTsKICBjb25zdCBsYXN0QmxvYk1hcCA9IC8qIEBfX1BVUkVfXyAqLyBuZXcgTWFwKCk7CiAgY29uc3QgdHJhbnNwYXJlbnRCbG9iTWFwID0gLyogQF9fUFVSRV9fICovIG5ldyBNYXAoKTsKICBhc3luYyBmdW5jdGlvbiBnZXRUcmFuc3BhcmVudEJsb2JGb3Iod2lkdGgsIGhlaWdodCwgZGF0YVVSTE9wdGlvbnMpIHsKICAgIGNvbnN0IGlkID0gYCR7d2lkdGh9LSR7aGVpZ2h0fWA7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBpZiAodHJhbnNwYXJlbnRCbG9iTWFwLmhhcyhpZCkpIHJldHVybiB0cmFuc3BhcmVudEJsb2JNYXAuZ2V0KGlkKTsKICAgICAgY29uc3Qgb2Zmc2NyZWVuID0gbmV3IE9mZnNjcmVlbkNhbnZhcyh3aWR0aCwgaGVpZ2h0KTsKICAgICAgb2Zmc2NyZWVuLmdldENvbnRleHQoIjJkIik7CiAgICAgIGNvbnN0IGJsb2IgPSBhd2FpdCBvZmZzY3JlZW4uY29udmVydFRvQmxvYihkYXRhVVJMT3B0aW9ucyk7CiAgICAgIGNvbnN0IGFycmF5QnVmZmVyID0gYXdhaXQgYmxvYi5hcnJheUJ1ZmZlcigpOwogICAgICBjb25zdCBiYXNlNjQgPSBlbmNvZGUoYXJyYXlCdWZmZXIpOwogICAgICB0cmFuc3BhcmVudEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICByZXR1cm4gYmFzZTY0OwogICAgfSBlbHNlIHsKICAgICAgcmV0dXJuICIiOwogICAgfQogIH0KICBjb25zdCB3b3JrZXIgPSBzZWxmOwogIHdvcmtlci5vbm1lc3NhZ2UgPSBhc3luYyBmdW5jdGlvbihlKSB7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBjb25zdCB7IGlkLCBiaXRtYXAsIHdpZHRoLCBoZWlnaHQsIGRhdGFVUkxPcHRpb25zIH0gPSBlLmRhdGE7CiAgICAgIGNvbnN0IHRyYW5zcGFyZW50QmFzZTY0ID0gZ2V0VHJhbnNwYXJlbnRCbG9iRm9yKAogICAgICAgIHdpZHRoLAogICAgICAgIGhlaWdodCwKICAgICAgICBkYXRhVVJMT3B0aW9ucwogICAgICApOwogICAgICBjb25zdCBvZmZzY3JlZW4gPSBuZXcgT2Zmc2NyZWVuQ2FudmFzKHdpZHRoLCBoZWlnaHQpOwogICAgICBjb25zdCBjdHggPSBvZmZzY3JlZW4uZ2V0Q29udGV4dCgiMmQiKTsKICAgICAgY3R4LmRyYXdJbWFnZShiaXRtYXAsIDAsIDApOwogICAgICBiaXRtYXAuY2xvc2UoKTsKICAgICAgY29uc3QgYmxvYiA9IGF3YWl0IG9mZnNjcmVlbi5jb252ZXJ0VG9CbG9iKGRhdGFVUkxPcHRpb25zKTsKICAgICAgY29uc3QgdHlwZSA9IGJsb2IudHlwZTsKICAgICAgY29uc3QgYXJyYXlCdWZmZXIgPSBhd2FpdCBibG9iLmFycmF5QnVmZmVyKCk7CiAgICAgIGNvbnN0IGJhc2U2NCA9IGVuY29kZShhcnJheUJ1ZmZlcik7CiAgICAgIGlmICghbGFzdEJsb2JNYXAuaGFzKGlkKSAmJiBhd2FpdCB0cmFuc3BhcmVudEJhc2U2NCA9PT0gYmFzZTY0KSB7CiAgICAgICAgbGFzdEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICAgIHJldHVybiB3b3JrZXIucG9zdE1lc3NhZ2UoeyBpZCB9KTsKICAgICAgfQogICAgICBpZiAobGFzdEJsb2JNYXAuZ2V0KGlkKSA9PT0gYmFzZTY0KSByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQgfSk7CiAgICAgIHdvcmtlci5wb3N0TWVzc2FnZSh7CiAgICAgICAgaWQsCiAgICAgICAgdHlwZSwKICAgICAgICBiYXNlNjQsCiAgICAgICAgd2lkdGgsCiAgICAgICAgaGVpZ2h0CiAgICAgIH0pOwogICAgICBsYXN0QmxvYk1hcC5zZXQoaWQsIGJhc2U2NCk7CiAgICB9IGVsc2UgewogICAgICByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQ6IGUuZGF0YS5pZCB9KTsKICAgIH0KICB9Owp9KSgpOwovLyMgc291cmNlTWFwcGluZ1VSTD1pbWFnZS1iaXRtYXAtZGF0YS11cmwtd29ya2VyLUlKcEM3Z19iLmpzLm1hcAo=")],{type:"text/javascript;charset=utf-8"});try{if(2!==Array.from([1],(function(e){return 2*e}))[0]){var Qc=document.createElement("iframe");document.body.appendChild(Qc),Array.from=(null==(Ot=Qc.contentWindow)?void 0:Ot.Array.from)||Array.from,document.body.removeChild(Qc)}}catch(e){console.debug("Unable to override Array.from",e)}new ir,(Xc=Hc||(Hc={}))[Xc.NotStarted=0]="NotStarted",Xc[Xc.Running=1]="Running",Xc[Xc.Stopped=2]="Stopped";var qc=function(){function e(t){j(this,e),Yt(this,"fileName"),Yt(this,"functionName"),Yt(this,"lineNumber"),Yt(this,"columnNumber"),this.fileName=t.fileName||"",this.functionName=t.functionName||"",this.lineNumber=t.lineNumber,this.columnNumber=t.columnNumber}return Z(e,[{key:"toString",value:function(){var e=this.lineNumber||"",t=this.columnNumber||"";return this.functionName?"".concat(this.functionName," (").concat(this.fileName,":").concat(e,":").concat(t,")"):"".concat(this.fileName,":").concat(e,":").concat(t)}}]),e}(),$c=/(^|@)\S+:\d+/,el=/^\s*at .*(\S+:\d+|\(native\))/m,tl=/^(eval@)?(\[native code])?$/,rl={parse:function(e){return e?void 0!==e.stacktrace||void 0!==e["opera#sourceloc"]?this.parseOpera(e):e.stack&&e.stack.match(el)?this.parseV8OrIE(e):e.stack?this.parseFFOrSafari(e):(console.warn("[console-record-plugin]: Failed to parse error object:",e),[]):[]},extractLocation:function(e){if(-1===e.indexOf(":"))return[e];var t=/(.+?)(?::(\d+))?(?::(\d+))?$/.exec(e.replace(/[()]/g,""));if(!t)throw new Error("Cannot parse given url: ".concat(e));return[t[1],t[2]||void 0,t[3]||void 0]},parseV8OrIE:function(e){return e.stack.split("\n").filter((function(e){return!!e.match(el)}),this).map((function(e){e.indexOf("(eval ")>-1&&(e=e.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(\),.*$)/g,""));var t=e.replace(/^\s+/,"").replace(/\(eval code/g,"("),r=t.match(/ (\((.+):(\d+):(\d+)\)$)/),n=(t=r?t.replace(r[0],""):t).split(/\s+/).slice(1),o=this.extractLocation(r?r[1]:n.pop()),i=n.join(" ")||void 0,s=["eval","<anonymous>"].indexOf(o[0])>-1?void 0:o[0];return new qc({functionName:i,fileName:s,lineNumber:o[1],columnNumber:o[2]})}),this)},parseFFOrSafari:function(e){return e.stack.split("\n").filter((function(e){return!e.match(tl)}),this).map((function(e){if(e.indexOf(" > eval")>-1&&(e=e.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),-1===e.indexOf("@")&&-1===e.indexOf(":"))return new qc({functionName:e});var t=/((.*".+"[^@]*)?[^@]*)(?:@)/,r=e.match(t),n=r&&r[1]?r[1]:void 0,o=this.extractLocation(e.replace(t,""));return new qc({functionName:n,fileName:o[0],lineNumber:o[1],columnNumber:o[2]})}),this)},parseOpera:function(e){return!e.stacktrace||e.message.indexOf("\n")>-1&&e.message.split("\n").length>e.stacktrace.split("\n").length?this.parseOpera9(e):e.stack?this.parseOpera11(e):this.parseOpera10(e)},parseOpera9:function(e){for(var t=/Line (\d+).*script (?:in )?(\S+)/i,r=e.message.split("\n"),n=[],o=2,i=r.length;o<i;o+=2){var s=t.exec(r[o]);s&&n.push(new qc({fileName:s[2],lineNumber:parseFloat(s[1])}))}return n},parseOpera10:function(e){for(var t=/Line (\d+).*script (?:in )?(\S+)(?:: In function (\S+))?$/i,r=e.stacktrace.split("\n"),n=[],o=0,i=r.length;o<i;o+=2){var s=t.exec(r[o]);s&&n.push(new qc({functionName:s[3]||void 0,fileName:s[2],lineNumber:parseFloat(s[1])}))}return n},parseOpera11:function(e){return e.stack.split("\n").filter((function(e){return!!e.match($c)&&!e.match(/^Error created at/)}),this).map((function(e){var t=e.split("@"),r=this.extractLocation(t.pop()),n=(t.shift()||"").replace(/<anonymous function(: (\w+))?>/,"$2").replace(/\([^)]*\)/g,"")||void 0;return new qc({functionName:n,fileName:r[0],lineNumber:r[1],columnNumber:r[2]})}),this)}};function nl(e){if(!e||!e.outerHTML)return"";for(var t="";e.parentElement;){var r=e.localName;if(!r)break;r=r.toLowerCase();var n=e.parentElement,o=[];if(n.children&&n.children.length>0)for(var i=0;i<n.children.length;i++){var s=n.children[i];s.localName&&s.localName.toLowerCase&&s.localName.toLowerCase()===r&&o.push(s)}o.length>1&&(r+=":eq(".concat(o.indexOf(e),")")),t=r+(t?">"+t:""),e=n}return t}function ol(e){return"[object Object]"===Object.prototype.toString.call(e)}function il(e,t){if(0===t)return!0;for(var r=0,n=Object.keys(e);r<n.length;r++){var o=n[r];if(ol(e[o])&&il(e[o],t-1))return!0}return!1}function sl(e,t){var r={numOfKeysLimit:50,depthOfLimit:4};Object.assign(r,t);var n=[],o=[];return JSON.stringify(e,(function(e,t){if(n.length>0){var i=n.indexOf(this);~i?n.splice(i+1):n.push(this),~i?o.splice(i,1/0,e):o.push(e),~n.indexOf(t)&&(t=n[0]===t?"[Circular ~]":"[Circular ~."+o.slice(0,n.indexOf(t)).join(".")+"]")}else n.push(t);if(null===t)return t;if(void 0===t)return"undefined";if(function(e){if(ol(e)&&Object.keys(e).length>r.numOfKeysLimit)return!0;if("function"==typeof e)return!0;if(ol(e)&&il(e,r.depthOfLimit))return!0;return!1}(t))return function(e){var t=e.toString();r.stringLengthLimit&&t.length>r.stringLengthLimit&&(t="".concat(t.slice(0,r.stringLengthLimit),"..."));return t}(t);if("bigint"==typeof t)return t.toString()+"n";if(t instanceof Event){var s={};for(var a in t){var u=t[a];Array.isArray(u)?s[a]=nl(u.length?u[0]:null):s[a]=u}return s}return t instanceof Node?t instanceof HTMLElement?t?t.outerHTML:"":t.nodeName:t instanceof Error?t.stack?t.stack+"\nEnd of stack for Error object":t.name+": "+t.message:t}))}var al={level:["assert","clear","count","countReset","debug","dir","dirxml","error","group","groupCollapsed","groupEnd","info","log","table","time","timeEnd","timeLog","trace","warn"],lengthThreshold:1e3,logger:"console"};function ul(e,r,n){var o,i=n?Object.assign({},al,n):al,s=i.logger;if(!s)return function(){};o="string"==typeof s?r[s]:s;var a=0,u=!1,c=[];if(i.level.includes("error")){var l=function(t){var r=t.message,n=t.error,o=rl.parse(n).map((function(e){return e.toString()})),s=[sl(r,i.stringifyOptions)];e({level:"error",trace:o,payload:s})};r.addEventListener("error",l),c.push((function(){r.removeEventListener("error",l)}));var f=function(t){var r,n;t.reason instanceof Error?(r=t.reason,n=[sl("Uncaught (in promise) ".concat(r.name,": ").concat(r.message),i.stringifyOptions)]):(r=new Error,n=[sl("Uncaught (in promise)",i.stringifyOptions),sl(t.reason,i.stringifyOptions)]);var o=rl.parse(r).map((function(e){return e.toString()}));e({level:"error",trace:o,payload:n})};r.addEventListener("unhandledrejection",f),c.push((function(){r.removeEventListener("unhandledrejection",f)}))}var h,p=t(i.level);try{for(p.s();!(h=p.n()).done;){var d=h.value;c.push(v(o,d))}}catch(e){p.e(e)}finally{p.f()}return function(){c.forEach((function(e){return e()}))};function v(t,r){var n=this;return t[r]?Yc.patch(t,r,(function(t){return function(){for(var o=arguments.length,s=new Array(o),c=0;c<o;c++)s[c]=arguments[c];if(t.apply(n,s),!("assert"===r&&s[0]||u)){u=!0;try{var l=rl.parse(new Error).map((function(e){return e.toString()})).splice(1),f="assert"===r?s.slice(1):s,h=f.map((function(e){return sl(e,i.stringifyOptions)}));++a<i.lengthThreshold?e({level:r,trace:l,payload:h}):a===i.lengthThreshold&&e({level:"warn",trace:[],payload:[sl("The number of log records reached the threshold.")]})}catch(e){t.apply(void 0,["rrweb logger error:",e].concat(s))}finally{u=!1}}}})):function(){}}}var cl=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}))},ll=function(){var e,t,r;if(localStorage.getItem("rlog-deviceId"))return localStorage.getItem("rlog-deviceId");var n=(null===(e=localStorage)||void 0===e?void 0:e.getItem("utoken"))||(null===(t=localStorage)||void 0===t?void 0:t.getItem("IWP-iwp-deivceTag"))||cl();return null===(r=localStorage)||void 0===r||r.setItem("rlog-deviceId",n),n},fl=r(150),hl=r.n(fl),pl=function(){function e(){W()(this,e),hl()(this,"storage",new Map)}var t,r,n;return G()(e,[{key:"push",value:(n=Mt()(He()().mark((function e(t,r){return He()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:this.storage.has(t)||this.storage.set(t,[]),this.storage.get(t).push(r);case 2:case"end":return e.stop()}}),e,this)}))),function(e,t){return n.apply(this,arguments)})},{key:"pull",value:(r=Mt()(He()().mark((function e(t,r){var n,o,i;return He()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=this.storage.get(t)||[],o=Math.min(r,n.length),i=n.slice(0,o),this.storage.set(t,n.slice(o)),e.abrupt("return",i);case 5:case"end":return e.stop()}}),e,this)}))),function(e,t){return r.apply(this,arguments)})},{key:"clear",value:(t=Mt()(He()().mark((function e(t){return He()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:this.storage.delete(t);case 1:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})}],[{key:"getInstance",value:function(){return e.instance||(e.instance=new e),e.instance}}]),e}();hl()(pl,"instance",void 0);var dl=function(){function e(){W()(this,e)}var t,r,n;return G()(e,[{key:"push",value:(n=Mt()(He()().mark((function e(t,r){var n,o,i,s,a;return He()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:e.prev=0,n="log_".concat(t),o=3;case 3:if(!(o-- >0)){e.next=17;break}if(i=localStorage.getItem(n),s=i?JSON.parse(i):[],a=s.length,s.push(r),localStorage.getItem(n)!==i){e.next=11;break}return localStorage.setItem(n,JSON.stringify(s)),e.abrupt("return");case 11:if(!(s.length>=a)){e.next=13;break}return e.abrupt("return");case 13:return e.next=15,new Promise((function(e){return setTimeout(e,50)}));case 15:e.next=3;break;case 17:throw new Error("Push operation failed due to concurrent modifications");case 20:return e.prev=20,e.t0=e.catch(0),console.warn("LocalStorage不可用,将使用内存缓存"),e.abrupt("return",pl.getInstance().push(t,r));case 24:case"end":return e.stop()}}),e,null,[[0,20]])}))),function(e,t){return n.apply(this,arguments)})},{key:"pull",value:(r=Mt()(He()().mark((function e(t,r){var n,o,i,s,a;return He()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,n="log_".concat(t),o=localStorage.getItem(n),i=o?JSON.parse(o):[],s=Math.min(r,i.length),a=i.slice(0,s),localStorage.setItem(n,JSON.stringify(i.slice(s))),e.abrupt("return",a);case 10:return e.prev=10,e.t0=e.catch(0),e.abrupt("return",pl.getInstance().pull(t,r));case 13:case"end":return e.stop()}}),e,null,[[0,10]])}))),function(e,t){return r.apply(this,arguments)})},{key:"clear",value:(t=Mt()(He()().mark((function e(t){var r;return He()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:e.prev=0,r="log_".concat(t),localStorage.removeItem(r),e.next=8;break;case 5:return e.prev=5,e.t0=e.catch(0),e.abrupt("return",pl.getInstance().clear(t));case 8:case"end":return e.stop()}}),e,null,[[0,5]])}))),function(e){return t.apply(this,arguments)})}]),e}(),vl=function(){function e(){W()(this,e),hl()(this,"adapter",void 0),this.adapter=this.selectAdapter()}var t,r,n;return G()(e,[{key:"selectAdapter",value:function(){if(window.localStorage)try{var e="__storage_test";return window.localStorage.setItem(e,"test"),window.localStorage.removeItem(e),new dl}catch(e){console.warn("LocalStorage不可用,降级使用内存缓存")}return pl.getInstance()}},{key:"push",value:(n=Mt()(He()().mark((function e(t,r){return He()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.adapter.push(t,r));case 1:case"end":return e.stop()}}),e,this)}))),function(e,t){return n.apply(this,arguments)})},{key:"pull",value:(r=Mt()(He()().mark((function e(t,r){return He()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.adapter.pull(t,r));case 1:case"end":return e.stop()}}),e,this)}))),function(e,t){return r.apply(this,arguments)})},{key:"clear",value:(t=Mt()(He()().mark((function e(t){return He()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.adapter.clear){e.next=2;break}return e.abrupt("return",this.adapter.clear(t));case 2:console.warn("Storage adapter does not support clear operation");case 3:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})}]),e}(),gl=new vl,ml=["https://api.example.com","https://analytics.example.org"],yl={},wl=["sky_trace_id","antbank-traceid"];function bl(e){try{return e.startsWith("http://")||e.startsWith("https://")?new URL(e).hostname:""}catch(r){var t=e.match(/^https?:\/\/([^\/]+)/);return t?t[1]:""}}function Cl(e,t){try{if(e.startsWith("http://")||e.startsWith("https://"))return t.some((function(t){return e.startsWith(t)}));var r=bl(window.location.href);return t.some((function(e){var t=bl(e);return r===t}))}catch(e){return!1}}var Il=XMLHttpRequest.prototype.open,kl=XMLHttpRequest.prototype.send,Sl=window.fetch;function xl(){Il&&(XMLHttpRequest.prototype.open=Il),kl&&(XMLHttpRequest.prototype.send=kl),Sl&&(window.fetch=Sl),!1,console.log("RLog network monitoring restored")}function Al(e){if(e&&e.length>0){var t=ml.concat(e),r=Array.from(new Set(t));ml.splice.apply(ml,[0,ml.length].concat(r))}}function Ol(e){Object.assign(yl,e)}function Rl(e){return El.apply(this,arguments)}function El(){return El=Mt()(He()().mark((function e(t){var r,n=arguments;return He()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=n.length>1&&void 0!==n[1]?n[1]:{},e.abrupt("return",new Promise((function(e,n){var o=r.method,i=void 0===o?"GET":o,a=r.headers,u=void 0===a?{}:a,c=r.body,l=r.timeout,f=void 0===l?1e4:l,h=new XMLHttpRequest;h.timeout=f,h.onreadystatechange=function(){if(4===h.readyState){var t={ok:h.status>=200&&h.status<300,status:h.status,statusText:h.statusText,data:null,json:function(){return Promise.resolve(JSON.parse(h.responseText))},text:function(){return Promise.resolve(h.responseText)}};try{t.data=JSON.parse(h.responseText)}catch(e){t.data=h.responseText}t.ok?e(t):n(new Error("HTTP ".concat(h.status,": ").concat(h.statusText)))}},h.onerror=function(){n(new Error("Network error"))},h.ontimeout=function(){n(new Error("Request timeout"))},h.open(i,t,!0),Object.keys(u).forEach((function(e){h.setRequestHeader(e,u[e])})),c instanceof FormData?h.send(c):"object"===s()(c)?(h.setRequestHeader("Content-Type","application/json"),h.send(JSON.stringify(c))):h.send(c||null)})));case 2:case"end":return e.stop()}}),e)}))),El.apply(this,arguments)}function Ml(e){return Nl.apply(this,arguments)}function Nl(){return Nl=Mt()(He()().mark((function e(t){var r,n=arguments;return He()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=n.length>1&&void 0!==n[1]?n[1]:{},e.abrupt("return",Rl(t,Pt()(Pt()({},r),{},{method:"GET"})));case 2:case"end":return e.stop()}}),e)}))),Nl.apply(this,arguments)}function Tl(e,t){return Ll.apply(this,arguments)}function Ll(){return Ll=Mt()(He()().mark((function e(t,r){var n,o=arguments;return He()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=o.length>2&&void 0!==o[2]?o[2]:{},e.abrupt("return",Rl(t,Pt()(Pt()({},n),{},{method:"POST",body:r})));case 2:case"end":return e.stop()}}),e)}))),Ll.apply(this,arguments)}var Pl={enable:!0,samplingRate:15,uploadInterval:2e3,configUpdateInterval:3e5,console:!1,http:!1,consumeOnly:!1,maxRetryCount:3},Fl=Pt()({},Pl);function Bl(e){return _l.apply(this,arguments)}function _l(){return(_l=Mt()(He()().mark((function e(t){var r,n;return He()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Ml(t);case 3:if((r=e.sent).ok){e.next=6;break}throw new Error("Failed to fetch config: ".concat(r.status));case 6:return n=r.data,e.abrupt("return",Pt()(Pt()({},Pl),n));case 10:return e.prev=10,e.t0=e.catch(0),console.warn("Failed to fetch config from CDN, using default config:",e.t0),e.abrupt("return",Pt()({},Pl));case 14:case"end":return e.stop()}}),e,null,[[0,10]])})))).apply(this,arguments)}function Dl(e){Fl=Pt()(Pt()({},Fl),e)}function Ul(){return Pt()({},Fl)}function jl(){return(jl=Mt()(He()().mark((function e(t){var r,n;return He()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t){e.next=7;break}return e.next=3,Bl(t);case 3:Dl(r=e.sent),(n=r.configUpdateInterval||Pl.configUpdateInterval)&&setInterval(Mt()(He()().mark((function e(){return He()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Bl(t);case 3:Dl(e.sent),e.next=10;break;case 7:e.prev=7,e.t0=e.catch(0),console.warn("Failed to update config from CDN:",e.t0);case 10:case"end":return e.stop()}}),e,null,[[0,7]])}))),n);case 7:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var Wl=null,Zl=function(){Wl&&Wl()},Gl=function(){var e=Ul();if(e.enable){var t,r,n=ll();Wl=At({emit:function(e){var t=console.log.__rrweb_original__?console.log.__rrweb_original__:console.log;e.type!==ae.IncrementalSnapshot&&t("event",e),gl.push(n,e)},recordCanvas:!0,sampling:{canvas:e.samplingRate},dataURLOptions:{type:"image/webp",quality:.6},collectFonts:!0,recordCrossOriginIframes:!0,plugins:e.console?[(t={stringifyOptions:{numOfKeysLimit:50,depthOfLimit:4},logger:window.console},{name:"rrweb/console@1",observer:ul,options:t})]:[]}),Ol({"rlog-deviceId":n}),Al(["http://alipay-rmsdeploy-image.cn-hangzhou.alipay.aliyun-inc.com"]),e.http&&(r=At,XMLHttpRequest.prototype.open=function(e,t){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],n=arguments.length>3?arguments[3]:void 0,o=arguments.length>4?arguments[4]:void 0;return this._rlogRequest={method:e,url:t.toString(),startTime:0,endTime:0},Il.apply(this,[e,t,r,n,o])},XMLHttpRequest.prototype.send=function(e){var t=this,n=this._rlogRequest;return n.startTime=Date.now(),n.method,Object.entries(yl).forEach((function(e){var r=D()(e,2),n=r[0],o=r[1];t.setRequestHeader(n,o)})),this.addEventListener("load",(function(){var e=this;if(n.endTime=Date.now(),Cl(n.url,ml)){var t={};wl.forEach((function(r){try{var n=e.getResponseHeader(r);n&&(t[r]=n)}catch(e){console.warn("无法获取响应头 ".concat(r,":"),e)}})),r.addCustomEvent("http-success",Pt()(Pt()({},n),{},{dur:n.endTime-n.startTime,responseHeaders:t}))}})),this.addEventListener("error",(function(){r.addCustomEvent("http-error",Pt()(Pt()({},n),{},{dur:n.endTime-n.startTime}))})),kl.apply(this,[e])},window.fetch=function(){var e=Mt()(He()().mark((function e(t,n){var o,i,s,a,u,c,l;return He()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=t instanceof Request?t.url:t.toString(),i=(null==n?void 0:n.method)||(t instanceof Request?t.method:"GET").toUpperCase(),s=Date.now(),e.prev=3,(a=Pt()({},n)).headers=Pt()(Pt()({},(null==n?void 0:n.headers)||{}),yl),e.next=8,Sl(t,a);case 8:return u=e.sent,c=Date.now(),Cl(o,ml)&&(console.log("[Fetch] ".concat(i," ").concat(o," - ").concat(c-s,"ms")),l={},wl.forEach((function(e){try{var t=u.headers.get(e);t&&(l[e]=t)}catch(t){console.warn("无法获取响应头 ".concat(e,":"),t)}})),r.addCustomEvent("http-success",{url:o,method:i,dur:c-s,responseHeaders:l})),e.abrupt("return",u);case 14:throw e.prev=14,e.t0=e.catch(3),console.error("[Fetch Error] ".concat(i," ").concat(o),e.t0),r.addCustomEvent("http-error",{url:o,method:i}),e.t0;case 19:case"end":return e.stop()}}),e,null,[[3,14]])})));return function(t,r){return e.apply(this,arguments)}}())}else console.log("RLog recording is disabled by config")},Vl=function(){var e=Ul().urlParamsToCache||["taskId"],t=new URLSearchParams(window.location.search);e.forEach((function(e){var r=t.get(e);r&&sessionStorage.setItem("rlog-".concat(e),r)}))},Yl=function(e){return sessionStorage.getItem("rlog-".concat(e))},zl=function(){var e=Mt()(He()().mark((function e(t){var r,n,o,i,a,u,c,l,f,h;return He()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return Vl(),o={deviceId:t.deviceId,appId:t.appId,startTime:null===(r=t.data)||void 0===r||null===(r=r[0])||void 0===r?void 0:r.timestamp,endTime:null===(n=t.data)||void 0===n||null===(n=n[0])||void 0===n?void 0:n.timestamp},i=Ul(),(i.urlParamsToCache||["taskId"]).forEach((function(e){var t=Yl(e);t&&(o[e]=t)})),a=new URLSearchParams(o),u="".concat(t.url).concat(a?"?".concat(a):""),(c=new FormData).append("file",new Blob([JSON.stringify(t.data)]),cl()+".json"),e.next=11,Tl(u,c);case 11:l=e.sent,e.prev=12,f="string"==typeof l.data?JSON.parse(l.data):l.data,e.next=19;break;case 16:return e.prev=16,e.t0=e.catch(12),e.abrupt("return");case 19:if(!f||"object"!==s()(f)||!1!==f.success){e.next=23;break}throw(h=new Error(f.errorMessage||"Upload failed with success=false")).responseData=f,h;case 23:case"end":return e.stop()}}),e,null,[[12,16]])})));return function(t){return e.apply(this,arguments)}}(),Kl=!1,Jl=new Map;function Hl(){Kl=!0}var Xl={enable:!1,trackHashChange:!0,trackHistoryChange:!0,trackPageStayTime:!0,ignoreRoutes:[],customMatchers:[]},Ql=Pt()({},Xl),ql="",$l=Date.now(),ef=!1,tf=null,rf=null;function nf(){if("undefined"==typeof window)return"";var e=window.location.pathname+window.location.search+window.location.hash;if(Ql.customMatchers){var t,r=o()(Ql.customMatchers);try{for(r.s();!(t=r.n()).done;){var n=t.value;if(n.pattern.test(e))return n.name}}catch(e){r.e(e)}finally{r.f()}}return e}function of(e,t,r){if(Ql.enable&&(n=t,!Ql.ignoreRoutes||!Ql.ignoreRoutes.some((function(e){return"string"==typeof e?n.includes(e):e instanceof RegExp&&e.test(n)})))){var n,o={type:"route-change",from:e,to:t,method:r,timestamp:Date.now()};Ql.trackPageStayTime&&e&&(o.duration=Date.now()-$l),At.addCustomEvent("route-change",o),$l=Date.now()}}function sf(){var e=ql,t=nf();e!==t&&of(e,t,"popstate")}function af(){var e=ql,t=nf();e!==t&&of(e,t,"hashchange")}function uf(e){ef||"undefined"==typeof window||(Ql=Pt()(Pt()({},Xl),e)).enable&&(ql=nf(),$l=Date.now(),Ql.trackHistoryChange&&"undefined"!=typeof window&&(tf=window.history.pushState,rf=window.history.replaceState,window.history.pushState=function(){for(var e=nf(),t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var o=tf.apply(this,r),i=nf();return e!==i&&of(e,i,"pushState"),o},window.history.replaceState=function(){for(var e=nf(),t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var o=rf.apply(this,r),i=nf();return e!==i&&of(e,i,"replaceState"),o},window.addEventListener("popstate",sf)),Ql.trackHashChange&&"undefined"!=typeof window&&window.addEventListener("hashchange",af),ef=!0)}function cf(e){Ql=Pt()(Pt()({},Ql),e)}function lf(){return{currentRoute:ql,startTime:$l,stayTime:Date.now()-$l}}function ff(e,t){of(t||ql,e,"pushState")}function hf(){ef&&(tf&&rf&&"undefined"!=typeof window&&(window.history.pushState=tf,window.history.replaceState=rf),"undefined"!=typeof window&&(window.removeEventListener("popstate",sf),window.removeEventListener("hashchange",af)),ef=!1,tf=null,rf=null,console.log("Router monitor stopped"))}function pf(e,t,r){Kl=!1,function(e){return jl.apply(this,arguments)}(r).then((function(){var r=Ul();r.enable?(Gl(),function(e,t){var r=function(){var n=Mt()(He()().mark((function n(){var o,i,s,a,u,c,l,f,h;return He()().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!Kl){n.next=3;break}return console.log("RLog upload has been cancelled"),n.abrupt("return");case 3:if((o=Ul()).enable){n.next=7;break}return console.log("RLog is disabled by config, stopping upload"),n.abrupt("return");case 7:return n.next=9,gl.pull(ll(),100);case 9:if((i=n.sent)&&0!==i.length){n.next=13;break}return setTimeout((function(){r()}),o.uploadInterval),n.abrupt("return");case 13:if(!(s=Ul()).consumeOnly){n.next=18;break}console.log("RLog consume only mode, skip upload"),n.next=48;break;case 18:return n.prev=18,n.next=21,zl({appId:t,data:i,deviceId:ll(),url:e});case 21:a="".concat(t,"_").concat(ll()),Jl.delete(a),n.next=48;break;case 25:if(n.prev=25,n.t0=n.catch(18),console.warn("Upload failed:",n.t0),u=s.maxRetryCount||3,c="".concat(t,"_").concat(ll()),l=Jl.get(c)||0,f=l+1,Jl.set(c,f),!(f>=u)){n.next=45;break}console.warn("Upload failed ".concat(u," times consecutively, stopping upload")),h=new CustomEvent("rlog-upload-failure",{detail:{error:n.t0,retryCount:u,appId:t,deviceId:ll()}}),window.dispatchEvent(h);try{At.addCustomEvent("rlog-upload-failure",{error:n.t0 instanceof Error?n.t0.message:String(n.t0),retryCount:u,appId:t,deviceId:ll(),timestamp:Date.now()})}catch(e){console.warn("Failed to record upload failure event via addCustomEvent:",e)}return Jl.delete(c),Hl(),setTimeout((function(){Zl()}),0),console.error("RLog upload and recording stopped due to repeated failures"),n.abrupt("return");case 45:return console.warn("Upload failed ".concat(f," time(s), will retry in next cycle")),n.next=48,gl.push(ll(),i);case 48:setTimeout((function(){r()}),o.uploadInterval);case 49:case"end":return n.stop()}}),n,null,[[18,25]])})));return function(){return n.apply(this,arguments)}}();r()}(e,t),r.routerMonitor&&uf(r.routerMonitor)):console.log("RLog is disabled by config")})).catch((function(e){console.error("Failed to initialize RLog:",e)}))}var df=!1;function vf(e){return df=!1,pf(e.serv,e.appId,e.cdnConfigUrl),{cancel:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(df)console.warn("RLog SDK has already been cancelled");else{df=!0;try{if(Zl(),Hl(),"undefined"!=typeof window&&window.XMLHttpRequest&&xl(),hf(),e.clearData){var t=ll();t&&gl.clear(t).catch((function(e){console.error("Error clearing storage:",e)}))}console.log("RLog SDK cancelled successfully")}catch(e){console.error("Error cancelling RLog SDK:",e)}}}}}function gf(){Zl()}function mf(e,t){At.addCustomEvent(e,t)}function yf(e){Dl({consumeOnly:e}),console.log("RLog consume only mode ".concat(e?"enabled":"disabled"))}function wf(){return!!Ul().consumeOnly}function bf(){var e=!Ul().consumeOnly;return yf(e),e}}(),n}()}));
|
package/package.json
CHANGED
|
@@ -1,12 +1,31 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@antglobal/rlog-sdk",
|
|
3
|
-
"version": "0.0.
|
|
4
|
-
"description": "",
|
|
5
|
-
"
|
|
3
|
+
"version": "0.0.1755855517-dev.1",
|
|
4
|
+
"description": "日志上报sdk",
|
|
5
|
+
"module": "dist/esm/index.js",
|
|
6
|
+
"types": "dist/esm/index.d.ts",
|
|
6
7
|
"scripts": {
|
|
7
|
-
"
|
|
8
|
+
"dev": "father dev",
|
|
9
|
+
"build": "father build",
|
|
10
|
+
"build:deps": "father prebundle"
|
|
8
11
|
},
|
|
9
12
|
"keywords": [],
|
|
10
|
-
"
|
|
11
|
-
|
|
13
|
+
"authors": [
|
|
14
|
+
"shican.lsc"
|
|
15
|
+
],
|
|
16
|
+
"license": "MIT",
|
|
17
|
+
"files": [
|
|
18
|
+
"dist",
|
|
19
|
+
"compiled"
|
|
20
|
+
],
|
|
21
|
+
"publishConfig": {
|
|
22
|
+
"access": "public"
|
|
23
|
+
},
|
|
24
|
+
"devDependencies": {
|
|
25
|
+
"father": "^4.5.6"
|
|
26
|
+
},
|
|
27
|
+
"dependencies": {
|
|
28
|
+
"@rrweb/rrweb-plugin-console-record": "^2.0.0-alpha.18",
|
|
29
|
+
"rrweb": "^2.0.0-alpha.4"
|
|
30
|
+
}
|
|
12
31
|
}
|
package/LEGAL.md
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
Legal Disclaimer
|
|
2
|
-
|
|
3
|
-
Within this source code, the comments in Chinese shall be the original, governing version. Any comment in other languages are for reference only. In the event of any conflict between the Chinese language version comments and other language version comments, the Chinese language version shall prevail.
|
|
4
|
-
|
|
5
|
-
法律免责声明
|
|
6
|
-
|
|
7
|
-
关于代码注释部分,中文注释为官方版本,其它语言注释仅做参考。中文注释可能与其它语言注释存在不一致,当中文注释与其它语言注释存在不一致时,请以中文注释为准。
|